Cleansweep Stats

Total bugs with patches: 2389 (-6)
Reviewed patches: 423 (-5)

Bugs with ‘patch-needswork’: 99 (0)
Bugs with ‘patch-forwarded-upstream’: 187 (-5)
Bugs with ‘patch-forwarded-debian’: 63 (0)
Bugs with ‘indicator-application’: 39 (+1)
Bugs with ‘patch-accepted-upstream’: 61 (+1)
Bugs with ‘patch-accepted-debian’: 8 (-2)
Bugs with ‘patch-rejected-upstream’: 19 (0)
Bugs with ‘patch-rejected-debian’: 3 (0)

Last updated: Sun, 28 Nov 2010 08:05:45 +0100


Cleansweep Update and Laptop Back

About a few days into Maverick cycle, my laptop’s motherboard died on me. I just felt hopeless and lost. About a month later I found someone who said he’d repair it for me. He did. A new motherboard and it worked beautifully. Only I killed it within 24 hours 😀 I’m awesome aren’t I?

Finally, last Friday I got it repaired. Now I have peace of mind to concentrate on my Ubuntu stuff. Its been a few weeks since we’ve stopped posting cleansweep stats. It was mostly due to work work and busy days otherwise. So, continuing it again. I’m very glad that I can now review patches again after while.

Total bugs with patches: 2385 (+13)
Reviewed patches: 427 (+1)

Bugs with ‘patch-needswork’: 100 (+2)
Bugs with ‘patch-forwarded-upstream’: 187 (0)
Bugs with ‘patch-forwarded-debian’: 62 (+1)
Bugs with ‘indicator-application’: 38 (0)
Bugs with ‘patch-accepted-upstream’: 61 (-1)
Bugs with ‘patch-accepted-debian’: 10 (0)
Bugs with ‘patch-rejected-upstream’: 19 (0)
Bugs with ‘patch-rejected-debian’: 3 (0)

Last updated: Sun, 14 Nov 2010 08:05:50 +0100

Cleansweep Updates

Total bugs with patches: 2196 (-37)
Reviewed patches: 420 (+11)

Bugs with ‘patch-needswork’: 99 (+5)
Bugs with ‘patch-forwarded-upstream’: 177 (+3)
Bugs with ‘patch-forwarded-debian’: 62 (0)
Bugs with ‘indicator-application’: 39 (-2)
Bugs with ‘patch-accepted-upstream’: 56 (-1)
Bugs with ‘patch-accepted-debian’: 10 (0)
Bugs with ‘patch-rejected-upstream’: 18 (0)
Bugs with ‘patch-rejected-debian’: 3 (0)

Last updated: Sun, 22 Aug 2010 08:05:33 +0200

Working with Google Maps

There used to be a time when there was this huge maps craze, it has since passed, but Google Maps remains the most recognized map applications seen on the internet.  Recently, I worked on Google Maps API for a client.  This post is a retrospect look at how it went.  I’ve not worked with other map systems, so I cannot compare my experience.

My task at hand was to create a store locator that would take an address as input and plot all the points on a map that was within 100 miles of the given location.  A fairly simple map application, except I decided to innovate.  My first stop was the articles page on the Google Maps API Reference page.  I found a very handy tutorial which was exactly about creating a store, wow that made my work much easier.  What I found very helpful from that tutorial was the formula.  this formula.

SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) – radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 25 ORDER BY distance LIMIT 0 , 20;

That is the heart of the entire module.  That forumla returns coordinates that are within 25 miles of a point with coordinates (37, -122).  The complexity (if at all) of the application is to pass data from a database using PHP or other server-side language and passing into a javascript function.  The tutorial that I was looking at used xml to pass data to the javascript function.  This of course is nice, but I was a bit lazy and a bit innovative.

In my quest for something better, I discovered JSON.  Now, this seemed simple enough since is 2010 and most languages have JSON support including PHP.  So, I put all the the results into a hidden textbox as JSON and wrote a javascript function that would execute on window load.  Using that information, I could then loop through it and mark points on the map from that.

jQuery being an awesome library provided a means for me to do exactly that.  Icould loop through each of them and plot points on the map quite painlessly.

function markOnMap(x, y) {
    geocoder = new google.maps.Geocoder();
    latlng = new google.maps.LatLng(x, y);  //center the map to the coordinates of the searched address
    var myOptions = {
        center: latlng,
        zoom: 8,
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        mapTypeControl: false
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    var markers = document.getElementById('marker').value;
    var mapPoints = $.parseJSON(markers);
    var marker = new Array();
    i = 0;
    $.each(mapPoints, function() {
        var latlng = new google.maps.LatLng(, this.lng);
        marker[i] = new google.maps.Marker({
                    map: map,
                    draggable: true,
                    position: latlng,
                    content: '<b>Name : </b>' +, //very important
    google.maps.event.addListener(marker[i], 'click', function() {
        infowind = new google.maps.InfoWindow({
            content: this.content,
            });, this);

(WordPress seems to gobble up the indenting, so if you want the code, its on

When using infowindows, its very important that the content is stored inside the marker and then used to pop out the infowindow, that’s the only way that works.  I spend about 5 hours trying to figure that one out.

Time flies

The past few weeks have forced me to think carefully about how I spend my time.  Deadlines at work inching closer cut my volunteering time.  However, this has had a positive effect overall.  I’ve been able to sit back and think on how I spend my day.  I’ve noticed that most of the time, I just start my day without thinking or planning on what I intend to do during that day.  In the last 1 to 2 days though, I’ve been writing down what I wish to accomplish before I go to bed (note: not before night, but before I sleep :D).  I put down every single and small item and cross it off before the end of the day.  I’ve seen that I’m more productive this way.  The most pleasure comes when I get to cross an item off the list.  It might as well be a very small item like

Fill up gas before going to work

But when I do cross it off the list, the feeling is just great!  Being a geek, I’ve tried geeky solutions like Tomboy Notes, but I’ve found nothing works as good as good old paper an pen.  I tried prioritizing, but I ended up spending time classifying stuff as priority and not priority, this further forced me think in terms of “Will I get this done today? If I don’t intend to, I’m not writing it in here.”  This way my list is trimmed down to stuff I really want to do, not a wish list of things I want to do in the next 10 years.

What about you? What methods do you use to mange your time?

Ubuntu Hour in Bangalore

The weather was kinda nice 😉

Woo! After a while, the Ubuntu loco community is awakening in Bangalore again.  I had announced a meet up on the mailing list a while back.  I had my fingers crossed as to how many would turn up and how it would be.  Most people assured me “if there are 2 people and the other person isn’t your imaginary friend, its a success!

I’m glad to report that we ended up with 7 people coming in.  It started out a bit slow with just me sitting alone in Cafe Coffee Day on Richmond Road.  To be a little more noticeable I opened up the laptop and sat in such a way I could see everyone who walked in.  Anyone who looked lost was definitely looking for the Ubuntu Hour (note to self:  Sticker on laptop sounds like a good idea now).

R to L: Arjuna, me, Ganesh, Harish, Manish, and Venkatesh

Ganesh walked in first followed later by Harish and Arjun almost at the same time.  We sat chatting for some time until I saw noticed another guy looking lost and Manish joined the party.  Later on Venkatesh also joined us giving us more life!

We talked for quite a bit about what we do for a living and what we do for the free software community.  All of the people seem to be contributing in one way or the other and it was fun to hear about what others do.  We packed up at around 5 and walked out to run into a DD, Ritesh, who was planning on making it but got late.

R to L: Manish, Ritesh, Harish, Ganesh, and Venkatesh

And we ended up talking for some more time outside the coffe shop.  Meeting geeks is fun!  We’ve plan to meet up every on the last Saturday of every month with announces sent to ubuntu-in and ilug bangalore list.  As soon as the venue for the next one’s confirmed I’ll blog and tweet about it!  Thank you all for coming 🙂  The pictures are all on my flickr.