Ubuntu 9.04, The best Ubuntu release till date (and my customizations)

Ubuntu has been my primary GNU/Linux distribution of choice for  past two years. I have to admit that  early on (around 2005) I was skeptical with all the hype and thought that this was  yet another lame attempt to rip off Debian. But one of the reasons which attracted me to Ubuntu was their free CD shipment program (I used to to order lots of them and then would distribute them among my friends, colleagues at my college). After I moved into the work environment it became apparent to me that if you wanted an out of the box distribution  Ubuntu was the best choice. Since I only wanted to focus on my programming skills (and not learning about Linux inside out as I had began with Gentoo) I permanently shifted to Ubuntu and never looked back.

But the last distribution was not so much fun for me and I now know the primary reason for it. I have had a 64 bit machine since April 2008 and I was using 64 bit Ubuntu (with work around for 32 bit apps and plug ins). The performance of firefox was unbearable. As soon as the current release of Ubuntu became available (which was around April 23, 2009) I downloaded an ISO image so I could do a plain install (primarily to resize the partition size and to get a new partition on the newly shipped ext4 filesystem). I didn’t realize at first but I installed the 32 bit distribution by chance (which was a blessing in disguise). The first I realized that it was a 32 bit system was when I tried to install VirtualBox from a deb file (I could have sworn that I had burnt the 64 bit CD, but it was installed).

The first thing which I did was to update drivers for Nvidia GPU (which was painless, since a popup automatically gives you that option). Then I went on to install RubyOnRails following my own blog entry. After that I tinkered a bit with Firefox to check for performance. In my experience firefox with it’s stack of plug-ins performs much better in native 32 bit than in 64 bit wrapping mode. I could not only run BBC.com/urdu radio, but also had better  performance of flash and other plug-ins.

There are various incremental improvements in latest Ubuntu. Faster booting time bing one and seemingly cleaner/faster UI is another. There are many nice new UI themes to choose from. One small new feature which I found was the automatic logout (once you press logout, you don’t have to confirm it, it  can logout automatically in 60 seconds if you choose to not confirm).

Ubutntu 9.04 logout dialog.

Another nice feature is the Ubuntu Janitor (which keeps track of packages and files installed from outside of repository, ie possible junk). In my case Janitor was able to detect that I had installed VirtualBox. (Later it also found Adobe Air run time and some AdobeAir applications which I had installed)

Ubuntu Janitor

Installing fonts is super easy. Just make a new folder .fonts and put your TTF files there. Following are some screen shots of urdu websites utilizing some of the installed fonts on my system.

BBCUrdu font

Alvi Nastaliq Font

I followed the guide of medibuntu to install repositories and enable win32 codecs for streaming content as well to easily install other non-free software (you can’t live with them if you have non geek family and friends). I also installed sun-java6 plugin to make JavaFX work nice and VLC with mozilla plugin as my primary media player and Adobe Air run time.

Last but not least I installed screnlets, compiz config manager and GnomeDo to make my desktop work like a charm (I didn’t find any of the other software from Lifehackers’s top 10 Jaunty download list to be of much use)

As for hickups I did experience a bit of sound starvation (clicking in sound) when using plain Alsa drivers. After looking around and trying around some configurations I used this tip and now I am running the Pulse sound server without any problem.

Call it a charm of a clean install, magic of ext4, or simplicity of coming back to 32 bit system, for me this is Ubuntu’s best release to date.

Leave the first comment

Faulty Belkin Router

I purchased a Belkin 54g wireless router from local Gigantan last October. It was giving me problems from day one when it’s Wifi network chocked on any high volume download. But it’s Wired network was still performing with in acceptable paramters. In all fairness I had gotten this router rather cheap as an open item (I guess the previous buyer decided to return it after the wireless performace failed).

Around 10 days ago even the wired network started performing poorly. With constant ping time outs and packet loss. In the beginning I thought that it was a service provider issue. But When I ran some tests (mtr) I found that the router was dying (5-7% packet loss out of the blue)

I went to the store to return it, and to my surprise the guy at support counter didn’t even bother to look inside the box and gave me a full refund. I will surely avoid purchasing Belkin and would always consider buying from Gigantan just because of their better customer service.

And since I got rid of that router, I have found that the network I am on has a much better performance. The quality of voice calls, wait time on youtube videos and simple browsing, all have improved by a factor of 3-4 (I can download at 11MBit/sec from local dc++ hub as opposed to only 3MBit/sc). So I guess a bad quality Wifi router is also a bad quality wired router. I am looking into getting a new router now and would prefer to get some thing which supports OpenWRT.

Leave the first comment

Agile Development with Rails & my new 22 inch monitor

I have had the goal of  “learn ruby on rails” on my 43 things list for a very long time now. In last two years or so I would start learning it but only to abandon it midway because of some other project or a newer version release and making my current learning pointless. But now I have decided to get over with this long standing goal of mine.

After some consideration I decided to spent 24$ and to buy an electronic version of Agile Development with Rails 3rd edition. I could have just looked for a pirated version of the ebook, but I decided that these guys deserve to be paid (so now every time I read the book, I don’t feel dirty)

I already had rails 2.3 and netbeans 6.5 with rails support on my system, so I just started to wade through the pages of the book and have made considerable headway (and I plan to get finished with it over this weekend).

Since I was in a hacking mood, I decided to get my self a new TFT screen to get a dual scree view with my laptop. I have experienced that I am much more productive when I have more screen real estate. It lets me have an open view of more windows and I can multi task easily (irc, documentation and coding). The fun part though is that I got this LG Flatron M227WD for almost half the price and brand new (the piece was on display on a local Siba store, while not turned on they hod lost it’s box and was a bit dusty making it half price). I even got in a 3 year insurance for free.

Now it’s time to put my acquisitions to work :)

Leave the first comment

Frankfurt and OpenNMS User Conference.

It has almost been two weeks now and I have been postponing this blog entry. I guess it’s better to blog about travel, when traveling.

My primary reason for coming to Frankfurt was to attend first ever OpenNMS user conference. I had already paid my 199 Euro conference fee and 37.81 Euro VAT to Nethinks (who were arranging teh conference). I did get a (considerable) discount from Taurus for me being part of GSoC last year but since it was unpublished discount so let’s just leave it at that :)

‘The conference was in three hotel “ballrooms”. The first hosted the coffee while the other two were used for presentations.’. The kick off was done by Uwe Bergmann from Nethinks in Lyon hall. Then we had the keynote session from Taurus Balog . There were many things which I learned about OpenNMS in this talk(aside from back stories and jokes). After the keynote session we had lunch which was really good (so buffet in Le Maredian is definelty recommended). I decided to sit in Lyon  for the rest of the conference and didn’t attend some really interesting parallel tracks, but since all the sessions were recorded so I still have a chance of looking at them.

I attended talks on OpenNMS reporting by Ronny Trommer aka _indigo,Integrating Syslog Events into OpenNMS  by Alexander Finger aka gvainfo and Extending OpenNMS by Jason Aras aka fjay. All of the talks were really informative but in my books they didn’t top Tarus’s talk (perhaps because he was talking too much about future and these guys were talking about present :)

After the conference was over we decided to go for some drinks to Orielly’s an Irsih pub just in front of the central train station. There was a Scotland vs Ireland rugby game on and it’s good that we left that place before Ireland eventually won (otherwise we would have been caught in celebrations). By the way it’s hard to get any thing in an Irish pub, you have to squeeze your way through people. Lesson here is that Swedish pubs may be boring and expensive, but people respect other people’s turn.

Later along with some of the gang we went to dinner. We walked along the promenade where all the major museums of Frankfurt are centered. After a long walk  we  found the place which apparently Taurus got recommended by some one. Since it was Saturday night finding a free place was not easy. We settled for the next best restaurant. I had some traditional German dish recommended by Alexander Finger, and it was in fact really good (chicken and mushrooms, so the point being that if you don’t know what you want to eat, just ask the locals).

I learned a lot of things in the casual conversations over the dinner. I think not sitting for lunch or dinner in almost a year now with peers(since I left my full time job) has now taught me the value of casual knowledge transfer. In the end I believe Taurus footed the bill (I had my share of Euros out in my hand to pay like a "well mannered Swedish resident", but it never came to that) so thanks to Taurus, again.

After calling it a day we all went our septate ways, and I came back to my youth hostel to crash. Sunday I went to the Senkeberg Natural History museum (pictures here) and did some sight seeing around the city. I was tired and didn’t go much around the city. I wanted to take the bus tour and see the city skyline from teh famous Frankfurt tower. In the youth hostel’s lounge I met quite a few people from UK, Canada and US. Apparently frankfurt has cheap connecting flights from all over EU so many people come for a weekend getaway.

Monday afternoon I took the RyanAir flight back to Gothenburg. It was interesting to see that almost all of the flight passengers were the ones which I saw on Thursday and Friday (perhaps most of them were in Frankfurt for the weekend as this was the only cheap flight)

I have already planned my next trip to Frankfurt in summers, this time I would prefer to take Rhine Cruise and see the other German cities like Bonn, Cologne, Dusseldrof. Munich I plan to see when I go to Switzerland and Berlin would come with my trip to Warsaw.

Overall the trip was not what I expected it to be, but the conference was every bit better. There is already talk of this conference being held next year and I would definetly like to attend it.

Leave the first comment

Reaching Frankfurt

In January I had decided to attend the first ever OpenNMS user conference and also visit Germany in mid march.I had initially booked a cheap RyanAir flight on 8th March 2009 to Düsseldorf. My plan was to check out different German cities  (incliding Kolon and Bonn) and finally go to Frankfurt and stay there for three nights. Later as I realized that it would be a hectic plan going through four youth hostels, I changed the plan and bought a ticket for Frankfurt Hahn airport instead for March 12th (to stay 4 nights in Frankfurt instead).

Here is one thing which I should have checked before buying the ticket, Frankfurt-Hahn airport is actually 2 hours away from Frankfurt city center (I always assumed that I was going to the same Frankfurt international airport from which I passed through while coming to Sweden). It costs around 12 Euros to get a bus ride from the airport (considering that i paid 9 Euros for the flight, it’s bit expensive :-})

So excited and well preped on Match 12th, I went to gothenburg city airport on time and got my boarding pass etc. I started reading The Business of Software Engineering and as a surprise to my self read a whole chapter of it in one sitting (I am used to reading short articles and long programming manuals, this kind of stuff is new for me). Around five pm after waiting for about three hours in the airport the announcement was mad that my flight had been canceled due to bad weather. Needless to say I was disappointed that I would miss a whole day of sight seeing. I got confirmation for the next day of flight booking from ryan air counter after a long wait.

The next day was another mishap for me, I got on the bus to go to the aiport (again) with my library book in hand. Some how in rush of getting off from the bus I forgot the book at the seat , but realized that I had lost it soon. From thereon for an hour or so I played “catch the right bus” in hopes of getting back my book, but with all the calculations of routes and bus numbers I was unable to catch the bus in which I had lost the book, so with a sad face I proceeded to the airport. The only thing I could do on the plane was to read a book on my laptop. I have recently found that reading books in electronic format is not necessarily easier or faster if you have to read cover to cover (it’s a whole different story if you have to use the search function). Any who I checked with the Gothenburg bus service office and I was told to check with them on Monday for lost and found (which I did and got the book back after paying 20 Kr Edit: and now safely returned, long live honest Swedes). I also realized after reaching the airport that I had no decent camera with me. Another bummer.

After reaching Frankfurt-Hahan, the first thing I did was to pull out some cash from the ATM. It was no problem (but it costs about 2$ for every 100$ withdrawal, which I later found out). The exchange rate from the ATM was fair though. I hopped on to the next bus to the city center.

At the droppoint for the aiport shuttle I had little idea where the YouthHostel I had booked really was. I knew that it was near central station and I was relying on my Nokia n810 GPS to help me with that. Fortunately the GPS worked like a charm. I walked pass by the Le Maredian, so I knew where I was suppose to go in the morning. I just showed up at my YouthHostel and they decided to let me in if I paid my 20 Euros for the day I missed as I didn’t cancel my booking.

It was quite late in the evening (around 10 PM) and I was in no position to go and hang out with the conference guys as planned. On top of that I was quite pissed at missing flight, paying extra for accommodation and loosing my book and no camera. But I forgot all about that after I had a delecious dinner at a Pakistani restaurant called “Iqbal da Dhabba”. It is interesting that just with simple nice food, all your troubles can go away.

Leave the first comment

Life’s precious lessons and heroes

I am writing this blog entry aboard a Ryan Air flight from Gothenburg city airport to Frankfurt-Hann airport (although it will probably get posted much later). Since for today my journey just began I have nothing much to chronicle (I will write a detailed blog abut my trip to Frankfurt), but right now I can reflect on some things which I have been wanting to do for some time now.

Life is all about getting experiences, learning new lessons, acting on those lessons and forming your own philosophies based on them. There are people who base their philosophies on other people’s lessons (or just blindly follow other people’s philosophies which are based on other people’s lessons)

I had been taught that it is always good to learn from other people’s experiences and learning from your own mistakes while effective is not a good idea (point being you should not be making those mistakes in the first place if you pay attention to other peoples experiences).

I came across these presentations [1,2] on TED from an Austrian rock star graphical designer. He has shared some beautiful lessons in life (which I now know have been published in the form of a book).I will be working on these life lessons and will try to refine them and will try to learn from them as much as I can. But what I want to do is to make my own life lessons and perhaps share them. I don’t want them to be too generic though.

Another thing which I have been wanting to do for some time now is to share my list of heroes from whom I have learned things or got inspired, these are not necessarily real life heroes (they include characters from different TV shows as well). I have willfully not included any religious figures into this list as it has the potential of becoming controversial. So here are my life lessons and heroes.

There are few lessons which I learned today

  • When ever traveling make sure that you pack every thing and when going out make sure you pick every thing which you packed.
  • Never take a costly library book for reading on an air craft, there is a chance that you may loose it.
Leave the first comment

Software Product Line Engineering and small teams

My third quarter at Chalmers has come to a close and it’s been a rather interesting quarter. One of the courses which I took was titled "Developing computer based systems in teams". The focus of the course was to work in teams and go through an entire software development process but mostly focusing on documentation. We were given a rather detailed requirements document which detailed a fictional case of retailer who wanted to start their own e-commerce solution, while integrating it with their existing EPR (payroll etc) and the goal was to work on this fictional requirement document and make everything but the actual code for that software.

Some of my group mates had taken the course titled "Software Product Line Engineering" from last quarter and came up with the idea of changing the goals of the course to accommodate a software product line engineering approach. Since I was not aware with the principles involved in software product line engineering in the beginning I was skeptical. I insisted that as long as our client (in this case the course instructor) approves it, I did’t see it as a problem.

We were given a go ahead to do the project in a software product line engineering approach. There was not much difference in the end, other than we didn’t focus on implementation of the project at all (as compared to some implementation by other peer groups, all groups in the course were give the same requirements document) and we changed the requirements document to fit the scope of the project (which is kind of cheating, but there was no way around that given the time constraints). We did focus on following the rough guideline of documents (Project Directives, SRS, System Architecture, Test Plan etc). For SRS we took some guide from "Designing Software Product Lines with UML: From Use Cases to Pattern-Based Software Architectures", an interesting book which I would like to read in detail some day. Chapter 14 of this book has a case study which deals with an e-commerce system.

The introduction of SPLE concepts was rather intense considering that not many people in the group had never worked on a document intensive project before. But we did follow a nice Agile approach of managing document (with editing being done on Google docs and final drafts prepared in LyX/LaTeX). The project code was put on google code and it may be released to public (the primary reason for not releasing it is to not hand in a working solution to a group for next year, if the course requirements remain the same). The coding done was basically an implementation of AppFuse tutorial for Spring/Hibernate/Spring MVC (another thing which I plan to follow up in my coming quarter in Software Architecture course)

At the end of the project we had a short verbal discussion with an expert in this field and we came to the conclusion that introducing SPLE in a big bang manner was not a good idea.Another thing which I concluded was that applying software product line engineering in small settings (such as a university) may not be a good idea as there is too much overhead and it’s easy to get lost in abstractions of process. But this second conclusion is based on the experience of this project and may be a better trained small team would perform much better. I would not like to try SPLE unless it’s being done among a team of some what  mature software devs.

 

Leave the first comment

List of programming/devlopment contests

Link to wikipedid list.

I tried to submit the following as a story on slashdot (in Ask Slashdot section) but it didn’t make the cut (perhaps because it concerns only a miority, or the content was not presented in a quality format, or perhaps becuase slashdot editors are a bunch of close minded bigots who only wish to see stories which only concern their personel selves). So here it goes

"As a developer I am interested in knowing about different programming and development contests. But most of the time the news reaches far too late to register or submit any worth while ideas.

I am no web-search guru but so far I have been unable to find blogs or websites which aggregate information about different programming/development contests (preferably with focus on open source technologies). As a student I have participated in Google Summer of Code and (from it’s virtue) I know about Google Highly Open Participation Contest. Some search has yielded Apps For America, Android Developer Challenge, Ricoh & Java Developer Challenge,Yahoo SearchMonkey challenge,OpenSpaces Developer Challenge.

I decided to start a new wikipedia entry for this issue. Hopefully the power of tubes will fill this page up quickly."

So go ahead and add entries to this wikipedia page if you know any developer challange.

Edit: I have read the Editorial FAQ of Slashdot and I agree that some times even the most interesting stories may get rejected for unaviodable reasons. But I still feel taht Slashdot editors are bunch of old tech junkies and need fresh brains/pairs of eyes

Comments for this story are disabled. Use digg for any commenting
 

Digg!

Leave the first comment

Playing more with Nokia n810

Over the past few days I have had the chance of playing a bit more with my new Nokia n810. I showed it to an acquaintance and he was trying to compete it with his HTC Touch. As far as I am concerned HTC looses all its number for me for not using open source OS (and so does the iPhone). But n810 is not a phone (as I don’t want to handle a shoebox or a brick just to make a call)

One thing which I didn’t discover before was the ability to use Google Talk voice option with Internet call. So with Skype, Gizmo and Google Talk coupled with my SIP phone accounts, this device can server as my one stop all communication box. (I still would be missing yahoo and msn voice chat, but I don’t use them as often any way)

I followed hacking nokia n810 guide to become root on the system (with easyroot). I also installed many repositories while doing so. The few notable programs that I later installed were

I have tried to test the GPS on many occasions and have not been able to get lock on my position during snowy weather. But it works ok in normal weather or when it’s light rain. The following screenshot shows GPSJinni giving information about which satellites are in view (you can get a cooler view of satellites in the Map application as well)

As for the Maps application, it is very detailed (atleast for Europe, down to street names). So even if you don’t have a WiFi connection, you still have access to an easy to use map.

Last but not leat I can easily VNC into my Ubuntu box (after enabling vino server)

I also got hold of tablet-encode (a front end to mencoder) to convert video files to native n810 format. Now all I need is a small sync application which would get all my favorite shows from my ubuntu box, so that I can watch them on the go.

Last but not least, enabling GPRS access through bluetooth was a breeze as well. I followed the guide by Tele2 (Swedish) to add the extra command of AT+CGDCONT=1,"IP","internet.tele2.se" in advanced section of GPRS connection. But the thing which I don’t like about my setup with my Nokia E51 is that I have to say Yes to authorize connection every time I connect my tablet to phone (I am sure there must be a way to override this).

I would like the possibility of syncing all my GPE things (contacts, calenders, todo list etc) with Google servers (so far I can only do calender). Uptill now I have been unable to test Gizmo with two way video chat (I have to blame my network for that). What I  would really like to have is a unified communication center on my n810 (setting up all kinds of voice and video chat accounts out of the box). Perhaps with the Wimax version and such a unified communications application the successors of this device will be more widely adopted.

Leave the first comment

A R Rehman, winning two oscars

Since discovering A R Rehman over 14 years ago, I knew that if I would see one composer from the subcontinent ever win Oscar, it would probably be him. But I  never read his story before.

I came to know from BBCurdu website that his family converted to Islam after his recoery from illness for which his mother had a vigil at a Sufi’s shrine. While I my self don’t believe that asking for some one in a grave is by an means true interpertation of Sufiism, but it’s good to know about the Sufi roots of this musician (some thing which I associate my self to be a part of). Another thing which I came to know about him was that he was educated at Oxford, in Western Classical music (his music style has always been different than most of the musicians). Along with Nusrat Fateh Ali Khan (another sufi musician) he presents a good example that a blend of eastern and western music is nothing short of spectacualr.

I have heard his music for which he won the Oscar, but it is nothing compared to the beautiful scores he has composed over his entire career ( Dil Se, Taal, Roja, Bombay to name a few). He is also part of two other faverioute movies of mine, Lord of War and Lord of the Rings.

One thing which truly embodies his sufism is what he said accepting one of his oscars,

All my life I have had a choice of hate and love. I chose love and I am here

I hope his winning the oscars will make more people in my region follow music education if they want to persue music and that it also helps bring new age to sufi and fusion music at a global level.

Leave the first comment