<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com) on Thu, 20 Jun 2013 05:24:14 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Blog</title><link>http://www.littlemustard.com/blog/</link><description></description><lastBuildDate>Sun, 16 Jun 2013 05:20:36 +0000</lastBuildDate><copyright></copyright><language>en-US</language><generator>Squarespace V5 Site Server v5.13.166 (http://www.squarespace.com)</generator><item><title>Removing a Shared Branch No Longer In Use</title><category>git</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Mon, 05 Nov 2012 05:31:15 +0000</pubDate><link>http://www.littlemustard.com/blog/2012/11/5/removing-a-shared-branch-no-longer-in-use.html</link><guid isPermaLink="false">582674:6744011:30304026</guid><description><![CDATA[<p>When I first wrote my <a href="http://www.littlemustard.com/blog//2011/5/1/sharing-git-branches-remotely.html">post on sharing branches</a>, there was something I did not talk about. Namely, how to remove a branch once you're done sharing. (I'll confess I didn't write about it, because at the moment I had not found a way of doing it properly)</p>

<p>But now, thanks to <a href="http://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-both-locally-and-in-github">this nice stackflow post</a>, I now know how to do it.</p>

<p>First of all, there are two different scenarios. The first case is when the collaborator you were sharing with, no longer needs their copy of your branch. They might want to remove the branch to tidy up their local repo. This can be done with the following command:</p>

<pre><code>git branch -d &lt;branch&gt;
</code></pre>

<p>or to follow in the steps of my old example:</p>

<pre><code>git branch -d superCoolFeature
</code></pre>

<p>The lower case -d option will only remove the branch if the branch has not been merged or somehow saved. You can force the removal with the upper case -D option if you're feeling more forceful.</p>

<p>The second case is when you are done using and sharing your branch. You probably have concluded whatever you were trying to do with this branch and merged the result back into master. At this point you might want to remove the temporary branch not only locally, but remotely as well. That can be done with:</p>

<pre><code>git push origin --delete &lt;branchName&gt;
</code></pre>

<p>or again, in the case of my example:</p>

<pre><code>git push origin --delete superCoolFeature
</code></pre>

<p>And the branch should now be gone from the remote repo. To remove it from the local repo, do the same "branch -d" step as your collaborator did in the first case. Needless to say, please make sure you only erase a branch you were done with.</p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-30304026.xml</wfw:commentRss></item><item><title>triggerGreppy</title><category>python</category><category>scripting</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Wed, 25 May 2011 01:03:15 +0000</pubDate><link>http://www.littlemustard.com/blog/2011/5/24/triggergreppy.html</link><guid isPermaLink="false">582674:6744011:11567120</guid><description><![CDATA[<p>For the longest time, I have been meaning to brush up on Python. Unfortunately, 
* I haven't had much need for scripts lately.
* When I have needed a script, I've needed it <em>pronto!</em> No time to learn a new language.</p>

<p>The problem is I'm lazy and I don't really want to read a book or website on it. I just want to solve some little problem I might have that needed scripting. You know, just take a sample script and play with it to do something useful to me.</p>

<p>So... after lamenting about this, my friend <a href="http://mikeash.com/" title="Mike">Mike</a> sent me a sample python script to play with. The sample code he sent me was basically a simple grep clone. </p>

<p>Aha!</p>

<p>I have always wanted a grep-like tool that gave me more context. I know that you can tell grep itself to provide more context, but as far as I know, you can only specify the number of lines before and after your match you want included. This is realistically all one might need for most cases, but I wanted more.</p>

<p>So that is what me new script does. <a href="https://gist.github.com/3621050" title="triggerGreppy">(You can find a copy of my script here)</a> You provide three search terms:</p>

<ul>
<li>trigger: the main term you are looking for.</li>
<li>begin: something pattern that describes the beginning of the block you want to print out.</li>
<li>end: The end pattern for the block.</li>
</ul>

<p>For example: I exported an xml file from my iTunes library that describes all of my media. I can now search for the name of an author for example and get The full dictionary entry for the song. (output listed below.)</p>

<p>I hope this is useful to some one else or at least serves as a starting point for your own exploration of python.</p>

<pre><code>% triggerGreppy Tacuba "&lt;dict&gt;" "&lt;/dict&gt;" Library.xml

    &lt;dict&gt;
        &lt;key&gt;Track ID&lt;/key&gt;&lt;integer&gt;7587&lt;/integer&gt;
        &lt;key&gt;Name&lt;/key&gt;&lt;string&gt;Bar Tacuba&lt;/string&gt;
        &lt;key&gt;Artist&lt;/key&gt;&lt;string&gt;Café Tacuba&lt;/string&gt;
        &lt;key&gt;Album Artist&lt;/key&gt;&lt;string&gt;Café Tacuba&lt;/string&gt;
        &lt;key&gt;Album&lt;/key&gt;&lt;string&gt;Café Tacuba&lt;/string&gt;
        &lt;key&gt;Genre&lt;/key&gt;&lt;string&gt;Alternativo &amp;#38; Rock Latino&lt;/string&gt;
        &lt;key&gt;Kind&lt;/key&gt;&lt;string&gt;MPEG audio file&lt;/string&gt;
        &lt;key&gt;Size&lt;/key&gt;&lt;integer&gt;4703278&lt;/integer&gt;
        &lt;key&gt;Total Time&lt;/key&gt;&lt;integer&gt;233221&lt;/integer&gt;
        &lt;key&gt;Track Number&lt;/key&gt;&lt;integer&gt;13&lt;/integer&gt;
        &lt;key&gt;Year&lt;/key&gt;&lt;integer&gt;1992&lt;/integer&gt;
        &lt;key&gt;Date Modified&lt;/key&gt;&lt;date&gt;2010-09-27T20:44:49Z&lt;/date&gt;
        &lt;key&gt;Date Added&lt;/key&gt;&lt;date&gt;2010-08-03T04:30:10Z&lt;/date&gt;
        &lt;key&gt;Bit Rate&lt;/key&gt;&lt;integer&gt;160&lt;/integer&gt;
        &lt;key&gt;Sample Rate&lt;/key&gt;&lt;integer&gt;44100&lt;/integer&gt;
        &lt;key&gt;Normalization&lt;/key&gt;&lt;integer&gt;2381&lt;/integer&gt;
        &lt;key&gt;Artwork Count&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
        &lt;key&gt;Persistent ID&lt;/key&gt;&lt;string&gt;E467DC7506CA7184&lt;/string&gt;
        &lt;key&gt;Track Type&lt;/key&gt;&lt;string&gt;File&lt;/string&gt;
        &lt;key&gt;Location&lt;/key&gt;&lt;string&gt;file://localhost/Volumes/Attic/Music/iTunes/iTunes%20Music/Cafe%CC%81%20Tacuba/Cafe%CC%81%20Tacuba/13%20Bar%20Tacuba.mp3&lt;/string&gt;
        &lt;key&gt;File Folder Count&lt;/key&gt;&lt;integer&gt;4&lt;/integer&gt;
        &lt;key&gt;Library Folder Count&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
    &lt;/dict&gt;

---------------------
    &lt;dict&gt;
        &lt;key&gt;Track ID&lt;/key&gt;&lt;integer&gt;7753&lt;/integer&gt;
        &lt;key&gt;Name&lt;/key&gt;&lt;string&gt;Las Flores- Cafe Tacuba&lt;/string&gt;
        &lt;key&gt;Artist&lt;/key&gt;&lt;string&gt;Various Artists&lt;/string&gt;
        &lt;key&gt;Album&lt;/key&gt;&lt;string&gt;Hace Calor  Pop &amp;#38; Rock&lt;/string&gt;
        &lt;key&gt;Genre&lt;/key&gt;&lt;string&gt;General Rock&lt;/string&gt;
        &lt;key&gt;Kind&lt;/key&gt;&lt;string&gt;MPEG audio file&lt;/string&gt;
        &lt;key&gt;Size&lt;/key&gt;&lt;integer&gt;2752097&lt;/integer&gt;
        &lt;key&gt;Total Time&lt;/key&gt;&lt;integer&gt;136881&lt;/integer&gt;
        &lt;key&gt;Track Number&lt;/key&gt;&lt;integer&gt;3&lt;/integer&gt;
        &lt;key&gt;Date Modified&lt;/key&gt;&lt;date&gt;2010-08-19T05:00:31Z&lt;/date&gt;
        &lt;key&gt;Date Added&lt;/key&gt;&lt;date&gt;2010-08-19T04:58:27Z&lt;/date&gt;
        &lt;key&gt;Bit Rate&lt;/key&gt;&lt;integer&gt;160&lt;/integer&gt;
        &lt;key&gt;Sample Rate&lt;/key&gt;&lt;integer&gt;44100&lt;/integer&gt;
        &lt;key&gt;Play Count&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
        &lt;key&gt;Play Date&lt;/key&gt;&lt;integer&gt;3370023481&lt;/integer&gt;
        &lt;key&gt;Play Date UTC&lt;/key&gt;&lt;date&gt;2010-10-16T01:38:01Z&lt;/date&gt;
        &lt;key&gt;Normalization&lt;/key&gt;&lt;integer&gt;2518&lt;/integer&gt;
        &lt;key&gt;Persistent ID&lt;/key&gt;&lt;string&gt;52FAE1944A13F3EE&lt;/string&gt;
        &lt;key&gt;Track Type&lt;/key&gt;&lt;string&gt;File&lt;/string&gt;
        &lt;key&gt;Location&lt;/key&gt;&lt;string&gt;file://localhost/Volumes/Attic/Music/iTunes/iTunes%20Music/Various%20Artists/Hace%20Calor%20%20Pop%20&amp;#38;%20Rock/03%20Las%20Flores-%20Cafe%20Tacuba.mp3&lt;/string&gt;
        &lt;key&gt;File Folder Count&lt;/key&gt;&lt;integer&gt;4&lt;/integer&gt;
        &lt;key&gt;Library Folder Count&lt;/key&gt;&lt;integer&gt;1&lt;/integer&gt;
    &lt;/dict&gt;

---------------------

[I removed furthere matches for brevity]
</code></pre>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-11567120.xml</wfw:commentRss></item><item><title>Sharing Git Branches Remotely</title><category>git</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Sun, 01 May 2011 17:11:39 +0000</pubDate><link>http://www.littlemustard.com/blog/2011/5/1/sharing-git-branches-remotely.html</link><guid isPermaLink="false">582674:6744011:11318714</guid><description><![CDATA[<p>I usually have two branches when working on a project with a team. The <strong>master</strong> branch tracks <strong>origin/master</strong>, and I do most of my work on my local <strong>development</strong> branch.</p>

<p>Every now and then, I work an experimental feature. When I start on it, I'm not sure if it will work out and wether or not it should make it into the <strong>master</strong> branch someday. In those cases, I will make a new local branch to play with the idea. Lets say I called it <strong>superCoolFeature</strong>. At some point of the development of this feature, I might need to share this branch with one of my team members. <em>How do do I do that?</em></p>

<p>Well... I just figured that out recently and I thought I'd post it here in order to remember it the next time I need it.</p>

<p>It turns out to be a two step process. First you need to push your local branch onto your remote (usually your remote is <strong>origin</strong>, but you can type <code>git remote</code> to see a list of remotes.) After that, you will need to make your local branch track your remote branch. Here are the commands that do just that:</p>

<p><strong><em>Note:</em></strong> <em>You need to be on a different branch before you execute the second command, so you might want to do a</em> <code>git checkout master</code> 
<em>first.</em></p>

<pre><code>git push origin &lt;branch&gt;
git branch -f &lt;branch&gt; origin/&lt;branch&gt;
</code></pre>

<p>or to be more specific to my example:</p>

<pre><code>git push origin superCoolFeature
git branch -f superCoolFeature origin/superCoolFeature
</code></pre>

<p>Once you've done that, you should have a new branch on your remote and your local branch should track it. Now you need to tell your teammate to create his own local branch that tracks the remote branch. They can do that with the following:</p>

<pre><code>git branch -t &lt;branch&gt; origin/&lt;branch&gt;
</code></pre>

<p>or again, more specifically:</p>

<pre><code>git branch -t superCoolFeature origin/superCoolFeature
</code></pre>

<p>As always, you should proceed with caution. Have backups of your repo before performing a new command for the first time (In general backups are a good idea, regardless of what you're up to.) </p>

<p>Also for future reference, here is the list of blog post on the subject I found while investigating this:</p>

<ul>
<li><a href="http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/">http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/</a></li>
<li><a href="http://coders-log.blogspot.com/2009/05/creating-remote-branch-with-git.html">http://coders-log.blogspot.com/2009/05/creating-remote-branch-with-git.html</a></li>
<li><a href="http://markelikalderon.com/2008/08/26/pushing-and-tracking-remote-branches-with-git/">http://markelikalderon.com/2008/08/26/pushing-and-tracking-remote-branches-with-git/</a></li>
<li><a href="http://gitready.com/beginner/2009/03/09/remote-tracking-branches.html">http://gitready.com/beginner/2009/03/09/remote-tracking-branches.html</a></li>
</ul>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-11318714.xml</wfw:commentRss></item><item><title>Kinesis Advantage Keyboard - First Impressions</title><category>health</category><category>workspace</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Thu, 04 Nov 2010 03:59:36 +0000</pubDate><link>http://www.littlemustard.com/blog/2010/11/3/kinesis-advantage-keyboard-first-impressions.html</link><guid isPermaLink="false">582674:6744011:9368458</guid><description><![CDATA[<h3>Motivation</h3>

<p>About ten months ago, I had a sharp pain in my wrist. In that occasion, it happened after an accident while I was playing racquetball. I visited the doctor and he said I should wear a wrist brace. I did so on and off for about six to eight weeks. While I was in pain, I noticed that the slew of keyboard shortcuts I use on a regular basis were killing me (in particular those involving the control modifier, so I swapped control and caps lock.) I did get better and life came back to normal and stopped using the brace.</p>

<p>A few weeks ago, my left wrist started bugging me again. This time I remembered I had gone through this five years ago (I know, my memory is legendarily crappy.) That time the pains went away when I started using a Microsoft ergonomic keyboard. I used it until I switched to using mac laptops. So now that the pain was starting up again, I decided to get a new ergonomic keyboard.</p>

<h3>Choosing a model</h3>

<p>I could have gotten another Microsoft keyboard, but I was never crazy over the build quality of my last one (which BTW was not a USB model so I couldn't use my old one.) and besides, the Microsoft keyboard is obviously very biased towards Windows (can't blame them for that.)</p>

<p>So after investigating a bit, I found the <a href="http://www.thehumansolution.com/kinesis-advantage-contoured-keyboards.html">Kinesis Advantage Contoured Keyboard.</a> There are several less radical options out there, even Kinesis has some split in two halves keyboards, that are otherwise rather "normal." I decided that if I was going to get used to an ergonomic keyboard, I might as well get one that goes out all the way and redesigns the whole thing from scratch. (What can I say? I believe engineers do their best work when they can rid themselves of legacy constraints.) The only legacy that I decided to keep was the Qwerty layout.</p>

<h3>Foot Switch</h3>

<p>So I just got and I'm typing on it right now. It feels <em>freaking</em> weird. But first things first. I got the regular Advantage model in black. I could have gone for the Pro, but I wanted to get the three-way foot switch. I found the websites a bit confusing. Clearly, the Pro model is differentiated by its silver color and expanded macro memory, but what I missed for a while was the fact that it also includes a single-way foot switch. I was set on trying the three-way foot switch and I could not find a way online to upgrade to that with the pro without paying for a superflous one-way switch.</p>

<p>If you decide to get the keyboard and the foot switch, make sure you don't buy the more expensive USB foot switch. The USB models are standalone, and could work in theory with any other keyboard. If you get the pedalboard that only works with Kinesis keyboards, you will save some money, but I also believe you will enjoy tighter integration. The model that I got connects to the keyboard  with a telephone style cable (RJ-45?) With this model, you supposedly can reprogram the foot switch, just like you can any other key. </p>

<h3>First Impressions</h3>

<p>OK, so right off the box, I have to say I'm happy with my perceived build quality. It feels solid. We shall see if it remains like this over time.</p>

<p>Hooking it all up was pretty straight forward. It has a little USB hub in the back with two ports. I hooked up my old mouse's wireless dongle. The ports are kind of in a cave underneath the keyboard. This is perfect for things that don't get moved around (like my mouse wireless link) It probably would not be very useful  for memory sticks and such.</p>

<p>Right now, typing anything requires my full concentration. I'm sure that this will improve over time (in fact, just as I write this post I can start to feel the difference in my head.)</p>

<p>A lot of keys (mostly modifiers) get moved over to the thumbs. I expect this to be big win on the long run, but right now I feel like I'm all thumbs (pun fully intended.) In particular, my right thumb is in charge of space and my left thumb does backspace (or delete in true mac parlance) Unfortunately, I'm used to hitting space with my left thumb so now instead of getting spaces between words, I keep nuking the last letter of the previous word.</p>

<p>This keyboard is carefully crafted with the motion of every finger in mind. It certainly feels that way. My fingers feel less stressed than they usually do when typing something this long (sorry about the length of this post, but I need the practice.) But there is another side effect that I did not anticipate: this keyboard hilights all my bad typing habits. Apparently, I tend to hit some characters that are in the pinky column with my ring finger. The problem is that, since the column is calibrated for the pinky, using the wrong finger results in much hilarity.</p>

<p>I can see this will take a while to get used to. It probably would go easier if I were a better typist. I tend to depend too much on occasionally seeing the keys, that will get me into trouble with this keyboard. I do think think that sticking it out with this keyboard will make me a better typist.</p>

<p>So far I am liking using the foot switch for shifting, but I'm not sure if I will eventually get to use all three switches. Right now I'm working hard just to remember one. Only time will tell how well modifiers work for me on my thumbs. Right now, I can already feel my thumbs growing tired.</p>

<p>Finally, I can also feel my back starting to get tired. I believe that my chair doesn't provide me enough height (besides it's kind of broken.) I also think that I need to raise my table about an inch or two. This keyboard demands good posture. Again, that feels weird right now, but I believe it will bear fruits in the long run.</p>

<p>Sorry, for the super long post. I do plan on writing a follow up after I've had a few days with it.</p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-9368458.xml</wfw:commentRss></item><item><title>News and Noteworthy</title><dc:creator>Jose Vazquez</dc:creator><pubDate>Thu, 15 Jul 2010 15:11:53 +0000</pubDate><link>http://www.littlemustard.com/blog/2010/7/15/news-and-noteworthy.html</link><guid isPermaLink="false">582674:6744011:8265836</guid><description><![CDATA[<p>I thought I was pretty happy with the launch of RetroSketch. Then, a week later, Apple featured it in the <em>News and Noteworthy</em> section of the App Store. Turns out I was able to get even happier than I initially thought possible.</p>

<p>Today, marks the last day RetroSketch will be featured in the App Store. It has been a very nice ride. Once again, I find myself grateful.</p>

<p><img src="http://www.littlemustard.com/resource/rsomg.png?fileId=7731136" alt="rsomg.png" title="rsomg.png" border="0" width="470" height="627" style="float:right;" /></p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-8265836.xml</wfw:commentRss></item><item><title>Thank You.</title><category>RetroSketch</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Fri, 09 Jul 2010 03:44:43 +0000</pubDate><link>http://www.littlemustard.com/blog/2010/7/8/thank-you.html</link><guid isPermaLink="false">582674:6744011:8211352</guid><description><![CDATA[<p><a href="http://bit.ly/RSFaveTwits"><img src="http://www.littlemustard.com/resource/Favs.png?fileId=7651391" alt="My new favorite tweets." title="Favs.png" border="0" width="250" height="798" style="float:right;" /></a></p>

<p>I released <a href="http://www.littlemustard.com/retrosketch">RetroSketch</a> to the App Store last week. I am very proud of it's minimal interface. But I have found a major problem with its lack of chrome– I have no place to thank all the people who have helped me along the way.</p>

<p>First and foremost I need to thank God for the opportunities I have received and the talents I was given. I also need to thank my wife and kids. They have supported me all along and have endured many challenges along the way. None of this would be possible without them.</p>

<p>Next on the list are all my friends and colleagues that have helped me out. In particular I want to thank <a href="http://blog.robrhyne.com/">Rob Rhyne</a>, <a href="http://mikeash.com">Mike Ash</a>, <a href="http://stationinthemetro.com/">Mark Boszko</a>, Sandy Wang, <a href="http://kickingbear.com/blog/">Guy English</a> and everyone at <a href="http://www.nscodernightdc.com">NSCoder Night DC</a>. If it wasn't for all these fine folks, RetroSketch would be a slow, pokey, ugly, barely usable pile of code plastered on a hard to read website. (Trust me on this one.)</p>

<p>Finally, I want to thank all of my good friends scattered over the internet. I can not begin to explain how deeply moving it has been to see the outpouring of support. The picture next to this article is something I never expected to see. What can I say?</p>

<p>THANK YOU.</p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-8211352.xml</wfw:commentRss></item><item><title>A Tale of Two Knobs</title><category>RetroSketch</category><category>postmortem</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Tue, 29 Jun 2010 04:01:55 +0000</pubDate><link>http://www.littlemustard.com/blog/2010/6/29/a-tale-of-two-knobs.html</link><guid isPermaLink="false">582674:6744011:8128778</guid><description><![CDATA[<p>The story of RetroSketch is really the story of its knobs. I always thought that figuring out CoreGraphics would take the majority of my time. Turns out that was the easy part. </p>

<p>I could write about how I wrote all this code to doctor the results of <code>atan()</code> depending on the quadrant of the angle, how I computed the distance of a touch from the center of knob, and how I threw away all of that as soon as <a href="http://mikeash.com/">Mike Ash</a> told me about <code>atan2()</code> and <code>hypot()</code>. </p>

<p>I could also write about how having two instances of the same knob class is a bad idea, how their events arrive independently and result in staircases when you try to draw diagonals.</p>

<p>But no, instead I will tell about my first experience with UI design. It's kind of funny, I figured I really didn't have much design work ahead of me with an interface that consists of a grey backdrop and just two knobs. I was wrong. (BTW coming up with a couple of marketing screenshots for a UI that consists of two knobs on a grey expanse is <em>really</em> fun)</p>

<h3>The Early Placeholders</h3>

<p>As soon as I started hacking the code, I knew I had to draw something on the screen to make sense of touch information. I just needed something to show me the boundaries the software was expecting. So I simply drew a red circle at the outer edges of the knobs. </p>

<p>I also drew a solid blue circle in the center of the knob which represents the dead area. I needed that to avoid the scenario where a user goes straight across the center. If the knobs were sensitive in the center, they would register that move as a sudden 180 degrees twist of the knob, triggering an ugly jump on screen.</p>

<p><img src="http://www.littlemustard.com/resource/20100628EarlyDevKnobs.png?fileId=7522902" alt="20100628EarlyDevKnobs.png" title="20100628EarlyDevKnobs.png" border="0" width="470" height="373" /></p>

<p>In this early test you can see I was also trying out various ideas. The rects in the center were a comparison between 1 pixel wide lines and 2 pixels (2 pixels won). The label at the top was there to display realtime test data (angle, relative movement, etc.) reported by the knobs. </p>

<p>The Ellipse around the edge allowed me to see into the background (an very early rev of the texture). More importantly, notice that both the aluminum layers and the screen edge were casting shadows at this stage of development. Eventually I had to turn off these shadows for performance reasons. That was the hardest tradeoff I made in the project; those shadows are the real reason that lines in the mechanical device look black in the first place. Without these shadows, I had to artificially darken the texture to make up for it (a poor solution). In the future (if this ever turns a profit), I would like to re-write the whole thing in OpenGL to implement the shadows as shaders.</p>

<p>Finally, notice the placement of the knobs. Placing them in the bottom corners seemed natural at the time, but of course that changed as soon as I had an actual device in my hands.</p>

<h3>The RoboSketch Era</h3>

<p>I knew all along the placeholder was temporary, but after seeing it for so long I had trouble imagining anything else. I had a series of issues in my head that were complicating matters. </p>

<ol>
<li><p>I decided early that drawing a border to house the knobs would  look silly and take away screen real estate. The lack of border meant I could not use pictures or renditions of real world knobs. Real world knobs floating over a "glass" that supposedly houses moving parts seemed to work against the illusion I was trying to create.</p></li>
<li><p>I wanted large knobs. A large radius gives the user more control, so I wanted the largest knobs I could fit. Which conflicts with...</p></li>
<li><p>Knobs floating on the screen cover up the user's drawing area. The problem might be mitigated by making them transparent.</p></li>
<li><p>The knobs need to be as self explanatory as possible.</p></li>
</ol>

<p>So this is what I came up with:</p>

<p><img src="http://www.littlemustard.com/resource/20100628CDKnobsFrame.png?fileId=7522903" alt="20100628CDKnobsFrame.png" title="20100628CDKnobsFrame.png" border="0" width="470" height="363" /></p>

<p>As you can see, I was seriously confused at this point. I actually thought of going with this design for a moment. I thought that by making them <em>futuristic</em> I could somehow justify having them float above the screen defying all logic. I still had to make them transparent, which really didn't make sense either. </p>

<p>Worst of all, having futuristic knobs clashed with the RetroSketch name. This is when I started to consider the possibility of renaming the whole thing to <em>Robo</em>Sketch. To pull that off, I figured I should add some other <em>futuristic</em> features. I would have to implement a document model to save and load works in progress. I had justified not doing this, because the original <em>retro</em> device didn't, but a <em>robo</em> device certainly should. I also thought of adding some automation features to really earn the <em>robo</em> designation. </p>

<p>This <em>Robo</em>Nightmare quickly got out of hand. Thankfully, my trusty friends at <a href="http://nscodernightdc.com" title="NSCoder Night DC">NSCoder Night DC</a> talked me out it. It made no sense. I was turning my back on my main audience: the nostalgia market. So it was back to the drawing board.</p>

<p>On a side note, the discs in the picture above were <a href="http://flyingmeat.com/acorn/" title="Acorn.app by Flying Meat Inc.">Acorn'ed</a> on top of a really old screenshot. If you look carefully, you can see two really large, but thin red arcs in both bottom corners. They are very transparent so it's really hard to see them. This was an early experiment. Placing the center of the knobs right in the corner afforded a huge radius, which in turn gave users detailed control (<em>if</em> you knew how it worked.) The tradeoff was that you could no longer turn the knobs in continuous circles. Problem was, people who tried it didn't get it. This confirmed two important design parameters:</p>

<ol>
<li><p>The knobs need to be visible and obvious.</p></li>
<li><p>When in doubt, people tended to move their thumbs in circles. It is also interesting to note that this circular motion does not really come natural on the real devices with physical knobs. It is possible to go in infinite circles, but most people move using a series of short twists. Still, people seemed to assume that continuous circles were always the norm.</p></li>
</ol>

<h3>The Final Design</h3>

<p>Disappointed, I went back to the placeholder design in my head. I was now convinced that making it transparent, but very red, would make it visible yet unobtrusive. Somehow being the only thing with color would set it apart visually. Instead of the thin red circles I started with, I would make them thick and represent the area of sensitivity. This meant, the blue area was no longer necessary, it would simply be empty space. </p>

<p>In addition, I wanted to add arrows pointing up and down on one knob and left and right on the other. I also wanted to add the text "UP" &amp; "DOWN" along with the arrows, curved inside the knob. Finally I wanted the text and the arrows to spin around as the knob was turned. </p>

<p>I ran into trouble with this design. My trusty <a href="http://likethought.com/opacity/" title="Opacity.app by Like Thought, LLC">Opacity</a> failed me for the first time. It could not curve the text the way I wanted it (Please don't take this out of context, I love me some <a href="http://likethought.com/opacity/" title="Opacity.app by Like Thought, LLC">Opacity</a> somethin' fierce.) So at the next <a href="http://nscodernightdc.com" title="NSCoder Night DC">NSCoder Night DC</a> meeting, I asked my friend <a href="http://stationinthemetro.com/">Mark Boszko</a> <a href="http://twitter.com/bobtiki">(a.k.a @bobtiki)</a> to help me out drawing my odd shapes. </p>

<p>Instead of simply doing what I asked for, Mark questioned my design (Thank God!). First to go were the directions written into the knobs. Having copy as part of the knob design complicated matters (i.e. required localizations) and made things look cluttered. He also convinced me to get rid of the color. So we wound up with two grey doughnut-shaped knobs with straight double tipped arrows going either side to side or up and down.</p>

<p>That particular day, we happened to be graced by the visit of Sandy Wang (<a href="http://mikeash.com/">Mike Ash's</a> lovely wife.) She suggested the arrows would look better curved. Both Mark and Sandy whipped out their laptops and started drawing knobs for me. (Have I mentioned how much <a href="http://nscodernight.com/">NSCoder Nights</a> in general rock? I recommend you find one near you)</p>

<p><img src="http://www.littlemustard.com/resource/20100627Contributions.png?fileId=7522904" alt="20100627Contributions.png" title="20100627Contributions.png" border="0" width="470" height="228" /></p>

<p>Sandy's version is shown on the left and Mark's on the right.</p>

<p>Once I saw these, I knew this was it. The only thing left was to implement the design within the app. While both mockups were really good, they needed some retouching. I mostly tweaked the proportions to my liking. Problem was, I still had trouble drawing the curved angles in <a href="http://likethought.com/opacity/" title="Opacity.app by Like Thought, LLC">Opacity</a>. So I decided to take matters into my own hands and draw the knobs from scratch using CoreGraphics.</p>

<p><img src="http://www.littlemustard.com/resource/20100628CGKnobs.png?fileId=7522905" alt="20100628CGKnobs.png" title="20100628CGKnobs.png" border="0" width="470" height="228" /></p>

<p>These pictures show intermediate drawings generated live by the app using CoreGraphics calls. I used different colors on the  graphical components to differentiate them. I could now change the angle and proportions of these knobs programmatically.</p>

<p>Turns out, this approach not only was fun for me, but it also gave me a smooth looking knob on the Retina display of the new iPhone 4. It also has the advantage that I could easily tweak parameters to make the knobs scale for both the iPad and iPhone versions of the app.</p>

<h3>Final Touches</h3>

<p>The last touch I added to the knobs, was the ability to fade out completely when not in use. When the app first launches, they are visible and remain so, until they are used. After they are used, they gently fade away. Touching anywhere on the screen makes them reappear momentarily. It is not necessary to wait for them to appear to start using them, just move the knobs as if they were there and it works as you would expect. By doing all of this, the knobs interfere as little as possible with the drawing. It also allows the user to take a snapshot using the built in capabilities. (just press the power button and the home button at the same time, snapshots are stored in the Photos app.) </p>

<p><img src="http://www.littlemustard.com/resource/20100629Logo.png?fileId=7539678" alt="20100629Logo.png" title="20100629Logo.png" border="0" width="470" height="141" /></p>

<p>It was a long journey for me, but it was well worth it. When it was all said and done, I was so happy with the result, it became the basis of both the product's logo and icon.</p>

<p>So that is the story of my rather simple knobs. I hope this post provides some useful insight. I also hope you have as much fun as I do twisting these knobs!</p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-8128778.xml</wfw:commentRss></item><item><title>RetroSketch Postmortem</title><category>RetroSketch</category><category>postmortem</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Thu, 24 Jun 2010 04:44:29 +0000</pubDate><link>http://www.littlemustard.com/blog/2010/6/24/retrosketch-postmortem.html</link><guid isPermaLink="false">582674:6744011:8071585</guid><description><![CDATA[<p>RetroSketch was born as an experiment— a distraction really. I had been working on my dream app for months, dealing mostly with audio. I was also juggling some consulting work, and I was becoming a bit unmotivated due to my lack of progress. Then the iPad was introduced. I knew I wanted to play with it as soon as I could. The thought of moving my dream app to the iPad didn't really make sense. So what to do?</p>

<p>The size and shape of the iPad reminded me of those sketching toys and an idea got stuck in my head. I wanted a quick project that wouldn't take me from my main work, but I didn't want something so trivial it wasn't interesting. Just drawing a line controlled with two knobs didn't seem like an interesting challenge at first. So I spent some time playing with a real toy, and thats when I got inspired. To make it more interesting, I decided to recreate the way the physical object works; I wanted to simulate all the moving parts.</p>

<p>Spending a lot of time dealing with CoreGraphics is what made the project really compelling to me. The plan was to draw the inside of the box as a background, the vertical &amp; horizontal bars moving the stylus casting shadows inside, and of course a layer of aluminum dust getting etched out by the stylus as it moves around. I figured most people would never notice all of these things, But I still thought is was worth doing it just for the fun of it.</p>

<p>So I did. And I'm done. Somewhere along the process the project went from being an exercise to becoming my first commercial app. I have no clue how it will sell, but it has been worth it already. Turning it into an app has forced me to do all the things related to launching an app that you always put off until the end (at least the stuff that I procrastinate, I'm sure everyone does something different). I had do to a website, create a corporate identity, create Ad Hoc distributions, and think of marketing in more concrete terms, etc.</p>

<p>Now that I'm reaching the conclusion of this phase, and while I still have the experience fresh in my mind, I set out to write a couple of blog posts about it. I want to share some of my observations and lessons learned. Here is a jumping point for those  posts:</p>

<ul>
<li><a href="http://www.littlemustard.com/blog/2010/6/29/a-tale-of-two-knobs.html">A Tale of Two Knobs</a></li>
<li>A Comparison of Diverging Philosophies (<em>Coming Soon</em>)</li>
<li>Sensors: The Source of Wonderful Noise (<em>Coming Soon</em>)</li>
<li>Sounds Easy (<em>Coming Soon</em>)</li>
</ul>

<p>When all is said and done, I have to admit, I'm very excited about the whole thing.</p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-8071585.xml</wfw:commentRss></item><item><title>Truth Table for C4[2] shirt</title><dc:creator>Jose Vazquez</dc:creator><pubDate>Tue, 05 May 2009 21:21:05 +0000</pubDate><link>http://www.littlemustard.com/blog/2009/5/5/truth-table-for-c42-shirt.html</link><guid isPermaLink="false">582674:6744011:7740461</guid><description><![CDATA[<p></p>]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-7740461.xml</wfw:commentRss></item><item><title>Speeding up a Cocoa Project Repository Setup with Git</title><category>git</category><dc:creator>Jose Vazquez</dc:creator><pubDate>Fri, 24 Oct 2008 02:26:44 +0000</pubDate><link>http://www.littlemustard.com/blog/2008/10/23/speeding-up-a-cocoa-project-repository-setup-with-git.html</link><guid isPermaLink="false">582674:6744011:7740462</guid><description><![CDATA[<p></p>
]]></description><wfw:commentRss>http://www.littlemustard.com/blog/rss-comments-entry-7740462.xml</wfw:commentRss></item></channel></rss>