We all deserve boba (“bubble tea”). This incredible drink invention is one of Taiwans greatest gifts to the world. Boba costs about $5 at your neighborhood shop. Treat yourself to one boba a week for $5 per week or $260 per year. So how do you earn free boba for life? You can earn money…
Setting up zsh on new computer
zsh is the new MacOS default From Catalina zsh is the default shell on Mac (apple). If you need to manually change your shell: You will be updating your config A LOT in the beginning, so the most important aliases are these. Option: Easy mode: download oh-my-zsh Skip the configuration and use a prebuilt framework:…
Cartoons for Machine Learning Coursera Andrew Ng: Week 1-5 V2
This is an updated and improved version of the original “AI Cartoons” from here (https://theptrk.com/2020/07/05/machine-learning-coursera-week-1-illustrations/). I love drawing these cartoons because it helps solidify the fundamentals and play with concepts in my mind. AI-Cartoons-Weeks-1-5-V2.pdf If you have feedback, I would love to chat on Discord here Thanks for Andrew Ng who sparked the interest in…
pytest (error): Requested setting ROOT_URLCONF, but settings are not configured
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…
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…