Showing posts with label Jackson Hole. Show all posts
Showing posts with label Jackson Hole. Show all posts

Tuesday, December 3, 2024

Repeatability

Have you heard the story of a guy that traded a paperclip for a house? It didn't happen that simply. He traded the paperclip for something else and continued trading until he eventually had a much more expensive item. When I think about what he did, I imagine he took advantage of having something that someone else needed to the point where they would trade something more valuable for the less valuable item he had. I also doubt the process he followed is very repeatable. While someone could take some of the ideas, trades for different items would need to be substituted. Furthermore, I doubt many would have his same success.

This leads me to my topic of interest today and that is repeatability. When software engineers create a program, they require a team of quality assurance (QA) engineers to test their code to look for problems. The worst kinds of problems to find are non-repeatable ones. If the program runs 9 times out of 10, it becomes the QA engineer's responsibility to figure out the exact repeatable steps to find the one time it doesn't work.

One area where this becomes increasingly difficult is when using a program that creates random numbers. The whole point of random numbers is to make things unpredictable. This is why most random number programs have two calls. The primary call provides a random number. To make sure it is repeatable, it will always provide numbers in the same order. If you ask for a single digit random number, it might first provide a 3 and the next time you call the function it returns a 5. Stopping the program and restarting it give you the same numbers in order. This is very helpful when trying to locate software bugs. The important thing to remember is to also use the second call or randomize function. This tells the program to not use the same order but instead to mix it up.

Why is this important? Several years ago I noticed that the software provided by the governing body for ski racing forgot to include the randomize function in their software. My son attended a race at Jackson Hole and had yet to complete a Super-G race. He got lumped in with all the other first-timers. The weekend had 3 individual races where all the first-timers should have been given random starting orders within their group. Starting near the front has its advantages and so one would think my son would have his start position changed randomly. Nope the 10 to 15 racers all started in the same order for each of the 3 independent races. The developer of the software never randomized the start order as he or she should have. I tried to protest but ski coaches and race organizers don't understand the nuances of software development and accepted as fact that the coding had been done correctly.

When looking for software bugs, repeatability is important. It makes it a lot easier to find problems and fix them. Just remember to add in that randomize function at the end. Otherwise you are not really creating random numbers and that is one area hackers exploit to break into systems.

Tuesday, December 30, 2014

Christmas After Christmas

I once got in trouble for telling my wife I was going to purchase something for myself right before Christmas. It was a pair of snow boots and I didn't think anyone would be getting them for me as boots really should be tried on before they are bought. I was headed out the door when my wife stopped me and told me that is what she got me for Christmas that year. I felt bad and since then we have a rule in the family: you are not allowed to buy anything for yourself from November 1st until Christmas day.

Now that Christmas is over, I have spent the past couple of days online purchasing things that I needed but didn't get for Christmas. There are a number of auto parts that I need to fix up my daughter's Jeep. I also had to get a brake kit for my BMW as the rear brakes are really squeaky.

I didn't limit my shopping to just physical goods as I also picked up some hotel reservations. My wife and I got free seasons passes to Jackson Hole ski resort, which is only a 4 or 5 hour drive. Naturally they are only good if you use them and we try to take a ski trip or two each year above and beyond the daily skiing I do when I am in Utah. We have two trips planned for the year and found a place with $65/night room rates. Normally I would stay away from budget deals, but we have stayed there before and the place isn't too bad.

Finally there were a number of flight reservations that I needed to make. I fly twice a week whether I want to or not and so that takes a bit of coordination. Most of my flights are on Southwest as they generally have the best deals. Sometimes I can find a better price on Delta and so it is nice to open multiple browser windows and compare ticket costs.

Sadly I spent more on the Christmas after Christmas than I did on Christmas. Perhaps there is a flaw in our rule of not buying stuff in November and December.

Tuesday, January 5, 2010

Free Ski Passes

Recently I was given the task of managing volunteers for ski races at Snowbird. I got the job because I am on the ski team's board of directors. This used to be done by another volunteer but we have recently implemented an online system that requires certain computer skills. I am more than happy to help out.

Unfortunately skiing is one of those expensive sports that gets more so each year. Recently I was at Park City and they wanted $86 for one day. You can buy a lot of pizzas for $86.

When my kids started racing, I discovered a little trick to help keep the costs of skiing under control: volunteer to help at ski races. When you volunteer, you get a free pass for the day. Then at the end of the day, you get either one or two more. When I help with races at Park City, I get one, while Snowbird gives two. The only downside is that your presence is generally required all day long and so you don't get much of a chance to ski that first day. Oh and standing on the side of a mountain in the freezing cold is not the best way to spend your weekend. However it is for a good cause.

The nice thing about our website is that you can see what slots are available before you sign up. For instance, my oldest daughter likes to do the scoreboard. Basically she listens to the announcer and writes down the time for each racer's run. That allows parents and spectators to see how each of the racers is doing. It is an easy job but very important.

My hope is that other mountains will follow our example. Then when my kids have a race in Jackson Hole or Snowbasin, I can volunteer my services for a nice cushy job and get out of having to pay for expensive lift tickets.