<?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: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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>tmro</title>
	
	<link>http://www.tmro.net</link>
	<description>Mobilise your business</description>
	<lastBuildDate>Tue, 01 Jun 2010 08:55:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/OnesAndZeroes" /><feedburner:info uri="onesandzeroes" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Versionsapp (Subversion) and Static Libraries</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/CWeoJDefpl8/</link>
		<comments>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 08:55:20 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[note to self]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=271</guid>
		<description><![CDATA[Ever since the kind people at versionsapp.com have given me a free license to use their awesome product I have been enjoying it a lot. Today I imported an existing ]]></description>
			<content:encoded><![CDATA[<p>Ever since the kind people at <a title="Versions" href="http://versionsapp.com">versionsapp.com</a> have given me a free license to use their awesome product I have been enjoying it a lot.</p>
<p>Today I imported an existing iPhone project and then checked it out again. To my surprise when I tried to build it I encountered an error. I checked  my SVN repository and discovered that a static library ( .a) was not there.</p>
<p>Apparently .a files are treated as hidden files and they don&#8217;t get added to the repository. If you want to &#8220;fix&#8221; this in Versions app then select View -&gt; Show Ignored Items (⌘ + ⇧ + I) and then simply add and commit.</p>
<p>It&#8217;s not hard, you just need to know what to look for.</p>
<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/6-xljU01WRubF7TScGaFjCdnVsI/0/da"><img src="http://feedads.g.doubleclick.net/~a/6-xljU01WRubF7TScGaFjCdnVsI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6-xljU01WRubF7TScGaFjCdnVsI/1/da"><img src="http://feedads.g.doubleclick.net/~a/6-xljU01WRubF7TScGaFjCdnVsI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=CWeoJDefpl8:nX6DrNhj-ME:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=CWeoJDefpl8:nX6DrNhj-ME:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=CWeoJDefpl8:nX6DrNhj-ME:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=CWeoJDefpl8:nX6DrNhj-ME:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=CWeoJDefpl8:nX6DrNhj-ME:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=CWeoJDefpl8:nX6DrNhj-ME:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/CWeoJDefpl8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2010/06/versionsapp-subversion-and-static-libraries/</feedburner:origLink></item>
		<item>
		<title>AKL Transit</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/m_X0q7AdDxc/</link>
		<comments>http://www.tmro.net/2010/05/akl-transit/#comments</comments>
		<pubDate>Sat, 15 May 2010 04:12:50 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[Google Transit]]></category>
		<category><![CDATA[WelliBUS]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=269</guid>
		<description><![CDATA[I was going to send a tweet instead of posting here but 140 characters would not have been enough&#8230; The Auckland Transit iPhone and iPod Touch application has been in ]]></description>
			<content:encoded><![CDATA[<p>I was going to send a <a href="http://twitter.com/nicktmro">tweet</a> instead of posting here but 140 characters would not have been enough&#8230;</p>
<p>The <a title="iTunes link" href="http://itunes.com/apps/AKLTransit">Auckland Transit</a> iPhone and iPod Touch application has been in the app store for a few weeks now and it&#8217;s already providing me with some very interesting statistics.</p>
<p>Unlike Wellington, most of the iPhone users are NOT using a 3GS model but 3G rather. The number of jailbroken devices is 4 times the one in Wellington and, more interestingly, whilst in Wellington the peak is Mondays or Fridays in Auckland it seems to be Saturday instead.</p>
<p>Monitoring user behaviour between Wellington and Auckland will be an interesting exercise, especially since the Auckland user numbers are growing so rapidly.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Fi0nY1z_zDArouw-nAu7k5Km_nE/0/da"><img src="http://feedads.g.doubleclick.net/~a/Fi0nY1z_zDArouw-nAu7k5Km_nE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Fi0nY1z_zDArouw-nAu7k5Km_nE/1/da"><img src="http://feedads.g.doubleclick.net/~a/Fi0nY1z_zDArouw-nAu7k5Km_nE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=m_X0q7AdDxc:QL8TKosKpX4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=m_X0q7AdDxc:QL8TKosKpX4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=m_X0q7AdDxc:QL8TKosKpX4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=m_X0q7AdDxc:QL8TKosKpX4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=m_X0q7AdDxc:QL8TKosKpX4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=m_X0q7AdDxc:QL8TKosKpX4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/m_X0q7AdDxc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2010/05/akl-transit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2010/05/akl-transit/</feedburner:origLink></item>
		<item>
		<title>Wellington – Real Time Public Transport Information</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/Gt_4Yk7PuRQ/</link>
		<comments>http://www.tmro.net/2010/02/wellington-real-time-bus-info/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 05:35:09 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[The Wonderful Internet]]></category>
		<category><![CDATA[Wellington]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[WelliBUS]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=255</guid>
		<description><![CDATA[WelliBUS users have been asking me for real time bus info ever since WelliBUS was first released a long time ago. I have been in touch with the Metlink people ]]></description>
			<content:encoded><![CDATA[<p>WelliBUS users have been asking me for real time bus info ever since WelliBUS was first released a long time ago.</p>
<p>I have been in touch with the Metlink people (who are just awesome) but sadly the information will not be available any time soon, and even when it will become available 3rd parties will probably have to wait even longer (unless they decide to start scraping HTML).</p>
<p>So after doing some thinking I have decided to try and implement it myself. Yup, I am indeed crazy. The craziest part is that I believe that this could work, especially if you get involved. At the moment 4000 of you are using WelliBUS and I would like to thank each and every one of you. Most of you are using iPhones, the rest are on iPod touches and Android devices. Although this is intended mostly for iPhone users there are scenarios when even an iPod touch can be used (WiFi on the bus, Free Wifi Hotspots, etc).</p>
<p>If out of 4000 people just 2000 decide to use this system I am sure we will get pretty good coverage, especially at peak times when we need it the most.</p>
<p>I have already starting implementing this which is why I am asking for everyone&#8217;s help. Please post comments below to tell me what you think, what I should and should not do, what you think is most important in the first release, what I missed out on, whatever you think might be useful. Once you&#8217;ve done this please spread the word. Don&#8217;t forget to download <a title="App Store - WelliBUS" href="http://itunes.com/apps/WelliBUS" target="_blank">WelliBUS</a> if you have an iPhone, iPod touch or Android device.</p>
<p>Here&#8217;s how I was thinking that it would work.</p>
<p>User waiting for the bus:</p>
<ul>
<li>Starts the app and selects the bus stop number they are at and also the service numbers that they want a <strong>notification</strong> for.  (e.g. Stop 5002 &#8211; St James Theatre, Services 1 &#8211; Island Bay, 46 &#8211; Broadmeadows, 54 &#8211; Churton Park)</li>
<li>Either leaves the application running (at least in the 1st release) or closes the application and waits for a <strong>push</strong> notification (future release)</li>
</ul>
<p>User traveling on the bus:</p>
<ul>
<li>After getting on the bus the user selects the service that they are on and taps &#8220;<strong>I&#8217;m on the Bus</strong>&#8220;. (e.g. select stop 5000 &#8211; Courtenay Place, Service 54 &#8211; Churton Park)</li>
<li>User leaves the application running and can alternatively see on a Google Map view as the bus <strong>travels</strong> towards its destination</li>
<li>User sees a Good Citizen <strong>points</strong> indicator. See how the points work below.</li>
</ul>
<p>WelliBUS will:</p>
<ul>
<li><strong>Notify</strong> the user in stop 5002 that a service 54 &#8211; Churton Park is on its way and reports the approximate distance between the stops</li>
<li><strong>Reward</strong> the user on the bus 1 Good Citizen point for having helped another traveller find out when the bus was coming. The more people use the information broadcast by the user on the bus the more Good Citizen points the users get. All users that broadcast their location on the bus will get &#8220;rewarded&#8221;</li>
<li>Provide a Good Citizen <strong>ranking</strong> system (users can register and submit their points to our server)</li>
</ul>
<p>Good Citizen points:</p>
<ul>
<li>A user that leaves the application running while on the bus (between start and stop) will accrue 0.5 points for <strong>each</strong> stop they pass by</li>
<li>If at least another user is on the <strong>same</strong> bus and broadcasts the information then all users receive another 0,5 points</li>
<li>For each user that is <strong>notified</strong> about the bus that the Good Citizen is on then another point is awarded.</li>
<li>Sponsors can <strong>reward</strong> Good Citizens: e.g. maybe Snapper can give them extra <strong>credit</strong>, maybe Metlink could <strong>discount</strong> a monthly pass as long as a minimum number of points is accrued the previous month. Other sponsors can be as creative as they want. The rewards should be provided in exchange for Citizen Points. The claimed points will go towards a <strong>Sponsors Ranking</strong>. (e.g. If my favourite coffee shop in Wellington, Mojo Old Bank give a free coffee for every 200 Citizen Points then their points value will go up by 200 every time they offer a reward. This is a rough guide at the moment)</li>
</ul>
<p>Cheating:</p>
<ul>
<li>If a person is in a car rather than on a bus then the application will detect the car speed, missing the stops, and other similar checks</li>
<li>If somebody does manage to fool the &#8220;system&#8221; the other people will be able to veto them. e.g. if user A reports being on a bus that never reaches user B although it should then user B will be able to give thumbs down to user A. The more thumbs down the slower the user accrues Citizen points. Eventually a lying user can be removed from the system.</li>
<li>Other &#8220;punishments&#8221; could be applied. Be creative!</li>
</ul>
<p>You can:</p>
<ul>
<li>Donate. You can help the development of this feature by contributing with funds.
<div style="float:right;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="encrypted" type="hidden" value="-----BEGIN PKCS7-----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-----END PKCS7----- " />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" type="image" />
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /><br />
</form>
</div>
</li>
<li>Spread the word! Nothing is more helpful.</li>
<li><a title="Send message via Twitter" href="http://twitter.com" target="_blank">Twit</a> about this. Here&#8217;s an example <em><span style="color: #333333;">Help Wellington get Real Time Public Transport information. http://bit.ly/9pq2v3 Please RT</span></em></li>
<li>Post a link to this post on your <a title="Post message on Facebook" href="http://www.facebook.com" target="_blank">Facebook</a> wall. For example you could post <em>Make Wellington the first city in the world with real time traffic info driven by us. Details here http://bit.ly/9pq2v3</em></li>
<li>You could sponsor this project. There are many ways in which you can help. First email <em>office [at] tmro [dot] net</em> and we will take it from there.</li>
<li>You could buy ads in WelliBUS. Your business logo and a 1 sentence message could be displayed on the Map View close to a relevant stop.</li>
<li>You could help in ways I haven&#8217;t even thought about.</li>
</ul>
<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/qAc5JFAG-OxRueW3lN2mpI7F0cM/0/da"><img src="http://feedads.g.doubleclick.net/~a/qAc5JFAG-OxRueW3lN2mpI7F0cM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qAc5JFAG-OxRueW3lN2mpI7F0cM/1/da"><img src="http://feedads.g.doubleclick.net/~a/qAc5JFAG-OxRueW3lN2mpI7F0cM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=Gt_4Yk7PuRQ:N1FGOIxdaj8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=Gt_4Yk7PuRQ:N1FGOIxdaj8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=Gt_4Yk7PuRQ:N1FGOIxdaj8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=Gt_4Yk7PuRQ:N1FGOIxdaj8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=Gt_4Yk7PuRQ:N1FGOIxdaj8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=Gt_4Yk7PuRQ:N1FGOIxdaj8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/Gt_4Yk7PuRQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2010/02/wellington-real-time-bus-info/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2010/02/wellington-real-time-bus-info/</feedburner:origLink></item>
		<item>
		<title>WelliBUS updates and other news</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/POilEsFB92o/</link>
		<comments>http://www.tmro.net/2010/02/wellibus-updates-and-other-news/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 18:05:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Android Market]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Google Transit]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[WelliBUS]]></category>
		<category><![CDATA[Wellington]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=248</guid>
		<description><![CDATA[This past week has been a very active week in terms of deployments. iPhone WelliBUS reached version 2.5.1. The latest update adds a new feature that allows users to save ]]></description>
			<content:encoded><![CDATA[<p>This past week has been a very active week in terms of deployments.</p>
<p>iPhone WelliBUS reached version 2.5.1. The latest update adds a new feature that allows users to save favourite services not just stops, improves the load times significantly, brings tooltips to a few screens and addresses a couple of small issues.</p>
<p>But the real reason for this post is that this week we launched two Android applications.</p>
<p>Firstly WelliBUS for Android was launched! This first release of the application is very feature rich thanks to the work of @cur3n4 Users can search by stop numbers, station names, street names and even wharfs. There is even a Map view that allows users to find nearby stops. Once the departure stop has been identified the application allows filtering by service number or date/time and goes on to display the departure times and itinerary for the selected routes. Download this free application from the Android Market today.</p>
<p>The other application is the Android version Twister Referee. This is a port of the iPhone application with the same name. Its purpose is simple: enable referee-free Twister play. Rather than having one player operate the spinner the application will do it automatically, over and over again.</p>
<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/yDUIU19Qs1aKIrrbv5w3F_GaOZE/0/da"><img src="http://feedads.g.doubleclick.net/~a/yDUIU19Qs1aKIrrbv5w3F_GaOZE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yDUIU19Qs1aKIrrbv5w3F_GaOZE/1/da"><img src="http://feedads.g.doubleclick.net/~a/yDUIU19Qs1aKIrrbv5w3F_GaOZE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=POilEsFB92o:_B72yOVWIcM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=POilEsFB92o:_B72yOVWIcM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=POilEsFB92o:_B72yOVWIcM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=POilEsFB92o:_B72yOVWIcM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=POilEsFB92o:_B72yOVWIcM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=POilEsFB92o:_B72yOVWIcM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/POilEsFB92o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2010/02/wellibus-updates-and-other-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2010/02/wellibus-updates-and-other-news/</feedburner:origLink></item>
		<item>
		<title>Reviewing a MyFreeview|HD DVR</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/049hujSbpN8/</link>
		<comments>http://www.tmro.net/2009/11/reviewing-a-myfreeviewhd-dvr/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 22:11:51 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[The Wonderful Internet]]></category>
		<category><![CDATA[Wellington]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=243</guid>
		<description><![CDATA[After Mauricio (the Geekzone BDFL) asked me to review the JCMatthew DVR-320T I wasn&#8217;t sure what to expect. Now I can honestly say that I am happy to do this. ]]></description>
			<content:encoded><![CDATA[<p>After Mauricio (the Geekzone BDFL) asked me to review the JCMatthew DVR-320T I wasn&#8217;t sure what to expect. Now I can honestly say that I am happy to do this. I will try to be as impartial as possible and provide the readers with a no-nonsense review. My tone will be as non-technical as possible and I will strive to explain the slang as clearly as I can.</p>
<p>So I&#8217;ve started this reviewing journey that you can follow <a title="Geekzone Blog Posts" href="http://www.geekzone.co.nz/blog.asp?blogid=371&amp;blogcatid=807">here</a>. I will not be cc-ing my review to this blog but I will be taking questions via this post if there are any.</p>
<p>So feel free to drop me a line if you feel like it.</p>
<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/jtqD7jRMAzflBEthQu8ErQ6WhGw/0/da"><img src="http://feedads.g.doubleclick.net/~a/jtqD7jRMAzflBEthQu8ErQ6WhGw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jtqD7jRMAzflBEthQu8ErQ6WhGw/1/da"><img src="http://feedads.g.doubleclick.net/~a/jtqD7jRMAzflBEthQu8ErQ6WhGw/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=049hujSbpN8:-Atu_rDhbRY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=049hujSbpN8:-Atu_rDhbRY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=049hujSbpN8:-Atu_rDhbRY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=049hujSbpN8:-Atu_rDhbRY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=049hujSbpN8:-Atu_rDhbRY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=049hujSbpN8:-Atu_rDhbRY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/049hujSbpN8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/reviewing-a-myfreeviewhd-dvr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/11/reviewing-a-myfreeviewhd-dvr/</feedburner:origLink></item>
		<item>
		<title>Solved: Mac OS X (Snow Leopard) and SVN (1.6.2)</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/iDotwYqIFl8/</link>
		<comments>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 05:01:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[note to self]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=222</guid>
		<description><![CDATA[Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal ]]></description>
			<content:encoded><![CDATA[<p>Today I spent a few hours trying to figure out why Eclipse was unable to connect to my locally running Subversion server. I was annoyed especially because Xcode and Terminal were not having any issues.</p>
<p>Some background information.<br />
- SVN is running as a daemon locally. It gets started by:<br />
<em>svnserve -d &#8211;listen-host localhost -r /Library/Subversion/Repository</em></p>
<p>- trying to checkout stuff using the command below via Terminal works fine<br />
<em>svn co svn://localhost/Project1/trunk WorkingDirName</em></p>
<p>- trying to browse the svn repository from within Eclipse 3.5 Galileo using either Subclipse or Subversive always ends up with:<br />
<em>svn: connection refused by the server</em></p>
<p>I tried many things but none of them helped. I googled but failed to find something relevant. Just before giving up I thought I would check what ports were open on my machine, maybe there was some conflict. There was no conflict but&#8230;<br />
<em>netstat -anp TCP | grep LISTEN</em><br />
returned this:<br />
<em>tcp6       0      0  ::1.3690               *.*                    LISTEN</em><br />
That&#8217;s when it dawned on me: the svnserve was binding an IPV6 address and Eclipse could not handle that!</p>
<p>Solution:<br />
<em> ps -ef | grep svnserve</em><br />
<em> kill -9</em> (where proc_id is the process id of your svnserve, the second number on the line)<br />
<em> svnserve -d &#8211;listen-host 127.0.0.1 -r /Library/Subversion/Repository/ </em>(or wherever you&#8217;ve placed your Repository)</p>
<p>Done! Now svnserve is bound to an IPV4 and Eclipse can play nice too.</p>
<p>Cheers&#8230;</p>
<p>p.s. please let me know if this worked with other Mac OS / SVN versions too</p>

<p><a href="http://feedads.g.doubleclick.net/~a/pzab9S33eLadAqYt-3oj9--0JFE/0/da"><img src="http://feedads.g.doubleclick.net/~a/pzab9S33eLadAqYt-3oj9--0JFE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pzab9S33eLadAqYt-3oj9--0JFE/1/da"><img src="http://feedads.g.doubleclick.net/~a/pzab9S33eLadAqYt-3oj9--0JFE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=iDotwYqIFl8:N8tYqp9PNw0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=iDotwYqIFl8:N8tYqp9PNw0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=iDotwYqIFl8:N8tYqp9PNw0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=iDotwYqIFl8:N8tYqp9PNw0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=iDotwYqIFl8:N8tYqp9PNw0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=iDotwYqIFl8:N8tYqp9PNw0:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/iDotwYqIFl8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/11/solved-mac-os-x-snow-leopard-and-svn-1-6-2/</feedburner:origLink></item>
		<item>
		<title>Mac OS and Java Me SDK 3.0</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/FvYjEUrZTkc/</link>
		<comments>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:38:21 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[javame]]></category>
		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=213</guid>
		<description><![CDATA[Sun have released not too long ago a Java ME SDK 3.0 that finally brings an official Wireless Toolkit Emulator to the Mac platform. I have been dealing with SUN ]]></description>
			<content:encoded><![CDATA[<p>Sun have released not too long ago a Java ME SDK 3.0 that finally brings an official Wireless Toolkit Emulator to the Mac platform.</p>
<p>I have been dealing with SUN software for a while now and I was not expecting this to be a smooth ride. Those who&#8217;d dealt with the WTK on Windows/Linux platform are well aware of the limitations of these emulators. What I was not prepared for was to get so much clutter that would just not work more than a couple of times.</p>
<p>First impression: this wtk looks like the most polished emulator ever released by Sun.</p>
<p>Sadly, after using the thing for a few days I discovered that the old habits had not changed:</p>
<ul>
<li>there is no menu entry to run an existing jad/jar pair. You have to right click on an emulator instance and then run it&#8230;</li>
<li>you cannot set-up a project starting from a jad/jar pair. There used to be an option to do this back in wtk 2.2&#8230;</li>
<li>after running a couple of apps the whole thing crashes an burns</li>
<li>when closing down the wtk a process is left lingering. Run this in a terminal:  <em>ps aux | grep device-manager.app</em></li>
<li>switching the verbose mode when launching the emulator kills the whole thing dead!</li>
<li>they bundled ant 1.7.1 with the distro although ant is built in Mac OS</li>
<li>Permgen errors are thrown if you try to launch the app too often. LOL</li>
</ul>
<p>Here&#8217;s what happened when I created a new project and tried to run it:</p>
<p><span style="color: #ff0000;">*** Error ***</span></p>
<p><span style="color: #ff0000;">Failed to connect to device 0!</span></p>
<p><span style="color: #ff0000;">Reason:</span></p>
<p><span style="color: #ff0000;">Emulator 0 terminated while waiting for it to register!</span></p>
<p>The same thing happens with Emulator 1 and 2 and 3 and 4 and 5 and 6 and &#8230; you get the picture.</p>
<p>Googling did return lots of forum posts, but hardly any answers&#8230;</p>
<p>So after wasting more than 2 hours on this issue I did the unthinkable: rebooted my mac! To my surprise the miracle happened during the reboot: I was finally able to run the project again.</p>
<p>Needless to say I am very disappointed but not surprised by the quality of this, early access, Java ME SDK.</p>
<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/qffbieTddXmfy_IPDtkt4lM6wh8/0/da"><img src="http://feedads.g.doubleclick.net/~a/qffbieTddXmfy_IPDtkt4lM6wh8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qffbieTddXmfy_IPDtkt4lM6wh8/1/da"><img src="http://feedads.g.doubleclick.net/~a/qffbieTddXmfy_IPDtkt4lM6wh8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=FvYjEUrZTkc:Cr61jo1s1No:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=FvYjEUrZTkc:Cr61jo1s1No:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=FvYjEUrZTkc:Cr61jo1s1No:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=FvYjEUrZTkc:Cr61jo1s1No:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=FvYjEUrZTkc:Cr61jo1s1No:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=FvYjEUrZTkc:Cr61jo1s1No:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/FvYjEUrZTkc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/11/mac-os-and-java-me-sdk-3-0/</feedburner:origLink></item>
		<item>
		<title>Updating the UISearchBar programmatically</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/KrB0dtGD_hc/</link>
		<comments>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 03:28:27 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Objective C]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=208</guid>
		<description><![CDATA[Today I had to update WelliBUS&#8217;s search bar programmatically because I needed to use the street picked up via GPS as my street name. Until this point implementing the search ]]></description>
			<content:encoded><![CDATA[<p>Today I had to update WelliBUS&#8217;s search bar programmatically because I needed to use the street picked up via GPS as my street name.</p>
<p>Until this point implementing the search bar seemed easy:</p>
<ul>
<li>adopt a couple of protocols: UISearchDisplayDelegate and UISearchBarDelegate</li>
<li>implement a few callback methods (from the delegates listed above)</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString;
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchScope:(NSInteger)searchOption;
- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller;
- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller;</pre></div></div>

<ul>
<li>and implement my own filtering function</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope;</pre></div></div>

<p>The problem I had on my hands was how to programmatically update the text in the UISearchBar and force the UISearchDisplayDelegate to call the appropriate callback methods.</p>
<p>Turns out it was simpler than expected (despite not being able to find a solution by googling). All that was needed was:</p>

<div class="wp_syntax"><div class="code"><pre class="obj-c" style="font-family:monospace;">[self.searchDisplayController.searchBar becomeFirstResponder];
self.searchDisplayController.searchBar.text = returnString;</pre></div></div>

<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/6Lm0Zq2aY5NSqp1oqJd1ltXmLfc/0/da"><img src="http://feedads.g.doubleclick.net/~a/6Lm0Zq2aY5NSqp1oqJd1ltXmLfc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6Lm0Zq2aY5NSqp1oqJd1ltXmLfc/1/da"><img src="http://feedads.g.doubleclick.net/~a/6Lm0Zq2aY5NSqp1oqJd1ltXmLfc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=KrB0dtGD_hc:TuF_xktF2gc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=KrB0dtGD_hc:TuF_xktF2gc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=KrB0dtGD_hc:TuF_xktF2gc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=KrB0dtGD_hc:TuF_xktF2gc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=KrB0dtGD_hc:TuF_xktF2gc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=KrB0dtGD_hc:TuF_xktF2gc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/KrB0dtGD_hc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/10/updating-the-uisearchbar-programmatically/</feedburner:origLink></item>
		<item>
		<title>JSON Framework — Potential Null Dereference</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/baSXFMlP0io/</link>
		<comments>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:58:46 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=202</guid>
		<description><![CDATA[If you are using json-framework as your preferred iPhone / Cocoa Touch JSON framework then you might find that the SBJSON.m is not necessarily perfect. Don&#8217;t get me wrong, it ]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://code.google.com/p/json-framework/" target="_blank">json-framework </a>as your preferred iPhone / Cocoa Touch JSON framework then you might find that the SBJSON.m is not necessarily perfect.<br />
Don&#8217;t get me wrong, it is an awesome utility and it has saved me heaps of time but when analyzing the code (with XCode 3.2) I got lots (36 or so) of Potential null dereference warnings.</p>
<p>The reason for it is that when this the error is built in lines like this:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">*</span>error <span style="color: #002200;">=</span> err<span style="color: #002200;">&#40;</span>EUNSUPPORTED, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;JSON object key must be string&quot;</span><span style="color: #002200;">&#41;</span>;</pre></div></div>

<p>The error object is not checked for NULL.<br />
According to Apple&#8217;s documentation one can call a method that takes a error:(NSError**)error parameter with either of these:<br />
NULL<br />
NSError *error = nil;</p>
<p>So if the argument is NULL you can&#8217;t really assign something to it.</p>
<p>To fix the XCode warnings (and your code) just do this test before the call to create a new error object.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>error <span style="color: #002200;">!=</span> <span style="color: #a61390;">NULL</span><span style="color: #002200;">&#41;</span>
  <span style="color: #002200;">*</span>error <span style="color: #002200;">=</span> err<span style="color: #002200;">&#40;</span>EUNSUPPORTED, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;JSON object key must be string&quot;</span><span style="color: #002200;">&#41;</span>;</pre></div></div>

<p>Cheers&#8230;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/RuYnUPoC9pctnd74-jsVdwHxN_U/0/da"><img src="http://feedads.g.doubleclick.net/~a/RuYnUPoC9pctnd74-jsVdwHxN_U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/RuYnUPoC9pctnd74-jsVdwHxN_U/1/da"><img src="http://feedads.g.doubleclick.net/~a/RuYnUPoC9pctnd74-jsVdwHxN_U/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=baSXFMlP0io:ZGAqVB4g1jg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=baSXFMlP0io:ZGAqVB4g1jg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=baSXFMlP0io:ZGAqVB4g1jg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=baSXFMlP0io:ZGAqVB4g1jg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=baSXFMlP0io:ZGAqVB4g1jg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=baSXFMlP0io:ZGAqVB4g1jg:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/baSXFMlP0io" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/10/json-framework-potential-null-dereference/</feedburner:origLink></item>
		<item>
		<title>Urban Airship – Push Notifications</title>
		<link>http://feedproxy.google.com/~r/OnesAndZeroes/~3/mhxg6RpLXIE/</link>
		<comments>http://www.tmro.net/2009/10/urban-airship-push-notifications/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 22:50:31 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Objective C]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://www.tmro.net/?p=198</guid>
		<description><![CDATA[Today I have finally added Push Notifications to Parcel Trackr. I decided not to waste time and I went for Urban Airship. I registered, uploaded my push certificate, downloaded the ]]></description>
			<content:encoded><![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">Today I have finally added Push Notifications to Parcel Trackr.</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><span style="letter-spacing: 0.0px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">I decided not to waste time and I went for Urban Airship. I registered, uploaded my push certificate, downloaded the sample and integrated the two systems.</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><span style="letter-spacing: 0.0px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">Not everything went smoothly though because when I first ran the application I got a</span></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo;"><span style="letter-spacing: 0.0px;"><strong>Failed to register with error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo=0&#215;120610 &#8220;no valid &#8216;aps-environment&#8217; entitlement string found for application&#8221;</strong></span></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo; min-height: 13.0px;"><span style="letter-spacing: 0.0px;"><strong> </strong></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">I thought my provisioning profile did not include the right entitlement&#8230; so I re-downloaded it and tried again. Turns out I was using the wrong provisioning profile.</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><span style="letter-spacing: 0.0px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">So if you want to avoid my mistake just make sure that after you’ve configured push services in the iPhone Dev Center you download the updated provisioning profile and then you install it via XCode.</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><span style="letter-spacing: 0.0px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">Other things worth checking include: the product name in your build configuration matches the app id and of course, the ultimate solution, clean all targets before building!</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><span style="letter-spacing: 0.0px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">Cheers&#8230;</span></p>

<p><a href="http://feedads.g.doubleclick.net/~a/vKdCL7UP2675Onf4trDwjgdUa0g/0/da"><img src="http://feedads.g.doubleclick.net/~a/vKdCL7UP2675Onf4trDwjgdUa0g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vKdCL7UP2675Onf4trDwjgdUa0g/1/da"><img src="http://feedads.g.doubleclick.net/~a/vKdCL7UP2675Onf4trDwjgdUa0g/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=mhxg6RpLXIE:XK4aVeVLyK0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=mhxg6RpLXIE:XK4aVeVLyK0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=mhxg6RpLXIE:XK4aVeVLyK0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=mhxg6RpLXIE:XK4aVeVLyK0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/OnesAndZeroes?a=mhxg6RpLXIE:XK4aVeVLyK0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/OnesAndZeroes?i=mhxg6RpLXIE:XK4aVeVLyK0:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/OnesAndZeroes/~4/mhxg6RpLXIE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.tmro.net/2009/10/urban-airship-push-notifications/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.tmro.net/2009/10/urban-airship-push-notifications/</feedburner:origLink></item>
	</channel>
</rss>
