<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>What&#039;s up with Hatim &#187; Linux</title>
	<atom:link href="http://hatimonline.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://hatimonline.com</link>
	<description>Life, musings, rants of a Pakistani software engineer living in Europe.</description>
	<lastBuildDate>Wed, 14 Jul 2010 22:41:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=6205</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MIFOS integration tests&#160;hell</title>
		<link>http://hatimonline.com/2010/04/20/mifos-integration-tests-hell/</link>
		<comments>http://hatimonline.com/2010/04/20/mifos-integration-tests-hell/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 10:22:54 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gsoc]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mifos]]></category>

		<guid isPermaLink="false">http://hatimonline.com/?p=584</guid>
		<description><![CDATA[Over the last few days I have been going through java build hell. The project in question is a neat micro finance solution called MIFOS. It&#8217;s current build is a mix of JSP,SQL Hibernate, Struts glued together with maven. Every thing checks out and is typical. But what is not typical is the testing framework. [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few days I have been going through java build hell. The project in question is a neat micro finance solution called MIFOS. It&#8217;s current build is a mix of JSP,SQL Hibernate, Struts glued together with maven. Every thing checks out and is typical. But what is not typical is the testing framework. I think the intent behind extensive tests was well, but the outcome for the devs at least now is a horror story. Every time you do a MIFOS build it goes through a series of extensive integration and unit tests. And I don&#8217;t know any apparent way to avoid those tests and it takes awful lot of time (<del datetime="2010-04-20T10:04:53+00:00">so far without any success on average of 90 mins</del>, I just had a successful build last night and it took whooping 243 minutes, 10 times more than it should in normal cases)</p>
<p>The thing which I was doing wrong from the beginning was to use 64 bit JDK as I had not read the later sections about problems with 64 bit in the install guide. After few failed attempts and messing around with the GC Overhead workaround as well as adding more RAM to MAVEN_OPTS I got to 32 bit JDK and at least I was able to make it till the next step (ie selenium and acceptance tests). <a href="http://hatimonline.com/photos/photo/4537070211/selenium.html" class="tt-flickr tt-flickr-Medium" title="selenium"><img class="alignnone" src="http://farm3.static.flickr.com/2785/4537070211_eeb3dd1e6c.jpg" alt="selenium" width="500" height="287" /></a> </p>
<p><del datetime="2010-04-20T10:04:53+00:00">As of now the build gets stuck here and I am not able to make a significant progress</del>.I can finally get a successful build, but its too slow to do any thing. I will be looking into speeding it up.<br />
<a href="http://hatimonline.com/photos/photo/4537070261/complete-build.html" class="tt-flickr tt-flickr-Medium" title="complete build"><img class="alignnone" src="http://farm3.static.flickr.com/2706/4537070261_2dd9292827.jpg" alt="complete build" width="500" height="360" /></a> </p>
<p>I think the whole approach to unit testing needs to be revised in MIFOS. There are probably too many tests in the entire system and they could be modularized. It wont be easy just separating out business logic in a production system, but clear steps need to be taken so as to reduce the build time for Mifos. This is probably the biggest hurdle for MIFOS community, to attract good developers you need a workable codebase and  10+ mins of buildtime is not a workable codebase in my opnion. </p>
<p>I will be looking into making the build run faster on my own system first and then perhaps see what I can do to make the whole testing thing better.  Here is the build summary of my latest build</p>
<pre class="c#" cols="60" rows="10" name="code">
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Mifos - Parent ........................................ SUCCESS [2.626s]
[INFO] Mifos - Common ........................................ SUCCESS [27.094s]
[INFO] Mifos - Test Framework ................................ SUCCESS [14.122s]
[INFO] Mifos - Service Interfaces ............................ SUCCESS [7.460s]
[INFO] Mifos - User Interface ................................ SUCCESS [13.232s]
[INFO] Mifos - Application Programming Interface ............. SUCCESS [4.165s]
[INFO] Mifos - Service Provider Interface .................... SUCCESS [1.453s]
[INFO] Mifos - Application ................................... SUCCESS [1:36:39.031s]
[INFO] Mifos - Acceptance Tests .............................. SUCCESS [2:25:11.122s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 243 minutes 1 second
[INFO] Finished at: Tue Apr 20 07:36:19 CEST 2010
[INFO] Final Memory: 87M/380M
[INFO] ------------------------------------------------------------------------
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2010/04/20/mifos-integration-tests-hell/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Moving to WordPress&#160;2.x</title>
		<link>http://hatimonline.com/2010/03/09/moving-to-wordpress-2-x/</link>
		<comments>http://hatimonline.com/2010/03/09/moving-to-wordpress-2-x/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 06:37:48 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hatimonline.com/?p=6</guid>
		<description><![CDATA[After gettnig some inspiration on Lifehacker I finally mustered up the courage to move to wordpress. I decided to do so because I have not much interest in maintaining a blogging system and would like to use some thing which has a solid user base (which gurantess a good eco-system of themes and plugins). Even [...]]]></description>
			<content:encoded><![CDATA[<p>After gettnig some inspiration on <a href="http://lifehacker.com/5365600/the-beginners-guide-to-tricking-out-your-wordpress-blog">Lifehacker</a> I finally mustered up the courage to move to wordpress. I decided to do so because I have not much interest in maintaining a blogging system and would like to use some thing which has a solid user base (which gurantess a good eco-system of themes and plugins). Even though it may not be the fastest platform (rails on mongrel) or the coolest to code to work with (hand coded haskell CGI) I am happy with what it has to offer so far.</p>
<p>As you read this I have also moved on from <a href="linode.com">Linode.com</a> to <a href="http://www.hosteurope.de/">HostEurope.de</a>.  Linode was a good service, but I needed a service closer to home and with a little more juice (RAM) packed into it. The installation of wordpress on top of Ubuntu LTS was a breeze compared to what had to be done for Ruby on Rails based <a href="http://wiki.github.com/fdv/typo/">Typo</a>.</p>
<p>I will be porting my older blog entries slowly (both from Blogger and Typosphere blogs). I am experimenting with themes and plug-ins. If you would like to suggest any of those, please be my guest.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2010/03/09/moving-to-wordpress-2-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows XP instead of Ubuntu for Skype @&#160;home</title>
		<link>http://hatimonline.com/2009/10/14/windows-xp-instead-of-ubuntu-for-skype-home/</link>
		<comments>http://hatimonline.com/2009/10/14/windows-xp-instead-of-ubuntu-for-skype-home/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:22:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[vnc]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">urn:uuid:9b247bbf-d82e-41a7-af08-bc8c90f744e1</guid>
		<description><![CDATA[Windows XP is known to the most of the world as &#8220;Computer&#8221;. It&#8217;s every where, even Microsoft can not escape it&#8217;s popularity. As a chalmers student we are allowed to get a free Windows copy for personal use, So I decided to use mine to power my home Skype box instead of Ubuntu. The reasons [...]]]></description>
			<content:encoded><![CDATA[<p>Windows XP is known to the most of the world as &#8220;Computer&#8221;. It&#8217;s every where, even Microsoft can not escape it&#8217;s popularity. As a chalmers student we are allowed to get a free Windows copy for personal use, So I decided to use mine to power my home <a href="http://www.skype.com">Skype</a> box instead of Ubuntu. The reasons are rather practical,  as one cannot get Skype version more that 2.0 on Linux and the latest version for Windows solves all kinds of issues, from incoming Full Screen calls to better audio management.</p>
<p>In Pakistan one cannot use other VOIP services easily for now. May be even skype gets blcoked in the future. i will try to investigate a better solution.</p>
<p>The only other thing besides Skype that i am running is <a href="http://www.realvnc.com/">VNCServer</a> and <a href="http://dyndns.org">DynDns </a>update client to be able to log into the machine. The dyndns client is not very rasilaint as it does not detect IP changes.</p>
<p>Infact I am sitting more and more on my windows 7 installation out of necessity as it&#8217;s video chat in skype is better than what I can get in Linux at the moment. Here is a screen shot of skype video chat with advanced statistics enabled. In this you can see various statistics for a call made to Pakistan from Gothenburg (with one way video). The green needle in the bottom says that the call quality is good (which is rare actually)</p>
<p><a href="http://www.flickr.com/photos/hatim/4009566927/"><img src="http://farm3.static.flickr.com/2664/4009566927_f8e65f9521.jpg" alt="" /></a></p>
<p>One cannot do multiparty video chat with skype. I have found a nice new application called TokBox for that which does if for free. Another utility is from <a href="http://www.oovoo.com/">oovoo</a>, but it&#8217;s not free for multiparty video chat. This might be enough to push me into writing some thing of my own on top of already available SIP clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/10/14/windows-xp-instead-of-ubuntu-for-skype-home/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows 7 and battery&#160;wear</title>
		<link>http://hatimonline.com/2009/09/12/windows-7-and-battery-wear/</link>
		<comments>http://hatimonline.com/2009/09/12/windows-7-and-battery-wear/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 04:24:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">urn:uuid:43fdb61b-2244-461e-8791-6b34c010fb19</guid>
		<description><![CDATA[I have to come clean, I am posting this blog from Windows 7. I do have a very good excuse, my clients, my boss and my parents all require me to be in a windows machine.
You will ask how come? As I have previously mentioned that I have a DIY video conference system in my parent&#8217;s home. [...]]]></description>
			<content:encoded><![CDATA[<p>I have to come clean, I am posting this blog from <a href="http://en.wikipedia.org/wiki/Windows_7">Windows 7</a>. I do have a very good excuse, my clients, my boss and my parents all require me to be in a windows machine.</p>
<p>You will ask how come? As I have previously mentioned that I have a <a href="http://hatimonline.com/2009/08/22/back-in-sweden-a-video-conference-system-in-my-parents-house">DIY video conference system</a> in my parent&#8217;s home. Apparently with Skype 4.0 which is not available for Linux yet, you can have a much better video call quality. It may also have to do with the webcam driver for my laptop, which is not at par with the windows based driver.</p>
<p>My clients (or to be politically correct, my boss&#8217;s clients) are mostly on windows and require help with windows based systems as well as expect windows native solutions (so even working with Java based technologies, I am still expected to come up with .exe files and installers)</p>
<p>But it&#8217;s not that bad. I am coming back to windows after a very long time and after good changes in it. Windows 7 is actually a very slick system, but it does lack the raw power of any linux system. Hopefully I will be able to own a second machine in coming future to have as a windows only machine (I am thinking about <a href="http://www.engadget.com/2009/06/24/atom-based-nokia-netbook-reportedly-on-track-for-q3/">Nokia netbook</a> with 12 hour battery life). FYI I have a genuine windows dvd, thanks to Chalmers academic alliance with Microsoft.</p>
<p>One thing which I discovered while on my new system is that my extended screen was flickering rather bad. I  googled (binged?) it up and found that it could be my battery or the charger. Taking out the battery did solve the problem, I have yet to get my charge cable checked to see which problem is it (battery or charger). But while digging up information on battery health I came across page from <a href="http://batterycare.bkspot.com/en/index.html">BatteryCare</a>(which I discovered thanks to <a href="http://lifehacker.com/search/battery/">lifehacker</a>) detailing <a href="http://batterycare.bkspot.com/en/guide.html">proper laptop battery usage guide</a>. I had never really read up on battery care before so I will try to follow these suggestions from now at least.</p>
<p>I now have a battery wear level of around 30% on my laptop which considering my usage and the life of the battery (18 months almost continuous use) is not that bad.</p>
<p><a href="http://www.flickr.com/photos/hatim/3911616068/"><img src="http://farm3.static.flickr.com/2631/3911616068_2bfb2c5bda_m.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/09/12/windows-7-and-battery-wear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04,  The best Ubuntu release till date (and my&#160;customizations)</title>
		<link>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/</link>
		<comments>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/#comments</comments>
		<pubDate>Mon, 04 May 2009 01:58:00 +0000</pubDate>
		<dc:creator>hatim</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">urn:uuid:55e677fb-4508-405e-8c43-402ce9a0061c</guid>
		<description><![CDATA[Ubuntu has been my primary GNU/Linux distribution of choice for&#160; past two years. I have to admit that&#160; early on (around 2005) I was skeptical with all the hype and thought that this was&#160; yet another lame attempt to rip off Debian. But one of the reasons which attracted me to Ubuntu was their free [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ubuntu.com">Ubuntu</a> has been my primary GNU/Linux distribution of choice for&nbsp; past two years. I have to admit that&nbsp; early on (around 2005) I was skeptical with all the hype and thought that this was&nbsp; yet another lame attempt to rip off <a href="http://debian.org">Debian</a>. But one of the reasons which attracted me to Ubuntu was their free <a href="http://shipit.ubuntu.com">CD shipment</a> 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&nbsp; 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 <a href="http://gentoo.org">Gentoo</a>) I permanently shifted to Ubuntu and never looked back.</p>
<p>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 <a href="http://en.wikipedia.org/wiki/Ext4">ext4</a> filesystem). I didn&#8217;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 <a href="http://www.virtualbox.org/">VirtualBox</a> from a deb file (I could have sworn that I had burnt the 64 bit CD, but it was installed).</p>
<p>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 <a href="http://rubyonrails.org/">RubyOnRails</a> following my <a href="http://hatimonline.com/2008/12/15/updatig-my-linode-to-latest-ubuntu-8-10">own blog entry</a>. After that I tinkered a bit with Firefox to check for performance. In my experience firefox with it&#8217;s stack of plug-ins performs much better in native 32 bit than in 64 bit wrapping mode. I could not only run <a href="http://bbc.com/urdu">BBC.com/urdu</a> radio, but also had better&nbsp; performance of flash and other plug-ins.</p>
<p>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&#8217;t have to confirm it, it&nbsp; can logout automatically in 60 seconds if you choose to not confirm).</p>
<p><a href="http://www.flickr.com/photos/hatim/3481900518/"><img src="http://farm4.static.flickr.com/3359/3481900518_d6bd982c3e.jpg?v=0" alt="Ubutntu 9.04 logout dialog." /></a></p>
<p>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)</p>
<p><a href="http://www.flickr.com/photos/hatim/3481088881/"><img src="http://farm4.static.flickr.com/3297/3481088881_875ae701af.jpg?v=0" alt="Ubuntu Janitor" /></a></p>
<p>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.</p>
<p><a href="http://www.flickr.com/photos/hatim/3481900610/"><img src="http://farm4.static.flickr.com/3612/3481900610_f01dee064a.jpg?v=0" alt="BBCUrdu font " /></a></p>
<p><a href="http://www.flickr.com/photos/hatim/3481089337/"><img src="http://farm4.static.flickr.com/3352/3481089337_75ef38e503.jpg?v=0" alt="Alvi Nastaliq Font" /></a></p>
<p>I followed the guide of <a href="http://www.medibuntu.org/">medibuntu</a> to install repositories and enable win32 codecs for streaming content as well to easily install other non-free software (you can&#8217;t live with them if you have non geek family and friends). I also installed sun-java6 plugin to make <a href="http://javafx.com/">JavaFX</a> work nice and <a href="http://www.videolan.org/vlc/">VLC</a> with mozilla plugin as my primary media player and <a href="http://www.adobe.com/products/air/">Adobe Air</a> run time. </p>
<p>Last but not least I installed <a href="http://www.screenlets.org/index.php/Home">screnlets</a>, compiz config manager and <a href="http://do.davebsd.com/">GnomeDo</a> to make my desktop work like a charm (I didn&#8217;t find any of the other software from Lifehackers&#8217;s top 10 Jaunty download list to be of much use) </p>
<p>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 <a href="http://xbmc.org/forum/showpost.php?s=4000b6ade11130a50c6721e41d1a245b&amp;p=260593&amp;postcount=45">tip</a> and now I am running the Pulse sound server without any problem.</p>
<p>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&#8217;s best release to date. </p>
]]></content:encoded>
			<wfw:commentRss>http://hatimonline.com/2009/05/04/ubuntu-9-04-the-best-ubuntu-release-till-date-and-my-customizations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
