In the ever-escalating war, I stumbled into perhaps the most overbuilt flashlight-mount-cum-bike-headlight ever conceived. The first key component is an LED-based flashlight like the one I first mentioned in my old headlight shootout. You don't necessarily need the same flashlight, but the key is to find one using that case design ("form factor", I think it's called). For example, here's one on Amazon (and as usual, if you go buy it, I get a cut -- at least in theory, since no one's ever bought anything off one of my links yet):
One insanely stable, difficult to remove headlight mount. I happened to have a very stubby, upjutting stem lying about, but any old angle or extension will do. I also would have preferred running the stem hanging down from the bars, but I had some cable interference issues there.
The obvious comparison is the Twofish Flashlight Mount (hey, look, another Amazon link). I've used this, and found it unsatisfactory -- no matter how hard I cinched the Velcro, there was too much jiggling for my taste. Obviously, the stem is 100% jiggle-free. A stem is more expensive, so I probably wouldn't buy one just to do this, but since I already have a pile of them, it was a no-cost experiment for me.
In my old headlight shootout post linked above, you can see that I did basically the same thing using two hose clamps turned 90 degrees to each other plus some rubber shims. That was a decidedly cheaper (and equally stable) approach, but I'd run out of hose clamps and didn't want to make a dash to the hardware store. The stem looks nicer, too -- more elegant, less hacked.
Of course, the day after I hooked this up, the headlight-thieving jerk unscrewed the lens from my flashlight and took it -- not sure what he hoped to do with it other than annoy me, but if that was the goal, mission accomplished. I've since resorted to easily-removable lights that I can take with me during the day, but I thought that this hack deserved to live on in Web-based infamy.