April 4, 2009
Some following tips are derived from the book High Performance Web Sites (O’Reilly) by Steve Souders:
- Make fewer HTTP requests to reduce object overhead.
- Use a content delivery network.
- Add an Expires header.
- Gzip/compress text components.
- Put stylesheets at the top in the head.
- Put scripts at the bottom of the body.
- Avoid CSS expressions which are CPU-intensive and can be evaluated frequently.
- Reduce Domain Name System (DNS) lookups to reduce the overhead of DNS delay by splitting lookups between two to four unique hostnames.
- Avoid redirects which slow performance. It’s better to CNAME or alias.
- Remove duplicate scripts to eliminate extra HTTP requests in Internet Explorer.
- Configure ETags for sites hosted on multiple servers. FileETag none in Apache removes Etags to avoid improper cache validation.
- Make Ajax cacheable and small to avoid unnecessary HTTP requests.
July 20, 2007
How nice that would be to call on the go and get direction as a text message?
Dial Directions offers this free service currently in New York, Los Angeles and the San Francisco Bay Area.
Step 1: Call DIR-ECT-IONS (347-328-4667)
Step 2: Say, Where you are and the place where you are going.
Step 3: Receive the driving directions by text message.
Dial Directions says it is compatible with any cell phone.
June 30, 2007
Web forms are now a routine target of spammers. Whether your web site is a personal one just looking for feedback or a commercial site generating sales leads, getting dozens of entries for link exchanges or online gambling sites isn’t anyone’s idea of useful feedback
It can be really disturbing when you started to getting lots of useless SPAM through the web form on your site.
Is there something we can do about it?
Luckily, the answer is yes.
I found few interesting articles.
Checking for the value of HTTP_USER_AGENT, if it is empty that means it is not from any browser.
Simple, but powerful. Having an extra text box but make it invisible using CSS, check if the textbox has any value in your server script. If the text box has a value in it, that means it is not a regular user’s input.
The demo page is here