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zbCAgLS13aXRoLWdkIC0td2l0aC1nZXR0ZXh0IC0td2l0aC1tY3J5cHQgLS13aXRoLW1oYXNoIC0tZW5hYmxlLXNvY2tldHMgLS1lbmFibGUtbWJzdHJpbmc9YWxsIC0tZW5hYmxlLW1icmVnZXggLS1lbmFibGUtemVuZC1tdWx0aWJ5dGUgLS1lbmFibGUtZXhpZiAtLWVuYWJsZS1zb2FwIC0tZW5hYmxlLXBjbnRsIC0td2l0aC1teXNxbGkgLS13aXRoLW1pbWUtbWFnaWMgLS13aXRoLWljb252IC0td2l0aC1wZG8tbXlzcWwgLS13aXRoLWZyZWV0eXBlLWRpcj0vdXNyL2luY2x1ZGUvZnJlZXR5cGUyL2ZyZWV0eXBlDQoNCm1ha2UNCg0KbWFrZSBpbnN0YWxsDQo8L2NvZGU+[/code]

The above worked on Intrepid, below is an example that worked on Dapper. Here I have compiled as static libraries and put them in the /usr/local/lib dir:... Read More

Simple PHP class for parsing markup

Thursday, March 26th, 2009

In the Zend Client tutorial I touched upon a little bit of code I’ve written recently for retrieving poker player statistics from various backend affiliate sites.... Read More

Zend Amf and class mapping with Flash CS3 / AS3

Tuesday, March 24th, 2009

Update: I just got a mail from Julien Iafrancesco:... Read More

Cleaning up and wrapping up

Tuesday, March 17th, 2009

Update: Smoc is dead, long live h2octrine!... Read More

WAMP and XAMPP problems and solutions in Vista

Wednesday, March 11th, 2009

Damn this is strange, Apache suddenly just died on me after Vista installed some updates, the gauge in both wamp and xampp shows it as running but accessing localhost results in a no no. No matter how I tried to make things work, deactivating the firewall, UAC and a slew of other actions I was about to give up when I tried 127.0.0.1 without expecting it to work at all, but it did.... Read More

Parsing with Zend HTTP Client

Monday, March 9th, 2009

I need to recap today’s adventures in parsing land, I’m currently writing a lot of different parsers that are retrieving information from various pages, sometimes I’m lucky and the info I want is available as CSV or XML, most often not.... Read More

jQuery Galleria with MODx multi-lang snippet

Monday, March 9th, 2009

The other day I wanted to try out jQuery Galleria, it didn’t work out of the box with jQuery 1.3.2. Galleria is using the old style @ syntax which doesn’t work anymore. You basically have to go through the whole plugin and replace lines like this:... Read More

MODx multiple language site with template chunks

Wednesday, March 4th, 2009

After using the stuff in the prior tutorial on the site I’m working on at the moment I quickly realized that I needed to be able to use chunks as templates, just like Ditto, to handle repetitive stuff. It doesn’t make sense having duplicate HTML all over the place.... Read More