<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Blair Kelly</title>
	
	<link>http://www.blairkelly.ca</link>
	<description>Multimedia, Design, Communications</description>
	<lastBuildDate>Mon, 20 Feb 2012 21:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/blairkelly" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="blairkelly" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>First Impressions: Chris Hedges</title>
		<link>http://www.blairkelly.ca/2011/12/30/first-impressions-chris-hedges/</link>
		<comments>http://www.blairkelly.ca/2011/12/30/first-impressions-chris-hedges/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 21:41:07 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Argument]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[In the Media]]></category>
		<category><![CDATA[Social Issues]]></category>
		<category><![CDATA[Chris]]></category>
		<category><![CDATA[First]]></category>
		<category><![CDATA[Hedges]]></category>
		<category><![CDATA[Impressions]]></category>
		<category><![CDATA[Lies]]></category>
		<category><![CDATA[Nuance]]></category>
		<category><![CDATA[Truth]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2563</guid>
		<description><![CDATA[After deconstructing the first words I ever heard the man speak, I would use terms such as "intellectually dishonest," "easily bruised" and "contents under pressure" to describe Chris Hedges.]]></description>
			<content:encoded><![CDATA[<p>A friend of mine brought to my attention a recent commenting and light discussion, featured on the CBC&#8217;s radio show &#8220;Day 6,&#8221; on the passing of author and journalist Christopher Hitchens. The two guests were Paul Wolfowitz and Chris Hedges, the former praised with great sadness the life of the late polymath, and the latter strongly criticised him. This occasioned the first time I can recall consciously registering the name &#8220;Chris Hedges,&#8221; who had some rather alarming things to say about Hitch: that he was without a moral core, lacked an appreciation for nuance, was a bully, and even that he defended the extermination of native Americans.</p>
<p>I have transcribed the portions of Hedges interview that I found most concerning, and have tried to give enough context to be fair. (<a href="http://www.cbc.ca/day6/2011/12/16/chris-hedges-on-christopher-hitchens/" target="_blank">Click here</a> to listen to Hedges say it all himself.)</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">Hitchens was always out for Hitchens. He had a great mind and he was an exceptionally talented writer, but I never found any moral core there. Even on the left he loved to sort of throw bombshells defending the European invasion of North America, and the extermination of native Americans, or suddenly deciding he was against abortion. He loved the publicity that comes with being a contrarian.</p>
<p>I&#8217;m unsure whether the formula &#8220;so-and-so was only ever out for his- or her-self&#8221; holds water in any context. (I&#8217;ve <a href="http://www.samharris.org/site/full_text/the-moral-landscape/" title="I read them here, in Sam Harris' excellent 'The Moral Landscape'" target="_blank">read</a> persuasive philosophical arguments that claim the only way to be selfish in a positive way might be to help others.) In any case, Hitchens was outspoken for the rights of women and homosexuals and has countless other endeavours tied to his name that trash Hedges&#8217; obscure pronouncement altogether.</p>
<p>Regarding his statement on Hitchens&#8217; villainy, the sneaky Mr. Hedges charges us with a form of the &#8220;rotten-core cinnamon bun&#8221; problem. (It goes like this: presented to you is a cinnamon bun that is normal in every way except that it has had inserted into it, post-bake, a gooey centre of dog shit. You are then asked: do you partake of the fresh, unsoiled exterior? Even if you are unlike me and are fond of cinnamon buns, I probably know your answer.) Hedges is trying to perform some mental trickery by underlining Hitchens&#8217; great mind and excellent writing ability and then besmirching both with an &#8220;immoral core.&#8221; It amounts to saying &#8220;there were great things about Hitchens, but they weren&#8217;t great, and in fact he was a bad person.&#8221;</p>
<p>I&#8217;ll come back to the accusation of support for genocide later. Here are some more words from Hedges&#8217;, this time on Hitchens&#8217; worldview:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">When you have that kind of regidity to any ideological system, whether it&#8217;s on the left or the right, you just replace a few words here and there and bifurcate the world into us and them, black and white, good and evil&#8230; and I think that is a sign of, finally, a kind of great intellectual failing and inability to deal with nuance &#8211; ambiguity &#8211; and I think that was part of his deficit.</p>
<p>I could not illustrate the irony of Hedges&#8217; words better than has already been done by Sam Harris. (<a href="http://www.samharris.org/blog/item/response-to-chris-hedges/" title="Dear Angry Lunatic: A Response to Chris Hedges" target="_blank">&#8220;Nuance is really what one hopes Hedges would discover once in his life—if for no other reason than it would leave him with nothing left to say.&#8221;</a>) However I was able with my own limited perspective to see a hole in Hedges&#8217; impression. It took one look at a single book title from each author on (roughly) the same subject, a) Hitchens&#8217; &#8220;god Is Not Great: How Religion Poisons Everything&#8221; and b) Hedges&#8217; &#8220;I Don&#8217;t Believe in Atheists.&#8221; With only the titles, we see Hitchens targets a belief system, and Hedges targets an entire group of people as if it were homogeneous. (What else does that remind you of?) Tip of the iceberg, I know, but I wanted to point out, since I don&#8217;t think it should be underestimated, that whiffs of intellectual Swiss-cheese are available for a <i>mere glance</i> at Hedges&#8217; work. Anyway, let&#8217;s get on with more of what Hedges&#8217; had to say:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">I found [Hitchens] when he was on the left to be a bully, I didn&#8217;t like the way he would frame debates, it always became personal, we saw this when he switched sides and he began to tear into figures that he had once revered; Noam Chomsky, Edward Said and others.</p>
<p>As I transcribed the above words, I asked myself if they really needed to be refuted. How then would Hedges have Hitchens frame debates? Would he like it better if we pretended that we weren&#8217;t accountable for the views we espouse? If someone expresses support for suicide-murderers blowing themselves up on packed city buses, I&#8217;m going to hold that view against the person in question and I hope everyone else in their right mind would, too! Not to belabour the point, but what ever could Hedges <i>possibly mean</i> by his complaint? And same goes for criticising people you might have once revered. If at any point you hold a deep respect for someone, does this mean of this person you forfeit your right to lay anything but positive judgement?</p>
<p>Later, Hedges moves himself into the territory of the totally nonsensical:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">[Hitchens] used a secular vocabulary to bifurcate the world into these binary poles of black and white, us and them. So his political agenda didn&#8217;t stray very far from the Christian right: the Christian right wants to drop iron fragmentation bombs all over the Middle East because Islam is a satanic religion, he wants to do it because they&#8217;re barbarians&#8230; what he really promoted was a secular fundamentalism.</p>
<p>I have three issues with this tripe. 1) If by &#8220;us&#8221; Hedges is referring to our secular tradition with courts of law and rights for humankind and even other animals, and by &#8220;them&#8221; he is referring to the Taliban and their kind who throw acid in the eyes of &#8220;disobedient&#8221; women and mutilate the labia of young girls, then I get <i>absolutely nauseous</i> at the idea of <i>anything other</i> than an &#8220;us and them&#8221; dichotomy. I want &#8220;them&#8221; to be scrubbed from the face of the Earth. If they&#8217;d rather die than discontinue blowing up apostates, <i>so be it.</i> I am very suspicious of the moral integrity of anybody who suggests I should accommodate <i>in any way</i> psychopaths like the Taliban. <i>No italics could stress my feeling on this point enough.</i> 2) The next bit of bile coughed up by Hedges needs to be dealt with in its entirety: &#8220;the Christian right wants to drop iron fragmentation bombs all over the Middle East because Islam is a satanic religion, he wants to do it because they&#8217;re barbarians.&#8221; As Hitchens said himself (<a href="http://www.fpp.co.uk/online/99/02/Hitchens.html" target="_blank">of another matter</a>), to respond to this would be a bit like responding to the question &#8220;so when did you stop beating your wife?&#8221; <a href="http://www.youtube.com/watch?v=dddAi8FF3F4" title="It's a trap." target="_blank">It&#8217;s a trap,</a> and in this case Hedges&#8217; statement is so nonsensical it&#8217;s not even wrong. 3) Finally, if words are to mean anything at all, then &#8220;secular fundamentalism&#8221; is a term that makes absolutely no sense whatsoever. It is a popular argument bandied by those who are not well-versed in the debate about the falsity and negativity of religion, and by those who are so loose with their definitions that words become transparent. This issue has been expertly addressed elsewhere. In his essay &#8220;Can an Atheist Be a Fundamentalist?&#8221;, A.C. Grayling has this to say:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">It is also time to put to rest the mistakes and assumptions that lie behind a phrase used by some religious people when talking of those who are plain-spoken about their disbelief in any religious claims: the phrase &#8220;fundamentalist atheist [Hedges' 'secular fundamentalist'].&#8221; What would a non-fundamentalist atheist be? Would he be someone who believed only somewhat that there are no supernatural entities in the universe &#8211; perhaps that there is only part of a god (a divine foot, say, or a buttock)? Or that gods exist only some of the time &#8211; say, Wednesdays and Saturdays? (That would not be so strange: for many unthinking quasi-theists, a god exists only on Sundays.) Or might it be that a non-fundamentalist atheist is one who does not mind that other people hold profoundly false and primitive beliefs about the Universe, on the basis of which they have spent centuries mass-murdering other people who do not hold exactly the same false and primitive beliefs as themselves &#8211; and still do?</p>
<p>At last, I want to come back to Hedges&#8217; assertion that Hitchens supported the extermination of native American peoples. Hedges is referring to the contents of an article Hitchens wrote for The Nation&#8217;s &#8220;Minority Report&#8221; column, published on October 19th, 1992. (It can be <a href="http://www.thenation.com/archive/minority-report-220" target="_blank">obtained here</a>.) To say the author&#8217;s words were taken out of context seems almost too obvious to mention. In my search for the original document I <a href="http://www.abc.net.au/unleashed/3737110.html" target="_blank">found an article</a> (depressingly, on the Australian Broadcasting Corporation&#8217;s website) by Michael Brull, who apparently shares Hedges&#8217; questionable and unfavourable opinion of Hitchens. Presuming Hedges would agree with Brull&#8217;s selection of quotes (since there is nothing else in the article I can see that would easily lend itself to being taken out of context), I present to you his interpretation of Hitchens&#8217; remarks:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">In October 1992, Hitchens explained in The Nation that his &#8220;old comrade, David Dellinger&#8221; – one of the most extraordinary and inspiring men of the last century – had phoned to inform Hitchens of his impending protest on Colombus [sic] Day. Hitchens rejected this protest. Hitchens was not sure whether such a protest was &#8220;merely risible or faintly sinister&#8221;. Such a protest is sinister &#8220;because it is an ignorant celebration of stasis and backwardness, with an unpleasant tinge of self-hatred&#8221;.<br/><br />
&#8220;1492 was a very good year,&#8221; Hitchens impatiently explained, and &#8220;deserves to be celebrated with great vim and gusto.&#8221;<br/><br />
Those &#8220;who view the history of North America as a narrative of genocide and slavery&#8221; fail to understand that this is &#8220;the way that history is made, and to complain about it is as empty as complaint about climatic, geological or tectonic shift&#8221;. <b>The annihilation of the Native Americans was an instance</b> that left &#8220;humanity on a slightly higher plane than it knew before&#8221;, inaugurating an &#8220;early boundless epoch of opportunity and innovation&#8221;.</p>
<p>Confusing insertion of &#8220;impatience&#8221; into Hitchens&#8217; cadence aside (where did he get <i>that</i> from?), I have bolded Brull&#8217;s lie. Nowhere in Hitchens&#8217; article does he say &#8220;The annihilation of the Native Americans was an instance that left humanity on a slightly higher plane.&#8221; It simply is not there. Read it for yourself and you will see Hitchens makes mention of the pogroms various Nations had against each other before the arrival of the &#8220;palefaces.&#8221; He never denies the negative impact of the latest foreigners to arrive on what is now the American continent in 1492. Hitchens says:</p>
<p style="font-style: italic; padding-left: 45px; padding-right: 55px;">&#8230;those who view the history of North America as narrative of genocide and slavery are, it seems to me, hopelessly stuck on this reactionary position. They can think of the Western expansion of the United States only in terms of plague blankets, bootleg booze and dead buffalo, never in terms of the medicine chest, the wheel and the railway.<br/><br />
One need not be an automatic positivist about this. But it does happen to be the way that history is made, and to complain about it is as empty as complaint about climatic, geological or tectonic shift.<br/><br />
&#8230;As Marx wrote about India, the impact of a more developed society upon a culture (or a series of warring cultures, since there was no such nation as India before the British Empire) can spread aspects of modernity and enlightenment that outlive and transcend the conqueror. This isn&#8217;t always true; the British probably left Africa worse off than they found it, and they certainly retarded the whole life of Ireland. But it is sometimes unambiguously the case that a certain coincidence of ideas, technologies, population movements and politico-military victories leaves humanity on a<br />
slightly higher plane than it knew before. The transformation of part of the northern part of this continent into “America” inaugurated an early boundless epoch of opportunity and innovation, and thus deserves to be celebrated with great vim and gusto, with or without the participation of those who wish they had never been born.</p>
<p>If you read the entire article, which I highly recommend, you will find fully confirmed what you see above; no endorsement of genocide &#8211; nothing of the kind &#8211; and a nuanced, thoughtful analysis of history that amounts in its most distilled form to &#8220;overall, the migration of European people to the Americas was a good thing.&#8221; I find it terribly disappointing that such respectable institutions as the CBC and ABC would have the likes of Hedges or Brull on any of their programs; these men don&#8217;t just hold a different point of view, they maintain dishonest opinions. The most that this kind of dishonesty should help a public figure attain is standing on upturned milk crates at street corners, screaming at pigeons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/12/30/first-impressions-chris-hedges/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Beyond ‘Oops’</title>
		<link>http://www.blairkelly.ca/2011/12/09/beyond-oops/</link>
		<comments>http://www.blairkelly.ca/2011/12/09/beyond-oops/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 18:31:06 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Argument]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Global Issues]]></category>
		<category><![CDATA[In the Media]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Social Issues]]></category>
		<category><![CDATA[Extremism]]></category>
		<category><![CDATA[Perry]]></category>
		<category><![CDATA[Poison]]></category>
		<category><![CDATA[Religious]]></category>
		<category><![CDATA[Rick]]></category>
		<category><![CDATA[Strong]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2517</guid>
		<description><![CDATA[Rick Perry has outdone himself.]]></description>
			<content:encoded><![CDATA[<p>When I learned of him, I thought Rick Perry was another goofy and deeply religious Christian &#8211; <a target="_blank" href="http://en.wikipedia.org/wiki/George_W._Bush">the kind we&#8217;ve seen before</a> &#8211; that might do well in the upcoming US election. With his <a href="http://www.youtube.com/watch?feature=player_embedded&#038;v=0PAJNntoRgA" target="_blank">latest video statement</a>, the governor of Texas has revealed he may be a lot more dangerous than that. According to Perry, we &#8220;know there&#8217;s something wrong in this country when gays can serve openly in the military but our kids can&#8217;t openly celebrate Christmas or pray in school.&#8221;</p>
<p>This is both a non squitur and a lie. First, sexual orientation and religion are not as similar as thought by Perry or those who perform <a href="http://en.wikipedia.org/wiki/Gay_exorcism">Gay exorcisms</a>. Second, children <i>can</i> celebrate Christmas and pray in public school; these simply aren&#8217;t part of the school&#8217;s agenda. And that&#8217;s as it should be. The United States is a pluralistic nation, and it is that way <i>in spite</i> of religion. It&#8217;s not perfect, but it works as well as it does with great thanks to the authors of what is undoubtedly one of the most important documents in all of human history: the US Constitution. In it, a clear line is drawn between church and state. The founding fathers were aware of the consequences of giving religion too much say in the affairs of the state. When it has authority it tends to make a duty of <a target="_blank" href="http://en.wikipedia.org/wiki/Giles_Corey">torturing and murdering people</a>. And for instruction on how religion influences education and learning, you might recall <a target="_blank" href="http://en.wikipedia.org/wiki/Galileo_Galilei" target="_blank">Galileo</a> or, more recently, the <a href="http://en.wikipedia.org/wiki/Scopes_Trial" target="_blank">Scopes Monkey Trial</a>. And human rights? The Mormon church was an <a href="http://en.wikipedia.org/wiki/Black_people_and_The_Church_of_Jesus_Christ_of_Latter-day_Saints" target="_blank">officially racist institution</a> up to 1978, long after the great civil rights movements of the sixties. And to this day, opposition in the United States to gay marriage, and homosexuality generally, <a href="http://pewforum.org/Gay-Marriage-and-Homosexuality/Religious-Beliefs-Underpin-Opposition-to-Homosexuality.aspx" target="_blank">is religiously motivated</a>. These are mere examples plucked from a selection that, were each written on cards and put in a pile, the result might be a hazard to passing aircraft.</p>
<p>Religion doesn&#8217;t strengthen America; it weakens it. Religion is corrosive to everything an enlightened society stands for and the temptation to be lulled into its traps that offer false promises with immoral premises must be resisted to the maximum of our abilities. That a deeply religious and prominent Texan politician &#8211; a presidential candidate &#8211; appeared on a major media outlet, calling to his viewer&#8217;s attention the war on religion, is to me a sign that the battle for reason against blind dogma is heating up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/12/09/beyond-oops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Resize Images with PHP</title>
		<link>http://www.blairkelly.ca/2011/11/25/resize-images-with-php/</link>
		<comments>http://www.blairkelly.ca/2011/11/25/resize-images-with-php/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 20:13:04 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resize]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2494</guid>
		<description><![CDATA[Here's a PHP function to resize a .jpg or .png file.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a function that will take a JPG or PNG image file and resize it to the dimensions you want. It maintains the aspect ratio of the original file even if the dimensions do not match, so anything that falls outside of the sample area will be cropped. I wrote this function for use with WordPress, but if you&#8217;re running PHP it wouldn&#8217;t be hard to adapt for your purposes. I use the original image ID (given by WordPress) to name the new file. You obviously don&#8217;t have to use this. If you do, <a href="http://www.blairkelly.ca/2011/11/24/get-attachment-id-from-source-url/" title="Get Image ID from URL">refer to my last post for a function</a> that will return the ID of an image based on a given URL.<br />
<pre><pre>
function fixedCropImage($originalImage, $newImageLoc, $originalImageID, $destwidth, $destheight) {
&nbsp;&nbsp;//get the blog URL and add a slash to the end.
&nbsp;&nbsp;$theWPurl = get_bloginfo(&#039;wpurl&#039;).&#039;/&#039;;
&nbsp;&nbsp;//find the relative path of the original file. This is useful if you use a testing server.
&nbsp;&nbsp;$originalFileRelativePath = str_replace($theWPurl, &#039;&#039;, $originalImage);
&nbsp;&nbsp;//check to see if the file we&#039;re asking to resize exists.
&nbsp;&nbsp;if (file_exists($originalFileRelativePath) == FALSE) {
&nbsp;&nbsp;&nbsp;&nbsp;//if it doesn&#039;t, point to a default image.
&nbsp;&nbsp;&nbsp;&nbsp;$originalImage = &#039;images/default.jpg&#039;; //PATH MUST BE RELATIVE FOR file_exists to work!
&nbsp;&nbsp;}
&nbsp;&nbsp;//gather basic info about the original file, for use in making the path of the new file.
&nbsp;&nbsp;$path_parts = pathinfo($originalImage);
&nbsp;&nbsp;//create the path of the new file.
&nbsp;&nbsp;$theNewImage = &#039;wp-content/&#039;.$newImageLoc.&#039;/&#039;.$originalImageID.&#039;-&#039;.$destwidth.&#039;x&#039;.$destheight.&#039;.&#039;.$path_parts[&#039;extension&#039;];
&nbsp;&nbsp;//first, check to see if this file exists already. If it does, then don&#039;t do anything. Just return the location of the resized file.
&nbsp;&nbsp;if (file_exists($theNewImage) == FALSE) //check to see if the file already exists. if it does, then don&#039;t perform the function!
&nbsp;&nbsp;{&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;//dest ratio - the image dimension ratio of desired destination image!
&nbsp;&nbsp;&nbsp;&nbsp;$destratio = $destwidth / $destheight;
&nbsp;&nbsp;&nbsp;&nbsp;// Create image instance of $src.
&nbsp;&nbsp;&nbsp;&nbsp;if(strtolower($path_parts[&#039;extension&#039;]) == &quot;jpg&quot; || strtolower($path_parts[&#039;extension&#039;]) == &quot;jpeg&quot;){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$src = imagecreatefromjpeg($originalImage);
&nbsp;&nbsp;&nbsp;&nbsp;} else if(strtolower($path_parts[&#039;extension&#039;]) == &quot;png&quot;){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$src = imagecreatefrompng($originalImage);
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;//create instance of $dest file.
&nbsp;&nbsp;&nbsp;&nbsp;$dest = imagecreatetruecolor($destwidth, $destheight);
&nbsp;&nbsp;&nbsp;&nbsp;// Ifs - determine the layout of the image, portrait or landscape.
&nbsp;&nbsp;&nbsp;&nbsp;$imageSize = getimagesize($originalImage); //returns array, 0 width, 1 height.
&nbsp;&nbsp;&nbsp;&nbsp;$sourceRatio = $imageSize[0]/$imageSize[1];
&nbsp;&nbsp;&nbsp;&nbsp;//determine size of sample!
&nbsp;&nbsp;&nbsp;&nbsp;if($destratio &lt; $sourceRatio) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//if the destination ratio is smaller than the source, we must use the whole height of the image and a portion of the width.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sampleY = round($imageSize[1]);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sampleX = round($sampleY * $destratio);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//this means the sample must start on the y axis at 0, and on the x axis, somewhere in between.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$startY = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$startX = ($imageSize[0] - $sampleX) / 2; //take sample from the middle of X axis
&nbsp;&nbsp;&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//the destination ratio is larger than the source. use whole X width and a portion of the source height.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sampleX = round($imageSize[0]); //always use 100% of the sample width in this case.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sampleY = round($sampleX / $destratio);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//this means the sample must start on the x axis at 0, and on the y axis, somewhere in between.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$startX = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$startY = ($imageSize[1] - $sampleY) / 2; //take sample from the middle of Y axis
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;//actually crop or resize the image.
&nbsp;&nbsp;&nbsp;&nbsp;imagecopyresampled($dest, $src, 0, 0, $startX, $startY, $destwidth, $destheight, $sampleX, $sampleY);
&nbsp;&nbsp;&nbsp;&nbsp;// Output and free from memory
&nbsp;&nbsp;&nbsp;&nbsp;imagejpeg($dest, $theNewImage, 100);
&nbsp;&nbsp;&nbsp;&nbsp;imagedestroy($dest);
&nbsp;&nbsp;&nbsp;&nbsp;imagedestroy($src);&nbsp;&nbsp;
&nbsp;&nbsp;}
&nbsp;&nbsp;//set up the new image location and return
&nbsp;&nbsp;$theNewImage = get_bloginfo(&#039;wpurl&#039;).&#039;/&#039;.$theNewImage;
&nbsp;&nbsp;return $theNewImage;
}
</pre></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/11/25/resize-images-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Attachment ID from Source URL</title>
		<link>http://www.blairkelly.ca/2011/11/24/get-attachment-id-from-source-url/</link>
		<comments>http://www.blairkelly.ca/2011/11/24/get-attachment-id-from-source-url/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 14:40:15 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Attachment]]></category>
		<category><![CDATA[ID]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2484</guid>
		<description><![CDATA[If you need to get an attachment ID from the source URL, use this function.]]></description>
			<content:encoded><![CDATA[<p>You might find a need in WordPress to get an attachment from its source URL. I use it to ID images, I haven&#8217;t tried it with anything else. Obviously, this only works if you&#8217;ve uploaded the attachment through the WordPress interface.<br />
<pre><pre>
//gets the attachment id by giving it the source URL of the image or other attachment.
function get_attachment_id_from_src ($attachment_src) {
&nbsp;&nbsp;global $wpdb;
&nbsp;&nbsp;$query = &quot;SELECT ID FROM {$wpdb-&gt;posts} WHERE guid=&#039;$attachment_src&#039;&quot;;
&nbsp;&nbsp;$id = $wpdb-&gt;get_var($query);
&nbsp;&nbsp;return $id;
}
</pre></pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/11/24/get-attachment-id-from-source-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Pro-Life Walking Dead</title>
		<link>http://www.blairkelly.ca/2011/11/23/pro-life-walking-dead/</link>
		<comments>http://www.blairkelly.ca/2011/11/23/pro-life-walking-dead/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 16:30:01 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Argument]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Popular Media]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Social Issues]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2461</guid>
		<description><![CDATA[Some readers of Amanda Marcotte's Slate piece think it's silly to criticise a show about zombies for scientific inaccuracy. Are they right?]]></description>
			<content:encoded><![CDATA[<p>In her Slate piece &#8220;<a href="http://www.slate.com/blogs/xx_factor/2011/11/22/_the_walking_dead_characters_mistakenly_think_the_morning_after_pill_causes_abortion_do_the_writers_.html?wpisrc=slate_river" target="_blank">The Walking Dead Spreads Anti-Choice Misinformation</a>,&#8221; Amanda Marcotte argues that the writers of the TV series <i>The Walking Dead</i> deliberately spread misinformation about birth control in the latest episode, which aired this past Sunday. (In the episode, one of the characters is pregnant and decides to abort her baby. She mistakenly believes morning-after pills will get the job done.) Marcotte says her &#8220;honest impression is that whoever came up with this plot&#8230;mistakenly thinks that morning-after pills are abortion. If they had intended the misinformation to be a comment on the characters&#8217; ignorance, there was no indication of it.&#8221;</p>
<p>Sifting through the comments, I found an interesting objection: one commenter pointed out that a character in the show questions whether the pills would have the desired effect. For me, the jury is still out as to whether that would help make the viewer aware that morning-after pills aren&#8217;t effective at inducing abortions. (I&#8217;m leaning towards probably-not.) One of the less-interesting objections I found in the comments takes issue with the fact that Marcotte is picking on a matter of scientific factuality in a show about <i>zombies</i>. In the words of one of the many commenters making this weak objection: &#8220;perhaps that&#8217;s the reason the writers chose to stay out of the particulars of the science about it[:] It&#8217;s only a show about ZOMBIES, after all. Not a NatGeo documentary.&#8221;</p>
<p>If she had been decrying the ability of a dead guy to walk around and harass people, I&#8217;d say Marcotte was missing one of the show&#8217;s main points. But she is talking about a controversial, real-life issue. We really do hold people to account for what they portray in their fictional works. If an author takes as &#8220;normal,&#8221; or &#8220;everyday,&#8221; something that is morally wrong, we expect an answer for it. Imagine if, in <i>The Walking Dead</i>, all black zombies were <a href="http://en.wikipedia.org/wiki/Lynching_of_Jesse_Washington" title="Warning: Graphic Content. The Lynching of Jesse Washington" target="_blank">hung in trees set and set alight</a>, while all white zombies were quickly dispatched with a shot to the head and buried with reverence. (And all-else being equal: there wasn&#8217;t also some parallel-universe &#8220;race-war&#8221; happening at the time of the outbreak.) If not the cancellation of the series, we would rightly expect somebody to be fired. In this case, dismissal would probably be a bridge too far. But, as one presumably holds authors to account for other issues that affect our society, it is silly and dishonest to cast aspersions on the act of complaining about a point of scientific accuracy, one whose truth has a real effect on the well-being of our citizenry, even in a show about zombies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/11/23/pro-life-walking-dead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlairKelly.ca Gets a Haircut</title>
		<link>http://www.blairkelly.ca/2011/11/09/blairkelly-ca-gets-a-haircut/</link>
		<comments>http://www.blairkelly.ca/2011/11/09/blairkelly-ca-gets-a-haircut/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 05:17:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Haircut]]></category>
		<category><![CDATA[Simplified]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2157</guid>
		<description><![CDATA[The site was in dire need of some attention.]]></description>
			<content:encoded><![CDATA[<p>There were a number of glitches and bugs that had made their way into my website over the past year, and I&#8217;ve wanted to clean up the look of the site for some time. It sat neglected while I toiled away at my former job. Maintaining a dynamic site requires constant attention, but with my latest updates and improvements I&#8217;m hoping required maintenance will be minimal, so I can focus on content, and doing all sorts of neat and (hopefully) interesting things in the process.</p>
<p>As I went through all the posts on this site (minus posts in on-the-go), I realized the theme of the above paragraph appears <i>far too often</i>. After all, I updated the look of the site only just over a year ago. A few things I hope to do to the site over time: 1) move my video posts to Quicktime. 2) improve single-post view of images videos, and 3) Avoid putting two solid weeks of work into the site to &#8220;freshen it up.&#8221;</p>
<p>Compare the old to the new. The old has a lot of wasted space and feels dirty:</p>
<p><a href="http://www.blairkelly.ca/wp-content/uploads/2011/11/old_brushed_theme.png"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/11/old_brushed_theme.png" alt="" title="Old Brushed Theme" width="1034" height="886" class="alignnone size-full wp-image-2432" /></a></p>
<p>I wanted a look that was tighter and simpler, if not cleaner. This is what I came up with:</p>
<p><a href="http://www.blairkelly.ca/wp-content/uploads/2011/11/new_bdk_theme.png"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/11/new_bdk_theme.png" alt="" title="New BDK Theme" width="952" height="930" class="alignnone size-full wp-image-2433" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/11/09/blairkelly-ca-gets-a-haircut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightning</title>
		<link>http://www.blairkelly.ca/2011/08/25/lightning/</link>
		<comments>http://www.blairkelly.ca/2011/08/25/lightning/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 12:08:53 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Amateur]]></category>
		<category><![CDATA[Burlington]]></category>
		<category><![CDATA[Lightning]]></category>
		<category><![CDATA[Storm]]></category>
		<category><![CDATA[Tornado]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2106</guid>
		<description><![CDATA[I attempt to get some shots of lightning.]]></description>
			<content:encoded><![CDATA[<p>Last night a powerful storm rolled through Burlington. Tornado warnings and watches were put in effect for the region. Up until recently these warnings haven&#8217;t been issued frequently. The sky was lit with a constant flickering of lightning, so I stood in the garage with my camera and attempted something I&#8217;ve wanted to do for a long time: get some half-decent lightning shots.</p>
<p>Of course, I missed some excellent opportunities. But that only makes me more determined for next time.
<div class="ngg-galleryoverview" id="ngg-gallery-21-2106">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-425" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.blairkelly.ca/wp-content/gallery/lightning2011/DSC_0008.jpg" title=" " rel="set_21" >
								<img title="My vantage." alt="My vantage." src="http://www.blairkelly.ca/wp-content/gallery/lightning2011/thumbs/thumbs_DSC_0008.jpg" width="150" height="112" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-426" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.blairkelly.ca/wp-content/gallery/lightning2011/DSC_0017.jpg" title=" " rel="set_21" >
								<img title="Shutter: 1.6 sec; F: 8" alt="Shutter: 1.6 sec; F: 8" src="http://www.blairkelly.ca/wp-content/gallery/lightning2011/thumbs/thumbs_DSC_0017.jpg" width="150" height="112" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-427" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.blairkelly.ca/wp-content/gallery/lightning2011/DSC_0083.jpg" title=" " rel="set_21" >
								<img title="Shutter: 1.6 sec; F: 8" alt="Shutter: 1.6 sec; F: 8" src="http://www.blairkelly.ca/wp-content/gallery/lightning2011/thumbs/thumbs_DSC_0083.jpg" width="150" height="112" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-428" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.blairkelly.ca/wp-content/gallery/lightning2011/DSC_0100.jpg" title=" " rel="set_21" >
								<img title="Shutter: 5 sec; F: 13" alt="Shutter: 5 sec; F: 13" src="http://www.blairkelly.ca/wp-content/gallery/lightning2011/thumbs/thumbs_DSC_0100.jpg" width="150" height="112" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-429" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.blairkelly.ca/wp-content/gallery/lightning2011/DSC_0102.jpg" title=" " rel="set_21" >
								<img title="Shutter: 5 sec; F: 14" alt="Shutter: 5 sec; F: 14" src="http://www.blairkelly.ca/wp-content/gallery/lightning2011/thumbs/thumbs_DSC_0102.jpg" width="150" height="112" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class="ngg-clear"></div> 	
</div>

</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/08/25/lightning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing an EGR Valve</title>
		<link>http://www.blairkelly.ca/2011/07/20/changing-an-egr-valve-on-a-2001-saturn-sc2/</link>
		<comments>http://www.blairkelly.ca/2011/07/20/changing-an-egr-valve-on-a-2001-saturn-sc2/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 15:52:25 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Car]]></category>
		<category><![CDATA[EGR]]></category>
		<category><![CDATA[Saturn]]></category>
		<category><![CDATA[SC2]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=2000</guid>
		<description><![CDATA[I changed the EGR valve on my 2001 Saturn SC2 so that it could pass its emissions test, and I could save a bit of money.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s incredibly straightforward. Whatever your garage has quoted, if you own a 2001 Saturn SC2 or similar model and you need the EGR (Exhaust Gas Recirculation) valve replaced, do it yourself. In my case, the replacement part at Canadian Tire cost about $240. And the garage &#8211; Active Green &#038; Ross &#8211; wanted $400, plus tax.</p>
<p>I&#8217;m very grateful to Youtube user <a href="http://www.youtube.com/user/thef150" target="_blank">thef150</a>, who made and posted a video on how to change the part. He does a great job of showing and explaining what to do. If you&#8217;re going to do the replacement, watch this video before you go to the automotive store for parts. He&#8217;s got tips on what you should pick up to help you do the best job possible.</p>
<p>
<iframe width="542" height="338" src="http://www.youtube.com/embed/G0Dbx8aznQc" frameborder="0" allowfullscreen></iframe>
</p>
<p>
Here are some photos of the replacement I did. The EGR is tucked in the middle. It&#8217;s the component with the wires running out its top; a plastic clip holds the connectors together:
</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0028.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0028.jpg" alt="" title="DSC_0028" width="850" height="1280" class="alignnone size-full wp-image-2003" /></a>
</p>
<p>EGR with its cables disconnected. Various pipes have been removed to make access to it easier:</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0032.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0032.jpg" alt="" title="DSC_0032" width="1280" height="850" class="alignnone size-full wp-image-2005" /></a>
</p>
<p>Components lay in wait (air filter and pipe leading to the throttle body):</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0033.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0033.jpg" alt="" title="DSC_0033" width="1280" height="850" class="alignnone size-full wp-image-2006" /></a>
</p>
<p>Old EGR valve:</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0034.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0034.jpg" alt="" title="DSC_0034" width="1280" height="850" class="alignnone size-full wp-image-2007" /></a>
</p>
<p>Where the EGR valve hooks into the exhaust system:</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0035.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0035.jpg" alt="" title="DSC_0035" width="1280" height="850" class="alignnone size-full wp-image-2008" /></a>
</p>
<p>Old vs New:</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0037.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0037.jpg" alt="" title="DSC_0037" width="1280" height="850" class="alignnone size-full wp-image-2009" /></a>
</p>
<p>New vs Old, from another angle. Jetta and Saturn in the background:</p>
<p>
<a href="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0040.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2011/07/DSC_0040.jpg" alt="" title="DSC_0040" width="1280" height="850" class="alignnone size-full wp-image-2010" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/07/20/changing-an-egr-valve-on-a-2001-saturn-sc2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tales of Two Cities</title>
		<link>http://www.blairkelly.ca/2011/03/08/tales-of-two-cities-ep1-preview/</link>
		<comments>http://www.blairkelly.ca/2011/03/08/tales-of-two-cities-ep1-preview/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 00:32:34 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Videography]]></category>
		<category><![CDATA[Cities]]></category>
		<category><![CDATA[Episode]]></category>
		<category><![CDATA[Katrina]]></category>
		<category><![CDATA[Laurier]]></category>
		<category><![CDATA[McMaster]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[One]]></category>
		<category><![CDATA[Orleans]]></category>
		<category><![CDATA[Preview]]></category>
		<category><![CDATA[Svenson]]></category>
		<category><![CDATA[Tales]]></category>
		<category><![CDATA[Two]]></category>
		<category><![CDATA[Waterloo]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=1653</guid>
		<description><![CDATA[Preview to New Orleans After Katrina, Episode 1. Join Professor Stephen Svenson and students from three Universities as they investigate the dominant attitudes prevalent in New Orleans, after Katrina.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been volunteering for several months during evenings and weekends to help my friend, Professor Stephen Svenson of Waterloo University to edit together the three episodes of his documentary &#8220;Tales of Two Cities,&#8221; which focuses on the state of affairs in New Orleans after Katrina.</p>
<p>What better day to bring an update than Fat Tuesday?</p>
<p><iframe style="margin:auto" title="Tales of Two Cities" width="543" height="335" src="http://www.youtube.com/embed/3i9q3kzjC5M" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2011/03/08/tales-of-two-cities-ep1-preview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy Way to Open A Coconut</title>
		<link>http://www.blairkelly.ca/2010/11/27/easy-way-to-open-a-coconut/</link>
		<comments>http://www.blairkelly.ca/2010/11/27/easy-way-to-open-a-coconut/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 20:59:20 +0000</pubDate>
		<dc:creator>blair</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Food]]></category>

		<guid isPermaLink="false">http://www.blairkelly.ca/?p=1417</guid>
		<description><![CDATA[I read online several ways to open a coconut, and formed something of my own method. First, I drill two holes in the coconut with a power drill (this is fun), and drain the milk into a glass. I then take a heavy knife and with the blunt end tap the middle of the coconut [...]]]></description>
			<content:encoded><![CDATA[<p>I read online several ways to open a coconut, and formed something of my own method. First, I drill two holes in the coconut with a power drill (this is fun), and drain the milk into a glass. I then take a heavy knife and with the blunt end tap the middle of the coconut with moderate force, being careful not to hit too hard. By middle, I mean the part you would consider to be the &#8220;weak side&#8221; of a chicken&#8217;s egg. I rotate the coconut as I tap. Eventually, the coconut will split. Apparently, there&#8217;s some sort of &#8220;seam&#8221; in the architecture of the coconut that allows this to happen. Next is part of another technique where the coconut halves are placed into the oven at 400 degrees fahrenheit for about 10 minutes. This allows the fleshy interior of the coconut to separate from the shell. This doesn&#8217;t work perfectly for me, so I take the coconut out of the oven and give the two sides a few good whacks with the blunt end of my knife and the good stuff usually comes away easily. The result is this:</p>
<p><a href="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0258.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0258.jpg" alt="" title="Lovely Coconut" width="2048" height="1536" class="alignnone size-full wp-image-1420" /></a></p>
<p><a href="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0256.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0256.jpg" alt="" title="After the Oven and More Hits with the Knife" width="1536" height="2048" class="alignnone size-full wp-image-1418" /></a></p>
<p><a href="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0257.jpg"><img src="http://www.blairkelly.ca/wp-content/uploads/2010/11/IMG_0257.jpg" alt="" title="Two Coconut Halves. Sweet!" width="1536" height="2048" class="alignnone size-full wp-image-1419" /></a></p>
<p>Note: Where the two halves meet is the &#8220;middle&#8221; location that I&#8217;m talking about in the above paragraph.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blairkelly.ca/2010/11/27/easy-way-to-open-a-coconut/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

