Welcome back. Today, I’m sharing my version of the Magic 8 Ball game…you know, the one where you concentrate, and ask a question and shake the 8 ball to get the answer? I’m going to share its implementation in various languages (remember, I’m not a “programmer”, I’m a computer scientist…that means, I don’t like to […]
Tag: code
Continental-Love-or-Bite
Welcome back! Today, I present an application and its full source code of course that’s global! Yes, world-wide! Before we delve into it a little backstory about the idea of this “game”… Backstory: I had this idea about 10 years ago, where players would connect over the internet world-wide to my page and send “missiles” […]
World Population Simulation in Scratch
Welcome, for fun (or despair) we will write a program in Scratch to indicate real-time world population changes…increase or decrease. At the current rate, based on data, it’s growing…the net population is ever-increasing. However, this is a real-time world population simulation…simulation. The data is based on CIA World Factbook but the data are NOT connected […]
Text-to-speech, Interactive Shopping List (in Scratch)
Welcome! Today, we’re going to try a program with a little more complexity and twists in Scratch. In this program, I demonstrate the following tips/tricks: How to use a List control real-time How to get inputs from user and take action accordingly How to convert Text-to-speech How to read variables real-time from calculations and let […]
Creating Custom Buttons Glyphs & Behavior (for touchscreens)
Howdy, today I continue the discussion on designing fun web applications using MIT’s Scratch platform. In my earlier blog about Scratch piano playing game, I mentioned how Scratch apps that listen for keystrokes only won’t work on smartphones and touchscreen only devices and that Scratch platform does not support Buttons or touchscreen natively, so it […]
Analytics From Text?
Yes. From simple text “dump” of data, we can do some amazing things. Well, that’s what they’re already doing…the data scientists and other variants. I only present a simple example of the possibilities here 🙂 First, you should read my post about XML here. Then, I take that to another level here in this post. […]
Making A Favorites List…
We all have favorites…movies, shopping list, tv shows, clothes, etc. etc. etc. Ok, welcome! Today, I’ll show you how to create a favorites movie list in XML…why XML? Because from this format, I’ll do some amazing things like analytics. First on this post though, I’ll show you how to store the list in a structured […]
Which Day Were You Born?
Hi again, today I’ll show you how you can magically tell anyone what day of the week they were born! No matter how long ago, even if they even didn’t know 🙂 The magic is in coding (I’ll use Python here) and its calendar module. The complete source is below along with a challenge at […]
Winning The Lottery! Automatically :)
Howdy! Ok, I’m not guaranteeing you’ll win the lottery every time, or even ever, but I’ll show you here to generate automatic lottery numbers…for Mega Millions, Power Ball, Hit 5, and Lotto. This time, I’m using Python (a favorite among data scientists). Remember, I am NOT a programmer, but I’m a computer scientist. Difference? A […]
Randomization to Patterns!
Hello again, today I want to share with you a sample code (source and explanation) that generates random parameters, creates unique patterns out of them, every second, until the end of time! Sound intriguing? I love doing this kind of stuff. I code for fun, learning, and experimentation. I don’t consider myself a programmer because […]