Posts tagged “PHP”
-
Give a hoot
As any competent JavaScript knows, it’s not cool to litter the global namespace with variables, functions, and the like. Occasionally, however, even closures won't help you trap a given variable.
-
EE Tip: Counting the results of a nested query
Nested loops in ExpressionEngine can cause all sorts of headaches, especially when it comes to dealing with "magic" variables like
{count}
. Thankfully, MySQL can help. -
Audio Spectrum Analysis in JSON
I thought I would post the source for the the Spectrum Analysis tool I created for anyone wanting a quick way to get some data from their favorite tune and perhaps figure out a way to use it in a optimized fashion.
-
Speeding up your code with the Bitwise Operator (&)
While building a Flash game, I wrote some code to alternate through squares on a grid system and it seemed rather slow. My code made use of the
%
(modulo) operator and, thinking that was the cause, I went in search of a better solution. I blew the dust off the Bitwise operator (&
) and researched what it actually does. As it turns out, this little bit of programming’s past can be quite handy.