This timer uses PHP and jQuery to show the server time. The server time will be the same for all users whereas a Javascript timer would be dependent on the local time on the device. Here is the php code to generate the time: The code below displays the time. It assumes jquery is loaded on the page.
-
-
Simple Javascript Word Counter Using Jquery
The script below prevents a text field from accepting more than 200 words. To apply it the textarea needs to be in its own wrapper and have the class “max200” see below:
-
MYSQL Date Comparison Cheat Sheet
Below are some methods of comparing dates in MYSQL. Finding rows entered in the last 6 months with MYSQL. SELECT * FROM table_name WHERE post_date > DATE_SUB(GETDATE(), INTERVAL 6 MONTH) Finding the number of days between two dates SELECT DATEDIFF(end_date ,start_date) FROM table_name; Finding the midpoint or average between to dates. SELECT (start_date+INTERVAL DATEDIFF(end_date ,start_date)/2 DAY) FROM table_name;
-
Javascript Geometric Pattern Script for Adobe Illustrator
Islamic geometric patterns open into a universe of form. The subdivision and repetition of the structures mirror the natural world. Experimenting on paper with a compass and ruler, patterns mirrored each other. There was a sense of magic too it like watching a photograph fade into clarity in a darkroom tray. While the contemplative process with a compass and ruler…
-
Working with Persian/Farsi on a Website HTML / PHP / MYSQL
It took me a few hours to figure this out. Though it turned out to be quite simple. Everything needs to be in UTF-8. HTML Use the charset meta tag below: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> MYSQL The field needs to be collated “utf_8_persian_ci”. PHP Set the charset At the top of the document specify: header(“Content-type: text/html; charset=utf-8”); Set the database…
-
Using Jquery to Replace an mp3 Link with a Flash Audio Player
The Javascript code below uses jQuery to convert mp3 links to a flash player on the fly. It utilizes this flash player: http://flash-mp3-player.net.
-
Integrating BluePay Recurring Payments with PHP
Below are instructions for using the BluePay_bp20post-PHP5.php class to setup recurring payments from a donation form.
-
Sade extracts Festival Lacoste 2007
-
Wild Cursive (Next Wave 2007)
Wild cursive is a dance performance by the Cloud Gate Dance Theater of Taiwan. Choreographed by Lin Hwai-Min. Languid dancers are set against a backdrop of written characters and projected silhouettes.
-
Moon – Solo Dance by Yang LiPing
Yang LiPing, the sorceress of dance, elegantly moves in silhouette against the glow of the moon.