KenKen Solver: Online!

I ported the Python KenKen solver I was playing with last week over to JavaScript, and wrapped a GUI around it. You can check out the resulting web-based KenKen solver, if you’re interested.

Continue reading

Posted in Projects, Python | Comments Off

Philip K. Dick

Philip K. Dick was a great SF writer. I think his short fiction, in particular, is extraordinary. Don’t be mislead by the mediocre movie adaptations of his stories. (E.g. “Total Recall”, “Screamers”, “Impostor”, “Minority Report”, “Paycheck”, and possibly one or two others that are not “Blade Runner”.) The original material is much more interesting, and often has a sense of fun entirely lost in the big-screen conversion.

Continue reading

Posted in Uncategorized | Comments Off

Bandwidth Pricing (Update)

Last year I compared storage and bandwidth pricing between S3 and a number of hosting providers. I thought it would be interesting to check in on the bandwidth market, and see (in a highly unscientific manner) how prices have changed over the past 8 months.

Continue reading

Posted in Web stuff | Comments Off

Tuples Are Slow

Python tuples (immutable sequences) can be much slower to work with than their mutable cousins, lists. This surprised me; I would have thought they would have been faster all ’round, as they seem “simpler”. That doesn’t seem to be the case.

Continue reading

Posted in Python | Comments Off

The Right Time for Bad Ideas?

There’s been a bit of a tiff between Jim Cramer, a talking-head and self-described Democrat who “favor[s] almost all of Obama’s agenda” and the White House. What I find most interesting in all this is a seeming dissonance in Cramer’s position.

Continue reading

Posted in Jack Handy | Comments Off

Efficiency

Efficiency is a nice thing. It allows one to do more with less. It is not, however, an unmitigated good, as efficiency is almost always expensive. The question of whether or not efficiency is a good thing must be evaluated in a holistic context, which takes into account not only the benefits efficiency brings, but at what cost those benefits were purchased.

Continue reading

Posted in Jack Handy | Comments Off

Wealth

A few thoughts on the (possibly controversial) subject of creating (or destroying) wealth. Wealth (and it’s cousin, “prosperity”) has been much on everyone’s mind recently, in light of the recent financial unpleasantness. I think that there’s been a lot of nonsense talked about it, and would like to present some of my understanding of the matter.

Continue reading

Posted in Jack Handy | Comments Off

A Neat Hack

I admit to being unreasonably pleased with the following trick: The KenKen solver we’ve built and tuned can be generalized to solve Sudoku, including jigsaw Sudoku, with a 9-character change to its source code.

Continue reading

Posted in Projects, Python | Comments Off

Python Performance Tuning (con’t)

Let’s wrap up our hunt for performance improvements in our KenKen puzzle solver. This sort of thing can go on nearly endlessly, of course, but after today I think we’ll have gotten most of the easy stuff, and seen dramatic gains in speed for our trouble.

Continue reading

Posted in Projects, Python | Comments Off

Python Performance Tuning (con’t)

Let’s continue tuning our KenKen puzzle solver. When we left off yesterday, we’d cut execution time by 30% with a one-line change to the program, but there is still much room for improvement.

Continue reading

Posted in Projects, Python | Comments Off