<?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>^D</title>
	<atom:link href="http://www.control-d.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.control-d.com</link>
	<description>My little corner of the Internet</description>
	<lastBuildDate>Fri, 18 Jun 2010 20:45:15 +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>Updated hilightphrase XChat plugin</title>
		<link>http://www.control-d.com/?p=122</link>
		<comments>http://www.control-d.com/?p=122#comments</comments>
		<pubDate>Fri, 18 Jun 2010 20:45:15 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=122</guid>
		<description><![CDATA[I finally found some free time and updated my hilightphrase XChat python plugin. The Changes: 1. When listing out the highlighted strings, they are displayed in a separate tab instead of the current tab 2. The list of phrases contains are numbered so that you can delete them using the index instead of typing to [...]]]></description>
			<content:encoded><![CDATA[<p>I finally found some free time and updated my hilightphrase XChat python plugin.  </p>
<p>The Changes:<br />
1.  When listing out the highlighted strings, they are displayed in a separate tab instead of the current tab<br />
2.  The list of phrases contains are numbered so that you can delete them using the index instead of typing to whole string back out<br />
3.  Added a help command for a short explanation of each command<br />
4.  There is only one command now, /hilight, that accepts the options like &#8220;add&#8221;, &#8220;help&#8221;, &#8220;list&#8221;, etc.  </p>
<p><a href="http://wiki.control-d.com/index.php?title=Hilightphrase">http://wiki.control-d.com/index.php?title=Hilightphrase</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=122</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated my wiki</title>
		<link>http://www.control-d.com/?p=117</link>
		<comments>http://www.control-d.com/?p=117#comments</comments>
		<pubDate>Sun, 23 Aug 2009 22:42:01 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=117</guid>
		<description><![CDATA[I finally updated my wiki page, Ubuntu Jaunty Jackalope (9.04) on a Toshiba Protege M400, with more information on rotating the screen, and how to get the fingerprint scanner working.]]></description>
			<content:encoded><![CDATA[<p>I finally updated my wiki page, <a href="http://wiki.control-d.com/index.php?title=Ubuntu_Jaunty_Jackalope_%289.04%29_on_a_Toshiba_Protege_M400">Ubuntu Jaunty Jackalope (9.04) on a Toshiba Protege M400</a>, with more information on rotating the screen, and how to get the fingerprint scanner working.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=117</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Firefox/Shiretoko 3.5 and User Agent string</title>
		<link>http://www.control-d.com/?p=98</link>
		<comments>http://www.control-d.com/?p=98#comments</comments>
		<pubDate>Sun, 23 Aug 2009 16:38:40 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=98</guid>
		<description><![CDATA[I installed the firefox-3.5 package in Jaunty and found that the facebook chat applet on their page stopped working. It seemed to think I was running an outdated browser. A quick google search came up with a result: http://rrenomeron.wordpress.com/2009/07/07/ubuntus-firefox-3-5-and-facebook-chat/ I could&#8217;ve installed the addon, but there&#8217;s an easy, simpler way: Type about:config in the browser [...]]]></description>
			<content:encoded><![CDATA[<p>I installed the firefox-3.5 package in Jaunty and found that the facebook chat applet on their page stopped working.  It seemed to think I was running an outdated browser.  A quick google search came up with a result: <a href="http://rrenomeron.wordpress.com/2009/07/07/ubuntus-firefox-3-5-and-facebook-chat/">http://rrenomeron.wordpress.com/2009/07/07/ubuntus-firefox-3-5-and-facebook-chat/</a></p>
<p>I could&#8217;ve installed the addon, but there&#8217;s an easy, simpler way:</p>
<ol>
<li>Type <strong>about:config</strong> in the browser url bar
<li>Type <strong>useragent</strong> into the filter bar
<li>Edit the <em>general.useragent.extra.firefox</em> and change <strong>Shiretoko</strong> to <strong>Firefox</strong>, leaving the rest of the value the same
</ol>
<div id="attachment_104" class="wp-caption alignnone" style="width: 310px"><a href="http://www.control-d.com/wordpress/wp-content/uploads/2009/08/useragent.png"><img src="http://www.control-d.com/wordpress/wp-content/uploads/2009/08/useragent-300x101.png" alt="useragent setting in firefox 3.5" title="useragent" width="300" height="101" class="size-medium wp-image-104" /></a><p class="wp-caption-text">useragent setting in firefox 3.5</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=98</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Jaunty Jackalope (9.04) on a Toshiba Protege M400</title>
		<link>http://www.control-d.com/?p=92</link>
		<comments>http://www.control-d.com/?p=92#comments</comments>
		<pubDate>Sun, 19 Jul 2009 16:54:33 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=92</guid>
		<description><![CDATA[Sorry it took me so long, but I&#8217;ve updated my wiki with information on how to get most everything working on the tablet. The wacom tablet works out of the box now with no xorg.conf, but it took me a little while to figure out where all of the devices were being created and what [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry it took me so long, but I&#8217;ve updated my wiki with information on how to get most everything working on the tablet.  The wacom tablet works out of the box now with no xorg.conf, but it took me a little while to figure out where all of the devices were being created and what they were now called.  </p>
<p><a href="http://wiki.control-d.com/index.php?title=Ubuntu_Jaunty_Jackalope_(9.04)_on_a_Toshiba_Protege_M400">http://wiki.control-d.com/index.php?title=Ubuntu_Jaunty_Jackalope_(9.04)_on_a_Toshiba_Protege_M400</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=92</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XChat notification and highlighting on phrases instead of single words</title>
		<link>http://www.control-d.com/?p=81</link>
		<comments>http://www.control-d.com/?p=81#comments</comments>
		<pubDate>Tue, 26 May 2009 21:07:47 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=81</guid>
		<description><![CDATA[I wrote the following xchat plugin after they decided to &#8220;fix&#8221; the Extra words to highlight feature in XChat 2.8.6 The python plugin can be downloaded here __module_name__ = 'hilight-phrase' __module_description__ = 'XChat notification and hilighting on phrases instead of single words' __module_version__ = '2.0' import xchat, os, re CONFFILE = os.environ['HOME'] + '/.xchat2/hilight-phrase.conf' list=[] [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote the following xchat plugin after they decided to <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487950">&#8220;fix&#8221; the <em>Extra words to highlight</em> feature</a> in XChat 2.8.6</p>
<p>The python plugin can be downloaded <a href="http://www.control-d.com/files/hilightphrase.py">here</a></p>
<pre>
__module_name__ = 'hilight-phrase'
__module_description__ = 'XChat notification and hilighting on phrases instead of single words'
__module_version__ = '2.0'

import xchat, os, re

CONFFILE = os.environ['HOME'] + '/.xchat2/hilight-phrase.conf'
list=[]

xchat.prnt('%(name)s, version %(version)s' % {'name': __module_name__,  'version': __module_version__})  

def read_list():
    try:
        conf = open(CONFFILE,'r')
    except:
        xchat.prnt(CONFFILE + " currently doesn't exist, creating")
        return None
    lines = conf.readlines()
    for each in lines:
        list.append(re.sub(r'\n','',each))
    conf.close()

def save_list():
    conf = open(CONFFILE,'w')
    for phrase in list:
        conf.write(phrase + '\n')
    conf.close()

def check_msg(word, word_eol, userdata):
    for phrase in list:
        if phrase in word_eol[1].lower():
            xchat.command("gui color 3")
            xchat.emit_print( "Channel Msg Hilight", word[0], word[1] )
            return xchat.EAT_ALL

    return xchat.EAT_NONE

def add_hilight_phrase(word, word_eol, userdata):
    if len(word) == 1:
        return list_hilight_phrase(word, word_eol, userdata)
    phrase = word_eol[1]
    if phrase not in list:
        list.append(phrase)
        xchat.prnt('\x032* "%s" will be hilighted' % phrase)
    else:
        xchat.prnt('\x032* "%s" is already being hilighted' % phrase)
    save_list()
    return xchat.EAT_XCHAT

def list_hilight_phrase(word, word_eol, userdata):
    xchat.prnt('\x032Current hilight-phrase list: %d hilighted.' % len(list))
    for phrase in list:
        xchat.prnt('\x032  -- %s' % phrase)
    xchat.prnt('\x032* End of hilight-phrase list')
    return xchat.EAT_XCHAT

def remove_hilight_phrase(word, word_eol, userdata):
    phrase = word_eol[1]
    if phrase in list:
        list.remove(phrase)
        xchat.prnt('\x032 "%s" has been removed from the hilight list' % phrase)
    else:
        xchat.prnt('\x032 "%s" is not in the hilight list' % phrase)
    save_list()
    return xchat.EAT_XCHAT

read_list()
xchat.hook_command("hilight-add", add_hilight_phrase)
xchat.hook_command("hilight-list", list_hilight_phrase)
xchat.hook_command("hilight-remove", remove_hilight_phrase)
xchat.hook_print("Channel Message", check_msg)
</pre>
<p>You can use the plugin by either:<br />
1.  manually loading the file through the menu (Windows -> Plugins and Scripts) every time you restart xchat<br />
2.  copy the hilightphrase.py to your <em>$HOME/.xchat2/</em> direcory where it will get loaded automatically when xchat is run.  </p>
<p>Once loaded, a <em>/hilight-list</em> will list all of the currently active phrases to highlight.  A <em>/hilight-add &lt;phrase&gt;</em> where &lt;phrase&gt; is a string will add the specified phrase to the list.  As you can probably guess, a <em>/hilight-remove &lt;phrase&gt;</em> where &lt;phrase&gt; is a currently active phrase will remove it from the list.  </p>
<p>Feel free to comment and leave suggestions.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=81</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>New theme poll</title>
		<link>http://www.control-d.com/?p=73</link>
		<comments>http://www.control-d.com/?p=73#comments</comments>
		<pubDate>Tue, 10 Mar 2009 19:04:03 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=73</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=73</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting mp3 files to iPhone ringtones in Linux</title>
		<link>http://www.control-d.com/?p=60</link>
		<comments>http://www.control-d.com/?p=60#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:19:26 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=60</guid>
		<description><![CDATA[It should go without saying that with &#8220;iPhone&#8221; and &#8220;Linux&#8221; in the same sentence you&#8217;ll need a jailbroken phone for this. Use the following commands to dump your mp3 file to WAV then convert it to m4a: 1. mplayer -vo null -vc null -ao pcm:fast:file=file.wav file.mp3 2. faac -b 128 -c 44100 -w file.wav You&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>It should go without saying that with &#8220;iPhone&#8221; and &#8220;Linux&#8221; in the same sentence you&#8217;ll need a jailbroken phone for this.  Use the following commands to dump your mp3 file to WAV then convert it to m4a:</p>
<p>1.  <code>mplayer -vo null -vc null -ao pcm:fast:file=file.wav file.mp3</code><br />
2.  <code>faac -b 128 -c 44100 -w file.wav</code></p>
<p>You&#8217;ll end up with a file.m4a file.  Once you have the OpenSSH package installed and running on your iPhone you can use the scp command to copy the ringtone to the correct location:</p>
<p>  <code>scp file.m4a root@iphone:/Library/Ringtones/file.m4r</code></p>
<p>The root password by default is &#8220;alpine&#8221;. As you can see the file will need to be renamed to end in &#8220;.m4r&#8221; instead of &#8220;.m4a&#8221; to be used as a ringtone.  You&#8217;ll now be able to see it listed with the other ringtones under Settings -> Sounds -> Ringtone.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=60</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Changing GNOME desktop background based on time of day</title>
		<link>http://www.control-d.com/?p=50</link>
		<comments>http://www.control-d.com/?p=50#comments</comments>
		<pubDate>Sat, 28 Feb 2009 01:01:46 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=50</guid>
		<description><![CDATA[This has already been done before, but I wanted to try to do it myself. It turned out a bit more complicated than I thought it would be on Ubuntu 8.10 and Fedora 10 because of the way gconftool-2 now interacts with D-BUS. First, I created a script that could be used to change in [...]]]></description>
			<content:encoded><![CDATA[<p>This has already been done before, but I wanted to try to do it myself.  It turned out a bit more complicated than I thought it would be on Ubuntu 8.10 and Fedora 10 because of the way gconftool-2 now interacts with D-BUS.  </p>
<p>First, I created a script that could be used to change in between a set of predefined background images:</p>
<pre>
#!/bin/bash

case $1 in
1)
    gconftool-2 -t str --set /desktop/gnome/background/picture_filename "/home/derrick/wallpaper/Solar_3200x1200_SunRiseTime.png";;
2)
    gconftool-2 -t str --set /desktop/gnome/background/picture_filename "/home/derrick/wallpaper/Solar_3200x1200_DayTime.png";;
3)
    gconftool-2 -t str --set /desktop/gnome/background/picture_filename "/home/derrick/wallpaper/Solar_3200x1200_SunSetTime.png";;
4)
    gconftool-2 -t str --set /desktop/gnome/background/picture_filename "/home/derrick/wallpaper/Solar_3200x1200_NightTime.png";;
*)
    echo "Usage: bgchange.sh [1|2|3|4]";;
esac
</pre>
<p>Then, using the <a href="http://ubuntuforums.org/showpost.php?p=5996758&#038;postcount=12">solution</a> that allows gconftool-2 to communicate using dbus while being run by cron, I created another script:</p>
<pre>
#!/bin/bash

# Export the dbus session address on startup so it can be used by cron
touch $HOME/.Xdbus
chmod 600 $HOME/.Xdbus

env | grep DBUS_SESSION_BUS_ADDRESS > $HOME/.Xdbus
echo 'export DBUS_SESSION_BUS_ADDRESS' >> $HOME/.Xdbus

# Export XAUTHORITY value on startup so it can be used by cron
env | grep XAUTHORITY >> $HOME/.Xdbus
echo 'export XAUTHORITY' >> $HOME/.Xdbus
</pre>
<p>As the post says, I made the script run each time I logged in by selecting System -> Preferences -> Sessions and adding /home/derrick/bin/.make_Xdbus as a Startup program.  </p>
<p>Next,  I edited by crontab by running &#8216;crontab -e&#8217; and adding the following jobs:</p>
<pre>
00 07 * * * . /home/derrick/.Xdbus; /home/derrick/bin/bgchange.sh 1
00 08 * * * . /home/derrick/.Xdbus; /home/derrick/bin/bgchange.sh 2
00 17 * * * . /home/derrick/.Xdbus; /home/derrick/bin/bgchange.sh 3
00 18 * * * . /home/derrick/.Xdbus; /home/derrick/bin/bgchange.sh 4
</pre>
<p>The /home/derrick/.Xdbus file is created each time I log in after adding the previous script as an entry in Sessions.  You can adjust at what time the script changes the background to what picture.  If you&#8217;re not familiar with crontab syntax you can take a look at the crontab(5) man page using the command &#8216;man 5 cron&#8217;.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=50</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu Intrepid Ibex (8.10) on a Toshiba Portege M400</title>
		<link>http://www.control-d.com/?p=34</link>
		<comments>http://www.control-d.com/?p=34#comments</comments>
		<pubDate>Sat, 25 Oct 2008 02:54:43 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=34</guid>
		<description><![CDATA[I decided to go ahead and do a fresh install of the Intrepid beta and report my results. So far everything but the fingerprint scanner is working. http://wiki.control-d.com/index.php?title=Ubuntu_Intrepid_Ibex_(8.10)_on_a_Toshiba_Protege_M400]]></description>
			<content:encoded><![CDATA[<p>I decided to go ahead and do a fresh install of the Intrepid beta and report my results.  So far everything but the fingerprint scanner is working.  </p>
<p><a href="http://wiki.control-d.com/index.php?title=Ubuntu_Intrepid_Ibex_(8.10)_on_a_Toshiba_Protege_M400">http://wiki.control-d.com/index.php?title=Ubuntu_Intrepid_Ibex_(8.10)_on_a_Toshiba_Protege_M400</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wiki.control-d.com</title>
		<link>http://www.control-d.com/?p=33</link>
		<comments>http://www.control-d.com/?p=33#comments</comments>
		<pubDate>Sat, 14 Jun 2008 03:31:19 +0000</pubDate>
		<dc:creator>Derrick</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.control-d.com/?p=33</guid>
		<description><![CDATA[The following 4 guides have been moved over to my MediaWiki site and updated: Intro to the ViM Editor Vim and R iPhone 1.1.4 and Ubuntu Linux Ubuntu Hardy Heron (8.04) on a Toshiba Portege M400 http://wiki.control-d.com I think it makes them much, much easier to read and follow.]]></description>
			<content:encoded><![CDATA[<p>The following 4 guides have been moved over to my MediaWiki site and updated:</p>
<p>Intro to the ViM Editor<br />
Vim and R<br />
iPhone 1.1.4 and Ubuntu Linux<br />
Ubuntu Hardy Heron (8.04) on a Toshiba Portege M400 </p>
<p><a href="http://wiki.control-d.com">http://wiki.control-d.com</a></p>
<p>I think it makes them much, much easier to read and follow.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.control-d.com/?feed=rss2&amp;p=33</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
