<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>ronin</title>
    <link>http://blogs.divisibleprime.com/ronin</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Stuff</description>
    <item>
      <title>Jabber Notification</title>
      <description>&lt;p&gt;A variation on the &lt;a href="http://blogs.divisibleprime.com/ronin/articles/2008/03/10/command-line-gnome-notification"&gt;Gnome Notification&lt;/a&gt; theme with some jabber.&lt;/p&gt;

&lt;p&gt;This time with some ruby:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/usr/bin/ruby
begin
  require 'rubygems'
  require 'xmpp4r/client'
rescue LoadError
  puts "Couldn't load xmpp4r, you probably need to install it.  Try gem install xmpp4r"
  exit
end

include Jabber
jid = JID::new('your_user@example.com')
password = 'xxx'
cl = Client::new(jid)
cl.connect
cl.auth(password)
to = "your_user@example.com"
subject = "Notification from `$USER`"
ARGV.each do | message |
   m = Message::new(to, message).set_type(:normal).set_id('1').set_subject(subject)
   cl.send m
end
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Run it like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;emerge something_that_takes_ages; notify.rb "Emerge Done"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You&amp;#8217;ll need ruby, ruby gems, and the xmpp4r gem.&lt;/p&gt;

&lt;p&gt;Enjoy.&lt;/p&gt;</description>
      <pubDate>Sat, 21 Mar 2009 19:24:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:78f3e060-c25f-4fc4-9bc6-c3785a6c2292</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2009/03/21/jabber-notification</link>
      <category>Tech</category>
      <category>Ruby</category>
      <category>linux</category>
      <category>ruby</category>
      <category>jabber</category>
      <category>xmpp</category>
      <category>notification</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/947</trackback:ping>
    </item>
    <item>
      <title>Prelude</title>
      <description>&lt;p&gt;&lt;a href="http://www.kryogenix.org/days/2009/01/01/my-window-theme"&gt;Prelude&lt;/a&gt;, a Metacity Theme which has minimal window decoration.  Great for small screens such as the Dell Mini 9.&lt;/p&gt;

&lt;p&gt;&lt;img src="http://blogs.divisibleprime.com/ronin/files/prelude.png" alt="Prelude Screenshot"/&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jan 2009 21:09:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d130864c-7855-455f-bb1d-4c69d99acb05</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2009/01/05/prelude</link>
      <category>Gnome</category>
      <category>Linux</category>
      <enclosure type="image/png" url="http://blogs.divisibleprime.com/ronin/files/prelude.png" length="23330"/>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/946</trackback:ping>
    </item>
    <item>
      <title>New Zealand, 1843</title>
      <description>&lt;p&gt;Very cool(for me anyway) &lt;a href="http://rumsey.geogarage.com/maps/g4613060.html"&gt;map&lt;/a&gt; of New Zealand from 1843.  A couple of noticeable name differences are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;New Ulster, New Munster, and New Leinster are the North, South and Stewart Islands respectively.  &lt;/li&gt;
&lt;li&gt;Tasman Bay is known as Blind Bay(Tasman Bay of D&amp;#8217;Urville).  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This comes from the &lt;a href="http://www.davidrumsey.com/"&gt;David Rumsey Historical Map Collection&lt;/a&gt; which has plenty of other cool maps to checkout.&lt;/p&gt;</description>
      <pubDate>Thu, 15 May 2008 09:23:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e03f5369-0021-4b5c-81bb-2404e484c50d</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/05/15/new-zealand-1843</link>
      <category>nz</category>
      <category>new zealand</category>
      <category>map</category>
      <category>historical</category>
      <category>david rumsey</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/945</trackback:ping>
    </item>
    <item>
      <title>Gin, Television, and Social Surplus</title>
      <description>&lt;p&gt;&lt;a href="http://www.herecomeseverybody.org/2008/04/looking-for-the-mouse.html"&gt;Clay Shirky&lt;/a&gt;: Gin, Television, and Social Software&lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;&amp;#8220;And television watching? Two hundred billion hours, in the U.S. alone, every year. Put another way, now that we have a unit, that&amp;#8217;s 2,000 Wikipedia projects a year spent watching television.&amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I found it hard to pull just a single quote of this piece out, it&amp;#8217;s a quick read that just makes you start thinking.  If the calculation of how much effort has gone into Wikipedia is even close, this is an amazing way to look at it.  &lt;/p&gt;

&lt;p&gt;My consumption to production ratio is so low it&amp;#8217;s embarrassing.&lt;/p&gt;</description>
      <pubDate>Mon, 28 Apr 2008 21:42:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:8961cc81-dd4d-41be-917f-d66788ec4217</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/04/28/gin-television-and-social-surplus</link>
      <category>Tech</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/944</trackback:ping>
    </item>
    <item>
      <title>Internet Asshattery</title>
      <description>&lt;p&gt;&lt;a href="http://randomfoo.net/blog/id/4171"&gt;Leonard Lin&lt;/a&gt;: Internet Asshattery, Armchair Scaling Experts Edition&lt;/p&gt;</description>
      <pubDate>Sat, 26 Apr 2008 11:43:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e3e2476e-d471-4d48-80e9-f9f1e93fdc91</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/04/26/internet-asshattery</link>
      <category>Rails</category>
      <category>Tech</category>
      <category>Ruby</category>
      <category>rails</category>
      <category>scaling</category>
      <category>twitter</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/943</trackback:ping>
    </item>
    <item>
      <title>iPlayer hacked again</title>
      <description>&lt;p&gt;The &lt;a href="http://blogs.divisibleprime.com/ronin/articles/2008/03/09/iplayer-downloads-for-linux"&gt;hack&lt;/a&gt; for the iPlayer from last week was closed by the BBC, but only by more obsfucation.  Therefore, there is a &lt;a href="http://po-ru.com/diary/bbc-iplayer-fix-hacked-again/"&gt;patch&lt;/a&gt; for last weeks script which fixes the problem.  &lt;/p&gt;

&lt;p&gt;Reading the comments there are a few people out there working on making this better, and it looks like there is a &lt;a href="http://www.eribium.org/blog/?p=186"&gt;script&lt;/a&gt; to generate an RSS feed for the iplayer website.&lt;/p&gt;</description>
      <pubDate>Sun, 16 Mar 2008 18:37:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e17bc105-3e43-4afd-8faf-4237b39121b4</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/03/16/iplayer-hacked-again</link>
      <category>Tech</category>
      <category>Ruby</category>
      <category>Linux</category>
      <category>linux</category>
      <category>ruby</category>
      <category>iplayer</category>
      <category>bbc</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/942</trackback:ping>
    </item>
    <item>
      <title>New London Architecture</title>
      <description>&lt;p&gt;Went and saw the Underground: Londons Hidden Architecture at &lt;a href="http://www.newlondonarchitecture.org/index.php"&gt;New London Architecture &lt;/a&gt; this weekend.&lt;/p&gt;

&lt;p&gt;They had a big model of central London which was pretty cool.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.flickr.com/photos/kurver/2338304396/" title="London Model by kurver, on Flickr"&gt;&lt;img src="http://farm3.static.flickr.com/2074/2338304396_333cb1f07d.jpg" width="500" height="211" alt="London Model" /&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 16 Mar 2008 17:36:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:8ee25c70-fd82-4363-a6a3-a638ddc2f7b6</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/03/16/new-london-architecture</link>
      <category>london</category>
      <category>architecture</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/941</trackback:ping>
    </item>
    <item>
      <title>Command line Gnome Notification</title>
      <description>&lt;p&gt;From the &amp;#8220;it&amp;#8217;s almost certainly been done better somewhere else&amp;#8221; department, here is my script to fire off a Gnome Notification after a shell command finishes.&lt;/p&gt;

&lt;p&gt;a python script:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/usr/bin/python
from pynotify import *
import sys

def notify(message=""):
    n = Notification("Command Line Completed", message)
    n.show()

init("cli notify")
if len(sys.argv) &amp;gt; 1:
    notify(sys.argv[1])
else:
    notify()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then just add it to your path and you can append it onto some command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;echo monkey &amp;amp;&amp;amp; mynotify.py "some message"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You then get a notification like so:&lt;/p&gt;

&lt;p&gt;&lt;img src="http://blogs.divisibleprime.com/ronin/files/notify.png" alt="image"/&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 10 Mar 2008 21:38:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d238e5be-6172-45f2-85db-d6d2eebbeb42</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/03/10/command-line-gnome-notification</link>
      <category>Tech</category>
      <category>Gnome</category>
      <category>Linux</category>
      <category>linux</category>
      <category>gnomy</category>
      <category>python</category>
      <category>notify</category>
      <category>desktop</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/940</trackback:ping>
    </item>
    <item>
      <title>BBC iPlayer downloads for Linux</title>
      <description>&lt;p&gt;BBC&amp;#8217;s iPlayer is good, but &lt;a href="http://po-ru.com/diary/cracking-open-the-iplayer/"&gt;this&lt;/a&gt; makes it better.&lt;/p&gt;

&lt;p&gt;Found &lt;a href="http://www.flickr.com/photos/twindx/2316284105/"&gt;via&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 09 Mar 2008 08:59:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ce6eb671-372c-46d6-be17-a8fadf882c32</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2008/03/09/iplayer-downloads-for-linux</link>
      <category>Ruby</category>
      <category>Linux</category>
      <category>linux</category>
      <category>ruby</category>
      <category>iplayer</category>
      <category>bbc</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/939</trackback:ping>
    </item>
    <item>
      <title>Thinking about scalable systems</title>
      <description>&lt;p&gt;&lt;a href="http://armstrongonsoftware.blogspot.com/2007/07/scalable-fault-tolerant-upgradable.html"&gt;Joe Armstrong&lt;/a&gt;: Scalable fault-tolerant upgradable systems, part 1.&lt;/p&gt;

&lt;blockquote&gt;
    &lt;p&gt;A system that is fault-tolerant can easily be made scalable and easily made so that we can do in-service upgrade.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Part 1, cool.  Looking forward to the rest of this.&lt;/p&gt;</description>
      <pubDate>Mon, 23 Jul 2007 10:38:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:cee0d6eb-1427-4561-ac59-b65d39ac83d1</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/07/23/thinking-about-scalable-systems</link>
      <category>erlang</category>
      <category>scalability</category>
      <category>fault tolerant</category>
      <category>upgradable</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/938</trackback:ping>
    </item>
  </channel>
</rss>
