Browsing articles from "June, 2009"
Jun
30
2009

Create short links using bit.ly from php

bit.ly is a simple url shortner which has an api , which can be called from within php to shorten links. Code : The above function can be used to shorten a big url , as : The function needs an api key. To get your api key simply register at bit.ly then go to My Account and get your api key.

Jun
27
2009

Create a deb file from source on Ubuntu

To create a .deb package file on Ubuntu you need a utility called checkinstall.sudo apt-get install checkinstall 1. Extract the source of the application in a folder.2. Run : ./configure3. Run : make4. Now run : sudo checkinstall checkinstall will ask for some information most of which you can skip except the version of the package being created. Once finished a .deb file would be created which can be used to install the package by [...]

Jun
15
2009

Put flash in webpage – html page

Here is the simple code to put flash animation (swf file) on a webpage.

Jun
8
2009

Screen Resolution 1440 x 900 in Ubuntu

Ubuntu 9.04 did not detect the native resolution of my new LCD monitor which was 1440 x 900. Fix : 1. Get the modeline for the required resolution + refresh rate using the gtf command. The modeline is to be added to the xorg.conf file at /etc/X11/xorg.conf Take a backup of the file before editing it. On a fresh Ubuntu installation the file may look small like this : Simply add the modeline to the [...]

Jun
7
2009

Draw – Plot graphs with mootools

Plootr is a useful library based on mootools 1.11 which can be used to plot bar graphs , line graphs and pie charts. It is similar to Plotkit which is based on Mochikit javascript framework. For jQuery framework there is a library Flot. Other libraries include JsCharts , TableToChart etc.