<?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>Ambient Ideas' Denver Dev &#187; Debugging</title>
	<atom:link href="http://ambientideas.com/blog/index.php/tag/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://ambientideas.com/blog</link>
	<description>Matthew McCullough's insights on software development as co-founder of Ambient Ideas, LLC</description>
	<lastBuildDate>Wed, 21 Jul 2010 17:40:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JavaZone 2009 Open Source Debugging Talk</title>
		<link>http://ambientideas.com/blog/index.php/2010/01/javazone-2009-open-source-debugging-talk/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/01/javazone-2009-open-source-debugging-talk/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:19:47 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Presentations]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Presenting]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/?p=211</guid>
		<description><![CDATA[My Open Source Debugging talk that I gave at JavaZone, Oslo, Norway last September is online]]></description>
			<content:encoded><![CDATA[<h1>Open Source Debugging in Norway</h1>
<p>My Open Source Debugging talk that I gave at <a href="http://jz09.java.no/">JavaZone, Oslo, Norway</a> last September is <a href="http://tcs.java.no/tcs/?id=091FCD40-999F-42D4-AA88-7833550B4D10">online and can be watched in Flash format</a> or <a href="http://tcs.java.no/tcs/data/O125330950506-17409488fl.mp4">downloaded as an M4V file</a>.  If you were not able to catch this talk at either <a href="http://jz09.java.no/">this venue</a>, or any of the <a href="http://www.nofluffjuststuff.com/conference/speaker/matthew_mccullough">many NoFluffJustStuff.com stops</a> that I gave this talk at last year, give it a try and <a href="mailto:matthewm@ambientideas.com">let me know what you think of it</a>.<br />
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/01/javazone-2009-open-source-debugging-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://tcs.java.no/tcs/data/O125330950506-17409488fl.mp4" length="183606848" type="video/mp4" />
		</item>
		<item>
		<title>AppleScript to Re-Apply Finder Comments</title>
		<link>http://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments/</link>
		<comments>http://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:55:29 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments/</guid>
		<description><![CDATA[...depending on the Mac-specific intelligence of your backup solution, or when copying files written by a 10.4 Mac, your Spotlight (Finder) Comments stored in the .DS_Store files might not survive the round trip.]]></description>
			<content:encoded><![CDATA[<h1>Finder Comments Lost</h1>
<p>When restoring from a backup, depending on the Mac-specific intelligence of your backup solution, or when copying files written by a 10.4 Mac, your Spotlight (Finder) Comments stored in the <a href="http://en.wikipedia.org/wiki/.DS_Store">.DS_Store files</a> might not survive the round trip.  You&#8217;ll first notice this by the fact that your comments field or column is completely empty for files you know you previously tagged or made comments on.</p>
<h2>Leopard, Snow Leopard Comment Storage</h2>
<p>Tiger and previous editions of Mac OSX store Spotlight comments in the .DS_Store file exclusively.  Leopard and Snow Leopard on the other hand, claim to maintain backwards compatibility by storing the <a href="http://ironicsoftware.com/community/comments.php?DiscussionID=344">Spotlight Comments in both</a> the .DS_Store and the new <a href="http://en.wikipedia.org/wiki/Extended_file_attributes">Extended File Attributes.</a>  I question this thinking though, because Mac OSX developer Steve Gehrman of the <a href="http://www.cocoatech.com/">awesome PathFinder team</a> says that Finder, while it <a href="http://news.softpedia.com/news/iRemove-DS-Store-Files-AppleScript-Eliminates-Tons-of-Fuss-124047.shtml">writes both formats</a>, still only reads back the .DS_Store ones.  It seems to me that Apple would have changed Finder to read from the newer Extended Attributes as soon as they started writing to those in duplicate.</p>
<blockquote><p>&#8220;On Mac OS X 10.4 Tiger, for example, .DS_Store files also contain the Spotlight comments of all the folder&#8217;s files, whereas Mac OS X 10.5 &#8220;Leopard&#8221; stores this information in Extended file attributes.&#8221;</p></blockquote>
<h2>Script Research</h2>
<p>Giving a tip of the hat to the similar-but-not-quite-what-I-wanted script that helped me get enough of the syntax working (using type <code>alias</code> instead of type <code>file</code> was tricky) get my own authored, I give you:</p>
<p>A <a href="http://www.macosxhints.com/article.php?story=20050614071122965">MacOSXHints article</a>, and the <a href="http://www.macosxhints.com/dlfiles/spotlight_comment_script.txt">corresponding code</a></p>
<p>    <script src="http://gist.github.com/285988.js?file=spotlight-flag-comments.scpt"></script></p>
<h2>The Solution</h2>
<p>To solve this extended attributes vs. .DS_Store discrepancy, we only need to read (from the extended attributes) and reapply (thereby recreating the .DS_Store) the same comment.  The solution is this AppleScript.  Just highlight the files needing the treatment in Finder, then execute this script from the AppleScript Editor.</p>
<p><script src="http://gist.github.com/285667.js?file=recomment.scpt"></script></p>
<p>The result is that Finder (which reads only the .DS_Store files) and PathFinder (which only reads the extended attributes) can both now see the Spotlight Comments.</p>
<h3>Extras</h3>
<p>If you would like your Mac to automatically clean up the .DS_Store files it writes out to flash sticks and network drives, <a href="http://zeroonetwenty.com/blueharvest/">check out BlueHarvest</a>, an interesting little utility app that fills this need.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2010/01/applescript-to-re-apply-finder-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JPS and VisualVM on Windows</title>
		<link>http://ambientideas.com/blog/index.php/2009/10/jps-and-visualvm-on-windows/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/10/jps-and-visualvm-on-windows/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 07:03:29 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/10/jps-and-visualvm-on-windows/</guid>
		<description><![CDATA[ At several stops on the  NFJS tour , I've been asked about  some of the minor issues in running JPS  and VisualVM on the Windows platform.   The primary problem is that the processes in JPS and VisualVM are listed as:   &#60;Unknown Application&#62; (pid ###)    I have been successful in working around this  by renaming the hsperfdata temp directory as noted in a  separate thread on the Sun forums . ]]></description>
			<content:encoded><![CDATA[<p>At several stops on the <a href="http://nofluffjuststuff.com" target="_blank">NFJS tour</a>, I&#8217;ve been asked about <a href="http://markmail.org/message/bfacrkap4kqjn265" target="_blank">some of the minor issues in running JPS</a> and VisualVM on the Windows platform. The primary problem is that the processes in JPS and VisualVM are listed as:</p>
<p>&lt;Unknown Application&gt; (pid ###)</p>
<p><a href="https://visualvm.dev.java.net/troubleshooting.html" target="_blank">I have been successful in working around this</a> by renaming the hsperfdata temp directory as noted in a <a href="http://forums.sun.com/thread.jspa?threadID=5133218" target="_blank">separate thread on the Sun forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/10/jps-and-visualvm-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BTrace in VisualVM on the Mac</title>
		<link>http://ambientideas.com/blog/index.php/2009/07/btrace-in-visualvm-on-the-mac/</link>
		<comments>http://ambientideas.com/blog/index.php/2009/07/btrace-in-visualvm-on-the-mac/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 14:54:13 +0000</pubDate>
		<dc:creator>Matthew McCullough</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSource]]></category>

		<guid isPermaLink="false">http://ambientideas.com/blog/index.php/2009/07/btrace-in-visualvm-on-the-mac/</guid>
		<description><![CDATA[<p>The BTrace plugin for VisualVM , a tool that I love to showcase at No Fluff Just Stuff and user group events has been updated to version 0.2.2 to solve an issue that prevented it from working on a Mac . Be sure to uninstall any prior version from your VisualVM prior to installing 0.2.2 to get the full benefit of the fix. <img src="http://farm3.static.flickr.com/2521/3742315897_e66bf84eae.jpg" width="480" height="317" alt="Btrace2.png" /> <img src="http://farm3.static.flickr.com/2668/3743094204_f3dd15ca5f.jpg" width="480" height="326" alt="BTrace1.png" /></p>
]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://kenai.com/projects/btrace/pages/BTracePlugin" target="_blank">BTrace plugin for VisualVM</a>, a tool that I love to showcase at <a href="http://www.nofluffjuststuff.com" target="_blank">No Fluff Just Stuff</a> and user group events, has been updated to version 0.2.2. This <a href="http://kenai.com/jira/browse/BTRACE-1" target="_blank">solves an issue that prevented it from working on a Mac</a>. Be sure to uninstall any prior version from your VisualVM prior to installing 0.2.2 to get the full benefit of the fix.</p>
<p><img src="http://farm3.static.flickr.com/2521/3742315897_e66bf84eae.jpg" width="480" height="317" alt="Btrace2.png" /></p>
<p><img src="http://farm3.static.flickr.com/2668/3743094204_f3dd15ca5f.jpg" width="480" height="326" alt="BTrace1.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ambientideas.com/blog/index.php/2009/07/btrace-in-visualvm-on-the-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
