karate kid ad by grey, tokyo

detect ajax request in php

this only works if your server support HTTP_X_REQUESTED_WITH

if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' ) {
//ajax action here.
}

run php code inside html

create .htaccess file, and add the following line:
what if the cdn service for your jquery is down? you may need a fallback to load your local jquery.js file.

AddType application/x-httpd-php .html .htm

you may create .htaccess file in windows explorer with the following method:
1. right click on folder -> new -> text document
2. rename the filename to .htaccess. (note there is a dot at the back)
3. press enter and it will be renamed to .htaccess by windows itself.

best mobile phone manual ever

pillow talk

this project aim is to connect long distance lovers. each person has to wear a ring which wirelessly communicates with the other person’s pillow. when one person goes to bed, their lover’s pillow will glow softly. [via littleriot]

in love with inanimate object