Snippets

Communication Misunderstandings (K. Lorenz)

Konrad Lorenz:

  • Thought is not said
  • Said is not heard
  • Heard is not understood
  • Understood is not agreed
  • Agreed is not done
  • Done is not continued
  • Continued is not valid for ever
List gradle test execution order
tasks.matching {it instanceof Test}.all {
    testLogging.events = ["failed", "passed", "skipped"]
}

Useful for finding tests that do not clean up properly!

The Truth is in the Log
"The truth is the log. The database is a cache of a subset of the log." - Pat Helland, Immutability Changes Everything, 2015
The Prime Directive

"Regardless of what we discover, we understand and truly believe that everyone did the best job they could, given what they knew at the time, their skills and abilities, the resources available, and the situation at hand."

Source: Norm Kerth, Project Retrospectives: A Handbook for Team Review

Dell Trackpoint Fix
Alter Dell laptop trackpoint sensitivity under Linux
xinput list
xinput list-props 13
xinput set-prop 13 269 1.0
xinput set-prop 13 269 0.8
xinput set-prop 13 269 0.5
xinput set-prop 13 269 0.1
xinput set-prop 13 268 0.5
xinput set-prop 13 268 0.9
xinput list-props 13
xinput set-prop 13 267 0.9
xinput set-prop 13 267 0.1
xinput set-prop 13 267 2.0
xinput set-prop 13 268 2.0
xinput set-prop 13 268 1.0
xinput set-prop 13 269 0.05
xinput set-prop 13 267 3.0
xinput set-prop 13 267 5.0
xinput set-prop 13 268 2.0
xinput set-prop 13 268 1.5
xinput set-prop 13 267 1.0
xinput set-prop 13 267 2.0
xinput set-prop 13 267 3.0
xinput set-prop 13 267 4.0
xinput set-prop 13 268 2.0
xinput list-props 13
xinput set-prop 13 267 2.5
xinput set-prop 13 268 1.0
xinput set-prop 13 269 12.5
xinput set-prop 13 267 5.0
xinput set-prop 13 267 7.0
xinput set-prop 13 268 2.0
xinput set-prop 13 267 10.0
xinput set-prop 13 268 3.0
xinput set-prop 13 268 5.0
xinput set-prop 13 267 15.0
xinput set-prop 13 267 12.0
xinput set-prop 13 267 11.0

# $ xinput list-props 13
# Device 'AlpsPS/2 ALPS DualPoint Stick':
#   Device Enabled (140):   1
#   Coordinate Transformation Matrix (142): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
#   Device Accel Profile (266): 0
#   Device Accel Constant Deceleration (267):   11.000000
#   Device Accel Adaptive Deceleration (268):   5.000000
#   Device Accel Velocity Scaling (269):    12.500000
#   Device Product ID (261):    2, 8
#   Device Node (262):  "/dev/input/event6"
#   Evdev Axis Inversion (305): 0, 0
#   Evdev Axes Swap (307):  0
#   Axis Labels (308):  "Rel X" (150), "Rel Y" (151)
#   Button Labels (309):    "Button Left" (143), "Button Middle" (144), "Button Right" (145), "Button Wheel Up" (146), "Button Wheel Down" (147), "Button Horiz Wheel Left" (148), "Button Horiz Wheel Right" (149)
#   Evdev Scrolling Distance (310): 0, 0, 0
#   Evdev Middle Button Emulation (311):    1
#   Evdev Middle Button Timeout (312):  50
#   Evdev Third Button Emulation (313): 0
#   Evdev Third Button Emulation Timeout (314): 1000
#   Evdev Third Button Emulation Button (315):  3
#   Evdev Third Button Emulation Threshold (316):   20
#   Evdev Wheel Emulation (317):    1
#   Evdev Wheel Emulation Axes (318):   6, 7, 4, 5
#   Evdev Wheel Emulation Inertia (319):    10
#   Evdev Wheel Emulation Timeout (320):    200
#   Evdev Wheel Emulation Button (321): 2
#   Evdev Drag Lock Buttons (322):  0
Bullshit Definition

The philosopher Harry Frankfurt at Princeton University defined bullshit as talk that has no relationship to the truth. Lying covers up the truth, while bullshit is empty, and bears no relationship to the truth.

Source: https://aeon.co/ideas/how-to-fight-work-bullshit-and-keep-your-job-and-your-dignity

grep_rename.sh
grep -rl 'old' ./ | xargs sed -i 's/old/new/g'
10 ways to have a better conversation

Celeste Headlee:

Listen!

Forget what you have heard!

  1. Don't multitask!
  2. Don't pontificate! (express one's opinions in a way considered annoyingly pompous and dogmatic) Assume that you have something to learn
  3. Use open ended questions!
  4. Go with the flow!
  5. If you don't know, say that you don't know!
  6. Don't equate your experience with their's!
  7. Try not to repeat yourself!
  8. Forget the details!
  9. Listen!
  10. Be brief!

Always be prepared to be amazed!

xcompmgr_init.sh

For smoother transitions between xmonad screens (e.g. for presentations):

#!/bin/bash

xcompmgr -f -C -n -D 3
Obstsalat
  • Äpfel
  • Birnen
  • Orangen
  • Grapefruit
  • Pomelo
  • Chikoree
  • Walnüsse
  • Banane

Plus:

  • 2 Zitronen (Saft)
  • Zucker