<?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>JAKERI &#187; Development</title>
	<atom:link href="http://www.jakeri.net/category/dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jakeri.net</link>
	<description>Consulting/Development in Java, Objective-C for web based systems and iPhone</description>
	<lastBuildDate>Sun, 23 May 2010 20:04:21 +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>Gasmacken 3.0 approved</title>
		<link>http://www.jakeri.net/2010/05/gasmacken-3-0-approved/</link>
		<comments>http://www.jakeri.net/2010/05/gasmacken-3-0-approved/#comments</comments>
		<pubDate>Sun, 23 May 2010 19:10:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[biogas]]></category>
		<category><![CDATA[CNG]]></category>
		<category><![CDATA[gasmacken]]></category>
		<category><![CDATA[google maps]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=398</guid>
		<description><![CDATA[<p>Gasmacken 3.0 is now available in the App Store. It took about 5 days waiting for review and about 45 minutes to be reviewed.
The major new feature is more countries available, Sweden, Germany, Austria, Switzerland, Italy and Finland.</p>

CNG stations for Sweden, Germany, Italy, Austria, Switzerland and Finland. More to come.
Possible to dynamically add new countries
Remember [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jakeri.net/gasmacken/">Gasmacken 3.0</a> is now available in the <a href="http://itunes.com/app/gasmacken">App Store</a>. It took about 5 days waiting for review and about 45 minutes to be reviewed.<br />
The major new feature is more countries available, Sweden, Germany, Austria, Switzerland, Italy and Finland.</p>
<ul>
<li>CNG stations for Sweden, Germany, Italy, Austria, Switzerland and Finland. More to come.</li>
<li>Possible to dynamically add new countries</li>
<li>Remember old position between restarts both in list and map</li>
<li>German localization</li>
</ul>

<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_29/' title='Screenshot_29'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_29-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_29" /></a>
<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_30/' title='Screenshot_30'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_30-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_30" /></a>
<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_31/' title='Screenshot_31'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_31-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_31" /></a>
<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_32/' title='Screenshot_32'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_32-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_32" /></a>
<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_33/' title='Screenshot_33'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_33-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_33" /></a>
<a href='http://www.jakeri.net/2010/05/gasmacken-3-0-approved/screenshot_34/' title='Screenshot_34'><img width="150" height="150" src="http://www.jakeri.net/wp-content/uploads/2010/05/Screenshot_34-150x150.png" class="attachment-thumbnail" alt="" title="Screenshot_34" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2010/05/gasmacken-3-0-approved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revisited &#8211; Custom callout bubble in MKMapView, final solution!</title>
		<link>http://www.jakeri.net/2010/05/custom-callout-bubble-final-solution-revisited/</link>
		<comments>http://www.jakeri.net/2010/05/custom-callout-bubble-final-solution-revisited/#comments</comments>
		<pubDate>Sun, 16 May 2010 18:03:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[callout bubble]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[mkannotation]]></category>
		<category><![CDATA[mkannotationview]]></category>
		<category><![CDATA[mkmapview]]></category>
		<category><![CDATA[property change listener]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=392</guid>
		<description><![CDATA[<p>I thought I had the final solution for custom callout bubbles in MKMapView but I was wrong. There were a couple of errors found after testing.</p>

If you press and hold it moves focus to the real callout bubble offset 10000px right and 10000px down
It did not work on the iPad (iPhoneOS 3.2) and iPhoneOS 4.0
There [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I had the <a href="http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/">final solution for custom callout bubbles in MKMapView</a> but I was wrong. There were a couple of errors found after testing.</p>
<ul>
<li>If you press and hold it moves focus to the real callout bubble offset 10000px right and 10000px down</li>
<li>It did not work on the iPad (iPhoneOS 3.2) and iPhoneOS 4.0</li>
<li>There is a leak on the property observer</li>
</ul>
<p>My latest solution solves the first two but not the third one. It works with iPhoneOS 3.0, 3.1, 3.2 and 4.0. I have only tested in simulator for 3.2 and 4.0.</p>
<p>To make it a easier to look at the code I have created my first <a href="http://github.com/jakeri/CustomCalloutMapView">github repository</a>. You can alsoe download source for master (<a href="http://github.com/jakeri/CustomCalloutMapView/zipball/master">zip</a> or <a href="http://github.com/jakeri/CustomCalloutMapView/tarball/master">tar</a>) directly from github.</p>
<p><strong>Update:</strong> I got my <a href="http://www.jakeri.net/gasmacken">application</a>, <a href="http://www.jakeri.net/gasmacken">Gasmacken</a> approved (2010-05-23) with this solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2010/05/custom-callout-bubble-final-solution-revisited/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Custom callout bubble in MKMapView, final solution!</title>
		<link>http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/</link>
		<comments>http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 13:20:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[callout bubble]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[mkannotation]]></category>
		<category><![CDATA[mkannotationview]]></category>
		<category><![CDATA[mkmapview]]></category>
		<category><![CDATA[property change listener]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=349</guid>
		<description><![CDATA[<p>Once again, this post has been updated.</p>
<p>I was not completely satisfied with my prior solution to custom callout bubble in MKMapView due a drawback.</p>
<p>One drawback is that if you click an annotation in the TouchView it is not propagated down to the MKMapView which makes pinch zoom bit more tricky if you have many annotations. [...]]]></description>
			<content:encoded><![CDATA[<p>Once again, this post has been <a href="http://www.jakeri.net/2010/05/custom-callout-bubble-final-solution-revisited/">updated</a>.</p>
<p>I was not completely satisfied with my prior solution to <a href="http://www.jakeri.net/2009/11/custom-callout-bubble-to-mkmapview-in-iphone/">custom callout bubble in MKMapView</a> due a drawback.</p>
<blockquote><p>One drawback is that if you click an annotation in the TouchView it is not propagated down to the MKMapView which makes pinch zoom bit more tricky if you have many annotations. Someone out there might have a good solution for it?</p></blockquote>
<p>Fortunately I figured out a new solution for the problem! A much more simple solution too.</p>
<p>It is a combination of the <a href="http://blog.evandavey.com/2009/07/how-to-detect-when-mkannotation-mkannotationview-is-selected.html">property change listener</a> solution and moving the <a href="http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/occ/instp/MKAnnotationView/calloutOffset">calloutOffset</a> off the display.</p>
<p>Set the calloutOffset off the display and add an observer to the selected-property.<br />
<code>- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation {</code></p>
<p><code>MKAnnotationView* annotationView = nil;</code></p>
<p><code>MyAnnotation *myAnnotation = (MyAnnotation*) annotation;<br />
NSString* identifier = @"Pin";<br />
MKPinAnnotationView* annView = (MKPinAnnotationView*)[self.mapView dequeueReusableAnnotationViewWithIdentifier:identifier];</code></p>
<p><code> </code></p>
<p><code>if(nil == annView) {<br />
annView = [[[MKPinAnnotationView alloc] initWithAnnotation:myAnnotation reuseIdentifier:identifier] autorelease];<br />
}<br />
//Add an observer for the selected-property on the MKAnnotationView. Delegate to self.<br />
[annView addObserver:self<br />
forKeyPath:@"selected"<br />
options:NSKeyValueObservingOptionNew<br />
context:GMAP_ANNOTATION_SELECTED];</code></p>
<p><code> </code></p>
<p><code>[annView setPinColor:MKPinAnnotationColorGreen];</p>
<p>//Set calloutOffset off screen.<br />
CGPoint notNear = CGPointMake(10000.0,10000.0);<br />
annView.calloutOffset = notNear;<br />
annotationView = annView;</p>
<p>[annotationView setEnabled:YES];<br />
[annotationView setCanShowCallout:YES];</p>
<p></code></p>
<p><code> return annotationView;<br />
}</code></p>
<p>Implement the observeValueForKeyPath method. It will be triggered when the property is selected or deselected.<br />
<code><br />
- (void)observeValueForKeyPath:(NSString *)keyPath<br />
ofObject:(id)object<br />
change:(NSDictionary *)change<br />
context:(void *)context{</code></p>
<p><code>NSString *action = (NSString*)context;</code></p>
<p><code> </code></p>
<p><code> if([action isEqualToString:GMAP_ANNOTATION_SELECTED]){<br />
BOOL annotationAppeared = [[change valueForKey:@"new"] boolValue];<br />
if (annotationAppeared) {<br />
[self showAnnotation:((MyAnnotationView*) object).annotation];<br />
}<br />
else {<br />
NSLog(@"annotation deselected %@", ((MyAnnotationView*) object).annotation.title);<br />
[self hideAnnotation];<br />
}<br />
}<br />
}<br />
</code></p>
<p><a href="http://www.jakeri.net/wp-content/uploads/2009/12/Screenshot_17.png"><img class="alignnone size-medium wp-image-363" title="Screenshot_17" src="http://www.jakeri.net/wp-content/uploads/2009/12/Screenshot_17-156x300.png" alt="Screenshot_17" width="156" height="300" /></a></p>
<p>Take a look at my <a href="http://www.jakeri.net/wp-content/uploads/2009/12/FinalCustomCalloutMapView.zip">new example</a> (with standard MKPinAnnotationView) or with <a href="http://www.jakeri.net/wp-content/uploads/2009/12/CustomCalloutMapView-custom-annotationView.zip">custom annotation view</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Custom callout bubble to MKMapView in iPhone</title>
		<link>http://www.jakeri.net/2009/11/custom-callout-bubble-to-mkmapview-in-iphone/</link>
		<comments>http://www.jakeri.net/2009/11/custom-callout-bubble-to-mkmapview-in-iphone/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 21:37:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[callout bubble]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[mkannotation]]></category>
		<category><![CDATA[mkannotationview]]></category>
		<category><![CDATA[mkmapview]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=286</guid>
		<description><![CDATA[<p>UPDATE! FOUND A NEW SOLUTION!</p>
<p>My latest version, 2.0 of Gasmacken contains a solution to the very annoying problem with a creating a custom callout bubble to the MKMapView in the iPhone SDK. There are no way to get a callback from the MKMapView delegate when a callout bubble is opened.</p>
<p></p>
<p>A recap of what you can do [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE! FOUND A NEW <a href="http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/">SOLUTION!</a></strong></p>
<p>My latest version, 2.0 of <a href="http://www.jakeri.net/gasmacken">Gasmacken</a> contains a solution to the very annoying problem with a creating a <a href="http://stackoverflow.com/questions/1565828/customize-callout-bubble-for-annotationview">custom</a> <a href="http://stackoverflow.com/questions/1350050/custom-mkannotationview-callout">callout</a> <a href="http://stackoverflow.com/questions/1525114/custom-popup-when-clicking-pin-in-mkmapview">bubble</a> to the MKMapView in the iPhone SDK. There are <strong>no way</strong> to get a callback from the MKMapView delegate when a callout bubble is opened.</p>
<p><a href="http://www.jakeri.net/wp-content/uploads/2009/10/Screenshot_4.jpg"><img class="aligncenter size-medium wp-image-281" title="custom callout bubble" src="http://www.jakeri.net/wp-content/uploads/2009/10/Screenshot_4-208x300.jpg" alt="custom callout bubble" width="208" height="300" /></a></p>
<p>A recap of what you can do with the built in callout bubble.</p>
<ul>
<li><a href="http://developer.apple.com/IPhone/library/documentation/MapKit/Reference/MKAnnotation_Protocol/Reference/Reference.html">MKAnnotation</a> contains title, subtitle and coordinate</li>
<li>Title must be set in the MKAnnotation to get the callout bubble</li>
<li>You can customize left or right of the callout bubble (<a href="http://developer.apple.com/iphone/library/DOCUMENTATION/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/doc/c_ref/MKAnnotationView">MKAnnotationView</a>) with a UIView but not change the callout bubble design at all</li>
</ul>
<p>One solution (almost) might be to use a <a href="http://blog.evandavey.com/2009/07/how-to-detect-when-mkannotation-mkannotationview-is-selected.html">property change listener</a> for the selected value. Unfortunately, the selected property is only changed if you have a title set in the MKAnnotation, which also brings up the built in callout bubble. This is a good solution if you e.g. want to play a sound when you open up the built in callout bubble.</p>
<p><strong>My solution</strong>, inspired by <a href="http://spitzkoff.com/craig/?p=108">drawing polylines or routes on a MKMapView</a>, has to do with adding a subview (TouchView see code in example) on top of the MKMapView and writing invisible buttons on the annotations.</p>
<p><code><br />
#import<br />
#import </code></p>
<p><code> </code></p>
<p><code>@class UIView;</code></p>
<p><code>@interface TouchView : UIView {<br />
MKMapView *mapView;<br />
id delegate;<br />
SEL callAtHitTest;<br />
SEL callAtAnnotationClick;<br />
NSMutableArray* buttonToAnnotation;<br />
}<br />
@property (nonatomic, assign) MKMapView * mapView;<br />
@property (assign) id delegate;<br />
@property (assign) SEL callAtHitTest;<br />
@property (assign) SEL callAtAnnotationClick;</p>
<p></code></p>
<p><code>- (void) regionChange;<br />
@end<br />
</code></p>
<ul>
<li>Selector <em>callAtHitTest</em> will be called every time you click on the map except for subview buttons. This method is great to use for stop follow current location updates in your code.</li>
<li>Selector <em><strong>callAtAnnotationClick</strong></em> will be called when you click your annotation. <strong>This is where you make your custom callout bubble visible.</strong></li>
<li>Method <em>regionChange</em> must be called every time MKMapView is changed.</li>
</ul>
<p>In a UIView sub class</p>
<ol>
<li>Create a TouchView, set delegate and the two selectors, <em>callAtHitTest</em> and <em>callAtAnnotationClick</em>.</li>
<li>Add MKMapView as a subview to your newly created touchView. Implement <em>MKMapViewDelegate </em><em>regionDidChangeAnimated. </em>Call method regionChanged in your TouchView class.</li>
<li>Populate MKMapView with annotations.</li>
<li>Add newly created MKMapView to your TouchView.</li>
<li>Add TouchView to surrounding UIView.</li>
<li>Call method regionChange once in TouchView.</li>
</ol>
<p>Here is the viewDidLoad method from the example code.</p>
<p><code><br />
- (void)viewDidLoad {<br />
[super viewDidLoad];</code></p>
<p><code> </code></p>
<p><code>touchView = [[TouchView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];<br />
touchView.delegate = self;<br />
touchView.callAtHitTest = @selector(stopFollowLocation);<br />
touchView.callAtAnnotationClick = @selector(annotationClicked:);<br />
//Next we create the MKMapView object, which will be added as a subview of viewTouch<br />
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];<br />
mapView.delegate = self;<br />
touchView.mapView = mapView;<br />
[touchView addSubview:mapView];</code></p>
<p><code>//And we display everything!<br />
[self.view addSubview:touchView];</p>
<p>CLLocationCoordinate2D sweLoc = {63.048230,15.685730};<br />
MKCoordinateSpan sweSpan = MKCoordinateSpanMake(14.208889, 24.169922);<br />
MKCoordinateRegion sweRegion = MKCoordinateRegionMake(sweLoc, sweSpan);</p>
<p>mapView.region = sweRegion;</p>
<p>//Populate some test annotations.<br />
NSMutableArray* annotations = [[NSMutableArray alloc] init];<br />
CLLocationCoordinate2D coord2d = {59.33984880,18.11479872};<br />
MyAnnotation *anno = [[MyAnnotation alloc] initWithCoords:coord2d name:@"Somewhere"];<br />
[annotations addObject:anno];<br />
[anno release];</p>
<p>CLLocationCoordinate2D coord2d1 = {65.80253606,21.67445822};<br />
MyAnnotation *anno1 = [[MyAnnotation alloc] initWithCoords:coord2d1 name:@"Nowhere"];<br />
[annotations addObject:anno1];<br />
[anno1 release];</p>
<p>CLLocationCoordinate2D coord2d2 = {55.71919202,13.15571100};<br />
MyAnnotation *anno2 = [[MyAnnotation alloc] initWithCoords:coord2d2 name:@"Anywhere"];<br />
[annotations addObject:anno2];<br />
[anno2 release];</p>
<p>[mapView addAnnotations:annotations];</p>
<p>[annotations release];</p>
<p>//redraw buttons<br />
[touchView regionChange];</p>
<p></code></p>
<p><code>}<br />
</code><br />
<strong>Remember to NOT set </strong><em><strong>title</strong></em><strong> and </strong><em><strong>subtitle</strong></em><strong> in your implementation of MKAnnotation</strong>. If it is set MKMapView will show the standard callout bubble if you accidentally click outside the TouchView button but inside the standard annotation in the MKMapView.</p>
<p>You might have to do some customization in your TouchView if you <strong>do not use the standard MKPinAnnotationView</strong>. Change <strong>CGRect coordinates for the buttons in TouchView</strong> to match your custom annotation view. Change UIButtonTypeRoundedRect to see the actual button and match it to cover your custom annotation view.</p>
<p><span style="text-decoration: line-through;">One drawback is that if you click a annotation in the TouchView it is not propagated down to the MKMapView which makes pinch zoom bit more tricky if you have many annotations.</span> Someone out there might have a <a href="http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/">good solution</a> for it?</p>
<p><span style="text-decoration: line-through;">That&#8217;s it. Download </span><a href="http://www.jakeri.net/wp-content/uploads/2009/11/CustomCalloutMapView.zip"><span style="text-decoration: line-through;">example</span></a><span style="text-decoration: line-through;"> for better understanding</span>. See this <a href="http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/">post</a> instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/11/custom-callout-bubble-to-mkmapview-in-iphone/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Gasmacken på Aftonbladet</title>
		<link>http://www.jakeri.net/2009/10/gasmacken-pa-aftonbladet/</link>
		<comments>http://www.jakeri.net/2009/10/gasmacken-pa-aftonbladet/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:47:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[aftonbladet]]></category>
		<category><![CDATA[biogas]]></category>
		<category><![CDATA[CNG]]></category>
		<category><![CDATA[gasmacken]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=266</guid>
		<description><![CDATA[<p>Aftonbladet skriver om Gasmacken!
</p>
]]></description>
			<content:encoded><![CDATA[<p>Aftonbladet <a href="http://www.aftonbladet.se/bil/article5946890.ab">skriver</a> om Gasmacken!<br />
<a href="http://www.jakeri.net/wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-17.22.18.png"><img class="size-medium wp-image-270 alignnone" title="Screen shot 2009-10-12 at 17.22.18" src="http://www.jakeri.net/wp-content/uploads/2009/10/Screen-shot-2009-10-12-at-17.22.18-300x187.png" alt="Screen shot 2009-10-12 at 17.22.18" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/10/gasmacken-pa-aftonbladet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gasmacken available for sale</title>
		<link>http://www.jakeri.net/2009/10/gasmacken-available-for-sale/</link>
		<comments>http://www.jakeri.net/2009/10/gasmacken-available-for-sale/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 06:30:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Company]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[biogas]]></category>
		<category><![CDATA[CNG]]></category>
		<category><![CDATA[fordonsgas]]></category>
		<category><![CDATA[gasmacken]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=245</guid>
		<description><![CDATA[<p>My latest iPhone application Gasmacken has been approved by Apple!</p>
<p></p>
<p>Gasmacken is an application that automatically fetches an updated list of all CNG (Compressed Natural Gas) refuelling stations in Sweden and displays them on a map.</p>
<p>Features</p>

List all CNG stations in Sweden
Show your current location
Automatic updates of CNG stations in Sweden
Show directions with with built in Maps [...]]]></description>
			<content:encoded><![CDATA[<p>My latest iPhone application <a href="http://www.jakeri.net/gasmacken">Gasmacken</a> has been approved by Apple!</p>
<p><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=333227624&amp;mt=8&amp;s=143460"><img class="alignnone size-full wp-image-160" title="Gasmacken" src="http://www.jakeri.net/wp-content/uploads/2009/08/appstore.png" alt="Gasmacken" width="121" height="41" /></a></p>
<p>Gasmacken is an application that automatically fetches an updated list of all CNG (Compressed Natural Gas) refuelling stations in Sweden and displays them on a map.</p>
<p><strong>Features</strong></p>
<ul>
<li>List all CNG stations in Sweden</li>
<li>Show your current location</li>
<li>Automatic updates of CNG stations in Sweden</li>
<li>Show directions with with built in Maps application</li>
</ul>
<p><strong>Swedish information about Gasmacken</strong></p>
<p>Gasmacken är ett program som automatiskt hämtar en uppdaterad lista över alla gasmackar i Sverige och presenterar dem på en karta.</p>
<p><strong>Funktioner</strong></p>
<ul>
<li>Lista med alla tankställen för fordonsgas i Sverige</li>
<li>Positionering med inbyggd GPS</li>
<li>Automatisk uppdatering av listan med tankställen för fordonsgas</li>
<li>Vägbeskrivning med inbyggd kartapplikation</li>
</ul>
<p><img class="alignnone size-full wp-image-216" title="Screenshot 2009.09.25 22.39.53" src="http://www.jakeri.net/wp-content/uploads/2009/09/Screenshot-2009.09.25-22.39.531.png" alt="Screenshot 2009.09.25 22.39.53" width="320" height="480" /><img class="alignnone size-full wp-image-217" title="Screenshot 2009.09.25 22.40.18" src="http://www.jakeri.net/wp-content/uploads/2009/09/Screenshot-2009.09.25-22.40.181.png" alt="Screenshot 2009.09.25 22.40.18" width="320" height="480" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/10/gasmacken-available-for-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UILocalizedIndexedCollation, no Swedish localization</title>
		<link>http://www.jakeri.net/2009/10/uilocalizedindexedcollation-no-swedish-localization/</link>
		<comments>http://www.jakeri.net/2009/10/uilocalizedindexedcollation-no-swedish-localization/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 11:29:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[swedish]]></category>
		<category><![CDATA[UILocalizedIndexedCollation]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=232</guid>
		<description><![CDATA[<p>In my latest app, Gasmacken I tried to use UILocalizedIndexedCollation (from example TableViewSuite example 3) for creating a localized version of the A-Z list (A-Ö in swedish) on the right side in a table view. But to my surprise I could not get any difference in table view running in Swedish or English. The list [...]]]></description>
			<content:encoded><![CDATA[<p>In my latest app, <a href="http://www.jakeri.net/gasmacken">Gasmacken</a> I tried to use UILocalizedIndexedCollation (from example TableViewSuite example 3) for creating a localized version of the A-Z list (A-Ö in swedish) on the right side in a table view. But to my surprise I could not get any difference in table view running in Swedish or English. The list was created in english locale. Apples example TableViewSuite uses UILocalizedIndexedCollation and does not work either.</p>
<div id="attachment_237" class="wp-caption alignnone" style="width: 330px"><img class="size-full wp-image-237 " title="TableViewSuite example 3 running with UILocalizedIndexedCollation" src="http://www.jakeri.net/wp-content/uploads/2009/10/Screen-shot-2009-10-06-at-13.23.00.png" alt="TableViewSuite example 3 " width="320" height="480" /><p class="wp-caption-text">TableViewSuite example 3 running with swedish locale, no A-Ö</p></div>
<p>I trashed the use of UILocalizedIndexedCollation and created the list manually, without localization support it only supports A-Ö sorting now. Should I classify this as a bug and report it to Apple?</p>
<div id="attachment_217" class="wp-caption alignnone" style="width: 330px"><img class="size-full wp-image-217" title="Custom built sections for Swedish." src="http://www.jakeri.net/wp-content/uploads/2009/09/Screenshot-2009.09.25-22.40.181.png" alt="Screenshot 2009.09.25 22.40.18" width="320" height="480" /><p class="wp-caption-text">This is what I wanted from UILocalizedIndexedCollation</p></div>
<p><strong>Does it support any other locales, Japanese, German, French, Chinese etc? </strong>Not Swedish as I thought.</p>
<p>Excerpt from documentation of UILocalizedIndexedCollation.</p>
<blockquote><p>The UILocalizedIndexedCollation class is a convenience for organizing, sorting, and localizing the data for a table view that has a section index. The table view’s data source then uses the collation object to provide the table view with input for section titles and section index titles.</p>
<p>Table views with section indexes are ideal for displaying and facilitating the access of data composed of many items organized by a sequential ordering scheme such as the alphabet. Users tap an index title to jump to the corresponding section. The initial table view of the Phone/Contacts application on the iPhone is an example. Note that the section titles can be different than the titles of the index.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/10/uilocalizedindexedcollation-no-swedish-localization/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google App Engine + Java</title>
		<link>http://www.jakeri.net/2009/04/google-app-engine-java/</link>
		<comments>http://www.jakeri.net/2009/04/google-app-engine-java/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 08:37:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[app engine]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=137</guid>
		<description><![CDATA[<p>Google has released Google App Engine with support for Java!</p>
<p>It includes a neat plugin for Eclipse also. Here is a video showing features of the Eclipse plugin.</p>
<p>Must test this during the Easter holiday!</p>
]]></description>
			<content:encoded><![CDATA[<p>Google has <a href="http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html">released </a>Google <a href="http://code.google.com/appengine/">App Engine</a> with support for Java!</p>
<p>It includes a neat <a href="http://code.google.com/eclipse/">plugin for Eclipse</a> also. Here is a <a href="http://www.youtube.com/watch?v=P3GT4-m_6RQ">video </a>showing features of the Eclipse plugin.</p>
<p>Must test this during the Easter holiday!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/04/google-app-engine-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sticky load balance with Apache HTTPD 2.2</title>
		<link>http://www.jakeri.net/2009/03/sticky-load-balance-with-apache-httpd-22/</link>
		<comments>http://www.jakeri.net/2009/03/sticky-load-balance-with-apache-httpd-22/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 21:39:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[loadbalancer]]></category>
		<category><![CDATA[mod_proxy]]></category>
		<category><![CDATA[mod_proxy_balancer]]></category>
		<category><![CDATA[sticky]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=62</guid>
		<description><![CDATA[<p>Apache HTTPD 2.2 includes some interesting features for making a basic load balancer.</p>
<p>This configuration makes a sticky loadbalancer with 3 backend servers. It is not dependant on any specific configuration of the backend server such as JSESSIONID or PHPSESSIONID.
It will create a BALANCEID-cookie with a route to a backend server.</p>
<p>
#You need at least these modules
#Header [...]]]></description>
			<content:encoded><![CDATA[<p>Apache HTTPD 2.2 <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass">includes</a> <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#balancermember">some</a> <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#environment">interesting</a> features for making a basic load <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html">balancer</a>.</p>
<p>This configuration makes a sticky loadbalancer with 3 backend servers. It is <strong>not dependant</strong> on any specific configuration of the <strong>backend</strong> server such as JSESSIONID or PHPSESSIONID.<br />
It will create a BALANCEID-cookie with a route to a backend server.</p>
<p><code><br />
#You need at least these modules<br />
#Header used for setting cookie<br />
LoadModule headers_module ...<br />
#Proxy<br />
LoadModule proxy_module ...<br />
LoadModule proxy_http_module ...<br />
LoadModule proxy_balancer_module ...</p>
<p>#Set a cookie if BALANCER_ROUTE_CHANGED containing BALANCER_WORKER_ROUTE environment variable<br />
Header add Set-Cookie "BALANCEID=hej.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED</p>
<p>#Show balancer-manager<br />
&lt;Location /balancer-manager&gt;<br />
&nbsp;&nbsp;SetHandler balancer-manager<br />
&nbsp;&nbsp;Order allow,deny<br />
&nbsp;&nbsp;Allow from all<br />
&lt;/Location&gt;</p>
<p>ProxyRequests Off</p>
<p>#Configure members for cluster<br />
&lt;Proxy balancer://jakeri&gt;<br />
&nbsp;&nbsp;BalancerMember http://b1.jakeri.net:80 route=server1<br />
&nbsp;&nbsp;BalancerMember http://b2.jakeri.net:80 route=server2<br />
&nbsp;&nbsp;BalancerMember http://b3.jakeri.net:80 route=server3<br />
&lt;/Proxy&gt;</p>
<p>#Do not proxy balancer-manager<br />
ProxyPass /balancer-manager !</p>
<p>#The actual ProxyPass<br />
ProxyPass / balancer://jakeri/ stickysession=BALANCEID nofailover=Off</p>
<p>#Do not forget ProxyPassReverse for redirects<br />
ProxyPassReverse / http://b1.jakeri.net/<br />
ProxyPassReverse / http://b2.jakeri.net/<br />
ProxyPassReverse / http://b3.jakeri.net/<br />
</code></p>
<p>I believe that this configuration is somewhat better compared to this <a href="http://www.markround.com/archives/33-Apache-mod_proxy-balancing-with-PHP-sticky-sessions.html">guide</a>.</p>
<p><em>I got to fix my css for the &lt;code&gt;&lt;/code&gt; :-/</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/03/sticky-load-balance-with-apache-httpd-22/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Beautiful code with wordle</title>
		<link>http://www.jakeri.net/2009/01/beautiful-code-with-wordle/</link>
		<comments>http://www.jakeri.net/2009/01/beautiful-code-with-wordle/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 22:20:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[generated]]></category>
		<category><![CDATA[HttpServletRequest.java]]></category>
		<category><![CDATA[wordle]]></category>

		<guid isPermaLink="false">http://www.jakeri.net/?p=118</guid>
		<description><![CDATA[<p>Had to test generate a wordle from source code. In this case HttpServletRequest.java.

</p>
]]></description>
			<content:encoded><![CDATA[<p>Had to test generate a <a href="http://www.wordle.net">wordle</a> from source code. In this case HttpServletRequest.java.<br />
<a href="http://www.jakeri.net/wp-content/uploads/2009/01/wrodleny.png"><img src="http://www.jakeri.net/wp-content/uploads/2009/01/wrodleny-300x231.png" alt="" title="wrodle white" width="300" height="231" class="alignnone size-medium wp-image-120" /></a><br />
<a href="http://www.jakeri.net/wp-content/uploads/2009/01/wordle.png"><img src="http://www.jakeri.net/wp-content/uploads/2009/01/wordle-300x231.png" alt="" title="wordle black" width="300" height="231" class="alignnone size-medium wp-image-119" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jakeri.net/2009/01/beautiful-code-with-wordle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
