need help on deciding the ISP to host my website.

2010-06-25 1 min read Uncategorized

My <a class="zem_slink freebase/en/internet_hosting_service" title="Internet hosting service" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet_hosting_service">hosting services account is expiring next month and I am evaluating to see if I should stick with the current <a class="zem_slink freebase/en/internet_service_provider" title="Internet service provider" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet_service_provider">ISP (<a href="http://znetindia.com">http://znetindia.com or <a href="http://zneti.com">http://zneti.com). I am quite happy with the current service but miss the <a class="zem_slink freebase/en/shell_account" title="Shell account" rel="wikipedia" href="http://en.wikipedia.org/wiki/Shell_account">shell account service. Since there is no shell account so I cannot do much on the <a class="zem_slink freebase/en/server" title="Server (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Server_%28computing%29">server..

Continue reading

bash script to change the vim colorscheme from the list of locally available schemes

2010-06-24 0 min read Bash Fedora Learning Linux Vim Tips
\"MacVim
Image via Wikipedia

Today I was just wondering how good it would be to have a script to change the <a class="zem_slink freebase/en/vim" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim colorscheme from the <a class="zem_slink freebase/en/cmd_exe" title="Command Prompt" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command_Prompt">command prompt. The plan for the script was simply to print the list of available schemes and then let the user select the actions from there on. So, here is the result:

Continue reading

5 Ways to Print Folder and Directory Contents in Windows

2010-06-24 6 min read Linux

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

<a HREF="http://feedproxy.google.com/~r/Makeuseof/~3/zKIpFnJgTKg/">5 Ways to Print Folder and Directory Contents in Windows

<img SRC="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/TNail1.png" ALIGN="bottom" ALT="" BORDER="0"/>It’s one of those simple tasks that suddenly come upon us and we have no idea how to go about it. I had a whole fat folder filled with ebooks and someone casually asked me to send over a list. A list… that sounds really simple.

Did I forget to mention that the ebook folder was really filled with a lot of titles? It must have had almost 120 ebooks. I almost started manually typing the names when I figured that there must be a less laborious way to print out the directory contents.

Continue reading

Use GIMP to create awesome looking collage in minutes

2010-06-24 2 min read Fedora Linux Photo

Here is an example to begin with:
<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/300x200-dscn0161.jpg"><img class="alignnone size-full wp-image-1228" title="300x200-dscn0161" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/300x200-dscn0161.jpg" alt="300x200-dscn0161" width="267" height="200" />

I will make another collage as an example with screenshots to take you through the process.

First decide on the size of the collage. I will take 8×12 inches as example. Now, decide on what kind of collage you want. If you want similar to one above then we would need some similar photos to go in the background otherwise you can use some brush strokes as the background image. Now fire up gimp and select new image and enter the properties:

Continue reading

Bug in Curl is fixed

2010-06-24 1 min read Linux

<a href="http://bashcurescancer.com/bug-in-curl-is-fixed.html">I love curl. I use it quite often to perform HTTP HEAD requests:
$ curl -I http://bashcurescancer.com
HTTP/1.1 200 OK
Date: Mon, 14 Apr 2008 03:11:35 GMT
Server: Apache/2.2.6 (Unix)
X-Pingback: http://bashcurescancer.com/wordpress/xmlrpc.php
Last-Modified: Mon, 14 Apr 2008 02:38:11 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
However, I sometimes forget if a HEAD request is -I or -i, as such I …

Check file usage using fuser

2010-06-24 1 min read Fedora Linux

There is a package called psmisc that provides a useful application fuser. The package provides the below (on fedora):

/sbin/fuser
/usr/bin/killall
/usr/bin/peekfd
/usr/bin/pstree
/usr/bin/pstree.x11

There are couple of options you can provide on the terminal to fuser. The main purpose of the binary is to check the process id of the process using the file. This can be useful if some file operation on a file is blocking something for you 🙂

Continue reading
Older posts Newer posts