<?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>Blog of Jeroen Leenarts &#187; Mac OSX</title>
	<atom:link href="http://blog.leenarts.net/category/mac-osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leenarts.net</link>
	<description>Macs, Java, software development, IT related books and things I do for a living.</description>
	<lastBuildDate>Fri, 03 Feb 2012 12:37:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mac OSX Open Terminal Here Service</title>
		<link>http://blog.leenarts.net/2009/09/03/open-service-here/</link>
		<comments>http://blog.leenarts.net/2009/09/03/open-service-here/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 22:00:02 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/?p=405</guid>
		<description><![CDATA[Mac OSX Snow Leopard has revived the Services menu. I&#8217;ve implemented a really simple Service called &#8220;Open Terminal Here&#8221;. It&#8217;s a small service which becomes available in the context menu of every file and folder in the Finder with an &#8230; <a href="http://blog.leenarts.net/2009/09/03/open-service-here/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mac OSX Snow Leopard has revived the Services menu.</p>
<p>I&#8217;ve implemented a really simple Service called &#8220;Open Terminal Here&#8221;. It&#8217;s a small service which becomes available in the context menu of every file and folder in the Finder with an entry called &#8220;Open Terminal Here&#8221;.</p>
<p>It&#8217;s function is really simple, it activated the Terminal application and changes the current directory to selected directory or the containing directory, depending whether you selected a file or folder.</p>
<p>The linked zip file contains a file named: &#8220;Open Terminal Here.workflow&#8221;<br />
If you would like to change the name appearing in your services menu, just change the name of the file to something else. make sure the extension remains the same. For example: &#8220;Any other Name.workflow&#8221;.</p>
<p>After you are happy with the services name, copy the resulting file to the directory &#8220;Library/Services&#8221; in your user&#8217;s home directory. Now you can open a Terminal window at the location you&#8217;ve just selected, it works for multiple selections too.</p>
<p>Here&#8217;s the link to the zip file: <a href="http://blog.leenarts.net/?attachment_id=451" title="Open Terminal Here 0.3.zip">Open Terminal Here 0.3.zip</a></p>
<p>Oh just a little tip, to open the current Terminal.app path you&#8217;re at into a Finder window, just type &#8220;open .&#8221; followed by a return. (Yes, that&#8217;s 4 characters, a space and finally a dot.)</p>
<p>Some people have reported some issues while installing this service. Please see the comments for a workaround by j.g. Owen.</p>
<p>Version 0.3:<br />
-Fixed the multiple window problem (courtesy John-Michael Glenn)</p>
<p>Version 0.2:<br />
-should fix a localization problem.</p>
<p>I&#8217;ve also created a SVN repository for this little bit of code: <a href="http://svn.leenarts.net/svn/opensource/Open%20Terminal%20Here/">http://leenarts.net/svn/opensource/Open%20Terminal%20Here/</a><br />
When asked for a username and password, just enter empty strings.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2009/09/03/open-service-here/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Adjust first names with AppleScript in an Address Book Group</title>
		<link>http://blog.leenarts.net/2008/05/02/applescript-address-book/</link>
		<comments>http://blog.leenarts.net/2008/05/02/applescript-address-book/#comments</comments>
		<pubDate>Fri, 02 May 2008 00:47:05 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2008/05/02/applescript-address-book/</guid>
		<description><![CDATA[At my company the sysadmins provide a little service when putting all phone numbers of colleagues on my cell phone. Every colleague is prefixed with a dot. My car&#8217;s carkit though lists all numbers grouped by alphabet. So this leads &#8230; <a href="http://blog.leenarts.net/2008/05/02/applescript-address-book/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At my company the sysadmins provide a little service when putting all phone numbers of colleagues on my cell phone. Every colleague is prefixed with a dot. My car&#8217;s carkit though lists all numbers grouped by alphabet. So this leads to like a couple hundred entries grouped under a single dot. Fortunatly I can sync my phone to my Apple&#8217;s Address Book. When it&#8217;s in there, the following little AppleScript allows me to change all first names starting with a dot to something without a dot.</p>
<p>First I transfer all dot-prefixed entries to a special group, then this script runs the people in that group through a little check and adjustment when needed.</p>
<p>(The syntax of AppleScript is a real pain.)</p>
<pre class="brush: cpp; title: ; notranslate">
on lstripString(theText, trimString)
	set x to count trimString
	try
		repeat while theText begins with the trimString
			set theText to characters (x + 1) thru -1 of theText as text
		end repeat
	on error
		return &quot;&quot;
	end try
	return theText
end lstripString

tell application &quot;Address Book&quot;
	set infoSupporters to people of group &quot;InfoSupport&quot;
	repeat with p in infoSupporters
		if first name of p starts with &quot;.&quot; then
			set new_first_name to my lstripString(first name of p, &quot;.&quot;)
			set first name of p to new_first_name
		end if
	end repeat

	display dialog &quot;Done!&quot;
end tell
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2008/05/02/applescript-address-book/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I keep forgetting that -u does an uninstall of old macport versions</title>
		<link>http://blog.leenarts.net/2008/02/18/i-keep-forgetting-that-u-does-an-uninstall-of-old-macport-versions/</link>
		<comments>http://blog.leenarts.net/2008/02/18/i-keep-forgetting-that-u-does-an-uninstall-of-old-macport-versions/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 23:37:54 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Random thoughts]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2008/02/18/i-keep-forgetting-that-u-does-an-uninstall-of-old-macport-versions/</guid>
		<description><![CDATA[According to the MacPorts port command man page the option -u: &#8220;uninstall non-active ports when upgrading and uninstalling&#8221;. Just running port upgrade all the time litters your systems with lots and lots op old archived versions of installed ports. To &#8230; <a href="http://blog.leenarts.net/2008/02/18/i-keep-forgetting-that-u-does-an-uninstall-of-old-macport-versions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.leenarts.net/wp-content/uploads/2008/02/macports-logo-top.png" alt="macports-logo-top.png" border="0" width="183" height="70" align="left" />According to the <a href="http://www.macports.org/">MacPorts</a> port command man page the option -u: &#8220;uninstall non-active ports when upgrading and uninstalling&#8221;.</p>
<p>Just running port upgrade all the time litters your systems with lots and lots op old archived versions of installed ports.</p>
<p>To correct this whole mess you could run &#8220;sudo port -u uninstall&#8221;. This should uinstall any archived versions you might have. You might need to add a -f to that to make it work: &#8220;sudo port -uf uninstall&#8221;.</p>
<p>You might have some trouble when you force a removal like this when one of your installed ports is linked against an older version of a library. This can be fixed by <a href="http://trac.macosforge.org/projects/macports/wiki/ProblemHotlist">replaying some steps on this page</a>.</p>
<p>Basically this post is a reminder for myself. But just maybe someone might find this useful too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2008/02/18/i-keep-forgetting-that-u-does-an-uninstall-of-old-macport-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrueCrypt released for MacOSX, using MacFuse</title>
		<link>http://blog.leenarts.net/2008/02/06/truecrypt-maxosx-macfuse/</link>
		<comments>http://blog.leenarts.net/2008/02/06/truecrypt-maxosx-macfuse/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:43:08 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2008/02/06/truecrypt-maxosx-macfuse/</guid>
		<description><![CDATA[Yesterday TrueCrypt version 5.0 has been released. Nothing special you might say, but then again, you might not be running Mac OSX. TrueCrypt has been released for the Mac as well. The cool thing about it is that it uses &#8230; <a href="http://blog.leenarts.net/2008/02/06/truecrypt-maxosx-macfuse/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday <a title="TrueCrypt version history page" href="http://www.truecrypt.org/docs/?s=version-history">TrueCrypt version 5.0</a> has been released. Nothing special you might say, but then again, you might not be running Mac OSX. TrueCrypt has been released for the Mac as well. The cool thing about it is that it  uses <a title="MacFuse homepage" href="http://code.google.com/p/macfuse/">MacFuse</a>.</p>
<p class="download"><a href="http://www.truecrypt.org/downloads.php">Download TrueCrypt here.</a><br />
You will find several options suitable for your system.</p>
<p>MacFuse is a kernel extension for the OSX operating system allowing mounting of file systems in user space. With MacFuse a user can mount a file system dynamically without needing super user privileges. MacFuse is based on the original <a title="original Fuse filesystem" href="http://fuse.sourceforge.net/">Fuse</a> kernel extension for Linux based operating systems. With MacFuse/Fuse you can do cool things like an mounting a remote file system over SSH, a <a href="http://osxbook.com/book/bonus/chapter11/grabfs/">screenshot file system</a> dynamically generating screen shots of all active windows on your desktop or just about any other piece of data that can be mashed in to a hierarchical layout or read/write NTFS file systems. You probably think this is boring. But the thing is, it&#8217;s all dynamic. Without MacFuse I guess implementing TrueCrypt for Mac would have been a whole lot harder.</p>
<p>With the release of the latest TrueCrypt using a secure portable drive is finally a decent option for me. Sure OS X already has the concept of secure DMG files. But those are kinda Mac only. And I have to be able to carry stuff between my Mac and several Windows machines.</p>
<p class="important">One word of caution though, remember that you do need to make some form of back-up of all your encrypted data. Back-up the individual files or the entire encrypted disk image. <span style="text-decoration: line-through;">Because if only one bit falls over in your encrypted disk, the entire disk will be corrupted. </span>Correction supplied by Honza in the comments. The behaviour of TrueCrypt is more like a real hard drive. If a bit falls over, only the file containing the tainted section will fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2008/02/06/truecrypt-maxosx-macfuse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apple Mail just really keeled over on me&#8230; I whacked reply to much&#8230;</title>
		<link>http://blog.leenarts.net/2007/06/19/apple-mail-just-really-keeled-over-on-me-i-whacked-reply-to-much/</link>
		<comments>http://blog.leenarts.net/2007/06/19/apple-mail-just-really-keeled-over-on-me-i-whacked-reply-to-much/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 19:12:55 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2007/06/19/apple-mail-just-really-keeled-over-on-me-i-whacked-reply-to-much/</guid>
		<description><![CDATA[I was trying to forward a message. One with loads and loads of replies. Really in the order of dozens of replies on replies. Aaaaanyway&#8230; I thought, what the heck I&apos;ll give Apple Mail some time. And there Apple Mail &#8230; <a href="http://blog.leenarts.net/2007/06/19/apple-mail-just-really-keeled-over-on-me-i-whacked-reply-to-much/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was trying to forward a message. One with loads and loads of replies. Really in the order of dozens of replies on replies.</p>
<p>Aaaaanyway&#8230; I thought, what the heck I&apos;ll give Apple Mail some time.</p>
<p>And there Apple Mail was munching away&#8230; ..on my internal memory that is!! After about 10 minutes or so Apple Dumped on me. Turns out the Kernel identified Apple Mail as a run-away procces. </p>
<p>Luckily, I had taken a snapshot with the Activity Monitor&#8230;<br />
Now look at that screwed call stack. Something was definatly going up the recursion tree.</p>
<blockquote><p>Analysis of sampling pid 700 every 10.000000 milliseconds<br />
Call graph:<br />
    300 Thread_0f07<br />
      300 0x94d19<br />
        300 0x94df2<br />
          300 NSApplicationMain<br />
            300 -[NSApplication run]<br />
              300 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]<br />
                300 _DPSNextEvent<br />
                  300 BlockUntilNextEventMatchingListInMode<br />
                    300 ReceiveNextEventCommon<br />
                      300 RunCurrentEventLoopInMode<br />
                        300 CFRunLoopRunInMode<br />
                          300 CFRunLoopRunSpecific<br />
                            300 __CFMachPortPerform<br />
                              300 __NSFireMachPort<br />
                                300 -[MainThread handlePortMessage:]<br />
                                  300 _invokeInvocationRequest<br />
                                    300 -[NSInvocation invoke]<br />
                                      300 objc_msgSendv<br />
                                        300 0x67fbd<br />
                                          300 0x6a506<br />
                                            300 0x6a5a5<br />
                                              300 KWQKHTMLPart::setSelectionFromNone()<br />
                                                300 khtml::Selection::Selection[in-charge](DOM::Position const&amp;, khtml::EAffinity)<br />
                                                  300 khtml::Selection::validate(khtml::ETextGranularity)<br />
                                                    300 KHTMLView::layout()<br />
                                                      300 khtml::RenderCanvas::layout()<br />
                                                        300 khtml::RenderBlock::layout()<br />
                                                          300 khtml::RenderBlock::layoutBlock(bool)<br />
                                                            300 khtml::RenderBlock::layoutBlockChildren(bool)<br />
                                                              300 khtml::RenderBlock::layout()<br />
                                                                300 khtml::RenderBlock::layoutBlock(bool)<br />
                                                                  300 khtml::RenderBlock::layoutBlockChildren(bool)<br />
                                                                    300 khtml::RenderBlock::layout()<br />
                                                                      300 khtml::RenderBlock::layoutBlock(bool)<br />
                                                                        300 khtml::RenderBlock::layoutBlockChildren(bool)<br />
                                                                          300 khtml::RenderBlock::layout()<br />
                                                                            300 khtml::RenderBlock::layoutBlock(bool)<br />
                                                                              300 khtml::RenderBlock::layoutBlockChildren(bool)<br />
                                                                                300 khtml::RenderBlock::layout()<br />
                                                                                  300 khtml::RenderBlock::layoutBlock(bool)<br />
                                                                                    300 khtml::RenderBlock::layoutBlockChildren(bool)<br />
                                                                                      300 khtml::RenderBlock::layout()<br />
etc, etc, etc&#8230; (You get the idea here?)</p>
<p></em></p>
<p>How I resolved this you say? Well, the weird thing was that Apple Mail was able to start and just show me the offending mail. Only when I tried forwarding OR replying things got ugly. I went into the Mail folder in my Library to VI my way out of it. As in locate the emlx file of that particular mail and &quot;dd&quot; the crap out of it to cut it down to size a bit. Then everything worked again in Apple Mail. All things went sunny again. (I do have the original message lurking on my pop box. So if any OG Apple engineer wants to look at it. Pleeeeeeease do contact me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2007/06/19/apple-mail-just-really-keeled-over-on-me-i-whacked-reply-to-much/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Darwinports is freaking me out!!</title>
		<link>http://blog.leenarts.net/2006/09/28/darwinports-is-freaking-me-out/</link>
		<comments>http://blog.leenarts.net/2006/09/28/darwinports-is-freaking-me-out/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 19:57:56 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/09/28/darwinports-is-freaking-me-out/</guid>
		<description><![CDATA[Man, am I having hard times with Rails and DarwinPorts MacPorts or what? The strangest things keep happening. My Rails install broke down again. Imagine my frustration. I&#8217;ve been messing around with it for a few days now. And trust &#8230; <a href="http://blog.leenarts.net/2006/09/28/darwinports-is-freaking-me-out/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img id="image97" src="http://blog.leenarts.net/wp-content/uploads/2006/07/rails.png" alt="Ruby on Rails project logo" style="float:left; margin: 5px"/>Man, am I having hard times with Rails and <s><a href="http://darwinports.opendarwin.org/">DarwinPorts</a></s> <a href="http://macports.org">MacPorts</a> or what? The strangest things keep happening. My Rails install broke down <em>again</em>. Imagine my frustration. I&#8217;ve been messing around with it for a few days now. And trust me, nothing wrong with rails. This time it was an incomming update on a support library called <em><a href="http://www.gnu.org/software/gettext/">gettext</a></em>. <strong>Argh!!</strong> On itself nothing wrong with updates, and that stuff breaks because of it, fine. But not all in one week please.</p>
<p>In hindsight the fix was real simple.</p>
<ul>
<li>sudo port uninstall [insert anything starting with <em>rb-</em>]</li>
<li>sudo port install rb-rails</p>
</li>
</ul>
<p>Oh and another one if you would want to use rb-sqlite3 on Rails. Install <a href="http://www.swig.org/">swig</a> before installing the sqlite adapter. And don&#8217;t forget, in your database.yml: <em>adapter:  sqlite3</em> Yes, with a three that is.</p>
<p>Just a sidenote: I officially fell in love with TextMate. This editor is soooo cool. Thank you very much <a href="http://www.macromates.com/">MacroMates</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/09/28/darwinports-is-freaking-me-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quartz 2D Graphics</title>
		<link>http://blog.leenarts.net/2006/09/09/quartz-2d-graphics/</link>
		<comments>http://blog.leenarts.net/2006/09/09/quartz-2d-graphics/#comments</comments>
		<pubDate>Sat, 09 Sep 2006 16:57:57 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Book]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/09/09/quartz-2d-graphics/</guid>
		<description><![CDATA[I haven&#8217;t finished the book yet, I&#8217;m about half way through. But so-far it&#8217;s a great book about an excellent part of Mac OSX. The book details how you should use Quartz 2D and Core Image. Quartz 2D is a &#8230; <a href="http://blog.leenarts.net/2006/09/09/quartz-2d-graphics/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0321336631%26tag=jeroenleenart-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321336631%253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon" style="float: left; margin: 5px"><img src="http://ec1.images-amazon.com/images/P/0321336631.01._SCMZZZZZZZ_.jpg" alt="Quartz 2D Graphics for Mac OS X(R) Developers" /></a>I haven&#8217;t finished the book yet, I&#8217;m about half way through. But so-far it&#8217;s a great book about an excellent part of Mac OSX.</p>
<p>The book details how you should use Quartz 2D and Core Image. Quartz 2D is a central piece in the graphics development on Mac OSX. The thing with Quartz 2D is the fact that it is resolution and color independent. And this book really hammers it down. The interesting thing to me is the fact that Graphics 2D in Java is also resolution and color independent. This resolution and color independence makes it possible to program in a device independent manner. The &#8220;device&#8221; can be the screen, a memory bitmap, a PDF file/memory structure, a printer or anything else which is capable of displaying or producing graphics. The end result of this is that you only have to write your drawing code once without any device specific intricacies. There are a few things to keep in mind in a few exceptional cases, but that&#8217;s usually not a problem at all.</p>
<p>The book doesn&#8217;t seem to contain a lot of code. Most of the time it shows a few snippets to get a point across. But every listing comes with a number which references a file on the accompanying compact disk. Excellent stuff, you see something interesting, you want to fiddle with it in an editor anyway. So why waste precious page space? I personally hate it when books are half code, half actual text. Quartz 2D graphics on the other hand strikes just the right balance to me.</p>
<p>This books also goes into Core Image. Core Image is a framework on OSX which allows programming of the systems graphics card. If the graphics card does not support such actions Core Image provides a soft alternative, which is a lot slower offcourse.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/09/09/quartz-2d-graphics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Note to self: Never run &#8220;sudo port upgrade all&#8221; again</title>
		<link>http://blog.leenarts.net/2006/09/07/note-to-self-never-run-sudo-port-upgrade-all-again/</link>
		<comments>http://blog.leenarts.net/2006/09/07/note-to-self-never-run-sudo-port-upgrade-all-again/#comments</comments>
		<pubDate>Thu, 07 Sep 2006 17:03:15 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/09/07/note-to-self-never-run-sudo-port-upgrade-all-again/</guid>
		<description><![CDATA[&#8220;Ghee whiz&#8230; That was taking mighty long&#8221; I thought, &#8220;Why has my PowerBook been compiling and compiling for over 30 hours now?&#8221; Then I remembered the command I entered to upgrade all installed MacPorts. I should have used installed instead &#8230; <a href="http://blog.leenarts.net/2006/09/07/note-to-self-never-run-sudo-port-upgrade-all-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&#8220;Ghee whiz&#8230; That was taking mighty long&#8221; I thought, &#8220;Why has my PowerBook been compiling and compiling for over 30 hours now?&#8221;</p>
<p>Then I remembered the command I entered to upgrade all installed MacPorts. I should have used <b>installed</b> instead of all. *Sigh!* I&#8217;ve just deleted my entire MacPorts install because I think it&#8217;s easier for me to actually just reinstall the few MacPorts I use.</p>
<p>MacPorts is a toolset for Mac OSX which allows you to get loads of unix tools ready and ported for the Mac OSX operating system. It&#8217;s a bit geeky, but it sure beats having to install everything by hand and hope you didn&#8217;t miss a mac specific patch.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/09/07/note-to-self-never-run-sudo-port-upgrade-all-again/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>DTrace in OS-X</title>
		<link>http://blog.leenarts.net/2006/08/15/dtrace-in-os-x/</link>
		<comments>http://blog.leenarts.net/2006/08/15/dtrace-in-os-x/#comments</comments>
		<pubDate>Tue, 15 Aug 2006 11:26:31 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/08/15/dtrace-in-os-x/</guid>
		<description><![CDATA[While I&#8217;m not feeling very good today, I have a headache again, one can only stay in bed for so long. So while browsing around a bit (http://www.opensolaris.org/os/ to be exact). I stumbled upon some very positive news from the &#8230; <a href="http://blog.leenarts.net/2006/08/15/dtrace-in-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While I&#8217;m not feeling very good today, I have a headache again, one can only stay in bed for so long. So while browsing around a bit (<a href="http://www.opensolaris.org/os/">http://www.opensolaris.org/os/</a> to be exact).</p>
<p>I stumbled upon some very positive news from the Apple Word Wide Developers Conference (WWDC). According to <a href="http://www.zdnet.com.au/news/software/soa/Mac_OS_X_Leopard_gets_Sun_s_DTrace/0,2000061733,39265767,00.htm">ZD-NET Australia</a> the next release of Apple OS-X, Leopard, will support DTrance. It also gets an Apple work-over, so it will probably look and feel good too. Take a look at the bottom of <a href="http://www.apple.com/macosx/leopard/xcode.html">Apple&#8217;s Leopard preview page</a>. Apple will include a tool called XRay which will leverage DTrace to provide its functionality. Knowing Apple this will probably mean that the original tool will be included as well.</p>
<p>For those who are wondering what DTrace is. Well, it&#8217;s a comprehensive dynamic tracing framework. DTrace provides a powerful infrastructure to permit administrators, developers, and service personnel to concisely answer arbitrary questions about the behaviour of the operating system and user programs.</p>
<p>&#8220;What?&#8221; you might say&#8230; well it comes down to this:<br />
For Users:</p>
<ul>
<li>dynamically enable and manage thousands of probes</li>
<li>dynamically associate predicates and actions with probes</li>
<li>dynamically manage trace buffers and probe overhead</li>
<li>examine trace data from a live system or from a system crash dump</li>
</ul>
<p>For Developers:</p>
<ul>
<li>implement new trace data providers that plug into DTrace</li>
<li>implement trace data consumers that provide data display</li>
<li>implement tools that configure DTrace probes</li>
</ul>
<p><small>(Source: <a href="http://www.opensolaris.org/os/community/dtrace/">http://www.opensolaris.org/os/community/dtrace/</a>, you can find a more detailed description of DTrace there as well.)</small></p>
<p>Let&#8217;s just say, seeing is believing. Once you see DTrace in action, you&#8217;re hooked.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/08/15/dtrace-in-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New project assignment, something with Python</title>
		<link>http://blog.leenarts.net/2006/07/26/new-project-assignment-something-with-python/</link>
		<comments>http://blog.leenarts.net/2006/07/26/new-project-assignment-something-with-python/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 21:50:44 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/26/new-project-assignment-something-with-python/</guid>
		<description><![CDATA[I&#8217;ll be taking over a few tasks while a colleague of mine is taking some well deserved R&#038;R. The thing is, I&#8217;ve heard it involves Python. *sweet* That does mean I&#8217;ll be scrapping my Ruby experimentation, because I have to &#8230; <a href="http://blog.leenarts.net/2006/07/26/new-project-assignment-something-with-python/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.python.org"><img id="image101" src="http://blog.leenarts.net/wp-content/uploads/2006/07/python-logo.gif" alt="Python logo" style="float: left" /></a> I&#8217;ll be taking over a few tasks while a colleague of mine is taking some well deserved R&#038;R. The thing is, I&#8217;ve heard it involves Python. *sweet* <img src='http://blog.leenarts.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>That does mean I&#8217;ll be scrapping my Ruby experimentation, because I have to brush up my Python skills a bit. It&#8217;s been a while since I&#8217;ve done any serious Python coding.</p>
<p>If you&#8217;re looking into Python too, <a href="http://www.python.org/doc/tut/">start here</a>. Oh and, MacOSX 10.4 comes with Python 2.3.5 pre-installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/07/26/new-project-assignment-something-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First steps with Ruby on Rails</title>
		<link>http://blog.leenarts.net/2006/07/22/first-steps-with-ruby-on-rails/</link>
		<comments>http://blog.leenarts.net/2006/07/22/first-steps-with-ruby-on-rails/#comments</comments>
		<pubDate>Sat, 22 Jul 2006 00:57:06 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Book]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/22/first-steps-with-ruby-on-rails/</guid>
		<description><![CDATA[As any self respecting software developer I jumped on the Rails bandwagon too. It will probably not be something I will be using a lot in the near future, but staying informed never hurts. So of I went to a &#8230; <a href="http://blog.leenarts.net/2006/07/22/first-steps-with-ruby-on-rails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rubyonrails.org/" title="Link to Ruby on Rails website."><img id="image97" src="http://blog.leenarts.net/wp-content/uploads/2006/07/rails.png" alt="Ruby on Rails project logo" style="float: left; margin: 5px"/></a>As any self respecting software developer I jumped on the Rails bandwagon too. It will probably not be something I will be using a lot in the near future, but staying informed never hurts.</p>
<p>So of I went to a local bookstore to do some browsing and this resulted in purchasing a book called <a href="http://www.amazon.com/exec/obidos/redirect?tag=jeroenleenart-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=097669400X%2526tag=jeroenleenart-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/097669400X%25253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon">Agile Web Development with Rails: A Pragmatic Guide (Pragmatic Programmers)</a> by Thomas and Hansson. The upper left corner says &#8220;The Pragmatic Programmers&#8221;, which resulted in me feeling good about buying this book, since I loved &#8220;<a href="http://www.amazon.com/exec/obidos/redirect?tag=jeroenleenart-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=020161622X%2526tag=jeroenleenart-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/020161622X%25253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon">The Pragmatic Programmer: From Journeyman to Master</a>&#8220;.</p>
<p><a href="http://www.amazon.com/exec/obidos/redirect?tag=jeroenleenart-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=097669400X%2526tag=jeroenleenart-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/097669400X%25253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon"><img src="http://images.amazon.com/images/P/097669400X.01._SCTHUMBZZZ_.jpg" alt="Agile Web Development with Rails: A Pragmatic Guide (Pragmatic Programmers)" style="float: right; margin: 5px"/></a>The Rails book is very well written. I have not gone through it yet from cover to cover. Right now it&#8217;s the book I&#8217;m reading at home when I require some privacy. <img src='http://blog.leenarts.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I find a toilet a place of serenity and quiet contemplation. Or an excellent place to focus one&#8217;s complete attention to the contents of a book.</p>
<p>I am running a PowerBook G4 here with OSX. And as the book stated, OSX comes with Ruby pre-installed but requires some tinkering. I opted for the latest Ruby version. So I went with a OpenDarwin Ruby/RubyGems/Rails install. No problem in that area.</p>
<p><a href="http://www.amazon.com/exec/obidos/redirect?tag=jeroenleenart-20%26link_code=xm2%26camp=2025%26creative=165953%26path=http://www.amazon.com/gp/redirect.html%253fASIN=020161622X%2526tag=jeroenleenart-20%2526lcode=xm2%2526cID=2025%2526ccmID=165953%2526location=/o/ASIN/020161622X%25253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon"><img src="http://images.amazon.com/images/P/020161622X.01._SCTHUMBZZZ_.jpg" alt="The Pragmatic Programmer: From Journeyman to Master" style="float: left; margin: 5px"/></a>Next up was a database. The Rails book says MySQL is good. So I go with that, although I think an in process DB like SQLite would do just as well for me. Let&#8217;s just say it&#8217;s been a while since I did a MySQL install. Although it isn&#8217;t really necessary as far as I am aware, but I couldn&#8217;t get network connectivity to work with MySQL 5. Turned out to be really stupid. Of-course I need to give a user the right on the MySQL instance to actually connect through the network.</p>
<p>Once I got MySQL sorted the fun could begin. Right now I just about finished building the web-shop cart. See, the book uses a simple e-shop as an example. Through the course of about 8 chapters you can build a basic shopping experience. I like this  tutorial approach when taking my first steps with a new framework.</p>
<p><a href="http://www.mysql.com" title="MySQL website"><img id="image99" src="http://blog.leenarts.net/wp-content/uploads/2006/07/mysql_100x52-64.gif" alt="MySQL logo" style="float: left; margin: 5px"/></a>In the end I guess I will get a pretty decent overview of Rails. And while I do get the feeling Rails can be a huge timesaver, it does still feel awkward to me that you should do it the Rails way or preferably not with Rails at all. The whole programming by sensible default is still a bit jarring. I guess because I am more used to rocket science style over-engineered Java systems. Not the most effective use of Java in my opinion. But hey, I&#8217;m no software architect yet, so why should anyone listen to my opinion. <img src='http://blog.leenarts.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Also I can&#8217;t quite get that Ruby syntax in my fingers yet. Perhaps I should look into buying the pickaxe book too.</p>
<p>I am very curious about where Ruby on Rails will be in a few years. Although many people claim that it&#8217;s not ready for prime-time yet, that it&#8217;s still a technology too new for &#8220;enterprise implementations&#8221;. (That&#8217;s one term for your BS-bingo list.) I think that Ruby on Rails may actually be further along and actually quite capable and ready for prime-time. I guess time will tell. It is an interesting framework and takes some refreshing approaches, so even when you are not going to use it this or next year do take a peak at it. Most likely some of the concepts of Ruby on Rails will actually be useful for your regular dayjob.</p>
<p>Oh and about the book, yes it is an excellent read on Ruby on Rails if you like a tutorial style read.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/07/22/first-steps-with-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who wants Sudoku, come get some.</title>
		<link>http://blog.leenarts.net/2006/07/04/who-wants-sudoku-come-get-some/</link>
		<comments>http://blog.leenarts.net/2006/07/04/who-wants-sudoku-come-get-some/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 22:38:20 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/04/who-wants-sudoku-come-get-some/</guid>
		<description><![CDATA[Excellent support by Wayne Beaton again. It probably already was available, I just didn&#8217;t know it was. The Sudoku game Wayne has been working on is available for download. Just import this project set into your Eclipse install and you &#8230; <a href="http://blog.leenarts.net/2006/07/04/who-wants-sudoku-come-get-some/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" href="http://blog.leenarts.net/wp-content/uploads/2006/07/eclipse-sudoku.png" title="Eclipse sudoku projects"><img id="image90" src="http://blog.leenarts.net/wp-content/uploads/2006/07/eclipse-sudoku.thumbnail.png" alt="Eclipse sudoku projects" style="float: left; margin: 5px" /></a><a href="http://wbeaton.blogspot.com/2006/07/disconnect-between-model-and-view.html">Excellent support</a> by Wayne Beaton again. It probably already was available, I just didn&#8217;t know it was. The Sudoku game Wayne has been working on is available for download.</p>
<p>Just import <a href="http://www.eclipse.org/evangelism/samples/sudoku/sudoku.psf" title="Eclipse Sudoku Project Set">this project set</a> into your Eclipse install and you are ready to go. You will be asked for CVS credentials. Just enter <em>anonymous</em> as a user-name and leave the password field blank or enter your email address. </p>
<p>Now you&#8217;ve got a sweet little application to molest to your hearth&#8217;s content. Complex enough to feel real, but small enough to get into in a short time-span.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/07/04/who-wants-sudoku-come-get-some/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Callisto is final</title>
		<link>http://blog.leenarts.net/2006/07/01/85/</link>
		<comments>http://blog.leenarts.net/2006/07/01/85/#comments</comments>
		<pubDate>Sat, 01 Jul 2006 08:25:19 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.leenarts.net/2006/07/01/85/</guid>
		<description><![CDATA[Last night I installed the final release of Callisto with Eclipse 3.2 on my mac. And it works like a charm so far. Earlier release candidates were often broken on OSX. But this seems solid. Also the sheer amount of &#8230; <a href="http://blog.leenarts.net/2006/07/01/85/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night I installed the final release of Callisto with Eclipse 3.2 on my mac. And it works like a charm so far. Earlier release candidates were often broken on OSX. But this seems solid. Also the sheer amount of functionality is just overwhelming, where do I start with exploring all the goodies provided by the Callisto release plug-ins?</p>
<p><a href="http://www.eclipse.org/callisto/" style="float: right; margin: 5px"><img id="image84" src="http://blog.leenarts.net/wp-content/uploads/2006/07/largeCallistoHere.gif" alt="Callisto is here..." /></a>Compared to previous Eclipse OSX releases Eclipse seems a lot more polished now. Sure there are some gripes, like scroll-bars appearing in the description field of the new project wizard. But it is getting better and better. Guess I will be doing some <a href="http://wbeaton.blogspot.com/">Wayne Beaton</a> inspired evangelising on my current project next week. (Basically this would mean raising my hands into the air, exclaim why I think Eclipse is best, then kindly respond to all questions being asked. I won&#8217;t go swimming in a frozen lake though.)</p>
<p>I have been goofing around a bit last night, I smacked together some user interfaces with <a href="http://www.eclipse.org/vep/">VE</a>. Which is also part of the Callisto release. It seems to work ok, but still it doesn&#8217;t have the flexibility of rolling the views yourself. I&#8217;m not sure yet if I really like Visual Editor, but the rest of Callisto: Awesome! <img src='http://blog.leenarts.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/07/01/85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oh no! They&#8217;re at it again&#8230;</title>
		<link>http://blog.leenarts.net/2006/06/12/oh-no-theyre-at-it-again/</link>
		<comments>http://blog.leenarts.net/2006/06/12/oh-no-theyre-at-it-again/#comments</comments>
		<pubDate>Mon, 12 Jun 2006 21:08:00 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts-net.nl02.members.pcextreme.nl/2006/06/12/oh-no-theyre-at-it-again/</guid>
		<description><![CDATA[Now I must admit I have not ran the second beta myself. I hate beta OS-es. They&#8217;re always a big pain in the hiny. But today I came accross this blog entry. I mean, just look at it. To me &#8230; <a href="http://blog.leenarts.net/2006/06/12/oh-no-theyre-at-it-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now I must admit I have not ran the second beta myself. I hate beta OS-es. They&#8217;re always a big pain in the hiny.</p>
<p>But today I came accross this <a href="http://lifehacker.com/software/windows-vista-beta/windows-vista-beta-a-lot-like-mac-os-x-179909.php">blog entry</a>. I mean, just look at it. To me this is proof that OSX is infact better then Vista. Haha! Not to mention that eventhough Vista is a visual improvement, it&#8217;s still ugly.</p>
<p>Funny to see that first a lot of people were saying: &#8220;Ohw, all that visual stuff on a mac, who needs it. It only slows us down.&#8221;<br />
And now it&#8217;s all: &#8220;Oooh, aaaah, looky here how nice Vista is going to look.&#8221;</p>
<p>Come on ppl, get a life. Not to mention that it will take about half a decade before Vista is in common use.</p>
<p>Call me a Mac fanboy if you want. But just look at <a href="http://lifehacker.com/software/windows-vista-beta/windows-vista-beta-a-lot-like-mac-os-x-179909.php">these comparisons</a>. Are you still able to say that Vista is the next big step in OS design&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/06/12/oh-no-theyre-at-it-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running SubVersion svnserve on Mac OS X</title>
		<link>http://blog.leenarts.net/2006/06/08/running-subversion-svnserve-on-mac-os-x/</link>
		<comments>http://blog.leenarts.net/2006/06/08/running-subversion-svnserve-on-mac-os-x/#comments</comments>
		<pubDate>Thu, 08 Jun 2006 12:03:00 +0000</pubDate>
		<dc:creator>Jeroen</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://blog.leenarts-net.nl02.members.pcextreme.nl/2006/06/08/running-subversion-svnserve-on-mac-os-x/</guid>
		<description><![CDATA[In my previous entry I posted how to get SubVersion on a Mac. One of the things people start asking after knowing how to run the client, is how to run a server. Most people know that svnserve is a &#8230; <a href="http://blog.leenarts.net/2006/06/08/running-subversion-svnserve-on-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://blog.leenarts.net/2006/06/04/someone-asked-for-subversion-on-a-mac/">previous entry</a> I posted how to get SubVersion on a Mac.</p>
<p>One of the things people start asking after knowing how to run the client, is how to run a server. Most people know that svnserve is a good option and get a repository going with that. Check <a href="http://svnbook.red-bean.com/">the free online book I mentioned</a> in my previous post</a> to get a feel for how to set up a repository using <code>svnadmin</code>.</p>
<p>But now you want that pesky svnserve to launch on startup. Best candidate to handle that for you on a mac is launchd.</p>
<p>But it is a bit of an involving procedure to go though. Anyway, <a href="http://marc.baffl.co.uk/stuff.php#svnserv-plist">this is the link</a> that got me going.</p>
<p>Do read the entry at the <a href="http://marc.baffl.co.uk/stuff.php#svnserv-plist">link</a> completely. Doing so will save you lots of headaches.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leenarts.net/2006/06/08/running-subversion-svnserve-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

