Adsense widget for Geckoboard released a widget to display the revenues from Google Adsense in your Geckoboard.

Google Adsense widget for GeckoboardAll you have to do is to install the widget code (php-based) on your webserver and add a new custom widget to your Geckoboard widget. Various timespans (including today, yesterday, current month, last month) and values (e.g. ecpm, earnings and clicks) can be selected. Values are extracted in realtime from the Google Adsense account, providing up to the minute information.

The code is released under the GPL license and can be used and modified without charge.

Further information and the download can be found at

About Geckoboard

You can create, run and share dashboards showing various key / performance values using the webservice Geckoboard. The setup is easy, there are many predefined widgets for various web services including Google Analytics, ZenDesktop, Mailchimp and various more.


Providing open source tools and development knowledge to the public is the aim of It was founded by Tobias Kluge as home of phpSitemapNG years ago, a tool to generate Google sitemaps.

phpMicroformats – PHP class library for microformats

About phpMicroformats

phpMicroformats is a PHP class library that helps to generate valid microformats for e.g. calendar events (hCalendar) or vcards (hCard). It is released under GPL license.

About Microformats

Microformats are specific enriched html structures that both helps humans and computers to understand the content. There are formats for calendar events called hCalendar – based on vCalendar format – and vcards – based on vCard format – and more.
The advantage of using microformats is that it is easier for humans to understand but also for computers to interpret and understand. Since it is using wildly accepted standards as (x)html enriched with some specific but limited classes, it can be easily implemented.


  • Based on wildly accedpted standards as xhtml
  • Defines specific formats for limitd domains as e.g. calendar data or vcards
  • Helps to classifiy and structure data for both humans and computers
  • Will help computers to better understand the content of websites
  • Can be integrated and used easily with full backward compatibility.


  • Maybe a bit more work to encode the data in the required formats.
  • Up to now only a few formats are set up for limited domains.
  • Not officially used by search engines spiders up to now.

Requirements for phpMicroformats

There are no special requirements besides PHP.

Usage of phpMicroformats

  1. Download phpMicroformats and copy the class phpMicroformats.class.php to your webserver.
  2. Experiment with the microformat examples available: Generate your first hCalendar or hCard entry.


phpMicroformats Release 0.1 (supports hCalendar and hCard; ZIP-compressed)

Examples for generation of microformat entries

Sample code for encoding of a vcard

* example php script that generates and outputs a hcard entry

$myPersonalData = array(
‘name’ => ‘Steve F. Better’,
’email’ => ‘’,
‘org’ => array(
‘name’ => ‘The virtual company’,
‘title’ => ‘General chief of all’

‘location’ => array (
‘street’ => ‘Main street 15b’,
‘town’ => ‘Mainhattan’,
‘zip’ => ‘22912’,
‘state’ => ‘Main country’,
‘country’ => ‘Countrinidad’

‘phone’ => array(
‘home’ => ‘+1 123 66 71 292’,
‘cell’ => ‘+1 123 88 72 121’

‘photo’ => ‘’,

‘im’ => array(
‘skype’ => ‘echo-chinese’,
‘aim’ => ‘ShoppingBuddy’

Sample code for encoding of a calendar event

* example php script that generates and outputs a hcalendar entry

$myEvent = array(
‘name’ => ‘Release party of phpMicroformats’,
‘begin’ => time(),
‘end’ => time()+2*60*60, // duration: 2 hours

‘location’ => array (
‘street’ => ‘Main street 15b’,
‘town’ => ‘Mainhattan’,
‘zip’ => ‘22912’,
‘state’ => ‘Main country’,
‘country’ => ‘Countrinidad’
‘url’ => ‘’


Eclipse: Change general to Java project

Problem: Migrate a Eclipse general project to a Eclipse Java project

You have a Eclipse project, which contains Java code – but you didn’t set it up as a Java project when you created or checked out this project. So since Eclipse doesn’t allow you to change the project type inside the Gui, you are stucked.

Solution: add the java nature

  1. Close your project.
  2. Open your project file (which is located in your root directory of the appropriate project) called .project with your default editor. Search for
    and change it to
    Save the changed file.
  3. Open the project again – now it’s a java project.

cvs trick: use local repository

Problem: setup cvs to use a local repository

You have a local repository – in a folder on your local disk or mounted network disk – and you would like to check out from this.


Setup your CVSROOT environment

export CVSROOT=:local:/path/to/your/cvs_root
where /path/to/your/cvs_root is the path to your local cvs repository.

Checkout from local repository

cvs co MyProjectName
where you have to substitute MyProjectName with the real name.