<?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</title>
	<atom:link href="http://goonanism.com/blog/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>Thu, 02 Sep 2010 02:26:22 +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>CakePHP and the SSL connection</title>
		<link>http://goonanism.com/blog/2010/09/02/cakephp-and-the-ssl-connection/</link>
		<comments>http://goonanism.com/blog/2010/09/02/cakephp-and-the-ssl-connection/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 02:26:22 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[ICT]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1126</guid>
		<description><![CDATA[So, I&#8217;m currently doing a job (well Spire Software is but more on that later) where I&#8217;m building a registration form and payment gateway. It has been a while since I&#8217;d done any payment gateways and I was looking forward to using the CakePHP frame work and it&#8217;s Security Component. But I&#8217;ve had a bit [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m currently doing a job (well <a href="http://spiresoftware.com.au/">Spire Software</a> is but more on that later) where I&#8217;m building a registration form and payment gateway.</p>
<p>It has been a while since I&#8217;d done any payment gateways and I was looking forward to using the <a href="http://cakephp.org">CakePHP</a> frame work and it&#8217;s <a href="http://book.cakephp.org/view/175/Security-Component">Security Component</a>. But I&#8217;ve had a bit of a * forehead slap* moment which I thought might be worth sharing.</p>
<p>So basically the Security component protects against a range of of things like Cross Site Scripting (XSS &#8211; where someone tries to submit data to your site from another) and SQL injection. Being a payment gateway, I also wanted to use SSL.</p>
<p>So I found the <a href="http://techno-geeks.org/2009/03/using-the-security-component-in-cakephp-for-ssl/">Techno Geeks post</a> which contains a very clever way of ensuring that all requests are forced to use SSL.</p>
<p>So I set up my beforeFilter method like this:</p>
<p><code>function beforeFilter() {<br />
			$this->Auth->allow('*');<br />
			$this->Security->blackHoleCallback = 'forceSSL';<br />
			$this->Security->requireSecure('confirmation', 'processing');<br />
		}<br />
		function forceSSL() {<br />
			$this->redirect('https://' . env('SERVER_NAME') . $this->here);<br />
		}</code></p>
<p>When I implemented it for the two pages that I wanted to use the Security Component I was getting my page, only with several undefined indexes.</p>
<p>Fundamentally, what I wasn&#8217;t understanding is what a &#8216;black hole&#8217; was. Essentially what is meant by &#8216;Black Holed&#8217; is the site kills the request and gives a 404 Error Page (or Page Not Found). This prevents any nastiness happening and gets rid of any annoying bots out there who just think the page doesn&#8217;t exist. So unless you meet the requirements of the Security Component (ie you&#8217;re not using SSL) you get black holed. </p>
<p>For the Security component to &#8216;ok&#8217; a form submission it needs to meet a range of criteria, not least of which is that the request uses a Secure Server Licences (SSL &#8211; in other words the web address needs to start with http<strong>s</strong>).</p>
<p>So what was happening is the form was being submitted from a page that was not using SSL and therefore did not meet the security requirements. Instead of just showing a 404 error as the Security Component would usually, it was calling the forceSSL() method which was redirecting me to the same page, only with a https URL. Instead of submitting a form to that page, I was now being redirected to it instead and all the form data that was submitted was being lost.</p>
<p>So to fix it I just changed the parameters I passed to the &#8216;requireSecure&#8217; methor to an &#8216;*&#8217; (so that all pages required it). So that line is changed to:</p>
<p><code>$this->Security->requireSecure('*');</code></p>
<p>By doing so, I ensure that the form is submitted from a page with SSL enabled (as it automatically redirects me) and the security component is happy, the redirection doesn&#8217;t happen and therefore our data is intact.</p>
<p>And we&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/09/02/cakephp-and-the-ssl-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Compulsory Voting</title>
		<link>http://goonanism.com/blog/2010/08/12/on-compulsory-voting/</link>
		<comments>http://goonanism.com/blog/2010/08/12/on-compulsory-voting/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 00:29:51 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1122</guid>
		<description><![CDATA[It doesn&#8217;t happen very often, but I think I have changed my mind. It would appear this election has broken me. I used to be in favour of compulsory voting. Surely a democracy is enhanced when the government is elected by the entire voting population? Well maybe, but isn&#8217;t it more democratic if people are [...]]]></description>
			<content:encoded><![CDATA[<p>It doesn&#8217;t happen very often, but I think I have changed my mind. It would appear this election has broken me.</p>
<p>I used to be in favour of compulsory voting. Surely a democracy is enhanced when the government is elected by the entire voting population? Well maybe, but isn&#8217;t it more democratic if people are allowed to exercise their right to abstain from voting?</p>
<p>I guess, in the past, I&#8217;ve supported compulsory voting because, in practice, I thought our democracy was enhanced because the government has a mandate to lead from the entire population. This overrides the democratic trade off where citizens are able to abstain. But the effect of compulsory voting seems to have become greater disenfranchisement of the voting population.</p>
<p>Governments are decided by the handful of electorates that would, presumably, have low voter turnout if voting was not compulsory. They are the swinging voters in marginal seats that are primarily concerned with their lot &#8211; their house, their family and their mortgage. They are the product of 50 years of atomisation and suburbanisation in Australia. So the two major parties put the majority of their energy into wooing these voters at the expense of any real vision, safe in the knowledge that their core voters will always vote for them because they have nowhere else to go &#8211; it&#8217;s a two party system after all*.</p>
<p>Doing away with compulsory voting would, I believe, bust the whole paradox wide open. If you no longer have to worry about wooing those voters and instead have to appeal to your base in the hope that they will go out and vote, you can start to genuinely develop some visionary, if more difficult, policies.</p>
<p>I can&#8217;t imagine us moving away from compulsory voting anytime soon, but I&#8217;m not in favour of non-compulsory voting.</p>
<p>*There&#8217;s not doubt that the Greens are starting to change this for the left of the ALP but they are a very long way off becoming a &#8216;major&#8217; party.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/08/12/on-compulsory-voting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ode to the Treadmill</title>
		<link>http://goonanism.com/blog/2010/08/09/ode-to-the-treadmill/</link>
		<comments>http://goonanism.com/blog/2010/08/09/ode-to-the-treadmill/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 04:31:06 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Comedy]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1120</guid>
		<description><![CDATA[Of all inanimate objects, sure it is the treadmill that has the most comedic potential. Witness exhibit a) So what would happen if you tried to do a handstand on a treadmill: Treadmill Handstand FAIL &#8211; watch more funny videos Honestly, what did he expect to happen? So let&#8217;s throw a fat kid into the [...]]]></description>
			<content:encoded><![CDATA[<p>Of all inanimate objects, sure it is the treadmill that has the most comedic potential.</p>
<p>Witness exhibit a)</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/B_A8lOGsIU4&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/B_A8lOGsIU4&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>So what would happen if you tried to do a handstand on a treadmill:</p>
<p><object width="480" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="ordie_player_1e37e5207d"><param name="movie" value="http://player.ordienetworks.com/flash/fodplayer.swf" /><param name="flashvars" value="key=1e37e5207d" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always"></param><embed width="480" height="400" flashvars="key=1e37e5207d" allowfullscreen="true" allowscriptaccess="always" quality="high" src="http://player.ordienetworks.com/flash/fodplayer.swf" name="ordie_player_1e37e5207d" type="application/x-shockwave-flash"></embed></object>
<div style="text-align:left;font-size:x-small;margin-top:0;width:480px;"><a href="http://www.funnyordie.com/videos/1e37e5207d/treadmill-handstand-fail" title="from failblog">Treadmill Handstand FAIL</a> &#8211; watch more <a href="http://www.funnyordie.com/" title="on Funny or Die">funny videos</a></div>
<p>Honestly, what did he expect to happen?</p>
<p>So let&#8217;s throw a fat kid into the mix:</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/PhTvh6Cdn5Q&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/PhTvh6Cdn5Q&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>And finally to see OK Go&#8217;s treadmill awesomeness, go <a href="http://www.youtube.com/watch?v=pv5zWaTEVkI">here</a> (embedding turned off).</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/08/09/ode-to-the-treadmill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jerk of the Week: Mark Latham</title>
		<link>http://goonanism.com/blog/2010/08/09/jerk-of-the-week-mark-latham/</link>
		<comments>http://goonanism.com/blog/2010/08/09/jerk-of-the-week-mark-latham/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 00:47:40 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Jerk of the Week]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1117</guid>
		<description><![CDATA[In the context of my increased anxiety about the potential for Abbott to be elected at the next federal election, the recent actions of Mark Latham defy belief. Not only did he lampoon Gillard, he made false accusations about the Labor Party having put in a complaint about him being out on the campaign trail [...]]]></description>
			<content:encoded><![CDATA[<p>In the context of my increased anxiety about the potential for Abbott to be elected at the next federal election, the recent actions of <a href="http://www.theage.com.au/federal-election/laurie-oakes-attacks-nine-over-hiring-of-latham-20100808-11q59.html">Mark Latham</a> defy belief.</p>
<p>Not only did he lampoon Gillard, he made false accusations about the Labor Party having put in a complaint about him being out on the campaign trail for Channel 9. Fortunately, the train-wreck that is Latham became the story as the Channel 9 CEO, David Gyngell, had to unreservedly apologise to Gillard.</p>
<p>What is most frustrating is that Latham was probably one of the best thinkers that ALP has ever had as it&#8217;s leader. While I didn&#8217;t necessarily agree with his ideas, he was the first Labor Leader since Keating that had a true vision, and a pretty unique and well informed one at that. Margaret Simons&#8217; <a href="http://www.quarterlyessay.com/issue/lathams-world-new-politics-outsiders">Quarterly Essay</a><em>Latham&#8217;s World: The New Politics of the Outsiders</em> was a fascinating read about an impressive thinker.</p>
<p>What has grabbed everyone&#8217;s attention though, and turned Latham from a proper noun to an adjective, is his unwavering paranoia which renders him incapable of acting in a manner that vaguely resembles sanity.</p>
<p>So for being such wasted potential, you, Mark Latham, are: Jerk of the Week.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/08/09/jerk-of-the-week-mark-latham/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Credit where credit is due</title>
		<link>http://goonanism.com/blog/2010/07/27/credit-where-credit-is-due/</link>
		<comments>http://goonanism.com/blog/2010/07/27/credit-where-credit-is-due/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:04:39 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Energy]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1115</guid>
		<description><![CDATA[It&#8217;s important to criticise governments and keep them accountable. It is also important to recognise when they have done good. The Victorian Government&#8217;s Climate Change White Paper is one of these cases. Victoria now leads Australia in terms of Climate Change policy and action. Whilst it could always go further, the massive increase in renewable [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s important to criticise governments and keep them accountable. It is also important to recognise when they have done good.</p>
<p>The Victorian Government&#8217;s <a href="http://premier.vic.gov.au/climate-change.html">Climate Change White Paper</a> is one of these cases.</p>
<p>Victoria now leads Australia in terms of Climate Change policy and action. Whilst it could always go further, the massive increase in renewable energy investment and the decommissioning of Hazelwood are both long over due.</p>
<p>In many ways the efficiency measures outlined, while a little weaker, are probably more important because the issue is not where we get our energy from, but how much we use.</p>
<p>Whilst I support Victoria (and Australia, and the world) running on 100% renewable energy, those that expect this to happen immediately are probably being a little naive. To turn off Hazelwood tomorrow would mean power shortages across the state &#8211; something we&#8217;d all be pretty frustrated with. We need to reduce out energy demands as quickly as possible and start the switch on renewables as quickly as possible, but this takes time.</p>
<p>And time is the thing we&#8217;ve squandered the most.</p>
<p>As for criticism that <a href="http://www.theage.com.au/federal-election/brumby-plan-exposes-gillard-20100726-10sp6.html">Brumby has exposed Gillard</a>, I desperately hope it means that she will have to finally take some action.</p>
<p>For the record, in principle, a consensus on climate change is a really good idea. But  a &#8220;citizen&#8217;s assembly&#8221; will do absolutely nothing to build a consensus.</p>
<p>What we need is leadership which is what is missing.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/07/27/credit-where-credit-is-due/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The week that was</title>
		<link>http://goonanism.com/blog/2010/07/26/the-week-that-was/</link>
		<comments>http://goonanism.com/blog/2010/07/26/the-week-that-was/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 02:35:37 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Cycling]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Goonanism Websites]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Sommelier.net.au]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1113</guid>
		<description><![CDATA[Yesterday afternoon I took myself off to see Inception. I won&#8217;t say anything about the film &#8211; it&#8217;s the sort of film that it is best to go into with few expectations. I do urge to you see it at the earliest convenience though. It is truly incredible &#8211; a game changer &#8211; one of [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday afternoon I took myself off to see <a href="http://www.imdb.com/title/tt1375666/">Inception</a>. I won&#8217;t say anything about the film &#8211; it&#8217;s the sort of film that it is best to go into with few expectations. I do urge to you see it at the earliest convenience though. It is truly incredible &#8211; a game changer &#8211; one of the best films I&#8217;ve seen in a very long time.</p>
<p>I can&#8217;t remember the last time I walk out of a film thinking: &#8216;that changes everything&#8217;. The Matrix? Maybe.</p>
<p>Whatever the case, it was a 2 and a half hour film that I didn&#8217;t want to end and will probably go and see again while it is playing at the cinema &#8211; something I never do.</p>
<p>I rushed home from the cinema to catch the leader&#8217;s debate. The contrast could not have been more stark. Moving from something so exciting, so engaging to the most uninspiring, pedestrian leader&#8217;s debate I can remember. The only loser in the debate was the Australian public. Does that mean that both leader&#8217;s lost?</p>
<p><a href="http://en.wikipedia.org/wiki/Waleed_Aly">Waleed Aly</a> said early on in the piece that this election was about nothing. My immediate reaction was &#8216;oh, about nothing is a bit harsh, it&#8217;s about&#8230; it&#8217;s about&#8230; it&#8217;s about&#8217;.</p>
<p>He&#8217;s right and that is really depressing. I&#8217;ve never been this disenfranchised with Australia&#8217;s political process.</p>
<p>Given our leaders inability to provide me with anything even vaguely resembling intellectual stimulation, I&#8217;ve turned to podcasts in a big way. My regular cycling commute has become full of thought provoking material which I&#8217;m loving. The podcasts I&#8217;m currently loving include:</p>
<ul>
<li>The Bugle (funny and informative)</li>
<li>In Our Time (probably haven&#8217;t bonded with this one as much as others)</li>
<li>NPR: Fresh Air Podcast</li>
<li>NPR: Wait, Wait&#8230; Don&#8217;t tell me (a quiz show that keeps you up to date with news as well)</li>
<li>ZDNet: Patch Monday (fully of tech goodness &#8211; and Australian!)</li>
<li>Tank Riot (too me a little bit of listening to start enjoying but now I&#8217;m hooked)</li>
<li>This American Life (my favourite &#8211; just so interesting)</li>
<li>WNYC&#8217;s Radio Lab (shorter episodes and very interesting)</li>
</ul>
<p>Feel free to share your thoughts on podcasts below. Any recommendations?</p>
<p>While riding in to work this morning, listening to a podcast, there was an interesting confrontation on the road. A scooter rider was going a long in the bike lane. This really bothers me. It&#8217;s illegal ($50 fine &#8211; no demerit points) and dangerous. As a motorcyclist I would never ride in the cycling lane. I knew how much it bothered me when I was cycling and I actually think that it is a much more dangerous thing to do than &#8216;lane split&#8217;. You should always avoid passing on the left&#8230; especially when there isn&#8217;t actually a lane there as it is the last place a car will look as any cyclist can attest to.</p>
<p>Anyway, on this particular morning a cyclist decided to take issue with the man on the scooter&#8230; to the point where he actually tried to push the guy off his scooter. I&#8217;m not one for the &#8216;cyclists-should-behave-well-so-that-cars-are-nice-to-us&#8217; types. I&#8217;m all for cyclists being assertive, but this was just going too far.</p>
<p>This week I started doing website support for <a href="http://prosper.org.au">Prosper Australia</a> (including support for <a href="http://www.earthsharing.org.au/">Earth Sharing</a>). I can&#8217;t see it being too much work but it&#8217;s a bit of fun as they are eager to implement some good changes and it&#8217;s always nice when you&#8217;re doing some work for someone eager for change that has faith that you can just get it done for them. It also means getting stuck into Pordpress themes and plugins which is something I really enjoy as the API is fantastic.</p>
<p>Unfortunately though, that work meant that I couldn&#8217;t get the changes to <a href="http://sommelier.net.au">Sommelier.net.au</a> done that I would have liked to. A few upgrades are coming though and I&#8217;ve got a good sense of the next couple of improvements which I&#8217;m looking forward to overhauling.</p>
<p>21 weeks to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/07/26/the-week-that-was/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New look</title>
		<link>http://goonanism.com/blog/2010/07/23/new-look-2/</link>
		<comments>http://goonanism.com/blog/2010/07/23/new-look-2/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 04:26:53 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[This Blog]]></category>
		<category><![CDATA[BlueHost]]></category>
		<category><![CDATA[Goonanism]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1108</guid>
		<description><![CDATA[As you will have noticed by now, this blog has a new look. I hope you like it. The old template was getting pretty old and I think this one is very neat and easy on the eye. Thanks to MUKI space for making a great template. What you may not have noticed is that [...]]]></description>
			<content:encoded><![CDATA[<p>As you will have noticed by now, this blog has a new look.</p>
<p>I hope you like it. The old template was getting pretty old and I think this one is very neat and easy on the eye. Thanks to <a href="http://blog.mukispace.com/">MUKI space</a> for making a great template.</p>
<p>What you may not have noticed is that I also have a new <a href="http://goonanism.com">home page</a>.</p>
<p>Feel free to leave a comment hear and tell me what you think.</p>
<p>I had started work on a portfolio section of the site but wasn&#8217;t happy with it so decided to just get the new site up there without the portfolio. The portfolio will come with time.</p>
<p>I&#8217;ve also decided to start using tags.</p>
<p>(PS it seems access to my site is a bit patchy at the moment. It&#8217;s <a href="http://www.bluehost.com/">BlueHost&#8217;s</a> fault. They are aware of the issue and are apparently working on it. For what it is worth, it&#8217;s not just my site playing up, it&#8217;s everyone&#8217;s site on this server.</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/07/23/new-look-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>There&#8217;s an Election on!?!</title>
		<link>http://goonanism.com/blog/2010/07/19/theres-an-election-on/</link>
		<comments>http://goonanism.com/blog/2010/07/19/theres-an-election-on/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 03:56:31 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1102</guid>
		<description><![CDATA[(here&#8217;s my first mandatory election post, please excuse me, I&#8217;m quite jet lagged.) (an informative graphic from Indexed). As we all know, 3 weeks ago Julia the Great became leader of the Labor Party. At the time I experienced the familiar wave of excitement I experience every time we get a new leader of the [...]]]></description>
			<content:encoded><![CDATA[<p>(here&#8217;s my first mandatory election post, please excuse me, I&#8217;m quite jet lagged.)</p>
<p><a href="http://thisisindexed.com/2010/06/plurality-keeps-the-peace/"><img src="http://thisisindexed.com/wp-content/uploads/2010/06/card2608-376x231.jpg" alt="A little help from Indexed" /></a><br />
(an informative graphic from <a href="http://thisisindexed.com">Indexed</a>).</p>
<p>As we all know, 3 weeks ago Julia the Great became leader of the Labor Party. At the time I experienced the familiar wave of excitement I experience every time we get a new leader of the Labor Party. I become so full of hope and optimism. She&#8217;s from the Left, she&#8217;s done the hard yards, has important links to the Union movement and is Australia&#8217;s first female prime minister. How could this go wrong?</p>
<p>This time I really tried to &#8216;curb my enthusiasm&#8217;.  I reminded myself of the ongoing disappointment that the Labor Party has left me with and that I&#8217;m sure to be disappointed again, but I can&#8217;t help myself, I got a little excited. I was even telling some German friends that I met up with how Gillard&#8217;s rise was great for Australia. I rushed to revise my position a few days later though as the policies rolled out: we will still be getting an Internet filter; an increasingly inhumane approach to asylum seekers; a absurd population policy; poor response to Climate Change and so on.</p>
<p>I began to get that other familiar feeling&#8230; betrayal.</p>
<p>At times I&#8217;ve heard myself say: &#8216;If Malcolm Turnbul was leader of the opposition I would consider putting the Libs above the ALP on my ballot paper&#8217;. That&#8217;s utter crap of course. Whilst I&#8217;m attracted to the progressive liberalism of the Liberal Party&#8217;s &#8216;Wet&#8217; faction, the reality is that with the Libs in power there will be less spending on Health and Education, not to mention a further regression of Industrial Relations. My comment is really intended to point out that there isn&#8217;t much difference between the two major parties.</p>
<p>So how can I support a party that conforms to the popularist crap that the ALP does? I can&#8217;t. The problem is, that unless the ALP does conform to said popularist crap then they won&#8217;t be re-elected, which means having Abbott as PM which means I&#8217;m leaving the country (actually, I&#8217;ll be doing that anyway, but I&#8217;ll blame Abbott if I can).</p>
<p>Being the inner-city intellectual type, I&#8217;ve actually got a pretty good local (ALP) member (<a href="http://www.kelvinthomson.com.au/">Kevin Thompson</a>). There&#8217;s another dilemma: if the ALP lose Thompson there will be one less moderating voice in the ALP.</p>
<p>So once again, I&#8217;ll be voting Green&#8217;s this election and I&#8217;d encourage you to do the same. Not because I&#8217;m a particularly big fan of the Greens, I actually think they are conservative on a few issues, but because they are the party that most closely represent my views. In fact they are often the only ones that speak with any sense.</p>
<p>I&#8217;m depressed.</p>
<p>(On a slightly more encouraging note, it is good news for all that the Greens and the ALP have done a <a href="http://greens.org.au/content/labor-will-direct-senate-preferences-greens-2010">preference deal</a>. I may also have a small crush on Bob Brown.)</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/07/19/theres-an-election-on/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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>Vote &#8217;1&#8242; &#8211; VictoriaMyCommunity.org</title>
		<link>http://goonanism.com/blog/2010/06/02/vote-1-victoriamycommunity-org/</link>
		<comments>http://goonanism.com/blog/2010/06/02/vote-1-victoriamycommunity-org/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 23:47:17 +0000</pubDate>
		<dc:creator>Hammy</dc:creator>
				<category><![CDATA[Goonanism Websites]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://goonanism.com/blog/?p=1086</guid>
		<description><![CDATA[AGrowingCommunity, in conjunction with, Australian Centre for Democracy and Justice, Friends of the Earth Melbourne, the Victorian Eco Inovation Lab and CERES Environment Park have an entry in &#8216;AppMyState&#8217;, a competition to build mobile and web applications that will benefit Victorians. Our entry, VictoriaMyCommunity.org, lets you add, find and connect with community resources, services and [...]]]></description>
			<content:encoded><![CDATA[<p>AGrowingCommunity, in conjunction with, Australian Centre for Democracy and Justice, Friends of the Earth Melbourne, the Victorian Eco Inovation Lab and CERES Environment Park have an entry in &#8216;AppMyState&#8217;, a competition to build mobile and web applications that will benefit Victorians.</p>
<p>Our entry, VictoriaMyCommunity.org, lets you add, find and connect with community resources, services and groups in the area around you.</p>
<p>Based on a mapping interface, the Application is a community built tool that allows community groups, local government and individuals, build, document and share information about their community with others around them.</p>
<p>You can see the site at: <a href="http://victoriamycommunity.org">http://victoriamycommunity.org</a></p>
<p>You can vote at: <a href="http://www.premier.vic.gov.au/app-my-state/view-application-submissions/item/root/victoriamycommunityorg.html">http://www.premier.vic.gov.au/app-my-state/view-application-submissions/item/root/victoriamycommunityorg.html</a></p>
<p>Entries close this Friday (4th June), so make sure you vote today!</p>
]]></content:encoded>
			<wfw:commentRss>http://goonanism.com/blog/2010/06/02/vote-1-victoriamycommunity-org/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
