Both apt-get update and apt update are commands used to update the package lists on a Debian-based Linux system, such as Raspberry Pi OS (formerly Raspbian). They perform essentially the same function, which is to synchronise the local package list with the repository servers to ensure that the latest package information is available. The main… Read More »
The command to upgrade Python’s “Pip Install Packages” or package management system is simply It’s nice and simple and it should be easy to memorise.
There are 2 main ways to install NodeJS on a Raspberry Pi. A short way and a longish way. The short way The short way uses a script from NodeSource that does the heavy lifting. The installation instructions can be found here but essentially you run 2 lines of code. To confirm that node is… Read More »
To enable ssh on a Raspberry Pi if you do not have access to a keyboard and monitor, just run the command: touch /Volumes/boot/ssh The catch is that you need to have access to the micro SD card and have it connected to your computer. Then open up terminal and type the command above. touch… Read More »
To fix a python error such as “ModuleNotFoundError: No module named ‘tweepy’”, you should check your version of python with: Often you will have one version installed but trying to execute the script with another version where the module is not installed. Check your python version in your path with: For me, my path specific… Read More »
To solve the error below: I needed to install mysql_connector via: I had already installed mysql via: But python needs both.
If you have changed your database schema, you can up date your model by first running the inspectdb command. If you have too many tables in your database, pipe the results to a temporary file first and then manually copy the models over. Then run: ref: https://dev.to/idrisrampurawala/creating-django-models-of-an-existing-db-288m
Secure Copy scp [file on your computer] [destination host]:[folder] PIP JSON viewer https://jsonlint.com/ One way to traverse YouTube is [header][c4TabbedHeaderRenderer][subscriberCountText][accessibility][accessibilityData][label] However, an easier way is to use a helper site.
Dreamhost has a great resource for installing Python which can be found at: https://help.dreamhost.com/hc/en-us/sections/203651898-Python In particular, if you are using Python 3, this is the resource guide to use: https://help.dreamhost.com/hc/en-us/articles/115000702772-Installing-a-custom-version-of-Python-3
Just add: to your .zshrc file and you should have the entire directory path displayed in terminal. %~ means show the path relative to HOME.