Browsing articles from "July, 2011"
Jul
19
2011

PHP resize large images with imagemagick

Resize with GD To resize an image with gd library , the code would be something like this : However the above has some problems. If a jpg image for example , is 5000px x 5000px then imagecreatefromjpg would uncompress it and use large memory ( 5000 x 5000 pixels). And then memory exceeded error might be thrown depending on how much memory is available to php. Resize with Imagemagick One possible solution is to [...]

Jul
10
2011

CSS3 Based Tabbed Navigation

CSS3 empowers us with amazing selectors. So, using CSS3′s powerful selectors, I built a CSS based tabbed navigation or boxes (whatever you call it) Here is the DEMO Here’s the code – Cheers!

Jul
9
2011

Ubuntu automatically mount partition at startup

Check your /etc/fstab file. It should look similar to this : Now if a partition is to be mounted at startup , a line for that partition has to be added to this fstab file. Command to get a list of all partitions : Typical output : Command to get the UUID of partitions : Typical output : Get the UUID of the partitions that you want to mount at startup. Add lines to fstab [...]