Every request I made to gladlyCode.local takes 5 seconds to resolve to my local Apache server. Something was wrong!
If it does and you’re on Mac OS X Lion, you should change your VirtualHost names to something else. It turns out that Mac OS X Lion no longer looks up /etc/hosts first when you try to lookup a .local domain since are technically reserved for Multicast DNS (MDNS), or Bonjour. Starting Lion, it will lookup through MDNS first, and after the 5 second timeout, it checks with /etc/hosts.
This is at a cost of developer productivity and I have to change all my .local domains to .internal.kw.sg which is a domain name I own. I figured that if it is a domain name I own, it will never clash unknowingly. I changed ‘gladlycode.local’ into ‘gladlycode.internal.kw.sg’ and point it to 127.0.0.1 now. Now testing gladlyCode no longer takes 5 seconds per request (ridiculous!).
Alternatively you can use another top level domain (TLD) instead of .local and the common ones such as .com.
Previously my Contact Form 7 WordPress plugin didn’t work, it works fine after I install and configured postfix. I can’t go through the specifics of the configuration with you since yours would probably differ. I selected “Internet Site” and press the return key (Enter) all the way selecting the default options. On doing so, Contact Form 7 starts to work already.
Should you need to configure postfix again, you can reconfigure too:
sudo dpkg-reconfigure postfix
Contact Form 7 uses WP_Mail which uses PHP’s mail() function. If you do need to troubleshoot, try sending emails with mail().
If you need additional configuration, you may need to update the following:
Settings SMTP and smtp_port need to be set in your php.ini
Also, either set the sendmail_from setting in php.ini, or pass it as an additional header.
I did not have to configure anything more than postfix. I am using Ubuntu server, on nginx web server.
I haven’t exactly thought of programming as a chore. And I am always quick to admit that I am not a good programmer, it just so happened to be what I do better in.
Lately, programming has been turning into a tiny chore and I hope it doesn’t enlarge itself. I overcome it partially by adding interesting things to do into the project so it felt a little more fun and probably can gain myself a little more satisfaction. I define “interesting things” to be something I never done before and have a high chance of getting it right. However, these “interesting things” aren’t good for me because I ended up having to maintain these interesting things.
My work generally involves – development, maintaining. I think I am supposed to squeeze testing and planning in somewhere in the steps but I don’t give a crap about those management level definitions.
Development is always the more fun part. You make something in 10 hours and watch it work. However you may end up watching it work for 10 days leaving your eleventh day in front of the computer debugging for the next 5 hours. This process typically recurs and the base case is the termination of product.
I don’t have a good solution for it but I need a constant feed of “interesting things”. So during maintenance, I added in those “interesting things” which is really just a curse. These “interesting things” come back and haunt me; and I end up having to maintain these “interesting things”. And during the maintenance of these “interesting things”, I added…
The easiest way to start developing in PHP is to get XAMPP, the whole package can even be placed in a flash drive. Using the free AOL Mail account also allows you to sign in to the SMTP server without TLS which allows XAMPP sendmail to work.
To get your PHP scripts to send an email out. This guide assumes you have XAMPP or XAMPP Lite. My environment is Windows Vista. (I use XAMPP Lite by the way.)
Google Analytics API has been launched as a public beta.
Attention Developers: Google Analytics API Launched!
A Google Analytics API has long been one of our most widely anticipated features. Today we’re pleased to announce that the Google Analytics Data Export API beta is now publicly available to all Analytics users!
What’s so exciting about an API? The API will allow developers to extend Google Analytics in new and creative ways that benefit developers, organizations and end users. Large organizations and agencies now have a standardized platform for integrating Analytics data with their own business data. Developers can integrate Google Analytics into their existing products and create standalone applications that they sell. Users could see snapshots of their Analytics data in developer created dashboards and gadgets. Individuals and business owners will have opportunities to access their Google Analytics information in a variety of new ways. (Source: Google Analytics Blog)