<?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>sixohthree.com &#187; Mac OS X</title>
	<atom:link href="http://sixohthree.com/category/macosx/feed" rel="self" type="application/rss+xml" />
	<link>http://sixohthree.com</link>
	<description>The Weblog of Adam Backstrom</description>
	<lastBuildDate>Wed, 16 May 2012 15:01:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Removing All Partitions in Mac OS X</title>
		<link>http://sixohthree.com/934/removing-all-partitions-in-mac-os-x</link>
		<comments>http://sixohthree.com/934/removing-all-partitions-in-mac-os-x#comments</comments>
		<pubDate>Tue, 08 Sep 2009 17:41:05 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://sixohthree.com/?p=934</guid>
		<description><![CDATA[Here's now to "remove" all partitions on a disk under Mac OS X by clobbering the partition map.]]></description>
			<content:encoded><![CDATA[<p>When setting up a new <a href="http://www.truecrypt.org/">TrueCrypt</a> device under Mac OS X, you may receive this message if you try to encrypt a whole disk rather than a partition:</p>
<p><a href="http://sixohthree.com/files/2009/09/device-contains-partitions.png"><img class="alignnone size-full wp-image-931" src="http://sixohthree.com/files/2009/09/device-contains-partitions.png" alt="device-contains-partitions" width="394" height="183" /></a></p>
<p>I could not find a way to remove the partition via the Mac OS X Disk Utility, so I resorted to some terminal work. By clobbering the first few bytes of the disk&#8217;s partition map, I essentially made the whole disk look like random garbage, and TrueCrypt no longer presented a warning. <span style="color: #ff0000">This will cause data loss, so be careful.</span></p>
<p>First, find the drive&#8217;s device number using Disk Utility. Right click on the drive (not one of the partitions) and select &#8220;Information.&#8221;</p>
<p><a href="http://sixohthree.com/files/2009/09/right-click-info.jpg"><img class="alignnone size-full wp-image-933" src="http://sixohthree.com/files/2009/09/right-click-info.jpg" alt="right-click-info" width="274" height="172" /></a></p>
<p>Look for &#8220;Disk Identifier&#8221; in the property list. In this case, my drive is called <span style="color: #ff0000">disk3</span>, which corresponds to /dev/disk3 on the filesystem. Tomorrow it might be disk4 or disk6, so don&#8217;t make any assumptions here. Failure to find the correct drive number in this step will cause you to erase the wrong drive in a future step.</p>
<p><a href="http://sixohthree.com/files/2009/09/device-information.png"><img class="alignnone size-full wp-image-932" src="http://sixohthree.com/files/2009/09/device-information.png" alt="device-information" width="317" height="219" /></a></p>
<p>Open up your terminal and umount this disk&#8217;s volumes. Note the asterisk, which should be included in your command.</p>
<ul>
<li>sudo umount -f /dev/<span style="color: #ff0000">disk3</span>*</li>
</ul>
<p>Unmounting drives in the Finder will make the disk unavailable in /dev, and we need this block device if we&#8217;re going to clobber the filesystem.</p>
<p>Once the partitions are unmounted, we can write junk to the partition table and essentially unformat the drive. <span style="color: #ff0000">This is the dangerous part, so don&#8217;t screw it up or you will destroy the wrong drive, lose all your data, and seriously hate life.<span style="color: #000000"> Replace <span style="color: #ff0000">disk3</span> with your drive identifier!</span><br />
</span></p>
<ul>
<li>sudo dd if=/dev/zero of=/dev/<span style="color: #ff0000">disk3</span> bs=1 count=1024</li>
</ul>
<p>After writing zeroes to the front of the drive, TrueCrypt happily made an encrypted volume on the disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/934/removing-all-partitions-in-mac-os-x/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Vim of a Different Color</title>
		<link>http://sixohthree.com/776/a-vim-of-a-different-color</link>
		<comments>http://sixohthree.com/776/a-vim-of-a-different-color#comments</comments>
		<pubDate>Fri, 27 Mar 2009 04:07:32 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://blogs.bwerp.net/?p=776</guid>
		<description><![CDATA[After one too many compilation errors due to a missing quote/brace/bracket/etc., I finally enabled Vim syntax highlighting. The rabbit hole: :syn on. These colors suck. Look for themes. 4 bit themes suck. Let&#8217;s set up an 8 bit color terminal. Leopard&#8217;s Terminal.app fails, install iTerm 0.9.6. iTerm works, but I use GNU screen all day. [...]]]></description>
			<content:encoded><![CDATA[<p>After one too many compilation errors due to a missing quote/brace/bracket/etc., I finally enabled Vim syntax highlighting. The rabbit hole:</p>
<ol>
<li><code>:syn on</code>. These colors suck. Look for themes.</li>
<li>4 bit themes suck. Let&#8217;s set up an 8 bit color terminal.</li>
<li>Leopard&#8217;s Terminal.app <a href="http://www.vim.org/scripts/script.php?script_id=1349">fails</a>, install iTerm 0.9.6.</li>
<li>iTerm works, but I use GNU screen all day. Recompile screen with <code>--enable-colors256</code>.</li>
<li>screen wins, but doesn&#8217;t play nice with the delete key in iTerm. <a href="http://akgeeks.net/node/83">Fix it</a>.</li>
<li>Compile Vim 7.2 for 8 bit support.</li>
<li>Get an <a href="http://www.vim.org/scripts/script.php?script_id=2175">8 bit theme</a>. <code>set t_Co=256</code> in <code>.vimrc</code>.</li>
<li><code>" syntax highlight html files using the php highlighter</code><br />
<code>autocmd BufRead,BufNewFile *.html set filetype=php<br />
</code></li>
<li>Install <a href="http://www.vim.org/scripts/script.php?script_id=1984">FuzzyFinder</a> for good measure now that we&#8217;re out of Vim 6.3 territory.</li>
<li>Start saving seconds/minutes/hours of my life that before were consumed by syntax errors.</li>
</ol>
<p><a href="/~adam/wp-uploads/2009/03/vim-color.png"><img class="alignnone size-full wp-image-778" src="/~adam/wp-uploads/2009/03/vim-color.png" alt="vim-color" width="636" height="486" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/776/a-vim-of-a-different-color/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware Fusion 2</title>
		<link>http://sixohthree.com/525/fusion</link>
		<comments>http://sixohthree.com/525/fusion#comments</comments>
		<pubDate>Wed, 03 Sep 2008 01:35:48 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmwarefusion]]></category>

		<guid isPermaLink="false">http://blogs.bwerp.net/?p=525</guid>
		<description><![CDATA[Digest version: it's sweet.]]></description>
			<content:encoded><![CDATA[<p>I bit the bullet and downloaded the VMware Fusion 2 release candidate today. For completeness, I also trashed my Ubuntu 7.04 Server virtual machine and installed Ubuntu 8.04 Desktop. Here&#8217;s some thoughts after a few hours of use.</p>
<h3>Installation</h3>
<p>During the machine setup, I was prompted to do a &#8220;Linux Easy Install.&#8221; The software auto-populated my full name and username, and asked me for a new password. I let it do its thing, having already pointed it to the Ubuntu installation ISO. A short while later, with no additional interaction, I was at the Gnome login screen. The username and password I had chosen during installation worked great.</p>
<h3>Interface</h3>
<p><a href="/~adam/wp-uploads/2008/09/unity.jpg"><img class="alignright size-thumbnail wp-image-528" src="/~adam/wp-uploads/2008/09/unity.jpg" alt="" width="150" height="93" /></a>The feature that finally pushed me over the 2.0 edge was Unity support in Linux. In the past I have only run server applications on my VM, but I had to see Linux Unity in action, layering my Linux applications with Mac OS X applications. It doesn&#8217;t disappoint.</p>
<p>At the other end of the spectrum is &#8220;Headless&#8221; mode. I&#8217;ve been waiting for this for a long time. When I&#8217;m using the server capabilities of my VM, I don&#8217;t want an extra application cluttering up my alt-tab. Now: &#8220;Enter Headless,&#8221; quit VMWare Fusion. Simple. I assume the VM will suspend if I shut down the computer, but I haven&#8217;t tested it yet.</p>
<p><a href="/~adam/wp-uploads/2008/09/library.jpg"><img class="alignleft size-thumbnail wp-image-527" src="/~adam/wp-uploads/2008/09/library.jpg" alt="" width="150" height="85" /></a>The new library window is a bit more attractive, and the machine settings list is more compact. The list also shows a live thumbnail of your VM&#8217;s display, be it console or graphical. Along the same lines, the console display can now be resized to zoom the terminal text in or out.</p>
<p><a href="/~adam/wp-uploads/2008/09/launcher.jpg"><img class="alignright size-thumbnail wp-image-526" src="/~adam/wp-uploads/2008/09/launcher.jpg" alt="" width="150" height="57" /></a>The Gnome application menu is also accessible from the Mac OS X Dock. Apps can be launched in Unity mode without restoring the Gnome desktop.</p>
<p>Seamless cursor movement between the Linux and Mac desktop, along with VM resolution adjusting to the size of the machine window, are also great features, though I suspect they were present in Fusion 1.0.</p>
<h3>Some Other Section</h3>
<p>Looks like the VMware Fusion team has been up to good things since the first release. I haven&#8217;t yet tried Parallels, but I can&#8217;t see a reason to try anything new from where I&#8217;m sitting.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/525/fusion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jumping Ship</title>
		<link>http://sixohthree.com/418/mail</link>
		<comments>http://sixohthree.com/418/mail#comments</comments>
		<pubDate>Fri, 22 Jun 2007 20:27:34 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blogs.bwerp.net/archives/2007/06/22/mail</guid>
		<description><![CDATA[Man the lifeboats.]]></description>
			<content:encoded><![CDATA[<p>I abandoned Apple Mail today, at least for the time being. It having trouble synchronizing over IMAP, getting stuck and crashing on certain folders. If I drop into Offline mode I can tell the folder to rebuild itself, but this only works for a couple hours at most. Deleting local cache files didn&#8217;t help. Once it got in its rut it would crash 5-10 seconds after I opened it. I don&#8217;t need that sort of distraction when I&#8217;m trying to find a piece of e-mail.</p>
<p>I installed Thunderbird and I&#8217;m surprised how much I like it. I was never fond of the Windows version. Some of the Mac build&#8217;s UI elements are noticibly non-standard and sluggish, but it&#8217;s better suited to power users (subscriptions, variety of config options) and the threading is just like Mutt&#8217;s: no false message acting as a thread header, and replies are indented in the tree order I&#8217;d expect.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/418/mail/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Improving Network Performance on Mac OS X</title>
		<link>http://sixohthree.com/416/improving-network-performance-on-mac-os-x</link>
		<comments>http://sixohthree.com/416/improving-network-performance-on-mac-os-x#comments</comments>
		<pubDate>Sat, 16 Jun 2007 23:50:33 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blogs.bwerp.net/archives/2007/06/16/improving-network-performance-on-mac-os-x</guid>
		<description><![CDATA[The default Mac OS X 10.4 has a default configuration for delayed ACK that made some of my network operations unbearably slow, most notably Samba. This note on Mac OS X Hints fixed things for me, improving transfer speeds noticeably. The short version: add net.inet.tcp.delayed_ack=0 to the end of /etc/sysctl.conf and reboot.]]></description>
			<content:encoded><![CDATA[<p>The default Mac OS X 10.4 has a default configuration for <a href="http://www.freesoft.org/CIE/RFC/1122/110.htm">delayed ACK</a> that made some of my network operations unbearably slow, most notably Samba. <a href="http://www.macosxhints.com/article.php?story=20051107090652912">This note on Mac OS X Hints</a> fixed things for me, improving transfer speeds noticeably. The short version: add <code>net.inet.tcp.delayed_ack=0</code> to the end of <code>/etc/sysctl.conf</code> and reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/416/improving-network-performance-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dockadd, Revealed</title>
		<link>http://sixohthree.com/281/dockadd</link>
		<comments>http://sixohthree.com/281/dockadd#comments</comments>
		<pubDate>Tue, 14 Dec 2004 23:50:40 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">/?p=281</guid>
		<description><![CDATA[Hey, there it is.]]></description>
			<content:encoded><![CDATA[<p>I was checking out <a href="http://www.google.com/search?q=adam+backstrom">my Google ranking</a> and stumbled across something I never expected to see online: my <a href="https://mailman.rice.edu/pipermail/radmind/2004-July/007125.html">Dockadd script</a>. This script allows the user to add files, folders, and applications to the Mac OS X Dock via the command line or a script. It represents the pinnacle of my OS X hackery in many ways.</p>
<p>And of course, $LUSER is just shorthand for &#8220;local user,&#8221; as any sysadmin knows.</p>
<p><span style="font-weight: bold">Update, 7 April, 2005:</span> Looking back at this script posting, the linebreaks are a bit out-of-whack, so a copy/paste of the code will not work. Script monkeys will be able to spot the errors, but if anyone has major headaches I can help point out the problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/281/dockadd/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Offline IMAP in Entourage</title>
		<link>http://sixohthree.com/209/entourage</link>
		<comments>http://sixohthree.com/209/entourage#comments</comments>
		<pubDate>Sat, 24 Apr 2004 01:39:32 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=209</guid>
		<description><![CDATA[Hint: it's supported.]]></description>
			<content:encoded><![CDATA[<p><a href="/~adam/2004/04/23/entourage-synchronization.png"><img src="/~adam/2004/04/23/entourage-synchronization-thumb-1.png" style="float: left;border: 0;margin-right: 5px;clear: left"><img src="/~adam/2004/04/23/entourage-synchronization-thumb-2.png" style="float: left;border: 0;margin-right: 5px;clear: left"><img src="/~adam/2004/04/23/entourage-synchronization-thumb-3.png" style="float: left;border: 0;margin-right: 5px;clear: left"></a> Microsoft Entourage X is a decent mail program, but one thing that&#8217;s peeved me in the past was the (apparent) lack of support for offline reading of IMAP messages. Sure you could view messages you had already downloaded and read, but who wants to click on each of fifty messages before disconnecting from the Internet?</p>
<p>Turns out a user is free to change this functionality. Open the &#8220;Tools&#8221; menu, and select &#8220;Rules.&#8221; Double-click the &#8220;Send and Receive All&#8221; rule, and click the account options button next to your target IMAP account. You&#8217;ll be presented with a list of all the folders in your account. Checking the box next to a folder displays a corresponding popup menu for setting synchronization options, defaulting to &#8220;Headers Only.&#8221; Select your preferred setting, ie. &#8220;All Messages&#8221; to download every byte of each new message when you check your mail.</p>
<p>Nifty.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/209/entourage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Miscellaneous Hackery</title>
		<link>http://sixohthree.com/180/miscellaneous-hackery</link>
		<comments>http://sixohthree.com/180/miscellaneous-hackery#comments</comments>
		<pubDate>Sun, 21 Sep 2003 03:36:45 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=180</guid>
		<description><![CDATA[Mostly UML.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been experimenting with <a href="http://user-mode-linux.sourceforge.net/">User Mode Linux</a> lately. (Nerds in the know call it UML for short.) Let&#8217;s just say I&#8217;m <em>actutely</em> impressed. UML allows me to run fully encapsulated Linux systems on my host, fully partitioned out from normal userspace. I&#8217;m going to toy around with the possibilities and maybe move some Apache vhosts or other server services inside. (This is useful for damage control in the event of a break-in.)</p>
<p>Here&#8217;s a Mac OS X tip for y&#8217;all: <code>cron</code> on Mac OS X has the ability to run commands only when operating on A/C power:</p>
<blockquote><p>The command can optionally be prefixed by &#8220;@AppleNotOnBattery &#8221; to tell cron not to run the command when functioning on battery power.  For example, the &#8220;sixth&#8221; field when using this option would appear something like &#8220;@AppleNotOnBattery /usr/bin/touch /tmp/foo&#8221;</p></blockquote>
<p>I signed up for hosting from <a href="http://www.jvds.com/">JVDS</a>. $20 a month gives me root on my own Slackware Linux 9.0 UML. I&#8217;ve been configuring it over the past few days, and initial impressions are very good. I&#8217;ve configured BIND to be the name server for my <a href="http://sixohthree.com/">new domain</a>, and Apache is happily serving up several vhosts. Let me also say that <a href="http://qmail.org/">qmail</a> is the most wonderful piece of software in the world. It loves <a href="http://www.qmail.org/qmail-manual-html/man5/maildir.html">Maildir</a> even more than I do, which is saying a lot.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/180/miscellaneous-hackery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dock Annoyances</title>
		<link>http://sixohthree.com/164/dock-annoyances</link>
		<comments>http://sixohthree.com/164/dock-annoyances#comments</comments>
		<pubDate>Mon, 30 Jun 2003 01:43:35 +0000</pubDate>
		<dc:creator>Adam Backstrom</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">/?p=164</guid>
		<description><![CDATA["An application should always present a window when its Dock icon is clicked." Does anyone else find this feature slightly annoying?]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://developer.apple.com/ue/aqua/dock.html">The Dock</a>, at developer.apple.com:</p>
<p>
<blockquote cite="http://developer.apple.com/ue/aqua/dock.html">
<p>An application should always present a window when its Dock icon is clicked. This behavior compensates for the all-too-familiar case where a user closes a document window and thinks she has quit the application. The next time the user wants to use the application, indicated by a click on its Dock icon, a new window opens so that the user is absolutely sure that the application is active.</p>
</blockquote>
<p>Does anyone else find this feature slightly annoying? Maybe I&#8217;m just used to Mac OS 9, but I don&#8217;t appreciate applications opening a window without my say so. Maybe I don&#8217;t want a huge browser window to pop up every time I switch to Safari. Maybe I switched to TextEdit for the open dialog, <em>not</em> a new blank document. This behavior is somehow intuitive? &#8220;All-too-familiar case,&#8221; indeed.</p>
]]></content:encoded>
			<wfw:commentRss>http://sixohthree.com/164/dock-annoyances/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

