<?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>Patrick O'Doherty &#187; net</title>
	<atom:link href="http://patrickodoherty.com/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrickodoherty.com</link>
	<description>Ramblings on anything and everything</description>
	<lastBuildDate>Sat, 10 Oct 2009 14:37:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New host &#8211; Slicehost!</title>
		<link>http://patrickodoherty.com/2009/08/new-host-slicehost/</link>
		<comments>http://patrickodoherty.com/2009/08/new-host-slicehost/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 11:52:34 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[net]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[slicehost]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://patrickodoherty.com/2009/08/new-host-slicehost/</guid>
		<description><![CDATA[I recently was running into problems with my old VPS provider ConnectSwitch with things like regular downtime. I wasn&#8217;t really bothered to go chasing after them every time so I decided I&#8217;d look elsewhere for hosting.

I&#8217;d only ever heard good things about SliceHost before so I decided for many reasons on top of their good [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was running into problems with my old VPS provider ConnectSwitch with things like regular downtime. I wasn&#8217;t really bothered to go chasing after them every time so I decided I&#8217;d look elsewhere for hosting.</p>

<p>I&#8217;d only ever heard good things about <a href="http://slicehost.com">SliceHost</a> before so I decided for many reasons on top of their good reputation to give them a try.</p>

<p>So far they&#8217;ve been great. I&#8217;ve had to talk to support for some little things so far and the response times have been incredibly good. Email&#8217;s are replied to almost instantly if you don&#8217;t want to try their numerous other support methods like IRC or their own chat service.</p>

<p>On top of all that they&#8217;re reasonably priced especially with the Dollar to Euro conversation rates these days.</p>

<p>Long story short, if you need a new host give them a try. It&#8217;ll be worth your while</p>
]]></content:encoded>
			<wfw:commentRss>http://patrickodoherty.com/2009/08/new-host-slicehost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From Apache to NGINX</title>
		<link>http://patrickodoherty.com/2009/07/from-apache-to-nginx/</link>
		<comments>http://patrickodoherty.com/2009/07/from-apache-to-nginx/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:20:59 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[net]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[stability]]></category>

		<guid isPermaLink="false">http://patrickodoherty.com/2009/07/from-apache-to-nginx/</guid>
		<description><![CDATA[Recently I decided that I would try to replace my Apache installation with one of it&#8217;s competitors to see what could be gained from a change. While I&#8217;d heard good things (and bad) about Lighttpd (lighty) I decided it would be interesting to go with the underdog nginx.org

nginx.org was originally developed to cater for the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I decided that I would try to replace my Apache installation with one of it&#8217;s competitors to see what could be gained from a change. While I&#8217;d heard good things <strong>(and bad)</strong> about Lighttpd (lighty) I decided it would be interesting to go with the underdog <a href="http://nginx.org" title="NGINX">nginx.org</a></p>

<p><a href="http://nginx.org" title="NGINX">nginx.org</a> was originally developed to cater for the needs of Rambler, a Russian search engine. It has quickly gained numbers though, and recent surveys put it as fifth most used web server on the internet today. It has many nice features, but above all <strong>has a reputation for stability</strong>, something I can&#8217;t say Lighttpd has in quantities.</p>

<p><span id="more-94"></span></p>

<h2>Installation</h2>

<p>As usual I installed nginx through apt and started to configure it to my needs until I noticed many of the things on the <a href="http://wiki.nginx.org" title="Wiki">wiki</a> weren’t working for some reason. I decided to check the version apt had installed and was surprised to find that not only was it a few revisions behind the current stable release, it was what looked to be a <strong>year or more out of date</strong>. A lot of new features had been implemented since this release so I decided to install from source instead.</p>

<p>I managed to find some great articles on <a href="http://articles.slicehost.net" title="Slicehost">Slicehost</a> about installing NGINX on Ubuntu Intrepid which even included the making of a init.d script for the install (very handy).</p>

<p>Once everything was installed I had to configure the installation for use with fastcgi for php scripts. This was the hardest part of the install as it isn&#8217;t the easiest thing to get running compared to the Apache route. Many of the articles I googled included installing lighttpd for the spawn-fcgi functionality, though fortunately this has since been forked into it&#8217;s own project at <a href="http://redmine.lighttpd.net/projects/spawn-fcgi/news" title="Spawn-FCgi">Lighttpd.net</a>.</p>

<h2>Fast-CGI PHP support</h2>

<p>I installed this along with another init.d script for Spawn-FCGI which I found over at <a href="http://blog.codefront.net/2007/06/11/nginx-php-and-a-php-fastcgi-daemon-init-script/" title="Codefront Blog">Codefront.net</a>. Once that was done it was a process of porting all my existing virtualhosts over to NGINX.</p>

<h2>Configuration</h2>

<p>I decided to use a similar system to Apache for handling my virtualhost configuration files by making a sites-available and sites-enabled directory for them and telling nginx to include all the the configuration files in sites-available. This means that putting a site online is exactly the same as with apache by making the necessary configuration file and then placing a symbolic link in the sites-enabled directory. Handy!</p>

<p>After that it was on to rewriting the mod&#95;rewrite rules for nginx, something which actually was not <em>as</em> hard as I had expected it to be. The one thing that you have to be aware of with nginx is that in each virtualhost config file if you want to have php files executed you need to include the necessary block that tells nginx to pass them off to your fast-cgi process. Not that difficult to do at all, just something I didn&#8217;t think of in my first round.</p>

<h2>Gains?</h2>

<p>So after all that what have I gained? Well for one nginx seems to use <strong>half the memory Apache did</strong> while still providing a speed increase for static content and php files. Worth it? <strong>Definitely!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://patrickodoherty.com/2009/07/from-apache-to-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>o2sms on Mac OS X</title>
		<link>http://patrickodoherty.com/2009/01/o2sms-on-mac-os-x/</link>
		<comments>http://patrickodoherty.com/2009/01/o2sms-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 21:20:07 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[net]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[free sms]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[meteor]]></category>
		<category><![CDATA[o2]]></category>
		<category><![CDATA[o2sms]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://patrickodoherty.com/2009/01/o2sms-on-mac-os-x/</guid>
		<description><![CDATA[I&#8217;m a huge fan of the o2sms, a command line application for sending free SMS messages using the websites of three of Irelands most popular mobile operators being o2, Vodafone and Meteor. All of these operators offer the functionality of sending free text messages from their own websites giving users the option to send up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a huge fan of the <a href="http://www.mackers.com/projects/o2sms/">o2sms</a>, a command line application for sending free SMS messages using the websites of three of Irelands most popular mobile operators being o2, Vodafone and Meteor. All of these operators offer the functionality of sending free text messages from their own websites giving users the option to send up to 300 free SMS messages per month, which is quite a lot considering they charge up to €0.11 per message when you use your phone.</p>

<p>The only problem I find with using these sites is that it takes quite a lot of steps to actually send a message. Open Firefox, load the website, login, navigate to the webtext page etc&#8230; This is where o2sms steps into the equation. It acts like a specialised browser that automates the actions taken by the user to send SMS messages and provides the functionality through a CLI (command line interface), reducing the process to a single terminal command.
<span id="more-60"></span>
The one problem I faced with o2sms was getting it to work on Mac OS X. While there is the option of installing with CPAN it just did not work for me and it was constantly complaining that dependencies were not being met. While the cpan install worked for me on numerous other systems it just failed to install everything on OS X, and so I was left with the task of manually installing it.</p>

<p>The fix turned out to be easier than I expected. When I ran the broken install of o2sms it gave a warning that certain modules could not be found. While I tried installing them individually with CPAN it still wouldn&#8217;t work and so I decided I&#8217;d build each one individually and install them one by one. To do this I had to get the source from <a href="http://cpan.org">CPAN</a> and build each one from the source code.</p>

<p>When all was said and done I was left with a working install, which looks something like this</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">patrick<span style="color: #000000; font-weight: bold;">@</span>Odysseus0<span style="color: #000000; font-weight: bold;">%</span> meteorsms <span style="color: #000000;">1234567890</span>                                   <span style="color: #000000; font-weight: bold;">&lt;</span> ~ <span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> recipient : +<span style="color: #000000;">353234567890</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
lorem ipsum...
.
<span style="color: #7a0874; font-weight: bold;">&#91;</span> logging <span style="color: #000000; font-weight: bold;">in</span> to 0987654321<span style="color: #000000; font-weight: bold;">@</span>meteor.ie ... <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #c20cb9; font-weight: bold;">login</span> successful <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> message sent to +<span style="color: #000000;">353234567890</span>, <span style="color: #000000;">229</span> remaining this month <span style="color: #7a0874; font-weight: bold;">&#93;</span>
patrick<span style="color: #000000; font-weight: bold;">@</span>Odysseus0<span style="color: #000000; font-weight: bold;">%</span>                                                        <span style="color: #000000; font-weight: bold;">&lt;</span> ~ <span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>


<p>Its even possible to send messages using a single command using the -m command line argument.</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">patrick<span style="color: #000000; font-weight: bold;">@</span>Odysseus0<span style="color: #000000; font-weight: bold;">%</span> meteorsms <span style="color: #000000;">1234567890</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">&quot;lorem ipsum&quot;</span>                  <span style="color: #000000; font-weight: bold;">&lt;</span> ~ <span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> recipient : +<span style="color: #000000;">353234567890</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> reusing <span style="color: #c20cb9; font-weight: bold;">last</span> <span style="color: #c20cb9; font-weight: bold;">login</span> <span style="color: #000000; font-weight: bold;">for</span> 0987654321<span style="color: #000000; font-weight: bold;">@</span>meteor.ie ... <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> message sent to +<span style="color: #000000;">353234567890</span>, <span style="color: #000000;">228</span> remaining this month <span style="color: #7a0874; font-weight: bold;">&#93;</span>
patrick<span style="color: #000000; font-weight: bold;">@</span>Odysseus0<span style="color: #000000; font-weight: bold;">%</span>                                                        <span style="color: #000000; font-weight: bold;">&lt;</span> ~ <span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>


<p>Hopefully this article will help others who have been having troubles with getting o2sms to work on their own OS X installs, or enlighten other people to the brilliance that is o2sms.</p>

<p>Enjoy,</p>

<p>Patrick</p>
]]></content:encoded>
			<wfw:commentRss>http://patrickodoherty.com/2009/01/o2sms-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBMC Project</title>
		<link>http://patrickodoherty.com/2008/08/xbmc-project/</link>
		<comments>http://patrickodoherty.com/2008/08/xbmc-project/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 10:16:08 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[net]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[xbmc]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://thelifeofpatrick.com/?p=10</guid>
		<description><![CDATA[For a long time now I&#8217;ve wanted to construct a cheap-ish media centre device for the house and I finally took the plunge a few weeks ago when I bought an original xbox for the purpose. There are a lot of ways to modify an xbox but I eventually decided on the softmod approach which [...]]]></description>
			<content:encoded><![CDATA[<p>For a long time now I&#8217;ve wanted to construct a cheap-ish media centre device for the house and I finally took the plunge a few weeks ago when I bought an original xbox for the purpose. There are a lot of ways to modify an xbox but I eventually decided on the softmod approach which meant minimal soldering on my behalf. It was also the cheaper option as I already had many of the materials lying around the house.
<span id="more-10"></span></p>

<p>The softmod approach requires the transferring of modified gamesave files to the xbox which exploited a bad coding technique that developers employed in their gamesaving mechanisms. There &#8220;legitimate&#8221; way to do this would be to buy both an xbox memory card and the commercial Action Replay kit which includes a usb adapter to read the memory card on a PC. The commercial kit can cost quite a lot so I decided that I would do it my own way and build my own cable for the xbox and use one of the many USB keys lying around the house in place of a memory card.  There&#8217;s a picture of the messy soldering job that I did to create the necessary cable at the bottom of the post.</p>

<p>Performing the softmod requires a copy of one of the following games for the xbox</p>

<ul>
    <li>007 Agent Under Fire</li>
    <li>Mech Assault</li>
    <li>Tom Clancy&#8217;s Splinter Cell</li>
</ul>

<p>Fortunately enough I was able to find a copy of Splinter Cell on ebay which only cost €6 including shipping.</p>

<p>The softmod process itself is very easy to follow and almost impossible to get wrong. In all the softmod process took around 10 minutes max after which I was left with an xbox with a copy of the XBMC software on it. XBMC coupled with the DVD remote which I have for the xbox makes it such a nice experience browsing through all the media content in the house.</p>

<p>In the end it has turned out to be a <strong>very</strong> cost effective way to get a media centre running and its only made better by the amazing XBMC software which is available for other platforms such as Windows, Mac OS X and Linux. Its great software and I highly recommend people take a look at it over at <a href="http://www.xbmc.org">XBMC.org</a>.</p>

<p>Here&#8217;s the cables I soldered together</p>

<p><a href="http://thelifeofpatrick.com/wp-content/uploads/2008/08/cable2.png"><img class="alignnone size-full wp-image-13" title="cable2" src="http://thelifeofpatrick.com/wp-content/uploads/2008/08/cable2.png" alt="messy soldering job" width="460" height="216" /></a></p>

<p>and the finished product.</p>

<p><a href="http://thelifeofpatrick.com/wp-content/uploads/2008/08/finished1.png"><img class="alignnone size-medium wp-image-12" title="finished" src="http://thelifeofpatrick.com/wp-content/uploads/2008/08/finished1.png" alt="The Finished Product" width="300" height="124" /></a><img src="file:///Users/patrick/Desktop/finished.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://patrickodoherty.com/2008/08/xbmc-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mahalo Madness</title>
		<link>http://patrickodoherty.com/2008/03/mahalo-madness/</link>
		<comments>http://patrickodoherty.com/2008/03/mahalo-madness/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 21:00:11 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[community]]></category>
		<category><![CDATA[mahalo]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[spam free]]></category>

		<guid isPermaLink="false">http://thelifeofpatrick.com/?p=3</guid>
		<description><![CDATA[Phew! what an afternoon. Jason Calacanis managed to create a huge flurry of activity using only youtstream and twitter and the results are more than impressive. Faster than anyone could think the community of people gathered around jason (the jason nation) scoured the web to create 3 fully featured pages on mahalo.com Mythtv being one of [...]]]></description>
			<content:encoded><![CDATA[<p>Phew! what an afternoon. Jason Calacanis managed to create a huge flurry of activity using only youtstream and twitter and the results are more than impressive. Faster than anyone could think the community of people gathered around jason (the jason nation) scoured the web to create 3 fully featured pages on mahalo.com <a href="http://mahalo.com/mythtv">Mythtv</a> being one of them. The man is pure genius. Never before have I seen such productivity appear so fast. I can only hope that he continues cause it was good fun.</p>

<p>If your interested, take a look at mahalo.com and see if you too can help us create a spam free internet <code> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://patrickodoherty.com/2008/03/mahalo-madness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
