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 ...

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”

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 ...

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 ...

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: ...

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 ...

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”. ...

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…!

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 ...

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 ...

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 ...

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 ...

Previous Page