Articles

Archive for December, 2009

Web Development in Ubuntu, 4-part Series

Posted at 10:59 pm by brett on December 21st, 2009

Under categories: Ubuntu,Web Development and tags: , , , , , , ,

Between December 2008 and March 2009, I wrote a 4-part series on web development in Ubuntu for the online magazine Full Circle Magazine. All articles have been translated into Chinese, French, Hungarian, Italian, Russian and Turkish.

I will be re-posting this series in HTML and extending the series soon.

Ubuntu 10.04 (Lucid Lynx) Wallpaper Contest

Posted at 4:16 pm by brett on December 21st, 2009

Under categories: Ubuntu and tags: , , ,

Just a reminder to the Ubuntu community that the contest for community-submitted wallpapers is continuing from Ubuntu 9.10 (Karmic Koala) into Ubuntu 10.04 (Lucid Lynx).

For Ubuntu 9.10 (Karmic Koala), 19 community-submitted wallpapers were chosen. This was a great improvement from the very first Ubuntu - 4.10 (Warty Warthog) - to Ubuntu 9.04 (Jaunty Jackalope) where only 2 to 4 wallpapers were shipped by default.

If you want to make Lucid a release to remember, head over to the Ubuntu Artwork Flickr page, sign up for Flickr if you don't have an account (unfortunately this is a necessity) and submit your wallpapers!

Here are my submissions thus far:

Optimizing PNG images for the web

Posted at 2:16 pm by brett on December 21st, 2009

Under categories: Ubuntu,Web Development and tags: , , , ,

Since Internet Explorer 6 is no longer the major browser used by most Internet users, it is now safe for us web developers to use PNG images exclusively in our designs.

My personal portfolio uses the PNG image format almost exclusively, especially where quality matters, but also uses JPG and GIF where smaller file sizes make sense.

Unfortunately, since PNG files provide such high quality (and therefore large file size) images, it isĀ imperativeĀ to reduce the size of your images for loading time (be nice to your user) and bandwidth (be nice to your server).

Thus, in Ubuntu, you can install a wonderful program called optipng that allows you to compress PNG files without loosing quality.

First, run
sudo aptitude install optipng

Secondly, change the directory to where your PNG files sit
cd /path/to/png/files

And then run this code to losslessly compress your PNG images
for file in `ls *.png`; do optipng $file ; done

The algorithm is not recursive, so you have to go into each folder that contains PNG images and run the command above. I saved several megabytes on my image-intensive portfolio by running this optimization.

Enjoy!