January
Last updated
Last updated
2020-01-15
Establish invariants for a unit test in the setup.
In concrete terms, in JUnit for example, use @Before
methods to make sure that the state of the world fits the assumptions made in the tests. In the same manner, use @After
to ensure that post conditions are also "as expected".
2020-01-16
This is an Aerospike Enterprise Edition feature.
Aerospike can be configured to expire
or evict
least recently updated data.
Expiration and eviction algorithms use records TTL
(Time To Live) value to determine eligibility for removal.
default-ttl
can be set at a namespace
level. See the documentation
above for examples.
Checking docker exposed ports can be done by docker port
command -
AssertJ test for equality ignoring fields can be done via isEqualToComparingOnlyGivenFields
, as in the following example,
2020-01-17
Java EnumMap
and EnumSet
optimisations -
2020-01-19
syscall perturbation
2020-01-20
Examples of usage -
GNU grep -o
option for --only-matching
entries in a search - pretty useful in practice.
2020-01-21
Julia DataFrame Cheat Sheet -
.
Ansible forks with -f
option.
More on Ansible performance tuning - .
2020-01-22
- this is a port of for Java.
2020-01-23
2020-01-24
Screen window splitting -
Unlike on tmux
a shell has to be spawned explicitly after splitting.
To do a vertical split - Ctrl+a |
then Ctrl+TAB
to go to the other
split. Then as usual, use Ctrl+a c
to create a window.
For a horizontal split use Ctrl+a S
.
2020-01-25
- this is a tool from .
2020-01-27
2020-01-31
OmitStackTraceInFastThrow
-