<?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>Journal of a Maker</title>
	<atom:link href="http://www.warrenmoore.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warrenmoore.net/blog</link>
	<description>a blog by Warren C. Moore</description>
	<lastBuildDate>Thu, 28 Jan 2010 02:07:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone SDK: Making Your AudioSession Routes Play Nicely with the Vibrate Switch</title>
		<link>http://www.warrenmoore.net/blog/2010/01/27/making-your-audiosession-routes-play-nicely-with-the-vibrate-switch/</link>
		<comments>http://www.warrenmoore.net/blog/2010/01/27/making-your-audiosession-routes-play-nicely-with-the-vibrate-switch/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 02:07:57 +0000</pubDate>
		<dc:creator>warren</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.warrenmoore.net/blog/?p=35</guid>
		<description><![CDATA[So, you&#8217;re writing an awesome multimedia application for the iPhone. Everything&#8217;s going swimmingly, and you even have some nice animation effects for when the iPhone is plugged into an external accessory, just like the iPod app:

- (void)toggleVolumeDisplay: (BOOL)show
{
	BOOL isShowing = (volumeSlider.alpha &#62; 0.0);
	if( isShowing &#38;&#38; !show )
	{
		// Animate volume slider down and out, while animating [...]]]></description>
			<content:encoded><![CDATA[<p>So, you&#8217;re writing an awesome multimedia application for the iPhone. Everything&#8217;s going swimmingly, and you even have some nice animation effects for when the iPhone is plugged into an external accessory, just like the iPod app:</p>
<pre class="brush: objc;">
- (void)toggleVolumeDisplay: (BOOL)show
{
	BOOL isShowing = (volumeSlider.alpha &gt; 0.0);
	if( isShowing &amp;&amp; !show )
	{
		// Animate volume slider down and out, while animating play controls to center of view
	}
	else if( !isShowing &amp;&amp; show )
	{
		// Animate volume slider in, while animating play controls up to the top of the view
	}
}
</pre>
<p>Or something like that. That&#8217;s purely to illustrate what you might be doing in response to a run-of-the-mill hardware route change (headphones plugged in, connected to speaker dock, etc.), which of course you&#8217;re detecting like this:</p>
<pre class="brush: objc;">
	// When the view is loaded
	AudioSessionAddPropertyListener( kAudioSessionProperty_AudioRouteChange, RouteChangeListener, (void *)self);

	// Called later as part of your listener callback
	CFStringRef state = nil;
	UInt32 propertySize = sizeof(CFStringRef);
	OSStatus result = AudioSessionGetProperty( kAudioSessionProperty_AudioRoute, &amp;propertySize, &amp;state);
	if( result == kAudioSessionNoError)
	{
		if( CFStringGetLength(state) &gt; 0)
		{
			if ([(NSString *)state compare:@&quot;LineOut&quot;] == NSOrderedSame) // only special case we care about
				shouldShowVolumeControl = NO;
		}
		else
			; // vibrate switch engaged
	}
	else
	{
		if (result == kAudioSessionUnsupportedPropertyError)
			shouldShowVolumeControl = NO; // probably simulator
		else
			; // error encountered
	}
</pre>
<p>This has been documented in <a href="http://developer.apple.com/iphone/library/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Cookbook/Cookbook.html">plenty</a> of <a href="http://stackoverflow.com/questions/833304/how-to-detect-iphone-is-on-silent-mode">places</a>.<br />
<span id="more-35"></span><br />
Then, you flip the Ring/Vibrate switch and everything grinds to a halt. Your route change callback doesn&#8217;t get called, and now your <a href="http://developer.apple.com/IPhone/library/documentation/MediaPlayer/Reference/MPVolumeView_Class/Reference/Reference.html">MPVolumeView</a> declares to the world that the volume isn&#8217;t available. <em>Of course</em> it&#8217;s not available. That&#8217;s why we&#8217;re going to all this trouble &#8211; to <strong>hide the volume slider when we aren&#8217;t permitted to change it!</strong></p>
<p>After a long time pondering this problem (it&#8217;s been on the backburner for about a week), I eventually realized that the route change callback might be dependent on the so-called &#8220;<strong>category</strong>&#8221; of the AudioSession. For example, if your app just plays alert sounds occasionally, you (probably) don&#8217;t want them sounding when the phone is set to vibrate. On the other hand, it&#8217;s critical for audio players like the iPod app to be able to play even when in vibrate mode. So, how do we go about changing our session category and getting those mysteriously absent route change callbacks? Like so:</p>
<pre class="brush: objc;">
	UInt32 audioCategory = kAudioSessionCategory_MediaPlayback;
	AudioSessionSetProperty( kAudioSessionProperty_AudioCategory, sizeof(UInt32), &amp;audioCategory);
</pre>
<p>This tells the AudioSession that we want to be regarded as a &#8220;<strong>media playback</strong>&#8221; app, rather than, for example, an &#8220;ambient sound&#8221; app. Now, regardless of the position of the vibrate switch, we get notifications when our iPhone is docked and undocked from external accessories, and we can animate our volume controls as we desired.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.warrenmoore.net/blog/2010/01/27/making-your-audiosession-routes-play-nicely-with-the-vibrate-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Push</title>
		<link>http://www.warrenmoore.net/blog/2010/01/26/push/</link>
		<comments>http://www.warrenmoore.net/blog/2010/01/26/push/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 16:42:38 +0000</pubDate>
		<dc:creator>warren</dc:creator>
				<category><![CDATA[Freelancing]]></category>

		<guid isPermaLink="false">http://www.warrenmoore.net/blog/?p=25</guid>
		<description><![CDATA[For the past year, I&#8217;ve been employed by 352 Media Group, based first in Gainesville, FL and then in Atlanta GA.
Recently, I decided that the time had come for me to try to make it as a freelancer. I&#8217;m not the kind of person who thinks everyone should follow the path of self-employment. On the [...]]]></description>
			<content:encoded><![CDATA[<p>For the past year, I&#8217;ve been employed by 352 Media Group, based first in Gainesville, FL and then in Atlanta GA.</p>
<p>Recently, I decided that the time had come for me to try to make it as a freelancer. I&#8217;m not the kind of person who thinks everyone should follow the path of self-employment. On the other hand, there comes a point in some of our lives where the idea of working for someone else is so distasteful that the inevitable pain and isolation that comes from going it alone is actually attractive.<span id="more-25"></span></p>
<p>In other words, it isn&#8217;t all roses. I&#8217;m extremely optimistic about what the future holds. I know that my skills are valuable once they get in the right hands. But for the past year, I&#8217;ve had people above and around me figuring out how to distribute my skills, and now that&#8217;s all on me. Project management, IT, business development, marketing, public relations, HR&#8230; they all just collapsed into the singular incomprehensible mass that now rests before me.</p>
<p>Back in August of 2007, I had this to say about my expected trajectory. I&#8217;m reposting it here, unedited, because I think it&#8217;s important to remember that I was as clueless then as I feel now, and things have gone pretty well so far.</p>
<blockquote><p>One of the most striking patterns that has shaped my life is the exponential feedback of intentionality. What I mean is, I seem to be eerily good at making things happen that I set my mind to. Before I ever spoke to Microsoft at the Fall 2006 job fair at UF, I wrote a Post-It note and stuck it to my mirror: &#8220;I will work for Microsoft.&#8221;</p>
<p>Several months later, I was. Before that, I had opportunities in tech support, web application development, and game development that were greatly aided by just thinking hard about what I wanted. </p>
<p>The key to manifesting intentions is to let your subconscious mind discover opportunities for you, because you could easily burn 25 hours a day looking actively for them. As long as you keep your goals (which should take no more than about 20 words to state) in your mind at all times, following your &#8220;heart&#8221; (really your mind giving you hints about the correct choice of action) will cause you to converge on your goals.</p>
<p>What happens when you don&#8217;t keep specific goals in mind? You will consistently converge on whatever occupies your mind for the moment, or on nothing at all. One way or another, you&#8217;ll notice that you spend a lot of energy just getting by.</p>
<p><strong>I can&#8217;t conceive how many of my peers</strong> accept the reality that shortly (in about 10 months for some of us), they <strong>will be sitting at desks in whatever big company pities them with an entry-level position</strong> and 3 days of vacation doing menial coding tasks that amount to a piss-take in the ocean of personality-free software.</p>
<p>This is not the corporate America of your father. $30 a hour is not enough for me. $200 an hour isn&#8217;t enough either. Not if I give up control. Not if I&#8217;m beholden to someone whose seniority will always dictate their position (above me) in the org chart.</p>
<p>These are the reasons I will not accept a safety net once I graduate. It&#8217;s all or nothing, because failure is never final. Failure is just one more motivation to try harder. The alternative to trying again after failure is death.</p>
<p>So, come what may. King me or kill me.</p></blockquote>
<p>Truer words. But words without commitment or substance. So, the fresh realization is that there is no substitute for cutting the cord for real. For shipping. For taking clients and failing or succeeding on my own merits and not within someone else&#8217;s support structure. It took awhile to get here, but here goes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.warrenmoore.net/blog/2010/01/26/push/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Make Terminal Follow Aliases Like Symlinks</title>
		<link>http://www.warrenmoore.net/blog/2010/01/09/make-terminal-follow-aliases-like-symlinks/</link>
		<comments>http://www.warrenmoore.net/blog/2010/01/09/make-terminal-follow-aliases-like-symlinks/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 21:34:49 +0000</pubDate>
		<dc:creator>warren</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.warrenmoore.net/blog/?p=22</guid>
		<description><![CDATA[Okay, so you&#8217;re spelunking around in Mac OS using Terminal. You try to &#8216;cd&#8217; into a directory only to be told that what you&#8217;re trying to get to &#8220;is not a directory.&#8221; Then you remember that the target directory is actually a shortcut that you created with Finder. It looks just link a symlink in [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="font-style: normal;">Okay, so you&#8217;re spelunking around in Mac OS using Terminal. You try to &#8216;cd&#8217; into a directory only to be told that what you&#8217;re trying to get to &#8220;is not a directory.&#8221; Then you remember that the target directory is actually a shortcut that you created with Finder. It looks just link a symlink in Finder, so shouldn&#8217;t it act like one in Terminal?</span></em></p>
<p><em> </em></p>
<p><span style="font-style: normal;">Unfortunately, in OS X, aliases are treated differently by the command line than symlinks. In particular, they won&#8217;t be followed by the &#8220;cd&#8221; command, leading to your present frustration. Fortunately, with a little elbow grease, you can patch up your shell and be on your merry way.<span id="more-22"></span></span></p>
<p><span style="font-style: normal;">This is a two-part process requiring a little familiarity with gcc and bash, but I&#8217;ll try to make it as simple as possible. Firstly, you need this file: </span><a title="getTrueName.c" href="http://www.macosxhints.com/dlfiles/getTrueName.txt" target="_blank"><span style="font-style: normal;">getTrueName.c</span></a><span style="font-style: normal;">. This file was created by Thos Davis and is licensed under the GPLv2. Save it anywhere, then compile it with the following command:</span></p>
<pre><span style="font-style: normal;">gcc -o getTrueName -framework Carbon getTrueName.c</span></pre>
<p><span style="font-style: normal;">This will create the &#8216;getTrueName&#8217; executable in the same directory as the source. You can add it to your PATH, or just copy it directly to /usr/bin so it&#8217;s easy to access.</span></p>
<p><span style="font-style: normal;">Interestingly, when Terminal opens a new shell, .bashrc is not executed as you might expect. Instead, under the login shell, .bash_profile is executed. So, add the following to .bash_profile in your Home directory. You might need to create it first; it isn&#8217;t there by default.</span></p>
<pre class="brush: bash;">function cd {
  if [ ${#1} == 0 ]; then
    builtin cd
  elif [ -d &quot;${1}&quot; ]; then
    builtin cd &quot;${1}&quot;
  elif [[ -f &quot;${1}&quot; || -L &quot;${1}&quot; ]]; then
    path=$(getTrueName &quot;$1&quot;)
    builtin cd &quot;$path&quot;
  else
    builtin cd &quot;${1}&quot;
  fi
}
</pre>
<p><span style="font-style: normal;">Effectively, this looks for Finder aliases and resolves them before deferring to the builtin cd command. Append it to your .bash_profile, then either execute it or restart Terminal for the changes to take effect. Now you can cd to Finder aliases within Terminal and have them treated just like symlinks. Just like it should be.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.warrenmoore.net/blog/2010/01/09/make-terminal-follow-aliases-like-symlinks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating Value at Starbucks</title>
		<link>http://www.warrenmoore.net/blog/2008/10/28/creating-value-at-starbucks/</link>
		<comments>http://www.warrenmoore.net/blog/2008/10/28/creating-value-at-starbucks/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 20:47:05 +0000</pubDate>
		<dc:creator>warren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.warrenmoore.net/blog/?p=10</guid>
		<description><![CDATA[A recent article by Tom Davenport on the Harvard Business Publishing metablog has me thinking. Entitled &#8220;Is Web 2.0 Living on Thin Air?,&#8221; the post asks whether all us hipster Starbucks jet-setting metrosapiens are really creating value, or just participating in a &#8220;fluffy&#8221; game of social media-powered self-delusion. I think it&#8217;s the wrong question to [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://discussionleader.hbsp.com/davenport/2008/10/is_web_20_living_on_thin_air.html">recent article</a> by Tom Davenport on the Harvard Business Publishing metablog has me thinking. Entitled &#8220;Is Web 2.0 Living on Thin Air?,&#8221; the post asks whether all us hipster Starbucks jet-setting metrosapiens are really creating value, or just participating in a &#8220;fluffy&#8221; game of social media-powered self-delusion. I think it&#8217;s the wrong question to ask, but because Davenport implicitly answers another question, this present post is vindicated and the fundamental issue at hand is revealed as both beginning and end. <a href="http://www.imdb.com/name/nm0048127/">&lt;/Helmut &#8220;The Architect&#8221; Bakaitis&gt;</a></p>
<p>Concordantly, allow me to ask the question that Davenport really wants to ask: Regardless of the degree of engagement in often frivolous social networking activities (i.e., poke wars, media tagging, and adding edges to the social graph just for the sake of increasing your friend count), who is creating value and in what is that value based?</p>
<p>Speaking as an aspiring coffee shop hipster creative, I can tell you that when I&#8217;m sitting down with a Grande Pike Place drip brew, I&#8217;m not going to be spending much time on facebook; I&#8217;m going to be spending time slicing .PSDs, writing CSS, and scripting PHP and jQuery, or my language du jour. </p>
<p>I remember reading a much more conservative piece by an individual I could only imagine being the type of neo-maxi-zoom-dweebie who could make a career of doling out largely vapid and condescending advice. Substantial Googling and Snopesing turned up Charles J. Sykes and the relevant quotation: &#8220;Television is <strong>not</strong> real life. In real life people actually have to leave the coffee shop and go to jobs.&#8221; <a href="http://www.the50rules.com/Bio/tabid/3402/Default.aspx">Surely enough, he&#8217;s at it again</a>. Suffice to say, this kind of polemic fails to inspire me. I guess my necktie is a little too loose for me to get the point.</p>
<p>It turns out that it&#8217;s possible to create value darn-near anywhere these days. I&#8217;m not saying every job is implicitly mobile; vanishingly few are. But for those of us knowledge workers who produce the technology that makes everyone elses&#8217; lives richer and easier, a favorite coffee shop can, as in the vision for Starbucks envisioned by Howard Shultz, provide a comfortable &#8220;other place,&#8221; a sacred venue away from the distractions of home where, on the best days, everything but the workpiece fades into the background and we&#8217;re cruising along in the zone of maximum productivity.</p>
<p>In short, the value we produce takes the form of applications and systems that make it easier for people to do whatever it is they do. So indeed, getting overly engaged in social networking can be a big drain on personal productivity. But we shouldn&#8217;t confuse such value-sapping minutiae with the value-creating work of producing sites that encourage engagement, including, yes, the creation of social media sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.warrenmoore.net/blog/2008/10/28/creating-value-at-starbucks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Action Day 08: Moving Slowly on Poverty</title>
		<link>http://www.warrenmoore.net/blog/2008/10/16/moving-slowly-on-poverty/</link>
		<comments>http://www.warrenmoore.net/blog/2008/10/16/moving-slowly-on-poverty/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 06:38:32 +0000</pubDate>
		<dc:creator>warren</dc:creator>
				<category><![CDATA[Global-Reach]]></category>

		<guid isPermaLink="false">http://www.warrenmoore.net/blog/?p=3</guid>
		<description><![CDATA[In the last hour or so of the day (on the West Coast, at least), and even though this site is still under very active construction, I wanted to drop a quick post for Blog Action Day &#8216;08. The topic of the year is poverty.
As I am a white Anglo-Saxon male who grew up, if [...]]]></description>
			<content:encoded><![CDATA[<p>In the last hour or so of the day (on the West Coast, at least), and even though this site is still under very active construction, I wanted to drop a quick post for Blog Action Day &#8216;08. The topic of the year is poverty.</p>
<p>As I am a white Anglo-Saxon male who grew up, if not in, at least adjacent to, the suburbs, most people would assume that my experience with poverty is minimal. They would be correct. I have never known clawing hunger for days on end; have never lacked a roof, four walls and a carpeted floor; have never been the subject of an exposé on wretched conditions in the inner city nor a child with baleful eyes who could get by with a mere 75 cents a day.</p>
<p>No, being in the first world, I like to imagine that I can get by, due to my place of privilege in Maslow&#8217;s hierarchy, on just my principles. One of my friends recently posted on facebook a quotation by Protestant minister William J. H. Boetcker, from which I take the following excerpts: &#8220;<em>You cannot strengthen the weak by weakening the strong[...]</em>&#8221; and &#8220;<em>[</em><em>You] cannot help men permanently by doing for them what they can and should do for themselves.</em>&#8221; As much as this sentiment reeks of the hackneyed arguments people make for trickle-down effects between classes, there is something to be taken from it, and it has everything to do with urgency.<span id="more-3"></span></p>
<p>Obviously, the time and money dumped into efforts to &#8220;elevate&#8221; the third world has benefits, up to and including saving lives that would otherwise be lost. But is this naive approach adequate when the very lives that are saved lack the infrastructure, knowledge, and other resources necessary to perpetuate it? This is what Boetcker meant when he said, &#8220;you cannot help the poor by destroying the rich.&#8221; If all the wealth generated by the top 3% of earners in the world went to feed, clothe and shelter children in states of poverty, we would have not one but two destitute generations as a result.</p>
<p>The good news is that &#8220;elevation&#8221; doesn&#8217;t have to entirely recapitulate the history of the Western world. We routinely design and commoditize hardware that is decades ahead of that available in the poorest areas abroad, which means that the adoption cost in those areas is a tiny fraction of the initial development cost &#8211; yet another instance of the way in which the pricipal of a personal investment can be multiplied many times over.</p>
<p>So, in moving on poverty, the answer is not strictly an influx of capital. Obviously large humanitarian organizations must be aware of this at some level, because their operations are not as naive as the base case described above. But the broader population should be grounded in firmer realities than the swollen bellies of starving children half-way around the globe. These images are tragic and unsettling, and run the risk of inducing despair or a kind of detached revulsion; instead, where is our collective plan for introducing infrastructure and slowly burning poverty up in the flames of progress and accrual of benefits from both social and monetary investments?</p>
<p>It&#8217;s a humanity-sized goal, but for as slow as it would seem to be, it&#8217;s the fastest way to see the payoff we&#8217;d all love to see.</p>
<p><script src="http://blogactionday.org/js/ef65938c828704a767ef0a31ffba4c2cb69d3b8c"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.warrenmoore.net/blog/2008/10/16/moving-slowly-on-poverty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
