<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title><![CDATA[Steamshift Blog (Archive)]]></title>
  <subtitle><![CDATA[An archive of our old posts.]]></subtitle>
  <link href="http://yoursite.com/atom.xml" rel="self"/>
  <link href="http://yoursite.com"/>
  <updated>2013-10-10T10:55:42.529Z</updated>
  <id>http://yoursite.com/</id>
  <author>
    <name><![CDATA[Brothers Bennettw]]></name>
  </author>
  <generator uri="http://zespia.tw/hexo">Hexo</generator>
  <entry>
    <title type="html"><![CDATA[Got Vista? Need to test IE6?]]></title>
    <link href="http://yoursite.com/2008/12/04/got-vista-need-to-test-ie6/"/>
    <id>http://yoursite.com/2008/12/04/got-vista-need-to-test-ie6/</id>
    <published>2008-12-04T12:42:17.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p>In a surprise move … it&#39;s Microsoft to the rescue (at least for now):</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?familyid=21eabb90-958f-4b64-b5f1-73d0a413c8ef&amp;displaylang=en" target="_blank">Internet Explorer Application Compatibility VPC Image</a></p>
]]></content>
  </entry>
  <entry>
    <title type="html"><![CDATA[Amazing Flash ....]]></title>
    <link href="http://yoursite.com/2008/08/30/amazing-flash/"/>
    <id>http://yoursite.com/2008/08/30/amazing-flash/</id>
    <published>2008-08-30T18:55:10.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://producten.hema.nl/" target="_blank">HEMA - online winkelen</a></p>
]]></content>
  </entry>
  <entry>
    <title type="html"><![CDATA[Minx Challenge]]></title>
    <link href="http://yoursite.com/2008/08/06/minx-challenge/"/>
    <id>http://yoursite.com/2008/08/06/minx-challenge/</id>
    <published>2008-08-06T21:11:03.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p>We&#39;re really proud to be supporting the <a href="http://www.justgiving.com/asha-india" target="_blank">Big Minx Challenge</a>; please check out the link and give generously.</p>
]]></content>
  </entry>
  <entry>
    <title type="html"><![CDATA[A PHP Oddity with a cross domain proxy for Flash]]></title>
    <link href="http://yoursite.com/2008/06/05/a-php-oddity-with-a-cross-domain-proxy-for-flash/"/>
    <id>http://yoursite.com/2008/06/05/a-php-oddity-with-a-cross-domain-proxy-for-flash/</id>
    <published>2008-06-05T10:46:54.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p>I have been playing with Flex a bit, to write an Flash application for my masters degree (I find the flex environment much better for programming than flash), and like most people working with flash I have come up against the cross domain issue (where the player won‘t pull data from a domain which doesn’t have a cross domain policy allowing them to do so). This is a problem for the application I am working with, because I want to pull RSS feeds.</p>
<p>The obvious answer, a php proxy. In a way that makes it sound grander than it is because all it really is is a script to pull data from a remote source to get around the cross domain issue.</p>
<p>here is the script (simplified): </p>
<p>`</p>
<pre><code><span class="preprocessor">&lt;?php</span>
    header(<span class="string">"Content-Type: application/xml; charset=UTF-8"</span>);
    <span class="variable">$url</span> = <span class="variable">$_GET</span>[<span class="string">'url'</span>];
    readfile(<span class="variable">$url</span>);
<span class="preprocessor">?&gt;</span></code></pre>
<p>`</p>
<p>Now the code pulls back the feed as expected, but prepends this:</p>
<p><code>67c0</code></p>
<p>immediately before the content. Where does that come from, any ideas? Wherever it comes from it obviously means the feed won&#39;t parse!</p>
<p>In the end, I used curl like this (simplified):</p>
<p>`</p>
<pre><code><span class="preprocessor">&lt;?php</span>
    header(<span class="string">"Content-Type: application/xml; charset=UTF-8"</span>);

    <span class="comment">// note that this will not follow redirects</span>

    <span class="variable">$url</span> = <span class="variable">$_GET</span>[<span class="string">'url'</span>];

    <span class="comment">// create a new curl resource</span>
    <span class="variable">$ch</span> = curl_init();

    <span class="comment">// set URL and other appropriate options</span>
    curl_setopt(<span class="variable">$ch</span>, CURLOPT_URL, <span class="variable">$url</span>);
    curl_setopt(<span class="variable">$ch</span>, CURLOPT_HEADER, <span class="number">0</span>);

    <span class="comment">// grab URL and pass it to the browser</span>
    curl_exec(<span class="variable">$ch</span>);

    <span class="comment">// close curl resource, and free up system resources</span>
    curl_close(<span class="variable">$ch</span>);
<span class="preprocessor">?&gt;</span></code></pre>
<p>`</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/developing" target="_blank">developing</a>, <a href="http://technorati.com/tag/php" target="_blank">php</a>, <a href="http://technorati.com/tag/web%20development" target="_blank">web development</a>, <a href="http://technorati.com/tag/rss" target="_blank">rss</a>, <a href="http://technorati.com/tag/flash" target="_blank">flash</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Developing/" term="Developing"/>
    <category scheme="http://yoursite.com/categories/Developing/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Developing/Geek/PHP/" term="PHP"/>
    <category scheme="http://yoursite.com/categories/Developing/Geek/PHP/Web Development/" term="Web Development"/>
    <category scheme="http://yoursite.com/categories/Developing/Geek/PHP/Web Development/flash/" term="flash"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Leopard, lookupd and local web development sites]]></title>
    <link href="http://yoursite.com/2007/10/29/leopard-lookupd-and-local-web-development-sites/"/>
    <id>http://yoursite.com/2007/10/29/leopard-lookupd-and-local-web-development-sites/</id>
    <published>2007-10-29T17:23:29.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p>As a web developer, I love the fact that my work machine can run apache, mysql and php. It makes my working life so much easier than all that ftp&#39;ing then testing. It becomes even more important when you are working with Subversion; I think it good practice to work on a particular bit of a project until it is basically working, before those changes are committed. So my set up is that my SVN working copies become my apache docroots.</p>
<p>So, I usually have Apache 2 set up (along with MySQL, and PHP), via MacPorts, and using &#39;<a href="http://httpd.apache.org/docs/2.2/vhosts/mass.html" target="_blank">dynamically configured mass virtual hosting</a>&#39;.</p>
<p>This basically means that any calls to my local apache server will look in my sites folder for a directory with the same name as the requested domain name. In order to get the domains working under Mac OS X Tiger, I would just edit /etc/hosts pointing each domain to 127.0.0.1, then restart lookupd, and the whole system would work.</p>
<p>Great … except when Apple developed Leopard, they removed lookupd and thus, my means of pointing my local domains to my local server. Read on for the answer …</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/developing" target="_blank">developing</a>, <a href="http://technorati.com/tag/how%20to" target="_blank">how to</a>, <a href="http://technorati.com/tag/Mac" target="_blank">Mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/software" target="_blank">software</a>, <a href="http://technorati.com/tag/tips" target="_blank">tips</a>, <a href="http://technorati.com/tag/tutorials" target="_blank">tutorials</a>, <a href="http://technorati.com/tag/leopard" target="_blank">leopard</a></p>
<p>After a bit of searching, I found an answer; dnsmasq. Here is a quick run down of what I did to get it working under Leopard. NB: This is pretty MacPorts centric because that&#39;s how I did it, and thus assumes you are doing the same! This also requires a bit of terminal work.</p>
<ol>
<li>Install dnsmasq</li>
</ol>
<blockquote>
<p>sudo port install dnsmasq</p>
</blockquote>
<ol>
<li>Create a copy of the sample dnsmasq config</li>
</ol>
<blockquote>
<p>sudo cp /opt/local/etc/dnsmasq.conf.sample /opt/local/etc/dnsmasq.conf</p>
</blockquote>
<ol>
<li>Edit the conf file:</li>
</ol>
<p>Find line 58 (#address=/doubleclick.net/127.0.0.1):<br>I added the following at line 59: </p>
<blockquote>
<p>address=/.localsites/127.0.0.1</p>
</blockquote>
<p>This points anything.localsites to 127.0.0.1 (obviously change this to whatever you want)</p>
<p>Then I enabled the ‘no-hosts’ directive at line 92:<br>Change:</p>
<blockquote>
<p>#no-hosts</p>
</blockquote>
<p>to:</p>
<blockquote>
<p>no-hosts</p>
</blockquote>
<ol>
<li>Now we need to make dnsmasq run all the time and in the backgorund. I used a launchd script:</li>
</ol>
<blockquote>
<p>sudo nano /Library/LaunchDaemonscom.steamshift.dnsmasq</p>
<pre><code><span class="pi">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>
<span class="doctype">&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;</span>
<span class="tag">&lt;<span class="title">plist</span> <span class="attribute">version</span>=<span class="value">"1.0"</span>&gt;</span>
<span class="tag">&lt;<span class="title">dict</span>&gt;</span>
        <span class="tag">&lt;<span class="title">key</span>&gt;</span>Label<span class="tag">&lt;/<span class="title">key</span>&gt;</span>
        <span class="tag">&lt;<span class="title">string</span>&gt;</span>com.steamshift.dnsmasq<span class="tag">&lt;/<span class="title">string</span>&gt;</span>
        <span class="tag">&lt;<span class="title">key</span>&gt;</span>ProgramArguments<span class="tag">&lt;/<span class="title">key</span>&gt;</span>
        <span class="tag">&lt;<span class="title">array</span>&gt;</span>
                <span class="tag">&lt;<span class="title">string</span>&gt;</span>/opt/local/sbin/dnsmasq<span class="tag">&lt;/<span class="title">string</span>&gt;</span>
                <span class="tag">&lt;<span class="title">string</span>&gt;</span>-d<span class="tag">&lt;/<span class="title">string</span>&gt;</span>
        <span class="tag">&lt;/<span class="title">array</span>&gt;</span>
        <span class="tag">&lt;<span class="title">key</span>&gt;</span>RunAtLoad<span class="tag">&lt;/<span class="title">key</span>&gt;</span>
        <span class="tag">&lt;<span class="title">true</span>/&gt;</span>
<span class="tag">&lt;/<span class="title">dict</span>&gt;</span>
<span class="tag">&lt;/<span class="title">plist</span>&gt;</span></code></pre>
</blockquote>
<p>and save.</p>
<ol>
<li>Now run that file:</li>
</ol>
<blockquote>
<p>sudo launchctl load /Library/LaunchDaemons/com.steamshift.dnsmasq.plist</p>
</blockquote>
<ol>
<li>Finally, in System Preferences &gt; Network &gt; Advanced… &gt; DNS add 127.0.0.1 to the list of DNS servers.</li>
</ol>
<p>Hopefully, if I haven&#39;t left out any steps, you should now be able to visit (for example, as set up above): mysite.localsites and be directed to your local apache server.</p>
<p>Please comment with your experiences with this!</p>
<p>SteamSHIFT out.</p>
<h3>Update</h3>
<p>After posting this, I received a helpful email from ‘Damian Bourne’ who pointed out the following:</p>
<blockquote>
<p>Just read your blog entry on lookupd and dnsmasq.</p>
</blockquote>
<p>I&#39;m NOT saying anything bad about dnsmasq.. I use it lots of places.</p>
<p>I just wanted to let you know that lookupd was replaced with dscacheutil (as far as the command line is concerned), and that /etc/hosts still works.</p>
<p>I found that I didn&#39;t even need to flush the dns cache anymore for this to work, even when flip-flopping things around.</p>
<p>All the best,</p>
<p>Damian</p>
<p>Cool - another way, always useful. I think I will continue to use DNSMasq because of the wild card stuff, however, I have found one minor annoyance … which may force me back to /etc/hosts - if you don‘t have an internet connection, you can’t seem to point to a DNS server; Also when I am logged in via VPN to my uni network, I can&#39;t add my DNS server to the VPN network access. Hmm - any thoughts - please leave comments!</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/Web Development/" term="Web Development"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[MacBook Pro Shutting Down Unexpectedly]]></title>
    <link href="http://yoursite.com/2007/09/22/macbook-pro-shutting-down-unexpectedly/"/>
    <id>http://yoursite.com/2007/09/22/macbook-pro-shutting-down-unexpectedly/</id>
    <published>2007-09-22T20:41:32.000Z</published>
    <updated>2013-01-06T13:56:21.000Z</updated>
    <content type="html"><![CDATA[<p>If like mine (until this morning) has been exibiting the behaviour of shutting itself down (with no prior warning) after 15 or so minutes running on battery power (but is fine when plugged into the mains); it could well be a battery problem. I took my (6 months out of warranty) machine into my local Apple Store this morning, was given a replacement battery and am now happily running on battery once more.</p>
<p>SteamSHIFT out.</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Virtual BCF2000 V1.2]]></title>
    <link href="http://yoursite.com/2007/07/31/virtual-bcf2000-v12/"/>
    <id>http://yoursite.com/2007/07/31/virtual-bcf2000-v12/</id>
    <published>2007-07-31T12:31:09.000Z</published>
    <updated>2013-10-10T10:55:30.000Z</updated>
    <content type="html"><![CDATA[<p><img src="http://files.steamshift.com/oldblog/2007/07/bcf2000-1.22.png" alt="bcf2000_1.2"></p>
<p>It has taken some time, but I am pleased to present <a href="http://apps.steamshift.com/BCF2000/BCF2000_1.2.dmg" target="_blank">an update to our Virtual BCF2000 Application</a> (<a href="/vj/my-first-real-application-virtual-bcf2000-midi-controller">original release post</a>). The key features of this release are the removal of the requirement to use MidiPipe, and various bug fixes.</p>
<p>We have new customisable ‘Pro’ versions in the works - watch this space!</p>
<p>As before, enjoy (and if you use it let us know how we can make it better). SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/VJ" target="_blank">VJ</a>, <a href="http://technorati.com/tag/quartz%20composer" target="_blank">quartz composer</a>, <a href="http://technorati.com/tag/midi" target="_blank">midi</a>, <a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/bcf2000" target="_blank">bcf2000</a>, <a href="http://technorati.com/tag/cocoa" target="_blank">cocoa</a></p>
]]></content>
  </entry>
  <entry>
    <title type="html"><![CDATA[Jellybass - Check it out!]]></title>
    <link href="http://yoursite.com/2007/06/18/jellybass-check-it-out/"/>
    <id>http://yoursite.com/2007/06/18/jellybass-check-it-out/</id>
    <published>2007-06-18T07:43:38.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?id=256921966&amp;s=143444" target="_blank"><img src="http://a1.phobos.apple.com/eu/r10/Music/ba/dc/e5/mzi.kwjjacsg.170x170-75.jpg" alt="Cover Art"></a>       </p>
<p><strong>Jellybass</strong><br>Jellybass            </p>
<p><a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?id=256921966&amp;s=143444" target="_blank"><img src="http://ax.phobos.apple.com.edgesuite.net/email/images_shared/btnmtl_itunessmall.gif" alt="iTunes"></a></p>
<p>Release Date: 14 May 2007<br>Genre: Dance<br>(P) 2007 Jellybass</p>
]]></content>
  </entry>
  <entry>
    <title type="html"><![CDATA[Mac, Midi, Serial, Java Etc.]]></title>
    <link href="http://yoursite.com/2007/05/07/mac-midi-serial-java-etc/"/>
    <id>http://yoursite.com/2007/05/07/mac-midi-serial-java-etc/</id>
    <published>2007-05-07T17:01:29.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>A while back, I was doing some work with <a href="http://www.arduino.cc/" target="_blank">Arduino</a>, passing serial data to the mac to a small application written with <a href="http://processing.org" target="_blank">Processing</a> which converted the serial data into MIDI data and pushed it out into other apps. Now Processing is a Java thing; and the standalone applications it creates are Java applications.</p>
<p>All fine, but a mere few days before an assessment, I couldn&#39;t get the Serial to Midi application to work; I recalled an article on <a href="http://createdigitalmotion.com/2007/04/26/why-is-apples-support-for-java-multimedia-so-poor/" target="_blank">createdigitalmotion.com</a> which I admit, I didn&#39;t read fully, which said the following:</p>
<blockquote>
<p>On the music side, Apple dumped its com.apple.audio.midi java package with 10.4.8. Result: not only do you lose all the features that make the Mac great for MIDI, like the IAC bus for inter-application MIDI routing, but your external devices also spontaneously disappear. Nice.</p>
</blockquote>
<p>Now at this point, I put 2 + 2 together and got 5 … Apple have broken my app… Ahh what to do - revert my entire computer to 10.4.7? </p>
<p>So, I sat down and over the next few days and with <a href="http://blog.joelambert.co.uk" target="_blank">much</a> <a href="http://blog.domejunky.com/" target="_blank">help</a>, I managed to build (read: hack together) a serial to midi converter in Objective-C and Cocoa. Works perfectly (now!).</p>
<p>So, no more problem. Indeed. And not 1 day later, I remembered that I had bought an Java extension from <a href="http://www.mandolane.co.uk/swMandoMidi.html" target="_blank">Mandolane</a>, which was needed for my original app. I reinstalled that and bingo, that worked too. Doh. Doh. Doh.</p>
<p>Oh well; I wanted to start learning Cocoa etc!</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/midi" target="_blank">midi</a>, <a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/art" target="_blank">art</a>, <a href="http://technorati.com/tag/experiments" target="_blank">experiments</a>, <a href="http://technorati.com/tag/developing" target="_blank">developing</a>, <a href="http://technorati.com/tag/cocoa" target="_blank">cocoa</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Cocoa/" term="Cocoa"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/" term="Developing"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/Geek/MA/" term="MA"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/Geek/MA/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[CocoaMySQL - Users]]></title>
    <link href="http://yoursite.com/2007/04/05/cocoamysql-users/"/>
    <id>http://yoursite.com/2007/04/05/cocoamysql-users/</id>
    <published>2007-04-05T09:46:38.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>DOH DOH DOH</p>
<p>How did I never notice the Add User / Edit User / Permissions in <a href="http://cocoamysql.sourceforge.net/" target="_blank">CocoaMySQL</a>????</p>
<p>I was trying to hide it away; hit command-m and there the permissions box was! Now aside from the fact that command-m is a stoopid shortcut key to use (normally is for minimise), this is a great find; apparently it‘s only been there since Beta 0.7b5 … so upgrade if you’re not using that version.</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Big love for ... Platypus (Script GUI)]]></title>
    <link href="http://yoursite.com/2007/03/14/big-love-for-platypus-script-gui/"/>
    <id>http://yoursite.com/2007/03/14/big-love-for-platypus-script-gui/</id>
    <published>2007-03-14T15:50:29.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>I recently wanted to create an application to allow uploads to a website, in the simplest possible way; so I made a little BASH script which used <a href="http://curl.haxx.se/" target="_blank">cURL</a> to post the files to the server. Then with a little <a href="http://www.sveinbjorn.org/platypus" target="_blank">Platypus</a> (mixed up with <a href="http://cocoadialog.sourceforge.net/" target="_blank">CocoaDialog</a>) magic, I ended up with a droplet style application. If you&#39;re a scripter, and want some application magic then do check it out.</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/developing" target="_blank">developing</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Cocoa/" term="Cocoa"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/" term="Developing"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Cocoa/Developing/Geek/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[TextMate Rocks (with MarsEdit as well)]]></title>
    <link href="http://yoursite.com/2007/03/07/textmate-rocks-with-marsedit-as-well/"/>
    <id>http://yoursite.com/2007/03/07/textmate-rocks-with-marsedit-as-well/</id>
    <published>2007-03-07T16:07:20.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>So, Daniel Jalkut of <a href="http://www.red-sweater.com/products/index.html" target="_blank">Red Sweater Software</a> has taken over development of MarsEdit (in my opinion the best Blog editing software for the Mac). He&#39;s pretty keen to get cracking on making it even better, so I put in my 2 pence worth - a feature request for TextMate integration …</p>
<p>Turns out, there are 2 ways of accomplishing this; 1. set TextMate as the external editor for MarsEdit, then just create (or click to edit your post) and hit command-J (File -&gt; Edit with TextMate); 2. Install the ‘Edit in TextMate…’ bundle, which will allow you to edit any text from any Cocoa application in TextMate.</p>
<p>Woohoo! How easy is that?!</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/cocoa" target="_blank">cocoa</a>, <a href="http://technorati.com/tag/textmate" target="_blank">textmate</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Upgrading a Mac OS X Server from 10.3.9 to 10.4.6]]></title>
    <link href="http://yoursite.com/2007/03/05/upgrading-a-mac-os-x-server-from-1039-to-1046/"/>
    <id>http://yoursite.com/2007/03/05/upgrading-a-mac-os-x-server-from-1039-to-1046/</id>
    <published>2007-03-05T11:39:13.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>It was certainly an experience! And not one that I have any desire to repeat …</p>
<p>I decided that it would be a good idea to upgrade my web and email server to OS X Server 10.4. Partly because I was struggling to get spam filtering working as well as I wanted, and partly because I wanted to upgrade to PHP 5.1.4 and the excellent packages for PHP produced by Marc Liyanage no longer support 10.3. Also, I figured that by 10.4.6, the OS is stable enough for a production environment. It also helped that I was able to procure a cheap copy via ebay!</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/server" target="_blank">server</a>, <a href="http://technorati.com/tag/installation" target="_blank">installation</a></p>
<p>So, off I went to London to sit in the data centre and do the upgrade. I booted the X-Serve into firewire target disk mode and booted my laptop off that. I then loaded in the new disk and started the upgrade. The upgrade went fine and so I booted the machine up, and logged in via vnc to make sure I had all the latest system upgrades and so on. This is where the problems began…</p>
<p>I installed the upgrades and restarted, but the machine didn‘t come back up. As a guess, I’m thinking that what happened is that the time it takes to complete the 10.4.6 upgrade (post restart) was so long, that I assumed something had gone wrong and manually restarted it again; thus mashing that upgrade.</p>
<p>There I was with my web server, with a mashed OS. OK thought I, we‘ll do a clean archive and install of the OS; no dice - that option doesn’t exist for OS X Server.  What to do?</p>
<p>A bit of negotiating later, and I had procured a new hard disk to fit into the second bay. A complete reinstall later, and the machine was running once more. This time I did the OS upgrades whilst booted from the laptop. It really does take a long time to restart (twice) after the 10.4.6 upgrade. And from there I was able to copy all of the web sites and so on over to the new disk.</p>
<p>I went through and set up all the sites once more and was finally left with a working web server. I decided I would get email running properly when I got home. This was the second mistake. More to the point, the second mistake was wanting to copy the netinfo database from the old install to the new to save me recreating all the users. This process can only be done in single user mode, and if anything goes wrong, you need to be in single user mode in order to recover. And the problem with single user mode is that it requires that you are on site! This is not something you want to get wrong as breaking the netinfo database means you are locked out - very very not good.</p>
<p>My second trip to London to fix the server was much more brief. A quick trip into single user mode confirmed that the netinfo database from the old install was completely borked, but I was at least able to restore access once again.</p>
<p>Finally, back home once again, I was able to recreate all the users and get email running correctly.</p>
<p>So, here are my hard learned top tips for doing an upgrade like this …</p>
<ul>
<li>Start the process with a second drive; whether you decide to do a full install from scratch or copy your existing set up to the new drive and do an upgrade, it&#39;s so much better to have your original (working) copy of the system on a second drive that you can roll back to.</li>
</ul>
<ul>
<li>If you can, build the whole new system on a drive before you even get to the data centre - you&#39;ll still need to copy across any changed files, but at least you are not taking out the machine for any length of time. This does raise one question though - how can you work on an x-serve drive, without having a second x-serve?</li>
</ul>
<ul>
<li>Do any netinfo work, whilst you are at the data centre, and sat in front of a terminal - if you can‘t, don’t try!!</li>
</ul>
<ul>
<li>Have you covered all bases in terms of backups? I thought my backups were pretty comprehensive, but I&#39;ve had to re-evaluate. For instance, it is possible to create plists from server admin of the setup (and via the command line). And also of the user setups; these will take some of the pain out of having to rebuild from scrtatch.</li>
</ul>
<ul>
<li>If possible, do system upgrades via firewire target disk mode … or at least be very patient before restarting the machine! I knew for instance that it restarted twice after the 10.4.6 upgrade, but I wasn&#39;t prepared for it to take <em>so</em> long.</li>
</ul>
<p>Fortunately, in the end the server wasn&#39;t out for hugely long, and everything is running really nicely now. I have learned some good lessons and my inbox is vastly less spam filled now.</p>
<p>SteamSHIFT out.</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Maybe Too Early to Be Sure But ... (Solving MacBook Pro Sleep Problem)]]></title>
    <link href="http://yoursite.com/2007/03/05/maybe-too-early-to-be-sure-but-solving-macbook-pro-sleep-problem/"/>
    <id>http://yoursite.com/2007/03/05/maybe-too-early-to-be-sure-but-solving-macbook-pro-sleep-problem/</id>
    <published>2007-03-05T11:11:17.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>My (fairly new) MacBook Pro had developed some rather tedious behaviours such as sometimes not going to sleep when the lid is shut or not waking up when asked to. Also wireless networking performance had been rubbish…</p>
<p>So, figuring they were hardware problems (a friend had many hardware problems with his first revision MBP), I backed up the whole machine, ready to go off to Apple for repair … I thought I&#39;d also reinstall the OS whilst I was at it.</p>
<p>Hey Presto, sleep problems solved. Wireless networking problems solved. Bonus. I‘m just going to have to be very careful about what software I put on in the future … I’m guessing it was a 3rd party app, that wouldn&#39;t shut down properly or something.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/how%20to" target="_blank">how to</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Almost enough to make me switch ... (browser)]]></title>
    <link href="http://yoursite.com/2007/03/01/almost-enough-to-make-me-switch-browser/"/>
    <id>http://yoursite.com/2007/03/01/almost-enough-to-make-me-switch-browser/</id>
    <published>2007-03-01T10:15:22.000Z</published>
    <updated>2013-01-06T13:56:20.000Z</updated>
    <content type="html"><![CDATA[<p>I finally tried out the <a href="http://www.getfirebug.com/" target="_blank">Firebug</a> extension for Firefox; man it‘s good. Almost enough to make me switch to FF full time. As a web developer, it’s simply indispensable once you&#39;ve started using it …</p>
<blockquote>
<p>Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.</p>
</blockquote>
<p>Combined with the GrApple (Eos Pro) theme, Firebug is making a good case for me to switch … if it wasn&#39;t for the very un-mac behaviours like not using the keychain.</p>
<p>So, for now I&#39;ll keep playing the dual browser game; Safari still rocks (apart from being a bit of a resource hog).</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/mac" target="_blank">mac</a>, <a href="http://technorati.com/tag/osx" target="_blank">osx</a>, <a href="http://technorati.com/tag/developing" target="_blank">developing</a>, <a href="http://technorati.com/tag/web%20development" target="_blank">web development</a>, <a href="http://technorati.com/tag/browsers" target="_blank">browsers</a>, <a href="http://technorati.com/tag/firefox" target="_blank">firefox</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/Web Development/" term="Web Development"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Category Cloud Widget: New Version - 1.3']]></title>
    <link href="http://yoursite.com/2007/02/14/category-cloud-widget-new-version-13/"/>
    <id>http://yoursite.com/2007/02/14/category-cloud-widget-new-version-13/</id>
    <published>2007-02-14T12:26:15.000Z</published>
    <updated>2013-10-10T09:34:08.000Z</updated>
    <content type="html"><![CDATA[<p>Presenting <a href="http://www.steamshift.com/files/categorycloud.1.3.zip" target="_blank">Version 1.3 of my Wordpress Category Cloud widget</a>. This one is compatible with Wordpress 2.1 (use <a href="http://www.steamshift.com/files/categorycloud-1.2.zip" target="_blank">Category Cloud Widget Version 1.2</a> for earlier versions of Wordpress). As before, the credit goes to  sw-guide.de for the original <a href="http://www.sw-guide.de/wordpress/category-tagging-plugin/" target="_blank">Category Tagging</a> plugin on which this is based; and also <a href="http://www.artsy.ca/archives/159" target="_blank">Alex</a> for getting a version of this running under 2.1. </p>
<p>NB: Unlike Alex&#39;s version, this widget is self contained and does not require the Category Tagging plug-in.</p>
<p>SteamSHIFT out.</p>
<p>Technorati Tags:<br><a href="http://technorati.com/tag/php" target="_blank">php</a>, <a href="http://technorati.com/tag/wordpress" target="_blank">wordpress</a>, <a href="http://technorati.com/tag/widgets" target="_blank">widgets</a></p>
]]></content>
    <category scheme="http://yoursite.com/categories/Developing/" term="Developing"/>
    <category scheme="http://yoursite.com/categories/Developing/WordPress/" term="WordPress"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Custom USB Keyboard for Controlling Ableton Live]]></title>
    <link href="http://yoursite.com/2007/01/02/custom-usb-keyboard-for-controlling-ableton-live/"/>
    <id>http://yoursite.com/2007/01/02/custom-usb-keyboard-for-controlling-ableton-live/</id>
    <published>2007-01-02T13:26:45.000Z</published>
    <updated>2013-01-06T13:56:19.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://feeds.feedburner.com/~r/createdigitalmusic/~3/55038142/" target="_blank">Custom USB Keyboard for Controlling Ableton Live</a></p>
<blockquote>
<p>I just finished reworking an old USB QWERTY keyboard to serve as a custom keyboard for controlling Ableton Live, and thought you might like a look. The whole thing is well-documented with photos and comments at my Flickr site:</p>
<p><a href="http://www.flickr.com/photos/chromedecay/sets/72157594395102052/" target="_blank">flickr set: Custom keyboard for Ableton Live</a></p>
<p>The basic idea: instead of buying an expensive controller to expand my tactile control of Ableton Live (or building something custom with MIDI controllers), I decided to use an old USB QWERTY keyboard and custom-paint it to enhance its use as a live performance device.</p>
<p>The big idea behind the keyboard is that the humble QWERTY keyboard offers a ton of control possibilities, thanks to the flexible keymapping capabilities of Ableton Live. I‘ve been using the built-in keyboard on my Powerbook for a while now to trigger clips in performance, but it’s tough for a couple reasons. First, it looks like you‘re writing e-mail during a show, and that’s kinda boring. Second, all the keys look the same (minus the markings, of course) - there&#39;s not much that lets you navigate easily in low-light conditions and in the heat of the moment on stage. </p>
<p>You can see a full write-up here:</p>
<p><a href="http://www.ableton.com/forum/viewtopic.php?t=53326" target="_blank">custom USB QWERTY keyboard for Ableton Live</a> [Ableton forum]</p>
</blockquote>
<p>Simple and yet effective!!</p>
<p>(Via <a href="http://www.createdigitalmusic.com" target="_blank">createdigitalmusic.com</a>.)</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Digital Art and Technology/" term="Digital Art and Technology"/>
    <category scheme="http://yoursite.com/categories/Digital Art and Technology/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Digital Art and Technology/Geek/Mac/" term="Mac"/>
    <category scheme="http://yoursite.com/categories/Digital Art and Technology/Geek/Mac/VJ/" term="VJ"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Cheap acoustic sensors make surfaces interactive]]></title>
    <link href="http://yoursite.com/2007/01/02/cheap-acoustic-sensors-make-surfaces-interactive/"/>
    <id>http://yoursite.com/2007/01/02/cheap-acoustic-sensors-make-surfaces-interactive/</id>
    <published>2007-01-02T13:16:01.000Z</published>
    <updated>2013-01-06T13:56:19.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://www.makezine.com/blog/archive/2006/11/cheap_acoustic.html?CMP=OTC-0D6B48984890" target="_blank">Cheap acoustic sensors make surfaces interactive</a></p>
<blockquote>
<p>New Scientist has an article on turning any surface into a touch screen using small piezoelectric sensors to sense surface vibrations -</p>
<p>_&quot;A series of acoustic sensors that turn any surface into a touch-sensitive computer interface have been developed by European researchers.</p>
<p>Two or more sensors are attached around the edges of the surface. These pinpoint the position of a finger, or another touching object, by tracking minute vibrations. This allows them to create a virtual touchpad, or keyboard, on any table or wall.&quot;_ <a href="http://hardware.slashdot.org/article.pl?sid=06/11/29/141215" target="_blank">[via</a>] - <a href="http://www.newscientisttech.com/article/dn10673-acoustic-sensors-make-surfaces-interactive.html" target="_blank">Link.</a></p>
</blockquote>
<p>(Via <a href="http://www.makezine.com/blog/" target="_blank">MAKE Magazine</a>.)</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Art/" term="Art"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/" term="Digital Art and Technology"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/PhysComp/" term="PhysComp"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/PhysComp/Technology/" term="Technology"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Change the Screen Properties from the CLI]]></title>
    <link href="http://yoursite.com/2007/01/02/change-the-screen-properties-from-the-cli/"/>
    <id>http://yoursite.com/2007/01/02/change-the-screen-properties-from-the-cli/</id>
    <published>2007-01-02T13:12:51.000Z</published>
    <updated>2013-01-06T13:56:19.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://www.macgeekery.com/gspot/2006-12/change_the_screen_properties_from_the_cli" target="_blank">Change the Screen Properties from the CLI</a></p>
<blockquote>
<p>What syntax would I use to change the color depth of the display/monitor either in an Applescript on OS 10.4 OR via command line (defaults write maybe) ?</p>
<p><a href="/gspot/2006-12/change_the_screen_properties_from_the_cli">Read the answer…</a></p>
</blockquote>
<p>(it&#39;s a simple CLI app called <a href="http://lists.browsershots.org/pipermail/browsershots-factories/2006-October/000157.html" target="_blank">cscreen</a>, but read the rest of the article for the longer answer!).</p>
<p>(Via <a href="http://www.macgeekery.com" target="_blank">Mac Geekery - Get your geek on.</a>.)</p>
]]></content>
    <category scheme="http://yoursite.com/categories/Geek/" term="Geek"/>
    <category scheme="http://yoursite.com/categories/Geek/Mac/" term="Mac"/>
  </entry>
  <entry>
    <title type="html"><![CDATA[Tiilt!]]></title>
    <link href="http://yoursite.com/2007/01/02/tiilt/"/>
    <id>http://yoursite.com/2007/01/02/tiilt/</id>
    <published>2007-01-02T13:10:16.000Z</published>
    <updated>2013-01-06T13:56:19.000Z</updated>
    <content type="html"><![CDATA[<p><a href="http://toxicsoftware.com/blog/tiilt/" target="_blank">Tiilt!</a></p>
<blockquote>
<p>… I don‘t own a Wii. But as of today I do own a Wii Remote (and a nunchuk). And I’ve had a lot of fun using the Wiimote.framework to hack up this app:</p>
<p><a href="http://toxicsoftware.com/wordpress/uploads/Tiilt.mp4" target="_blank">Tiilt.mp4</a></p>
<p>This screencast shows a simple Quartz Composer composition being manipulated by the Wii remote. If there is interest I&#39;ll put the source online.  …<br><strong><a href="http://toxicsoftware.com/blog" target="_blank">toxicsoftware.com</a></strong></p>
</blockquote>
]]></content>
    <category scheme="http://yoursite.com/categories/Art/" term="Art"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/" term="Digital Art and Technology"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/PhysComp/" term="PhysComp"/>
    <category scheme="http://yoursite.com/categories/Art/Digital Art and Technology/PhysComp/Technology/" term="Technology"/>
  </entry>
</feed>
