Browsing articles from "May, 2010"
May
27
2010

Enable mod expires on Ubuntu 9.10 Karmic Koala

mod expires is an Apache module that can send additional expiry information about a server file to a browser. If the expiry date is set to a far future date, then the browser will fetch the file from its cache on next request and will not contact the server. This will speed up the loading time of the website. mod expires is typically used for static files like javascript , css and images. To enable [...]

May
26
2010

Speed up Swing GUI Java Apps

I was writing a small database application using Java and Apache Derby in Netbeans. Soon, felt that the speed should be improved as it was slow compared to a c++ or python app. There are a few tweaks which could give significant improvement in the speed of a swing gui application. 1. Multithreading – Proper use of threads can significantly improve the applications speed and also its “perceived speed” or responsiveness. Time consuming tasks should [...]

May
25
2010

Useful ffmpeg and mencoder commands on Ubuntu 9.10 Karmic Koala

FFmpeg can be installed easily from synaptic Some useful FFMPEG commands : 1. convert mpeg to flv 2. convert mp3 to flv 3. convert mpeg to flv with mp3 4. convert ogv to avi -i denotes the input file path -acodec – denotes the audio codec , libmp3lame in this case , can be installed from synaptic -s the dimension of final movie e.g. 480×360 -ab audio bitrate of output e.g. 64000 FFMpeg Options FFmpeg [...]

May
10
2010

Access other partitions as writable from Dolphin KDE in Ubuntu

To access other partitions as writable execute the command. where directory /media/disk is the path to your partition.