Glipper crashed with ValueError in load()

I found out that klipper is not working well in Ubuntu 11.10 version. I installed glipper in my machine and after a reboot, met with this error.

glipper crashed with ValueError in load(): invalid literal for int() with base 10: “\xcb#W\x84\xb0\x0e […] \r”

The workaround appears to be to just forget about the invalid history file (or move it away):

$ rm ~/.local/share/glipper/history

geo@ubuntu:~$ ll .local/share/glipper/history
-rw-rw-r– 1 geo geo 27041 2012-02-16 10:28 .local/share/glipper/history
geo@ubuntu:~$ rm -f .local/share/glipper/history

geo@ubuntu:~$ glipper &
[1] 7221
geo@ubuntu:~$ SHARED_DATA_DIR: /usr/share/glipper
Binding shortcut c to popup glipper
Changed process name to: glipper

Glipper started working again…

Reset Joomla admin password

Joomla admin password is stored in mysql, so it can be changed easily by running a simple mysql query.

If you have a cPanel account, use the phpMyAdmin to reset the password. Select the Joomla database and run the following query.

UPDATE `jos_users` SET `password` = MD5(‘newpass‘) WHERE `jos_users`.`username` = “admin” ;

“newpass” – replace this with the new password you wish to use.
“admin” – replace this with your username.

and submit the query.Now you should be able to login to Joomla admin page with the new password.

OSCommerce, images not displaying

If images do not display in IE, but they do in firefox, and if the includes/configure.php files are correct, the images are in the /images directory, and the permissions on the /images directory and the images are correct, then, you should go to includes/application_top.php and where it says $request_type = (getenv(‘HTTPS’) == ‘on’) try changing the “on” to “off”.

If that fixes the problem, then in the HTML source of /index.php file:

<base href=””>
should be something like:
<base href=””>

This should fix the issue.

RockMelt, Another New Web Browser

As you all know, multiple versions of five mainstream browsers just isn’t enough. RockMelt a startup founded by Eric Vishria and Tim Howes. They intend to launch a new and improved web browser into an increasingly-crowded market.

What makes RockMelt different is that it’s been backed by Marc Andreessen, the founder of Netscape Communications Corporation. He has stated that RockMelt will offer a different browsing experience. He suggests that most other browsers have not kept pace with web evolution, and remain based in the realms of static web pages rather than complex networked web applications:

Although he doesn’t elaborate on what those different things are, there has speculation that the new browser could offer tighter integration with social networks such as Facebook.

Currently, RockMelt is pure vaporware — although it does have a lovely logo. Only time will tell if it can offer anything over and above the existing browsers. For now, there are two conclusions we can make:

1. Browser competition is a good thing. (IE6 is boring)
2. Even more secure web!

Can RockMelt offer anything new? Will it be more than a nice logo? Are multiple browsers a help or a hindrance? Well, wait n see….

ISRO’s Bhuvan vs Google Earth

The Space Applications Centre (SAC) of ISRO has come up with ‘Bhuvan’, a challenge to Google Earth and Wikimapia. Bhuvan, which literally means ‘earth’, is a web-based tool like Google Earth, but it promises better 3-D satellite imagery of India than what is currently being offered by other Virtual Globe software. Indian specific features such as weather information and even administrative boundaries of all states and districts can be found in it.

Bhuvan is equally capable of offering images of the globe, but the best resolution area is India, at least for the time being. “Bhuvan will be able to give you an image from only 10 meters away”, an ISRO spokesman said. Bhuvan uses images taken at least a year ago by ISRO’s seven remote-sensing satellites in orbit including Cartosat-1 and Cartosat-2.

Unique features

1. Bhuvan allows users to access, explore and visualize 2D and 3D image data along with rich thematic information on soil, wasteland, water resources etc in the Indian subcontinent.

2. It displays multi-resolution, multi-sensor, multi-temporal image data.

3. Users can superpose administrative boundaries of choice on images as required.

4. It allows visualization of AWS (Automatic Weather Stations) data in a graphic view and use tabular weather data of user choice.

5. Fly to locations (Enables users to fly from the current location directly to the selected location)

6. It features a Heads-Up Display (HUD) navigation controls (Tilt slider, north indicator, opacity, compass ring, zoom slider)

7. Allows navigation using the 3D view Pop-up menu (Fly-in, Fly out, jump in, jump around, view point)

8. 3D Fly through (3D view to fly to locations, objects in the terrain, and navigate freely using the mouse or keyboard)

9. Drawing 2D objects (Text labels, polylines, polygons, rectangles, 2D arrows, circles, ellipse)

10. Drawing 3D Objects (placing of expressive 3D models, 3D polygons, boxes)

11. Snapshot creation (copies the 3D view to a floating window and allows saving to an external file)

12. Measurement tools (Horizontal distance, aerial distance, vertical distance, measure area)

13. Shadow Analysis (it sets the sun position based on the given time creating shadows and effects of the lighting on the terrain)

14. The Bhuvan portal is designed to run on slow Internet connections.

Google Earth / Bhuvan
Zoom levels up to 200 mt / Zoom levels up to 10 mt
Single layer information / Multi-layer information
Images upgraded every 4 years / Images upgraded every year
No alternate viewing options / Options of viewing on different dates
Uses international satellites / Uses Indian satellites

Bhuvan represents the whole India on your computer. The next version of Bhuvan is expected to be called Bhuvan ChandraBhumi, which will feature both earth and moon in resolution up to 347 m maximum in near side and 432 m far side which is taken by Chandrayaan. The Bhuvan project demonstrates the country’s expertise in both information and space technology.

The Bhuvan can be downloaded from

Convert Youtube videos to audio in Ubuntu 9.04

The tool that can be used for the purpose is Elltube.

To install Elltube open up a terminal and run the command:

sudo synaptic

The above command will open up the full-blown Synaptic tool. Search for “lame” (no quotes). Scroll down until you see the “ubuntu-restricted-extras”. Mark “ubuntu-restricted-extras” for installation.
Search for “ffmpeg” (no quotes). Mark “ffmpeg” for installation.
Click Apply to install.

Once all of this has installed download the Elltube.deb file and save it to your machine. Then run the command,

sudo dpkg -i /path/elltube_0.3-1_all.deb

This will install Elltube. You are ready to convert videos now!…
You will find Elltube in your Internet sub-menu of either your Main or Applications menu. When the Elltube application opens you will see the Main window.

The first thing you need to do is find a video you want to convert on Youtube. Find the URl and then copy and paste into the Youtube URL area. When you do this the details of the file will appear in the main window. Now what you have to do is to select MP3 (audio only) from the Format drop-down and select a Save to location for the download and conversion. When the details are done, click the Download button and the process will begin.

When the conversion process is complete, the “Video found!” message will change to indicate that the process is finished. When it has completed save the mp3 file to your machine.

PRM (Process Resource Monitor) in Linux Servers

PRM (Process Resource Monitoring) monitors the process table on a given system and matches process id’s with set resource limits in the config file or per-process based rules. Process id’s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more…


Download the package and extract it:
# wget
# tar xvfz prm-current.tar.gz
# cd prm-0.5/

And run the script:
# ./

All projects on are free for use and distribution in accordance with the gnu gpl, funding for the continued development and research into this and other projects, is solely dependent on public contributions and donations.


The prm installation is located at ‘/usr/local/prm’, and the configuration file is labeled ‘conf.prm’.

Open the ‘/usr/local/prm/conf.prm’ file with your preferred editor. There is an array of options in this file but we will only be focusing on the main variables.

Lets skip down to the user e-mail alert’s section and set the USR_ALERT value to ‘1’; enabling alerts.
# enable user e-mail alerts [0=disabled,1=enabled] USR_ALERT=”1″

And configure our e-mail addresses for alerts:
# e-mail address for alerts USR_ADDR=”root,”

Check the 5,10, or 15 minute load average; relative to the later option below for min. load level.
# check 5,10,15 minute load average. [1,2,3 respective of 5,10,15] LC=”1″

PRM optionally has a required load average for running. If the load is not equal to or greater than this value; PRM will not run. Setting this value to zero will force the script to always run but this should not be needed.
# min load level required to run (decimal values unsupported) MIN_LOAD=”1″

This is the introduction described wait value, used for pauses between trigger increments. The value of wait multiplied by the value of kill_trig equal the duration of time before a process is killed (10×3=30seconds).
# seconds to wait before rechecking a flagged pid (pid’s noted resource # intensive but not yet killed). WAIT=”10″

The trigger limit before processes are killed, described in detail in the above ‘wait’ description and introduction.
# counter limit that a process must reach prior to kill. The counter value # increases for a process flagged resource intensive on rechecks. KILL_TRIG=”3″

The max percentage of CPU a process should be allowed to use before PRM flags it for killing.
# Max CPU usage readout for a process – % of all cpu resources (decimal values unsupported) MAXCPU=”35″

The max percentage of MEM a process should be allowed to use before PRM flags it for killing.
# Max MEM usage readout for a process – % of system total memory (decimal values unsupported) MAXMEM=”15″

That is it. You should tweak the MAXCPU/MAXMEM limits to your desired needs but the defaults should be fine for most.

The executable program resides in ‘/usr/local/prm/prm’ and ‘/usr/local/sbin/prm’. The prm executable can receive one of two arguments:

-s Standard run
-q Quiet run

The log path for prm is ‘/usr/local/prm/prm_log’, as well pid specific logs are stored in ‘/usr/local/prm/killed/’.

A default cronjob for PRM is installed to ‘/etc/cron.d/prm’, and is configured to run once every 5 minutes.

There is a provided ignore file, to ignore processes based on string rules. The ignore file is located at ‘/usr/local/prm/ignore’. This file supports line separated ignore strings. As a default the strings ‘root, named and postgre’ are ignored by PRM; this script was not intended to monitor root processes but rather user land tasks. It could easily watch root processes by removing the given line in the ignore file but this is strongly discouraged.

Delete ALL Posts in WordPress

If you need to delete all the posts you have written, yo can use use a simple plugin called WordPress Suicide. Quite a name right? It allows to null all major tables like wp_posts and wp_terms. It’s just if you need to remove all the posts and all categories, not one by one.

FFmpeg Yum Installation

The following steps will do ffmpeg installation on your server:

# wget
# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# yum install ffmpeg.i386
# yum install ffmpeg-devel.i386