30 November 2006

elderly woman killed by cops

an old lady was killed by a police raid gone sour. once again, i'll point you to the botched raid map so you'll see this isn't an isolated incident, but is a consequence of relying on overly forceful measures.
The warrant was known as a no-knock, giving the police the authority to burst through the door without warning in order to prevent the destruction of drugs.
is nabbing drugs reason enough to kill someone, guilty or not?

fight global warming by building more roads

there apparently is a somewhat proven technology for combating smog. all one needs to do is build more roads. it might also work even better by reducing the amount of stop-and-go traffic that causes even more pollution.

27 November 2006

circuit city eats best buy for lunch, leaves room for dessert

many of you may know (or rightly suspect) that i hold grudges for extended periods against specific corporations known to suck. best buy is probably at the top of my list because of its terrible customer service and return policies. i usually take my business to circuit city just because i can't think of another place to buy stuff, but this time i was quite happy for it.

i bought me a brand-spanking-new mouse, all wireless and stuff with lots of buttons that make my screen jump. i chose this mouse because of the mail-in rebate (that i usu despise) that put its price below that of the wired version (that i prefer). i finished paying only to realize the rebate had expired. the nice lady at the register, Rita, gave me the discount at the register: no mail-in required. so simple, yet so not gonna happen at best buy.

supreme court sleeps while rome burns

scotus has refused to hear a case against religious descrimination by the state of maine. eight families are eligible for voucher monies but for the fact they chose to send their children to religious schools. the government's job, whether federal, state, or local, is to remain neutral to religion, not to oppose it. after the fiasco of the Kelo case, i can't say i'm surprised by this nonsense.

25 November 2006

regulatory monopolies are bad... mmkay

when a government assumes full regulatory authority over a certain market, perhaps in a sincere attempt to improve health or fight corporate fraud, it frequently, and sometimes necessarily, creates a policy monoculture that prevents the flourishing of ideas in favor of political expediency. central planning has proven itself time and again to be unresponsive to technological change, scientific fact, and reality.

as the FDA decides what "organic" means for us, we lose sight of what we may actually consider organic, yielding the decision to the "organic" farming industry since they are the players with the cash and therefore influence. this is one scenario in which i would prefer to have distinct certifying authorities that might conform to my higher standards of organic.

when the EPA decides for us the "acceptable" level of specific chemicals in our drinking water, we have only ourselves to blame for putting our fate in the hands of corrupting political influences. companies like Union Carbide or Du Pont ultimately decide what is legal for themselves through the purchase of influence and the drafting of legislation. i do not to want to ingest any arsenic.

people who think free markets necessarily benefit corporations at the expense of the people suffer from a profound lack of vision, prefering to hand power over to the powerful. it is full time to re-sieze our natural rights and responsibilities.

there is no spoon.

23 November 2006

free market health care in India

by way of Jason Yip's blog, i found an article about an Indian doctor who has been helping the poor in India for little or no money, but still manages to turn a profit.

Since opening day in 1976, Aravind has given sight to more than 1 million people in India. Dr. V. may not run a business, but it's important to note that Aravind's surgeons are so productive that the hospital has a gross margin of 40%, despite the fact that 70% of the patients pay nothing or close to nothing, and that the hospital does not depend on donations. Dr. V. has done it by constantly cutting costs, increasing efficiency, and building his market.

It costs Aravind about $10 to conduct a cataract operation. It costs hospitals in the United States about $1,650 to perform the same operation. Aravind keeps costs minimal by putting two or more patients in an operating room at the same time. Hospitals in the United States don't allow more than one patient at a time in a surgery, but Aravind hasn't experienced any problems with infections. Aravind's doctors have created equipment that allows a surgeon to perform one 10- to 20-minute operation, then swivel around to work on the next patient -- who is already in the room, prepped, ready, and waiting. Post-op patients are wheeled out, and new patients are wheeled in.

makes one wonder why we need as many regulations as we have. perhaps it's the means of providing health care in this country that has led us to ignore costs so easily. where is the incentive to drive down costs?

22 November 2006

javascript StringBuilder

i've seen way too many cases of developers using string concatenation in javascript, especially directly on the innerHTML property of some DOM node. here's a javascript StringBuilder that should give you the same sort of boost you might find in java or c#.

function StringBuilder() {
this._strings = [];
this.append = function(s) { this._strings.push(s); };
this.toString = function() { return this._strings.join(''); };
it uses the built-in speed of the join and push methods and avoids the constant re-allocation of memory. i'm betting it's faster, too.

pass the Dutch on the left hand side

leave it to the Dutch to advance liberty in mind-blowing leaps. if it works, i think there will be positive proof that fewer rules actually make for a better society. it also leaves law-makers free to concentrate on things that actually matter.

frizzled leek haystack

went with wife to the Monet exhibit Monday night, finishing with a meal in the museum eatery that featured a frizzled leek haystack. all said, Monet is one the all-time greats. frizzled leek haystacks i could give or take.


the metrics gathered with a large confirmation bias (or act of gathering same) used to justify an outcome.

19 November 2006

mourning Milton Friedman

rock star economist and good joe, Milton Friedman, has passed this past week. his genius won him a nobel back in '76 for his work in monetary theory. Friedman will best be remembered by Cato and like groups not just for his insistance that the role of government in controlling the economy should be severely restricted, but for his staunch libertarian views about the limits of government in general. his latest schtick, with his wife, Rose, has been about the advancement of school choice in the US.

18 November 2006

good triumphs 42-39


i suck at golf

yesterday i played my first game of golf in many years. turns out i suck more now than i did then. i also appear to have the golf equivalent of a wooden tennis racket when compared to the other fellows, who were all swinging a titanium suitcase at the end of a stick. i managed to hit five or six decent shots in a best-ball style tournament, only one of which was a tee shot.

the important thing is that my team won. even with a lead anchor around its neck. maybe i am now motivated to learn myself how to play better.

17 November 2006

Crum Trail

named after the intrepid pioneer, Mr. Trail, who mastered this pattern in Swing apps, the Crum Trail is essentially a global rendezvous point for segments of an application to share data. the Trail may consist of "context" objects, hashmaps, more "context" objects, and more hashmaps.

props to Chris'O, who no doubt will want me to refine my definition.

The Free Lunch Project

mockery has hit a new high with the Free Lunch Project, which seeks to mirror the Free State Project by finding and re-locating 20,000 like-minded free-lunchers. probably the best nugget is the subtitle: "Dependence in Our Lifetime."

swedish pop

not since ABBA.

i've been finding a slew of good music, including some of my now-favorite bands at Labrador: [ingenting], Sambassadeur, Acid House Kings, Club 8. check out some of their free mp3s.

14 November 2006

Pattern Tourette's

The "architect" sitting next to you throws out pattern names and technologies in order to squash your puny intellect. Or maybe just hopefully make himself sound less like an eejit.

  • Fowler
  • facade!
  • um... decorator!
  • DATA CLOUD, beyotch!

why your kids are dumb

"As Math Scores Lag, a New Push for the Basics," brought to you by the NY Times, spins a yarn about the central planning group that gave us fuzzy math back in the day so our kids could feel good about themselves rather than be smart. this same group is now reversing itself, realizing that stupid kids is stupid.
Many parents and teachers remain committed to the goals of reform math, having children understand what they are doing rather than simply memorizing and parroting answers.
i'm not sure how switching to fuzzy math is supposed to accomplish anything different if the kids have the same teachers. seems to me it's the teacher's job to marry students with techniques appropriate to each as an individual. i am a product of public shooling, start to finish; my teachers were wonderful and managed to make me a super-genius without resorting to education fads.

mmmm... free coffee

The American Spectator has an article that links two of my favorite themes: school choice and coffee. The author attempts a five-minute lesson in economics and market forces as related to $4 lattes and central planning.

13 November 2006


Wikipedia defines lysis as "the death of a cell by bursting, often by viral or osmotic mechanisms that compromise the integrity of the cellular membrane." In [my] patternspeak, Lysis is the bursting of a class such that all of its responsibilities lie external to the class, though the class retains its data.

  • Domain classes resemble C structs or data clumps
  • Behaviors of domain entities are expressed in other classes, generally Controllers or Managers

Alien Abduction

aka Function Bucket with Cheese

When a class has all of its innards exposed as public methods, but requires those methods be called in a specific order such that correct behavior is exhibited, we call it Alien Abduction, from the idea that some external intelligence seeks to understand an entity's function by probing and exciting muscles.

  • all or most methods on a class are made public in order to test the class (if you're lucky)
  • multiple constructors are available, depending on the intended use of the class
  • there is an implicit required order to method invocations, though the order is not expressed clearly
  • public methods are available that make no use of the state of the object

12 November 2006

school choice as liberal policy

democrats have long been beholden to teachers unions and other special interests that rate a louder voice in education policy than parents or other citizens. that may be about to change. cato quotes NY governor-elect, Eliot Spitzer,
I do not think that the prospect of change in [education] is enhanced by the abandonment of pluralism and choice as liberal ideas and liberal values. If that happens it will present immense problems for a person such as myself who was deeply involved in this issue long before it was either conservative or liberal. And if it prevails only as a conservative cause, it will have been a great failure of American liberalism not to have seen the essentially liberal nature of this pluralist proposition.
i can imagine democrats now taking up for school choice as a rhetorical means of promoting equality of opportunity, if not as a pragmatic solution to crappy education policy. education tax credits offer a tasty way out of blustery deadlock. perhaps my kids will grow up in a nation ignorant of newspeak.


one of my [many] peeves in scientific programming is a lack of units in calculations. recentlyish, i was subjected to a database that was supposed to provide molar concentration. rather, the data was expressed in mg/L, which, as any schmoe knows, is no good without molar mass. of course, that data was not present.

so why do people tend to leave out units when performing calculations? i guess it's easiest to deal in double-precision numbers than units. it's a sad state indeed. enter ruby-units. i don't do much of anything with Ruby, but i dig the idea of this library. i'm thinking i may try my hand at writing or porting this baby to jæva/.NET.

thanks, Alan.

the beauty and future of electric cars

i've been following with great interest Tesla Motors' advances with their electric sports car, which borrows heavily from the Lotus Elise. i'm hopeful their business plans work out well, and i can only assume they will, given the current energy climate.

i've been discussing the benefits of electric cars with hybrid owners, some of whom don't necessarily agree with my estimation of the superiority of the fully-electric car. my thinking stems partially from my knowledge and experience in software development, that has taught me that loose coupling is a good thing. keep in mind that the only means of inputting energy into a hybrid system is through the gas tank. as the doods at Tesla so correctly point out: "A world of 100% hybrids is still 100% addicted to oil."

by providing a means of decoupling energy consumption from energy generation, we can more effectively control environmental concerns. for example, electricity generated by a coal-fired power plant, while still polluting, is less of an environmental burden per kWh than your run-of-the-mill hybrid engine. but we can also more easily handle the pollution of a plant than we can thousands or millions of vehicles. it is green generation that we want to distribute. a plug-in hybrid would be a great intermediate step, if i could ever find one.

if we can focus on a greener future that harnesses more efficient versions of existing technologies (coal, solar, wind, geothermal) or even fusion--or as yet unknown techonolgies--one can see that burning carbon needn't be so universal. solar cells on every rooftop in the nation will not make us any less dependent on foreign oil unless we move away from oil-burning transportation.

so anyway, the Tesla plan is to start at the top of the automotive foodchain to gank dollars for creating ever-cheaper cars in order to bring electric vehicles to the masses. i can't wait until i can vote with my dollar.

11 November 2006

Turkish Prison

aka Tower of Babble

Turkish Prison describes an application that is poorly written, but has been made "easier" to maintain by the use of Hungarian notation and "standard" abbreviations. some authors prefer "meaningful" prefixes rather than classes that can isolate functionality. their work creates a prison of horrid code that constrains enhancements and fixes.

  • variables have fossilized prefixes that convey no meaning other than type
  • variables are declared far from where they are used, making method extraction more difficult
  • end-line comments attempt to explain the meaning of variables rather than appropriate names
  • the author of the code was unaware that alphabets have "vowels"

new charming album released

charming have released their long-awaited album, Turn Down the Lights, available from sakistore.net and (soon) itunes. if you dig smiths-influenced pop, you'll dig charming. one can check out sample tunes at their download site.

inaugural post

rather than say something clever or profound, i thought i would simply indicate my presence. for those of you who may have followed me from my previous host, i will probably attempt to import everything from the old site once Google has finished that functionality.

as ever, if you have a good idea or name for an anti-pattern, please let me know. the more all of us can mock inept practices, the more likely we can effect change.