Monthly Archives: July 2012

Improve the example that suggests words based on what the user is typing in C#

This example improves on the example Suggest words based on what the user is typing as a smart phone does in C#. The previous example loads all of its words into a big array. Then to find the words that … Continue reading

Posted in algorithms | Leave a comment

Suggest words based on what the user is typing as a smart phone does in C#

When I type something on my phone, it displays a list of possible words for auto-completion below the editing area. For example, if I type “gping” it suggests “going” as a possible word that I might be trying to type. … Continue reading

Posted in algorithms | Leave a comment

Make a silly mouse tracking program with eyes that don’t flicker in C#

The example Make a silly program that tracks the mouse’s current position with a pair of eyes in C# shows how to make eyes track the mouse’s position, but if you look closely as that program runs you will see … Continue reading

Posted in games, geometry | 1 Comment

Make a silly program that tracks the mouse’s current position with a pair of eyes in C#

The form contains a Timer named tmrTick. Its Tick event handler the following code to update the eyes. // The previous mouse location. private Point OldMousePos = new Point(-1, -1); // See if the mouse has moved. private void tmrTick_Tick(object … Continue reading

Posted in games, geometry | Leave a comment

Compare the performance of simple arithmetic operations in C#

I saw a post the other day that said division was the slowest arithmetic operation so I wrote this example to see exactly how multiplication, division, addition, and subtraction stack up with floating point numbers. When you click the button, … Continue reading

Posted in mathematics, performance | 1 Comment

Graph the probability of an event occurring in a given number of trials in C#

The example Calculate the probability of an event occurring in a given number of trials in C# shows how to calculate probabilities. This example graphs the results. You can use the example to get some feel for how the probabilities … Continue reading

Posted in mathematics | Leave a comment

Determine the number of trials needed to reach a certain probability of an event occurring in C#

The post Understand probabilities of unrelated events (and escaping zombies) explains how to calculate the number of trials necessary to reach a certain probability of an event occurring. It explains that if an event has a probability P of occurring … Continue reading

Posted in mathematics | Leave a comment

Calculate the probability of an event occurring in a given number of trials in C#

The post Understand probabilities of unrelated events (and escaping zombies) explains how to calculate the probability of an event occurring in a certain number of trials. It explains that if an event has a probability P of occurring at each … Continue reading

Posted in mathematics | Leave a comment

Link to list of options for making Access data available online

Just a quick link to a brief list of options for making Access data available online: 10 Ways to Take Your Access Database Online

Posted in Uncategorized | Leave a comment

Understand probabilities of unrelated events (and escaping zombies)

Given some even with relatively low probability, what is the probability that the event will occur if you perform many trials? For example, suppose the zombie apocalypse has arrived and there’s a 1% chance that the zombies will get you … Continue reading

Posted in mathematics | Leave a comment