Blog Archives

How to detect when ALL your nested includes have loaded their content in angularjs

angularjs provides an $includeContentLoaded event that is fired by every instance of the ngInclude directive whenever it’s content is (re)loaded. In situations where you have multiple nested ngIncludes, the event is of limited use since it is fiddly to detect

Tagged with: , , ,
Posted in JavaScript

How to stop Twitter Bootstrap modal dialogs breaking on browser history navigation in angularjs

Twitter’s Bootstrap modal dialogs are susceptible to a problem when used in conjunction with angularjs… when your users navigate using their browser’s history buttons or keyboard shortcuts (the Backspace key for example), they stay open. Because the scope from which

Tagged with: , , ,
Posted in JavaScript

Yet more JS wierdness – how to zero out (or just set) the time part of a date object

I love JavaScript, warts and all, but occasionally I stumble across quirks that are so unintuitive that I feel the need to write them down. Today, I needed to compare two dates, but without taking into account the time element

Posted in JavaScript

1989 Jeep Wrangler YJ radio / stereo wiring

My ’89 Jeep had no wiring harness / block so I needed to research how to connect it up to a modern ISO head unit. For anyone else in the same situation, here is what I found: removing the dash

Posted in Cars

Last day at Philips

Posted in Scrum

What? You tattooed code on your arm?

[OPPORTUNISTIC UPDATE] Since I’m seeing so many hits for this page, and since most of you are developers, I thought it might be worth trying to do a little blatant recruiting If you are an exceptional, passionate front end developer

Posted in JavaScript, Rants

IE, images and labels

Internet Explorer doesn’t handle clicks on images in labels: <label for="someCheckbox"> <input name="someCheckbox" type="checkbox" /><img src="aPrettyPicture.png" /></label> So, I did a quick Google to see how others have solved this issue, and the first hit was this site which included

Posted in JavaScript

Can Google see JavaScript content?

I made this simple page to test if Googlebot can parse content loaded or generated via JavaScript. There are two divs on the page – one has it’s content loaded via AJAX using jQuery.load() and the other using jQuery.html(). [update]

Tagged with: , ,
Posted in JavaScript

MacBook Pro SSD Upgrade: is it worth it?

I’ve been trying to find ways to make my late 2008 unibody MacBook Pro run faster because I want to hold out on upgrading at least until the end of the year, and preferably after the next range refresh. I

Posted in Hardware

Really? A glory hole?

I have just encountered my first (and probably last) video game glory hole. And not just any glory hole… one surrounded by graffiti depicting a woman (the hole is in her mouth) along with the words “yum” and “slurp”. And

Posted in Games