<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Al Hoang &#187; osx</title>
	<atom:link href="http://blogs.law.harvard.edu/hoanga/category/mac/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.law.harvard.edu/hoanga</link>
	<description>Just another weblog</description>
	<lastBuildDate>Wed, 09 Sep 2009 06:52:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
		<item>
		<title>Getting Ruby 1.9.1p243 to work on OS X 10.5.8 with Japanese input support on irb</title>
		<link>http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 08:47:13 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[japan]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/?p=761</guid>
		<description><![CDATA[Awhile back I installed Ruby 1.9.1 in such a way as to co-exist with my current Ruby installation [1], [2] (I should use rvm [3] these days&#8230;)
However, one issue that cropped up during an IRB session was I could not copy and paste Japanese characters into the IRB repl.  This is very very painful [...]]]></description>
			<content:encoded><![CDATA[<p>Awhile back I installed Ruby 1.9.1 in such a way as to co-exist with my current Ruby installation [1], [2] (I should use rvm [3] these days&#8230;)</p>
<p>However, one issue that cropped up during an IRB session was I could not copy and paste Japanese characters into the IRB repl.  This is very very painful for my day to day use with Ruby (Imagine not being able to use the &#8216;|&#8217; character while writing UNIX pipelines). </p>
<p>Below is an example of me trying to enter the character あ into IRB and watching it fail.</p>
<blockquote>
<pre>
$ irb
irb(main):001:0&gt; ab = "?"    &lt;---- Tried entering the character あ
SyntaxError: (irb):1: invalid multibyte char (UTF-8)
(irb):1: unterminated string meets end of file
from /usr/local/bin/irb19:12:in `'
</pre>
</blockquote>
<p>After a lot of head scritching I was able to narrow it down to something with readline:</p>
<blockquote>
<pre>
$ irb --noreadline
irb(main):002:0&gt; ab = "あ"
=&gt; "あ"
irb(main):003:0&gt;
</pre>
</blockquote>
<p>After some more digging into the issue.  The root cause seems to be the lack of GNU readline.  By default, Ruby will link in the system installed readline library on OS X which is called <a href="http://thrysoee.dk/editline/">editline</a> [4].  Unfortunately, editline does not support UTF8 or multi-byte character sets which makes this a no-go for daily usage.</p>
<p>Most of the other references suggest downloading readline from source and installing into <em>/usr/local</em> however I believe this defeats the purpose of using something like <a href="http://www.macports.org">MacPorts</a>.  After a bit of finagling I found that this is the invocation to get things working.</p>
<blockquote>
<pre>
wget&nbsp;<a href="ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz" title="ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz" target="_blank">ftp://ftp.ruby-lang.org/pub/ruby/1.9/rub...</a>
tar xvzf ruby-1.9.1-p243.tar.gz
cd ruby-1.9.1-p243
# Don't trust MacPorts version of autoconf because it somehow nuked the
# --with-readline-dir option
/usr/bin/autoconf
./configure --with-readline-dir=/opt/local --enable-shared --program-suffix=19 --enable-pthread
make
sudo make install
</pre>
</blockquote>
<p>I have it wrapped up in a script which you can <a href="http://gist.github.com/180805">see here</a>.</p>
<p>References</p>
<p>[1]&nbsp;<a href="http://wonko.com/post/how-to-compile-ruby-191" title="http://wonko.com/post/how-to-compile-ruby-191" target="_blank">http://wonko.com/post/how-to-compile-rub&#8230;</a><br />
[2]&nbsp;<a href="http://frozenplague.net/2009/01/ruby-191-rubygems-rails/" title="http://frozenplague.net/2009/01/ruby-191-rubygems-rails/" target="_blank">http://frozenplague.net/2009/01/ruby-191&#8230;</a><br />
[3]&nbsp;<a href="http://rvm.beginrescueend.com/" title="http://rvm.beginrescueend.com/" target="_blank">http://rvm.beginrescueend.com/</a><br />
[4]&nbsp;<a href="http://thrysoee.dk/editline/" title="http://thrysoee.dk/editline/" target="_blank">http://thrysoee.dk/editline/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2009/09/08/getting-ruby-191p243-to-work-on-os-x-1058-with-japanese-input-support-on-irb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>OpenMac, yes, me wants one</title>
		<link>http://blogs.law.harvard.edu/hoanga/2008/04/14/openmac-yes-me-wants-one/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2008/04/14/openmac-yes-me-wants-one/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 15:15:35 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2008/04/14/openmac-yes-me-wants-one/</guid>
		<description><![CDATA[From their website

OpenMac: The Smart Alternative to an Apple
The Psystar OpenMac works just like an Apple Macintosh

Yes, very desirable.  However, we&#8217;ll see if Apple lets them continue with it&#8230;
Hope they don&#8217;t get sued out of existence
]]></description>
			<content:encoded><![CDATA[<p>From their website</p>
<blockquote><p>
OpenMac: The Smart Alternative to an Apple</p>
<p>The Psystar OpenMac works just like an Apple Macintosh
</p></blockquote>
<p><a href="http://www.psystar.com/psystar_openmac_osx86_reinventing_the_wheel.htmlhttp://www.psystar.com/psystar_openmac_osx86_reinventing_the_wheel.html">Yes, very desirable</a>.  However, we&#8217;ll see if Apple lets them continue with it&#8230;</p>
<p>Hope they don&#8217;t get sued out of existence</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2008/04/14/openmac-yes-me-wants-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>OS X 10.4.11 update, you suck</title>
		<link>http://blogs.law.harvard.edu/hoanga/2008/04/14/os-x-10411-update-you-suck/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2008/04/14/os-x-10411-update-you-suck/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 15:10:33 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[gripe]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2008/04/14/os-x-10411-update-you-suck/</guid>
		<description><![CDATA[After a long time of not updating my trusty old iLamp iMac, I finally updated it to 10.4.11 over the weekend and let it lie.  Later on I hear a report that Safari won&#8217;t start up.
That&#8217;s odd, I&#8217;ve never heard of Safari having launch problems before.   I check the log and I [...]]]></description>
			<content:encoded><![CDATA[<p>After a long time of not updating my trusty old iLamp iMac, I finally updated it to 10.4.11 over the weekend and let it lie.  Later on I hear a report that Safari won&#8217;t start up.</p>
<p>That&#8217;s odd, I&#8217;ve never heard of Safari having launch problems before.   I check the log and I see something like the following:</p>
<pre>
Date/Time:      2008-04-14 22:06:45.474 +0900
OS Version:     10.4.11 (Build 8S165)
Report Version: 4

Command: Safari
Path:    /Applications/Safari.app/Contents/MacOS/Safari
Parent:  WindowServer [86]

Version: 3.1 (4525.13)

PID:    20987
Thread: Unknown

Link (dyld) error:

Symbol not found: _WebDatabaseDirectoryDefaultsKey
  Referenced from: /Applications/Safari.app/Contents/MacOS/Safari
  Expected in: /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
</pre>
<p>Those type of messages go on and on in Console.app.   My first round of Googling brought me to a <a href="http://forums.macrumors.com/showthread.php?t=431762">Macrumors thread</a> that recommended deleting the history.plist and other parts from ~/Library/Safari.   I tried removing various files from that directory to no effect and finally just removing the directory altogether.  Nada.</p>
<p>Troubleshooting a PC WITHOUT a web browser really sucks.   I suggest everyone try it once in awhile to see just how much the nature of debugging IT problems has changed when you are deprived of a very powerful tool.  Luckily, this Mac had a very crufty version of IE lurking so the first thing I tried was a download of Firefox.  However, the disk image refused to be mounted!  Seems this is also tied in with <a href="http://discussions.apple.com/thread.jspa?messageID=6269838">the security update</a>.  So basically, I&#8217;m left with using IE as my main tool for debugging on this Mac.</p>
<p>After a bit of googling, it seems that the fix is tied requiring the latest OS X security update (Available at the <a href="http://www.apple.com/support/downloads">Support Download</a> page).  For OS X 10.4.x users you can find a link to the latest Universal <a href="http://www.apple.com/support/downloads/securityupdate2008002v10universal.html">here</a>.</p>
<p>However, there is a catch.  The security update is only available from that page as a Disk Image.  Guess what you can&#8217;t open it up under the affected Mac.  At this point you&#8217;re left with 2 options:</p>
<ol>
<li>Burn the Disk Image to a CD-R/DVD-R and use it that way</li>
<li>Transfer the disk image to another Mac and unarchive it then push it back</li>
</ol>
<p>I decided on the latter option since I hate wasting a CD-R if I don&#8217;t have to.  After applying the Security Update and rebooting, Safari boots up and things seem chipper again but that was a serious side trip on something I&#8217;ve rarely seen Apple ever mess up.   Anti-kudos to Apple for making this update on your &#8216;legacy&#8217; OS really sucky.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2008/04/14/os-x-10411-update-you-suck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Fixing that really irritating  perl: warning: Setting locale failed. on OS X leopard</title>
		<link>http://blogs.law.harvard.edu/hoanga/2008/04/10/fixing-that-really-irritating-perl-warning-setting-locale-failed-on/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2008/04/10/fixing-that-really-irritating-perl-warning-setting-locale-failed-on/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 14:19:16 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[gripe]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2008/04/10/fixing-that-really-irritating-perl-war</guid>
		<description><![CDATA[Anytime I&#8217;ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
     LC_ALL = "En_US",
     LANG = (unset)
are supported and installed on your system.
perl: [...]]]></description>
			<content:encoded><![CDATA[<p>Anytime I&#8217;ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting:</p>
<pre>
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
     LC_ALL = "En_US",
     LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
</pre>
<p>With a quick Google search I found an answer in this <a href="http://www.rubify.com/2007/10/28/rails-and-leopard-a-smooth-upgrade">Rubify post</a>.  Basically the solution / fix is to make sure the following is set in either your ~/.profile or ~/.bashrc or ~/.cshrc</p>
<pre>
# This setting is for the new UTF-8 terminal support
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
</pre>
<p><a href="http://www.rubify.com/2007/10/28/rails-and-leopard-a-smooth-upgrade">Read more at Rubify!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2008/04/10/fixing-that-really-irritating-perl-warning-setting-locale-failed-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Getting erlang to build on MacPorts with an installed iPhone Open SDK</title>
		<link>http://blogs.law.harvard.edu/hoanga/2008/03/21/getting-erlang-to-build-on-macports-with-an-installed-iphone-open-s/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2008/03/21/getting-erlang-to-build-on-macports-with-an-installed-iphone-open-s/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 14:48:35 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2008/03/21/getting-erlang-to-build-on-macports-wi</guid>
		<description><![CDATA[I had some serious unexpected fun trying to install erlang on my OS X box using MacPorts.  In general it&#8217;s usually a no brainer you usually type sudo port install &#60;foo&#62; and you have a new package installed without that much fuss.  However here is the partial log of trying to install erlang [...]]]></description>
			<content:encoded><![CDATA[<p>I had some serious unexpected fun trying to install erlang on my OS X box using MacPorts.  In general it&#8217;s usually a no brainer you usually type <b>sudo port install &lt;foo&gt;</b> and you have a new package installed without that much fuss.  However here is the partial log of trying to install erlang and it blowing up&#8230;</p>
<pre>
$ sudo port install icu erlang
... ICU installs without a problem ...
---&gt;  Fetching tcl
---&gt;  Attempting to fetch tcl8.5.1-src.tar.gz from&nbsp;<a href="http://downloads.sourceforge.net/tcl" title="http://downloads.sourceforge.net/tcl" target="_blank">http://downloads.sourceforge.net/tcl</a>
---&gt;  Verifying checksum(s) for tcl
---&gt;  Extracting tcl
---&gt;  Configuring tcl
---&gt;  Building tcl with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix" &amp;&amp; make all " returned error 2
Command output: /usr/bin/gcc-4.0 -c -Os -O2 -pipe    -Wall -Wno-implicit-int -fno-common -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../generic -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -
...
...
...
_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:62:
/usr/local/include/mach-o/arch.h:35: error: nested redefinition of 'enum NXByteOrder'
/usr/local/include/mach-o/arch.h:35: error: redeclaration of 'enum NXByteOrder'
/usr/local/include/mach-o/arch.h:36: error: redeclaration of enumerator 'NX_UnknownByteOrder'
/usr/include/architecture/byte_order.h:137: error: previous definition of 'NX_UnknownByteOrder' was here
/usr/local/include/mach-o/arch.h:37: error: redeclaration of enumerator 'NX_LittleEndian'
/usr/include/architecture/byte_order.h:138: error: previous definition of 'NX_LittleEndian' was here
/usr/local/include/mach-o/arch.h:39: error: redeclaration of enumerator 'NX_BigEndian'
/usr/include/architecture/byte_order.h:140: error: previous definition of 'NX_BigEndian' was here
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c: In function 'TclpFindSymbol':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:382: warning: 'NSLookupSymbolInImage' is deprecated (declared at /usr/include/mach-o/dyld.h:182)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:415: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:419: warning: 'NSLookupSymbolInModule' is deprecated (declared at /usr/include/mach-o/dyld.h:181)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:428: warning: 'NSAddressOfSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:188)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c: In function 'TclpUnloadFile':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:493: warning: 'NSUnLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:169)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c: In function 'TclpLoadMemory':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:697: warning: 'NSCreateObjectFileImageFromMemory' is deprecated (declared at /usr/include/mach-o/dyld.h:146)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:730: warning: 'NSLinkModule' is deprecated (declared at /usr/include/mach-o/dyld.h:161)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:732: warning: 'NSDestroyObjectFileImage' is deprecated (declared at /usr/include/mach-o/dyld.h:147)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_tcl/work/tcl8.5.1/unix/../unix/tclLoadDyld.c:740: warning: 'NSLinkEditError' is deprecated (declared at /usr/include/mach-o/dyld.h:217)
make: *** [tclLoadDyld.o] Error 1

Error: The following dependencies failed to build: tk tcl
Error: Status 1 encountered during processing.
</pre>
<p>Pretty sucky, huh?  My first lazy thought was, &#8220;I thought the point of a package manager was to avoid all these problems.&#8221;</p>
<p>After a little bit of thinking and staring at the error message, I did the workaround and moved the /usr/local/include directory away and tried rebuilding which made things much happier.  Check the log below&#8230;</p>
<pre>
$ cd /usr/local
l$ ls
arm-apple-darwin	include			man
bin			info			share
docs			lib
etc			libexec
$ sudo mv include include.ignore
l$ sudo port install icu erlang
Skipping org.macports.activate (icu ) since this port is already active
---&gt;  Cleaning icu
---&gt;  Building tcl with target all
---&gt;  Staging tcl into destroot
---&gt;  Installing tcl 8.5.1_0
---&gt;  Activating tcl 8.5.1_0
</pre>
<p>Voila.  A working erlang install.  Don&#8217;t forget to move back the include directory back to its old place.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2008/03/21/getting-erlang-to-build-on-macports-with-an-installed-iphone-open-s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Latest rev of Macbooks and keyboard conking out after sleep</title>
		<link>http://blogs.law.harvard.edu/hoanga/2007/12/02/latest-rev-of-macbooks-and-keyboard-conking-out-after-sleep/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2007/12/02/latest-rev-of-macbooks-and-keyboard-conking-out-after-sleep/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 20:30:49 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[gripe]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2007/12/02/latest-rev-of-macbooks-and-keyboard-co</guid>
		<description><![CDATA[So I&#8217;ve been slowly re-initiating myself into the Church of Mac with a new Macbook however not all is well in Mac-land&#8230;
It seems the Macbook can have an unresponsive keyboard if you sleep it and wake it up (Also here).
Needless to say I find this bug extremely irritating and it really hurts the one of [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been slowly re-initiating myself into the Church of Mac with a new Macbook however not all is well in Mac-land&#8230;</p>
<p>It seems the Macbook can have an unresponsive keyboard if you <a href="http://discussions.apple.com/thread.jspa?threadID=1232311&amp;tstart=0">sleep it and wake it up</a> (<a href="http://discussions.apple.com/thread.jspa?threadID=1227456&amp;tstart=0">Also here</a>).</p>
<p>Needless to say I find this bug extremely irritating and it really hurts the one of the primary raisons d&#8217;etre for owning a Mac (ultra-slick Sleep functionality that still is pretty rotten in Linux and Windows imo)</p>
<p>p.s. One workaround is to jam a key for 10 seconds or more when the unresponsiveness is happening.  Just make sure you don&#8217;t jam something that can alter data badly like the&#8230; delete button?</p>
<h3>References</h3>
<ul>
<li><a href="http://fredericiana.com/2007/11/27/osx-leopard-keyboard-problems/">Original Blog Post I Googled for</a></li>
<li><a href="http://discussions.apple.com/thread.jspa?threadID=1232311&amp;tstart=0">Apple Discussion Thread 1</a></li>
<li><a href="http://discussions.apple.com/thread.jspa?threadID=1227456&amp;tstart=0">Apple Discussion Thread 2</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2007/12/02/latest-rev-of-macbooks-and-keyboard-conking-out-after-sleep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Finally a gem release of ruby-opengl</title>
		<link>http://blogs.law.harvard.edu/hoanga/2007/02/21/finally-a-gem-release-of-ruby-opengl/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2007/02/21/finally-a-gem-release-of-ruby-opengl/#comments</comments>
		<pubDate>Thu, 22 Feb 2007 01:05:29 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2007/02/21/finally-a-gem-release-of-ruby-opengl/</guid>
		<description><![CDATA[Just wanted to let folks know that I&#8217;ve finally figured out how to get the build system in place for ruby-opengl to:

Gemify itself
Build native extensions during Gem installation using mkrf

Which means (I hope) that there should be an easier way to get OpenGL working with Ruby.  Currently it should support installing in Linux and [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to let folks know that I&#8217;ve finally figured out how to get the build system in place for <a href="http://ruby-opengl.rubyforge.org/">ruby-opengl</a> to:</p>
<ul>
<li>Gemify itself</li>
<li>Build native extensions during Gem installation using mkrf</li>
</ul>
<p>Which means (I hope) that there should be an easier way to get <a href="http://www.opengl.org">OpenGL</a> working with <a href="http://ruby-lang.org">Ruby</a>.  Currently it should support installing in Linux and OS X.  Installation should be as difficult as:</p>
<blockquote><p>
gem install -y ruby-opengl
</p></blockquote>
<p>Deinstallation should be similar.</p>
<p>
For win32 users, I&#8217;d suggest using the old bindings provided with the all-in-one installer although I&#8217;d like to get a gem built for win32 so hopefully it can get included in the all-in-one installer.
</p>
<h4>References</h4>
<ul>
<li><a href="http://rb-opengl.darwinports.com/">rb-opengl in Darwin.. err MacPorts</a></li>
<li><a href="http://www.chaoticdust.com/oblivious/2006/10/18/answer-one-how-can-i-use-opengl-in-ruby-on-the-mac/">An older way to get OpenGL in Ruby on OS X working</a></li>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2007/02/21/finally-a-gem-release-of-ruby-opengl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Excceelleent &#8211; KDE/Mac makes more progress</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/30/excceelleent-kdemac-makes-more-progress/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/30/excceelleent-kdemac-makes-more-progress/#comments</comments>
		<pubDate>Tue, 30 Dec 2003 17:45:06 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/30/excceelleent-kdemac-makes-more-progres</guid>
		<description><![CDATA[

Tales of the Racoon Fink is a very cool site if you&#8217;re interested in fink development and KDE porting to OS X.  Personally, I&#8217;m psyched over KDE compatibility coming to OS X.  That means piles and piles of applications that I&#8217;ve liked under Linux/BSD/UNIX will run natively in OS X.    [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a278'></a></p>
<p>
<a href="http://ranger.befunk.com/blog">Tales of the Racoon Fink</a> is a very cool site if you&#8217;re interested in fink development and KDE porting to OS X.  Personally, I&#8217;m psyched over KDE compatibility coming to OS X.  That means piles and piles of applications that I&#8217;ve liked under Linux/BSD/UNIX will run natively in OS X.    But it&#8217;s still making progress and is not ready for prime time.   But every little step counts.
</p>
<p>
Here Ranger Rick shows Konqueror running:
</p>
<p>
<a href="http://ranger.befunk.com/blog/archives/000290.html"><img src="http://ranger.befunk.com/screenshots/qt-mac-konqueror-20031229-thumb.png"></a><br />
</a>
</p>
<p>
 <a href="http://ranger.befunk.com/blog/archives/000290.html">Link to Post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/30/excceelleent-kdemac-makes-more-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Correction on Viewing Microsoft Compiled Help Files on OS X (You don&#8217;t need X11)</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/28/correction-on-viewing-microsoft-compiled-help-files-on-os-x-you-don/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/28/correction-on-viewing-microsoft-compiled-help-files-on-os-x-you-don/#comments</comments>
		<pubDate>Sun, 28 Dec 2003 11:16:55 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/28/correction-on-viewing-microsoft-compil</guid>
		<description><![CDATA[

 Ted Leung was kind enough to point out to me on an earlier post I made on viewing CHM files on OS X.  YOU DO NOT NEED X11 to view CHM files.   xchm uses wxWindows as its backend which has a native OS X port.  Definite bonus in my book!


 [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a273'></a></p>
<p>
 <a href="http://www.sauria.com">Ted Leung</a> was kind enough to point out to me on an earlier post I made on viewing CHM files on OS X.  <em>YOU DO NOT NEED X11</em> to view CHM files.   xchm uses wxWindows as its backend which has a native OS X port.  Definite bonus in my book!
</p>
<p>
 <a href="http://blogs.law.harvard.edu/hoanga/2003/12/25">My Old incorrect post</a><br />
<br />
 <a href="http://www.sauria.com/blog/2003/12/22#730">Ted&#8217;s Original Post on viewing CHM files under OS X </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/28/correction-on-viewing-microsoft-compiled-help-files-on-os-x-you-don/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Viewing Microsoft Compiled HTML Files (CHM) in OS X</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/25/viewing-microsoft-compiled-html-files-chm-in-os-x/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/25/viewing-microsoft-compiled-html-files-chm-in-os-x/#comments</comments>
		<pubDate>Thu, 25 Dec 2003 18:15:26 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/25/viewing-microsoft-compiled-html-files-</guid>
		<description><![CDATA[

Ted Leung describes how he built xchm which is a X11 app that lets you view Microsoft Compiled Help Files (CHM).  THis is really handy although needing X11 is a semi bummer but a liveable one


Obligatory Excerpt:



I got xchm to build on Mac OS X. This is an open source view for compiled HTML [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a264'></a></p>
<p>
Ted Leung <a href="http://www.sauria.com/blog/2003/12/22#730">describes</a> how he built <a href="http://xchm.sourceforge.net/">xchm</a> which is a X11 app that lets you view Microsoft Compiled Help Files (CHM).  THis is really handy although needing X11 is a semi bummer but a liveable one
</p>
<p>
Obligatory Excerpt:
</p>
<p>
<em><br />
I got xchm to build on Mac OS X. This is an open source view for compiled HTML help (CHM) files that are mostly used on Windows. The reason that I wanted xchm is that the Python docs are available in CHM format. The advantage of CHM is that its highly searchable (and you can search when you have no network connectivity). So this is a great way to get goo d access to documentation for Python, which I still need at this point.<br />
</em>
</p>
<p>
CHM files are quite handy under Windows I must admit so it&#8217;s good to see a tool to let you view it on OS X
</p>
<p>
 <a href="http://www.sauria.com/blog/2003/12/22#730">Link to Ted Leung&#8217;s Post</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/25/viewing-microsoft-compiled-html-files-chm-in-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Rhino JavaScripting on OS X</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/25/rhino-javascripting-on-os-x/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/25/rhino-javascripting-on-os-x/#comments</comments>
		<pubDate>Thu, 25 Dec 2003 16:55:18 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/25/rhino-javascripting-on-os-x/</guid>
		<description><![CDATA[

From Ranchero&#8217;s Weblog I saw this Weblog Entry on getting the Rhino JavaScript engine setup in OS X.  This is pretty neat especially for people who are heavy into ECMA/JavaScript hacking as it allows them to leverage all of their sensibilities of JavaScript for doing scripting tasks.


The breakdown of tasks you need to do [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a261'></a></p>
<p>
From <a href="http://www.ranchero.com">Ranchero&#8217;s Weblog</a> I saw this <a href="http://www.markme.com/mesh/archives/003948.cfm">Weblog Entry</a> on getting the Rhino JavaScript engine setup in OS X.  This is pretty neat especially for people who are heavy into ECMA/JavaScript hacking as it allows them to leverage all of their sensibilities of JavaScript for doing scripting tasks.
</p>
<p>
The breakdown of tasks you need to do are:</p>
<ol>
<li>Grab the <a href="http://www.mozilla.org/rhino/download.html">Rhino Tarball</a> from the Mozilla site</li>
<li>Then do some customizations to your shell environment to be able to run it easily</li>
</ol>
<p>One thing to note is that Rhino relies on a Java VM to be installed as it is basically a JAR file with a bunch of extra functionality.  One bonus for OS X is that Java is already installed with OS X  (isn&#8217;t it nice not having to go hunting around Sun&#8217;s website looking for a bloody JVM then waiting for some huuuuge download to finish?).   However a detractor is that it&#8217;s Java.   I&#8217;ve tried writing some command line tools using Java and I find them clunky as you have to do lots of annoying contortions to just run it correctly at the command line.  For a seasoned Java programmer it&#8217;s probably business as usual&#8230;
</p>
<p>
However, I already know my way around Ruby, Python, and am fluent enough in plain Bourne SHell syntax that I don&#8217;t see the point of adding yet another tool to compete with my CLI tasks.   Right now, I&#8217;ve truly decided on Ruby as my scripting language once it gets outside of the realm of too much difficult logic in Bourne Shell (I still use this when the needs are simple).   I like Python but it sucks trying to get Python working properly in a command pipeline.   But if you do the normal, write a file, then run it in the interpreter it won&#8217;t make a big difference.  OR if you use some fancy IDE.
</p>
<p>
But either way, choice is good and I&#8217;m sure JavaScript fans will be able to benefit most from this
</p>
<p>
 <a href="http://www.markme.com/mesh/archives/003948.cfm">Link to getting JavaScript up on OS X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/25/rhino-javascripting-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Getting 802.11g working on older PowerBooks preview</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/22/getting-80211g-working-on-older-powerbooks-preview/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/22/getting-80211g-working-on-older-powerbooks-preview/#comments</comments>
		<pubDate>Tue, 23 Dec 2003 04:41:29 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[fixes]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/22/getting-80211g-working-on-older-powerb</guid>
		<description><![CDATA[
I got 802.11g working on an older PowerBook (NOT with an Airport Extreme card but a normal CardBus one).  I&#8217;ll document more of my the experiences I had with going with what I thought &#8216;would just work&#8217; in a later blog.
]]></description>
			<content:encoded><![CDATA[<p><a name='a255'></a></p>
<p>I got 802.11g working on an older PowerBook (NOT with an Airport Extreme card but a normal CardBus one).  I&#8217;ll document more of my the experiences I had with going with what I thought &#8216;would just work&#8217; in a later blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/22/getting-80211g-working-on-older-powerbooks-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Some OS X Panther CLI Goodies</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/12/03/some-os-x-panther-cli-goodies/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/12/03/some-os-x-panther-cli-goodies/#comments</comments>
		<pubDate>Wed, 03 Dec 2003 06:16:37 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/12/03/some-os-x-panther-cli-goodies/</guid>
		<description><![CDATA[
Seems Panther keeps surprising me (or I just don&#8217;t check the CLI commands enough) but it seems that the Net SNMP Libraries are included with Panther along with Netcat.  These are powerful network utilities I use a lot in UNIX land.  I&#8217;m glad they&#8217;ve been included in Panther (perhaps earlier?  Anyone know?).
As [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a222'></a></p>
<p>Seems Panther keeps surprising me (or I just don&#8217;t check the CLI commands enough) but it seems that the <a href="http://www.net-snmp.org">Net SNMP</a> Libraries are included with Panther along with <a href="http://netcat.sourceforge.net/">Netcat</a>.  These are powerful network utilities I use a lot in UNIX land.  I&#8217;m glad they&#8217;ve been included in Panther (perhaps earlier?  Anyone know?).</p>
<p>As with all powerful tools, use them responsibly.  If you&#8217;re curious about them just do a <b>man</b> on them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/12/03/some-os-x-panther-cli-goodies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Notes from a Mac in Windoze land</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/11/18/notes-from-a-mac-in-windoze-land/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/11/18/notes-from-a-mac-in-windoze-land/#comments</comments>
		<pubDate>Tue, 18 Nov 2003 11:05:54 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[windoze]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/11/18/notes-from-a-mac-in-windoze-land/</guid>
		<description><![CDATA[
The Harvard Business School requires that its students use an IBM ThinkPad if they wish to be enrolled at the business school.   That&#8217;s REQUIREMENT not RECOMMENDATION.   Seems one of the business school students decided a little differently and setup a weblog documenting his experiences walking in a Windoze universe with a [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a202'></a></p>
<p>The <a href="http://hbs.harvard.edu">Harvard Business School</a> requires that its students use an IBM ThinkPad if they wish to be enrolled at the business school.   That&#8217;s REQUIREMENT not RECOMMENDATION.   Seems one of the business school students decided a little differently and setup a <a href="http://blogs.law.harvard.edu/macExperiment/">weblog</a> documenting his experiences walking in a Windoze universe with a Mac.  So far it seems he&#8217;s been doing well and continuously questions the need for a Windoze laptop rather than a very strong recommendation.   I wish you luck in turning the tide, sir!</p>
<p><a href="http://blogs.law.harvard.edu/macExperiment/">Link to Weblog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/11/18/notes-from-a-mac-in-windoze-land/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Adding scriptable items in OS X Address Book</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/11/16/adding-scriptable-items-in-os-x-address-book/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/11/16/adding-scriptable-items-in-os-x-address-book/#comments</comments>
		<pubDate>Sun, 16 Nov 2003 10:35:19 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/11/16/adding-scriptable-items-in-os-x-addres</guid>
		<description><![CDATA[
This is really neat and I didn&#8217;t even know about it.  Kudos to Mac OS X Hints for publishing this one.   Mac OS X Hints is a great place to find information on Mac OS X.
]]></description>
			<content:encoded><![CDATA[<p><a name='a193'></a></p>
<p>This is really neat and I didn&#8217;t even know about it.  Kudos to <a href="http://www.macosxhints.com">Mac OS X Hints</a> for publishing this one.   <a href="http://www.macosxhints.com">Mac OS X Hints</a> is a great place to find information on Mac OS X.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/11/16/adding-scriptable-items-in-os-x-address-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Phoby the wonder slide show app for OS X</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/11/08/phoby-the-wonder-slide-show-app-for-os-x/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/11/08/phoby-the-wonder-slide-show-app-for-os-x/#comments</comments>
		<pubDate>Sat, 08 Nov 2003 16:38:42 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/11/08/phoby-the-wonder-slide-show-app-for-os</guid>
		<description><![CDATA[



Stumbled across this one reading the Squeak Japanese Mailing List and checking out YFB&#8217;s Blog
What is it you ask?  A slide show application that supports transparency and can always stay in front so you can have a transculent slide show going on while doing other stuff.  Talk about an utterly gratuitous way to [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a184'></a></p>
<p><a href="http://phoby.sourceforge.jp/"><br />
<img src="http://phoby.sourceforge.jp/phoby_desktop.png"><br />
</a><br />
Stumbled across this one reading the Squeak Japanese Mailing List and checking out <a href="http://homepage.mac.com/yfp/iblog/">YFB&#8217;s Blog</a></p>
<p>What is it you ask?  A slide show application that supports transparency and can always stay in front so you can have a transculent slide show going on while doing other stuff.  Talk about an utterly gratuitous way to use Quart Extreme!   And coolest of all, the app is GPL&#8217;ed.</p>
<p><a href="http://phoby.sourceforge.jp/">Link to App</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/11/08/phoby-the-wonder-slide-show-app-for-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Linux NFS Stupidity</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/11/08/linux-nfs-stupidity/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/11/08/linux-nfs-stupidity/#comments</comments>
		<pubDate>Sat, 08 Nov 2003 09:59:21 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[gripe]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/11/08/linux-nfs-stupidity/</guid>
		<description><![CDATA[
There&#8217;s a story on Mac OS X Hints about people who NFS mount their home directories are having problems in Panther if they use a Linux NFS Server (must&#8230; control&#8230; stuck&#8230; up&#8230; snicker&#8230; argh&#8230; who am I kidding).   Anyways there&#8217;s a link to the NFS Source code with a patch for fixing this [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a182'></a></p>
<p>There&#8217;s a <a href="http://www.macosxhints.com/article.php?story=20031028005216891">story on Mac OS X Hints</a> about people who NFS mount their home directories are having problems in Panther if they use a Linux NFS Server (must&#8230; control&#8230; stuck&#8230; up&#8230; snicker&#8230; argh&#8230; who am I kidding).   Anyways there&#8217;s a link to the NFS Source code with a patch for fixing this problem in Linux.  You can look at that <a href="http://www.fys.uio.no/~trondmy/src/Linux-2.4.x/2.4.23-pre9/linux-2.4.23-01-fix_osx.dif">here</a>.<br />
Looking through the patch is rather educational in seeing how things are fixed.  But looking at this particular code fragment (the comments in particular) just made me laugh.<br />
<code></p>
<pre>
 /*
- *	NLM cookies. Technically they can be 1K, Nobody uses over 8 bytes
- *	however.
+ *	NLM cookies. Technically they can be 1K, Few people use over 8 bytes,
+ *	FreeBSD uses 16, Apple Mac OS-X 10.3 uses 20.
  */

 struct nlm_cookie
 &#123;
-	unsigned char data[8];
 	unsigned int len;
+#define NLM_MAXCOOKIELEN    	32
+	unsigned char data[NLM_MAXCOOKIELEN];
 &#125;;
</pre>
<p></code><br />
<br />
I can understand at one point the person that implemented the NFS Server probably thought no one else used more than 8 bytes for passing these things known as MLN cookies.   I bet he never really bothered to look at BSD code until this Panther problem came up rather recently.  But it&#8217;s nice that they got around to fixing it.   The summary of the fix is to fix up the cookie declaration to use up to 32 bytes (and hope that&#8217;s large enough for all implementations) as shown above<br />
And also change accesses to a cookie data with a function accessor rather than pulling it directly from the pointer (ick).  Here&#8217;s a small code snippet to show the differences:<br />
<code></p>
<pre>
-				*(unsigned int*)(block-&gt;b_call.a_args.cookie.data));
+				nlmdbg_cookie2a(&amp;block-&gt;b_call.a_args.cookie));
</pre>
<p></code><br />
<br />
Hopefully the patch will make it upstream to prevent all the other poor Linux server users who use OS X as clients from continuously suffering.   However, on reflection as an ordinary user I wouldn&#8217;t be flipping through all the NFS code in the Linux kernel JUST to find out compatibility issues like this nor even would I know where to start looking (unless there was a nice document with a comparison chart for all of this) so I&#8217;d probably assume things are okay and just go ahead and try it.  But when people ask why I use FreeBSD over Linux it&#8217;s exactly for stuff like this that I worry about.   Insidious evil interaction problems that would be really hard to catch unless you put it through certain circumstances.  Or the simpler solution is just run one platform (but that&#8217;s boring).</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/11/08/linux-nfs-stupidity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>You didn&#8217;t backup did you?</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/11/08/you-didnt-backup-did-you/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/11/08/you-didnt-backup-did-you/#comments</comments>
		<pubDate>Sat, 08 Nov 2003 06:27:19 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/11/08/you-didnt-backup-did-you/</guid>
		<description><![CDATA[
Oh crap.    The Archive and Install option in Panther nuked all of the customizations I had put into the Apache CGI Directory!
Worry worry worry&#8230;
Oh yes&#8230;
Fire up Terminal:

cd /
ls /
Hmmm, hey I see /Previous Systems
cd /Previous Systems/Previous System 1/Library/WebServer/CGI-Executables
ls


Dear sweet sweet day.  It&#8217;s still there!!!!
]]></description>
			<content:encoded><![CDATA[<p><a name='a179'></a></p>
<p>Oh crap.    The Archive and Install option in Panther nuked all of the customizations I had put into the Apache CGI Directory!</p>
<p>Worry worry worry&#8230;<br />
Oh yes&#8230;<br />
Fire up Terminal:</p>
<pre>
cd /
ls /
Hmmm, hey I see /Previous Systems
cd /Previous Systems/Previous System 1/Library/WebServer/CGI-Executables
ls
</pre>
<p>
Dear sweet sweet day.  It&#8217;s still there!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/11/08/you-didnt-backup-did-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>BottomFeeder for OS X Mini-Review</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/10/27/bottomfeeder-for-os-x-mini-review/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/10/27/bottomfeeder-for-os-x-mini-review/#comments</comments>
		<pubDate>Mon, 27 Oct 2003 10:32:39 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/10/27/bottomfeeder-for-os-x-mini-review/</guid>
		<description><![CDATA[
I downloaded BottomFeeder, a SmallTalk powered blogging tool.  I was really overjoyed to see it being a cross-platform piece of software with OS X support.  So I glady downloaded it and started looking through it.  Here is what I found&#8230;

First off, the manual didn&#8217;t have any explanation besides the bare minimum for [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a168'></a></p>
<p>I downloaded <a href="http://www.cincomsmalltalk.com/BottomFeeder/">BottomFeeder</a>, a SmallTalk powered blogging tool.  I was really overjoyed to see it being a cross-platform piece of software with OS X support.  So I glady downloaded it and started looking through it.  Here is what I found&#8230;</p>
<ul>
<li>First off, the manual didn&#8217;t have any explanation besides the bare minimum for how to get this running in OS X.   Plenty of instructions for Windoze users.  How the hell is this supposed to work?  How am I supposed to install it?   Okay whatever I can figure this out&#8230;</li>
<li>When I uncompressed it I just found a directory full of files.  There wasn&#8217;t an Application Bundle that I could just drag around and start up.  It seems there was some file called bottomFeeder.  What&#8217;s that?   Is that the executable?  Clicking on it in the Finder didn&#8217;t do squat.  How am I supposed to make this run anything?</li>
<li>A little thought I drop into the Terminal then try typing ./bottomFeeder.  Now a window pops up that says &#8216;Open&#8217;.   What the heck is that for?   Oh I get&#8230; it&#8217;s a SmallTalk program looking for an image.  Okay&#8230;.   I&#8217;m supposed to find the image file.  Just look for the large file sitting around.</li>
<li>Next I try, ./bottomFeeder bottomFeeder.im<br />
<img src="http://cyber.law.harvard.edu/blogs/static/hoanga/BottomFeederweb.jpg" height="233" width="250" border="0" alt=""></li>
<li>I start looking through the menus.  Hmmm doesn&#8217;t look that bad.  I want to import all my NetNewsWire subscriptions into it.   I just need to use the Import subscriptions.   Hey&#8230; wait where&#8217;s the .opml import?   I try loading All Files and then loading it in, no go.     I wanna quit&#8230;   Cmd-q.  No?</li>
<li>Ugh, this is the last straw.   BottomFeeder for Windows might work quite well and integrate well with the Windows GUI however for OS X it&#8217;s an embarassment.  Nothing in the DOck, nothing in the Finder Bar on top, no instructions on how to get started.   And the last straw&#8230;  how come it can import piles of different file types but NOT the one I need to use???  <b>Geez</b></li>
</ul>
<p><b>Score: 1/10</b><br />
At least the thing runs and does stuff but I can&#8217;t do any blogging in this thing.  Back to the drawing board.  If this is supposed to show SmallTalk&#8217;s power I&#8217;m not convinced.  I want to be a believer but not with a demonstration like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/10/27/bottomfeeder-for-os-x-mini-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>More Panther goodness</title>
		<link>http://blogs.law.harvard.edu/hoanga/2003/10/26/more-panther-goodness/</link>
		<comments>http://blogs.law.harvard.edu/hoanga/2003/10/26/more-panther-goodness/#comments</comments>
		<pubDate>Sun, 26 Oct 2003 17:46:43 +0000</pubDate>
		<dc:creator>hoanga</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blogs.law.harvard.edu/hoanga/2003/10/26/more-panther-goodness/</guid>
		<description><![CDATA[
I&#8217;ve been getting acquainted with Panther&#8217;s new features.  So far I find the UI snappier than Jaguar which is a good thing since I want my UI to wait for me and NOT the other way around.
But here&#8217;s some very cool stuff:


man sendmail


SENDMAIL(1)            [...]]]></description>
			<content:encoded><![CDATA[<p><a name='a165'></a></p>
<p>I&#8217;ve been getting acquainted with Panther&#8217;s new features.  So far I find the UI snappier than Jaguar which is a good thing since I want my UI to wait for me and NOT the other way around.<br />
But here&#8217;s some very cool stuff:<br />
<em><br />
<b><br />
man sendmail<br />
</b></p>
<pre>
SENDMAIL(1)                                             SENDMAIL(1)

NAME
       sendmail - Postfix to Sendmail compatibility interface
</pre>
<p></em></p>
<p><em></p>
<p><b>man vi</b></p>
<pre>
VIM(1)                                                         VIM(1)

NAME
       vim - Vi IMproved, a programmers text editor
</pre>
<p></em><br />
<br />
Apple&#8217;s been doing some cleanup under the hood of the UNIX layer underneath.  Now that&#8217;s service!   One other nice thing I&#8217;ve noticed is they&#8217;ve been going through cleanups of the UI for various programs and making sure that Cmd-, actually means bring up the Preferences.   Beforehand programs like Mail.app DID NOT respect this convention and it made it a pain to memorize which particular programs adhered to the new set of keybindings and which ones didn&#8217;t but I&#8217;m very glad Apple has been going around fixing these warts that have made daily usage a pain.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.law.harvard.edu/hoanga/2003/10/26/more-panther-goodness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>
