January 3, 2008

WinXP Shortcut Trick

Filed under: Tech — Mike @ 1:35 pm

In my law practice, I keep all of my client files in one “clients” directory on our server. However, there are hundreds of files in there, but typically only a couple of dozen that I’m actively working on. So, I keep an “Active Cases” folder, which contains shortcuts to the active cases. To add a case to the “Active Cases” folder is a two step process - right-click and create shortcut, then right-click and “Send To Any Folder” (a Windows PowerToy - Google it if you’re interested, it’s pretty handy). However, I wanted to streamline this even more, so that I could create the shortcut and send it to the “Active Cases” folder in one fell swoop. I finally figured out how to do it, so I figured I’d share the technique with the world. (more…)

October 25, 2007

More != Better

Filed under: Tech — Mike @ 11:58 am

My dad sent me an article recently about some sort of software package that (assuming I read the article correctly, it was pretty dense) allowed you to develop web applications that were more extensible by the user, thus presumably moving web apps closer to traditional desktop applications in terms of functionality. That sparked a return email tirade over why I think that’s stupid. When I was done, it occurred to me that it would make a decent blog post, so here it is. (more…)

May 30, 2007

Global Warming Redux

Filed under: Politics — Mike @ 4:51 pm

I’d like to thank Scott Adams (creator of the Dilbert cartoons and all-around philosopher) for removing any need or incentive I may have for further posts about global warming any time in the near future:

Adams on Global Warming, Part 1

Adams on Global Warming, Part 2

Adams on Global Warming, Part 3

Adams on Global Warming, Part 4

May 25, 2007

Agricultural Subsidies

Filed under: Politics — Mike @ 1:11 pm

The Christian Science Monitor and the Cato Institute have recently run op-eds that have prompted me to write about something that has often occurred to me in the past about agricultural subsidies. Without belaboring the details, the government pays huge subsidies to farmers, who then grow less than what they are capable of growing, which in turn raises the commodity prices of various agricultural goods. The fact these programs are effective demonstrates a basic economic truth about agricultural markets - if allowed to be purely competitive markets, the equilibrium price for the otherwise-subsidized goods would be much lower, to the point that many farmers would likely face poverty. However, I submit the subsidy programs are a bad idea. (more…)

May 11, 2007

Fuck the Elderly

Filed under: Politics — Mike @ 4:47 pm

Nuff said.

Clutter

Filed under: By the Way... — Mike @ 3:12 pm

As any of you who have been reading this blog have probably figured out, my brain is cluttered with more useless crap than I can objectively measure. Predictably, my home - and especially my home office - and how I live are an unfortunate reflection of that phenomenon. Earlier this week, something in my head snapped. I am going to slay this clutter dragon now if it kills me. (more…)

JavaScript: precision_round(), dollar_value()

Filed under: Tech — Mike @ 1:34 pm

More geeky shit today. JavaScript has a Math.round() function, but no convenient way to achieve a precision round. So for example, if you have a value of 8.942 and you want to round it to 8.94, you have to do some more math in your code. This handy little function lets you do that a little more easily.

Building on that, here’s another function I wrote that’s pretty handy for expressing numbers as formatted dollar values, complete with commas for values above $1,000. You can call this function one of three ways:

var v = dollar_value(); // $0.00

var v = dollar_value(3.4); // $3.40

var v = dollar_value(3.4, ‘€’) // €3.40

Here’s the dollar_value() function.  Note you need the precision_round() function for this to work.

May 4, 2007

Iraq - Or, What Happens When You Stop Blaming People

Filed under: Politics — Mike @ 3:36 pm

Here’s an article about the Iraq situation that I think is superbly written, and to date I don’t think I’ve read anything on this matter with which I find myself more in agreement. And it’s an interesting position to take, too. For those too lazy strapped for time to read the article, the gist of it is that the Democrats could achieve their supposed objective - ending the war - by shifting their focus from “it’s a failure, we should cut our losses now” to “we accomplished what we set out to do a long time ago, so now we can bring our troops home and celebrate our victory”. By so doing, Niskanen argues, enough Republicans could be convinced to essentially change sides. The interesting aspect of this to me is that it highlights something I find at once obvious and little-known (or at least, little-appreciated). (more…)

May 3, 2007

JavaScript Shuffle_Table() Class

Filed under: Tech — Mike @ 12:06 pm

Geek post today. I have developed a cross-browser JavaScript class that adds drop-down “shufflers” to a table which will allow the user to change the order of the rows in the table on the fly. (more…)

April 27, 2007

Thinking Green…

Filed under: Politics — Mike @ 2:15 pm

This is interesting to me. I am more and more coming to the conclusion that global warming, if it exists is a problem, is not understood properly enough for us to discuss rational solutions. There just seems to be too much junk science and disagreement about the causes at this point. I do appreciate the so called “green architecture” movement, and I think we need to do more of it.

I also think we should focus more on recycling. Critics of recycling tend to focus on two problems - it is not cost-effective, and it is not convenient. Assuming most of us agree recycling would be good but for these two problems, I have a solution: we should build prisons next to landfills and require prisoners to separate trash. Reclaimed material would then be auctioned off in lots once a month by the government. Two things that no one wants to live near would thus be located in the same place, and society can realize the gains of recycling at almost no cost and with no additional inconvenience.

Any holes in this theory?