Posts

How to Use Kivy on Repl.it

Image
I made the Kivy  Python cross-platform GUI framework work in a GFX REPL on Repl.it . Repl.it is a multi-language cloud IDE with good support for Python. To use Kivy on Repl.it, just create a Pygame REPL, which is among the Kivy dependencies, and install Kivy with the package manager or by adding kivy to requirements.txt . Starting such a REPL in a new session takes a while to download and build the required libraries, at least several minutes. So be patient. This REPL runs the Kivy Showcase , a demo app that showcases some of Kivy’s features. The demo works fine except for a few overlapping widgets in the top bar. And it has some latency issues, but the poor performance is mostly a consequence of the experimental state of GFX. If you adjust the handles along the edges of the REPL panes to close all the panes except the app’s, you can use most of the web page area. Here’s a screenshot of what it looks like. I can’t wait for GFX to support running graphical apps as a website...

Experimenting With Webmentions and Blogger

I’m experimenting with some IndieWeb features on my Blogger blog, particularly webmentions. Webmentions is a web standard for merging the reactions to a blog post across the web. The reactions typically appear as comments to the original post and link back to the sources. I followed the IndieWeb Blogger tutorials for adding to my blog an h-card microformat and support for webmentions. It’s pretty easy. For example, adding webmentions through Brid.gy requires adding just one line of code to the blog’s template. I originally set up Brid.gy to listen to webmentions from Twitter. This works great but, when a tweet has a link to a post of my blog, the full text of the tweet is published as a comment. Copying all the text of other users’ tweets makes me uneasy, especially considering those users may not be aware of it. Therefore, I turned off listening to webmentions from Twitter and deleted the Twitter reactions Brid.gy had initially added as comments to my posts. The blog is...

Hello, Planet Python!

Image
Planet Python is now syndicating the posts about Python of my blog. Thanks to the project maintainer Bruno Rocha for letting me join. You may think of Planet Python as the all-you-can-eat source of Python content. It’s an aggregator of dozens of blogs, podcasts, and other resources on the Python programming language. It syndicates posts that cover Python or are of interest to the Python community. Planet Python is a terrific resource for learning the language and keeping up with what’s going on in its ecosystem. I highly recommend that you subscribe to the RSS feed of Planet Python . If you’re reading this on Planet Python, hi there! About me I’m Paolo Amoroso , an Italian astronomy and space popularizer, a Google expert, and a podcaster . I’m a Python beginner as I started learning the language in December 2018. But I have been a hobby programmer since the home computer revolution of the early 1980s. And I have always had a soft spot for programming languages, paradigms...

Spotting Satellites With Google Street View

Image
See A Satellite Tonight is an app for showing where to view artificial satellites in the sky with the naked eye. The See A Satellite Tonight app showing a satellite pass in Chrome on my Pixel 2 XL phone. The app simulates the motions of satellites across the sky by overlaying them to a Google Street View panorama. This makes it straightforward to spot satellites, especially for users with no space or astronomy background. During a pass you can see where the satellite is in the sky at your location with respect to landmarks and buildings you are familiar with. It’s a brilliant twist on an ephemeris interpretation problem. Most apps for showing the positions of satellites or predicting passes give guidance through astronomical references such as star charts, the horizon, or coordinates. Googler James Darpinian developed See A Satellite Tonight . It’s a web app designed to work on both the desktop and mobile devices, such as with Chrome on Android. The app has a few limitat...

Follow Space Events With Spaceflight News for Android

Image
Spaceflight News is an Android app that aggregates space news stories and data on space events such as launches and orbital maneuvers. The main screen of the Spaceflight News app on my Pixel 2 XL phone. The app lists the headlines of the stories and links to the respective sites and blogs for reading the full text. The headlines come from the Spaceflight News API , a project by the same author of the Spaceflight News app. The API lets developers add to their own apps spaceflight news from selected sources. So it doubles as a demo app for the API. The Spaceflight News API is inspired by the Launch Library , a project to provide developers with an API for adding to their apps a wealth of data on space launches collected and maintained by a group of volunteers. The Spaceflight News app provides also Launch Library data, and other information on space events such as vehicle rollouts, docking and berthing maneuvers, and more. Although there are great and more advanced launch dat...

Blogging Awareness in 2019

If you've been on the web for more than a decade, you’re familiar with blogs and how they work. But don’t take for granted that others do. Two recent Reddit threads in r/Blogging hint at how low awareness of blogs and their infrastructure is in 2019. A blogger wondered how to follow a blog and suggested using Twitter, completely ignoring RSS. In a different thread, another blogger shared an anecdote that made him realize many young people don’t know what blogs are . What’s more worrying is the demise of RSS , a valuable source of repeated, interested traffic that bloggers own and can control. It’s comparable in effectiveness and growth potential only to email newsletters. Suppose a typical user stumbles upon a blog they like and want to follow. They don't know how to do it as RSS, the best tool for that, is even less known than blogs. Visiting the blog from time to time is impractical, the user forgets and moves on. They may follow the blog's social profile. But, giv...

Why I Stopped Using My Xiaomi Mi Band 4

Image
I bought a Xiaomi Mi Band 4 from Amazon and returned it the day after it arrived. Why? Because of some usability issues tech reviews don’t tell about. The box of the Xiaomi Mi Band 4 fitness tracker I returned. Why I wanted the Mi Band 4 I actually didn’t want a fitness tracker. My Moto 360 2015 smartwatch is apparently dying. So I wanted a replacement for the Moto 360’s most useful feature to me, the ability to show the notifications from the phone when it’s more convenient to twist the wrist than to reach and grab the phone. I thought the Mi Band 4, a popular and affordable device, could do an acceptable job at that. Usability issues The Mi Band 4 seems like a good and useful fitness tracker with a clean user interface. But, when I tried it, I realized it has some usability issues that make it less suited for what I needed. The first is the font of text longer than a few words such as in notifications is so tiny , with prescription glasses I have to strain to read ...