<?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>think &#187; Mac</title>
	<atom:link href="http://think.random-stuff.org/topics/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://think.random-stuff.org</link>
	<description></description>
	<lastBuildDate>Sat, 07 Aug 2010 15:49:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mac OS X ssh quickie</title>
		<link>http://think.random-stuff.org/posts/mac-os-x-ssh-quickie</link>
		<comments>http://think.random-stuff.org/posts/mac-os-x-ssh-quickie#comments</comments>
		<pubDate>Fri, 06 Aug 2010 16:49:33 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=174</guid>
		<description><![CDATA[Are you getting these messages in your console log when you make a new user on Mac OS X and then try to ssh in to the computer with that new user name?

Aug  6 12:33:25 example sshd[7296]: in pam_sm_authenticate(): Failed to determine Kerberos principal name
Aug  6 12:33:29 example sshd[7294]: error: PAM: authentication error for user [...]]]></description>
			<content:encoded><![CDATA[<p>Are you getting these messages in your console log when you make a new user on Mac OS X and then try to ssh in to the computer with that new user name?</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Aug  6 12:33:25 example sshd[7296]: in pam_sm_authenticate(): Failed to determine Kerberos principal name
Aug  6 12:33:29 example sshd[7294]: error: PAM: authentication error for user from example.com via 192.168.0.1
Aug  6 12:33:29 example sshd[7297]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
Aug  6 12:33:32 example sshd[7294]: error: PAM: user account has expired for user from example.com via 192.168.0.1</pre></div></div>

<p>Then don&#8217;t do what I did. After <a href="http://www.google.com/search?q=pam_sm_authenticate():+Failed+to+determine+Kerberos+principal+name">googling to no avail</a>, I went so far as to completely reinstall Mac OS X. No good.</p>
<p>[Update: Actually, what I did was clone a different system that I had recently set up and used it as the "new installation". Had I done a total, from DVD reinstallation, it would have fixed the problem but I wouldn't have discovered the cause.]</p>
<p>The answer? Make sure you didn&#8217;t set the Remote Login preferences in System Preferences/Sharing to &#8220;Only these users&#8221; and then forget to add the new user to the list!</p>
<p>D&#8217;oh.</p>
<p>Hopefully this will help the next person who&#8217;s looking for the answer.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/mac-os-x-ssh-quickie/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Review: Rubbermaid 12-Slot Organizer as a Mac mini server rack</title>
		<link>http://think.random-stuff.org/posts/mac-mini-server-rack</link>
		<comments>http://think.random-stuff.org/posts/mac-mini-server-rack#comments</comments>
		<pubDate>Tue, 13 Jul 2010 00:18:40 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Museum]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=155</guid>
		<description><![CDATA[I needed to do something about the Mac minis that were accumulating on the table in my office. Digging around, I found this Rubbermaid organizer on Amazon.
It turns out to be nearly perfect. The unit is very sturdy, was easy to put together, and the shelf height is just right. There&#8217;s enough clearance for airflow [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://think.random-stuff.org/wp-content/uploads/2010/07/IMG_0796.jpg"><img class="alignleft size-medium wp-image-160" title="IMG_0796" src="http://think.random-stuff.org/wp-content/uploads/2010/07/IMG_0796-225x300.jpg" alt="" width="225" height="300" /></a>I needed to do something about the Mac minis that were accumulating on the table in my office. Digging around, I found this <a href="http://www.amazon.com/Rubbermaid-12-Slot-Organizer-Black-1738583/dp/B00125O3ZA">Rubbermaid organizer</a> on Amazon.</p>
<p>It turns out to be nearly perfect. The unit is very sturdy, was easy to put together, and the shelf height is just right. There&#8217;s enough clearance for airflow but not so much that you feel space is being wasted.</p>
<p>I used self-stick cable tie anchors and cable ties to mount the power bricks and used double-stick mounting tape as stops to keep things in place. The old-style minis are heavy enough and are pretty non-slip, so I just put some tape at the front of the shelf to keep them from sliding off. The one new-style mini was pretty slippery so I used the tape to actually stick the base to the shelf.<a href="http://think.random-stuff.org/wp-content/uploads/2010/07/IMG_0797.jpg"></a></p>
<p>The unit came with vertical rods that go in the back of each column of shelves to keep them from sliding out the back, but I decided to leave those out. That way I can slide each shelf forward to get DVDs into the mini, or back to get at the connectors.</p>
<p><a href="http://think.random-stuff.org/wp-content/uploads/2010/07/IMG_0793.jpg"><img class="alignleft" title="IMG_0793" src="http://think.random-stuff.org/wp-content/uploads/2010/07/IMG_0793-300x225.jpg" alt="" width="189" height="142" /></a></p>
<p>The weak spot of the minis is the power cord (at least on the pre-2010 models) which comes out quite easily. I tied those down as well and am pretty sure they won&#8217;t jiggle their way out. I have four minis in the rack right now along with a Drobo with 10TB of disk. I&#8217;m going to be adding a 5th mini with a stackable disk drive, that&#8217;s why there&#8217;s double-high slot  still open on the mini side of the rack.</p>
<p>Cable management is an issue, mostly because of the power bricks long cables. I may fiddle with how I fold the cables into the shelves a bit more.</p>
<p>The whole thing plus a UPS and monitor/keyboard/mouse sits nicely on some steel shelves in our A/V equipment room at the museum. I still need to time how long the UPS runs. I&#8217;m only going to have the public web site minis on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/mac-mini-server-rack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>newsyslog on Mac OS X</title>
		<link>http://think.random-stuff.org/posts/newsyslog-on-mac-os-x</link>
		<comments>http://think.random-stuff.org/posts/newsyslog-on-mac-os-x#comments</comments>
		<pubDate>Tue, 30 Mar 2010 01:04:17 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=127</guid>
		<description><![CDATA[So, just to finish off what I&#8217;ve learned about newsyslog on Mac OS X&#8230;
In addition to figuring out how to deal with denyhosts, here&#8217;s how to set up Apache and Mailman log rotation.
I&#8217;m running standard Apache 2.2 that comes with Mac OS X 10.6. I like to keep all my virtual hosts in one place, [...]]]></description>
			<content:encoded><![CDATA[<p>So, just to finish off what I&#8217;ve learned about <a href="http://www.weird.com/~woods/projects/newsyslog.html">newsyslog</a> on Mac OS X&#8230;</p>
<p>In addition to figuring out how to <a href="http://think.random-stuff.org/posts/denyhosts-on-mac-os-x">deal with denyhosts</a>, here&#8217;s how to set up <a href="http://httpd.apache.org/docs/2.2/">Apache</a> and <a href="http://www.gnu.org/software/mailman/docs.html">Mailman</a> log rotation.</p>
<p>I&#8217;m running standard Apache 2.2 that comes with Mac OS X 10.6. I like to keep all my virtual hosts in one place, so in this example they are all in /Users/web/. Each host gets a directory structure with it&#8217;s own name:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ls -l www.example.org/</span>
drwxrwxr-x   <span style="color: #000000;">4</span> _unknown  _unknown   <span style="color: #000000;">136</span> Jan <span style="color: #000000;">27</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">47</span> htdocs
drwxrwxr-x  <span style="color: #000000;">80</span> _www      _www      <span style="color: #000000;">2720</span> Mar <span style="color: #000000;">29</span> 00:<span style="color: #000000;">33</span> logs
<span style="color: #660033;">-rw-r--r--</span>   <span style="color: #000000;">1</span> adoyle    web       <span style="color: #000000;">1881</span> Feb <span style="color: #000000;">20</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">44</span> www.example.org.conf</pre></div></div>

<p>The logs for each virtual host go into the logs directory for that host (access_log, error_log, rewrite_log). Ownership on the log files turns out to be important. I&#8217;ve found it works best for me if they are owned by the www user and group (or _www, they are essentially the same &#8211; something I need to understand the reason for someday).</p>
<p>In /etc/newsyslog.d/local.conf, the following lines deal with rotating logs for three virtual hosts. Using the &#8216;G&#8217; flag lets you use &#8216;*&#8217; and other shell wildcards in the file names. I think I could probably have collapsed these into a single line if I had used /Users/web/*/logs/*log instead. In this case, folding things up too much makes it less readable, I think.</p>
<p>The _www:_www takes care of preserving the file ownership after the logs are rotated. A count of 30 means keep around up to 30 old logs. $D0 means rotate daily at 0:00. The &#8216;B&#8217; flag prevents the &#8220;Log file was rotated&#8221; message. Apache keeps a pidfile in /var/run/httpd.pid. If you send a kill -30 to the pid in that file, it will cause the equivalent of an &#8216;apachectl graceful&#8217;.</p>
<p>If you don&#8217;t provide the pidfile and proper signal number, the logs will rotate, new log files get created, but Apache won&#8217;t write to them because it&#8217;s still trying to write to the old ones.</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># logfilename          [owner:group]            mode count  size  when   flags [/pid_file] [sig_num]</span>
/Users/web/lists.example.org/logs/*log _www:_www <span style="color: #cc66cc;">664</span>   <span style="color: #cc66cc;">30</span>     *    $D0     GBJ /var/run/httpd.pid <span style="color: #cc66cc;">30</span>
/Users/web/foo.example.org/logs/*log   _www:_www <span style="color: #cc66cc;">664</span>   <span style="color: #cc66cc;">30</span>     *    $D0     GBJ /var/run/httpd.pid <span style="color: #cc66cc;">30</span>
/Users/web/www.example.org/logs/*log   _www:_www <span style="color: #cc66cc;">664</span>   <span style="color: #cc66cc;">30</span>     *    $D0     GBJ /var/run/httpd.pid <span style="color: #cc66cc;">30</span>
<span style="color: #adadad; font-style: italic;">#</span></pre></div></div>

<p>With Mailman I had a slight problem. Mailman doesn&#8217;t use nice .log or _log names. It just uses names like bounce, error, post, qrunner, etc. I could have made an entry in the local.conf file for each one, but that seemed error-prone. What if later there&#8217;s a new version of Mailman that generates different log files?</p>
<p>My initial assumption was that I could use &#8230;/logs/* and newsyslog wouldn&#8217;t try to rotate logs it had already rotated. Guess again. After two days, my disk had nearly filled up with files ending in .bz2, .bz2.bz2, .bz2.bz2.b2z&#8230;, you get the picture. Luckily I noticed it before the disk did fill up. I got suspicious when my backups on the third day were 15GB bigger than the ones on the first day. I have no idea how many files actually got created. &#8216;ls&#8217; was unable to produce a listing in the amount of time I was willing to wait. Luckily rm -rf did work. It took several hours to delete all the files.</p>
<p>I&#8217;m assuming newsyslog had gotten into a recursive loop right away when it ran at midnight and never stopped churning out files until I killed it.</p>
<p>So anyway, the moral of the story is, if you&#8217;re going to use wildcards, make sure they don&#8217;t match the rotated logs.</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># logfilename          [owner:group]            mode count  size  when  flags [/pid_file] [sig_num]</span>
/Users/mailman/logs/*<span class="br0">&#91;</span>a-z<span class="br0">&#93;</span>         mailman:_www <span style="color: #cc66cc;">664</span>   <span style="color: #cc66cc;">30</span>     *    $D0     GBJ /Users/mailman/data/master-qrunner.pid <span style="color: #cc66cc;">1</span>
<span style="color: #adadad; font-style: italic;">#</span></pre></div></div>

<p>Mailman wants to be hit with a kill -1, so that&#8217;s what I used.</p>
<p>Things have been noodling along for a few weeks with my setup, so I think I have the kinks ironed out.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/newsyslog-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>denyhosts on Mac OS X</title>
		<link>http://think.random-stuff.org/posts/denyhosts-on-mac-os-x</link>
		<comments>http://think.random-stuff.org/posts/denyhosts-on-mac-os-x#comments</comments>
		<pubDate>Fri, 26 Mar 2010 00:46:21 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=88</guid>
		<description><![CDATA[I just spent some time figuring out how to set up denyhosts on Snow Leopard. I&#8217;ve used denyhosts before, but never felt like I had things set up properly for Mac OS. Now I think I have it figured out, so here it is. This is for 10.6, your mileage may vary on earlier versions.
I [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent some time figuring out how to set up <a href="http://denyhosts.sourceforge.net/">denyhosts</a> on Snow Leopard. I&#8217;ve used denyhosts before, but never felt like I had things set up properly for Mac OS. Now I think I have it figured out, so here it is. This is for 10.6, your mileage may vary on earlier versions.</p>
<p>I had three goals – get denyhosts working, get it to start automatically at boot time, and to deal with rotating the logs.</p>
<p><strong>1. Installation</strong><br />
Easiest first &#8211; installing denyhosts. Note that you need to be root to do this. Pretty much just follow the directions. These are the three main settings to worry about.</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;">SECURE_LOG = /private/var/log/secure.log
LOCK_FILE = /var/run/denyhosts.pid
DAEMON_LOG = /var/log/denyhosts</pre></div></div>

<p>Note that you also may need to create the file <a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man5/hosts_access.5.html">/etc/hosts.deny</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts.deny</pre></div></div>

<p>Using <strong>touch</strong> will create a zero-length file if it&#8217;s not there. It won&#8217;t affect the contents if it is there.</p>
<p><strong>2. Log rotation</strong></p>
<p>Mac OS 10.6 uses <a href="http://www.weird.com/~woods/projects/newsyslog.html">newsyslog</a> to rotate some log files (I&#8217;m not sure why, but apache logs don&#8217;t seem to be dealt with by newsyslog). To add your own to the mix, just put a file into <strong>/etc/newsyslog.d/</strong> following the format for <a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man5/newsyslog.conf.5.html">newsyslog.conf(5)</a>. I called mine <strong>local.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># logfilename          [owner:group]            mode count size when  flags [/pid_file] [sig_num]</span>
/var/log/denyhosts                              <span style="color: #cc66cc;">640</span>   <span style="color: #cc66cc;">5</span>     *    $D0     J
<span style="color: #adadad; font-style: italic;">#</span></pre></div></div>

<p>The trouble is, this rotated the log just fine, but then denyhosts stopped logging because newsyslog essentially pulls the rug out from under denyhosts by moving the file.</p>
<p>One design difference between newsyslog and <a href="http://linuxcommand.org/man_pages/logrotate8.html">logrotate</a> is the way they deal with notifying processes that logs have been rotated. Logrotate uses prerotate and postrotate scripts, which would be ideal for denyhosts. The way you start and stop it is with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">daemon-control start
&nbsp;
daemon-control stop</pre></div></div>

<p><strong>daemon-control stop</strong> actually sends a <strong>SIGTERM</strong> to the denyhosts process, but that won&#8217;t do any good in the newsyslog config file since once stopped, you need a command line to start it up again. So I decided to tweak the <strong>daemon-control</strong> script to do this. I replaced the <strong>start()</strong> function with the one here:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> start<span style="color: black;">&#40;</span><span style="color: #66cc66;">*</span>args<span style="color: black;">&#41;</span>:
    <span style="color: #dc143c;">cmd</span> = <span style="color: #483d8b;">&quot;%s --daemon &quot;</span> <span style="color: #66cc66;">%</span> DENYHOSTS_BIN
    <span style="color: #ff7700;font-weight:bold;">if</span> args: <span style="color: #dc143c;">cmd</span> += <span style="color: #483d8b;">' '</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>args<span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;starting DenyHosts:   &quot;</span>, <span style="color: #dc143c;">cmd</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">while</span> <span style="color: #008000;">True</span>:
        <span style="color: #dc143c;">os</span>.<span style="color: black;">system</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">cmd</span><span style="color: black;">&#41;</span>
        <span style="color: #dc143c;">time</span>.<span style="color: black;">sleep</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">5</span><span style="color: black;">&#41;</span>
&nbsp;
        <span style="color: #ff7700;font-weight:bold;">while</span> <span style="color: #008000;">True</span>:
            pid = getpid<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
            <span style="color: #ff7700;font-weight:bold;">if</span> pid <span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;</span>= <span style="color: #ff4500;">0</span>:
                <span style="color: #dc143c;">time</span>.<span style="color: black;">sleep</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">300</span><span style="color: black;">&#41;</span>
            <span style="color: #ff7700;font-weight:bold;">else</span>:
                <span style="color: #ff7700;font-weight:bold;">break</span></pre></div></div>

<p>This just keeps daemon-control running rather than letting it exit after it starts denyhosts. The outer loop starts denyhosts running and later restarts it. The inner loop just waits until it sees the pid file go away. That&#8217;s a sure sign that denyhosts stopped running, most likely because of the SIGHUP it will get from newsyslog. Now all I needed to do was add the signal info to my <span style="text-decoration: line-through;">/etc/denyhosts.d/local.conf</span> /etc/newsyslog.d/local.conf file:</p>

<div class="wp_syntax"><div class="code"><pre class="xorg_conf" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># logfilename          [owner:group]            mode count size when  flags [/pid_file] [sig_num]</span>
/var/log/denyhosts                              <span style="color: #cc66cc;">640</span>   <span style="color: #cc66cc;">30</span>     *  $D0     BJ  /var/run/denyhosts.pid <span style="color: #cc66cc;">15</span>
<span style="color: #adadad; font-style: italic;">#</span></pre></div></div>

<p>I&#8217;ve also changed it to keep 30 days of logs, and added the <strong>B</strong> flag to prevent newsyslog from adding a line to the file saying it&#8217;s rotated the logs. Note that I changed the name to daemon-control2 so if I update denyhosts later, my changes don&#8217;t get clobbered.</p>
<p><strong>3. Start at boot time</strong></p>
<p>It turns out that modifying daemon-control to never exit is also just the ticket for running it under <strong>launchd</strong>. Launchd doesn&#8217;t work well on scripts that launch daemonized processes. It watches the script and notices that it&#8217;s exited, then tries to start it again.</p>
<p>I made a file called /Library/LaunchDaemons/net.hosts.deny.plist:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;net.denyhosts&lt;/string&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;/usr/share/denyhosts/daemon-control2&lt;/string&gt;
      &lt;string&gt;start&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;RunAtLoad&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;KeepAlive&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;ServiceDescription&lt;/key&gt;
    &lt;string&gt;Lauch denyhosts&lt;/string&gt;
  &lt;/dict&gt;
&lt;/plist&gt;</pre>
<p>Get it started with launchctl:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> launchctl load <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>LaunchDaemons<span style="color: #000000; font-weight: bold;">/</span>net.hosts.deny.plist</pre></div></div>

<p>My /etc/hosts.deny has about 8500 hosts in it right now. Many of those are probably from the denyhosts synchronization feature pulling in IP addresses from the central server.</p>
<p>Update 2010-03-26: Added some links and clarified some bits.</p>
<p>Update 2010-06-06: Note that /etc/hosts.deny must be present. denyhosts won&#8217;t create it.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/denyhosts-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Dear Safari 4 developers:</title>
		<link>http://think.random-stuff.org/posts/dear-safari-4-developers</link>
		<comments>http://think.random-stuff.org/posts/dear-safari-4-developers#comments</comments>
		<pubDate>Wed, 01 Jul 2009 02:07:44 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=66</guid>
		<description><![CDATA[
My overall impression is that it&#8217;s slower than the beta and slower than Safari 3. But that&#8217;s gut feel, not with hard data. The &#8220;loading&#8221; bar is also far less obvious now, and I always find myself wondering whether Safari has stopped working because it takes a while to even start showing activity.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://think.random-stuff.org/wp-content/uploads/2009/06/flysketchworkflow-20090630-220424.png"><img class="aligncenter size-medium wp-image-68" title="Safari 4 bug report" src="http://think.random-stuff.org/wp-content/uploads/2009/06/flysketchworkflow-20090630-220424-300x182.png" alt="" width="300" height="182" /></a></p>
<p>My overall impression is that it&#8217;s slower than the beta and slower than Safari 3. But that&#8217;s gut feel, not with hard data. The &#8220;loading&#8221; bar is also far less obvious now, and I always find myself wondering whether Safari has stopped working because it takes a while to even start showing activity.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/dear-safari-4-developers/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving the server</title>
		<link>http://think.random-stuff.org/posts/moving-the-server</link>
		<comments>http://think.random-stuff.org/posts/moving-the-server#comments</comments>
		<pubDate>Thu, 18 Dec 2008 18:46:12 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Museum]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=63</guid>
		<description><![CDATA[Is there anything that&#8217;s more nerve-wracking than taking down a perfectly functioning server in order to do something with it? This morning I had to move two servers (a PowerMac G5 running Leopard Server, and a Mac Mini running 10.4) a whopping 6 feet in order to put them onto a dedicated power circuit. I [...]]]></description>
			<content:encoded><![CDATA[<p>Is there anything that&#8217;s more nerve-wracking than taking down a perfectly functioning server in order to do something with it? This morning I had to move two servers (a PowerMac G5 running Leopard Server, and a Mac Mini running 10.4) a whopping 6 feet in order to put them onto a dedicated power circuit. I also needed to install software updates.</p>
<p>Before I ever install any updates on a server, I clone the disk with <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> or <a href="http://www.bombich.com/software/ccc.html">CCC</a>. That means I also have to first shut down all the services and pull the system off the net, clone the disk, boot the clone to make sure it&#8217;s ok, boot the normal disk, do the update, and test everything. Coupled with having to move the computers, 5 disk drives, and a D-Link switch, I didn&#8217;t have a fun few hours this morning.  I didn&#8217;t update the Leopard Server machine because I couldn&#8217;t get the alternate disk to boot. It turns out that the <a href="http://www.amazon.com/Iomega-33962-FireWire-250GB-Portable/dp/B000W6MFHI/ref=pd_sim_e_3">Iomega portable drive</a> I was using (I love these little disks!) wasn&#8217;t getting enough power from the G5&#8217;s front connector and needed to be plugged in the back. By the time I figured that out, it was too late, the <a href="http://web.mit.edu/museum/">museum</a> staff people were coming in and I had to have the server running again. So I&#8217;ll have to do the update another day.</p>
<p>Now one of the remote users on the updated Mini is having trouble getting in via ssh. So is it due to the move, the upgrade, or something completely unrelated? Having tried a bunch of things and looked at the log files, I&#8217;m leaning towards &#8220;something else&#8221;.</p>
<p>The one good thing that comes from this kind of thing is that you learn whether all the services are properly set up to start at boot time.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/moving-the-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ode to the Mac Mini</title>
		<link>http://think.random-stuff.org/posts/ode-to-the-mac-mini</link>
		<comments>http://think.random-stuff.org/posts/ode-to-the-mac-mini#comments</comments>
		<pubDate>Tue, 16 Dec 2008 19:59:47 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Museum]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/?p=27</guid>
		<description><![CDATA[Rumors about the death of the Mac Mini and now, the rebirth of the Mac Mini prompted me to post my own personal wish that the Mac Mini retain many of its current characteristics. At the MIT Museum, we use Mac Minis whenever we can. They are insanely reliable and are easy to place in [...]]]></description>
			<content:encoded><![CDATA[<p>Rumors about the <a href="http://gizmodo.com/5066531/apple-stops-mac-mini-shipments-to-retailers-says-to-expect-no-more">death of the Mac Mini</a> and now, the <a href="http://blog.wired.com/gadgets/2008/12/rumor-new-mac-m.html">rebirth of the Mac Mini</a> prompted me to post my own personal wish that the Mac Mini retain many of its current characteristics. At the <a href="http://web.mit.edu/museum/">MIT Museum</a>, we use Mac Minis whenever we can. They are insanely reliable and are easy to place in just about any situation. Here are four different setups we are currently running on the first floor.</p>
<p><a href="http://think.random-stuff.org/wp-content/uploads/2008/12/mitseamini.png"><img class="size-medium wp-image-26 alignnone" title="MIT &amp; the Sea - Mac Mini in a box hung from the ceiling" src="http://think.random-stuff.org/wp-content/uploads/2008/12/mitseamini-300x241.png" alt="MIT &amp; the Sea - Mac Mini in a box hung from the ceiling" width="180" height="145" /></a>This one is hung in a box near the ceiling. It&#8217;s been running for over a year. We set them all to reboot after a power loss, so we almost never need access. When I do need to do anything to it, I grab a ladder and plug in a keyboard &amp; mouse.</p>
<p><span style="color: #551a8b; text-decoration: underline;"><br />
</span></p>
<p> </p>
<p> </p>
<p> </p>
<p><a href="http://think.random-stuff.org/wp-content/uploads/2008/12/citycarmini.png"><img class="size-medium wp-image-24 alignnone" title="CityCar - Mac Mini inside a small enclosure" src="http://think.random-stuff.org/wp-content/uploads/2008/12/citycarmini-241x300.png" alt="CityCar - Mac Mini inside a small enclosure" width="145" height="180" /></a>This one has also been running for about a year. Prior to that it was sitting in a server room for about two years. The enclosure gets a bit warm. We used to have a Shuttle XPC inside but it failed after about 4 months. I think it was the heat.</p>
<p> </p>
<p><span style="color: #0000ee; text-decoration: underline;"><br />
</span></p>
<p> </p>
<p> </p>
<p><a href="http://think.random-stuff.org/wp-content/uploads/2008/12/citycar2mini.png"><img class="size-medium wp-image-23 alignnone" title="CityCar - Mac Mini hung under table in wire basket." src="http://think.random-stuff.org/wp-content/uploads/2008/12/citycar2mini-300x241.png" alt="CityCar - Mac Mini hung under table in wire basket." width="180" height="145" /></a>We have two display tables with baskets attached underneath. The Mini fits in the basket. We used to have two additional setups just like this. This photo is of the CityCar interactive exhibit. There&#8217;s another Mini at the other end of the floor in the MIT &amp; the Sea interactive exhibit (below the Mini-in-a-box pictured above).</p>
<p><span style="color: #0000ee; text-decoration: underline;"><br />
</span></p>
<p> </p>
<p> </p>
<p><a href="http://think.random-stuff.org/wp-content/uploads/2008/12/holographymini.png"><img class="size-medium wp-image-25 alignnone" title="Holography - Mini placed on top of large projector, driving small projector." src="http://think.random-stuff.org/wp-content/uploads/2008/12/holographymini-300x242.png" alt="Holography - Mini placed on top of large projector, driving small projector." width="180" height="145" /></a>The latest one to be put into service is a Mini that we strapped to the top of a monster Panasonic projector. The Mini drives the smaller projector to the left in the photo. This Mini is running Vine Server so I can access it remotely. Once we&#8217;re done tweaking it, I&#8217;ll probably shut off the Vine access.</p>
<p><span style="color: #0000ee; text-decoration: underline;"><br />
</span></p>
<p> </p>
<p> </p>
<p>Our Admissions Desk also uses two Minis, one for the staff to access various admin tools, mail, etc. The other to drive a sign displaying admissions prices, welcoming groups, etc.</p>
<p>In January we&#8217;re going to be installing an exhibit developed by the <a href="http://smg.media.mit.edu/">Sociable Media Group</a> at the Media Lab. So far it will have seven Mac Minis in it, as well as an iMac. There will also be a couple of Dells so I guess we&#8217;ll see how they hold up in comparison.</p>
<p>My wishlist for the Mini: Keep being ultra-stable, don&#8217;t get too heat sensitive. Faster graphics would be nice, but not at the expense of being more finicky.</p>
<p>PS &#8211; I have one in my basement at home as well, it&#8217;s running this blog, among other things. I think it&#8217;s about 3 years old. I have it on a small UPS to deal with short power outages, connected to the web via Verizon FiOS (also very reliable!).</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/ode-to-the-mac-mini/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Air, not yet.</title>
		<link>http://think.random-stuff.org/posts/air-not-yet</link>
		<comments>http://think.random-stuff.org/posts/air-not-yet#comments</comments>
		<pubDate>Mon, 21 Jan 2008 19:54:39 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Geo]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Museum]]></category>

		<guid isPermaLink="false">http://think.random-stuff.org/posts/air-not-yet</guid>
		<description><![CDATA[One thing I didn&#8217;t buy yesterday was a MacBook Air. I went to the Chestnut Hill Mall Apple store to see what it looked like but they didn&#8217;t have any to show. The store won&#8217;t have any to look at for two more weeks.
Instead I ordered a MacBook from the Apple Education for MIT site [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I didn&#8217;t buy yesterday was a MacBook Air. I went to the Chestnut Hill Mall Apple store to see what it looked like but they didn&#8217;t have any to show. The store won&#8217;t have any to look at for two more weeks.</p>
<p>Instead I ordered a MacBook from the Apple Education for MIT site (they are about $100 less there, and there&#8217;s a savings on AppleCare). When it gets here in a few days, I&#8217;ll clone my MacBook Pro&#8217;s hard drive to the MacBook and send the MBP to my son. They only thing I&#8217;ll miss, I suspect is the lighted keyboard, something I&#8217;ve come to like a lot. I ordered the 250GB drive and I&#8217;ll shop around for a RAM upgrade.</p>
<p>Then, with the savings, I&#8217;m thinking pretty seriously about an iPhone, something that would be fun to play with for the <a href="http://museum.mit.edu/mwow">Museum Without Walls</a>.</p>
<p>The iPhones I looked at at the Apple store had the new <a href="http://www.myitablet.com/macworld-2008-iphone-firmware-v113-151913.php">location detection firmware</a>. The store is <a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=199+Boylston+St,+Chestnut+Hill,+MA&amp;sll=42.273951,-71.203249&amp;sspn=0.010082,0.016565&amp;ie=UTF8&amp;ll=42.321343,-71.176834&amp;spn=0.020149,0.033131&amp;z=15&amp;om=0" title="Apple Store on Google Maps">here</a> but the phone indicated it was a good 1000&#8242; southeast of the store, south of what&#8217;s labeled Holyhood Cemetery. That&#8217;s not exactly pinpoint accuracy. But the Skyhook wifi database may not have included the mall, and thus the iPhone was probably using the Google cell-tower locations to find itself. <a href="http://www.skyhookwireless.com/">Skyhook</a> claims 10-20m accuracy in urban areas. That sounds pretty reasonable to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://think.random-stuff.org/posts/air-not-yet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
