<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>techblog @ razal.de   </title>
    <link>http://razal.de/~ibn/techblog</link>
    <description>stuff that proved useful</description>
    <language>en</language>

  <item>
    <title>mac os x and pkgsrc - good and bad news</title>
    <link>http://razal.de/~ibn/techblog/2007/08/20#mac_n_pkgsrc#1</link>
    <description>
i recently found out, that &lt;a href=&quot;http://www.netbsd.org/docs/software/packages.html&quot;&gt;pkgsrc&lt;/a&gt; is now usable on non case-sensitive partitions. this is good news because now many more people can enjoy &lt;a href=&quot;http://www.netbsd.org/docs/software/packages.html&quot;&gt;pkgsrc&lt;/a&gt; on their macs. so people... throw away your fink and darwinports and use &lt;a href=&quot;http://www.netbsd.org/docs/software/packages.html&quot;&gt;pkgsrc&lt;/a&gt; instead. ;)&lt;br/&gt;
the bad news for me is that if had known this i wouldn't have installed osx on my &quot;new&quot; powerbook on a case-sensitive filesystem in the first place. would have spared me much annoyance.
</description>
  </item>
  <item>
    <title>thunderbird and spotlight</title>
    <link>http://razal.de/~ibn/techblog/2007/07/10#thunderbird_n_spotlight</link>
    <description>
a friend of mine told me that thunderbird 2 supposedly supports os x spotlight feature. so i did a google search and found a few instructions &lt;a href=&quot;http://www.insomniaonline.de/donnervogel-im-rampenlicht/&quot;&gt;here (german)&lt;/a&gt; on how to get it up and running. &lt;br/&gt;
&lt;br/&gt;

first: you need to get the spotlight importer from this &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=290057#c110&quot;&gt;bugreport&lt;/a&gt; (download attachment from comment #109) and put it in &lt;i&gt;~/Library/Spotlight/&lt;/i&gt; or &lt;i&gt;/Library/Spotlight/&lt;/i&gt; (create if necessary).&lt;br/&gt;&lt;br/&gt;

second: in thunderbird preferences go to config editor (tab advanced) and set &lt;i&gt;mail.spotlight.enable&lt;/i&gt; to &lt;i&gt;true&lt;/i&gt;. thunderbird needs to be restarted after this. then it begins to index all mails (this &lt;b&gt;will&lt;/b&gt; take a while), which effectively means that it generates a &lt;i&gt;.mozeml&lt;/i&gt; file for spotlight for each mail in your mailbox. this is because thunderbird saves it's mails internally as mbox files which are unsuitable for spotlight.&lt;br/&gt;&lt;br/&gt;

third: check with &lt;i&gt;/usr/bin/mdimport -L&lt;/i&gt; if the thunderbird importer was found and reindex your spotlight database with &lt;i&gt;sudo /usr/bin/mdutil -E /&lt;/i&gt;. (i don't know if a reboot is necessary)
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;[update]&lt;/b&gt;&lt;br/&gt;
there was one little drawback with the importer as noted &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=290057#c77&quot;&gt;here&lt;/a&gt;. messages showed in category &lt;i&gt;Documents&lt;/i&gt; rather then &lt;i&gt;Mail messages&lt;/i&gt;. but with help from the spotlight-dev mailing list i found a solution.&lt;br/&gt; 
you need to edit &lt;i&gt;Info.plist&lt;/i&gt; located in &lt;i&gt;Thunderbird.mdimporter&lt;/i&gt; (ctrl-click -&gt; &lt;i&gt;Show Package Contents&lt;/i&gt;). you can use any editor you like but the safest bet is to use the &lt;i&gt;Property List Editor&lt;/i&gt; (i killed my &lt;i&gt;Info.plist&lt;/i&gt; with &lt;i&gt;TextEdit&lt;/i&gt;!). 

&lt;pre&gt;
  &amp;lt;key&gt;UTTypeConformsTo&amp;lt;/key&gt;
  &amp;lt;array&gt;
    &amp;lt;string&gt;public.data&amp;lt;/string&gt;
    &amp;lt;string&gt;public.content&amp;lt;/string&gt;
    &lt;b&gt;&amp;lt;string&gt;public.email-message&amp;lt;/string&gt;&lt;/b&gt; &amp;lt;-- add this line
  &amp;lt;/array&gt;
&lt;/pre&gt;

i don't know how to convince spotlight to reload its plugins so reboot please. reindex your spotlight now.&lt;br/&gt;&lt;br/&gt;

to check if everything went alright locate a &lt;i&gt;.mozeml&lt;/i&gt; file (usually under ~/Library/Thunderbird/Profiles/...) and call &lt;i&gt;mdls&lt;/i&gt; with it. you are good to go if anything like this shows up.
&lt;pre&gt;
kMDItemContentType             = &quot;com.mozilla.thunderbird.mozeml&quot;
kMDItemContentTypeTree         = (
    &quot;com.mozilla.thunderbird.mozeml&quot;, 
    &quot;public.data&quot;, 
    &quot;public.item&quot;, 
    &quot;public.content&quot;, 
    &quot;public.email-message&quot;, 
    &quot;public.message&quot;
)
&lt;/pre&gt;

&lt;a target=&quot;_blank&quot; href=&quot;http://razal.de/~ibn/techblog/images/mac/ThunderbirdSpotlight.jpg&quot;&gt;screenshot&lt;/a&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;[update 2]&lt;/b&gt;&lt;br/&gt;
KAMiKAZOW has build a new version (universal binary) of &lt;i&gt;Thunderbird.mdimporter&lt;/i&gt; incorporating the &lt;i&gt;Info.plist&lt;/i&gt; change and attached it to the &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=290057#c110&quot;&gt;bugreport&lt;/a&gt;. so no more &lt;i&gt;Info.plist&lt;/i&gt; editing. 
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;[update 3]&lt;/b&gt;&lt;br/&gt;
from the amount of 19k mails 10k have been converted. 9k to go. took a day so far...
</description>
  </item>
  <item>
    <title>job interview with apple</title>
    <link>http://razal.de/~ibn/techblog/2007/04/04#mac_n_security#1</link>
    <description>
somebody posted an interesting &lt;a href=&quot;http://c9c3.blogspot.com/2007/04/apple-computers.html&quot;&gt;article&lt;/a&gt; about a job interview as security researcher with apple. it not really comes as a shock to me... but i get a little anxious. 
</description>
  </item>
  <item>
    <title>adium and case-sensitivity</title>
    <link>http://razal.de/~ibn/techblog/2007/03/28#mac_n_case#2</link>
    <description>
last week i got sick of the ancient mac icq client from mirabilis so i installed &lt;a href=&quot;http://www.adiumx.com&quot;&gt;adium&lt;/a&gt;. i have to admit that i despise these efing duck icons and sounds but the program is good nevertheless. and there are a variety of extras to change said icons and sounds. but i almost deleted it after the dock icon wouldn't change to the new set i chose. yes... i'm that shallow ;). but after a while i remembered my little case-sensitivity problem. so i took ktrace and looked for the problem. same old, same old... the icon was named one way... adium tried to access it the other. so i renamed it and it worked like a charm. posted a &lt;a href=&quot;http://trac.adiumx.com/ticket/6620&quot;&gt;bug report&lt;/a&gt; on the adium site and le voilá... it got fixed already. kudos to evands. 
</description>
  </item>
  <item>
    <title>os x and case-sensitivity</title>
    <link>http://razal.de/~ibn/techblog/2007/03/28#mac_n_case#1</link>
    <description>
since i changed the fs type on my powerbook to &lt;b&gt;Mac OS Extended (Case-sensitive, Journaled)&lt;/b&gt; to get &lt;a href=&quot;http://www.netbsd.org/Documentation/software/packages.html&quot;&gt;pkgsrc&lt;/a&gt; working i experienced many strange problems. &lt;br/&gt;
&lt;br/&gt;
for example: &lt;br/&gt;
my scanner stopped working.&lt;br/&gt;
most adobe software wouldn't even install. (problem solved on newest version)&lt;br/&gt;
games like civ 2 and age of empire 2 wouldn't start&lt;br/&gt;
and so forth...&lt;br/&gt;
&lt;br&gt;
this was mainly because of sloppy naming and accessing files. &lt;br/&gt;
&lt;br/&gt;
there are two possible ways to work your way around these problems.&lt;br/&gt;
&lt;b&gt;first:&lt;/b&gt; install software in a disk image that utilizes a fs without case-sensitivity. this is the easy way. but only really works with software that doesn't put stuff elsewhere, e.g. &lt;i&gt;/Library/&lt;/i&gt; or &lt;i&gt;/User/$USER/Library/&lt;/i&gt;. the games i had problems with usually work with this method. &lt;br/&gt;
&lt;b&gt;second:&lt;/b&gt; identify and rename the problematic files accordingly. but this is easier said then done. most programs just throw a generic error message at you and close. i usually take ktrace/kdump out of the toolbox and look what happened. a quick search for &lt;i&gt;errno&lt;/i&gt; will, in most cases, suffice to find what file the process tries to access. then you rename it and it's done. but sometimes a process tries to access a file with name &lt;i&gt;SomeFile.txt&lt;/i&gt; in one place and name &lt;i&gt;someFile.txt&lt;/i&gt; in another... then you not only have to correct the name... you have to link the file to the specific names the program requires. and all because of sloppy and lazy programmers. but some programs are exceptionally rude if you try to ktrace them. a certain adobe app throws a &quot;&lt;b&gt;Security Violation:&lt;/b&gt; Kernel trace detected&quot; at you and then quits. got it running with a mixture of both methods. but i have to say this is all not very satisfying.
</description>
  </item>
  </channel>
</rss>