<?xml version="1.0" encoding="utf-8"?>
<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>chriscassellDotNet</title>
    <link>http://www.chriscassell.net/log/</link>
    <description></description>
    <dc:language>en-us</dc:language>
    <dc:creator>chris@chriscassell.net</dc:creator>
    <dc:rights>Copyright 2008</dc:rights>
    <dc:date>2008-03-26T20:48:54-05:00</dc:date>
    <admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=4.0" />
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>


    <item>
      <title>Ann Arbor Skatepark: Public Meeting</title>
      <link>http://www.chriscassell.net/log/2008/03/26/ann_arbor_skate.html</link>
      <description>On April 2, the city of Ann Arbor is holding a public hearing about the proposed location at Abbott Elementary...</description>
      <guid isPermaLink="false">834@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>On April 2, the city of Ann Arbor is holding a public hearing about the proposed location at Abbott Elementary school in Ann Arbor. It&#8217;s crucial that supporters of the skatepark turn out to demonstrate to the community that a skatepark will have a positive impact on Ann Arbor. So, if you&#8217;re in Ann Arbor on the 2nd and would like to see a skatepark built in Ann Arbor, please come to the meeting and show your support.</p>

<p>Ann Arbor Skatepark Public Meeting<br />
Wednesday, April 2<br />
6:30 - 8 pm<br />
Abbott Elementary School<br />
<a href="http://tinyurl.com/2k26vz">2670 Sequoia Parkway, Ann Arbor</a></p>

<p><br />
<img src="/log/graphics/log/skate_park_pressrelease.png" alt="" width="400" height="518" /></p>]]></content:encoded>
      <dc:subject>Four-Wheeled Toy</dc:subject>
      <dc:date>2008-03-26T20:48:54-05:00</dc:date>
    </item>

    <item>
      <title>Dear Michigan Democratic Committee</title>
      <link>http://www.chriscassell.net/log/2008/01/15/dear_michigan_d.html</link>
      <description>Thank you for disenfranchising me and every other Michigan democrat. It&apos;s fulfilling to know that this time, my vote really...</description>
      <guid isPermaLink="false">833@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>Thank you for disenfranchising me and every other Michigan democrat. It&#8217;s fulfilling to know that this time, my vote really doesn&#8217;t count.</p>]]></content:encoded>
      <dc:subject>Politics</dc:subject>
      <dc:date>2008-01-15T20:40:58-05:00</dc:date>
    </item>

    <item>
      <title>Ann Arbor Skatepark: Parks Advisory Commission Meeting</title>
      <link>http://www.chriscassell.net/log/2007/12/13/ann_arbor_skate.html</link>
      <description>Please come show your support for an Ann Arbor skatepark by attending the upcoming meeting of the Ann Arbor Parks...</description>
      <guid isPermaLink="false">832@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>Please come show your support for an Ann Arbor skatepark by attending the upcoming meeting of the <a href="http://www.a2gov.org/government/communityservices/ParksandRecreation/parks/PAC/">Ann Arbor Parks Advisory Commission</a> (PAC). </p>

<h3>Ann Arbor Parks Advisory Commission Meeting</h3>

<p>Tuesday, December 18, 2007, 4:00 PM </p>

<p>The <a href="http://a2skatepark.org/">Ann Arbor Skatepark Action Committee</a> will be presenting to the PAC Tuesday, December 18 at 4:00 PM. You can help by simply showing up and being seen. The PAC wants to know how many people are in support of this project before they act. </p>

<p>Please come to the PAC meeting to show your support. If you would like to speak at the meeting as well, please let us know. </p>

<p>The Parks Advisory Commission meets at City Hall, in Council Chambers. <br />
City Hall: 100 N. 5th Ave, Ann Arbor </p>

<p><iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=100+N.+5th+Ave,+Ann+Arbor+MI&amp;sll=42.284861,-83.745799&amp;sspn=0.011811,0.016329&amp;ie=UTF8&amp;om=1&amp;s=AARTsJoLg1-AKNYDhyZ-aimEaaFX5C3i7Q&amp;ll=42.288866,-83.741913&amp;spn=0.019048,0.025749&amp;z=14&amp;iwloc=addr&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=100+N.+5th+Ave,+Ann+Arbor+MI&amp;sll=42.284861,-83.745799&amp;sspn=0.011811,0.016329&amp;ie=UTF8&amp;om=1&amp;ll=42.288866,-83.741913&amp;spn=0.019048,0.025749&amp;z=14&amp;iwloc=addr&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>]]></content:encoded>
      <dc:subject>Four-Wheeled Toy</dc:subject>
      <dc:date>2007-12-13T18:53:50-05:00</dc:date>
    </item>

    <item>
      <title>Ann Arbor Skatepark</title>
      <link>http://www.chriscassell.net/log/2007/09/29/ann_arbor_skate.html</link>
      <description>We&apos;re going to get a free, public, concrete skatepark built in Ann Arbor. If you skate, or if you support...</description>
      <guid isPermaLink="false">831@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>We&#8217;re going to get a free, public, <a href="http://a2skatepark.org">concrete skatepark built in Ann Arbor</a>. If you skate, or if you support skateboarding, <a href="http://a2skatepark.org/petition/">go sign the petition</a> to help us show Ann Arbor city council that there&#8217;s broad support for a free skatepark in Ann Arbor. It doesn&#8217;t matter where you live, or if you skate at all. If you support skating, sign it.</p>

<p>Right now the process is in the early planning stages. The city has expressed interest in the project and we need to get as many skaters, parents, and supporters involved in the group as possible. So tell as many people as you can. We need to get the word out.</p>]]></content:encoded>
      <dc:subject>Four-Wheeled Toy</dc:subject>
      <dc:date>2007-09-29T16:54:17-05:00</dc:date>
    </item>

    <item>
      <title>Creating Magic Methods in PHP</title>
      <link>http://www.chriscassell.net/log/2007/08/09/creating_magic_.html</link>
      <description>I&apos;ve learned a lot of things from various open source frameworks, especially CakePHP. One of the most impressive things about...</description>
      <guid isPermaLink="false">829@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>I&#8217;ve learned a lot of things from various open source frameworks, especially <a href="http://cakephp.org/">CakePHP</a>. One of the most impressive things about Cake, and Ruby on Rails for that matter, is its magic methods in its data model class, <code>findBy</code> and <code>findAllBy</code> which allow you to query the database by calling a non-existent method like <code>findAllByColor ('blue')</code>. I&#8217;ve implemented similar methods in the home-grown framework that I use at work. Here&#8217;s how to do it.</p>
]]></content:encoded>
      <dc:subject>PHP</dc:subject>
      <dc:date>2007-08-09T22:32:57-05:00</dc:date>
    </item>

    <item>
      <title>Circle-A, Man</title>
      <link>http://www.chriscassell.net/log/2007/08/09/circlea_man.html</link>
      <description>Just saw a license plate that read &quot;ANARKY&quot;...</description>
      <guid isPermaLink="false">830@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>Just saw a <em>license plate</em> that read &#8220;ANARKY&#8221;</p>
]]></content:encoded>
      <dc:subject>Miscellany</dc:subject>
      <dc:date>2007-08-09T12:09:11-05:00</dc:date>
    </item>

    <item>
      <title>First Impressions of Safari 3 Beta</title>
      <link>http://www.chriscassell.net/log/2007/06/11/first_impressio.html</link>
      <description>I downloaded the Safari 3 beta (for Mac) and started using it. It does replace Safari 2 in your /Applications...</description>
      <guid isPermaLink="false">826@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>I downloaded the <a href="http://apple.com/safari">Safari 3 beta</a> (for Mac) and started using it. It does replace Safari 2 in your /Applications folder as well as the WebKit Framework and you have to restart after installing.</p>

<ol>
<li>It feels snappier<del>, except&#8230;</del></li>
<li><del>It starts up super slowly. The window draws and then takes around 30 seconds to be responsive on my Dual 2 GHz G5. Could be something with my configuration, but it&#8217;s annoying. Kind of makes me want to switch back to Safari 2.</del> This was an issue with my preferences, specifically the IncludeDebugMenu item. With the debug menu, startup is painful; without th preference set, it starts up right away.</li>
<li>Input Managers no longer work, <del>so no <a href="http://www.inquisitorx.com/">Inquisitor</a></del> (Inquisitor works just fine), <del>no <a href="http://hetima.com/safari/stand-e.html">Safari Stand</a></del> (Safari Stand seems to work for the most part&#8212;no syntax coloring, though), no <a href="http://zappatic.net/safaritidy/">Safari Tidy</a>. In fact having those Input Managers prevents Safari from starting up altogether.</li>
<li><del>View Source shows a blank window.</del> This was an issue with <a href="http://www.tildesoft.com/Misc.html">SafariSource</a>. Disabled and everything works great, just no syntax coloring.</li>
<li>Replaces the dock, so I&#8217;ve got the annoying white background back. Hopefully <a href="http://www.freerangemac.com/TransparentDock2.html">Transparent Dock</a> will be updated for this, but I won&#8217;t hold my breath.</li>
<li>Inspect Element is nice, but I think that this is only available with the debug menu available and since this is a huge performance hit&#8230;</li>
<li>Reorderable tabs are great, but there&#8217;s no way to move tabs between windows other than moving to a new window.</li>
<li>I was disappointed to see it still uses brushed metal.</li>
<li>Oh and it&#8217;s available for Windows. Hmmm&#8230;</li>
<li><strong>Oh Yeah</strong> Labels work properly now!</li>
</ol>
]]></content:encoded>
      <dc:subject>Macintosh</dc:subject>
      <dc:date>2007-06-11T12:08:07-05:00</dc:date>
    </item>

    <item>
      <title>The Sopranos Series Finale</title>
      <link>http://www.chriscassell.net/log/2007/06/11/the_sopranos_se.html</link>
      <description>Enough pussy-footing around; Tony died at the end. Sure, you can say it&apos;s open to interpretation, but all signs point...</description>
      <guid isPermaLink="false">827@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p><a href="http://robots.cnn.com/2007/SHOWBIZ/TV/06/10/sopranos.finale.ap/index.html">Enough</a> <a href="http://robots.cnn.com/SHOWBIZ/blogs/marquee/2007/06/hangin-on-to-end.html">pussy-footing</a> <a href="http://en.wikipedia.org/wiki/Made_in_America_%28The_Sopranos%29">around</a>; Tony died at the end. Sure, you can say it&#8217;s open to interpretation, but all signs point solidly to his violent death.</p>

<p>There&#8217;s the obvious (but somehow unmentioned elsewhere) reference to the Godfather: the guy at the counter goes to the bathroom&#8212;to get the gun that&#8217;s hidden there.</p>

<p>There&#8217;s the conversion with Bobby at the beginning of the 2nd part of season 6 where Tony says something to the extent of, &#8220;You probably don&#8217;t even hear it,&#8221; referring to being shot. With just enough time for the guy to emerge from the bathroom, the screen goes black and the sound goes out. You don&#8217;t even hear it. Don&#8217;t stop? Hardly.</p>

<p>Is there room for alternate interpretations? I suppose, but I don&#8217;t believe it. We saw Tony&#8217;s life going on in the last few scenes before the very end. Pauly tans his face with the reflector at Satriale&#8217;s; Tony rakes the leaves&#8212;you can see he wishes that the ducks would return; </p>

<p>Onion rings, circular, the circle of life&#8230;</p>
]]></content:encoded>
      <dc:subject>Movies, Music, Media</dc:subject>
      <dc:date>2007-06-11T08:49:57-05:00</dc:date>
    </item>

    <item>
      <title>A Hack for Scripting Revert in InDesign</title>
      <link>http://www.chriscassell.net/log/2007/04/26/a_hack_for_scri.html</link>
      <description>Apparently InDesign doesn&apos;t have a revert scripting method. In the process of developing scripts, it would be very handy to...</description>
      <guid isPermaLink="false">815@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>Apparently InDesign doesn&#8217;t have a revert scripting method. In the process of developing scripts, it would be very handy to not have to constantly revert the target file constantly. So I hacked together this little bit of javascript to automatically revert the file at the beginning of a script:</p>

<pre><code>var doc = app.activeDocument;
if (doc.modified)
   {
   var path = doc.fullName;
   doc.close (SaveOptions.no);
   doc = app.open (path);
   }
</code></pre>

<p>It requires a document to be open and active, then checks if it&#8217;s modified. If so, it grabs the path, closes without saving and reopens it referenced by the original variable.</p>
]]></content:encoded>
      <dc:subject>Design</dc:subject>
      <dc:date>2007-04-26T10:00:43-05:00</dc:date>
    </item>

    <item>
      <title>Running TurboTax 2005 on Mac OSX 10.4.9</title>
      <link>http://www.chriscassell.net/log/2007/04/14/running_turbota.html</link>
      <description>TurboTax 2005 crashes on startup on Mac OSX 10.4.9 apparently due to a conflict with Quicktime 7.1.5. To fix it,...</description>
      <guid isPermaLink="false">813@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>TurboTax <em>2005</em> crashes on startup on Mac OSX 10.4.9 apparently due to a conflict with Quicktime 7.1.5. To fix it, follow <a href="http://support.turbotax.intuit.com/cgi-bin/turbotax.cfg/php/enduser/std_adp.php?p_faqid=2390&amp;p_sid=quhaq5zi&amp;p_lva=569&amp;srn=1#">these instructions</a> to update the application.</p>

<p>That way if you didn&#8217;t print a copy of your return from last year like I didn&#8217;t and need to reference it like I do, you can.</p>
]]></content:encoded>
      <dc:subject>Macintosh</dc:subject>
      <dc:date>2007-04-14T13:21:19-05:00</dc:date>
    </item>

    <item>
      <title>Notes on Open Source Search Engines</title>
      <link>http://www.chriscassell.net/log/2007/04/12/notes_on_open_s.html</link>
      <description>I&apos;ve been investigating various open source search engines/ spiders to implement here since I&apos;ve got a mix of static and...</description>
      <guid isPermaLink="false">812@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>I&#8217;ve been investigating various open source search engines/ spiders to implement here since I&#8217;ve got a mix of static and database-driven pages. Obviously the simplest thing to do would be to rely on the search engine built into Movable Type, but it wouldn&#8217;t get the content on the rest of the site. Here&#8217;s a summary of options that I&#8217;ve looked into&#8212;I&#8217;ll be updating this as I research more.</p>

<h3><a href="http://swish-e.org/">Swish-e</a></h3>

<p>Swish-e is a spider and search engine written in C, so indexing is really fast . It writes the indexes in flat files, rather than in a database.</p>

<h4>Pros</h4>

<ul>
<li>Fast</li>
<li>Apparently still in active development. Code has been checked in within the last week.</li>
<li>Can index formats other than HTML/XML/plain text such as PDF, gzip, etc.</li>
<li>Can exclude parts of pages from index</li>
</ul>

<h4>Cons</h4>

<ul>
<li>Perl API&#8212;no real PHP support (not the biggest deal, but it&#8217;s nice to use as few languages on one website as possible&#8230;)</li>
<li>Indexing couldn&#8217;t be completed on the first run against my development site due to, I think, non-ASCII characters</li>
<li>Converts UTF-8 charcter sets to Latin 1</li>
<li>Can&#8217;t remove parts of index&#8212;must completely re-index</li>
</ul>

<h3><a href="http://phpdig.net">PhpDig</a></h3>

<p>A PHP version of <a href="http://htdig.org">ht://Dig</a> that uses MySQL to store the index.</p>

<h4>Pros</h4>

<ul>
<li>Written in PHP so it will play nicely with a php site</li>
<li>Fairly flexible in terms of controlling what is indexed on a given site&#8212;can isolate certain directories, control how many levels down it goes, etc.</li>
<li>Pretty good reporting on search terms, common words, etc.</li>
</ul>

<h4>Cons</h4>

<ul>
<li>Indexing is painfully slow and uses tons of CPU &amp; memory</li>
<li>Last release is from November 2005</li>
<li>Admin interface is confusing at first and has a fairly steep learning curve</li>
</ul>

<h3><a href="http://www.tsep.info/">The Search Engine Project</a></h3>

<p>Another PHP/MySQL based search engine and spider</p>

<h4>Pros</h4>

<ul>
<li>Very configurable</li>
<li>Fast</li>
<li>Written in PHP</li>
</ul>

<h4>Cons</h4>

<ul>
<li>Very complicated admin&#8212;so many options it takes a lot of effort to figure out what they all do</li>
<li>Latest version needs <a href="http://sourceforge.net/forum/message.php?msg_id=3630247">code modifications</a> right out of the box for indexing to work</li>
<li>Getting it to actually spider your site can be tricky and more time consuming.</li>
<li>Last release was September 2005, no commits for more than 10 months</li>
</ul>
]]></content:encoded>
      <dc:subject>Geekiness</dc:subject>
      <dc:date>2007-04-12T19:59:20-05:00</dc:date>
    </item>

    <item>
      <title>mootools, IE, and Named Colors</title>
      <link>http://www.chriscassell.net/log/2007/01/26/mootools_ie_and.html</link>
      <description>Internet Explorer 7 and probably 6, can&apos;t deal with mootools&apos; (revision 83) Fx.Color.toColor () method when the start color is...</description>
      <guid isPermaLink="false">810@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>Internet Explorer 7 and probably 6, can&#8217;t deal with <a href="http://mootools.net/">mootools</a>&#8217; (revision 83) <a href="http://docs.mootools.net/files/Plugins/Fxpack-js.html#Fx.Color.toColor"><code>Fx.Color.toColor ()</code></a> method when the start color is set by a color name, such as &#8220;black&#8221; or &#8220;green&#8221;. IE throws a bunch of javascript &#8220;invalid property value&#8221; errors while the transition runs&#8212;one for each color assignment. The fix: use hex codes for colors in your css.</p>]]></content:encoded>
      <dc:subject>Javascript</dc:subject>
      <dc:date>2007-01-26T15:01:56-05:00</dc:date>
    </item>

    <item>
      <title>Subversion Quirks with Samba Shares on OSX</title>
      <link>http://www.chriscassell.net/log/2007/01/09/subversion_quir.html</link>
      <description>This may only affect Subversion 1.2.3 on Mac OSX when using working copies on an SMB share, but I&apos;m not...</description>
      <guid isPermaLink="false">809@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>This may only affect Subversion 1.2.3 on Mac OSX  when using working copies on an <acronym title="Samba">SMB</acronym> share, but I&#8217;m not entirely sure.</p>

<p>The problem: when trying to add and commit new <em>empty</em> (filesize is 0 bytes) files, the commit fails with the following error:</p>

<p><samp>Transmitting file data &#8230;svn: Commit failed (details follow):<br />
svn: Can&#8217;t copy &#8216;/Volumes/path/to/.svn/tmp/text-base/filename.ext&#8217; to &#8216;/Volumes/path/to/filename.ext.svn-base.5.tmp&#8217;: Input/output error</samp></p>

<p>The solution: simply add some text to the files, even 1 character. The commit will succeed.</p>]]></content:encoded>
      <dc:subject>Geekiness</dc:subject>
      <dc:date>2007-01-09T10:40:45-05:00</dc:date>
    </item>

    <item>
      <title>Notes on XML and Scripting InDesign</title>
      <link>http://www.chriscassell.net/log/2006/12/15/notes_on_xml_an.html</link>
      <description>I&apos;ve been working on a catalog in InDesign CS2 using data pulled from a database. Documentation on automation is rather,...</description>
      <guid isPermaLink="false">808@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>I&#8217;ve been working on a catalog in InDesign CS2 using data pulled from a database. Documentation on automation is rather, shall we say, scarce, so here&#8217;s a few pointers that I&#8217;ve learned.</p>

<ul>
<li><p>If you&#8217;re planning on generating XML to automate layout in InDesign, first design a discrete unit and then drag it over into the Structure pane and export the XML. This will save you many excruciating moments trying to figure out what InDesign actually wants.</p></li>
<li><p>When using tables in XML, you must use the <code>Table</code> and <code>Cell</code> elements. To have them show up as tables, you also need to namespace them and add the correct attributes, including the number of rows and columns. For example:</p>

<pre><code>&lt;Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="3"&gt;
&lt;Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"&gt;Header Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"&gt;Header Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"&gt;Header Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;Cell aid:table="cell" aid:crows="1" aid:ccols="1"&gt;Cell Text&lt;/Cell&gt;
&lt;/Table&gt;
</code></pre></li>
<li><p>You can&#8217;t directly access a TextFrame&#8217;s tables when they&#8217;re placed by XML. Instead, you need to use the associated xml element as such: <code>[xmlElement].parentStory.tables.item (0)</code></p></li>
<li><p>The item &#8220;attribute&#8221; appears to act like a method rather than an array&#8212;you have to use parentheses when using it rather than brackets. <code>item (0)</code> NOT <code>item[0]</code>.</p></li>
<li><p>When applying an object style to a TextFrame, you also need to apply the paragraph style associated with the object style to the xml element&#8217;s parentStory as such: <code>[xmlElement].parentStory.appliedParagraphStyle = [objectParagraphStyle];</code></p></li>
<li><p>Scripts seem to run much faster with InDesign hidden, at least when you&#8217;re running them from Adobe&#8217;s ExtendScript Toolkit</p></li>
<li><p>To use images in XML, you must use <code>&lt;Image&gt;</code> as the tag. Then use the <code>href</code> attribute to specify where your linked image file is coming from. You must use the <code>file</code> protocol, as such: <code>&lt;Image href="file://images/image.tif"&gt;</code>. You can use either relative or absolute URLs to specify the location. It seems best to use relative, especially if you&#8217;re handing off the file to someone else. You can use either the single tag form: <code>&lt;Image /&gt;</code> or the two tag form: <code>&lt;Image&gt;&lt;/Image&gt;</code>, but if you have any text between the open and closing tags, the linked image will be replace with the text.</p></li>
<li><p><strong>Update 4/17/07:</strong> The solution to my most annoying problem: getting all the textFrame settings to match what you&#8217;ve specified in the Object Style, particularly vertical alignment:</p>

<pre><code>for (var i in [textFrame].textFramePreferences)
   {
   if ([textFrame].appliedObjectStyle.textFramePreferences[i] &amp;&amp; i != 'parent')
      {
      [textFrame].textFramePreferences[i] = [textFrame].appliedObjectStyle.textFramePreferences[i];
      }
}
</code></pre></li>
<li><strong>Update 4/30/07:</strong> When a textFrame is placed outside of the page boundaries, it isn&#8217;t possible to access it via a page reference as such <code>[document].[page].textframes</code>. Instead, use a spread, as such <code>[document].spreads.lastItem().textframes</code>.</li>
<li><strong>Update 8/14/07:</strong> If the first image in the XML can&#8217;t be found, you&#8217;ll be prompted  to select every image. It&#8217;s pretty annoying. If there are missing images later on in your XML, you&#8217;ll be prompted to selected them, but it will only occur for missing images.</li>
</ul>
]]></content:encoded>
      <dc:subject>Design</dc:subject>
      <dc:date>2006-12-15T08:03:43-05:00</dc:date>
    </item>

    <item>
      <title>Accessing Virtual Hosts from Virtual PC</title>
      <link>http://www.chriscassell.net/log/2006/09/01/accessing_virtu.html</link>
      <description>I often use Apache virtual hosts on my Mac when developing sites&amp;#8212;I almost always prefer to do initial development on...</description>
      <guid isPermaLink="false">785@http://www.chriscassell.net/log/</guid>
      <content:encoded><![CDATA[<p>I often use <a href="http://httpd.apache.org/docs/1.3/vhosts/">Apache virtual hosts</a> on my Mac when developing sites&#8212;I almost always prefer to do initial development on my machine and then upload to the public server for browser testing and final tweaking. Since I don&#8217;t want to do anything with dns entries, I simply edit my hosts file to point the development url to localhost. As a result of this, I have a lot of virtual hosts defined in httpd.conf and corresponding entries in my hosts file.</p>

<p>For instructions on setting up virtual hosts, see <a href="http://www.mezzoblue.com/archives/2004/08/05/virtual_host/">mezzoblue&#8217;s &#8220;Virtual Hosts for Dummies&#8221;</a>. One caveat with the article though; see below.</p>

<p>Yesterday, I needed to test such a site in IE running in VirtualPC. (For various reasons, I didn&#8217;t want to set it up on a public server to do the testing.) I followed the expected procedure of editing the hosts file on the Virtual PC (located in C:\Windows\system32\drivers\etc\hosts), using my Mac&#8217;s IP address as the destination IP. No go. Everything worked perfectly outside of VirtualPC, but attempting to access the site from Virtual PC resulted in a 404 error. This meant that it connected, but the server couldn&#8217;t find the file. I checked the Apache error log and discovered that Apache was looking for the file in the main webroot (/Library/WebServer/Documents/). Accessing the development url without a subdirectory or filename gave me the apache install page. </p>

<p>After pulling out my hair for quite some time (and incorrectly assuming that Windows was sending the request incorrectly), I finally discovered the problem. When I set up my virtual hosts, I had made my VirtualHost directives as described in the mezzoblue article:</p>

<pre><code>&lt;VirtualHost 127.0.0.1&gt;
ServerName dev.local
...
&lt;/VirtualHost&gt;
</code></pre>

<p>This is wrong! It works fine when the request is coming from localhost, ie. the same machine, but when the request comes from another machine (or a virtual machine), Apache treats the request as if it were requesting the first virtual host defined with <code>127.0.0.1</code>. So my request was directed to the first virtual host defined, which happened to be localhost.</p>

<p>The solution: use <code>*</code> (or <code>*:80</code> to specify port 80) instead of <code>127.0.0.1</code> in the VirtualHost directive as such:</p>

<pre><code>&lt;VirtualHost *&gt;
ServerName dev.local
...
&lt;/VirtualHost&gt;
</code></pre>
]]></content:encoded>
      <dc:subject>Geekiness</dc:subject>
      <dc:date>2006-09-01T09:34:30-05:00</dc:date>
    </item>


  </channel>
</rss>