Ever wonder what similarity a pair of words have with each other? Quantifiably? As in percentage? As in 50% match or 100% match, etc.? (Whoa, wouldn’t that be great if that worked out in dating world, eh?). Anyway, it’s okay if you haven’t wondered about it, because I did and here I share a few […]
Tag: programming
Letters to Patterns (what does your name look like?)
Letters, in whatever language/scripts are really glyphs aren’t they? They’re a visual representation of a letter that’s supposed to sound (or not sound) like something that we repeated until we memorized it since birth. All good 🙂 I was thinking of different ways to represent letters…you know, just for fun! Yes, I’m weird like that. […]
Word-Game: “Words Matter!” (Python)
Welcome back! Today, I share a new game idea (I thought of it myself but if there’s any such game out there, it’s a pure coincidence and I did NOT use those as a foundation). Disclaimer and (c): The idea cannot be recreated in any shape or form for any purpose (other than learning/education) without […]
Fill-up Tanks Quiz (Scratch)
Welcome back! You’ve surely seen images as below that appear online (internet sites, social media apps, etc.) Â In this Scratch app, I’ll demonstrate how to turn those static quiz images into an interactive, dynamic quiz application. Ouput:Â This is what a quick game play session looks like in this app. Design: First, I need […]
A Guessing Game in Python…
Let’s play a simple number guessing game! Then, let me show you how to program the game in Python. Nothing fancy…but core logic here. Gameplay: Here’s a sample output of the screen. Computer (AI) guesses a number (1-20 inclusive) and you guess the number via tries. Computer tells you each time if you’re “hot” or […]
The world’s first “smart”-phone
It was in the late 90s when, fresh out of university, I got my first real career job at now defunct Geoworks based in Alameda, CA (their Seattle resources taken over by Amazon.com since). They built the embedded platform on Unix for various mobile devices including PDAs, beepers and such (remember those?). I was on […]
Adding sound to Python code
Python isn’t necessarily for multimedia programming, so only recently I looked up ways to add audio in a Python script. Turns out there are several ways to do that. They’re all really simple. Methods to add sound: 1. import winsound fname = “soundfile.wav” winsound.PlaySound(fname, winsound.SND_FILENAME) 2. import pygame pygame.init() s = pygame.mixer.Sound(“soundfile.wav”) # Start playback […]
Program to care for a pet (Scratch)
Hello, and welcome back. Today, A fun program to introduce kids/beginners to understand logic and loops while taking care of a pet fish 🙂 Easy to code and easy to play. Code is commented with explanation. Check it out here: https://scratch.mit.edu/projects/282372671/ Enjoy! Challenge: I intentionally kept the core code simple and uncomplicated. However, if you grasp the […]
Abstract Art with Code (Art<->Tech). Volume III
VOLUME 3 If arts and tech had a baby, may it’d look like me 🙂 Anyway, I love mixing the two, interconnecting, and interpolating them…because I’m always curious. Results can be incredibly satisfying or surprising. These are not the best of my work in any form in coding, but wanted to share these short programs […]
Abstract Art with Code (Art<->Tech). Volume II
VOLUME 2 If arts and tech had a baby, may it’d look like me 🙂 Anyway, I love mixing the two, interconnecting, and interpolating them…because I’m always curious. Results can be incredibly satisfying or surprising. These are not the best of my work in any form in coding, but wanted to share these short programs […]