How I “earned” a Google Summer of Code project…!

Ishan's way
It’s not a sin to try, the real sin is not trying at all should have been the thought that was working on my head in the months of March and April 2011, in the time that I was working hard to find a project in Google Summer of Code 2011, as a 2nd year student in the department of ...

Adding a template for new Python files in Emacs

Ishan's way
I wanted my name and email address to appear in the top of the page every time I create a new python file in Emacs. So here’s what I did to achieve that. First of all create a folder called templates in the .emacs.d directory (the .emacs.d directory is located in your home directory. If it does not exist, just ...

A simple FAT32 bootloader written in assembly to boot from USB drives.

Ishan's way
This is an assignment done by me for a second year project in the university. The goal was to write a bootloader that can boot the given OS ( JOSH ) from a pen drive which is having FAT32 file system( We were supplied with a bootloader that could boot only from a FAT12 file system ). What this bootloader ...

How to fix the Folderview screenlet properties dialog exception throw

Ishan's way
Folderview screenlet is one of the screenlets that I have found very useful. But it doesn’t function correctly with the new python version (python 2.7). When the option is selected to view the properties dialog it gives the following exception. Traceback (most recent call last): File “/usr/lib/python2.7/site-packages/screenlets/__init__.py”, line 1913, in button_press self.menuitem_callback(widget,’info’) File “/usr/lib/python2.7/site-packages/screenlets/__init__.py”

Set brightness automatically at the startup in Linux

Ishan's way
When ever I restart (or logout and login) my laptop the LCD display brightness is set to the maximum value. Even if I set the brightness settings in the power to the value I need, they won’t be in effect when I restart the machine. To solve this problem I wrote the following python script. First you need to add ...

Start empathy automatically when network connection is available

Ishan's way
I have noticed that Empathy (the default multi-protocol chat client in Ubuntu 11.04) doesn’t re-login to the accounts after the network is dropped and re-connected. So I wrote the following python script to solve this problem. The script will be using D-bus signals to detect the network connection status.This will make empathy to, connect automatically when network connection is established ...

Java Slick sound problems in Linux

Ishan's way
My operating system is Ubuntu Linux 11.04 and I am using Java Slick library to build a game in these days. I faced the following error when I tried to load sounds using Music backMus=new Music(“path/to/file”); . INFO:Initialising sounds.. AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory ERROR:Sound initialisation failure. ERROR:Could not locate OpenAL library. org.lwjgl.LWJGLException: ...

How to put Conky under the windows?

Ishan's way
Some of you may have experienced the problem of Conky being over the windows when the machine starts. So you have to manually restart Conky using killall conky; conky . But this can be easily avoided by editing the .conkyrc file. All you have to do is to set the “own_window_type” option to “normal”. Then Conky will appear under the ...

mod_rewrite problems in Apache2 + Ubuntu ?

Ishan's way
How to check whether mod_rewrite is installed? Create a text file named check.php in the www folder and insert the following code to it. <?php phpinfo(); ?> Then go to the web page in your browser using the url “localhost/check.php”. Then you’ll see information about the php version of the system. Under the “Configuration” title there’s another title called “apache2handler”. ...

Can’t play songs in Amarok after installing it in ubuntu?

Ishan's way
I installed Amarok in Ubuntu Yesterday. But the problem was it couldn’t play mp3/mpg/mp4/m4a files. After a bit of searching I was able to figure out a solution. What you have to do is to install libxine1-ffmpeg package. It just a simple sudo apt-get install libxine1-ffmpeg Then everything worked fine for me. Hope this helps…!

Handling images in java using imageIO

Ishan's way
Have you ever faced the need of sending an image through a network using a Java program? If yes, you must have probably read the image to a byte array sent it through the network. The problem with this method is it is too long and you have to remake the image file ( using the received byte array) at ...

A basic guide to encryption -2

Ishan's way
If you didn’t read the first part of this article you can read it by clicking here. Ok, let’s continue our discussion on encryption. From this article onwards, I’m going to elaborate on types of encryption. Each of these types has something in common. That is the sender encrypts the set of data ( particularly a file) using a password ...

A basic guide to encryption -1

Ishan's way
Encryption ? What is it? What’s its relevance to you? Do you think you have never used any kind of an encryption method? If your answer is “no”, definitely you are mistaken!. We use encryption in many events of our day-to-day life. Specially as Internet users encryption helps us a great deal. We are just ignorant about its services. As ...

Create custom error pages in cPanel

Ishan's way
As we know, when we connect to a web server, if some error occurs, the server will show us some error message. As an example if the web page we are requesting is not available in the server it will generate a 404-page not found error. But as you have noticed, in most cases this error page is just a ...