<?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: Tag linux</title>
    <link>http://blogs.divisibleprime.com/ronin/articles/tag/linux</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>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>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>Gentoo HP Photosmart c5180</title>
      <description>&lt;p&gt;As a pointer for anybody trying to get an HP Photosmart c5180 working on Gentoo, &lt;a href="http://tuvok.roalt.com/roalt/content/view/46/37/"&gt;these&lt;/a&gt; instructions worked for me without any problems whatsoever.&lt;/p&gt;</description>
      <pubDate>Sun, 20 May 2007 19:01:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:c9064918-2a9c-47db-b0f5-2789d91f5225</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2007/05/20/gentoo-hp-photosmart-c5180</link>
      <category>linux</category>
      <category>hp</category>
      <category>photosmart</category>
      <category>c5180</category>
      <category>gentoo</category>
      <category>printer</category>
      <trackback:ping>http://blogs.divisibleprime.com/ronin/articles/trackback/868</trackback:ping>
    </item>
    <item>
      <title>Adobe Flash Player for Linux</title>
      <description>&lt;p&gt;&lt;a href="http://blogs.adobe.com/penguin.swf/2006/10/beta_is_live.html"&gt;This&lt;/a&gt; has been around for a couple of weeks now but I just got around to trying it out.  It seems to have fixed my sound problems with videos in Firefox so it&amp;#8217;s all good so far.  If anybody knows of a Gentoo ebuild for it shout out.&lt;/p&gt;

&lt;p&gt;Update: I&amp;#8217;m an idiot, it&amp;#8217;s available in ~x86 for Gentoo as netscape-flash.&lt;/p&gt;</description>
      <pubDate>Wed, 01 Nov 2006 21:04:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:77989b0d-89ef-4c46-8bb8-3054350bdd36</guid>
      <author>Kerry</author>
      <link>http://blogs.divisibleprime.com/ronin/articles/2006/11/01/adobe-flash-player-for-linux</link>
      <category>Tech</category>
      <category>flash</category>
      <category>linux</category>
      <category>adobe</category>
      <category>firefox</category>
    </item>
  </channel>
</rss>
