Archives Posts
October 24th, 2007 by tom
my first flash+papervision 3d depth of field (DOF) experiment:

(to see the flash version click “read more”…)
- bluring (or fake dof if you want) is done by calculating the distance of every plane to the “current” plane.
- animations are done using tweener, which is a really nice tool to animate/keyframe numeric values.
check this nice tutorial on tweener…
- pictures are taken from stephans asia journey on piclog
Read the rest of this entry »
Archives Posts
October 19th, 2007 by tom
you can run php code in mediawiki using the runphp extension.
you can get it here
i used it to display some database content. but it did only update after re-saving the article.
you need to disable caching in mediawiki:
$wgMainCacheType = CACHE_NONE;
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;
(taken from: here)
when accessing a database:
- do not use $handle
- do not use select_db() just use absolute database and table names, like “select * from databasename.tablename”
other problems:
- include the runphp file AT THE END OF localsettings.php, not at the beginning……..
- runphp only executes php from protected (sysop only) pages!
Archives Posts
October 19th, 2007 by tom
to delete files that are older than x days on your linux server, you can use:
find /path/*.gif -mtime +1 -exec rm {} ;