Stephan Garland (@stephangarland) 's Twitter Profile
Stephan Garland

@stephangarland

@[email protected]

ID: 1348836104636690432

linkhttps://sgarland.dev calendar_today12-01-2021 03:36:09

823 Tweet

72 Followers

136 Following

Stephan Garland (@stephangarland) 's Twitter Profile Photo

PSA: If you have / mounted over NFS because you thought exposing ZFS as a block device for your VMs was a good idea and then expanded that thought to include /, ext4 will get big mad if you make the block device go away while it's running.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

I spent a couple of hours trying to get ceph-csi-rbd to create a PV for me this morning. Failed with logs about the PVC having another operation. No such PVC existed. No pod failures. Ceph shows no volume was created or attempted. Wheeeee abstractions are fun.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

I’ve successfully re-capped the PSU for my (3rd, hopefully final) Laserdisc player, and added an RF tap. It’s a Pioneer LD-V4400, if you’re curious. Here’s hoping the SNR on this one is good enough for ld-decode [0]. [0]: github.com/happycube/ld-d…

Stephan Garland (@stephangarland) 's Twitter Profile Photo

I figured out a work-around to [mostly] automating Venmo payments without an API. 1. Create a payment link (venmo.com/paymentlinks/) for whomever you want, with an amount. 2. Have Zapier send you that link on a cron (Schedule) over SMS, which will open in Venmo. Tap confirm.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

Every time I use ChatGPT (-4, I’m not a plebe) for anything mildly complex, it consistently fails. Most recently was implementing Fisher-Yates (Durstenfeld) in C. I am not a C coder, but can muddle my way through. ChatGPT got hung up on pointers, and I mean, fair. Still.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

In an attempt to keep Ansible tasks Ansible-native, I created a horrifying monstrosity to find the last numbered file’s index in /etc/apt.preferences.d/. Not really sure if this is better than just shelling out to ls -1 | sort | cut, but ansible-lint doesn’t complain soooo

Stephan Garland (@stephangarland) 's Twitter Profile Photo

Ever wished you could merge the frustration of YAML with the fun of functional programming? Yeah, neither have I. github.com/yaml/yamlscript

Squirtle (@squirtle_says) 's Twitter Profile Photo

JAVASCRIPT was not intended to write anything besides FRONTEND NODEJS IS A MISTAKE TYPESCRIPT IS COPE (YOUR LANGUAGE ISNT REAL) GET THE FUCK OUT OF HERE!!!

JAVASCRIPT was not intended to write anything besides FRONTEND 

NODEJS IS A MISTAKE 

TYPESCRIPT IS COPE (YOUR LANGUAGE ISNT REAL)

GET THE FUCK OUT OF HERE!!!
Stephan Garland (@stephangarland) 's Twitter Profile Photo

"Write a proof of concept first," they said. "K.I.S.S.," they said. Now I have a proof of concept that isn't extensible, so I have to rewrite it to actually use it. I think I'm a lot better at writing small functions to do one thing extremely quickly than I am connecting them.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

Gonna eventually do a deep-dive write up (not here), but tl;dr I figured out why UUID generation is so much faster on MacOS compared to Linux. I mean yeah the CPU helps, but it’s the native library’s use of arc4random that really makes it fast. gist.github.com/stephanGarland…

Stephan Garland (@stephangarland) 's Twitter Profile Photo

Me writing small C shared libraries for my Python project: haha yes this rocks, witness the speed. Me observing RSS usage: no wait this sucks WTF.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

I mean this in the kindest way possible: fuck the Python GIL. It has caused me to spend countless nights poring over malloc documentation and running endless valgrind, massif, and memray tests, only to discover the cause of my memory bloat was from the GIL not being released.

Stephan Garland (@stephangarland) 's Twitter Profile Photo

I simultaneously want to and do not want to find out why large loop performance (and apparently other things) has been steadily declining in Python since 3.11. I also have a sinking feeling that it's not going to be fixed, and I'll be stuck at 3.11. github.com/python/cpython…