<?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>Adam Merrifield { the collective } &#187; html</title>
	<atom:link href="http://adam.merrifield.ca/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://adam.merrifield.ca</link>
	<description>the collective thoughts and web works of adam merrifield</description>
	<lastBuildDate>Sun, 05 Sep 2010 09:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Building a Micro Server &#8211; Part 1</title>
		<link>http://adam.merrifield.ca/2010/02/10/building-a-micro-server-part-1/</link>
		<comments>http://adam.merrifield.ca/2010/02/10/building-a-micro-server-part-1/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:14:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Mac Mini]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://adam.merrifield.ca/2010/02/10/building-a-micro-server-part-1/</guid>
		<description><![CDATA[You might recall a number of months back I was working on repurposing an old iMac into a web server. I was doing this more because it could be done and not because I had to. Truth is I have two other servers which have more then enough head room to take on the additional, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.adam.merrifield.ca/building_a_micro_server_part_1-20100210-085823.jpg" alt="building a micro server part 1 title image" class="center"/></p>

<p>You might recall a number of months back <a href="http://adam.merrifield.ca/2009/09/29/imac-g3-web-server-part-1/" title="Adam Merrifield { the collective  - the collective thoughts and web works of adam merrifield}">I was working on repurposing an old iMac</a> into a web server. I was doing this more because it could be done and not because I had to. Truth is I have two other servers which have more then enough head room to take on the additional, and somewhat minor load of web serving duties. But it was the challenge &#8212; or complete and utter geek indulgence &#8212; that drove me to <span style='text-decoration:line-through;'>waste</span> spend my time making something of the old iMac G3.</p>

<p>However, the footprint of an iMac G3 (both physically and environmentally) is not ideal. You can&#8217;t rack mount an iMac G3, or stick it on a shelf or hide it under a desk&#8230; So I promptly ditched the idea and trumped it up as good bit of fun and some R&amp;D.</p>

<p>But the bug for a smaller server had been planted&#8230; I was really liking the idea of a mini server that I could stow away under my desk (and not in a sound proof closet). Not just a web server, but a little <em>everything</em> server.</p>

<p>I had initially toyed with the idea of buying a Mac Mini for this but thought my wife would likely kill me for buying a new Mac as an experimental <span style='text-decoration:line-through;'>toy</span> server while she continues to work from a PowerMac G4 (that happens to be dying a slow death). So I set about seeing what it would take to build my own micro server with all new parts that would approximate the Mac mini. Could it be done for less?</p>

<p>This is what I found (no affiliation):</p>

<ul>
<li><a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16811152131" title="Newegg.ca - SUPERMICRO CSE-502L-200B Black 1U Rackmount Mini Server Chassis for Intel Atom Platforms w&#47; 200W Power Supply - Server Chassis">1u micro server chassis</a> &#8211; $79.99</li>
<li><a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16813182168" title="Newegg.ca - SUPERMICRO MBD-X7SLM-L-O LGA 775 Intel 945GC Micro ATX Intel Core 2 Duo&#47;Pentium D&#47;Pentium 4&#47;Celeron D Server Motherboard - Server Motherboards">mini server motherboard</a> &#8211; $109.99</li>
<li><a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16819116075&amp;nm_mc=TEMC-RMA-Approvel&amp;cm_mmc=TEMC-RMA-Approvel-_-Content-_-text-_-" title="Newegg.ca - Intel Celeron E1500 Conroe 2.2GHz 512KB L2 Cache LGA 775 65W Dual-Core Desktop Processor - Processors - Desktops">2.2GHz Dual-Core CPU</a> &#8211; $51.99</li>
<li><a href="http://www.networksupply.ca/product/1455487/SNK-P0032A-4.html" title="Supermicro SNK-P0032A4 - processor cooler - 1U">1u 4 pin CPU fan</a> &#8211; $47.00</li>
<li><a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16820146526&amp;nm_mc=TEMC-RMA-Approvel&amp;cm_mmc=TEMC-RMA-Approvel-_-Content-_-text-_-" title="Newegg.ca - Crucial 2GB &#40;2 x 1GB&#41; 240-Pin DDR2 SDRAM DDR2 667 &#40;PC2 5300&#41; Dual Channel Kit Desktop Memory Model CT2KIT12864AA667 - Desktop Memory">2GB DDR2 SDRAM</a> &#8211; $56.99</li>
<li><a href="http://www.newegg.ca/Product/Product.aspx?Item=N82E16822136112" title="Newegg.ca - Western Digital Caviar Blue WD1600AAJB 160GB 7200 RPM 8MB Cache IDE Ultra ATA100 3.5&#34; Internal Hard Drive -Bare Drive">160GB HDD</a> (optional as I had a few laying around) &#8211; $51.99</li>
</ul>

<p>The total, if you include the hard drive, is $397.95 ($345.96 without hard drive). That&#8217;s more then $250 &#8211; $300 less then the Mac Mini. I know it&#8217;s a bit like comparing apples to oranges; the chip is slower, the bus is slower, the footprint is bigger and the I/O doesn&#8217;t really compare. On the flip side, the Mac mini doesn&#8217;t have a server grade power supply, is limited to slower laptop HDD&#8217;s and can&#8217;t be rack mounted. There are tradeoff&#8217;s either way but when I look at what I am hoping to use it for &#8212; web/file/media server &#8212; the differences will be outweighed by the 40% &#8211; 45% savings of the home built micro server.</p>

<p>This was enough for me, I was sold on the idea. If for nothing else then the pure geeky joy of it&#8230; so I went ahead and ordered the parts.</p>

<p>In part two I will show you the assembly of the micro server once the parts arrived, and some of the hiccups I had.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/04/17/there-are-geeks-then-there-are-geeks/" title="There are geeks, then there are Geeks (April 17, 2008)">There are geeks, then there are Geeks</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/24/the-beauty-of-rapidweaver-meets-the-power-of-textmate/" title="The beauty of RapidWeaver meets the power of TextMate (August 24, 2008)">The beauty of RapidWeaver meets the power of TextMate</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/11/rogers-you-got-served/" title="Rogers; You Got Served (August 11, 2008)">Rogers; You Got Served</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/10/25/rapidweaver-tip-add-native-search/" title="RapidWeaver tip: Add native search (October 25, 2007)">RapidWeaver tip: Add native search</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2010/02/10/building-a-micro-server-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Unique ID&#039;s For&#8230; Anything!</title>
		<link>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/</link>
		<comments>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 01:14:59 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[bundles]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unique id]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/10/27/creating-unique-ids-for-anything/</guid>
		<description><![CDATA[There are numerous reasons you might need a unique identifier on something; you upload files with common names to the same ftp site, you use the id attribute for internal links on a blog that might display multiple posts (the chances of repeating yourself are good), you want to sign your emails with a unique, [...]]]></description>
			<content:encoded><![CDATA[<p>There are numerous reasons you might need a unique identifier on something; you upload files with common names to the same ftp site, you use the id attribute for internal links on a blog that might display multiple posts (the chances of repeating yourself are good), you want to sign your emails with a unique, one time id for your own verification&#8230; Whatever the case, a unique id could come in handy.</p>

<p>The easiest thing to do is use a timestamp and a shell script can do that easily enough for us. For everyday use, the year, month, day, hour, minutes and seconds should suffice (unless you need multiple unique id&#8217;s per second). Here is how the bash script would look:</p>

<pre><code>date +%y%m%d%H%M%S
</code></pre>

<p>Entering this string into the Terminal.app would yield a twelve digit number like this:</p>

<pre><code>091027191546
</code></pre>

<p>The first pair of digits is the year, the second pair is the month, the third pair is the day, then the hour, minutes and seconds (all in pairs). Run this script in Terminal.app as many times as you like and you will never get the same number.</p>

<p>So you could enter this into your terminal every time you wanted a unique id&#8230; or you could make this shell script work <em>for</em> you from anywhere.</p>

<h2>TextMate Snippet</h2>

<p><img src="http://images.seydoggy.com/Unique_ID_TextMate_Snippet_in_Bundle_Editor-20091027-191359.jpg" alt="TextMate Snippet for Unique ID" class="image-right"/> TextMate makes running shell scripts dead easy &#8212; all you need to do is create your own snippet. To do this:</p>

<ul>
<li>open your Bundle editor &#8212; <code>Bundles &gt; Bundle Editor &gt; Show Bundle Editor</code> <strong><em>or</em></strong> <code>⌃⌥⌘B</code></li>
<li>create a new bundle (if you don&#8217;t already have your own) from the + icon</li>
<li>within that bundle create a new snippet from the + icon</li>
<li><p>in the edit window, type:</p>

<pre><code>`date +%y%m%d%H%M%S`
</code></pre></li>
<li>define a Tab Trigger or Key Equivalent</li>
<li>leave the scope selector blank to have the snippet apply to all language types</li>
</ul>

<p>Now you have a snippet that is accessible in any language scope you use TextMate for. This is handy if you write reference links in HTML articles, such as:</p>

<pre><code>&lt;a href="#note_091027194043"&gt;See this note&lt;/a&gt;
&lt;div id="note_091027194043"&gt;
    This is the special note I wanted you to see.
&lt;/div&gt;
</code></pre>

<p>Or for reference style links in MarkDown:</p>

<pre><code>Check out our site, [seyDoggy][a_091027194631], for some
really cool tips and tricks.

[a_091027194631]: http://www.seydoggy.com/  "seyDoggy's really cool site"
</code></pre>

<h3>Download</h3>

<p>Download your fresh copy of &#8220;<a href="http://www.seydoggy.com/downloads/UniqueID.tmSnippet.zip" title="Download from seyDoggy.com">Unique ID.tmSnippet</a>&#8221; from seyDoggy.com.</p>

<h2>AppleScript to clipboard</h2>

<p><img src="http://images.seydoggy.com/UniqueID_AppleScript_for_creating_unique_id_s-20091027-195458.jpg" alt="UniqueID AppleScript for creating unique id's" class="image-right"/>Say you&#8217;re not a TextMate user but you still want a quick way to run this shell script with as little effort as possible. AppleScript makes quick work of this task with it&#8217;s <code>do shell script</code> functionality. We need to make an AppleScript that runs the shell script, then copies the results to the clipboard. Then we can paste that result into what ever we&#8217;re working with at the time; file renaming, email signing, etc&#8230;</p>

<p>Here is how the script looks:</p>

<pre><code>set uniqueID to (do shell script "date +%y%m%d%H%M%S")
set the clipboard to uniqueID
display alert "\"" &amp; uniqueID &amp; "\"" &amp; "Has been copied to your ¬
    clipboard" giving up after 1
</code></pre>

<h3>Download</h3>

<p>Get your fresh copy of &#8220;<a href="http://www.codecollector.net/view/55260B3D-599D-489A-BC7E-C51AF597B2D0" title="Download from CodeCollector.net">UniqueID.scpt</a>&#8221; from CodeCollector.net</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/11/03/rapidweaver-add-ons-version-identifier/" title="RapidWeaver Add-ons Version Identifier (November 3, 2009)">RapidWeaver Add-ons Version Identifier</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/" title="Keeping unused hard disks unmounted (February 12, 2009)">Keeping unused hard disks unmounted</a> (7)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2009/05/13/the-little-know-clipboard-app-that-can/" title="The Little Know Clipboard App That Can (May 13, 2009)">The Little Know Clipboard App That Can</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2007/03/27/the-bigbox/" title="The BigBox (March 27, 2007)">The BigBox</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scripting LittleSnapper</title>
		<link>http://adam.merrifield.ca/2009/09/30/scripting-littlesnapper/</link>
		<comments>http://adam.merrifield.ca/2009/09/30/scripting-littlesnapper/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 15:03:51 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[littlesnapper]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/09/30/scripting-littlesnapper/</guid>
		<description><![CDATA[I hate clutter in my Dock&#8230; I also hate being slowed down looking for things. You can imagine these two positions are at odds with each other quite often. I don&#8217;t use the Dock in Mac OS X as a place to launch apps so much as I use it as a visual reminder of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.realmacsoftware.com/littlesnapper/" title="LittleSnapper - Screenshot and Website Capture for Mac OS X Leopard"><img src="http://images.seydoggy.com/LittleSnapperIcon-20091008-082444.jpg" alt="Scripting LittleSnapper" class="image-right"/></a>I hate clutter in my Dock&#8230; I also hate being slowed down looking for things. You can imagine these two positions are at odds with each other quite often. I don&#8217;t use the Dock in Mac OS X as a place to launch apps so much as I use it as a visual reminder of the things I can do, but don&#8217;t on a regular basis.</p>

<p>Like <a href="http://www.realmacsoftware.com/littlesnapper/" title="LittleSnapper - Screenshot and Website Capture for Mac OS X Leopard">LittleSnapper</a> for instance. I use it maybe once a day, and for pretty much the same thing &#8212; I open it up, I snap the current web page and then proceed to tag it, rate it and upload it to my <a href="http://emberapp.com/seydoggy/" title="View all images :: Ember">ember Pro</a> account &#8212; but I don&#8217;t keep it open. I quit LittleSnapper when I am done and cary on with the rest of my day. This kind of usage doesn&#8217;t warrant a coveted position in my Dock, but if I have to search for the app (Spotlight, Google QSB, QuickSilver) or dig for it in Finder, the inspiration to snap that web page may well pass.</p>

<p>So what does a magna nerdulosa like myself do to address this situation? I automate! AppleScript to the rescue!</p>

<p>The first thing I want to do is launch LittleSnapper and I do that by <span style="text-decoration: line-through;">tossing a little bash in AppleScript</span> using the following:</p>

<pre><code>tell application "LittleSnapper" to activate
</code></pre>

<p>And now LittleSnapper is ready to have it&#8217;s buttons pushed<a href="http://www.seydoggy.com/2009/09/30/scripting-littlesnapper/#buttons">*</a>:</p>

<pre><code>tell application "System Events"
    tell process "LittleSnapper"
        click menu item 1 of menu "Capture" of menu bar 1
    end tell
end tell
</code></pre>

<p>It&#8217;s as simple as that! The full script will:</p>

<ul>
<li>Luanch LittleSnapper</li>
<li>tell LittleSnapper to go into the &#8220;Capture&#8221; menu</li>
<li>click &#8220;Snap Web Address from Safari&#8221;</li>
</ul>

<p>You can then cary on with tagging, annotating or whatever else tickles your LittleSnapper fancy.</p>

<h2>Now what?</h2>

<p>For me the next step is to save the script in <code>~/Library/Scripts/</code> add a hot-key combo to it using <a href="http://www.red-sweater.com/" title="Red Sweater - Amazing Mac Software">Red Sweater Software&#8217;s</a> <a href="http://www.red-sweater.com/forums/viewtopic.php?id=878" title="How can I set keyboard shortcuts for FastScripts menus? (Page 1) - FastScripts - Red Sweater Software">FastScripts.app</a>. You could also use this in <a href="http://www.obdev.at/products/launchbar/index.html" title="LaunchBar 5">LaunchBar</a>, <a href="http://code.google.com/p/blacktree-alchemy/" title="blacktree-alchemy - Project Hosting on Google Code">QuickSilver</a>, <a href="http://www.manytricks.com/butler/" title="Many Tricks &amp;amp;middot; Butler">Butler</a>, or any other means you may use to run AppleScripts.</p>

<h2>Full Script</h2>

<pre><code>-- This script launches LittleSnapper
-- &lt;http://realmacsoftware.com/littlesnapper/&gt;
-- and tells it to snap the current web page

-- By Adam Merrifield &lt;http://www.seydoggy.com&gt;
-- r4 10-08-09 08:12 (removed delays)

tell application "LittleSnapper" to activate
tell application "System Events"
    tell process "LittleSnapper"
        click menu item 1 of menu "Capture" of menu bar 1
    end tell
end tell
</code></pre>

<h2>Download</h2>

<p><a href="http://www.codecollector.net/view/FCD7F708-8EB8-404D-B173-A8D2C6254B48">Get it fresh from CodeCollector.net</a></p>

<h2>Notes</h2>

<p><span id="buttons">* this exact sequence of commands could change if Realmac Software ever changed LittleSnapper&#8217;s menu layout, but I prefer this shorthand over the verbose menu item selections.</span></p>

<h2>References</h2>

<ul>
<li><a href="http://developer.apple.com/applescript/">Apple Developer Connection</a></li>
<li><a href="http://macscripter.net/">MacScripter</a></li>
<li><a href="http://www.macosxhints.com/search.php?query=applescript&amp;amp;mode=search&amp;amp;type=all&amp;amp;keyType=all">Mac OS X Hints</a></li>
</ul>

<h2>EDITS</h2>

<h3>r4 10-08-09 08:12</h3>

<p>I&#8217;ve removed the delays I once needed before each section. The modifier keys I was using (specifically &#x2325;) in my hot-key sequence were being passed to LittleSnapper and causing LittleSnapper to prompt me to choose a new image library. Taking &#x2325; out of the sequence negated the need for the delays.</p>

<h3>r2 09-30-09 11:42</h3>

<p>While there is technically nothing wrong with the original script, the bash line &#8212; <code>do shell script "open -a LittleSnapper"</code> &#8212; throws an error in console and some part of that line looks as though it will not be supported for much longer. So I have changed this line to the slightly more verbose <code>tell application "LittleSnapper" to activate</code></p>

<p>I have also split the 1 second delay into two 0.5 second sections, one at the front end and one before system events. It seems <a href="http://www.red-sweater.com/forums/viewtopic.php?id=878" title="How can I set keyboard shortcuts for FastScripts menus? (Page 1) - FastScripts - Red Sweater Software">FastScripts.app</a> really is fast and is getting ahead of itself when executing the script with hot-keys. That causes issues for me but may not affect you, depending on what you use to run your scripts.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/10/08/scripting-littlesnapper-slight-return/" title="Scripting LittleSnapper&#8230; Slight Return (October 8, 2009)">Scripting LittleSnapper&#8230; Slight Return</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/18/yourhead-launches-stacks-10/" title="YourHead launches Stacks 1.0 (February 18, 2009)">YourHead launches Stacks 1.0</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2009/01/26/use-rapidweavers-pathto-syntax-in-javascript-files/" title="Use RapidWeaver&#039;s %pathto()% syntax in javascript files (January 26, 2009)">Use RapidWeaver&#039;s %pathto()% syntax in javascript files</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/24/the-beauty-of-rapidweaver-meets-the-power-of-textmate/" title="The beauty of RapidWeaver meets the power of TextMate (August 24, 2008)">The beauty of RapidWeaver meets the power of TextMate</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/12/14/textmate-html-and-css-bundles-for-power-users/" title="TextMate HTML and CSS bundles for power users (December 14, 2007)">TextMate HTML and CSS bundles for power users</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/09/30/scripting-littlesnapper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TextMate Tip: Use Color Picker in All Bundles</title>
		<link>http://adam.merrifield.ca/2009/06/12/textmate-tip-use-color-picker-in-all-bundles/</link>
		<comments>http://adam.merrifield.ca/2009/06/12/textmate-tip-use-color-picker-in-all-bundles/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 14:15:48 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[bundles]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[color picker]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/06/12/textmate-tip-use-color-picker-in-all-bundles/</guid>
		<description><![CDATA[After reading this TextMate tip this morning about using the color picker in TextMates CSS bundle, it reminded me of an article I thought I wrote once about extending this same color picker functionality to the other bundles I commonly use in TextMate (namely Property List). After a quick search here and on other blogs [...]]]></description>
			<content:encoded><![CDATA[<p>After reading this <a href="http://textmatetips.com/general/2009/06/color-chaning-on-the-fly-via-cmd-shift-c/" title="Color chaning on the fly via cmd-shift-c | TextMate Tips">TextMate tip</a> this morning about using the color picker in TextMates CSS bundle, it reminded me of an article I thought I wrote once about extending this same color picker functionality to the other bundles I commonly use in TextMate (namely Property List). After a quick search here and on other blogs of mine, I was unable to find it. So I <a href="http://www.google.com/search?hl=en&amp;client=safari&amp;rls=en-us&amp;q=textmate+color+picker+command+plist+seydoggy&amp;aq=f&amp;oq=&amp;aqi=" title="Google">Googled it</a> and as it turns out, I blogged about it on Flickr of all places. Knowing the information wasn&#8217;t of much use there, I thought I had better revisit this tip for the benefit of other geeks.</p>

<h3>Use Color Picker in Other Bundles</h3>

<p>So here is the gist of it; in the CSS bundle in TextMate you can quickly pick colors for your CSS properties. This is great, but I do a lot with hex colors in other bundles too, like the Property List, Javascript and jQuery bundles. So here is what I did&#8230;</p>

<p>I opened the Bundle Editor (&#x2303;&#x2325;&#x2318;B), went into the CSS Bundle, found the &#8220;Insert Color&#8230;&#8221; command and made a copy of it (it&#8217;s the ++ icon at the bottom of the panel). I selected and renamed the command and changed it&#8217;s Scope Selector from &#8220;source.css&#8221; to &#8220;text, source&#8221;. This will enable color picker for just about everything. &#8220;text&#8221; will cover all of the plain text based languages like HTML, XML, Property List, Markdown, BB Code, LaTeX, etc&#8230; While &#8220;source&#8221; will cover all the programatic languages like CSS, Javascript, PHP, Ruby, etc&#8230;</p>

<p>Now keep in mind that this particular command is going to add the hash (#) as a prefix. This may not suite you needs for some languages so you may choose to make another &#8220;Insert Color&#8230;&#8221; command for those languages and modify the appropriate lines, then use &#8220;source.actionscript.2&#8243;, for example, as your Scope Selector.</p>

<p>Play around with the poosibilities and have fun.</p>

<p><img src="http://images.seydoggy.com/textmate_color_picker_in_plist-20090612-082837.jpg" alt="textmate, make use of color picker in plist" class="image-center" /></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/11/05/to-be-strict-or-not-to-be/" title="To be Strict or not to be (November 5, 2008)">To be Strict or not to be</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/24/the-beauty-of-rapidweaver-meets-the-power-of-textmate/" title="The beauty of RapidWeaver meets the power of TextMate (August 24, 2008)">The beauty of RapidWeaver meets the power of TextMate</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/12/14/textmate-html-and-css-bundles-for-power-users/" title="TextMate HTML and CSS bundles for power users (December 14, 2007)">TextMate HTML and CSS bundles for power users</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/" title="Creating Unique ID&#039;s For&#8230; Anything! (October 27, 2009)">Creating Unique ID&#039;s For&#8230; Anything!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2008/09/04/welcome-to-the-new-rw-updates/" title="Welcome to the new RW Updates (September 4, 2008)">Welcome to the new RW Updates</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/06/12/textmate-tip-use-color-picker-in-all-bundles/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enabling Double Arrows in the Scroll Bar</title>
		<link>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/</link>
		<comments>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 15:32:15 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/03/09/enabling-double-arrows-in-the-scroll-bar/</guid>
		<description><![CDATA[Ohh, ohh, ohh, I can&#8217;t forget this one! This is one of those options you forgot you enabled with a utility like Onyx. So when you go and do your clean install of OS X and realize that some things are just not the same as they were, it&#8217;s the the little things like having [...]]]></description>
			<content:encoded><![CDATA[<p>Ohh, ohh, ohh, I can&#8217;t forget this one! This is one of those options you forgot you enabled with a utility like <a href="http://www.titanium.free.fr/pgs/english.html" title="Titanium Software">Onyx</a>. So when you go and do your clean install of OS X and realize that some things are just not the same as they were, it&#8217;s the the little things like having double arrows at the top and bottom (or left and right) of a scroll bar that you miss.</p>

<p>Having vowed to take matters into my own hands with this install and being acutely aware of every system hack I make, I am documenting everything I do (on this blog) and I am making sure it&#8217;s something I can control via the terminal. So, instead of using Onyx, here is the terminal hack for enabling double arrows in your scroll bars:</p>

<div style="margin-bottom: 1em; padding: 5px; border:1px solid; width:98%; overflow:scroll">
<pre>defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth</pre>
</div>

<p>If you ever need to go back you just open the System Preferences (<code>/Applications/System Preferences.app</code>), click on appearance and choose one of the two defaults from &#8220;Place scroll arrows:&#8221;; &#8220;Together&#8221; or &#8220;At top and bottom&#8221;.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/" title="Rebuilding after all of these years! (February 10, 2009)">Rebuilding after all of these years!</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/02/12/mac-os-x-1052-is-here/" title="Mac OS X 10.5.2 is here! (February 12, 2008)">Mac OS X 10.5.2 is here!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/10/09/look-and-learn-your-way-to-better-productivity/" title="Look and learn your way to better productivity (October 9, 2007)">Look and learn your way to better productivity</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/03/09/enabling-double-arrows-in-the-scroll-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control your processors in Mac OS X 10.5</title>
		<link>http://adam.merrifield.ca/2009/03/07/control-your-processors-in-mac-os-x-105/</link>
		<comments>http://adam.merrifield.ca/2009/03/07/control-your-processors-in-mac-os-x-105/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 15:02:53 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[processor]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/03/07/control-your-processors-in-mac-os-x-105/</guid>
		<description><![CDATA[Remarkably after nearly one month I am still trying to tweak my system just so. I think this is one of the last things though, my processor preference pane. By default, the CPU controls in Mac OS X 10.5 and not enabled and in fact, can&#8217;t be enabled unless you have the developer tools installed. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.seydoggy.com/control_your_processor-20090307-100022.jpg" alt="control your processor" class="image-left" />Remarkably after nearly one month I am still trying to tweak my system just so. I think this is one of the last things though, my processor preference pane. By default, the CPU controls in Mac OS X 10.5 and not enabled and in fact, can&#8217;t be enabled unless you have the developer tools installed.</p>

<p>I like to be able to turn off some of my processors when I am just doing day to day web design and theme development. It&#8217;s a good way to save some energy (it&#8217;s good to be green) and to be totally honest, coding in HTML, CSS, PHP, Javascript and XML isn&#8217;t all that processor intensive. With the developer tool installed you can do this. There two things you can do, you can run the CPUPalette.app and/or you can install processor preference pane.</p>

<p>The CPUPalette.app can be found in <code>/Library/Application Support/HWPrefs/</code>. It&#8217;s a simple app that doesn&#8217;t allow much other than turning the processors on or off. If you click the little pill button in the top right-hand corner you can see a couple of basic preferences for window type, sampling rates and information display. It&#8217;s a quick and easy way to both monitor how your cores are being taxed and whether or not you can afford to shut a few of them down.</p>

<p>Your other option, if you you are already familiar with your processor usage, is to install the processor preference pane. Go to <code>/Developer/Extras/PreferencePanes</code> and find <code>Processor.prefPane</code>. Double click to install it. Once installed I highly suggest you click the &#8220;Show control in menu bar&#8221; for quick access. You&#8217;ll notice by installing the processor preference pane you get access to the CPUPalette.app without having to dig for it.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/about-2-2/" title="About Me (March 27, 2007)">About Me</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/12/14/textmate-html-and-css-bundles-for-power-users/" title="TextMate HTML and CSS bundles for power users (December 14, 2007)">TextMate HTML and CSS bundles for power users</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2008/07/17/seydoggy-and-rapidweaver-a-new-approach/" title="seyDoggy and RapidWeaver, a new approach (July 17, 2008)">seyDoggy and RapidWeaver, a new approach</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2007/10/25/rapidweaver-tip-add-native-search/" title="RapidWeaver tip: Add native search (October 25, 2007)">RapidWeaver tip: Add native search</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/03/07/control-your-processors-in-mac-os-x-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto mount/unmount your Mac volumes when required</title>
		<link>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/</link>
		<comments>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 18:25:39 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plist]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[volumes]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/</guid>
		<description><![CDATA[Earlier this month you might recall the solution I gave you for keeping unused volumes unmounted on your mac. The next part of the equation, automatically mounting those volumes when needed to run my backup scheme, took me a little longer to sort out. In fact I wasn&#8217;t able to write a solution on my [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this month you might recall the solution I gave you for <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/" title="seyDoggy Web and Graphic Design - seyDoggy weblog - my thoughts on the web and the mac">keeping unused volumes unmounted</a> on your mac. The next part of the equation, automatically mounting those volumes when needed to run my backup scheme, took me a little longer to sort out. In fact I wasn&#8217;t able to write a solution on my own, try as I might, so I finally went searching for one.</p>

<p>I needed a script of some sort that would mount my unmounted volumes when it was time for <a href="http://www.econtechnologies.com/pages/cs/chrono_overview.html" title="ChronoSync | Perform File and Folder Synchronizations and Backups Like Clockwork | Econ Technologies">ChronoSync</a> to run and then unmount my volumes when ChronoSync was finished. After several IRC queries, forum posts here and there and countless Google searches I finally stumbled upon <a href="http://www.macosxhints.com/article.php?story=20060308154312630" title="macosxhints.com - A script to mount/unmount a volume on app launch">this post</a> at Mac OS X Hints. This solution was the answer I needed and it works perfectly. I won&#8217;t recap the whole thing here, but I will give you the bits that were most important to me.</p>

<p>Copy the following script into <em>Script Editor.app</em> (<code>/Applications/AppleScript/Script Editor.app</code>), changing the <code>diskname</code> and <code>appname</code> to suite your needs:</p>

<div style="margin-bottom: 1em; padding: 5px; border:1px solid; width:98%; overflow:scroll">
    <pre>property diskname : "MyDisk"
property appname : "ChronoSync"

on idle
  tell application "System Events"
    set x to the name of every process
    if appname is not in x then
      if (exists the disk diskname) then
        do shell script "disktool -l | egrep -i "Mountpoint = '/Volumes/" &#038; diskname &#038; "" | cut -d\' -f2 | xargs -n1 disktool -p"
      end if
    else
      do shell script "disktool -l | egrep -i "Mountpoint = '', fsType = 'hfs', volName = '" &#038; diskname &#038; "" | cut -d\' -f2 | xargs -n1 disktool -m"
    end if
  end tell
end idle</pre>
</div>

<p>Next you need to save it as a bundled app and select &#8220;<em>Stay Open</em>&#8220;, give it a useful name and save it where you will be able to find it. In my case I chose <code>/Library/Scripts/ChronoSync/</code>:</p>

<p><img src="http://images.seydoggy.com/Save_as_MountDisk_app_bundle-20090225-134228.jpg" alt="Save as dialog box in Script Editor.app" title="Save your script as a bundled application" /></p>

<p>Then you have to make it run in the background. To do this, find your newly created app, right click on it, &#8220;<em>Show Package Contents</em>&#8220;, find the Info.plist and open that in your favorite plain text editor. Above the key that says <code>CFBundleAllowMixedLocalizations</code> you want to add the following:</p>

<p><code><pre>&lt;key&gt;LSBackgroundOnly&lt;/key&gt;
&lt;string&gt;1&lt;/string&gt;</pre></code></p>

<p>Get out of the package and find your app again and double click on it. It should launch in the background but not show in the dock. You can see that it&#8217;s running by opening <em>Activity Monitor.app</em> (<code>/Applications/Utilities/Activity Monitor.app</code>):</p>

<p><img src="http://images.seydoggy.com/Activity_Monitor_showing_MountDisk_app_running-20090225-134317.jpg" alt="Activity Monitor showing our disk mounting app working" title="Activity Monitor showing our disk mounting app working" /></p>

<p>Now to truly make this process automated, you need this app to be on when your computer is on, so it needs to launch when you login. So open your Accounts preference pane in System Preferences.app (<code>/Applications/System Preferences.app</code>), select the <em>Login Items</em> tab, select the <img src="http://images.seydoggy.com/plus_button-20090225-131250.jpg" alt="plus button" title="plus button" /> button and add your newly created app:</p>

<p><img src="http://images.seydoggy.com/add_the_new_disk_mounting_app_to_your_login_items-20090225-134157.jpg" alt="add your newly created disk mounting app to your login items" title="add your newly created disk mounting app to your login items" /></p>

<p>And that&#8217;s it! Next time your backup program fires up to do it&#8217;s regularly scheduled backups, your disk mounting app will mount your volume, wait for your backup app to finish and then quietly tuck your volume back up for the night.</p>

<h2>Other references</h2>

<ol>
<li><a href="http://www.macosxhints.com/article.php?story=20060308154312630" title="macosxhints.com - A script to mount/unmount a volume on app launch">A Script to mount/unmount a volume on app launch</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20040905112951299" title="macosxhints.com - An AppleScript to mount, run, unmount a disk image">An AppleScript to mount, run, unmount a disk image</a></li>
<li><a href="http://www.well.com/~jfw/software/mountpart/" title="John F. Whitehead - MountPart - Mount/Unmount Individual Partitions">MountPart</a></li>
</ol>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/" title="Keeping unused hard disks unmounted (February 12, 2009)">Keeping unused hard disks unmounted</a> (7)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/23/compulsive-blogging-part-4/" title="Compulsive Blogging Part 4 (July 23, 2007)">Compulsive Blogging Part 4</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>YourHead launches Stacks 1.0</title>
		<link>http://adam.merrifield.ca/2009/02/18/yourhead-launches-stacks-10/</link>
		<comments>http://adam.merrifield.ca/2009/02/18/yourhead-launches-stacks-10/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 04:20:57 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rapidweaver]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[stacks]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[yourhead]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/18/yourhead-launches-stacks-10/</guid>
		<description><![CDATA[Fellow RapidWeaver developer, Isaiah of YourHead Software announced today that Stacks, a fluid layout plugin for RapidWeaver, is now official, hitting the big version 1.0. Those of you familiar with YourHead&#8217;s previous heavy hitting page layout tool, Blocks, will immediately recognize what this RapidWeaver plugin is all about, but the two are as different as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.yourhead.com/stacks" title="Stacks"><img src="http://www.yourhead.com/stacks/index_files/stacks_image_186_1.jpg" alt="Stacks" class="image-right" /></a>Fellow RapidWeaver developer, Isaiah of <a href="http://www.yourhead.com/" title="YourHead Software">YourHead Software</a> announced today that <a href="http://www.yourhead.com/stacks" title="Stacks">Stacks</a>, a fluid layout plugin for <a href="http://www.realmacsoftware.com/rapidweaver/" title="RapidWeaver 4 - Powerful Web Design Software for Mac OS X">RapidWeaver</a>, is now official, hitting the big version 1.0. Those of you familiar with YourHead&#8217;s previous heavy hitting page layout tool, <a href="http://www.yourhead.com/blocks/" title="Blocks">Blocks</a>, will immediately recognize what this RapidWeaver plugin is all about, but the two are as different as night and day.</p>

<p>Don&#8217;t get me wrong, Blocks is a brilliant feat of plugin engineering and is the life blood of literally throngs of RapidWeaver users unable to do such layouts on their own. But it&#8217;s not a plugin that ever fit my web design sensibilities. The web is fluid, ever changing, growing, shrinking&#8230; for me, Blocks was too rigid.</p>

<p>Enter Stacks; a completely fluid, flexible, drag&#8217;n'drop all about layout tool for RapidWeaver that can generate oodles stacked up, blocked up, split up, embedded here and there kind of page layouts that only a pocket full of hand coded snippets could achieve perviously. Just like Blocks, Stacks allows to drop in text, HTML, images and whatnot, but then it allows to stacks onto stacks and those onto more stacks. You can make columns, columns in columns, columns where one column is an image, one is some code, one is some text, etc&#8230; drag that under some more columns&#8230; before you know it, you&#8217;ve got your very own <a href="http://960.gs/" title="960 Grid System">960 Grid System</a> built into a RapidWeaver plugin.</p>

<p>If you are looking for the ultimate in flexible page layout with RapidWeaver, go <a href="http://www.yourhead.com/stacks/" title="Stacks">check out Stacks</a>. There are some great movies demonstrating the raw power of it and there is also and <a href="http://www.yourhead.com/wikiwiki/index.php?title=Stacks_Library_API" title="Stacks Library API - YourHead">Stacks API</a> if you&#8217;re interested in creating a custom Stacks library or two.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2007/07/23/compulsive-blogging-part-4/" title="Compulsive Blogging Part 4 (July 23, 2007)">Compulsive Blogging Part 4</a> (4)</li>
	<li><a href="http://adam.merrifield.ca/2007/12/14/textmate-html-and-css-bundles-for-power-users/" title="TextMate HTML and CSS bundles for power users (December 14, 2007)">TextMate HTML and CSS bundles for power users</a> (3)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/18/life-as-a-theme-developer/" title="Life As a Theme Developer (February 18, 2009)">Life As a Theme Developer</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/10/24/elbow-deep-in-php-search-engines/" title="Elbow deep in php search engines (October 24, 2007)">Elbow deep in php search engines</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/18/yourhead-launches-stacks-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Keeping unused hard disks unmounted</title>
		<link>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/</link>
		<comments>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 05:02:20 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[hard disk]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macintosh]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rw]]></category>
		<category><![CDATA[seydoggy]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unmount]]></category>
		<category><![CDATA[volumes]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/</guid>
		<description><![CDATA[The question How do you prevent Mac OS X Leopard from auto mounting disks, drives and volumes when the computer boots up or a user logs in? (skip to the solution) The preamble I have spent days (literally) searching for the answer to this one; I have a Mac Pro running Leopard with (count them) [...]]]></description>
			<content:encoded><![CDATA[<h2>The question</h2>

<p>How do you prevent Mac OS X Leopard from auto mounting disks, drives and volumes when the computer boots up or a user logs in? (<a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#shortcut02-11-09-22-27">skip to the solution</a>)</p>

<h2>The preamble</h2>

<p>I have spent days (literally) searching for the answer to this one; I have a Mac Pro running Leopard with (count them) 4 internal hard drives. One is my system disk and the other 3 are backup disks. Two are weekly mirrors of my system while the third is a daily snap shot of my user account. We won&#8217;t even get into the external disks I have. Yes I am THAT anal about my data.</p>

<p>So what is the trouble here? When you have this many disks containing duplicate data, <a href="http://www.apple.com/macosx/features/300.html#spotlight" title="Apple - Mac OS X Leopard - Features - 300+ New Features">Spotlight</a>, <a href="http://groups.google.com/group/blacktree-quicksilver" title="Blacktree: Quicksilver | Google Groups">QuickSilver</a>, <a href="http://www.obdev.at/launchbar/" title="LaunchBar 5 Beta">Launchbar</a>, <a href="http://code.google.com/p/qsb-mac/" title="qsb-mac - Google Code">Google QSB</a>, etc&#8230; they all want to serve up information found on each disk. That would include duplicate information that you most likely don&#8217;t want to inadvertently open and/or edit. But further to this, why spin up a disk, potential shortening it&#8217;s life span and wasting precious energy, when it only gets used on occasion?</p>

<p>One way around this is to diligently eject each volume every time you boot up your system. But that is both a pain in the butt and no where near as geeky as it should be. So do a quick search on Google for a solution to &#8220;unmount disk on login&#8221; or &#8220;prevent volumes from mounting at the boot up in Mac OS X Leopard&#8221; and you get a great deal of outdated info, inefficient Apple Scripts, overly complex bash commands, apps that wrap bash in an executable app that you launch at login when the moon is at&#8230; you get the idea.</p>

<p>So I set forth to put together the best of the best and simplest of the simple and post it here, for my own reference, exactly what <em>I</em> did to prevent my back up volumes from mounting on boot up.</p>

<div id="shortcut02-11-09-22-27"></div>

<h2>My Solution (proceed at your own risk)</h2>

<p>First off, what you are going to find with most solutions out there is the need for a file called <a href="http://en.wikipedia.org/wiki/Fstab" title="fstab - Wikipedia, the free encyclopedia">fstab</a> in the systems hidden &#8220;/etc&#8221; folder. The trouble is that later versions of OS X (10.4.x and later) don&#8217;t have this file. <em>However</em>, there <em>IS</em> a redundant file called fstab.hd. <em>WE ARE NOT USING THIS FILE</em>. Instead we will create our own fstab file. So with <em>that</em> out of the way, let&#8217;s get started:</p>

<h3>The short of it</h3>

<ol>
<li>Start by making a backup of your system. If you bugger up your system you&#8217;ll have something to recover from.</li>
<li>Open terminal (/Applications/Utilities/Terminal.app)</li>
<li>Do one on the following:

<ul>
<li>In Terminal, type the following (with your volume name) and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note1"><code>*</code></a>:
<code>diskutil info /volumes/DiskName</code>
<img src="http://images.seydoggy.com/diskutil_info_volume_DiskName-20090211-215727.jpg" alt="diskutil info volumes DiskName" title="diskutil info volumes DiskName" /></li>
<li>Or, you can use Apples Disk Utility app (/Applications/Utilities/Disk Utility.app), select the disk in question and choose &#8220;info&#8221; from the toolbar.
<img src="http://images.seydoggy.com/Disk_Utility_information-20090211-215916.jpg" alt="Disk Utility information" title="Disk Utility information" /></li>
</ul></li>
<li>Find the Volume <a href="http://en.wikipedia.org/wiki/UUID" title="Universally Unique Identifier - Wikipedia, the free encyclopedia">UUID</a> (Universal Unique Identifier). Copy the UUID to your clipboard <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note2"><code>**</code></a>.</li>
<li>In Terminal enter and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note3"><code>***</code></a>:
<code>sudo pico /etc/fstab</code></li>
<li>Enter your password and return.</li>
<li>You&#8217;ll enter a window that looks like this:
<img src="http://images.seydoggy.com/sudo_pico_etc_fstab-20090211-220250.jpg" alt="sudo pico etc fstab" title="sudo pico etc fstab" /></li>
<li>Enter the following (with your UUID) and return <a href="http://www.seydoggy.com/2009/02/12/keeping-unused-hard-disks-unmounted/#note4"><code>****</code></a>:
<code>UUID=87635CC4-B2EF-3114-B854-F64347A39630 none hfs rw,noauto 0 0</code></li>
<li>Repeat step for each device you with to hide, each on a new line.
<img src="http://images.seydoggy.com/device_id_moint_point_filesystem_options_boolean-20090211-221144.jpg" alt="device id, mount point, filesystem, mount options, dump and fsck options" title="device id, mount point, filesystem, mount options, dump and fsck options" /></li>
<li>Exit pico (&amp;#x2303;X) and save (Y).</li>
<li>Press return when prompted with:
<code>File Name to Write: /etc/fstab</code>
<img src="http://images.seydoggy.com/File_Name_to_Write_etc_fstab-20090211-221654.jpg" alt="File Name to Write: /etc/fstab" title="File Name to Write: /etc/fstab" /></li>
<li>All that&#8217;s left to do is is cross your fingers and reboot your Mac.</li>
</ol>

<h3>The long of it</h3>

<ul>
<li><span id="note1"><code>*</code></span> substitute &#8220;DiskName&#8221; for the name of the volume you wish to hide. If your volume name contains a space, like &#8220;Macintosh HD&#8221; you need to escape the space with a backslash so it looks like &#8220;Macintosh\ HD&#8221;</li>
<li><span id="note2"><code>**</code></span> We use the &#8220;Volume UUID&#8221; as the disk identifier since it is not prone to change like &#8220;Device Identifier&#8221; (i.e. &#8220;disk0s2&#8243;) which can change with each and every start up.</li>
<li><span id="note3"><code>***</code></span> This will create/edit your &#8220;/etc/fstab&#8221; file with <a href="http://tinyurl.com/bstnru" title="Pico (text editor) - Wikipedia, the free encyclopedia">pico</a>, a simple text editor.</li>
<li><p><span id="note4"><code>****</code></span> The string you are entering is the device id followed by the mount point, the filesystem, the mount options, the dump and fsck booleans. In this case:</p>

<ul>
<li>the device is my UUID (UUID=87635CC4-B2EF-3114-B854-F64347A39630)</li>
<li>the mount point is &#8220;none&#8221; (because we won&#8217;t be mounting it)</li>
<li>the file system is &#8220;hfs&#8221; (since it&#8217;s formatted for Mac)</li>
<li>the mount options are &#8220;rw&#8221; (read-write) and &#8220;noauto&#8221; (volume will not auto mount)</li>
<li>the dump option (backup utility) and fsck option (filesystem check utility) booleans are both set to 0 (false, off, nil, nada) since we don&#8217;t plan to mount the volume and therefor don&#8217;t need to backup or check them</li>
</ul>

<p>For more on fstab column structures, visit <a href="http://www.tuxfiles.org/linuxhelp/fstab.html" title="How to edit and understand /etc/fstab">tuxfiles fstab help</a>.</p></li>
</ul>

<h2>The wrap-up</h2>

<p>For whatever reason, Apple decided to nix fstab from it&#8217;s own Unix core. Perhaps for security or perhaps they just deemed it unnecessary. If you look in the <em>other</em> file I mentioned, &#8220;/etc/fstab.hd&#8221; (in terminal, enter and return: <code>sudo pico /etc/fstab.hd</code>), you&#8217;ll see the message:</p>

<blockquote>
  <p>IGNORE THIS FILE.
  This file does nothing, contains no useful data, and might go away in
  future releases.  Do not depend on this file or its contents.</p>
</blockquote>

<p>However, I see no harm in extending the life expectancy of my disks and saving energy at the same time. All while doing away with the annoyance of long indexing times and being inundated with duplicate search results. If you have anything to add, please feel free to leave a comment.</p>

<h2>Other references</h2>

<ol>
<li><a href="http://www.macosxhints.com/article.php?story=20060218083814209" title="macosxhints.com - Unmount a volume (on login) via AppleScript">Mac OS X Hints from 2006</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=2005052804075538" title="macosxhints.com - Unmount a volume at startup">Mac OS X Hints from 2005</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20040624012142602" title="macosxhints.com - A script to unmount cloned backup volumes at login">Mac OS X Hints from 2004</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20030227194830916" title="macosxhints.com - Create a more dynamic fstab using UUIDs">Mac OS X Hints from 2003</a></li>
<li><a href="http://www.macseven.com/files/20070719_how_to_prevent_a_drive_volume_from_mounting.html" title="How to prevent a drive volume from mounting | Tips &amp;amp; Tricks | MacSeven.com">MacSeven from 2007</a></li>
<li><a href="http://www.gigoblog.com/2007/05/01/prevent-mac-os-x-from-mounting-a-hard-drive-volume-at-boot/" title="Garbage In Garbage Out : Tech Blog  -   &amp;raquo; Prevent Mac OS X from mounting a hard drive volume at boot">Garbage In Garbage Out from 2007</a></li>
<li><a href="http://en.wikipedia.org/wiki/UUID" title="Universally Unique Identifier - Wikipedia, the free encyclopedia">UUID on Wikipedia</a></li>
<li><a href="http://tinyurl.com/bstnru" title="Pico (text editor) - Wikipedia, the free encyclopedia">Pico on Wikipedia</a></li>
<li><a href="http://www.tuxfiles.org/linuxhelp/fstab.html" title="How to edit and understand /etc/fstab">How to edit and understand fstab files</a></li>
</ol>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2009/02/25/auto-mountunmount-your-mac-volumes-when-required/" title="Auto mount/unmount your Mac volumes when required (February 25, 2009)">Auto mount/unmount your Mac volumes when required</a> (2)</li>
	<li><a href="http://adam.merrifield.ca/2007/11/30/time-machine-a-giant-leap-backward/" title="Time Machine. A giant leap backward. (November 30, 2007)">Time Machine. A giant leap backward.</a> (5)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/10/27/creating-unique-ids-for-anything/" title="Creating Unique ID&#039;s For&#8230; Anything! (October 27, 2009)">Creating Unique ID&#039;s For&#8230; Anything!</a> (1)</li>
	<li><a href="http://adam.merrifield.ca/2007/03/27/the-bigbox/" title="The BigBox (March 27, 2007)">The BigBox</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/12/keeping-unused-hard-disks-unmounted/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Rebuilding after all of these years!</title>
		<link>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/</link>
		<comments>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 17:37:37 +0000</pubDate>
		<dc:creator>Adam Merrifield</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[nutmac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[seydesign]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[son]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.seydoggy.com/2009/02/10/rebuilding-after-all-of-these-years/</guid>
		<description><![CDATA[Rebuilding after all of these years. Seriously, it&#8217;s been years since I have done a clean install&#8230; since Mac OS X 10.2 to be exact. I have been pulling all the crud I have collected over the years along with me like barnacles on the bottom of of the ship of life. And like the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.seydesign.com/images/content/X_145w_192h.jpg" alt="Rebuilding OS X" class="image-left" />Rebuilding after all of these years. Seriously, it&#8217;s been years since I have done a clean install&#8230; since Mac OS X 10.2 to be exact. I have been pulling all the crud I have collected over the years along with me like barnacles on the bottom of of the ship of life. And like the real thing, those barnacles have been slowing me down.</p>

<p>This became painfully obvious recently when I made a new user account to make some tutorial movies. The new account was <em>fast</em> and <em>responsive</em> in a way I hadn&#8217;t experienced in years. If this wasn&#8217;t evidence enough, I was having a nagging problem with <a href="http://www.hogbaysoftware.com/products/taskpaper" title="TaskPaper — Simple to-do list software">TaskPaper from Hogbay Software</a> where for no obvious reason, it would quite with every launch. Between Jesse and Apple they were able to nail it down to a webcam component that was not proper GC code but was pretending to be. The point is, I have no idea where I ever picked up that component or when even. It was time to nuke and rebuild.</p>

<p>The reason I haven&#8217;t in so many years is because I have come to rely on so many hacks over the years, things that Mac OS X wasn&#8217;t either capable of or didn&#8217;t do well enough. It was a scary thought to try and get by on a stock system or try and replicate those hacks again. For the last little while I&#8217;ve been trying to change my habits, trying to use less 3rd party hackery and find native solutions or terminal commands that accomplish the same thing.</p>

<p>For instance, years ago I used to use <a href="http://www.usboverdrive.com/" title="">USB Overdrive</a> to ramp up my mouse tracking and and assign special functions to various mouse button combinations. When support for it waned I turned to <a href="http://plentycom.jp/" title="Main Page">SteerMouse</a> which did almost exactly the same thing. But now-a-days I barely use the mouse and when I do all I really need is a speed boost which is easily <a href="http://www.macworld.com/article/49691/2006/03/turbomice.html" title="Turbocharge mice and trackpads | Mac OS X Hints | Macworld">achieved in the terminal</a>:</p>

<blockquote>
  <p>If you have a mouse:</p>
  
  <blockquote>
    <p><code>defaults write -g com.apple.mouse.scaling some_number</code></p>
  </blockquote>
  
  <p>If you have a trackpad:</p>
  
  <blockquote>
    <p><code>defaults write -g com.apple.trackpad.scaling some_number</code></p>
  </blockquote>
  
  <p>The some_number at the end of each of the above lines must be replaced by, well, an actual number indicating the speed you’d like to use—the higher the number, the faster the tracking will be. As a starting point, the default value for maximum mouse speed is 3.0, and maximum trackpad speed is 1.5. So you might try a starting value of 5.0 for your turbo-charged mouse, and 2.5 or 3.0 for a turbo-charged trackpad.</p>
  
  <p>The easiest way to make your changes take effect is to log out and then log in again (Apple menu: Log Out user name ).</p>
</blockquote>

<p>I guess my point is this (wearing my nutMac/productivity hat), if you are going to spend any time as a developer of any sort, keep your system customizations to a minimum, install only those apps you honestly think you&#8217;ll need or use, find native solutions to mods you can&#8217;t live without, document those mods carefully and alway be prepared to do a clean install from time to time. The less cluttered your system is the better chance you have using a migration assistant so you don&#8217;t have to do it all manually like I did.</p>

<p>That&#8217;s where I am at now. I have spent nearly two whole days manually moving preferences and folders for the apps I need so that I can be sure not to take all the other crap with me again. Now that I have done my clean install I should have no trouble keeping it clean every six months now.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://adam.merrifield.ca/2007/10/09/look-and-learn-your-way-to-better-productivity/" title="Look and learn your way to better productivity (October 9, 2007)">Look and learn your way to better productivity</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/07/30/pathfinder-is-the-only-finder-you-need/" title="Pathfinder is the only Finder you need (July 30, 2007)">Pathfinder is the only Finder you need</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2007/08/13/skitch-snap-draw-share/" title="Skitch &#8211; Snap, Draw, Share (August 13, 2007)">Skitch &#8211; Snap, Draw, Share</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2008/08/25/my-top-5-web-development-tools/" title="My top 5 web development tools (August 25, 2008)">My top 5 web development tools</a> (0)</li>
	<li><a href="http://adam.merrifield.ca/2009/02/18/life-as-a-theme-developer/" title="Life As a Theme Developer (February 18, 2009)">Life As a Theme Developer</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://adam.merrifield.ca/2009/02/10/rebuilding-after-all-of-these-years/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
