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

<channel>
	<title>The Happy Coder</title>
	<atom:link href="http://arashpayan.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://arashpayan.com/blog</link>
	<description>(Place witty tagline here)</description>
	<pubDate>Sat, 04 Oct 2008 06:35:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Prayer Book for iPhone and iPod Touch</title>
		<link>http://arashpayan.com/blog/2008/10/02/prayer-book-for-iphone-and-ipod-touch/</link>
		<comments>http://arashpayan.com/blog/2008/10/02/prayer-book-for-iphone-and-ipod-touch/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 07:46:07 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=41</guid>
		<description><![CDATA[My first iPhone app has just been posted to the iTunes app store. It&#8217;s called Prayer Book and it contains 231 English prayers from the Writings of the Bahá&#8217;í Faith. They&#8217;re organized by categories and you can bookmark your favorite prayers for easy access as well. I&#8217;ll be updating the program over time with new [...]]]></description>
			<content:encoded><![CDATA[<p>My first iPhone app has just been posted to the iTunes app store. It&#8217;s called <a href="http://arashpayan.com/projects/PrayerBook/">Prayer Book</a> and it contains 231 English prayers from the Writings of the <a href="http://www.bahai.org">Bahá&#8217;í Faith</a>. They&#8217;re organized by categories and you can bookmark your favorite prayers for easy access as well. I&#8217;ll be updating the program over time with new features and prayer translations, and eventually I&#8217;d like to have all the Writings of the Bahá&#8217;í Faith in there.</p>
<p>It&#8217;s available for free on the iTunes store, so go ahead and <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=292151014&#038;mt=8">take it for a spin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/10/02/prayer-book-for-iphone-and-ipod-touch/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing iPhone firmware 2.1</title>
		<link>http://arashpayan.com/blog/2008/09/14/installing-iphone-firmware-21/</link>
		<comments>http://arashpayan.com/blog/2008/09/14/installing-iphone-firmware-21/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 22:35:42 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=39</guid>
		<description><![CDATA[Here&#8217;s a step by step on how to install the new 2.1 firmware using PwnageTool. I&#8217;m assuming that you&#8217;ve alread Pwned your phone before when you follow this tutorial. If you haven&#8217;t, the steps at the end may be a little different for you.

Update to iTunes 8 and restart
After the reboot, plug in your phone, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a step by step on how to install the new 2.1 firmware using <a href="http://blog.iphone-dev.org/post/49988701/pwnagetool-and-quickpwn-for-2-1-firmware">PwnageTool</a>. I&#8217;m assuming that you&#8217;ve alread Pwned your phone before when you follow this tutorial. If you haven&#8217;t, the steps at the end may be a little different for you.</p>
<ol>
<li>Update to iTunes 8 and restart
<li>After the reboot, plug in your phone, then open up iTunes. It will ask if you want to update your phone. Click &#8216;Download only&#8217;. If you accidentally clicked cancel, just click on your phone in the iTunes sidebar, then click &#8216;Update&#8217; to get the latest firmware. Then once the download starts, unplug your iPhone from the USB port.
<li>Once the download finishes, close iTunes
<li>Open up the &#8216;Activity Monitor&#8217; app from /Applications/Utilities. Find the &#8216;iTunes Helper&#8217; in the list of running programs and kill it (the red button at the top left).
<li>Set your phone&#8217;s auto-lock to never (Settings->General->Auto Lock->Never)
<li>After downloading PwnageTool and copying it to your /Applications folder, launch the program.
<li>Select your device (I&#8217;m using the original iPhone) and click the next arrow.
<li>PwnageTool will search for the ipsw firmware file you just downloaded (and it should find it). Select it and click the next arrow.
<li>Now PwnageTool will look for the bootloader v4.6 and 3.9 files. If you don&#8217;t have them, you can download them <a href="http://drop.io/zmyh83n">here</a>. After downloading the files, click &#8216;No&#8217; to searching the web for the bootloader file. At the next dialog, click &#8216;Yes&#8217; to browse for the location where you downloaded the file.
<li>Now PwnageTool will ask you if you have an iPhone contract that would normally activate through iTunes. If you are using the Apple approved carrier in your country, you can click &#8216;Yes&#8217;, and this will skip the unlocking process on your phone. Just say &#8216;No&#8217; if you want your phone unlocked.
<li>Now PwnageTool will build an ipsw file for your phone.
<li>After the file is created, close PwnageTool, disconnect and turn off your phone, and open up iTunes.
<li>Now we need to put the phone into recovery mode. While the phone is off, hold down the &#8216;Home&#8217; button, and at the same time plug your phone into your Mac. Keep holding down the &#8216;Home&#8217; button until iTunes tells you that your phone is in recovery mode and needs to be restored.
<li>In iTunes, hold down the option key and click &#8216;Restore.&#8217; Select the new firmware file that PwnageTool just created, and you should be good to go in about 10 minutes.
<li>Enjoy your updated phone!
</ol>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/09/14/installing-iphone-firmware-21/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Open links from UIWebView in MobileSafari</title>
		<link>http://arashpayan.com/blog/2008/09/06/open-links-from-uiwebview-in-mobilesafari/</link>
		<comments>http://arashpayan.com/blog/2008/09/06/open-links-from-uiwebview-in-mobilesafari/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 08:13:39 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=37</guid>
		<description><![CDATA[If you&#8217;ve embedded a UIWebView in your iPhone/iPod app, you may not want the user to suffer through surfing all successive pages through it. Instead, you can open up your first page inside a UIWebView and any links the user tries to follow will instead open up in MobileSafari.
All you need to do is set [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve embedded a <code>UIWebView</code> in your iPhone/iPod app, you may not want the user to suffer through surfing all successive pages through it. Instead, you can open up your first page inside a <code>UIWebView</code> and any links the user tries to follow will instead open up in MobileSafari.</p>
<p>All you need to do is set the <code>UIWebView</code>&#8217;s delegate, to an object that implements the optional method <code>webView:shouldStartLoadWithRequest:navigationType:</code> (part of the <code>UIWebViewDelegate</code> protocol). Then whenever the initial page is loaded or a link is followed in that view, the delegate&#8217;s method will be called. You&#8217;ll want to return <code>YES</code> for the page you initially load, and then return <code>NO</code> for all others, and open the URL in MobileSafari. Here&#8217;s what the method implementation should look like:</p>
<div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; ">- (<span style="color:#881350;">BOOL</span>)<span style="color:#6c0540;">webView:</span>(UIWebView *)webView<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6c0540;">shouldStartLoadWithRequest:</span>(<span style="color:#400080;">NSURLRequest</span> *)request<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#6c0540;">navigationType:</span>(UIWebViewNavigationType)navigationType<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#881350;">if</span><span style="color:#003369;"> </span>([[[request <span style="color:#6c0540;">URL</span>] <span style="color:#6c0540;">absoluteString</span>] <span style="color:#6c0540;">isEqual:</span><span style="color:#760f15;">@&quot;http://arashpayan.com/myInitialPage/&quot;</span>])<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#881350;">return</span> <span style="color:#881350;">YES</span>;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;[[UIApplication <span style="color:#6c0540;">sharedApplication</span>] <span style="color:#6c0540;">openURL:</span>[request <span style="color:#6c0540;">URL</span>]];<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#881350;">return</span> <span style="color:#881350;">NO</span>;<br />
}</div>
<p>By returning <code>NO</code> from the delegate method, we&#8217;re telling the web view not to load the link the user tapped, but instead we redirect the opening of the link to <code>[UIApplication openURL:]</code> (MobileSafari).</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/09/06/open-links-from-uiwebview-in-mobilesafari/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change iPhone/iPod app orientation within a UITabBarController</title>
		<link>http://arashpayan.com/blog/2008/09/04/change-iphoneipod-app-orientation-within-a-uitabbarcontroller/</link>
		<comments>http://arashpayan.com/blog/2008/09/04/change-iphoneipod-app-orientation-within-a-uitabbarcontroller/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 23:59:33 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=25</guid>
		<description><![CDATA[The documentation for the official iPhone SDK is less than stellar, and as a result I&#8217;ve encountered lots of frustrating little problems. In particular, I wasn&#8217;t able to get my app to change its orientation when the phone was rotated. UIViewController has a method shouldAutorotateToInterfaceOrientation: that gets called when the iPhone/iPod orientation is changed by [...]]]></description>
			<content:encoded><![CDATA[<p>The documentation for the official iPhone SDK is less than stellar, and as a result I&#8217;ve encountered lots of frustrating little problems. In particular, I wasn&#8217;t able to get my app to change its orientation when the phone was rotated. <code>UIViewController</code> has a method <code>shouldAutorotateToInterfaceOrientation:</code> that gets called when the iPhone/iPod orientation is changed by the user, and overriding this method to return <code>YES</code> should cause your view to be rotated. You may have implemented this method and to your frustration, nothing happened when you rotated the device. The trick is that Cocoa only calls <code>shouldAutorotateToInterfaceOrientation:</code> on the top most <code>UIViewController</code>. Meaning if your program lives inside a <code>UITabBarController</code> (possibly with a <code>UINavigationController</code> inside some of the tab bar items), the <code>UIViewController</code> that the user is currently interacting with, is not necessarily the one receiving the method call.</p>
<p>In my app, everything lives inside a <code>UITabBarController</code>, so that&#8217;s what was receiving the <code>shouldAutorotateToInterfaceOrientation:</code> call. In order to get orientation changes to work you need to subclass <code>UITabBarController</code> (contrary to Apple doc recommendations) and override the method so you can return <code>YES</code> when it&#8217;s called. Below is some code for a simple <code>UITabBarController</code> subclass used inside a program that supports a horizontal view.</p>
<p>RotatingTabBarAppDelegate.h</p>
<div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; "><span style="color:#683821;">#import &lt;UIKit/UIKit.h&gt;<br />
</span><br />
<span style="color:#683821;">#import &quot;RotatingTabBarController.h&quot;<br />
</span><br />
<span style="color:#236e25;">/*<br />
&nbsp;Nothing special implemented in our delegate for this example.<br />
&nbsp;*/</span><br />
<span style="color:#881350;">@class</span> RotatingTabBarAppViewController;</p>
<p><span style="color:#881350;">@interface</span> RotatingTabBarAppAppDelegate : <span style="color:#400080;">NSObject</span> &lt;UIApplicationDelegate&gt; {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#881350;">IBOutlet</span> UIWindow *window;<br />
}</p>
<p><span style="color:#881350;">@property</span><span style="color:#003369;"> </span>(<span style="color:#881350;">nonatomic</span>, <span style="color:#ff0000;">retain</span>) UIWindow *window;</p>
<p><span style="color:#881350;">@end</span></div>
<p>RotatingTabBarAppDelegate.m</p>
<div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; "><span style="color:#683821;">#import &quot;RotatingTabBarAppAppDelegate.h&quot;<br />
</span><br />
<span style="color:#881350;">@implementation</span> RotatingTabBarAppAppDelegate</p>
<p><span style="color:#881350;">@synthesize</span> window;</p>
<p><span style="color:#236e25;">/*<br />
&nbsp;We&#8217;ll programmatically lay out a simple GUI for this demonstration.<br />
&nbsp;*/</span><br />
- (<span style="color:#881350;">void</span>)<span style="color:#6c0540;">applicationDidFinishLaunching:</span>(UIApplication *)application { &nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Just make two empty view controllers for fun<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;UIViewController *tab1 = [[UIViewController <span style="color:#ff0000;">alloc</span>] <span style="color:#6c0540;">init</span>];<br />
&nbsp;&nbsp;&nbsp;&nbsp;tab1.tabBarItem = [[UITabBarItem <span style="color:#ff0000;">alloc</span>] <span style="color:#6c0540;">initWithTabBarSystemItem:</span>UITabBarSystemItemTopRated <span style="color:#6c0540;">tag:</span><span style="color:#0000ff;">0</span>];</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;UIViewController *tab2 = [[UIViewController <span style="color:#ff0000;">alloc</span>] <span style="color:#6c0540;">init</span>];<br />
&nbsp;&nbsp;&nbsp;&nbsp;tab2.tabBarItem = [[UITabBarItem <span style="color:#ff0000;">alloc</span>] <span style="color:#6c0540;">initWithTabBarSystemItem:</span>UITabBarSystemItemSearch <span style="color:#6c0540;">tag:</span><span style="color:#0000ff;">1</span>];<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Now create an instance of our rotating tab bar controller<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;RotatingTabBarController *tbc = [[RotatingTabBarController <span style="color:#ff0000;">alloc</span>] <span style="color:#6c0540;">init</span>];<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Add the two view controllers to the tab bar<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;[tbc <span style="color:#6c0540;">setViewControllers:</span>[<span style="color:#400080;">NSArray</span> <span style="color:#6c0540;">arrayWithObjects:</span>tab1, tab2, <span style="color:#881350;">nil</span>]];<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Add the tab bar controller&#8217;s view to the window<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;[window <span style="color:#6c0540;">addSubview:</span>tbc.view];<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Make our program visible<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;[window <span style="color:#6c0540;">makeKeyAndVisible</span>];<br />
}</p>
<p>
- (<span style="color:#881350;">void</span>)<span style="color:#6c0540;">dealloc</span> {<br />
&nbsp;&nbsp;&nbsp;&nbsp;[window <span style="color:#ff0000;">release</span>];<br />
&nbsp;&nbsp;&nbsp;&nbsp;[<span style="color:#881350;">super</span> <span style="color:#6c0540;">dealloc</span>];<br />
}</p>
<p>
<span style="color:#881350;">@end</span></div>
<p>RotatingTabBarController.h</p>
<div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; "><span style="color:#683821;">#import &lt;UIKit/UIKit.h&gt;<br />
</span><br />
<span style="color:#236e25;">/*<br />
&nbsp;The subclass doesn&#8217;t need any new methods or members.<br />
&nbsp;*/</span><br />
<span style="color:#881350;">@interface</span> RotatingTabBarController : UITabBarController {</p>
<p>}</p>
<p><span style="color:#881350;">@end</span></div>
<p>RotatingTabBarController.m</p>
<div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; "><span style="color:#683821;">#import &quot;RotatingTabBarController.h&quot;<br />
</span><br />
<span style="color:#881350;">@implementation</span> RotatingTabBarController</p>
<p><span style="color:#236e25;">/*<br />
&nbsp;Just override this single method to return YES when we want it to.<br />
&nbsp;*/</span><br />
- (<span style="color:#881350;">BOOL</span>)<span style="color:#6c0540;">shouldAutorotateToInterfaceOrientation:</span>(UIInterfaceOrientation)interfaceOrientation {<br />
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#236e25;">// Always returning YES means the view will rotate to accomodate any orientation.<br />
</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#881350;">return</span> <span style="color:#881350;">YES</span>;<br />
}</p>
<p><span style="color:#881350;">@end</span></div>
<p>The one thing this doesn&#8217;t address, is when you only want certain views in your program to rotate. In that case you just need to make your <code>UITabBarController</code> ask the currently visible view controller in the program if the app should rotate, and return that <code>BOOL</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/09/04/change-iphoneipod-app-orientation-within-a-uitabbarcontroller/feed/</wfw:commentRss>
		</item>
		<item>
		<title>T-Zones on iPhone 2.0</title>
		<link>http://arashpayan.com/blog/2008/07/26/t-zones-on-iphone-20/</link>
		<comments>http://arashpayan.com/blog/2008/07/26/t-zones-on-iphone-20/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 21:04:35 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=20</guid>
		<description><![CDATA[If you&#8217;re trying to get T-Zones working on the iPhone 2.0 software, you don&#8217;t need to follow the old manual way of doing it. Just go into Cydia and search for &#8216;TZones Hack&#8217; (without the quotes) and install the BigBoss tweak that comes up. Restart your phone, and you&#8217;re good to go.
As usual, the YouTube [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re trying to get T-Zones working on the iPhone 2.0 software, you don&#8217;t need to follow the <a href="http://arashpayan.com/blog/2007/09/17/t-zones-aka-599-internet-access-on-the-iphone/">old manual way</a> of doing it. Just go into Cydia and search for &#8216;TZones Hack&#8217; (without the quotes) and install the BigBoss tweak that comes up. Restart your phone, and you&#8217;re good to go.</p>
<p>As usual, the YouTube app still won&#8217;t work with this hack.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/07/26/t-zones-on-iphone-20/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Updating 1st gen iPhone to 2.0 software</title>
		<link>http://arashpayan.com/blog/2008/07/19/updating-1st-gen-iphone-to-20-software/</link>
		<comments>http://arashpayan.com/blog/2008/07/19/updating-1st-gen-iphone-to-20-software/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 05:12:24 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/index.php/2008/07/19/updating-1st-gen-iphone-to-20-software/</guid>
		<description><![CDATA[The new PwnageTool is out, and I&#8217;m gonna document my steps to install the 2.0 software on my 1st gen iPhone. Note that this is not an upgrade. The process will wipe your phone, so backup any pictures or notes that you may have on there.

First thing&#8217;s first. Downoad the latest PwnageTool.
Unzip the file and [...]]]></description>
			<content:encoded><![CDATA[<p>The new <a href="http://blog.iphone-dev.org/post/42858313/thanks-for-waiting">PwnageTool</a> is out, and I&#8217;m gonna document my steps to install the 2.0 software on my 1st gen iPhone. Note that this is not an upgrade. The process will wipe your phone, so backup any pictures or notes that you may have on there.</p>
<ol>
<li>First thing&#8217;s first. Downoad the latest <a href="http://www.hackint0sh.org/forum/mirror/PwnageTool_2.0.1.zip">PwnageTool</a>.
<li>Unzip the file and drop it in your /Applications folder
<li>Make sure you have the latest version of iTunes (Apple->Software Update). Start up iTunes after updating to make sure it starts.
<li>Plug in your iPhone, and iTunes will ask if you want to update your phone. Click &#8216;Download Only&#8217;. After it finishes downloading, close iTunes.
<li>Download the version 3.9 and 4.6 boot loaders. I used <a href="http://rapidshare.com/files/131008012/boot_loader.zip">this link</a>, but that link might not work after awhile. Extract the file (and extract the .zip file inside of it again) until you see the <code>bl39.bin</code> and <code>bl46.bin</code> files.
<li>After the download is finished, close iTunes.
<li>Open the &#8216;Activity Monitor&#8217; application. (/Applications/Utilities/Activity Monitor). Find the &#8216;iTunes Helper&#8217; process and force quit the program.
<li>Plug in your iPhone and turn off the auto lock. (Settings->General->Auto-Lock->Never)
<li>Launch PwnageTool, then click on the iPhone on the left.
<li>Select the 2.0 firmware that it finds (iPhone1,1_2.0_5A347)
<li>Pwnage tool should be able to find your boot loaders (mine were in my Documents directory). If not, make sure you&#8217;ve extracted the boot loader file you downloaded. Worst case, just browse for it manually.
<li>Pwnage will ask you if you&#8217;re legit. I use T-Mobile in America, so I clicked &#8216;No.&#8217;
<li>Pwnage may ask you for your admin password.
<li>Now it will ask if your phone has been &#8216;Pwned&#8217; before. I presume this is your first time (seeing as how the application just came out), so click &#8216;No&#8217;.
<li>This part is tricky. Watch the PwnageTool screen carefully as it will prompt you to press combinations of your Home and Power buttons in order to put the phone into DFU mode. It took me several times to do it, but just keep trying by following the on screen instructions. (When Pwnage says you have successfully entered DFU mode, your screen might be off. That&#8217;s ok)
<li>Once Pwnage tells you that you&#8217;re in DFU mode, open up iTunes. iTunes will say that the phone needs to be restored. Hold down the &#8216;option&#8217; key and click on the &#8216;Restore&#8217; button. iTunes will prompt you for the location of a firmware file. Select the one on the Desktop that PwnageTool created (iPhone1,1_2.0_5A347_Custom_Restore.ipsw).
<li>Go make yourself a cup of tea. :-) After the restore, the phone will reboot and Boot Neuter will flash the boot loader and base band. Your phone will reboot again, and you&#8217;re done!
</ol>
<p>If iTunes doesn&#8217;t immediately recognize your phone, try restarting iTunes. It seems the iTunes Helper is necessary for syncing the iPhone.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/07/19/updating-1st-gen-iphone-to-20-software/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FileTree update (v1.1)</title>
		<link>http://arashpayan.com/blog/2008/06/04/filetree-update-v11/</link>
		<comments>http://arashpayan.com/blog/2008/06/04/filetree-update-v11/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 05:55:41 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://arashpayan.com/blog/index.php/2008/06/04/filetree-update-v11/</guid>
		<description><![CDATA[I recently received an email from Ryan McFall that he is using FileTree, and he noticed that the FileTree doesn&#8217;t actually display everything accurately on Windows. The shortcoming was in the fact that Windows explorer displays all directories first before displaying files in a tree. He fixed the problem, and kindly sent the changes back [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received an email from <a href="http://www.hope.edu/cs/mcfall/">Ryan McFall</a> that he is using FileTree, and he noticed that the FileTree doesn&#8217;t actually display everything accurately on Windows. The shortcoming was in the fact that Windows explorer displays all directories first before displaying files in a tree. He fixed the problem, and kindly sent the changes back to me for posting on the <a href="http://arashpayan.com/projects/FileTree/">website</a>.</p>
<p>I hope this makes FileTree useful for many more people.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/06/04/filetree-update-v11/feed/</wfw:commentRss>
		</item>
		<item>
		<title>t-zones on 1.1.4</title>
		<link>http://arashpayan.com/blog/2008/03/02/t-zones-on-114/</link>
		<comments>http://arashpayan.com/blog/2008/03/02/t-zones-on-114/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 01:46:09 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://arashpayan.com/blog/index.php/2008/03/02/t-zones-on-114/</guid>
		<description><![CDATA[I finally upgraded my iPhone from 1.1.1 to 1.1.4, and after dealing with the Installer.app &#8220;main script execution failed&#8221; error (solution here), I began to setup my EDGE access. The steps are mostly the same as before, with the exception of the location of the preferences.plist file. Previously, it was located in the user partition, [...]]]></description>
			<content:encoded><![CDATA[<p>I finally upgraded my iPhone from 1.1.1 to 1.1.4, and after dealing with the Installer.app &#8220;main script execution failed&#8221; error (<a href="http://www.modiphone.net/installer-main-script-execution-failed-fix/">solution here</a>), I began to setup my EDGE access. The steps are mostly the same <a href="http://arashpayan.com/blog/index.php/2007/09/17/t-zones-aka-599-internet-access-on-the-iphone/">as before</a>, with the exception of the location of the preferences.plist file. Previously, it was located in the user partition, but now the file is located in:</p>
<p><code>/Library/Preferences/SystemConfiguration/preferences.plist</code></p>
<p>In addition to the upgrade, I also took the opportunity to install <a href="http://www.saurik.com/id/1">Telesphoreo/Cydia</a>, which is a port of APT to the iPhone by Jay Freeman. There seems to be lots of interesting ports available to install, and a Java VM, which is of particular interest to me. If I make any progress in developing with the new tools, I&#8217;ll post any helpful info I find.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2008/03/02/t-zones-on-114/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FileTree version 1.0</title>
		<link>http://arashpayan.com/blog/2007/09/23/filetree-version-10/</link>
		<comments>http://arashpayan.com/blog/2007/09/23/filetree-version-10/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 06:15:40 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://arashpayan.com/blog/index.php/2007/09/23/filetree-version-10/</guid>
		<description><![CDATA[I was coding at work, and I needed a tree view of the file system so user&#8217;s could select a directory in a utlitiy I was writing. There&#8217;s nothing in the Java libraries that does that (as of JDK 1.6), so I figured this would be a cool little swing object to develop and make [...]]]></description>
			<content:encoded><![CDATA[<p>I was coding at work, and I needed a tree view of the file system so user&#8217;s could select a directory in a utlitiy I was writing. There&#8217;s nothing in the Java libraries that does that (as of JDK 1.6), so I figured this would be a cool little swing object to develop and make available for others. I finished it about a month ago, but I didn&#8217;t have time to thoroughly document it and make a page for it on my website until now.</p>
<p>I call it <a href="/projects/FileTree/">FileTree</a> and it extends the Java JTree class. It has the native system icons next to all the files and directories for OS X and Windows. On Linux, because neither the File class or the FileSystemView class return specific icons, some generic icons are used for the folder and file nodes.</p>
<p>I hope this library comes in handy for any Java developers out there, and if you find any bugs, make any improvements or have any interesting feature requests, please let me know about them.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2007/09/23/filetree-version-10/feed/</wfw:commentRss>
		</item>
		<item>
		<title>t-zones (a.k.a. $5.99 Internet access) on the iPhone</title>
		<link>http://arashpayan.com/blog/2007/09/17/t-zones-aka-599-internet-access-on-the-iphone/</link>
		<comments>http://arashpayan.com/blog/2007/09/17/t-zones-aka-599-internet-access-on-the-iphone/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 04:25:43 +0000</pubDate>
		<dc:creator>Arash</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<guid isPermaLink="false">http://arashpayan.com/blog/?p=10</guid>
		<description><![CDATA[UPDATE 2 (July 26, 2008): There is a much easier way to set up T-Zones now.
UPDATE: After going through my logs I&#8217;ve noticed that there are a lot of Windows users checking out this guide. So I&#8217;ve added a step 0 to help them out.
I received my iPhone on Friday and immediately went about actvating [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 2 (July 26, 2008):</strong> There is a much <a href="http://arashpayan.com/blog/2008/07/26/t-zones-on-iphone-20/">easier way</a> to set up T-Zones now.</p>
<p><strong>UPDATE:</strong> After going through my logs I&#8217;ve noticed that there are a lot of Windows users checking out this guide. So I&#8217;ve added a step 0 to help them out.</p>
<p>I received my iPhone on Friday and immediately went about <a href="http://modmyiphone.com/wiki/index.php/IPhone_unlock_OS_X_Part_1">actvating and unlocking it</a>, and at the end of the tutorial, there&#8217;s a link to a <a href="http://www.hackint0sh.org/forum/showthread.php?t=6365">forum discussion</a> on getting t-zones working on your iPhone. After reading through it and placing a call to t-mobile&#8217;s customer support (great folks over there!) I finally got it working. Here are the steps needed in an easy to follow format.</p>
<p>I&#8217;m going to make a couple of assumptions in this tutorial.</p>
<ol>
<li>You have T-Mobile and t-zones</li>
<li>You installed OpenSSH on your iPhone (<a href="http://modmyiphone.com/wiki/index.php/IPhone_unlock_OS_X_Part_3">part 3</a> of the unlocking process</li>
<li>Your iPhone has Wi-Fi access.</li>
</ol>
<p>0) <em><strong>Windows users install WinSCP</strong></em> If you&#8217;re running Windows, install a file transfer client to move the files between your computer and your iPhone. I recommend <a href="http://www.winscp.net/">WinSCP</a>. If the tutorial makes anymore mention about transferring files between computers, just use WinSCP and connect to the IP of your iPhone. Set the protocol to be SSH/SSH2.</p>
<p>1) <em><strong>Turn off Auto-Lock</strong></em> Go to &#8216;Settings&#8217; -> &#8216;General&#8217; -> &#8216;Auto-Lock&#8217; and select &#8216;Never.&#8217; You can turn it back on after you&#8217;re done with this, but for now disable it.</p>
<p>2) <em><strong>Enter APN, username and password</strong></em> Go to &#8216;Settings&#8217; -> &#8216;General&#8217; -> &#8216;Network&#8217; -> &#8216;Edge.&#8217; For the <strong>APN</strong> field enter <em>wap.voicestream.com</em>. Make sure the <strong>username</strong> and <strong>password</strong> fields are empty.</p>
<p>3) <em><strong>Create proxy.pac</strong></em> Thanks to <a href="http://www.hackint0sh.org/forum/showthread.php?s=08de956de275c736532483549f6aed5e&#038;t=6365&#038;page=2">kdub3000 for the file contents</a>. Open TextEdit or your favorite text editor on Linux, and paste in the following code into a new document:</p>
<pre style="border: 1px solid ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: auto">function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.0.0.0", "255.0.0.0"))
return "PROXY 216.155.165.50:8080";
else
return "DIRECT";
}</pre>
<p>Save the file to your Desktop as <code>proxy.pac</code>. On OS X, make sure TextEdit doesn&#8217;t append a .txt extension to the file.</p>
<p>4) <em><strong>Find the IP address of your iPhone</strong></em> Go to &#8216;Settings&#8217; -> &#8216;Wi-Fi&#8217;, and click on the blue dot next to the name of the network your iPhone is currently connected to (the one with the checkbox). Look at the IP address there and remember it or write it down.</p>
<p>5) <em><strong>Upload proxy.pac to the iPhone</strong></em> Now we need to copy proxy.pac to our iPhone&#8217;s <code>/private/var/root/</code> directory. If you know how to do this using a Cyberduck or any other file transfer program, feel free to do so. Otherwise open up a terminal (OS X, go to Applications -> Utilities -> Terminal.app) and enter the following command with the ip address of your iPhone substituted for the $IPHONE_IP:</p>
<pre style="border: 1px solid ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: auto">scp ~/Desktop/proxy.pac root@$IPHONE_IP:/private/var/root/</pre>
<p>On my Wi-Fi network, my iPhone&#8217;s IP is 192.168.1.52, so I typed this command:</p>
<pre style="border: 1px solid ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: auto">scp ~/Desktop/proxy.pac root@192.168.1.52:/private/var/root/</pre>
<p>Hit &#8216;Enter&#8217; and it will prompt you for your iPhone&#8217;s root password. The default is &#8216;dottie&#8217;, without the quotes.</p>
<p>6) <em><strong>Update preferences.plist</strong></em> Now we&#8217;ll copy <code>preferences.plist</code> to our local system for editing. It&#8217;s located at <code>/private/var/root/Library/Preferences/SystemConfiguration/preferences.plist</code> on your iPhone. Download it to your desktop using your favorite file transfer client, or use this command:</p>
<pre style="border: 1px solid ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: auto">scp root@$IPHONE_IP:/private/var/root/Library/Preferences/SystemConfiguration/preferences.plist ~/Desktop/</pre>
<p>Open up the preferences.plist file from your Desktop in your text editor, and look for the area of the file where it has the lines:</p>
<p>&lt;key&gt;DeviceName&lt;/key&gt;<br />
&lt;string&gt;ip1&lt;string&gt;</p>
<p>Note that the text inside the string tags should be ip1 (as opposed to en0, ip2 or anything else). Now add the following chunk of xml (in red) to the file in the appropriate place (<a href="http://www.hackint0sh.org/forum/showthread.php?t=6365">thanks to syasses</a>):</p>
<p>&lt;key&gt;Interface&lt;/key&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;DeviceName&lt;/key&gt;<br />
&lt;string&gt;ip1&lt;/string&gt;<br />
&lt;key&gt;Hardware&lt;/key&gt;<br />
&lt;string&gt;com.apple.CommCenter&lt;/string&gt;<br />
&lt;key&gt;Type&lt;/key&gt;<br />
&lt;string&gt;com.apple.CommCenter&lt;/string&gt;<br />
&lt;/dict&gt;</p>
<div style="color: red">&lt;key&gt;Proxies&lt;/key&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;ProxyAutoConfigEnable&lt;/key&gt;<br />
&lt;integer&gt;1&lt;/integer&gt;<br />
&lt;key&gt;ProxyAutoConfigURLString&lt;/key&gt;<br />
&lt;string&gt;file:///private/var/root/proxy.pac&lt;/string&gt;<br />
&lt;/dict&gt;</div>
<p>&lt;key&gt;com.apple.CommCenter&lt;/key&gt;<br />
&lt;dict&gt;<br />
&lt;key&gt;AllowNetworkAccess&lt;/key&gt;<br />
&lt;integer&gt;1&lt;/integer&gt;<br />
&lt;key&gt;Available&lt;/key&gt;<br />
&lt;integer&gt;1&lt;/integer&gt;<br />
&lt;key&gt;Setup&lt;/key&gt;<br />
By adding this code to the file, you&#8217;re instructing your iPhone to use a proxy (T-Mobile&#8217;s t-zones server) for your communications over GPRS. Save the file.<br />
Now upload the file back to your iPhone with the command:</p>
<pre style="border: 1px solid ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: auto">scp ~/Desktop/preferences.plist root@$IPHONE_IP:/private/var/root/Library/Preferences/SystemConfiguration/</pre>
<p>7) <em><strong>Restart the iPhone</strong></em> Hold down the sleep button for 3 seconds on your iPhone, and then turn it off. Turn it back on, and you should be able to access the Internet through t-zones for just $6!</p>
<p>I tested my GPRS speed at iphonenetworktest.com and I got 154.2 kbps.</p>
]]></content:encoded>
			<wfw:commentRss>http://arashpayan.com/blog/2007/09/17/t-zones-aka-599-internet-access-on-the-iphone/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
