Cacti rrdtool upgrade woes

I wanted to move from my aging home server to a Raspberry Pi for Cacti monitoring. It takes a whole lot less power..

So I do what I always do: move stuff from one server to the other. (I was moving from RRDTool 1.4.3 to 1.4.7 and Cacti 0.8.7g to 0.8.8a)

But while trying to figure out why my graphs were no longer working. I got the following error:

“ERROR: the RRD does not contain an RRA matching the chosen CF”

Turns out something was incompatible between the RRDTool versions.

I wrote a little script for to export and to import the RRDTool files without having to do it manually. (code after the break!)

Continue reading Cacti rrdtool upgrade woes

Nerfmodding – n7-rayven

This is my first Nerf Mod. I chose the Rayven as it has plenty of stuff inside and does not require me to manually load the pellets every time. Also its pretty easy to take apart and put back together.

It is currently drying from its second coat of paint. After which I’ll put in all the gadgets and start its final paint job (n7 logo,chrome parts,weathering)

It is going to contain the following

  • 1 arduino pro
  • 1 push button (metal, blue led ring)
  • 1 switch to turn on the wheels.
  • 1 switch to turn on the arduino
  • 1 speaker
  • 4 blue leds
  • 1 laser
  • 1 lipo
  • 1 lipo usb charger

Creepybot 1.0

creepybotRecently I’ve been fascinated with robotics. More so than usual. Over the last few months I aquired enough gear and skills that I found myself worthy of attempting to build a robot. And not just any.. a 6 legged robot with 18 servos for the leg control.




Ingredients so far :

Right now this is what it looks like :




Forbidden to talk about on twitter ?

So this happened… Never thought I’d be so annoyed by twitter….

I wanted to post the following message:

“If you’re wondering what is ( its a crowd funded social network. Instead of ad agencies being the customer. You are :)”

I guess I ran in to some form of filtering… I wonder what it caught on though…

Save time rendering XSL(in php), Use an XSL builder

I love XSL. Its a wonderful tool for rendering HTML,XHTML,XML. Imports improve readability and helps you organize your XSL’s in an orderly fashion. But lets face it: Imports are a bit slow especially on networked storage like NFS.

I tried searching for a decent solution. But could not find one.

So I built an XSL builder for my platform(artist community platform) to reduce the time taken rendering from XML to HTML using XSL. It succeeded in lowering the time it takes to render by as much as 25 to 35% on the production site.

It also includes a nifty way of building  different xsl files that contains only the templates you need to increase speed even more. (check out the README)

Now I have both flexibility (XSL is awesome!) and a lot more speed.

Its open source!(GPLv3) (copyleft , so if you have any changes you made, please send them to me )

You can download it here

It contains both a CLI version and the class that does the building (For platform integration!)

CLI version

An example of how to use the CLI version:

./xslbuildercli.php input=/full/path/to/your/xslfiles/index.xsl

This will return the built XSL to stdout. (more examples on how to build to files and how to use the modes to create seperate files for seperate uses, check out the README)

Just the class

If you plan to do some other cool stuff like online XSL editing this might be interesting.


$newXSL = xslbuilder::buildXSLFile(‘/full/path/to/your/xsl/index.xsl’);




Have fun!

Google IO day 1 #googleio

So yesterday was google io 2011’s first day. In a few words, It was a blast. There were a lot of interesting sessions, and we got a free tablet! Awesome Google & Samsung!

I also updated the shortner android app for honeycomb. But I might have to redo some of the layout.

Continue reading Google IO day 1 #googleio

I’ll be attending Google I/O 2011 :D #googleio

I pre-registered this morning (and got my registration confirmation ) for Google I/O 2011 , an awesome place for likeminded developers to meet and discuss tech at the same level. And ofc. visit some awesome sessions about all sorts of tech.

For more info on Google I/O :

Go here


San Francisco…. Here I come!


Silverpop client information stolen, Deviantart members data taken prepare for spam..

From my inbox:

Silverpop Systems, Inc., a leading marketing company that sends email messages for its clients, told us that information was taken from its servers.  This was probably part of a sweep by spammers.  As a result, email addresses belonging to deviantART members were copied. Corresponding usernames and birth date may also have been removed.

We can assure you that nothing occurred on our systems with respect to this incident and no access was gained to private information on deviantART’s servers.

As a member of deviantART, you certainly have a right to know when an incident of this kind occurs.  Unfortunately spammers are an unavoidable part of living on the Web.

The likely result of this event might be an increase in spam to your email. Experts have told us that there is an increase in email scams out there on the Internet and you should be cautious. Only click links or download attachments from people you know, particularly if they ask for personal information, and be sure that your email service provider has adequate spam filters.

Because we value the information that members give us, we have decided not to rely on the services of Silverpop in the future and their servers will no longer hold any data from us.



I like the full disclosure idea… but why why why use a place like that in the first place , when you can easily make it yourself ?

What would they need with Birth days !? Let me guess gender was in there too ?

Well I kinda understand why I get all this spam now. But seriously .. why trust an email marketing company with our information?