PHP

Fixing Drupal error: Notice: Undefined offset: 1 in views_block_view()

Damn this was a pain. For more heads up go here: http://drupal.org/node/1065942

It's caused by stale records in the block table that then fail to resolve. There's plenty of reading material out there and suggested fixes etc. that I am sure work but once I knew what the problem was I applied *my process* for all Drupal problems like this.

Drupal 7 and Facebook HipHop

Well, after some fiddling it built and I tried to run it, only to see:

HipHop: File not found:

That's it... what file?

Having spent a whole day getting another PHP project to try to run, I am starting to wonder why Facebook bothered to release it. The documentation is 'there' but by no means awesome, at least like Drupal documentation is awesome.

Creating a Quicktabs style

I am currently using Quicktabs on a site and I needed to create a new style for my theme that was very close to the Sky theme but as usual, not exactly what I wanted and completely the wrong colour.

Thanks to Drupal being so awesome as well as the Quicktabs module being so well written and documented it wasn't long before I found what I was after... the author has kindly done a good thing and performed a message broadcast to all active modules to see if they too want to supply any themes that can be used...

PHP Link Scraper Class

Need to suck URL-s (A tags) from a page but don't know where to start ? Steal this!

It also implements the ArrayAccess and Iterator interfaces so you can use it as an array to access the links and also in a foreach loop as well in the usual manner. I have made the array setter functions die() as that's what I wanted but it you be a simple (exercise for the reader!) matter to change that should you want to.