January
2020-01-15
Establish invariants for a unit test in the setup.
In concrete terms, in JUnit for example, use
@Beforemethods to make sure that the state of the world fits the assumptions made in the tests. In the same manner, use@Afterto ensure that post conditions are also "as expected".
2020-01-16
Cross Datacenter Replication (XDR) | Aerospike
Provides inter-cluster replication at teh namespace or optionally set granularity level.This is an Aerospike Enterprise Edition feature.
Namespace Retention Configuration | Aerospike
Aerospike can be configured to
expireorevictleast recently updated data.Expiration and eviction algorithms use records
TTL(Time To Live) value to determine eligibility for removal.default-ttlcan be set at anamespacelevel. See the documentationabove for examples.
Checking docker exposed ports can be done by
docker portcommand - https://docs.docker.com/engine/reference/commandline/port/AssertJ test for equality ignoring fields can be done via
isEqualToComparingOnlyGivenFields, as in the following example,assertThat(testVersion) .isEqualToComparingOnlyGivenFields(sourceVersion, "supplySourceList", "name", "defaultSeatId");
2020-01-17
Java
EnumMapandEnumSetoptimisations - https://stackoverflow.com/questions/16637288/optimization-done-by-an-enummap-enumset
2020-01-20
GNU grep
-ooption for--only-matchingentries in a search - pretty useful in practice.
2020-01-21
Julia DataFrame Cheat Sheet - https://jcharistech.wordpress.com/julia-dataframes-cheat-sheets/
Ansible forks with
-foption.More on Ansible performance tuning - https://www.ansible.com/blog/ansible-performance-tuning.
2020-01-22
Semantic Patches for Java Program Transformation - this is a port of Coccinelle for Java.
2020-01-23
2020-01-24
Screen window splitting - https://tomlee.co/2011/10/gnu-screen-splitting/
Unlike on
tmuxa shell has to be spawned explicitly after splitting.To do a vertical split -
Ctrl+a |thenCtrl+TABto go to the othersplit. Then as usual, use
Ctrl+a cto create a window.For a horizontal split use
Ctrl+a S.
2020-01-25
enchive - Encrypted personal archives - this is a tool from Chris Wellons.
2020-01-27
2020-01-31
OmitStackTraceInFastThrow- https://github.com/SAP/SapMachine/issues/501
Last updated