Photopea

Photoshop in a web browser, pretty amazing! https://www.photopea.com/

August 13, 2020 · 1 min · birdchan

brew update is stuck

There is no output, no errors, no nothing. It just sits there. Maybe related to this, who knows? https://github.com/Homebrew/brew/issues/3285 So I reinstalled brew. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" But then the install process is stuck at this line ==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools After some googling, apparently it’s caused by some combination of osx and xcode, see here: https://github.com/nodejs/node-gyp/issues/569. So I ran the following to fix the issue. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer But then after Ctrl-C and reinstall brew, I got stuck at another line, seems like it did a git reset HEAD but stuck right after. ...

August 12, 2020 · 1 min · birdchan

Get real page source

Nowadays with all these javascript frameworks if you just do a view page source, you will only get the skeleton app div with a bunch of script tags. To see the expanded real page source, type in the following in the web console. copy(document.querySelector('html').outerHTML) That will copy the computed dom to your clipboard, then you just need to paste it to your text editor. You will see all the other dom nodes which the js files added to the app div. ...

August 7, 2020 · 1 min · birdchan

Watch these videos before looking for a new car

Kevin Hunter, who worked at car dealerships before, gives the inside scoop of what’s happening at the car dealerships. I have experienced a few things he talked about in the past. These videos are definitely worth watching before heading to the car dealerships.

July 26, 2020 · 1 min · birdchan

Personal information price tag

Here is a nice blog post on how much things related to personal information (e.g. credit cards, driver license, etc) are sold on the dark web. https://www.privacyaffairs.com/dark-web-price-index-2020/

July 15, 2020 · 1 min · birdchan

Financial Statements

Here is a nice tutorial on financial statements. https://www.causal.app/blog/whats-a-financial-statement

July 15, 2020 · 1 min · birdchan

Format a USB stick

There are times Disk Utility cannot help you. Then you know it is time to turn to the command line. sudo diskutil list sudo diskutil eraseDisk FAT32 NEW_DISK_NAME /dev/disk3 Make sure /dev/disk3 is indeed the usb drive, go through the drive list from the result of the first command to make sure. FAT32 is the file system you want to use on the usb drive. And NEW_DISK_NAME is the usb stick volume name. If you pick say myDrive, and you get the error myDrive does not appear to be a valid volume name for its file system, simply use uppercase characters, e.g. MYDRIVE, that will help you move forward. You can rename it later after formatting it. ...

July 9, 2020 · 1 min · birdchan

Async/await

Nice tutorials https://javascript.info/async-await https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await

July 8, 2020 · 1 min · birdchan

Total Compensation Calculator

This calculator is so handy! https://www.levels.fyi/calculator/

July 8, 2020 · 1 min · birdchan

COVID-19 Vaccine Tracker

Here is a website to track the vaccine progress. https://biorender.com/covid-vaccine-tracker

June 17, 2020 · 1 min · birdchan