
<?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>Able Technology &#187; Uncategorized</title>
	<atom:link href="http://www.abletech.co.nz/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abletech.co.nz</link>
	<description>Web Application Programmers and Consultants</description>
	<lastBuildDate>Sun, 11 Jul 2010 22:05:07 +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>Able Technology acquires ProjectX On-line Mapping and Addressing Capabilities</title>
		<link>http://www.abletech.co.nz/2010/07/able-technology-acquires-projectx-on-line-mapping-and-addressing-capabilities/</link>
		<comments>http://www.abletech.co.nz/2010/07/able-technology-acquires-projectx-on-line-mapping-and-addressing-capabilities/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 22:05:07 +0000</pubDate>
		<dc:creator>carl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=592</guid>
		<description><![CDATA[Able Technology has acquired the on-line mapping and addressing business of ProjectX Technology Ltd. The acquisition promises an exciting future for ProjectX developments such as the Address Finder service and mapping applications. Able Technology director Marcus Baguley says ProjectX’s expertise in geospatial data and mapping services will enable Able Tech to quickly deliver location-based applications; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Able Technology has acquired the on-line mapping and addressing business of ProjectX Technology Ltd.</strong></p>
<p>The acquisition promises an exciting future for ProjectX developments such as the Address Finder service and mapping applications.</p>
<p>Able Technology director Marcus Baguley says ProjectX’s expertise in geospatial data and mapping services will enable Able Tech to quickly deliver location-based applications; from hand held apps to large corporate websites that want to geo-enable existing datasets.</p>
<p>“The acquisition strengthens our specialised online mapping and data visualisation capabilities,” says Marcus.</p>
<p>The move is a natural progression for Able Tech, an influential member of Wellington&#8217;s growing Ruby on Rails software development community.</p>
<p>John Clegg, founder and CEO of ProjectX, says he is very pleased to be handing over to Able Technology “because their experience and reputation guarantee our customers will receive exceptional leadership, services and support.”</p>
<p>The ‘new’ Able Technology will be headed by Carl Penwarden who has joined the company from his previous role as Marketing and Product Development Manager at CityLink.</p>
<p>Carl says, “We are very excited about the capabilities we have brought together &#8211; the combination of ProjectX’s broad geospatial and addressing experience along with Able Technology’s strengths in agile development offers a compelling proposition for organisations seeking innovative web applications.”</p>
<p>Members of ProjectX’s team joined Able Technology in early July and will continue to support their existing clients. All staff are located together at Able Technology’s Wellington-based office.</p>
<p><strong>About Able Technology</strong></p>
<p>Able Technology specialises in cloud-based software development and consulting. In addition to their loyal customer base, Able Technology is also the developer of SAAS share portfolio management service, ShareSight.</p>
<p><strong>About ProjectX</strong></p>
<p>ProjectX, an award winning software services company, specialised in online maps development and data visualisation. Recognised by the Open Source Society for its use and contribution to Open Source in business, ProjectX has lead modern technologies such as HTML5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/07/able-technology-acquires-projectx-on-line-mapping-and-addressing-capabilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSX 10.6.3 installs new Ruby with faulty BigDecimal</title>
		<link>http://www.abletech.co.nz/2010/03/osx-10-6-3-installs-new-ruby-with-faulty-bigdecimal/</link>
		<comments>http://www.abletech.co.nz/2010/03/osx-10-6-3-installs-new-ruby-with-faulty-bigdecimal/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 04:25:16 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=507</guid>
		<description><![CDATA[Installing the latest upgrade from Apple of Snow Leopard version 10.6.3 will update the installed version of Ruby. The version of ruby installed is: ruby --version ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0] Unfortunately, there is a known problem with patchlevel 173. BigDecimal.new("3.0009").to_f => 3.9 Under the previous version of ruby that was shipped with Snow [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the latest upgrade from Apple of Snow Leopard version 10.6.3 will update the installed version of Ruby. </p>

<p>The version of ruby installed is:</p>

<textarea name="code" class="ruby">
ruby --version
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
</textarea>

<p>Unfortunately, there is a <a href="http://www.ruby-forum.com/topic/189053#825423">known problem with patchlevel 173</a>.</p>

<textarea name="code" class="ruby">
BigDecimal.new("3.0009").to_f
=> 3.9
</textarea>

<p>Under the previous version of ruby that was shipped with Snow Leopard, you would have received the expected answer of 3.0009.</p>

<p>There is a <a href="http://www.getharvest.com/blog/2009/06/ruby-denial-of-service-patch-breaks-bigdecimal-to_f-method/">patch that you could try in the short term</a>, otherwise you're probably best advised to hold off installing 10.6.3. Or, if you've already installed it, you can wait until Apple or someone else releases an update. </p>

<p><strong>Update:</strong> We are all using <a href="http://www.rubyenterpriseedition.com/">RVM</a> now, as this allows us to easily install and use different ruby implementations. At the moment, this is normally the current version (2010.02) of <a href="http://www.rubyenterpriseedition.com/">Ruby Enterprise Edition</a>. </p>]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/03/osx-10-6-3-installs-new-ruby-with-faulty-bigdecimal/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Able Technology Sign</title>
		<link>http://www.abletech.co.nz/2010/03/able-technology-sign/</link>
		<comments>http://www.abletech.co.nz/2010/03/able-technology-sign/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:50:26 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=502</guid>
		<description><![CDATA[Make your own sign here]]></description>
			<content:encoded><![CDATA[<p>
   <a href="http://www.abletech.co.nz/wp-content/uploads/2010/03/at.png"><img src="http://www.abletech.co.nz/wp-content/uploads/2010/03/at.png" alt="Able Tech" title="Able Tech" width="616" height="295" class="alignleft size-full wp-image-501" /></a>
</p>
<p>Make your own sign <a href="http://wellywood.skullandbones.co.nz/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/03/able-technology-sign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Country and Currency Code Mappings</title>
		<link>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/</link>
		<comments>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:13:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=497</guid>
		<description><![CDATA[I have had a to load a list of valid country and currency mappings for sharesight. It proved difficult to find a current correct list with the mapping between currency and country on the internet that is easily extractable. wikipedia has a good source of current and obsolete codes &#8211; currency codes ISO 4217, country [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a to load a list of valid country and currency mappings for <a href="http://www.sharesight.com.au">sharesight</a>. It proved difficult to find a current correct list with the mapping between currency and country on the internet that is easily extractable.</p>
<p>wikipedia has a good source of current and obsolete codes &#8211; currency codes <a href="http://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a>, country codes ISO 3166.</p>
<p>Here is what we came up with. If anyone knows of a reliable up to date source then please comment.</p>
<p><script src="http://gist.github.com/304261.js?file=Country+Currency+Code+Mappings"></script></p>
<p>And to load into your rails app</p>
<p><script src="http://gist.github.com/304261.js?file=load+in+currency+and+countries"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2010/02/country-and-currency-code-mappings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recession Busting Free Offer</title>
		<link>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/</link>
		<comments>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 22:01:39 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=444</guid>
		<description><![CDATA[There&#8217;s a recession on at the moment, and we&#8217;re doing our bit to help ease the pain. Able Technology is offering a free half-day session with one of our technical consultants. You can use us for any of our usual services during this time. We have up to four slots available &#8211; one for each [...]]]></description>
			<content:encoded><![CDATA[<p>
  <img src="/wp-content/uploads/2009/10/special-offer.png" alt="special-offer" title="special-offer" width="299" height="218" style="float:right" /><br />
  There&#8217;s a recession on at the moment, and we&#8217;re doing our bit to help ease the pain.
</p>
<p>Able Technology is offering a <b>free half-day session</b> with one of our <a href="/about-us/">technical consultants</a>. You can use us for any of our <a href="/what-we-do/">usual services</a> during this time. </p>
<p>We have up to <em>four slots</em> available &#8211; one for each week in October. The weeks are:</p>
<ul>
<li><strike>5 October</strike> &#8211; taken</li>
<li><strike>12 October</strike> &#8211; taken</li>
<li>19 October</li>
<li>26 October</li>
</ul>
<p>To apply, <a href="/contact-us/">speak to Nigel</a> on 0800 14-ABLE (0800 142-253). </p>
<h4>Small print</h4>
<ul>
<li>First-come, first-served</li>
<li>No strings attached</li>
<li>For new customers only</li>
<li>Not available to our competitors</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/10/recession-busting-free-offer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wanted: office space in Te Aro</title>
		<link>http://www.abletech.co.nz/2009/03/wanted-office-space-in-te-aro/</link>
		<comments>http://www.abletech.co.nz/2009/03/wanted-office-space-in-te-aro/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 01:33:18 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/?p=194</guid>
		<description><![CDATA[We&#8217;re on the lookout for some office space in Te Aro. Somewhere between 75 and 125 square meters. Our wish list includes: Character Earthquake safe Showers Cycle parking Would appreciate a call if you&#8217;re aware of anything like this.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re on the lookout for some office space in Te Aro. Somewhere between 75 and 125 square meters. </p>
<p>Our wish list includes:</p>
<ul>
<li>Character</li>
<li>Earthquake safe</li>
<li>Showers</li>
<li>Cycle parking</li>
</ul>
<p>Would appreciate <a href="/contact-us">a call</a> if you&#8217;re aware of anything like this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2009/03/wanted-office-space-in-te-aro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharesight article in the Herald</title>
		<link>http://www.abletech.co.nz/2008/05/sharesight-article-in-the-herald/</link>
		<comments>http://www.abletech.co.nz/2008/05/sharesight-article-in-the-herald/#comments</comments>
		<pubDate>Sat, 24 May 2008 07:49:00 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/blog/?p=53</guid>
		<description><![CDATA[There was a great article in the Herald about Sharesight today. Shame it didn&#8217;t mention me or Marcus, but it did explain what we&#8217;ve been up to. Check out Kiwi-made online share trading system hits the market.]]></description>
			<content:encoded><![CDATA[<p>There was a great article in the Herald about <a href="http://www.sharesight.co.nz/">Sharesight</a> today. Shame it didn&#8217;t mention me or Marcus, but it did explain what we&#8217;ve been up to.</p>
<p>Check out <a href="http://www.nzherald.co.nz/section/3/story.cfm?c_id=3&amp;objectid=10512124">Kiwi-made online share trading system hits the market.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2008/05/sharesight-article-in-the-herald/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2008 Budget Calculators</title>
		<link>http://www.abletech.co.nz/2008/05/2008-budget-calculators/</link>
		<comments>http://www.abletech.co.nz/2008/05/2008-budget-calculators/#comments</comments>
		<pubDate>Thu, 22 May 2008 05:06:00 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/blog/?p=52</guid>
		<description><![CDATA[We&#8217;ve just put together a calculator to work out your savings from Michael Cullen&#8217;s Budget 2008. It&#8217;s on the Sharesight website here: http://www.sharesight.co.nz/tools/budget_2008_calculators/]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just put together a calculator to work out your savings from Michael Cullen&#8217;s Budget 2008. It&#8217;s on the Sharesight website here:</p>
<p><a href="http://www.sharesight.co.nz/tools/budget_2008_calculators/">http://www.sharesight.co.nz/tools/budget_2008_calculators/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2008/05/2008-budget-calculators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increment Ruby on Rails migration number</title>
		<link>http://www.abletech.co.nz/2008/05/increment-ruby-on-rails-migration-number/</link>
		<comments>http://www.abletech.co.nz/2008/05/increment-ruby-on-rails-migration-number/#comments</comments>
		<pubDate>Thu, 01 May 2008 06:45:00 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/blog/?p=51</guid>
		<description><![CDATA[We recently needed to create a new database migration, and needed to insert it into at certain position. Normally what I have done in the past is to alter the migration index of an existing file or two. 

But this time, it needed to go in at 003. I was going to have to manually increment about 30 or 40 migration scripts. So, it was time to apply my Ruby skills to do it automatically. 

Here is the result:
]]></description>
			<content:encoded><![CDATA[<p>We recently needed to create a new database migration, and needed to insert it into at certain position. Normally what I have done in the past is to alter the migration index of an existing file or two. </p>
<p>But this time, it needed to go in at 003. I was going to have to manually increment about 30 or 40 migration scripts. So, it was time to apply my Ruby skills to do it automatically. </p>
<p>Here is the result:</p>
<p><textarea name="code" class="ruby" rows="47" cols="70"><br />
#!/usr/bin/ruby<br />
#<br />
# Increments the number in Rails migrations from a given starting index. Run<br />
# this in the db/migrations directory only.<br />
#<br />
# Example:<br />
#<br />
# increment_migrations 3 RUN<br />
#<br />
# this would add 1 to to all your migrations from 003_create_XXXXX.rb onwards</p>
<p>case ARGV.size<br />
when 1, 2<br />
  from_index = ARGV[0].to_i<br />
  dir = Dir.new(&#8216;.&#8217;)<br />
  file_list = dir.to_a.sort</p>
<p>  file_list.each do |fn|<br />
    if fn =~ /(\d{3})(.*\.rb)/<br />
      index = $1.to_i<br />
      if index >= from_index<br />
        index += 1<br />
        new_name = case index.to_s.length<br />
        when 1<br />
          &#8220;00#{index}#{$2}&#8221;<br />
        when 2<br />
          &#8220;0#{index}#{$2}&#8221;<br />
        else<br />
          &#8220;#{index}#{$2}&#8221;<br />
        end<br />
        puts &#8220;Converting &#8216;#{fn}&#8217; to &#8216;#{new_name}&#8217;&#8221;<br />
        File.rename fn, new_name if ARGV[1] == &#8220;RUN&#8221;<br />
      else<br />
        puts &#8220;Skipping &#8216;#{fn}&#8217;&#8221;<br />
      end<br />
    else<br />
      puts &#8220;Ignoring &#8216;#{fn}&#8217;&#8221;<br />
    end<br />
  end<br />
else<br />
  puts &#8220;Usage: #{$0} <number> [RUN]&#8220;<br />
  puts &#8221;   where&#8221;<br />
  puts &#8221;      number &#8211; migration number to start from (mandatory)&#8221;<br />
  puts &#8221;      RUN &#8211; add to run to make the changes (default does not rename)&#8221;<br />
end<br />
</textarea></p>
<p>So when you run it, you will get output such as:</p>
<p><textarea name="code" class="ruby" rows="12" cols="70"><br />
$ increment_migrations.rb 3<br />
Ignoring &#8216;.&#8217;<br />
Ignoring &#8216;..&#8217;<br />
Skipping &#8217;001_create_people.rb&#8217;<br />
Skipping &#8217;002_create_rejection_templates.rb&#8217;<br />
Converting &#8217;003_create_users.rb&#8217; to &#8217;004_create_users.rb&#8217;<br />
Converting &#8217;004_create_alive_statuses.rb&#8217; to &#8217;005_create_alive_statuses.rb&#8217;<br />
Converting &#8217;005_create_contributors.rb&#8217; to &#8217;006_create_contributors.rb&#8217;<br />
</textarea></p>
<h3>Instructions</h3>
<ol>
<li>Cut and paste the file, or download it from <a href="http://pastie.caboo.se/190292">increment_migrations.rb</a>.</li>
<li>Save it somewhere</li>
<li>Make it executable <code>chmod 755 /path/to/increment_migrations.rb</code></li>
<li>The change directory to ./db/migrations</li>
<li>then run <code>/path/to/increment_migrations.rb 3</code></li>
<li>and if the output looks as expected</li>
<li>finally run <code>/path/to/increment_migrations.rb 3 RUN</code></li>
</ol>
<p>Finally, thanks to the client for permission to publish. Thanks for giving back to the community!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2008/05/increment-ruby-on-rails-migration-number/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Work-around for running Rails/Apache in a subdirectory</title>
		<link>http://www.abletech.co.nz/2008/04/running-rails-in-a-subdirectory/</link>
		<comments>http://www.abletech.co.nz/2008/04/running-rails-in-a-subdirectory/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 13:48:00 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.abletech.co.nz/blog/?p=50</guid>
		<description><![CDATA[<p>I've just configured Rails to run in a subfolder on a client's website. Ran into a few issues, that are worth documenting:</p>

<p>In this configuration, you can visit the Rails site by visiting something like http://www.hostname.com/coolsite/</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just configured <a href="http://www.benlog.org/2007/2/17/deploy-your-rails-app-in-a-subdirectory-with-apache-and-mongrel">Rails to run in a subfolder</a> on a client&#8217;s website. Ran into a few issues, that are worth documenting:</p>
<p>In this configuration, you can visit the Rails site by visiting something like http://www.hostname.com/coolsite/</p>
<p>1. There is a Rails bug (<a href="http://dev.rubyonrails.org/ticket/10913">ticket 10913</a>) that effects links to assets. I have a link to our combined stylesheets defined as: </p>
<p><textarea name="code" class="html"><br />
<%= stylesheet_link_tag 'reset-fonts',<br />
                          &#8216;base-min&#8217;,<br />
                          &#8216;calendar_date_select_silver&#8217;,<br />
                          &#8216;application&#8217;,<br />
                          &#8216;header&#8217;,<br />
                          &#8216;tables&#8217;,<br />
                          &#8216;form&#8217;, :media => &#8220;all&#8221;, :cache => &#8216;coolsite&#8217; %><br />
</textarea></p>
<p>The bug is that Rails looks for all of your stylesheets in /public/coolsite/stylesheets/*.css, where &#8216;coolsite&#8217; is the name of your subdirectory. Obviously, it should not be including the &#8216;coolsite&#8217; folder in the path.</p>
<p>The workaround I use, is to create a soft link after capistrano deploys the code to our production server. I added this to my /config/deploy.rb file. </p>
<p><textarea name="code" class="ruby"><br />
# Work around for bug http://dev.rubyonrails.org/ticket/10913<br />
desc &#8220;Create Apache prefix link&#8221;<br />
task :create_apache_prefix_link do<br />
  run &#8220;ln -s #{release_path}/public #{release_path}/public/#{apache_prefix}&#8221;<br />
end</p>
<p>after &#8220;deploy:update&#8221;, &#8220;create_apache_prefix_link&#8221;<br />
</textarea></p>
<p>Now, whenever you do a cap:deploy, a soft link will be created in your public software, and this will allow Rails to resolve the stylesheet (and other asses files) in the faulty path. When the ticket is fixed, just remove the capistrano task.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abletech.co.nz/2008/04/running-rails-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
