Monthly Archives

January 2011

Computers & Programming

Video of a Working Train

The code is still far from optimal but the track network traversal and linear distance computations are working correctly. I haven’t tested a train with cars facing in both forward and reverse directions but the code is all written to handle it. It’s a lot of code for…

Continue reading
Computers & Programming

Working Single Unit Train

I have a working sample of the code I mentioned in an older blog post. I have a self-propelled train car that moves along any unending track layout. When the front wheels of the train car passes over a turnout, a random choice is made by this train…

Continue reading
Computers & Programming

Railroad Train Movement

I wrote some code and then had an epiphany. A minor one but one that made me realize I had approached something in the wrong way. It was not much code and can be reused with the new idea. First, the requirement is that the train move in…

Continue reading
Computers & Programming

Railroad Game Realism

I just figured out why the concept of realistic train management was giving me trouble. I really hadn’t tried to figure it out in any detail before and as soon as I did, the problems became obvious. First A real railroad can do things that would be considered…

Continue reading
Computers & Programming

Set Visual Studio Caption

I am providing this code in C# for a Visual Studio 2010 add-in to set the caption of the Visual Studio window based on information in the solution. All of the other code samples I found, all two of them, are only partially usable. My VS Solution always…

Continue reading
Computers & Programming

Miscellaneous Programming Projects

I’ve been thinking about various computer programing projects for years. One is a railroading game that focuses on realistic track building and realistic operations or a small (shortline) railroad. Another is an evolution simulation. There is also the mechanism simulator that I have working fairly well. The thing…

Continue reading