<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US">
  <id>tag:clarketus.net,April 2010:/feed</id>
  <link rel="alternate" type="text/html" href="http://clarketus.net" />
  
  <title>clarketus.net</title>
  <updated>2011-05-12T10:28:16+12:00</updated>
  <icon>http://clarketus.net/images/favicon.gif</icon>
  <logo>http://clarketus.net/images/favicon.gif</logo>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/clarketus" /><feedburner:info uri="clarketus" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <id>tag:clarketus.net,April 2010:Article/7</id>
    <published>2011-05-12T10:28:16+12:00</published>
    <updated>2011-05-12T10:34:59+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/dIDXEX4AEYw/7-clicking-the-document-at-a-location" />
    <title>Clicking the document at a location</title>
    <content type="html">&lt;h4&gt;Can be done simply using JQuery:&lt;/h4&gt;
&lt;p&gt;$(document.elementFromPoint(x, y)).click();&lt;/p&gt;
&lt;h4&gt;Or natively in Webkit:&lt;/h4&gt;
&lt;p&gt;var el = document.elementFromPoint(x, y);&lt;br /&gt;
var ev = document.createEvent(&amp;#8220;MouseEvents&amp;#8221;);&lt;br /&gt;
ev.initEvent(&amp;#8220;click&amp;#8221;,true,true);&lt;br /&gt;
el.dispatchEvent(ev);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why do I need to do this? Ah&amp;#8230; iPhone development&amp;#8230;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/7-clicking-the-document-at-a-location</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/6</id>
    <published>2010-11-12T06:55:39+13:00</published>
    <updated>2010-11-12T06:55:39+13:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/OQKToQNfS68/6-blast-from-the-past" />
    <title>Blast from the past</title>
    <content type="html">&lt;p&gt;Stumbled across some old code, think it was from a &amp;#8220;5k of code challenge&amp;#8221; or something similar.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://files.clarketus.net/fighter/"&gt;http://files.clarketus.net/fighter/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8220;Wow safari 3&amp;#8217;s Javascript rendering is sooo fast!&amp;#8221;. Can&amp;#8217;t believe that was 3 years ago.&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/6-blast-from-the-past</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/5</id>
    <published>2010-09-25T13:24:06+12:00</published>
    <updated>2010-09-25T17:29:23+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/6TdebkiWmyo/5-friday-beers-wildfire" />
    <title>Friday beers @ wildfire</title>
    <content type="html">&lt;p&gt;The kegerator is an essential part of any productive office. Just watch out for the difference between european and north american keg taps. We got caught out with this when buying some oktoberfest brews and wasted an hour trying to get the keg inside as the tap was too tall.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://iforce.co.nz/i/qxdfub0j.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;At least the beer still tastes good!&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/5-friday-beers-wildfire</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/4</id>
    <published>2010-09-16T16:59:09+12:00</published>
    <updated>2010-09-16T16:59:09+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/g2LtkRKCJRg/4-i-would-recommend" />
    <title>I would recommend</title>
    <content type="html">&lt;p&gt;The &lt;a href="http://eshop.macsales.com/shop/internal_storage/Mercury_Extreme_SSD_Sandforce"&gt;&lt;span class="caps"&gt;OWC&lt;/span&gt; Mercury Extreme Pro &lt;span class="caps"&gt;SSD&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Used it for about 2 months now and its very solid. Its up there with other high end &lt;span class="caps"&gt;SSD&lt;/span&gt; options in terms of speed.&lt;/p&gt;
&lt;p&gt;That is all!&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/4-i-would-recommend</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/3</id>
    <published>2010-05-27T14:37:00+12:00</published>
    <updated>2010-08-23T19:34:32+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/1BrrVtDodvc/3-presentation-liquid-templating-language" />
    <title>Presentation - Liquid Templating Language</title>
    <content type="html">&lt;p&gt;Last night I did a presentation at the local rails developer meetup in wellington, &lt;a href="http://groups.google.com/group/WellRailed"&gt;Wellrailed&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It was on the &lt;a href="http://www.liquidmarkup.org/"&gt;Liquid Templating Language&lt;/a&gt; from shopify, and the ruby tools associated with it. Have been doing a heap of work for &lt;a href="http://www.wildfireapp.com/"&gt;Wildfire&lt;/a&gt; converting their consumer facing frontend to use liquid, so that third parties can theme the interface.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://files.clarketus.net/uploads/liquid.pdf"&gt;Here are the slides&lt;/a&gt; if you want to check them out! Feel free to come along to the meetup here in wellington if you are keen to meet other local developers.&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/3-presentation-liquid-templating-language</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/2</id>
    <published>2010-05-17T15:53:00+12:00</published>
    <updated>2010-05-17T15:53:00+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/Q_oqB9O-msE/2-iphone-orm-backend" />
    <title>iPhone ORM Backend</title>
    <content type="html">&lt;p&gt;While writing the iPhone app for &lt;a href="http://www.mytoursapp.com/"&gt;mytours&lt;/a&gt;, I have swapped out the backend &lt;span class="caps"&gt;ORM&lt;/span&gt; 3 times. This was due to starting the project just before version 3 of the iPhone &lt;span class="caps"&gt;SDK&lt;/span&gt; was released, so googling for suggestions for a starting out iPhone dev at the time was yielding dated results.&lt;/p&gt;
&lt;p&gt;Started with &lt;a href="http://github.com/aptiva/activerecord"&gt;activerecord for objective-c&lt;/a&gt;. results: hard to set up, not very flexible. You have to manually set up an sqlite database to match your implementation.&lt;/p&gt;
&lt;p&gt;After about 6 months, we moved to &lt;a href="http://code.google.com/p/sqlitepersistentobjects/source/checkout"&gt;sqlitepersistenceobjects&lt;/a&gt;. This was a far easier to use library, that was flexible, generated its own sqlite database, and was easy to swap out in place of activerecord. The only problem with this library is that the loading of objects was over the top greedy, resulting in poor performance.&lt;/p&gt;
&lt;p&gt;Finally, after finally getting around to addressing the performance, a new look at what the best persistance solution for the iPhone is, found that Apple had included the &lt;a href="http://developer.apple.com/mac/library/documentation/cocoa/conceptual/CoreData/cdProgrammingGuide.html"&gt;CoreData&lt;/a&gt; framework into version 3 of the iPhone &lt;span class="caps"&gt;SDK&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;CoreData easily replaced sqlitepersistenceobjects, and the results were instantly noticeable. lazy loading of data resulted in the entire app speeding up.&lt;/p&gt;
&lt;p&gt;So for anyone starting out, CoreData is the way to go:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Easy setup!&lt;/li&gt;
	&lt;li&gt;Persistence is 100% handled by the framework (no messing around with sqlite)&lt;/li&gt;
	&lt;li&gt;choice of persistence (sqlite/xml/implement your own)&lt;/li&gt;
	&lt;li&gt;performance tuned and heaps of functionality.&lt;/li&gt;
	&lt;li&gt;Both the previous libraries I mentioned are no longer maintained due to CoreData totally trumping them on everything. Why didn&amp;#8217;t apple include CoreData from the start?&lt;/li&gt;
&lt;/ul&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/2-iphone-orm-backend</feedburner:origLink></entry>
  <entry>
    <id>tag:clarketus.net,April 2010:Article/1</id>
    <published>2010-04-06T23:56:00+12:00</published>
    <updated>2010-04-06T23:56:00+12:00</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/clarketus/~3/EgoZf23492E/1-first-post" />
    <title>First Post</title>
    <content type="html">&lt;p&gt;Welcome to my new website&lt;/p&gt;
&lt;p&gt;Inspiration: Realizing that I no longer had a website.&lt;/p&gt;
&lt;h2&gt;Interesting website facts:&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Uses Rails 3 with Ruby 1.9.1&lt;/li&gt;
	&lt;li&gt;Running off cassandra&lt;/li&gt;
	&lt;li&gt;Designed by me! (you can probably tell)&lt;/li&gt;
	&lt;li&gt;Fonts look totally whack on windows based machines. Solution: Install &lt;span class="caps"&gt;OSX&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Subscribe for interesting articles&lt;/p&gt;</content>
    <author>
      <name>Oliver Clarke</name>
      <email>ollie@clarketus.net</email>
    </author>
  <feedburner:origLink>http://clarketus.net/articles/1-first-post</feedburner:origLink></entry>
</feed>

