Jump to navigation
take a break
I did a little more work on Race Analyzer tonight. Last time I worked on it (almost 3 weeks ago) I was running into a problem where the file I was reading had some ASCII codes in it that Python didn't like, hex e9 is the character that it choked on. So I removed that character from the test file I was using and then suddenly everything was displaying in my text box.
There was a new problem though. I want all the columns of characters to line up perfectly otherwise setting the column widths to use for outputting to a CSV file won't work nicely. I suppose I could come up with a way to get that to work but I don't want to fool around with that right now. So I set the font to a fixed with font (wxSYS_OEM_FIXED_FONT) and that was all there was to it. Now I have a basic app that can open a file and dump its contents. Here is a screenshot:
posted on Tuesday November 23, 2004 at 20:44:58
Taking a real break...
This weekend will be a little bit of a retreat weekend for m and I (see my training log for a little bit more detail). We will be doing some things that we have done before as well as visiting some places that we haven't visited before.
In other news, there has been some work being done around our house. We got a long-needed fence installed on one side of our property and we also got some trees removed. The big headache with all of this has been trying to get the utilities located. You know, so you don't end up blowing up your house because you hit a gas line when digging for fence posts? Well three weeks after calling the Call Before U Dig number we still don't have the utilities marked. Yes, you read that right. The utilities aren't marked and the fence is in. The house is still standing. I have been promised 2 or 3 times already that the marking would be done "today or tomorrow". Yeah, ok. Could you make sure you send Santa with the utility locator guy? I need a new cattle prod...
posted on Friday November 19, 2004 at 16:02:33
I posting this mostly because I feel a need to post something... I hope my coworker doesn't take offence to this. Time will tell.
The first thing you have to know (if you haven't figured it out already) is I am Canadian. The second thing that you need to know is that a lot of the big restaurant chains that are in the US are only in the US and haven't crossed the border.
This conversation happened after my coworker returned from a business trip to the Seattle area (to visit you know who).
"So I went to this pancake place for breakfast one of the mornings I was there."
"Was it the International House of Pancakes?"
"No, I think it was called IHOP."
posted on Sunday November 14, 2004 at 20:52:19
Lest We Forget
In Flanders fields the poppies blow
Between the crosses, row on row,
That mark our place: and in the sky
The larks, still bravely singing, fly
Scare heard amid the guns below
We are the Dead. Short days ago
We lived, felt dawn, saw sunset glow,
Loved, and were loved, and now we lie
In Flanders fields.
Take up our quarrelt with the foe:
To you from failing hands we throw
The torch; be yours to hold it high.
If ye break faith with us who die
We shall not sleep,
Though poppies grow
In Flanders fields.
In Flanders Fields, by John McCrae.
World War One, the war to end all wars ended today in 1918 with the signing of the Armistice. The eleventh hour of the eleventh day of the eleventh month.
Today we honour those that served, those that are serving, and those that gave the ultimate sacrifice for our freedom.
posted on Thursday November 11, 2004 at 11:00:00
Gas Experiment Update
I have completed 3 tanks at the 89 octane level. Here are the results from that round of fuel consumption:
Tank 1: 61.513 Litres and 726.9 km driven for a 8.46L/100km average
Tank 2: 62.002 Litres and 660.0 km driven for a 9.39L/100km average
Tank 3: 60.004 Litres and 664.6 km driven for a 9.49L/100km average
Total for the 89 octane level: 186.601 Litres for 2051.5 km driven for an overall average of 9.095L/100km.
Reviewing the 87 octane results: 9.85L/100km, so 89 octane gives a delta of 0.75l/100km. In percentage terms the 87 octane was 7.66% less efficient. The 89 octane was on average 5.86 cents more expensive or 7.56% more expensive (at an average price of 77.5 cents a litre). So even though it is close, the 89 octane makes more sense economically.
First tank of 91 octane is in now (well, it is actually 92 octane, I filled up at Sunoco and they only have 87, 89.5, 92 or 94 octane).
posted on Tuesday November 09, 2004 at 15:41:25
Race Analyzer Update
Last night I spent some time trying to make a little bit of progress on Race Analyzer.
Just to quickly recap, I am making an app in Python using wxPython to take a HTML page of results from a race, allow the user to set up the column widths for the information in that HTML file and then output a CSV file for use in Excel (or other spreadsheet). This will allow anyone to do whatever sort of analysis on the race results that they want to do.
Anyway, back to my progress from last night. Before last night I had a window up and running and a Open File dialog working. The next step was to dump the contents of the file into the window. I got part of that working last night by using the AppendText method of the wxTextCtrl class in wxPython. I am currently running into a problem where some of the characters in the HTML file I am testing with are not ASCII characters so the TextCtrl class chokes on it. So it looks like I will have to read small pieces of the file at a time and then spit out the pieces that contain ASCII text.
Next step is to continue trying to get the file to display in the wxTextCtrl window. I also need to figure out if I can read things back from wxTextCtrl.
posted on Thursday November 04, 2004 at 15:43:18