In the chapter The Long Tail of the Law, in Alex Bellos’ book The Grapes of Math, he shows some different statistical patterns that share the same properties:Continue reading “Zipf’s law, Kleiber’s law, and finding interesting patterns in browsing history”
As you may have noticed, the repeater-START app doesn’t currently have an option to change that internal km/mile calculation. It also does not have any option to filter the repeaters of VHF, UHF or your preferred band.
Let’s see how to add a new dialog, then store the options, and load them on your program’s start:Continue reading “Building a Linux app part 8: Adding an options screen”
After you’ve upgraded your Ubuntu machine a few times, you might find that free disk space is low and some Python commands have issues. Programs like Bleachbit can help you clear old packages or cache that you don’t need, but sometimes you need a minor manual fix as documented here. As you may know, Pip is the main package management you’ll use to install packages you use, so this can be problematic.
After upgrading 16.04 to 18.04, I got an error on command line “pip”:Continue reading “Fixing Ubuntu Python-Pip”
Hacktoberfest is coming up, online this time (well, the core of hacktoberfest always has been online collaboration…), and there are several projects I’ve worked on that welcome contributions:
- Repeater-START – a useful tool for any ham radio enthusiast looking for repeaters.
- Hearham Listener – also connects to hearham.com, this is an experimental listener to listen for audible callsigns on the ham radio.
- Anti-Auto-correct, very useful for students in these remote times!
- iosTransferGUI – I had used this for transferring files to iDevices, on Ubuntu.
- Pylympus – for certain Olympus cameras with wifi-remote, a pure Python remote program.
There are many others and probably plugins or software you use every day that may need contributions or bug fixes, so with less than a month before the start, be thinking about what projects you might contribute to! Check out the full details at https://hacktoberfest.digitalocean.com/events
What3words is an interesting alternative to sharing around long latitude/longitude numbers, instead share just a few words!
The first step to integrating the api is signing up for a free API key. Then require the library using composer – in the main project folder run:Continue reading “What3Words API in Laravel: Integrating geolocation finder in your web app”
While many of us may not be going to favorite programming conferences, there are some interesting upcoming conferences to watch or watch the videos:
Digital Ocean TIDE – Going on now, a bit like the AWS free conference – a bit of an infomercial.
Knime – still a few upcoming live dates coming up on this one and the previous sessions are up, explaining this powerful machine learning tool.
May you go fourth and program!
200 OK conference – tomorrow, May 15th
Enthusiastcon – 10min talks June 6th
It’s easy to start a Python project in one file, and then add class after class and function after function in the same file – as i have in the repeater-start project. This can get unwieldy after awhile. As I am adding a type for the open-source Hearham Live Repeater Listing, I will make a new node creator that will get the repeaters out of the api. So from what I had before, just one repeater code:Continue reading “Building a Linux App with Python – Part 6, connecting to the repeater listing!”
With the number of cheap RTLSDR devices that let you listen to radio or ham radio, it’s only natural to want to check out each of the repeaters and their use when you go to a new area. In fact, once you have a device set up correctly it is easy to integrate that (or any other command line features) into your project.
To start with I set up a class based on what I added for Hearham uploader – this will make the command run in a separate thread, continuing the process until it is killed. An ongoing process must not be on the same thread as the GUI (in any interface, Java, Android, or GTK…) This is going to use subprocess module as it can make it easier to use an existing utility (rlt_fm command in this case), rather than doing the whole signal processing in Python.Continue reading “Building a repeater app for Linux, part 5: Subprocess for listening to the radio”
Another important part of many mobile apps is location tracking – there is, fortunately, there is a built in api for most Linux systems called Geoclue that should work… There is even a Python-geoclue package, but after some digging I found that this package does not work in Python3. In fact it’s hard to find examples or documentation, if you look at the files of the package you can see there are some basic docs:Continue reading “Building a mobile app for Linux, part 4: GPS/mobile tracking”