<?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>Otaqui.Com &#187; Professional</title>
	<atom:link href="http://otaqui.com/blog/category/professional/feed/" rel="self" type="application/rss+xml" />
	<link>http://otaqui.com/blog</link>
	<description>Pete Otaqui's blog about web development and everything else</description>
	<lastBuildDate>Wed, 23 Jun 2010 09:55: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>Adobe CS3 &#8220;licensing for this product has stopped working&#8221; fix</title>
		<link>http://otaqui.com/blog/699/adobe-cs3-licensing-for-this-product-has-stopped-working-fix/</link>
		<comments>http://otaqui.com/blog/699/adobe-cs3-licensing-for-this-product-has-stopped-working-fix/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 09:55:00 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=699</guid>
		<description><![CDATA[After getting a new computer, and restoring my old system from a Time Machine backup, I found my Adobe Web Premium CS3 stopped working. Every application I started (Photoshop, Fireworks, Flash, etc) gave the error message: Licensing for this product has stopped working. After following every suggestion I could find in Adobe&#8217;s knowledge base and [...]]]></description>
			<content:encoded><![CDATA[<p>After getting a new computer, and restoring my old system from a Time Machine backup, I found my Adobe Web Premium CS3 stopped working.  Every application I started (Photoshop, Fireworks, Flash, etc) gave the error message:</p>
<blockquote><p>Licensing for this product has stopped working.</p></blockquote>
<p>After following every suggestion I could find in Adobe&#8217;s knowledge base and various online articles, I still couldn&#8217;t get any of the applications to start.</p>
<p>As a final act of complete desperation, after many rounds of removal-reboot-reinstall, I finally ran the installer and chose a product that I had not installed before (Contribute).  Once that was done I started up the new app, and it asked me for my license key &#8211; which I entered and the app started.  Then I tried Photoshop and it started up fine!</p>
<p>So &#8211; if you didn&#8217;t do a complete install int he first place, one of the easiest things could be to add a new app to your install, and get that to reset your licensing for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/699/adobe-cs3-licensing-for-this-product-has-stopped-working-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public Opinion</title>
		<link>http://otaqui.com/blog/695/public-opinion/</link>
		<comments>http://otaqui.com/blog/695/public-opinion/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 08:13:02 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=695</guid>
		<description><![CDATA[News networks giving a greater voice to viewers because the social web is so popular are like a chef on the Titanic who, seeing the looming iceberg and fleeing customers, figures ice is the future and starts making snow cones. via XKCD.]]></description>
			<content:encoded><![CDATA[<blockquote><p>News networks giving a greater voice to viewers because the social web is so popular are like a chef on the Titanic who, seeing the looming iceberg and fleeing customers, figures ice is the future and starts making snow cones.</p></blockquote>
<p>via <a href="http://xkcd.com/756/">XKCD</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/695/public-opinion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If We Had A Web Of Data I Would Build &#8230;</title>
		<link>http://otaqui.com/blog/643/if-we-had-a-web-of-data-i-would-build/</link>
		<comments>http://otaqui.com/blog/643/if-we-had-a-web-of-data-i-would-build/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 14:24:45 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[linked-data]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=643</guid>
		<description><![CDATA[Georgi Kobilarov has a post up asking what would you build with a function web of data and I have a few ideas. These all need fleshing out (and probably spell-checking ;), but if I didn&#8217;t post them now I might never get round to it! Shopping I think there are a few ways you [...]]]></description>
			<content:encoded><![CDATA[<p>Georgi Kobilarov has a post up asking <a href="http://blog.georgikobilarov.com/2010/04/with-a-web-of-data-what-would-you-do/">what would you build with a function web of data</a> and I have a few ideas.  These all need fleshing out (and probably spell-checking ;), but if I didn&#8217;t post them now I might never get round to it!</p>
<p><strong>Shopping</strong></p>
<p>I think there are a few ways you could use a web of linked data to make online grocery shopping better &#8211; comparing prices across stores, create shopping lists from recipes, and get recipes from lists of goods.</p>
<p><strong>Recruitment</strong></p>
<p>With jobs and resumés available as linked data, recruitment could become much more machine-enabled, giving managers better abilities to find people themselves rather than relying on agents who don&#8217;t always understand their clients&#8217; business or industry.  It could also help people looking for work in a similar way.  Types of skill, training and qualification could also be linked in, as could &#8220;linkedin&#8221; style personal recommendations.</p>
<p><strong>E-Learning</strong></p>
<p>Serious attempts have been made at making learning materials shareable and reusable.  As part of the data web, finding and consuming these materials becomes easier but more than that we could build a development plan generator.  Competency can be aligned to skills or training received, something that could be useful to government departments, schools, universities and business.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/643/if-we-had-a-web-of-data-i-would-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BBC Fisheye Greasemonkey Script</title>
		<link>http://otaqui.com/blog/646/bbc-fisheye-greasemonkey-script/</link>
		<comments>http://otaqui.com/blog/646/bbc-fisheye-greasemonkey-script/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 09:15:08 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=646</guid>
		<description><![CDATA[Greasemonkey script to reformat &#8220;Author&#8221; select elements on the BBC&#8217;s Fisheye repository browser, which are ridiculously long (because they contain a considerable chunk of certificate data) which messes with the whole page layout. Shrinking the selects to a more reasonable width fixes this and makes the site more usable. http://otaqui.com/code/bbc-fisheye/bbc-fisheye.user.js // ==UserScript== // @name BBC [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.greasespot.net/">Greasemonkey</a> script to reformat &#8220;Author&#8221; select elements on the BBC&#8217;s Fisheye repository browser, which are ridiculously long (because they contain a considerable chunk of certificate data) which messes with the whole page layout.  Shrinking the selects to a more reasonable width fixes this and makes the site more usable.</p>
<p><a href="http://otaqui.com/code/bbc-fisheye/bbc-fisheye.user.js">http://otaqui.com/code/bbc-fisheye/bbc-fisheye.user.js</a></p>
<pre class="brush: javascript">
// ==UserScript==
// @name           BBC FishEye
// @namespace      http://otaqui.com/code/bbc-fisheye
// @description    Make BBC&#039;s Fisheye look more like it should
// @include        https://fisheye.dev.bbc.co.uk/*
// ==/UserScript==
var elems = document.evaluate(
    &#039;//select[@name=&quot;wbauthor&quot;]&#039;,
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null
);
var i=0;
var sel;
while ( sel = elems.snapshotItem(i++) ) sel.style.width = &#039;200px&#039;;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/646/bbc-fisheye-greasemonkey-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash Script for Serving Multiple Trac Projects and Sharing Authentication</title>
		<link>http://otaqui.com/blog/600/bash-script-for-serving-multiple-trac-projects-and-sharing-authentication/</link>
		<comments>http://otaqui.com/blog/600/bash-script-for-serving-multiple-trac-projects-and-sharing-authentication/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 08:55:25 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=600</guid>
		<description><![CDATA[I use Trac for personal projects, and I share some of these out with people as required. I use tracd (TracStandalone) for this, rather than a full-blown apache setup, since it serves my needs quite nicely and is a lot easier to turn on and off as required without tweaking apache config and rebooting the [...]]]></description>
			<content:encoded><![CDATA[<p>I use Trac for personal projects, and I share some of these out with people as required.  I use tracd (TracStandalone) for this, rather than a full-blown apache setup, since it serves my needs quite nicely and is a lot easier to turn on and off as required without tweaking apache config and rebooting the whole webserver.</p>
<p>All my projects live under a single parent directory, and I prefer to share a single users digest file between them all &#8211; so ideally I wanted to share a single tracd to run all my projects.  This is fairly straightforward on the command line:</p>
<pre class="brush: bash">
tracd --hostname=webhost.com -p 9876 \
--auth=&quot;*,/path/projects/people.htdigest,Realm&quot; \
/path/projects/p1 \
/path/projects/p2
</pre>
<p>That is &#8230;.<br />
Line 1 &#8211; start tracd for a given hostname and port,<br />
Line 2 &#8211; specify auth for all projects (*), the auth file and the &#8220;Realm&#8221; you specified when creating the file with apache&#8217;s htdigest command<br />
Lines 3+ &#8211; specify as many projects as you want to run</p>
<p>This is ok with a couple of projects, but gets unwieldy quite quickly.  What I needed was a little shell script to open up all projects under a given directory quickly.  Here&#8217;s what I came up with:</p>
<pre class="brush: bash">
#!/bin/bash

# make / truncate a temp file to store names:
temp=/tmp/tracdpaths
&gt; $temp

# specify base directory:
base=/path/projects/

# output all subdirectories to temp file:
find $base -maxdepth 1 -mindepth 1 -type d \
-exec echo -n &quot;{} &quot; &gt; $temp \;

# now start tracd
tracd --hostname=webhost.com -p 9876 \
--auth=&quot;*,/path/projects/people.htdigest,Realm&quot; \
`cat $temp`
</pre>
<p>Essentially this script uses &#8216;find&#8217; to get all of the directories exactly 1 level down from your projects directory, and will echo their paths to a temp file (suppressing the newlines).  It will then run run tracd, appending the contents of this file to the end of the call.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/600/bash-script-for-serving-multiple-trac-projects-and-sharing-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom User Agent with Cucumber Tests and Webrat in Mechanize Mode</title>
		<link>http://otaqui.com/blog/541/custom-user-agent-with-cucumber-tests-and-webrat-in-mechanize-mode/</link>
		<comments>http://otaqui.com/blog/541/custom-user-agent-with-cucumber-tests-and-webrat-in-mechanize-mode/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 12:08:50 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=541</guid>
		<description><![CDATA[It&#8217;s pretty straightforward to set a custom user agent with mechanize if you&#8217;re using it directly, KickAssLabs has a good example. If you&#8217;re using Mechanize through Webrat though, things are a little different. The nice thing though, is that you can do this in a step definition &#8211; allowing features to be based on different [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s pretty straightforward to set a custom user agent with mechanize if you&#8217;re using it directly, <a href="http://www.kickasslabs.com/2009/03/31/quick-hits-setting-the-user-agent-header-in-webrat/">KickAssLabs has a good example</a>.</p>
<p>If you&#8217;re using Mechanize through Webrat though, things are a little different.  The nice thing though, is that you can do this in a step definition &#8211; allowing features to be based on different browser scenarios (this is great if you&#8217;re developing across devices).</p>
<p>First off there are two accessors of interest in mechanize, &#8220;user_agent&#8221; and &#8220;user_agent_alias&#8221;.  The former is fairly self evident and lets you define the user agent at will, the latter gives you shortcut access to a list of common user agents baked into mechanize.  You can see that list in <a href="http://github.com/tenderlove/mechanize/blob/master/lib/mechanize.rb#L48">the mechanize.rb source</a>.  It contains some desktop browsers, the iPhone and the default Mechanize UA strings.</p>
<p>If you&#8217;re happy with the default alias list, you can just write a step definition like this:</p>
<pre class="brush: ruby">
Given /^I am using the &quot;(.*)&quot; browser$/ do |browser|
  webrat.adapter.mechanize.user_agent_alias = browser
end
</pre>
<p>And then you can use this in your features:</p>
<pre class="brush: text">
Given I am using the &quot;iPhone&quot; browser
When I visit the home page
Then I should see &quot;You are using an iPhone!&quot;
</pre>
<p>If you want to be able to specify your own UA strings, and as I said this is especially likely if you are developing cross-device applications where capabilities are important, then you can just use your own hash instead, and set &#8220;user_agent&#8221; rather than &#8220;user_agent_alias&#8221;:</p>
<pre class="brush: ruby">
Given /^I am using the &quot;(.*)&quot; browser$/ do |browser|
  UA_ALIASES = {
    &quot;Nokia N95&quot; =&gt; &quot;Mozilla/5.0 (SymbianOS/9.2; .....&quot;,
    &quot;Palm Pre&quot; =&gt; &quot;Mozilla/5.0 (webOS/1.0; .....&quot;
  }
  webrat.adapter.mechanize.user_agent = UA_ALIASES[browser]
end
</pre>
<p>With a little tweaking you could use both the included list and, if the string from your feature isn&#8217;t there, look in a custom list too.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/541/custom-user-agent-with-cucumber-tests-and-webrat-in-mechanize-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Complete List of Special Google Chrome URLs</title>
		<link>http://otaqui.com/blog/539/complete-list-of-special-google-chrome-urls/</link>
		<comments>http://otaqui.com/blog/539/complete-list-of-special-google-chrome-urls/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 20:12:54 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=539</guid>
		<description><![CDATA[Google Chrome has quite a lot of special URLs. Some of these are covered over at Lifehacker in their post on Chrome&#8217;s about pages, but the meta &#8220;about:&#8221; protocol isn&#8217;t the only one that Chrome uses. Waha, a user on the chromeplugins.org site posted a much more complete list of URL schemes that Chrome uses. [...]]]></description>
			<content:encoded><![CDATA[<p>Google Chrome has quite a lot of special URLs.  Some of these are covered over at Lifehacker in their <a href="http://lifehacker.com/5045164/google-chromes-full-list-of-special-about-pages">post on Chrome&#8217;s about pages</a>, but the meta &#8220;about:&#8221; protocol isn&#8217;t the only one that Chrome uses.</p>
<p>Waha, a user on the chromeplugins.org site posted <a href="http://www.chromeplugins.org/google/chrome-tips-tricks/about-chrome-more-internal-urls-7793.html">a much more complete list of URL schemes</a> that Chrome uses.  Waha was looking at the <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/url_constants.cc">url_constants.cc</a> source file, along with some other stuff, to work this list out.</p>
<p>I&#8217;ve ignored the virtually universal set of protocols that are in just about every browser: http, https, ftp, file, data, feed and javascript, and also the URLs that cannot be entered into the address bar (not using Chrome 5 on OS X Snow Leopard anyway).</p>
<p>Without further ado, here&#8217;s the list:</p>
<ul>
<li><a href="about:blank">about:blank</a> &#8211; the empty page</li>
<li><a href="about:cache">about:cache</a> &#8211; disk and memory cache information</li>
<li><a href="about:net-internals">about:net-internals</a> &#8211; network information including Proxy, HostResolver, URLRequest, HTTPCache and SocketStream</li>
<li><a href="about:crash">about:crash</a> &#8211; the page shown when a tab process crashes</li>
<li><a href="about:credits">about:credits</a> &#8211; list of libraries and other code used in Chrome, with links</li>
<li>about:hang &#8211; this seems to kill a tab for me (I haven&#8217;t linked for that reason &#8211; use at your own risk)</li>
<li><a href="about:memory">about:memory</a> &#8211; memory usage of the various processes</li>
<li>about:shorthang &#8211; see about:hang above</li>
<li><a href="about:terms">about:terms</a> &#8211; Google Chrome Terms of Service</li>
<li>about:inducebrowsercrashforrealz &#8211; not many lolz here</li>
<li><a href="chrome://extensions/">chrome://extensions/</a> &#8211; installed extensions</li>
<li><a href="chrome://history/">chrome://history/</a> &#8211; your browsing history</li>
<li><a href="chrome://newtab">chrome://newtab</a> &#8211; the new tab page</li>
<li><a href="chrome://thumb/http://www.google.com/">chrome://thumb/http://www.google.com/</a> &#8211; thumbnail for a page you&#8217;ve visited</li>
<li><a href="chrome://favicon/http://www.google.com/">chrome://favicon/http://www.google.com/</a> &#8211; favicon for a page you&#8217;ve visited</li>
<li><a href="view-source:http://otaqui.com/blog/539/complete-list-of-special-google-chrome-urls">view-source:http://otaqui.com/blog/539/complete-list-of-special-google-chrome-urls</a> &#8211; view the source of a web page</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/539/complete-list-of-special-google-chrome-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug 1.5 updates with cool new context-sensitive &#8220;Break On Next&#8221;</title>
		<link>http://otaqui.com/blog/529/firebug-1-5-updates-with-cool-new-context-sensitive-break-on-next/</link>
		<comments>http://otaqui.com/blog/529/firebug-1-5-updates-with-cool-new-context-sensitive-break-on-next/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:26:59 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=529</guid>
		<description><![CDATA[Firebug, the mighty hammer of web development, has updated to 1.5. The coolest new feature is the &#8220;Break On Next&#8221; button is now context sensitive, depending on which panel you are looking at. The breakdown of &#8220;break on next &#8230;&#8221; to panels is as follows: Firebug Break on Next Specifics Panel Event Console Break on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://getfirebug.com">Firebug</a>, the mighty hammer of web development, has updated to 1.5.  The coolest new feature is the &#8220;Break On Next&#8221; button is now context sensitive, depending on which panel you are looking at.  The breakdown of &#8220;break on next &#8230;&#8221; to panels is as follows:</p>
<table>
<caption>Firebug Break on Next Specifics</caption>
<thead>
<tr>
<th style="width:50%;">Panel</th>
<th style="width:50%;">Event</th>
</tr>
</thead>
<tbody>
<tr>
<td>Console</td>
<td>Break on All Errors</td>
</tr>
<tr>
<td>HTML</td>
<td>Break on mutate</td>
</tr>
<tr>
<td>CSS</td>
<td>Disabled</td>
</tr>
<tr>
<td>Script</td>
<td>Break on Next statement</td>
</tr>
<tr>
<td>DOM</td>
<td>Disabled</td>
</tr>
<tr>
<td>Net</td>
<td>Break on XHR</td>
</tr>
</tbody>
</table>
<p>It&#8217;s really great to see this extension continue to improve not only in terms of stability and useful features without getting bloated.</p>
<p>The original note about this feature is on the <a href="http://blog.getfirebug.com/2010/02/16/firebug-1-6a5/">Firebug 1.6a5 blog post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/529/firebug-1-5-updates-with-cool-new-context-sensitive-break-on-next/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BBC Standards Ruby Gem</title>
		<link>http://otaqui.com/blog/526/bbc-standards-ruby-gem/</link>
		<comments>http://otaqui.com/blog/526/bbc-standards-ruby-gem/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:19:52 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[bbc]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=526</guid>
		<description><![CDATA[Thanks to some brilliant tidying up of my work by my good friend <a href="http://www.metade.org/">Patrick</a>, there is now a <a href="http://github.com/metade/bbc_standards">bbc_standards ruby gem</a> which you can use to validate pages against some of the <a href="http://www.bbc.co.uk/guidelines/futuremedia/technical/">BBC Technical Guidelines</a>]]></description>
			<content:encoded><![CDATA[<p>Thanks to some brilliant tidying up of my work by my good friend <a href="http://www.metade.org/">Patrick</a>, there is now a <a href="http://github.com/metade/bbc_standards">bbc_standards ruby gem</a> which you can use to validate pages against some of the <a href="http://www.bbc.co.uk/guidelines/futuremedia/technical/">BBC Technical Guidelines</a> (more specifically the &#8220;Semantic Mark-up&#8221; and &#8220;XHTML Integrity&#8221; standards).</p>
<p>This gem was originally designed to work with Cucumber, and initially was intended to just validate pages against the XHTML Strict doctype that BBC pages are usually required to use.  Since it uses Nokogiri for validation &#8211; against the XML Schema rather than the Doctype for what it&#8217;s worth &#8211; the testing is a) strict and b) *fast*.  There are no external webservice calls, so it is fine to test all page loads within Cucumber, even testing the same URI many times over (since the bottleneck will almost certainly be your app by some margin.</p>
<p>I&#8217;m currently working on a post about using the gem for the <a href="http://www.bbc.co.uk/blogs/webdeveloper/">BBC Web Developer blog</a>, but I thought I&#8217;d point any interested parties at the code here and now.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/526/bbc-standards-ruby-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create A Custom CakePHP Console Application Using Shells, Tasks, Models and Controllers</title>
		<link>http://otaqui.com/blog/448/create-a-custom-cakephp-console-application-using-shells-tasks-models-and-controllers/</link>
		<comments>http://otaqui.com/blog/448/create-a-custom-cakephp-console-application-using-shells-tasks-models-and-controllers/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:43:54 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=448</guid>
		<description><![CDATA[CakePHP doesn&#8217;t just come with its own console applications for baking code, managing ACL, inspecting classes, manipulating the schema, internationalisation and running the testsuite (whew!) it also lets you write your own console applications. [NB: I always have an external cake core directory, for easy swapping. The code examples all assume you have done this, [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP doesn&#8217;t just come with its own console applications for baking code, managing ACL, inspecting classes, manipulating the schema, internationalisation and running the testsuite (whew!) it also lets you write your own console applications.</p>
<p><em>[NB: I always have an external cake core directory, for easy swapping.  The code examples all assume you have done this, or at least created an alias in your terminal to point to the core cake directory with something like: alias cake='../cake/console/cake'</em></p>
<p>First off, to find out about the current console applications you are running jump into a terminal and cd to your app directory, then simple run the &#8220;cake&#8221; command to see what you have available:</p>
<pre class="brush: bash">
app_dir $ cake
</pre>
<p>This will output a list of available shells in the core cake library and the two &#8220;vendors&#8221; directories.</p>
<p>So how do you go about creating your own?  The <a href="http://book.cakephp.org/view/110/Creating-Shells-Tasks">CakePHP documentation on creating Shells &amp; Tasks</a> is a good place to start.</p>
<p>An application I&#8217;ve needed to automate with a cron-job, and also have available as an in-app, on-demand function is the sending of emails.  I&#8217;m not talking about writing a mass mailer here, but rather just sending out course information to users who are booked to attend &#8211; and doing so both automatically and on-demand when an administrator decides it is necessary.  This is an obvious instance where you don&#8217;t want to duplicate the code in the controller and the shell.</p>
<p>In my case, I have several kinds of email I want to send, so I set up a generalised Task, used by several different Shells.  The advantage of doing things this way around is that any other Shells can also make use of the emailer Task in the fututre.</p>
<p>Here&#8217;s some simplified code from one of the Shells, a &#8220;booking reminder&#8221; for delegates:</p>
<pre class="brush: php">
// file app/vendors/shells/booking_reminder.php
&lt;?php
class BookingReminderShell extends Shell {
  var $uses = array(&quot;Booking&quot;,&quot;User&quot;,&quot;Course&quot;);
  var $tasks = array(&quot;Emailer&quot;);
  public function main() {
    // use $this-&gt;Booking etc as if we were in a controller
    // use $this-&gt;Emailer for the task
  }
}
</pre>
<p>And then we have the Task:</p>
<pre class="brush: php">
// file app/vendors/shells/tasks/emailer.php
&lt;?php
class Emailer extends Shell {
  public function execute() {
    // this method is called when the task is instantiated,
    // gives you a chance to setup
  }
  public function send($to,$from,$subject,$message,$attachments=null) {
    // called from shell with: $this-&gt;Emailer-&gt;send();
  }
}
</pre>
<p>Note how both Shells and tasks extend from the base &#8220;Shell&#8221; class.  Also note how Shells use a method called &#8220;main()&#8221; when they are run, whereas Tasks use &#8220;execute()&#8221; when they are created.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/448/create-a-custom-cakephp-console-application-using-shells-tasks-models-and-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment And Uncomment All Lines in a Linux File with Sed</title>
		<link>http://otaqui.com/blog/460/comment-and-uncomment-all-lines-in-a-linux-file-with-sed/</link>
		<comments>http://otaqui.com/blog/460/comment-and-uncomment-all-lines-in-a-linux-file-with-sed/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 09:21:27 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=460</guid>
		<description><![CDATA[Just a couple of sed one-liners for adding and removing comments in the form of # marks (in the case of my ~/.ssh/config file). I use this to toggle proxy settings (with connect.c) and it&#8217;s run by the awesome MarcoPolo location-aware app for OS X. Both of these are safe to run repeatedly (you won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Just a couple of sed one-liners for adding and removing comments in the form of # marks (in the case of my ~/.ssh/config file).  I use this to toggle proxy settings (with connect.c) and it&#8217;s run by the awesome MarcoPolo location-aware app for OS X.  Both of these are safe to run repeatedly (you won&#8217;t end up with multiple # marks or anything).</p>
<p>First adding comments, which means a &#8220;#&#8221; mark at the start of every line<br />
<code>sed -i '' 's/^\([^#]\)/#\1/g' ~/.ssh/config</code></p>
<p>Second removing the comments, just stripping out the &#8220;#&#8221; marks.<br />
<code>sed -i '' 's/^#//g' ~/.ssh/config</code></p>
<p>A few things to note here, on the assumption that you can see how Regular Expressions work and are vaguely familiar with sed&#8217;s /find/replace/ style syntax:</p>
<ol>
<li>the &#8220;-i&#8221; flag means &#8220;edit in place&#8221; and requires an extra argument for the backup file&#8217;s extension.  I&#8217;ve given an empty string so that no backup is made</li>
<li>sed requires escaping of capturing parentheses, hence the \( and \) in the first example</li>
<li>the final &#8216;g&#8217; at the end of the expressions means &#8220;global&#8221;, i.e. replace all occurences</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/460/comment-and-uncomment-all-lines-in-a-linux-file-with-sed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using a Proxy with Cucumber, Webrat and Mechanize</title>
		<link>http://otaqui.com/blog/458/using-a-proxy-with-cucumber-webrat-and-mechanize/</link>
		<comments>http://otaqui.com/blog/458/using-a-proxy-with-cucumber-webrat-and-mechanize/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 08:15:36 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=458</guid>
		<description><![CDATA[If you&#8217;re writing Cucumber tests using Webrat and Mechanize to test a site, and you are behind a proxy server, you can do something like this to tell mechanize about it in your webrat_steps.rb file: When /^I am on (.+)$/ do &#124;page_name&#124; webrat.adapter.mechanize.set_proxy('proxy.host.com',8080) visit path_to(page_name) end I&#8217;m sure there&#8217;s a tidier way to do this, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re writing Cucumber tests using Webrat and Mechanize to test a site, and you are behind a proxy server, you can do something like this to tell mechanize about it in your webrat_steps.rb file:</p>
<p><code><br />
When /^I am on (.+)$/ do |page_name|<br />
    webrat.adapter.mechanize.set_proxy('proxy.host.com',8080)<br />
    visit path_to(page_name)<br />
end<br />
</code></p>
<p>I&#8217;m sure there&#8217;s a tidier way to do this, but it&#8217;s quick and it works with the following gem versions:</p>
<p>Cucumber 0.3.11<br />
Webrat 0.5.3<br />
Mechanize 0.9.3</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/458/using-a-proxy-with-cucumber-webrat-and-mechanize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cucumber with Webrat and Mechanize on CentOS 5</title>
		<link>http://otaqui.com/blog/449/cucumber-with-webrat-and-mechanize-on-centos-5/</link>
		<comments>http://otaqui.com/blog/449/cucumber-with-webrat-and-mechanize-on-centos-5/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 13:55:38 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=449</guid>
		<description><![CDATA[Thanks to Chris for this one. The trick is to use JRuby and its gems, and also to install libxml2-devel $ cd ~ $ wget http://jruby.kenai.com/downloads/1.4.0/jruby-bin-1.4.0.tar.gz $ tar -C /usr/local/ -xzvf jruby-bin-1.4.0.tar.gz You should now have Jruby. Add it&#8217;s bin directory to your path, presumably in your ~/.bash_profile file: $ export PATH=$PATH:/usr/local/jruby-1.4.0/bin $ jruby -v [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://blog.chrislowis.co.uk/">Chris</a> for this one.</p>
<p>The trick is to use JRuby and its gems, and also to install libxml2-devel</p>
<p><code>$ cd ~<br />
$ wget http://jruby.kenai.com/downloads/1.4.0/jruby-bin-1.4.0.tar.gz<br />
$ tar -C /usr/local/ -xzvf jruby-bin-1.4.0.tar.gz</code></p>
<p>You should now have Jruby.  Add it&#8217;s bin directory to your path, presumably in your ~/.bash_profile file:<br />
<code>$ export PATH=$PATH:/usr/local/jruby-1.4.0/bin<br />
$ jruby -v</code></p>
<p>Now install some mechanize requirements:<br />
<code>$ sudo yum install libxml2-devel libxslt-devel</code></p>
<p>If you <strong>don&#8217;t</strong> already have the &#8220;normal&#8221; ruby installed, you can get to the jruby &#8220;gem&#8221; command by just typing &#8220;gem&#8221;.  If you do have ruby, or want to be absolutely sure, type the commands like this:<br />
<code>$ jruby -S gem install cucumber mechanize webrat</code></p>
<p>You&#8217;re good to go!  You should now be able to run your features with:</p>
<p><code>$ cucumber features/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/449/cucumber-with-webrat-and-mechanize-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP&#8217;s basics.php functions &#8211; a series of really useful shortcut functions available globally in your CakePHP app</title>
		<link>http://otaqui.com/blog/443/cakephps-basicsphp-functions-a-series-of-really-useful-shortcut-functions-available-globally-in-your-cakephp-app/</link>
		<comments>http://otaqui.com/blog/443/cakephps-basicsphp-functions-a-series-of-really-useful-shortcut-functions-available-globally-in-your-cakephp-app/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 14:07:30 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=443</guid>
		<description><![CDATA[If you are working with CakePHP and haven&#8217;t checked it out yet, it&#8217;s very well worth looking through basics.php in the API docs. As well as adding some PHP 5 functionality on PHP 4 servers, the script also adds a fair number of utility functions to the global namespace, such as: // similar to print_r(), [...]]]></description>
			<content:encoded><![CDATA[<p>If you are working with <a href="http://cakephp.org">CakePHP</a> and haven&#8217;t checked it out yet, it&#8217;s very well worth looking through <a href="http://api.cakephp.org/view_source/basics.php">basics.php in the API docs</a>.</p>
<p>As well as adding some PHP 5 functionality on PHP 4 servers, the script also adds a fair number of utility functions to the global namespace, such as:</p>
<pre class="brush: php">

// similar to print_r(), but dumps to the view and
// is disabled if debug isn&#039;t &gt; 0 in config.php
pr($anything); 

// returns the correctly internationalised plural or
// singular depending on locale.
__n($singular, $plural, $count, $return);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/443/cakephps-basicsphp-functions-a-series-of-really-useful-shortcut-functions-available-globally-in-your-cakephp-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syncing mail.app with gmail and the iphone using imap</title>
		<link>http://otaqui.com/blog/440/syncing-mailapp-with-gmail-and-the-iphone-using-imap/</link>
		<comments>http://otaqui.com/blog/440/syncing-mailapp-with-gmail-and-the-iphone-using-imap/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 11:13:17 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/440/syncing-mailapp-with-gmail-and-the-iphone-using-imap/</guid>
		<description><![CDATA[I&#8217;ve set up my google apps email account using imap in mail.app and it&#8217;s working quite well in terms of keeping track of read and unread emails and having my sent emails available everywhere. It&#8217;s definitely worth going one step beyond google&#8217;s own instructions on the matter and correctly configuring the drafts, sent and trash [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve set up my google apps email account using imap in mail.app and it&#8217;s working quite well in terms of keeping track of read and unread emails and having my sent emails available everywhere.</p>
<p>It&#8217;s definitely worth going one step beyond google&#8217;s own instructions on the matter and correctly configuring the drafts, sent and trash folders in both clients:</p>
<h3>Mail.app</h3>
<p>Choose the google folder for drafts in the sidebar. From the os x menu bar at the top of your screen choose &#8216;mailbox&#8217; and then &#8216;use this mailbox for&#8217; and then &#8216;drafts&#8217;. Do the same with the other folders.</p>
<h3>iPhone Mail</h3>
<p>Having done the basic setup, go to the settings app, choose &#8216;mail, contacts and calendars&#8217;, navigate to your mail account and choose &#8216;advanced&#8217; and then setup the &#8216;mailbox behaviours&#8217; as required.</p>
<p><b>NB</b> if you are a fan of &#8216;labels&#8217; in gmail, bear in mind that these equate to <b>copies</b> of the email in IMAP folders. That means that if you have, as I did, several thousand labelled emails from a different account you will have more than one copy of each downloaded to mail.app, assuming you chose to download your messages- and who wouldn&#8217;t?</p>
<p>The iPhone seems to work pretty flawlessly, but mail.app sometimes seems to take a while to catch up with changes (especially emails you&#8217;ve read on the iPhone while mail.app was offline) although it always seems to get there in the end.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/440/syncing-mailapp-with-gmail-and-the-iphone-using-imap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>David Allen&#8217;s Getting Things Done on the iPhone, synced with iCal</title>
		<link>http://otaqui.com/blog/437/david-allens-getting-things-done-on-the-iphone-synced-with-ical/</link>
		<comments>http://otaqui.com/blog/437/david-allens-getting-things-done-on-the-iphone-synced-with-ical/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 08:01:17 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=437</guid>
		<description><![CDATA[If you are a fan of GTD, use a Mac and an iPhone, then there&#8217;s a great pair of apps you can get that seamlessly sync all your projects and tasks, and that will update your iCal while you&#8217;re at it. Things from Cultured Code also comes as an iPhone app, and the duo update [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a fan of GTD, use a Mac and an iPhone, then there&#8217;s a great pair of apps you can get that seamlessly sync all your projects and tasks, and that will update your iCal while you&#8217;re at it.</p>
<p><a href="http://culturedcode.com/things/">Things</a> from Cultured Code also comes as an <a href="http://culturedcode.com/things/iphone">iPhone app</a>, and the duo update each other fairly well.  They miss out on being being &#8220;excellent&#8221; because the iPhone-to-mac syncing only happens when both your devices are on the same wifi network, and short of closing one of the pair and re-opening it, I can&#8217;t fnd a way of forcing a sync to happen whenever you would like.</p>
<p>That being said, they do both work extremely well.  The desktop version has a very nice quick-entry interface which feels a little bit like <a href="http://docs.blacktree.com/quicksilver/what_is_quicksilver">Quicksilver</a> (and is accessed by pressing Ctrl+Alt+Space) which is a nice touch.  Both apps use &#8220;dock badge&#8221; numbers although the number shown can only be customised on the desktop version which lets you set the number as Due, Due+Today and Due+Today+Inbox; the iPhone dock badge will only show Due+Today so personally although I would like the full count I leave the setting so that both are the same.</p>
<p>Neither app is free.  The desktop client is (at the current exchange rate) &pound;37.13 ($49.95) and you can buy Things from the App Store for &pound;5.99 ($7.99).  The desktop version is also available as a 5-license bundle for &pound;55.72 ($74.95)</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/437/david-allens-getting-things-done-on-the-iphone-synced-with-ical/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix The &#8220;For Attribute Resets Focus on Select Tag&#8221; Bug In Internet Explorer using Prototype</title>
		<link>http://otaqui.com/blog/435/fix-the-for-attribute-resets-focus-on-select-tag-bug-in-internet-explorer-using-prototype/</link>
		<comments>http://otaqui.com/blog/435/fix-the-for-attribute-resets-focus-on-select-tag-bug-in-internet-explorer-using-prototype/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 10:20:36 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[internet-explorer]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=435</guid>
		<description><![CDATA[Browser sniffing is bad, or so the logic goes. There are occasions though where it makes perfect sense &#8211; for example where you are fixing a known bug in a specific version of a browser. A good example is the bug in IE 6 that resets the selected index of a Select tag that has [...]]]></description>
			<content:encoded><![CDATA[<p>Browser sniffing is <em>bad</em>, or so the logic goes.</p>
<p>There are occasions though where it makes perfect sense &#8211; for example where you are fixing a known bug in a specific version of a browser.  A good example is the bug in IE 6 that resets the selected index of a Select tag that has a label and the for attribute.  This bug doesn&#8217;t affect IE 7 or 8, or any other browser, but does make for a bad user experience if you are doing the right thing and including labels for your select tags.</p>
<p>Microsoft has <a href="http://support.microsoft.com/kb/314279">published some javascript to fix this</a> and I adapted their code to work with with the <a href="http://prototypejs.org">Prototype Javascript Library</a>.</p>
<p>This fix will look for all select tags on the page (you could adapt it to only look for those with the &#8220;for&#8221; attribute but I have a sneaking suspicion that if anything that would in fact be a bit slower) and observe the onfocusin and onfocus events as suggested in the knowledge base article.</p>
<pre class="brush: javascript">
// Select with &#039;for&#039; attribute fix for IE
Event.observe(window,&#039;load&#039;,function() {
	if ( !Prototype.Browser.IE || !(parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf(&quot;MSIE&quot;)+5))==6) ) return;
	$$(&#039;select&#039;).each(function(eSelect) {
		eSelect.observe(&#039;focusin&#039;,function(e) {
			try {
				var eSrc = window.event.srcElement;
				if ( eSrc ) eSrc.tmpIndex = eSrc.selectedIndex;
			} catch(e) {}
		});
		eSelect.observe(&#039;focus&#039;,function(e) {
			try {
				var eSrc = window.event.srcElement;
				if ( eSrc ) eSrc.selectedIndex = eSrc.tmpIndex;
			} catch(e) {}
		})
	});
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/435/fix-the-for-attribute-resets-focus-on-select-tag-bug-in-internet-explorer-using-prototype/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Review of the WordPress blogging clientfor the iPhone</title>
		<link>http://otaqui.com/blog/442/review-of-the-wordpress-blogging-clientfor-the-iphone/</link>
		<comments>http://otaqui.com/blog/442/review-of-the-wordpress-blogging-clientfor-the-iphone/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 22:41:50 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Professional]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/442/review-of-the-wordpress-blogging-clientfor-the-iphone/</guid>
		<description><![CDATA[Having just got myself an iphone, I thought I&#8217;d test out the wordpress blogging client. I must admit that although it&#8217;s ok for short posts I can&#8217;t imagine I&#8217;m going to be writing any very long posts on a touchscreen keyboard (although I am starting to get the hang of it even after only two [...]]]></description>
			<content:encoded><![CDATA[<p>Having just got myself an iphone, I thought I&#8217;d test out the wordpress blogging client.</p>
<p>I must admit that although it&#8217;s ok for short posts I can&#8217;t imagine I&#8217;m going to be writing any very long posts on a touchscreen keyboard (although I am starting to get the hang of it even after only two days of light use). Please pardon any smelling pistakes!</p>
<p>The application is open source, which I&#8217;ll definitely appreciate if I ever get around to building an app myself.</p>
<p>You can work with multiple blogs, both self hosted and on wordpress.com. Once you have set up a blog you configure the amount of recent posts to show, I found that he default 10 was a usefaul number</p>
<p>When writing a post, you can set both the tags and choose from the current categories or create ones. Draft posts are saved locally, and when you have finished editing you can either publish immediately or at some future date. You can alternatively set the post as a draft or pending review, which will upload it to the server.</p>
<p>There is also support for adding images to posts &#8211; from the photo library or a new shot although no ability to control where in the post the images appear &#8211; you only get them defaulting to the bottom of the post.</p>
<p>Overall I would say that the app is as good as the iPhone allows.</p>
<p><a href="http://otaqui.com/blog/wp-content/uploads/p-640-480-79f21e48-1e0d-498e-be0b-e3580cc53ab9.jpeg"><img src="http://otaqui.com/blog/wp-content/uploads/p-640-480-79f21e48-1e0d-498e-be0b-e3580cc53ab9.jpeg" alt="" width="225" height="300" class="alignnone size-full wp-image-364" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/442/review-of-the-wordpress-blogging-clientfor-the-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable Debug Output for Ajax in CakePHP</title>
		<link>http://otaqui.com/blog/430/disable-debug-output-for-ajax-in-cakephp/</link>
		<comments>http://otaqui.com/blog/430/disable-debug-output-for-ajax-in-cakephp/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 09:15:46 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/?p=430</guid>
		<description><![CDATA[If you are developing a CakePHP application and you have the debug value set to anything greater than 0 in your config/core.php file, you will find that Ajax requests will also get the extra information appended to the output. In order to circumvent this add this to your &#8220;app_controller.php&#8221; file (which sits directly inside the [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing a <a href="http://cakephp.org">CakePHP</a> application and you have the debug value set to anything greater than 0 in your config/core.php file, you will find that Ajax requests will also get the extra information appended to the output.</p>
<p>In order to circumvent this add this to your &#8220;app_controller.php&#8221; file (which sits directly inside the &#8220;app/&#8221; dir, rather than in &#8220;app/controllers&#8221;):</p>
<pre class="brush: php">
&lt;?php
class AppController extends Controller {
  var $components = array(&#039;RequestHandler&#039;);
  var $helpers = array(&#039;Html&#039;,&#039;Form&#039;,&#039;Ajax&#039;);
  function beforeFilter() {
    if ( $this-&gt;RequestHandler-&gt;isAjax() ) {
      Configure::write(&#039;debug&#039;,0);
    }
  }
}
?&gt;
</pre>
<p>Note that while this will disable the debugging output, it will also have other affects too (for the life of the Ajax Request) like extending the length of time that the &#8220;schema&#8221; is cached.  This should make little or no difference, but is worth remembering.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/430/disable-debug-output-for-ajax-in-cakephp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mozilla Fennec Alpha 2 Release</title>
		<link>http://otaqui.com/blog/428/mozilla-fennec-alpha-2-release/</link>
		<comments>http://otaqui.com/blog/428/mozilla-fennec-alpha-2-release/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 20:29:29 +0000</pubDate>
		<dc:creator>pete</dc:creator>
				<category><![CDATA[Professional]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://otaqui.com/blog/428/mozilla-fennec-alpha-2-release/</guid>
		<description><![CDATA[Mozilla has released the second alpha of Fennec, their mobile browser. There&#8217;s a short but sweet overview of Fennec on Vimeo which is worth checking out. I think almost regardless of it&#8217;s performance improvements the real game-changing potential here is the inevitable swathe of add-ons and extensions that will be, and in some cases such [...]]]></description>
			<content:encoded><![CDATA[<p>Mozilla has <a href="http://blog.mozilla.com/blog/2008/12/23/fennec-alpha-2-released/">released the second alpha of Fennec</a>, their mobile browser.  There&#8217;s a short but sweet <a href="http://www.vimeo.com/2577978">overview of Fennec on Vimeo</a> which is worth checking out.</p>
<p>I think almost regardless of it&#8217;s <a href="http://starkravingfinkle.org/blog/2008/12/fennec-alpha2-performance/">performance improvements</a> the real game-changing potential here is the inevitable swathe of add-ons and extensions that will be, and in some cases such as <a href="http://hackademix.net/2008/12/23/noscript-for-fennec-update/">NoScript</a> already are, available.</p>
<p>I don&#8217;t think that any web developer who has used it would want to go back to a world without <a href="http://getfirebug.com/">Firebug</a> and I also think that it&#8217;s influence on <a href="http://webkit.org">WebKit</a>&#8216;s developer tools is fairly clear to see.</p>
<p>So I really hope that support for Fennec spreads beyond the Nokia 810 soon, and that it&#8217;s as instrumental as Firefox was in re-igniting browser development, especially from a developer-tool perspective.</p>
]]></content:encoded>
			<wfw:commentRss>http://otaqui.com/blog/428/mozilla-fennec-alpha-2-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
