<?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"
	>

<channel>
	<title>dannyman.toldme.com &#187; Mac OS X</title>
	<atom:link href="http://dannyman.toldme.com/category/technical/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://dannyman.toldme.com</link>
	<description>Interesting bits of information and editorial, evolving online since 1995.</description>
	<pubDate>Tue, 25 Nov 2008 04:58:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>HOWTO: Random Number in Shell Script</title>
		<link>http://dannyman.toldme.com/2008/07/04/shell-sh-bash-random-splay/</link>
		<comments>http://dannyman.toldme.com/2008/07/04/shell-sh-bash-random-splay/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 20:55:23 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[csh]]></category>

		<category><![CDATA[jot sleep]]></category>

		<category><![CDATA[ksh]]></category>

		<category><![CDATA[random]]></category>

		<category><![CDATA[scripting]]></category>

		<category><![CDATA[sh]]></category>

		<category><![CDATA[tcsh]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/?p=1541</guid>
		<description><![CDATA[<i>How do you conjure a random number within a specific range in a shell script?</i>  Updated with three different solutions, and two variants.]]></description>
			<content:encoded><![CDATA[<p>The other day I was working on a shell script to be run on several hundred machines at the same time.  Since the script was going to download a file from a central server, and I did not want to overwhelm the central server with hundreds of simultaneous requests, I decided that I wanted to add a random wait time.  <em>But how do you conjure a random number within a specific range in a shell script?</em></p>
<p><b>Updated:</b>  Due to much feedback, I now know of three ways to do this . . .</p>
<p>1) <strong>On BSD systems</strong>, you can use <code><a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/jot.1.html">jot(1)</a></code>:<br />
<code>sleep `jot -r 1 1 900`</code></p>
<p>2) <strong>If you are scripting with bash</strong>, you can use <code>$RANDOM</code>:<br />
<code>sleep `echo $RANDOM%900 | bc`</code></p>
<p>3) <strong>For portability</strong>, you can resort to my first solution:<br />
<code># Sleep up to fifteen minutes<br />
sleep `echo $$%900 | bc`</code></p>
<p><code>$$</code> is the process ID (PID), or &#8220;random seed&#8221; which on most systems is a value between 1 and <a href="http://en.wikipedia.org/wiki/Integer">65,535</a>.  Fifteen minutes is 900 seconds.  <code>%</code> is <a href="http://en.wikipedia.org/wiki/Modulo_operation">modulo</a>, which is like division but it gives you the remainder.  Thus, <code>$$ % 900</code> will give you a result between 0 and 899.  With bash, <code>$RANDOM</code> provides the same utility, except it is a different value whenever you reference it.</p>
<p><b>Updated yet again . . .</b> says a friend:<br />
nah it&#8217;s using <code>`echo .. | bc`</code> that bugs me, 2 fork+execs, let your shell do the math, it knows how<br />
so <code>$(( $$ % 900 ))</code> should work in bsd sh</p>
<p><strong>For efficiency</strong>, you could rewrite the latter two solutions:<br />
2.1) <code>sleep $(( $RANDOM % 900 ))</code><br />
3.1) <code>sleep $(( $$ % 900 ))</code></p>
<p>The revised solution will work in sh-derived shells: sh, bash, ksh.  My original &#8220;portable&#8221; solution will also work if you&#8217;re scripting in csh or tcsh.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2008/07/04/shell-sh-bash-random-splay/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mini-HOWTO: What Time is UTC?</title>
		<link>http://dannyman.toldme.com/2008/05/06/what-time-utc/</link>
		<comments>http://dannyman.toldme.com/2008/05/06/what-time-utc/#comments</comments>
		<pubDate>Tue, 06 May 2008 04:15:41 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/?p=1464</guid>
		<description><![CDATA[I wanted to know what time it was in UTC, but I forgot my local offset.  (It changes twice a year!)  I figured I could look in the date man page, but I came up with an &#8220;easier&#8221; solution.  Simply fudge the time zone and then ask.

0-20:57 djh@noneedto ~$ env TZ=UTC date
Tue [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to know what time it was in UTC, but I forgot my local offset.  (It changes twice a year!)  I figured I could look in the <code>date</code> man page, but I came up with an &#8220;easier&#8221; solution.  Simply fudge the time zone and <em>then</em> ask.</p>
<pre>
0-20:57 djh@noneedto ~$ <strong>env TZ=UTC date</strong>
Tue May  6 03:57:07 UTC 2008
</pre>
<p>The <code>env</code> bit is not needed in bash, but it makes tcsh happy.</p>
<p><b>Update:</b> <a href="#comment-74835">Mark points out</a> an easier solution:<br />
<code style="font-weight: bolder">date -u</code></p>
<p>Knowing you can set <code>TZ=</code> is still useful in case you ever need to contemplate an alternate timezone.</p>
<p>(Thanks, <a href="http://reasonablegoods.com">Saul</a> and <a href="http://meat.net/">Dave</a> for improving my knowledge.)</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2008/05/06/what-time-utc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trendspotting: &#8220;The Amiga Line&#8221;</title>
		<link>http://dannyman.toldme.com/2008/01/26/deader-than-amiga/</link>
		<comments>http://dannyman.toldme.com/2008/01/26/deader-than-amiga/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 05:26:00 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Free Style]]></category>

		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Sundry]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2008/01/26/deader-than-amiga/</guid>
		<description><![CDATA[I asked myself: what is the threshold for a dead or dying Operating System?]]></description>
			<content:encoded><![CDATA[<p>I have been playing with <a href="http://www.google.com/trends">Google Trends</a>, which will be happy to generate a pretty graph of keyword frequency over time.  A rough gauge to the relative popularity of various things.  This evening, I was riffing off a post from the Royal Pingdom, <a href="http://royal.pingdom.com/?p=239">regarding the relative popularity of Ubuntu and Vista</a>, among other things.</p>
<p>I got started graphing <a href="http://www.google.com/trends?q=Ubuntu%2C+Fedora%2C+SuSE%2C+Gentoo%2C+Debian">various Linux distributions</a> against each other, <a href="http://www.google.com/trends?q=XP%2C+Vista">XP versus Vista</a>, and trying to figure out the best keyword for OS X.  Then, I wondered about FreeBSD.  <a href="http://www.google.com/trends?q=Ubuntu%2C+FreeBSD">Against Ubuntu, it was a flatline.</a>  So, I asked myself: what is the threshold for a dead or dying Operating System?</p>
<p><span style="color: #4684ee">Amiga</span> vs <span style="color: #dc3912">FreeBSD</span>:<br />
<a href="http://www.google.com/trends?q=Amiga%2C+FreeBSD"><img src='http://dannyman.toldme.com/wp-content/uploads/2008/01/amiga-freebsd.png' alt='Google Trends: Amiga versus FreeBSD' border=0 /></a></p>
<p>Ouch!  Can we get deader?</p>
<p><span style="color: #4684ee">Amiga</span> vs <span style="color: #dc3912">FreeBSD</span> vs <span style="color: #ff9900">BeOS</span>:<br />
<a href="http://www.google.com/trends?q=Amiga%2C+FreeBSD%2C+BeOS"><img src='http://dannyman.toldme.com/wp-content/uploads/2008/01/amiga-freebsd-beos.png' alt='Google Trends: Amiga versus FreeBSD versus BeOS' border=0 /></a></p>
<p>To be fair, the cult of Amiga is still strong . . . BeOS is well and truly dead.  But how do the BSDs fare?</p>
<p><span style="color: #4684ee">Amiga</span> vs <span style="color: #dc3912">FreeBSD</span> vs <span style="color: #ff9900">BeOS</span> vs <span style="color: #008000">NetBSD</span> vs <span style="color: #4942cc">OpenBSD</span>:<br />
<a href="http://www.google.com/trends?q=Amiga%2C+FreeBSD%2C+BeOS%2C+NetBSD%2C+OpenBSD"><img src='http://dannyman.toldme.com/wp-content/uploads/2008/01/amiga-bsds.png' alt='Google Trends: *BSD versus Amiga, BeOS' border=0 /></a></p>
<p>NetBSD has been sleeping with the BeOS fishes for a while, and OpenBSD is on its way.  And that&#8217;s a league <em>below</em> Amiga!</p>
<p>In Red Hat land, <a href="http://www.google.com/trends?q=Amiga%2C+Red+Hat%2C+Fedora%2C+CentOS">only Fedora beats &#8220;the Amiga Line&#8221;</a>.  For Unix in general, nothing stops <a href="http://www.google.com/trends?q=FreeBSD%2C+Fedora%2C+Ubuntu%2C+Solaris%2C+SuSE">the Ubuntu juggernaut</a>.  But there&#8217;s <a href="http://www.google.com/trends?q=Ubuntu%2C+Mac%2C+XP%2C+Vista">a long way to go to catch up with Uncle Bill</a>.</p>
<p>(Yes, it is a rainy night and the girlfriend is out of town.)</p>
<p>Postscript: <a href="http://www.google.com/trends?q=Ubuntu%2C+Obama">Ubuntu versus Obama</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2008/01/26/deader-than-amiga/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SysAdmin OpEd: Where to Keep the Crons</title>
		<link>http://dannyman.toldme.com/2008/01/11/etc-crontab-or-die/</link>
		<comments>http://dannyman.toldme.com/2008/01/11/etc-crontab-or-die/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 23:04:33 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[About Me]]></category>

		<category><![CDATA[FreeBSD]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2008/01/11/etc-crontab-or-die/</guid>
		<description><![CDATA[This is just a note which I contributed to a thread on sage-members, to get something off my chest, as to where people should maintain their crontab entries.  I sincerely doubt that reading what I have to say will bring you any great illumination.
I&#8217;d say, any reasonable SysAdmin should default to /etc/crontab because every [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a note which I contributed to a thread on <a href="http://www.sage.org/lists/mailarchive.html">sage-members</a>, to get something off my chest, as to where people should maintain their crontab entries.  I sincerely doubt that reading what I have to say will bring you any great illumination.</p>
<blockquote><p>I&#8217;d say, any reasonable SysAdmin should default to <code>/etc/crontab</code> because every other reasonable SysAdmin already knows where it is.  If anything is used in addition to <code>/etc/crontab</code>, leave a note in <code>/etc/crontab</code> advising the new guy who just got paged at 3:45am where else to look for crons.</p>
<p>For production systems, I strongly object to the use of per-user crontabs.  I&#8217;m glad to hear I&#8217;m not alone.  One thing I have to do in a new environment tends to be to write <a href="/warez/showcrons">a script that will sniff out all the cron entries</a>.</p>
<p>And then there was the shop that used <code>/etc/crontab</code>, user crons, and <a href="http://fcron.free.fr/">fcron</a> to keep crons from running over each other.  This frustrated me enough that I did a poor job of explaining that job concurrency could easily be ensured by executing a command through (something like) <a href="http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?lockf">the lockf utility</a>, instead of adding <a href="/2006/11/29/crontab-l-u-star/">a new layer of system complexity</a>.</p></blockquote>
<p>Yes, I am a cranky old SysAdmin.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2008/01/11/etc-crontab-or-die/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Goodbye, Bill Gates!</title>
		<link>http://dannyman.toldme.com/2008/01/08/bill-gates-last-day/</link>
		<comments>http://dannyman.toldme.com/2008/01/08/bill-gates-last-day/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 21:03:21 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[About Me]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[News and Reaction]]></category>

		<category><![CDATA[Sundry]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2008/01/08/bill-gates-last-day/</guid>
		<description><![CDATA[I was startled by this YouTube video, where we discover that Bill Gates can make fun of himself.  Or, at least, his people can assemble a video where Bill Gates makes fun of himself.  Good for Bill!  I was then reassured at the consistency of the universe, when it was revealed that [...]]]></description>
			<content:encoded><![CDATA[<p>I was startled by <a href="http://www.youtube.com/watch?v=v5uw07iEkjU">this YouTube video, where we discover that Bill Gates can make fun of himself</a>.  Or, at least, his people can assemble a video where Bill Gates makes fun of himself.  Good for Bill!  I was then reassured at the consistency of the universe, when it was revealed that Bill really can&#8217;t make fun of himself without at least a dozen star cameos to reassure us that it is not so much that he is poking fun at himself, but that he is &#8220;acting&#8221;.</p>
<p>It is telling that Al Gore has the funniest line.</p>
<p>I hope Bill&#8217;s foundation does much good in the world.  I almost feel sorry for Microsoft that after all the effort, Vista has proven to be a cold turkey.  For what its worth, from a UI and performance perspective, I prefer Windows XP to Mac OS X.  Though I&#8217;m not sure that this is praise for Microsoft as much as it is an aversion to the Smug Cult of Apple.</p>
<p>(Yes, I am a contrarian.  People hate contrarians.  Especially Mac people, who think they have the contrarian cred: the last thing a contrarian wants to encounter is a contradicting contrarian!)</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2008/01/08/bill-gates-last-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Evidence I&#8217;m Not a Mac Person . . .</title>
		<link>http://dannyman.toldme.com/2007/08/03/the-genius-of-apple/</link>
		<comments>http://dannyman.toldme.com/2007/08/03/the-genius-of-apple/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 00:00:08 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[About Me]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2007/08/03/the-genius-of-apple/</guid>
		<description><![CDATA[Replacing the optical drive on a Mac Mini is a simple procedure that takes fifteen minutes, requiring a screwdriver and a putty knife.  That I should have to drive to a God damned mall and explain to a "genius" that he doesn't actually need my password to log in to OS X, wait for twenty minutes as the "genius" engages in manual data entry, then wait "seven to ten business days" for the part to be replaced is FUCKING SAD.]]></description>
			<content:encoded><![CDATA[<p>I just completed a feedback form regarding my AppleCare warranty experience.  Question 12a gave me a chance to bitch.  Question 12b made me smile at my ridiculous expectations:</p>
<hr />
<p>12a <strong>Is there anything else you would like to tell Apple about your recent in-store repair experience at the Apple Retail Store? (NOTE: 2000 character limit)</strong></p>
<blockquote style="border: 1px solid black; font-family: monospace;"><p>Replacing the optical drive on a Mac Mini is a simple procedure that takes fifteen minutes, requiring a screwdriver and a putty knife.  That I should have to drive to a God damned mall and explain to a &#8220;genius&#8221; that he doesn&#8217;t actually need my password to log in to OS X, wait for twenty minutes as the &#8220;genius&#8221; engages in manual data entry, then wait &#8220;seven to ten business days&#8221; for the part to be replaced is FUCKING SAD.</p>
<p>(Note: Hold down command+s during boot, run to the appropriate init level and type &#8220;passwd&#8221; to reset the password.  Even someone who isn&#8217;t a &#8220;genius&#8221; can pull that off!)</p></blockquote>
<p>12b <strong>The comment above is a</strong></p>
<div style="margin-left: 3em;">
<input type="radio" name="foo" />Compliment<br />
</p>
<input type="radio" name="foo" />Complaint<br />
</p>
<input type="radio" name="foo" checked />Suggestion</div>
<p><span id="more-1318"></span></p>
<hr />
<p>For the record, the optical drive on my Mini started acting up last year.  In March, I took it in to the Apple Store.  I wanted to get the issue resolved quickly, so I figured I would call the store to ask them if the part was available and what was the best time for them to make an appointment.  That call got routed to a call center, where someone with a South Asian accent filled in the same form that I could have filled in online to wait in line at the store for service.  Once I got to see the genius, he explained that there was no way to tell how long equipment might be &#8220;on the rack&#8221; and there was nothing he could do but advise me that it would take 3-5 business days . . . over the months I eventually built a PC out of spare parts to use while my workstation was away, and recently got the drive replaced.  Nowadays it is 5-7 business days.</p>
<p>I love that it takes longer for the &#8220;Genius&#8221; to enter my data into the system after I had previously visited, than it must take the Morlock at the repair center to diagnose, test, and repair the bloody thing.  If this were inferior PC technology I could carry it down to any number of local neighborhood stores and wait as the guy replaced the part for a modest charge.  The charge for my repair was presented to me as $300, but covered by warranty.  I think that is what three-year next-day on-site service for a laptop costs from Dell.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2007/08/03/the-genius-of-apple/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mac OS X and per-user Support for .htaccess</title>
		<link>http://dannyman.toldme.com/2007/06/21/mac-os-x-sites-htaccess-allowoverride/</link>
		<comments>http://dannyman.toldme.com/2007/06/21/mac-os-x-sites-htaccess-allowoverride/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 00:00:00 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technical]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2007/06/21/mac-os-x-sites-htaccess-allowoverride/</guid>
		<description><![CDATA[Problem
I just spent a fair amount of time wrestling with Apache on my Macintosh.  The problem is that it simply refused to read the .htaccess file in my user directory.
My First Approach
I took the &#8220;Unix Guy&#8221; approach and edited /etc/httpd/httpd.conf to ensure that Apache was configured to consult my user&#8217;s .htaccess file.  I [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>I just spent a fair amount of time wrestling with Apache on my Macintosh.  The problem is that it simply refused to read the <code>.htaccess</code> file in my user directory.</p>
<p><strong>My First Approach</strong></p>
<p>I took the &#8220;Unix Guy&#8221; approach and edited <code>/etc/httpd/httpd.conf</code> to ensure that Apache was configured to consult my user&#8217;s <code>.htaccess</code> file.  I changed this bit:</p>
<pre>
&lt;Directory /Users/*/Sites&gt;
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes FollowSymLinks IncludesNoExec
    [ . . . ]
</pre>
<p>To read:</p>
<pre>
&lt;Directory /Users/*/Sites&gt;
    # AllowOverride FileInfo AuthConfig Limit
    AllowOverride All
    Options MultiViews Indexes FollowSymLinks IncludesNoExec
    [ . . . ]
</pre>
<p>But . . . nada.<span id="more-1277"></span></p>
<p><strong>Why That Didn&#8217;t Work</strong></p>
<p>Eventually, I found the answer in <a href="http://www.oreillynet.com/pub/a/mac/2002/01/29/apache_macosx_four.html">an O&#8217;Reilly Tutorial</a>.  Under the section &#8220;User-Based Configurations&#8221; Kevin Hemenway explains how &#8220;per-user&#8221; configurations are done in the world of Macintosh:</p>
<pre>
mini-toldme-com:~/Sites djh$ <b>ls /etc/httpd/users/</b>
djh.conf
mini-toldme-com:~/Sites djh$ <b>cat /etc/httpd/users/djh.conf </b>
&lt;Directory "/Users/djh/Sites/"&gt;
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
</pre>
<p>The O&#8217;Reilly article explains that you could edit that file, sure, but then <a href="http://www.oreillynet.com/pub/a/mac/2002/01/29/apache_macosx_four.html?page=2">on the next page, it suggests that <code>.htaccess</code> may be a bit more convenient</a>:</p>
<blockquote><p>As you&#8217;ve run through these various tweaks and twiddles of the Apache configuration file, one thing has always remained true: to make the changes active, you&#8217;ve had to stop and start Apache after each edit. Not only is this tedious and subject to forgetfulness, it&#8217;s also avoidable with a little thing called an <code>.htaccess</code> file.</p></blockquote>
<p>He then goes on to explain the <code>AllowOverride</code> thing, but doesn&#8217;t point out that <code>/etc/httpd/users</code> is going to spank you.  Hopefully, his readers paid enough attention and know that within their <code>~/Sites</code> directory they&#8217;ll have to edit  <code>/etc/httpd/users/`whoami`.conf</code> . . .</p>
<p><strong>How I Fixed It</strong></p>
<p>I considered changing my <code>/etc/httpd/users/djh.conf</code> but I suspected that some day whatever created it might create it anew, clobbering my changes, and I would forget it had ever existed, and I would go through this frustration all over again.  Since I had already made the appropriate change in my <code>/etc/httpd/httpd.conf</code> and since I am the only user on the system, I simply made one more edit to <code>/etc/httpd/httpd.conf</code>.  Down near the end, I changed this line:</p>
<pre>
Include /private/etc/httpd/users/*.conf
</pre>
<p>To this:</p>
<pre>
# What the f_ck g_d d_mned insanity!?
# Include /private/etc/httpd/users/*.conf
</pre>
<p>Restart Apache and now I can use <code>.htaccess</code> as much as I please.</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2007/06/21/mac-os-x-sites-htaccess-allowoverride/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Newbie Mac Hobo</title>
		<link>http://dannyman.toldme.com/2007/05/14/hopping-a-train/</link>
		<comments>http://dannyman.toldme.com/2007/05/14/hopping-a-train/#comments</comments>
		<pubDate>Mon, 14 May 2007 21:03:31 +0000</pubDate>
		<dc:creator>dannyman</dc:creator>
		
		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://dannyman.toldme.com/2007/05/14/hopping-a-train/</guid>
		<description><![CDATA[So, I have a few gazillion things I would like to do, and some free time to play with.  In terms of &#8220;professional development&#8221; I am looking for work, but more interesting to me is to have some time for education.  I know an awful lot of things, especially about systems administration, and [...]]]></description>
			<content:encoded><![CDATA[<p>So, I have a few gazillion things I would like to do, and some free time to play with.  In terms of &#8220;professional development&#8221; I am <a href="/resume/">looking for work</a>, but more interesting to me is to have some time for education.  I know an awful lot of things, especially about systems administration, and there are plenty of things that I don&#8217;t know, some things you would think I have done, but haven&#8217;t, and then there&#8217;s adding new stuff like learning Ruby on Rails, which could be danged handy if I choose to pursue contracting.  To that end, I&#8217;ve had the &#8220;Agile Web Development with Rails&#8221; book collecting dust for a while . . . and a Macintosh desktop, to keep Unix confusing.</p>
<p>I&#8217;m into Chapter 3: Installing Rails, and the instructions for me don&#8217;t quite cut it, and a link they provide to Lucas Carlson&#8217;s blog no longer exists.  But that needn&#8217;t stop us, because Google found me a very handy tutorial from Hivelogic: <a href="http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx">Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X</a>.  It is from February and it does an excellent job of walking through the steps to fetch, build, and install the various pieces on a Macintosh, in <code>/usr/local</code>, like a real Unix system, and explaining all the important bits like fixing your <code>$PATH</code> and installing Xcode, and what the heck is <code>sudo</code> anyway.  Stepping through the article is a breeze and you are left with a working Rails server, backed by MySQL, and the beginnings of a clue as to contemporary &#8220;best practices&#8221; like deployment-via-Capistrano.  Huzzah!</p>
<p>In my case, I had to complete one other hurdle along the way.  The &#8220;gem install rails&#8221; bit was erroring out for me when I followed the book and again with the Hivelogic article, with an error like: &#8220;Could not find rails (> 0) in any repository&#8221; . . . Google again found me <a href="http://armyofevilrobots.com/node/418">an answer from Army of Evil Robots</a> that basically boils down to:</p>
<p><code>gem update</code></p>
<p>Anyway, now I have a working Ruby setup on this computer, and I can hitch along to the next chapter, where I&#8217;ll learn to hop a freight.</p>
<p>I&#8217;m not sure what I might want to do with Rails, but &#8220;re-implement lnk.to&#8221; seems sort of obvious.  If you are reading this and happen to have feelings about lnk.to, or link-shortening services, I welcome any thoughts, suggestions, wishes . . . thanks!  -d</p>
]]></content:encoded>
			<wfw:commentRss>http://dannyman.toldme.com/2007/05/14/hopping-a-train/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
