Django and Docker w Psql

This happens because your pgsql db was launched without any envs. The pgsql docker image only uses the envs the first time you created the container, after that it won’t recreate DB and users. The solution is to remove the pgsql volume so next time you docker-compose up you will have a fresh db with envs read. … Continued

Batch Rename with ZMV

Need to rename a bunch of files to update to Composer autoloading. Migrating from underscored Namespace and Class names to PSR12 compliant Pascal Case. Found this: Found this for zsh: In case of zsh: command not found: zmv load it with autoload -U zmv. The -n is to test out. This is what I came up with: And

Some Postgres References

OSX Log file /usr/local/var/postgres/server.log An Error: A solution on SO. An error: A solution on SO: brew postgresql-upgrade-database

OSX Data Recovery

After some research, liking https://www.cgsecurity.org/wiki/PhotoRec and https://www.cgsecurity.org/wiki/TestDisk. Both open source. Also DMDE (Disk Editor and Data Recovery Software)The software is to search, edit, and recover data on disks Copyright (c) 2005-2020 Dmitry Sidorov http://dmde.comhttp://softdm.com

Swapon, fstab and swapfile on Linux

Resuorces: https://linuxhandbook.com/increase-swap-ubuntu, https://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/, https://www.techwalla.com/articles/how-to-increase-virtual-memory-in-linux First thing is see how much memory we have to play with: How big is the current swapfile? To double that, to around a gig: Permissions: Setup Swap area: Now enable it: Now update the fstab file so it loads on restart: Check it: You can also turn one off: Update … Continued

Windows Base Box for Elliptical Machine Interface

Client has a Windows 10 computer which we are already running a Python script on, which writes out a file containing Spotify playlists for Elliptical machine sessions. Now we want to also display the data from the Keiser Elliptical machines: one machine initially, ultimately more than one. First step, create a Windows Guest box on … Continued

Spotify vMix Integration

The quickstart: https://developer.spotify.com/documentation/web-api/quick-start/ Create the App: https://developer.spotify.com/documentation/general/guides/app-settings/#register-your-app Our apps: https://www.spotify.com/us/account/apps/ Well that codebase is outdated, but it was a good intro. Also tested some Curl requests, which you can generate via their console. I think that this Python library, Spotipy will be our tool of choice. It’s open source on GitHub. Here’s our endpoint reference: … Continued

Git Mergetool

Spent a while the other day trying to figure out what to use for a Git Diff and Git Merge tool. Settled on Kdiff3. With this install approach: From Stack Overflow. And also from SO, the config: To ~/.git/config add: Now $ git mergetool brings up a useful dialogue. I had tried Beyond Compare as … Continued