<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0">

<channel>
	<title>Torsten Curdt's weblog</title>
	
	<link>http://vafer.org/blog</link>
	<description>ramblings of a creative mind</description>
	<lastBuildDate>Mon, 01 Feb 2010 02:18:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tcurdt" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="tcurdt" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><geo:lat>51.532638</geo:lat><geo:long>9.928160</geo:long><item>
		<title>The Great iPad</title>
		<link>http://vafer.org/blog/20100201031834</link>
		<comments>http://vafer.org/blog/20100201031834#comments</comments>
		<pubDate>Mon, 01 Feb 2010 02:18:34 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=915</guid>
		<description><![CDATA[So there it was the great event on January 27th in 2010. Since them many articles have been written about the new child in the Apple family of devices. I hear the praise and I hear the #fails. Yet I&#8217;ve got the feeling that many people are missing the point.

THE HARDWARE
With the iPad Apple has [...]]]></description>
			<content:encoded><![CDATA[<p>So there it was the great event on January 27th in 2010. Since them many articles have been written about the new child in the Apple family of devices. I hear the praise and I hear the #fails. Yet I&#8217;ve got the feeling that many people are missing the point.</p>
<p><a href="http://www.flickr.com/photos/tcurdt/4320317403/" title="ipad"><img src="http://farm3.static.flickr.com/2699/4320317403_c6a9d6da26_m.jpg" width="240" height="240" alt="ipad" title="The Great iPad" /></a></p>
<p><strong>THE HARDWARE</strong></p>
<p>With the iPad Apple has again shown it knows how to do hardware. What about the front side camera? What about USB or whatever else people are complaining about? Sure! They could have included them. They didn&#8217;t &#8211; maybe they will some day. This is no big deal IMO. Get over it.</p>
<p><strong>WILL PEOPLE BUY IT?</strong></p>
<p>Is there are market? Well, it is a sexy little thing. And we all know people love to buy Apple products just for that. So for some people it&#8217;s just yet another luxury gadget they need to have.</p>
<p>The big and unanswered question I have: Is it to complete or to replace what we have right now? As excited as I am about seeing the Star Trek touch tablets becoming a reality&#8230; Will a student write his thesis on this device? Will a manager do his presentation on it? Will a designer do an illustration on this? Will a developer write code on this? I guess the answer will most likely be &#8220;no&#8221;. It looks like it is great for consuming content. But are we supposed to have a MacBook an iPad and an iPhone for the other tasks?</p>
<p>And how practical will it really be? I cannot yet see myself reading a book on a normal computer screen (that&#8217;s why e-ink was invented). But we will see &#8211; time will tell. The iPad certainly is something you can more easily hand out to the average Joe without getting support calls. As we have many of those Joe&#8217;s around this could actually make the iPad a hit.</p>
<p><strong>THE BIG CHANGE</strong></p>
<p>The iPad is quite a change in how you interact with your computer. But nether the less &#8211; after the iPhone this step is just evolutionary. What is so much more surprising to me is how many (smart) people scream &#8220;<em>Hurray!</em>&#8221; when Apple is taking yet another step towards the <a href="http://www.youtube.com/watch?v=U0FAaah8jgY">trusted computing</a> age.</p>
<p>I applaud the changes for making multi-touch technologies more prominent in areas beyond the phones. I applaud Apple for the hardware. But I am certainly not a fan of the App Store concept as it is of today.</p>
<p>Not being able to install what I want on my own phone was already a little big of a stretch. Not being able install what I consider appropriate on my own computer is not a vision I am looking forward to. Neither were many people when Microsoft was pushing for such a thing in &#8230;was it in 2000? Maybe times are just different. Maybe more people are OK to just give up freedom for control and security these days. (Sad times!) But certainly this also has a strong business impact.</p>
<p>How can some people chose to ignore this? Just because this is accepted practice for Playstation and friends this does not make it a future worth looking forward to. I agree computers should become more intuitive &#8211; more easy to use. In my book this does not necessarily need to go hand in hand with having one gatekeeper to rule us all.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20040616105308' rel='bookmark' title='Permanent Link: Apple iPod'>Apple iPod</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=dm_L3LfiPIg:hEpYF4wCl74:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=dm_L3LfiPIg:hEpYF4wCl74:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/dm_L3LfiPIg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20100201031834/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iProxy – poor man’s tethering</title>
		<link>http://vafer.org/blog/20100120001443</link>
		<comments>http://vafer.org/blog/20100120001443#comments</comments>
		<pubDate>Tue, 19 Jan 2010 23:14:43 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[tethering]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=906</guid>
		<description><![CDATA[The iPhone &#8211; the always online device. What would be more natural than using it on the train as internet connection for your laptop!? Unfortunately that&#8217;s not really an option if you

don&#8217;t want to jailbreak your phone
aren&#8217;t using one of the &#8220;official&#8221; carriers
don&#8217;t want to pay extra
want to use iPhone OS 3.1 and up

The only [...]]]></description>
			<content:encoded><![CDATA[<p>The iPhone &#8211; the always online device. What would be more natural than using it on the train as internet connection for your laptop!? Unfortunately that&#8217;s not really an option if you</p>
<ul>
<li>don&#8217;t want to jailbreak your phone</li>
<li>aren&#8217;t using one of the &#8220;official&#8221; carriers</li>
<li>don&#8217;t want to pay extra</li>
<li>want to use iPhone OS 3.1 and up</li>
</ul>
<p>The only viable solution: a proxy!</p>
<p>That&#8217;s exactly what the &#8220;Netshare&#8221; application was. But it has already been banned from the App Store for a long time. So I thought &#8211; I just write my own. A few hours later I was able to reach the internet through my iPhone via the &#8220;iProxy&#8221; app.</p>
<p>iProxy is not as convenient as the real tethering. The internet connection is a few clicks more away. But if you&#8217;ve got a developer certificate (or have a friend that has one) it certainly is cheaper than handing out the money to your favorite telco. Especially if you only need this connection only every now and then.</p>
<p>Now while I cannot make this app available to all the iPhone user out there through Apple, I do make it available as Open Source as of today. iProxy is released under the Apache license and freely <a href="http://wiki.github.com/tcurdt/iProxy/">available on github</a>.</p>
<p>Enjoy!</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20040413023558' rel='bookmark' title='Permanent Link: Finally in Melbourne'>Finally in Melbourne</a></li><li><a href='http://vafer.org/blog/20060202123659' rel='bookmark' title='Permanent Link: Debugging HTTPS via Proxy'>Debugging HTTPS via Proxy</a></li><li><a href='http://vafer.org/blog/20061010073725' rel='bookmark' title='Permanent Link: Client cert authentication with java'>Client cert authentication with java</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=TOsUBH9Mvuw:zUsBymcBGCw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=TOsUBH9Mvuw:zUsBymcBGCw:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/TOsUBH9Mvuw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20100120001443/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Wordpress almost killed this Blog</title>
		<link>http://vafer.org/blog/20100119014727</link>
		<comments>http://vafer.org/blog/20100119014727#comments</comments>
		<pubDate>Tue, 19 Jan 2010 00:47:27 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=902</guid>
		<description><![CDATA[I know there are many fans of wordpress out there but for me it has become so annoying to deal with it that it&#8217;s at least one of the reason why this blog has been stale now for more than 6 months. You may call it a lazy excuse but I see my plain text [...]]]></description>
			<content:encoded><![CDATA[<p>I know there are many fans of wordpress out there but for me it has become so annoying to deal with it that it&#8217;s at least one of the reason why this blog has been stale now for more than 6 months. You may call it a lazy excuse but I see my plain text posts piling up on my machine. Whenever I turn to wordpress the bug and update madness lets me feel the pure pain and I just want to close the browser. Running it on a virtual server not exactly fun either. It has become quite a memory hog over time. So instead I use twitter for the quick posts most of the time.</p>
<p>The blog system will change in the not so far out future on this site. The move to the <a href="http://disqus.com/">disqus</a> comments was a first step. But I no longer want to hold up until it is in place. </p>
<p>So for those still reading&#8230;. stay tuned and thanks for listening.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20071111130552' rel='bookmark' title='Permanent Link: Upgrading Wordpress 2.0.x to 2.3.x'>Upgrading Wordpress 2.0.x to 2.3.x</a></li><li><a href='http://vafer.org/blog/20060106172520' rel='bookmark' title='Permanent Link: New Blog'>New Blog</a></li><li><a href='http://vafer.org/blog/20060608013355' rel='bookmark' title='Permanent Link: Blog Content Migration'>Blog Content Migration</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=X6i0tURdaU0:dr8xhW2fFp8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=X6i0tURdaU0:dr8xhW2fFp8:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/X6i0tURdaU0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20100119014727/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Canon Lenses for Sale</title>
		<link>http://vafer.org/blog/20090519011647</link>
		<comments>http://vafer.org/blog/20090519011647#comments</comments>
		<pubDate>Tue, 19 May 2009 00:16:47 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[sale]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=881</guid>
		<description><![CDATA[Since I am a Nikon shooter now I&#8217;ve got some great Canon lenses for sale &#8230;in perfect condition &#8230;anyone?

Canon 50mm/1.4 (270 EUR)
Canon 24-70mm/2.8L (850 EUR)
Canon 100mm/2.8 (390 EUR)
Canon 70-300/4-5.6 IS

If you are in San Francisco, Berlin or Frankfurt pick up might be possible. Contact me at tcurdt@(this.domain) to work out a final price if you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://vafer.org/blog/20090519010924">Since I am a Nikon shooter now</a> I&#8217;ve got some great Canon lenses for sale &#8230;in perfect condition &#8230;anyone?</p>
<ul>
<li>Canon 50mm/1.4 (270 EUR)</li>
<li>Canon 24-70mm/2.8L (850 EUR)</li>
<li>Canon 100mm/2.8 (390 EUR)</li>
<li><del datetime="2009-06-14T07:32:55+00:00">Canon 70-300/4-5.6 IS</del></li>
</ul>
<p>If you are in <del datetime="2009-07-03T12:24:38+00:00">San Francisco,</del> Berlin or Frankfurt pick up might be possible. Contact me at tcurdt@(this.domain) to work out a final price if you are interested.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20061010041938' rel='bookmark' title='Permanent Link: Finally &#8211; it&#8217;s the Canon 30D'>Finally &#8211; it&#8217;s the Canon 30D</a></li><li><a href='http://vafer.org/blog/20060818004908' rel='bookmark' title='Permanent Link: Nikon vs Canon &#8211; the quest for the perfect SLR'>Nikon vs Canon &#8211; the quest for the perfect SLR</a></li><li><a href='http://vafer.org/blog/20071028100918' rel='bookmark' title='Permanent Link: Canon EF 100mm/2.8 Macro'>Canon EF 100mm/2.8 Macro</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=Ym4xcNbEo_8:T0qZzwafcsc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=Ym4xcNbEo_8:T0qZzwafcsc:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/Ym4xcNbEo_8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090519011647/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Switching to Nikon</title>
		<link>http://vafer.org/blog/20090519010924</link>
		<comments>http://vafer.org/blog/20090519010924#comments</comments>
		<pubDate>Tue, 19 May 2009 00:09:24 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[nikon]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=877</guid>
		<description><![CDATA[For almost a year now I was always going back and forth on the idea of switching (back) from Canon to Nikon. While I was quite happy with my glass, I became more and more unhappy with my 30D. I even noticed to be holding back investing in further gear. The 30D still is a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/tcurdt/3544389602/" title="D700 vs 5Dmk2 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3401/3544389602_960d70dd3e_m.jpg" width="240" height="160" alt="D700 vs 5Dmk2" title="Switching to Nikon" /></a>For almost a year now I was always going back and forth on the idea of switching (back) from Canon to Nikon. While I was quite happy with my glass, I became more and more unhappy with my 30D. I even noticed to be holding back investing in further gear. The 30D still is a great camera &#8211; but I guess it was a compromise from day one. <a href="http://vafer.org/blog/20060818004908">I just didn&#8217;t dare</a> to shell out the money for the 5D as an amateur &#8211; for a few pictures now and then. But at least <a href="http://vafer.org/blog/20061010041938">Canon had a full-frame</a> line-up and good glass at a lower price tag. Future proof one might think.</p>
<p>Somewhere in the last 2-3 months I decided that it&#8217;s time to finally byte the bullet and go full frame. After all photography has become a solid hobby for me (again). Something that I don&#8217;t want to miss anymore. But what were the options? Buy and (old) 5D? Go with the latest 5DmkII? Or really have a second look at the Nikon D700 that made the jealous the day it came out? Switching systems &#8211; how silly and way too expensive. Right?</p>
<h3>The D700 it is</h3>
<p>It was really a tough decision. I soon ruled out the 5D. Awesome camera but it&#8217;s more than 3 years old now. And it still wasn&#8217;t a steal on ebay. And who knows how long the used one would last. So I was left with the 5DmkII and the D700. But checking them out in the shop just didn&#8217;t cut it. So thanks to the 2 week return policy I ordered them both from amazon.<br />
Just after a few hours of playing, handling and shooting. I found the clear winner &#8211; for me at least. In the analog days I was shooting Nikon. Now I felt it was time to go back to my roots. The D700 it was.</p>
<h3>What about the 5DmkII?</h3>
<p><em>How can that be? The 5D comes with a dazzling resolution of 21MP and even HD video!? People go nuts about it!</em></p>
<p>The 21MP might be nice &#8211; sometimes. But for the most place it comes at a high price. Be it storage or post processing. Certainly it gives you more room for cropping and bigger prints. But seriously &#8211; I never have (and will not anytime soon) hit the limit even with a 12MP camera.</p>
<p>Then there is the HD movie support. I am sure it&#8217;s fun if you are serious about movies. The <a href="http://vincentlaforet.com/">movie from Vincent</a> is great but you should also <a href="http://blog.vincentlaforet.com/2008/09/23/behind-the-scenes-video/">watch the making of</a>. Just to realize that the video feature is nothing for a quick video here and there. And frankly speaking it feels just weird in a DSLR. I guess I would rather go for a &#8220;real&#8221; camera if I had the need for it.</p>
<p>So all I am saying is: while these two are killer features for some people, they aren&#8217;t for me. Be it the AF system, the solid body, the much better view finder or just the general feeling when shooting. These are the things that convinced me that it&#8217;s time to switch (back) to Nikon. For me the D700 feels like a much bigger steps upwards from the 30D than the 5DmkII.</p>
<h3>Always stick with the glass! Right?</h3>
<p>I felt really bad about losing money when I now will be selling my Canon gear. Plus I really loved the glass I have. But Nikon has excellent lenses too. And after all&#8230; while <a href="http://duncandavidson.com/">Duncan</a> might be a pro and I am just an amateur I think <a href="http://tacksharp.tv/forums/2009/02/switching-or-not.html">his response</a> captures it very well.</p>
<p>It certainly isn&#8217;t the camera that makes a good photographer. And we all know lenses are what you should stick with. Camera bodies come and go. But does that mean we are married with brand X for life? In the end we are also doing this for the fun of it. What are a couple of hundred bucks compared to the additional fun you have with your gear. Certainly that is something everyone has to work out on his own. But I made up my mind and feel quite happy with with it now.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20060818004908' rel='bookmark' title='Permanent Link: Nikon vs Canon &#8211; the quest for the perfect SLR'>Nikon vs Canon &#8211; the quest for the perfect SLR</a></li><li><a href='http://vafer.org/blog/20061010041938' rel='bookmark' title='Permanent Link: Finally &#8211; it&#8217;s the Canon 30D'>Finally &#8211; it&#8217;s the Canon 30D</a></li><li><a href='http://vafer.org/blog/20090519011647' rel='bookmark' title='Permanent Link: Canon Lenses for Sale'>Canon Lenses for Sale</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=mVMZvw4Jt0Q:QXlftFWZIx8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=mVMZvw4Jt0Q:QXlftFWZIx8:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/mVMZvw4Jt0Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090519010924/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Spy Lens Review</title>
		<link>http://vafer.org/blog/20090402201227</link>
		<comments>http://vafer.org/blog/20090402201227#comments</comments>
		<pubDate>Thu, 02 Apr 2009 19:12:27 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=865</guid>
		<description><![CDATA[In January when my Spy Lens finally arrived I promised a review. I figured I need a better opportunity to really try it out extensively. This opportunity came up with my recent trip to Marrakech. So here it goes&#8230;
The Spy Lens is a really intriguing idea. Many people behave very differently with a camera pointed [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/tcurdt/3394334225/" title="IMG_0668 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3561/3394334225_ac5a453acd_m.jpg" width="160" height="240" alt="IMG_0668" title="Spy Lens Review" /></a>In January when my <a href="http://photojojo.com/store/awesomeness/candid-photography-spy-lens">Spy Lens</a> finally arrived <a href="http://twitter.com/tcurdt">I promised a review</a>. I figured I need a better opportunity to really try it out extensively. This opportunity came up with my recent <a href="http://vafer.org/blog/20090329191737">trip to Marrakech</a>. So here it goes&#8230;</p>
<p>The <a href="http://photojojo.com/store/awesomeness/candid-photography-spy-lens">Spy Lens</a> is a really intriguing idea. Many people behave very differently with a camera pointed at them. That is &#8211; when they <em>realize</em> a camera is pointed at them. So quite often you get the most authentic pictures when the people are not aware. There a few things that help taking such pictures: being lucky, being quick, a long lens and&#8230; the Spy Lens. This lens comes with a mirror inside and lets you shoot around corners in an angle of 90 degrees. As you are not pointing a big lens directly at the person, it should be easy to catch the pristine and authentic moments we are after.</p>
<p>While the build quality feels solid you need to be aware that the lens is only available at a 58mm diameter. Now my standard zoom lens has a diameter of 77mm. While you can of course use a converter it heavily limits your view in the wide angle. Plus it looks quite strange. Unfortunately &#8220;strange&#8221; gets  people curious &#8230;and aware. Which is exactly what you try to avoid with this lens. Maybe less of a problem if you have the right lens combination. Another problem is the dust though. The mirror is a dust magnet! So you better be equipped to clean up that mess. And because you have no lens cap you have to clean it a lot. The handling you have to get used to. Rotating the mirror and finding the right frame is really not that easy. Especially if there is movement or if there is little time.</p>
<p>For me the Spy Lens failed the reality test. While I am sure you can have fun with it, it is really nothing more than a toy. But frankly speaking I did not expect anything more. I bought it for fun. And I am sure you can have fun with it. Just don&#8217;t get your hopes up to high. It&#8217;s not the holy grail for authentic shots. But it is a fun gadget.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20061207083056' rel='bookmark' title='Permanent Link: Standard zooms'>Standard zooms</a></li><li><a href='http://vafer.org/blog/20071028100918' rel='bookmark' title='Permanent Link: Canon EF 100mm/2.8 Macro'>Canon EF 100mm/2.8 Macro</a></li><li><a href='http://vafer.org/blog/20030925034130' rel='bookmark' title='Permanent Link: Now you better smile!'>Now you better smile!</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=XlaIme_WTnI:St5jiYEa-qI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=XlaIme_WTnI:St5jiYEa-qI:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/XlaIme_WTnI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090402201227/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Marrakech, City of Spice</title>
		<link>http://vafer.org/blog/20090329191737</link>
		<comments>http://vafer.org/blog/20090329191737#comments</comments>
		<pubDate>Sun, 29 Mar 2009 18:17:37 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=842</guid>
		<description><![CDATA[Last weekend I got back from a trip to Marrakech. Unfortunately these days you have to do some traveling when you want some sunshine for your birthday in March. But both Ryanair and Easyjet provide you with good deals for a trip to the doorstep of Africa. And fair enough we arrived just after the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/tcurdt/3380728408/" title="IMG_0234 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3608/3380728408_1040e011a9_m.jpg" width="240" height="160" alt="IMG_0234" title="Marrakech, City of Spice" /></a>Last weekend I got back from a trip to Marrakech. Unfortunately these days you have to do some traveling when you want some sunshine for your birthday in March. But both Ryanair and Easyjet provide you with good deals for a trip to the doorstep of Africa. And fair enough we arrived just after the big rain. For the whole 9 days we had beautiful weather only interrupted by two thunderstorms. As it turns out March/April seems to be quite a good time to visit. While it still gets a little chilly at night you are also not melting away at about 27-30 degrees during the day. </p>
<p><a href="http://www.flickr.com/photos/tcurdt/3379893329/" title="IMG_0618 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3594/3379893329_1d8e4ec2a4_m.jpg" width="160" height="240" alt="IMG_0618" class="left" title="Marrakech, City of Spice" /></a>Picking a place to stay in Marrakech is hard. But just because there are <a href="http://www.ilove-marrakesh.com/index_en.html">plenty</a> of <a href="http://www.31best-riad-marrakesh.com/">beautiful options</a>. In order to get a good feeling for this bustling city you want to make sure to stay in a Riad in the old medina &#8211; the old town center. Maybe spoiled from our <a href="http://vafer.org/blog/20080921212200">previous trips</a> we expected accommodation to be a bit cheaper though. Riads start at around 70 EUR for a double &#8211; off season. 100 EUR is nothing special and of course there is no upper limit. We were quite happy with our choice &#8211; the <a href="http://www.dardallah.com/">Riad Dar Dallah</a>. It was conveniently located, not far from the <em>Jemma El Fna</em> &#8211; the touristy center of Marrakech. Central but still tucked away in the labyrinth of small pristine streets providing privacy and a quiet refuge of the busy city. Also a reason why we were very happy we got picked up at the airport. We would have never found the way ourselves. Patrick, the french owner and the local staff was very nice and forthcoming. The Riad spotless. They even coped with our french &#8211; or rather the lack of it. One thing to improve would be to accept credit cards though. The whole booking process seems a little strange over there anyway. It seems to be normal to make a deposit. When we first considered a different Riad they asked for 50% deposit up front. <a href="http://www.flickr.com/photos/tcurdt/3379898443/" title="IMG_0228 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3560/3379898443_ed6f7326ef_m.jpg" width="240" height="160" alt="IMG_0228" title="Marrakech, City of Spice" /></a>Plus a service and handling charge (WTF!). This felt all so wrong that we searched <a href="http://www.tripadvisor.com/Hotels-g293734-Marrakech-Hotels.html">Tripadvisor</a> which turned out to be a good resource to check. After reading up on our first choice we picked <a href="http://www.dardallah.com/">Dar Dallah</a> and never looked back.</p>
<p>While Morocco with its french influences is supposed to have great food I have to admit we weren&#8217;t that excited. While we stayed away from snail stew (uuurgh!) the Tanjias or the different couscous dishes were nice &#8211; but not our first choice of cuisine. Eating at the food stalls on <em>Jemma El Fna</em> is an experience. Especially when you see them pour unfinished dishes back into the pot. But that said &#8211; the food was really good! And not every booth does it like that. So be no sissy. A common dinner recommendation for Marrakech is the <a href="http://www.riadyacout.com/">Yacout</a>. But according to locals it&#8217;s quite overrated &#8211; and overpriced. So instead we went with two are other recommendations. The <a href="http://www.foundouk.com/">Foundouk</a> and the Kosybar. The food was great at both places but the Kosybar needs to work on its service.</p>
<p><a href="http://www.flickr.com/photos/tcurdt/3380743388/" title="IMG_0387 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3438/3380743388_ec63a9650c_m.jpg" width="240" height="160" alt="IMG_0387" class="left" title="Marrakech, City of Spice" /></a>Sleep, eat &#8211; but what&#8217;s to see in Marrakech? Of course there is no way around <em>Jemaa El Fna</em> the busy and touristy market square that everyone is trying to give you directions to &#8230;or the souks with all the people trying to sell you lamps, shoes and spices. Preferably all that and more. For &#8220;a good price, my friend&#8221;. We enjoyed the smaller spice square. Just hang out in the nice <a href="http://www.cafedesepices.net/">Cafe de Espices</a> and watch the hustle and bustle with a nice glass of <em>Tea a la Mente</em>. <em>Medersa Ben Youssef</em> is a pass while the <em>Museum of Marrakech</em> is not bad if you have some time to spare. <a href="http://www.flickr.com/photos/tcurdt/3379937809/" title="IMG_0486 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3555/3379937809_4a36d9aa1d_m.jpg" width="160" height="240" alt="IMG_0486" title="Marrakech, City of Spice" /></a>While also quite touristy the garden <em>Majorelle</em> is definitely worth a trip. (Just grab a taxi &#8211; should not be more than the equivalent of 2 EUR to get there) Especially in the afternoon the light is great and further illuminates the already saturated colors. A visit to a <a href="http://en.wikipedia.org/wiki/Turkish_bath">hammam</a> is a must as well. We relaxed a few hours at <a href="http://www.lesbainsdemarrakech.com/">Les Bains</a> which was just perfect and so worth the money! Of course there is also the palace, a dozen mosques and many places we probably have missed.<br />
This is probably still not much compared to many other cities &#8230;but still there is plenty to see: that&#8217;s Marrakech itself. Just wandering through the labyrinth of streets, dodging all the mopeds and bicycles in the small streets, smelling the leather, the spices and the fresh mint (when not covered by the fumes of the mopeds). All these different facets was just worth the trip.</p>
<p><a href="http://www.flickr.com/photos/tcurdt/3380769102/" title="IMG_0554 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3619/3380769102_4ea3f36ebb_m.jpg" width="240" height="180" alt="IMG_0554" class="left" title="Marrakech, City of Spice" /></a>That said in retrospect we probably would have rather spent only 4 days in Marrakech and traveled around a bit more. We did a day trip to <a href="http://en.wikipedia.org/wiki/Essaouira">Essaouira</a> which is a much more relaxed small town at the ocean. (We took a driver but there are busses going as well &#8211; I bet that&#8217;s cheaper) A nice escape from the city life. During the trip I realize that the country side was much richer in plants and green than I ever imagined. Next up there are also the Atlas moutains close by. We only barely got a peak from the distance &#8211; once. Probably the city haze is to blame. But you can even go skiing there! I personally would have loved to take a trip into the desert and stay there over night. So it seems there is quite a few things to do in Morocco. There is more than just Marrakech.</p>
<p><a href="http://www.flickr.com/photos/tcurdt/3380721808/" title="IMG_0461 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3429/3380721808_c0bfc756fe_m.jpg" width="240" height="160" alt="IMG_0461" title="Marrakech, City of Spice" /></a>A note to the photographers: It&#8217;s picturesque but be aware that for some reason people have a sixth sense when there is a camera pointed at them. I have never had so many people tell me verbally or gestically &#8220;No pictures!&#8221; ever before. Either that or you are expected to pay for taking the picture. Talking about that: I deliberately refused to take any pictures of snake charmers, the monkeys on a leash or all the turtles in cages. While I am no animal rights activist this all felt so wrong I didn&#8217;t want to support or encourage this.</p>
<p>Marrakech is a great place to visit. Just a few hours from Europe. Perfect for an extended weekend. Don&#8217;t miss out on it! To get you into the mood check out my <a href="http://www.flickr.com/photos/tcurdt/sets/72157615733944653/">photo set</a> in <a href="http://www.flickr.com/photos/tcurdt/collections/72157603449351327/">my travel section on flickr</a>.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20070423003959' rel='bookmark' title='Permanent Link: Paris in one weekend'>Paris in one weekend</a></li><li><a href='http://vafer.org/blog/20070716012649' rel='bookmark' title='Permanent Link: Photo in Melbourne City Guide'>Photo in Melbourne City Guide</a></li><li><a href='http://vafer.org/blog/20060801000640' rel='bookmark' title='Permanent Link: Leaving ManageSoft'>Leaving ManageSoft</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=wO4QWe3hMA8:sxbTp0kRVsU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=wO4QWe3hMA8:sxbTp0kRVsU:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/wO4QWe3hMA8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090329191737/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Back from the Ranch</title>
		<link>http://vafer.org/blog/20090302223737</link>
		<comments>http://vafer.org/blog/20090302223737#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:37:37 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=815</guid>
		<description><![CDATA[Last week I finally had the opportunity to attend one of the classes at the Big Nerd Ranch. I cannot say I&#8217;ve seen many cows during the week, but Mark Dalrymple certainly led the herd safely through some of the valleys of advanced Mac OS X. No big surprise, he is the author of Advanced [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/tcurdt/3314668574/" title="IMG_9925 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3653/3314668574_3c6aa88876_m.jpg" width="240" height="160" alt="IMG_9925" title="Back from the Ranch" /></a>Last week I finally had the opportunity to attend one of the classes at the Big Nerd Ranch. I cannot say I&#8217;ve seen many cows during the week, but <a href="http://borkwarellc.wordpress.com/">Mark Dalrymple</a> certainly led the herd safely through some of the valleys of <a href="http://bignerdranch.com/classes/advanced_mac_os_x.shtml">advanced Mac OS X</a>. No big surprise, he is the author of <em><a href="http://www.amazon.com/Advanced-Mac-Programming-Core-Unix/dp/0974078514/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1236200635&#038;sr=8-1">Advanced Mac Programming</a></em> and part of the team responsible for the <a href="http://www.google.com/mac/">Mac products at Google</a>. He is one of the authors of <a href="http://code.google.com/p/update-engine/">Update Engine</a> and also contributed to e.g. <a href="http://earth.google.com/">Google Earth</a>.</p>
<p>Big Nerd Ranch provides classes (or bootcamps) as a full featured experience. You get picked up at the airport. And then have a full week of getting pampered. While I cannot say anything about the US location, at least the european &#8220;ranch&#8221; makes up for an only nice hotel with a spectacular location. You live and learn in an ancient monastery for a week. Breakfast &#8211; then class at 9am. A two-course meal for lunch &#8211; then class. A walk to get some fresh air &#8211; then cookies. Some learning and finally the 3-course meal for dinner. The food was exceptional. We ended up calling the class <em>Foodcamp</em>. A challenge during that week was to actually stop eating.</p>
<p><a href="http://www.flickr.com/photos/tcurdt/3308676279/" title="IMG_9874 by Torsten Curdt, on Flickr"><img src="http://farm4.static.flickr.com/3624/3308676279_8ae84248ed_m.jpg" width="240" height="160" alt="IMG_9874" class="left" title="Back from the Ranch" /></a>The monastery itself is located a little remote<a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=Kloster+Eberbach,+Germany&#038;sll=50.042809,8.044395&#038;sspn=0.123473,0.267792&#038;ie=UTF8&#038;ll=50.041266,8.050232&#038;spn=0.987819,2.142334&#038;z=9&#038;iwloc=addr"> near Wiesbaden and the river Rhein. Not too far from Frankfurt</a>. The place should look familiar to anyone who has ever watched the movie <em><a href="http://www.imdb.com/title/tt0091605/">The Name of the Rose</a></em>. <br/> <br/> But not just food and location was great. Mark also did a great job teaching us about kqueue, dtrace performance tuning and so much more. I found it especially useful to get some hands on gdb debugging and being able to ask some questions to a pro with immediate feedback. (Stay tuned for some upcoming blog posts on this matter.) But even the exchange between the students was very interesting and useful. This group was exceptional small with only 5 students this time. Usually you can expect a bit more &#8211; up to 15 people in a class. Especially with the popular Cocoa and iPhone bootcamps. Which is still more than fair. The Big Nerds Ranch has probably some of the best known instructors. This makes me almost feel honored I was given the chance to even present on Friday a quick introduction to <a href="http://git-scm.com/">git</a> and <a href="https://github.com/">github</a>. </p>
<p>As a disclaimer: I was the official Big Nerd Ranch representative for the week. But this post is not sponsored by any means. I can wholeheartedly recommend the Big Nerd Ranch and while the costs might look high at first &#8211; you should not forget what you get in return.</p>
<p>Some more impressions are <a href="http://flickr.com/photos/tcurdt/sets/72157614422338410/">available on flickr</a>.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20060908094521' rel='bookmark' title='Permanent Link: Rainy Google Summer of Code'>Rainy Google Summer of Code</a></li><li><a href='http://vafer.org/blog/20060530231541' rel='bookmark' title='Permanent Link: Google Summer of Code 2006'>Google Summer of Code 2006</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tcurdt?a=r8CSpUm0yCs:MxTsBFSMB1U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/tcurdt?i=r8CSpUm0yCs:MxTsBFSMB1U:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/r8CSpUm0yCs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090302223737/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full-text search with Cocoa</title>
		<link>http://vafer.org/blog/20090107014544</link>
		<comments>http://vafer.org/blog/20090107014544#comments</comments>
		<pubDate>Wed, 07 Jan 2009 00:45:44 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[lucene]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=774</guid>
		<description><![CDATA[When in java land the answer to searching is usually Lucene. When building a Mac OSX or iPhone application unfortunately the answer is not that simple.
Recently I had the need to build a search index of some data for an iPhone project and was a little surprised about the lack of options. Again my first [...]]]></description>
			<content:encoded><![CDATA[<p>When in java land the answer to searching is usually <a href="http://lucene.apache.org/">Lucene</a>. When building a Mac OSX or iPhone application unfortunately the answer is not that simple.</p>
<p>Recently I had the need to build a search index of some data for an iPhone project and was a little surprised about the lack of options. Again my first thought was Lucene &#8211; more specifically <a href="http://incubator.apache.org/lucene4c/">the C port of it</a>. But unfortunately it was abandoned somewhere along the way. <a href="http://lucene.apache.org/lucy/">A new try</a> has not even reached the alpha phase. So what to do? Port the Lucene java code to Objective-C? That sounded like a bit out of scope for the iPhone project. I found two options.</p>
<p><strong>LuceneKit</strong></p>
<p>Good <a href="http://svn.gna.org/svn/etoile/trunk/Etoile/Frameworks/LuceneKit/">someone else</a> already ported Lucene 2.x to Objective-C &#8211; for GNUstep though. But with only little work I got it working for both Mac OSX and the iPhone. I&#8217;ve forked <a href="http://svn.gna.org/svn/etoile/trunk/Etoile/Frameworks/LuceneKit/">the official svn repository</a> via git-svn, applied my changes and added some examples for Mac OSX and iPhone. It&#8217;s available on <a href="http://github.com/tcurdt/lucenekit/tree/master">github</a>. Here is how you use it.</p>
<pre><code>
LCFSDirectory *rd = [[LCFSDirectory alloc] initWithPath: @"/path/to/index" create: YES];

LCSimpleAnalyzer *analyzer = [[LCSimpleAnalyzer alloc] init];
LCIndexWriter *writer = [[LCIndexWriter alloc] initWithDirectory: rd
                                                       analyzer: analyzer
                                                         create: YES];

while(..) {
    NSString *content = "..."

    LCDocument *doc = [[LCDocument alloc] init];

    LCField *f1 = [[LCField alloc] initWithName: FIELD_CONTENT
                                         string: content
                                          store: LCStore_NO
                                          index: LCIndex_Tokenized];                                         

    LCField *f2 = [[LCField alloc] initWithName: FIELD_ID
                                         string: @"the id"
                                          store: LCStore_YES
                                          index: LCIndex_NO];
    [doc addField: f1];
    [f1 release];

    [doc addField: f2];
    [f2 release];

    [writer addDocument: doc];
    [doc release];
}

[writer close];
[writer release];
[analyzer release];
</code></pre>
<p>The above source code is an example on how to create the index. Of course that&#8217;s something you should not be doing at runtime (if possible). Then all you need to do in your application is to open the index in read-only mode.</p>
<pre><code>
LCFSDirectory *rd = [[LCFSDirectory alloc] initWithPath: @"/path/to/index" create: NO];
</code></pre>
<p>And you are ready to do some searching.</p>
<pre><code>
LCTerm *t = [[LCTerm alloc] initWithField: FIELD_CONTENT text: searchText];
LCTermQuery *tq = [[LCTermQuery alloc] initWithTerm: t];
LCHits *hits = [searcher search: tq];

LCHitIterator *iterator = [hits iterator];
while([iterator hasNext]) {
    LCHit *hit = [iterator next];

    NSString *id = [hit stringForField: FIELD_ID];
    NSLog(@"%@ -> %@", hit, id);
}
int results = [hits count];
</code></pre>
<p>Unfortunately the Objective-C port is still quite alpha. I ended up having some problems when indexing bigger chunks of data. It doesn&#8217;t look like it&#8217;s a really big thing to fix but I didn&#8217;t have the time to look into it.</p>
<p><strong>sqlite</strong></p>
<p>So what about using <a href="http://sqlite.org">sqlite</a>? While it does provide full-text searching the version on the iPhone does not have the feature compiled in. Bummer! But no problem &#8211; you can just use your own version of sqlite and you are good to go. I found the easiest way to do this is to <a href="http://www.sqlite.org/download.html">download</a> the <a href="http://www.sqlite.org/amalgamation.html">amalgamation source</a> and add it directly to the Xcode project. It&#8217;s really just one large .c file. To enable full-text search all you need to do is to add a define to the head of the file.</p>
<pre><code>
#define SQLITE_ENABLE_FTS3
</code></pre>
<p>While you are now ready to go on the iPhone you still need to build the db itself. For that you also need a sqlite on Mac OSX that supports the virtual table syntax. Again just use the amalgamation source and build it with</p>
<pre>
CFLAGS="-DSQLITE_ENABLE_FTS3=1" ./configure
make install
</pre>
<p>In order to run the new sqlite you need to set the DYLD_LIBRARY_PATH to point to the folder that has the shared libraries (the libsqlite3.dylib file)</p>
<pre>
export DYLD_LIBRARY_PATH=/path/to/dylib:$DYLD_LIBRARY_PATH
</pre>
<p>Now you create your SQL that creates and fills the database for you. Sqlite has a special table syntax for full-search indexes.</p>
<pre>
CREATE VIRTUAL TABLE content_search using FTS3(id,content);
INSERT INTO content_search VALUES ('someid', 'content without stopwords');
</pre>
<p>For better performance and efficiency you should remove stopwords first. </p>
<pre>
sqlite3 content.db < content.sql
</pre>
<p>So once you have the database files make sure it's included in your project's bundle. That's where you will open the database from</p>
<pre><code>
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"content" ofType:@"db"];
</code></pre>
<p>Then on application launch you prepare the statements</p>
<pre><code>
sqlite3 *database;
sqlite3_stmt *statement;

if (sqlite3_open([filePath UTF8String], &#038;database) == SQLITE_OK) {

    const char *sql = "select id, snippet(content, '[', ']', '...' ) as extract from content_search where content match ?";

    if (sqlite3_prepare_v2(database, sql, -1, &#038;statement, NULL) != SQLITE_OK) {
        NSLog(@"failed to prepare statement");
    }
}
</code></pre>
<p>that you can then use to search inside the content and step through the result set.</p>
<pre><code>
NSString *searchText = "...";

sqlite3_bind_text(statement, 1, [searchText UTF8String], -1, SQLITE_TRANSIENT);

int success = sqlite3_step(statement);

if (success == SQLITE_ROW) {
    char *str = (char *)sqlite3_column_text(statement, 0);
    NSLog(@"found id '%s'", str);

    // step for more results
} else {
    NSLog(@"not found");
}

sqlite3_reset(statement);
</code></pre>
<p>So as a final word: I was really impressed by sqlite. But the full-text search engine is quite limited. If you need some more flexibility (like a different stemmer or search ranking) LuceneKit might be the way to go. I bet the fixes are not that hard. And it would be great to see the code maybe find it's way "back" to the <a href="http://lucene.apache.org/">Lucene</a> project. At least it is already released under Apache License 2.0.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20080604120118' rel='bookmark' title='Permanent Link: Sending emails from Cocoa'>Sending emails from Cocoa</a></li><li><a href='http://vafer.org/blog/20090104101004' rel='bookmark' title='Permanent Link: More recent Macports'>More recent Macports</a></li><li><a href='http://vafer.org/blog/20081128082605' rel='bookmark' title='Permanent Link: Memory on the iPhone'>Memory on the iPhone</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/tcurdt?a=blsg4EaZ"><img src="http://feeds.feedburner.com/~f/tcurdt?i=blsg4EaZ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/rWh7I1SVQHw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090107014544/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>More recent Macports</title>
		<link>http://vafer.org/blog/20090104101004</link>
		<comments>http://vafer.org/blog/20090104101004#comments</comments>
		<pubDate>Sun, 04 Jan 2009 09:10:04 +0000</pubDate>
		<dc:creator>tcurdt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://vafer.org/blog/?p=762</guid>
		<description><![CDATA[I have never been a big fan of manually compiling and installing packages &#8211; especially on OSX. It just can&#8217;t be a good thing to scatter files around like that. This is probably just one of the reasons why thousands of other Mac users also chose to use fink or macports to install custom packages. [...]]]></description>
			<content:encoded><![CDATA[<p>I have never been a big fan of manually compiling and installing packages &#8211; especially on OSX. It just can&#8217;t be a good thing to scatter files around like that. This is probably just one of the reasons why thousands of other Mac users also chose to use <a href="http://www.finkproject.org/">fink</a> or <a href="http://www.macports.org/">macports</a> to install custom packages. Coming from the debian world I started out with fink and it&#8217;s apt-get install. Later I&#8217;ve switched to macports because it seem to provide more recent packages. Unfortunately sometimes even macports is a little outdated. But with a few commands you might be able to install a new port anyway.</p>
<p>Let&#8217;s demonstrate this on the exiv2 package. First check the versions.</p>
<pre>
$ port livecheck exiv2
exiv2 seems to have been updated (port version: 0.14, new version: 0.18-pre1)
$ port search exiv2
exiv2      graphics/exiv2 0.14   EXIF and IPTC metadata manipulation...
</pre>
<p>In this case the macport only provides version 0.14 but a much newer version was released. While macports is an open source project and always looking for contributors you can&#8217;t just update the port in the official repository &#8211; but you can <a href="http://guide.macports.org/#development.local-repositories">create a local one</a>. Just add a directory as your local repository.</p>
<pre>
$ cd /opt/local/etc/macports/
$ vi sources.conf
</pre>
<p>The file should now look something like this</p>
<pre>
rsync://rsync.macports.org/release/ports/ [default]
file:///Users/tcurdt/ports
</pre>
<p>Then search and copy/download the original ports file for the latest version.</p>
<pre>
$ locate Portfile | grep exiv2
/opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/exiv2/Portfile
</pre>
<p>This needs to go into your local repository. With the same directory structure.</p>
<pre>
$ mkdir -p ~/ports/graphics/exiv2
$ cp /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/exiv2/Portfile ~/ports/graphics/exiv2/Portfile
$ vi ~/ports/graphics/exiv2/Portfile
</pre>
<p>Update the portfile to the latest version and then update the port index so your local version gets included.</p>
<pre>
$ sudo portindex
Creating software index in /Users/tcurdt/ports
Adding port graphics/exiv2

Total number of ports parsed:  1
Ports successfully parsed:  1
Ports failed:  0
</pre>
<p>When you now do a search you should see both versions available.</p>
<pre>
$ port search exiv2
exiv2     graphics/exiv2 0.14     EXIF and IPTC metadata manipulation...
exiv2     graphics/exiv2 0.17.1   EXIF and IPTC metadata manipulation...
</pre>
<p>Now you can just try to install and activate it as usual. Good luck with your new ports! And don&#8217;t forget to contribute the updated portsfile back to the macports project.</p>


<p>Related posts:<ul><li><a href='http://vafer.org/blog/20081026142413' rel='bookmark' title='Permanent Link: Publishing maven artifacts'>Publishing maven artifacts</a></li><li><a href='http://vafer.org/blog/20070119222452' rel='bookmark' title='Permanent Link: Ubuntu on Parallels'>Ubuntu on Parallels</a></li><li><a href='http://vafer.org/blog/20090107014544' rel='bookmark' title='Permanent Link: Full-text search with Cocoa'>Full-text search with Cocoa</a></li></ul></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/tcurdt?a=uVxyZxkm"><img src="http://feeds.feedburner.com/~f/tcurdt?i=uVxyZxkm" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tcurdt/~4/NTdknb9uYTI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vafer.org/blog/20090104101004/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 1.417 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-02-01 03:18:59 -->
