Most read posts this month



Nov 24th 2009 × Lemmings javascript sprite animation with pseudo parallax (through mootools)

This was supposed to be my Friday Fun post but it got to where it’s at on the following Monday instead. Having never tackled sprite animation before, this has been a learning experience anyway (on the principles of animation also).

I think the result is fairly adequate – a moving lemming in a world that changes atmospheric effects dependent on the time of day, complete with parallax-like effect relative as counter to the lemming’s movement.

Oh, yes. The lemming can also be quite moody–hates being bothered. Which is fine, you can blow him up too. Enjoy and click below:
lemmings parallax animation screenshot

P.S. This will feature as the header of fragged.org’s new wordpress theme which is almost completed now. So, a little taster of things to come…
P.P.S. Thanks to crisp for the original DHTML lemmings and to holy.pt for his vigorous testing and advice.


Nov 18th 2009 × Snow flakes for your site? Try mooSnow – a javascript class that just snows

Just pulled out the old textSnow class foer 1.11 and rewrote it for 1.2.4. Anyway, head over to the demo page, it has all the info you need.


Nov 12th 2009 × PHP debugging: breadcrumb all functions and their callees from anywhere

This is just a little snippet that I wrote whilst trying to debug some dodgy MYSQL calls that were causing problems. It allows you to backtrace all functions and files that have led to the problem, mapping it through a breadcrumb of sorts. REALLY helpful when tracing other people’s code also…

function get_callee() {
    // relies on debug_backtrace();
    $retstring = '';
    $backtrace = debug_backtrace();
    for($ii = 1; $ii < count($backtrace); ++$ii)
        $retstring[] = basename($backtrace[$ii]['file']) . ' - ' . $backtrace[$ii]['function'] . ' (' . $backtrace[$ii]['line'] . ')';
    return implode(" > ", $retstring);
} // end get_callee();

// use simply like so:
echo get_callee();

I hope it helps somebody

no

Nov 4th 2009 × CubeCart 4 security vulnerability: is your store at risk?

Whilst reading on XSS attacks today, I found this recently reported exploit in CubeCart 4 that can gain an attacker full administrative access to the store.

Not only that, it can help them dump your entire store DB – products, cats, users, orders, the works. Anyway, you get the idea. “CubeCart responded and informed their customers about this vulnerability” – as technical advisor for a site that runs on CC4, I can testify to the fact that the site owners were not informed of any such. Nice.