Brian's Blog

I’m not sure what you will find here; general musings and maybe some technical stuff spattered here and there.

Tuesday, August 26, 2008

Just a Pinch of Autisim

I have this crazy innate ability to be completely oblivious to my surroundings. I can go into the fridge to throw away an empty egg carton, and completely disregard the empty milk jug right beside it. That's just a small example compared to what I did this morning.

I went out this morning for a short jog. It was cool outside, the perfect morning for a run. I felt good and I was moving pretty fast. Just under halfway into my run, I turned onto one of the streets in my subdivision. I was minding my own business while all wrapped up in my own world. It wasn't until I saw the SWAT truck and the 20+ SWAT officers that I realized I had jogged right through a police road block. Yes. Seriously.

I turned to look behind me expecting a few officers and maybe even a K-9 unit to be hot on my heels. There was no-one. I decided to keep going. I ran right past the SWAT van were a number of SWAT guys all decked out in helmets, bullet proof vests, guns, and bigger guns were having a meeting. I threw them a quick "head nod" and continued on.

It wasn't until I got to the opposite end of the blockade that I received any form of reprimanding for what I just did. "Don't run back this way!" the lady police officer standing at the last road block told me.

I managed to get out "I don't plan on it. Sorry." in between breaths and kept on running.

Labels: ,

Thursday, August 21, 2008

"Run Forest, Run!"

I go out for jogs here and there. I usually get a wild hair up the butt and run pretty consistently for 3 weeks. Then the laziness sets in and I stop running for about 9 months. This cycle repeats itself and right now I'm on my 4th iteration of it. I've always wanted to be more disciplined and keep myself running on a more consistent basis, so this year I thought I'd do something different.

A friend of mine planted a seed in my brain about an upcoming half marathon she was going to run. She asked if anyone else wanted to join her. I dismissed it quickly, but the idea remained in my head. I started thinking about it obsessively for a week or two. Finally, I got online and registered for the race.

I figure if I'm monetarily committed (it cost me $53 to sign up) I'll be more disciplined and train on a regular basis.


So now I'm 3 weeks into my training. I run three times during the week (Tue, Wed, Thurs). Tuesday and Thursday are short, Wednesday is a little longer. Then I run really far on Saturday. My last Saturday run was 9 miles. I'm doing well, I've been keeping up with it, and yesterday I even ran in the rain. I'm committed... Until today.

The wear and tear was creeping up on me. I could feel my legs hurting more and more as I got deeper into my training. Today, my knee that had an ACL replaced in my high school years (and has never bothered me since), is the size of a grapefruit. Along with that, my calf on that same leg hurts to the touch.

I have 10 miles to run on Saturday, and 3 to run tonight. I think I'll have to skip the 3 tonight and try to make the 10 on Saturday. If I'm still sore Saturday, I may run the 10 on Sunday. Hopefully this all passes, and I'll be able to run my half marathon in September.

Hopefully this isn't the beginning of my 9 months of laziness.

Labels: ,

Monday, July 07, 2008

Beer Darts?

We drove out to my cousins house for the 4th of July weekend. She hosted a nice BarBQ Saturday night. We got to meet a lot of her friends, eat some good food, drink some beers, and chit chat. It was an all round good time.

What made the night even better? Beer Darts.

Beer Darts has to be the most idiotic game ever conceived, but I was hooked from the get go. Imagine two chairs set up about 50 paces apart facing each other; Four chairs if four people are playing, two on each side. You place an unopened beer can next to your chair on the ground and you're handed two darts. Your object is to throw your darts into the players beer can across from you. If you hit the can, they have to drink the beer down to the hole the dart made. The trick is to hit the can at the very bottom.

At the end, empty cans are counted and the person/team with the most empties loses, or wins depending on how you look at it.

I'm pretty sure we single handedly raised Anheuser-Busch's stock because of all the beer consumed that night. It didn't help that I was sitting across from the Beer Darts "ice man". He was popping beers right and left. I must of chugged.... well I don't even want to think about it.

If this sounds interesting here are some "official" rules.


Friday, July 04, 2008

Euler Project

Lets say you wanted to calculate the sum of every even number in the Fibonacci sequence under 4 million. I believe this bit of code (c#) would do that. Why would you want to? I don't know.

double gr = (1 + Math.Sqrt(5))/2;
double sum = 0;
double fib = 0;
double c = 0;

while (fib < 4000000)
sum += fib;
fib = Math.Round((((Math.Pow(gr,c))/Math.Sqrt(5)) + (1/2)), 0);
Console.WriteLine("Sum = {0}", sum);