home.social

#nablopomo2024 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nablopomo2024, aggregated by home.social.

  1. 📝Tell GitHub to Render Markdown Pages with .gitattributes

    Articles on Hearthside are written in #Markdown (#GitHub-flavored), but the file extension is .md.yaml as they also make use of Jekyll-style front matter. My #Frontmatter gem requires that files it handles end in .yaml or .yml, so this is necessary.

    #Meta #NaBloPoMo2024
    calebhearth.com/m/github-lingu

  2. 📝:ivory_boost: Oxtail, and more #Cooklang Exploration

    After yesterday’s post, it was time to finally try to handle a blog post and Cooklang #recipe in one file. The solution to how to format things was simple: inline the recipe in a Markdown code fence and pre-process it.

    #NaBloPoMo #NaBloPoMo2024 #Microformats #IndieWeb #Rust #RubyOnRails
    calebhearth.com/m/oxtail

  3. 📝:ivory_boost: Oat Notes

    You’ll probably read this recipe and think wait, this is just overnight oats but you’d be wrong, because this is a recipe for overnight oats that someone who cares about you remembered to make for you last night. At least that’s how I interpret my 3-year-old’s mis-hearing or pronunciation of us...

    #NaBloPoMo #Receipe #NaBloPoMo2024 #Cooklang #Microformats #IndieWeb
    calebhearth.com/m/oat-notes

  4. 📝:ivory_boost: How I Model #SwiftUI Views

    The approach I take to defining ViewModels for SwiftUI was heavily inspired by @twostraws’s post Introducing #MVVM into your SwiftUI project. In it, he advocates for defining class ViewModel inside an extension to the relevant view.

    #NaBloPoMo #Swift #Testing #NaBloPoMo2024 #BestPractices
    calebhearth.com/m/how-i-model-

  5. 📝:ivory_boost: Truncate Date to Calendar.Component in #Swift

    I’m frequently wanting to work with truncated dates in #Swift apps, especially when dealing with Swift Charts. Foundation provides Calendar.startOfDay(for:) to get the first moment of a day, and that’s been really useful. The extension below will do something similar for an arbitrary1 ...

    #NaBloPoMo2024
    calebhearth.com/m/swift-trunca

  6. 📝:ivory_boost: Using Starship for the Same Prompt, but Faster

    Starship is a highly-configurable, cross-shell prompt. I recently switched to using it and it sped up my prompt rendering from being noticably slow and taking probably half a second to render to an imperceptible 0.03s rendering time. It actually does slightly more than my old prompt did as well...

    #NaBloPoMo #Rust #Uses #NaBloPoMo2024 #Shell #dotfiles
    calebhearth.com/m/starship-pro

  7. 📝:ivory_boost: Send a From Header When You Crawl

    Sending a From header is part of building a polite crawler, along with respecting Robots.txt and sending a unique User-Agent. The From header simply contains an email address that can be used by the site’s owner to reach out if your bot is creating any issues for them.

    #NaBloPoMo #BestPractices #Http #NaBloPoMo2024
    calebhearth.com/m/send-a-from-

  8. 📝:ivory_boost: Use cURL and jq to Send Webmentions from Hacker News

    Hacker News doesn’t send Webmentions when a post is created like Lobste.rs will, and there’s not currently a service on sites like Brid.gy that will provide them for you. Even the Hacker News API doesn’t provide search or filtering by site. Luckily, there is a service provided by Algolia that ...

    #NaBloPoMo #Webmention #IndieWeb #NaBloPoMo2024 #Jq #Curl #Hackernews
    calebhearth.com/m/hn-webmentio

  9. 📝:ivory_boost: Search and Sync Your #Shell History With Atuin

    Atuin is a tool that runs in the background to capture commands you’ve entered. It stores these locally in a SQLite database and provides a great CLI tool to search through that history, provide stats of what commands you frequently run, and optionally syncs this history across devices.

    #NaBloPoMo #Rust #Uses #NaBloPoMo2024 #dotfiles
    calebhearth.com/m/search-sync-

  10. 📝:ivory_boost: Decryption/CypherError on Rails 7.1 Apps with Encrypted Columns After Upgrading from Previous Versions

    When upgrading to Rails 7.1 with any models using the encrypts macro from ActiveRecord::Encryption, be wary of upgrading the config.load_defaults in config/application.rb from 7.0 to 7.1. The 7.1 defaults for ActiveRecord::Encryption include a combination of settings that can lead to your app...

    #NaBloPoMo #RubyonRails #NaBloPoMo2024 #Bug #OpenSou calebhearth.com/rails-7-1-encr

  11. 📝:ivory_boost: I Use /uses

    Back in 2023 I quietly published my /uses #Slashpage. Today I gave it a pass to update things that had fallen out of date.

    #NaBloPoMo #NaBloPoMo2024 #Uses #IndieWeb #Microformats
    calebhearth.com/m/i-use-uses

  12. 📝:ivory_boost: How to Send a #Webmention h-entry

    Notify sites that you have linked to them with extra context: is your content a reply, a review, a bookmark, or even a checkin?

    #NaBloPoMo #Microformats #IndieWeb #NaBloPoMo2024
    calebhearth.com/m/webmentions-

  13. 📝:ivory_boost: New #Fonts Day

    Today rather than publishing a lengthier post, I’ll point you to some work I’ve done on this site’s design.

    #NaBloPoMo #CSS #NaBloPoMo2024 #Design
    calebhearth.com/m/new-fonts-da

  14. 📝:ivory_boost: Build Colors from Colors with #CSS Relative Color Syntax

    This is a post I’m mostly writing for my future self, because I can never remember the actual term for the #CSS feature that lets you define a color based on another color (it’s “CSS Relative Color”) and “color mix” which is what I keep wanting the feature to be called never turns up any results...

    #NaBloPoMo #NaBloPoMo2024 #Design
    calebhearth.com/m/css-relative

  15. 📝:ivory_boost: Highlighting Text in Links with Text Fragments

    I’ve used URL text fragments in a few posts now and often use it outside of this blog to point someone to a particular piece of text on a page. They’re a really useful feature that allows you to create a URL that links not just to a page or an anchor on that page, but specifically to a bit of...

    #Css #NaBloPoMo2024 #Indieweb #Design
    calebhearth.com/m/text-fragmen

  16. 📝 swift-format GitHub Action

    swift-format is only one of several options for #Swift language formatting tools, but as it is part of the official Swift #GitHub organization and is built by Apple, it stands a good chance of coming out as the primary one. As of Xcode 16, swift-format is bundled with Apple’s IDE for Swift...

    #BestPractices #NaBloPoMo2024 #dotfiles #OpenSource
    calebhearth.com/m/swift-format

  17. Statistics for My Blog

    When thinking about how to kick off #NaBloPoMo #NaBloPoMo2024 this past weekend, instead of picking one of several drafts or mostly written articles I naturally decided that we should instead start with something fresh!

    Introducing /statistics, a #Slashpage that shows blog post stats.

    #Programming #Slashpages #Ruby

    calebhearth.com/m/blog-statist