Posted by: pureessence on: August 25, 2010
Not really a new trick but I had to look for the syntax today to use reflection to set a private property on an object to use it in a junit test.
Posted by: pureessence on: August 2, 2010
Yesterday I attended Ted Neward‘s game design session at nofluff. It inspired me to begin to implement the game sequence in an ajax app. It will be a private app since I only plan to play it with some friends. But it will be hosted somewhere on my website so it can be accessed from [...]
Posted by: pureessence on: June 29, 2007
One thing I did for dmb is making dodosmb.com/profile/username work with my profile.php script. Normally without the help of .htaccess, you can use the value of the path info from the global variable For example, create a php file named profile.php and in there put: Then upload the file and load it with yourServerPath/profile.php/dodo. The [...]
Posted by: pureessence on: January 10, 2007
i just saw the funniest thing in PHP yet! below is taken from here. This code is lifted from a socket handling class that I’ve been asked to work on today. Prepare to cringe: It’s worth noting that the foreach() statement will move from line 392 with so much as a return key (as it [...]
Posted by: pureessence on: February 2, 2006
okie, i thought someone has figured it out by now. but when i asked on the wordpress board, i got no response. so i digged around and figured a hack for it. i noticed sometimes esp. on some pages, the smiley conversion does a poor job and converts the wrong text into smilies. it really [...]
Posted by: pureessence on: December 2, 2005
dodosmail has been upgraded to version 2.1 after securing it from header injection.
Posted by: pureessence on: July 6, 2005
aw thanks to miki for the tip. i was wondering if there was a smarter way to print out the alphabet in php than just typing them out LOL Every letter of the English alphabet corresponds to an ASCII code, so rather than manually typing everything out, you can achieve the same result with a [...]
Posted by: pureessence on: July 1, 2005
worked most of today on releasing dodoupload version 1.3. if you never had problem with previous versions, you probably don’t need to upgrade. there is not much change from version 1.2. I rewrote the script mostly because some people have problems with http auth and i couldn’t figure out why. so now it’s cookie based [...]
Posted by: pureessence on: June 9, 2005
i’ve been wondering what’s the quickest way to fill an array with a constant value? sometimes the code is necessary. for example, i have X number of items in an array and i wish to put them evenly into an table. to call another function, i need to pass in an array of values and [...]
Posted by: pureessence on: May 5, 2005
just a simple function that returns how many days, hours, minutes and seconds are left given a timestamp i put together. kinda bored so sharing some code XP give either $time_left (time left in timestamp) or $endtime (an ending timestamp)
SocialVibe