<?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>Goonanism &#187; ICT</title>
	<atom:link href="http://goonanism.com/blog/category/ict/feed/" rel="self" type="application/rss+xml" />
	<link>http://goonanism.com/blog</link>
	<description>A Sporadic mix of the personal, political and programming</description>
	<lastBuildDate>Tue, 27 Jul 2010 02:04:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using PEAR to send Email via SMTP</title>
		<link>http://goonanism.com/blog/2010/06/08/using-pear-to-send-email-via-smtp/</link>
		<comments>http://goonanism.com/blog/2010/06/08/using-pear-to-send-email-via-smtp/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 06:40:52 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1090</guid>
		<description><![CDATA[The php mail() function is great. Super easy to use and no setup required. But it would seem some spam filters are often suspicious of email sent this way and rightly or wrongly I just don&#8217;t feel it is reliable enough. I&#8217;m currently redesigning the Goonanism home page &#8211; it&#8217;s starting to look a bit [...]]]></description>
			<content:encoded><![CDATA[<p>The php mail() function is great. Super easy to use and no setup required. But it would seem some spam filters are often suspicious of email sent this way and rightly or wrongly I just don&#8217;t feel it is reliable enough.</p>
<p>I&#8217;m currently redesigning the <a href="http://goonanism.com">Goonanism</a> home page &#8211; it&#8217;s starting to look a bit stale (launch TBA) and I thought it was important that the contact page on the new site was as reliable as possible.</p>
<p>Knowing that my web hosts supported PEAR I decided to use PEAR&#8217;s Mail function instead. So I wrote the following script:<br />
<code>< ?php<br />
&nbsp;&nbsp;&nbsp;&nbsp;$name = $_POST['name'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;$email = $_POST['email'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;$message = $_POST['message'];<br />
&nbsp;&nbsp;&nbsp;&nbsp;require_once("Mail.php");<br />
&nbsp;&nbsp;&nbsp;&nbsp;$from = 'Website Enquiry <hammy@goonanism.com>';<br />
&nbsp;&nbsp;&nbsp;&nbsp;$to = "Hammy Goonan <hammy @goonanism.com>";<br />
&nbsp;&nbsp;&nbsp;&nbsp;$subject = "Website enquiry";<br />
&nbsp;&nbsp;&nbsp;&nbsp;$body = $message;<br />
&nbsp;&nbsp;&nbsp;&nbsp;$host = "hostdetails";<br />
&nbsp;&nbsp;&nbsp;&nbsp;$username = "username";<br />
&nbsp;&nbsp;&nbsp;&nbsp;$password = "password";<br />
&nbsp;&nbsp;&nbsp;&nbsp;$headers = array ('From' => $from,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'To' => $to,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Subject' => $subject<br />
&nbsp;&nbsp;&nbsp;&nbsp;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;$smtp = Mail::factory('smtp',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array ('host' => $host,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'auth' => true,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'username' => $username,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'password' => $password,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'port' => '25'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;$mail = $smtp->send($to, $headers, $body);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (PEAR::isError($mail)) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo($mail->getMessage());<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo("Message successfully sent!");<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
?></hammy></code></p>
<p>This gave me an error saying:</p>
<p><code>Class 'Net_SMTP' not found in /usr/local/php52/pear/Mail/smtp.php on line 210</code></p>
<p>So, using siteground as my host, I followed <a href="http://www.siteground.com/tutorials/php-mysql/pear_modules.htm">this tutorial</a>.</p>
<p>Having uploaded the Net_STMP files and setting up my php.ini files I then got this error:</p>
<p><code>Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/goonanis/pear') in /home/goonanis/pear/Net_SMTP/SMTP.php</code></p>
<p>So it was clear to me that because of the new php.ini file, I would have to upload all the dependant packages to get this working.</p>
<p>Having uploaded various packages I was still getting an error saying:</p>
<p><code>Call to undefined method PEAR_Error::send()</code></p>
<p>Reading through various forums I realised that Mail::factory() will return a PEAR_Error object upon failure. So $smtp became a PEAR_Error so when I tried to call PEAR_Error::send() it wasn&#8217;t there, hence the error.</p>
<p>When I print_r() $smtp the PEAR_Error Object was actually throwing an error saying:</p>
<p><code>Unable to find class for driver smtp</code></p>
<p>A much more useful error message.</p>
<p>I only mention all of this because I had a lot of trouble sorting through forums to find this information out.</p>
<p>Anyway, the long and the short of it was that I needed to have the following packages and file structure for the PEAR Mail function to work:</p>
<p><code>pear<br />
&nbsp;&nbsp;&nbsp;&nbsp;/Mail<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/RFC822.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/mail.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/mock.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/null.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/sendmail.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/smtp.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/smtpmx.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;/Net<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/SMTP.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/Socket.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;/Mail.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;/PEAR.php<br />
&nbsp;&nbsp;&nbsp;&nbsp;/PEAR5.php<br />
</code><br />
Which you can find in the following PEAR packages:</p>
<ul>
<li>Pear</li>
<li>Mail</li>
<li>Net_Socket</li>
<li>Net_STMP</li>
</ul>
<p>I hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/06/08/using-pear-to-send-email-via-smtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Education, the Internet and the Filter</title>
		<link>http://goonanism.com/blog/2010/05/12/education-the-internet-and-the-filter/</link>
		<comments>http://goonanism.com/blog/2010/05/12/education-the-internet-and-the-filter/#comments</comments>
		<pubDate>Wed, 12 May 2010 06:52:51 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1065</guid>
		<description><![CDATA[So Conroy&#8217;s proposed ISP level filter of the Internet just won&#8217;t work for a range of technical reasons. Whether or not it is effective in blocking websites, it will not stop one person getting access to child pornography so is therefore an awful waste of money. And that&#8217;s just the practical problem with it. The [...]]]></description>
			<content:encoded><![CDATA[<p>So Conroy&#8217;s proposed ISP level filter of the Internet just won&#8217;t work for a range of technical reasons. Whether or not it is effective in blocking websites, it will not stop one person getting access to child pornography so is therefore an awful waste of money. And that&#8217;s just the practical problem with it. The principled problem with it is that, inevitability, the filter&#8217;s scope will be broadened at some stage one way or another as history has shown us for just about every other breach of a population&#8217;s civil liberties. Civil Liberties are called that because they protect you from government so it is always dangerous to compromise.</p>
<p>But there is no doubt that the proliferation and normalisation of pornography is directly linked to it being available through the Internet. I think pornography is damaging to both women and men. It is even more damaging when it becomes normalised and is no longer challenged the way it should be.</p>
<p>Many opponents to the filter are saying that this money would be more effectively spent on educational initiatives. Teach &#8216;the kids&#8217; how to avoid this sort of material. Increasingly I think that idea is also laughable. Young people are intuitively better at using computers and the internet than older people because they have always had it and just &#8216;get&#8217; it.</p>
<p>What needs to be taught is respect for women and respect for yourself. Young people need to understand that pornography is not healthy and need to be given the tools to negotiate the mountains of contradictory and confusing emotions and responses they are experiencing. They need to be given guidance on how to deal with these feelings and thoughts and how to channel them in a healthy, constructive way which includes an intimate awareness of the role gender plays.</p>
<p>Sure, the Internet has made pornography freely and easily available. But it&#8217;s not the Internet&#8217;s fault, the internet is inherently neutral. It&#8217;s the patriarchy that is to blame and needs to be challenged and no amount of filtering the internet will do that.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/05/12/education-the-internet-and-the-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fuck Censorship!</title>
		<link>http://goonanism.com/blog/2010/05/12/fuck-censorship/</link>
		<comments>http://goonanism.com/blog/2010/05/12/fuck-censorship/#comments</comments>
		<pubDate>Wed, 12 May 2010 03:51:55 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1061</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://goonanism.com/blog/wp-content/uploads/2010/05/rally.png"><img src="http://goonanism.com/blog/wp-content/uploads/2010/05/rally-517x1024.png" alt="" title="rally" width="517" height="1024" class="alignnone size-large wp-image-1062" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/05/12/fuck-censorship/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The filter is ridiculous!!</title>
		<link>http://goonanism.com/blog/2010/05/11/the-filter-is-ridiculous/</link>
		<comments>http://goonanism.com/blog/2010/05/11/the-filter-is-ridiculous/#comments</comments>
		<pubDate>Tue, 11 May 2010 00:00:34 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1055</guid>
		<description><![CDATA[I thought this was worth reproducing (from the wonderful @jimboot):]]></description>
			<content:encoded><![CDATA[<p>I thought this was worth reproducing (from the wonderful <a href="http://twitter.com/jimboot">@jimboot</a>):</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/n3PEL-gqbTI&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/n3PEL-gqbTI&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/05/11/the-filter-is-ridiculous/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Embedding a MP3 in a Drupal Site</title>
		<link>http://goonanism.com/blog/2010/04/30/embedding-a-mp3-in-a-drupal-site/</link>
		<comments>http://goonanism.com/blog/2010/04/30/embedding-a-mp3-in-a-drupal-site/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 06:56:50 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1043</guid>
		<description><![CDATA[So, after many many hours of searching the web to find a way to embed a MP3 player in a Drupal content item, I have finally found the answer. It&#8217;s much more straight forward than I thought as it doesn&#8217;t rely on Modules at all. You simply add the following text to your content item: [...]]]></description>
			<content:encoded><![CDATA[<p>So, after many many hours of searching the web to find a way to embed a MP3 player in a Drupal content item, I have finally found the answer. It&#8217;s much more straight forward than I thought as it doesn&#8217;t rely on Modules at all.</p>
<p>You simply add the following text to your content item:</p>
<p><code>&lt;object type="application/x-shockwave-flash"&gt;<br />
&lt;param name="movie" value="/modules/audio/players/1pixelout.swf" /&gt;<br />
&lt;param name="wmode" value="transparent" /&gt;<br />
&lt;param name="menu" value="false" /&gt;<br />
&lt;param name="quality" value="high" /&gt;<br />
&lt;embed src="/modules/audio/players/1pixelout.swf" flashvars="soundFile=<b>http://yourfile.mp3</b>" width="290" height="24" /&gt;<br />
&lt;/embed&gt;&lt;/object&gt;</code></p>
<p>You will need to have your content format set to &#8220;Full HTML&#8221; to do this (or &#8220;PHP code&#8221; I suppose).</p>
<p>I actually found the answer <a href="http://drupal.org/node/160867">here</a> and thought it was worth reproducing.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/04/30/embedding-a-mp3-in-a-drupal-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>World Bank Data</title>
		<link>http://goonanism.com/blog/2010/04/22/world-bank-data/</link>
		<comments>http://goonanism.com/blog/2010/04/22/world-bank-data/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 03:22:19 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1036</guid>
		<description><![CDATA[The World Bank has decided to make its development data freely and publicly available. You can see it all at http://data.worldbank.org/. The World Bank has always been public enemy number one for me (maybe number 2, the IMF is in hot contention). However, it must be applauded for this initiative. The data is provided in [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://web.worldbank.org/WBSITE/EXTERNAL/NEWS/0,,contentMDK:22547256~pagePK:64257043~piPK:437376~theSitePK:4607,00.html">World Bank</a> has decided to make its development data freely and publicly available.</p>
<p>You can see it all at <a href="http://data.worldbank.org/">http://data.worldbank.org/</a>.</p>
<p>The World Bank has always been public enemy number one for me (maybe number 2, the IMF is in hot contention). However, it must be applauded for this initiative.</p>
<p>The data is provided in a range of formats and even has an API so that developers can easily interact with it.</p>
<p>The World Bank have pointed to the work of <a href="http://www.rhok.org/">Random Hack of Kindness</a> as their inspiration for the initative.</p>
<p>Now all I need is a project that utilises this data. Any suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/04/22/world-bank-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAMP installation on Ubuntu with Mod_Rewrite</title>
		<link>http://goonanism.com/blog/2010/02/10/lamp-installation-on-ubuntu-with-mod_rewrite/</link>
		<comments>http://goonanism.com/blog/2010/02/10/lamp-installation-on-ubuntu-with-mod_rewrite/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 07:04:11 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1017</guid>
		<description><![CDATA[So there is plenty of information out there about installing a standard LAMP server out there. I&#8217;ve had a LAMP server on my Ubuntu laptop for quite some time. But i ran into troubles when I wanted to have a CakePHP installation on my local machine because I couldn&#8217;t get Apache&#8217;s mod_rewrite to work. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>So there is plenty of information out there about installing a standard LAMP server out there.</p>
<p>I&#8217;ve had a LAMP server on my Ubuntu laptop for quite some time. But i ran into troubles when I wanted to have a CakePHP installation on my local machine because I couldn&#8217;t get Apache&#8217;s mod_rewrite to work.</p>
<p>I&#8217;ve finally figured it out, and, given the difficulty I had finding the information I thought I should probably share my experience with the world.</p>
<p>So, firstly, installing LAMP. In case you&#8217;d missed it, LAMP stands for Linux, Apache, MySQL, PHP.</p>
<p>You&#8217;ve already got the Linux part, so I just went through the Synaptic Package Manager and installed the following repositories (you can find a much more detailed description <a href="https://help.ubuntu.com/community/ApacheMySQLPHP">here</a> and <a href="http://www.mysql-apache-php.com/">here</a>):</p>
<ul>
<li>apache2</li>
<li>php5</li>
<li>mysql-server</li>
<li>php5-mysql (may be installed by default with the mysql-server package &#8211; sorry, can&#8217;t remember)</li>
<li>phpmyadmin</li>
<li>webmin (a very helpful program</li>
</ul>
<p>Read what others have written on this topic as well though.</p>
<p>Next, in order to give yourself permissions to the /var/www/ directory, you need to run the following command in your terminal:<br />
<code>sudo chown -R $USER:$USER /var/www/</code></p>
<p>It&#8217;s not a secure thing to do (I don&#8217;t think) but it will make your life much easier (no permissions to worry about, no need to &#8220;sudo nautilus&#8221;).</p>
<p>Finally, getting mod_rewrite to work.</p>
<p>First, initiate it with the following command:<br />
<code>a2enmod rewrite</code></p>
<p>Then edit the file /etc/apache2/sites-enabled/000-default. You can do this with the following command:<br />
<code>nano /etc/apache2/sites-enabled/000-default</code></p>
<p>Then change the &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221; in the &#8220;<directory /var/www/>&#8221; section.</p>
<p>In other words, when you run the nano command above you see the following in amongst some other stuff:<br />
<code><directory /var/www/><br />
                Options Indexes FollowSymLinks MultiViews<br />
                AllowOverride none<br />
                Order allow,deny<br />
                allow from all</p>
<p></code></p>
<p>Change the AllowOverride to &#8216;All&#8217;.</p>
<p>Then restart your server with the following command:<br />
<code>sudo /etc/init.d/apache2 restart</code></p>
<p>And you&#8217;re done!</p>
<p><strong>Disclaimer:</strong> I&#8217;m a terrible systems admin and make no guarantee for the above. However, it did work for me which makes me happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/02/10/lamp-installation-on-ubuntu-with-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I choose Linux (part 382)</title>
		<link>http://goonanism.com/blog/2010/02/09/why-i-choose-linux-part-382/</link>
		<comments>http://goonanism.com/blog/2010/02/09/why-i-choose-linux-part-382/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 22:40:54 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1015</guid>
		<description><![CDATA[My laptop is now reaching old age. It&#8217;s over 3 years old and it&#8217;s starting to get a bit clunky. Time for a new one this year sometime. I want a 13&#8243; laptop as portability is an issue. So I started to look at the usual laptop vendors, Toshiba (which I currently have) and HP* [...]]]></description>
			<content:encoded><![CDATA[<p>My laptop is now reaching old age. It&#8217;s over 3 years old and it&#8217;s starting to get a bit clunky. Time for a new one this year sometime.</p>
<p>I want a 13&#8243; laptop as portability is an issue. So I started to look at the usual laptop vendors, Toshiba (which I currently have) and HP* were the two I checked out. As well as Mac.</p>
<p>You can get some reasonable 15&#8243; laptops for around $1,200 which would suit my needs&#8230; if they were 13&#8243;. But as soon as you go with the smaller model it adds at least $1,000 to the price (often $2,000) and the processor significantly deteriorates in speed (almost halves in some cases).</p>
<p>Which leaves me with the MacBook. 13&#8243; at around $1,200 with an Education discount.</p>
<p>There&#8217;s no denying the quality of the Mac hardware. The screens are nicer, they have the multi-touch touch pad, they are thin etc. But I just don&#8217;t was to run the MacOS. I prefer Linux.</p>
<p>There are a range of reasons but the primary one is that Mac locks you into Mac stuff, Linux just doesn&#8217;t. I hate iTunes and I hate iPhoto. If you want to take full advantage of the MacOS then you need to use these two programs and once you&#8217;ve done that you&#8217;re locked into them. You can&#8217;t reclaim your music (without significant hassle) once it&#8217;s in the iTunes library. Anything else just feels like a perpetual workaround.</p>
<p>I&#8217;ve got a huge personal commitment to Open Source Software and data longevity is a big reason for this.</p>
<p>So i&#8217;m going to buy a MacBook in the next 12 months, and I&#8217;m going to install Linux on it so that all my data is free forever, not locked into am over-hyped OS that could well go out of fashion one day and leave you with a bunch of music you&#8217;ll never be able to listen to again.</p>
<p>(Cue Mac Fanboys who are the second biggest reason I hate Macs. Actually, I don&#8217;t hate Macs (I use one at work) I just prefer Linux.)</p>
<p>*If you know of a laptop brand that matches a 13&#8243; MacBook please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/02/09/why-i-choose-linux-part-382/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Why my site is blacked out</title>
		<link>http://goonanism.com/blog/2010/01/25/why-my-site-is-blacked-out/</link>
		<comments>http://goonanism.com/blog/2010/01/25/why-my-site-is-blacked-out/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 22:27:22 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1008</guid>
		<description><![CDATA[As you may have noticed, the first time you visit my site this week you will get a blanked out page with a message about the proposed internet filter. It&#8217;s just a little protest and hopefully an awareness raising campaign. It&#8217;s run by the Electronic Frontiers Foundation who I recommend throwing a few dollars to. [...]]]></description>
			<content:encoded><![CDATA[<p>As you may have noticed, the first time you visit my site this week you will get a blanked out page with a message about the proposed internet filter.</p>
<p>It&#8217;s just a little protest and hopefully an awareness raising campaign. It&#8217;s run by the <a href="http://www.efa.org.au/">Electronic Frontiers Foundation</a> who I recommend throwing a few dollars to.</p>
<p>We&#8217;ll resume normal service next week.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/01/25/why-my-site-is-blacked-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP and JQuery</title>
		<link>http://goonanism.com/blog/2010/01/11/cakephp-and-jquery/</link>
		<comments>http://goonanism.com/blog/2010/01/11/cakephp-and-jquery/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 02:47:34 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=998</guid>
		<description><![CDATA[A few months back I had the good fortune to come across JQuery. It change my life and made AJAX a breeze. In fact I simply don&#8217;t use straight Javascript any more, I only use JQuery. About a month or two ago I also discovered the CakePHP development framework. Similarly, it seems to have changed [...]]]></description>
			<content:encoded><![CDATA[<p>A few months back I had the good fortune to come across <a href="http://jquery.com/">JQuery</a>. It change my life and made AJAX a breeze. In fact I simply don&#8217;t use straight Javascript any more, I only use JQuery.</p>
<p>About a month or two ago I also discovered the <a href="http://cakephp.org/">CakePHP</a> development framework. Similarly, it seems to have changed my life (watch this space for my first CakePHP-based website).</p>
<p>Can you see where I&#8217;m going with this?</p>
<p>I wanted to be able to add JQuery to the CakePHP site that I am working on. It&#8217;s quite simple to do but I couldn&#8217;t really find anywhere that told me how to do it explicitly and I thought it might be worth explaining what I did here.</p>
<p>The first step is to have a functioning installation of CakePHP and a copy of JQuery.</p>
<p>You&#8217;ll need to put your JQuery file somewhere that CakePHP will be able to find it. As it turns out the best place would be <code>/app/webroot/js/</code></p>
<p>Incidentally, this is also where you should include any external Javascript files. In the first instance I usually create a file called &#8216;javascript.js&#8217; which includes all my Javascript calls.</p>
<p>So this leaves us with a directory structure that looks something like:<br />
<code>app/webroot/js/<br />
&nbsp;&nbsp;&nbsp;&nbsp;jquery.js/<br />
&nbsp;&nbsp;&nbsp;&nbsp;javascript.js/<br />
</code></p>
<p>Next, we need to include this file in the appropriate layout. If you haven&#8217;t done so already, it is most likely that this file will be called <code>default.ctp</code> and will live in <code>app/views/layouts/</code>. Now all you need to do is include the <code>$javascript::link()</code> method in your layout file.</p>
<p>In this case I&#8217;ve included the following line in my <code>head</code> tag:</p>
<p><code>< ?php echo $javascript->link(array('jquery.js', 'javascript.js')); ?></code></p>
<p>And you&#8217;re done (of course it wouldn&#8217;t hurt you to go and read about the CakePHP Javascript Helper <a href="http://book.cakephp.org/view/207/Javascript">here</a>). You can now proceed as usual and with the help of the HTML helper things might get easier yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/01/11/cakephp-and-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
