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

Upload a video to youtube

2010-06-23 1 min read Linux

<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/JXJj-wy4keA/upload-a-video-to-youtube">Upload a video to youtube

  <td>
    <div class="bash codecolorer">
      google youtube post <span class="re5">--title</span> <span class="st0">"My Video"</span> <span class="re5">--category</span> Education ~<span class="sy0">/</span>myvideo.avi<span class="sy0"></</span>tt<span class="sy0">><</span>tt<span class="sy0">></span>
    </div>
  </td>
</tr>
1

Google just released a new commend line tool offering all sorts of new services from the commend line. One of them is uploading a youtube video but there are plenty more google services to interact with.

Continue reading
Older posts Newer posts