diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 6f79616..0000000 --- a/.bashrc +++ /dev/null @@ -1,22 +0,0 @@ - -bldgrn='\e[1;32m' -txtrst='\e[0m' - -print_before_the_prompt() { - printf "$bldgrn%s\n$txtrst" "$PWD" -} - -PROMPT_COMMAND=print_before_the_prompt -PS1="${VIRTUAL_ENV_PROMPT}-> " - -PATH="/c/Program Files/Python/Python314:$PATH" - -CP=$(which python) -echo "" -echo "Shell: $0" -echo "Current Python: $CP" -echo "" - -shopt -s autocd - -alias la="ls -lahF" \ No newline at end of file diff --git a/downloads.txt b/README.md similarity index 100% rename from downloads.txt rename to README.md diff --git a/install_git/Screenshot 2025-10-19 234819.png b/install_git/Screenshot 2025-10-19 234819.png deleted file mode 100644 index ac8c409..0000000 Binary files a/install_git/Screenshot 2025-10-19 234819.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 234933.png b/install_git/Screenshot 2025-10-19 234933.png deleted file mode 100644 index 3f2f633..0000000 Binary files a/install_git/Screenshot 2025-10-19 234933.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 234944.png b/install_git/Screenshot 2025-10-19 234944.png deleted file mode 100644 index 4d64b61..0000000 Binary files a/install_git/Screenshot 2025-10-19 234944.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235029.png b/install_git/Screenshot 2025-10-19 235029.png deleted file mode 100644 index 97fd3a3..0000000 Binary files a/install_git/Screenshot 2025-10-19 235029.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235055.png b/install_git/Screenshot 2025-10-19 235055.png deleted file mode 100644 index ca629b7..0000000 Binary files a/install_git/Screenshot 2025-10-19 235055.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235109.png b/install_git/Screenshot 2025-10-19 235109.png deleted file mode 100644 index a6585f5..0000000 Binary files a/install_git/Screenshot 2025-10-19 235109.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235159.png b/install_git/Screenshot 2025-10-19 235159.png deleted file mode 100644 index abaef51..0000000 Binary files a/install_git/Screenshot 2025-10-19 235159.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235209.png b/install_git/Screenshot 2025-10-19 235209.png deleted file mode 100644 index 0de1a3a..0000000 Binary files a/install_git/Screenshot 2025-10-19 235209.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235225.png b/install_git/Screenshot 2025-10-19 235225.png deleted file mode 100644 index 1631cfd..0000000 Binary files a/install_git/Screenshot 2025-10-19 235225.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235242.png b/install_git/Screenshot 2025-10-19 235242.png deleted file mode 100644 index 37b9bc5..0000000 Binary files a/install_git/Screenshot 2025-10-19 235242.png and /dev/null differ diff --git a/install_git/Screenshot 2025-10-19 235309.png b/install_git/Screenshot 2025-10-19 235309.png deleted file mode 100644 index c3aa21b..0000000 Binary files a/install_git/Screenshot 2025-10-19 235309.png and /dev/null differ diff --git a/install_git/git_win.key b/install_git/git_win.key deleted file mode 100644 index 0dfbdbd..0000000 Binary files a/install_git/git_win.key and /dev/null differ diff --git a/install_git/git_win.pdf b/install_git/git_win.pdf deleted file mode 100644 index aec65b0..0000000 Binary files a/install_git/git_win.pdf and /dev/null differ diff --git a/install_python/Screenshot 2025-10-20 001457.png b/install_python/Screenshot 2025-10-20 001457.png deleted file mode 100644 index c10a7d3..0000000 Binary files a/install_python/Screenshot 2025-10-20 001457.png and /dev/null differ diff --git a/install_python/Screenshot 2025-10-20 001636.png b/install_python/Screenshot 2025-10-20 001636.png deleted file mode 100644 index 556e092..0000000 Binary files a/install_python/Screenshot 2025-10-20 001636.png and /dev/null differ diff --git a/install_python/Screenshot 2025-10-20 001648.png b/install_python/Screenshot 2025-10-20 001648.png deleted file mode 100644 index ea7bb39..0000000 Binary files a/install_python/Screenshot 2025-10-20 001648.png and /dev/null differ diff --git a/install_python/Screenshot 2025-10-20 010122.png b/install_python/Screenshot 2025-10-20 010122.png deleted file mode 100644 index afcc5ce..0000000 Binary files a/install_python/Screenshot 2025-10-20 010122.png and /dev/null differ diff --git a/install_python/python.key b/install_python/python.key deleted file mode 100644 index fe9b1bc..0000000 Binary files a/install_python/python.key and /dev/null differ diff --git a/install_python/python.pdf b/install_python/python.pdf deleted file mode 100644 index 5c5a0a6..0000000 Binary files a/install_python/python.pdf and /dev/null differ diff --git a/profiles_for_macos/.zprofile b/profiles_for_macos/.zprofile new file mode 100644 index 0000000..40fd187 --- /dev/null +++ b/profiles_for_macos/.zprofile @@ -0,0 +1,6 @@ +## Default Python +# Comment out all but the one version of Python you want to use: +# PATH="/Library/Frameworks/Python.framework/Versions/3.12/bin:${PATH}" +PATH="/Library/Frameworks/Python.framework/Versions/3.13/bin:${PATH}" +# PATH="/Library/Frameworks/Python.framework/Versions/3.14/bin:${PATH}" +export PATH diff --git a/profiles_for_macos/.zshrc b/profiles_for_macos/.zshrc new file mode 100644 index 0000000..83970ca --- /dev/null +++ b/profiles_for_macos/.zshrc @@ -0,0 +1,31 @@ +## Shows you the current Python and the shell you are using +echo "Current Python: $(which python3)" +echo "Shell: $0" +echo "" + +# Set the Default Prompt +if [ -n "${VIRTUAL_ENV_PROMPT}" ]; then + PS1='(venv) %(?.√.X) %B%F{green}%d%f%b +$ ' +else + PS1='%(?.√.X) %B%F{green}%d%f%b +$ ' +fi + + +# Aliases +# With the alias that follows, you can type `la` to get a nicely formatted +# listing of the contents of the current directory. +alias la="ls -lahF" + +# Set set autocd and spell checking for zsh +setopt autocd +setopt correct + +# The first part of this line autoloads a function called +# "compinit". The second part runs the function. +# It provides autocompletion for git commands. +autoload -U compinit && compinit + +# Used by uv +. "$HOME/.local/bin/env" diff --git a/.bash_profile b/profiles_for_windows/.bash_profile similarity index 100% rename from .bash_profile rename to profiles_for_windows/.bash_profile diff --git a/profiles_for_windows/.bashrc b/profiles_for_windows/.bashrc new file mode 100644 index 0000000..068708a --- /dev/null +++ b/profiles_for_windows/.bashrc @@ -0,0 +1,22 @@ +## Tell you the current Python and what shell you are using +CP=$(which python) +echo "" +echo "Current Python: $CP" +echo "Shell: $0" +echo "" + +# Set the prompt +bldgrn='\e[1;32m' +txtrst='\e[0m' +print_before_the_prompt() { + printf "$bldgrn%s\n$txtrst" "$PWD" +} +PROMPT_COMMAND=print_before_the_prompt +PS1="${VIRTUAL_ENV_PROMPT}-> " + +## No need to enter cd when you want to change to a new directory +shopt -s autocd + +# With the alias that follows, you can type `la` to get a nicely formatted +# listing of the contents of the current directory. +alias la="ls -lahF" diff --git a/videos_on_macos_installs/README.md b/videos_on_macos_installs/README.md new file mode 100644 index 0000000..ade7c0a --- /dev/null +++ b/videos_on_macos_installs/README.md @@ -0,0 +1,21 @@ +# Videos about macOS installs + +To share code with others, you need to be able to follow instructions exactly. + +On macOS, you should be using one of the two most recent versions, either Sequoia or Tahoe. + +To do serious empirical research on macOS, you will need to have access to: + +1. A text editor +2. A recent version of Python and and a package manager +3. Git + +You will also need to be able to use the current default macOS terminal, which runs a shell program called zsh. + +When you open a terminal window, if you get a message that says you need to update to zsh, follow the instuctions and do this update. + +The videos in this folder show you how to install the most recent version of Python3.13, and a new packager manager called, uv. I also show you how to install a promising new text editor called Zed. If you would rather use Visual Studio Code, that is a reasonable choice for now, but be aware that it is already on the path to enshitification. + +The programs other than Git have familiar installers that you can download and run. Notice that the installer for Python will open a window at the end that has some files with names that end with ".command". As the video shows, you should double click on them to run them. + +The best way to install Git on macOS is to install a larger package that is known as "XCode Tools." To do this, you enter a command in the terminal as shown in the video: "xcode-select --install". If you do not already have XCode Tools installed, it will take some time for all of them to be installed. To speed things up, it is best to run this command when you have a high-bandwidth internet connection. diff --git a/videos_on_macos_installs/python313.mp4 b/videos_on_macos_installs/python313.mp4 new file mode 100644 index 0000000..56552ff Binary files /dev/null and b/videos_on_macos_installs/python313.mp4 differ diff --git a/videos_on_macos_installs/uv_macos.mp4 b/videos_on_macos_installs/uv_macos.mp4 new file mode 100644 index 0000000..bfd76a6 Binary files /dev/null and b/videos_on_macos_installs/uv_macos.mp4 differ diff --git a/videos_on_macos_installs/xcode-select.mp4 b/videos_on_macos_installs/xcode-select.mp4 new file mode 100644 index 0000000..013a222 Binary files /dev/null and b/videos_on_macos_installs/xcode-select.mp4 differ diff --git a/videos_on_macos_installs/zed_macos.mp4 b/videos_on_macos_installs/zed_macos.mp4 new file mode 100644 index 0000000..2524921 Binary files /dev/null and b/videos_on_macos_installs/zed_macos.mp4 differ diff --git a/videos_on_windows_installs/README.md b/videos_on_windows_installs/README.md new file mode 100644 index 0000000..565ebc3 --- /dev/null +++ b/videos_on_windows_installs/README.md @@ -0,0 +1,47 @@ +# Videos about Windows installs + +To share code with others, you need to be able to follow instructions exactly. + +On Windows, you need to be running version 11. Version 10 is no longer getting security updates. + +To be able to work with the tools I'll provide, you also need to be able to use: + +1. A text editor +2. A specific version of Python (we'll use the most recent version of Python 3.13) and and a package manager (I suggest trying uv.) +3. Git +4. Two shell programs: +- Powershell +- Git Bash + +The videos in this folder show you how to install one free text editor (Notepad++) that Git can use; Python3.13; Git for Windows (which includes Git Bash); PowerShell 7; and a popular new package manager called, uv. I also show how to install a new text editor that is under developement called Zed that you may want to try. (It is safer to use the much older Notepad++ for the narrow purpose of being an editor for Git commit and merge messages.) + +If instead of trying Zed for most of your text editing you would rather use Visual Studio Code, that is a reasonable choice for now, but be aware that it is already on the path to enshitification. + +**Pay attention to the specifics.** + +a. Microsoft offers two different programs with very similar names: Windows PowerShell and PowerShell. Windows PowerShell is installed by default as part of Windows. The instructions that follow refer to PowerShell version 7. It does not come with Windows. It has to be installed separately. + +b. The version of Python matters. The instructions I'll provide will work with Python 3.13 but not with Python 3.14. + + +**The order in which you do these installs also matters.** + +a. You need to install Notepad++ before you install Git for Windows. +b. You need to install PowerShell 7 before you install uv (at least if you use the method that I suggest. There are others.) + + +**Other Potential Confusions** + +i) During the installation process, you will sometimes need to click through a confirmation screen where Windows asks if it is ok to do the install. This is not something that the videos can capture. + +ii) You may not get the same defaults for checked boxes and filled in forms in the installer for Git for Windows. Whatever you see as initial defaults, be sure to check the boxes and fill in the forms as in the video. + +iii) The options you see in the videos for installing Python, and Powershell may not be available to you if you already have a version of the underlying program installed. + +- If you do have a version installed, you may be presented with different screens that give you the option to upgrade or repair the existing install and the option to uninstall. + +- The safest way to proceed is to uninstall and then run the installer again so you can specify the exact options in the videos. + +- If you try to do something else, such as upgrade or repair, you might fail to specify exactly the same selections as in the videos. If so, other things may break. If they do; go back; uninstall; follow the install videos exactly. + +- If you think that you can disregard the instructions offered here and just improvise, go for it, but understand that you are on your own. diff --git a/videos_on_windows_installs/get_uv.mp4 b/videos_on_windows_installs/get_uv.mp4 new file mode 100644 index 0000000..cf0ab41 Binary files /dev/null and b/videos_on_windows_installs/get_uv.mp4 differ diff --git a/videos_on_windows_installs/notepad++_git_for_windows.mp4 b/videos_on_windows_installs/notepad++_git_for_windows.mp4 new file mode 100644 index 0000000..ee4a7a4 Binary files /dev/null and b/videos_on_windows_installs/notepad++_git_for_windows.mp4 differ diff --git a/videos_on_windows_installs/power_shell_7.mp4 b/videos_on_windows_installs/power_shell_7.mp4 new file mode 100644 index 0000000..4557980 Binary files /dev/null and b/videos_on_windows_installs/power_shell_7.mp4 differ diff --git a/videos_on_windows_installs/python313.mp4 b/videos_on_windows_installs/python313.mp4 new file mode 100644 index 0000000..e426f9d Binary files /dev/null and b/videos_on_windows_installs/python313.mp4 differ