Welcome to this post. Today, I want to share my process of retrieving some Mega Million Lottery winning data, curating them, and analyzing them to tell a story. The results may or may not make us super-rich 🙂 but I certainly had fun throughout the process. Disclaimer: I used Excel, but this is not a […]
Category: Education
Burger-Economy Charting! (Excel)
Welcome back! Just saw the latest released data on Big Mac prices world-wide, and the articles showing some simple histograms—and some of them even slapped on a cheesey (pun intended) burger animation to make their hohum horizontal bar charts appear to be more eye-catching. Well, today I’ll show you how to use the same data […]
Let’s Roll! — 2 dice…and find the probability and chart it (Python)
What numbers will you get if you roll 2 dice? How about we find out by writing a program? Can we then chart the results over as many rolls as we want? And then interactively play with the chart? Asking a lot! But yes, I will do ALL of the above here. Better yet, why […]
Draw A Beautiful Gradient Scatter Plot (Python)
In this demo, I’ll draw a beautiful, elegant, gradient-colored (themed) scatter plot using some data for x and y axis. The neat thing I want to demo here is not so much the data themselves, but how to apply a “colormap” to the graph using Python’s matplotlib library. Specifically, its pyplot module. What’s Desired: The […]
“Rabid Racoon” tracking (Python, using our own class)- Part 2
This is part 2 of the original series on Rabid Racoon. Please read Part 1 first to follow along. So, this time we’ll use a real-time graphing method using Python’s Turtle library instead of scatter plot as we did in Part 1. The beautiful part is, since we already created our custom Class in Part […]
“Rabid Racoon” tracking (Python, using our own class)- Part 1
Just like most high-level programming languages, Python also supports the idea of classes. Once the class(es) is/are created they can be inside the main python file or separated (in most usage scenarios), along with it methods. For Python-specific syntax, please refer to its documentation online or offline (python.org is a good start), but you should […]
Fun riddle…let’s solve it together
There are 50 horses and 50 kings riding along an old dirt road. (We still have Kings? WTH?!)Â They came to a peach tree with 50 peaches (peach tree grows well somewhere I guess!). Each took one, yet there were still 49 left. How is this possible? Well, capitalization may be of importance, or not. […]
How to change keyboard strokes (C/C++) Part 1/2
In the following simple C program, I’ll demonstrate how to capture keystrokes and turn them into something completely different…other than what the key labels read. This is the basic idea behind changing keyboards from English to another language; take the input from the key, read its character code (ordinal value) from the operating system, and […]
Let’s Play Palindrome! (C/C++)
Did you know that the longest Palindromic word in the Oxford English Dictionary is “tattarrattat” coined by James Joyce in Ulysses (1922) meaning “a knock on the door”? What is a Palindrome, you ask? Well, you already know it or have seen it. According to Wikipedia: “A palindrome is a word, phrase, number, or other […]
Let’s Play Palindrome! (Python)
Did you know that the longest Palindromic word in the Oxford English Dictionary is “tattarrattat” coined by James Joyce in Ulysses (1922) meaning “a knock on the door”? What is a Palindrome, you ask? Well, you already know it or have seen it. According to Wikipedia: “A palindrome is a word, phrase, number, or other […]