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. Some things that I did not know before I submitted my photos there. So, I am going through a new learning and this has cost me 80% rejection in bigstock. I am trying with few more photos in next few days and probably I will get a better idea of what is required in the photos. Hope to get the tricks of the trade soon. BTW, another way you can help me keep this blog alive is by buying my photos cheap at bigstock and here is the link to my photo :

Continue reading

How To Run Subscriber-Only Competitions on Your Blog

2010-06-08 0 min read Linux
\"I\'m
Image by catspyjamasnz via Flickr

A Guest Post by David Cleland from TotalApps.

In 2006 I proudly started my first blog, DigMo! It was <a class="zem_slink freebase/guid/9202a8c04000641f800000000003ac3a" title="Technology" rel="wikinvest" href="http://www.wikinvest.com/industry/Technology">technology, it was creativity, it was music and it was <a class="zem_slink freebase/guid/9202a8c04000641f80000000000141ab" title="Education" rel="wikipedia" href="http://en.wikipedia.org/wiki/Education">education. Despite it being a bit of blog soup I was pleased at how quick the site grew but within a few years it reached a critical point beyond which I really couldn’t get the traffic to grow. The site was frankly far too general to appeal to a specific community.

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. This is a very simple script. And this should work on solaris too..

Continue reading