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

Linux:Please Don\’t Show the Command Line to the Uninitiated (via postie)

2010-06-24 1 min read Linux

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

Not long ago I had the opportunity to show off GNU/Linux to a friend. She&#8217;s been a lifelong Windows users and is just your average, non-technical computer user. She&#8217;d heard of this thing called “Linux,” but had never seen a Linux distro in use. So, I gladly booted up my laptop and also the desktop (we were at my house, my wife and I having one of our many cookouts) and showed her Linux Mint 7 via a live CD and also Ubuntu 8.10, which is installed on my family&#8217;s desktop.

Continue reading

Filename completion in Linux with mixed case and ignored case.

2010-06-23 1 min read Bash Linux

This is one of my favourites, alwahs keep it handy. Linux is case sensitive by nature but you will always find filenames jumbled up in the case. So what is the solution:

bind &#8221;set completion-ignore-case on&#8221;

Just execute the above in your bash command and file/dir name will behave like Windows. Remember that this is per session setting and thus the names do not get changed internally, it only changes the way to access it (specifically completion only). So if you want this behaviour in all your sessions put this in the appropriate profile file.

Continue reading
Older posts Newer posts