Enough of Toronto Already

Here are the NHL headlines on the front of the TSN.ca webpage. Seriously, is there nothing else going on in the NHL other than the things that revolve around Toronto? Just in case you’re wondering why the 2nd headline is about the Hurricanes, it’s because they are playing the Laughs tonight.

* Leafs recall Kadri, Lashoff; sign Gardiner to entry-level deal
* Hurricanes blank Sabres to move within two points of eighth
* NHL Standings: Leafs six points out of playoffs
* Ice Chips: All the latest roster news
* Power Rankings: Hurricanes #24, Maple Leafs #25
* Leafs’ Nonis to be named Team Canada’s GM for Worlds

On The Wagon

After another bad experience Wednesday morning, I think it’s time for me to go on the wagon. Tuesday night I went to the pub with my buddy Indra, who was visiting from Korea. I had 3 pints of beer over a meal and 4 hours. The next day I had a splitting headache until about 1pm, it was painful. This followed a series of similar hangovers in the past month or two. A few weeks ago I had one beer and one glass of wine, and the next day I felt like I was on my deathbed until late afternoon. The same thing happened a few weeks ago. Going back to the Christmas holidays, one night I actually started getting hungover at 11pm, before getting to bed! My body just doesn’t seem to agree with alcohol anymore. I haven’t completely given up yet though, as I’m sure I’ll keep trying to drink beer for a few more months. But something tells me that the writing is on the wall…

Religion Quiz

I read a funny story in the Vancouver Sun about some results on a quiz on religion in the USA. I attempted the quiz myself and didn’t do that good on it, although I was in the 80th percentile compared to the USA population that had taken the quiz. I pretty much had to guess on a couple of questions about the Sabbath and about US Supreme Court rulings on religion in USA schools. The rest was pretty easy.

The funny part about this quiz is it reveals that US atheists and agnostics, as well as Jews and Mormons, know more about religion than do most of the strong majority of Americans who are Protestants and Catholics. Apparently one-third of Americans falsely believe that evangelist Billy Graham delivered the Sermon on the Mount! An earlier poll showed that 1 in 10 Americans believe Joan of Arc was Noah’s wife, and another 1 in 5 believe that Sodom and Gomorrah were a married couple.

I sort of suspect that similar results would be found in Canada, minus the Billy Graham bit. The part that I find the funniest is that Mormons do better on the quiz than Protestants and Catholics. Mormons, you may recall, are the ones that think some dude living in New York state during the 1820′s was given a bunch of gold plates scribed with sacred text from God. (these are the same plates which said the men should have multiple wives, ie Bountiful BC).

Using Math in Moodle

If you’re like me and interested in using math notation in Moodle, I believe you have 2 options. The first option is to use the TeX filter that is in Moodle. This is a LaTeX type editor. To enable, go to site administration -> plugins -> filters
TeX in Moodle: http://docs.moodle.org/en/Using_TeX_Notation
And more notation info: http://docs.moodle.org/en/Using_TeX_Notation_2

The big problem with TeX in my mind is that it is a bit awkward to use. However, if the range of notation that you want is narrow, you can quickly learn how to input what you need.

I think the better option is to use ASCIIMathML because it is easier to use, is more intuitive and also looks better. However, one of the big problems with ASCIIMathML is that it only works with Firefox. No other browsers are able to display its notation without other plugins. There are two workarounds for this. First, you can demand that users use Firefox. Secondly, you can use a version of ASCIIMathML that has a “fallback.” How the fallback works is if the browser does not display the ASCIIMathML correctly, it automatically switches to displaying LaTex images.

First let’s start with the ASCIIMathML. You can find a bit of information about it here, including a link to download: http://docs.moodle.org/en/ASCIIMathML
I found this thread on the Moodle forums to be very helpful:
http://moodle.org/mod/forum/discuss.php?d=153697
For my examples below you have to include a javascript file inside your Moodle installation. I am assuming that you are putting the ASCIIMathML.js file in the folder:

http://www.yourdomain.com/moodle/lib/asciimath/

Adjust this url with your own domain.

To get asciimath working in Moodle 2.0, go to site administration -> Appearance -> Additional HTML
In the “Within HEAD” section, paste the text:
<script type=”text/javascript” src=”http://yourdomain.com/moodle/lib/asciimath/ASCIIMathML.js”></script>

What this does is ensures that the ASCIIMathML javascript is inserted into the head of every html page.

If you don’t have Moodle 2.0, you have to find your config.php file for your theme and insert the text there. For example, if you are using the theme FormFactor, go to the file: http://yourdomain.com/moodle/theme/formfactor/config.php
Open the config.php file in an appropriate editor (I use Codelobster) and somewhere between
<head> and </head> insert the line:
<script type=”text/javascript” src=”http://yourdomain.com/moodle/theme/formfactor/lib/asciimath/ASCIIMathML.js”></script>

In firefox you should now be able to use ASCIIMathML notation. I had an additional problem and had to edit my asciimathml.js file. Somewhere around line 50 in this file I had to change
var avoidinnerHTML = false;
to
var avoidinnerHTML = true;

Okay, now that it’s working you can try a fallback version. I used ASCIIMathMLwFallback2.js from http://dlippman.imathas.com/asciimathtex/AMT.html

I edited the same “avoidinnerHTML” in the .js file, uploaded it to the same /lib/asciimath folder, and edited the “Within HEAD” section to use the new javascript file name. I now have ASCIIMathML working on all browsers. More info on fallback can be found at this Moodle forum link: http://moodle.org/mod/forum/discuss.php?d=134706

Music, Again

A couple of weeks ago I bought a Patriot Box Office media player. It was a pretty sweet deal too, only costing $60 after a mail-in rebate. Since getting it the amount of music that I’ve listened to has, like, quaddriggled. For those of you that don’t know what a quaddriggle is, let me tell you something: it’s a lot. I have the PBO hooked up to my Bryston in the living room, and I’m mostly streaming flac files from my NAS. Flac is lossless, so theoretically it is the same as CD quality. While I can’t say that the delivery method is perfect in terms of sound quality, the two most important parts are the amp and speakers, and I’m doing pretty good in that regard. The nice thing is that I can now quickly flip through my music collection and pull up anything within seconds. That is entirely different from the old setup where I had to pull out a CD, put it in the CD player and press play. That whole rigamaroll took, uhh… seconds. But more of ‘em. Yeah, more.

Return to Running

Since about May of last year I’ve been trying to get some consistent exercise. I’ve mainly focused on biking but it has presented it problems. First, I’m kind of lazy. That’s not a particular problem with cycling though. My second problem has been free time. I found it hard to grab 2.5 – 3hrs to go for a ride. It shouldn’t have been that hard really, looking back at the summer I guess I just had a mix of homework, school, kids and family trips to deal with. Near the end of summer I got back on the bike trainer in the garage and that started off pretty good. By the end of October though, I was again swamped with work, homework for the MET program and kids. With Mercy working night shifts, I didn’t have an opportunity to duck into the garage in the evening or morning to do a workout. So a couple of weeks I decided to try running again.

One of the biggest problems I’ve had with running is pain in my shins. Years ago I saw a sports med doctor and it was diagnosed as chronic compartment syndrome. Anyways, I went for a couple of walk/runs (1min run, 2min walk) and sure enough I had quite a bit of pain in shins. I then thought back to some things I had read on Joe Friel’s blog, and how he is a big proponent of mid-foot landing. Thinking a bit about this, I recognized that I run with landing on my heel with my front foot extended forwards of my body. It seemed reasonable to try and run landing on my mid-foot and reduce some of the stretch in my ankle (ie pointing my toes up or down). A little bit more research led me to the Pose method of running, which seemed to focus on landing on the balls of the feet and keeping the landing underneath the runner’s center of gravity.

I’ve borrowed the Pose running dvd from the library and have looked over the technique presented and some of the training exercises. One of the most interested bits about it is that they say that research shows that forward running speed is not dependent upon forces that your foot pushes forward on the ground. I think this is intuitively what we think: we move forward by pushing our bodies with our feet. Instead, the research indicates (apparently) that our forward movement is created by the torque created as our center of gravity falls forward, pivoting about the point where our feet touch the ground. So with the Pose method of running, the idea is that the leading foot should stay underneath the center of gravity, and speed is created by leaning forward and quickening the running pace. From my perspective, I was more interested in the techniques which I hoped would reduce the impact and strain on my shin.

It’s been about a week and I’ve done 3 runs, going up to a 1.5/2min run/walk split, without having any pain in my shins. I’m not sure I have very “Pose” technique yet, but so far I am cautiously optimistic. We’ll see what happens as I increase the time and intensity. I’m still finding it tricky to find time to run. My day typically starts at 6:30, then it’s work until 4:30ish when I have to take the kids to some type of activity (soccer, swimming, aikido, playdate), then dinner, help the kids with reading and then it’s 8pm and I’m pretty tired – and I might have homework to do.

« Previous entries · Next entries »