TrickJarrett.com

Be excellent to each other.

Automated Archives for November, 7th 2026

This post was automatically generated.

Chess For the Day

Record: 1-0-4
Net Elo Change: -18

Games Played

Blog Posts On This Day

Tags: chess, automated | Share to:

November 2nd, 2026

No joke. I climbed into bed about to go to bed and my brain trolls me by starting to play Darude Sandstorm in my head.

Tags: brain, darude | Share to:

November 1st, 2026

Let's go Reign

Tags: soccer, photolog, seattle reign | Share to:

October 29th, 2026

Patrick Stewart reads Shakespeare sonnets

Tags: poetry, patrick stewart | Share to:

Simple Regex in C

Some breathtakingly beautiful programming from an early implementation of Regex

int matchhere(char *, char *);

int matchstar(int c, char *re, char *text) {
    do {
        if (matchhere(re, text)) return 1;
    } while (*text && (*text++ == c || c == '.'));
    return 0;
}

int matchhere(char *re, char *text) {
    if (re[0] == '\0') return 1;
    if (re[1] == '*')
        return matchstar(re[0], re + 2, text);
    if (re[0] == '$' && re[1] == '\0')
        return *text == '\0';
    if (*text && (re[0] == '.' || re[0] == *text))
        return matchhere(re + 1, text + 1);
    return 0;
}

int match(char *re, char *text) {
    if (re[0] == '^')
        return matchhere(re + 1, text);
    for (;;) {
        if (matchhere(re, text)) return 1;
        if (*text++ == '\0') return 0;
    }
}

Tags: art, programming, regex | Share to:

October 27th, 2026

Peaky Blinders: The Immortal Man (2026)

After bingeing the show, we watched the new Peaky Blinders movie and I found it only middling.

Tags: review, movie, movie radar | Share to:

October 25th, 2026

Desert Bus

An annual charity event from people I know in Victoria, BC. It's a variety stream around playing Desert Bus, the most boring video game of all time.

Tags: charity, photolog, desert bus | Share to: