Tldr; its escapes ', &, ", <, >

If anyone is wondering what exactly ruby’sCGI.escape_html escape, here is the list:

# The set of special characters and their escaped values  TABLE_FOR_ESCAPE_HTML__ = {    
"'" => '&#39;',
'&' => '&amp;',
'"' => '&quot;',
'<' => '&lt;',
'>' => '&gt;',

You can find this defined here in the code:


Originally Posted On: 08 December 2015

I have been experimenting with a few things during the last six months. Now it’s down to 3 things. Here is what I am upto:

Tracking Freshness

Most of my time is dedicated to building an analytics/reporting platform for Infratab. They track the freshness of perishable food using RFID tags. They aim to minimise food waste in the world. I’m happy to be involved in their mission.

My job is to architect and build a platform to make sense of the data collected by the tags; put together a great team to be a part of…

Originally Posted On: 11 September 2015

Lets start with an anonymous function. Functions are first class citizens in Elixir. They can be bound to a variable and passed around.

$ iex
> func = fn(msg) -> IO.puts "called with message #{msg}" end
> func.("hai")
called with message hai

Why not name the function?
In Elixir all named function must be inside a Module. A module is an organizational unit in Elixir. Open up a file named_function.exs and start typing the following in:

# named_function.exs
defmodule NamedFunction do
def call(msg) do
IO.puts "called with message #{msg}"

Lets load…

Originally Posted On: 16 April 2014

I have been stuck for too long in Bangalore! Vietnam seems a long time ago. After a few failed attempts of going to Europe which led to a few more weeks of frustration towards travel in general, I figured, booking a one way ticket to Nepal would be ideal to be re-bitten by the travel bug. So, in true spirit of backpacking, I landed in Kathmandu with nothing planned. I mean nothing when I say nothing.

Landing at Tribhuvan International airport at 5.15 pm, the time had come to find a bed to sleep…

Originally Posted On: 23 November 2012

Exactly a year ago, to the day, was my first day in Chile. My first time stepping out of India. I received an email from Prateek Dayal saying

The address of the place is,or.r_gc.r_pw.,cf.osb&q=huerfanos+santiago&um=1&ie=UTF-8&hq=&hnear=0x9662c5aeead41f25:0xa5f36ed22d10adde,Hu%C3%A9rfanos,+Santiago,+Regi%C3%B3n+Metropolitana,+Chile&gl=in&ei=PDDBTtfwNYnKgQfO6rCtBw&sa=X&oi=geocode_result&ct=image&resnum=1&ved=0CCIQ8gEwAA

Apartment is 1311C

Well! What is more accurate than a Google Map link? Without much ado, I started my journey from New Delhi. The initial excitement of flying outside India turned to anxiousness when negotiating the never ending procedures of boarding an International flight. Finally, I was off the ground, marking the start of the first leg of my…

Originally Posted On: 22 November 2012

Last weekend, I was back in Bangalore, back at the Write Club attending a Story #Hack competition organized by Campus Dairies. The theme was “Impulse”. Here is my try:


Kleptomania is the inability to refrain from the urge to steal items for reasons other than personal use or financial gain.

It was the beginning of the day like any other. Ramu was up early and attending to the task of offloading the supply truck. Hundreds of boxes of all shapes and sizes containing computers and its accessories were delivered to the Saukar Babu’s…

Originally Posted On: 01 July 2012

I always have been a hater of poems and anything Shakespearean. When I heard the next Write-Club meetup is all about poems, I considered skipping it. But I ended up at the meetup and braved myself for a boring session. I couldn’t have been more wrong.

The session was all about poems; poems which are fun to write! We started out with a form of poetry called Acrostic poems

An acrostic is a poem or other form of writing in which the first letter, syllable or word of each line, paragraph or other recurring…

Originally Posted On: 17 June 2012

Yesterday I decided to do something about my craving to write. I went a Write Club Bangalore meetup (More info) I had an awesome time meeting other writers and learning something from them. One of the exercises was to write about 200 words starting with “It was a pleasure to burn”. So here goes my attempt.

It was a pleasure to burn. For too long I was locked up in the dark and dingy cell. I had lost all my shine and purity because of the fine brown dust that settled on my body…

Originally Posted On: 28 April 2012

While researching places to visit in Chile, I stumbled upon two videos that captured my imagination. One was a video called “A Story of Tomorrow” featuring most of the spectacular spots in Chile from the north to the south. This video inspired me to go to Pucon.

The second one was one of the night sky in Atacama.

Atacama is considered as one of the best places to do star gazing. It offers clear skies almost all round the year. It has a number of “Very Large Telescope” observatories peppered through out…

Originally Posted On: 14 April 2012

My activity on saturday evenings here in Valparaiso is usually a long walk along the bike track by the sea and listening to live music (surprisingly English songs too!!!) on the old pier.

But today I stay back home watching Gordon’s Great Escape. Its a British television series

featuring myfavourite professional chef Gordon Ramsay. If you follow any cooking shows outside India (I do!! Huge fan of MasterChef Australia) then you will know this guy. He is the owner of more than 20restaurants and holds more than 10 Michelin stars. …

Avinasha Shastry

On and off digital nomad currently somewhere in South East Asia. I code and make videos while I travel with @fatcatshankar. Previously CTO @supportbee

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store