<?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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>paulmc.org » Blog</title>
	
	<link>http://www.paulmc.org</link>
	<description />
	<lastBuildDate>Mon, 03 Oct 2011 22:01:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/paulmc/dEhw" /><feedburner:info uri="paulmc/dehw" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license><feedburner:emailServiceId>paulmc/dEhw</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/paulmc/dEhw" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fpaulmc%2FdEhw" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Past Physics Papers</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/ORMa_Fg_6ns/</link>
		<comments>http://www.paulmc.org/2011/10/past-physics-papers/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 22:01:49 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[College]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1292</guid>
		<description><![CDATA[For Joe Meehans module in Physics, some past papers: Download Past Physics Papers]]></description>
			<content:encoded><![CDATA[<p>
For Joe Meehans module in Physics, some past papers:
</p>
<p>
<a href='http://www.paulmc.org/wp-content/uploads/2011/10/past_physics_papers.zip'>Download Past Physics Papers</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/RtT225BSc2qGv_-gUrl3-kef4bY/0/da"><img src="http://feedads.g.doubleclick.net/~a/RtT225BSc2qGv_-gUrl3-kef4bY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RtT225BSc2qGv_-gUrl3-kef4bY/1/da"><img src="http://feedads.g.doubleclick.net/~a/RtT225BSc2qGv_-gUrl3-kef4bY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=ORMa_Fg_6ns:8IVwzexYn_Q:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/ORMa_Fg_6ns" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/10/past-physics-papers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/10/past-physics-papers/</feedburner:origLink></item>
		<item>
		<title>Jailbreak 2nd Gen iPod Touch with GreenPois0n</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/jChI4BtSPEU/</link>
		<comments>http://www.paulmc.org/2011/04/jailbreak-2nd-gen-ipod-touch-with-greenpois0n/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 13:34:28 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1288</guid>
		<description><![CDATA[Spent a couple of hours today trying to jailbreak my iPod. After numerous attempts, I was on the point of giving up when I found this forum post with a .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/04/jailbreak-2nd-gen-ipod-touch-with-greenpois0n/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
Spent a couple of hours today trying to jailbreak my iPod. After numerous attempts, I was on the point of giving up when I found this <a href="http://forums.macrumors.com/showthread.php?t=1090942">forum post</a> with a solution: Run greenpois0n from the command line, rather than from the GUI.
</p>
<p>
While the forum post refers to RC5_2, I can confirm that it works with RC6 also. Here&#8217;s my method.
</p>
<ol>
<li>Make sure that your iPod is connected to your computer.</li>
<li>Shut down iTunes if it&#8217;s open.</li>
<li>Turn off your iPod.</li>
<li>Hold the power button and home button for 10 seconds.</li>
<li>Release the power button, keep holding the home button for a further 10 seconds.</li>
<li>Open Terminal.</li>
<li>Change directory to the location of the greenpois0n app.</li>
<li>Type <span class="command">open ./greenpois0n.app/Contents/MacOS/greenpois0n</span></li>
<li>A new Terminal window will open and greenpois0n should now be able to jailbreak your iPod.</li>
<li>Wait for your iPod to restart.</li>
<li>Find the green Loader icon on your iPod and use it to install Cydia.</li>
</ol>
<p>
And that&#8217;s it &#8211; you&#8217;re good to go!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/DhajGGQ_kSNijRnE810vqelQTGw/0/da"><img src="http://feedads.g.doubleclick.net/~a/DhajGGQ_kSNijRnE810vqelQTGw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DhajGGQ_kSNijRnE810vqelQTGw/1/da"><img src="http://feedads.g.doubleclick.net/~a/DhajGGQ_kSNijRnE810vqelQTGw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=jChI4BtSPEU:hNJ9AN-Cujw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/jChI4BtSPEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/04/jailbreak-2nd-gen-ipod-touch-with-greenpois0n/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/04/jailbreak-2nd-gen-ipod-touch-with-greenpois0n/</feedburner:origLink></item>
		<item>
		<title>WordPress and the “filesize() [function.filesize]: stat failed” Error</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/_1I5uirGxac/</link>
		<comments>http://www.paulmc.org/2011/04/wordpress-and-the-filesize-function-filesize-stat-failed-error/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 10:54:32 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1283</guid>
		<description><![CDATA[I&#8217;ve been working on a website that includes a download button. When clicked the button would prompt to open or save the file. The prompt appeared on cue and the .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/04/wordpress-and-the-filesize-function-filesize-stat-failed-error/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve been working on a website that includes a download button. When clicked the button would prompt to open or save the file. The prompt appeared on cue and the file downloaded, but for some reason the file was empty.
</p>
<p>
Checking the <span class="command">php_error.log</span>, showed that this error was being generated:
</p>
<blockquote><p>
PHP Warning:  filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for http://localhost:8888/ringstone/wp-content/uploads/docs/brochure.pdf in /Applications/MAMP/htdocs/ringstone/wp-content/themes/ringstone/frontpage.php on line 26
</p></blockquote>
<p>
Normally if the <span class="command">filesize</span> function fails it&#8217;s because the directory where the file is stored is not writeable or the file is larger than 2GB.
</p>
<p>
In this case, the directory was writeable and the file was a lot less than 2GB in size. So I was stumped.
</p>
<p>
Going over my code, the only thing that I could see that might be causing the problem was the link to the file.
</p>
<p>I was using the following code to get the WordPress uploads directory:
</p>
<blockquote><p>
$uploads = wp_upload_dir();<br />
$url = $uploads['baseurl'];<br />
$filename = $url . &#8216;/docs/brochure.pdf&#8217;;
</p></blockquote>
<p>
This generated the url for the document as: <span class="command">http://localhost:8888/ringstone/wp-content/uploads/docs/brochure.pdf</span>
</p>
<p>
According to the PHP manual for <a href="http://php.net/manual/en/function.filesize.php">filesize</a>, as of PHP 5.0.0 the filesize function supports using some URL wrappers, including HTTP. The version of MAMP that I&#8217;m using includes PHP 5.3.2, so this shouldn&#8217;t have been a problem. It turns out that I was wrong.
</p>
<p>
I updated my code to:
</p>
<blockquote><p>
$uploads = wp_upload_dir();<br />
$path = $uploads['basedir'];<br />
$filename = $path . &#8216;/docs/brochure.pdf&#8217;;
</p></blockquote>
<p>
And it worked.
</p>
<p>
The lesson is that if you&#8217;re seeing filestat error in your PHP error log, then go through the following checklist:
</p>
<ol>
<li>Pass filestat the directory path to the file, not the URL. (Even though the manual says that it should work.)</li>
<li>Check that the directory is writeable.</li>
<li>Check that the file is smaller than 2GB in size.</li>
</ol>

<p><a href="http://feedads.g.doubleclick.net/~a/FfCUe7A6Qz6RbQItRscTgFAoFCI/0/da"><img src="http://feedads.g.doubleclick.net/~a/FfCUe7A6Qz6RbQItRscTgFAoFCI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FfCUe7A6Qz6RbQItRscTgFAoFCI/1/da"><img src="http://feedads.g.doubleclick.net/~a/FfCUe7A6Qz6RbQItRscTgFAoFCI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=_1I5uirGxac:FYbPJwwylrE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/_1I5uirGxac" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/04/wordpress-and-the-filesize-function-filesize-stat-failed-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/04/wordpress-and-the-filesize-function-filesize-stat-failed-error/</feedburner:origLink></item>
		<item>
		<title>Astronomical Insignificance?</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/A2_C65Azrxo/</link>
		<comments>http://www.paulmc.org/2011/04/astronomical-insignificance/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 01:21:05 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1272</guid>
		<description><![CDATA[Over the last couple of years, I&#8217;ve developed an interest in astronomy. I&#8217;m a dilettante &#8211; I read a couple of astronomy blogs and I&#8217;ve downloaded a couple of astronomy .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/04/astronomical-insignificance/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
Over the last couple of years, I&#8217;ve developed an interest in astronomy. I&#8217;m a dilettante &#8211; I read a couple of astronomy blogs and I&#8217;ve downloaded a couple of astronomy podcasts/ lecture courses. So I&#8217;m far from being an expert.
</p>
<p>
One of the things that drove my interest in the subject was a wish to find out more about my, and humankind&#8217;s, place in the Universe. I knew some basic facts, such as the Earth is about 93 million miles from the Sun, but I wanted to know how scientists could know that. It&#8217;s not like they could directly measure it. And so I began my journey.
</p>
<p>
The deeper I looked, the more I became aware that the Universe is big. And it&#8217;s big on a scale that I just couldn&#8217;t comprehend. The numbers involved are so huge, that they are basically meaningless. And the further I looked, the bigger the Universe became.
</p>
<p>
In the middle of this vastness is our home, the pale blue dot so eloquently described by the master of scientific discourse, Carl Sagan:
</p>
<div id="attachment_1275" class="wp-caption aligncenter" style="width: 335px"><a href="http://www.paulmc.org/wp-content/uploads/2011/04/Pale_Blue_Dot.png"><img src="http://www.paulmc.org/wp-content/uploads/2011/04/Pale_Blue_Dot.png" alt="The Pale Blue Dot as imaged by the Voyager probe." title="The Pale Blue Dot" width="325" height="441" class="size-full wp-image-1275" /></a><p class="wp-caption-text">The Pale Blue Dot as imaged by the Voyager probe.</p></div>
<blockquote><p>
From this distant vantage point, the Earth might not seem of particular interest. But for us, it&#8217;s different. Look again at that dot. That&#8217;s here, that&#8217;s home, that&#8217;s us. On it everyone you love, everyone you know, everyone you ever heard of, every human being who ever was, lived out their lives. The aggregate of our joy and suffering, thousands of confident religions, ideologies, and economic doctrines, every hunter and forager, every hero and coward, every creator and destroyer of civilization, every king and peasant, every young couple in love, every mother and father, hopeful child, inventor and explorer, every teacher of morals, every corrupt politician, every &#8220;superstar,&#8221; every &#8220;supreme leader,&#8221; every saint and sinner in the history of our species lived there – on a mote of dust suspended in a sunbeam.</p>
<p>The Earth is a very small stage in a vast cosmic arena. Think of the rivers of blood spilled by all those generals and emperors so that, in glory and triumph, they could become the momentary masters of a fraction of a dot. Think of the endless cruelties visited by the inhabitants of one corner of this pixel on the scarcely distinguishable inhabitants of some other corner, how frequent their misunderstandings, how eager they are to kill one another, how fervent their hatreds.</p>
<p>Our posturings, our imagined self-importance, the delusion that we have some privileged position in the Universe, are challenged by this point of pale light. Our planet is a lonely speck in the great enveloping cosmic dark. In our obscurity, in all this vastness, there is no hint that help will come from elsewhere to save us from ourselves.</p>
<p>The Earth is the only world known so far to harbor life. There is nowhere else, at least in the near future, to which our species could migrate. Visit, yes. Settle, not yet. Like it or not, for the moment the Earth is where we make our stand.</p>
<p>It has been said that astronomy is a humbling and character-building experience. There is perhaps no better demonstration of the folly of human conceits than this distant image of our tiny world. To me, it underscores our responsibility to deal more kindly with one another, and to preserve and cherish the pale blue dot, the only home we&#8217;ve ever known.
</p></blockquote>
<p>
And while I think that is one of the most endearing and touching descriptions of Earth&#8217;s place in the vastness of the Universe, it is a little sad to think that we are so alone, that our little planet is so insignificant.
</p>
<p>
We look out to the stars and dream of what may be there and we look back and see ourselves wrapped in the darkness of space. In these circumstances it&#8217;s difficult to remain upbeat.
</p>
<p>
But there can be hope, and there can be joy.
</p>
<p>
Because as we orbit around our average star, we realise that <em>we are here</em>. That come what may, we have a place in the Universe and that we can look at the beauty of the night sky and wonder and dream.
</p>
<p>
The Universe may be vast beyond comprehension, but in all of that vastness there is just one &#8220;me&#8221;. And I can look up and be amazed that I have a place in the Universe and that right now, my place is here, on a pale blue dot.
</p>
<p>httpv://www.youtube.com/watch?v=Rk6_hdRtJOE&#038;feature=player_embedded</p>

<p><a href="http://feedads.g.doubleclick.net/~a/V-DVLq3D8r1wEriSsTXjQsME4Pw/0/da"><img src="http://feedads.g.doubleclick.net/~a/V-DVLq3D8r1wEriSsTXjQsME4Pw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/V-DVLq3D8r1wEriSsTXjQsME4Pw/1/da"><img src="http://feedads.g.doubleclick.net/~a/V-DVLq3D8r1wEriSsTXjQsME4Pw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=A2_C65Azrxo:aJg8FAjZ4X0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/A2_C65Azrxo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/04/astronomical-insignificance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/04/astronomical-insignificance/</feedburner:origLink></item>
		<item>
		<title>April Fools Posts</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/MlIuKpYv_-8/</link>
		<comments>http://www.paulmc.org/2011/04/april-fools-posts/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 11:34:09 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1251</guid>
		<description><![CDATA[I love April Fools Day, here&#8217;s the ones I&#8217;ve seen so far: Google Motion Google Helvetica YouTube AdBlock RTÉ News Pirat(ebay) XKCD Any more to add?]]></description>
			<content:encoded><![CDATA[<p>
I love April Fools Day, here&#8217;s the ones I&#8217;ve seen so far:
</p>
<ul>
<li><a href="http://mail.google.com/mail/help/motion.html">Google Motion</a></li>
<li><a href="http://www.google.ie/search?q=helvetica">Google Helvetica</a></li>
<li><a href="http://www.youtube.com/watch?v=CNm8ZCJ7Fx8">YouTube</a></li>
<li><a href="http://chromeadblock.com/freedom/">AdBlock</a></li>
<li><a href="http://www.rte.ie/news/2011/0401/aprilfool.html">RTÉ News</a></li>
<li><a href="http://thepiratebay.org/blog/189">Pirat(ebay)</a></li>
<li><a href="http://www.xkcd.com/880/">XKCD</a></li>
</ul>
<p>Any more to add?</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ikLpCjSHzy6F80pmX044eUNSZ1E/0/da"><img src="http://feedads.g.doubleclick.net/~a/ikLpCjSHzy6F80pmX044eUNSZ1E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ikLpCjSHzy6F80pmX044eUNSZ1E/1/da"><img src="http://feedads.g.doubleclick.net/~a/ikLpCjSHzy6F80pmX044eUNSZ1E/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=MlIuKpYv_-8:qTE4bOTVwd0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/MlIuKpYv_-8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/04/april-fools-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/04/april-fools-posts/</feedburner:origLink></item>
		<item>
		<title>Creating A Linux USB Boot Drive on Mac OS X</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/oUX4q8APKfo/</link>
		<comments>http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 14:39:59 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1215</guid>
		<description><![CDATA[I recently needed to boot a laptop from Linux, but didn&#8217;t have any of my Linux boot disks with me. Luckily I had my USB flash drive, so I decided .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
I recently needed to boot a laptop from Linux, but didn&#8217;t have any of my Linux boot disks with me. Luckily I had my USB flash drive, so I decided to install a mini-version of Linux. A quick Google searched led me to Recovery is Possible, or <a href="http://www.tux.org/pub/people/kent-robotti/looplinux/rip/">RIPLinuX</a>.
</p>
<p>
Here&#8217;s how to install the .iso onto the flash drive:
</p>
<p>
Open Terminal under Applications &rarr; Utilities.
</p>
<p>
We&#8217;ll be using the <span class="command">diskutil</span> command to write the .iso contents to the flash drive. So the first thing to do is determine the block device associated with our flash drive.
</p>
<p>
<b><u>Before</u></b> inserting the drive type<br />
<code>diskutil list</code><br />
and hit enter. Insert your drive and run the <span class="command">diskutil list</span> command again.
</p>
<p>
You should get something like this:<br />
<div id="attachment_1231" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/diskutil-list/" rel="attachment wp-att-1231"><img src="http://www.paulmc.org/wp-content/uploads/2011/03/diskutil-list-600x387.png" alt="" title="diskutil-list" width="600" height="387" class="size-large wp-image-1231" /></a><p class="wp-caption-text">Results of the diskutil list command</p></div>
</p>
<p>
As you can see, the flash drive is connected via <span class="command">/disk/dev1</span>, though this may be different on your system. Before you can start writing the data to the flash drive, you need to unmount the drive.
</p>
<p>
<code>diskutil unmountDisk /dev/disk1</code>
</p>
<div id="attachment_1238" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/diskutil-unmountdisk/" rel="attachment wp-att-1238"><img src="http://www.paulmc.org/wp-content/uploads/2011/03/diskutil-unmountDisk-600x387.png" alt="" title="diskutil-unmountDisk" width="600" height="387" class="size-large wp-image-1238" /></a><p class="wp-caption-text">Unmounting the flash drive using diskutil</p></div>
<p>
Now, you&#8217;re ready to start writing the data to the drive.
</p>
<p>
<code>sudo dd if=/path/to/linux.iso of=/dev/disk1 bs=1m</code>
</p>
<div id="attachment_1239" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/sudo-dd/" rel="attachment wp-att-1239"><img src="http://www.paulmc.org/wp-content/uploads/2011/03/sudo-dd-600x387.png" alt="" title="sudo-dd" width="600" height="387" class="size-large wp-image-1239" /></a><p class="wp-caption-text">Data has been successfully written to the drive</p></div>
<p>
Once the data has been written to the drive, all that remains is to eject it.<br />
<code>diskutil eject /dev/disk1</code>
</p>
<div id="attachment_1242" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/diskutil-eject/" rel="attachment wp-att-1242"><img src="http://www.paulmc.org/wp-content/uploads/2011/03/diskutil-eject-600x387.png" alt="" title="diskutil-eject" width="600" height="387" class="size-large wp-image-1242" /></a><p class="wp-caption-text">Eject the flash drive</p></div>
<p>
And you&#8217;re done! Remember that in order to boot from the USB drive, the computer that you&#8217;re using must support booting from USB devices and that you need to change the boot order in the BIOS.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ozjPJiR0Jubx6W0bvfi3SVfZFRM/0/da"><img src="http://feedads.g.doubleclick.net/~a/ozjPJiR0Jubx6W0bvfi3SVfZFRM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ozjPJiR0Jubx6W0bvfi3SVfZFRM/1/da"><img src="http://feedads.g.doubleclick.net/~a/ozjPJiR0Jubx6W0bvfi3SVfZFRM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=oUX4q8APKfo:uPctA0O4S34:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/oUX4q8APKfo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/03/creating-a-linux-usb-boot-drive-on-mac-os-x/</feedburner:origLink></item>
		<item>
		<title>PHP Code Snippet</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/F53GBeCZ2qE/</link>
		<comments>http://www.paulmc.org/2011/03/php-code-snippet/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 12:20:43 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1208</guid>
		<description><![CDATA[Because of the re-design, there&#8217;s a lot of broken links &#8211; mainly because the blog used to live under the /whatithink/ folder on the server and now resides in the .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/03/php-code-snippet/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
Because of the re-design, there&#8217;s a lot of broken links &#8211; mainly because the blog used to live under the /whatithink/ folder on the server and now resides in the root folder. So all those Google links now point to a part of the site that no longer exists.
</p>
<p>
So anyone coming here from Google is going to get a 404 error. Not good.
</p>
<p>
While I get my head around using .htaccess to automatically rewrite the broken URLs, I&#8217;ve created a <a href="http://www.paulmc.org/whatithink/qwertyuiop/">404 page</a> that will, (hopefully), correct the URL.
</p>
<p>
Here&#8217;s the PHP:
</p>
<p>
<code><br />
$requested = $_SERVER['REQUEST_URI'];<br />
$parts = explode('/', $requested);<br />
foreach ($parts as $part) {<br />
	switch($part) {<br />
		case ('whatithink'):<br />
			break;<br />
		case (''):<br />
			break;<br />
		default:<br />
			$out .= '/' . $part;<br />
	}<br />
}<br />
$out = 'http://' . $_SERVER['HTTP_HOST'] . $out;<br />
</code>
</p>
<p>
Because all my broken URLs have an extra &#8220;/whatithink/&#8221; section, I can just break the requested URL into parts, and rebuild it without that section.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/JD5gutmpOkb0sUx1qSQCbkDcLMg/0/da"><img src="http://feedads.g.doubleclick.net/~a/JD5gutmpOkb0sUx1qSQCbkDcLMg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JD5gutmpOkb0sUx1qSQCbkDcLMg/1/da"><img src="http://feedads.g.doubleclick.net/~a/JD5gutmpOkb0sUx1qSQCbkDcLMg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=F53GBeCZ2qE:uzuo0qNL_hA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/F53GBeCZ2qE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/03/php-code-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/03/php-code-snippet/</feedburner:origLink></item>
		<item>
		<title>Site Redesign</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/wfBHa4elATk/</link>
		<comments>http://www.paulmc.org/2011/03/site-redesign/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 23:13:32 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/?p=1189</guid>
		<description><![CDATA[I&#8217;ve just completely redesigned the site, so there&#8217;s quite a few things broken. (Mainly because the WordPress importer didn&#8217;t do a great job.) Comments are closed on all the old .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/03/site-redesign/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve just completely redesigned the site, so there&#8217;s quite a few things broken. (Mainly because the WordPress importer didn&#8217;t do a great job.) Comments are closed on all the old posts. If I get the time I might go back and fix &#8216;em and re-open the comments.
</p>
<p>
Any questions or feedback, just leave a comment!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/PArffD2ULIQkxUY2BALqr7b1-J8/0/da"><img src="http://feedads.g.doubleclick.net/~a/PArffD2ULIQkxUY2BALqr7b1-J8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PArffD2ULIQkxUY2BALqr7b1-J8/1/da"><img src="http://feedads.g.doubleclick.net/~a/PArffD2ULIQkxUY2BALqr7b1-J8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=wfBHa4elATk:rbc0P_zLeyE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/wfBHa4elATk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/03/site-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/03/site-redesign/</feedburner:origLink></item>
		<item>
		<title>MyBook World Edition – Time Machine – OSStatus Error 2</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/g5nDc0s9h3w/</link>
		<comments>http://www.paulmc.org/2011/02/mybook-world-edition-time-machine-osstatus-error-2/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 18:31:33 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/whatithink/?p=1178</guid>
		<description><![CDATA[If Time Machine is unable to connect to your backup disk with an error message containing &#8220;OSStatus Error 2&#8243;, then check the permissions on your NAS. SSH as root into .....<p>&#160;</p><p><a href="http://www.paulmc.org/2011/02/mybook-world-edition-time-machine-osstatus-error-2/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<p>If Time Machine is unable to connect to your backup disk with an error message containing &#8220;OSStatus Error 2&#8243;, then check the permissions on your NAS.</p>
<p>SSH as root into your MBWE and check the permissions for /var and /var/lib.</p>
<p>Use chmod 755 on /var and /var/lib to apply the correct permissions.</p>
<p>Use the Time Machine System Preferences to set your backup disk to your MBWE.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/LgD730fcYL04Cd0RS8JUmGaeY0w/0/da"><img src="http://feedads.g.doubleclick.net/~a/LgD730fcYL04Cd0RS8JUmGaeY0w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LgD730fcYL04Cd0RS8JUmGaeY0w/1/da"><img src="http://feedads.g.doubleclick.net/~a/LgD730fcYL04Cd0RS8JUmGaeY0w/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=g5nDc0s9h3w:TNcrY3u0w2I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/g5nDc0s9h3w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2011/02/mybook-world-edition-time-machine-osstatus-error-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2011/02/mybook-world-edition-time-machine-osstatus-error-2/</feedburner:origLink></item>
		<item>
		<title>Open Letter to Connor Lenihan</title>
		<link>http://feedproxy.google.com/~r/paulmc/dEhw/~3/kSvpYe9uqyA/</link>
		<comments>http://www.paulmc.org/2010/09/open-letter-to-connor-lenihan/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 01:22:19 +0000</pubDate>
		<dc:creator>Paul McCarthy</dc:creator>
				<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.paulmc.org/whatithink/?p=1176</guid>
		<description><![CDATA[Subject: John J May&#8217;s Book Launch &#8211; &#8220;The Origin of Specious Nonsense&#8221; Date: 14 September 2010 To: Conor.Lenihan@deti.ie Dear Minister, I note that you have agreed to be involved with .....<p>&#160;</p><p><a href="http://www.paulmc.org/2010/09/open-letter-to-connor-lenihan/">Read The Full Post</a></p>]]></description>
			<content:encoded><![CDATA[<h3>Subject: John J May&#8217;s Book Launch &#8211; &#8220;The Origin of Specious Nonsense&#8221;</h3>
<h3>Date: 14 September 2010</h3>
<h3>To: <a href="mailto:Conor.Lenihan@deti.ie">Conor.Lenihan@deti.ie</a></h3>
<p>Dear Minister,</p>
<p>I note that you have agreed to be involved with the launch of John J May&#8217;s Book &#8211; &#8220;The Origin of Specious Nonsense&#8221;. A book that espouses the notion that The Theory of Evolution is wrong.</p>
<p>As our Minister with responsibility for Science and Technology, what were you thinking when you agreed to this?</p>
<p>The Theory of Evolution has been shown in countless scientific experiments to be the correct explanation for the diversity of life on this planet, yet you have decided to make your Department and your Office a laughing stock throughout the world.</p>
<p>As the Minister for Science, Technology, Innovation and Natural Resources, you represent our country on a global stage. Every day we hear that Ireland is positioning itself to be part of the information economy. Every day we hear that our colleges and universities are among the best in the world. Every day the government spends a lot of time, effort and money trying to secure jobs with from companies who specialise in providing science based products. And you have decided to do your best to undo all that hard work by being associated with an author who believes the notion that one of the most fundamental Theories of our time is wrong. How do you think the rest of the world will see Ireland now?</p>
<p>Many people have worked hard to bring this country into the 21st Century. Your decision seeks to undermine the progress this country has made in the last 40 years.</p>
<p>It is simply not acceptable that a person in your position should attend an event of this nature. It is in the best interests of this country that you publicly withdraw from this event.</p>
<p>Yours sincerely,<br />Paul McCarthy, <br />Limerick. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/jvrOSqVnfWJySyKng9C0h0eYieU/0/da"><img src="http://feedads.g.doubleclick.net/~a/jvrOSqVnfWJySyKng9C0h0eYieU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jvrOSqVnfWJySyKng9C0h0eYieU/1/da"><img src="http://feedads.g.doubleclick.net/~a/jvrOSqVnfWJySyKng9C0h0eYieU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/paulmc/dEhw?a=kSvpYe9uqyA:dV-iAdZtH-M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/paulmc/dEhw?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/paulmc/dEhw/~4/kSvpYe9uqyA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.paulmc.org/2010/09/open-letter-to-connor-lenihan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.paulmc.org/2010/09/open-letter-to-connor-lenihan/</feedburner:origLink></item>
	</channel>
</rss>

