Sunday, April 28, 2013

Monitoring dynamic changes in dmesg

By running following command in terminal allowes you to monitor dynamic changes in dmesg.

 $ watch "dmesg |tail -15"  

Saturday, April 27, 2013

Resizing the image and convert between image format

Use the convert program to convert between image formats as well as resize an image. It has ability to crop, change aspect ratio of image etc. 

Resizing image to exact size:

 convert <input_img> -resize 300x200^ -gravity center -extent 300x200 <output_img>