<?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>Bagonca &#187; Samuel</title>
	<atom:link href="http://www.bagonca.com/blog/author/samuel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bagonca.com/blog</link>
	<description>Yet another developer blog</description>
	<lastBuildDate>Fri, 18 Jun 2010 09:28:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twitter earns something bigger than money</title>
		<link>http://www.bagonca.com/blog/2009/05/20/how-does-twitter-earn-money/</link>
		<comments>http://www.bagonca.com/blog/2009/05/20/how-does-twitter-earn-money/#comments</comments>
		<pubDate>Wed, 20 May 2009 14:39:43 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Social]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[values]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=486</guid>
		<description><![CDATA[Many have understood how they can earn money by using Twitter, but no-one knows how Twitter earns money.
There are many speculations concerning Twitter&#8217;s future.
This is my wish.
According to many, I live in an imaginary world. I believe that everything is created, and by a creator. If you believe in a creator/God then we could imagine [...]]]></description>
			<content:encoded><![CDATA[<p>Many have understood how they can earn money by using Twitter, but no-one knows how Twitter earns money.</p>
<p>There are many speculations concerning Twitter&#8217;s future.</p>
<p>This is my wish.</p>
<p>According to many, I live in an imaginary world. I believe that everything is created, and by a creator. If you believe in a creator/God then we could imagine that the earth and all its resources are &#8220;gifts&#8221; to mankind.</p>
<p>We&#8217;ve managed to take these &#8220;gifts&#8221; and make money out of it. New stuff is innovated out of them. We created Twitter.</p>
<p>I would like to believe that <a href="http://www.bagonca.com/blog/2009/05/14/flat-line-for-the-twitter-brain/">Twitter is a gift to mankind</a>, from mankind. A new &#8220;gift&#8221; to connect people together, innovate new solutions using this great platform and make money. Thank you Twitter (God #2?)!</p>
<p>As I said, wishful thinking! I&#8217;ll love Twitter even if they figure out a way to earn money. <img src='http://www.bagonca.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/05/20/how-does-twitter-earn-money/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Submitting iPhone app to App Store</title>
		<link>http://www.bagonca.com/blog/2009/05/08/submitting-iphone-app-to-app-store/</link>
		<comments>http://www.bagonca.com/blog/2009/05/08/submitting-iphone-app-to-app-store/#comments</comments>
		<pubDate>Thu, 07 May 2009 23:38:55 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Innovation]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[projectplace]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=374</guid>
		<description><![CDATA[Finally, after two bounces and three weeks of waiting, our first app on App Store is available!
I&#8217;ll keep this post really short!
Pros
Great testing by the App Store review team.
Good and thorough feedback.
Cons
Time consuming! But, reasonable considering the amount of apps that is submitted to the App Store.
iTunes Connect
Some good to knows!
It takes approximately 5 working [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, after two bounces and three weeks of waiting, our first app on App Store is available!</p>
<p>I&#8217;ll keep this post really short!</p>
<blockquote><p>Pros</blockquote >
<li>Great testing by the App Store review team.</li>
<li>Good and thorough feedback.</li>
<blockquote><p>Cons</blockquote >
<li>Time consuming! But, reasonable considering the amount of apps that is submitted to the App Store.</li>
<li>iTunes Connect</li>
<blockquote><p>Some good to knows!</blockquote >
<li>It takes approximately 5 working days before you hear anything from the review team.</li>
<li>If you reject (developer reject) your application and post a new version when an app is undergoing a review, then you will have to wait another 5 more days.</li>
<blockquote><p>Conclusion</blockquote >
The App Store review process: 4 stars out of 5</p>
<blockquote><p>Projectplace for iPhone</blockquote >
If you are curious about our iPhone application, please <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=312388930&amp;mt=8">visit our app section @ App Store</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/05/08/submitting-iphone-app-to-app-store/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hire the best and set them free&#8230;</title>
		<link>http://www.bagonca.com/blog/2009/04/22/hire-the-best-and-set-them-free/</link>
		<comments>http://www.bagonca.com/blog/2009/04/22/hire-the-best-and-set-them-free/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:14:54 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Values]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[creativity]]></category>
		<category><![CDATA[Freedom]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[Quincy Jones]]></category>
		<category><![CDATA[success]]></category>
		<category><![CDATA[values]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=311</guid>
		<description><![CDATA[&#8230;a quote by Quincy Jones that has been used quite frequently throughout this blog; here and here. Now, I would like to elaborate some on this.
I think there is a great secret to learn from this quote. The first part of the quote is quite obvious. Everyone wants to hire the best and most of us are really [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;<a href="http://edgehopper.com/learning-from-quincy-jones/">a quote by Quincy Jones</a> that has been used quite frequently throughout this blog; <a href="http://www.bagonca.com/blog/2009/04/17/use-flex-and-set-it-free/">here</a> and <a href="http://www.bagonca.com/blog/2009/04/19/bangalore-offshoring-learnt/">here</a>. Now, I would like to elaborate some on this.</p>
<p>I think there is a great secret to learn from this quote. The first part of the quote is quite obvious. Everyone wants to hire the best and most of us are really good at doing this. We even have big recruitment companies that are experts on finding the best of the best that will suite us. But I would like to focus on the part &#8220;Set them free&#8221;.</p>
<blockquote>
<p style="text-align: left;">Set them free</p>
</blockquote>
<p>If you have a business, where success is built on every team member&#8217;s effort, and you want to fail; here you have my best tip:</p>
<p>- Hire the best and enslave them. E.g. make them do same repetitive work each day and make them strictly follow company policies. And the worst, shoot down ideas directly.</p>
<p>If you follow this tip, two things could happen. If you really hired the best, this person will realise that he/she isn&#8217;t free to use their creativity and will quit the job and choose freedom. Or if they choose to stay, they won&#8217;t be the best anymore, all creativity will be lost and you won&#8217;t value for your money.</p>
<p>Instead of shooting down ideas, give them a chance. Remember you hired the best! Embrace their creativity! If you want to build a successful business that is built on your employees&#8217; achievements, then you have to simply set them free.</p>
<p>We are all born to be free and in freedom we can and will do amazing things!</p>
<blockquote><p>Collaboration, shared values, respect, freedom; Embrace and succeed!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/04/22/hire-the-best-and-set-them-free/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone tip #2 &#8211; What is my current location?</title>
		<link>http://www.bagonca.com/blog/2009/04/09/iphone-tip-2-what-is-my-current-location/</link>
		<comments>http://www.bagonca.com/blog/2009/04/09/iphone-tip-2-what-is-my-current-location/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 22:23:44 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[CoreLocation]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[Map]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=106</guid>
		<description><![CDATA[The iPhone has GPS built-in, which makes the phone really powerful and enables developers to innovate cool and cutting edge applications!
The iPhone devcenter has some sample code explaining how the CoreLocation framework works. But, I found that example a bit hard to understand&#8230;
Here is an easier way of finding your current location from your iPhone.
Let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The iPhone has GPS built-in, which makes the phone really powerful and enables developers to innovate cool and cutting edge applications!</p>
<p>The iPhone devcenter has some sample code explaining how the CoreLocation framework works. But, I found that example a bit hard to understand&#8230;</p>
<p>Here is an easier way of finding your current location from your iPhone.</p>
<p>Let&#8217;s start with the interface/header file.<br />
CurrentLocationController.h</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &lt;CoreLocation/CoreLocation.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> CurrentLocationController <span style="color: #002200;">:</span> <span style="color: #400080;">NSObject</span> &lt;CLLocationManagerDelegate&gt; <span style="color: #002200;">&#123;</span>
	CLLocationManager <span style="color: #002200;">*</span>locationManager;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@property</span> <span style="color: #002200;">&#40;</span>nonatomic, retain<span style="color: #002200;">&#41;</span> CLLocationManager <span style="color: #002200;">*</span>locationManager;
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>locationManager<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocationManager <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>manager didUpdateToLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocation <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>newLocation fromLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocation <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>oldLocation;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>locationManager<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocationManager <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>manager didFailWithError<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSError</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>error;
&nbsp;
<span style="color: #a61390;">@end</span></pre></div></div>

<p>Note: Our object &#8220;implements&#8221; the CLLocationManagerDelegate protocol. We &#8220;implement&#8221; two methods,  locationManager:didUpdateToLocation:fromLocation: and locationManager:didFailWithErrorfrom :, from CLLocationManagerDelegate. The first method is invoked when a new location is available and the second one if an error has occurred.</p>
<p>Here comes the implementation:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;CurrentLocationController.h&quot;</span>
&nbsp;
<span style="color: #a61390;">@implementation</span> CurrentLocationController
&nbsp;
<span style="color: #a61390;">@synthesize</span> locationManager;
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span> init <span style="color: #002200;">&#123;</span>
    self <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>super init<span style="color: #002200;">&#93;</span>;
    <span style="color: #a61390;">if</span> <span style="color: #002200;">&#40;</span>self <span style="color: #002200;">!=</span> <span style="color: #a61390;">nil</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
        self.locationManager <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>CLLocationManager alloc<span style="color: #002200;">&#93;</span> init<span style="color: #002200;">&#93;</span> autorelease<span style="color: #002200;">&#93;</span>;
        self.locationManager.delegate <span style="color: #002200;">=</span> self;
    <span style="color: #002200;">&#125;</span>
    <span style="color: #a61390;">return</span> self;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>locationManager<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocationManager <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>manager didUpdateToLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocation <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>newLocation fromLocation<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocation <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>oldLocation <span style="color: #002200;">&#123;</span>
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#91;</span>newLocation description<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>locationManager<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>CLLocationManager <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>manager didFailWithError<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSError</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>error <span style="color: #002200;">&#123;</span>
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#91;</span>error description<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#41;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>dealloc <span style="color: #002200;">&#123;</span>
    <span style="color: #002200;">&#91;</span>self.locationManager release<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #a61390;">@end</span></pre></div></div>

<p>The only important thing to note is the line</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;">self.locationManager.delegate <span style="color: #002200;">=</span> self;</pre></div></div>

<p>. Here we set our own object as the delegate, which means that all the location messages will be forwarded to CurrentLocationController.</p>
<p>I hope this will give you more time innovating, instead of developing <a href="http://www.mayoclinic.com/health/trichotillomania/DS00895">Trichotillomania</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/04/09/iphone-tip-2-what-is-my-current-location/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>iPhone tip #1 &#8211; URL encoding in Objective-C</title>
		<link>http://www.bagonca.com/blog/2009/04/08/iphone-tip-1-url-encoding-in-objective-c/</link>
		<comments>http://www.bagonca.com/blog/2009/04/08/iphone-tip-1-url-encoding-in-objective-c/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:01:41 +0000</pubDate>
		<dc:creator>Samuel</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[NSString]]></category>
		<category><![CDATA[NSUrl]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=100</guid>
		<description><![CDATA[If you are n00b when it comes to iPhone development, then you&#8217;ve come to the right place! We&#8217;ll be posting howtos, tips and tricks continuously.
So, how do you URL enconde a string? It&#8217;s quite simple if you know how.  

+ &#40;NSString *&#41;urlEncodeValue:&#40;NSString *&#41;str
&#123;
NSString *result = &#40;NSString *&#41; CFURLCreateStringByAddingPercentEscapes&#40;kCFAllocatorDefault, &#40;CFStringRef&#41;str, NULL, CFSTR&#40;”:/?#[]@!$&#38;’()*+,;=”), kCFStringEncodingUTF8);
return &#91;result autorelease&#93;;
&#125;

To create an [...]]]></description>
			<content:encoded><![CDATA[<p>If you are n00b when it comes to iPhone development, then you&#8217;ve come to the right place! We&#8217;ll be posting howtos, tips and tricks continuously.</p>
<p>So, how do you URL enconde a string? It&#8217;s quite simple if you know how. <img src='http://www.bagonca.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">+</span> <span style="color: #002200;">&#40;</span><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>urlEncodeValue<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>str
<span style="color: #002200;">&#123;</span>
<span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>result <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span> CFURLCreateStringByAddingPercentEscapes<span style="color: #002200;">&#40;</span>kCFAllocatorDefault, <span style="color: #002200;">&#40;</span>CFStringRef<span style="color: #002200;">&#41;</span>str, <span style="color: #a61390;">NULL</span>, CFSTR<span style="color: #002200;">&#40;</span>”<span style="color: #002200;">:/</span>?<span style="color: #6e371a;">#[]@!$&amp;’()*+,;=”), kCFStringEncodingUTF8);</span>
<span style="color: #a61390;">return</span> <span style="color: #002200;">&#91;</span>result autorelease<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>To create an URL object, do like this:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSURL</span> URLWithString<span style="color: #002200;">:</span>encodedUrlString<span style="color: #002200;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/04/08/iphone-tip-1-url-encoding-in-objective-c/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
