jumps and marks in vim

2010-07-11 3 min read Linux Vim Tips
First we will talk about jumps in vim. Very useful for <a class="zem_slink freebase/en/navigation" title="Navigation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Navigation">navigation and jumping around the vim. The jumps are commands that lets you jump from one location to another location, like {{ or [[ and so on … From the help file of vim A &#8221;jump&#8221; is one of the following commands: &#8221;&#8217;&#8221;, &#8221;`&#8221;, &#8221;G&#8221;, &#8221;/&#8221;, &#8221;?&#8221;, &#8221;n&#8221;, &#8221;N&#8221;, &#8221;%&#8221;, &#8221;(&#8221;, &#8221;)&#8221;, &#8221;[[&#8221;, &#8221;]]&#8221;, &#8221;{&#8221;, &#8221;}&#8221;, &#8221;:s&#8221;, &#8221;:tag&#8221;, &#8221;L&#8221;, &#8221;M&#8221;, &#8221;H&#8221; and Continue reading

Deleting lines from the text file

2010-06-01 1 min read Linux
Really useful for pretty big <a class="zem_slink freebase/en/computer_file" title="Computer file" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_file">files. <a class="zem_slink freebase/en/sed" title="Sed" rel="wikipedia" href="http://en.wikipedia.org/wiki/Sed">sed –silent &#8217;1,100 d&#8217; <a class="zem_slink freebase/en/filename" title="Filename" rel="wikipedia" href="http://en.wikipedia.org/wiki/Filename">filename here the command will delete the first 100 lines. You can specify whatever range you want. This will not delete the lines from the file but only display the contents on the console after deleting the 100 lines from begining. If you want to store it in different file then you can use &#8221;>&#8221; or &#8221;»&#8221;<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www. Continue reading

How To Modify Your Wordpress Theme Via The Browser Using Stiqr

2010-04-27 6 min read Learning Uncategorized
<a href="http://feedads.g.doubleclick.net/%7Ea/O7jc_lFA7WTnPLGHjbYaxjhpRBM/0/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/%7Ea/O7jc_lFA7WTnPLGHjbYaxjhpRBM/0/di" alt="" align="bottom" /> <a href="http://feedads.g.doubleclick.net/%7Ea/O7jc_lFA7WTnPLGHjbYaxjhpRBM/1/da"><img src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/%7Ea/O7jc_lFA7WTnPLGHjbYaxjhpRBM/1/di" alt="" align="bottom" /> <img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/00_Stiqr_logo.jpg" alt="00_Stiqr_logo.jpg" width="253" height="114" align="bottom" />Ordinary <a href="http://www.makeuseof.com/tag/how-to-build-a-self-hosted-wordpress-blog-for-free/">self-hosted WordPress users know only too well that even though choosing and using thousands of available themes is a snap, creating one is an almost impossible task. You could use <a href="http://www.makeuseof.com/tag/customize-design-wordpress-theme-easily-constructor/">one of the customizable themes to modify the look to your liking, but that’s as far as you can go. Continue reading

Liquid rescale and remove objects from the images.

2010-04-12 1 min read Fedora Photo
Ever wanted to remove some unwanted object from an image. Wonder how many thinkgs you have to do, clone and delete and what not:) There is a simpler way, just paint it in foreground color. Does that sound ridiculous, not any more with Liquid Rescale. First install the plugin for liquid rescale for gimp. yum install gimp-lqr-plugin Now, just follow simple instructions below: in the menu, choose Layer and then Liquid Rescale click on the New button in the Discard features section on the right: a new layer will be created put the plugin window on one side of the screen without closing it, and go back to work on the gimp main windows choose the paint tool and paint over the area you wish to remove go back to the plugin window click the Refresh button at the bottom: you should see your discard mask appear in the preview optionally, in the Mode box on the left choose Lqr + scale back or Lqr + Lqr back click the Auto size button at the bottom of the Discard features section (optionally choose the scaling direction in the box at the side of the button before clicking it). Continue reading