In the middle of the desert you can say anything you want

29 Jan 2020

Day 394

Intellij idea shortcut for closing tab

Ctrl+F4 closes the current tab, which is not too easy to type. But I set a nice shortcut Ctrl-I which is not, action is “Close all unmodified”, it closes all the tabs I usually close manually - all internal TF stuffs that open when debugging and that I don’t want to change or edit (but breakpoints are okay, and they don’t seem to count as “modification”)

qutebrowser edit current url

go is the default shortcut for this.

Tensorflow masking function not_equal

This is very nice and easy and easy to forget: mask = tf.not_equal(inputs, '')

It has sisters such as tf.math.less, etc.

Tensorflow python unittests check for equality of two tensors

tf.assertEqual(x, y) exists, can be used in unittests as is, if it raises an error the test automatically fails.

Intellij idea generate tests

This is awesome! Right click on class name -> Generate -> Test, and this creates a boilerplate file with the right name and right methods.

Nel mezzo del deserto posso dire tutto quello che voglio.