<?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>arfore dot com</title>
	<atom:link href="http://arfore.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arfore.com</link>
	<description>welcome to the foremind</description>
	<lastBuildDate>Mon, 26 Mar 2012 13:51:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Web development and debugging Mobile Safari</title>
		<link>http://arfore.com/2012/03/26/web-development-and-debugging-mobile-safari/</link>
		<comments>http://arfore.com/2012/03/26/web-development-and-debugging-mobile-safari/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 13:51:40 +0000</pubDate>
		<dc:creator>arfore</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://arfore.com/?p=1050</guid>
		<description><![CDATA[Recently I ran into an issue with several websites and their functionality, or lack thereof, on Mobile Safari in iOS 4.3.3 on the iPad. Mobile Safari doesn&#8217;t give you much in the way of native debug tools.  There is a &#8230; <a href="http://arfore.com/2012/03/26/web-development-and-debugging-mobile-safari/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1052" title="Weevil on a computer printout" src="http://arfore.com/wp-content/uploads/2012/03/softwarebug-150x150.jpg" alt="" width="150" height="150" />Recently I ran into an issue with several websites and their functionality, or lack thereof, on Mobile Safari in iOS 4.3.3 on the iPad.</p>
<p>Mobile Safari doesn&#8217;t give you much in the way of native debug tools.  There is a debug console, which will display, at least in theory, any CSS, HTML or Javascript errors.</p>
<p>The only problem is that it won&#8217;t actually display all HTML errors.  For instance the problem I ran into was an HTML tag mismatch between an opening H2 and a closing H3.  Mobile Safari on iOS 5.1 displayed the page as designed, however on iOS 4.3.3 the bad closing tag was omitted which meant that all the children of that H2 had the CSS style &#8220;hidden&#8221; applied to them due to a class assignment.</p>
<p>You would think that this might trigger an error code in the debug console, however no such error occurred, and using the <em>Safari iOS 4.3.3 &#8211; iPad</em> user agent in desktop Safari on Mac OS X did not exhibit the error.</p>
<p>In searching for a tool to assist with debugging this problem natively on the iPad I ran across a great bookmarklet by Mark Perkins, called <a title="View-source bookmarklet for iPad, iPhone and other mobile" href="http://snoopy.allmarkedup.com/">Snoopy</a>.</p>
<p>This bookmarklet gives you all kinds of nifty information about the page you are looking at, including a view of the generated source.  Thanks to this tool I was able to find out exactly what was breaking the display on the iPad.</p>
]]></content:encoded>
			<wfw:commentRss>http://arfore.com/2012/03/26/web-development-and-debugging-mobile-safari/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The missing Photoshop window and Mac OS X Lion</title>
		<link>http://arfore.com/2012/03/20/the-missing-photoshop-window-and-lion/</link>
		<comments>http://arfore.com/2012/03/20/the-missing-photoshop-window-and-lion/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 13:18:28 +0000</pubDate>
		<dc:creator>arfore</dc:creator>
				<category><![CDATA[geeky]]></category>

		<guid isPermaLink="false">http://arfore.com/?p=1035</guid>
		<description><![CDATA[One of the touted features of the unibody design MacBook Pro line was the introduction of two different graphics processing units [1].  Initially they shared two Nvidia GeForce chipsets. Beginning with the Core i5 and Core i7 models, this was &#8230; <a href="http://arfore.com/2012/03/20/the-missing-photoshop-window-and-lion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1034" title="AMD Intel Graphics Switching" src="http://arfore.com/wp-content/uploads/2012/03/graphics_switch-150x80.png" alt="AMD Intel Graphics Switching" width="150" height="80" />One of the touted features of the unibody design MacBook Pro line was the introduction of two different graphics processing units [<a href="#ref1">1</a>].  Initially they shared two Nvidia GeForce chipsets. Beginning with the Core i5 and Core i7 models, this was changed to use an Intel HD Graphics chipset and either an Nvidia chipset or an AMD chipset (depending on the model and year of introduction).</p>
<p>This was put forth as a great power savings feature, but as many users have seen it has had unintended consequences. [<a href="#ref2">2</a>, <a href="ref#3">3</a>, <a href="#ref4">4</a>]</p>
<p>I have had no real issues involving this until I fired up Photoshop CS5 last night and found that the canvas window was missing! Now to be fair this doesn&#8217;t appear to be a problem on Snow Leopard, but nonetheless it was passing strange.  After some diligent searching, I discovered that the solution appears to be turning off the automatic graphics switching and rebooting the laptop. (<strong><em>Hint:</em></strong> it&#8217;s in the Energy Saver system preference pane)</p>
<p>After doing this all was once again well with Photoshop.  So if you encounter some odd graphics issues with your unibody MacBook Pro and Lion, try it and see if it helps.</p>
<h2>References</h2>
<ol>
<li><a name="ref1"></a><a title="Apple KB article" href="http://support.apple.com/kb/TS4044">MacBook Pro: About automatic graphics switching and OpenGL applications</a></li>
<li><a name="ref2"></a><a href="http://forums.steampowered.com/forums/showthread.php?t=1945370">MacBook Pro Graphics Switching Issues</a></li>
<li><a name="ref3"></a><a href="http://majorc.wordpress.com/2010/07/14/macbook-pro-auto-graphic-switching-issues/">Macbook Pro auto graphic switching issues!</a></li>
<li><a name="ref4"></a><a href="http://forums.macrumors.com/showthread.php?t=903924">15&#8221; Macbook pro graphic card swicthing problems</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://arfore.com/2012/03/20/the-missing-photoshop-window-and-lion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Changing the default editor on Dreamhost</title>
		<link>http://arfore.com/2012/02/26/changing-the-default-editor-on-dreamhost/</link>
		<comments>http://arfore.com/2012/02/26/changing-the-default-editor-on-dreamhost/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 22:00:23 +0000</pubDate>
		<dc:creator>arfore</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://arfore.com/?p=1018</guid>
		<description><![CDATA[While setting up the cronjob for auto archiving data on my Piwik installation, I found that the default editor for Dreamhost shell accounts is set to use joe (Joe&#8217;s Own Editor). While this is a nice editor for many users, &#8230; <a href="http://arfore.com/2012/02/26/changing-the-default-editor-on-dreamhost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1021" title="vim-editor_logo" src="http://arfore.com/wp-content/uploads/2012/02/vim-editor_logo-150x150.png" alt="" width="150" height="150" />While setting up the cronjob for auto archiving data on my <a title="Piwiki - Open source web analytics" href="http://piwik.org">Piwik</a> installation, I found that the default editor for Dreamhost shell accounts is set to use <a title="Joe's Own Editor" href="http://joe-editor.sourceforge.net/">joe</a> (<strong>J</strong>oe&#8217;s <strong>O</strong>wn <strong>E</strong>ditor). While this is a nice editor for many users, it is not as familiar to me as using <a title="Home page of the popular vi clone, vim" href="http://www.vim.org/">vim</a>, the opensource vi clone.</p>
<p>Combing through the <a title="The Community Dreamhost Documentation Project" href="http://wiki.dreamhost.com/Main_Page">Dreamhost wiki</a>, I found the line in the <a title="crontab article from Dreamhost wiki" href="http://wiki.dreamhost.com/Crontab">crontab wiki article</a> talking about exporting the editor setting by adding an entry in the .bashrc file in the root of your account.  This information may have been accurate at one point, but now the shell accounts are configured to use <em>.bashrc</em> for the non-interactive logins and to use <em>.bash_profile</em> for the interactive logins.</p>
<p>So to update you editor on your shell account you need to add the following line to the .bash_profile file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">editor</span>=<span style="color: #ff0000;">&quot;/usr/bin/vim&quot;</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">editor</span>=<span style="color: #ff0000;">&quot;/usr/bin/vi&quot;</span></pre></div></div>

<p>If you prefer to use emacs, you can change the line to be:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">editor</span>=<span style="color: #ff0000;">&quot;/usr/bin/emacs&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://arfore.com/2012/02/26/changing-the-default-editor-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resurrecting G3 iBook with Linux</title>
		<link>http://arfore.com/2012/02/26/resurrecting-g3-ibook-with-linux/</link>
		<comments>http://arfore.com/2012/02/26/resurrecting-g3-ibook-with-linux/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 12:00:30 +0000</pubDate>
		<dc:creator>arfore</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://arfore.com/?p=995</guid>
		<description><![CDATA[Old hardware need not be thrown away.  Check out what I did to re-use an old iBook G3 that was destined for the scrapheap at work. <a href="http://arfore.com/2012/02/26/resurrecting-g3-ibook-with-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1008" title="linuxmint" src="http://arfore.com/wp-content/uploads/2012/02/linuxmint-150x150.jpg" alt="" width="150" height="150" />At work we are in the process of sorting through some old books, documents and equipment in the run-up to moving into a new building.</p>
<p>During this process I ran across an old Mac iBook.  The model I found was a stock configuration <a href="http://www.everymac.com/systems/apple/ibook/stats/ibook_800.html">iBook G3/800, model number A1005</a>.  After turning it on I discovered that it was running Mac OS X 10.2.8.  My manager suggested that we just discard it since it was not upgradeable to the latest OS level and since the hardware specs were so low.  Given my penchant for playing with old, sometimes admittedly obsolete hardware, I decided to see what I could do to resurrect the little guy with Linux.</p>
<p>After investigating the various options available, I settled on <a href="http://www.mintppc.org/">Linux MintPPC</a>.  This particular distribution is a port of the <a href="http://www.linuxmint.com/index.php">Linux Mint LXDE</a> project to <a href="http://www.debian.org/ports/powerpc/">Debian/PPC</a>.  The reasons behind this choice were:</p>
<ol>
<li>Use of lightweight X11 window manager, which is important given the paucity of memory and hardware resources in the iBook</li>
<li>This distro is based on the Linux Mint project and Debian/PPC Linux</li>
</ol>
<h2>Installation</h2>
<p>The installation couldn&#8217;t be much easier.  I downloaded the latest Debian/PPC net install iso image, then started up the laptop from the CDROM.  At the boot prompt enter the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">auto <span style="color: #007800;">url</span>=mintppc.org</pre></div></div>

<p>After this it&#8217;s a simple matter of walking through the standard installation process for Debian then letting the network install complete on it&#8217;s own.  After approximately an hour, I had a fully functional Linux install working on the iBook!</p>
<h2>Post-Install Niceties</h2>
<h3>Right Mouse Click</h3>
<p>After the installation was completed and the laptop had rebooted I began a few post-installation configuration changes.  This model iBook didn&#8217;t have the multi-touch capabilities that Apple introduced in later models, so it was limited to left-button only operations unless you add in keyboard modifiers.  The default configuration for the left and middle button operation is to use the F11 and F12 keys to operate the buttons.  Since MintPPC includes the <a href="http://manpages.ubuntu.com/manpages/natty/man8/mouseemu.8.html">mouseemu daemon</a>, I wanted to configure the system to use the Mac OS X configuration of control-click to operate the right mouse button since this was the mode I was used to.  Here&#8217;s how to accomplish that:</p>
<ol>
<li>Open the terminal and become root</li>
<li>cd /etc/default</li>
<li>vi mouseemu (you did backup the original right?)</li>
<li>Add the following to the end of the file:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">RIGHT_CLICK</span>=<span style="color: #ff0000;">&quot;-right 29 272&quot;</span></pre></div></div>

</li>
<li>Restart the mouseemu daemon:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-HUP</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>mouseemu.pid<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

</li>
<li>Enjoy the new configuration!</li>
</ol>
<h3>Turn Off Login Ready Beep</h3>
<p>By default the system is configured to beep when the system is ready for login.  Since I work in a cube farm, I wanted to observe better cube etiquette by disabling this.</p>
<ol>
<li>Open up the Login Window preferences: <strong>Menu -&gt; Preferences -&gt; Login Window</strong></li>
<li>Enter the <em>admin</em> password into the authentication dialog (this is root, not your sudo password!)</li>
<li>Click on the <strong>Accessibility</strong> tab</li>
<li>Uncheck the box next to <strong>Login screen ready</strong></li>
</ol>
<h3>Openbox Configuration Tweaks</h3>
<p>There are a number of configuration tweaks that can be made to the default Openbox setup to improve rendering performance on machines at the low-end of the spectrum.  Here are a few that I have made.</p>
<ol>
<li><strong>Menu -&gt; Preferences -&gt; Openbox Configuration Manager</strong></li>
<li><strong>Appearance</strong></li>
<ol>
<li>Uncheck <em>Animate iconify and restore</em></li>
</ol>
<li><strong>Move &amp; Resize</strong></li>
<ol>
<li>Uncheck <em>Update the window contents while resizing</em></li>
</ol>
<li><strong>Desktops</strong> (very subjective change with negligible performance benefit)</li>
<ol>
<li>Set <em>Number of desktops</em> to 2</li>
</ol>
</ol>
<div>I am still working on the final configuration to fit the hardware footprint on the iBook G3, so there will be more updates along these lines soon.</div>
]]></content:encoded>
			<wfw:commentRss>http://arfore.com/2012/02/26/resurrecting-g3-ibook-with-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Leftover Breakfast Hash</title>
		<link>http://arfore.com/2012/02/25/leftover-breakfast-hash/</link>
		<comments>http://arfore.com/2012/02/25/leftover-breakfast-hash/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 16:47:32 +0000</pubDate>
		<dc:creator>arfore</dc:creator>
				<category><![CDATA[food]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://arfore.com/?p=986</guid>
		<description><![CDATA[For those of you that have children I am sure you have made hamburgers and tatertots at least once for lunch or dinner.  In my experience, unless your kids are really ravenous, you have had some of these leftover after &#8230; <a href="http://arfore.com/2012/02/25/leftover-breakfast-hash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For those of you that have children I am sure you have made hamburgers and tatertots at least once for lunch or dinner.  In my experience, unless your kids are really ravenous, you have had some of these leftover after the meal as well.  As with any leftovers, the decision then becomes: do I throw them away or save them for another meal?</p>
<p>Recently I was faced with this same question.  Of course, the answer was pretty easy for me, I saved the leftovers.  I know that many people would have just thrown the food away.  In fact, according to a 2004 study by Timothy Jones of the University of Arizona in Tucson, 40-50% of the food harvested in the United States never gets eaten[1].  This statistic is pretty unconscionable given that the UN Food and Agriculture Organization reported that in 2010 there were 925 million hungry people in the world.[2]</p>
<p>This morning, I got up and looked through the pantry and refrigerator for something to cook for breakfast.  I realized that I had a plastic container half full of leftover tatertots as well as two leftover hamburger patties that needed to be eaten.  So I made some hash.</p>
<h2>Ingredients</h2>
<ul>
<li>two hamburger patties</li>
<li>leftover tatertots</li>
<li>2 tbsp. olive oil</li>
<li>salt and pepper</li>
<li>garlic powder</li>
<li>3/4 cup of water</li>
</ul>
<h2>Process</h2>
<div>
<ol>
<li>Put two tablespoons of olive oil in a skillet to heat</li>
<li>Chop the tatertots into small pieces</li>
<li>Cube the hamburger patties</li>
<li>Add the minced tatertots into the oil and begin re-browning them</li>
<li>Add the cubed hamburger patties</li>
<li>Add salt, pepper and garlic powder to taste</li>
<li>As the mixture heats and browns add water slowly to add moisture back to the food that was lost during refrigeration</li>
<li>Once thoroughly heated, remove from skillet and enjoy!</li>
</ol>
<h2>Notes</h2>
<p>If you have some onions or peppers, you could add them as well for even more flavor.  Also, for a Southwestern flair you could add leftover corn, tomatoes and chili peppers.</p>
<h2>References</h2>
<ol>
<li><a title="Study: Nation Wastes Nearly Half Its Food" href="http://uanews.org/node/10448">Study: Nation Wastes Nearly Half Its Food.</a> <a title="University of Arizona News" href="http://uanews.org/">UA News</a>, website.</li>
<li><a title="2012 World Hunger and Poverty Facts and Statistics" href="http://www.worldhunger.org/articles/Learn/world%20hunger%20facts%202002.htm#Number_of_hungry_people_in_the_world">2012 World Hunger and Poverty Facts and Statistics.</a> <a title="World Hunger Education Service" href="http://www.worldhunger.org/">World Hunger Education Service</a>, website.</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://arfore.com/2012/02/25/leftover-breakfast-hash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

