spudly.shuoink.com

the best way to predict the future is to implement it

Entries Comments


Array.grep

31 May, 2008 (14:38) | JavaScript | No comments

Here’s another prototype for the javascript Array class of objects: Array.grep(). This takes either a regular expression object or any other kind of value that can be compared with ===. If a regex is given, it will test the regex against each value. If something else is given, it will simply compare them with ===. [...]

PHP Error Log Parser

17 February, 2008 (08:15) | PHP | 7 comments

So about a month ago I got pretty tired of looking at this:
[17-Feb-2008 07:33:52] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ‘(’ in C:\www\forms\validate.php on line 10
[17-Feb-2008 07:33:54] PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ‘(’ in C:\www\forms\validate.php on line 10
[17-Feb-2008 07:34:08] PHP Fatal error: Call to undefined function send_email() [...]