<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

  <channel>
    <title>Ovidiu Predescu&apos;s Weblog</title>
    <link>http://www.webweavertech.com/ovidiu/weblog/</link>
    <description>Technology ramblings</description>
    <dc:language>en-us</dc:language>
    <dc:creator>weblog@webweavertech.com</dc:creator>
    <dc:rights>Copyright 2008</dc:rights>
    <dc:date>2008-02-20T21:58:05-08:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=2.661" />
    <admin:errorReportsTo rdf:resource="mailto:weblog@webweavertech.com"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>

    <item>
      <title>Picasa, Flickr export plugins for Adobe Lightroom</title>
      <link>http://www.webweavertech.com/ovidiu/weblog/archives/000468.html</link>
      <description> I just found about the export plugins for Picasa and Flickr: http://regex.info/blog/photo-tech/lightroom-picasaweb/ http://regex.info/blog/photo-tech/lightroom-flickr/ Awesome! Thanks Jeffrey for putting these...</description>
      <guid isPermaLink="false">468@http://www.webweavertech.com/ovidiu/weblog/</guid>
      <content:encoded><![CDATA[<center><table><tr><td>
<a href="/ovidiu/weblog/gallery/disneyland/california.jpg" title="Disneyland California Adventure during Google Disneyland 2008"><img src="/ovidiu/weblog/gallery/disneyland/california.thumb.jpg" width="450" height="300" border="0"/></a>
</td></tr></table></center>

<p>I just found about the export plugins for Picasa and Flickr:</p>

<p><a href="http://regex.info/blog/photo-tech/lightroom-picasaweb/">http://regex.info/blog/photo-tech/lightroom-picasaweb/</a><br>
<a href="http://regex.info/blog/photo-tech/lightroom-flickr/">http://regex.info/blog/photo-tech/lightroom-flickr/</a>
</p>

<p>Awesome! Thanks Jeffrey for putting these together. This of course would not have been possible without <a href="http://labs.adobe.com/technologies/lightroomsdk/">Adobe's Lightroom SDK</a>, which is pretty cool in itself.</p>

<p>What I'd really like to have is a plugin that emulates Apple's iPhoto Digital Photo Access Protocol (DPAP) protocol. This way the other Macs in my home can view Lightroom's albums as a regular remote iPhoto. Apparently some people reversed engineered this protocol and have an <a href="http://search.cpan.org/search?query=Net::DPAP::Client">implementation available in Perl</a>. </p>

<p>Hopefully future versions of the Lightroom SDK will include the ability to run plugins at all times in their own thread, as well as have the ability to use server side sockets.</p>
]]></content:encoded>
      <dc:subject>Photo</dc:subject>
      <dc:date>2008-02-20T21:58:05-08:00</dc:date>
    </item>
    <item>
      <title>Recursive export to Web in Photoshop CS3</title>
      <link>http://www.webweavertech.com/ovidiu/weblog/archives/000467.html</link>
      <description> I use Adobe Lightroom to organize my photographs, both digital ones as well as the scanned slide films I...</description>
      <guid isPermaLink="false">467@http://www.webweavertech.com/ovidiu/weblog/</guid>
      <content:encoded><![CDATA[<center><table><tr><td>
<a href="/ovidiu/weblog/gallery/photoshop-export-to-web/cortina.jpg" title="Cortina D'Ampezzo, Italy"><img src="/ovidiu/weblog/gallery/photoshop-export-to-web/cortina.thumb.jpg" width="450" height="304" border="0"/></a>
</td></tr></table></center>

<p>I use Adobe Lightroom to organize my photographs, both digital ones as well as the scanned slide films I take. Lightroom is working great for me and I've written about my disappointment with Apple Aperture in a <a href="/ovidiu/weblog/archives/000458.html">previous entry</a>.</p>

<p>Yesterday I was looking for a way to take a subset of the pictures I have and convert them to JPG. I want to use the JPGs on a small Mac Mini to make presentation in FrontRow using a newly acquired <a href="http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&fcategoryid=131&modelid=15791">Canon SX7 digital projector</a> (more on this in a later entry).</p>

<p>Unfortunately Adobe Lightroom does not offer such a functionality. You can export all the pictures in a directory to JPG, but there's no way to take a directory, and recursively export all the pictures within it to JPG while maintaining the directory structure they are in.</p>

<p>I could have written a small shell script to do this, but I have a mixture of TIFF, JPG and RAW images that had to be processed. I wanted to get the image processing capabilities from Lightroom or Photoshop, instead of using dcraw. Adobe Lightroom doesn't have a way to script it, so I looked at Photoshop CS3 to do it.</p>

<p>Photoshop can be scripted in JavaScript, in addition to AppleScript. I came up with a <a href="/ovidiu/weblog/gallery/photoshop-export-to-web/Recursive%20export%20to%20Web....jsx">small script</a> that does the conversion.<p>

<center><table><tr><td>
<a href="/ovidiu/weblog/gallery/photoshop-export-to-web/capture.jpg" title="Recursive export to Web script"><img src="/ovidiu/weblog/gallery/photoshop-export-to-web/capture.thumb.jpg" width="450" height="281" border="0"/></a>
</td></tr></table></center>

<p>To use, download the <a href="/ovidiu/weblog/gallery/photoshop-export-to-web/Recursive%20export%20to%20Web....jsx">script</a>, install it in <code>/Applications/Adobe Photoshop CS3/Presets/Scripts</code> and restart Photoshop CS3.</p>

<p>After restart, the script is available under <code>File -> Scripts</code>. When you select it, the script will ask the source directory containing the images, and the destination directory where the JPG images should be placed. The script has been tested in Photoshop CS3 running on MacOS X 10.4.10. It seems to be able to process TIFF files produced by my scanner, CR2 RAW files from my 5D and the older 20D, as well as JPGs from various digital point-and-shoot cameras.</p>

<p>If you stop the script, the next time you restart it on the same source and destination directories, it will not process the files that have already been processed.</p>

<p>Note that if you process a lot of files, Photoshop ends up using a <b>lot</b> of the disk space on your scratch disk. I could not figure out why this happens. Quitting Photoshop seems to reclaim the scratch disk space.</p>

<p>The script is public domain, feel free to use and modify it as you wish. If you do end up using it and fix various bugs, please let me know so I can incorporate them in my script.</p>
]]></content:encoded>
      <dc:subject>Photo</dc:subject>
      <dc:date>2007-11-04T16:47:21-08:00</dc:date>
    </item>
    <item>
      <title>Visiting Rome</title>
      <link>http://www.webweavertech.com/ovidiu/weblog/archives/000466.html</link>
      <description> Rome is a beautiful city with an extremely rich history. We rented an apartment in Trastevere for 10 days...</description>
      <guid isPermaLink="false">466@http://www.webweavertech.com/ovidiu/weblog/</guid>
      <content:encoded><![CDATA[<a href="/ovidiu/images/sangiovanni.jpg" title="Matei at San Giovanni in Laterano - June 2007" class="image-left"><img src="/ovidiu/images/sangiovanni.thumb.jpg" width="300" height="450" border="0"/></a>

<p>Rome is a beautiful city with an extremely rich history. We rented an apartment in Trastevere for 10 days and visited the numerous places and museums packed in a relatively small area. The area of the city enclosed within the old Roman walls is 23 square miles, about half the size of San Francisco. You can walk literally everywhere, you can take the highly unreliable public transportation or get a taxi to quickly go somewhere else.</p>

<p>One major downside in Rome is the huge number of tourists. To take the above picture of my son in San Giovanni in Laterano, the mother church of the Roman Catholics, I had to wait some 20 minutes.</p>
]]></content:encoded>
      <dc:subject>Travel</dc:subject>
      <dc:date>2007-07-07T22:01:26-08:00</dc:date>
    </item>
    <item>
      <title>Second autocross</title>
      <link>http://www.webweavertech.com/ovidiu/weblog/archives/000465.html</link>
      <description> Yesterday was another miserably cold day at Marina. While in Bay Area temperatures finally dropped from the high 90s...</description>
      <guid isPermaLink="false">465@http://www.webweavertech.com/ovidiu/weblog/</guid>
      <content:encoded><![CDATA[<center><table><tr><td>
<a href="http://picasaweb.google.com/oprede/Lotus/photo#5077118908360604466" title="Linda Hiebert's Lotus"><img src="/ovidiu/images/lotus.jpg" width="450" height="300" border="0"/></a>
</td></tr></table></center>

<p>Yesterday was another miserably cold day at Marina. While in Bay Area temperatures finally dropped from the high 90s into low 70s, Marina saw a lot of fog, wind and cold weather. The autocross at Marina was nevertheless very rewarding, this time with a very <a href="http://www.justracing.com/ggc_bmw_cca/viewtopic.php?t=447&sid=41e06173d7584c36c3a17ee0904f8b77">interesting and challenging course</a>. I ended up <a href="http://home.comcast.net/~mgarage/autox/2007AX3-Results-Provisional.html">5th in my car's class</a>. While the result was pretty good, I could have done a lot better.</p>

<p>The most challenging part is recognizing the mistakes you make and try to avoid them in a consistent manner. This is easier said than done, as the course's features come at you very fast, and a mistake in a turn happens usually because of another one few turns before. So concentration is key, as well as a good understanding of what your car can do. I still have a lot to learn, but it's fun.</p>
]]></content:encoded>
      <dc:subject>Cars</dc:subject>
      <dc:date>2007-06-17T18:44:26-08:00</dc:date>
    </item>
    <item>
      <title>MacPro disk access performance (take 2)</title>
      <link>http://www.webweavertech.com/ovidiu/weblog/archives/000464.html</link>
      <description> In a previous weblog entry I measured the disk access performance on MacPro. Few days ago I decided to...</description>
      <guid isPermaLink="false">464@http://www.webweavertech.com/ovidiu/weblog/</guid>
      <content:encoded><![CDATA[<a href="/ovidiu/images/blacksmith.jpg" title="Blacksmith at Celtic Festival - Calaveras, June 2006" class="image"><img src="/ovidiu/images/blacksmith.thumb.jpg" width="300" height="450" border="0"/></a>

<p>In a <a href="/ovidiu/weblog/archives/000454.html">previous weblog entry</a> I measured the disk access performance on MacPro. Few days ago I decided to change my two 750GB drives configuration from RAID 1 (mirrored mode) to RAID 0 (stripped mode).</p>

<p>I backed up the RAID disk on an external drive and I recreated the RAID setup. To destroy the old RAID disk I had to boot the machine in safe mode (hold down the "Shift" key during computer boot-up). Otherwise DiskUtil would not be able to unmount the drive. After creating the RAID 0 disk, I restored the disk from the backup. </p>

<p>I ran the same commands as I did few months ago:</p>

<pre>
$ time dd if=/dev/zero of=&lt;file&gt; bs=1024 count=1048576

$ time cat &lt;file&gt; | wc -c
</pre>

<p>One thing I did notice is that running the cat to /dev/null (as I did in the previous entry) yields a really low number on MacOS X 10.4.9. This indicates a possible optimization in the operating system. I changed the command to count the number of bytes using wc. This adds a negligible CPU load, and probably some inefficiencies in how the stdin data is read by wc, but overall should not influence much the result. Here are the results combined with those from the last run:</p>

<table border="1" cellpading="2" frame="box">
<tr><th><b>Drive</b></th><th><b>Read time (seconds)</b></th><th><b>Write time (seconds)</b></th></tr>

<tr><td>internal 160GB</td><td align="center">14.90</td><td align="center">14.64</td></tr>

<tr><td>internal, software RAID 0, 1.5TB</td><td align="center">7.68</td><td align="center">10.65</td></tr>

<tr><td>internal, software RAID 1, 750GB</td><td align="center">18.05</td><td align="center">21.94</td></tr>

<tr><td>external, hardware RAID, USB2, 400GB</td><td align="center">49.43</td><td align="center">57.30</td></tr>

</table>

<p>So clearly setting up a RAID 0 disk improves the performance of your disk! In real life Adobe Lightroom takes a lot less time to start up than before. Other applications may benefit as well from this, but it's too early to tell. My previous recommendation remains: use an external USB or Firewire drive for backups only, and optimize the internal disk system for performance.</p>
]]></content:encoded>
      <dc:subject>Apple</dc:subject>
      <dc:date>2007-06-07T10:15:08-08:00</dc:date>
    </item>


  </channel>
</rss>
