On page 110 of Professor Stewart’s Casebook of Mathematical Mysteries, he shows a neat visual way of calculating the GCD (Greatest common denominator, aka HCF, Highest common factor. Given a box with sides of two different lengths, draw squares from the lesser side until you can draw no more. Then continue from the corner the other direction. The smallest square has edge length of the GCD!
Continue reading “Euclid’s Doodle – and writing a visualization with Matplotlib”Installing Python modules even when they don’t behave… e.g. installing Scikit-image on Ubuntu 16.04
Usually when you are missing any Python library you happen to want to use, you can install it in Python and have it accessible from your scripts or terminal, simply by using:
pip install <name of package>
Continue reading “Installing Python modules even when they don’t behave… e.g. installing Scikit-image on Ubuntu 16.04”Reading Amateur Radio Frequencies with RTLSDR device and Python
There are many cheap ($5-20) USB RTL-SDR devices you can find on Newegg or Amazon that have an unexpected extra of being able to pick up broadcast radio. This is a handy feature, and in fact we can even read ham-radio frequencies by changing the bandwidth and frequency to read. There are excellent howtos on the easy installation of GQRX for just listening to the radio and setting your frequency and listening, and that’s a good way to start with testing your device. In this post I’ll show how to read and listen to radio using just Python and the Python RTLSDR library, which will show a lot more detail in how decoding radio works, and lets you run a clean interface to listen or record radio.
Continue reading “Reading Amateur Radio Frequencies with RTLSDR device and Python”Analyzing Scott Flansburg’s Nines Trick
There’s an old math trick that goes like so – choose any number… say 171…. add the digits and subtract.
171-9 = 162
Take its sum of digits and subtract them…
162 – 9 = 153
Take its sum of digits and subtract them… Continue reading “Analyzing Scott Flansburg’s Nines Trick”
Adding BLM Land Use Maps to Osmand on Android
In the US, various hunters and fishers use the Bureau of Land Management’s maps. There are of course several apps that can let you add BLM maps…
- Avenza has some maps provided by BLM specifically for avenza app.
- Gaia maps pro has had the public lands feature for years.
- Osmand has not the greatest support for viewing what land area you are in and looking at, but many local points of interest are in this app that are not in others as it uses the Openstreetmap which can be added and edited by locals with places they actually care about. Also unlike most other offline mapping apps it is open-source, available on F-Droid store, and very extensive, and respects user freedoms and an active developer community.
For some time I have wondered why the public domain BLM land use maps aren’t an option in Osmand, I tried mobac but found no way to get the maps I wanted, but after a bit of research I found the answer! Here are the steps to add land use maps to Osmand. Continue reading “Adding BLM Land Use Maps to Osmand on Android”
Neural Networks Part 2: Learning Pi
Thousands of years ago, probably around the invention of the wheel, and before the time of Solomon, humans must have been measuring various objects… calculating some distances, and wondering, is there a better way to measure how far around the outside of a wheel is compared to its diameter? Continue reading “Neural Networks Part 2: Learning Pi”
The only metric guide you may need
Kilometers, Centimeters… microfarads, farads… They units are all a multiple of 10, but that doesn’t make them that much easier as you are first learning them. What is 1.09km in cm? or 1205cm in km? With a quick jotted down note card you can very quickly see what any commonly used metric unit converts to!
Setting up AREDN node with Ubiquiti Nanostation with Ubuntu
If your area has other ham-radio operators that are using an AREDN network, an Ubiquity router is a great way to connect to the local LAN network. Note that you will need:
- An amateur radio license.
- An Ubiquity Nanostation (the “loco” one is cheaper but it has less range 🙁 )
- POE outlet to 2-ethernet adapter (included when you buy a new Nanostation)
- Two ethernet cables (You will want at least one outdoor-rated cable if you will put it outside, which will likely be necessary for good signal.)
Continue reading “Setting up AREDN node with Ubiquiti Nanostation with Ubuntu”
Think outside the box for the most optimal recycling solution.
Today we did some up-cycling of political ad signs. After elections these generally go in the trash, but Talent Maker City had a public event to build some cool stuff out of these corrugated plastic boards! (Update- see the howto for version 2 of a durable cargo bicycle box here)
Continue reading “Think outside the box for the most optimal recycling solution.”
Into Neural Networks! Part 1
Keras is a library that makes machine learning easy to run and train without knowing too much of the math behind it. It has many tutorials including an excellent howto by Egghead.io, Pyimagesearch and of course the official documentation and books…
…but what if you want to look into the details of how it works? Neural networks are a series of functions that are adjusted over time, and we can “see” what happens in a simple example. Continue reading “Into Neural Networks! Part 1”