Skip to content

Notes

Short status updates that may end up elsewhere, too.

Bookmarked https://gomakethings.com/tips-and-tricks-for-working-with-static-site-generators/. (Random thought: having your source files …

Bookmarked https://gomakethings.com/tips-and-tricks-for-working-with-static-site-generators/.

(Random thought: having your source files on your server, and having it build and save the final HTML is not too different from a “dynamic” site plus page caching.)

Tips and tricks for working with static site generators
gomakethings.com

In reply to https://www.zylstra.org/blog/2022/05/21569/. https://github.com/thephpleague/html-to-markdown is probably the …

In reply to https://www.zylstra.org/blog/2022/05/21569/.

https://github.com/thephpleague/html-to-markdown is probably the way to go here. (Yes, it uses Composer, but that’s become pretty much the standard now, and for good reason [and the PHP League packages are high quality].)

I’m looking for a PHP script with no … – Interdependent Thoughts
www.zylstra.org

In reply to https://jan.boddez.net/notes/fd42062341. Or, wait. It accepts …

In reply to https://jan.boddez.net/notes/fd42062341.

Or, wait. It accepts a since_id, but it’s not actually used. Looks like min_id is. https://github.com/pixelfed/pixelfed/blob/d48e6c5d67f2f9ba8a4a6f838cfba70a3eb7978a/app/Http/Controllers/Api/ApiV1Controller.php#L539

Also, Laravel Passport should provide a revoke route … but may require a DELETE method. https://github.com/laravel/passport/blob/ab9e2045e0d8649cd84de411d0332bdd5fe763a3/src/RouteRegistrar.php#L85

All fine of course, except I’ve been doing it wrong, thinking the API would more or less perfectly match Mastodon’s.

In reply to https://jan.boddez.net/notes/eca80c746b. Note to self: I …
jan.boddez.net

Bookmarked https://www.currentaffairs.org/2022/05/why-this-computer-scientist-says-all-cryptocurrency-should-die-in-a-fire/. > Weaver’s Iron Law of Blockchain: …

Bookmarked https://www.currentaffairs.org/2022/05/why-this-computer-scientist-says-all-cryptocurrency-should-die-in-a-fire/.

Weaver’s Iron Law of Blockchain: When somebody says you can solve X with blockchain, they don’t understand X, and you can ignore them.

Why This Computer Scientist Says All Cryptocurrency Should “Die in a Fire” ❧ Current Affairs
www.currentaffairs.org

Bookmarked https://minutestomidnight.co.uk/blog/indieweb-and-webmentions-for-my-static-site/. That’s what I do, too. I …

Bookmarked https://minutestomidnight.co.uk/blog/indieweb-and-webmentions-for-my-static-site/.

That’s what I do, too. I use “notes” for short status updates, and for quick replies and “bookmarks” (like this one). But I’ve also published “long-form” replies—which I would like to see more of—before, and have, on occasion, added u-bookmark-of to in-article links.

Even though I can use my blog posts to reply or like other people’s posts — as I’ve done here and here — I’ve recently decided to employ a second type of layout: notes.

Indieweb and webmentions for my static site – Minutes to Midnight
minutestomidnight.co.uk

Found out this morning that a small tweak …

Found out this morning that a small tweak to https://github.com/janboddez/import-from-mastodon will make it work with Pixelfed, too. Thing is, Pixelfed’s access tokens do in fact expire, so rather than just check if authorization is still okay (the plugin’s current behavior), I should probably attempt to renew (Pixelfed) tokens that are about to expire, too.

GitHub - janboddez/import-from-mastodon: Automatically turn toots—short messages on Mastodon—into WordPress posts.
github.com

Bookmarked https://gomakethings.com/the-early-return-pattern-in-javascript/. My favorite programming trick. > With …

Bookmarked https://gomakethings.com/the-early-return-pattern-in-javascript/.

My favorite programming trick.

With the early return pattern, you check for the opposite of the thing you want, and return early to end the function when that’s the case.

This reduces nested if statements, and makes your code a bit easier to read.

The early return pattern in JavaScript
gomakethings.com