Joined July 2012
·

akhilravidas

Facebook
·
Mountain view
·
·
·

Brilliant!

Posted to show TCP network traffic [unix] over 1 year ago

http://en.wikipedia.org/wiki/Iftop if available on your distro can be very handy for this too

Posted to Best way to leave insert mode over 1 year ago

Handy, but these two are not synonymous. For instance InsertLeave event doesn't fire while using Ctrl + c.

http://rsontech.net/2012/05/13/ctrl-c-is-not-escape.html has some details on the differences

Posted to Removing whitespace with Vim over 1 year ago

@jaredonline Yeah, the two sometimes trips people. :help s_flags has all info about flags that can be used with substitute command

Posted to Removing whitespace with Vim over 1 year ago

Your regex can atmost match once in a line (because of $), so g doesn't do anything. Although the flag's name is global, it actually means global in a given line and not doc (I'd guess because of evolution from ed commands).

Posted to Better getting array size in C++ over 1 year ago

If your compiler supports C++11, you can use std::array[1] which is a lightweight (and safe) wrapper around C style arrays.

[1] http://en.cppreference.com/w/cpp/container/array

Achievements
75 Karma
7,146 Total ProTip Views