Plurrrr

week 29, 2019

The Never Game

From the bestselling and award-winning master of suspense, the first novel in a thrilling new series, introducing Colter Shaw.

Soon after I had finished Free-Wrench I started in The Never Game by Jeffery Deaver. I was sucked in immediately, so that's very promising.

History and effective use of Vim

This article is based on historical research and on simply reading the Vim user manual cover to cover. Hopefully these notes will help you (re?)discover core functionality of the editor, so you can abandon pre-packaged vimrc files and use plugins more thoughtfully.

Source: History and effective use of Vim an article by Joe "begriffs" Nelson.

In the evening I read most of this article. While I mostly use Emacs I now and then use vi or vim for small edits or to look at a file. I want to improve my vi/vim skills, and this article showed to me several interesting features.

What's coming in Python 3.8

The Python 3.8 beta cycle is already underway, with Python 3.8.0b1 released on June 4, followed by the second beta on July 4. That means that Python 3.8 is feature complete at this point, which makes it a good time to see what will be part of it when the final release is made. That is currently scheduled for October, so users don't have that long to wait to start using those new features.

Source: What's coming in Python 3.8 by Jake Edge.

I look forward to the "walrus operator" := and the debugging support for f-strings. See also What’s New In Python 3.8.

The PGP Problem

Cryptography engineers have been tearing their hair out over PGP’s deficiencies for (literally) decades. When other kinds of engineers get wind of this, they’re shocked. PGP is bad? Why do people keep telling me to use PGP? The answer is that they shouldn’t be telling you that, because PGP is bad and needs to go away.

In the evening I read The PGP Problem on the Latacora blog.

Two quick notes: first, we wrote this for engineers, not lawyers and activists. Second: “PGP” can mean a bunch of things, from the OpenPGP standard to its reference implementation in GnuPG. We use the term “PGP” to cover all of these things.

A highly recommended read, thanks!

Turn your fzf into a live REPL

I just came up with this idea of abusing fzf --preview flag to turn simple commands into live REPL with instant feedback loop

I installed the fuzzy finder (FZF) earlier this month and have been using it a few times, but this use is new to me. After reading the examples I had to try one of my own, a Perl REPL:

echo '' | fzf --print-query \
      --preview 'perl -e {q}'

This works great for small stuff like making a few calculations!

How many kinds of USB-C™ to USB-C™ cables are there?

tl;dr: There are 6, it's unfortunately very confusing to the end user.

While I don't own any USB-C device yet, it's good to know that there are 6 kinds of USB-C to USB-C cables:

Here they are, current as of the USB Type-C™ Specification 1.4 on June 2019:

  1. USB 2.0 rated at 3A
  2. USB 2.0 rated at 5A
  3. USB 3.2 Gen 1 (5gbps) rated at 3A
  4. USB 3.2 Gen 1 (5gbps) rated at 5A
  5. USB 3.2 Gen 2 (10gbps) rated at 3A
  6. USB 3.2 Gen 2 (10gpbs) rated at 5A

Read more in How many kinds of USB-C™ to USB-C™ cables are there?, an article by Benson Leung.