Euclidean distance is the length of the line segment between two points in Euclidean space. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem. It is a simple formula enough to be calculated by hand but powerful enough to be used in Machine Learning and Artificial Intelligence applications for […]
Category: Coding
UPDATED: Find out more about your birthday
Sometime ago, I shared my code on how to determined the day of the week of someone’s birthday based on the DOB. You can check the original post here: https://flyingsalmon.net/which-day-were-you-born/Today, however, I am extending it a little further and also showing additional information about the birthday. For example:The key news/historical events of that day!What generation […]
Word Connect Game
Recently, the game on New York Times has been getting a lot of attention and generating much excitement by the readers. While I don’t subscribe to the newspaper, my friends shared the game screens with me which prompted me to ponder if I could create my version of this in Python. So, after a few […]
Population, Procreation Simulation (Python)
In this post, I share my design and code for simulating some propagating organisms (you can think of them as humans, other creatures, cells, whatever you like) with certain rules. And although I have a couple of other variations of this made in C/C++ in the past, I wanted to do it in Python and […]
Impressive Voice->Text AI tool
I came across this newest entrant to voice to text AI generation tool called AudioNotes. It converts your ‘random’/unstructured voice notes and unstructured text notes into structured text summaries using AI. Essentially, it’s a note-taking app that analyzes the voice notes and can generate many variations depending on the need. I decided to give it […]
Word definitions, synonyms, antonyms via RAPIDAPI
This program gets all definitions of a user-entered word from WORDS API service called RAPIDAPI. Once connected, the response is in JSON and we display the meanings neatly on screen as well as optionally write (append) the word and its meanings(s) and part-of-speech to a csv file. Demonstrates: 1) how to get word definition using […]
Extract sample subset with given criteria
How to load a subset of data from a full dataset with given percentages proportions by a column (“Group” in this example) plus how to import/export the Excel data file. Objective:We have n food items from 4 different groups: dairy, fruits, protein, vegetable in an XLSX sheet with a header and 3 columns: Name, Group, […]
Extended weather forecast via API
In this blog, I share my code on getting extended weather forecasts (multiple days and hours within each day) for any city around the world using openweathermap API. I used Python for this as usual. First, as a developer, I need to get a developer API key from http://api.openweathermap.org which is free for reasonable amount […]
Summarization & Detecting Topics by Deepgram Whisper AI
This is the last of 3-part series on Datagram’s Audio->Text Transcriber using their latest AI engine called Whisper. Be sure to read them in this order, if you haven’t already, to follow along best: To complete essentially all the features I care to implement, today I’m going to add the last 2 features in my […]
AI Transcription with Diarization
This is the last of 3-part series on Datagram’s Audio->Text Transcriber using their latest AI engine called Whisper. Be sure to read them in this order, if you haven’t already, to follow along best: This is a continuation of the post about Deepgram’s AI technology used for transcribing real-time or pre-recorded audio in virtually any […]