<?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>redemption in a blog &#187; iPhone</title>
	<atom:link href="http://blog.codefront.net/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Tue, 24 Jan 2012 01:47:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rendering plists from your Rails app</title>
		<link>http://blog.codefront.net/2010/06/14/rendering-plists-from-your-rails-app/</link>
		<comments>http://blog.codefront.net/2010/06/14/rendering-plists-from-your-rails-app/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 03:22:50 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/?p=1315</guid>
		<description><![CDATA[Jeena emailed me recently about his Rails plugin, plistifier, that allows you to render plists (property lists). It allows you to render your ActiveRecord objects as plists (among other things): def show @post = Post.find(params[:id]) respond_to do &#124;format&#124; format.xml { render :xml =&#62; @post } format.plist { render :plist =&#62; @post } end end Jeena [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://github.com/jeena/">Jeena</a> emailed me recently about his Rails plugin, <a href="http://github.com/jeena/plistifier">plistifier</a>, that allows you to render <a href="http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html">plists</a> (property lists).</p>
<p>It allows you to render your ActiveRecord objects as plists (among other things):</p>
<pre><code class="ruby">def show
  @post = Post.find(params[:id])

  respond_to do |format|
    format.xml   { render :xml =&gt; @post }
    format.plist { render :plist =&gt; @post }
  end
end</code></pre>
<p>Jeena was kind enough to let me know he &#8220;stole&#8221; my old <a href="http://blog.codefront.net/2007/07/11/better-json-output-from-rails-with-the-jsonifier-plugin/">Jsonifier plugin</a> (<a href="http://github.com/chuyeow/jsonifier">github</a>) code in <a href="http://github.com/jeena/plistifier">plistifier</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2010/06/14/rendering-plists-from-your-rails-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Railscasts Xcode theme</title>
		<link>http://blog.codefront.net/2010/02/04/railscasts-xcode-theme/</link>
		<comments>http://blog.codefront.net/2010/02/04/railscasts-xcode-theme/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 14:12:27 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/?p=1291</guid>
		<description><![CDATA[For those of you who use the excellent Railscasts TextMate theme and want to replicate the theme in Xcode, you can grab my version from Github. This is what it looks like: Save it into ~/Library/Application Support/Xcode/Color Themes/, restart Xcode, and open its Preferences. You will be able to pick the Railscasts Color Theme in [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who use the excellent <a href="http://railscasts.com/about">Railscasts TextMate theme</a> and want to replicate the theme in Xcode, you can grab my version <a href="http://gist.github.com/raw/294642/4956c43399c3cfa7d248fb581b23054e5bfa92ab/Railscasts.xccolortheme">from Github</a>. This is what it looks like:</p>
<p><a href="http://blog.codefront.net/wp-content/uploads/2010/02/Railscasts-Xcode-e1265292666981.png"><img src="http://blog.codefront.net/wp-content/uploads/2010/02/Railscasts-Xcode-e1265292666981.png" alt="Railscasts Xcode theme" title="Railscasts Xcode" width="510" height="440" class="aligncenter size-full wp-image-1292" /></a></p>
<p>Save it into <code>~/Library/Application Support/Xcode/Color Themes/</code>, restart Xcode, and open its Preferences. You will be able to pick the Railscasts Color Theme in the Fonts &#038; Colors tab.</p>
<p>I dug this theme up after realizing that I haven&#8217;t actually saved the Railscasts theme I&#8217;d replicated from several months ago and was too lazy to set up another one in my other Mac.</p>
<p><a href="http://blog.10to1.be/">Koen Van Der Auwera</a> did a similar theme too so if you find that mine doesn&#8217;t work so well (I&#8217;ve only used it for Cocoa Touch development, not at all for developing Mac apps), scoot over to his <a href="http://blog.10to1.be/cocoa/2009/09/25/railscasts-xcode-theme/">blog post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2010/02/04/railscasts-xcode-theme/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How my simple iPhone app made it to the top of the App Store</title>
		<link>http://blog.codefront.net/2009/09/22/singtel-data-usage-iphone-app/</link>
		<comments>http://blog.codefront.net/2009/09/22/singtel-data-usage-iphone-app/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 14:26:33 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/?p=1223</guid>
		<description><![CDATA[Slightly more than a month back I wrote this little iPhone app (App Store link), almost a toy app really, to check the usage of my data plan with my local telco (Singtel). I wanted to scratch an itch and I also really didn&#8217;t want to exceed my data plan &#8211; the fees are excessive. [...]]]></description>
			<content:encoded><![CDATA[<p>Slightly more than a month back I wrote <a href="http://sliceoflifeapps.com/iphone/datausage/">this little iPhone app</a> (<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=327567068&#038;mt=8&#038;uo=6">App Store link</a>), almost a toy app really, to check the usage of my data plan with my local telco (Singtel). I wanted to scratch an itch and I also <em>really</em> didn&#8217;t want to exceed my data plan &#8211; the fees are <em>excessive</em>.</p>
<p>Anyway, I submitted it to the iPhone App Store for approval as a free app and named it <strong>Singtel Data Usage</strong>. No points for creativity with the name but I thought it&#8217;d be nice to know exactly what the app did from just reading its name. After one keyword rejection (which was unfounded but I wasn&#8217;t going to argue with the app reviewers), it finally got approved a few days ago.</p>
<p><img src="http://blog.codefront.net/wp-content/uploads/2009/09/iphone-data-usage.gif" alt="Singtel Data Usage iPhone app screenshot" title="Singtel Data Usage iPhone app screenshot" width="300" height="559" class="aligncenter size-full wp-image-1225" /></p>
<p>Yeah that&#8217;s what it looks like. I stole part of the design from another iPhone app &#8211; can anyone guess which one? I think I spent 80% of development time changing the design over and over again, tweaking font sizes, and agonizing over which icons to use.</p>
<p>Thanks to folks on Twitter (I&#8217;m <a href="http://twitter.com/chuyeow">@chuyeow</a> &#8211; do follow me if you&#8217;re reading my blog), word got around and by the 3rd day of it being approved, my app was the Top Free app on the Singapore App Store. Going to take a time out for the vanity shot:</p>
<p><img src="http://blog.codefront.net/wp-content/uploads/2009/09/Screen-shot-2009-09-22-at-PM-10.39.06.png" alt="" title="" width="510" height="376" class="aligncenter size-full wp-image-1242" /></p>
<p>A similar app, <a href="http://ibbomapp.appspot.com/">iBBOM</a>, was approved around the same time but I believe I got a head start because of all the awesome people on Twitter who retweeted <a href="http://twitter.com/chuyeow/status/4093690396">my tweet</a> and the kind folks who gave glowing reviews on the App Store (thanks especially to <a href="http://deepcalm.com/">Andy Croll</a> for the 1st review). iBBOM actually looks much better than my app (I can&#8217;t help tweeting <a href="http://twitter.com/chuyeow/status/4162960802">about</a> <a href="http://twitter.com/sliceoflifer/status/4119270971">it</a>) and works perfectly (only thing I don&#8217;t like are the ads). I believe I couldn&#8217;t have gotten to the top of the App Store without the guys and gals who spread the word on Twitter.</p>
<p>On to the not so fun part of this post. Yet another similar app, <a href="http://mugunthkumar.com/pages/iPhone_Apps/Entries/2009/7/13_SingTel_BBoM.html">SG BBOM</a>, was <a href="http://www.imerlion.com/2009/09/sg-bbom-app-pulled-from-app-store.html">pulled from the App Store by Singtel</a> (the telco) recently so I&#8217;m expecting to hear from Singtel really soon. We shall see.</p>
<p>In the meantime, if you own an iPhone and have a Singtel data plan, do check out <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=327567068&#038;mt=8&#038;uo=6">my app</a> (App Store link) and give an honest review on the App Store. If you&#8217;ve already downloaded it, I&#8217;d like to know what you think in a review as well. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2009/09/22/singtel-data-usage-iphone-app/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Upgraded to iPhone OS 3.0 and running out of battery fast?</title>
		<link>http://blog.codefront.net/2009/06/22/upgraded-to-iphone-os-3-0-and-running-out-of-battery-fast/</link>
		<comments>http://blog.codefront.net/2009/06/22/upgraded-to-iphone-os-3-0-and-running-out-of-battery-fast/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 14:31:47 +0000</pubDate>
		<dc:creator>Chu Yeow</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.codefront.net/?p=1177</guid>
		<description><![CDATA[After upgrading my girlfriend&#8217;s iPhone 3G to OS 3.0 recently, I noticed that the iPhone&#8217;s battery was getting depleted really quickly. I&#8217;d left it overnight with Wifi, 3G, Bluetooth, Push Notifications all off, and the battery went from 80% to a jaw-dropping OMGWTFBBQ 10%. I attributed it to the recent jailbreak (I&#8217;ve already removed the [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading my girlfriend&#8217;s iPhone 3G to OS 3.0 recently, I noticed that the iPhone&#8217;s battery was getting depleted really quickly. I&#8217;d left it overnight with Wifi, 3G, Bluetooth, Push Notifications all off, and the battery went from 80% to a jaw-dropping <em>OMGWTFBBQ</em> 10%.</p>
<p>I attributed it to the recent jailbreak (I&#8217;ve already removed the jailbreak trying to figure out this problem) at first. I only realized something was really wrong when the iPhone&#8217;s battery <strong>started draining while it was charging via USB</strong>!</p>
<p>Looking around on <a href="http://www.urbandictionary.com/define.php?term=interwebs">teh interwebs</a>, I managed to solve it (easily!) by following the suggestions from <a href=" http://discussions.apple.com/message.jspa?messageID=9664702">this thread at the Apple support forums</a>. Here&#8217;s what worked for me:</p>
<ol>
<li>Go to <strong>Settings</strong> on your iPhone.</li>
<li>Turn <strong>Notifications</strong> off. I&#8217;m not sure if this is necessary but did so just in case.</li>
<li>Go to <strong>Mail, Contacts, Calendars</strong> and <strong>delete all your accounts</strong> (I deleted even Calendar accounts just in case). You may want to write down or backup your account settings first.</li>
<li>Go to <strong>Fetch New Data</strong> (also in the same Mail, Contacts, Calendars settings) and make sure <strong>Push</strong> is <strong>Off</strong>.</li>
<li>It&#8217;s probably not necessary but you may want to restart your iPhone (power it on and off) here.</li>
<li>Add back all your accounts. You can turn <strong>Push</strong> back on <strong>Fetch New Data</strong> now.</li>
<li>You can also turn <strong>Notifications</strong> back on if you wish.</li>
</ol>
<p>It seems like the iPhone 3.0 OS update has a bug where email accounts with active push notifications were set to keep fetching new email even if push is turned off explicitly. Hopefully this post will help solve your battery problems, if not, you&#8217;ve gotta keep looking &#8211; the <a href="http://discussions.apple.com/forum.jspa?forumID=1139">Apple iPhone Support forums</a> is a good place to start.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codefront.net/2009/06/22/upgraded-to-iphone-os-3-0-and-running-out-of-battery-fast/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

