Posts

Showing posts from October 20, 2019

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, li

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