Video Game Randomizers

It’s interesting how you can randomize some well-known retro games so you don’t always keep doing the same thing on the same old game. This brings new life to old school games. =) More amazingly I wonder how the code authors find out the parts in the rom to randomize. True geeks. https://www.debigare.com/randomizers/

December 7, 2019 · 1 min · birdchan

HTTPie

This tool seems to be much more intuitive than curl and wget. HTTPie—aitch-tee-tee-pie—is a command line HTTP client with an intuitive UI, JSON support, syntax highlighting, wget-like downloads, plugins, and more. https://httpie.org/

December 2, 2019 · 1 min · birdchan

Tools to draw diagrams and flowcharts

https://www.draw.io http://plantuml.com https://sketchviz.com/ https://www.diagram.codes/

November 12, 2019 · 1 min · birdchan

Catalina osx 10.15 bashrc fix

After installing osx 10.15 my .bash_profile stopped working. When I open a new terminal it says: [code] The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. [/code] I tried changing to zsh and was fine. But since my .bashrc has code not compatible with zsh, I switched over back to bash. Here are the steps to make sure bash reads your .bashrc file. ...

October 16, 2019 · 1 min · birdchan

Picture-in-Picture API

This is still experimental and Chrome only. Click the following link, then click the button, you will then see the video component goes out to its own. https://picture-in-picture-video.arnelle.me/ ref: https://blog.arnellebalane.com/the-picture-in-picture-api-30415372009f

October 10, 2019 · 1 min · birdchan

Software Engineering Promotions

Interesting read. It’s a source of distraction for an engineer to worry about things like this. I wish managers could proactively mentor and guide (without pressure) so it’s clear to the engineers what the next step(s) would be. And it’s totally up to the engineers if they want to get to the next stage at their own timing. https://blog.pragmaticengineer.com/software-engineering-promotions/

October 2, 2019 · 1 min · birdchan

Spaghetti Sort

Truly mind blowing. Sorting done in O(N) time. ref: https://advent.morr.cc/2018/15

September 30, 2019 · 1 min · birdchan

Awk

I forgot most of awk after college. Now that I look at it again, it does help in many cases when I need to work with csv/tsv files. There is no need to write a simple python script to parse lines out and do some printing. Sample log lines [code] 07.46.199.184 [28/Sep/2010:04:08:20] “GET /robots.txt HTTP/1.1” 200 0 “msnbot” 123.125.71.19 [28/Sep/2010:04:20:11] “GET / HTTP/1.1” 304 - “Baiduspider” [/code] Sample cmds [code] awk ‘{print $0}’ awk ‘{print $1}’ logs.txt awk ‘{print $1, $(NF-2) }’ logs.txt awk ‘{print NR “) " $1 " -> " $(NF-2)}’ logs.txt awk ‘{print $2}’ logs.txt awk ‘{print $2}’ logs.txt | awk ‘BEGIN{FS=”:"}{print $1}’ awk ‘{print $2}’ logs.txt | awk ‘BEGIN{FS=":"}{print $1}’ | sed ’s/\[//’ awk ‘{if ($(NF-2) == “200”) {print $0}}’ logs.txt awk ‘{a+=$(NF-2); print “Total so far:”, a}’ logs.txt awk ‘{a+=$(NF-2)}END{print “Total:”, a}’ logs.txt [/code] ...

September 29, 2019 · 1 min · birdchan

AdTree

I don’t quite understand their business model. $0 CPM ??? $0 CPC ??? https://adtree.io/

September 19, 2019 · 1 min · birdchan

三体全集 - 宇宙很大 生活更大

September 15, 2019 · 0 min · birdchan