So I’m off to read the LibreOffice 7.3 API Documentation. Supported macro languages include a form of BASIC and a form of JavaScript. Gonna try JavaScript… my goal is to generate the ASCII tables for my book, programmatically, as it were.
Monthly Archives: October 2022
Botched ASCII table in LaTeX
Well this didn’t work. It was my first attempt at putting an ASCII chart into my book. (Because what the world needs is more books with ASCII tables in them!) I tried using the output of my ascii.php program. Tomorrow I will redo as vector graphics using Inkscape.
Spiral model
The Greeks
Boolean functions
Today I realised that ‘and’ == ‘minimum’ and ‘or’ == ‘maximum’. Mind blown! :)
And here is some PHP code to go with my new found knowledge:
test( 0, 0 ); test( 0, 1 ); test( 1, 0 ); test( 1, 1 ); function test( $x, $y ) { if ( and_1( $x, $y ) !== and_2( $x, $y ) ) { echo "Error.\n"; } if ( or_1( $x, $y ) !== or_2( $x, $y ) ) { echo "Error.\n"; } } function and_1( $x, $y ) { return (bool)min( $x, $y ); } function and_2( $x, $y ) { return ! ( ! $x || ! $y ); } function or_1( $x, $y ) { return (bool)max( $x, $y ); } function or_2( $x, $y ) { return ! ( ! $x && ! $y ); }
Periodic table
Engineer PA-09 crimping tool
So my new Engineer PA-09 crimping tool arrived today, here are some photos of the packaging:
Some light reading…
DVD power cable connector type
There’s a first time for everything, I have posted a question on reddit: DVD power cable connector type.
Update: well, I got an answer! I have ordered the following:
And I went all out and got myself a new crimping tool as well.
Electronics notebooks
So I got myself a copy of this Digi-Key Innovation Handbook and this Pocket Ref – 4th Edition – by Thomas J. Glover. The latter helped me discover Desk Ref, which I also got. :P