True instant push email on your mobile phone using Gmail

mobile email pushToday I thought that I would check out the state of SMTP and IMAP services of my favourite email service provider Gmail.
I wanted to use Gmail on my mobile phone and I was pleasantly surprised.
Because Gmail supports the IMAP standard, items that are read and or deleted on the mobile phone are correctly marked as read/deleted on the Gmail account as well.
This is very convenient if you are accessing your Gmail account from more than one client (mobile phone, browser, Outlook, Thunderbird and similar).
Gmail also provides an SMTP server which is used to send emails from your client and it will appear to the recipient as if the email was sent directly from Gmail.
All sent and received emails are further encrypted (SSL) which is something that local ISPs often neglect to provide.
The best feature however is that the Gmail IMAP server supports “push” email which together with a mobile phone that supports this feature gives an optimal email experience.
Blackberry users are used to this optimal experience but they (or their companies) are paying dearly to RIM or their mobile operator to have his luxury. With Gmail the service is free (standard data transfer charges apply of course).
Typically I get notified 10-20 seconds after the email has been sent. In fact the mobile phone is notified earlier than the Gmail Notifier running on my PC.
This is much more convenient than the old fashioned way of polling the server every 15 minutes to see whether any emails had arrived during the last 15 minutes.
Now how to set it all up? Enter the following settings on your phone. Every phone is different so I cannot give you step-by-step instructions but leave a comment if something is not working and I will try and help you.

Email address: Your full Gmail email address including @gmail.com
Connection Type: IMAP4
Incoming server: imap.gmail.com
User name: Your full Gmail email address including @gmail.com
Password: Your password
Outgoing server: smtp.gmail.com
Check interval: Off
Push email: On
Encryption incoming server: SSL
Encryption outgoing server: SSL
Outgoing username: Your full Gmail email address including @gmail.com
Outgoing password: Your password
Incoming port: 993
Outgoing port: 465

Bear in mind the whether or not push email will work for you is dependant on what kind of phone you are using, what mobile network you are on and how you connect to GPRS.
Your phone must support encrypted (SSL) IMAP4 and push email to start with. If you want to send email from your mobile it has to further support authenticated and encrypted (SSL) SMTP.
Your mobile network should not block any ports and I suspect your mobile device has to have an IP assigned to it; being behind NAT may not work.
Likewise you should use a GPRS connection which is connected directly to the Internet and not a “wap” GPRS connection.
I was successful in getting Gmail push email working on my SonyEricsson K800i on the UK Vodafone network using the GPRS APN “Internet”.
I would be very curious to hear whether any Apple iPhone or Windows Mobile smartphone users are able to use the Gmail push email!
Photo credit: soldierant

KB941644 and Event ID 4226 patch

The latest critical Windows update from Microsoft (KB941644) is a fix to TCP/IP to prevent possible remote code execution.
The Microsoft Security Bulletin MS08-001 explains that there are two reported vulnerabilities in TCP/IP and that an attacker could take complete control of an affected system and install programs and view data.
The bad news is that the critical update will replace your TCPIP.SYS and thus reset the amount of half-open connections back to 10.
The good news is that the LlvLord patch will work on this new version of TCPIP.SYS and you can yet again increase the half-open connections (I recommend a value of 100-500).
Read more about the limited half-open connections and how it can slow down your network applications (especially BitTorrent).

Canoa Quebrada, Brazil

Canoa QuebradaA friend and his wife are travelling in the North East of Brazil and it was a too good of an opportunity to miss out on… especially since we barely see each other while both living in London.
A rough itinerary had been decided on as meeting up in Fortaleza, taking a bus to Canoa Quebrada, stay there for a few days, continue with overnight bus to Natal and finally by local bus to Praia da Pipa.
Stay there a few days and then sadly part; me heading back to Natal to catch a flight back to Sao Paulo and my friends continuing for another 2 weeks and a packed schedule.
It was an early start (5 am) and as the plane was taking off from Sao Paulo I realised that I had left the camera battery charging back home. That was quite devastating as I was expecting the beaches, architecture and people in North East Brazil to make for some stunning photography.
Instead I would be lugging on a very expensive paper weight for the entire trip. Oh well, the old trusty 3.2 MP SonyEricsson K800i would have to do.
At the airport in Fortaleza I headed for the tourist information with faint hopes of being able to locate a Nikon D200 battery (and charger). After all, Fortaleza is a 3 million city.
I was met by a drunk person sporting a massive cowboy hat with silver stars all around and pushed down into his face.
He was calling himself the ambassador of North East Brazil and was very keen on helping me out.
The man started calling a few shops and not giving them a rest until they at least gave him another number to try. His reasoning was that I had travelled all the way from Switzerland (confusing Sweden and Switzerland is quite common here in Brazil) to take photos of beautiful Brazil and the shop staff was preventing me from this by not summoning a replacement battery.
After 2 hours somebody knew somebody who knew a guy who imported electronics on the side (unofficially?). Unfortunately the price for the battery and charger were close to what I had paid for the return flight so I had to politely decline… and bid farewell to my drunk and cowboy hat wearing ambassador.
My friends had arrived and we opted for a swift taxi to the bus station where we were able to locate the next bus to Canoa Quebrada. We even had time to get some Brazilian refreshments and catch up on old times.
The bus to Aracati took around 3 hours and costed R$13. Then it was a further 30 minutes to Canoa Quebrada for a cost of R$2.
It was late afternoon when we arrived and we decided to visit a few pousadas (guest houses) to check prices and the level of “comfiness”.
In hindsight it would have been smarter to leave one person behind with the luggage but instead we were walking up and down the streets with all of our possessions to the amusement of the locals.
In the end we decide on Oasis do Rei where they were charging R$45 for a simple room with a ventilator and R$95 for a spacious double with aircon and balcony. Lovely breakfast included as always in Brazilian pousadas.
Most of the beaches in Canoa Quebrada are backed by pink steep cliffs and you will find very little vegetation. This makes for a unique beach experience that Canoa is famous for.
Everything in the village revolves around a single street (the broadway) and you can count all the restaurants and bars on three hands.
The Cavern quickly became our favourite evening caipirinha spot and the newly opened (15 days old) churrascaria Canoa Mix was great value at R$18.50 and free grappa after dinner.
The plan was to continue to Natal and Praia da Pipa by a 6 hour overnight bus leaving at 1 am.
We mentioned this to the staff at our pousada the night before the trip and they immediately asked whether we had booked and purchased the tickets as the process is quite formal.
Of course we hadn’t but it was shortly after 6 pm and the local office of the bus company was supposed to close at 7 pm. We made a dash for it only to find out the office had already closed and the only way to purchase a ticket was to grab a taxi to the nearby town Aracati as the office there might be open until 8:30.
A taxi was arranged and it took us quickly to Aracati. The price of the bus ticket was a steep R$60 and none of us had the cash on us so we tried to pay with a card… but apparently with the wrong card.
This office had chosen Visa as the sole credit card provider and we had all but Visa in our wallets.
There were one or two ATM machines in Aracati that we were told might accept foreign cards so the taxi driver took us there. We thought our luck had changed because another traveller managed to get money out of the ATM but we were once again denied success as the money in the ATM ran out when next person tried to take out money.
Another dash to the second ATM in town and there finally we were able to get our hands on some dosh to pay for the tickets to Natal.
After this roller coaster of emotions I was very pleased to cool down with a few capetas once back in Canoa.
Had I known what the bus trip ahead of us would be like I wouldn’t have celebrated quite yet but let’s leave that story for next time!

Double Trouble travels

double troubleWe had travelled many a times with one child but this was the first time travelling with two little ones and I was a bit apprehensive.
On our departure London was as rainy as ever and we were in heavy Friday evening traffic on route to the airport. Oh boy was I looking forward to the Summer in Brazil.
It took all of 6 large suitcases, 4 carry-ons, one car seat and one foldable buggy to fit all the necessities. Needless to say the manoeuvring of it all was worthy a circus stunt.
The suitcases were mostly filled with Christmas presents and baby clothes and the carry-ons were mostly filled with baby food, nappies, creams, toys, bits and bops.
Me and my wife had to do with a few t-shirts and some swimming wear.
To my huge surprise and relief the little ones are both at the right age of sleeping most of the night so once they settled in (the little one in a cot, the bigger one in his own chair) they were fine.
Well, besides the occasional sliding down the chair and sleeping like a bum on the cabin floor.
This was a huge change compared to 12 months ago when every 1.5 hours of sleep were followed by 1 hour of walking around the plane and saying hello to everybody.
The trip would have been fairly painless but for me accidentally grabbing the wrong bag from the baggage belt. To my defence the bag was a black Nike sports bag with an orange ribbon… just like ours.
I went back to the airport shortly after discovering the mistake. The bag was located fairly quickly and a friend went to the lost baggage office to pick it up (I was having lunch).
There were a few people picking up lost luggage and one person with 7 bags (!) being interrogated by the customs.
The person was told to pay an import duty of US$ 6,000 and since the import duty is 100% in Brazil he must have been trying to get in US$ 6,000 worth of iPhones and PS3s. The man broke down in tears (did somebody tell him that the iPhone is not 3G?).
I failed to mentioned to my friend the combination of the lock and what was inside the bag so he had to be creative when quizzed about the contents.
He guessed correctly that there were wrapped Christmas presents inside the bag and prayed open the zipper without the staff noticing and thus was allowed to take the bag with him.
The airline staff always have to inquire about the bag contents because all lost or forgotten bags are carried by the airline staff through customs without any inspection. I guess it would be too easy to “forget” a bag full of illegal stuff and pick it up rick free on the other side.
This was the easy part of our trip; the real adventure started when I went to North East Brazil to meet up with friends on their honeymoon but more about that next time.

Paypal is not a bank but has a phone number

Once you hand money over to Paypal you have very little control over it. This also applies if you let PayPal accept money on your behalf.
Their terms and conditions more or less make you wave your credit card protections and consumer rights.
I have made over 40 paypal transactions over the last 6 years. I have been reading various paypal horror stories but I always thought it wouldn’t happen to me (don’t we all).
Well of course it did and it is just a matter of time until you lose money as well if you are using PayPal for any transactions; especially related to eBay auctions.
In my particular case I had paid for an item that I had won in an eBay auction and PayPal charged my credit card instantly.
The seller had some complications getting the money so he informed me that he was not interested any more and that I should be getting my money back in 30 days.
This leaves me with a lot of money out of my pocket and a product I will never receive.
The only condolence PayPal was able to give me was to assure me that the money would be back in 30 days… but that’s no condolence to me, that is theft.
My story is just a drop in the ocean of other horror stories related to PayPal.
Credit to my credit card company as they treated me like a customer and put a little pressure on PayPal to look at my case a second time but in the end nothing could be done.
From the conversations with the credit card company representatives, it seemed as if they deal with many, many PayPal disputes and the score so far is individuals 0, PayPal a lot.
If you want to talk to a human being at PayPal UK then avoid the expensive 08707307191 premium number and instead use 02086053000.
Press 1 for PayPal, skip the request for your registered phone number, press 5, press 2 and tell the customer service representative that David says hi.
At least there are some alternatives to PayPal and you should consider them while you still can:
Google checkout
Authorize.net
http://www.merchantinc.com
http://www.nochex.com
Photo credit: Scott Beale / Laughing Squid

Export your facebook contacts with email addresses

facebook officesFirst of all a big apology because this method of exporting your Facebook contacts is very cumbersome and has several “odd” requirements.
Nonetheless it is presented here as one (desperate) option to export your Facebook contacts and their contact details such as email address and phone number.
This method can be improved upon and made more automatic but Facebook has a tendency to shut down any scripts and software that export contact details.
So instead I leave it as an exercise to the readers to automate this process and extend it with a possible vCard conversion or Outlook import.
You will need:
* Firefox browser
* The XHTML mobile profile add-on for Firefox
* Able to view option 4 (ie Contacts) when accessing Facebook mobile
* Be able to access the internet from your PC by using your mobile device (eg via Bluetooth or IR)
* A text formatting tool (eg. grep)
The option 4 (Contacts) is ideal for exporting your contact details as it lists email addresses and phone numbers as clear text.
On the web version of Facebook the email addresses are displayed as images and a optical character recognition (OCR) process has to be used to decode the email address.
This OCR process is never perfect and will sometimes result in incorrect contact details.
The idea presented here is that you connect your PC to the Internet via your mobile phone (bluetooth, serial, IR or whatever works for you).
You have installed the XHTML mobile profile in Firefox which will let you visit the mobile version of Facebook (m.facebook.com).
Because you are using your mobile operator, Facebook will assume you are on a mobile device and display the shy option 4, contacts.
Step through your contacts and save each page as a text file locally on your computer.
Last step is to combine the saved text files to a single file and use egrep secret sauce to create a neat comma separated (CSV) file with just names, email addresses and phone numbers.
One regular expression that may get you started would be:
/profile\.php([^>]*)>([^<]*)<\/a><br\/>(<small><a href=\"tel:)?([0-9\.]*)?(\">)?([0-9\.]*)?(<\/a><\/small><br\/>)?<small><a href=\"mailto:([^\"]*)/
The best way to automate the exporting of Facebook contacts would be to write a small application for a mobile device (eg in J2ME) that fetches the information and formats it for export.
Another option would be to use Cygwin tools such as curl and grep to automate the process on your PC.
The j2me application would be most fun to do and I may return to it one fine Sunday afternoon!
[Photo by pshab]

Excerpt from a Playboy interview with Bob Dylan

PLAYBOY: Mistake or not, what made you decide to go the rock-‘n’-roll route?
DYLAN: Carelessness. I lost my one true love. I started drinking. The first thing I know, I’m in a card game. Then I’m in a crap game. I wake up in a pool hall. Then this big Mexican lady drags me off the table, takes me to Philadelphia. She leaves me alone in her house, and it burns down. I wind up in Phoenix. I get a job as a Chinaman. I start working in a dime store, and move in with a 13-year-old girl. Then this big Mexican lady from Philadelphia comes in and burns the house down. I go down to Dallas. I get a job as a “before” in a Charles Atlas “before and after” ad. I move in with a delivery boy who can cook fantastic chili and hot dogs. Then this 13-year-old girl from Phoenix comes and burns the house down. The delivery boy – he ain’t so mild: He gives her the knife, and the next thing I know I’m in Omaha. It’s so cold there, by this time I’m robbing my own bicycles and frying my own fish. I stumble onto some luck and get a job as a carburetor out at the hot-rod races every Thursday night. I move in with a high school teacher who also does a little plumbing on the side, who ain’t much to look at, but who’s built a special kind of refrigerator that can turn newspaper into lettuce. Everything’s going good until that delivery boy shows up and tries to knife me. Needless to say, he burned the house down, and I hit the road. The first guy that picked me up asked me if I wanted to be a star. What could I say?
[Source]

Will you buy the Apple iPhone in the UK on November 9th?

iphoneThe news is officially out from Steve Jobs’ mouth: the iPhone will be available in the UK from November 9th, 2007 and exclusively with O2 and Carphone Warehouse.
Congratulation to O2 and Carphone Warehouse 😉 for securing the deal.
It would be interesting to know how much O2 paid for this exclusivity and how this exclusivity will pay off with the recent iPhone unlocking and the iPod touch release.
In case you are still deciding whether or not to get the iPhone in the UK I have summarised a few points for you to consider that may help you to make up your mind.
The cost
£269 and a 18 month contract at (minimum) £35 / month.
What unique features does the iPhone have
+ a multi touch user interface
+ visual voicemail
+ Free Wifi at The Cloud hotspots (£12 / month normally)
+ high fashion status
What doesn’t the iPhone have which is found on recent mobile phones
– 3G (the most recent high speed mobile data connection)
– Video recording
– Video calling
– MMS (picture messaging)
– A2DP (bluetooth stereo profile)
– MP3s as ringtone
– 3+ megapixel camera
– voice recording
– voice dialing
– copy and paste
– Macromedia flash support
– USB mass storage device usage
– saving images or files from browser
– bluetooth file transfer
– ability to delete individual text messages
– 3rd party application development (j2me, symbian, .net)
– bluetooth modem
I think you’ll find the iPhone lacking if you are a mobile power user and used to the features listed above.
If on the other hand the priority for you is design, usability and top class support then the iPhone will be a good match.
PS The O2 “unlimited” data plan is limited to “1,500 internet pages per day”. Whatever that means 🙂

Wedding congratulations are in order

rudolf-loves-iveta.jpgfor the newly wed Rudolf and Iveta Kaspar.
I was able to get away from our recently enlarged family for three days to attend Rudolf’s and Iveta’s wedding.
The wedding was in Prague and the couple put on a relaxed wedding full of party, laughter and family love.
The day started with a small reception at the couples new apartment in an almost finished apartment block.
There were wires sticking out from the walls in the hallways and the apartment was all empty but for a pair of mattresses and sleeping bags.
This didn’t prevent a great atmosphere and a never ending flow of champagne.
A red Skoda decorated with white flowers was arranged for the bride and a white mini bus was arranged for the groom and the rest of the family.
In such magnificent style did we travel to the busy Old Town Square were the wedding ceremony was to be held at the Old Town town hall.
I have been to the Old Town Square on numerous occasions to marvel at the ancient astronomical clock just like millions of tourist from all around the world. Never have I however been inside the town hall.
The actual ceremony was short and sweet and the couple had chosen a few untraditional songs for the organist: Clocks by Cold Play, Everybody’s changing by Keane and Spomal by Peha.
Apparently the organist had not known how to play the songs initially but managed splendidly once provided the notes.
The square was as busy as ever on this fine Saturday and full of tourists from all around the world. They snapped away merrily at the newly wed couple.
Rudolf and Iveta are for ever recorded in the family travel albums of visitors from China, Italy, Russia, Germany but mainly Japan.
A family feast followed where I had the chance to meet the bride’s family members for the first time.
I can happily report that they turned out to be a bunch of really nice and honest people that never say no to having fun.
The feast lasted longer than planned and it was getting close to the “real” evening party. Luckily I managed to squeeze in 30 minutes of power napping; something that I doubt the newly wed couple had time to do.
There was a great crowd at the evening party and I met up with a few childhood friends I hadn’t seen in years. There were a few surprises like random visitors from Norway and excellent musicians dressed in poncho’s.
More food was arranged in the form of a buffet with traditional Czech delicacies.
After the earlier feast I swore not to eat again for several days but I caved in for a midnight snack of chicken wings, sandwiches, goulash and some more wedding cake.
All in all a fantastic wedding and celebration and a huge privilege that I was able to attend.
Congratulations to the newly wed couple and an apology for the delayed wedding present… it is on the way!

The definitive upgrade-to-Nikon-D200 review

d200 dslrThe Nikon D70 was my first digital single lens reflex (DSLR) camera.
The D70 was a “downgrade” from my previous Canon EOS 5 in terms of freedom of expression but it was an upgrade in terms of photo quality (some would argue this) and time delay from taking a shot to publishing it online (this is obvious).
After 1.5 years with the D70 I felt I was happy with the results of my new digital work flow and wanted a DSLR that allowed for a bigger technical elbow room.
Meanwhile slightly better models (D70s, D80) had been introduced by Nikon but I felt only the D200 was a significantly more advanced DSLR worth aiming for. The various D1 models were of course too expensive and too professional for my “happy snapping”.
The first thing I noticed while holding the shiny new D200 was the difference in size, weight and build quality. The D200 weighs 35% more (920g vs 680g), has a slightly larger frame and a metal body (D70 is plastic).
Initially your arm will suffer from the extra bulk of the D200 and you will intimidate your subject more easily.
Another thing my wife noticed right away was the lack of scene modes. While the D70 has a few modes for the most common photo situations (sport, beach, portrait, flower and etc.) the D200 lacks them. On the D200 you have to know which camera features to adjust to achieve the same result.
For portraits, aperture priority mode may be used to minimize depth of field, during sports shots you may want to use shutter speed priority with an appropriate speed, photographs of mountains may benefit from manual focus on infinity and so on.
The shooting speed is greatly improved. While I barely managed to get out 2-2.5 RAW NEF frames per second with the D70, the D200 manages up to 5. The shooting speed is dependant on several other factors like shutter speed, memory card quality and resolution but the D200 “feels” at least twice as fast.
The D200 has an overwhelming amount of detailed settings to alter capture properties (saturation, exposure and etc.), button assignments and much more.
It is a bit overwhelming in the beginning but once you know your way around the menus, then all this flexibility will give you a lot of freedom to create unique photographs. The D200 has four setting memories that allow you to swap quickly between favourite groups of settings.
Other notable D200 benefits would be larger view finder and LCD (2.5″ vs 1.8″), multi-channel histograms (YRGB), more autofocus zones (11 vs 5), better resolution (10.2MP vs 6.1MP) and more.
The only thing I miss from my D70 is being able to use the lightweight IR remote control (ML-L3). I used the remote control heavily during night shots (mirror lock-up mode). There is a cord remote available for the D200 (MC-30 or MC-36) but it isn’t as convenient as the ML-L3 was.
My wife finds it more difficult getting sharp photos with the D200 and I suspect this is because the D200 has higher resolution and is overall more sensitive.
This means that some (novice) users may have to practise their techniques (light shutter finger, holding their breath, pan with subject, support arm on something steady and etc.) to get great shots.
With all this flexibility and complexity of the D200 I continuously keep improving my shots. This entry will be a living document where I will be adding any new D200 tricks, tips and techniques I discover and find helpful. Bookmark it and come back for any updates!
1. I often find my self taking several (2-10) shots of the same subject and scene. Afterwards I browse through the shots and eliminate any that are obviously bad (blurry, bad exposure, bad crop).
A great way to do this is to assign the centre of the navigational dial as high zoom and further assign the back command dial to browse between photos.
When you want to review a series of shots, hit the new convenient zoom button and use the command dial to switch between next and previous shots. Because the focus point remains the same while you browse photos, you can now easily compare a subject between multiple shots even if the subject is off centre.
2. I have programmed the front user button to focus. Sometimes I have pushed the shutter button half way but the subject moves and I need to re-focus quickly without loosing exposure lock and composition.
3. I use Vivid colour mode and 1 step of extra sharpness which I find results in photos that require very little post processing and just POP.
4. The auto ISO function is well thought out because you can program it both for the lowest shutter speed you are comfortable with (I use 1/30s) and the highest ISO you are comfortable with (I use 400).
Then you can be sure that the camera will not use a higher ISO for a shot if the exposure can be achieved with or above the shutter speed you have selected.