I’ve been using MathAcademy for several months now and I cannot recommend it enough to anyone seeking to learn Math, at any stage (4th grade through grad school level).

Some online courses I’m thinking about just to understand better the world of ML:
https://course.fast.ai/
https://www.coursera.org/specializations/machine-learning-introduction

“Mercantilist policies” are those which seek to bolster the nation-state, esp. by exporting as many goods as possible while importing as few as possible.

Just as a programming language can be considered a virtual computer, that is, a computer implemented in software, so a computer can be considered a programming language implemented in hardware.

Maclennon, Principles of Programming Languages


There are many ways to import modules with ESM. Some ways allow for testing frameworks to intercept and mock methods from these modules, while others do not.

Two methods I use most often are:

// named imports (destructured into method names}
import { fnUsedAsReal, fnToBeMocked } from "file.ts";

and

// namespace import (or star-import)
import * as File1Module from "./file.ts";

Namespace imports are required for vitest to be able to spy/mock dynamically.

vi.spyOn(File1Module, "fnToBeMocked").mockResolvedValue(["123123", "123124", "123125"]);

The biggest gotcha I’ve found in upgrading from jest to vitest is that if any of the mocked methods are called internally within its own module, the mock does not work. e.g.

You have a test in file.test.ts. It imports all methods from file.service.ts -> import * as MyService from 'file.service.ts'; You mock a method function1 so you can test it… but inside file.service.ts there are references/calls to function1, the mock will not work.

The workaround is simply to move anything that has to be mocked to its own file. iow for the example above, both the test file and the service file will import function1 from a third file, and the mock will work. This, in my case, is mostly fine as the internal calls are almost all to database functions that make sense to be organized into their own file anyway.


In machine learning, the “learning” term is effectively a “cost minimizing” calculus function.

(Probably a quotation from 3Blue1Brown but I don’t recall)

Qui plantávit aurem, non áudiet? * aut qui finxit óculum, non consíderat?

“Is there, in all republics, this inherent, and fatal weakness? Must a government, of necessity, be too strong for the liberties of its own people, or too weak to maintain its own existence?”

Abraham Lincoln (July 4 1861)

nomen ergo est vox significitiva

Neat site that functions as ‘flash cards’ for rules and fallacies in logic. https://unthink.chrisloy.dev/

A monk found another smoking while saying the Rosary. “Did the abbot give you permission to do that?” he asked. “Yes,” replied the second monk. The first monk was upset. “Then why did the abbot say no to me when I asked him the same question?” “What did you ask him?” said the first monk. “I asked him if it was all right to smoke while I prayed.” “Oh,” said the second monk, “That explains it. I asked him if it was all right to pray while I smoked.”

Kreeft, Socratic Logic 99


Inest enim homini naturale desiderium cognoscendi causam, cum intuetur effectum; et ex hoc admiratio in hominibus consurgit. Si igitur intellectus rationalis creaturae pertingere non possit ad primam causam rerum, remanebit inane desiderium naturae. Unde simpliciter concedendum est quod beati Dei essentiam videant.

Summa Theologica I, q. 12, a. 1

Good explanation of LCS algorithm: https://ics.uci.edu/~eppstein/161/960229.html