@sanityinc@hachyderm.io
@sanityinc@hachyderm.io avatar

sanityinc

@sanityinc@hachyderm.io

I optimise software and human systems, and make them happier.
๐Ÿ‡ฌ๐Ÿ‡ง๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฉ๐Ÿ‡ช๐Ÿ‡ณ๐Ÿ‡ฟ๐Ÿ‡ซ๐Ÿ‡ท๐Ÿ‡ฎ๐Ÿ‡ช

This profile is from a federated server and may be incomplete. Browse more on the original instance.

sanityinc, to random
@sanityinc@hachyderm.io avatar

Quite enjoying collecting useful commands for a current project into a "justfile". Nice alternative to abusing Makefiles for that purpose: https://just.systems/man/en/

sanityinc, to random
@sanityinc@hachyderm.io avatar

Here's Day 4 in ... it's gradually getting easier.

Parse and score

โŠœ(โ†˜1โŠœโ–กยฌโˆŠ,":|")โ‰ @\n.
โ‰ก(/+โŠโ.โ‰ โŠ™โงป โŠ—โŠ™.โˆฉ(โŠโŠœparseโ‰ @ .) โŠƒโŠข(โŠก1))
.

Part 1

/+ ร—โŠƒ(โฟ:2)(โ‰ฅ0)-1
:

Part 2

โŠ™0
:โ†ฏ:1โงป.
;โˆง(โŠ™+:โŠ™โฌš0+:โ†ฏโŠ™(.โŠƒโŠข(โ†˜1)))

sanityinc, to random
@sanityinc@hachyderm.io avatar

Took a while to do part 1 of Day 3 in , and part 2 exceeded my patience and/or skill so I'll revisit in a different lang.

Digits โ† "1234567890"
DigitMap โ† โ‰กโ‰ก(โˆŠโŠก1_1:Digits)
NearSymbol โ† โ‰กโ‰ก(/+โ™ญยฌโˆŠ:โŠ‚"."Digits)
โŠœโˆ˜โ‰ ,@\n
.
โ—ซ3_3โ†ปยฏ1_ยฏ1โฌš@.+โ†ฏ:ยค0+2โ–ณ.
โŠƒNearSymbol DigitMap
ร—+,
โŠ™(โŠ/โŠ‚โ‰ก(โ–กโŠœparse>0)).
/โŠโŠ‚โ‰ก(โ–กโŠœ(>โŠƒโงป(/+))โ‰ 0).
/+ร—

sanityinc, to random
@sanityinc@hachyderm.io avatar

Day 2 of was easier, again in :

Count โ† ร— โŠƒ(โˆŠ{"red" "green" "blue"}โŠก1) (parseโŠ”โŠข) โŠœโ–ก ยฌ โˆŠ," "
Counts โ† โŠœCountยฌโˆŠ,",;"
Game โ† Counts โ†˜+1โŠ—@:.

Part 1

Possible โ† /ร—โ™ญโ‰ค0-โ†ฏโ–ณ,12_13_14
/+ร—+1โ‡กโงป. โŠœ(Possible Game)ยฌโˆŠ,"\n" Input

Part 2

Power โ† /ร—โ‰โ‰ก/โ†ฅโ‰
/+ โŠœ(Power Game)ยฌโˆŠ,"\n" Input

sanityinc, to emacs
@sanityinc@hachyderm.io avatar

I suspect these keybindings are going to become indispensable:

(define-key diff-hl-mode-map (kbd "M-C-]") 'diff-hl-next-hunk)
(define-key diff-hl-mode-map (kbd "M-C-[") 'diff-hl-previous-hunk)

When changing existing files under version control, this lets you jump around between spots you've edited.

sanityinc, to random
@sanityinc@hachyderm.io avatar

The platform roadmap is such a grown-up and well-written plan. Great example for other language communities. https://ocaml.org/docs/platform-roadmap

aral, to web
@aral@mastodon.ar.al avatar

Just updated a server I hadnโ€™t touched in over six years from Ubuntu 16.04 โ†’ 18.04 โ†’ 20.04 โ†’ 22.04 and it all went smoothly; not a single issue.

I canโ€™t wait for a server with Fedora Silverblue-style upgrades (CoreOS?) thatโ€™s supported by the major VPS providers in default images. Tried a while back to get Hetzner to support CoreOS but the process appears somewhat stuck:

https://github.com/coreos/fedora-coreos-tracker/issues/1324

sanityinc,
@sanityinc@hachyderm.io avatar

@aral At the risk of being a bore, this is where is great, because you can upgrade any number of release versions in a single step, and roll back if it didn't work. Admittedly it's not for everyone, and certainly not officially supported by many VPS providers.

sanityinc,
@sanityinc@hachyderm.io avatar

@flyinggecko @aral Yep, totally. And I've got a custom image on Linode, personally.

sanityinc, to AWS
@sanityinc@hachyderm.io avatar

This Is Just To Say

I have terminated
the EC2 instances
that were in
the account

and which
you were probably
saving
for "Testing Stuff"

Forgive me
they were t3.xlarge
so idle
and so expensive

nedbat, to python
@nedbat@hachyderm.io avatar

Earlier I griped about black/ruff formatting similar #Python lines differently because of their varying line lengths. After looking at it more, I decided to reduce the duplication in the lines, which shortened them, making the meaning more visible:

sanityinc,
@sanityinc@hachyderm.io avatar

@nedbat Yes, nice! Sometimes clunkiness is just a cry for help.

gvwilson, to random
@gvwilson@mastodon.social avatar
sanityinc,
@sanityinc@hachyderm.io avatar

@gvwilson Might scons work? I imagine it's not very actively maintained these days.

b0rk, to random
@b0rk@jvns.ca avatar
sanityinc,
@sanityinc@hachyderm.io avatar

@kellogh @b0rk Yes, you ultimately get hermetically-packaged binaries in your $PATH. They all live under /nix and don't clash with each other, so you can have multiple versions of, say, Python in different projects.

sanityinc,
@sanityinc@hachyderm.io avatar

@kellogh @b0rk Regarding per-project environments, and as a taste of some of the powertools gives you, my 10min screencast is still pretty relevant. It helps a lot to learn the language itself and a few of the patterns early on, otherwise it all ends up looking like runic nonsense. https://www.youtube.com/watch?v=TbIHRHy7_JM

gvwilson, to random
@gvwilson@mastodon.social avatar

Postgres is to SQLite as MongoDB is to...?

sanityinc,
@sanityinc@hachyderm.io avatar

@gvwilson LevelDB?

sanityinc, to random
@sanityinc@hachyderm.io avatar

Running Fuse filesystems on MacOS continues to be painful. I'd quite like to make an adaptor so that I could run a fuse filesystem and it would show up as an NFS resource on the local host instead of trying to connect to a kernel extension. ๐Ÿค”

sanityinc,
@sanityinc@hachyderm.io avatar

@jack I think I read that 9P is used for WSL on Windows.

I'm using rclone, which is excellent and can serve lots of storage things via WebDAV, fuse etc., so maybe it needs to grow NFS (or 9P?) support.

sanityinc,
@sanityinc@hachyderm.io avatar

@jack Related recent post, with some additional pointers in the HN comments: https://news.ycombinator.com/item?id=37573679

sanityinc,
@sanityinc@hachyderm.io avatar

@jack Fun would be a wrapper program for existing fuse filesystems that would serve them on the network instead, but I guess that would be an LD_PRELOAD hack scenario. Otherwise, a libfuse-compatible replacement they could be properly linked to.

sanityinc,
@sanityinc@hachyderm.io avatar

@jack It turns out rclone just gained the ability to serve its backends like S3 over NFS last month, so now I can throw away Fuse, at least for what I needed it for: https://github.com/rclone/rclone/tree/master/cmd/serve/nfs

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

โŒจ๏ธ Whatโ€™s your favorite key switch? (For those not into mechanical keyboards, itโ€™s an excellent rabbit hole to fall into.)

sanityinc,
@sanityinc@hachyderm.io avatar

@thomasfuchs Not a connoisseur, but I like my Kailh Box Jades.

gvwilson, to random
@gvwilson@mastodon.social avatar

Returning to an earlier theme, I saw this: "The venture model has somehow convinced us to take the most cost efficient businesses in historyโ€”softwareโ€”and turn them into cash incinerators, all in the name of growthโ€ฆ We started Curious to provide an antidote to that. Linear growth over exponential. Sustainable over unsustainable." Nope: endless growth of any kind (linear or not) isn't sustainable, and isn't required for profitability. Spin it how you will, the only people who "need" it are VCs.

sanityinc, (edited )
@sanityinc@hachyderm.io avatar

@gvwilson I'd love to see people thinking about businesses in terms of growing the amount of "tangible problem solved", not the "profit" that is a poor proxy for that, and becomes an even poorer proxy at scale.

sanityinc, to emacs
@sanityinc@hachyderm.io avatar

"eat" is making it convenient to run a full terminal inside where "vterm" previously failed to convince me: https://codeberg.org/akib/emacs-eat/src/branch/master/README.org

sanityinc, to random
@sanityinc@hachyderm.io avatar

I have no idea how to find anything in New Slack, but then again I've been on calls with their sales folks pushing Slack Enterprise Grid, so the product has been thoroughly rebuilt to cope with all of Salesforce (their acquirers) using it, and there's little in common between such organisations and those I enjoy.

sanityinc,
@sanityinc@hachyderm.io avatar

@kellogh Teams, no question. I would avoid taking on clients who use it.

sanityinc, to random
@sanityinc@hachyderm.io avatar

I thought the YouTube algorithm knew me pretty well, but it only introduced me to Electric Callboy last week ffs https://www.youtube.com/watch?v=D1NdGBldg3w

sanityinc,
@sanityinc@hachyderm.io avatar

^ This band is still on daily rotation, strong mood enhancer๐Ÿค˜

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • Durango
  • Youngstown
  • everett
  • slotface
  • rosin
  • cubers
  • mdbf
  • ngwrru68w68
  • anitta
  • GTA5RPClips
  • cisconetworking
  • osvaldo12
  • ethstaker
  • Leos
  • khanakhh
  • normalnudes
  • tester
  • modclub
  • tacticalgear
  • megavids
  • provamag3
  • lostlight
  • All magazines