Usual blogging place
Dec. 7th, 2008 | 10:48 am
I rarely post here on LJ. So to read my ramblings, visit my more up-to-date blog: The Ramblings of an Unfettered Mind.
Also, I have updated my homepage recently and bought my own domain name and hosting service: Atul Talesara's Homepage.
Also, I have updated my homepage recently and bought my own domain name and hosting service: Atul Talesara's Homepage.
Link | Leave a comment | Add to Memories | Share
GDB: Readline vi Mode
Oct. 13th, 2006 | 09:19 am
mood: enthralled
[From my blog where I post more often: GDB: Readline vi Mode]
Only the ardent most of vi lovers will appreciate this...
I was debugging my program that was SIGSEGV'ing. After a couple of runs, my left-right and up-down arrow keys stopped working in gdb! Annoyed I switched the termnial to have a second look at the code, when I returned to GDB terminal... lo and behold... in my instinctive way used vi's 'k' and 'j' keys! BINGO! I just found out that there indeed is a vi mode in gdb too! And I bet not many know that, and hence this post.
If you don't care reading any further, you can enable vim editing mode by pressing: Ctrl-Alt-j Now pressing Esc will enter you in command mode.
For the more persistent readers...
Being an ardent lover of vim, the only TRUE programmer's editor (Emacs is a nice OS, but it lacks a good editor, that's why I use vim), I do all my work in vi: be it coding, writing mail, compose documents, blog, etc. etc. Anything that you can think of which requires writing more than few sentences, I do it in vim. In any other editor, I feel handicaped! So much so, that I even use vi mode on my BASH shell! That way I can really type and manipulate anything with eye-flashing speed. (Tip: This can really impress people [...cough ...cough...] at times ;-) )
$ set -o vi
This will put your command editing in vi mode. Press ESC and you get all of vi cursor movement and most of text editing commands. So when I found this under gdb, I was just flabbergasted! It's called 'vim readline mode' in gdb. Damn! Why I didn't think of this earlier, the world's MOST versatile debugger ought to have such features!
Now I won't have to move my hands off in brain-dead fashion at snail slow speed to and from the arrow keys! One of the best things about vim is if, like me, you are a touch typist and prefer typing really fast (for you don't want to miss anything that's on your mind), you won't want to move your hands off their position on keyboard often. And this is _exactly_ where Emacs fails, miserably! A tech-tip post after a long long time.
Only the ardent most of vi lovers will appreciate this...
I was debugging my program that was SIGSEGV'ing. After a couple of runs, my left-right and up-down arrow keys stopped working in gdb! Annoyed I switched the termnial to have a second look at the code, when I returned to GDB terminal... lo and behold... in my instinctive way used vi's 'k' and 'j' keys! BINGO! I just found out that there indeed is a vi mode in gdb too! And I bet not many know that, and hence this post.
If you don't care reading any further, you can enable vim editing mode by pressing: Ctrl-Alt-j Now pressing Esc will enter you in command mode.
For the more persistent readers...
Being an ardent lover of vim, the only TRUE programmer's editor (Emacs is a nice OS, but it lacks a good editor, that's why I use vim), I do all my work in vi: be it coding, writing mail, compose documents, blog, etc. etc. Anything that you can think of which requires writing more than few sentences, I do it in vim. In any other editor, I feel handicaped! So much so, that I even use vi mode on my BASH shell! That way I can really type and manipulate anything with eye-flashing speed. (Tip: This can really impress people [...cough ...cough...] at times ;-) )
$ set -o vi
This will put your command editing in vi mode. Press ESC and you get all of vi cursor movement and most of text editing commands. So when I found this under gdb, I was just flabbergasted! It's called 'vim readline mode' in gdb. Damn! Why I didn't think of this earlier, the world's MOST versatile debugger ought to have such features!
Now I won't have to move my hands off in brain-dead fashion at snail slow speed to and from the arrow keys! One of the best things about vim is if, like me, you are a touch typist and prefer typing really fast (for you don't want to miss anything that's on your mind), you won't want to move your hands off their position on keyboard often. And this is _exactly_ where Emacs fails, miserably! A tech-tip post after a long long time.
Links
1 VIM Tip-1 http://the-shaolin.blogspot.com/2004/12/m y-own-2-cent-vim-tip.html
2 VIM Tip-2 http://the-shaolin.blogspot.com/2005/03/v im-tip.html
3 Gdb Readline vi Mode http://sunsite.ualberta.ca/Documentation/G nu/gdb-5.0/html_node/gdb_237.html
1 VIM Tip-1 http://the-shaolin.blogspot.com/2004/12/m
2 VIM Tip-2 http://the-shaolin.blogspot.com/2005/03/v
3 Gdb Readline vi Mode http://sunsite.ualberta.ca/Documentation/G
Link | Leave a comment | Add to Memories | Share
Indian govt is really dumb to block major blogs
Jul. 19th, 2006 | 11:21 am
Well, as the title suggests, Indian have, in one of their dumbest acts, have blocked some famous blog sites, in an attempt to crub terrorists activities!
Reproducing my post from the one such blocked blogs, original link.
-------
Indian govt. is dumb, undoubtedly! Under the wake of 7/11 blasts in Mumbai a few days back, DoT has asked all major ISPs to block blog sites!!! Bulls!@#$
SpectraNet, MTNL, Reliance, and as of Monday afternoon, Airtel have complied. The known list of blocked domains is *.blogspot.com, *.typepad.com and geocities.com/*. FWIW this is as dumb as Indian cyber-law enforcers (???). can get. They have no clue of how internet works. For, while they have ensured (though without any rational explanation) that people can't read blog, I can very well post one! So, while all my Indian mates (apart from IBM, MS, etc. whose all internet traffic is actually routed to Singapore, or US or Australia) can't read this very post immediately, I'm still able to post one!!! And all this while the ban is still on. I can think of nothing that would connect terrorists attack and blog!!! Shutting them down claiming that terrorists use blogs to communicate sounds as outlandish to me as shutting off the country's telephone service because terrorists talk to each other through phones!!! If anything, they should be reading one, for you never know whose theory might open new line of thoughts for them! Too far fetched a claim, but can't be ruled out. And would be worth it if you get it right even once in hundred times!
Apart from that, don't the cyber-law enforcers have a clue about free proxies!!! There are, if not thousands, at least hundreds of free proxies available throughout the world. Firefox's much revered SwitchProxy Tool extension helps you route all your traffic through one of those freely available proxies. There are at least tens of other methods too!
While trying to act smart, they have just made a BIG fool of themselves!!! Grow up guys, you need to go back to colleges, errr.. or should I say primary school!!! Go get the terrorists, don't try to curb the citizen's democracy of expressing views!
-------
Reproducing my post from the one such blocked blogs, original link.
-------
Indian govt. is dumb, undoubtedly! Under the wake of 7/11 blasts in Mumbai a few days back, DoT has asked all major ISPs to block blog sites!!! Bulls!@#$
SpectraNet, MTNL, Reliance, and as of Monday afternoon, Airtel have complied. The known list of blocked domains is *.blogspot.com, *.typepad.com and geocities.com/*. FWIW this is as dumb as Indian cyber-law enforcers (???). can get. They have no clue of how internet works. For, while they have ensured (though without any rational explanation) that people can't read blog, I can very well post one! So, while all my Indian mates (apart from IBM, MS, etc. whose all internet traffic is actually routed to Singapore, or US or Australia) can't read this very post immediately, I'm still able to post one!!! And all this while the ban is still on. I can think of nothing that would connect terrorists attack and blog!!! Shutting them down claiming that terrorists use blogs to communicate sounds as outlandish to me as shutting off the country's telephone service because terrorists talk to each other through phones!!! If anything, they should be reading one, for you never know whose theory might open new line of thoughts for them! Too far fetched a claim, but can't be ruled out. And would be worth it if you get it right even once in hundred times!
Apart from that, don't the cyber-law enforcers have a clue about free proxies!!! There are, if not thousands, at least hundreds of free proxies available throughout the world. Firefox's much revered SwitchProxy Tool extension helps you route all your traffic through one of those freely available proxies. There are at least tens of other methods too!
While trying to act smart, they have just made a BIG fool of themselves!!! Grow up guys, you need to go back to colleges, errr.. or should I say primary school!!! Go get the terrorists, don't try to curb the citizen's democracy of expressing views!
-------
Link | Leave a comment {2} | Add to Memories | Share
Test
Sep. 15th, 2005 | 03:12 pm
This is just a test post.
I plan to move from http://the-shaolin.blogspot.com/
to livejournal soon!!!
I plan to move from http://the-shaolin.blogspot.com/
to livejournal soon!!!