## Moved!

Looks like I forgot to add a note here – I’ve moved this blog to nigelb.me! Follow me there ðŸ™‚

## Have an interesting project you want to talk about?

We also have 2 suggestions for talks about Debian

How to co-ordinate with Debian, how-to for forwarding patches and bugs and other ubuntu-specific debian things like how to use reportbug

If you’re interested in taking one of those 2 sessions, add your name to an empty slot in the timetable!

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) {
latlng = new google.maps.LatLng(x, y);  //center the map to the coordinates of the searched address
var myOptions = {
center: latlng,
zoom: 8,
mapTypeControl: false
}
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.lat, this.lng);
map: map,
draggable: true,
position: latlng,
content: '<b>Name : </b>' + this.name, //very important
});
content: this.content,
});
infowind.open(map, this);
});
i++;
});
}```

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

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?

## Progress Report

Over the last week, we had David Futcher who was on a week’s internship with Canonical.Â  Jono assigned him to Reviewers Team.Â  He totally rocked the week.

David did a thorough review of the docs with a good number of changes.Â  David and Daniel Holbach conducted a classroom session with good participation.Â  Daniel and Adnane Belmadiaf also got together to make a new pretty looking meter.Â  It uses javascript and we’d be very glad if you put it on your websites and blogs.Â  (WordPress doesn’t allow me to put in on mine, sigh)Â  David also wrote a supybot plugin to print out the number of patches in review queue

This weekly progress report will check if we’re on target to finish reviewing all the current patches by maverick release.Â  I calculated the number of days that we have from the start date to the end date.Â  The operation runs from June 4th to October 10, clearly, fewer days than I expected when I set the target of 15 bugs per day.Â  There are only 128 days for us to operate.Â  Not that we won’t be reviewing patches after that, but the goal is to get it down to 0 by maverick release.Â  (No! I’m not dreaming!)

15 bugs per day makes us fall short, badly, it only makes it 1920.Â  So, I’m announcing an increase of the daily target from 15 bugs per day to 20 bugs per day.Â  That will perhaps keep us on target better and deal with the new patches that come in every day.

20 bugs per day means we should have reviewed at least 200 bugs by now for us to be on target.Â  As of me writing this post, we’ve reviewed 388 bugs leaving only 1564 bugs to go!Â  Yes, we rock!

Even though, we’re well on our way to meet the target, we need your help! Even 1 patch per day helps us.Â  When you have free time, please help patch review.

PS:Â  When a patch moves out of review queue, that doesn’t mean the patch is integrated, it means that we have done a review and its either in the upstream tracker, or debian BTS, or the patch wasn’t good enough and needs work.

## UDS-M Day 5

Phew, finally I get down to writing day 5 overview, a few days after UDS.Â  Generally, I write the previous day’s blog post on the next day.Â  After day 5 though, I had to get work (yeah, on a Saturday).Â  On Friday, I decided to tackle my power trouble by going outside for the hours that I know in advance I won’t have power.Â  Overall, good idea, but they decided to cut power at different times.Â  Sigh.

First thing in the morning was a call with Daniel Holbach to discuss about the Cleansweep Project.Â  Skype kinda gave us trouble and we ended up using Facebook chat in the end to discuss stuff.

Community Roundtable
A round up in the morning of all the community stuff including what we have to go ahead.Â  My memory is faint about what we talked, but I vaguely remember everyone summing up the week and the progress that was made.Â  Also, someone was playing music from Benjamin’s laptop, which included the Titanic song.Â  Fun times ðŸ˜‰

Ubuntu Women Session
A session I didn’t want to miss.Â  This session was very goal oriented from all the other sessions.Â  I liked the mentorship discussion and revival of the whole thing.Â  I’ll probably sign up to be a mentor.Â  I’ve already helped a few friends that I know through UW in other teams like Bug Squad.Â  The idea was not to replace the other mentorship options but to work with the others and to give a list of folks on the UW wiki who can be contacted for particular stuff.

I decided to take a break from the nest session to plan for Operation Cleansweep, a project that I have volunteered to coordinate.Â  I put up wiki pages and came to the realization that we needed more time to get things together.Â  I’d rather have a proper start with documentation everything ready rather than having to wait.Â  I pinged Daniel and we decided to postpone start date to May 24th, 2010.

Lightening Talks

Travis Hartwell talked about how he wanted a way to pull the source for all the dependencies of a package with one command instead of typing out many different commands.Â  I was pretty sure sed or awk could do something coupled with apt-cache.Â  My sed foo is pretty low and I asked my good friend Mackenzie Morgan wrote something up for this.Â  Travis, this one’s for you buddy

apt-get source \$(apt-cache depends gwibber | awk ‘/Depends/{ print \$2Â Â }’)

That command would get you all of Gwibber’s dependencies.Â  You can change that package name to get the source of dependencies for any package.Â  This source will be downloaded into the current folder when you’re running it from a terminal.Â  Perhaps someone could make the whole thing more prettier, but hey, this is a start ðŸ™‚Â  Thanks again maco!

Advocate the use of daily builds
One of the projects that Daniel Holbach has been assigned for this cycle.Â  Its been given a high importance and I realize the reason.Â  A daily build means every time you write new code, it will be built for you and a whole lot of folks can test it for you and give you bug reports.Â  Various improvements to LP were discussed including a rollback option among the others.

Ubuntu News Team
Amber is the chief editor of the Ubuntu Weekly Newsletter, so I attended this one hoping it would be interesting and it was!Â  A lot of discussion about unifying teams, etc.Â  There was a thought of doing away with Fridge which I stopped right away.Â  Reminding you folks again, We WANT the Fridge!Â  Well, it wasn’t a serious consideration but a thought someone had.Â  All in all, they made some tough calls, which will happen internally.Â  Also, Fridge is going to be in WordPress soon, so that should help make a lot of things easier.Â  I don’t remember who, I think Joey, will be working with the Design Team for a new theme, etc for the Fridge.

Closing Session
Finally, the UDS comes to a close.Â  Everyone had great fun for a week and did lots of work.Â  Most people were tired and close to burn out (yeah, from all the staying up late in the bar or out partying ðŸ˜‰ ).Â  Seriously, it was tiring.Â  Even from remote, I was burned out.Â  Last 2 days I’ve been so tired.Â  Hopefully I can recharge this week.Â  All the track leads summed up their tracks.Â  Important stuff include Robbie confirming that 10.10.10 could be a release date, pending TB approval.Â  He was talking about how much time each cycle has had and it seemed okay.Â  Jaunty cycle only had 25 weeks, so for 10.10.10, we’ll have only 23 weeks and it seems possible.Â  Scott, talked about btrfs and how it may be the default option for Maverick.Â  Keyword there being ‘may’.Â  Scott blogged about what needs to happen for that.Â  Leann summed up the kernel track decisions.Â  I didn’t understand much of it, so skipping that.Â  Design track, Desktop track, and cloud track also had a small summary which I don’t particular recall.Â  This why I should perhaps write blog posts then and there.Â  Oh yeah, now I remember one decision from desktop, Chromium will be the default browser for the netbook edition.Â  Finally Jono summed up the community track.Â  A huge list of summing up.Â  Most of which I think I’ve already written in the previous posts.Â  He announced Project Cleansweep.Â  Well, he announced it as Project Babu and how it was renamed to Project Cleansweep.Â  Well, I wonder why I even bothered to oppose if he was going to call it Project Cleansweep a.k.a. Project Babu ðŸ˜€

The final quote from Jono ‘Lets get seriously drunk people.‘Â  He did say he was kidding, but the tone he said it in, was awesome.Â  Marianna arranged for a treasure hunt and she was given a small token of appreciation from the community for all the hard work she did over the week.Â  Finally UDS is over!

Now, time to get to work.

## UDS-M Day 4

I’m probably taking the blogging thing too far with 3 back-to-back posts, but whatever.Â  One big reason I missed out on going to this UDS was my passport had expired and I hadn’t renewed.Â  I finally decided, it was time to re-apply and set out to the nearest Bangalore One to get a form.

It took me 1 whole hour and around 20 km of roaming around to find the place.Â  Absolutely no one knew the place when I asked around.Â  Even a policeman I asked gave me wrong directions.Â  Eventually, I ended up doing everything else on my things to do and was on the verge of giving up when I located the place.Â  Turns out, its less than 4 km from my place.Â  Sigh.Â  I circled around for an extra 10 km.Â  Before you talk about Google Maps, yes I tried it out there and it didn’t know what I was talking about.

Overall, Thursday was frustrating in terms of power availability.Â  I kept on getting power cuts and missing sessions.Â  The first half of the day was pathetic.Â  I lost power halfway through the community roundtable and could get back online during the Maverick Governance Changes and Needs session.Â  I can’t believe I missed the BugSquad Roadmap!Â  Again, I lost power halfway through Debian Healthcheck.Â  Sigh.Â  Today, I’ll just go outside to some internet cafe for the first half.Â  I have a call scheduled and after that I’ll just go some place for 4 hours.

Community Roundtable
Another general discussion at the roundtable, I lost a bit of that thanks to the power situation.

Maverick Governance Changes And Needs
This session was very interesting.Â  Though I’m not any councils, we had a lot of folks from different councils and we were exploring the possibility of working the CIVS system into Launchpad.Â  Jono has a task for that and perhaps we’ll have an awesome voting system by the end of the cycle.Â  Most of the council elections use the CIVS system.Â  We even used the same system for the Beginners Team Council voting.

Debian Healthcheck
This session started with Jorge introducing the good parts and the bad parts.Â  Zack, the DPL, was in the session and he gave some good suggestions on how to go about uploading to Debian.Â  A lot of packages designed for Ubuntu don’t go into Debian and Zack particularly said that they wanted them.Â  He explained how we could upload to experimental and sync from there.Â  We’ve agreed to do this.Â  Personally, I agreed to work on Gwibber in Debian sometime back, I guess its time to actually start working on it.Â  In this case, I had spoken to Ken earlier and he specifically said he was happy to help me.Â  Any delays are my fault and my lack of time.Â  As I said earlier, I lost power halfway through this session.

“Collaboration with Ubuntu” Plenary
Stefano Zacchiroli, or Zack, the current DPL, talked about Collaboration with Ubuntu from the Debian point of view for the first plenary.Â  This was the most awesome plenary.Â  Zack totally changed my vision of Debian Developers.Â  There are more than 1000 Debian Developers and he mentioned that though the option against Ubuntu exists, its a corner case.Â  His talk encouraged Ubuntu to collaborate with Debian all the time.Â  Yes, you heard me right.Â  Debian wants us.Â  Uploading to Debian would give all the other distros that fork from Debian a chance to get those packages.Â  He also mentioned that if we have a bug and patch, he wants Debian to get the patch too because DMs and DDs are the people who know the package best.Â  A growing trend that is being noticed is Ubuntu developers being Debian maintainers and Debian developers!Â  Wow, that’s interesting.Â  All in all, it was a very impressive talk and I’m waiting for the videos to be uploaded to watch them.Â  Again, special mention to James Tatum for the pictures.Â  We all love you James!

“What does this bit do?” Plenary
James Scott a.k.a. Keybuk talked about the plumbing layer.Â  The past, the present, the future.Â  Yes, it was like sitting in ‘A Christmas Carol’ about the plumbing layer.Â  Some of the stuff flew about my head since I didn’t know much about it.Â  But it was nice listening to it all the same.Â  He explained about upstart and how its planned to be awesome in the coming releases.Â  Can’t write more since I didn’t understand much about it.

In between this session, I was also in the Ubuntu Women Project meeting, so I was only listening in partly.

Crystalizing Project Cleansweep
I’ve agreed to coordinate this project.Â  Project Cleansweep is about cleaning up all the bugs with patches by Maverick release.Â  It needs a lot of work and lot of identity to be successful.Â  Stephan and Daniel Holbach is going to be helping me along with Brian Murray and Jono and everyone else.Â  We want to get a lot of community attention to this project and use the ‘buckets’ that we use in Reviewers Team into coordinating patch review for all the patches in Ubuntu.Â  I’ve arranged for a call with Daniel to discuss the specific actions that we need to be taking.Â  I’ll be posting more updates as time goes on.

I gave up after this.Â  All the roaming around in the morning and the 4 days was too much for me.Â  I switched off IRC, got off the audio feed, and started planning for Project Cleansweep and what needs to be done.Â  I hope to have a productive call with Daniel today.