<?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>Tue, 14 May 2013 18:00:57 +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>Setting up NAT and MASQUERADE for sharing USB Tether connection over LAN</title>
		<link>http://tuxdna.wordpress.com/2013/05/14/setting-up-nat-and-masquerade-for-sharing-usb-tether-connection-over-lan/</link>
		<comments>http://tuxdna.wordpress.com/2013/05/14/setting-up-nat-and-masquerade-for-sharing-usb-tether-connection-over-lan/#comments</comments>
		<pubDate>Tue, 14 May 2013 18:00:54 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=622</guid>
		<description><![CDATA[I the only source of Internet connection I have currently is my phone. I wanted to share this network with other systems, via a lan/wireless router. So here is a basic setup: Android Phone with USB Tethering Laptop ( Fedora 18 ) Wireless Router with Lan A desktop machine ( Fedora 17 ) Setting up [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=622&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I the only source of Internet connection I have currently is my phone. I wanted to share this network with other systems, via a lan/wireless router. So here is a basic setup:</p>
<ul>
<li>Android Phone with USB Tethering</li>
<li>Laptop ( Fedora 18 )</li>
<li>Wireless Router with Lan</li>
<li>A desktop machine ( Fedora 17 )</li>
</ul>
<p><strong>Setting up Internet gateway: Laptop + Android Phone</strong></p>
<p>I connected Android Phone via USB cable to the laptop and enabled USB thether, so I have a usb device /dev/usb0. This was automatically detected by Network Manager. Also I connected Laptop to the router via a LAN.</p>
<p>I setup the NAT on my Laptop using <a href="https://gist.github.com/tuxdna/5577984" title="nat.sh" target="_blank">this script</a> as follows:</p>
<pre class="brush: plain; title: ; notranslate">
# cat nat.sh
IFOUT=usb0
IFLAN=em1
echo 1 &gt; /proc/sys/net/ipv4/ip_forward &amp;&amp;
sudo iptables -t nat -A POSTROUTING -o $IFOUT -j MASQUERADE &amp;&amp;
sudo iptables -A FORWARD -i $IFOUT -o $IFLAN -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT &amp;&amp;
sudo iptables -A FORWARD -i $IFLAN -o $IFOUT -j ACCEPT
</pre>
<p>So all I had to do to setup is do this:</p>
<pre class="brush: plain; title: ; notranslate">
# sh nat.sh
</pre>
<p>And IPTABLES take care of masquerading the IP addresses to-and-fro from local network to the internet. I received IP address 192.168.1.2 for the Laptop, which becomes a default gateway for rest of the machines connected to the router.</p>
<p><strong>Setting up Internet user: Desktop machine</strong></p>
<p>Now on the desktop machine ( with IP address 192.168.1.3 ), I only had to setup the routes and DNS server:</p>
<pre class="brush: plain; title: ; notranslate">
# route add default gw 192.168.1.2
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.2     0.0.0.0         UG    0      0        0 em1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 em1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 em1

# cat /etc/resolv.conf 
# Generated by NetworkManager
#nameserver 192.168.1.3
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 192.168.42.129
</pre>
<p>Thats all, that was needed. I had done the NAT + MASQUERADE setup earlier, however it was on Fedora Core 2 and some commands didn&#8217;t match up, esp. how to use conntrack module.</p>
<p>References:</p>
<ul>
<li><a href="http://unix.stackexchange.com/questions/38822/nat-internet-connection-sharing-switching-between-multiple-public-interfaces" target="_blank">NAT (Internet connection sharing) switching between multiple public interfaces</a></li>
<li><a href="https://gist.github.com/tuxdna/5561423" title="Old NAT script" target="_blank">Old NAT script</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=622&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/05/14/setting-up-nat-and-masquerade-for-sharing-usb-tether-connection-over-lan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>Understanding big Lucene index by inspecting a portion of it</title>
		<link>http://tuxdna.wordpress.com/2013/04/17/understanding-big-lucene-index-by-inspecting-a-portion-of-it/</link>
		<comments>http://tuxdna.wordpress.com/2013/04/17/understanding-big-lucene-index-by-inspecting-a-portion-of-it/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 15:04:01 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=618</guid>
		<description><![CDATA[I was wondering if I could get a sample out of many huge Lucene indexes and inspect them with Lukeall on my machine. I quickly realized, that copying such indexes over network would be time consuming. First I googled for a ready-made solution so that I could copy on a few documents from the whole [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=618&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was wondering if I could get a sample out of many huge <a href="https://lucene.apache.org/">Lucene</a> indexes and inspect them with <a href="http://code.google.com/p/luke/">Lukeall</a> on my machine. I quickly realized, that copying such indexes over network would be time consuming.</p>
<p>First I googled for a ready-made solution so that I could copy on a few documents from the whole index into a separate ( small ) index. That way I could quickly understand the document structure. I came across <a href="http://jrenard.info/blog/how-to-backup-your-solr-lucene-index.html">this blog</a> which mentions only how to backup a Lucene index. My use-case is to get only a portion of it. However, it also mentions how to use <a href="http://code.google.com/p/luke/">Lukeall</a> to export an index ( or a portion of it ) in XML format. That seemed to be in right direction. But, there is no way I could import it back into a Lucene index. Well, that is was a stumbling block. There is a defect open in <a href="http://code.google.com/p/luke/">Lukeall</a> for precisely this feature <a href="http://code.google.com/p/luke/issues/detail?id=59&amp;can=1&amp;q=import#makechanges">here</a>.</p>
<p>For my purpose I have created a Scala script to copy first few documents of an index into an output index. The script is located <a href="https://github.com/tuxdna/scala-snippets/blob/master/copyLuceneDocs.scala">here</a> for now.  So, now I can get the first few documents from an index on a remote machine and inspect them locally.</p>
<p>Are there any better ways ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/618/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=618&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/04/17/understanding-big-lucene-index-by-inspecting-a-portion-of-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>On choosing Play2 framework</title>
		<link>http://tuxdna.wordpress.com/2013/04/16/on-choosing-play2-framework/</link>
		<comments>http://tuxdna.wordpress.com/2013/04/16/on-choosing-play2-framework/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 10:46:03 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=610</guid>
		<description><![CDATA[I was wondering whether or not to learn Play2 Framework. I already know Ruby On Rails. The main criteria right now is to run a web-application that will use lots of code already written in Java. Which one of Rails/JRuby or Play2 would be better when deploying on JVM? That is my main question. So [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=610&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was wondering whether or not to learn <a href="http://www.playframework.com/">Play2</a> Framework. I already know <a href="http://rubyonrails.org/">Ruby On Rails</a>. The main criteria right now is to run a web-application that will use lots of code already written in Java.</p>
<p>Which one of Rails/JRuby or Play2 would be better when deploying on JVM? That is my main question. So far I have stumbled upon similar questions as below:</p>
<ul>
<li><a href="https://groups.google.com/forum/?fromgroups=#!topic/play-framework/ohQMW1a2v_o">Play vs JRuby on Rails ??</a></li>
<li><a href="http://stackoverflow.com/questions/7447452/advantages-of-play-framework-for-people-coming-from-php-ruby-python">advantages of play framework for people coming from php / ruby / python</a></li>
</ul>
<p>There are two criteria that I considered for selecting Play2:</p>
<ul>
<li>Learning curve</li>
<li>Performance</li>
</ul>
<p>For learning curve, definitely it would take more time for me to learn Play2 than just using Rails on JRuby. However, since Play2 is quite similar to Ruby On Rails, it would be fairly easy to map the concepts. Play2 provides type-safety, so some bugs will appear earlier at the time of development itself. I can choose either Scala/Java for development and also I can select different templates for HTML or JavaScript etc. For performance, I found something very interesting here.</p>
<ul>
<li>Performance Comparison: <a title="Rails, Wicket, Grails, Play, Tapestry, Lift, JSP, Context" href="http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/" rel="bookmark">Rails, Wicket, Grails, Play, Tapestry, Lift, JSP, Context</a></li>
</ul>
<p>I am getting a feeling that Play framework will perform significantly better that Rails/JRuby. Well, that remains to be seen for now.</p>
<p>I hope Play2 would be nice to learn.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/610/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=610&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/04/16/on-choosing-play2-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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 and Akka Pi example</title>
		<link>http://tuxdna.wordpress.com/2013/03/15/emacs-and-akka-pi-example/</link>
		<comments>http://tuxdna.wordpress.com/2013/03/15/emacs-and-akka-pi-example/#comments</comments>
		<pubDate>Fri, 15 Mar 2013 14:38:34 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=605</guid>
		<description><![CDATA[I was trying The first Akka Example here Install the TypeSafe stack on RPM distro: Setup a g8 project: The I added the Pi.scala to src/main/scala folder. Then I tried to compile it from within Emacs, to check if it will be easier navigate compilation errors in the code. I got wierd output. Emacs compilation [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=605&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was trying The first Akka Example <a href="http://typesafe.com/resources/tutorials/getting-started-with-akka-scala.html">here</a></p>
<p>Install the TypeSafe stack on <a href="http://typesafe.com/resources/typesafe-stack/downloading-installing.html#redhat-centos-yum">RPM distro</a>: </p>
<pre class="brush: plain; title: ; notranslate">
$ sudo yum install typesafe-stack
</pre>
<p>Setup a g8 project:</p>
<pre class="brush: plain; title: ; notranslate">
$ g8 typesafehub/akka-scala-sbt
Akka 2.0 Project Using Scala and sbt 

organization [org.example]: in.tuxdna
name [Akka Project In Scala]: akka-pi
akka_version [2.0.1]: 
version [0.1-SNAPSHOT]: 
</pre>
<p>The I added the <a href="https://gist.github.com/tuxdna/5170249">Pi.scala</a> to src/main/scala folder. Then I tried to compile it from within Emacs, to check if it will be easier navigate compilation errors in the code. I got wierd output. Emacs compilation buffer was printing escape characters.</p>
<p>For this I found two solutions:<br />
 * Disable the colors generated by SBT in the first place: <a href="http://www.scala-lang.org/node/2198" rel="nofollow">http://www.scala-lang.org/node/2198</a></p>
<pre class="brush: plain; title: ; notranslate">
 sbt compile -Dsbt.log.noformat=true
</pre>
<p> * OR Enable ANSI colors in Emacs compilation buffer: <a href="http://stackoverflow.com/questions/13397737/ansi-coloring-in-compilation-mode" rel="nofollow">http://stackoverflow.com/questions/13397737/ansi-coloring-in-compilation-mode</a></p>
<pre class="brush: plain; title: ; notranslate">
 (require 'ansi-color)
(defun colorize-compilation-buffer ()
  (toggle-read-only)
  (ansi-color-apply-on-region (point-min) (point-max))
  (toggle-read-only))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
</pre>
<p>And here is the final output after I had resolved all the compilation errors. ( because I didn&#8217;t copy/paste all the code, I typed it out ):</p>
<pre class="brush: plain; title: ; notranslate">
Enter number: saleem@impetus-D853:~/Downloads/akka-pi$ sbt run 
[info] Loading project definition from /home/saleem/Downloads/akka-pi/project
[info] Set current project to akka-pi (in build file:/home/saleem/Downloads/akka-pi/)

Multiple main classes detected, select one to run:

 [1] in.tuxdna.Akkapi
 [2] Pi

Enter number: 2

[info] Running Pi 

	Pi approximation: 		3.1415926435897874
	Calculation time: 	991.0
[success] Total time: 4 s, completed 15 Mar, 2013 8:04:33 PM
</pre>
<p>Value of PI : 3.1415926435897874</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/605/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=605&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/03/15/emacs-and-akka-pi-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>Attending Jamia Developer Day</title>
		<link>http://tuxdna.wordpress.com/2013/03/10/attending-jamia-developer-day/</link>
		<comments>http://tuxdna.wordpress.com/2013/03/10/attending-jamia-developer-day/#comments</comments>
		<pubDate>Sun, 10 Mar 2013 17:59:44 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=602</guid>
		<description><![CDATA[Students at JMI University had organized JDevDay ( formerly CONF@JMI). This was a two day conference on FOSS topics. The agenda is listed here: https://jdevday.wordpress.com/2013/03/05/talks-in-jdevday/ I spoke on &#8220;Introduction to Scala&#8221;, the slides of which are uploaded to slideshare and on github. It was so nice to meet all the speakers and attendees. I took [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=602&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Students at JMI University had organized JDevDay ( formerly CONF@JMI). This was a two day conference on FOSS topics. The agenda is listed here:</p>
<p><a href="https://jdevday.wordpress.com/2013/03/05/talks-in-jdevday/" rel="nofollow">https://jdevday.wordpress.com/2013/03/05/talks-in-jdevday/</a></p>
<p>I spoke on &#8220;Introduction to Scala&#8221;, the slides of which are uploaded to <a href="http://www.slideshare.net/tuxdna/scala-intro-17084168">slideshare</a> and on <a href="https://github.com/tuxdna/scala-snippets/tree/master/intro-to-scala">github</a>.</p>
<p>It was so nice to meet all the speakers and attendees. I took a few photos which I have uploaded on <a href="http://www.flickr.com/photos/60605157@N07/sets/72157632961478467/">flickr</a>.</p>
<p>JDevDay Rocks!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/602/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=602&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/03/10/attending-jamia-developer-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.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 Org Mode for creating and generating presenations</title>
		<link>http://tuxdna.wordpress.com/2013/03/10/emacs-org-mode-for-creating-and-generating-presenations/</link>
		<comments>http://tuxdna.wordpress.com/2013/03/10/emacs-org-mode-for-creating-and-generating-presenations/#comments</comments>
		<pubDate>Sun, 10 Mar 2013 17:41:14 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=593</guid>
		<description><![CDATA[Last time I created a presentation in Org Mode was in 2010 here. Creating presentation in Emacs Org Mode and publishing it as Latex, PDF and HTML, is so awesome. Here are the links to get you started: http://orgmode.org/worg/exporters/beamer/tutorial.html http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html And follow these simple steps ( I am using Ubuntu right now but the steps [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=593&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Last time I created a presentation in Org Mode was in 2010 <a href="https://github.com/tuxdna/arm-experiments/blob/master/docs/foss.in-2010-fedora-embedded.org">here</a>.</p>
<p>Creating presentation in Emacs Org Mode and publishing it as Latex, PDF and HTML, is so awesome.</p>
<p>Here are the links to get you started:</p>
<ul>
<li><a href="http://orgmode.org/worg/exporters/beamer/tutorial.html" rel="nofollow">http://orgmode.org/worg/exporters/beamer/tutorial.html</a></li>
</ul>
<ul>
<li><a href="http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html" rel="nofollow">http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html</a></li>
</ul>
<p>And follow these simple steps ( I am using Ubuntu right now but the steps should be easy on Fedora too.):</p>
<p>Create a slides.org file as in the tutorial above:</p>
<p>Install Beamer class for Latex.<br />
$ sudo aptitude install aptitude latex-beamer</p>
<p>And export it to PDF using &#8220;Ctrl+c Ctrl+e p&#8221; in Emacs.</p>
<p>Your presentation is in slides.pdf in the same folder as slides.org.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/593/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/593/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=593&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/03/10/emacs-org-mode-for-creating-and-generating-presenations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>Where the heck did agave go from Fedora&#8230;</title>
		<link>http://tuxdna.wordpress.com/2013/02/22/where-the-heck-did-agave-go-from-fedora/</link>
		<comments>http://tuxdna.wordpress.com/2013/02/22/where-the-heck-did-agave-go-from-fedora/#comments</comments>
		<pubDate>Fri, 22 Feb 2013 09:49:53 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[agave]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/2013/02/22/where-the-heck-did-agave-go-from-fedora/</guid>
		<description><![CDATA[Where the heck did agave go from Fedora 17 repos? Yes I am asking the same question already been asked in fedora forum [1]. Apparently it doesn&#8217;t [2] have any maintainer hence no build for Fedora 17. [1] http://forums.fedoraforum.org/showthread.php?t=276162 [2] https://admin.fedoraproject.org/pkgdb/acls/name/agave [3] http://home.gna.org/colorscheme/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=592&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Where the heck did agave go from Fedora 17 repos? Yes I am asking the same question already been asked in fedora forum [1].</p>
<p>Apparently it doesn&#8217;t [2] have any maintainer hence no build for Fedora 17.</p>
<p>[1] <a href="http://forums.fedoraforum.org/showthread.php?t=276162" rel="nofollow">http://forums.fedoraforum.org/showthread.php?t=276162</a><br />
[2] <a href="https://admin.fedoraproject.org/pkgdb/acls/name/agave" rel="nofollow">https://admin.fedoraproject.org/pkgdb/acls/name/agave</a><br />
[3] <a href="http://home.gna.org/colorscheme/" rel="nofollow">http://home.gna.org/colorscheme/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/592/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/592/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=592&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/02/22/where-the-heck-did-agave-go-from-fedora/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.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>SBT and Specs for BDD in Scala</title>
		<link>http://tuxdna.wordpress.com/2013/02/21/sbt-and-specs-for-bdd-in-scala/</link>
		<comments>http://tuxdna.wordpress.com/2013/02/21/sbt-and-specs-for-bdd-in-scala/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 15:44:44 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bdd]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=578</guid>
		<description><![CDATA[I had used RSpec earlier for Behaviour Development Development for a Ruby on Rails project. Today I learnt how to do BDD in Scala. Chapter 4 of Programming Scala introduces Traits and Specs for testing the code. Here is how I set it up: I already had Scala installed. So the first step was to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=578&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I had used RSpec earlier for Behaviour Development Development for a Ruby on Rails project. Today I learnt how to do BDD in Scala.</p>
<p><a href="http://ofps.oreilly.com/titles/9780596155957/Traits.html" target="_blank">Chapter 4 of Programming Scala</a> introduces Traits and <a href="http://code.google.com/p/specs/wiki/QuickStart" target="_blank">Specs</a> for testing the code. Here is how I set it up:</p>
<p>I already had Scala installed. So the first step was to setup sbt ( Simple Build Tool for Scala ). Setup was easy ( <a href="http://www.scala-sbt.org/release/docs/Getting-Started/Setup" target="_blank">described in detail here</a> ):</p>
<pre class="brush: bash; title: ; notranslate">
$ sudo yum localinstall <a href="http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt//0.12.2/sbt.rpm" rel="nofollow">http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt//0.12.2/sbt.rpm</a>
</pre>
<p>Then, I created a sample project which is hosted on github ( <a href="https://github.com/tuxdna/trait-with-sbt-spec" rel="nofollow">https://github.com/tuxdna/trait-with-sbt-spec</a> ):</p>
<pre class="brush: bash; title: ; notranslate">
$ git clone git://github.com/tuxdna/trait-with-sbt-spec.git
$ cd trait-with-sbt-spec
$ sbt test
</pre>
<p>And here is the output</p>
<pre class="brush: ruby; title: ; notranslate">
...
[info] Compiling 9 Scala sources to ...
[info] Compiling 4 Scala sources to ...
[info] ButtonClickableObserverSpec
[info] A Button Observer should
[info]   + observer button clicks
[info] ButtonObserverSpec
[info] A Button Observer should
[info]   + observe button clicks
[info] ButtonClickableObserverVetoableSpec
[info] A Button Observer with Vetoable Clicks should
[info]   + observe only the first button click
[info] ButtonObserverAnonSpec
[info] A Button Observer should
[info]   + observe button clicks
[info] Passed: : Total 4, Failed 0, Errors 0, Passed 4, Skipped 0
[success] Total time: 19 s, completed Feb 21, 2013 9:04:57 PM
</pre>
<p>Setting up SBT was easy, only that it took some time to fetch the libraries from maven repos. Its configuration is very similar to Maven POM files. And then adding specification was only a matter of extending &#8216;Specification&#8217; class.</p>
<p>References:<br />
[1] <a href="http://examples.oreilly.com/9780596155964/README.html" rel="nofollow">http://examples.oreilly.com/9780596155964/README.html</a><br />
[2] <a href="http://www.scala-sbt.org/release/docs/Getting-Started/Setup" rel="nofollow">http://www.scala-sbt.org/release/docs/Getting-Started/Setup</a><br />
[3] <a href="http://code.google.com/p/specs/wiki/QuickStart" rel="nofollow">http://code.google.com/p/specs/wiki/QuickStart</a><br />
[4] <a href="http://www.scala-sbt.org/release/docs/Getting-Started/Library-Dependencies.html" rel="nofollow">http://www.scala-sbt.org/release/docs/Getting-Started/Library-Dependencies.html</a><br />
[5] <a href="http://twitter.github.com/scala_school/sbt.html" rel="nofollow">http://twitter.github.com/scala_school/sbt.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/578/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=578&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/02/21/sbt-and-specs-for-bdd-in-scala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>Apache Mesos &#8211; incubator project; and Spark Project</title>
		<link>http://tuxdna.wordpress.com/2013/02/20/apache-mesos-a-new-incubator-project-and-spark-project/</link>
		<comments>http://tuxdna.wordpress.com/2013/02/20/apache-mesos-a-new-incubator-project-and-spark-project/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 20:13:02 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[mesos]]></category>
		<category><![CDATA[spark]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=562</guid>
		<description><![CDATA[Apache Mesos, written primarily in C++ is a cluster resource allocation framework. It is used by the Spark Project ( majority of Spark project is written in Scala ). Apache Mesos &#8211; http://incubator.apache.org/mesos/ Spark Project &#8211; http://spark-project.org/ Tech Talk: Matei Zaharia (UC Berkeley) &#8212; &#8220;Spark: A Framework for Iterative and Interactive Cluster Computing&#8221; &#8211; http://vimeo.com/20757432<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=562&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Apache Mesos, written primarily in C++ is a cluster resource allocation framework. It is used by the Spark Project ( majority of Spark project is written in Scala ).</p>
<p>Apache Mesos &#8211; <a href="http://incubator.apache.org/mesos/" rel="nofollow">http://incubator.apache.org/mesos/</a><br />
Spark Project &#8211; <a href="http://spark-project.org/" rel="nofollow">http://spark-project.org/</a><br />
Tech Talk: Matei Zaharia (UC Berkeley) &#8212; &#8220;Spark: A Framework for Iterative and Interactive Cluster Computing&#8221; &#8211; <a href="http://vimeo.com/20757432" rel="nofollow">http://vimeo.com/20757432</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/562/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/562/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=562&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/02/20/apache-mesos-a-new-incubator-project-and-spark-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.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>Scala script tool seems to be broken Fedora 17</title>
		<link>http://tuxdna.wordpress.com/2013/02/20/scala-script-tool-seems-to-be-broken-fedora-17/</link>
		<comments>http://tuxdna.wordpress.com/2013/02/20/scala-script-tool-seems-to-be-broken-fedora-17/#comments</comments>
		<pubDate>Wed, 20 Feb 2013 19:59:43 +0000</pubDate>
		<dc:creator>tuxdna</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scala]]></category>

		<guid isPermaLink="false">http://tuxdna.wordpress.com/?p=567</guid>
		<description><![CDATA[I am running Scala on Fedora 17 and I seem to face a problem. I created a /tmp/hello.scala file, as follows: This works just fine if I run it on Ubuntu 12.04 i.e. it prints `Hello world`. However, when I try to run it on Fedora, I don&#8217;t get any output and the script keeps [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=567&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I am running Scala on Fedora 17 and I seem to face a problem. I created a <code>/tmp/hello.scala</code> file, as follows:</p>
<pre class="brush: ruby; title: ; notranslate">
println(&quot;Hello world&quot;)
</pre>
<p>This works just fine if I run it on Ubuntu 12.04 i.e. it prints `Hello world`. However, when I try to run it on Fedora, I don&#8217;t get any output and the script keeps waiting forever.</p>
<p>So I tried to inspect what&#8217;s happening here:</p>
<pre class="brush: bash; title: ; notranslate">
$ bash -x scala /tmp/hello.scala
+ scala_exit_status=127
+ saved_stty=
+ trap onExit INT
++ stty -g
+ saved_stty=6d02:5:4bf:8a3b:3:1c:7f:15:4:0:1:ff:11:13:1a:ff:12:f:17:16:ff:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
+ [[ ! -n 0 ]]
+ [[ -n '' ]]
+ cygwin=false
+ case &quot;`uname`&quot; in
++ uname

... OUTUPT SKIPPED ...

+ declare -a scala_args
+ CPSELECT=-Xbootclasspath/a:
+ '[' 1 -gt 0 ']'
+ case &quot;$1&quot; in
+ scala_args=(&quot;${scala_args[@]}&quot; &quot;$1&quot;)
+ shift
+ '[' 0 -gt 0 ']'
+ set -- /tmp/2.scala
+ exec /usr/lib/jvm/java//bin/java -Xmx256M -Xms32M -Xbootclasspath/a:/usr/share/scala/lib/jansi.jar:/usr/share/scala/lib/jline2.jar:/usr/share/scala/lib/scala-compiler.jar:/usr/share/scala/lib/scala-dbc.jar:/usr/share/scala/lib/scala-library.jar:/usr/share/scala/lib/scala-partest.jar:/usr/share/scala/lib/scalap.jar:/usr/share/scala/lib/scala-swing.jar -Dscala.usejavacp=true -Dscala.home=/usr/share/scala -Denv.emacs= scala.tools.nsc.MainGenericRunner /tmp/2.scala
</pre>
<p>It keeps waiting on the last line for ever.</p>
<p>However, if I add <code>-nc</code> option to scala command, it works fine:</p>
<pre class="brush: bash; title: ; notranslate">
$ scala -nc /tmp/hello.scala
Hello world
</pre>
<p>So I guess, the issue has something to do with the compilation daemon as below</p>
<p><code>-nc no compilation daemon: do not use the fsc offline compiler</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tuxdna.wordpress.com/567/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tuxdna.wordpress.com/567/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tuxdna.wordpress.com&#038;blog=10303502&#038;post=567&#038;subd=tuxdna&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tuxdna.wordpress.com/2013/02/20/scala-script-tool-seems-to-be-broken-fedora-17/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.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>
