Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 60
  1. Adding line breaks in Markdown

    In CommonMark, there are two ways to add line breaks within a paragraph: Add two spaces at the end of the line Add a backslash (\) character at the end of the line I tend to prefer the latter, since extraneous whitespace is invisible in many editors and t…

  2. AI Rules

    Shot: Two simple rules that let LLMs streamline and improve your writing without pasteurizing and jacking it with corn syrup.

  3. Removing tmux

    Prompted by Brandur’s 15 years later, a day without Tmux, I remembered my own slow removal of tmux from my stack a while back.

  4. Structured Concurrency

    Every time you write the statement go in a program, you should consider the question of how, and under what conditions, the goroutine you are about to start, will end.

  5. hugo --clock

    I use hugo as my SSG. hugo has a --clock flag that lets you set the clock (using a starting RFC 3339 formatted timestamp) that the CLI uses for its commands.

  6. PSA: Include full article content in feeds

    I recently learned that NetNewsWire supports opting-in individual feeds to “always use reader view”, so I’ve been noticing more closely which of my feeds provide the full content of their feeds versus just a summary, and opting in the latter to that setti…

  7. Go select without the coin flip

    In Go, it’s common to wait on a condition via a channel while also respecting context cancellation.

  8. Taste Acquisition Syndrome

    I recently read Will Manidis’ Against Taste and found myself nodding along to much of that essay: The taste thesis, at its deepest and most simple structure, reverses this order.

  9. Sargable

    TIL of “sargable” conditions in SQL queries, which just means that an index can be used to speed up the query.

  10. Tangenting

    Again, not something I learned today, but within the last few weeks: “tangenting”.

  11. TK

    TK means “to come”.

  12. cells - a language server for CEL

    This weekend, I built a language server for CEL called cells.

  13. Neovim :Inspect

    Yesterday, I was working on improving buf’s lsp protobuf semantic tokens, and needed to test out how my changes were working in a real LSP client.

  14. Fog of War

    Growing up playing World of Warcraft (WoW)1, I became familiar with the concept of “Fog of War” — that is, areas of the world that your character hadn’t visited.

  15. Neovim :InspectTree Tree-sitter

    I had assumed that to interact with Tree-sitter in Neovim, you still needed to use the utilities from nvim-treesitter.

  16. WikiGnome

    TIL about WikiGnomes: A WikiGnome is a wiki user who makes useful incremental edits without clamoring for attention.

  17. Small Seasons

    Since moving out to suburban Ipswich from Boston, I’ve been on a “seasons” kick — you know, those things that feel wonderful the first couple weeks they’re here and then eventually drag on until the next one comes along?

  18. Wrapping arrays in jq

    Riffing on Tom MacWright’s “Using super” post from yesterday, I saw the post and immediately thought of using jq.

  19. Internet Phonebook

    I was lucky enough to be included in the inaugural Internet Phonebook, in the “Atmosphere” section on p. 22 — I’m number #58 if you’d like to Dial-my-site.

  20. Neovim LSP Defaults

    neovim released v0.11.0 a little while back, and in the interest of using the defaults, I removed some of my LSP-related keymaps that are now automatically mapped.

  21. Postgres citext type

    TIL about the Postgres citext type (that is, case-insensitive text type), from reading this schema.

  22. Go Pass by Value or Pointer

    I’ve long struggled with the choice of how to pass around Go values, specifically structs.

  23. HTML datetime duration

    Last week I learned that an HTML datetime attribute can represent a duration.

  24. GBrowse to another branch with Fugitive.vim

    Last week, I watched a coworker bring up a file on a different branch using fugitive.vim’s :GBrowse and I was floored: almost daily I find myself using it to open the URL to a file to share (or a few lines).

  25. Neovim nfnl Directory Configuration

    I’ve long wanted to figure out how to get nfnl's directory-local configuration working, but it took me until yesterday to figure it out — mostly by opening a discussion and then realizing my mistakes. 🤡 First, exrc needs to be enabled.

  26. Git Stash File(s)

    This isn’t something I’m just learning today, but I’ve looked this up enough to warrant writing it down.

  27. Smart Speed

    My Overcast settings screen shows the following: Smart Speed has saved you an extra 949 hours beyond speed adjustments alone.

  28. App Defaults

    Inspired by https://defaults.rknight.me, here are my current defaults: Mail Client: Mail.app Mail Server: Migadu Notes: Drafts To-Do: Things iPhone Photo Shooting: Camera.app Photo Management: Photos.app Calendar: Calendar.app Cloud File Storage: iCloud D…

  29. Style Guide

    Inspired by Louie Mantia’s CSS for This Blog, I figured I’d publish the page I use locally for testing out how my CSS looks.

  30. November Review

    A quick retrospective on my November Goals post: Run 80 miles I fell a little short here, running just 58 miles for the month.

  31. Update 2022-11-03

    I’ve been a little hesitant to write here, for whatever reason.

  32. Service Wrappers

    TIL of Service Wrappers a technique I’ve used in the past but have never had a name for.

  33. Blair Witch

    Watched “The Blair Witch Project” last night as a bit of a pre-Halloween treat.

  34. Reading the Web

    I’ve spent a decent amount of time tweaking my … “system” for reading articles and blogs on the ’net that I figured I’d jot down what I’ve tried, and what’s currently working for me.

  35. November Goals

    Setting some November goals a little early: Run 80 miles I set a goal of 500 miles this year — I’m already at 864 miles for the year, most of which I ran in the early summer.

  36. Grease the Groove

    I’ve been a little hesitant to write here, for whatever reason.

  37. Go’s fmt package Explicit Argument Indexes

    Not sure how I hadn’t seen this before: in Go, you can specify the index of the format argument you want to use for each formatting verb.

  38. SQLite Connection Configuration

    These notes are basically cribbed from Ben Johnson’s excellent “Building Production Applications Using Go & SQLite” GopherCon talk, specifically the “Configuring SQLite” section.

  39. Shell in Markdown

    For a long time, I’ve used commandline as the name for the syntax of code fences in markdown whenever I’ve wanted to denote a shell command or session.

  40. PostgreSQL and jsonb type casts

    Found a bug in one of our systems at work that deals with jsonb data stored in Postgres today.

  41. PostgreSQL IN versus ANY

    I still feel rather new to PostgreSQL, and a few times now in Go I’ve tried to do something along the lines of: type pgdb struct { db *sql.DB } func (db *pgdb) getEntityByID(ctx context.Context, ids []string) ([]Entity, error) { query := "SELECT * FROM…

  42. Go’s package fmt %q verb for strings

    I wasn’t aware of the Go fmt package %q verb, for quoting strings.

  43. Seven GUIs

    Recently I polished up and published my seven-guis project.

  44. Go Templates Whitespace

    When writing HTML templates in Go, knowing about the whitespace modifiers is crucial for keeping both the templates and the output HTML looking good.

  45. Uses

    I’ve added a new uses page, detailing my personal computing setup.

  46. time.Ticker in Go

    The time.Ticker type in Go is incredibly useful for situations in which polling is needed.

  47. run vs errgroup

    I typically don’t do much with concurrency in Go, but messed around this morning with both oklog/run and sync/errgroup.

  48. Use jq to see if a JSON key exists

    I’m constantly using jq to deal with JSON via the CLI.

  49. New Domain

    A quick domain update: svbn.me -> stefan.vanburen.xyz and to match, an email address update: me@svbn.me -> stefan@vanburen.xyz Will hold on to the old domain for awhile, so it should still work, but most things are being redirected.

  50. Hiccup Makes Writing HTML Fun

    At $work, I’ve been writing a web application that is server-side rendered via Go’s html/template package.