this is a cool website. Done with the Canvas element in HTML5
here’s flowerpoop drawn out.
if you draw some stuff we’ll host it here.
this is a cool website. Done with the Canvas element in HTML5
here’s flowerpoop drawn out.
if you draw some stuff we’ll host it here.
I needed ImageMagick to do some image manipulation, i ran across this very cool php extension. instead of using GD. you may run into some small snafus while trying to install it. my system is fedora core 12
first thing you do is install ImageMagick, and ImageMagick-devel
then you run pecl
if you run into any problems like re2c not being up to date. pull the latest RPM, and install.
the cool thing about this extension is when you want to resize images on the fly its as easy as this
header(‘Content-type: image/jpeg’);
$image = new Imagick(‘image.jpg’);
// If 0 is provided as a width or height parameter,
// aspect ratio is maintained
$image->thumbnailImage(100, 0);
echo $image;
?>
if you ever need to redirect w/in a plugin
Ever change the svn repository location and needed to update the old location to the new location here how you do it
that’s it kids that’s all you have to do.
ok i have been playing with zend at home to increase my knowledge, and i have run across this, i think its pretty handy, and gave me much insight in zend’s 1.8 bootstrapping method. i didnt use any of the dojo stuff, mainly because i plan to use jquery for all my dynamic javascripting needs.
/*DB setup done here.
Read configuration, create db instance & set in registry to use in other part of application.*/
public static function setupDatabase()
{
$config = self::$db;
$db = Zend_Db::factory($config["db"]["adapter"], $config["db"]["params"]);
$db->query("SET NAMES ‘utf8′");
self::$registry->database = $db;
Zend_Db_Table::setDefaultAdapter($db);
}
protected function _initView() {
// Initialize view
$view = new Zend_View ( );
//$view->doctype(‘XHTML1_STRICT’); /* Quick Change out depending on project */
$view->doctype ( ‘XHTML1_TRANSITIONAL’ ); /* Quick Change out depending on project */
$view->env = APPLICATION_ENV;
Zend_Dojo::enableView ( $view );
Zend_Dojo_View_Helper_Dojo::setUseDeclarative ();
$view->dojo ()->setLocalPath ( "/js/prod/dojo/dojo.js" )
->setDjConfigOption ( ‘usePlainJson’, true )
->setDjConfigOption ( ‘parseOnLoad’, true )
->addStylesheetModule ( ‘dijit.themes.soria’ )
->addStylesheet ( ‘/js/prod/dojox/grid/resources/soriaGrid.css’ )
->enable ();
// Add it to the ViewRenderer
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper ( ‘ViewRenderer’ );
$viewRenderer->setView ( $view );
// Return it, so that it can be stored by the bootstrap
return $view;
}
}
more can be read here i give credit to the guy who wrote this up originally and shared with the rest of the world.