Category Archives: OpenStreetMap

Globalization of views done

Today i finished commiting all the globalized views. You check them out in the svn: [http://svn.openstreetmap.org/sites/rails_port_branches/i18n/app/views]. Some of the views have simply <%= "text to globalize".t -%> things and some also have <%= "Hello, %s".t(nil,@user.name) -%> sprinf() like stuff. This basically means that whenever translations are available in the database, they get rendered into the pages for that particular locale. But now, the next step is to add a mechanism to feed translations and change/preference of user’s locale, which we decided to be handled by click-to-globalize plugin.

Currently, it’s giving some serious problem like [http://makghosh.fedorapeople.org/osm/ctg-error.log]. I talked with svenfuchs in #rubyonrails to know that the latest globalize plugin has been moved to the github. Hope this will solve the problem somewhat. And also while creating a new user a nil object NoMethodError is caught by the exception. I’m looking into these for a fix ASAP. It would be great if someone can help me to sort this out.

Advertisements

Update 101: “The magic has begun”

All these days i was continuously working setting up the infrastructure ready, doing custom setups and testing things for the i18n of openstreetmap, more precisely setting up internationalization in rails which will comprise a major chunk of my gsoc project.

I started off by setting up an osm local install on my desktop earlier this month. That was something because there different set of things to look after and configure each of them properly. I got little stuck with the mod_tile thingy…the configs. I just couldn’t find where was some hard-coded paths renderd daemon was trying to access. Thanks to TomH & Alex, for mentioning about gen_tile.cpp. I thought all of these paths should be placed in render_config.h and even made a patch of it (to ease my work) but later learnt and/or realized that they are meant to serve some greater purpose like module options actually.

So, crossing all this, when rails together with mapnik powered on for the first time i was awestruck. I just wanted to laugh…whew!! Then after some discussions with my mentor Mikel Maron, we looked up at the different options available. He gave me a comparative study of different ways to internationalize rails. I kinda liked two amongst them namely, globalize-rails and ruby-gettext (which i had proposed earlier). So as planned, I somewhat did some quick hacky test setups to test both of them. Though they weren’t free of problems, but as of now, i simply like the robustness of globalize combined with click-to-globalize plugin. Also the the fact that globalize currently supports more languages give it a plus. Sven Fuchs has written some really cool tutorials….thanks to him because i don’t know for some reason whatsoever i’m not getting the www.globalize-rails.org. Anyway, the current state is i’m trying to setup globalize in the rails_port of osm now. Its’ bound to have lots’ of problem…need to fix them. Another concern is that about the translators’ accounts. Whether it will be wiki-like so that anyone can put up translations or the traditional translation groups somewhat moderated. Though this will come at a later stage.

In the meantime, i actually upgraded my desktop to an E8200 2.66 GHz proc. + DG33FB motherboard + 2 GB combination and its’ showing some real power. So, another ordeal that came up of nowhere was shifting the entire setup to the new hdd. It made me remember of the osm vmware image that Milo van der Linden talked about in the early stages of the project. There was some real hike in the rendering speed compared to my 5-yrs old celeron 1.7 GHz mobo.

But now, my 6th semester exams are scheduled from 3rd-13th of June and i’m really getting low working hours now 😦 I will also put up a wikipage regarding i18n sooner than later. Loads of work still left…

Among other news, my activity oriented tutorials are up on the edu.kde.org …lots of thanks to Anne Marie (annma) for putting them up. I just love the logo guy pointing to the tutorials. Hopefully, i’ll try to put more of them. And more recently Debayan from NIT-DGP has put up the 3rd ntp pool server for India (with my WBUT starting the spur as always). I can now three ntp servers in http://www.pool.ntp.org/zone/in.

Update: Also as a matter of fact, globalize-rails now supports much more languages compared to ruby-gettext. And when combined with click-to-globalize plugin, i can see that we can even actually chip in translations from a WebUI….which is pretty cool 🙂

i18n in OpenStreetMap

Yesterday, as an interesting twist of events my Google SoC proposal for OSM was accepted. Its’ about “Internationalization setup of osm web pages and map tiles“. Thanks to my mentor Mikel Maron and the entire OSM community. Its’ going to be a rocking summer 🙂

Internationalization of openstreetmap have diverse aspects hidden in it ranging from web pages localization, rendering localized map tiles including rendering of complex Indic scripts. And we will take up a phased approach and see what’s possible within the stipulated timeframe.

FreeMapIndia2008 @ WBUT, CCU

It was a tight schedule. Back from freed.in i directly went to wbut for Kolkata edition of FreeMapIndia. In this context, we actually managed mapping around 900 kms and lots of waypoints/stations enroute Kolkata boarding Rajdhani Express. It clocked the highest speed of 131.75 kmph to be precise :). Anyways, back here it was a two day workshop-cum-seminar by Mikel & Schuyler.

So, after Schuyler explained how to use a gps device, people went out to map different parts of the city. Sushmit da, beton & me covered parts of saltlake and rajarhat. Though Indra da stayed back at univ with the osm guys. We all came back around lunch time. In post-lunch session these maps were collected and integrated on JOSM, uploaded on OSM server. There was detailed explanations on how to use josm properly; how to edit different places; how to create roads, circles & bridges; how to use yahoo maps plugin in osm; how to add images taken at waypoints etc.

Next day, was mostly dedicated to development works related to josm; plugin development; getting codes from the osm svn repository. Also different positions of kolkata were placemarked by different peoples. There were talks regarding the map rendering engines and some real time demonstration of errors with google maps. Mikel also advised us some possible project ideas; a quick introduction to rails. It was whole lot of fun.

FreeMapIndia2008 @ WBUT, CCU

FreeMapIndia2008 @ WBUT, CCU

More photos: Flickr freemapindia2008

Rewind into Freed.in/2008

Rewind into Freed.in/2008

The LAMP of Freed.in 2008 was lit with huge round ofapplause & cheers vibrating around the breadth of Gyaan hall a.k.a., the auditorium of School of Information & Technology of Jawaharlal Nehru University, New Delhi. Some formal registration typo thing was going in the reception stall of the event. So in the very beginning ‘was gifted with some goodies like free media, some freed stickers, gnome badges etc. After all this fresh beginnings, the event finally kicked off with quick intros from core ilugd members like Kishore Bhargava, Andrew Lynn, Raj Mathur, Gora Mohanty followed by the first talk of the day ‘Community is an oft mis-used word’ by Sankarshan Mukhopadhyay. He basically described some of the deep-rooted fundamentals that decides the direction of a community so to say, what it is, how it should be, what are the mindsets you ought to carry to be a part of it. After another session by Samiah regarding educational softwares, we pulled off for lunch (muft from sponsers). It was some real fun around there apart from good food. Had chit-chats with people whom i knew only online like Sankarshan da, Pradeepto da, Mishti di, Niyam bhusan, Rene and unending others. After that, I spent the second half of the day mostly at the conclave where rounds of discussions went on regarding defining knowledge and some possible areas to work on for better sharing of information. In this context, we did mention the Bijra school project @ durgapur which actually created a better computer-aided learning environment. The day ended with Mane’s talk regarding accessibility & dev areas of orca. It was pretty late, so signing off we (me & subhodip) went back to my brothers’ place at uttam nagar, west delhi where we actually stayed.

The second day was full of talks and more talks…I enjoyed all of them. Typically, the OSM talk of Mikel & Schuyler, Rene’s talk regarding mesh network, Runa didi’s talk regarding translation communities were very interesting. Also between all these, I also fond myself in the group which Mikel was explaining about collecting GPS data, integrate & edit them in JOSM etc. This actually took me on because it was something rather new in India particularly the GPS devices. Its’ exciting!! That evening, Anand actually proposed us “why don’t you map your way back to Kolkata (train route)”. This was really cool and we two talked with OSM guys and they seemed to like it at that point of time. Since dinner was ready, we decided to discuss about that the following day. Now, what a dinner!! Above everything, it was really charmed by freed.beers & cool starters. And I definitely remember those ‘happy birthday’ gift & wishes to Gora. Overall it was lot more fun at there. As it was pretty late we stayed back at the JNU guest house thanks to Andrews.

The next morning i woke up early. Anyways, packing sacks ‘strolled down to to halls which was rather only few hundred metres from the guest house. This day filled with really cool talks like, AanjhanR’s nice talk on FOSS for Electronic enthusiasts (which is an angle i am sure can increase FOSS enthusiasm in different colleges like ours, because some people think it’s for CSE/IT guys only which is not true), this was followed by a great lunch and then more excitement post-lunch, two talks on Independent Music and Radio by Shreyas, Friji and Raj. I typically liked the Radioverve spirit. After these were the talks on OLPC by Sayamindu da & KDE educational softwares & games by Pradeepto da. The evolving Step app (kde-edu) rocked there & also i must mention i checked my g(e)mails on the olpc. I liked sugar very much and installed on my desktop back home. After this was another interesting thing, Mikel came to me & beton and handed over a gps reciever as he told the other day so as to map the train route from New Delhi to Kolkata. That was something cute takeaway at the end of the event. So above everything it was loads of fun out there…!!!

Here are the loads of photos: freedin2008