<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><description>@vtim - iOS development and running</description><title>iOS development &amp; running</title><generator>Tumblr (3.0; @vtim)</generator><link>http://vtim.tumblr.com/</link><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/vtim" /><feedburner:info uri="vtim" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://tumblr.superfeedr.com/" /><item><title>Groovy-script to send iOS push notifications</title><description>&lt;p&gt;When testing your iOS-app for the handling of push notifications, it&amp;#8217;s nice to have a quick way to send one or more messages to your device.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/2656146"&gt;Here&lt;/a&gt;&amp;#8217;s a quick little Groovy-script I wrote that shows how to use &lt;a href="https://github.com/notnoop/java-apns"&gt;java-apns&lt;/a&gt; to do just that. See the java-apns documentation for more information on setting things up.&lt;/p&gt;

&lt;p&gt;You&amp;#8217;ll need to have &lt;a href="http://groovy.codehaus.org"&gt;Groovy&lt;/a&gt; installed to run the script. &lt;a href="http://groovy.codehaus.org/Grape"&gt;Grape&lt;/a&gt; willl automa(t|g)ically resolve the dependencies for you.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vtim/~4/Rlqwez46QMQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vtim/~3/Rlqwez46QMQ/22800500314</link><guid isPermaLink="false">http://vtim.tumblr.com/post/22800500314</guid><pubDate>Thu, 10 May 2012 23:55:00 +0200</pubDate><feedburner:origLink>http://vtim.tumblr.com/post/22800500314</feedburner:origLink></item><item><title>Embedding GitHub projects in your svn repository</title><description>&lt;p&gt;GitHub is the place to be for sharing code. Unfortunately a lot of companies are still using subversion internally. Luckily, GitHub offers read-only svn access to all repositories (See &lt;a href="https://github.com/blog/626-announcing-svn-support"&gt;this April-Fools&amp;#8217;-that&amp;#8217;s-actually-not-a-joke blogpost from 2010&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;This means that you can use svn:externals (&lt;a href="http://svnbook.red-bean.com/en/1.0/ch07s03.html"&gt;http://svnbook.red-bean.com/en/1.0/ch07s03.html&lt;/a&gt;) to refer to the main repo instead of exporting code from GitHub and then keeping your own version in svn.&lt;/p&gt;

&lt;p&gt;Here&amp;#8217;s how I am using this to pull down the official facebook-ios-sdk in our &amp;#8220;subversioned&amp;#8221; project:&lt;/p&gt;

&lt;p&gt;If you don&amp;#8217;t have a directory to put your &amp;#8220;external&amp;#8221; code yet, create one and add/commit it:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mkdir libraries
svn add libraries
svn commit libraries -m "Created libraries dir"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create the &lt;code&gt;SVN_EDITOR&lt;/code&gt; variable if it&amp;#8217;s not set already you can choose another editor if you like&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;export SVN_EDITOR=vi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Set the svn:externals property on your libraries directory:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;svn propedit svn:externals libraries
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Copy/paste this in the editor&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;facebook-ios-sdk    &lt;a href="https://github.com/facebook/facebook-ios-sdk/tags/v1.2/src"&gt;https://github.com/facebook/facebook-ios-sdk/tags/v1.2/src&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Save and quit vi&lt;/p&gt;

&lt;p&gt;As you can see in the GitHub url, I&amp;#8217;m using the 1.2-tag to avoid build errors when changes are made to the external repo. When there&amp;#8217;s a 1.3-tag, I can switch to that one by updating the externals definition using propedit. You can also specify a revision number instead of a tag, if you like.&lt;/p&gt;

&lt;p&gt;Don&amp;#8217;t forget to commit the libraries-directory so the build-server and your colleagues also have the definition. This will only commit the property on the directory to your repository, not the external code itself.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;svn commit libraries -m "Added 'facebook-ios-sdk' externals definition"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Done. When you now update, the external code will also be fetched, so &lt;code&gt;svn update&lt;/code&gt; results in:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Fetching external item into 'facebook-ios-sdk'
A    facebook-ios-sdk/FBConnect.h
A    facebook-ios-sdk/FBDialog.bundle
A    facebook-ios-sdk/FBDialog.bundle/images
A    facebook-ios-sdk/FBDialog.bundle/images/close.png
A    facebook-ios-sdk/FBDialog.bundle/images/close@2x.png
A    facebook-ios-sdk/FBDialog.bundle/images/fbicon.png
A    facebook-ios-sdk/FBDialog.h
A    facebook-ios-sdk/FBDialog.m
A    facebook-ios-sdk/FBLoginDialog.h
A    facebook-ios-sdk/FBLoginDialog.m
A    facebook-ios-sdk/FBRequest.h
A    facebook-ios-sdk/FBRequest.m
A    facebook-ios-sdk/Facebook.h
A    facebook-ios-sdk/Facebook.m
A    facebook-ios-sdk/JSON
A    facebook-ios-sdk/JSON/JSON.h
A    facebook-ios-sdk/JSON/NSObject+SBJSON.h
A    facebook-ios-sdk/JSON/NSObject+SBJSON.m
A    facebook-ios-sdk/JSON/NSString+SBJSON.h
A    facebook-ios-sdk/JSON/NSString+SBJSON.m
A    facebook-ios-sdk/JSON/SBJSON.h
A    facebook-ios-sdk/JSON/SBJSON.m
A    facebook-ios-sdk/JSON/SBJsonBase.h
A    facebook-ios-sdk/JSON/SBJsonBase.m
A    facebook-ios-sdk/JSON/SBJsonParser.h
A    facebook-ios-sdk/JSON/SBJsonParser.m
A    facebook-ios-sdk/JSON/SBJsonWriter.h
A    facebook-ios-sdk/JSON/SBJsonWriter.m
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.pbxproj
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.xcworkspace
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.xcworkspace/xcuserdata
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.xcworkspace/xcuserdata/mkijewski.xcuserdatad
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/project.xcworkspace/xcuserdata/mkijewski.xcuserdatad/UserInterfaceState.xcuserstate
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/xcuserdata
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/xcuserdata/mkijewski.xcuserdatad
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/xcuserdata/mkijewski.xcuserdatad/xcschemes
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/xcuserdata/mkijewski.xcuserdatad/xcschemes/facebook-ios-sdk.xcscheme
A    facebook-ios-sdk/facebook-ios-sdk.xcodeproj/xcuserdata/mkijewski.xcuserdatad/xcschemes/xcschememanagement.plist
A    facebook-ios-sdk/facebook_ios_sdk_Prefix.pch
Updated external to revision 119.
&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.feedburner.com/~r/vtim/~4/wVtR4V32zL4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vtim/~3/wVtR4V32zL4/22317646525</link><guid isPermaLink="false">http://vtim.tumblr.com/post/22317646525</guid><pubDate>Thu, 03 May 2012 14:38:36 +0200</pubDate><feedburner:origLink>http://vtim.tumblr.com/post/22317646525</feedburner:origLink></item><item><title>Some observations on Android</title><description>&lt;p&gt;Although I already worked on &lt;a href="https://market.android.com/developer?pub=De+Persgroep+Publishing"&gt;some&lt;/a&gt; Android applications, I mostly used the low-end devices for testing. Cheap phones such as the HTC Wildfire and Sony Ericsson Xperia X8. You can&amp;#8217;t even compare these devices to an iPhone 4, which is still my main phone. So, I was really glad to have a top-of-the-line Android phone &lt;a href="http://vtim.tumblr.com/post/16475167185/stroke-of-luck"&gt;fall in my lap&lt;/a&gt;. I haven&amp;#8217;t been using it very much, but here are some quick thoughts.&lt;/p&gt;
&lt;h2&gt;Setting up&lt;/h2&gt;
&lt;p&gt;When setting up the phone, you&amp;#8217;re supposed to log into your Google account before you get the chance to connect to a wireless network. Because the SIM we used didn&amp;#8217;t have a 3G-subscription, this was a confusing experience.&lt;/p&gt;
&lt;p&gt;Fortunately we could skip this step and set up the wi-fi first, and go into Settings to log into Google.&lt;/p&gt;
&lt;h2&gt;Stock apps&lt;/h2&gt;
&lt;p&gt;The duplication of stock apps, some by Google and others by Samsung. It&amp;#8217;s very confusing to have different email apps installed on the phone by default. Same thing with Calendar and other apps. &lt;/p&gt;
&lt;h2&gt;(No) OS Updates&lt;/h2&gt;
&lt;p&gt;The phone comes with Android 2.3.3 &amp;#8220;Gingerbread&amp;#8221;, a version of the OS that was released 12 full months ago. The phone has been for sale since 9 months ago.&lt;/p&gt;
&lt;p&gt;Four months ago, Android 4.0 &amp;#8220;Ice Cream Sandwich&amp;#8221; was released. The version we&amp;#8217;ve all been waiting for. The version we&amp;#8217;re all still waiting for.&lt;/p&gt;
&lt;p&gt;According to Google&amp;#8217;s own &lt;a href="http://developer.android.com/resources/dashboard/platform-versions.html"&gt;reports&lt;/a&gt;, a total of 1% of Android devices is running this &amp;#8220;latest and greatest&amp;#8221; version of the OS. One. Percent. That&amp;#8217;s the same amount as Android 1.6. This is ridiculous.&lt;/p&gt;
&lt;p&gt;According to some sources, an update for the Galaxy S II is scheduled to arrive in March.&lt;/p&gt;
&lt;p&gt;I wonder if I&amp;#8217;ll live to see &lt;a href="http://www.bgr.com/2012/02/16/android-5-0-jelly-bean-could-push-fragmentation-to-new-heights/"&gt;Jelly Bean&lt;/a&gt; on this phone!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vtim/~4/EZt_qgN11WI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vtim/~3/EZt_qgN11WI/17717516127</link><guid isPermaLink="false">http://vtim.tumblr.com/post/17717516127</guid><pubDate>Thu, 16 Feb 2012 18:56:23 +0100</pubDate><feedburner:origLink>http://vtim.tumblr.com/post/17717516127</feedburner:origLink></item><item><title>Stroke of luck</title><description>&lt;p&gt;I have been in a lucky mood recently. When I was less than one year old, I once won a bike by drawing the winning lot out of a basket. Since then, I don&amp;#8217;t think I have ever won something of note.&lt;/p&gt;
&lt;p&gt;Until recently. On Monday I received two prizes I had won in the last weeks.&lt;/p&gt;
&lt;p&gt;First, and biggest thing I got was a Samsung Galaxy S II. At &lt;a href="http://www.devoxx.com"&gt;Devoxx&lt;/a&gt; last November, I left my business card at the &lt;a href="http://www.sogeti.be/" title="Sogeti"&gt;Sogeti&lt;/a&gt; booth, and apparently I was the lucky guy to win this Android phone! Who&amp;#8217;s even more lucky is my girlfriend, as I&amp;#8217;m not planning on abandoning my iPhone 4. She didn&amp;#8217;t have a smartphone yet, so I gave it to her. She was happy, but also asked if she couldn&amp;#8217;t get the iPhone :)&lt;/p&gt;
&lt;p&gt;Another interesting thing is this:&lt;/p&gt;
&lt;p class="centredimg"&gt;&lt;img alt="Runalyzer Key" src="http://media.tumblr.com/tumblr_lydaouSchL1r6pfq4.jpg"/&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s a &lt;a href="http://www.runalyzer.com/en/key.html"&gt;Runalyzer key&lt;/a&gt;, a neat little device to pair an Heart Rate Monitor strap to an iOS device. I won it in a retweet contest organized by fellow iOS developer Cyril Godefroy of &lt;a href="http://www.321run.com"&gt;321run.com&lt;/a&gt;. Thanks Cyril!&lt;/p&gt;
&lt;p&gt;Unfortunately, this key isn&amp;#8217;t compatible with the ANT+ standard that&amp;#8217;s used by the Garmin Forerunner models, so I had to look hard to find my old Polar chest strap. I already did a quick test, and it&amp;#8217;s really simple to use. Just plug in the receiver, and start one of the dozens of compatible apps (of course I can recommend Cyril&amp;#8217;s own &lt;a href="http://itunes.apple.com/en/app/321run/id317773242"&gt;321run app&lt;/a&gt;). It just works! I can definitely see myself using this when cycling. Runalyzer also provides an &lt;a href="http://api.runalyzer.com/"&gt;iOS SDK&lt;/a&gt;, so I may also experiment with that.&lt;/p&gt;
&lt;p&gt;For a running geek like, me it&amp;#8217;s really nice to see your live heart rate on you phone!&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m planning to write a more detailed review of both gadgets once I have spent some more time getting to know them, so be sure to check back!&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vtim/~4/YWZlb3-zfjc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vtim/~3/YWZlb3-zfjc/16475167185</link><guid isPermaLink="false">http://vtim.tumblr.com/post/16475167185</guid><pubDate>Wed, 25 Jan 2012 20:34:23 +0100</pubDate><feedburner:origLink>http://vtim.tumblr.com/post/16475167185</feedburner:origLink></item></channel></rss>
