life is too short for a diary

Most popular




Sun 20 Mar 2016

Find kth largest element in an array

The other day I stumble upon the question to find the kth largest element in the array. At first glance, I thought the solution was trivial. But later I thought that there are multiple ways to achieve efficient solution...

Continue reading → Tags : algorithm ruby heap max-heap projects






Sun 07 Feb 2016

A random stranger

It was just another day in Bangalore. I caught the bus from the /Kormangala bus depot. Amid exhausting heat & nudging elbows, I somehow managed to grab a seat in the bus. Securing a seat in the Indian bus during peak time is considered a fortune. This often attracts resentful eyes. However my Indian genes have made me immune to both pani puri & judgment...

Continue reading → Tags : story india fiction bangalore sci-fi






Thu 14 Jan 2016

Get all GET and POST requests using tshark

Browsers have made browsing insanely easy. Toolbar fetches webpage magically. However, under the hood, lots of requests are exchanged. These requests are based on REST architecture.

What is REST? REST is REpresentational State Transfer. Loosely speaking it defines how resources are exchanged based on item of request. Two most common HTTP Request Methods are POST and GET. Using tshark, we can see the headers exchange as you browse the web...

Continue reading → Tags : tshark rest http get post