life is too short for a diary

Most popular




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






Guide to install Arch Linux

I finally divorced Windows soon after I fell in love with Linux. Ubuntu was my first love. I met her on Distrowatch. But she spoke no English. So I spent hours gawking at her sleaky terminal trying to learn her language, bash...

Continue reading → Tags : arch linux install






Quickly sort large file in linear time

Any deterministic general sorting algorithm has average case time complexity $ O(nlogn) $ . However, certain sorting algorithm can run faster in $ O(n) $ but with limitation. Instead of comparision-based sort, each element is looked individually by its value. Radix sort is one fine example of integer sorting...

Continue reading → Tags : lsd radix sort sorting cplusplus