<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
  <id>tag:blogs.divisibleprime.com,2005:/ronin/articles</id>
  <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com"/>
  <link type="application/atom+xml" rel="self" href="http://blogs.divisibleprime.com/ronin/articles.atom"/>
  <title>ronin</title>
  <subtitle type="html">Stuff</subtitle>
  <updated>2011-04-29T17:06:30Z</updated>
  <generator uri="http://www.typosphere.org" version="5.x">Typo</generator>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/947</id>
    <published>2009-03-21T19:37:39Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2009/03/21/jabber-notification"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Jabber Notification</title>
    <category label="Ruby" term="ruby" scheme="http://blogs.divisibleprime.com/ronin/category/ruby"/>
    <category label="Tech" term="tech" scheme="http://blogs.divisibleprime.com/ronin/category/tech"/>
    <category term="linux" scheme="http://blogs.divisibleprime.com/ronin/tag/linux"/>
    <category term="ruby" scheme="http://blogs.divisibleprime.com/ronin/tag/ruby"/>
    <category term="jabber" scheme="http://blogs.divisibleprime.com/ronin/tag/jabber"/>
    <category term="xmpp" scheme="http://blogs.divisibleprime.com/ronin/tag/xmpp"/>
    <category term="notification" scheme="http://blogs.divisibleprime.com/ronin/tag/notification"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/946</id>
    <published>2009-01-05T21:21:40Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2009/01/05/prelude"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Prelude</title>
    <category label="Gnome" term="gnome" scheme="http://blogs.divisibleprime.com/ronin/category/gnome"/>
    <category label="Linux" term="linux" scheme="http://blogs.divisibleprime.com/ronin/category/linux"/>
    <link type="image/png" rel="enclosure" length="23330" href="http://blogs.divisibleprime.com/ronin/files/prelude.png" title="Prelude"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/945</id>
    <published>2008-05-15T09:30:48Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/05/15/new-zealand-1843"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">New Zealand, 1843</title>
    <category term="nz" scheme="http://blogs.divisibleprime.com/ronin/tag/nz"/>
    <category term="new zealand" scheme="http://blogs.divisibleprime.com/ronin/tag/newzealand"/>
    <category term="map" scheme="http://blogs.divisibleprime.com/ronin/tag/map"/>
    <category term="historical" scheme="http://blogs.divisibleprime.com/ronin/tag/historical"/>
    <category term="david rumsey" scheme="http://blogs.divisibleprime.com/ronin/tag/davidrumsey"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/944</id>
    <published>2008-04-28T21:49:34Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/04/28/gin-television-and-social-surplus"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Gin, Television, and Social Surplus</title>
    <category label="Tech" term="tech" scheme="http://blogs.divisibleprime.com/ronin/category/tech"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/943</id>
    <published>2008-04-26T13:24:39Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/04/26/internet-asshattery"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Internet Asshattery</title>
    <category label="Rails" term="rails" scheme="http://blogs.divisibleprime.com/ronin/category/rails"/>
    <category label="Ruby" term="ruby" scheme="http://blogs.divisibleprime.com/ronin/category/ruby"/>
    <category label="Tech" term="tech" scheme="http://blogs.divisibleprime.com/ronin/category/tech"/>
    <category term="rails" scheme="http://blogs.divisibleprime.com/ronin/tag/rails"/>
    <category term="scaling" scheme="http://blogs.divisibleprime.com/ronin/tag/scaling"/>
    <category term="twitter" scheme="http://blogs.divisibleprime.com/ronin/tag/twitter"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/942</id>
    <published>2008-03-16T18:41:43Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/03/16/iplayer-hacked-again"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">iPlayer hacked again</title>
    <category label="Linux" term="linux" scheme="http://blogs.divisibleprime.com/ronin/category/linux"/>
    <category label="Ruby" term="ruby" scheme="http://blogs.divisibleprime.com/ronin/category/ruby"/>
    <category label="Tech" term="tech" scheme="http://blogs.divisibleprime.com/ronin/category/tech"/>
    <category term="linux" scheme="http://blogs.divisibleprime.com/ronin/tag/linux"/>
    <category term="ruby" scheme="http://blogs.divisibleprime.com/ronin/tag/ruby"/>
    <category term="iplayer" scheme="http://blogs.divisibleprime.com/ronin/tag/iplayer"/>
    <category term="bbc" scheme="http://blogs.divisibleprime.com/ronin/tag/bbc"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/941</id>
    <published>2008-03-16T17:44:02Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/03/16/new-london-architecture"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">New London Architecture</title>
    <category term="london" scheme="http://blogs.divisibleprime.com/ronin/tag/london"/>
    <category term="architecture" scheme="http://blogs.divisibleprime.com/ronin/tag/architecture"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/940</id>
    <published>2008-03-10T21:48:05Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/03/10/command-line-gnome-notification"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Command line Gnome Notification</title>
    <category label="Gnome" term="gnome" scheme="http://blogs.divisibleprime.com/ronin/category/gnome"/>
    <category label="Linux" term="linux" scheme="http://blogs.divisibleprime.com/ronin/category/linux"/>
    <category label="Tech" term="tech" scheme="http://blogs.divisibleprime.com/ronin/category/tech"/>
    <category term="linux" scheme="http://blogs.divisibleprime.com/ronin/tag/linux"/>
    <category term="gnomy" scheme="http://blogs.divisibleprime.com/ronin/tag/gnomy"/>
    <category term="python" scheme="http://blogs.divisibleprime.com/ronin/tag/python"/>
    <category term="notify" scheme="http://blogs.divisibleprime.com/ronin/tag/notify"/>
    <category term="desktop" scheme="http://blogs.divisibleprime.com/ronin/tag/desktop"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/939</id>
    <published>2008-03-09T09:02:03Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2008/03/09/iplayer-downloads-for-linux"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">BBC iPlayer downloads for Linux</title>
    <category label="Linux" term="linux" scheme="http://blogs.divisibleprime.com/ronin/category/linux"/>
    <category label="Ruby" term="ruby" scheme="http://blogs.divisibleprime.com/ronin/category/ruby"/>
    <category term="linux" scheme="http://blogs.divisibleprime.com/ronin/tag/linux"/>
    <category term="ruby" scheme="http://blogs.divisibleprime.com/ronin/tag/ruby"/>
    <category term="iplayer" scheme="http://blogs.divisibleprime.com/ronin/tag/iplayer"/>
    <category term="bbc" scheme="http://blogs.divisibleprime.com/ronin/tag/bbc"/>
    <content type="html">&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;</content>
  </entry>
  <entry>
    <id>tag:blogs.divisibleprime.com,2005:Article/938</id>
    <published>2007-07-23T10:42:56Z</published>
    <updated>2011-04-29T17:06:30Z</updated>
    <link type="text/html" rel="alternate" href="http://blogs.divisibleprime.com/ronin/2007/07/23/thinking-about-scalable-systems"/>
    <author>
      <name>Kerry</name>
    </author>
    <title type="html">Thinking about scalable systems</title>
    <category term="erlang" scheme="http://blogs.divisibleprime.com/ronin/tag/erlang"/>
    <category term="scalability" scheme="http://blogs.divisibleprime.com/ronin/tag/scalability"/>
    <category term="fault tolerant" scheme="http://blogs.divisibleprime.com/ronin/tag/faulttolerant"/>
    <category term="upgradable" scheme="http://blogs.divisibleprime.com/ronin/tag/upgradable"/>
    <content type="html">&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;</content>
  </entry>
</feed>
