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 [...]
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!
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 [...]
Subscribe
Recent Posts
- C code to perform IP whois
- Turbotrace – a free multithreaded and visual traceroute utility for windows and linux
- Function pread for windows
- Quick Tip: Getting the Next and Previous Items or Posts
- Compile wxwebconnect on Ubuntu 11.04 64 bit
- Disqus Comments Importer Script in PHP
- Beginners’ guide to socket programming with winsock
- Handle multiple socket connections with fd_set and select on Linux
- Beginners guide to socket programming in C on Linux
- Gui whois client in python with wxpython
An article by Binary Tides