From c743dd70a2e9819baf9bd52a060c3d32fc337374 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 17 Jan 2022 10:37:24 -0500 Subject: [PATCH] New posts --- content/blog/latexlistlabels.md | 24 ++++ content/blog/termtosvg.md | 55 +++++++++ static/files/images/202201162357.svg | 164 +++++++++++++++++++++++++++ static/files/images/202201171031.svg | 124 ++++++++++++++++++++ 4 files changed, 367 insertions(+) create mode 100644 content/blog/latexlistlabels.md create mode 100644 content/blog/termtosvg.md create mode 100644 static/files/images/202201162357.svg create mode 100644 static/files/images/202201171031.svg diff --git a/content/blog/latexlistlabels.md b/content/blog/latexlistlabels.md new file mode 100644 index 0000000..b26236b --- /dev/null +++ b/content/blog/latexlistlabels.md @@ -0,0 +1,24 @@ +--- +title: "LaTex List Labels" +date: 2022-01-16T23:17:51-05:00 +draft: false +tags: ["LaTex"] +math: false +--- + +A quick tip that I recently learned is that the symbols in a LaTex list item is changeable. In fact, the following technique works for both the `enumerate` and `itemize` environments. + +```latex +\begin{itemize} + \item[$\square$] Item 1 + \item[$\triangle$] Item 2 +\end{itemize} + +\begin{enumerate} + \item[$\rho_1$] Property 1 + \item[$\rho_2$] Property 2 + \item[$\rho_3$] Property 3 +\end{enumerate} +``` + +![](/files/images/202201162357.svg) diff --git a/content/blog/termtosvg.md b/content/blog/termtosvg.md new file mode 100644 index 0000000..2bb07db --- /dev/null +++ b/content/blog/termtosvg.md @@ -0,0 +1,55 @@ +--- +title: "Term To SVG" +date: 2022-01-17T10:14:22-05:00 +draft: false +tags: [] +math: false +--- + +With [`termtosvg`](https://github.com/nbedos/termtosvg) made by Nicolas Bedo we can make SVG animations from terminal output in the style of [asciinema](https://asciinema.org/). To install use [pipx](http://localhost:1313/blog/managepythonapps/). + +```bash +pipx install termtosvg +``` + +To start recording, run the command `termtosvg` + +```bash +termtosvg +``` + +It first outputs: + +``` +Recording started, enter "exit" command or Control-D to end +``` + +At "exit", by default it will save the animation to a random filename in the tmp folder. + +``` +Rendering ended, SVG animation is /tmp/termtosvg_xmadgf9y.svg +``` + +To control the default save location, pass in a filename after `termtosvg` + +```bash +termtosvg /path/to/savefile.svg +``` + +To record only the execution of a particular command, use the flag `-c` + +```bash +termtosvg -c neofetch +``` + +I recommend that you resize the terminal window so that the frames generated match the desired width and height. You can instead use the `-g` flag to pass in a geometry. ("100x30" creates a screen with 100 colums and 30 rows) + +Lastly, if you don't want an animation, you can pass in `-s` and the result will be a folder of SVG files representing each frame. + +```bash +termtosvg -s +``` + +Here is an example of an animation I made with this tool: + +![](/files/images/202201171031.svg) diff --git a/static/files/images/202201162357.svg b/static/files/images/202201162357.svg new file mode 100644 index 0000000..6eb50d8 --- /dev/null +++ b/static/files/images/202201162357.svg @@ -0,0 +1,164 @@ + + + +Item1Item2ρ1Property1ρ2Property2Property 3ρ3 diff --git a/static/files/images/202201171031.svg b/static/files/images/202201171031.svg new file mode 100644 index 0000000..5db71e2 --- /dev/null +++ b/static/files/images/202201171031.svg @@ -0,0 +1,124 @@ + + + + + + + + + + + [brandon@Laptop ~]$ [brandon@Laptop ~]$ t [brandon@Laptop ~]$ te [brandon@Laptop ~]$ tel [brandon@Laptop ~]$ teln [brandon@Laptop ~]$ telne [brandon@Laptop ~]$ telnet [brandon@Laptop ~]$ telnet [brandon@Laptop ~]$ telnet towel.blinkenlights.nl [brandon@Laptop ~]$ telnet towel.blinkenlights.nl Trying 2001:7b8:666:ffff::1:42...Connected to towel.blinkenlights.nl.Escape character is '^]'. Original Work : Simon Jansen ( http://www.asciimation.co.nz/ ) Telnetification : Sten Spans ( sten@blinkenlights.nl ) Terminal Tricks : Mike Edwards (pf-asciimation@mirkwood.net) The hard work was done by Simon and Mike, I just placed it online in a different format. So long And Thanks for all the fish Sten (I just need a Hug) Well, the IPv6 version is exactly the same as the IPv4 one. The difference is in the visitors... Je bent een Stoere Bikkel, aka You Rock. WWW.ASCIIMATION.CO.NZ presents .......... @@@@@ @@@@@....... ......... @ @ @ @....... ........ @@@ @ @........ ....... @@ @ @ ....... ...... @@@@@@@ @@@@@ th ...... ..... ----------------------- ..... .... C E N T U R Y .... ... ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. == @ @ @ @ @ == __||__ @ @@@@ @ @ __||__ | | @ @ @ @ @ | | _________|______|_____ @ @@@@@ @ @ @ _____|______|_________ ......... @@@@@ @@@@@......... ......... @ @ @ @......... ........ @@@ @ @ ......... ....... @@ @ @ ......... ....... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... _________|______|_____ @ @@@@@ @ @ @ _____|______|_________ .......... @@@@@ @@@@@ .......... ......... @ @ @ @ ......... ........ @@@ @ @ ......... ....... @@ @ @ ........ ....... @@@@@@@ @@@@@ th ....... ..... ----------------------- ....... .... C E N T U R Y ..... .. ----------------------- .... ........ @@@@@ @@@@@ .......... ......... @ @ @ @ ......... ......... @@@ @ @ ........ ....... @@ @ @ ....... ..... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... ... C E N T U R Y ..... .. @@@@@ @@@@@ @ @ @@@@@ ... ......... @@@@@ @@@@@ .......... ......... @ @ @ @ ......... ......... @@@ @ @ ........ ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... ... C E N T U R Y ..... .. ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. ....... @@@@@ @@@@@ .......... ......... @ @ @ @ .......... ........ @@@ @ @ ......... ....... @@ @ @ ....... ...... @@@@@@@ @@@@@ th ...... ..... ----------------------- ..... .... C E N T U R Y .... ... ----------------------- .. .......... @@@@@ @@@@@ ........ ......... @ @ @ @ ......... ......... @@@ @ @ ........ ....... @@ @ @ ...... ...... @@@@@@@ @@@@@ th ...... ...... ----------------------- .... ..... C E N T U R Y ... .... ----------------------- ... .......... @@@@@ @@@@@ ........... ......... @ @ @ @ .......... ........ @@@ @ @ ........ ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- .... ........... @@@@@ @@@@@ ........... .......... @ @ @ @ .......... ......... @@@ @ @ ......... ........ @@ @ @ ........ ...... @@@@@@@ @@@@@ th ........ ..... ----------------------- ....... .... C E N T U R Y .... ... ----------------------- ... .... C E N T U R Y ..... ... ----------------------- .... .. @@@@@ @@@@@ @ @ @@@@@ ... | | @ @ @ @ @ | | ........... @@@@@ @@@@@ ........... .......... @ @ @ @ .......... ........ @@@ @ @ .......... ....... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ........ ..... ----------------------- ....... .... C E N T U R Y ....... ... ----------------------- ..... _________|______|_____ @ @@@@@ @ @ @ _____|______|_________ ........... @@@@@ @@@@@ ......... .......... @ @ @ @ ......... ......... @@@ @ @ ......... ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ........ .... ----------------------- ....... ........... @@@@@ @@@@@ ...... .......... @ @ @ @ ....... ........ @@@ @ @ ........ ....... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ........ ..... ----------------------- ........ ... C E N T U R Y ....... .. ----------------------- ..... ............. @@@@@ @@@@@ ...... ........... @ @ @ @ ....... .......... @@@ @ @ ........ ......... @@ @ @ ......... ........ @@@@@@@ @@@@@ th ........ ....... ----------------------- ........ ..... C E N T U R Y ....... ... ----------------------- ..... ............ @@@@@ @@@@@ ...... ........... @ @ @ @ ....... .......... @@@ @ @ ........ ......... @@ @ @ ......... ........ @@@@@@@ @@@@@ th ........ ........ ----------------------- ........ ..... C E N T U R Y ....... .... ----------------------- ..... ... @@@@@ @@@@@ @ @ @@@@@ ... .......... @@@@@ @@@@@ ....... .......... @ @ @ @ ........ .......... @@@ @ @ ........ ........ @@ @ @ ........ ........ @@@@@@@ @@@@@ th ........ ....... ----------------------- ....... ....... C E N T U R Y ....... ..... ----------------------- ..... ...... C E N T U R Y ...... .... ----------------------- ..... ..... @@@@@ @@@@@ ......... ........ @ @ @ @ ......... ......... @@@ @ @ ......... ......... @@ @ @ ........ ....... @@@@@@@ @@@@@ th ........ ....... ----------------------- ...... ...... C E N T U R Y ..... ..... ----------------------- .... ..... @@@@@ @@@@@ ........ ...... @ @ @ @ ........ ....... @@@ @ @ ........ ........ @@ @ @ ........ ........ @@@@@@@ @@@@@ th ....... ....... ----------------------- ..... ...... C E N T U R Y ..... ..... ----------------------- .... ... @@@@@ @@@@@ @ @ @@@@@ ... ..... @@@@@ @@@@@ ........... ...... @ @ @ @ .......... ....... @@@ @ @ ......... ........ @@ @ @ ........ ........ @@@@@@@ @@@@@ th ....... ....... ----------------------- ...... ..... @@@@@ @@@@@ ............. ...... @ @ @ @ .......... ....... @@@ @ @ ......... ........ @@ @ @ ....... ........ @@@@@@@ @@@@@ th ...... ....... ----------------------- ...... ...... C E N T U R Y .... ..... @@@@@ @@@@@ .......... ...... @ @ @ @ .......... ....... @@@ @ @ ........ ........ @@ @ @ ....... ........ @@@@@@@ @@@@@ th ...... ....... ----------------------- ...... ....... @@@@@ @@@@@ .......... ........ @ @ @ @ ......... ........ @@@ @ @ ......... ........ @@ @ @ ........ ........ @@@@@@@ @@@@@ th ....... ....... ----------------------- ...... ...... C E N T U R Y .... ..... ----------------------- .... ... @@@@@ @@@@@ @ @ @@@@@ .. ......... @@@@@ @@@@@ ........... ......... @ @ @ @ ........... ......... @@@ @ @ .......... ........ @@ @ @ ......... ........ @@@@@@@ @@@@@ th ....... ...... ----------------------- ...... ..... C E N T U R Y .... .... ----------------------- ... ..... C E N T U R Y .... .... ----------------------- ... ... @@@@@ @@@@@ @ @ @@@@@ .. ........ @@@@@ @@@@@ ........... ........ @ @ @ @ ........... ....... @@@ @ @ .......... ........ @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... .... C E N T U R Y ..... ... ----------------------- .... ... @@@@@ @@@@@ @ @ @@@@@ ... ......... @@@@@ @@@@@ ........... ......... @ @ @ @ ........... ........ @@@ @ @ .......... ....... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... .... C E N T U R Y ..... ... ----------------------- .... ......... @@@@@ @@@@@........... ......... @ @ @ @.......... ........ @@@ @ @........... ....... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ....... .... C E N T U R Y ..... ... ----------------------- .... .......... @@@@@ @@@@@........ ......... @ @ @ @........ ........ @@@ @ @......... ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ......... @@@@@ @@@@@......... ......... @ @ @ @....... ........ @@@ @ @........ ...... @@ @ @ ....... ..... @@@@@@@ @@@@@ th ...... ......... @@@@@ @@@@@......... ........ @ @ @ @......... ....... @@@ @ @ ......... ...... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ....... .... ----------------------- ...... ... C E N T U R Y .... ........ @@@@@ @@@@@ .......... ......... @@@@@ @@@@@ ........ ..... ----------------------- ...... ......... @@@@@ @@@@@ .......... ... C E N T U R Y ..... _________|______|_____ @ @@@@@ @ @ @ _____|______|_________^] _________|______|_____ @ @@@@@ @ @ @ _____|______|_________^]telnet> telnet> q telnet> qu telnet> qui telnet> quit telnet> quitConnection closed.[brandon@Laptop ~]$ exit + \ No newline at end of file