Posts
Multiple Sandwich
Problem: Consider an array A of length m with only non-negative integer entries, then take the sum of the entries of A and denote it by s. And find the smallest number p that is a multiple of m and is greater or equal than s.
This was a teeny tiny part of a timed coding question that I blew because I decided to, as any good mathematician would do, overthink it.
Read more...
Talk: Markov Processes and Their Friends
I have prepared a talk which I intend to be my “sure, I can give a talk” if anyone asks me at any point.
The name is “Markov processes and their friends” and you can find the first version of it at the end of the Academic profile.
Or here:
Notes The backboard prep notes Those notes are the version one of the talk, presented in the Pure PGR Seminar in Leeds.
Read more...
A Sed One Liner to Fix Date Format in Text Files
SoftwareTL;DR This is a know your tools entry, although I absolutely don’t know my tools as you will see if you read.
The following “one-liner” will change any wiki style link with a date string formatted as “Feb 22nd, 2024” to “2024-02-22”, god’s intended way to write a date.
Please forgive the search and replace gore of the second sed.
sed -E 's;([a-zA-Z]{3})\s([0-9]{1,})(st|nd|rd|th),\s([0-9]{4});\4-\1-\2;' "$1" | sed -E 's/-Jan-/-01-/;s/-Feb-/-02-/;s/-Mar-/-03-/;s/-Apr-/-04-/;s/-May-/-05-/;s/-Jun-/-05-/;s/-Jul-/-07-/;s/-Aug-/-08-/;s/-Sep-/-09-/;s/-Oct-/-10-/;s/-Nov-/-11-/;s/-Dec-/-12-/' | sed -E 's;-([0-9])\];-0\1];' > "$1".
Read more...
We Need Mediocre Reviews
PersonalCurrently I am in a character development arc, in particular dealing with moving because the building management in my building is awful and has just left a leak to make my flat unfit for habitation, and because of that I have learned that one has to be very wary about the company or person which manages the building where you live. And in this search it seems like people who provide reviews for these kind of things have a very strong opinion either positive or negative.
Read more...
How to Fix Metadata of Pdf Files
SoftwareImportant disclaimer: For your own benefit you should never run random commands you find on the internet, this is why whenever I tell you to run a command, immediately after I will let you know exactly what it does. Feel free to check the documentation of the command to be sure I am not lying to you.
This is a follow up of the quick entry I made previously on how to put metadata on your LaTeX generated documents.
Read more...
Please Put Metadata in Your LaTeX Files
SoftwareToday I wanted to homogenize the naming on my totally legally downloaded (馃槈) collection of maths books, just to (unsurprisingly) see just how messed up the metadata of files you get online is.
And well, I will fix that for my files but it takes some time, and I will gift you the method I came up with to do so, once I finish. But for now, and since I was of course also guilty of not adding metadata to my documents before today, this is just a reminder of how to add metadata to documents typesetted with LaTeX.
Read more...
Using KaTex Locally for Maths Typesetting in Hugo
Software MathematicsIf you work or study on mathematics related fields and have a website, you might often want to share your knowledge with the world. Of course, doing it is rather easy with many website creation tools, and there are also many tutorials to do it with any tool you can think of.
So, I want to tell you how to do it using the static site generator Hugo and the JavaScript library KaTeX.
Read more...
Acerca de toma de notas, hacer una wiki y as铆
PKM SoftwareHace poco decid铆 mantener mis notas de todo lo posible usando el plugin para vim/neovim
vimwiki pero termin茅 usando Obsidian.
Todo comenz贸 cuando por el inicio de febrero EL DAVID me record贸 que Joplin existe, lo que deriv贸 en una conversaci贸n sobre toma de notas y sISteMas dE gEStI贸n De COnOcIMiEnTo (PKM por Personal Knowledge Management) y sali贸 a relucir Obsidian. Sobre lo cual EL DAVID dijo:
El pedo es que es de paga y no pienso pagar por un explorador de archivos glorificado.
Read more...
Me he rendido y usar茅 WordPress
SoftwareDespu茅s de un mont贸n de tiempo intentando varias maneras de manejar mi sitio web, he ca铆do en la cuenta de que en mi af谩n de tener una configuraci贸n m铆nima y con pocas dependencias no he logrado nada, lo cual se traduce tambi茅n en mi productividad y dem谩s cosas en las que no voy a ahondar.
Por lo tanto decid铆 deployear un sitio de WordPress en Vultr, y comenzar a realmente compartir lo que hago porque si no nunca voy a estar contento con la forma en que tengo las cosas.
Read more...
1 of 1