<?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>creacog &#187; Mac OS X</title>
	<atom:link href="http://blog.creacog.co.uk/category/apple/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 16 Jul 2010 11:46:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>switched to svn via https on mac os x</title>
		<link>http://blog.creacog.co.uk/2010/07/05/switched-to-svn-via-https-on-mac-os-x/</link>
		<comments>http://blog.creacog.co.uk/2010/07/05/switched-to-svn-via-https-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 15:53:06 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=499</guid>
		<description><![CDATA[I finally decided it is time to switch to accessing subversion repositories via apache and the https scheme rather than &#8216;file://&#8217; scheme. Search revealed many articles touching the subject, but none providing exactly what I need. So documenting:

The problem and motivation
Up to date?
Getting apache to serve https
Configuring apache to serve subversion
Migrating existing working copies to [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided it is time to switch to accessing subversion repositories via apache and the https scheme rather than &#8216;file://&#8217; scheme. Search revealed many articles touching the subject, but none providing exactly what I need. So documenting:</p>
<ol>
<li><a href="#1">The problem and motivation</a></li>
<li><a href="#2">Up to date?</a></li>
<li><a href="#3">Getting apache to serve https</a></li>
<li><a href="#4">Configuring apache to serve subversion</a></li>
<li><a href="#5">Migrating existing working copies to the new scheme</a></li>
<li><a href="#6">Reference links to articles that helped</a></li>
</ol>
<h3><a name="1" ></a>Problem and motivation</h3>
<p>My main development machine is a Mac Pro running 10.6.4. My development projects are all kept outside my home directory on a second disc, one project per folder. Each project folder contains a subversion repository folder named &#8217;svn&#8217; along with one or more working copies.</p>
<p>For the last few years I have checked out working copies using the &#8216;file://&#8217; protocol. This seemed the simplest and most efficient approach in this single-user environment. I use svn clients such as SvnX, and Subclipse and occasionally the command line (for which having the <a title="Version Control with Subversion" href="http://svnbook.red-bean.com/" target="_blank">svnbook</a> to hand is a must). I have <a href="http://blog.creacog.co.uk/2008/06/12/cs4-betas/">groaned previously about DreamWeaver&#8217;s subversion integration &#8216;attempt&#8217;</a> failing to support the file protocal (remains unchanged in CS5).</p>
<p>There are a couple of things I want to solve:</p>
<p>Firstly, I occasionally use VisualStudio in Windows7 running in parallels on this machine to work with ASP.NET. In the past I&#8217;ve simply pointed it at the working copy via the network drive. Of course this means that I can&#8217;t undertake svn operations through Win7 since that working copy&#8217;s URL is alien to the Windows 7 instance. Not too much of an issue since it&#8217;s only a matter of switching back to a Mac window to do svn business. However there is an annoying problem with VisualStudio&#8217;s code completion where it is unable to correlate markup within an .aspx file with it&#8217;s .aspx.cs file when the site is on a parallels network drive. To solve this I need to check out a working copy to the Windows7 local disk.</p>
<p>Second, I have taken to getting out and about with my MacBook Pro. If I want to work on the move I need to check-out a working copy.</p>
<p>For both these situations using the &#8216;file&#8217; protocol is inappropriate. Attempts to check work back in are bound to generate svn errors as multiple svn systems attempt to obtain exclusive locks on the repository.</p>
<p>If however we can get to a single user/process touching repository files we can solve this problem &#8211; enter apache.</p>
<h3><a name="2" ></a>Up to date?</h3>
<p>First thing I did was get my subversion installation up to date. At time of writing 1.6.12. <a title="Community downloads" href="http://www.open.collab.net/downloads/community/" target="_blank">Installer available from CollabNet.</a> Just run the installer and follow the instructions. Note: this version installs into a different location to that installed by Apple. You may need to tell your client tools the location of the subversion to use.</p>
<p>That said, this isn&#8217;t going to help with DreamWeaver all that much. DW&#8217;s Subversion functionality is tightly tied to specific versions. Should you dare  touch a working copy with a later version (which changes some of the meta data) DreamWeaver will cease to work with that working copy. More information at this Adobe technote. So for now as far as I am concerned, until Adobe start releasing &#8216;<a title="Subversion resources for Dreamweaver CS4 and CS5 : SUBVERSION EXTENSIONS" href="http://kb2.adobe.com/cps/838/cpsid_83857.html#SubversioningExtensions" target="_blank">upgrader extensions</a>&#8216;,  DW&#8217;s subversion functionality remains useless and turned off with &#8216;.svn&#8217; files cloaked and <a title="la chose interactive svnX" href="http://www.lachoseinteractive.net/en/community/subversion/svnx/features/" target="_blank">svnX</a> used for commits.</p>
<h3><a name="3" ></a>Getting apache to serve https</h3>
<p>In the short term I have no plans to open access to my repositories via the net. However it is a future possibility so I think it worth getting going with https from the outset is worth it.</p>
<p>Mac OS X of course uses Apache for web-sharing. However it&#8217;s default state is not configured to serve SSL. To do so, we need a secure certificate and some configuration changes. As I am the only person accessing this machine, and I trust myself, I have no need to obtain a certificate from a commercial authority.</p>
<p>Steps taken to create the certificate and configure apache to use it&#8230;</p>
<h4>Create a certificate authority</h4>
<blockquote><p><code>mkdir /Library/Certs<br />
cd /Library/Certs<br />
perl /System/Library/OpenSSL/misc/CA.pl -newca<br />
[ENTER](to create new certificate)</code></p></blockquote>
<h4>Generate private key</h4>
<blockquote><p><code>openssl genrsa -des3 -out webserver.key 1024</code></p></blockquote>
<h4>generate a non-password protected copy of the key</h4>
<blockquote><p><code>openssl rsa -in webserver.key -out webserver.nopass.key</code></p></blockquote>
<h4>Generate a certificate request</h4>
<blockquote><p><code>openssl req -config /System/Library/OpenSSL/openssl.cnf \<br />
-new -key webserver.key -out newreq.pem -days 3650</code></p></blockquote>
<h4>Sign the certificate request</h4>
<blockquote><p><code>perl /System/Library/OpenSSL/misc/CA.pl -signreq</code></p></blockquote>
<p>You should now have created&#8230;</p>
<blockquote><p><code>/Library/Certs/demoCA/<br />
/Library/Certs/newcert.pem<br />
/Library/Certs/newreq.pem<br />
/Library/Certs/webserver.key<br />
/Library/Certs/webserver.nopass.key</code></p></blockquote>
<h4>Tell Apache to include SSL</h4>
<p>We now need to edit apache&#8217;s httpd.conf. You need to &#8217;sudo&#8217; to acquire sufficient privileges to do so, and need to take care. Optionally make a backup copy of httpd.conf.</p>
<blockquote><p><code>cd /private/etc/apache2/<br />
sudo cp httpd.conf httpd.conf.bak<br />
sudo pico httpd.conf</code></p></blockquote>
<p>Find the following line and uncomment it by removing it&#8217;s # prefix</p>
<blockquote><p><code>Include /private/etc/apache2/extra/httpd-ssl.conf</code></p></blockquote>
<p>Use CTRL-O then CTRL-X to exit pico and we now need to edit the file we just included&#8230;</p>
<blockquote><p><code>cd extra<br />
sudo pico httpd-ssl.conf</code></p></blockquote>
<p>Go through the file finding the following attributes ensuring they are uncommented and point to the SSL files we just created&#8230;</p>
<blockquote><p><code>SSLCertificateFile "/Library/Certs/newcert.pem"<br />
SSLCertificateKeyFile "/Library/Certs/webserver.nopass.key"<br />
SSLCACertificateFile "/Library/Certs/demoCA/cacert.pem"<br />
SSLCARevocationPath "/Library/Certs/demoCA/crl"</code></p></blockquote>
<p>You should now be able to restart apache either through System Preferences&#8230; &gt; Sharing &gt; Web sharing, or</p>
<blockquote><p><code>sudo apachectl graceful</code></p></blockquote>
<p>You can access any errors via the Console application. If all is well you should be able to enter https://localhost/ into your browser&#8217;s address bar and get a result.</p>
<h3><a name="4" ></a>Configuring apache to connect to and serve subversion</h3>
<p>Firstly, we are going to require a login. In my case I am going to create 3 login IDs. One for my normal workstation. Others for access via Win7 and my MacBook pro. So although all the work in the repro is by me, I can see which environment was used.<br />
To do this, we will create an authorisation file containing the three users and place it somewhere sensible. For me&#8230;</p>
<blockquote><p><code>cd /Volumes/projectdisc/projects<br />
mkdir subversion<br />
cd subversion<br />
mkdir authfile<br />
cd authfile<br />
sudo htpasswd -c svn_passwd mpuser<br />
sudo htpasswd svn_passwd mbpuser<br />
sudo htpasswd svn_passwd win7user</code></p></blockquote>
<p>you should now have svn_passwd contianing 3 users and their password hash strings. Returning to apache configuration, you may have noticed that the last line of httpd.conf reads&#8230;</p>
<blockquote><p><code>Include /private/etc/apache2/other/*.conf</code></p></blockquote>
<p>This includes, in alphabetical order, any further files ending .conf in the subfolder &#8216;other&#8217;. We will use this to add a svn.conf file to that folder&#8230;</p>
<blockquote><p><code>cd /private/etc/apache2/other<br />
sudo pico svn.conf</code></p></blockquote>
<p>Will open an editor with empty/new file svn.conf. The first line of which will be:</p>
<blockquote><p><code>LoadModule dav_svn_module /usr/libexec/apache2/mod_dav_svn.so</code></p></blockquote>
<p>After this, we will add configuration blocks, one per project repository&#8230;</p>
<blockquote><p><code>&lt;Location /svn0000-svntest&gt;<br />
DAV svn<br />
SVNPath /Volumes/projectdisc/projects/0000-svntest/svn<br />
AuthType Basic<br />
AuthName "subversion"<br />
AuthUserFile /Volumes/projectdisc/projects/subversion/authfile/svn_passwd<br />
Require valid-user<br />
SSLRequireSSL<br />
&lt;/Location&gt;</code></p></blockquote>
<p>Using keys ctrl-o then ctrl-x will save the new file and exit pico.</p>
<p>This configuration block tells apache to redirect svn0000-svntest to the repository at path /Volumes/projectdisc/projects/0000-svntest/svn. It requires a valid user authenticated against the file at /Volumes/projectdisc/projects/subversion/authfile/svn_passwd. Since this location will only ever be served through SSL, basic AuthType is ok and secure.</p>
<p>For apache to pick up this change, we need to restart it:</p>
<blockquote><p><code>sudo apachectl graceful</code></p></blockquote>
<p>One further step we need to make is to ensure apache is the only user/process to have control of the repository files. This shouldn&#8217;t be an issue as we are migrating access to be always via https and don&#8217;t want the file protocol used any more&#8230;</p>
<blockquote><p><code>cd Volumes/projectdisc/projects/0000-svntest/<br />
sudo chown -R www:www svn</code></p></blockquote>
<p>At this point you should be able to access the repository through your browser with url http://localhost/svn0000-svntest</p>
<p>You will receive an alert indicating that the certificate is not trusted. You can tell safari that it should always trust this certificate.</p>
<p>To add further repositories, we simply need to change ownership as above, then add the detail to the configuration by simply duplicating the code block above with the Location text and SVNPath modified accordingly. The rest can remain as is.</p>
<h3><a name="5" ></a>Migrating existing working copies to the new scheme</h3>
<p>My existing working copies each use the file:// url scheme. We need to convert them to use the new https scheme. This is pretty easy assuming you already have the Location added to svn.conf. Just cd to the working copy folder, use svn info to reveal the working copy&#8217;s url and relocate&#8230;</p>
<blockquote><p><code>cd Volumes/projectdisc/projects/0000-svntest/wc<br />
svn info<br />
svn switch --relocate file:///Volumes/projectdisc/projects/0000-svntest/svn/trunk/wc https://localhost/svn0000-svntest/trunk/wc</code></p></blockquote>
<p>If you are prompted that the certificate is invalid, use option p to permanently trust the certificate.</p>
<h3><a name="6" ></a>Reference links to articles that helped</h3>
<p>Reading the following, articles that helped me work out what I wanted to do&#8230;</p>
<ul>
<li><a title="10.5: Enable https on 10.5's Apache2 web server" href="http://www.macosxhints.com/article.php?story=20080628074917113" target="_blank">10.5: Enable https on 10.5&#8217;s Apache2 web server</a></li>
<li>
<div><a title="How to create a secure (HTTPS) OS X webserver " href="http://www.macosxhints.com/article.php?story=20041129143420344" target="_blank">How to create a secure (HTTPS) OS X webserver</a></div>
</li>
<li><a title="Using Subversion with Xcode 3 on Mac OS X Leopard" href="http://developer.apple.com/mac/articles/server/subversionwithxcode3.html" target="_blank">Using Subversion with Xcode 3 on Mac OS X Leopard</a></li>
<li><a title="Using Subversion with Dreamweaver CS5 - Part 3: Configuring Apache with Subversion support" href="http://www.adobe.com/devnet/dreamweaver/articles/using_subversion_pt3_print.html" target="_blank">Using Subversion with Dreamweaver CS5 &#8211; Part 3: Configuring Apache with Subversion support</a></li>
</ul>
<p>Along with chapters 3 and 10 of Subversion Version Control: Using The Subversion Version Control System in Development Projects ISBN-10: 0-13-185518-2 also <a title="Subversion Version Control: Using The Subversion Version Control System in Development Projects" href="http://my.safaribooksonline.com/0131855182" target="_blank">on Safari books online</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2010/07/05/switched-to-svn-via-https-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash in the pan</title>
		<link>http://blog.creacog.co.uk/2010/02/09/flash-in-the-pan/</link>
		<comments>http://blog.creacog.co.uk/2010/02/09/flash-in-the-pan/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 17:07:17 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=328</guid>
		<description><![CDATA[Observing and requesting better support for panning (horizontal as well as vertical scrolling) in Flash player across all OS platforms and runtimes via ubiquitous input devices.]]></description>
			<content:encoded><![CDATA[<p>So, Flash player <a title="Adobe Flash Player 10.1 beta 2" href="http://labs.adobe.com/technologies/flashplayer10/" target="_blank">10.1 is available in beta</a> and includes mobile device oriented new features such as <a title="flash.ui.Multitouch" href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/ui/Multitouch.html" target="_blank">multi-touch gestures</a>. Smart! Makes sense with Adobe strategy of delivering to emerging mobile devices. However there are a few million of us already using desktops and laptops with track pads, mouse wheels and mouse trac-balls who are feeling a bit &#8216;inhibited&#8217;. Flash is being used more and more to deliver applications either via browser or the AIR runtime. Such applications immediately feel somewhat inferior when a user cannot scroll or pan a view as they normally would native applications. Arguably &#8216;Rubbish&#8217; rather than &#8216;Rich&#8217; RIA in such cases.</p>
<p>For a long time the <a title="flash.events.MouseEvent" href="http://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObject.html#event:mouseWheel" target="_blank"><code>MOUSE_WHEEL</code></a> event has been part of the Flash API but only officially supported on the Windows platform (in browser). Original reasoning for not implementing support for the Mac platform can no-longer be argued as all Macs for a number of years have been shipped with the <a title="Mighty Mouse" href="http://en.wikipedia.org/wiki/Apple_Mighty_Mouse" target="_blank">Mighty Mouse </a>(2005) and now <a title="Magic Mouse" href="http://www.apple.com/magicmouse/" target="_blank">Magic Mouse </a>or <a title="Two finger Trackpad scrolling" href="http://support.apple.com/kb/HT3448" target="_blank">Trackpads</a>. All of which facilitate mousewheel style interactions. All of which go further and support horizontal as well as vertical scrolling interactions or &#8216;<strong>panning</strong>&#8216;. There are JavaScript workarounds for in-browser Flash on a Mac such as <a title="Mac OS X Mouse Wheel Support for ActionScript 3 Flash Applications (v.2+)" href="http://hasseg.org/blog/?p=138" target="_blank">this solution on hasseg.org</a> or this <a title="SWFObject project page" href="http://code.google.com/p/swfobject/" target="_blank">SWFObject</a> based <a title="AS3.0 MouseWheel on Mac OS X" href="http://blog.pixelbreaker.com/flash/as30-mousewheel-on-mac-os-x" target="_blank">pixelbreaker solution</a>. Fortunately Flash applications delivered via the <a title="Adobe AIR" href="http://www.adobe.com/products/air/" target="_blank">AIR runtime</a> can respond to <code>MOUSE_WHEEL</code> events without any such workarounds. However <code>MOUSE_WHEEL</code> currently only facilitates vertical scrolling in any case.</p>
<blockquote><p>We need to facilitate horizontal as well as vertical scrolling (panning) of content in response to events from ubiquitous input devices.</p></blockquote>
<p>A few prominent applications I use often, which suffer:</p>
<ul>
<li><a title="TweetDeckl" href="http://www.tweetdeck.com/" target="_blank">TweetDeck</a> : AIR based. High discoverability of lack of horizontal scrolling support</li>
<li><a title="Adobe Store UK" href="https://store2.adobe.com/cfusion/store/index.cfm?&amp;store=OLS-UK&amp;view=ols_prod&amp;category=/Applications/WebPremium&amp;distributionMethod=FULL&amp;nr=0&amp;promoid=ELTFM#view=ols_prod&amp;category=/Applications/WebPremium&amp;store=OLS-UK&amp;loc=en_gb" target="_blank">Adobe online store UK</a> : In browser Flex application &#8211; Flash being used in an attempt to emulate HTML &#8211; no vertical scroll wheel support for Mac users</li>
<li><a title="Flash Builder" href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">Adobe Flash builder</a> : Design view (Java application with Flash based view)</li>
<li><a title="Flash Catalyst" href="http://labs.adobe.com/technologies/flashcatalyst/" target="_blank">Adobe Catalyst</a> : Art-board view (Java application with Flash based view)</li>
</ul>
<p>Adobe actively invite comment and suggestions on their products. More widely/easily through <a title="Feature Request/Bug Report Form" href="https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform" target="_blank">the Feature request/bug report form</a>. They have opened up the bug tracking system for a number of products. Flash player being one of them. There is an active bug report with regard to this issue and I would encourage anyone with an opinion to contribute to the discussion and/or add weight by voting. Just sign up and access <a href="https://bugs.adobe.com/jira/browse/FP-1262" target="_blank">FP-1262</a>. There is an active drive from within Adobe to <a title="Help improve Flash Player 10.1 and AIR 2.0" href="http://www.webkitchen.be/2010/02/08/help-improve-flash-player-10-1-and-air-2-0/" target="_blank">help from the community to improve the quality of Flash Player and AIR</a>.</p>
<p>As for the solution I think I&#8217;d like to see something along the lines of&#8230; Extending the <a title="flash.display.InteractiveObject" href="http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/InteractiveObject.html" target="_blank"><code>flash.display.InteractiveObject</code></a> with a &#8216;<code>panEnabled</code>&#8216; boolean property defaulted to <code>false</code> which, when <code>true</code>, allows the object&#8217;s Panning behaviour/event broadcasting (akin to <a title="doubleClickEnabled" href="http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/InteractiveObject.html#doubleClickEnabled" target="_blank">doubleClickEnabled</a> mechanism). So, when panEnabled is true, if the mouse pointer is over the InteractiveObject, and the user makes a &#8216;pan&#8217; gesture, the frontmost panEnabled InteractiveObject broadcasts <code>flash.events.MouseEvent.MOUSE_PAN</code> events containing with the additional properties : <code>offsetX</code> and <code>offsetY</code>. Text based InteractiveObjects should default to <code>panEnabled = true</code>. Further, I&#8217;d quite like to see mechanisms to facilitate behaviours of nested pan-able objects. E.g. on a Mac, the front-most display object gets scrolled until it can scroll no further, then if the user continues the scroll input, the containing display object then scrolls.</p>
<p>In rounding up, the best place to contribute your opinions on this subject and have them heard by Adobe is here : <a href="https://bugs.adobe.com/jira/browse/FP-1262" target="_blank">FP-1262</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2010/02/09/flash-in-the-pan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editor bug in Mac OS X 10.6.1</title>
		<link>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/</link>
		<comments>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 14:23:03 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=298</guid>
		<description><![CDATA[UPDATE 22 June 2010 : Further to my even earlier bug report (FB-9398) FlashApe has posted a work around by changing a Snow Leopard system preference.
UPDATE 10-Dec-2009: I&#8217;m pretty convinced now that this is an editor bug, not a Mac OS X bug. Essentially the editors are using default OS behaviour which I think is tailored [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 22 June 2010</strong> : Further to my even earlier bug report (<a title="variable:type treated as a single word when navigating the cursor" href="http://bugs.adobe.com/jira/browse/FB-9398" target="_blank">FB-9398</a>) <a title="Mac eclipse word boundary issue fix" href="http://www.visible-form.com/blog/mac-eclipse-word-boundary-issue-fix/" target="_blank">FlashApe has posted a work around</a> by changing a Snow Leopard system preference.</p>
<p><strong>UPDATE 10-Dec-2009</strong>: I&#8217;m pretty convinced now that this is an editor bug, not a Mac OS X bug. Essentially the editors are using default OS behaviour which I think is tailored for natural language editing rather than programme-code editing. Original post follows&#8230;</p>
<p>I&#8217;m currently finding in <strong>some</strong> applications that &#8220;word1.word2.word3&#8243; is being treated as a single word as far as the Option-Left Arrow and Option-Right Arrow is concerned on my Mac. This keyboard shortcut should hop word by word. But currently hops from one end to the other. Not an issue for most users, but pretty serious for a programmer working with dot-notation syntax.</p>
<p>I first experienced this working with ActionScript in Adobe&#8217;s Flash Builder Beta 2 and logged <a title="can '.' and ':' be recognised as word-breaks when using cursor key combinations" href="http://bugs.adobe.com/jira/browse/FB-23660" target="_blank">a bug report</a>, but further investigation reveals that some unrelated applications show the same behaviour. I have now logged a bug with Apple, but in the meantime I would be interested to know if others are experiencing the same? Or if you are running 10.6.1 and not seeing this issue? Please add a comment &#8211; I&#8217;m still trying to work out if it is something installed on my system. I don&#8217;t think it is basic user preferences as I am seeing the same in another user-account on this system.</p>
<p>Editors <strong>incorrectly</strong> treating &#8220;word1.word2.word3&#8243; as a single word re opt-left and opt-right:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">FlexBuilder 3 MXML and AS editors</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">FlashBuilder 4 Beta2 MXML and AS editors</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple Mail</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple OS textfields including:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Spotlight</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Finder window findfield</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Safari: form-textfields + google search field</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">editors with *correct* opt-left opt-right behaviour</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">TextWrangler</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Adobe Flash CS4 IDE ActionScript Editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Adobe DreamWeaver CS4 editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple XCode editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple Finder &#8211; filename clicked and editable when renaming</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Firefox form-textfields and goodle search field</div>
<ul>
<li>FlexBuilder 3 MXML and AS editors</li>
<li>FlashBuilder 4 Beta2 MXML and AS editors</li>
<li>Apple Mail</li>
<li>Apple OS TextFields including:</li>
<li><span style="white-space: pre;"> </span>Spotlight</li>
<li><span style="white-space: pre;"> </span>Finder window find-file</li>
<li><span style="white-space: pre;"> </span>Safari: form-textfields &amp; google search field</li>
</ul>
<p>Editors showing <strong>correct</strong> opt-left opt-right behaviour:</p>
<ul>
<li>TextWrangler</li>
<li>Adobe Flash CS4 IDE ActionScript Editor</li>
<li>Adobe DreamWeaver CS4 editor</li>
<li>Apple XCode editor</li>
<li>Apple Finder &#8211; filename clicked and editable when renaming</li>
<li>Firefox form-textfields and goodle search field</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No CMD-SPACE in Flash Builder since Snow Leopard</title>
		<link>http://blog.creacog.co.uk/2009/09/14/no-cmd-space-in-flash-builder-since-snow-leopard/</link>
		<comments>http://blog.creacog.co.uk/2009/09/14/no-cmd-space-in-flash-builder-since-snow-leopard/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 16:30:27 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=236</guid>
		<description><![CDATA[Ok so CMD-SPACE is the default short cut to launch Spotlight. But I wanted that combo for &#8216;content assist&#8217; with Flex/Flash Builder. Until installing Snow Leopard, that is what I had for a few years, and Spotlight relegated to CTRL-SPACE. However since SnowLeopard, the CMD-SPACE combo is not transmitted to Flash Builder. I assume this [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so CMD-SPACE is the default short cut to launch Spotlight. But I wanted that combo for &#8216;content assist&#8217; with Flex/Flash Builder. Until installing Snow Leopard, that is what I had for a few years, and Spotlight relegated to CTRL-SPACE. However since SnowLeopard, the CMD-SPACE combo is not transmitted to Flash Builder. I assume this is down to Snow Leopard somehow reserving the combination. So begrudgingly I have returned to defaults&#8230;</p>
<p>Spotlight : CMD-SPACE<br />
Flash Builder content assist : CTRL-SPACE</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/09/14/no-cmd-space-in-flash-builder-since-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>flash.display.BitmapData gotcha &#8211; well gotme for a while</title>
		<link>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/</link>
		<comments>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 01:45:34 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=187</guid>
		<description><![CDATA[The documentation is correct, so i have no excuse, but I didn&#8217;t initially read much beyond the signature of the constructor&#8230;
public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF)
I needed a transparent bitmap. Reading the default &#8220;transparent:Boolean = true&#8221;, I assumed by simply supplying width and height, a transparent bitmap is what I would [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="BitmapData" href="http://livedocs.adobe.com/flex/3/langref/flash/display/BitmapData.html#BitmapData()">documentation is correct</a>, so i have no excuse, but I didn&#8217;t initially read much beyond the signature of the constructor&#8230;</p>
<p>public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF)</p>
<p>I needed a transparent bitmap. Reading the default &#8220;transparent:Boolean = true&#8221;, I assumed by simply supplying width and height, a transparent bitmap is what I would get. Not so! I got a white rectangle. The reason being, that the default fill colour is 100% white. (The first pair of FFs representing the alpha in ARGB).</p>
<p>At first it would seem slightly unintuitive for the second default to conflict with the first, until one realises that the &#8216;transparent&#8217; flag is there to indicate whether the object will support transparency or not. Not to state that it should be initially created transparent. Supporting transparency increases data size from 24 bits per pixel to 32 bits per pixel.</p>
<p>So what i should have done :</p>
<p>bmd = new BitmapData( width, height, true, 0 );</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>updated svn+ssh with DreamWeaver article</title>
		<link>http://blog.creacog.co.uk/2009/02/16/updated-svnssh-with-dreamweaver-article/</link>
		<comments>http://blog.creacog.co.uk/2009/02/16/updated-svnssh-with-dreamweaver-article/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 16:54:35 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[DreamWeaver]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=158</guid>
		<description><![CDATA[After various Mac system and security updates found that ssh+svn would result in errors&#8230;
svnserve: Command not found.
svn: Connection closed unexpectedly
Updated my previous article on using svn+ssh with DreamWeaver with a solution.
]]></description>
			<content:encoded><![CDATA[<p>After various Mac system and security updates found that ssh+svn would result in errors&#8230;</p>
<pre>svnserve: Command not found.
svn: Connection closed unexpectedly</pre>
<p><a title="update" href="http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/#Update16-Feb-2009">Updated</a> my previous article on using <a title="migrate from file to svn+ssh for Dreamweaver CS4 on Mac" href="http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/">svn+ssh with DreamWeaver</a> with a solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/02/16/updated-svnssh-with-dreamweaver-article/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apple security update 2009-001 breaking PowerPC apps ?</title>
		<link>http://blog.creacog.co.uk/2009/02/15/apple-security-update-2009-001-breaking-powerpc-apps/</link>
		<comments>http://blog.creacog.co.uk/2009/02/15/apple-security-update-2009-001-breaking-powerpc-apps/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 14:49:00 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=152</guid>
		<description><![CDATA[Since installing this update I observe on my intel based mac that two PowerPC based apps now crash immediately on launch. Logging &#8220;Exited abnormally: Illegal instruction&#8221; to the console. The two applications affected so far on my system are CanoScan Toolkit X and more importantly Retrospect. Unfortunately the installers for both applications also fail with [...]]]></description>
			<content:encoded><![CDATA[<p>Since installing this update I observe on my intel based mac that two PowerPC based apps now crash immediately on launch. Logging &#8220;Exited abnormally: Illegal instruction&#8221; to the console. The two applications affected so far on my system are CanoScan Toolkit X and more importantly Retrospect. Unfortunately the installers for both applications also fail with the same error. I worked around the canon issue by installing the LiDE 35 driver (for my LiDE 50) &#8211; then using &#8220;Import image&#8230;&#8221; in Preview. However not found a workaround for Retrospect yet. Looks to me like Rosetta is not working properly, although I have one PowerPC process running &#8220;RetroRun&#8221;.</p>
<p>Annoying and scary for my backups to be crippled in this way. Investigating. Not sure it was the security update as yet, only &#8216;evidence&#8217; being the timing of the failures.</p>
<p><strong>Update: Solved&#8230;</strong></p>
<p>The following typed into terminal, followed by a re-start fixed the problem&#8230;</p>
<pre>sudo update_prebinding -root / -force</pre>
<p>As per instructions by <a title="User Profile: Charles Minow" href="http://discussions.apple.com/profile.jspa?userID=220797">Charles Minow</a> in <a title="Topic : Rosetta not working :S" href="http://discussions.apple.com/thread.jspa?messageID=8996871">this thread</a> on the Apple support discussions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/02/15/apple-security-update-2009-001-breaking-powerpc-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>migrate from file to svn+ssh for Dreamweaver CS4 on Mac</title>
		<link>http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/</link>
		<comments>http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 20:53:57 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[DreamWeaver]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/</guid>
		<description><![CDATA[I&#8217;ve been using subversion for a few years now. Initially used through subclipse within Eclipse/Flex Builder then later also used with Dreamweaver sites using tools such as svnX and scplugin along with the &#8220;Cloak SCM directories&#8221; command. In most cases to date, I have used the &#8220;file:///&#8221; protocol as this provides direct and efficient access [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using subversion for a few years now. Initially used through <a title="subclipse" href="http://subclipse.tigris.org/">subclipse</a> within Eclipse/Flex Builder then later also used with Dreamweaver sites using tools such as <a title="svnX" href="http://www.lachoseinteractive.net/en/community/subversion/svnx/features/">svnX</a> and <a title="scplugin" href="http://scplugin.tigris.org/">scplugin</a> along with the &#8220;Cloak SCM directories&#8221; command. In most cases to date, I have used the &#8220;file:///&#8221; protocol as this provides direct and efficient access to repositories which are available within the local system or local area network. I had been looking forward to subversion integration in Dreamweaver and when the CS4 public beta was released I had <a href="http://blog.creacog.co.uk/2008/06/12/cs4-betas/">a bit of a moan about the absence of the file protocol</a>. Despite my efforts in the beta&#8217;s forum and the Dreamweaver wish-list, it remains absent. So now to look to using a different protocol.</p>
<p>There is a helpful <a href="http://www.adobe.com/devnet/dreamweaver/articles/using_subversion_pt1.html">3 part article on the Adobe site</a> describing how to get started with dreamweaver CS4 and svn. In <a title="Configuring Apache with Subversion support" href="http://www.adobe.com/devnet/dreamweaver/articles/using_subversion_pt3.html">part 3</a>, the author chooses to present how jump through the hoops to get Apache to serve and access a local repository over http. There are a number of reasons why this approach is not right for me:</p>
<ol>
<li>svn served using mod_dav_svn through Apache over http is less efficient than svnserve through ssh.</li>
<li>I have multiple repositories, one per project and all stored on a separate project disc. To use the http method, I would need to edit httpd.conf to add a directory mapping and manage access rights for each repository.</li>
</ol>
<p>By using svn+ssh, svnserve launches on demand (no need for a running daemon) and we have access to all the paths available to the ssh user logged in.</p>
<p>So, to get this going on Mac OS X 10.5&#8230;</p>
<p>Turn on &#8216;Remote Login&#8217; in the &#8216;Sharing&#8217; system preferences. Rather than using the default of allowing access for all users, I restricted access to only my user.</p>
<p>At this point you should be able to use sv+ssh urls from within terminal. e.g.</p>
<p><code>% svn info svn+ssh://user@computer.local/Volumes/full/path/to/repository</code></p>
<p>However if you try to use the same connection in a tool such as svnX you are likely to get error : ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory</p>
<p>To get around this we really need to establish public key authentication, which also serves to avoid you having to use your user account&#8217;s name and password for the connection.  Based upon <a href="http://sial.org/howto/openssh/publickey-auth/">this article on OpenSSH</a>, I did the following:</p>
<blockquote><p><code>% cd<br />
% cd .ssh<br />
% ssh-keygen -q -f id_rsa -t rsa</code></p></blockquote>
<p>If the .ssh directory doesn&#8217;t exist, then use mkdir to create it. ssh-keygen creates both public and private keys.<br />
<a id="Update16-Feb-2009" name="Update16-Feb-2009"></a></p>
<blockquote><p><strong>Update 16-Feb-2009:</strong> Since writing this and applying an number of mac system and security updates i today found that any attempt to ssh+svn would result in&#8230;</p>
<pre>svnserve: Command not found.
svn: Connection closed unexpectedly
[exit=1]</pre>
<p>To solve the issue (based on notes <a title="My svnserve binary is in a directory that isn't on my users' default PATHs, they use svn+ssh, and I can't figure out how to modify their PATH so that they can run svnserve." href="http://subversion.tigris.org/faq.html#ssh-svnserve-location">here</a> and <a title="This file describes how to use the sshd &quot;command&quot; directive to set up svn+ssh" href="http://svn.collab.net/repos/svn/trunk/notes/ssh-tricks">here</a>) I prefixed line 1 of id_rsa.pub with:</p>
<pre>command="/usr/bin/svnserve -t"</pre>
</blockquote>
<p>As this is my one and only public key, I simply uses the following line to copy the public key to a file called &#8216;authorized_keys&#8217;. However if you are dealing with more than one key, you should use the guaidance in the <a href="http://sial.org/howto/openssh/publickey-auth/">OpenSSH article</a> to append the key to that file.<br />
<code>%  cp id_rsa.pub authorized_keys</code><br />
Once this has been done, attempting to use your svn+ssh  url within svnX should now work. Note: you may get the error re-displayed, but it will dismiss to be replaced by a current view of the repository. Also the first time, you will be prompted for the password. Here you need to enter the passphrase you used when you created the rsa key. I chose for this to be remembered in my keychain to avoid having to retype it in future.</p>
<p>With this done, you are now ready to contemplate setting up Dreamweaver. You need to be aware that an subversion working copy knows the url to the repository from which it was checked out. If your existing DW local copies of sites are subversion working copies checked out like mine via the &#8216;file:///&#8217; protocol, you need to migrate them to &#8217;svn+ssh://&#8217; so:</p>
<ol>
<li>Firstly ensure that everything you need to retain from your working copy has been committed to the repository</li>
<li>Drag your working copy to the trash</li>
<li>Create a new folder to contain your local site</li>
<li>In Dreamweaver create a new site and manage the settings accordingly, pointing the local site to the folder you just created.</li>
<li>In the version control category of the site definition, choose &#8216;Access Subversion&#8217;</li>
<li>Protocol SVN+SSH</li>
<li>Server address is your local computer. i.e. &#8216;computername.local&#8217;</li>
<li>Repository path is a full path to the repository then further on down to the folder containing the site. In my case, each repository is split into trunk, branches and tags folders, and my site folder named &#8216;webroot&#8217; is a sub-directory of trunk. So my path will read:  <code>/Volumes/full/path/to/repository/trunk/webroot</code></li>
<li>Server port remains default</li>
<li>Provide your user name</li>
<li>Leave password blank. The connection will be authenticated using the RSA public key</li>
<li>Click the test button and you should get the message &#8220;Server and project are accessible!&#8221;</li>
<li>CLick &#8216;Ok&#8217;, to leave the site definition</li>
<li>In the file view, right-click the site folder and choose Version control &gt; Get latest versions</li>
<li>The latest versions of the files in the repository will be checked out of the repository into your local folder which will now become a working copy.</li>
</ol>
<p>Job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2008/11/02/migrate-from-file-to-svnssh-for-dreamweaver-cs4-on-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>sensible(ish) code print from flex builder (on MacOS X)</title>
		<link>http://blog.creacog.co.uk/2007/09/22/sensibleish-code-print-from-flex-builder-on-macos-x/</link>
		<comments>http://blog.creacog.co.uk/2007/09/22/sensibleish-code-print-from-flex-builder-on-macos-x/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 23:12:16 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/09/22/sensibleish-code-print-from-flex-builder-on-macos-x/</guid>
		<description><![CDATA[Continuing the theme of occasional Flex Builder hints and tips&#8230;
Occasionally I need to see code printed on paper. Unfortunately the printing capabilities of Flex Builder, or more specifically in this case, Eclipse, are a bit messy&#8230;

the font is huge, and only 49 lines fit on an A4 page
if you have a background colour set to [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing the theme of occasional Flex Builder hints and tips&#8230;</p>
<p>Occasionally I need to see code printed on paper. Unfortunately the printing capabilities of Flex Builder, or more specifically in this case, Eclipse, are a bit messy&#8230;</p>
<ul>
<li>the font is huge, and only 49 lines fit on an A4 page</li>
<li>if you have a background colour set to your code window, it gets printed &#8211; decimating your ink-tanks</li>
<li>printing is a two dialogue process &#8211; you have to go through Page Setup each and every time.</li>
</ul>
<p>Of course in the actual Print dialogue, you have the standard Mac ability to change the page layout, paper handling etc, and save that detail in a pre-set. However&#8230;</p>
<p>The key things I want to achieve is to print 2up full duplex black and white, which gives me four pages of code per sheet of A4, and with a slightly smaller font size I get a more respectable 68 lines of code per &#8216;page&#8217;.</p>
<p>However I&#8217;ve found the following approach, once set-up, a little more convenient, and becomes a one-click print&#8230;</p>
<p>The Mac has a GNU enscript installed which converts text files to PostScript to send directly to CUPS. In my case I had to update the old Gimp-Print drivers to the current Guten-Print drivers in order to achieve duplex printing.</p>
<p>More information on <a href="http://gutenprint.sourceforge.net/index.php3" title="Gutenprint Printer Drivers">Guten-Print and access to the drivers on SourceForge</a>.  The DMG contains good documentation and a simple package installer.</p>
<p>Once the new drivers are installed, and I&#8217;d recommend a new, additional, print queue be set up with appropriate defaults for your code printing, you need to set Eclipse to run an external script to print the currently active code window. From the menu: Run &gt; External Tools &gt; External Tools&#8230;</p>
<ul>
<li>Name: enscript</li>
<li>Location:  /usr/bin/enscript</li>
<li>Arguments: -2rT4v -DDuplex:true -diP5000 ${container_loc}/${resource_name}</li>
</ul>
<p>Obviously you&#8217;ll need to tweak the arguments according to your personal print configuration.</p>
<p><img src="http://blog.creacog.co.uk/wp-content/uploads/2007/09/externalscript.png" alt="External Tools Dialogue" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/09/22/sensibleish-code-print-from-flex-builder-on-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex, mac, external browser</title>
		<link>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/</link>
		<comments>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 23:21:48 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/</guid>
		<description><![CDATA[Ted Patrick has been quite prolific of late at publishing little productivity hints and tips. I think this one from a couple of weeks ago is worth echoing and noting the workaround for the problem it raises on a Mac.
We are setting up Builder to launch the help pages into an external browser. The key [...]]]></description>
			<content:encoded><![CDATA[<p>Ted Patrick has been quite prolific of late at publishing little productivity hints and tips. I think <a href="http://www.onflex.org/ted/2007/08/flex-builder-tip-preferences-general.php" title="Flex Builder Tip - Preferences &gt; General &gt; Web Browser">this one from a couple of weeks ago</a> is worth echoing and noting the workaround for the problem it raises on a Mac.</p>
<p>We are setting up Builder to launch the help pages into an external browser. The key advantage of which being that the code samples can then be copy/pasted. On a Mac there is a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=95017" title="Bugzilla – Bug 95017">recognised bug in eclipse</a> that if you choose Firefox as the external browser, and it is NOT your normal system default browser. Basically Eclipse attempts to launch a second instance of Firefox which will generate the &#8220;Only one copy of Firefox can be open at a time&#8221; dialogue&#8230;</p>
<p><img src="http://blog.creacog.co.uk/wp-content/uploads/2007/08/firefoxclose.jpg" alt="Firefox close dialogue" /></p>
<p>So to get around this, you have two options.</p>
<p>Option 1, if you have Firefox as your default browser for the entire system, simply choose &#8220;Default system Web browser&#8221; in the Eclipse preferences panel.</p>
<p>Option 2, if you want to keep something else set as your system default browser e.g. Safari, but would use Firefox for displaying Flex Builder help, you need to either edit or create a new external browser entry using a command structure as per <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=95017#c5" title="comment 5">comment 5 on the eclipse bug sheet</a>. Essentially the following settings work&#8230;</p>
<ul>
<li>Location: /usr/bin/open</li>
<li>Parameters:  -a firefox %URL%</li>
</ul>
<p><img src="http://blog.creacog.co.uk/wp-content/uploads/2007/09/fbprefs.jpg" alt="Flex Builder &gt; General &gt; Web Browser &gt;Edit external browser" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
