Latest Tweets:

PHP Flaw…


$var instanceof Classname;

This is always false if the class “Classname” is not found!

Manage your VM’s in style

Although it is not easy to install it is a blessing to have to manage Libvirt machines:


herkulano/illustrator-scripts-for-mobile · GitHub

Yet another great illustrator found!

Adobe Illustrator Scripts by Hiroyuki Sato

Awesome illustrator scripts!

Battery concept

The current generation of batteries are dumb and I think they could be far more efficient! A battery in your computer, phone, tablet, etc is a solo element that is charged when you plug in your device. Charging a battery when it is not empty can harm it’s capacity and therefor battery live. 

My idea: Split the battery in multiple blocks. Every block can only be charged when it’s empty. Blocks that are full are not charged or used. When you device is connected it takes it’s power directly from the wire to the device. When the device is not connected only one block is used to give it’s power, the others are sleeping.

For example, If we split the battery in 10 blocks the worst case scenario will be that your device cannot charge for more that 91% (because one block is almost empty, but not empty enough to be charged, let’s assume that less than 10% is chargeable).

I’m no expert at batteries but I think this simple idea can make your battery live longer and that would be good for you and the environment. But maybe I’m thinking to simple :p

Ant script for detecting Operating System

Well I have to post at least once a year! So here we go, it’s not much and yes I’m still alive but extermely busy and maintaining my blog has been very, very low prio. I have made an ANT script for detecting the OS it’s running on:

The build.xml file can be viewed here

I’m using this piece for compiling native AIR applications. Because I was searching (a few months ago) for such a functionality in ANT and could not find it I wrote this very nifty piece of ANT xml.

Use and abuse!