grack.com

2004 January

Unit Testing Redux

I’ve been a big fan of unit testing for a while (ever since the first releases of JUnit) but I haven’t been up-to-date with the latest technology.  To be perfectly honest, I hadn’t expected anything else to appear after unit testing was first popularized.  That’s why I was surprised to come across an off-hand reference to “Mock Objects” a few days back.  Basically, Mock Objects are a true way to test an object “in a box” - ie: completely separate from the rest of your system.

Stereo Anaglyphs from Mars

I’ve had trouble with a lot of the stereo anaglyphs that NASA’s been publishing.  Most of them seem to have a stereo separation that is completely incompatible with my brain.  I finally found a few images that actually work with my red/blue glasses (from this page):

The trick is to tilt your head just right.  If you find that you’re seeing a lot of shimmering, trying relaxing your eyes and focussing on infinity - it’ll be easier to find the correct head angle that way.  Oh yeah - move the mouse pointer off too.

Ideas and Ideals

… fantasies have to be unrealistic. Because the moment, the second you get what you seek, you don’t, you can’t want it anymore. In order to continue to exist, desire must have it’s objects perpetually absent. It’s not the it that you want; it’s the fantasy of it. So desire supports crazy fantasies. This is what Pascal means when he says that we are only truly happy when daydreaming about future happiness. Or why we say the hunt is sweeter than the kill, or be careful what you wish for. Not because you’ll get it, because you’re doomed not to want it once you do.

So the lesson of Leccan is, living by your wants will never make you happy. What it means to be fully human is to strive to live by ideas and ideals, and not to measure your life by what you’ve attained in terms of your desires, but those small moments of integrity, compassion, rationality, even self sacrifice. Because in the end, the only way that we can measure the significance of our own lives, is by valuing the lives of others.

nprof 0.9 plans

Just to keep those reading the front-page news up to date, 0.9 is in development and should be out once we’ve finishing implementing and polished up some of the neat new features that will be in this release:

  • Josh’s awesome new ListView control - including, but not limited to:
    • quickfiltering
    • custom and multi-line headers
    • column reordering
    • generally nicer look than before
  • Project loading/saving (also courtesy of Josh)
  • Ashwin’s back/forward navigation code
  • A new toolbar (hasn’t been started yet, but needs to go into 0.9)

There are two known bugs that I’m hoping to get fixed for 0.9 as well:

Tech Blogs and Politics (and Other Non-Tech Related Posts)

Twice this week I’ve seen a situation where a popular blogger has been pestered by his readers to change the content of his blogs.

Last week, Chris Sells (of MSDN fame) posted an article entitled “Bush: Get Your Own Dream!” with his views on space exploration and foreign oil dependence.  There were two particularly asinine comments made:

Unsubscribed. Just lost a ton of respect for Sells. “nuff said”

and

nprof 0.8b released

The nprof 0.8b alpha release is now available. This release should fix the ASP.NET profiling problems that have come up during the 0.8 release cycle.

nprof 0.8a released

The nprof 0.8a alpha release is now available. This fixes two bugs in the 0.8 release:

  • nprof wouldn’t close completely when clicking on the close box
  • ASP.NET profiling wouldn’t work if you didn’t have an Environment key for your W3SVC or IISADMIN services

NOTE: I recommend setting up ASP.NET to run under the SYSTEM account for profiling only. Once you’ve finished profiling, you should set it back to use the “machine” user. As before, these XML attributes are available in your machine.config file.

nprof 0.8 released

The nprof 0.8 alpha release is now available. Changes in this version are:

  • Basic ASP.NET profiling - note: ASP.NET must be running as SYSTEM!
  • Profile run message display
  • Detection and graceful handling of failed profiling runs
  • New icons for application and successful project run
  • Drag-and-drop of executables to the project tree (Josh)

To profile your ASP.NET application: