<?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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>diminishing.org</title>
	
	<link>http://diminishing.org</link>
	<description>fading out of existence</description>
	<lastBuildDate>Tue, 23 Jun 2009 14:29:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/diminishing" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Problems, difficulties and frustrations</title>
		<link>http://feedproxy.google.com/~r/diminishing/~3/CUUg_lPSq_o/</link>
		<comments>http://diminishing.org/?p=42#comments</comments>
		<pubDate>Tue, 09 Jun 2009 02:02:25 +0000</pubDate>
		<dc:creator>Michael Guterl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[simplicity]]></category>

		<guid isPermaLink="false">http://diminishing.org/?p=42</guid>
		<description><![CDATA[After reading The Simplest Thing that Could Possibly Work I couldn&#8217;t stop thinking about how Ward Cunningham describes the difference between problems and difficulties.
A friend of mine once said that there are problems and there are difficulties. A problem is  something you savor. You say, &#8220;Well that&#8217;s an interesting problem. Let me think about [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://www.artima.com/intv/simplestP.html">The Simplest Thing that Could Possibly Work</a> I couldn&#8217;t stop thinking about how Ward Cunningham describes the difference between problems and difficulties.</p>
<blockquote><p>A friend of mine once said that there are problems and there are difficulties. A problem is  something you savor. You say, &#8220;Well that&#8217;s an interesting problem. Let me think about  that problem a while.&#8221; You enjoy thinking about it, because when you find the solution to  the problem, it&#8217;s enlightening.</p>
<p>And then there are difficulties. Computers are famous for difficulties. A difficulty is just a  blockage from progress. You have to try a lot of things. When you finally find what  works, it doesn&#8217;t tell you a thing. It won&#8217;t be the same tomorrow. Getting the computer to  work is so often dealing with difficulties.</p></blockquote>
<p>As a software developer I love to solve problems, yet I become frustrated when dealing with difficulties. The more I think about it, I feel like frustration is a better word than difficulty.  In fact, one of the definitions for frustration from Apple&#8217;s Dictionary is:</p>
<blockquote><p>frustration |frəˈstrā sh ən|</p>
<p>the prevention of the progress, success, or fulfillment of something</p></blockquote>
<p>I don&#8217;t mind slowing down, but I hate stopping progress.  As I work through practicing TDD/BDD, I find that being able to slow down and take baby steps allows me to reduce the number of frustrations in my day.  I shudder any time I have to touch code without tests/specs because I am afraid I&#8217;m going to break something and not know it.  I&#8217;m not sure how I lived without tests, I know I spent a lot of time clicking around doing testing in the browser.</p>
<img src="http://feeds.feedburner.com/~r/diminishing/~4/CUUg_lPSq_o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://diminishing.org/?feed=rss2&amp;p=42</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://diminishing.org/?p=42</feedburner:origLink></item>
		<item>
		<title>Saving time [and sanity] with AppleScript</title>
		<link>http://feedproxy.google.com/~r/diminishing/~3/BDvberX47f0/</link>
		<comments>http://diminishing.org/?p=20#comments</comments>
		<pubDate>Sun, 31 May 2009 16:15:22 +0000</pubDate>
		<dc:creator>Michael Guterl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://diminishing.org/?p=20</guid>
		<description><![CDATA[Depending where I am at I have three possible monitor configurations for my MacBook.

External display only
Laptop display only
External and laptop display

Each time I change between these three workspaces I have to manually move the windows to the correct position for that particular configuration.  This can become extremely annoying, especially when you&#8217;re as OCD as I [...]]]></description>
			<content:encoded><![CDATA[<p>Depending where I am at I have three possible monitor configurations for my MacBook.</p>
<ol>
<li>External display only</li>
<li>Laptop display only</li>
<li>External and laptop display</li>
</ol>
<p>Each time I change between these three workspaces I have to manually move the windows to the correct position for that particular configuration.  This can become extremely annoying, especially when you&#8217;re as OCD as I am.  I can&#8217;t even contemplate how much time I&#8217;ve wasted putting each window in its &#8220;perfect&#8221; position&#8230;</p>
<p>After many searches I came across exactly what I was looking for: <a href="http://www.jonathanlaliberte.com/2009/02/04/restore-previous-display-window-positions-applescript/">http://www.jonathanlaliberte.com/2009/02/04/restore-previous-display-window-positions-applescript</a></p>
<p><strong>Usage</strong></p>
<ol>
<li>Download the script <a href="http://diminishing.org/wp-content/uploads/2009/05/home-layout.scpt">here</a></li>
<li>Open it with Script Editor</li>
<li>Remove references to applications you aren&#8217;t using</li>
<li>Save as an application with the name of the layout in the Applications fold</li>
<li>Use Spotlight to run the app</li>
</ol>
<p>I use the same script for each layout, I just save it under a different name.  <strong>Problems</strong></p>
<ol>
<li>Certain applications don&#8217;t seem to work (TweetDeck)</li>
<li>Applications with child windows require slightly more work (see Firefox example code)</li>
<li>The application has to be running or it errors</li>
</ol>
<p><strong>Todo</strong></p>
<ol>
<li>Start the application if it is not running</li>
<li>Loop through all open applications eliminating manual configuration</li>
</ol>
<p><strong>Source</strong></p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">property</span> numFFWindows : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> FFPos : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> FFSize : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> numTermWindows : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> TermPos : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> TermSize : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> iTunesPos : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> iTunesSize : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> EmacsPos : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> EmacsSize : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> TweetDeckPos : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> TweetDeckSize : <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
<span style="color: #ff0033; font-weight: bold;">property</span> iCalPos : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> iCalSize : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> AdiumContactsPos : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> AdiumContactsSize : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> AdiumIMSize : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> AdiumIMPos : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> OFPos : <span style="color: #000000;">0</span>
<span style="color: #ff0033; font-weight: bold;">property</span> OFSize : <span style="color: #000000;">0</span>
&nbsp;
<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Set Window Position or Save Window Position?&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Restore&quot;</span>, <span style="color: #009900;">&quot;Save&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #009900;">&quot;Restore&quot;</span>
<span style="color: #ff0033; font-weight: bold;">set</span> theResult <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">result</span>
&nbsp;
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;System Events&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>button returned <span style="color: #ff0033; font-weight: bold;">of</span> theResult <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #009900;">&quot;Restore&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
		<span style="color: #808080; font-style: italic;">-- Restore Settings</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>numFFWindows <span style="color: #000000;">&amp;</span>gt; <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Firefox&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> numFFWindows
					<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> FFPos<span style="color: #000000;">&#41;</span>
					<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> FFSize<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>numTermWindows <span style="color: #000000;">&amp;</span>gt; <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Terminal&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> numTermWindows
					<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> TermPos<span style="color: #000000;">&#41;</span>
					<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> TermSize<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>iTunesPos <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;iTunes&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> iTunesPos
				<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> iTunesSize
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>EmacsPos <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Emacs&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> EmacsPos
				<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> EmacsSize
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>iCalPos <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;iCal&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> iCalPos
				<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> iCalSize
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>OFPos <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;OmniFocus&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> OFPos
				<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> OFSize
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>AdiumContactsPos <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">0</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Adium&quot;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> AdiumContactsPos
				<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> AdiumContactsSize
				<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">count</span> windows<span style="color: #000000;">&#41;</span>
					<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
						<span style="color: #ff0033; font-weight: bold;">set</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> AdiumIMPos
						<span style="color: #ff0033; font-weight: bold;">set</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i <span style="color: #ff0033; font-weight: bold;">to</span> AdiumIMSize
					<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
				<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
&nbsp;
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
&nbsp;
	<span style="color: #ff0033; font-weight: bold;">else</span>
		<span style="color: #808080; font-style: italic;">-- Save Settings</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Firefox&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> numFFWindows <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">count</span> windows
			<span style="color: #ff0033; font-weight: bold;">set</span> FFPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> FFSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> numFFWindows
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> FFPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> FFSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Terminal&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> numTermWindows <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">count</span> windows
			<span style="color: #ff0033; font-weight: bold;">set</span> TermPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> TermSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> numTermWindows
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> TermPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> TermSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;iTunes&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> iTunesPos <span style="color: #ff0033; font-weight: bold;">to</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> iTunesSize <span style="color: #ff0033; font-weight: bold;">to</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Emacs&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> EmacsPos <span style="color: #ff0033; font-weight: bold;">to</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> EmacsSize <span style="color: #ff0033; font-weight: bold;">to</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;iCal&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> iCalPos <span style="color: #ff0033; font-weight: bold;">to</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> iCalSize <span style="color: #ff0033; font-weight: bold;">to</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;OmniFocus&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> OFPos <span style="color: #ff0033; font-weight: bold;">to</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> OFSize <span style="color: #ff0033; font-weight: bold;">to</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #000000;">1</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> process <span style="color: #009900;">&quot;Adium&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> AdiumContactsPos <span style="color: #ff0033; font-weight: bold;">to</span> position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> AdiumContactsSize <span style="color: #ff0033; font-weight: bold;">to</span> size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> AdiumIMPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> AdiumIMSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>
			<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">count</span> windows<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">window</span> <span style="color: #009900;">&quot;Contacts&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
					<span style="color: #ff0033; font-weight: bold;">set</span> AdiumIMPos <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>position <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
					<span style="color: #ff0033; font-weight: bold;">set</span> AdiumIMSize <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>size <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">window</span> i<span style="color: #000000;">&#41;</span>
				<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/diminishing/~4/BDvberX47f0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://diminishing.org/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://diminishing.org/?p=20</feedburner:origLink></item>
		<item>
		<title>Ubuntu 8.10 Server Setup (Rails)</title>
		<link>http://feedproxy.google.com/~r/diminishing/~3/-nfWW6Q4OzA/</link>
		<comments>http://diminishing.org/?p=9#comments</comments>
		<pubDate>Sun, 19 Apr 2009 19:02:51 +0000</pubDate>
		<dc:creator>Michael Guterl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://diminishing.org/?p=9</guid>
		<description><![CDATA[I spent the first half of today moving my server from Debian 4.0 to Ubuntu 8.10.  It was a fairly painless process and I decided to record the route I took for configuring everything.  There are many options out there for quickly getting a Rails environment up on Ubuntu and this is a conglomeration of [...]]]></description>
			<content:encoded><![CDATA[<p>I spent the first half of today moving my server from Debian 4.0 to Ubuntu 8.10.  It was a fairly painless process and I decided to record the route I took for configuring everything.  There are many options out there for quickly getting a Rails environment up on Ubuntu and this is a conglomeration of many ideas.</p>
<p>You can either continue reading or view the <a href="http://gist.github.com/98172">gist</a> directly.</p>
<p><span id="more-9"></span></p>
<p><script src="http://gist.github.com/98172.js"></script></p>
<img src="http://feeds.feedburner.com/~r/diminishing/~4/-nfWW6Q4OzA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://diminishing.org/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://diminishing.org/?p=9</feedburner:origLink></item>
		<item>
		<title>Revamped blog</title>
		<link>http://feedproxy.google.com/~r/diminishing/~3/Wkp4lw4AReo/</link>
		<comments>http://diminishing.org/?p=3#comments</comments>
		<pubDate>Sun, 19 Apr 2009 18:24:53 +0000</pubDate>
		<dc:creator>Michael Guterl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://diminishing.org/?p=3</guid>
		<description><![CDATA[I&#8217;ve changed my blog from mephisto to wordpress.  I decided to be really lazy and not migrate any of the content from the mephisto blog.  Oh well, there wasn&#8217;t that much useful stuff there anyway&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve changed my blog from mephisto to wordpress.  I decided to be really lazy and not migrate any of the content from the mephisto blog.  Oh well, there wasn&#8217;t that much useful stuff there anyway&#8230;</p>
<img src="http://feeds.feedburner.com/~r/diminishing/~4/Wkp4lw4AReo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://diminishing.org/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://diminishing.org/?p=3</feedburner:origLink></item>
	</channel>
</rss>
