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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
This is a script I wrote long time ago.It will load the last used status when Empathy restarts or when one of the accounts of the user comes online. This functionality was not available in Empathy at the time I wrote this script. Every time I restart Empathy, its chat status was reset to “Available”. But now it seems that ...
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”
Following is a screenshot of the problem. Screenshot on “Authentication is needed to run /usr/bin/dropbox as the super use” Fixing this problem is easy. Find where your dropbox executable is using the following command. which dropbox In my case it is /bin/dropbox. Open the file as root using a text editor. Then find the following lines. PARENT_DIR = os.path.expanduser("/var/lib/dropbox") DROPBOXD_PATH = ...
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 tested this in Ubuntu 13.04, but essentially this should work in any Ubuntu distribution. First install the libtool, autoconf, automake, uuid-dev, e2fsprogs packages. sudo apt-get install libtool autoconf automake uuid-dev e2fsprogs Then clone the 0mq source using, git clone git://github.com/zeromq/libzmq.git Then go in to the libzmq directory and run the following commands in order. ./autogen.sh ./configure make sudo make install ...
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 ...
TLDR; NSW Open Data Trip Planner API is a convenient API which provides loads of data related to New South Wales. It can be used to plan journeys from one place to another. (Ex : How to get from Central Station to Burwood city center, which trains buses/trains/ferried should I take to accomplish that, and when will those vehicles arrive) ...
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 ...
I wanted a decent charting library to use in one of my FOSS projects which was created using Vaadin 7.1.2. Since Vaadin charts, the default choice for that purpose under Vaadin 7 needs a license to use it, I switched my attention towards dCharts (https://vaadin.com/directory#addon/dcharts-widget). So I added the following maven dependency which is listed in the Vaadin site to ...
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 ...
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 ...