<?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>HauntedShell</title>
	<atom:link href="http://hauntedshell.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hauntedshell.com</link>
	<description>Just another Hauntedshell.com weblog</description>
	<lastBuildDate>Tue, 02 Feb 2010 00:57:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeRADIUS Builds</title>
		<link>http://hauntedshell.com/2010/02/02/freeradius-builds/</link>
		<comments>http://hauntedshell.com/2010/02/02/freeradius-builds/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:57:49 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/linux/freeradius-builds/</guid>
		<description><![CDATA[Have been helping people out with their FreeRADIUS deployments (usually for hotspots). As a result, I&#8217;ve started a little collection of Freeradius packages that I&#8217;ve built for Ubuntu. FreeRadius is available from the repositories but what you get sometimes is not the latest and greatest. I&#8217;m putting my builds up for download so that someone [...]]]></description>
			<content:encoded><![CDATA[<p>Have been helping people out with their <a href="http://freeradius.org/">FreeRADIUS </a>deployments (usually for hotspots). As a result, I&#8217;ve started a little collection of Freeradius packages that I&#8217;ve built for <a href="http://ubuntu.com">Ubuntu</a>. FreeRadius is available from the repositories but what you get sometimes is not the latest and greatest. I&#8217;m putting my builds up for download so that someone else doesn&#8217;t have to go through the stress of compiling.&nbsp; </p>
<p>These were compiled using version 2.1.6 of Freeradius.</p>
<p><strong>Hardy amd64</strong>
<ul>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-dbg_2.1.6-0_amd64.deb">freeradius-dbg_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-dialupadmin_2.1.6-0_all.deb">freeradius-dialupadmin_2.1.6-0_all.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-iodbc_2.1.6-0_amd64.deb">freeradius-iodbc_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-krb5_2.1.6-0_amd64.deb">freeradius-krb5_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-ldap_2.1.6-0_amd64.deb">freeradius-ldap_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-mysql_2.1.6-0_amd64.deb">freeradius-mysql_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius-postgresql_2.1.6-0_amd64.deb">freeradius-postgresql_2.1.6-0_amd64.deb</a></li>
<p>
<li><a href="//scribefire/files/freeradius/hardy-amd64/freeradius_2.1.6-0_amd64.deb">freeradius_2.1.6-0_amd64.deb</a></li>
</ul>
<p>I&#8217;m getting really sleepy so I&#8217;ll add some more builds tomorrow. Coming soon, instructions on how to build your own packages.</p>
<p><b>Update:</b> i386 builds for Hardy are also up. i386 builds for Karmic<br />
 will follow shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2010/02/02/freeradius-builds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What PHP, JSON, jQuery and James Cameron have in common</title>
		<link>http://hauntedshell.com/2010/01/09/what-php-json-jquery-and-james-cameron-have-in-common/</link>
		<comments>http://hauntedshell.com/2010/01/09/what-php-json-jquery-and-james-cameron-have-in-common/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 15:02:26 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Unproductivity]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Avatar]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Silverbird]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=164</guid>
		<description><![CDATA[Over the holidays, I spend a few days in Accra. While I was there, one of the things at the top of my todo list was to go and watch James Cameron&#8217;s Avatar (which I hear is a fantastic movie, by the way). Only place to watch it of course, was the Silverbird Cinema at [...]]]></description>
			<content:encoded><![CDATA[<p>Over the holidays, I spend a few days in Accra. While I was there, one of the things at the top of my todo list was to go and watch James Cameron&#8217;s Avatar (which I hear is a fantastic movie, by the way). Only place to watch it of course, was the Silverbird Cinema at the Accra Mall. So, being the consummate geek that I am, I checked their Twitter feed for scheduling information. Turns out Avatar would be showing that evening at 9:30pm.  Alright then. Since I would be leaving for Kumasi the next day, that left me just about enough time for me to finish packing, take a nap and have supper first.</p>
<p>Only one tiny hitch; I wasn&#8217;t paying attention and misread the time. It was actually showing at 7:30pm. I&#8217;m sure you will be able to figure out how the rest of the evening played out. Anyways, fast foward two days later. I&#8217;m still grumpy and decided that I would have to do something, even  if it as completely useless. So I threw together a little php script that displays the Silverbird movie lineup in a somewhat more reasonable manner.</p>
</p>
<p style="text-align: center">
<div id="attachment_165" class="wp-caption aligncenter" style="width: 460px"><a title="Much better" rel="lightbox" href="http://www.hauntedshell.com/wp-content/uploads/2010/01/main.jpg"><img title="Much better" src="http://www.hauntedshell.com/wp-content/uploads/2010/01/main-300x160.jpg" alt="Much better" width="450" height="240" /></a><p class="wp-caption-text">Much better</p></div>
<p><span id="more-164"></span></p>
<p style="text-align: left">Basically, this is how it works:<br />
It gets the Silverbird&#8217;s last 8 or so twitter status updates in JSON format, applies a regex and writes the results into a list.<br />
<code><br />
$curl = curl_init();<br />
curl_setopt ($curl, CURLOPT_URL, "http://twitter.com/statuses/user_timeline/silverbirdghana.json?callback?");<br />
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);<br />
$result = curl_exec ($curl);<br />
curl_close ($curl);<br />
</code>
</p>
<p>I used CURL to retrieve the status data in JSON. It could have easily been in RSS, ATOM or XML but JSON was much much easier to work with. The &#8216;?callback?&#8217; at the end of the url is required for cross-domain requests(I think).</p>
<p><code><br />
$output = json_decode($result);<br />
foreach($output as $tweet):<br />
preg_match('/^"(.*)".*\[(.*)\]\s([0-9:]+\s[APM]+).*SCREEN\s([0-9])/', $tweet-&gt;text, $info);<br />
$item = '&lt;li&gt;';<br />
$item .= '&lt;span class="title"&gt;' .$info[1] . '&lt;/span&gt;';<br />
$item .= '&lt;span class="time"&gt;' .$info[3] . ' on &lt;/span&gt;';<br />
$item .= '&lt;span class="day"&gt;' .$info[2] . '&lt;/span&gt;';<br />
$item .= '&lt;span class="screen"&gt;' .$info[4] . '&lt;/span&gt;';<br />
$item .= '&lt;/li&gt;';<br />
echo $item;<br />
endforeach;<br />
</code></p>
<p>So using php&#8217;s <a href="http://php.net/manual/en/function.json-decode.php">json_decode</a> function to convert the JSON data directly into an associative array, all that was left to do was to loop over the array, apply a regex to the text of the tweets and print the results. Of course, I wasn&#8217;t satisfied and ended adding some jQuery flavour to refresh the content dynamically(More on that later. You can have a look at the source code below if you&#8217;re curious though). Then I cooked up some CSS and called it a day(meaning I lost interest). Of course, it&#8217;s far from perfect: there&#8217;s the issue of timeouts and exceeding the Twitter API limits (those are the first two that come to mind).</p>
<div class="wp-caption aligncenter" style="width: 458px"><a rel="lightbox" href="http://www.hauntedshell.com/wp-content/uploads/2010/01/Whats-On-_1263048946821.jpg"><img src="http://www.hauntedshell.com/wp-content/uploads/2010/01/Whats-On-_1263048946821.jpg" alt="" width="448" height="252" /></a><p class="wp-caption-text">Told you it wan&#39;t perfect</p></div>
<p>What was the point of all this? Well I did learn that I am not above doing something completely useless just so that I can write a post telling a story about it.  If I have some free time this weekend. I&#8217;ll see if I can cook up a desktop widget or something.
</p>
<p>Source code: <a href='http://www.hauntedshell.com/wp-content/uploads/2010/01/whatson.zip'>whatson.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2010/01/09/what-php-json-jquery-and-james-cameron-have-in-common/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does your RADIUS server think &quot;user&quot; = &quot;USER&quot;?</title>
		<link>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/</link>
		<comments>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:45:23 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/does-your-radius-server-think-user-user/</guid>
		<description><![CDATA[If you happen to manage a hotspot that uses Freeradius with the sql module for authentication, you might want to pay attention. The default queries used by Freeradius sql module are case-insensitive. So if user &#8220;kwame&#8221; is successfully authenticated, another user &#8220;Kwame&#8221; can also successfully autheticate. And so can &#8220;KWAME&#8221;, &#8220;kwamE&#8221;, &#8220;KwaMe&#8221; and so on [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to manage a hotspot that uses Freeradius with the sql module for authentication, you might want to pay attention. The default queries used by Freeradius sql module are case-insensitive. So if user &#8220;kwame&#8221; is successfully authenticated, another user &#8220;Kwame&#8221; can also successfully autheticate. And so can<span id="more-157"></span> &#8220;KWAME&#8221;, &#8220;kwamE&#8221;, &#8220;KwaMe&#8221; and so on for that matter. I guess you can see where I&#8217;m going with this: if any of your users should catch on to this&#8230; And to think, this hadn&#8217;t crossed my mind till a friend who runs a wireless isp pointed out some strange activity he had noticed in his logs.</p>
<p>You shouldn&#8217;t forget to make a small change to the <em>/etc/freeradius/sql/mysql/dialup.conf(or </em><em>/etc/freeradius/sql.conf</em>) file. Somewhere around line 82 lies the following:</p>
<pre>#######################################################################
        # Use these for case sensitive usernames.
#        authorize_check_query = "SELECT id, username, attribute, value, op \
#         FROM ${authcheck_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#         ORDER BY id"
#        authorize_reply_query = "SELECT id, username, attribute, value, op \
#         FROM ${authreply_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#         ORDER BY id"

        # The default queries are case insensitive. (for compatibility with
        # older versions of FreeRADIUS)
       authorize_check_query = "SELECT id, username, attribute, value, op \
          FROM ${authcheck_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY id"
       authorize_reply_query = "SELECT id, username, attribute, value, op \
          FROM ${authreply_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY id"
</pre>
<p>This should be:</p>
<pre>#######################################################################
        # Use these for case sensitive usernames.
        authorize_check_query = "SELECT id, username, attribute, value, op \
         FROM ${authcheck_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
         ORDER BY id"
        authorize_reply_query = "SELECT id, username, attribute, value, op \
         FROM ${authreply_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
         ORDER BY id"

        # The default queries are case insensitive. (for compatibility with
        # older versions of FreeRADIUS)
#       authorize_check_query = "SELECT id, username, attribute, value, op \
#          FROM ${authcheck_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY id"
#       authorize_reply_query = "SELECT id, username, attribute, value, op \
#          FROM ${authreply_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY id"
</pre>
<p>And if you apply your attributes per group instead of per user, like I do, then this:</p>
<pre>
        # Use these for case sensitive usernames.
#        group_membership_query = "SELECT groupname \
#        FROM ${usergroup_table} \
#         WHERE username = BINARY '%{SQL-User-Name}' \
#        ORDER BY priority"

       group_membership_query = "SELECT groupname \
          FROM ${usergroup_table} \
          WHERE username = '%{SQL-User-Name}' \
          ORDER BY priority"
</pre>
<p>should become:</p>
<pre>
        # Use these for case sensitive usernames.
        group_membership_query = "SELECT groupname \
        FROM ${usergroup_table} \
         WHERE username = BINARY '%{SQL-User-Name}' \
        ORDER BY priority"

#       group_membership_query = "SELECT groupname \
#          FROM ${usergroup_table} \
#          WHERE username = '%{SQL-User-Name}' \
#          ORDER BY priority"
</pre>
<p>Reload the freeradius server and your usernames should be case sensitive. Now, go and buy yourself a beer in celebration of your valiant victory against the dark forces of computer insecurity.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/10/20/does-your-radius-server-think-user-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give your gnome menu a minty taste</title>
		<link>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/</link>
		<comments>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:15:55 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pimp my PC]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/give-your-gnome-menu-a-minty-taste/</guid>
		<description><![CDATA[I like Ubuntu. I like being able to tweak the bits off my desktop environment. However, I also happen to like the MintMenu, the menu applet that is set up as the default for Linux Mint, a linux distro based on Ubuntu. Of course, this being Linux and all, I just had to install it.

First, [...]]]></description>
			<content:encoded><![CDATA[<p>I like Ubuntu. I like being able to tweak the bits off my desktop environment. However, I also happen to like the MintMenu, the menu applet that is set up as the default for Linux Mint, a linux distro based on Ubuntu. Of course, this being Linux and all, I just had to install it.</p>
<ul>
<li>First, you need to <a href="http://www.linuxmint.com/repository/pool/daryna/m/mintmenu/mintmenu_3.2_i386.deb">download it</a>(~99kb).</li>
<p><span id="more-152"></span></p>
<li>Double click the .deb file to run the package installer. In my case, all dependencies were satisfied so I just had to click the &#8220;Install Package&#8221; button.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/1.jpg"><img class="aligncenter size-thumbnail wp-image-148" title="1.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/1-150x150.jpg" alt="1.jpg" width="150" height="150" /></a></li>
<li>Right click your panel and &#8220;Add to Panel..&#8221;.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/2.jpg"><img class="aligncenter size-thumbnail wp-image-149" title="2.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/2-150x150.jpg" alt="2.jpg" width="150" height="150" /></a></li>
<li>Scroll down a bit and you should see a &#8216;MintMenu&#8217; applet.<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/3.jpg"><img class="aligncenter size-thumbnail wp-image-150" title="3.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/3-150x150.jpg" alt="3.jpg" width="150" height="150" /></a></li>
<li>Drag the applet to your panel and you should be set. Ubuntu with a little dash of mint!<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/09/4.jpg"><img class="aligncenter size-thumbnail wp-image-151" title="4.jpg" src="http://www.hauntedshell.com/wp-content/uploads/2009/09/4-150x150.jpg" alt="4.jpg" width="150" height="150" /></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/09/29/give-your-gnome-menu-a-minty-taste/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>National Service Secretariat, why?</title>
		<link>http://hauntedshell.com/2009/06/19/national-service-secretariat-why/</link>
		<comments>http://hauntedshell.com/2009/06/19/national-service-secretariat-why/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:15:15 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Homeless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=135</guid>
		<description><![CDATA[I finally got round to filling my National Service forms online and I just so happened to notice that their website sucked. A lot. What about it sucked? Well&#8230;

First of all, clicking on the enrollment link causes two windows to pop up. One of the windows contains a form that accepts a PIN number and [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got round to filling my National Service forms online and I just so happened to notice that their website sucked. A lot. What about it sucked? Well&#8230;</p>
<ul>
<li>First of all, clicking on the enrollment link causes two windows to pop up. One of the windows contains a form that accepts a PIN number and redirects you to your enrollment form, other is a &#8220;Highlights Page&#8221;.<span id="more-135"></span><a href="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss0.jpg"><img class="aligncenter size-medium wp-image-136" title="Nationa Service Secretariat Website" src="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss0-300x187.jpg" alt="Nationa Service Secretariat Website" width="300" height="187" /></a><br />
And oh, you have to click the &#8220;New Enrollment&#8221; button first to enable the PIN number field.</li>
<li> Once you finally enter your PIN number and submit, you enrollment form opens in yet another pop-up. Now even leaving the sheer ugliness of the resulting form aside, let&#8217;s look at a few things, shall we? You mean to tell me you were able to get my name, my programme of study from my school records but you somehow forgot to get my sex, date of birth and nationality while you were at it? I see&#8230;<a href="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss2.jpg"><img class="aligncenter size-medium wp-image-139" title="National Service Secretariat" src="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss2-300x275.jpg" alt="National Service Secretariat" width="300" height="275" /></a></li>
<li>Ok I fill the form, save the details and then click on the &#8220;Print Page&#8221; link (why it is not a button or named better, I don&#8217;t know).<a href="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss3.jpg"><img class="aligncenter size-medium wp-image-140" title="National Service Secretariat" src="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss3-300x43.jpg" alt="National Service Secretariat" width="300" height="43" /></a><br />
The result is this:<br />
<a href="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss4.jpg"><img class="aligncenter size-medium wp-image-141" title="National Service Secretariat" src="http://www.hauntedshell.com/wp-content/uploads/2009/06/nss4-231x300.jpg" alt="National Service Secretariat" width="231" height="300" /></a></li>
<li>And what is it with the &#8220;Highlights&#8221; page? Is it supposed to be a help page? If so, does it have to be so bloody confusing?</li>
</ul>
<p>And that&#8217;s just the stuff I noticed off-hand. Why does it have to be so hard to just fill and submit one single form? Come on, we can do a lot better than that.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/06/19/national-service-secretariat-why/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Replacing HP QuickPlay with XBMC(or any other application)</title>
		<link>http://hauntedshell.com/2009/05/09/replacing-hp-quickplay-with-xbmcor-any-other-application/</link>
		<comments>http://hauntedshell.com/2009/05/09/replacing-hp-quickplay-with-xbmcor-any-other-application/#comments</comments>
		<pubDate>Sat, 09 May 2009 21:12:18 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Homeless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/replacing-hp-quickplay-with-xbmcor-any-other-application/</guid>
		<description><![CDATA[I love my HP dv6915nr. It&#8217;s not the fastest or prettiest notebook around but it does most of what I want it to and does it quite well. However, one of the things that I hate is the bundled HP Quickplay software, which like the name suggests allows you to access your media very quickly. [...]]]></description>
			<content:encoded><![CDATA[<p>I love my HP dv6915nr. It&#8217;s not the fastest or prettiest notebook around but it does most of what I want it to and does it quite well. However, one of the things that I hate is the bundled HP Quickplay software, which like the name suggests allows you to access your media very quickly. Versions 1.x to 2.3 of QuickPlay were based on Linux or Windows XP and had their own partition. As a result, it started up real fast and was battery friendly (kind of).<br />
Version 3.x,which comes with my notebook, is different creature altogether.</p>
<div id="attachment_129" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.hauntedshell.com/wp-content/uploads/2009/05/quickplay.jpg"><img class="size-medium wp-image-129" title="HP QuickPlay" src="http://www.hauntedshell.com/wp-content/uploads/2009/05/quickplay-300x187.jpg" alt="HP QuickPlay" width="300" height="187" /></a><p class="wp-caption-text">HP QuickPlay</p></div>
<p><span id="more-124"></span>First, it runs as an application under Vista, meaning I have to wait for Vista to load before I can access the QuickPlay. And unfortunately, there appears to be no way to get an older version of Quickplay on my system, due to compatibility problems with newer computers.<br />
So I got to thinking, if I have to wait for Vista to boot before getting access to my media, I might as well use the media center of my choice. Enter the <a href="http://xbmc.org/">XBox Media Center(XBMC)</a>. I won&#8217;t really go into XBMC, but it is the sweetest media center I have ever come across and I have tried a lot of them.</p>
<div id="attachment_131" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.hauntedshell.com/wp-content/uploads/2009/05/xbmc.jpg"><img class="size-medium wp-image-131" title="XBox Media Center" src="http://www.hauntedshell.com/wp-content/uploads/2009/05/xbmc-300x187.jpg" alt="XBox Media Center" width="300" height="187" /></a><p class="wp-caption-text">XBox Media Center</p></div>
<p>What I wanted to do was link the QuickPlay button on my notebook and the included remote to start XBMC up instead of QuickPlay. After consulting the great search oracle, I found what I wanted to know. The application that runs when the QuickPlay button is pressed is specified in the registry.(<em>Like most of the other stuff on this site, the rest of this post can mess up your computer so the usual disclaimers apply. Proceed if you&#8217;re sure you know what you&#8217;re doing. And always remember to backup before doing anything that could cripple your system</em>.)</p>
<p>Anyways, you need to find the following key:<br />
<code>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Hewlett_Packard\HP Quick Launch Buttons\</code><br />
Next, look for the string value called QAction. It should currently point to<br />
<code>C:\Program Files\HP\QuickPlay\QP.exe.</code><br />
You can change the string to point to whatever other application you want. In my case, that&#8217;s <code>C:\Program Files\XBMC\xbmc.exe</code></p>
<p>That&#8217;s all. Now I have my own incredibly customizable media center only a button away. Did I mention how much I love my computer?</p>
<p><strong>Referenced</strong><br />
<a href="http://forum.tabletpcreview.com/showthread.php?p=108960#post108960">http://forum.tabletpcreview.com/showthread.php?p=108960#post108960</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=14d4b501-bbc0-8aba-947e-3e4bf83f2e8a" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/05/09/replacing-hp-quickplay-with-xbmcor-any-other-application/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Taking the plunge: Jaunty</title>
		<link>http://hauntedshell.com/2009/04/22/taking-the-plunge-jaunty/</link>
		<comments>http://hauntedshell.com/2009/04/22/taking-the-plunge-jaunty/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 04:50:15 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Homeless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/taking-the-plunge-jaunty/</guid>
		<description><![CDATA[Around 4am this morning, I finally decided to take the plunge and upgrade my Ubuntu installation to Jaunty.(Yes, I know the release date is tomorrow but I just can&#8217;t wait anymore). The simplest way to go about that is to hit Alt-F2 and then run:
update-manager -d
That will add the necessary repositories and perform the upgrade. [...]]]></description>
			<content:encoded><![CDATA[<p>Around 4am this morning, I finally decided to take the plunge and upgrade my Ubuntu installation to Jaunty.(Yes, I know the release date is tomorrow but I just can&#8217;t wait anymore). The simplest way to go about that is to hit Alt-F2 and then run:<br />
<code>update-manager -d</code><br />
That will add the necessary repositories and perform the upgrade. I&#8217;m still downloading packages so check back in a few hours for updates.</p>
<p>Update: About a 2/3rds of the way through downloading packages. I hate Ghana Telecom. With a passion.</p>
<p>Update: Finally done! The upgrade process itself went through without a hitch. However, I had a problem with the driver for my Nvidia card not being detected. That was fixed in a jiffy using <a href="http://ubuntuforums.org/showthread.php?t=1036788">this guide</a>. So now, I&#8217;m rocking the Jaunty release candidate. The only noticeable difference, for me so far, are the <a href="http://www.markshuttleworth.com/archives/253">notifications</a>. Anyways, let me play with it a little and see what more I can find.</p>
<p>I can&#8217;t wait for the final release so I can full upgrade.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/04/22/taking-the-plunge-jaunty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Quest for the Ultimate Desktop</title>
		<link>http://hauntedshell.com/2009/02/24/the-quest-for-the-ultimate-desktop-3/</link>
		<comments>http://hauntedshell.com/2009/02/24/the-quest-for-the-ultimate-desktop-3/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 21:08:17 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Pimp my PC]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/the-quest-for-the-ultimate-desktop-3/</guid>
		<description><![CDATA[I&#8217;m on a quest for a mythical object; an aesthetically pleasing desktop that is not too distracting and lets me keep track of my tasks. This is the result of my search so far.
[singlepic=32,320,200,,center]
Starting from the top:

I use Rocket Dock to get keep some frequently used apps handy. I&#8217;m using the built in WhiteCristal theme [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m on a quest for a mythical object; an aesthetically pleasing desktop that is not too distracting and lets me keep track of my tasks. This is the result of my search so far.</p>
<p>[singlepic=32,320,200,,center]<span id="more-109"></span></p>
<p>Starting from the top:</p>
<ul>
<li>I use Rocket Dock to get keep some frequently used apps handy. I&#8217;m using the built in WhiteCristal theme with opacity set to 50%. The icons are based on the <a href="http://customize.org/icons/29927">Serenity Icon package</a>. I had to rustle up some of my own icons. My files are <a href="http://www.hauntedshell.com/files/memory/Memory_Icons.zip">here</a> with PSD template included. Just copy and paste the layer styles.</li>
<li><a href="http://www.cdartdisplay.com/index.php?categoryid=13">CD Art Display</a> (formerly Winamp CD Case) is a free desktop program that shows the current song cover in a skinnable display. It has support for AlbumPlayer, Helium Music Manager, iTunes, Winamp, Windows Media Player, MediaMonkey and partially supports qmp, MP3Toys, musikCube and foobar2000 (Winamp API Emulator plugin). The skin I&#8217;m using is something I whipped up with some inspiration from the <a href="http://www.flickr.com/photos/33771027@N08/3269107332/in/pool-87689304@N00">Heaven o.o desktop</a> and the <a href="http://nevezen.deviantart.com/art/Pure-Adium-CD-Art-Display-89103545">Pure Adium skin</a>. You can get that <a href="http://www.hauntedshell.com/files/memory/CAD_Skin">here</a></li>
<li>The clock, calendar and todo list are all done using <a href="http://www.ipi.fi/%7Erainy/legacy.html">Rainmeter</a>. The todo list uses a font called <a href="http://www.dafont.com/hand-of-sean.font">Hand of Sean</a>. Very nice. The stacks on the left are done using a combination of Rainmeter and <a href="http://www.chrisnsoft.com/standalonestack/">StandAlone Stacks</a>. My skin files are <a href="http://www.hauntedshell.com/files/memory/Rainmeter_Skin">here</a></li>
<li>I&#8217;m using the <a href="http://giannisgx89.deviantart.com/art/Windows-7-Style-For-Vista-102269037">Windows 7 style by giannisgx89</a> and <a href="http://www.tordex.com/startkiller/">StartKiller</a> to hide my start button. You might have to patch your system to allow you to use custom themes, though. I used <a href="http://www.codegazer.com/vistaglazz/">VistaGlazz</a> for that; make sure you read the instructions and are clear about what steps to take!</li>
<li>Last but not least, is <a href="http://www.launchy.net">Launchy</a>; very useful, especially for a keyboard junkie like me.</li>
<li>Wallpaper from <a href="http://customize.org/wallpapers/62001">here</a></li>
</ul>
<p>That&#8217;s it for this episode. My quest to find the Ultimate desktop continues next week on Linux. Also cominig soon: Shortcut Sorcery with AutoHotKey.</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/02/24/the-quest-for-the-ultimate-desktop-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring Default Metacity button layout</title>
		<link>http://hauntedshell.com/2009/02/23/restoring-default-metacity-button-layout/</link>
		<comments>http://hauntedshell.com/2009/02/23/restoring-default-metacity-button-layout/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 10:59:02 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Homeless]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/uncategorized/restoring-default-metacity-button-layout/</guid>
		<description><![CDATA[I wanted to try out the GlassyBleu theme that gets bundled with HP&#8217;s version of Ubuntu(MIE) for netbooks. However, after applying the theme, I noticed something was off:
[singlepic=29,320,240,,center]
I had been using the Mac4Lin theme previously and as you have probably noticed, OSX&#8217;s window decoration layout is a bit unique. To restore the settings back to [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to try out the GlassyBleu theme that gets bundled with HP&#8217;s version of Ubuntu(MIE) for netbooks. However, after applying the theme, I noticed something was off:<br />
[singlepic=29,320,240,,center]<br />
I had been using the Mac4Lin theme previously and as you have probably noticed, OSX&#8217;s window decoration layout is a bit unique. To restore the settings back to normal, we need to fire up Gnome Configuration Editor, gconf-editor:<br />
<code>Alt-F2 &gt; gconf-editor &gt; Enter </code><br />
Now waltz over to the /apps/metacity/general and look for the button_layout key. You need to make sure it&#8217;s value is &#8220;menu:minimize,maximize,close&#8221;. Right click on it and select Edit Key.<br />
[singlepic=30,320,240,,center]<br />
 That&#8217;s it. Your settings should be back to normal.<br />
[singlepic=31,320,240,,center]</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2009/02/23/restoring-default-metacity-button-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttd: Put your webserver on a diet</title>
		<link>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/</link>
		<comments>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 19:19:13 +0000</pubDate>
		<dc:creator>Kwame</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://www.hauntedshell.com/?p=88</guid>
		<description><![CDATA[When you&#8217;re working with limited system resources, every bit that can be freed up counts. And if you have do your web development on machine with only 384mb of RAM, you start to be become a bit, um, mercenary about your resources. Running an Apache+PHP+MySQL stack alongside a GNOME desktop (xfce or fluxbox would be [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re working with limited system resources, every bit that can be freed up counts. And if you have do your web development on machine with only 384mb of RAM, you start to be become a bit, um, mercenary about your resources. Running an Apache+PHP+MySQL stack alongside a GNOME desktop (xfce or fluxbox would be better but we all like our little luxuries) , Firefox and a text editor is not my idea of an efficient workspace. When you take the fact that I&#8217;ll be working on a wordpress install with about 19k entries, you start getting a sour taste in your mouth.<span id="more-88"></span></p>
<p>That&#8217;s where <a title="Lighttpd" href="http://www.lighttpd.net/">Lighttpd</a> comes in. It&#8217;s ,according to its site,</p>
<blockquote><p>�designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems&#8221;</p></blockquote>
<p>Anyways, what we&#8217;re interested in is the small memory footprint and the effective management of the cpu-load part.</p>
<p><strong>Installation</strong></p>
<p>We need to get and install lighttpd, PHP and MySQL:</p>
<p>Guides available from:<br />
<a title="Lighttpd Installation Instructions" href="http://trac.lighttpd.net/trac/wiki/TutorialInstallation">Instructions from Lighttpd Trac</a><br />
<a title="Lighttpd Installation Instructions" href="http://www.cyberciti.biz/tips/installing-and-configuring-lighttpd-webserver-howto.html">Lighttpd installation instructions from *Nix Craft</a><br />
<a title="Lighttpd Installation Instructions" href="http://joshdick.net/index.php?section=article&amp;name=lighttpd">Lighttpd+PHP+Perl+MySQL installation guide for Windows users</a><br />
<a title="Lighttpd Installation Instructions" href="http://ubuntuforums.org/showthread.php?t=643976">Lighttpd+PHP+MySQL Installation guide for Ubuntu</a><br />
A few notes:</p>
<ul>
<li>The settings for fastcgi suggested on the Lighttpd wiki will load a large number of php-cgi process that you probably will not be using. I&#8217;ll probably suggest you set
<pre>"PHP_FCGI_CHILDREN" =&gt; "2"</pre>
<p>instead of</p>
<pre>"PHP_FCGI_CHILDREN" =&gt; "16"</pre>
<p>You can make adjustments later if you feel the need.</li>
<li>You need to modify the default my.cnf to make things a bit more effcient. You can follow <a title="Low End Box - Reduce MySQl memory usage" href="http://http://www.lowendbox.com/blog/reducing-mysql-memory-usage-for-low-end-boxes/">this guide</a> to get you started.</li>
</ul>
<p>Does it help to use lighttpd instead of apache? Yeah, it does. I&#8217;ve been using it for the last couple of weeks and it&#8217;s been able to handle my requirements without problem. My final opinion? Well, it is not as full featured as apache but if you have a limited memory budget or are just looking for a lean mean web server, you really should take a good look at lighttpd. Now if you don&#8217;t mind, some of us have real work to do and can&#8217;t spend all day reading other people&#8217;s blogs <img src='http://hauntedshell.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://hauntedshell.com/2008/10/13/lighttd-put-your-webserver-on-a-diet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
