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0aC1nZXR0ZXh0IC0td2l0aC1tY3J5cHQgLS13aXRoLW1oYXNoIC0tZW5hYmxlLXNvY2tldHMgLS1lbmFibGUtbWJzdHJpbmc9YWxsIC0tZW5hYmxlLW1icmVnZXggLS1lbmFibGUtemVuZC1tdWx0aWJ5dGUgLS1lbmFibGUtZXhpZiAtLWVuYWJsZS1zb2FwIC0tZW5hYmxlLXBjbnRsIC0td2l0aC1teXNxbGkgLS13aXRoLW1pbWUtbWFnaWMgLS13aXRoLWljb252IC0td2l0aC1wZG8tbXlzcWwgLS13aXRoLWZyZWV0eXBlLWRpcj0vdXNyL2luY2x1ZGUvZnJlZXR5cGUyL2ZyZWV0eXBlDQoNCm1ha2UNCg0KbWFrZSBpbnN0YWxsDQo8L2NvZGU+[/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
Tags: compile, configure, PHP
Posted in PHP | No Comments »
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
Tags: parsing, PHP, regex, regular expressions, scraping
Posted in PHP | No Comments »
Tuesday, March 17th, 2009
Update: Smoc is dead, long live h2octrine!... Read More
Tags: Doctrine, PHP, Smarty, smoc
Posted in Doctrine, PHP, Smarty | No Comments »
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
Tags: apache, vista, wamp, xampp
Posted in Misc | No Comments »
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
Tags: fluent interfaces, parsing, PHP, regex, regular expressions, spiders, zend framework, zend http, zf
Posted in PHP, Zend Framework | No Comments »
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
Tags: galleria, Javascript, jquery, MODx, PHP
Posted in CMS, MODx, PHP | No Comments »
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
Tags: CMS, MODx, multi language
Posted in CMS, MODx, PHP | No Comments »