things which came out my laptop

Install Subversion 1.5 on Ubuntu Karmic

Ubuntu Karmic includes 1.6.x version of Subversion but our source control server is not upgraded to 1.6. Its still in 1.5 version. Don’t ask me why I am interested in older versions of things, Mainly I work with remote team and SVN server is also hosted remotely hence I’m forced to consider downgrading my version of subversion so that my local working copy wont get corrupted.

First remove 1.6 version of svn from karmic installation,
sachin@sachin-laptop:~/Utility/utilscript$ svn --version
svn, version 1.6.5 (r38866)
sachin@sachin-laptop:~$ sudo apt-get remove subversion
Ubuntu Januty contains Subversion 1.5 in security packages, hence add jaunt package entry to your /etc/apt/sources.list,
deb jaunty-security main
Check if apt-get can see 1.5 version of subversion,
sachin@sachin-laptop:~$ sudo apt-cache showpkg subversion
Package: subversion
1.6.5dfsg-1ubuntu1 (/var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages) (/var/lib/dpkg/status)
Description Language:         File: /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages
MD5: 15da1bb51fb2e9ea5e25b3a489b864d9
1.5.4dfsg1-1ubuntu2.1 (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_jaunty-security_main_binary-i386_Packages)
Description Language:
File: /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_jaunty-security_main_binary-i386_Packages
MD5: 15da1bb51fb2e9ea5e25b3a489b864d9
Quick look at man pages of apt-get showed me how to specifiy revision using “=”, When I first time tried to install 1.5.4dfsg1-1ubuntu2.1, it failed,
sachin@sachin-laptop:~$ sudo apt-get install subversion=1.5.4dfsg1-1ubuntu2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: subversion: Depends: libsvn1 (= 1.5.4dfsg1-1ubuntu2.1) but 1.6.5dfsg-1ubuntu1 is to be installed E: Broken packages
So you need to older version of libsvn1 to comply with subversion version,
sachin@sachin-laptop:~$ sudo apt-get install libsvn1=1.5.4dfsg1-1ubuntu2.1
and now subversion, sachin@sachin-laptop:~$ sudo apt-get install subversion=1.5.4dfsg1-1ubuntu2.1 here you go, check svn version,
sachin@sachin-laptop:~$ svn --version
version 1.5.4 (r33841)
compiled Aug  7 2009, 01:44:11
Happy coding…

Google Waving… Next Generation Emails

Last sunday I got mail from Google Wave team saying,

“Recently, you applied for a Google Wave developer sandbox account. Your
sandbox account is now ready.”

and my long wait for Google Wave invitation ended. I received my google wave and sandbox invitation same time.

So What is Google Wave?

Google Wave is an online communication and collaboration tool that makes real-time interactions more seamless – in one place, you can communicate and collaborate using richly formatted text, photos, videos, maps, and more.

The whole idea started with the fact that Email as an invention is around 40 years old and primarily its form hasn’t changed. Engineers at Google thought, what would happen if email was invented today and that formed the basis of Google Wave.

With out wasting much time, I started exploring Google Wave features. As expected it is full of cool features.
One of the key features of Wave is its extensibility. For example, you can create robots, which can participate in waves just like humans do (that is once they are invited in) and reply to your requests like genie.
I decided to write a robot which will give cricket score updates in google wave upon request.
I resused python code from gnome Cricket score applet and wrote goole wave robot in python by following this tutorial.

In no time I am ready with my first Google wave robot,,

Screen shot 1: ,

Screen shot 2:

got Google wave account? give a try,

* How to add criscorewave robot to Google Wave?
Add a contact in your Contact. Clicking on (+) button Next to Manage Contacts…
* Using criscorewave
To use this robot, simply drop in its address as a new Wave participant. and send blip as “help”, you will be populated with list of commands.

Way to go!!!


This is so interesting & I am keen to try it… especially the robot you created! Great stuff & love the blog. Keep it up :-)

Scrolling Pidgin Status Message

With continuation to my earlier trick, I wrote another script this time in python to animate pidgin status like a news scroller on the bottom of the news channel, you can put whatever message you want.

Have fun…


– Sachin

Tell Your Friends How Many Seconds Are Left in the Decade

I got this idea from goggle new year seconds counter, I decided to set my pidgin status to showing seconds are left in the decade.
After bit of goggling found a command-line program called purple-remote that allows me to automatically update the Pidgin status and message lines. The purple-remote program is included in the libpurple-bin package, make sure you have it installed.

sachin@sachin-laptop:~/Utility$ sudo apt-get install libpurple-bin

Here is small script that does this trick.

sachin@sachin-laptop:~/Utility$ gedit

add text as follows:

Save and make it executable as follows:

sachin@sachin-laptop:~/Utility$ chmod +x

time to run script every second with watch command.

sachin@sachin-laptop:~/Utility$ watch -n 1 ./




after few requests I am writng cross platform utility which will do this trick:

You need to get the Smack API which is an open source, pure Java library for working with XMPP (clients only). The API can be downloaded from smack, .Just download the appropriate libraries and put the JAR files in your classpath. If you can’t figure out how it is done, please Google your way around.



Superb Yaar!!!

From Java to Python, I’m Loving It.

Its been just three months, I learnt Python (or I started learning it as there many more aspects to learn) and I am already very fond of it. Especially I have started using python for scripting work. I automated few things using python scripts which I had to do regularly like a creating users in oracle, copying / importing oracle dumps, syncing Wiki svn log with svn sever and many more.
Some might argue that you can do the same thing in shell scripts or other programming languages. You can do that but coding in python is 5-10 times faster and this article gives insight comparative of Java with python.
To create connection in Java, it involves three steps but with python its just one step

conn = cx_Oracle.connect(username, password, sid)

I am not bad-mouthing Java here. With JEE6 at doorstep, Java has progressed very well as web technologies.
For now, I will be using python for writing utility scripts unless I get chance to work on real big python Project.
As experienced Java programmers, I found this e-book very helpful for learning python
Coding in python as easy as in Java, I have already written cricket live score gnome applet in python which been huge success.

Being interpreted language Python is little bit slow. With the Java just-in-time compiler, Java is faster.

Ubuntu 10.04 First Alpha Released Today

After successful(?) release Ubuntu 9.10 Karmic, Canonical Ltd today announced 1st alpha release of Lucid Lynx, Ubuntu 10.04.
The Ubuntu developers are moving quickly to bring you the absolute latest and greatest software the Open Source community has to offer. The Lucid Lynx Alpha 1 is the first alpha release of Ubuntu 10.04, bringing with it the earliest new features for the next version of Ubuntu.

This release is LTS (Long Term Support. With the Long Term Support (LTS) version you get 3 years support on Ubuntu Desktop, and 5 years on Ubuntu Server.

Key features and changes in the Lucid Lynx will be:

* Inclusion of Gwibber, a microblogging client.
* Removal of GIMP as the image editor.
* A 10 second boot time.
Download link is here

You can try out the Alpha release on a virtual machine and participate in the development by reporting bugs. A full system installation or a dual boot with Windows is still not recommended, as the OS is still in its alpha stage.


are you talking about alpha 2 release, yes it made available 2 days before.
The Ubuntu 10.04 release is near. Recently the Ubuntu 10.04 final version was made avaialble to testers for testing.It is also known as Lucid Lynx. This technology supports kernel mode-setting for Linux kernel image boot more fluid between the boot and start X server. I am a Linux- Ubuntu user and I am very much eager to get the Ubuntu 10.04. I got the information about this from:

Google Chrome for Linux Officially

Till today I was using Chromium custom build to get feel of Google chrome web browser which was primarily released for Windows. Bit about chromium,

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. The Chromium codebase is the basis for Google’s Chrome browser.

But Finally Google has released GNU/Linux version Google Chrome

Thanks to the many Chromium and WebKit developers who helped make Google Chrome a lean browsing machine.
Here are a few fun facts from us on the Google Chrome for Linux team:

  • 60,000 lines of Linux-specific code written

  • 2,713 Linux-specific bugs fixed

  • 12 external committers and bug editors to the Google Chrome for Linux code base

  • 48 external code contributors

Needless to say, I installed it on my laptop and using it now,

Give a try, Ignore beta tag of release. Google’s “beta” products are more mature than the final releases of many other companies.(and that’s sad.)

Released 1.1 Version of CricScore Gnome Applet

With considering few must needed features requests, I am releasing 1.1 version of CricScore, a gnome applet.
So Whats new?,

  • Show Score Update Preference: With this preference user can enable/disable libnotify score update.

  • Score Update Notification TimeOut Preference: Timeout value for notification to disappear.

  • Fixed to avoid notifications after match is complete

  • Added logging support through Logging Module.

Screen Shot for Preference UI change,

Fun with programming!!!


– Sachin.

Such Huge Response for CricScore Gnome Applet Was Unexpected!!

In fact in its just 2nd day after 1.0-alpha release of CricScore Gnome applet, It has netted more than 100 downloads. Now this is a terrific figure by all means since I wrote this as utility for personal use as fun, I was not expecting it could be a professional gnome applet.
I just shared this across few Linux related forums on orkut, ubuntu communities and got such huge reply. It feel good factor to me.
There has been very positive reply so far like this,

“Great applet! I’ve been looking for something like this. Just what I needed!”, says Jorgo
upengan78 is running it on “gentoo”, he comments, “It is working as intended. Many thanks for such a nice applet. Good luck for more such applets”
Ankur suggested me to make it official package, “Cann’t we have your applet from official repositories ???”
Kamalakar says “I am using it today for India Sri Lanka score. Good to have it on Gnome top panel.”

There has been few feature requests also and few wanted to have one smiler applet for Football/Socker. I have already implemented few features in latest 1.0 release.
There are few people interested to work with me in writing an applet for Football, hopefully I will have it defiantly before FIFA2010.
Arun S.A.G wants to package this applet for Fedora, “I would like to package your applet for Fedora, i have tested it in Fedora 12 it works fine :-)”.

Thanks guys for such motivation and feedbacks.
Today I released 1.0 release, I did not do any code changes, as it did not require, alpha release worked like charm, but I added READEME, INSTALL, COPYRIGHT file as this applet is no more personal :).

There are many feature requests pending on my plate. I will try to work on those in spare time.

Possibilities Are Endless!!!


can you please give me more info?
xsession log will be helpful.
Also check for system requirements,
* Python 2.4 and ElementTree OR Python 2.5 (which already includes ElementTree)
* python-gtk 2.10 or newer
* python-gnome 2.16 or newer
* python-gnome-desktop 2.16 or newer
* python-notify 0.1 or newer
hi, i installed cricscore but cannot add to panel as it gives an error "The panel encountered a problem while loading OAFIID:GNOME_CricketScoreApplet". Please suggest the solution.

My First Gnome Application, Cricket Score Applet

As huge cricket fan, I wanted to have easy access to cricket scores, right at gnome-panel on Ubuntu OS, the way I see date/time. I searched for it on Internet but could not find. So I decided to write my own a gnome-applet which will show latest score at gnome-panel.
I modified this applet to show cricket score. Originally it was meant to show battery power.
Cricket score applet is written in python using my latest python skills which makes use of rediff scores as source.


This applet can be downloaded from here. It contains script copies the files to the necessary locations to make it show up in the applets list. You have to restart gnome display manager either by re-logging in or with this command:

sudo /etc/init.d/gdm restart

This is my first contribution to wonderful Linux world, hence you might find bugs. Please feel free to contact me @


[Update]: Few of interesting user requested me to put details step how to install this utility, here you go:

Download cricscore.tar.gz and navigate to that folder and run following commands, (in my case the folder “~/downloads”) and run following commands,

sachin@sachin-laptop:~/downloads$ tar xzf cricscore.tar.gz
sachin@sachin-laptop:~/downloads$ cd cricscore/
sachin@sachin-laptop:~/downloads/cricscore$ ls cricketscore.server
sachin@sachin-laptop:~/downloads/cricscore$ sudo ./
[sudo] password for sachin:

This step will logout, make sure you save all your work.

sachin@sachin-laptop:~/downloads/cricscore$ sudo /etc/init.d/gdm restart

After re-login, Right click in an empty space on your gnome panel and select Add to Panel from the menu that appears. A small window pops open, which displays the panel applets that are installed. Find “Cricket Score Applet” in the list, click Add, and then click Close. A new icon appears on the panel.

[update] hosted this utility at sourceforge


i am getting no module named am i supposed to install this module
Thanks Good work !!! This is just what i was looking for. :)
Great job so far !
Kindly add libvisual alerts for 4s,6s, wickets and if possible audio alerts as well.

Now this is a good idea! Sadly I don't use gnome though…
Thanks Ankur,
I will try to reproduce this.
Ankur Aggarwal
ohk the problem is when i added it in the panel…. no automic updation is there.To view the updated scored i have to select the match again and then new score and the same procedure goes on……..
moreover in the panel ball by baal facts like four and wicket and all also no there…….
but then i run it in shell and it works fine.
the problem is its not working properly in the panel but working fully in the shell.
that my experience
thankx :)
I have no idea as it is working fine for me.
But this issue has been confirmed many users. if you can give me more insight it will be great helpful as you can reproduce it.

Ankur Aggarwal
it works ohk with the shell :) tried that in todays match……….
i m also learning python so according to u what's the problem in previous situation……..
hope u will not mind in telling ur views
try running it in shell
> run-in-window
paste errors here if you get any.


– Sachin
Ankur Aggarwal
hey gr8 work….
but i m facing a problem it is showing the score of the selected match but not updating it……..
to view thw updated score i have to go to the prefrences againg then again select the match and then the new score is visible to me……
whats the problem?
There is no "best desktop", but there is a desktop that's best for you. It's a matter of preference.

I used KDE for a year, specially for Amarok. But then switched to Gnome
I feel gnome has much professional look and feel, KDE is good for who has switched from Windows recently.
which is best one,Gnome or KDE?
Hi Sachin,
nice to see your efforts to share your knowledge through this blog. We are proud to have a team-mate like you. All the best.

- Dhananjay
No… :(. It only works with gnome desktop. Kubuntu uses KDE.
Does it works for Kubuntu 9.10?
@ Amar,Atul
I will try to enhance this applet for football. do you know any such site which provides live soccer/football score like rediff scores for cricket.
Can you make one for football =)?
Hey, good catch, it seems exciting… keep it up buddy… :)
Great desire… really appreciate it..