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

<channel>
	<title>yonkeltron</title>
	<atom:link href="http://yonkeltron.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonkeltron.com</link>
	<description>Temporary Exile</description>
	<lastBuildDate>Wed, 25 Aug 2010 16:49:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Newschool Git workflow with Magit</title>
		<link>http://yonkeltron.com/2010/08/25/newschool-git-workflow-with-magit/</link>
		<comments>http://yonkeltron.com/2010/08/25/newschool-git-workflow-with-magit/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 12:17:05 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=681</guid>
		<description><![CDATA[I&#8217;ve been on a roll with using Emacs to make my workflow more efficient. So far, so good. The latest major addition is my adoption of the most-excellent Magit mode for integrating Git and Emacs in a wonderfully-efficient way. One of the best features is that you get a magit-status buffer which acts like your ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been on a roll with using <a href="http://en.wikipedia.org/wiki/Emacs">Emacs</a> to make my workflow more efficient. So far, so good. The latest major addition is my adoption of the most-excellent <a href="http://philjackson.github.com/magit/magit.html">Magit</a> mode for integrating <a href="http://git-scm.com/">Git</a> and Emacs in a wonderfully-efficient way. One of the best features is that you get a magit-status buffer which acts like your Git command center. From there you can perform whatever actions you want and call up any repository information you need with ease. The feature I really wish it had was a <a href="http://www.kernel.org/pub/software/scm/git/docs/git-blame.html">git-blame</a> viewer but Magit has so dramatically improved my git workflow that I really don&#8217;t care.</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/08/25/newschool-git-workflow-with-magit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great post about Emacs keyboard macros</title>
		<link>http://yonkeltron.com/2010/07/16/great-post-about-emacs-keyboard-macros/</link>
		<comments>http://yonkeltron.com/2010/07/16/great-post-about-emacs-keyboard-macros/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:45:41 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=675</guid>
		<description><![CDATA[I always find great stuff on the emacs-fu blog but today I read a particularly-wonderful post about Emacs keyboard macros. Like the author, I&#8217;ve been a long-time Emacs user but never really got into keyboard macros because it&#8217;s been quite easy to produce an elisp one-liner in many cases. That being said, this seems like ]]></description>
			<content:encoded><![CDATA[<p>I always find great stuff on the <a href="http://emacs-fu.blogspot.com">emacs-fu</a> blog but today I read a particularly-wonderful post about <a href="http://emacs-fu.blogspot.com/2010/07/keyboard-macros.html">Emacs keyboard macros</a>. Like the author, I&#8217;ve been a long-time Emacs user but never really got into keyboard macros because it&#8217;s been quite easy to produce an <a href="http://en.wikipedia.org/wiki/Emacs_Lisp">elisp</a> one-liner in many cases. That being said, this seems like a great time to learn so I look forward to reading more on the topic of <a href="http://www.emacswiki.org/emacs/KeyboardMacros">keyboard macros</a> as well as learning some <a href="http://www.emacswiki.org/emacs/KeyboardMacrosTricks">new tricks</a>.</p>
<p>Thanks for a great post!</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/07/16/great-post-about-emacs-keyboard-macros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>newhaven.rb hackfest tomorrow!</title>
		<link>http://yonkeltron.com/2010/06/30/newhaven-rb-hackfest-tomorrow/</link>
		<comments>http://yonkeltron.com/2010/06/30/newhaven-rb-hackfest-tomorrow/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 14:00:54 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=673</guid>
		<description><![CDATA[Tomorrow, in New Haven, CT will be the &#8220;Ruby, White and Blue&#8221; Hackfest run by newhaven.rb. We&#8217;ll be working on a few projects including the group&#8217;s site and most likely some Prawn and ScosugBot stuff. Beginners and people interested in learning are more than welcome and we hope to have some excellent projects for people ]]></description>
			<content:encoded><![CDATA[<p>Tomorrow, in New Haven, CT will be the &#8220;Ruby, White and Blue&#8221; Hackfest run by newhaven.rb. We&#8217;ll be working on a few projects including <a href="http://github.com/yonkeltron/NHV-Ruby-site">the group&#8217;s site</a> and most likely some <a href="http://github.com/sandal/prawn">Prawn</a> and <a href="http://github.com/yonkeltron/scosugbot">ScosugBot</a> stuff. Beginners and people interested in learning are more than welcome and we hope to have some excellent projects for people to get started on.</p>
<p>Fill out the <a href="http://is.gd/d9ZiB">RSVP form</a> and we&#8217;ll meet at 6pm EST at <a href="http://www.bluestatecoffee.com/">Blue State Coffee</a> on Thursday,  July 1st. Bring a computer and let&#8217;s write some code.</p>
<p><iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Blue+State+Coffee+-+New+Haven,+New+Haven,+CT&amp;sll=41.306075,-72.931894&amp;sspn=0.009333,0.01929&amp;ie=UTF8&amp;hq=Blue+State+Coffee+-&amp;hnear=New+Haven,+Connecticut&amp;t=h&amp;cid=8790853015135628419&amp;ll=41.319076,-72.921238&amp;spn=0.022562,0.036478&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Blue+State+Coffee+-+New+Haven,+New+Haven,+CT&amp;sll=41.306075,-72.931894&amp;sspn=0.009333,0.01929&amp;ie=UTF8&amp;hq=Blue+State+Coffee+-&amp;hnear=New+Haven,+Connecticut&amp;t=h&amp;cid=8790853015135628419&amp;ll=41.319076,-72.921238&amp;spn=0.022562,0.036478&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/06/30/newhaven-rb-hackfest-tomorrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogs that sort of make fun of others</title>
		<link>http://yonkeltron.com/2010/06/06/blogs-that-sort-of-make-fun-of-others/</link>
		<comments>http://yonkeltron.com/2010/06/06/blogs-that-sort-of-make-fun-of-others/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 20:02:41 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=671</guid>
		<description><![CDATA[I have recently been exposed to several different blogs which make fun of others. I am unsure as to what this genre signifies. Perhaps I shall ask a sociologist. In the meantime, here is my list so far. Additions are welcome and will get you a mention and a link. People of Walmart (classic) Dear ]]></description>
			<content:encoded><![CDATA[<p>I have recently been exposed to several different blogs which make fun of others. I am unsure as to what this genre signifies. Perhaps I shall ask a sociologist. In the meantime, here is my list so far. Additions are welcome and will get you a mention and a link.</p>
<ul>
<li><a href="http://www.peopleofwalmart.com/">People of Walmart</a> (classic)</li>
<li><a href="http://www.deargirlsaboveme.com/">Dear Girls Above Me</a></li>
<li><a href="http://www.latfh.com/">Look At This Fucking Hipster</a> (buy the <a href="http://amzn.com/0312624972">book</a>!)</li>
<li><a href="http://lesbianswholooklikejustinbieber.tumblr.com/">Lesbians who look like Justin Bieber</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/06/06/blogs-that-sort-of-make-fun-of-others/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Ruby DSL</title>
		<link>http://yonkeltron.com/2010/05/13/creating-a-ruby-dsl/</link>
		<comments>http://yonkeltron.com/2010/05/13/creating-a-ruby-dsl/#comments</comments>
		<pubDate>Fri, 14 May 2010 02:44:43 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=653</guid>
		<description><![CDATA[Tons of people in the Ruby community go on and on about domain-specific languages (abbreviated DSL) and how wonderful they are. In most cases, I agree with them. I began to wonder how I could go about leveraging Ruby&#8217;s awesomely-flexible syntax to create my own DSL. To illustrate my quest, I have written this article. ]]></description>
			<content:encoded><![CDATA[<p>Tons of people in the Ruby community go on and on about <a href="http://en.wikipedia.org/wiki/Domain_Specific_Language">domain-specific languages (abbreviated DSL)</a> and how wonderful they are. In most cases, I agree with them. I began to wonder how I could go about leveraging Ruby&#8217;s awesomely-flexible syntax to create my own DSL. To illustrate my quest, I have written this article. It assumes you know Ruby. The example details are completely fictitious and just contrived enough to be interesting. I promise, the code will be the main focus and I will link/point to other resources which might be helpful to budding DSL designers like myself.</p>
<p><strong>Problem</strong></p>
<p>The Dream Castle Architectural Firm (D-CAF, among friends) wants a tool which it can use for very high-level prototyping of custom homes. They need it to be understandable by both computers and humans. It only needs to keep track of the following things:</p>
<ul>
<li>Houses &#8211; Each house has a name</li>
<li>Floors &#8211; Each house has multiple floors. Each floor has a number</li>
<li>Rooms &#8211; Each floor has multiple rooms and each room has a type</li>
</ul>
<p>The only other requirement is that the DSL be translatable to plain English so that they can show it to customers. No problem.</p>
<p><strong>Solution</strong></p>
<p>The DSL for the high-level specification of custom houses will look like the following:</p>
<pre>CustomHouse.build :home do
  floor(1) {
    room :den
    room :kitchen
  }

  floor(2) {
    room :bedroom
    room :bathroom
  }
end</pre>
<p>That&#8217;s it. You specify that a house should be built, that it has a name, some floors and each floor has some rooms. Simple, easy and 100% pure Ruby.  Notice the cunning usage of both do/end and bracket notation for defining blocks. The outer block passed to <code>CustomHouse#build</code> uses do/end syntax while the blocks passed to <code>House#floor</code> use the bracket syntax. These could easily be reversed (or combined or whatever) but it makes it look pretty and helps to visually differentiate things so that you (the developer) and the user (the architect) can things more clearly. Plus, when you print the output (calling <code>to_s</code> on the instance of <code>House</code> which gets returned), you get the following wonderful text:</p>
<pre>House named home has 2 floors.
Floor 1 has 2 rooms (den, kitchen)
Floor 2 has 2 rooms (bedroom, bathroom)</pre>
<p>It&#8217;s a small house, don&#8217;t be a wiseacre. So, how can such a DSL be built?</p>
<p><strong>Implementation</strong></p>
<p>Let&#8217;s write the implementation for this together.  First, we&#8217;re going to start of with a module named <code>CustomHouse</code>.  In Ruby, modules are just classes so we&#8217;ll define a class method called <code>build</code> which will behave like a factory method.</p>
<pre>module CustomHouse
  def self.build(name, &amp;block)
    house = House.new(name)
    house.instance_eval(&amp;block)
    return house
  end
end</pre>
<p>As you can see, the method takes two params, a name and a block. The first thing that it does is create an instance of the House class (which we have not yet defined) passing in the name parameter. Second it calls <a href="http://ruby-doc.org/core-1.8.7/classes/Object.html#M000607">instance_eval</a> on the house passing in the block. This ventures into the territory of <a href="http://en.wikipedia.org/wiki/Metaprogramming">metaprogramming</a> which is great fun but beyond the scope of this document, though I am sure others have used it for DSL construction (coincidentally, if you are interested in Ruby metaprogramming, buy <a href="http://amzn.com/1934356476">this book</a>). Suffice it to say that it executes the supplied block in the context of the House instance. Finally, the <code>CustomHouse#build</code> method returns the instance of <code>House</code>.</p>
<p>(There are those who believe that *any* type of eval is fundamentally evil. I have been taught this many times and I try to avoid using eval on an actualy string whenever possible. Still, someone with a better understanding of Ruby internals might be able to better explain if this in any better.)</p>
<p>Next, let&#8217;s define what the code for the <code>House</code> class looks like. As a note, it will be defined in the <code>CustomHouse</code> module, technically making the fully-namespaced name of the class <code>CustomHouse::House</code>.</p>
<pre>class House
  attr_accessor :name, :floors

  def initialize(name = '')
    @name = name.to_s
    @floors = []
  end

  def floor(number, &amp;block)
    fl = Floor.new(number)
    fl.instance_eval(&amp;block)
    @floors &lt; &lt; fl
  end

  def to_s
    str = "House named #{@name} has #{@floors.length} floors.\n"
    @floors.each do |f|
      str &lt;&lt; f.to_s
    end
    str
  end
end</pre>
<p>The above code should appear relatively simple. The House class has only a few methods. First, it has a constructor function which takes a name and a block, setting the name as an instance variable and another instance variable, <code>@floors</code>, which is just an empty array. Next, it has a method called <code>floor</code> which takes a number and a block. The guts of this method should look familiar to you because it mimics almost exactly the <code>build</code> factory method defined on <code>CustomHouse</code>. Finally, it has a <code>to_s</code> method because of the requirement that the DSL be translatable to plain English for clients to check out.</p>
<p>If we can just dwell for a moment on the <code>floor</code> method, notice that, it too, takes a block and uses <code>instance_eval</code>. It then adds the newly-constructed instance of <code>Floor</code> to the array in <code>@floor</code>. Let&#8217;s look at the <code>Floor</code> class now.</p>
<pre>class Floor
  attr_accessor :number, :rooms

  def initialize(number = 0)
    @number = number
    @rooms = []
  end

  def room(type)
    @rooms &lt; &lt; Room.new(type)
  end

  def to_s
    str = "Floor #{@number} has #{@rooms.length} rooms ("
    @rooms.each do |r|
      str += "#{r.type}, "
    end
    str.chop!.chop!
    str += ")\n"
    str
  end
end</pre>
<p>There shouldn&#8217;t be anything confusing about the above code as it doesn&#8217;t use any sort of block eval. In fact, the only thing left to look at is the class for <code>Room</code> which is even less impressive.</p>
<pre>class Room
  attr_reader :type

  def initialize(type)
    @type = type
  end
end</pre>
<p>That&#8217;s it. Seriously, that&#8217;s the entire implementation of the DSL. You pass a block to <code>CustomHouse#build</code> which gets executed in the context of a new instance of <code>House</code>. The block calls the <code>House#floor</code> method with a block which in turn gets executed in the context of a new instance of <code>Floor</code>. The Floor#room method adds new <code>Room</code> instances to the class and that&#8217;s basically it.</p>
<p>Here&#8217;s all the code together with the example:</p>
<pre>module CustomHouse

  def self.build(name, &amp;block)
    house = House.new(name)
    house.instance_eval(&amp;block)
    return house
  end

  class House
    attr_accessor :name, :floors

    def initialize(name = '')
      @name = name.to_s
      @floors = []
    end

    def floor(number, &amp;block)
      fl = Floor.new(number)
      fl.instance_eval(&amp;block)
      @floors &lt;&lt; fl
    end

    def to_s
      str = "House named #{@name} has #{@floors.length} floors.\n"
      @floors.each do |f|
        str &lt;&lt; f.to_s
      end
      str
    end
  end

  class Floor
    attr_accessor :number, :rooms

    def initialize(number = 0)
      @number = number
      @rooms = []
    end

    def room(type)
      @rooms &lt;&lt; Room.new(type)
    end

    def to_s
      str = "Floor #{@number} has #{@rooms.length} rooms ("
      @rooms.each do |r|
        str += "#{r.type}, "
      end
      str.chop!.chop!
      str += ")\n"
      str
    end
  end

  class Room
    attr_reader :type

    def initialize(type)
      @type = type
    end
  end
end

h = CustomHouse.build :home do
  floor(1) {
    room :den
    room :kitchen
  }

  floor(2) {
    room :bedroom
    room :bathroom
  }
end

puts h</pre>
<p>Try running it and see what happens! Then try writing other definitions for custom houses and experience the theoretical joy of the hypothetical architectural firm.</p>
<p><strong>DSL construction techniques</strong></p>
<p>For clarification and context, I&#8217;d like to share some other, smaller examples which build on this technique and demonstrate one more.</p>
<p>Behold, a DSL for feeding Pandas:</p>
<pre>Panda.feed {
  nom :bamboo
  nom :chocolate
}</pre>
<p>The implementation of this is both simple and straightforward.</p>
<pre>class Panda
  def self.feed(&amp;block)
    panda = Panda.new
    panda.instance_eval(&amp;block)
  end

  def nom(food)
    #whatever
  end
end</pre>
<p>Since the block is evaluated in the context of the new <code>Panda</code> instance, it has access to the <code>Panda#nom</code> method. For people deathly afraid of eval, there is this alternative syntax:</p>
<pre>Panda.feed do |p|
  p.nom :bamboo
  p.nom :chocolate
end</pre>
<p>Which is implemented with <code>yield</code> instead of <code>instance_eval</code> like so:</p>
<pre>class Panda
  def self.feed
    yield Panda.new
  end

  def nom(food)
    # whatever
  end
end</pre>
<p>For a wonderful and inspiring treatment of Ruby DSLs and associated patterns, see the <a href="http://mwrc2009.confreaks.com/13-mar-2009-18-10-jive-talkin-dsl-design-and-construction-jeremy-mcanally.html">most-excellent talk on the matter given by Jeremy McAnally at the 2009 Mid West Ruby Conference</a>.</p>
<p><strong>Conclusion</strong></p>
<p>DSLs are a fantastic tool which can help to simplify complicated and repetitive tasks. Ruby is very good for creating DSLs but it is not the only good tool out there. I advise you look into the creation of DSLs with Scala and, the best DSL-creation tool there ever was, Lisp Macros.</p>
<p>I am interested in improving this tutorial for the benefit of those programmers who wish to learn about DSL construction but don&#8217;t know where to start.</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/05/13/creating-a-ruby-dsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Continuity Control presents at Finovate</title>
		<link>http://yonkeltron.com/2010/05/11/continuity-control-presents-at-finovate/</link>
		<comments>http://yonkeltron.com/2010/05/11/continuity-control-presents-at-finovate/#comments</comments>
		<pubDate>Tue, 11 May 2010 21:46:52 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=649</guid>
		<description><![CDATA[Pleased to say that Continuity Control has gotten some rather positive feedback while presenting at this year&#8217;s Finovate! While not the only feedback, some of my favorites here: Tweets: one &#8211; two &#8211; three &#8211; four &#8211; five Photos: one &#8211; two Truly proud of be part of the team]]></description>
			<content:encoded><![CDATA[<p>Pleased to say that <a href="http://continuity.net">Continuity Control</a> has gotten some rather positive feedback while presenting at this year&#8217;s <a href="http://finovate.com/">Finovate</a>! While not the only feedback, some of my favorites here:</p>
<p>Tweets: <a href="http://twitter.com/bvinteractive/status/13809793918">one</a> &#8211; <a href="http://twitter.com/netbanker/status/13809781985">two</a> &#8211; <a href="http://twitter.com/rclow/status/13809897357">three</a> &#8211; <a href="http://twitter.com/scotthuber/status/13809729425">four</a> &#8211; <a href="http://twitter.com/consected/status/13809841671">five</a></p>
<p>Photos: <a href="http://www.flickr.com/photos/37841506@N02/4599133645/">one</a> &#8211; <a href="http://www.flickr.com/photos/37841506@N02/4599140061/">two</a></p>
<p>Truly proud of be part of the team.</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/05/11/continuity-control-presents-at-finovate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian package state backup and restore</title>
		<link>http://yonkeltron.com/2010/04/19/debian-package-state-backup-and-restore/</link>
		<comments>http://yonkeltron.com/2010/04/19/debian-package-state-backup-and-restore/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 01:24:02 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[F/OSS]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=635</guid>
		<description><![CDATA[While getting into bundler (which is great, btw), I recalled how often I have longed for a way to do something similar in Debian. What I&#8217;d really like to be able to do is something like aptitude backup and get some sort of backup file which contained all of the packages I had asked to ]]></description>
			<content:encoded><![CDATA[<p>While getting into <a href="http://github.com/carlhuda/bundler">bundler</a> (which is great, btw), I recalled how often I have longed for a way to do something similar in Debian. What I&#8217;d really like to be able to do is something like <code>aptitude backup</code> and get some sort of backup file which contained all of the packages I had asked to be installed so that I could install a new base system and then do an <code>aptitude restore</code> and have those packages be installed. Obviously, this would pull in the required dependencies which is what we wanted anyway. I&#8217;ve seen only a few attempts at this and most are pretty hairy. Is there a good way to do this currently? Are there plans for this in the future? Is this an irrational desire?</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/04/19/debian-package-state-backup-and-restore/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building shared libraries</title>
		<link>http://yonkeltron.com/2010/04/08/building-shared-libraries/</link>
		<comments>http://yonkeltron.com/2010/04/08/building-shared-libraries/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 00:12:41 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[F/OSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=631</guid>
		<description><![CDATA[Being a Debian user, I don&#8217;t make a habit of compiling things by hand and on those occasions when I do need to do so, I usually use apt-build (good article, though a bit old here). However, today I had to get a particularly odd shared library with a very specific version to match a ]]></description>
			<content:encoded><![CDATA[<p>Being a Debian user, I don&#8217;t make a habit of compiling things by hand and on those occasions when I do need to do so, I usually use apt-build (good article, though a bit old <a href="http://polishlinux.org/linux/debian/apt-build-optimize-debian/ ">here</a>). However, today I had to get a particularly odd shared library with a very specific version to match a production environment we have at work. So, I downloaded the tarball, which was quite large, and then compiled it. Which took four and a half minutes on my dual-core (1.83GHz) ThinkPad running <code>make -j 4</code> which isn&#8217;t all that slow, really.</p>
<p>Once it was completed, I looked around (grepped around) for the output file and was dismayed to discover that there weren&#8217;t any. After tinkering around for about an hour, I finally figured out that you can request shared libraries be built by providing an option to the configure script:</p>
<p><code>./configure --enable-shared</code></p>
<p>Shortly thereafter, I got the shared library version I needed and was on the road again. Just a useful tip which I hope can be of help to someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/04/08/building-shared-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newest public key</title>
		<link>http://yonkeltron.com/2010/03/29/newest-public-key/</link>
		<comments>http://yonkeltron.com/2010/03/29/newest-public-key/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 18:28:00 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/2010/03/29/newest-public-key/</guid>
		<description><![CDATA[My GPG public key had expired a few months ago so I made a new one and set this one not to expire. Backed up in many places this one is so I&#8217;ll be excited to get it signed at the upcoming SCOSUG key signing party. So you can get it right here on this ]]></description>
			<content:encoded><![CDATA[<p>My GPG public key had expired a few months ago so I made a new one and set this one not to expire. Backed up in many places this one is so I&#8217;ll be excited to get it signed at the upcoming <a href="http://scosug.org">SCOSUG</a> key signing party. So you can get it <a href="http://yonkeltron.com/my-public-key/">right here on this page</a> and <a href="http://static.yonkeltron.com/yonkeltron.asc">download it right here</a>.</p>
<p>Also, this post was written on my Android phone (which I love) using the WordPress app.</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/03/29/newest-public-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 has custom data attributes</title>
		<link>http://yonkeltron.com/2010/03/25/html5-has-custom-data-attributes/</link>
		<comments>http://yonkeltron.com/2010/03/25/html5-has-custom-data-attributes/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 15:16:35 +0000</pubDate>
		<dc:creator>Jonathan Magen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://yonkeltron.com/?p=627</guid>
		<description><![CDATA[So, I know that the Microformats project has has varying degrees of success in their endeavor to embed data in HTML such that it does not violate web standards.  As John Resig pointed out, others have used things like XML namespacing in XHTML to achieve similar goals. The most notable usages of this technique are ]]></description>
			<content:encoded><![CDATA[<p>So, I know that the <a href="http://microformats.org/">Microformats</a> project has has varying degrees of success in their endeavor to embed data in HTML such that it does not violate web standards.  As <a href="http://ejohn.org/blog/html-5-data-attributes/">John Resig pointed out</a>, others have used things like XML namespacing in XHTML to achieve similar goals. The most notable usages of this technique are most likely to be found in the <a href="http://www.w3.org/TR/xhtml-rdfa-scenarios/">applications</a> of <a href="http://en.wikipedia.org/wiki/RDFa">RDFa</a>. However, when looking at the new <a href="http://blog.solnic.eu/2009/09/08/unobtrusive-javascript-helpers-in-rails-3">unobtrusive JavaScript helpers</a> in the forthcoming Rails 3, I was tipped off to the huge scope of the new data- attributes in <a href="http://html5.org/">HTML5</a>. The custom data- attributes excite me.</p>
<p>In HTML5, including any arbitrary attribute may be included in any element provided that it is prefixed with data- and doesn&#8217;t interfere with the rest of the standard. Anything. So I can do the following and have it be perfectly valid:</p>
<pre>&lt;div data-panda="bamboo"&gt; Whatever &lt;div&gt;</pre>
<p>How awesome is that?</p>
]]></content:encoded>
			<wfw:commentRss>http://yonkeltron.com/2010/03/25/html5-has-custom-data-attributes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
