Archive for December, 2008

Converting CakePHP array to xml

Posted on December 11th, 2008 in CakePHP, Php, Programming | No Comments »

Content moved to http://www.almondjosephmendoza.com/2010/03/converting-cakephp-array-to-xml.html

Faster way to resize a picture in Linux

Posted on December 6th, 2008 in Ubuntu, linux | No Comments »

Here is the fastest way to resize a picture in linux through command line.

Download imagemagick and install it using the ./configure, make, make install or if your using Ubuntu you could sudo apt-get install imagemagick

Open terminal (Alt+F2 gnome-terminal)
Go to the director of your picture, eg desktop
cd ~/Desktop
Convert your picture
convert -resize 100x100! myPic.jpg myPic.png

Explanation:
convert is the program you need
-resize is the function you need for the resizing
100×100! – destination width and height, add ! to force it to 100×100, remove ! and it will respect the ratio of the picture
myPic.jpg is the source file or the file you want to resize
myPic.png is the destination file after the resize is done

Hope it helps

Remove Sounds in Terminal in Ubuntu

Posted on December 5th, 2008 in Ubuntu | No Comments »

Here is how to remove the sounds in terminal in ubuntu.
* Go Edit
* Profile Preferences
* On the General Tab unlick the Terminal Bells

Hope it helps