Solitude and Leadership
So what I saw around me were great kids who had been trained to be world-class hoop jumpers. Any goal you set them, they could achieve. Any test you gave them, they could pass with flying colors. They were, as one of them put it herself, “excellent sheep.” Because excellence isn’t usually what gets you up the greasy pole. What gets you up is a talent for maneuvering. Not taking stupid risks like trying to change how things are done or question why they’re done. Just keeping the routine going. ...
Get the First or Last Value in a Group Using Group By in SQL
Sample code in PostgreSQL [code] SELECT account, MAX(ARRAY[id, (data->‘credit’)::int]) FILTER (WHERE type = ‘credit_set’)) FROM event GROUP BY account; [/code] ref: https://hakibenita.com/sql-group-by-first-last-value
USB-C cables
Turns out there are 6 kinds of USB-C cables. USB 2.0 rated at 3A USB 2.0 rated at 5A USB 3.2 Gen 1 (5gbps) rated at 3A USB 3.2 Gen 1 (5gbps) rated at 5A USB 3.2 Gen 2 (10gbps) rated at 3A USB 3.2 Gen 2 (10gpbs) rated at 5A ref: https://people.kernel.org/bleung/how-many-kinds-of-usb-c-to-usb-c-cables-are-there
pyrasite
Tools for injecting code into running Python processes http://pyrasite.com/ (see the video in action) https://github.com/lmacken/pyrasite
Ryobi Power Inflator
Kubernetes Failure Stories
https://k8s.af/
Redis and Memcached
https://aws.amazon.com/elasticache/redis-vs-memcached/ Redis is a superset of memcached, roughly speaking.
GPT-2
Here is how I set up ubuntu 18 in virtualbox on osx 10.12.6 macOS Sierra to try out GPT-2. First of all, install virtualbox. My version is 6.0.8 r130520. Then download ubuntu (My version is 18.04.2 desktop version). Then install it with 30 Gb disk space and 4096 Mb ram. (you will need 22 Gb disk space at least). You may notice that the virtual screen is very small, and there seems to be no way to enlarge the resolution. If this happens to you, just endure the installation process until it’s done, then shutdown the VM. Then right click on your VM, Settings » Display » Screen » Graphics Controller = VBoxSVGA. Next time you turn on the VM, you could simply resize the window to change the virtual screen size. You can also scale the window (same resolution but looks bigger), this may happen when you have a huge monitor with super high resolution. ...
What is my IP address?
https://ifconfig.co/