<?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/"
	>

<channel>
	<title>Guvener Gokce</title>
	<atom:link href="http://blog.guvenergokce.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.guvenergokce.com</link>
	<description>RIA, Cocoa and Entrepreneurship</description>
	<pubDate>Tue, 04 Aug 2009 00:08:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Detect iPhone users with Radiant Language Extension</title>
		<link>http://blog.guvenergokce.com/detect-iphone-users-with-radiant-language-extension/157/</link>
		<comments>http://blog.guvenergokce.com/detect-iphone-users-with-radiant-language-extension/157/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 00:00:38 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=157</guid>
		<description><![CDATA[
if you are a big fan of Radiant CMS (like we are) probably you are using Language Extension  for redirecting your visitors to appropriate language pages.
How about redirecting iPhone users to an iPhone-only version of your site?
Today my teammate Volkan Caliskan launched iPhone-only site of Vayen and shared me a trick that They have [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-162 alignleft" style="border: 3px solid black; margin: 3px;" title="picture-10" src="http://blog.guvenergokce.com/wp-content/uploads/2009/08/picture-10.png" alt="picture-10" width="289" height="110" /></p>
<p>if you are a big fan of Radiant CMS (like we are) probably you are using Language Extension  for redirecting your visitors to appropriate language pages.<br />
How about redirecting iPhone users to an iPhone-only version of your site?</p>
<p>Today my teammate Volkan Caliskan launched iPhone-only site of Vayen and shared me a trick that They have found with my friend Mert Yentur,<br />
<strong></strong></p>
<p><strong>Here comes the trick for redirecting iPhone users to a specific web page with Radiant Language Extension.</strong><br />
open your /vendor/extensions/language_redirect/app/models/language_redirect_page.rb<br />
then change location method like:</p>
<blockquote><p>def location<br />
path = nil<br />
languages.find do |lang|<br />
path = location_map[lang[0..1]]<br />
end<br />
path ||= location_map["*"] || &#8216;/en/&#8217;<br />
if (@request.user_agent.include?(&#8221;iPhone&#8221;)==true)<br />
then<br />
path = &#8220;http://www.vayentech.com/iphone/&#8221;<br />
end<br />
if path =~ %r{[:][/][/]}<br />
path<br />
else<br />
@request.protocol + @request.host_with_port + path<br />
end<br />
end</p></blockquote>
<p>as you&#8217;ve noticed, we have only added following lines, nothing more.</p>
<blockquote><p>if (@request.user_agent.include?(&#8221;iPhone&#8221;)==true)<br />
then<br />
path = &#8220;http://www.vayentech.com/iphone/&#8221;<br />
end</p></blockquote>
<p>Hope this trick helps radiant fans :)<br />
thanks to Volkan Caliskan &amp; Mert Yentur for sharing the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/detect-iphone-users-with-radiant-language-extension/157/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Decide faster with Hunch.com</title>
		<link>http://blog.guvenergokce.com/decide-faster-with-hunch-com/121/</link>
		<comments>http://blog.guvenergokce.com/decide-faster-with-hunch-com/121/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 10:50:09 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Reviews]]></category>

		<category><![CDATA[API]]></category>

		<category><![CDATA[Hunch]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=121</guid>
		<description><![CDATA[Couple of days ago I discovered Hunch.com and joined the beta version of the site.
Although I am not a fun of expert systems (I think they&#8217;re not expert enough)
I saw that hunch team made a really cool product which combines logic of expert systems with decision making  of mankind.
It&#8217;s not just showing you the [...]]]></description>
			<content:encoded><![CDATA[<p>Couple of days ago I discovered <a href="http://www.huch.com">Hunch.com</a> and joined the beta version of the site.<br />
Although I am not a fun of expert systems (I think they&#8217;re not expert enough)<br />
I saw that hunch team made a really cool product which combines logic of expert systems with decision making  of mankind.<br />
It&#8217;s not just showing you the results according to responses to the questions but also you can see the rates of the answers, comments for those answers moreover pros and cons.<br />
I took some tests like  &#8220;Which science fiction author would I like?&#8221; and amazed with the results,<br />
Hunch guessed my favorite authors and also recommended new ones.<br />
I have read the pros and cons of the authors written by hunch users  to ensure it is correct. </p>
<p>Then next step was contributing to hunch and I pushed my topic<br />
&#8220;Which club should I go in Istanbul?&#8221; come on not that bad topic  :)<br />
I have offered ten places according to different answers to my question sequence.<br />
and what I discovered is reliable, fast and easy to use advanced expert system. </p>
<p><img src="http://blog.guvenergokce.com/wp-content/uploads/2009/04/picture-69.png" alt="picture-69" title="picture-69" width="383" height="178" class="alignnone size-full wp-image-135" /></p>
<p>After I saw that it is really fun to build decision trees with hunch why not developing an iPhone App by using hunch API and registered to Hunch developer program for API key.<br />
Before I start playing with the API, I wanted to announce my friends hunch is coming<br />
and I&#8217;m sure you&#8217;ll like it ;)<br />
cheers.<br />
G.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/decide-faster-with-hunch-com/121/feed/</wfw:commentRss>
		</item>
		<item>
		<title>4 Questions to answer when you faced an encoding error in a web service</title>
		<link>http://blog.guvenergokce.com/4-questions-to-answer-when-you-faced-an-encoding-error-in-a-web-service/113/</link>
		<comments>http://blog.guvenergokce.com/4-questions-to-answer-when-you-faced-an-encoding-error-in-a-web-service/113/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:06:02 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Conversion]]></category>

		<category><![CDATA[Encoding]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[Latin 5]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[UTF-8]]></category>

		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=113</guid>
		<description><![CDATA[Encoding non english characters may cause many problems.  Especially if you are using a smart text editor, it&#8217;s hard to find out what is really happening in the communication because smart text editors are extremely cool moreover they fix the encoding errors by modifying the retrieved message in order to help developers. But sometimes [...]]]></description>
			<content:encoded><![CDATA[<p>Encoding non english characters may cause many problems.  Especially if you are using a smart text editor, it&#8217;s hard to find out what is really happening in the communication because smart text editors are extremely cool moreover they fix the encoding errors by modifying the retrieved message in order to help developers. But sometimes this is not a help but a difficulty. Anyway we all love smart text editors and this is not about them, just about encoding conversions.</p>
<p>In this article, I would like to explain an issue I faced while developing remote services for SAP in order to communicate with an electronic store.<br />
Here is the simplified diagram of the communication.</p>
<p><img class="alignnone size-full wp-image-115" title="picture-62" src="http://blog.guvenergokce.com/wp-content/uploads/2009/04/picture-62.png" alt="picture-62" width="568" height="196" /></p>
<p>As you see remote site posts an XML package with CURL and Php Service receives the message and runs some query in the SAP database.</p>
<p>In order to show non-english characters SAP database was configured for ISO Latin 5 encoding<br />
and I was receiving the xml post in UTF-8 format. When I print the incoming xml post, I haven&#8217;t faced with any trouble it seems like everything is correct but when I inserted to db, I always get character errors.</p>
<p>Then we find out that, textmate is configured to use default utf-8 format so although I receive different encoded xml post, textmate is showing it correct.</p>
<p>In order to regenerate what happened you should follow these steps.<br />
- Open TextEdit and write non-english characters like: &#8220;ÇçĞğŞşİıIiÖöÜü&#8221;<br />
- While saving the file choose iso latin 5 encoding and save.<br />
- Now open file in textmate you will commonly see &#8220;ÇçÐðÞþÝýIiÖöÜü&#8221;</p>
<p>what we have done to solve this problem is simply replacing the mistaken characters with correct ones.<br />
In this article I wanted to warn you to be careful about 4 major point,</p>
<p>1) which encoding type you are working on,<br />
2) which encoding type your text editor using<br />
3) which encoding type your database is storing<br />
4) which encoding type other application that&#8217;s sharing the same database using.</p>
<p>If you face that kind of encoding problems, ask yourself those 4 questions. :)<br />
if all of those 4 is in harmony, play the service ;)<br />
I hope it will help<br />
cheers.<br />
Guvener</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/4-questions-to-answer-when-you-faced-an-encoding-error-in-a-web-service/113/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Google Appengine rocks!</title>
		<link>http://blog.guvenergokce.com/google-appengine-rocks/87/</link>
		<comments>http://blog.guvenergokce.com/google-appengine-rocks/87/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 03:29:08 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Google App Engine]]></category>

		<category><![CDATA[app engine]]></category>

		<category><![CDATA[application]]></category>

		<category><![CDATA[deploy]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[Launcher]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=87</guid>
		<description><![CDATA[
 
 
Since Google announced Appengine, we are all excited about the upcoming news.
In this article i want to share some tips for getting started with appengine.





Following tips are :  general information and registering to appengine, using App Engine SDK, creating your first app and deploying your baby.
* General info and Sign up. 
Why app engine [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-96 alignleft" style="margin-left: 20px; margin-right: 20px;" title="appengine" src="http://blog.guvenergokce.com/wp-content/uploads/2009/03/appengine.png" alt="appengine" width="244" height="187" /></p>
<p> </p>
<p> </p>
<p>Since Google announced Appengine, we are all excited about the upcoming news.</p>
<p>In this article i want to share some tips for getting started with appengine.</p>
<div>
<div>
<div>
<div>
<div>
<div>Following tips are :  general information and registering to appengine, using App Engine SDK, creating your first app and deploying your baby.</div>
<div><strong>* General info and Sign up. </strong></div>
<div>Why app engine ?</div>
<div>App Engine enables developers to build web applications on the Google&#8217;s infrastructure. It&#8217;s pretty easy to build and maintain but the best part is it&#8217;s easy to scale as site traffic and data storage needs grow, another great point, getting started with app engine is free. so let&#8217;s get started.</div>
<div>Browse: http://appengine.google.com</div>
<div>and login with your google account, then press create an application button and enter your app  identifier.  (yourapp.appspot.com ) then here we go, you have it .</div>
<div><strong>* App Engine SDK</strong></div>
<div>App Engine SDK, brings you a development enviroment for quickly testing your apps locally. As soon as you setup the SDK you will find Appengine Launcher. <a href="http://blog.guvenergokce.com/wp-content/uploads/2009/03/picture-39.png">Launcher</a> is really easy to use development tool, it reminds me the<a href="http://blog.guvenergokce.com/wp-content/uploads/2009/03/loco.png"> old ruby on rails locomotive development app</a> that I have been using in Tiger OS. It simply creates a new application, runs your application locally ( you can configure which port number  your application will use via launcher. ), logs server request for debugging  and then deploys to google.</div>
<div>download  a beautiful SDK from : http://code.google.com/appengine/downloads.html</div>
<div><strong>* Creating you first app</strong></div>
<div>I highly recommend watching Google&#8217;s official first application video on youtube.</div>
<div><a href="http://www.youtube.com/watch?v=bfgO-LXGpTM">Watch Now</a></div>
<div>I assume that you have watched the video,  now you saw how to write a quick guest book.</div>
<div><strong>- How to add static content like css and images?</strong></div>
<div>in your application directory create a folder and name it as &#8220;static&#8221;. this is not a rule, but everybody does that don&#8217;t discuss :) now open your app.yaml and under handlers tell application your static folder path,</div>
<div><em>handlers:</em></div>
<div><em>- url: /static</em></div>
<div><em> static_dir: static</em></div>
<div>that&#8217;s all. now you can put your images or css files inside static directory.</div>
<div><strong>- How about other data types on app engine? </strong></div>
<div>On app engine be careful you are not connecting to a traditional database, but you are using app engine datastore via Model library, that gives you opportunity for using better data types. See available data types on appengine store.</div>
<div>http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html</div>
<div>Now assume you want to use GeoPtProperty for storing your users locations. like:</div>
<div><em>class UniqueVisit(db.Model):</em></div>
<div><em> location = db.StringProperty(required=True)</em></div>
<div><em> geoPoint = db.GeoPtProperty()</em></div>
<div>use GeoPt type for initializing GeoPtProperty,  Assume values for locate = &#8220;istanbul&#8221;, lat=41, lon=38 .</div>
<div><em>visit = UniqueVisit(location = locate, geoPoint = db.GeoPt(lat,lon) )</em></div>
<div><em><br />
</em></div>
<div><strong>* Deploying your app is also easy. </strong></div>
<div>Ensure your local development application&#8217;s name is same as your application identifier that you registered to google.</div>
<div>Press deploy and enter your google account. that&#8217;s all you have an application up and running on app engine.</div>
<div>cheers.</div>
<div>Guvener</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/google-appengine-rocks/87/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yahoo Pipes Development Tips</title>
		<link>http://blog.guvenergokce.com/yahoo-pipes-development-tips/76/</link>
		<comments>http://blog.guvenergokce.com/yahoo-pipes-development-tips/76/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 10:09:47 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Merge]]></category>

		<category><![CDATA[Pipes]]></category>

		<category><![CDATA[RSS]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=76</guid>
		<description><![CDATA[While developing with yahoo pipes,  there are a couple of undocumented issues that Developers should be curious about,
so that you should decide if yahoo pipes is right for you or not. 
First one is how often yahoo bot updates  your feeds,
According to my experiments (I logged  rss requests made by yahoo), Yahoo bot updates  rss each [...]]]></description>
			<content:encoded><![CDATA[<p>While developing with yahoo pipes,  there are a couple of undocumented issues that Developers should be curious about,<br />
so that you should decide if yahoo pipes is right for you or not. <br />
<strong>First one is how often yahoo bot updates  your feeds,<br />
<span style="font-weight: normal;">According to my experiments (I logged  rss requests made by yahoo), Yahoo bot updates  rss each 12-25 min.<br />
It seems like frequency of update is directly proportional with yahoo pipe request made by users. the more users call pipes, the more often yahoo pipe updates rss sources. </span></strong></p>
<p><strong>Seccond one is Time issue ,<br />
<span style="font-weight: normal;">Every developer who has played with pipes for  a while will recognize there are small but important details with yahoo pipes time variables. I will try to explain that issue with an example,<br />
For instance, you requested a news rss and it returned you rss with item element pubDate like<br />
&lt;item&gt;&lt;pubDate&gt;16.02.2009 08:33:00&lt;/pubDate&gt; &#8230;<br />
At first sight, there is no problem with that time format yahoo will receive this and deliver you back.<br />
But since there is no  Greenwich mean time (GMT) description in that time format, yahoo automatically assume this date is from its own region and converts date to pacific time format so return this date as US time.<br />
If you have one source and you don&#8217;t care about the time it is ok.<br />
But if you are using multiple sources and especially if the control of generating rss is not in your hands, you should think about this issue very carefully before your decision. Let me give another example.<br />
Assume you received another item from a rss source like this,<br />
 &lt;item&gt;&lt;pubDate&gt;Mon, 16 Feb 2009 11:26:00 +0200&lt;/pubDate&gt;.. <br />
(My hometown is in +0200 GMT) <br />
And we already have previous item, <br />
&lt;item&gt;&lt;pubDate&gt;16.02.2009 08:33:00&lt;/pubDate&gt; &#8230; <br />
When you tryed to merge  rss items and order by date, you will see pipes will assume 08:33 as pasific time (cause there is not GMT), and order it earlier from +0200 time. </span></strong></p>
<p><strong> </strong></p>
<p><strong><strong> Third issue is updating pubDate value on RSS item<br />
<span style="font-weight: normal;">Assume you need to change pubDate element of received rss, the way for doing this is not the same way you changed rss title or description. This is more complex, you need to regenerate the item for changing pubDate.</span></strong></strong></p>
<p><img class="alignright size-medium wp-image-80" title="picture-61" src="http://blog.guvenergokce.com/wp-content/uploads/2009/02/picture-61-300x148.png" alt="picture-61" width="300" height="148" />For an example of updating pubDate and other rss elements see <a href="http://pipes.yahoo.com/guvener/internethaber " target="_blank">yahoo pipes rss element update example.</a> </p>
<p>I appreciate yahoo pipes, it is easy to develop and maintain but have few issues with reliability and performance, in order to make sources suitable for yahoo pipes in my project, I made a proxy between yahoo pipes and news sources. (Receive news, make changes for yahoo pipes, feed pipes.)<br />
I think pipes is a cool idea (for those who use Quartz Composer :) will understand me better. ) </p>
<p>in the following days i am sure yahoo will improve pipes and make it much better.  :)<br />
If you want to share your tips, don&#8217;t hesitate to review or contact,<br />
Bests</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/yahoo-pipes-development-tips/76/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Follow iPhone App&#8217;s server requests</title>
		<link>http://blog.guvenergokce.com/follow-iphone-apps-server-requests/64/</link>
		<comments>http://blog.guvenergokce.com/follow-iphone-apps-server-requests/64/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 21:26:10 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Apple]]></category>

		<category><![CDATA[Follow]]></category>

		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Request]]></category>

		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=64</guid>
		<description><![CDATA[There  are a couple of ways to follow the server requests of an iPhone application. 
First way is using HTTP Proxy on your wi-fi networks settings. 
In order to configure a proxy, you need a simple proxy server.  You should use squidman as your personal proxy server. Download squidman and run.  Now you have your proxy server running.

 
Now go to [...]]]></description>
			<content:encoded><![CDATA[<p>There  are a couple of ways to follow the server requests of an iPhone application. <br />
<strong>First way is using HTTP Proxy on your wi-fi networks settings. </strong><br />
In order to configure a proxy, you need a simple proxy server.  You should use<a title="Squidman" href="http://homepage.mac.com/adg/SquidMan/index.html" target="_blank"> squidman</a> as your personal proxy server. Download squidman and run.  Now you have your proxy server running.</p>
<p><img class="alignleft size-medium wp-image-66" title="img_0002" src="http://blog.guvenergokce.com/wp-content/uploads/2009/02/img_0002-200x300.png" alt="img_0002" width="200" height="300" /></p>
<p> </p>
<p>Now go to your iPhone&#8217;s settings and configure wi-fi networks. Chose Http Proxy and select Manual tab. Now you will see iPhone&#8217;s text input fields for server and port. Enter your personal proxy server&#8217;s ip and port (default port of squidman is 8080 you can check it via preferences of squidman ).  </p>
<p><img class="alignright size-medium wp-image-67" title="picture-58" src="http://blog.guvenergokce.com/wp-content/uploads/2009/02/picture-58-300x118.png" alt="picture-58" width="300" height="118" /></p>
<p>Now You can use Squidman-&gt; tools option (Apple + T) -&gt; Access Log  in  order to follow </p>
<p>which urls requested from application. go! listen all application&#8217;s requests :) enjoy. </p>
<p> </p>
<p> </p>
<p><img class="alignright size-medium wp-image-68" title="picture-59" src="http://blog.guvenergokce.com/wp-content/uploads/2009/02/picture-59-300x251.png" alt="picture-59" width="300" height="251" /><strong>Second way of sniffing the requests is sharing internet connection</strong> from your Mac and connecting this shared network from your iPhone, then simply use network utility (netstat).</p>
<p>Steps: Open System preferences -&gt; Sharing -&gt; click Internet Sharing -&gt; start.  (since you will share your internet via airport, make sure you are connected to internet via cable).  Now connect this shared network from your iPhone and enjoy listening the network via Network Utilities.</p>
<p>There are many other different ways of listening application access, you should also use <strong>modem access logs</strong> <span style="text-decoration: line-through;">or if you are a geek who likes playing with jailbreaked iphones , you may choose ssh options it&#8217;s up to you. ( we are good boys so we won&#8217;t discuss about jailbreaked ways.)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/follow-iphone-apps-server-requests/64/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AVAudioPlayer on iPhone Simulator</title>
		<link>http://blog.guvenergokce.com/avaudioplayer-on-iphone-simulator/57/</link>
		<comments>http://blog.guvenergokce.com/avaudioplayer-on-iphone-simulator/57/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 15:29:37 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Cocoa]]></category>

		<category><![CDATA[Featured]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Simulator]]></category>

		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=57</guid>
		<description><![CDATA[With iPhone 2.2, AVAudioPlayer Class is introduced.
AVAudioPlayer  simplifies making an object from a file, start/stop/pause media, volume control and looping. 
You can find documentation of this class via Apple iPhone Developer site, here we will discuss an issue you&#8217;ll probably face while trying to use this class on simulator. 
If you are facing problem, playing your media with AVAudioPlayer [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-60" title="AVAudioPlayer" src="http://blog.guvenergokce.com/wp-content/uploads/2009/01/picture-11.png" alt="AVAudioPlayer" width="297" height="194" />With iPhone 2.2, AVAudioPlayer Class is introduced.<br />
AVAudioPlayer  simplifies making an object from a file, start/stop/pause media, volume control and looping. <br />
You can find documentation of this class via Apple iPhone Developer site, here we will discuss an issue you&#8217;ll probably face while trying to use this class on simulator. </p>
<p><strong>If you are facing problem, playing your media with AVAudioPlayer on Simulator.<br />
<span style="font-weight: normal;">Check your /Library/Quicktime directory.<br />
Browse files in this directory and find  <em>third party add-ons like Perian, DivX</em> etc.<br />
Move these add-ons in to another folder while you are developing with AVAudioPlayer<br />
Now Test your Application, AVAudioPlayer should run without any problem.<br />
Don&#8217;t forget to move your add-ons back to Quicktime Directory after you finished development ;)</span></strong></p>
<p><strong> </strong></p>
<p><strong> Here is a quick AVAudioPlayer usage example, </strong></p>
<p> </p>
<p>-(IBAction)playMovie:(id)sender{</p>
<p><span> </span>NSString *newAudioFile = [[NSBundle mainBundle] pathForResource:@&#8221;MusicFile&#8221;  ofType:@&#8221;mp3&#8243;];<span> </span></p>
<p><span> </span>audioPlayer =  [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:newAudioFile] error:NULL];</p>
<p><span> </span>[audioPlayer setDelegate:self];</p>
<p><span> </span>[audioPlayer prepareToPlay];</p>
<p><span> </span>BOOL plays = [audioPlayer play];</p>
<p>}<br />
 </p>
<p>Thanks to Mert Yentur, for discovering and sharing that issue. <br />
Bests.<br />
G.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/avaudioplayer-on-iphone-simulator/57/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create iPhone Compatible Page &amp; Detect Mobile Browser</title>
		<link>http://blog.guvenergokce.com/iphone-detection-simpler/49/</link>
		<comments>http://blog.guvenergokce.com/iphone-detection-simpler/49/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 15:07:59 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[Dashcode]]></category>

		<category><![CDATA[Dedect]]></category>

		<category><![CDATA[Device]]></category>

		<category><![CDATA[Mobile]]></category>

		<category><![CDATA[RSS]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=49</guid>
		<description><![CDATA[If you want to make a basic iPhone combatible version of your site in a few minutes, download latest XCode development environment from http://developer.apple.com. Install the package and you will find dashcode, inside /developer/applications  path.

 
Now open your dashcode and choose new project then select RSS Template, 
After this step dashcode will create all necessary files for you, all [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to make a basic iPhone combatible version of your site in a few minutes, download latest XCode development environment from http://developer.apple.com. Install the package and you will find dashcode, inside /developer/applications  path.</p>
<p><a href="http://blog.guvenergokce.com/wp-content/uploads/2009/01/picture-18.png"><img class="alignleft size-medium wp-image-50" title="DashCode RSS Attribute" src="http://blog.guvenergokce.com/wp-content/uploads/2009/01/picture-18-300x236.png" alt="DashCode RSS Attribute" width="300" height="236" /></a></p>
<p> </p>
<p>Now open your dashcode and choose new project then select RSS Template, <br />
After this step dashcode will create all necessary files for you, all you have to do changing Application Attributes and some style if you like. <br />
Here I have changed Feed URL to my blog feed. </p>
<p> </p>
<p> </p>
<p> </p>
<p>After that you will want to deploy your application to your site, that&#8217;s very easy too. Just go to &#8220;test &amp; share&#8221; section and save to disk, then upload your deployed version with your favorite ftp application. </p>
<p>Here be careful about javascript feed you provided for rss, it has to be in the same folder with your iphone compatible version. ( Remember that there are security restrictions on where JavaScript can load resources  from.  You can use a proxy for your feed as one of the simple solutions. ) </p>
<p>After these step you got your web site&#8217;s iphone compatible version up and running. Now It&#8217;s time to detect device  of  your user connected to your site. It is even simpler with Andy Moore&#8217;s mobile device browser dedection file. Andy also provides you a cool function generator which creates detection function for configuring your site&#8217;s behavior when it detects different mobile browser. <a href="http://detectmobilebrowsers.mobi/" target="_blank">Check Dedect Mobile Browser page of Andy Moore</a></p>
<p>Now when you browse my page via iPhone or iPod, you will be redirected to http://iphone.guvenergokce.com</p>
<p>Wow, that was fast, I have developed this iphone page with detection faster than writing that blog post :)</p>
<p>By the way, If you want to create an iphone version  of your wordpress blog, you should find many cool css styling information that generates iphone compatible version of your blog quickly. This post&#8217;s purpose is just to give an idea of how to use dashcode and iphone dedection.<br />
If you have better ways please recommend on comments, future is open.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/iphone-detection-simpler/49/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Building Linux Modules with Parallels</title>
		<link>http://blog.guvenergokce.com/developing-linux-modules-with-parallels/31/</link>
		<comments>http://blog.guvenergokce.com/developing-linux-modules-with-parallels/31/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 11:10:21 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Internals]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Modules]]></category>

		<category><![CDATA[Parallels]]></category>

		<guid isPermaLink="false">http://blog.guvenergokce.com/?p=31</guid>
		<description><![CDATA[While I am working on driver development for Linux kernel, I faced couple of problems which took some time and wanted to tell you my way of building modules. In this post, I used  parallels virtual machine on my Mac. 
First download a cool linux virtual appliance from Parallels Virtual Appliance.  
 

I recommend gentoo, it includes linux kernel [...]]]></description>
			<content:encoded><![CDATA[<p>While I am working on driver development for Linux kernel, I faced couple of problems which took some time and wanted to tell you my way of building modules. In this post, I used  parallels virtual machine on my Mac. </p>
<p>First download a cool linux virtual appliance from <a title="Parallels Virtual Appliances" href="http://www.parallels.com/ptn/download/va/?categ=5" target="_blank">Parallels Virtual Appliance</a>.  <br />
 </p>
<p><a href="http://blog.guvenergokce.com/wp-content/uploads/2008/12/picture-8.png"><img class="size-medium wp-image-32 alignleft" title="Gentoo Linux " src="http://blog.guvenergokce.com/wp-content/uploads/2008/12/picture-8-300x206.png" alt="" width="150" height="130" /></a><br />
I recommend gentoo, it includes linux kernel headers so you  don&#8217;t have to download or configure anything before you build modules, everything is ready.</p>
<p>After you download and run it, check the ip with ifconfig.<br />
In my example, It&#8217;s 192.168.2.3</p>
<p> </p>
<p><a href="http://blog.guvenergokce.com/wp-content/uploads/2008/12/picture-9.png"><img class="alignleft size-medium wp-image-33" title="ssh connection to gentoo" src="http://blog.guvenergokce.com/wp-content/uploads/2008/12/picture-9-300x200.png" alt="ssh connection to gentoo" width="150" height="100" /></a><br />
Now connect to gentoo Linux with ssh.</p>
<p>ssh root@192.168.2.3 <br />
password 123</p>
<p> </p>
<p>After that you can start  compiling your modules and drivers, I choose writing code in mac os x with my fav text editor (textmate) then secure copy to gentoo directory Example command:<br />
scp username@192.168.2.2:/moduleOnMac.c  moduleOnGentoo.c</p>
<p>After I copied my module to Linux directory, (don&#8217;t forget to create your Makefile ) I built it with,</p>
<p>make -C /lib/modules/2.6.21-gentoo-r4/build M=`pwd` modules</p>
<p><strong>Why should I do these steps rather than developing directly on linux appliance? </strong><br />
It&#8217;s a choice, of course there are many ways of doing this operation,  but rather than opening linux text editors, terminals and other interfaces I use only one mac os x terminal and textmate to make everything  done. </p>
<p><strong>Overview<br />
<span style="font-weight: normal;">This post is just for working with linux modules comfortably on Mac.<br />
I appreciate all new ideas, please offer new ways and post links.</span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/developing-linux-modules-with-parallels/31/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using PKblob on MAC OS X - Flow Diagram</title>
		<link>http://blog.guvenergokce.com/using-pkblob-on-mac-os-x-flow-diagram/14/</link>
		<comments>http://blog.guvenergokce.com/using-pkblob-on-mac-os-x-flow-diagram/14/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 21:30:08 +0000</pubDate>
		<dc:creator>Guvener Gokce</dc:creator>
		
		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[PKBlob]]></category>

		<category><![CDATA[RSA]]></category>

		<category><![CDATA[X509]]></category>

		<guid isPermaLink="false">http://www.guvenergokce.com/blog/?p=14</guid>
		<description><![CDATA[ 





 
 
Converting MS Crypto API  Public Key Blob to X509 and RSA  for using on Mac OS X (Open SSL) . This process is a little bit complicated while processing bits. We implemented this for a private company and I think at least small diagram will give you an idea how to implement it. [...]]]></description>
			<content:encoded><![CDATA[<p> </p>
<div class="mceTemp">
<dl id="attachment_18" class="wp-caption alignleft" style="width: 160px;">
<dt class="wp-caption-dt"><img class="size-thumbnail wp-image-18" title="generic-icon-security" src="http://www.guvenergokce.com/blog/wp-content/uploads/2008/12/generic-icon-security-150x150.png" alt="Mac OS X Security" width="150" height="150" /></dt>
</dl>
</div>
<p> </p>
<p> </p>
<p>Converting MS Crypto API  Public Key Blob to X509 and RSA  for using on Mac OS X (Open SSL) . This process is a little bit complicated while processing bits. We implemented this for a private company and I think at least small diagram will give you an idea how to implement it. Hope this will be usefull for more information don&#8217;t hesitate to contact us.</p>
<p> </p>
<p> </p>
<p><div id="ipaper1790596468"></div><script type="text/javascript">iPaper(8984732, 'key-1kexl97yxgi2ibc20iob', 600, 600, 'ipaper1790596468');</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.guvenergokce.com/using-pkblob-on-mac-os-x-flow-diagram/14/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
