Category archives: Knight Errant

Questing and jousting and other entrepreneurial details

RSS feed of Knight Errant

Java Jokes

So I ran across a snippet of code today in a Java codebase:

additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(START_COMMAND, "Start Cluster"));
additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(STOP_COMMAND,  "Stop Cluster"));
additionalCommands.add(new XYZAdminClientMenuItemAdditionalCommand(MON_COMMAND, "Start Monitor the Cluster"));

which, to any Python programmer looks like someone is pulling your leg.

Here's a Java version that doesn't seem quite so crazy to a Python programmer:

protected static ...

Continue reading

Free Million-Dollar Idea of the Day

Add a SquareMap-style visualization to accounting software, instant visualization of your entire company's expenses, revenue, budget, etceteras.  Perfect for including in reports to CEOs, Shareholders and the like.  For bonus marks, make it explorable, with a web-based tool to which I upload simple tree-structured data-sets.

Learning Curves

Sat down to clean up some dojo widgets for a project today.  Basically these are "explorer" like collections of sets-of-things, with the desire to allow for filtering the set, viewing a detailed-list view, you know, standard stuff.

So I figured I would work on the detail-list stuff.  It's a simple grid control, dojo has a ...

Continue reading

Expanding Micro-Tasks are Demotivators, Communicate your Strategy

Imagine you have to wait 2 minutes before you can do something you need to get done, it's otherwise wasted time so you decide to work on some trivial task, say sweeping the floor, or washing the two or three dishes in the sink.

You start washing dishes, and someone sees you doing it.  To ...

Continue reading

Back from the Tropics

Got back from the Caribbean on Saturday morning.  Wound up sleeping most of Saturday and Sunday to recover (somehow working down there was way more exhausting that working up here, though being sick and not sleeping well might have been part of it).

Spent yesterday on personal errands, little cleanup tasks for various projects, and ...

Continue reading

But I just need 1 little function...

I'm working on a side project at the moment, just a clean-up for an old customer who was acquired and needs to be migrated off our old systems and onto their parent company's systems.  To do that, we need to make a single, simple calculation.  About half of the time so far in the project ...

Continue reading

Channeling...

Been thinking a lot lately about how to direct my energies into socially beneficial channels.  I'm still reasonably convinced that we need to focus on education, without that you're pretty much doomed to fall back into chaos with every blow.  I'm also reasonably convinced that some of the things that need to be taught are ...

Continue reading

TurboGears Weirdness (Validators don't Run)


Ran into a weird situation with TurboGears validators on a client project. It seems like they're just plain broken for the most common use case, at least one other user seems to agree. That's disturbing me primarily because it means I'm somehow "missing" the normal pattern for validator usage (people can't be using them in ...

Continue reading

Mind Numb (22.5 billable hours in two days...)


Have had high-priority issues show up half-way through two days in a row now, pulling me from one client to another. Result has been 11+ hours billable each day (on top of not being particularly rested from the weekend). I'm getting well toward mind-numbed.

Some (tired) thoughts:

Pre and post condition checks are good things ...

Continue reading

C++ and Accounting (Not as exciting as you might think...)


Spent the whole day on C++ memory-leak hunting. C++ really is a tool that no-one should use without some mechanism to take away the memory management. Without automated handling it's just way too easy to lose track of a reference and wind up with a couple of hundred KB lost.

Got some book-keeping stuff taken ...

Continue reading