<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I make things : kurl.ws • tweet-r.com • bluespark.co.nz</description><title>John Ballinger</title><generator>Tumblr (3.0; @bluespark)</generator><link>http://blog.bluespark.co.nz/</link><item><title>Setting up Codeigniter 2.1 with HMVC </title><description>&lt;a href="http://somethingstatic.com/setting-hmvc-codeigniter-2-1/"&gt;Setting up Codeigniter 2.1 with HMVC &lt;/a&gt;</description><link>http://blog.bluespark.co.nz/post/23443482097</link><guid>http://blog.bluespark.co.nz/post/23443482097</guid><pubDate>Mon, 21 May 2012 10:44:32 +1200</pubDate></item><item><title>KLCK &amp; ChairBro - The tech stack</title><description>&lt;p&gt;I was just asked on Twitter how I built KLCK, so here is a pretty good break down of the technology and the order things were done.&lt;/p&gt;
&lt;p&gt;For quite some time I have testing and working on different systems and frameworks.  I love Python but didn&amp;#8217;t really want to host this app on app Engine and I have been doing a lot of PHP work lately. I have done a site in Ruby on Rails but find it quite complicated to come back to you if you dont do Rails fulltime, I had such a horrible experience hosting Ruby that its really put me off Ruby &amp;amp; Rails, but I love Ruby as language (yes I know about Sinatra).  So this was the technology of choice, probably because it is easy to host and configure and pretty solid at the end of the day (even if it is a bit ugly at times).&lt;/p&gt;
&lt;p&gt;So to start off with I built &lt;a href="http://www.ChairBro.co.nz"&gt;www.ChairBro.co.nz&lt;/a&gt; which is powered by 1 file, index.php.&lt;/p&gt;
&lt;p&gt;This uses a super simple framework called Silex http://silex.sensiolabs.org/&lt;br/&gt;Silex allows you to run your whole website from 1 file and manages all your routes etc. Its simple and flexible.&lt;/p&gt;
&lt;p&gt;To make things super simple, the HTML uses Smarty Templates http://smarty.net/ which allows you to inherit and extend your HTML files.  In essence you can create a master template file and inherit this into other templates.  Choosing smarty was the best choice I made here. One thing about smarty is that it will compile your templates+code on the first run.  So you templates are not parsed on every request, they are parsed once and then turned into pure PHP code. So KLCK, ChairBro run render super fast on the server. &lt;/p&gt;
&lt;p&gt;I am a real fan of ORM databases, and love this one called Red Bean PHP http://redbeanphp.com/ which allows you to quickly get a DB up and running, I used MySql for the database but for some projects I have used Sqlite. I do recommend MySql for you DB. Red Bean allows you to keep away from SQL (you can still uses it though) so you focus on manipulating object, not SQL statements.&lt;/p&gt;
&lt;p&gt;For image manipulation and cropping. http://shiftingpixel.com/2008/03/03/smart-image-resizer/ which basically allows you to manage image resizing on the fly.  Super simple.&lt;/p&gt;
&lt;p&gt;Finally after ChairBro was built I decided to create KLCK using the same engine but different design and different categories. Because I used Smarty for my templates I only had to create a new master template for the site and with some tweaks, I have 2 sites running of the same code base.&lt;/p&gt;
&lt;p&gt;How big is it all. Well the 2 sites run off 1 index.php file which is about 900 lines long. This includes lots of comments and some other functions I am not using. &lt;/p&gt;
&lt;p&gt;Result: Love it. Its simple, separated, DB code is terse and concise, templates are logical and very easy to move around and manipulate. runs fast. &lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/20926317744</link><guid>http://blog.bluespark.co.nz/post/20926317744</guid><pubDate>Thu, 12 Apr 2012 10:30:00 +1200</pubDate></item><item><title>Pilotmoon Blog: Scroll Reverser — get in practice for Lion</title><description>&lt;a href="http://blog.pilotmoon.com/post/4041089648"&gt;Pilotmoon Blog: Scroll Reverser — get in practice for Lion&lt;/a&gt;: &lt;p&gt;&lt;a href="http://blog.pilotmoon.com/post/4041089648"&gt;pilotmoon&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;img src="http://downloads.pilotmoon.com.s3.amazonaws.com/site/srshot.png" width="324" height="176"/&gt;&lt;/p&gt;
&lt;p&gt;You might have learned that a certain upcoming version of Mac OS X may have scrolling that is “&lt;a href="http://www.9to5mac.com/53792/scrolling-is-bass-ackwards-in-lion/"&gt;bass-ackwards&lt;/a&gt;”.&lt;/p&gt;
&lt;p&gt;That is, when you push up on your trackpad or mouse scroller, the page content moves up too, just like on iOS devices.&lt;/p&gt;
&lt;p&gt;I made a very minimal little app that lets you reverse…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.bluespark.co.nz/post/4617835200</link><guid>http://blog.bluespark.co.nz/post/4617835200</guid><pubDate>Fri, 15 Apr 2011 11:11:36 +1200</pubDate></item><item><title>iPhone ad-hoc builds</title><description>&lt;a href="http://www.tuaw.com/2010/05/23/devsugar-a-better-way-to-share-ad-hoc-builds/"&gt;iPhone ad-hoc builds&lt;/a&gt;: &lt;p&gt;&lt;span&gt;If you’re concerned whether the ipa file is properly created, go ahead and repeat the Share Application step but save the file to the desktop instead of opening it in Mail. Then unzip the ipa file and look into the Payload folder that is extracted. Inside, you’ll find an application bundle, and inside there, you’ll discover the embedded provision file. Load the file in TextEdit to confirm that the proper UDIDs have been included in the provisioning file.&lt;/span&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/1003235043</link><guid>http://blog.bluespark.co.nz/post/1003235043</guid><pubDate>Wed, 25 Aug 2010 00:24:50 +1200</pubDate></item><item><title>Don’t Be Ugly By Accident! « OkTrends</title><description>&lt;a href="http://blog.okcupid.com/index.php/dont-be-ugly-by-accident/"&gt;Don’t Be Ugly By Accident! « OkTrends&lt;/a&gt;: &lt;p&gt;A must read on some funny facts about photos and attractiveness.&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/933955499</link><guid>http://blog.bluespark.co.nz/post/933955499</guid><pubDate>Wed, 11 Aug 2010 10:45:31 +1200</pubDate></item><item><title>Getting your iPad on 3G.</title><description>&lt;p&gt;Get the XT Prepaid Mobile Broadband 500MB - you don&amp;#8217;t have to pay monthly - &lt;a href="http://twitter.com/TelecomNZ/status/20190605746"&gt;Confirmed By Telecom ^JL.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you use your iPad now and again outside of your wifi zone. You could get 500MB of data from Vodafone or 2º but it&amp;#8217;s going to cost you $20/month. You must also pay every month. On XT Prepaid Mobile Broadband 500MB, you pay for what you use and have 6 months to top up.&lt;/p&gt;
&lt;p&gt;You need to tell them at the Telecom Store that you want the 500MB Mobile Broadband prepaid rate on the sim when you buy it. (they will probably look at you confused).&lt;/p&gt;
&lt;p&gt;The cheapest is $29.95 (it says per month, but it should say, &amp;#8220;500MB of data capped at 29.95&amp;#8221;).&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.telecom.co.nz/mobile/mobilebroadband/plansandpricing/prepaid"&gt;http://www.telecom.co.nz/mobile/mobilebroadband/plansandpricing/prepaid&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This 500MB prepaid rate basically means you pay 10c/Mb up to $29.95 which is 300MB. Then you get a free 200MB if use that in a single calendar month. &lt;/p&gt;
&lt;p&gt;At the bottom of this table is says.&lt;/p&gt;
&lt;p&gt;&amp;#8220;If you use less than your data allowance you&amp;#8217;ll only be charged for what you use, and your credit balance will roll over to the next calendar month.&amp;#8221;&lt;/p&gt;
&lt;p&gt;Which means if you use only 100MB in a month, you only pay $10. If you use 300MB in one month you are billed $30 and if you use 500MB of data in 1 month you will be still be billed $30. You can add another 500MB though by topping and getting 1GB for $60 (I am rounding my values up to make my example clearer).&lt;/p&gt;
&lt;p&gt;You must top up every 6 months.&lt;/p&gt;
&lt;p&gt;&amp;#8220;Any top-up credit needs to be used within six months otherwise it will expire and you need to make sure you top up at least once every six months to avoid your Prepaid account being deactivated.&amp;#8221;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.telecom.co.nz/mobile/yourmobile/topup"&gt;http://www.telecom.co.nz/mobile/yourmobile/topup&lt;/a&gt; (Heading - By the way, just so you know&amp;#8230;) &lt;/p&gt;
&lt;p&gt;This means if you use you iPad now and again on 3G it&amp;#8217;s pretty good, if you need heaps of data, eg 500MB to 1GB this plan is good.&lt;/p&gt;
&lt;p&gt;You can see lots more options here if you have more data requirements.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.whiteandblack.co.nz/2010/07/ipad-data-plans-comparision-xt-vodafone-and-2-degrees/"&gt;http://www.whiteandblack.co.nz/2010/07/ipad-data-plans-comparision-xt-vodafone-and-2-degrees/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks to Matthew Buchanan for his assistance with pulling the correct data together for this post. &lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/895979841</link><guid>http://blog.bluespark.co.nz/post/895979841</guid><pubDate>Tue, 03 Aug 2010 14:34:00 +1200</pubDate></item><item><title>Mac OS X: ssh key generation and deployment</title><description>&lt;a href="http://www.geektimes.com/macintosh/os/x/10_3/and/ssh_keygen.html"&gt;Mac OS X: ssh key generation and deployment&lt;/a&gt;: &lt;p&gt;Creating RSA keys for OSX / Linux&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/847824758</link><guid>http://blog.bluespark.co.nz/post/847824758</guid><pubDate>Fri, 23 Jul 2010 15:14:41 +1200</pubDate></item><item><title>sponno's iPhone-Photoshop-JSX-Icon-Exporter at master - GitHub</title><description>&lt;a href="http://github.com/sponno/iPhone-Photoshop-JSX-Icon-Exporter"&gt;sponno's iPhone-Photoshop-JSX-Icon-Exporter at master - GitHub&lt;/a&gt;: &lt;p&gt;&lt;span&gt;
&lt;pre&gt;Photoshop - iPhone App Icon Export for iPhone 4/3 Touch and iPad.

Creates all 6 icons sizes that are required for these devices from homescreen, retina display, spotlight search

1. To use this script, double click the script file, photoshop will launch and ask you for a 512x512 icon file of any 
image format (jpeg, psd, gif, png etc.)
2. Select the file and photos shop will create 6 icon files and save these with the correct names in the save folder as 
the 512 image.

3. Add these images into your iPhone project and update you app plist.
Read Apples Q&amp;Q 1686 on how to add this icons to your info plist
&lt;a href="http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html"&gt;&lt;a href="http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html"&gt;http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html&lt;/a&gt;&lt;/a&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/825433149</link><guid>http://blog.bluespark.co.nz/post/825433149</guid><pubDate>Sun, 18 Jul 2010 11:49:41 +1200</pubDate></item><item><title>Video JS | HTML5 Video Player</title><description>&lt;a href="http://videojs.com/"&gt;Video JS | HTML5 Video Player&lt;/a&gt;: &lt;p&gt;HTML5 video player, fallback support for IE, Opera, works with iPhone and supports, h.264, ogg and webm&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/626217430</link><guid>http://blog.bluespark.co.nz/post/626217430</guid><pubDate>Mon, 24 May 2010 10:32:12 +1200</pubDate></item><item><title>Duplicate line in xCode with Ctrl+D, finally.</title><description>&lt;a href="http://www.xinsight.ca/blog/xcode-trick-creating-a-shortcut-to-duplicate-a-line/"&gt;Duplicate line in xCode with Ctrl+D, finally.&lt;/a&gt;: &lt;p&gt;More details on all the commands to make your own.&lt;br/&gt;
&lt;a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/"&gt;http://www.erasetotheleft.com/post/mac-os-x-key-bindings/&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/624838532</link><guid>http://blog.bluespark.co.nz/post/624838532</guid><pubDate>Mon, 24 May 2010 00:27:11 +1200</pubDate></item><item><title>OSX SVN remove pesky svn files from a folder</title><description>&lt;p&gt;In Terminal navigate to the correct folder first.&lt;br/&gt;To see what this command is going to remove run&lt;/p&gt;
&lt;p&gt;&lt;em&gt;find . -name .svn&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Then when you want to remove these files. Note the traling slash semi colon.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;find . -name .svn -exec rm -rf {} \;&lt;/em&gt;&lt;/p&gt;
&lt;br/&gt;</description><link>http://blog.bluespark.co.nz/post/592265022</link><guid>http://blog.bluespark.co.nz/post/592265022</guid><pubDate>Wed, 12 May 2010 23:57:35 +1200</pubDate></item><item><title>Developer-To-Developer iPhone App Distribution Without Ad-Hoc Provisioning</title><description>&lt;a href="http://www.mobileorchard.com/developer-to-developer-iphone-app-distribution-without-ad-hoc-provisioning/"&gt;Developer-To-Developer iPhone App Distribution Without Ad-Hoc Provisioning&lt;/a&gt;: &lt;p&gt;A pretty simple way to send an app for another developer to re-sign and install on their machine. Watch 2min Vimeo video to see how easy this is.&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/490210968</link><guid>http://blog.bluespark.co.nz/post/490210968</guid><pubDate>Fri, 02 Apr 2010 14:49:44 +1300</pubDate></item><item><title>SSH Public/Private keys.</title><description>&lt;a href="http://discussions.apple.com/message.jspa?messageID=11128067#11128067"&gt;SSH Public/Private keys.&lt;/a&gt;: &lt;p&gt;Quickest way to generate and share SSH keys.&lt;br/&gt;
1. Generate key (if you haven’t done this before).&lt;br/&gt;
ssh-keygen -t rsa -C “tekkub@gmail.com”&lt;/p&gt;

&lt;p&gt;2. Upload key.&lt;br/&gt;
cat ~/.ssh/id_dsa.pub | ssh user@host ‘cat - » ~/.ssh/authorized_keys’&lt;/p&gt;

&lt;p&gt;You may have to login to the server and mkdir .ssh&lt;br/&gt;
If you get permission denied, delete this servers .ssh folder and recreate it again.&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/473695838</link><guid>http://blog.bluespark.co.nz/post/473695838</guid><pubDate>Fri, 26 Mar 2010 14:31:55 +1300</pubDate></item><item><title>Damn awesome album by E603, the mixes make want to download all...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_ku1q5wUvPx1qz7itlo1_400.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Damn awesome album by E603, the mixes make want to download all of the originals and listen to them.&lt;/p&gt;
&lt;p&gt;Download for free but you can also pay what you want. I have been listening to it so much that I paid $25 USD and Ethan is sending me a Tee-Shirt to NZ, double win!&lt;/p&gt;
&lt;p&gt;Get your Torn Up mix from &lt;a href="http://www.e-603.com/"&gt;&lt;a href="http://www.e-603.com"&gt;www.e-603.com&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/266742473</link><guid>http://blog.bluespark.co.nz/post/266742473</guid><pubDate>Thu, 03 Dec 2009 11:22:44 +1300</pubDate></item><item><title>Oh I love stuff like this.
/via matthewb

Albert Exergian...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo4_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo5_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo6_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo7_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_ktcklaodEI1qz6jndo8_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;Oh I love stuff like this.&lt;/p&gt;
&lt;p&gt;/via &lt;a href="http://matthewbuchanan.name/post/249447795/albert-exergian"&gt;matthewb&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Albert Exergian created this great set of minimalist film and television posters as a personal project. You’ll find these and many more on &lt;a href="http://exergian.tumblr.com"&gt;his blog&lt;/a&gt;, and his &lt;a href="http://www.exergian.com"&gt;commercial portfolio&lt;/a&gt; is equally impressive (and much more ornate).&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://blog.bluespark.co.nz/post/266148179</link><guid>http://blog.bluespark.co.nz/post/266148179</guid><pubDate>Wed, 02 Dec 2009 23:35:05 +1300</pubDate></item><item><title>The coolest way to use Dropbox on a Mac to send...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_kt8uvgdTwN1qz7itlo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The coolest way to use Dropbox on a Mac to send file.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://wiki.dropbox.com/DropboxAddons/Dropbox%20Service"&gt;http://wiki.dropbox.com/DropboxAddons/Dropbox%20Service&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once installed you can simply right click on any file and copy/move it to your Dropbox public folder. The public URL will automatically be copied to your clipboard. Awesome.&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/247037489</link><guid>http://blog.bluespark.co.nz/post/247037489</guid><pubDate>Tue, 17 Nov 2009 21:14:07 +1300</pubDate></item><item><title>My take on how the new iMac should have been designed. Even less...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_kru4hhRUbG1qz7itlo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;My take on how the new iMac should have been designed. Even less noise than the latest iMac with “reduced” noise.&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/218468367</link><guid>http://blog.bluespark.co.nz/post/218468367</guid><pubDate>Wed, 21 Oct 2009 11:44:10 +1300</pubDate></item><item><title>Graphed data of New Zealand fixed and 2 year floating rates from...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_krkxnmRZ6Y1qz7itlo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Graphed data of New Zealand fixed and 2 year floating rates from 1964 to Jan 2009&lt;br/&gt;&lt;a href="http://blog.bluespark.co.nz/wp-content/uploads/2009/10/Mortgage-Graph.png"&gt;Full Size&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/214164472</link><guid>http://blog.bluespark.co.nz/post/214164472</guid><pubDate>Fri, 16 Oct 2009 12:38:14 +1300</pubDate></item><item><title>The PUMA Index</title><description>&lt;a href="http://theindex.puma.com/"&gt;The PUMA Index&lt;/a&gt;: &lt;p&gt;How all stock marketing charts should be created. !=&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/194075703</link><guid>http://blog.bluespark.co.nz/post/194075703</guid><pubDate>Tue, 22 Sep 2009 22:56:06 +1200</pubDate></item><item><title> Ever wonder what the differences between Arial and Helvetica...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_kqdczopk2g1qz7itlo1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://thenextweb.com/2009/09/20/differences-arial-helvetica/"&gt; Ever wonder what the differences between Arial and Helvetica were?&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.bluespark.co.nz/post/194075216</link><guid>http://blog.bluespark.co.nz/post/194075216</guid><pubDate>Tue, 22 Sep 2009 22:54:59 +1200</pubDate></item></channel></rss>

