Uncategorized
Same Game Xna 2.0 Alpha
Jun 29th
I’ve released what I’m calling the 2.0 alpha version of Same Game Xna.
Google says I’m awesome
Jan 16th
Google Alerts is a service that allows you to be notified whenever a new search result is found by Google. I currently have it set up to alert me whenever a new result is found for “Zachary Snow”. Turns out I’m not the only Zachary Snow in the world, although I am the #1 (as of this writing) according to Google (see here). That is why I am awesome.
It’s good to be a website owner again
Dec 5th
After about a year or so of not owning my own website, I finally purchased my own webspace again. I don’t know if I’ll be copying over my old posts or not.
The Game Show Host Problem, aka The Monty Hall Problem
Feb 12th
NOTE: This is a repost from my old blog.
So, me and my girlfriend went to see 21 last night and in the movie they make mention of The Game Show Host problem, aka The Monty Hall Problem.
The jist of the problem is this: You are on a game show. The host presents you with 3 doors, 1 of which has a car behind it, the other 2 have goats. The game show host tells you to pick a door. You do so, at which point the game show host opens up a door to show you a goat behind the door and then asks you if you would like to switch your choice to the other closed door. The question is then, should you switch your choice?
The correct answer is yes. More on why after the jump.
I won’t go too far into detail about why you should switch your answer, I’ll leave that to Wikipedia. Some things to note that may not be obvious: 1) The game show host will always open a door that is not the correct door 2) He will never open your door. These are the keys to this problem. By switching, you will win a prize 2/3 of the time as opposed to only winning 1/3 of the time if you do not.
Many people will argue that once the game show host opens the door with the goat behind it that there is now a 50% chance of you picking the right door by either staying with your door or switching. This is simply not true. Each door still only has 33.3% chance of being the door with the car behind it. The thing is though, once you pick your door, the game show host then eliminates a door based on 2 criteria: 1) The door is not the one with the prize behind it 2) The door is not yours. Due to these criteria, the odds of the correct door do not change for the door that you have picked, but rather change for the doors that you have not picked. The 2 doors not chosen by you then in a sense combine into one option and they together have a probability of 66.7%.
The Wikipedia article explains in much more mathematical detail why it is better to switch. I suggest you look there if I have done nothing but confuse you. This is simple strategy and probability. Knowing exactly how the game works can make you alot better at it.
Let me google that for you
Jan 30th
Ever read anything on a forum and thought, “I know that’s one of the first results in Google”. Well, then send your response with Let me google that for you. It’s a great way to let people know that google is smarter than you and him.
Jon Skeet
Jan 15th
I just received my copy of C# In Depth by Jon Skeet. Jon has a great deal of knowledge on C# and if you’ve never ran into his blog I suggest you check it out here. I’ll post later more about the book but I’m pretty sure it’s a good one.
It Works
Dec 30th
Ok, so the old laptop I’m working with isn’t ideal, but it does work and does run Xna Game Studio. I’ll probably only being doing 2D stuff on it. I did look into getting a bit more ram for it though as it only has 512 right now and most of that is used up just by the OS and the minimal apps running in the background.
Zend_Db_Table as a Model
Jun 20th
In the Zend Framework, using Zend_Db_Table as your model class is not well advised. This practice can force you to put business logic in other places besides your model class. This may not be a big deal if your logic is simple but imagine the logic is fairly complicated. Now also imagine that the logic changes at some point. This can be a problem if you have this logic written in many different places.
There’s a solution to this problem though. You could write a Model class that uses Zend_Db_Table as a storage medium. Or, you can extend Zend_Db_Table to add your logic to the class. There is a way to simplify this process and that’s what this blog post is about.

