Power of 4

Posted on Sat 15 August 2020 in tech • Tagged with math, squares, numeracy, programming

This one line solution bests 100% of Java submissions on leetcode.

I have to out myself. When I was a junior programmer I would have been strongly morally opposed to a solution like this. First of all, that was three decades ago and back then many types of cpus did …


Continue reading

The simple math behind the extraordinary benefit of 8 sided dice for diceware

Posted on Thu 14 May 2020 in tech • Tagged with unix, diceware, security, programming

Most diceware implementations use 6-sided dice or D6. It would be easy to knee jerk assume that the marginal difference between 6 and 8 sided dice is negligible. However, in that case, one would be forgetting that we are dealing with exponential counting here and small numbers really add up …


Continue reading

Announcing RPN

Posted on Sun 03 May 2020 in tech • Tagged with calculator, GPLv3, lex, yacc, c++, programming

RPN is a reverse polish command line calculator and repl. It is written in C++ with Lex and Yacc generated grammar. RPN provides a similar syntax as classic reverse polish calculators. I have just released it under the GNU GPLv3 on my github page.


One Line CMAKE Tutorial

Posted on Tue 28 April 2020 in tech • Tagged with cmake, programming

Everything I know about cmake in one line.

$ cmake -H. -Bbuild -DCMAKE_RELEASE_TYPE=DEBUG -DCMAKE_VERBOSE_MAKEFILE=on -G"Unix Makefiles"
$ cd build && make -j

Using python3?

Posted on Mon 27 April 2020 in tech • Tagged with programming, python

It seems terrifying. 😱 Is it really so wrong?!? #python3 #Luddite


Building my site in travis-ci

Posted on Sun 26 April 2020 in tech • Tagged with programming, devops

In spite of its many challenges, I am fairly stoked to get my site building in travis-ci. Now there is no need for me to commit from the cli.

travis-ci