Python development tips 2024
Local install packages Better debugging Built-in exceptions Adding site specific customizations Constants ...
Local install packages Better debugging Built-in exceptions Adding site specific customizations Constants ...
Bootstraping Execution order Create a file without external template Creating inventory script Writing ansible modules in sh ...
Introduction Method 1: Mounting /var/run/docker.sock docker.sock permission error ...
Pre-requisites Preparation Base infrastructure Notes ...
Introduction Origins Why use OpenTofu Using OpenTofu ...
After looking a multiple options of GUI programming under python I eventually settled for tkinter. The main reason was that tkinter is very ubiquitous and initially though the learning curve wuld have shorter as I was very used to GUI programming using TCL/TK. Turned out that what I known TCL/TK did not translate ...
Introduction Input Data Desired Output Approach Original Script ...
I have been programming for about 40 years. Going through a lot of different languages and programming paradims. Lately most of my programming is done in: bash/shell script Python ...
Python development on Windows Distributing Python scripts as single EXE or Directory Installing netifaces on Windows Documentation generation ...
For years I have been using VNC for my remote desktop needs. This works usually well enough. The features that I like are: Basic set-up is easy Desktop sessions are persistent Can be used to view an actual X11.org desktop. ...
As part of my small project of movng my Z-Wave Hub to a Raspberry PI, I got an X728 kit. This has: UPS controller board RTC circuit ...
I always had issues remembering how to create releases. So in order to standardise things, I wrote this script: ghrelease So whenever I am ready to release I would then just issue ...
So I was looking for a way to version control database schemas, but I never found something that worked for me. I found all these options that never seem to match what I wanted: metabase dbv ...
This is the least you need to know to get to use a Python virtual environment. What is a Virtual Environment At its core, the main purpose of Python virtual environments is to create an isolated environment for Python projects. This means that each project can have its own dependencies, regardless of what ...
The other day I needed to copy a bunch of files between to servers in my home network. Because of the volume I wanted to copy the files without having to go through ssh's encryption overhead. So I figured I could use netcat for the data transport. To do that I wrote these short scripts. Remote scripts ...
Since now I have a Android TV I put away my HTPC and with that the capability to view DVDs or listen CDs directly. So I converted my entire CD and DVD library to media files and stored in my home NAS. Since we are talking hundreds of DVDs and CDs, I was using some tools. CD ripping For CD ripping, pretty much everything can be done with abcde. ...
Writing shell scripts leaves a lot of room to make mistakes, in ways that will cause your scripts to break on certain input, or (if some input is untrusted) open up security vulnerabilities. Here are some tips on how to make your shell scripts safer. Don't The simplest step is to avoid using shell at all. Many higher-level languages are both easier to write the code in in the first place, and avoid some of the issues that shell ...
So I finally moved my WordPress web sites to OpenShift. OpenShift is a cloud based Platform-as-a-Service offering from RedHat. And while there is a learning curve I would say that so far it works great. My implementation is a fully cloud based solution. Makes use of the following services: GitHub for code hosting ...
My latest weekend project. Making a normal digital camera WIFI enabled. With the Transcend Wi-Fi SD Card you can convert any digital camera into a Wi-Fi enable camera. What I did here is to set it up so that it would automatically upload photos whenever I turn the camera on while at home. The nice thing about this camera is that it runs a fully functional Linux environment within the card. The manufacturer was also nice enough to give you the opportunity to customize the card by running arbitrary shell scripts from the SD card itself. My code is in github. ...
So finally took the time to try out a Raspberry Pi. For this weekend project wanted to do something relatively simple. Essentially, I wanted to recreate/enhance the functionality of a TL-WR702N. The TL-WR702N Nano Router is a neat device but being closed, can not be customized to what I wanted. It can be used in the following modes: ...