Some Useful Python Utilities

Some Useful Python Utilities
There are a number of small Python functions that I have copied around to several of my projects, both professional and personal. They are unrelated but generally useful and I have put them into a single repository at gitlab.com/johngoetz/pyutil. Here, I’ll talk about the smaller and more useful methods that I use almost daily. Back-Porting Features from Older Versions of Python When dealing with many different systems and platforms, such as in automated testing infrastructure for desktop application software, we can’t always keep Python up to date. [Read More]

Migrating from Docker Compose to Podman

Migrating from Docker Compose to Podman
For small operations, say 20 developers or so, deploying web services using docker and docker-compose seems to be plenty sufficient. When a single server can handle all the load requirements for a website, the simplicity and transparency of docker-compose is great. I used to take a VM snap-shot, run docker-compose pull followed by docker-compose up -d and just like that, my GitLab instance was up and running the latest version. All of this convenience was threatened when I attempted to keep up with current developments in container technology and switch to Podman. [Read More]

OpenGL with Python Part 2

OpenGL with Python Part 2

Building up a simple foundation of modern OpenGL with shaders using Python, PyOpenGL and GLFW, we introduce the model-view-projection matrix and uniform variables.

[Read More]

First Steps with OpenGL Using Python

First Steps with OpenGL Using Python

Modern OpenGL with shaders is used with Python 3.7 via PyOpenGL and GLFW to create a simple hello world script that will be the starting point of diving deep into the GL shader language (GLSL).

[Read More]

Controlling Subprocess Window Position from the Terminal

Controlling Subprocess Window Position from the Terminal
I wanted a way to open processes from a script and have the resulting window placed in a specific position on the screen. There seems to be only a few options to get this done on Linux. The top contenders are: wmctrl, xdotool and devilspie2 but as far as I can tell, none of these tools assist in getting the window ID if it’s created in a child process. I started down the road of using the ps command, but switched to Python and the psutil module for it’s convenient Process. [Read More]

Write Python with the Ease of FORTRAN!

Write Python with the Ease of FORTRAN!

Using Forpy to write a FORTRAN program that links in the Python runtime. This is called “embedding” and is the opposite of what is typically done through “extending” with something like f2py.

[Read More]

Ghost Platform Using Docker

running ghost and nginx with docker compose

Ghost Platform Using Docker

While ghost was great in that it provided a very convenient editor via the browser, I decided to switch to using Hugo hosting on GitLab. The maintenance of the Linux server hosting Ghost on Azure became too much and upgrading was always painful for some reason. However, I may still go back to Ghost and will keep this post here for future reference. Anywys, this post is mostly about Docker and less about Ghost.

[Read More]