36 Chambers – The Legendary Journeys: Execution to the max!

November 30, 2007

At Least He Has Guts

Filed under: Curmudgeonliness, Economics, Keeping Cool With Coolidge — Kevin Feasel @ 6:25 pm

John McCain came out in Iowa against farm subsidies. He is, as far as I am aware, the only legitimate Presidential candidate (sorry, Ron Paul, but you’re about as legitimate as Dennis Kucinich) to do so. Ramesh Ponnuru, in addition to noting this, also points out that federal taxpayers subsidize primarily only a few products, and the others do pretty well on their own.

Agricultural subsidies are absurd for several reasons, but there are two which make them crazy. The first, as Stephen Spruiell points out, is that the US is a major food _exporter_. Agricultural subsidies increase the supply of food because that’s what happens when you subsidize an action: you get more of it. For example, milk (and still is) was a subsidized product in the US, leading to major increases in the supply of milk and thus a collapse in prices. The federal government, deciding that the correct solution to breaking somebody’s leg is to break the other one as well, bought up large amounts of milk and turned it into cheese. This is the origin of the phrase “government cheese.”

The other thing that the federal government does is, upon figuring out that subsidies really do increase supply, is to then pay farmers not to produce food. So now, not only are we paying farmers to produce food, but we’re also paying them not to produce it at the same time!

But the richest part of farm subsidies is how, when you think about them, you get the image of a hearty American farmer, living off of the land that his family has owned for generations, just needing a little help to continue this great tradition. In reality, those guys get a small portion of the money; instead, corporate megafarms and Congressmen are big benificiaries. I have nothing against corporate megafarms, but neither am I a fan of corporate welfare, and farm subsidies turn out to be just that. Well, that and kickbacks for Congressmen who write the laws…

It’s just a shame that McCain has burned too many bridges on too many issues for me to support him.  If any of the other candidates were to come up with this as well (hint, hint, Fred Thompson), it would push me more in their direction.  Unfortunately, Rudy Giuliani and Mitt Romney spent last night seeing who can try harder to keep the kickbacks and government handouts to big corporations going…

November 29, 2007

Spies Required

Filed under: Uncategorized — Kevin Feasel @ 10:58 pm

Jianhong is currently out of Freiburg.  This means that I need spies to keep tabs on her and kill…err…”handle” any secret boyfriends she might have.  It’s the only way.

November 28, 2007

Is It Too Late To Change Everything?

Filed under: Programming & Work — Kevin Feasel @ 8:04 pm

It’s a good thing that we were planning around changes at work, because we ended up getting a few of them today.  The biggest thing is that we discovered that two things are really the same.  There is one formula which gets used twice, but because the second instance we found in the old program was nothing more than test data, we disregarded it and thought it was something new that we should just ask about later.  Err…yeah…it turns out that this rate was actually the same as another rate.

After finding that out, we also discovered that five quarters of data are actually wrong, and were knowingly wrong.  For 2 quarters of 2003 and 3 quarters of 2004, the federal government set up Medicaid billing differently than otherwise, instituting a temporary increase in their percentage collected.  In the data setup at work, however, they only have the “regular” rates and not the temporary increases, meaning that the setup that we would like to use will end up being wrong unless we correct the data before it gets to our program.  That should not be incredibly difficult but will be a hitch once we get to the 2003/2004 data.

Then, on top of that, I ended up going through a database restructuring because it turns out that I did not normalize things as well as I had hoped.  I thought that I could have a one to one relationship between two tables, but it turns out that it really should be one to many because otherwise, I would be repeating the same data up to 36 times, and that’s not very good…  This required that I rework my views as well.

Also, it turns out that the way that we tracked information up to 1999 differs slightly from the way that we did things from 2000 through 2005.  The structure is similar enough that we are using the same program, but some of the calculations change slightly.  The unfortunate thing is that this means that my already-complex view became significantly more difficult.  I actually had to write a developer document in order to remember what’s going on in the event that I have to maintain this query.  And heaven help the person who has to maintain it if it’s not me…

All of this means that I did not really accomplish much today in terms of writing my program to write a program (stored procedure).  I did get the syntax basically down and came up with a query which works for  the first step (out of about 5), and because I have the original data which came with all of this, I can compare my output to the original data.  Basically, I am trying to recreate the original data, and if they match up, I will know that the logic is correct and I can continue and include the new and interesting data which exists solely in the table.

November 27, 2007

Now Tony And Linda Cohn* Will Have Something In Common

Filed under: Science!, Wacky Theories — Kevin Feasel @ 7:13 pm

There are some great things which have received patents.  This Cracked article picks up a few of them, but the one I enjoy the most is #2.  The tenuous link between Tony and Linda Cohn is below the fold.  See if you can guess what it is!


Programs To Make Programs To Make Programs!

Filed under: Programming & Work — Kevin Feasel @ 6:54 pm

At work, we are using CodeSmith to generate a lot of code for our projects.  This got me making a joke about creating a program to make CodeSmith templates, and a fellow I work with was discussing how he made a website for a company he was contracting for:  he had to make the program in Lotus Script, which would output Javascript, and the Javascript would create the HTML.  “Why didn’t you use Ada to write the Lotus Script program?” I asked…

Then, just because everything wraps up somehow, I ran into a similar situation today.  For a project I am working on, we have a bunch of long, “fat” tables that I want to break down into normalized, “skinny” tables.   Basically, one old row can become between 1 and 36 new rows.  To actually move the data over, I am going to use a SQL stored procedure.  But to actually write the stored procedure, I’m going to write a C# program because it follows a repeatable logic.  I will not use CodeSmith to write the C# program…

November 25, 2007

Whither American Rail?

Filed under: Economics — Kevin Feasel @ 8:26 pm

Megan McArdle has a post asking why we don’t really have much fast rail in the US.  There are some good posts in the comments, but I would like to take a crack at it.

In Germany, a normal ICE train generally goes about 100 MPH most of the time, dropping speed when it gets near cities, and a bit faster in fields.  ICEs have an expected speed of about 120 MPH for standard operation, so that’s about what you could expect an American train to do.   Also, German rail is heavily prioritized toward passenger travel, with freight a distant second.  In the US, meanwhile, we ship a larger percentage of goods via freight than Germany (which mainly uses trucks in-country).  Thus, German trains have to run on a relatively tight schedule, as people must make expectations that the train will be there at a particular time and will get to their destination at another particular time.  But in the US, trains do not have to run on such a tight schedule—what’s the difference if wheat or automobiles or coal gets to its destination a few hours or a couple days later?  Because of this, American trains do not run as regularly, but do run at higher car capacity, and that’s the logistical trade-off you have to make.

If you want high-speed rail across the US, then, you can either rejigger the entire system or set up a second rail system.  Given the general characteristics of the US (huge, generally flat, generally empty spaces with low-density housing), rail-based freight is quite advantageous for cross-country, interregional, and extended intraregional travel, meaning that you would not want to dismantle a functional system.  Thus, it would be better to build a new line, if such a thing is feasible.

The next step to consider is density.  Again, countries like Germany and Switzerland are very popular in these kinds of discussions, but there’s something important to think about:  Germany has 80 million people in an area roughly the size of Ohio, Indiana, and Illinois.  In comparison, the three states I mentioned have about 30 million between them, and includes the #5 and #7  states in terms of population (as of 2003).  The Chicago metropolitan area alone is responsible for over 9 million, and Chicago itself has a population of 3 million.  This means that a third of the region already lives in the Chicago area and would not have that much use for a lot of fast rail, and they already have some amount of metro rail.  The upshot of this is that it could be difficult to have a decent set of rail lines.  You could probably run a 3C rail line from Cleveland-Columbus-Cincinnati, link these off to Indianapolis through Dayton, and then run to Chicago and Urbana-Champaign (like Amtrak already does), maybe throwing Toledo and Gary in a second line going through Cleveland.  Whether this would actually be profitable or not is another story, but these are the only lines that I could really think of, as I’m having trouble coming up with many other potentially profitable opportunities.  In Germany or Switzerland, meanwhile, you have a lot of people living in a relatively small area, so there is a much larger population base for rail travel.

Third, we have to think about distance.  Very few people are going to take a train from New York to LA, given that it would take at least two days to run.  Instead, you’ll just fly there and take a few hours.  On the other hand, inter-city travel within a region is a possibility.  As I noted, an Ohio-based rail line would probably touch 5 Ohio cities and link to Chicago, Indianapolis, Pittsburgh, and Louisville (as well as that state up north, I suppose), but I wouldn’t see many people going by train much further than that.  Once you start talking about Philadelphia, Milwaukee, St. Louis, Atlanta, or maybe even Chicago (it would be kind of on the edge), it starts making more sense just to fly.  After all, it’s a one-hour flight from Columbus to Chicago and a similar flight to Philadelphia.  At the same time, it would be about a five-hour drive to Philly and 6 hours to Chicago (depending on how far into town you want to go), so estimate 4 hours by train to Philadelphia and about 5 to Chicago.  In Germany, it takes about 5 hours to go from Freiburg to Berlin via ICE, and at this point, it starts making sense to take a train down to Basel and fly to Berlin (and it usually turns out to be cheaper that way).  So this would appear to be the limit as far as how long the average person could stand riding in a train, given the option of air travel.  This means that we would not have cross-continent fast rail, and there are big swaths of the midwest and southwest that would not be profitable at all, given the extremely low density of most of the US.

Our next step is to figure out how to build the lines.  It would make sense in the non-eastern-seaboard areas basically to follow the highway and build around that way.  For example, Cleveland-Columbus-Cincinnati and Pittsburgh-Columbus-Dayton-Indianapolis would be relatively easy to set up, given that there is a lot of flat land and highways already there.  Going through the cities would be more difficult, though, and would be rather costly.  Then, on the eastern seaboard, you have to deal with the Boston-NYC-Philadelphia-Washington-Norfolk mess.  Yeah, that’s probably a profitable line, but McArdle points out that the existing track is twisty-bendy.  This doesn’t even mention the difficulty in getting the land to build straight rail through the region, where land is much more expensive and more-developed.  It is possible, but would involve a lot of land purchases.

Finally, you have the issue of location and time saved.  In Columbus, for example, I could see a train station somewhere near the airport and basically looping around the town to avoid cutting through swaths of existing buildings and roads.  The upside to this is that it would be feasible and not extremely expensive, but the downside is that such a plan would cut down on the likelihood of travel.  For example, I live slightly southwest of Columbus, meaning that I have a good head start on the way to Cincinnati or Dayton.  Even though a train can go faster than I, once you factor in the 30+ minute drive, time spent parking, time spent waiting, time spent getting the train going to full speed, etc., I could beat it to those cities.  Going to Cleveland, Pittsburgh, Detroit, Toledo, Indianapolis, or Chicago is a different story, and Louisville would probably be a wash (given that such a train would stop in Cincinnati), but if I’m going to fly to Chicago anyhow (which I personally would), it basically means that there are three or maybe four routes that I would ever ride, and given the low density of most American cities, this holds for a lot of people.

All in all, I could imagine a few profitable routes, but even my Midwestern Express would have difficulty getting off the ground, I think.  Fast rail is an interesting idea and, if it is cheap enough, could be a nice mode of travel for college students who go to a regional school (like I did, going to Dayton), but rail is not a particularly cheap mode of travel—even when you receive major subsidies, like German rail companies do—is not particularly fast, and would have difficulty serving a lot of people efficiently.  To make one final comparison to the German setup, pretty much every German who lives in a town (no matter how small) will have access to a rail station and a train at least once every two hours.  A fair amount of traffic from Berlin to Frankfurt actually comes from people who live in neither city, but rather in a smaller city in the region and who are serviced by slower, local trains.  These trains almost always run at a loss and would not exist in an American setup.  This means that any potential rail setup in the US would involve driving to a fairly major city’s rail station.  Even if you suppose that each city could have two or three stations, somebody who lives in a smaller town would have to drive a fairly long way just to get to a train station, so my hunch is that intercity rail probably would not work, given that the US is built around highway travel.

November 24, 2007

Asset Values Maximized

Filed under: Economics — Kevin Feasel @ 9:04 pm

According to Bryan Caplan (who links to a Karen Lewis article), having 39% of your assets be in foreign-held companies is a risk-minimizing strategy. I chose to have 40% of my investment plan go to foreign assets.

A financial winner is me.

In the comments, there is an argument that 50-50 is actually the wealth-maximizing strategy, as well as some discussion of why American foreign investment is so low.  I think that one of the things they missed (at least as of when I read this last night) is that given two firms, there is a higher percentage in most foreign countries that there is a risk of government takeover.  In the developed west, that possibility is rather low, and would not really constitute a big reason not to invest, but in the developing world, there is a serious possibility of “nationalization” or whatever other term you wish to use.  Given that and the general weakness of financial institutions in most developing countries, it makes sense for there to be a bias against development there.  In the developed world, meanwhile, there has historically been little difference between investing in Japan and the US over the past few decades—put your money in a Japanese index fund and you’ll get about the same rate of return as the US.  Meanwhile, the US matches or exceeds most European stock markets over the past few decades, too.

On the other hand, the thing that makes a foreign stock fund potentially more valuable is that you get to pick from the best of a lot of different countries’ companies.  You can also lower risk by investing a fraction of the fund in many different developing countries, so that if one country takes over one industry, it doesn’t hurt quite as much.  Meanwhile, you can get a decent return from the good investments.

November 23, 2007

Yeah, Just Try To Ruin Rudy’s Chances…

Filed under: Wacky Theories — Kevin Feasel @ 7:46 pm

David Brooks has an article arguing that Rudy ought to go back to his 1996 policies on immigration, in which he supported New York City as a sanctuary city.  His big argument hinges on the idea that Americans of Hispanic descent support illegal immigration and open borders, and thus opposition to the policy hurts Republicans in southwestern states and in Florida.

Honestly, I think that if Giuliani actually attempted this, he would ruin his chances at the nomination and certainly would not win.  There are two big reasons for this:  first, I think Brooks is wrong on the logic; and second, Brooks forgets a key element of the population.

Brooks specifically mentions Florida, given its large Latino population, but those are mostly Cubans, which makes one ask the question, why would first- or second-generation Americans from Cuba (who follow a different policy altogether given the asylum arrangements in place) care about illegal Mexican immigrants?  You might have a better case for states such as Texas, Arizona, and New Mexico, but you would have a tough time squaring that with the fact that a good number of southwestern politicians are exactly the ones who are pushing for tighter restrictions.

Why would these politicians support restrictions on illegal immigration, secure borders, and a process of reducing the number of illegal immigrants in our country through employer sanctions?  Here’s the simple reason:  because it’s popular!  The last two years have shown just how popular opposition to illegal immigration is, as citizens and a few key Senators have twice derailed amnesty plans which had the strong support of the President and more than half of Congress.  Most of these voters are Republicans (though not all—percentages for Democrats and independents, although lower than Republicans, still make illegal immigration far from a winning issue for any party), and Republicans have taken immigration very seriously.  For example, immigration is a big issue for Republicans in South Carolina, with 18% picking it as the issue they most want candidates to discuss.  And I’ll give you a hint:  they’re not in favor of it…

Knowing that Brooks is from Chicago and has a lot of experience with Strauss, I’m going to assume that this is his way of getting into Rudy’s head and pushing the Presidential candidates to the right by letting them exploit a big gap on immigration and give a good issue on which to show their “beltway independence” by driving a wedge between themselves and the President and many members of Congress.  Otherwise, his argument  just doesn’t stand up well at all…

November 22, 2007


Filed under: Curmudgeonliness, Economics — Kevin Feasel @ 5:50 pm

In Australia, a lot of “recycled” material is actually ending up in landfills.  The reason is fairly simple:  it costs more to recycle many goods than simply to manufacture new goods.  The amount of resources used to recycle paper, for example, ends up being greater than the necessary resources simply to make the products with non-recycled paper, which is part of why you don’t see many free markets in paper recycling.  On the other hand, gold gets melted down and recycled because it is worthwhile to.  The cost of gold is high enough and extracting gold from other metals is a relatively inexpensive and efficient process, meaning that there is a functioning market for gold scrap.

Meanwhile, this example shows you once more what economics 101 has to say about supply and demand.  In this case, we have three markets for goods:  the “retail” market, the “recycling” market, and the “recycler-retailer” market.  In the retail market, individuals demand and purchase from retailers products made with a certain material—glass in this instance.  After consuming the products, they have the glass left over as waste.  They then go on the recycling market, where they act as suppliers and recycling firms act as the demand.  The recycling firms purchase consumer waste and transform it into some amount of a saleable good, and they take this onto the recycler-retailer market, acting as suppliers.  Retailers purchase the recycled goods, meaning that they are the ones who demand the product.  This is a very basic chain of recycling, and it misses the fact that manufacturers/retailers can also purchase new goods rather than only recycled ones.

To make analysis simple, you can take the price of new glass as given.  Then, to solve the general equilibrium problem and make sure that all of the individual markets will match supply and demand, the price of recycled glass must (if all other things are equal) be the same as the price of new glass*.

On the other side of things, you have the costs of recycling glass.  Without getting too much into the details here, you can come to a fairly simple logical point:  a firm will only engage in recycling glass to the extent that its costs remain lower than recycled glass’s value to manufacturers.  What we generally observe is that, in most markets, it costs more to recycle a product than to produce a new product, and thus there is a limited amount of recycling.  The big exceptions generally involve metals, as the costs of recycling are relatively lower and the output relatively higher than with plastics, paper, or glass.

Seeing the results, government officials and environmentalists decide that people “should” recycle for some reason or another.  Many of them don’t understand what market actors are implicitly telling us (that it is not worthwhile to recycle this particular good); many also fall prey to “fixed quantity” fallacies and think that the quantity of goods is fixed and that we will run out of priceable goods.  Julian Simon focused much of his career on answering these two beliefs, and if you want to read a good criticism of them, check out his Ultimate Resource 2.  Anyhow, these individuals usually subsidize garbage collection and force individuals to recycle certain goods that they would not otherwise recycle.  The end result of this is that the supply of glass to recycle is greater than the demand, and that is what we call a surplus.

My favorite part of this article comes near the end:  “[F]or 18 months his council had stockpiled glass in a pit.”  Well, it’s a good thing they didn’t put it in a landfill!

* – All other things may not be equal.  Recycled glass has slightly different properties than new glass, and in Germany for example, recycled glass may only be used for making brown glass, and not green or clear.  On the other hand, there may be some kind of symbolism bonus for people who purchase recycled goods.

November 21, 2007

Where Is An Egg?

Filed under: Cool Toys — Kevin Feasel @ 7:29 pm

I won the game by shooting everybody I saw.

Older Posts »

The Silver is the New Black Theme Blog at WordPress.com.


Get every new post delivered to your Inbox.

Join 74 other followers