Posts tagged with “hack”
Twitter account suspended
Aw man. I got hacked (or something) and an obviously spam message got posted in my twitter feed. Of course, I’ve had my account suspended, pending investigation. I should be back up within a month, according to twitter. I don’t know whether the error is twitter’s or mine, but needless to say every place where I used the same password as for twitter has been changed, just in case. All in all, not as painful as it might have been, I guess!
A quick javascript hack to fake adjusting HTML5 audio elements' timeupdate event frequency
I was trying to make a bunch of elements change position as an audio file played, using a snippet something like:
$(audiohtml).bind("timeupdate", onAudioUpdate);
$(audiohtml).bind("play", onAudioUpdate);
$(audiohtml).bind("pause", onAudioUpdate);
function onAudioUpdate() {
// Move the elements here
}
But the trouble was that the audio element’s timeupdate event only fires once every 200ms or so on my browser (this is set by the HTML5 audio specification and isn’t modifiable as far as I know).