Florenz the Lizard
banner
florenzthelizard.bsky.social
Florenz the Lizard
@florenzthelizard.bsky.social
Computer science doctoral candidate at a public university working on computational sustainability. Aspiring educator. Free software advocate.
After five long years I think I finally have a working and comfortable Emacs config! The secret was "server-after-make-frame-hook" which for some reason never came up in my searches for "emacs hook that runs after a frame is created." I used it to make sure treemacs starts with each frame. :P
March 17, 2025 at 6:53 PM
For an upcoming video project I needed to type out some code/commands but really don't want typos or lots of backspacing in them so I wrote a script that can record a remote machine while typing stuff into it. This is a demo recording/mock up and I think it came out really well.
December 24, 2024 at 3:53 AM
C++ Tip 4!

The order you declare variables in a struct or class matters! Member variables are put in memory in the order they are declared but they will be aligned/padded to blocks the size of the largest member. Generally its best to order member variables from smallest to largest or vice-versa.
November 17, 2024 at 4:03 AM
C++ Tip 3!

Ever needed a simple container that could optionally be empty? Well in the standard template library there is std::optional and its for just this! It can be evaluated as a boolean to see if its empty and filled or changed using the equal sign operator. This was added with C++17.
November 14, 2024 at 7:58 PM
C++ Tip 2!

In the standard template library there is `std::pair`, and all it does is store two variables together. This sounds basic but can save you the trouble of making a lot of your own helper classes. I have been using it recently for storing vertex-cost pairs for Dijkstra's algorithm.
November 13, 2024 at 5:23 AM
Command Line Tip!

The 'ls' command is aware of when its output is being redirected or piped, if it is it changes its output to one file per line. This means you don't have to do any special processing to use its output in your scripts!
November 12, 2024 at 6:03 AM
C++ Daily Tip!

You can use references with range-based for loops to modify the contents of the data structure you are iterating over! Just make the looping variable a reference with an &.

The following program takes a vector of chars and makes them all lowercase. Its output would be "a, b, c, d, "
November 12, 2024 at 5:03 AM