<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>DNA of the TUX</title>
	<atom:link href="http://tuxdna.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuxdna.wordpress.com</link>
	<description>Organized thoughts</description>
	<lastBuildDate>Wed, 01 Feb 2012 06:56:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tuxdna.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>DNA of the TUX</title>
		<link>http://tuxdna.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tuxdna.wordpress.com/osd.xml" title="DNA of the TUX" />
	<atom:link rel='hub' href='http://tuxdna.wordpress.com/?pushpress=hub'/>
		<item>
		<title>JRuby on Rails with RVM ( on Fedora )</title>
		<link>http://tuxdna.wordpress.com/2012/01/29/jruby-on-rails-with-rvm-fedora/</link>
		<comments>http://tuxdna.wordpress.com/2012/01/29/jruby-on-rails-with-rvm-fedora/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 12:10:12 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=411</guid>
		<description><![CDATA[First install RVM and set it up: To include RVM into your bash shell, add following line to ~/.bashrc: Now install JRuby and use it as default Ruby interpreter: Setup Rails environment: Lets create a new Rails application: Now go to http://localhost:3000/people/ Yay! Your new Rails application is up and running, powered by JRuby ( [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=411&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First install <a href="https://rvm.beginrescueend.com/" target="_blank">RVM</a> and set it up:<br />
<pre class="brush: bash;">
sudo yum install rubygem-rvm
rvm-install
</pre></p>
<p>To include RVM into your bash shell, add following line to <code>~/.bashrc</code>:<br />
<pre class="brush: bash;">
[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; . &quot;$HOME/.rvm/scripts/rvm&quot; # This loads RVM into a shell session.
</pre></p>
<p>Now install <a href="http://jruby.org/" target="_blank">JRuby</a> and use it as default Ruby interpreter:<br />
<pre class="brush: bash;">
source ~/.bashrc
rvm install jruby-1.5.6
rvm use jruby-1.5.6
</pre></p>
<p>Setup <a href="http://rubyonrails.org/" target="_blank">Rails</a> environment:<br />
<pre class="brush: bash;">
gem install rails
gem install bundler
</pre></p>
<p>Lets create a new Rails application:<br />
<pre class="brush: bash;">
rails new rails-app
cd rails-app
bundle install
rails g scaffold Person name:string
rake db:migrate
rails s
</pre></p>
<p>Now go to <a href="http://localhost:3000/people/" rel="nofollow">http://localhost:3000/people/</a><br />
Yay! Your new Rails application is up and running, powered by JRuby ( setup using RVM ).</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/411/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=411&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2012/01/29/jruby-on-rails-with-rvm-fedora/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>Packaging Java JARs as RPM packages</title>
		<link>http://tuxdna.wordpress.com/2012/01/27/packaging-java-jars-as-rpm-packages/</link>
		<comments>http://tuxdna.wordpress.com/2012/01/27/packaging-java-jars-as-rpm-packages/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 11:00:05 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[packaging]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=407</guid>
		<description><![CDATA[At JUDCon 2012, I had a discussion and argument with Jaikiran Pai and Ravi Maurya on &#8220;Packaging Java JARs as RPM packages&#8221;. Well it is not just RPM, it could be any package management system ( eg. dpkg, protage etc. ), doesn&#8217;t matter as long as it serves the purpose of: automatic dependency resolution installation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=407&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At JUDCon 2012, I had a discussion and argument with <a href="http://jaitechwriteups.blogspot.com/" target="_blank">Jaikiran Pai</a> and <a href="http://www.linkedin.com/in/ravindramaurya" target="_blank">Ravi Maurya</a> on &#8220;Packaging Java JARs as RPM packages&#8221;.</p>
<p>Well it is not just RPM, it could be any package management system ( eg. dpkg, protage etc. ), doesn&#8217;t matter as long as it serves the purpose of:</p>
<ul>
<li>automatic dependency resolution</li>
<li>installation of dependencies</li>
<li>rollback an install step</li>
<li>install multiple versions of a (JAR) package</li>
<li>ensure the packages are authentic ( for security )</li>
</ul>
<p>How is all this achieved in Java world? Simple. Just package all the required JARs in a single JAR or WAR or an EAR for that matter. And trust the packager for its security. But:</p>
<ul>
<li>Is this a good practice?</li>
<li>What happens when you want to install the same package on multiple systems?</li>
<li>Can you roll back changes easily on multiple installations?</li>
<li>How are JARs shared across different kind of projects, some which use the same version of the same JAR package?</li>
</ul>
<p>Consider the case of Maven, with which you can easily specify the dependencies and Maven does all the work of dependency resolution.<br />
However, it solves the problem only at the developer&#8217;s level. JARs are still bundled inside the output application package (JAR / WAR / EAR). And everytime this application is distributed, it will contain &#8220;ALL&#8221; the dependencies. That is clearly an overhead.</p>
<p>That makes me think, why JARs don&#8217;t work like Shared Libraries, which can be shared across applications. Every classloader / JVM instance has its own version of the same JAR file on-disk! Can&#8217;t they be shared? That too is clearly an overhead. I am not aware of the reasons why it is so, which I would definitely like to know.</p>
<p>The point is, since a package manager has all the functionality, why not just leverage it? Java community is either unaware of it, or doesn&#8217;t care. </p>
<p>No problem. There are efforts already in place. </p>
<p>Anyway, of other things Jaikiran told me that, JBoss AS7 has how better and <a href="https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7" target="_blank">modular class loading</a> which is based on <a href="https://docs.jboss.org/author/display/MODULES/Home" target="_blank">JBoss Modules</a>. This appears to me similar to how Maven structures it JAR repositories.</p>
<p>Here are some resources:</p>
<ul>
<li><a href="http://stackoverflow.com/questions/1508762/what-is-the-proper-way-to-package-a-single-jar-file-as-rpm" target="_blank">What is the proper way to package a single jar file as rpm?</a></li>
<li><a href="http://blogs.oracle.com/arungupta/entry/packaging_java_apps_for_ubuntu" target="_blank">Packaging Java Apps for Ubuntu @ FOSS.IN</a></li>
<li><a href="http://fedoraproject.org/wiki/Packaging:Java" target="_blank">Java Packaging</a> in Fedora</li>
<li><a href="http://javaworkshop.wordpress.com/2008/10/22/rolling-up-an-rpm-for-a-java-application/" target="_blank">Creating an RPM for a Java Application</a></li>
<li><a href="http://mojo.codehaus.org/rpm-maven-plugin/" target="_blank">Maven plugin to create RPM packages</a></li>
</ul>
<p>Thats it folks!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=407&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2012/01/27/packaging-java-jars-as-rpm-packages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>JUDCon 2012 &#8211; an experience!</title>
		<link>http://tuxdna.wordpress.com/2012/01/27/judcon-2012-an-experience/</link>
		<comments>http://tuxdna.wordpress.com/2012/01/27/judcon-2012-an-experience/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:21:21 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[drools]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[judcon]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=389</guid>
		<description><![CDATA[My first Java exclusive conference! I arrived at the venue right on time. Surprize, there were a lot of people already holding their welcome kits. Conference was already running quite smoothly. Wifi worked most of the time. The sessions, lunch, tea were always on time. Actually, there were people assigned to ring bells, just like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=389&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My first Java exclusive conference!</p>
<p>I arrived at the venue right on time. Surprize, there were a lot of people already holding their welcome kits. Conference was already running quite smoothly. Wifi worked most of the time. The sessions, lunch, tea were always on time. Actually, there were people assigned to ring bells, just like in schools, to notify timeout during lunch and tea breaks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The whole confenence was revolving around four major topics: <a href="http://www.jboss.org/as7" target="_blank">JBoss AS7</a>, <a href="http://www.jboss.org/infinispan" target="_blank">Infinispan</a>, <a href="http://www.jboss.org/drools" target="_blank">Drools</a> and <a href="http://openshift.redhat.com/" target="_blank">OpenShift</a>.</p>
<p>Opening talk was given by <a title="Harish Pillay" href="http://fedoraproject.org/wiki/User:HarishPillay" target="_blank">Harish Pillay</a>, Red Hat Global Community Architecture Team.</p>
<p>The Keynote of the day was by <a href="http://www.linkedin.com/in/brunogeorges" target="_blank">Bruno Georges</a>. He mentioned some interesting trends of which are:</p>
<ul>
<li>There are about 4 times the processors compared to the number or people in United States alone and growing. Meaning that the processing power is available in abundance.</li>
<li>There is a significant growth in Ad-Hoc Social Networks for businesses</li>
</ul>
<p>Now where is the industry heading? In perspective of Java, <a href="http://jcp.org/aboutJava/communityprocess/elections/2011-candidates.html" target="_blank">Java ME/EC is going to be merged with Java SE/EE</a>. SQL based data is moving towards NoSQL which is now leading us to <a href="http://www.readwriteweb.com/cloud/2011/04/the-newsql-movement.php" target="_blank">NewSQL</a>. The software stacks are moving towards ubiquitous computing i.e. even smaller handheld devices,  are capable of running these software stacks. To sum it up, it was a very factual and a visionary talk by Bruno.</p>
<p>I will defer the other topics till later. Let me talk about the topics I liked the most:</p>
<p><strong><a href="http://www.hibernate.org/?q=jpa&amp;x=0&amp;y=0#" target="_blank">JPA</a> &#8211; Painless Persistence</strong></p>
<p>Painless Persistence by <a href="https://twitter.com/#!/thegrackleflint" target="_blank">Greg Kable</a> was a very engaging talk. It was kind of an OOPS/ORM primer. The concepts were explained in a very general terms like &#8220;why/when to use ORM and when not to&#8221;, Skinny Objects and their pitfalls. Why to avoid optimization? Such concepts could be applied to any kind of ORM in practice. Even if you didn&#8217;t know anything about JPA or Hibernate, you could understand the point Greg was trying to make. And by the way, there are <em>3 rules of optimization: don&#8217;t do it, don&#8217;t do it, don&#8217;t do it</em>. Before deciding on optimizing part(s) of your application always think of these 3 rules. It is just as a reminder that it might not make sense to put efforts on optimizing your applications first of all.</p>
<p><strong>Future of <a href="http://seamframework.org/" target="_blank">Seam</a> Framework</strong></p>
<p>Seam 3 is final release of Seam project. That&#8217;s it. All future efforts are directed towards Apache <a href="https://cwiki.apache.org/DeltaSpike/" target="_blank">DeltaSpike</a> from now on. So, do think twice before using Seam for your new projects. However, Seam being a widely used framework, the bugfixes and mainitainence will still be available. And contributes, checkout the <a href="https://cwiki.apache.org/DeltaSpike/" target="_blank">DeltaSpike</a> project now!</p>
<p><strong><a href="https://github.com/projectodd/jboss-polyglot" target="_blank">Polyglot</a> Revolution</strong></p>
<p>This was an intersting topic. What it means is that many JVM based languages (ceylon, scala, clojure, ruby, python) and their frameworks ( like Ruby On Rails ) will be available integrated with JBoss AS. <a href="http://torquebox.org/" target="_blank">TorqueBox</a> is a unique example of this. With this effort, you can use all the power and features of Java EE stack right into your other language frameworks. Same argument applies for <a href="http://immutant.org/" target="_blank">Immutant</a>.</p>
<p><strong><a href="http://www.jboss.org/as7" target="_blank">JBoss</a> Application Server</strong></p>
<p>In the recent years, JBoss has seen a lot of increase in the number of hits on its project sites from the Indian region. Most of these hits are by the users who use JBoss. But what about the size of contributers? What is the plan ahead for community engagement? Well that is the question I asked the panel. <strong>JBoss Heroes</strong> is project that is supposed to address this issue. Lets see when it is going to actually materialize. <a href="http://www.jboss.org/as7" target="_blank">JBoss AS7</a>, the latest release, is fully EE6 compliant, is very lightweight and is blazing fast with a boot time less that 3 seconds!</p>
<p><a href="http://www.jboss.org/infinispan" target="_blank"><strong>Infinispan</strong></a></p>
<p>I don&#8217;t know why but there were just too many talks on Infinispan alone ( over 6 talks ! ). Inifinispan is a data grid platform based on the design of Amazon Dynamo ( has many implementation including Apache Cassandra ). Infinispan spans a very broad set of usecases. It can act as an in memory cache, persistent cache, distributed cache, replicated cache for high availablity. Also it provides plugins for different backends like Arjuna TM, BDB, JDB, JDBC etc.</p>
<p>Essentially it acts a key/value store. Its real power comes from its flexibility, which allows it to be adapted for many many use cases.</p>
<p><a href="http://www.slideshare.net/openblend/open-blend-2010-whatittakesdimitrisandreadis" target="_blank"><strong>Becoming an Open Source developer</strong></a></p>
<p>&#8220;When in fight, I start to fear that if I get hit by my oppnent, worse is going to happen, and I will lose.&#8221; Well, dont! Believe in how good things are going to be if you succeed. Always think that you are going to bring the opponent down no matter what. Never fear of failure. Fear the fear itself, and put your best. That is the mantra of successful Open Source developers, quite well explained by <a href="http://dandreadis.blogspot.com/" target="_blank">Dmitris</a> in his talk <strong>Becoming an Open Source developer</strong>. Fight the problem until you solve it. Isn&#8217;t that straight forward <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong><a href="http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html#d0e26" target="_blank">Drools</a> &#8211; Rules Engine and Complex Event Processing</strong></p>
<p>In the talk &#8220;<strong>Declarative Rules</strong>&#8221; by <a href="http://markproctor.com/" target="_blank">Mark Proctor</a> ( co-creator and founder of Drools ), he explained that Drools is Declarative Rules based engine. He demonstrated a simple game <a href="http://blog.athico.com/2012/01/wumpus-world-update.html" target="_blank">Wumpus World</a>, that can be completely created using only rules. No other code required, which simplifies the whole process. Of the other things in his talk, there qere queries regarding Fuzzy logic support in Drools. Rules reduction or compaction process in Drools. Also rules processing on distributed and unstructured data, which is an inherently hard nut to crack.</p>
<p>In a subsequent talk &#8220;<strong>Demystifying Complex Event Processing</strong>&#8221; by <a href="http://markproctor.com/" target="_blank">Mark Proctor</a> again, he explained how CEP works. How Complex Event Processing (<a href="http://en.wikipedia.org/wiki/Complex_event_processing_(CEP)" target="_blank">CEP</a>), Event Stream Processing (<a href="http://en.wikipedia.org/wiki/Event_stream_processing" target="_blank">ESP</a>) and Event Drive Architecture (<a href="http://en.wikipedia.org/wiki/Event-driven_architecture" target="_blank">EDA</a>) are closely related. <a href="http://www.jboss.org/drools/drools-fusion.html" target="_blank">Drools Fusion</a> is the CEP tool by JBoss. To learn more about Drools / CEP there are many books available: <a href="http://www.amazon.com/Power-Events-Introduction-Processing-Distributed/dp/0201727897" target="_blank">The Power of Events</a>, <a href="http://www.amazon.com/Event-Driven-Architecture-Enables-Real-Time-Enterprise/dp/0321322118/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1327647094&amp;sr=1-1" target="_blank">Event Drive Architecture</a>, <a href="http://my.safaribooksonline.com/book/programming/java/9781847195647" target="_blank">Drools JBoss Rules 6.0 Developer&#8217;s Guide</a>, <a href="https://www.packtpub.com/jboss-drools-business-rules/book" target="_blank">JBoss Drools Business Rules</a></p>
<p>I am happy to have met a lot of people <a href="http://jaitechwriteups.blogspot.com/" target="_blank">Jaikiran Pai</a>, <a href="https://twitter.com/#!/sacdroid" target="_blank">Sachin Patil</a>, <a href="http://www.blogger.com/profile/07496088168312707495" target="_blank">Ray Ploski</a>, <a href="https://twitter.com/#!/radoslavhusar" target="_blank">Radoslav Husar</a>, <a href="http://relation.to/Bloggers/Ales" target="_blank">Ales Justin</a>, <a href="http://dandreadis.blogspot.com/" target="_blank">Dmitris Andreadis</a>, and many other whom I only listened to <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>However, I also missed a few things that would have made this conference even better in my opinion. There could have been an inclusion of activities like Hackathon, Bug Squadding or Workshop ( hands-on sessions ).</p>
<p>It has been a great learning experience. Keep them coming &#8211; the events &#8211; JUDCon 2012, you rock!</p>
<p>PS: I don&#8217;t see any slides nor the videos from JUDCon 2012 on their website yet. When are they coming?</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/389/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=389&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2012/01/27/judcon-2012-an-experience/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>Potential bug in Ruby bindings of Apache Qpid</title>
		<link>http://tuxdna.wordpress.com/2012/01/14/potential-bug-in-ruby-bindings-of-apache-qpid/</link>
		<comments>http://tuxdna.wordpress.com/2012/01/14/potential-bug-in-ruby-bindings-of-apache-qpid/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 11:14:10 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=383</guid>
		<description><![CDATA[I wanted to experiment with Ruby bindings of Apache Qpid. Lets install the the server and client: Now check which version of Ruby bindings have we installed here: Okay, now lets create a simple script and send some messages. On running the script we should get a &#8220;Hello world!&#8221; message. This is not what we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=383&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to experiment with Ruby bindings of <a href="http://qpid.apache.org/" title="Apache Qpid" target="_blank">Apache Qpid</a>.</p>
<p>Lets install the the server and client:<br />
<pre class="brush: bash;">
$ sudo yum install qpid-cpp-server ruby-qpid qpid-tools
$ service qpidd start
</pre></p>
<p>Now check which version of Ruby bindings have we installed here:<br />
<pre class="brush: bash;">
$ rpm -qi ruby-qpid
Name        : ruby-qpid
Version     : 0.8
Release     : 2.fc15
Architecture: x86_64
Install Date: Fri 13 Jan 2012 06:21:55 PM IST
Group       : Development/Ruby
Size        : 219877
License     : ASL 2.0
Signature   : RSA/SHA256, Wed 27 Jul 2011 06:41:06 PM IST, Key ID 067f00b6a82ba4b7
Source RPM  : ruby-qpid-0.8-2.fc15.src.rpm
Build Date  : Wed 09 Feb 2011 03:48:16 PM IST
Build Host  : x86-11.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://qpid.apache.org/
Summary     : Ruby language client for AMQP
Description :
The Apache Qpid project's Ruby language client for AMQP.
</pre></p>
<p>Okay, now lets create a simple script and send some messages.<br />
<pre class="brush: ruby;">
#!/usr/bin/ruby
# file: qpid-test.rb
require 'qpid'

host = &quot;localhost&quot;
port = 5672
address = &quot;amq.topic&quot;
spec_marshal_file = &quot;/usr/lib/ruby/site_ruby/1.8/qpid/spec_cache/amqp.0-10-qpid-errata.rb_marshal&quot;
spec_object = Marshal.load(File.open(spec_marshal_file).read())

socket = TCPSocket.new(host, port)
connection = Qpid::Connection.new(socket, :spec =&gt; spec_object)
puts &quot;Connection instance created...&quot;

connection.open

puts &quot;Connection instance opened...&quot;

session    = connection.create_session
puts &quot;Session initiated...&quot;

receiver   = session.create_receiver address
puts &quot;Receiver object created...&quot;

sender     = session.create_sender address
puts &quot;Sender object created...&quot;


sender.send Qpid::Message.new :content =&gt; &quot;Hello world!&quot;

message = receiver.fetch Qpid::Messaging::Duration::SECOND
puts &quot;#{message.content}&quot;
session.acknowledge
connection.close
</pre></p>
<p>On running the script we should get a &#8220;Hello world!&#8221; message.<br />
<pre class="brush: bash;">
$ ruby qpid-test.rb
Connection instance created...
qpid-test.rb:13qpid-test.rb:13: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Aborted (core dumped)
</pre></p>
<p>This is not what we expected. What is wrong here? Perhaps a bug in the Ruby bindings.</p>
<p>Then I went to the source code repository of Ruby bindings on github.com:</p>
<p><a href="https://github.com/apache/qpid/tree/trunk/qpid/cpp/bindings/qpid/ruby" rel="nofollow">https://github.com/apache/qpid/tree/trunk/qpid/cpp/bindings/qpid/ruby</a></p>
<p>According to the instructions I installed the latest bindings:<br />
<pre class="brush: bash;">
$ sudo gem install qpid
</pre></p>
<p>And removed the one I installed earlier<br />
<pre class="brush: bash;">
$ yum erase ruby-qpid
</pre></p>
<p>Now thats funny because the gem I ended up installing using the command is:</p>
<p><a href="http://rubygems.org/gems/qpid" rel="nofollow">http://rubygems.org/gems/qpid</a></p>
<p>QPID (Queriable Patient Inference Dossier, developed at Massachusetts General Hospital), which is not even related to Apache Qpid.</p>
<p>How am I supposed to installed the latest Ruby bindings for <a href="http://qpid.apache.org/" title="Apache Qpid" target="_blank">Apache Qpid</a> client?</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=383&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2012/01/14/potential-bug-in-ruby-bindings-of-apache-qpid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>Symlink loop is still an unsolved problem</title>
		<link>http://tuxdna.wordpress.com/2011/12/10/symlink-loop-is-still-an-unsolved-problem/</link>
		<comments>http://tuxdna.wordpress.com/2011/12/10/symlink-loop-is-still-an-unsolved-problem/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 09:05:01 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=378</guid>
		<description><![CDATA[How do I dereference a symbolic link? $ ls -l /usr/bin/java lrwxrwxrwx. 1 root root 22 Jul 20 2010 /usr/bin/java -&#62; /etc/alternatives/java $ ls -l /etc/alternatives/java lrwxrwxrwx. 1 root root 30 Aug 9 2010 /etc/alternatives/java -&#62; /usr/java/jdk1.6.0_20/bin/java $ ls -l /usr/java/jdk1.6.0_20/bin/java -rwxr-xr-x. 1 root root 50810 Apr 13 2010 /usr/java/jdk1.6.0_20/bin/java Lets create a chain of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=378&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How do I dereference a symbolic link?</p>
<p><code>$ ls -l /usr/bin/java<br />
lrwxrwxrwx. 1 root root 22 Jul 20  2010 /usr/bin/java -&gt; /etc/alternatives/java<br />
$ ls -l /etc/alternatives/java<br />
lrwxrwxrwx. 1 root root 30 Aug  9  2010 /etc/alternatives/java -&gt; /usr/java/jdk1.6.0_20/bin/java<br />
$ ls -l /usr/java/jdk1.6.0_20/bin/java<br />
-rwxr-xr-x. 1 root root 50810 Apr 13  2010 /usr/java/jdk1.6.0_20/bin/java</code></p>
<p>Lets create a chain of symbolic links:<br />
<pre class="brush: bash;">
mkdir /tmp/symlink
cd /tmp/symlink
echo &quot;this is a test file&quot; &gt;  abc.txt
ln -s abc.txt link1
ln -s link1 link2
ln -s link2 link3
ln -s link3 link4
</pre></p>
<p>Now lets use the last link that we created:<br />
<pre class="brush: bash;">
cat link4
this is a test file
</pre></p>
<p>What if we make it a circular link?<br />
<pre class="brush: bash;">
rm link1
ln -s link4 link1
</pre></p>
<p>Now lets try to use one of the symbolic links:<br />
<pre class="brush: bash;">
cat link4
cat: link4: Too many levels of symbolic links
</pre></p>
<p>You noticed that? Okay, lets move further:</p>
<p><pre class="brush: bash;">
# we will create a chain of symlinks, which is 50 links deep
mkdir /tmp/links
cd /tmp/links
for i in {0..50}
do
  ln -s l${i} l$(expr $i + 1)
done
echo hello &gt; l0
</pre></p>
<p>Lets see what files/links this script has generated:<br />
<pre class="brush: bash;">
cd /tmp/links
ls -l
</pre></p>
<p>You will notice that all the symlinks upto l40 resolve correctly:<br />
<pre class="brush: bash;">
$ cat l40
hello
$ # notice that:
$ # all links from l41 and above will not resolve
$ cat l41 
cat: l41: Too many levels of symbolic links
$ cat l51
cat: l51: Too many levels of symbolic links
</pre></p>
<p>Lets print the whole link path now:<br />
<pre class="brush: bash;">
# doesn't handle circular symlink loops at the moment
F=l51
while [ -h &quot;$F&quot; ]
do
  G=$(readlink $F)
  echo &quot;$F -&gt; $G&quot;
  F=$G
done
echo &quot;Finally -&gt; $F&quot;
</pre></p>
<p>OUTPUT:<br />
<pre class="brush: bash;">
l51 -&gt; l50
l50 -&gt; l49
l49 -&gt; l48
...OUTPUT SKIPPED..
l3 -&gt; l2
l2 -&gt; l1
l1 -&gt; l0
Finally -&gt; l0
</pre></p>
<p>What&#8217;s the bottomline?</p>
<ul>
<li>Even if there is no circular symlink loop, the symlink might fail to resolve. This depends on the MAXSYMLINK limit.</li>
<li>UNIX / Linux doesn&#8217;t handle symlink loops at all. The whole assumption is based on a limit. If the symlink chain grows more than a certain limit, we will get a &#8220;Too many levels of symbolic links&#8221; error, regardless of the symlink loop or not.</li>
</ul>
<p>References:</p>
<p><a href="http://lwn.net/Articles/91959/" rel="nofollow">http://lwn.net/Articles/91959/</a></p>
<p><a href="http://www.itworld.com/nls_unix_symboliclinks060622" rel="nofollow">http://www.itworld.com/nls_unix_symboliclinks060622</a></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=378&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/12/10/symlink-loop-is-still-an-unsolved-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>How to resize a VM and its partitions?</title>
		<link>http://tuxdna.wordpress.com/2011/11/29/how-to-resize-a-vm-and-its-partitions/</link>
		<comments>http://tuxdna.wordpress.com/2011/11/29/how-to-resize-a-vm-and-its-partitions/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 09:20:52 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=368</guid>
		<description><![CDATA[In this post I am going to list the steps to resize a Virtual Machine image created using virt-install There are three steps: Resize the VM image Resize the LVM volume inside the VM ( both physical volume and logical volume ) Resize the filesystem on the LVM volume First locate where the image for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=368&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post I am going to list the steps to resize a Virtual Machine image created using <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/sect-Virtualization-Virtualized_guest_installation_overview-Creating_guests_with_virt_install.html">virt-install</a> </p>
<p>There are three steps:</p>
<ul>
<li><strong>Resize the VM image</strong></li>
<li><strong>Resize the LVM volume inside the VM ( both physical volume and logical volume )</strong></li>
<li><strong>Resize the filesystem on the LVM volume</strong></li>
</ul>
<p>First locate where the image for your VM is stored.<br />
<pre class="brush: bash;">
# virsh dumpxml vm2 | xpath /domain/devices/disk/source
Found 1 nodes:
-- NODE --
&lt;source file=&quot;/export/vmimgs/vm2.img&quot; /&gt;
</pre></p>
<p>Mine is stored at /export/vmimgs/vm2.img</p>
<p>It is 5GB VM which I want to resize to 10GB. And then, I basically want more space for root partition ( mount point / ).</p>
<p><strong>Step 1: Resize the VM image</strong></p>
<p>Shutdown the VM and take a backup;<br />
<pre class="brush: bash;">
# virsh shutdown vm2
# cd /export/vmimgs
# cp vm2.img vm2.img.backup
</pre></p>
<p>First lets find the disk devices within our VM:<br />
<pre class="brush: bash;">
# virt-filesystems --long -h -a  /export/vmimgs/vm2.img
Name                   Type        VFS   Label  Size
/dev/sda1              filesystem  ext4  -      500M
/dev/VolGroup/lv_root  filesystem  ext4  -      1.5G

# virt-filesystems --long --parts --blkdevs -h -a  /export/vmimgs/vm2.img
Name       Type       MBR  Size  Parent
/dev/sda1  partition  83   500M  /dev/sda
/dev/sda2  partition  8e   1.5G  /dev/sda
/dev/sda   device     -    5G    -
</pre></p>
<p>Now we resize our VM image ( +5GB ):<br />
<pre class="brush: bash;">
# cd /export/vmimgs
# truncate -r vm2.img vm2.img.new
# truncate -s +5G vm2.img.new 
# virt-resize --expand /dev/sda2 vm2.img vm2.img.new
Examining vm2.img ...
**********

Summary of changes:

/dev/sda1: This partition will be left alone.

/dev/sda2: This partition will be resized from 4.5G to 9.5G.  The LVM 
    PV on /dev/sda2 will be expanded using the 'pvresize' method.

**********
Setting up initial partition table on vm2.img.new ...
Copying /dev/sda1 ...
 100% ⟦▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓⟧ 00:00
Copying /dev/sda2 ...
 100% ⟦▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓⟧ 00:00
 100% ⟦▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓⟧ --:--
Expanding /dev/sda2 using the 'pvresize' method ...

Resize operation completed with no errors.  Before deleting the old 
disk, carefully check that the resized disk boots and works correctly.
</pre></p>
<p><em><strong>Did you notice that /dev/sda2 was resized using &#8216;pvresize&#8217;. Thats because<br />
its a LVM physical volume.</strong></em></p>
<p>Now we move the new image vm2.img.new to the actuall image, taking backup for safety:<br />
<pre class="brush: bash;">
# chmod +x vm2.img.new
# mv vm2.img vm2.img.original
# mv vm2.img.new vm2.img
</pre></p>
<p><strong>Step 2: Resize the LVM volume inside the VM  &#8211; logical volume </strong></p>
<p>Login into guest and resize the logical volume:<br />
<pre class="brush: bash;">
[root@localhost ~]# lvresize -L +5G /dev/VolGroup/lv_root
</pre></p>
<p><strong>Step 3: Resize the filesystem on the LVM volume.</strong></p>
<p>Resize the ext4 partition:</p>
<p><pre class="brush: bash;">
[root@localhost ~]# resize2fs /dev/VolGroup/lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VolGroup/lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/VolGroup/lv_root to 1708032 (4k) blocks.
The filesystem on /dev/VolGroup/lv_root is now 1708032 blocks long.

[root@localhost ~]# df -h
Filesystem                    Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root  6.5G  1.4G  4.8G  23% /
tmpfs                        1004M     0 1004M   0% /dev/shm
/dev/vda1                     485M   31M  429M   7% /boot
</pre></p>
<p>Thats it. I hope that helps.</p>
<p><strong>References:</strong></p>
<p><a href="http://libguestfs.org/virt-resize.1.html" rel="nofollow">http://libguestfs.org/virt-resize.1.html</a></p>
<p><a href="http://virt-tools.org/learning/install-with-command-line/" rel="nofollow">http://virt-tools.org/learning/install-with-command-line/</a></p>
<p><a href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/sect-Virtualization-Virtualized_guest_installation_overview-Creating_guests_with_virt_install.html" rel="nofollow">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/sect-Virtualization-Virtualized_guest_installation_overview-Creating_guests_with_virt_install.html</a></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=368&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/11/29/how-to-resize-a-vm-and-its-partitions/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>zif critical errors</title>
		<link>http://tuxdna.wordpress.com/2011/11/28/zif-critical-errors/</link>
		<comments>http://tuxdna.wordpress.com/2011/11/28/zif-critical-errors/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 15:46:48 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=364</guid>
		<description><![CDATA[Every once in a while I get these errors when installing a package using zif: Although the packages get installed, this is makes me uncomfortable. And how are these stack-traces generated for C code ?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=364&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every once in a while I get these errors when installing a package using zif:</p>
<p><pre class="brush: bash;">
Downloading        [==================================================================] (59%)
 packages/glusterfs-server-3.2.4-2.fc16.x86_64.rpm [2.9 MB/s] om 64 to 52 on 0x1fb60b0!
5) zif-main.c:2590 (5/6)
4) zif-main.c:2401 (3/5)
3) zif-transaction.c:3989 (1/3)
2) zif-package-array.c:243 (0/1)
1) zif-package-remote.c:416 (2/3)
0) zif-store-remote.c:505 (1/2)

(zif:18671): Zif-CRITICAL **: percentage should not go down from 60 to 19 on 0x78e6410!
4) zif-main.c:2590 (5/6)
3) zif-main.c:2401 (3/5)
2) zif-transaction.c:3989 (1/3)
1) zif-package-array.c:243 (0/1)
0) zif-package-remote.c:416 (2/3)

(zif:18671): Zif-CRITICAL **: percentage should not go down from 64 to 27 on 0x7f5f4c0!
3) zif-main.c:2590 (5/6)
2) zif-main.c:2401 (3/5)
1) zif-transaction.c:3989 (1/3)
0) zif-package-array.c:243 (0/1)

(zif:18671): Zif-CRITICAL **: percentage should not go down from 64 to 27 on 0x1fb63e0!
2) zif-main.c:2590 (5/6)
1) zif-main.c:2401 (3/5)
0) zif-transaction.c:3989 (1/3)

(zif:18671): Zif-CRITICAL **: percentage should not go down from 61 to 31 on 0x7909ae0!
1) zif-main.c:2590 (5/6)
0) zif-main.c:2401 (3/5)

(zif:18671): Zif-CRITICAL **: percentage should not go down from 49 to 40 on 0x1fb62d0!
0) zif-main.c:2590 (5/6)
Completed          [==================================================================] (100%)
                                                               m 59 to 52 on 0x1fb60b0!
Transaction success!
</pre></p>
<p>Although the packages get installed, this is makes me uncomfortable.</p>
<p>And how are these stack-traces generated for C code ?</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/364/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/364/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/364/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=364&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/11/28/zif-critical-errors/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>zif &#8211; Package management done faster</title>
		<link>http://tuxdna.wordpress.com/2011/11/24/zif-package-management-done-faster/</link>
		<comments>http://tuxdna.wordpress.com/2011/11/24/zif-package-management-done-faster/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 12:42:58 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=357</guid>
		<description><![CDATA[On Fedora 16, I used zif. zif is an alternative to yum and its fast! How to setup zif? So easy: sudo yum install zif zif-tools All set! Search for packages using zif: sudo zif search mongodb Do a offline serach ( like cached -C in yum ): sudo zif search -o mongodb Install packages [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=357&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On Fedora 16, I used <a href="http://people.freedesktop.org/~hughsient/zif/" title="zif">zif</a>. <a href="http://people.freedesktop.org/~hughsient/zif/" title="zif">zif</a> is an alternative to <a href="http://yum.baseurl.org/" title="yum">yum</a> and its fast!</p>
<p><strong>How to setup zif?</strong><br />
So easy: <code>sudo yum install zif zif-tools</code></p>
<p>All set!</p>
<p><strong>Search for packages using zif:</strong><br />
<code>sudo zif search mongodb</code></p>
<p><strong>Do a offline serach ( like cached -C in yum ):</strong><br />
<code>sudo zif search -o mongodb</code></p>
<p><strong>Install packages using zif:</strong><br />
<code>sudo zif install mongodb-server mysql-server</code></p>
<p><strong>Update all packages:</strong><br />
<code>sudo zif update</code></p>
<p>And if you feel like canceling the operation using <strong>Ctrl+C</strong>, it happens almost <strong>instantaneously</strong>!</p>
<p>I like it.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/357/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=357&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/11/24/zif-package-management-done-faster/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>How to setup multiple monitors on Xfce desktop?</title>
		<link>http://tuxdna.wordpress.com/2011/11/17/how-to-setup-multiple-monitors-on-xfce-desktop/</link>
		<comments>http://tuxdna.wordpress.com/2011/11/17/how-to-setup-multiple-monitors-on-xfce-desktop/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 05:49:22 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=350</guid>
		<description><![CDATA[How to setup multiple monitors on Xfce desktop? I just followed the instructionson Xorg RandR 1.2 wiki http://www.thinkwiki.org/wiki/Xorg_RandR_1.2 Lets find out how many monitors we have connected? Now ask Xrandr to configure them: Now thats simply cool!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=350&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to setup multiple monitors on Xfce desktop?</p>
<p>I just followed the instructionson Xorg RandR 1.2 wiki</p>
<p><a href="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2" rel="nofollow">http://www.thinkwiki.org/wiki/Xorg_RandR_1.2</a></p>
<p>Lets find out how many monitors we have connected?</p>
<p><pre class="brush: bash;">
$ xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm
   1280x800       60.0*+   50.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected (normal left inverted right x axis y axis)
   1680x1050      60.0 +
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
</pre></p>
<p>Now ask Xrandr to configure them:<br />
<pre class="brush: bash;">
$ xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1
</pre></p>
<p>Now thats simply cool!</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/350/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/350/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/350/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=350&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/11/17/how-to-setup-multiple-monitors-on-xfce-desktop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
		<item>
		<title>Emacs key binding Ctrl+Space not working on Fedora 16 GNOME or XFCE</title>
		<link>http://tuxdna.wordpress.com/2011/11/15/emacs-key-binding-ctrlspace-not-working-on-fedora-16-gnome-or-xfce/</link>
		<comments>http://tuxdna.wordpress.com/2011/11/15/emacs-key-binding-ctrlspace-not-working-on-fedora-16-gnome-or-xfce/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 05:40:30 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=346</guid>
		<description><![CDATA[I installed Fedora 16 x86_64 and then installed Emacs. Then I logged in into (XFCE or GNOME) desktop and started Emacs. For text selection in Emacs I use Ctrl+Space ( which is the default in Emacs ), and is no longer working. So I cannot select text using Ctr+Space. However, if I login into virtual [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=346&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I installed Fedora 16 x86_64 and then installed Emacs. Then I logged in into (XFCE or GNOME) desktop and started Emacs.<br />
For text selection in Emacs I use Ctrl+Space ( which is the default in Emacs ), and is no longer working. So I cannot select text using Ctr+Space.</p>
<p>However, if I login into virtual terminal ( Ctrl+Alt+F3 ), then login and start Emacs, the key-binding (Ctrl+Space) for text selection works fine. Therefore there is no problem in Emacs itself.</p>
<p>I suspect that the Ctrl+Space key strokes are intercepted by something in between i.e. either GDM or IBus but I am not sure which one. How can I fix it?</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tuxdna.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tuxdna.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tuxdna.wordpress.com/346/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&amp;blog=10303502&amp;post=346&amp;subd=tuxdna&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2011/11/15/emacs-key-binding-ctrlspace-not-working-on-fedora-16-gnome-or-xfce/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4a485e339c4de35684dfe31dc758041e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tuxdna</media:title>
		</media:content>
	</item>
	</channel>
</rss>
