Teaser new little project

Last week i was working on a project and a friend told me that he had some issues to get the right version of a document. This made me wonder if there was a simple document versioning system online wich we could use. After some searching i didn’t find any solution, so i decided to create one myself using good old CakePHP.

What this app basically does is keep track of different versions of a document. Documents can be filed under a project, wich can have multiple users.

It’s still in beta and needs some work in some places, but here’s a teaser (or three).


teaser


teaser


teaser

Filed Under: CakePHP, Code, English, Projects - read on

Flitsers widget

Naast de files en de NS storingen komt er nu een nieuwe widget voor het ophalen van flitsers. Zo kun je vlak voordat je op pad gaat nog even de actuele flitsers doorijken.
Deze widget kun je gebruiken op je Apple Dashboard. Het maakt gebruik van de site Flitsers.nl voor het ophalen van de informatie.

flitsers

De widget kan hier gedownload worden: http://widgets.matsimitsu.nl/files/flitsers.wdgt.zip

Filed Under: Code, Projects, Widgets - read on

Verkeersinformatie widget FileIndex

Naast mijn NS storingen heb ik nu ook een verkeersinformatie widget gemaakt. Zo kan ik en het spoor en de snelwegen in de gaten houden.
Deze widget kun je gebruiken op je Apple Dashboard. Het maakt gebruik van de site FileIndex voor het ophalen van de informatie.

fileindex

De widget kan hier gedownload worden: http://widgets.matsimitsu.nl/files/FileIndex.wdgt.zip

Filed Under: Code, Projects, Widgets - read on

CGTalk Widgets

CGTalk.com is an aweseome communitiy for sharing your greatest Computer Generated art. It features a large gallery and forums in wich great pieces of art are shown to the public

The Widget

I figured i wanted some widgets to keep an eye on the latest CGTalk submissions in the CG Choise forums, so i created two widgets for that purpose

Screens:

3d Widget

2d Widget

Download

Use the following links to download the widgets:

Installation:

Unzip the widget and double click the .wdgt file, OSX will ask you if you want to install the widget, i recommend you you do ;)

Filed Under: Code, English, News, Projects, Widgets - read on

Cakephp Gravatar helper

For a Cakephp site i had to insert some gravatar images for the comments, so i made a gravatar helper.

Download it here: http://blog.matsimitsu.nl/wp-content/uploads/2007/03/gravatar.rar

and put this code in /app/views/helpers/

Helper code:

<?php 
class GravatarHelper extends Helper {

    var $helpers = array('Html');
	var $grav_url = "http://www.gravatar.com/avatar.php?"; // Url to gravatar service
	var $default = "http://dailypicture.nl/img/gravatar.jpg"; // Url to the default picture (ie if  the user has no gravatar)
    

    
/**
 * Retrieves an gravatar image and returns an image tag
 *
 * @param string  $email address used for gravatar generation
 * @param integer $size image size
 * @param array    $htmlAttributes Array of HTML attributes.
 * @param boolean $return Wheter this method should return a value or output it. This overrides AUTO_OUTPUT.
 * @return mixed    Either string or echos the value, depends on AUTO_OUTPUT and $return.
 * @access public
 */
    function image($email, $size, $htmlAttributes = array(), $return = false) {
        
        $gravatar_url = $this->grav_url."gravatar_id=".md5($email)."&amp;default=".urlencode($this->default)."&amp;size=".$size;        
        return $this->output(sprintf($this->Html->tags['image'], $gravatar_url, $this->Html->parseHtmlOptions($htmlAttributes, null, '', ' ')), $return);
    }


}
?>

In the controller make shure you have the helper enabled:

var $helpers = array('Gravatar');

And to use it in your view :

<?php echo $gravatar->image('john@doe.com', 40, array('alt'=>'gravatar image'), false); ?>

And there you have it, a nice looking gravatar.

Filed Under: CakePHP, Code, English, Projects - read on