News for hackers. Stuff that matters.

markusbk

Steve Yegge, high profile developer previously at Google and Amazon, now head of engineering for Data Insights at Grab, wrote a nice blog post about why he quit his job at Google to join Grab:

https://medium.com/@steve.yegge/why-i-left-google-to-join-gr...

Re:Now Open – AWS Europe (Stockholm) Region on Monday December 17, 2018 @09:34AM (#18699143)
Seems AWS has added T3 RDS instances for MySQL in Stockholm now. Not for PostgreSQL yet, though.
One useful takeaway:

> When Clean Code becomes a source of less boring work, I’m for it. When it becomes a source of frustration and guilt, I’m against it.

Re:Monitoring with Prometheus on Thursday June 14, 2018 @08:38AM (#17311149)
Some useful background info in https://www.kartar.net/2017/10/prometheus/ on why Turnbull wrote the book, despite being one of the maintainers for a competing monitoring tool, Riemann.
Re:Shell Magic: Set Operations with uniq on Wednesday May 30, 2018 @07:18AM (#17186731)
If your input is already sorted (like this article assumes), you can use "sort -m", which is a lot faster. Also, to print only lines with duplicates, use "uniq -d" instead of "uniq -c | grep 2\ ".

Union: Instead of

    cat a_list b_list | sort | uniq
do

    sort -m a_list b_list | uniq
Intersection: Instead of

    cat a_list b_list | sort | uniq -c | grep 2\ 
do

    sort -m a_list b_list | uniq -d
Relative complement: Instead of

    cat a_list b_list b_list | sort | uniq -c | grep 2\ 
do

    sort -m a_list a_list b_list | uniq -u
Note the change of approach here: instead of making lines from b_list appear twice and grepping for that count, make lines from a_list appear twice and have uniq only print lines that aren't repeated.