Dave Heavy Industries Dave Heavy Industries – blog

28Apr/110

Decoding Windows Script Encoder encoded scripts

Decoding Windows Script Encoder encoded scripts

isn't that a mouthful? Microsoft released this in 2001 - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e7877f67-c447-4873-b1b0-21f0626a6329 which is a way of obscurifying vbscript (like ASP) scripts so that people can't change or copy your code. Great, right? well, as with most script encoding  (zend encoder aside, others I'm sure), it doesn't do a very good job of it, and more makes it annoying to debug asp pages when the developers encode their includes.

25Feb/110

Distance between two points with curvature

The earth isn't flat. Sometimes you feel like over engineering a simple problem just because you can.

Late last year I put together a mobile web interface and used google maps for a store locator. I also had to use ASP Classic.
In the mids of this it struck me that a customer might find they were a few meters off from the actual distance from their current position, to what I'm reporting. Clearly this just won't do -so I re-worked it to compensate....in ASP CLASSIC, where most of the math is non existent.

enjoy!