<?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>Awesome Toast!</title>
	<atom:link href="http://awesometoast.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://awesometoast.com</link>
	<description>The multipurpose website of Aaron W. Herd</description>
	<lastBuildDate>Tue, 16 Apr 2013 23:23:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<atom:link rel="next" href="http://awesometoast.com/feed/?page=2" />

		<item>
		<title>Make MySQL&#8217;s UNIX_TIMESTAMP() work in PostgreSQL</title>
		<link>http://awesometoast.com/unix-timestamp-in-postgresql/</link>
		<comments>http://awesometoast.com/unix-timestamp-in-postgresql/#comments</comments>
		<pubDate>Tue, 16 Apr 2013 23:18:35 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Fixing Stuff]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=850</guid>
		<description><![CDATA[<p><img class="alignright  wp-image-853" alt="iStock_000003225418XSmall" src="http://awesometoast.com/wp-content/uploads/2013/04/iStock_000003225418XSmall-267x300.jpg" width="160" height="180" /></p>
<p>And FROM_UNIXTIME(), too!</p>
<p>Maybe you&#8217;re like me, and you&#8217;re migrating something from MySQL over to PostgreSQL. Maybe, like me, you&#8217;re swearing a great deal and experiencing high blood pressure, too.<br />
(Or maybe not.)</p>
<p>I&#8217;ve seen numerous threads that just tell you how you can change all your code to [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright  wp-image-853" alt="iStock_000003225418XSmall" src="http://awesometoast.com/wp-content/uploads/2013/04/iStock_000003225418XSmall-267x300.jpg" width="160" height="180" /></p>
<p>And FROM_UNIXTIME(), too!</p>
<p>Maybe you&#8217;re like me, and you&#8217;re migrating something from MySQL over to PostgreSQL. Maybe, like me, you&#8217;re swearing a great deal and experiencing high blood pressure, too.<br />
(Or maybe not.)</p>
<p>I&#8217;ve seen numerous threads that just tell you how you can change all your code to use Postgres&#8217;s epoch_something_something_aint_nobody_got_time_fo_dat() function instead, but epic hero Janusz Slota has a better way. He shows you how to, rather easily, make it possible to run those functions in PG without having to change a thing.</p>
<p><strong>Check out his solution <a href="http://janusz.slota.name/blog/2009/06/mysql-from_unixtime-and-unix_timestamp-functions-in-postgresql/">right on over here</a>.</strong></p>
<p><span class="hint">(Just change LANGUAGE &#8216;SQL&#8217; to LANGUAGE &#8216;sql&#8217; if you&#8217;re using PG 9.2+)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/unix-timestamp-in-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes 11: Restore track skipping with Repeat One turned on (OSX)</title>
		<link>http://awesometoast.com/itunes-11-restore-track-skipping-with-repeat-one-turned-on-osx/</link>
		<comments>http://awesometoast.com/itunes-11-restore-track-skipping-with-repeat-one-turned-on-osx/#comments</comments>
		<pubDate>Tue, 02 Apr 2013 19:32:42 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Fixing Stuff]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=823</guid>
		<description><![CDATA[<p><img class="wp-image-806 alignleft" src="http://awesometoast.com/wp-content/uploads/2012/12/iTunes11.png" alt="Skipping tracks with repeat on? Preposterous!" width="130" height="130" />In iTunes 10, you could skip to the next/previous track when Repeat One was turned on. In 11, they assume that by &#8220;skip ahead&#8221;, you really mean &#8220;rewind this track&#8221;.</p>
<p>This really bothers some people.<br />
<span class="hint">Do not judge us, <strong>we have our reasons!</strong></span></p>
<p>And [...]]]></description>
				<content:encoded><![CDATA[<p><img class="wp-image-806 alignleft" src="http://awesometoast.com/wp-content/uploads/2012/12/iTunes11.png" alt="Skipping tracks with repeat on? Preposterous!" width="130" height="130" />In iTunes 10, you could skip to the next/previous track when Repeat One was turned on. In 11, they assume that by &#8220;skip ahead&#8221;, you really mean &#8220;rewind this track&#8221;.</p>
<p>This really bothers some people.<br />
<span class="hint">Do not judge us, <strong>we have our reasons!</strong></span></p>
<p>And here&#8217;s one way to fix it.</p>
<p>It took some work, but I finally came up with some AppleScript to handle this. Basically, we&#8217;re checking to see if Repeat One is on. If it is, we quickly disable it, skip to the next (or previous) track, and then turn it back on. Apple borked the old way of doing this (<a href="http://stackoverflow.com/questions/14674517/how-to-set-itunes-11-in-shuffle-or-repeat-mode-via-applescript" target="_blank">same with shuffle</a>), so we&#8217;re using menu bar items instead.</p>
<pre>-- This script lets you skip songs in iTunes 11 even if repeat one is on

tell application "System Events"
	tell process "iTunes"

		-- Find out if repeat one is on
		-- This finds out if the menu item is checked
		set isRepeatOneOn to (value of attribute "AXMenuItemMarkChar" of menu item 3 of menu 1 of menu item "Repeat" of menu 1 of menu bar item "Controls" of menu bar 1 as string) ≠ ""

		if isRepeatOneOn is true then

			-- Set repeat to ALL
			click menu item 2 of menu 1 of menu item "Repeat" of menu 1 of menu bar item "Controls" of menu bar 1

			-- Skip to previous track...
			click menu item "Previous" of menu 1 of menu bar item "Controls" of menu bar 1

			-- Need this, or the next step happens too fast
			delay 0.1

			-- Reactivate Repeat One
			click menu item 3 of menu 1 of menu item "Repeat" of menu 1 of menu bar item "Controls" of menu bar 1

		else
			-- Just skip to previous track
			click menu item "Previous" of menu 1 of menu bar item "Controls" of menu bar 1
		end if

	end tell
end tell</pre>
<p>You can copy/paste that, or you can just <strong><a href="http://awesometoast.com/wp-content/uploads/2013/04/iTunes-Repeat-Skip-Scripts.zip" style="text-transform:uppercase">download the script files here</a></strong>.<br />
There&#8217;s one script for skip ahead, and one for skip back.</p>
<h3>Wait—how do I use these?</h3>
<p>Valid question. They&#8217;re not all that useful, really&mdash;unless you assign them to hotkeys.</p>
<p><a href="http://www.macosxtips.co.uk/index_files/run-applescripts-with-keyboard-shortcuts.php" target="_blank">Head on over here to Mac OS X Tips</a> for ways and examples to set hotkeys to run AppleScripts.</p>
<p>Personally, I used <a href="http://qsapp.com/" target="_blank">Quicksilver</a> to control iTunes for years, but now I use <a href="http://www.alfredapp.com/" target="_blank">Alfred 2</a> (with Powerpack.)</p>
<p>(Since it&#8217;s not super obvious, let me know in the comments if you&#8217;d like help setting up either of these scripts using Alfred 2.)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/itunes-11-restore-track-skipping-with-repeat-one-turned-on-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ever met a chronic insomniac?</title>
		<link>http://awesometoast.com/ever-met-a-chronic-insomniac/</link>
		<comments>http://awesometoast.com/ever-met-a-chronic-insomniac/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 04:01:31 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[General Stuff]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=817</guid>
		<description><![CDATA[<p><a href="http://awesometoast.com/wp-content/uploads/2013/02/false-sleep.jpg"><img class="aligncenter size-full wp-image-818" alt="Ever met a chronic insomniac?" src="http://awesometoast.com/wp-content/uploads/2013/02/false-sleep.jpg" width="400" height="900" /></a></p>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://awesometoast.com/wp-content/uploads/2013/02/false-sleep.jpg"><img class="aligncenter size-full wp-image-818" alt="Ever met a chronic insomniac?" src="http://awesometoast.com/wp-content/uploads/2013/02/false-sleep.jpg" width="400" height="900" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/ever-met-a-chronic-insomniac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to downgrade to iTunes 10.7 from iTunes 11 [OSX]</title>
		<link>http://awesometoast.com/downgrading-to-itunes-10-7-from-itunes-11-on-osx/</link>
		<comments>http://awesometoast.com/downgrading-to-itunes-10-7-from-itunes-11-on-osx/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 22:29:06 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Fixing Stuff]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=805</guid>
		<description><![CDATA[<p><img class=" wp-image-806 alignleft" title="iTunes11" src="http://awesometoast.com/wp-content/uploads/2012/12/iTunes11.png" alt="" width="130" height="130" />iTunes 11 is out, and most people seem to think it&#8217;s great. You and I are different, however. We hate it and we have our reasons. (Mine happens to be the inability to skip tracks while Repeat One is on. Yup, deal-breaker for me. <strong>UPDATE: <a [...]]]></description>
				<content:encoded><![CDATA[<p><img class=" wp-image-806 alignleft" title="iTunes11" src="http://awesometoast.com/wp-content/uploads/2012/12/iTunes11.png" alt="" width="130" height="130" />iTunes 11 is out, and most people seem to think it&#8217;s great. You and I are different, however. We hate it and we have our reasons. (Mine happens to be the inability to skip tracks while Repeat One is on. Yup, deal-breaker for me. <strong>UPDATE: <a href="http://awesometoast.com/itunes-11-restore-track-skipping-with-repeat-one-turned-on-osx/" title="iTunes 11: Restore track skipping with Repeat One turned on (OSX)">Fixed that!</a></strong>) So let&#8217;s downgrade.</p>
<p>First, you&#8217;ll need a backup of your <strong>iTunes Library.itl</strong> file, found under <strong>~/Music/iTunes</strong>. Fortunately, I backed my library up right before installing iTunes 11. Note that any new songs, apps, etc. that you may have added since installing 11 will need to be replaced. In my case, I used the &#8220;Date Added&#8221; feature in iTunes to find which files I had added since November 28, and copied those out into a separate folder. When the downgrade was complete, I simply copied them back in.</p>
<p><strong>Let&#8217;s get started:</strong></p>
<p><strong>1.</strong> First, you need the 10.7 dmg file. I can&#8217;t guarantee how long this link will work, but give it a try: <a href="http://appldnld.apple.com/iTunes10/041-7195.20120912.d3uzQ/iTunes10.7.dmg">http://appldnld.apple.com/iTunes10/041-7195.20120912.d3uzQ/iTunes10.7.dmg</a></p>
<p><strong>2.</strong> Delete iTunes. There are different ways to do this. One is to use an app called <a title="AppZapper" href="http://www.appzapper.com/">AppZapper</a>. The method that worked for me was this: Open Terminal.app and run these commands:</p>
<pre>killall iTunes</pre>
<pre>killall "iTunes Helper"</pre>
<pre>sudo rm -rf /Applications/iTunes.app/</pre>
<p>That last one will need your password and will probably take a minute or so.</p>
<p><strong>3.</strong> Now we have to reinstall iTunes 10.7 using an app called <strong><a href="http://www.charlessoft.com/">Pacifist</a></strong> (shareware, free). Download Pacifist and run it.</p>
<p><strong>4.</strong> Choose the <strong>Open Package</strong> option. Browse to the iTunes 10.7 dmg file.</p>
<p><strong>5.</strong> Select the <strong>&#8220;Contents of Install iTunes.pkg&#8221;</strong> file, and from the top left of the window, choose <strong>Install</strong>.</p>
<p><strong>6.</strong> Every time Pacifist tells you a file already exists, make sure you <strong>check the &#8220;always&#8221; box</strong> and choose <strong>Replace</strong>. This should happen around three or four times.</p>
<p>7. You&#8217;re almost done. Before running iTunes again, make sure you have recovered your <strong>&#8220;iTunes Library.itl&#8221;</strong> from a pre-iTunes-11 backup. After that, you should be good to go.</p>
<p>Some people have reported getting a -42408 error after downgrading, but I didn&#8217;t have any problem with it using this method on Mountain Lion. You can still get around that error by holding Option when opening iTunes, though some find they have to do it every time. If that happens and gets tiring, try reinstalling again, but as ever, your actual mileage may vary!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/downgrading-to-itunes-10-7-from-itunes-11-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Aaron&#8221; vs. &#8220;Erin&#8221;. (Usually?)</title>
		<link>http://awesometoast.com/aaron-vs-erin/</link>
		<comments>http://awesometoast.com/aaron-vs-erin/#comments</comments>
		<pubDate>Sun, 09 Sep 2012 21:29:37 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[General Stuff]]></category>
		<category><![CDATA[aaron]]></category>
		<category><![CDATA[erin]]></category>
		<category><![CDATA[names]]></category>
		<category><![CDATA[spelling]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=780</guid>
		<description><![CDATA[<p style="text-align: center;"><a href="http://awesometoast.com/wp-content/uploads/2012/09/Aaron-vs-Erin-1.jpg"><img class="aligncenter  wp-image-781" title="Aaron-vs-Erin-1" src="http://awesometoast.com/wp-content/uploads/2012/09/Aaron-vs-Erin-1-859x1024.jpg" alt="" width="541" height="645" /></a></p>
<p>Though the other day, some guy managed to spell it Aeryn. Points for uniqueness!</p>
<p><strong>Update:</strong> Since posting this, it has come to my attention that male Erins do, in fact, exist. However, in my part of the world, this is unheard of. Neither I, [...]]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://awesometoast.com/wp-content/uploads/2012/09/Aaron-vs-Erin-1.jpg"><img class="aligncenter  wp-image-781" title="Aaron-vs-Erin-1" src="http://awesometoast.com/wp-content/uploads/2012/09/Aaron-vs-Erin-1-859x1024.jpg" alt="" width="541" height="645" /></a></p>
<p>Though the other day, some guy managed to spell it Aeryn. Points for uniqueness!</p>
<p><strong>Update:</strong> Since posting this, it has come to my attention that male Erins do, in fact, exist. However, in my part of the world, this is unheard of. Neither I, nor any other of the many Aarons I know, have ever met or even heard of a male Erin. And so, when somehow ~90% of the time people spell our names with an E, it causes the mind to boggle. Or, caused. I have since been enlightened. Male Erins, please accept my apologies. Though I would be interested to find out where you are from if you wouldn&#8217;t mind commenting.</p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/aaron-vs-erin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back when lecture made sense&#8230;</title>
		<link>http://awesometoast.com/back-when-lecture-made-sense/</link>
		<comments>http://awesometoast.com/back-when-lecture-made-sense/#comments</comments>
		<pubDate>Mon, 11 Jun 2012 19:38:49 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[General Stuff]]></category>

		<guid isPermaLink="false">http://awesometoast.com/?p=770</guid>
		<description><![CDATA[<p style="text-align: center;"><a href="http://awesometoast.com/wp-content/uploads/2012/06/1000-Years-Ago.jpg"><img class="aligncenter  wp-image-772" title="1000-Years-Ago" src="http://awesometoast.com/wp-content/uploads/2012/06/1000-Years-Ago-791x1024.jpg" alt="" width="506" height="655" /></a></p>
<p>The full quote comes from Sebastian Thrun, the tenured Stanford Professor who left in order to begin exploring new teaching methods online.</p>
<blockquote><p>During the era when universities were born, “the lecture was the most effective way to convey information. We had the industrialization, we [...]]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://awesometoast.com/wp-content/uploads/2012/06/1000-Years-Ago.jpg"><img class="aligncenter  wp-image-772" title="1000-Years-Ago" src="http://awesometoast.com/wp-content/uploads/2012/06/1000-Years-Ago-791x1024.jpg" alt="" width="506" height="655" /></a></p>
<p>The full quote comes from Sebastian Thrun, the tenured Stanford Professor who left in order to begin exploring new teaching methods online.</p>
<blockquote><p>During the era when universities were born, “the lecture was the most effective way to convey information. We had the industrialization, we had the invention of celluloid, of digital media, and, miraculously, professors today teach exactly the same way they taught a thousand years ago.”</p></blockquote>
<p>You can find the full story at <a href="http://chronicle.com/blogs/wiredcampus/stanford-professor-gives-up-teaching-position-hopes-to-reach-500000-students-at-online-start-up/35135">The Chronicle of Higher Education</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://awesometoast.com/back-when-lecture-made-sense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
