how to fix error 1013 while updating iPhone to 4.2

I got this annoying error 1013 while updating my iPhone 4 from 4.1 to 4.2. I don’ t know how I got this error since I didn’t jailbreak my iPhone and use all legal apps on my phone. I try many solutions found on the internet, but only this one work;

  • I have to comment out “” in etc/host
  • first go to Finder > Go > Go to folder and type “/private/etc/”
  • Drag “host” file on your desktop and open it with TextEditor
  • find the line with “” then put “##” infront of that line.
  • Save this file and replace this file back to its original place.
  • Now I can restore my iPhone to 4.2 version.

Cheers ^__^

Mail app and iPhone mail CSS signature

CSS signature in mail app is pretty cool. It’s small, neat and less problem displaying on other email clients. I managed to have both my signatures on the Leopard mail app and iPhone 3G mail app. Here is what I did. (The idea is from


  • Create one signature on Mail app to act as a dummy
  • Download or copy the CSS signature for Mail app (*.html) and then edit as you want (I used Coda, my favorite editor)

<div id=”sig” style=”line-height: 13px; margin: 6px 0; padding: 8px; border-top: 1px #999999 dotted; border-bottom: 1px #999999 dotted; font-family: ‘Lucida Grande’, Verdana, Arial, Sans-Serif; font-size: 11px; color: #333333;” >

<img src=”” alt=”me” width=”29″ height=”29″ style=”float: left; padding: 2px 6px 0 0;”>

<strong style=”color: #333333;”>Jiradett Kerdsri SQNLDR</strong>: Blog: <a href=”” style=”color: #999999; text-decoration: none; border-bottom: 1px #999999 dotted;”></a> <a href=”” title=”visit” style=”color: #339999; text-decoration: none; border-bottom: 1px #999999 dotted;”></a>| <a href=”” style=”color: #999999; text-decoration: none; border-bottom: 1px #999999 dotted;”> VCARD</a><br />

contact | <a href=”” style=”color: #999999; text-decoration: none; border-bottom: 1px #999999 dotted;”></a> – 6681-407-7024 | Twitter – <a href=”” style=”color: #999999; text-decoration: none; border-bottom: 1px #999999 dotted;”>jiradett</a></div>

  • Now go to ~Users/Library/Mail/Signatures you should see your dummy signature (*.webarchive) that you just created. Remember the file name, you’ll need it afterward.
  • Open the signature file with Safari, it should be displayed exactly as you want in your Email.
  • In Safari go to File > Save as . Under the Format, choose Web Archive

Save as in Safari

  • In Export As, make sure that it’s the same name as your dummy file. Overwrite the existing file with the new one.
  • Done, now in your Mail app, you should be able to see your new CSS signature appended at the end.

Css Signature in Mail app


It’s much easier in iPhone to edit the signature to replace the boring ‘Sent from my iPhone’ signature (from We just need to edit, /private/var/mobile/Library/Preferences/ . However, you’ll need a Jailbroken iPhone to edit that file. (I’m using iPhone 3G with 2.2 firmware and Fugu to SSH into the iPhone)

Edit file in iPhone

First we have to create the HTML code iPhone CSS signature shown below.

Now we need to add this code to signature.

The image showing on iPhone is encoded into base64 using

plist fileI download this file using Fugu to edit on my Mac with Property Editor then upload this file back to iPhone. It’s work very well so far.

Signature in iPhone

Legitimate unlock 3G iPhone in Australia

I have been waiting for Dev-Team to release software to unlock 3G iPhone for a few months, but now I can’t wait any longer. Therefore, I decide to call Telstra to unlock my iPhone since it’s very annoying to wait for Dev-Team to release unlocking software every iPhone firmware update. The process is much easier than I though and worth $150 I spent. Here is a procedure:

  • Call 1800 782 489
  • The operator will redirect us to the automatic credit card processing to pay $150
  • After we paid, the operator will ask the IMEI number of your iPhone (Setting>General>About) to unlock it.
  • Done, the process will take at most 72 hours so I reckon we should check every 12 hours. (in my case it took 24 hours)

    How to check? (Restore)

    • Change SIM card to the one that we want to use with unlocked iPhone.
    • Connect to iTunes, press home+power button for 10 seconds then release power button while holding home button
    • iTunes will ask to restore iPhone, proceed with restore process.
    • If your iPhone is unlocked, iTunes will activate you iPhone to the new service. Otherwise, please keep trying.

    So my guess is, iTunes compares our iPhone IMEI number to Apple data for unlocking purpose. If your IMEI is not locked with specific provider, you’re free to use iPhone with any provider.

    Keynote presentation with iPhone

    Picture 2.png

    Today I have a keynote presentation for my class but I couldn’t find my Apple Remote, so I think I can use iPhone to control my keynote wirelessly. I did purchased a $1.99 program called “Pointer”, a REMOTE FOR POWERPOINT AND KEYNOTE from iTunes [The developer link] and it worths every penny.

    Picture 1.pngThis program did more than just forward the slides. It consists of pointer, timer and presenter note. First thing to do is to install PointerServer (download from developer site mentioned above) on Mac machine, so iPhone can be able to communicate with Mac.

    IMG_0003.PNGIMG_0004.PNGAfter launching the pointer on iPhone, it will show the selected Mac (it will not show if PonterServer is not installed). The presentation page shows up once I click on the selected machine. The presentation page consists of Previous, Next button so I can forward/reverse the slides. I can also change the pointer icon or the mode from pointer to cursor. The presentation page also include the presentation note which makes it very easy for me to follow the item, I want to talk about. In addition, the timer on this page is very helpful to control my presentation time.

    The pointer can be move by dragging on tilting the iPhone. For me, I think it’s easier to just drag my finger on the iPhone screen to control the pointer. Overall, the software is a must have software for good presentation. Nevertheless, it comes with a drawback, now it works on Keynote 08 and PowerPoint 2004 on Mac OSX Leopard only. I guess the next version will have more features.

    PS. The slide image will display on the pointer 1.1 on iPhone.

    Mac QuickPwn on iPhone 3G

    Yahoo!! finally I got the Installer back on my iPhone 3G. After I bought iPhone 3G a month ago, I tried to jailbreak many times using Pwnage tool. The process went well, I can jailbreak my 3G but I can’t get signal back. I guess Pwnage tool needs iTunes to restore firmware back on it and iTunes can’t bypass the activation process. That’s why I loss the signal from Telstra. 

    However, after QuickPwn launched Mac version yesterday, I tried again. This time it works beautifully because QuickPwn doesn’t require iTunes to restore firmware back on iPhone. The whole process took less than 10 minutes, so it definitely worths trying.

    Download Mac QuickPwn from torrent

    Push Gmail on your iPhone

    I’m a huge fan of Gmail, which can do everything: Checking your other POP mail, forwarding mail etc. The only one functinality that would be killed is “PUSHING”. I think we gonna see it soon, because Yahoo already did it.

    I tried to get Gmail to push to my iPhone, with a couple methods (web2mail Exchange server, YahooPush). After hours of experiment, the best method is forwarding Gmail to mobileMe and let Mobile me do the rest.

    I have 3 seperate Email accounts so far (2 for my work and one for Google Apps), so I use Gmail to grab all the email into one single email and then use Gmail filter to labeling it. This lables will shows up in Mail App and iPhone Mail IMAP folder as well.

    Then I just forward Gmail into my MobileMe account. This instruction is a good start. The trick is I have to set up SMTP for Gmail on iPhone in order to reply back the message via Gmail account.

    For serveral other email accounts forwarding to Gmail like me, I have to set up fake POP mail so that I can use it to reply back via relevant email address.

    Downgrade iPhone firmware 2.0 to 1.4

    Ok, I am stupid enough to upgrade my iPhone firmware from 1.4 to 2.0 via iTunes. So it took me 2 full days to figure out how to bring my iPhone back to life. Here is how I did.

    You absolutely need iTunes 7.5 to restore your firmware 1.4 . I don’t want to mess up with my iTunes on my Mac (of course, because of all my precious music) so I just D/L iTunes 7.5 Windows version and run on Parallel Desktop.

    • On Windows, when you connect your iPhone to iTunes 7.5, it will tell you to restore it. (If you first connect your iPhone with firmware 2.0 to Windows, it might say that your phone is not compatible with this version of iTunes. Dont’ worry about this message, just close the popup)
    • Press Shift + Restore (Option+Restore on Mac) and select 1.4 firmware.
    • When finish, you should get 1015 error (if you don’t try again). Don’t worry about the error. Close your iTunes, the iPhone will stuck in recovery mode.
    • Use iBrickr to kick it out of recovery state.
    • I have to restore 2 times in order to kick it out of recovery mode.
    • This is the most important!!! YOU HAVE TO DOWNGRADE BASE BAND FROM 04.05.04_G to 04.04.05_G
    • I used ZiPhone patch newest version to downgrade baseband (I tried many methods on the internet, none of them work for me)
    • Once you downgrade baseband you should get signal even though you did not do any jailbreak,activate or unlock.
    • Now you can use any method you want to unlock the phone. I used ZiPhone on mac to do everything.

    Now I have to keep my iTunes 7.5 on Windows parallel just incase I mess up anything again because now we know that 7.7 have some kind of hacking protection.

    UPDATE : iClarified has a very nice tutorial plus video instraction to downgrade the baseband now.

    UPDATE2: The Dev-Team released PawnageTool 2.1 which can easily Jailbreak/Activate/Unlock 2.0 firmware. The nice tutorial can be found at iClarified