Tutorials
Create custom notification on your Ubuntu desktop using python
You can easily create custom notifications for your applications on ubuntu. Ubuntu's current notification system is called NotifyOSD. It provides api for several languages. Using python-notify library it is really so easy than in any other.
Ubuntu by default have the python-notify installed. If don't install it using
sudo apt-get install python-notify
Convert unicode codepoints to unicode hex values in java
In a part of our crawler development, we encountered a Bangla news site (http://www.kalerkantho.com/) which uses code points instead of unicode hex valus in their website. Although it renders banla fonts in browser, but when viewings source it only shows code points, so when downloaded by crawler we only got কકى similar. For the indexing purpose we needed to convert them to hex values so that it renders bangla font anywhere. The process of converting is really so simple.
Extract hyperlinks from html using regular expression in java
2 years ago, I worked with an crawler which can fetch webpages from internet, then parse the links from the page and then visit all the pages linked to the page. At that time I didn't have any idea about regular expressions. So I had to write around a 500 hundred line code to parse links and meta tags from html.
Yesterday, I had to do the same job again. This time I took up regular expression to parse the html <a tags followed by href attribute to extract the links.
How to allow users to execute sudo command in ubuntu
If you have a user account that cannot make sudo command then it because it is not in sudoers list. You must add the user to sudoers list to allow sudo command. Sudoers list is located in /etc/sudoers
So open up the file with visudo command. You must use this command to edit this
burhan@burhan-desktop:$ sudo visudo
If you want to set user permission like root user add it below
# User privilege specification root ALL=(ALL) ALL
Change root user password in ubuntu using terminal( The short way)
If you forget the root user password you can change with a simple tricky command in ubuntu. Login to your regular account. You should have the sudo comman available for your user account.
Now open the terminal and enter the command
sudo passwd
This will let you to change root account password as you used sudo! Now enter the new password and confirm. Yes! You are done 
How to add users and usergroup in ubuntu using terminal
It is very easy to create new user account in ubuntu using terminal. Just follow adduser and addgroup command.
Here is an example
I want to create a user named "nutch" with a new "nutch" user group. Here is how I did it.
First create the user group
burhan@burhan-desktop:/usr/share$ sudo addgroup nutch Adding group `nutch' (GID 1002) ... Done.
Now create the user account within the user group
Learn meaning of http response codes
What is http response code?
http response codes are some numbers sent to browser from server each a http request is made. Each of them has different meanings. They tells you how server response to the request url. Here is a details of all the available http codes.
3 important settings to make with custom php.ini
PHP.INI is the php configuration file that server uses. It makes lots of settings in an web server. It may include your site base directory, include path, temporary directory, timezone and lots of different php varaibles. Most of them are set by web hosts and you cannot make any change of them unless your are the host owner. But some setting you must make to let your site run smoothly and securely. So we must override some settings by putting an php.ini file. This will allow you to override some configurations of your host.
Create tree view in webpages using Google Visulaization Api
Today I am going to tell you about how to create a tree view or binary tree view in webpage using some apis like Google Ajax Api (Visualization Api)
Clean URLs by removing /index.php/ from urls in codeigniter
In codeigniter you can easily use very search engine friendly urls.
By default it is shown as
http://www.yoursite.com/index.php/controller_name/function/id
You can easily remove this disgusting index.php from your urls.
Create htaccess file
Create an .htaccess file in your ci root directory and enter the following codes

