Hui WANG's Blog

One will, One way

Month: March, 2010

Magic Factory Method for Obtaining Instances of Zend_Gdata Classes

// Create a new entry using the calendar service's
//magic factory method
$service = new  Zend_Gdata_Calendar($client);
$event= $service->newEventEntry();

This is a small piece of code from Zend manul on how to use Google Calendar.

At first I didn’t notice the comment in the very first line.  I have navigated directly into the class Zend_Gdata_Calendar to explore the method newEvenEntry. Unfornately and weirdly, this method doesn’t exist ! Read the rest of this entry »

Recevie Mails From it-sudparis With a Gmail Account

In this post, I’d like share a dirty tip with students at TELECOM SudParis  who are suffering from reading their emails with the all-in-one Gaspar. Because we have to input password every time to get connected. You may suggest using Outlook or Thunderbird, but they are just not portable. When we change computer, all configurations are lost. Here comes the fancy and life saving Gmail. No matter where we are, it allows us to read mails from all other accounts in one place, Gmail.

I take the configurations of our school mail for instance. You can certainly adapt the method to you own mail account in condition that a pop server is available. Here we go! Read the rest of this entry »

500 Internal Server Error After domain transfer

After transferring my domain from byethost to my new web host, I got a 500 internal server error when trying to browser my site. The problem was resolved “itself” after almost 48 hours during which none of my efforts have taken effect. After this pain,  there are some gains. Here is the cause I’ve figured out.

What is a 500 Internal Server Error ?

The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the web site’s server but the server could not be more specific on what the exact problem is. One thing is certain that the problem is not with your PC or Internet connection but instead is a problem with the web site’s server. Read the rest of this entry »