Venn diagrams are versatile and useful for a variety of purposes. Some common uses are: Visualizing Relationships: They illustrate the logical relationships between different sets. For example, they can show how different groups overlap and share common elements, and which don’t.Comparing and Contrasting: They are great for comparing and contrasting different items, ideas, or groups. […]
Tag: coding
Generating quick fractals in Turtle
In this post, I share a quick way to generate impressive fractal images using Python and Turtle library. Both real-time demo and code provided. I’m using all official Seahawks NFL team colors in drawing three distinct circles, each in a loop with a certain radius. The radius of each circle is pseudo-randomly chosen from a […]
Numbers to spoken words
How do you say this number: 8129311136456.25? Not easy even in your native language, and far less so in a foreign one. But don’t worry, in this blog I share the solution. The number, no matter how gnarly, you enter will be converted to a spoken word…even in foreign languages. Okay, before I reveal the […]
A scalable, fun Fill-in-the-blank game in Python
In this post, I share the code and design of my quick but scalable script for writing a fill-in-the-blank application written in Python. You can play a smaller version of the game right here on this page (below). At the end of the post, you’ll find a link to a more refined, UI-polished, online version […]
Creative and Fun Uses of Hashing (Part 2)
In an earlier post, I demonstrated a fun and creative use of hashing to create unique visual signatures based on any input. In this post, I’ll create add another twist to it. Specifically, I’ll show another creative use of hashing where we can input any city name and get it’s real-time weather information, and based […]
Creative and Fun Uses of Hashing (Part 1)
In this post, I’ll demonstrate a fun and creative use of hashing. Before I explain briefly what is hashing for those unfamiliar, let me just give you an overview of my original intent of this exercise. We know that hash functions will give us unique values for a given input (letters, numbers, binaries), so I […]
Creating universal unique IDs
I wanted a way to generate an automatic but unique code or password without it being easily back-traceable and collision-proof. i.e. each time it is executed, it must generate a unique universal ID, aka UUID. Additionally, that code or password must be 8 characters long and must contain a combination of letters and numbers and […]
Saving output from Turtle as an image (Python)
Saving output from the turtle module in Python involves a few unique steps compared to other libraries. The turtle module primarily uses the Tkinter canvas to render graphics, and saving these drawings typically requires converting the canvas to a PostScript file using the postscript() method. This file can then be converted to more common image […]
Given 4 numbers and a resulting number, create the equation to solve
You’re given four numbers and a result. You are supposed to create an equation with those four numbers that yield that given/desired result. Easy enough. Yeah, right! That’s the kind of puzzles some newspapers are running to challenge the readers as in Epoch Times et al. This is commonly referred to as the 4Numbers game. […]
Customizing Windows desktop wallpaper automatically, on schedule (Python)
With a little programming know-how, you can write your own dynamic Windows wallpaper app that can change its color to whatever color you want, to a random color that your app chose for you for the day, or set to your photos, images on a rotating basis or randomly picked from a list from your […]