Trying to run pytest or coverage run -m pytest to test your Django code? The error is telling us that the code no longer knows how to find our settings module. Note that we are no longer using the manage.py command to deal with Django code and if you look at this file, one of…
All posts by theptrk
Machine Learning Coursera Andrew Ng: Week 1 Illustrations
The Machine Learning course from Coursera with Andrew Ng is the best introduction to Machine Learning on the internet. These illustrated notes are from taking the course and letting the concepts solidify in my thoughts. Please enjoy.
JavaScript, node.js versions with nvm
TLDR: use nvm to manage node.js versions; develop and deploy with the same version. $ nvm ls-remote|tail to see the latest versions $ nvm ls-remote|grep LTS to see the “long term support” versions $ nvm install lts/erbium to install “erbium” (the latest release of version 12) $ nvm install 14 to install the latest version…
How to set “jj” as Esc in VSCode Vim
Step 1: Open the command palette shift + cmd + p Step 2: Search for “Preferences: Open Settings (JSON)” Step 3: Add the keybinding inside the settings object “vim.insertModeKeyBindings”: [ { “before”: [“j”, “j”], “after”: [“<Esc>”] } ] Another option is “fd” instead of “jj” since this can be typed faster than “jj”. Why? “jj”…
How to install Python 3 on Mac using homebrew
tldr; install brew; brew install python Homebrew is a great installer for Mac and its main job is to make it easier to install packages. Step 1: Download Homebrew here “brew” hosts its package information here as “formulae“. Step 2: Use brew to install the latest version of Python $ brew install python –verbose Now you…
Machine Learning Introduction: My three favorite resources
My three favorite introductory resources to Machine Learning “Machine Learning” Coursera course by Andrew Ng (link) This is the canonical best introduction to machine learning. It’s recommended by most and is a top choice for introduction to ML even in some FAANG some companies. The course covers supervised learning (including linear regression and logistic regression…
Understanding Dimensions – Linear, Logistic Regression
In the forums of the Coursera course “Machine Learning” by Andrew Ng, there are many questions regarding the dimensions of the input matrix and theta. Here is an intuitive guide to understanding the dimensions. Click the link below! Understanding-Dimensions-Linear-Logistic-Regression.pdf In Summary: The dimensions of your input matrix (X) is typically clear and driven from…
Notes for Coursera Machine Learning Course with Andrew Ng (Week 1-5)
I am currently taking the Machine Learning Coursera course by Andrew Ng and I’m loving it! I’ve started compiling my notes in handwritten and illustrated form and wanted to share it here. If you are taking the course you can follow along 🙂 AI Cartoons Week 1 – 5 (PDF download link) Sign up for…
vim jj to esc mapping
For a single vim session (safe version) :inoremap jj <Esc> For every vim session (still safe) Save this to your .vimrc file in your home directory. ” this is a comment so you remember this later ” insert mode; no recursive; map; <from>; <to> inoremap jj <Esc> * change jj to anything you want, fd…
How to change your command line prompt
Your command line welcomes you with a prompt. Default OSX terminal may look like this. PS1 is the variable used by your shell to determine your command line prompt RPS1 determines your right hand prompt. Note, you can always `echo` this variable to see what these are currently set to. By default, mine is set to…