<?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>Whatever happened to Benjamin Ragheb? &#187; mac</title>
	<atom:link href="http://www.benzado.com/blog/tags/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://www.benzado.com/blog</link>
	<description>I apologize that this blog is using the default Wordpress template.</description>
	<lastBuildDate>Thu, 06 May 2010 16:33:52 +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>WTF, Time Machine?</title>
		<link>http://www.benzado.com/blog/post/107/wtf-time-machine</link>
		<comments>http://www.benzado.com/blog/post/107/wtf-time-machine#comments</comments>
		<pubDate>Tue, 16 Dec 2008 07:44:32 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Nerdery]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[time machine]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://www.benzado.com/blog/?p=107</guid>
		<description><![CDATA[For a while I was feeling pretty good about making the switch from whenever-I-get-around-to-doing-it backups with SuperDuper to hourly-in-the-background backups with Time Machine. But today I noticed that, even after more than a week, no history shows up when I attempt to &#8220;time travel&#8221;. Then I find TS1760: &#8220;In the Mac OS X 10.5 Time [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I was feeling pretty good about making the switch from whenever-I-get-around-to-doing-it backups with <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> to hourly-in-the-background backups with <a href="http://www.apple.com/macosx/features/timemachine.html">Time Machine</a>. But today I noticed that, even after more than a week, no history shows up when I attempt to &#8220;time travel&#8221;.</p>
<p>Then I find <a href="http://support.apple.com/kb/TS1760">TS1760</a>: &#8220;In the Mac OS X 10.5 Time Machine &#8216;time travel&#8217; window, past backups may not appear if your computer name includes certain characters.&#8221;</p>
<p>The solution is to update to 10.5.5 or later. I&#8217;m pretty sure I had done that long before I set up Time Machine.</p>
<p><em>What the hell?</em></p>
<p>My computer name was &#8220;BR&#8217;s MacBook&#8221;. I renamed it to &#8220;BR MacBook&#8221; and, later, &#8220;BRMacBook&#8221;. So far I have learned:</p>
<ul>
<li>Time Machine does not freak out and renames the root backup folder appropriately.</li>
<li>I am still unable to &#8220;time travel&#8221;.</li>
<li>Many people on the Internet have reported the existence of this problem but nobody has claimed to have found a solution to it.</li>
</ul>
<p><em>What did I do to deserve this?</em></p>
<p>UPDATE: Apparently the way to time travel in this configuration is to option-click the Time Machine menu item (or ctrl-click the Dock icon) and select &#8220;Browse Other Time Machine Disks&#8221;. I found this out by browsing <a href="http://discussions.apple.com/message.jspa?messageID=8652817#8652817">Apple&#8217;s discussion forums</a> directly instead of simply assuming that Google knew it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benzado.com/blog/post/107/wtf-time-machine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time Machine automatically finds your sparse image</title>
		<link>http://www.benzado.com/blog/post/68/time-machine-automatically-finds-your-sparse-image</link>
		<comments>http://www.benzado.com/blog/post/68/time-machine-automatically-finds-your-sparse-image#comments</comments>
		<pubDate>Mon, 08 Dec 2008 17:12:40 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Nerdery]]></category>
		<category><![CDATA[drobo]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://www.benzado.com/blog/?p=68</guid>
		<description><![CDATA[Yesterday I followed Erik J. Barzeski&#8217;s instructions to configure Time Machine to backup to a sparse bundle disk image on my Drobo. I wasted a lot of time trying to figure out how to tell Time Machine to use the disk image and not the whole disk; eventually I discovered that if you just select [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I followed <a href="http://nslog.com/2008/11/11/formatting_the_drobo_for_time_machine_backups">Erik J. Barzeski&#8217;s instructions</a> to configure Time Machine to backup to a sparse bundle disk image on my <a href="http://www.drobo.com/">Drobo</a>. I wasted a lot of time trying to figure out how to tell Time Machine to use the disk image and not the whole disk; eventually I discovered that if you just select the disk, Time Machine finds the <strong>properly named</strong> disk image and automatically uses that. So, if you happen to think like me, I hope this note has saved you a few minutes of confusion.</p>
<p>Other things I&#8217;ve learned:</p>
<ul>
<li>Changing the volume name of the backup disk during a backup will cause the backup to fail and start over again. Not a big deal.</li>
<li>If you want your backup disk to have a nice looking Time Machine icon, <a href="http://www.macosxhints.com/article.php?story=20071018143409599">you can find it</a> in the file GenericTimeMachineDiskIcon.icns in the folder /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.benzado.com/blog/post/68/time-machine-automatically-finds-your-sparse-image/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a RAM disk on Mac OS X</title>
		<link>http://www.benzado.com/blog/post/7/creating-a-ram-disk-on-mac-os-x</link>
		<comments>http://www.benzado.com/blog/post/7/creating-a-ram-disk-on-mac-os-x#comments</comments>
		<pubDate>Fri, 12 Sep 2008 19:44:29 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Nerdery]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.benzado.com/blog/?p=7</guid>
		<description><![CDATA[Here is a pair of shell functions to create and destroy a RAM disk on Mac OS X. # Creates a RAM disk device, formats it as HFS+, then mounts it. # parameters: size in megabytes create_ram_disk() { local RAMDISK_SIZE_MB=$1 local RAMDISK_SECTORS=$((2048 * $RAMDISK_SIZE_MB)) RAMDISK_DEVICE=`hdiutil attach -nomount ram://$RAMDISK_SECTORS` RAMDISK_PATH=`mktemp -d /tmp/ramdisk.XXXXXX` newfs_hfs $RAMDISK_DEVICE # format as [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a pair of shell functions to create and destroy a <a href="http://en.wikipedia.org/wiki/RAM_disk">RAM disk</a> on Mac OS X.</p>
<pre># Creates a RAM disk device, formats it as HFS+, then mounts it.
# parameters: size in megabytes
create_ram_disk() {
	local RAMDISK_SIZE_MB=$1
	local RAMDISK_SECTORS=$((2048 * $RAMDISK_SIZE_MB))
	RAMDISK_DEVICE=`hdiutil attach -nomount ram://$RAMDISK_SECTORS`
	RAMDISK_PATH=`mktemp -d /tmp/ramdisk.XXXXXX`
	newfs_hfs $RAMDISK_DEVICE # format as HFS+
	mount -t hfs $RAMDISK_DEVICE $RAMDISK_PATH
	df -h $RAMDISK_PATH # report on disk usage
}

# Destroys the RAM disk created by create_ram_disk
# parameters: none
destroy_ram_disk() {
	echo "Destroying $RAMDISK_DEVICE"
	df -h $RAMDISK_PATH # report on disk usage
	umount -f $RAMDISK_DEVICE
	hdiutil detach $RAMDISK_DEVICE
	rmdir $RAMDISK_PATH
}</pre>
<p>What are they good for?  I use these in any script that needs to write a lot of files that will be thrown away before the script is over.  For example, I keep the contents of my websites in a subversion repository.  When I want to update the site, I run a script which executes:</p>
<ol>
<li><strong>create_ram_disk 100</strong> to create a 100MB RAM disk</li>
<li><strong>svn export</strong> to write the web files to <strong>$RAMDISK_PATH</strong></li>
<li><strong>rsync</strong> to copy changed files from the RAM disk to the web host</li>
<li><strong>destroy_ram_disk</strong> to clean up</li>
</ol>
<p>I also do this in release build scripts, telling the xcodebuild command to use a temporary RAM disk for intermediate and product files.  Sure, Mac OS X has an excellent disk cache, but why hassle it when you know that all of those files will be deleted soon anyway?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benzado.com/blog/post/7/creating-a-ram-disk-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
