vim – yank/xopy in different register to paste

2014-01-16 1 min read Vim Tips
Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever selection you want. Here is the simple way to do it: visuallly select with v/V then “qy to yank (here we are yanking into register q, so in the command you can use any of a-z to use as register) Continue reading

Photography – Stock photos on bigstock.

2011-02-01 1 min read Photo
Couple of days back, one of my friends suggested that I put my photos on bigstock also along with my site at http://shop.amit-agarwal.co.in . I thought, let me give it a try and created a account on bigstock. After creating the account, I have so far submitted 5 images and four of them got rejected. The rejections did not de-motivate me, in-fact this has taught me a lot of things. Continue reading

core dump checking script.

2010-04-11 2 min read bash Linux Solaris
I was testing a program which crashing every now and then. It is very difficult in such scenarios to keep looking for the <a class="zem_slink" title="Core dump" rel="wikipedia" href="http://en.wikipedia.org/wiki/Core_dump">core file or keep checking for the running process. So I wrote this simple script that can check for core file in the particular path and keep running until it finds one. You can hack this script to send a mail once the core is found. Continue reading