Michael Anthony Heap

Category :: Code

Working with DOMDocument

Nowadays, most of the services we need to access programatically provide an API or an RSS feed of their data for us to pull in and parse. However, some sites still don’t provide the data, be it because they’re a bit behind the times or they just don’t want to make it easy for us…

[ Read More ]

PHP 5.3: Anonymous (Lambda) Functions

A month or so ago I started work at a company called LiveLenz, who are a realtime sales provider for various POS systems. The project I’ve been working on is called Sublive, which is a piece if reporting software for Subway franchises. As a part of that system, I needed to provide detailed stats for…

[ Read More ]

jQuery Log Function

While looking through some old starred items in Google Reader, I noticed a snippet of jQuery that you could use to log the objects returned by jquery selectors and inspect them in the console. While it was very useful, there was a lot of room for expansion. After looking at the Console API for Firebug…

[ Read More ]

Javascript Control Structures

I stumbled across http://eloquentjavascript.net/ and decided to have a flick through. Knew most of it, but there are two very useful constructs I didn’t know about: labels and with(). Labels Labels look a bit like a goto statement, but are infinitely more useful. There’s been a few times that I’ve needed to break out of…

[ Read More ]

Archives

2010010203040506070809101112
2009010203040506070809101112

Categories