Tuesday, November 6, 2007

Setting up proxy in Apple IPhone

Nowadays many Mobile Service Providers requires proxy support to be enabled and configured to allow GPRS internet via their network,

Since Apple IPhone hasn't been officially released in many countries and because of bonding with AT&T they haven't provided an option in their user interface to enable and setup proxy.

Here i am going to outline the steps required to enable and setup proxy in Apple IPhone


1) Turn off Auto-Lock Go to ‘Settings’ -> ‘General’ -> ‘Auto-Lock’ and select ‘Never.’ You can turn it back on after you’re done with this, but for now disable it.

2) Enter APN, username and password Go to ‘Settings’ -> ‘General’ -> ‘Network’ -> ‘Edge.’ For the APN field enter wap.voicestream.com. Make sure the username and password fields are empty.

3) Create proxy.pac Open your favorite text editor, and paste in the following code into a new document:

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";
}

Save the file to your Desktop as proxy.pac.

The text file should be in UTF-8 Text Encoding Format.

Upload proxy.pac to the iPhone Now we need to copy proxy.pac to our iPhone’s /private/var/root/ directory using iBrickr or iFuntastic

Update preferences.plist located at /private/var/root/Library/Preferences/SystemConfiguration/preferences.plist on your iPhone.
look for the area of the file where it has the lines:

<key>DeviceName</key>
<string>ip1<string></string></string>


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 blue) to the file in the appropriate place.

<key>Interface</key>
<dict>
<key>DeviceName</key>
<string>ip1</string>
<key>Hardware</key>
<string>com.apple.CommCenter</string>
<key>Type</key>
<string>com.apple.CommCenter</string>
</dict>
<key>Proxies</key>
<dict>
<key>ProxyAutoConfigEnable</key>
<integer>1</integer>
<key>ProxyAutoConfigURLString</key>
<string>file:///private/var/root/proxy.pac</string>
</dict>

<key>com.apple.CommCenter</key>
<dict>
<key>AllowNetworkAccess</key>
<integer>1</integer>
<key>Available</key>
<integer>1</integer>
<key>Setup</key> </dict>

By adding this code to the file, you’re instructing your iPhone to use a proxy

Phew you are done, restart your phone and fire up Safari.....

Sunday, November 4, 2007

Correct way of configuring Thunderbird for Gmail's IMAP

After Google unveiled IMAP support to GMail, there has been lot of guides popped up describing how to configure Thunderbird for using it with GMail's IMAP,

Most of these guides are not describing the correct way of configuring Thunderbird to be used with Gmail's IMAP,

They are just suggesting to override folder mappings,
Many of the folders such as Drafts, Sent, are shown only as sub folders under Inbox,

The correct way is

We have to tell the IMAP root folder for Thunderbird to use,

1 -> Start thunderbird

If you are going to create a new account, then after completing the "New account setup" wizard

2 Go to Edit -> "Account Settings"

Select the newly created account and

3 Go to "Server Settings"
-> Check SSL under "Use Secure connection"
-> Click "Advanced" button,

4 In "IMAP server directory" field enter [Gmail]

5 Now go to "Copies and Folders"

6 For now remove Tick for "Place a copy in" under "When sending messages, automatically"

7 Choose "Local Folders" in both of the drop down menus under "Drafts and Templates"

8 Close the "Account Settings" windows

By doing this we are avoiding new extra label creation in our Gmail account.

9 Now click Inbox, you will be asked for account password, enter the password.

Now new folders will be populated under Inbox,
No more sub-folders.

10 Now follow step 5 and tick the "Place a copy in" and select the "Other" radio button then choose the Sent Mail folder from the newly created account.

11 For drafts just choose newly created account name from the drop down "Drafts folder on"