@jacob@jacobian.org
@jacob@jacobian.org avatar

jacob

@jacob@jacobian.org

software development, engineering management, information security, basketball shitposting. he/him.

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

jacob, to random
@jacob@jacobian.org avatar

Audiobook recommendations, anyone?

I like audiobooks that are on the lighter side — eg more towards plot-driven for fiction or pop-sci for non-fiction. And either way for straightforward utilitarian writing than flowery or poetic.

Some examples of things I’ve liked as audiobooks:

  • Girl on the Train
  • How to Change Your Mind
  • Shrill
  • 11-22-63
  • Good Omens (currently listening and loving)
webology, to random
@webology@mastodon.social avatar

🤖 Starting my day off by asking ChatGPT(4) how to use Django's annotate + aggregate together with a one-sentence description of my model relationships and it was only off by one "s" on a model name.

As much as I loathe Copilot, this use of ChatGPT is where the technology shines.

jacob,
@jacob@jacobian.org avatar

@webology related: https://simonwillison.net/2023/Jun/18/symbex/

I’ve been fooling with this to help write tests (symbex some_function | llm --system “write pytest tests for this function”) and it’s pretty cool.

offby1, to random
@offby1@wandering.shop avatar

@jacob Thanks for the tip on Game Changer, btw. That show is bonkers.

jacob,
@jacob@jacobian.org avatar

@offby1 you’re welcome, I love it so much!

jacob, to random
@jacob@jacobian.org avatar

I don’t know why anyone’s celebrating Moore v. Harper. Nine people got to vote on ending democracy and three voted YES.

jacob,
@jacob@jacobian.org avatar

@glyph a narrowly-avoided disaster is not the same as success and shouldn’t be treated as such lest we learn the wrong lessons.

jacob, to random
@jacob@jacobian.org avatar

Any tips for fixing Django migrations when you remove 3rd party dependency?

You can remove the field from the model and migrate fine, but if you ever uninstall the dependency, migrations will start to fail because the older migrations still reference the dependency, so you get ImportErrors.

One of @webology's suggestions was to edit the migrations to be TextFields, which'll work in my case b/c my field is a TextField subclass, but that's not exactly generalizable (or elegant). Other ideas?

jacob,
@jacob@jacobian.org avatar

@andrew @webology bummer. Editing the old migration files was easy enough but it feels gross.

janl, to random
@janl@narrativ.es avatar

Back in Berlin o/ what did I miss?

jacob,
@jacob@jacobian.org avatar

@janl that's been my experience as well on long road trips. As long as the charger is working (sadly not something you can count on in the US in a non-Tesla), charging stops are a total non-issue, the car is done before I am.

jacob,
@jacob@jacobian.org avatar

@janl sadly not my experience, Electrify America is super-butt. I've never been to a station without at least one broken charger, and a couple of times 20 minute stops have turned into hour+ because the supposed 350kw stations only get to like 50kw. If I plan ahead by checking PlugShare carefully I can avoid the worst stations, but it requires a level of planning that's annoying. I love the shit out of my EV, am not going back, but it's still feeling like I'm a bit early on the adoption curve.

jacob,
@jacob@jacobian.org avatar

@janl granted it's getting noticeably better, and quickly. EA's new chargers are substantially more reliable, and as other brands add 150kw++ stations there are more options for super-fast charging. ChargePoint and Shell Recharge have been super-reliable when I use them, to the point that when my 2 years of free EA expires I'll probably prioritize those brands.

jacob, to random
@jacob@jacobian.org avatar

A pattern for Django model fields with sub-attributes (eg obj.field.html): https://jacobian.org/til/django-model-fields-with-attributes/

jacob,
@jacob@jacobian.org avatar

@carlton @djangoconeurope perhaps… But one thing I noticed writing it is that I don’t think contribute_to_class is documented anywhere! That for sure we should fix.

jacob,
@jacob@jacobian.org avatar

@nessita ah sharp eyes, thanks. Will fix.

jacob,
@jacob@jacobian.org avatar

@felixxm @carlton @djangoconeurope TIL about set_name, neat.

jacob, to random
@jacob@jacobian.org avatar

The law is super weird sometimes. Did you know that it’s not a bribe if a salmon is involved? Weird, huh.

jacob,
@jacob@jacobian.org avatar

@neirbowj @lowqualityfacts the real low quality fact was the bribes we took all along

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

If anyone is curious about how to approach using as a VPN to your application (say a version that grants you access to the admin site), I have a high level outline here: https://github.com/aspiredu/heroku-tailscale-buildpack#limit-access-to-web-app-to-tailscale-users

If you have questions, please ask.

jacob,
@jacob@jacobian.org avatar

@CodenameTim omg this is amazing — this is literally on my TODO list for TOMORROW. Thank you!

jacob,
@jacob@jacobian.org avatar

@CodenameTim I’m not gonna be doing this on Heroku so it’ll be a bit different, it’s the Django side of stuff I want to figure out. I’d like to tie the Tailscale identity to the Django user to avoid two authorizations.

jacob,
@jacob@jacobian.org avatar

@CodenameTim ohhh smacks head somehow I thought this has already been merged. Hrmf this may derail my plans …

jacob,
@jacob@jacobian.org avatar

@CodenameTim in a Slack, I was reminded of @offby1's https://github.com/offbyone/tailscale-reverse-proxy which can do this right now. I think I was vaguely thinking I'd use that, but forgot the specifics and merged it with tailscale serve in my mind.

andrew, to random
@andrew@aeracode.org avatar

While I am no expert on submersibles - hovercraft are much more my thing - learning that the currently-lost one is the only one that has a hatch which cannot be opened from the inside (on the surface) and the only one to use a carbon fibre hull is, uh, concerning.

jacob,
@jacob@jacobian.org avatar

@andrew I’m not sure about the CF hull, but I was under the impression the securing from the outside wasn’t uncommon in submersibles. It’s not like you could open a hatch under pressure anyway, and if you did the explosive compression would be catastrophic. I once destroyed a camera case by accidentally opening it underwater — the sudden inrush basically blew it apart. And that was only about 100’ deep.

jacob,
@jacob@jacobian.org avatar

@andrew huh interesting. I’m dredging up memories from college (I took a bunch of technical diving courses including some on submersibles) and I have these vague memories of bolted-from-the-outside hatches being common but maybe I’m misremembering. Or things have changed substantially - that was fuck me like 20 years ago.

jacob, to random
@jacob@jacobian.org avatar

“It doesn’t matter if your admin blocks Meta [or whatever] because you can easily move to an instance that doesn’t”

Uninformed or disingenuous at best, an outright lie at worst.

(a) moving instances is not easy. I’ve done it twice and failed once, a 50% success rate. And I’m supposedly Good At Computers.

(b) your post history doesn’t transfer, so it’s only “moving” if you feel fine leaving your posts behind. Dunno about you, but when I move I like to take my stuff with me.

jacob,
@jacob@jacobian.org avatar

@nkcmr but it doesn’t work that way! Yes, if the statement were true it’d… be true. But it’s not true to stop saying it.

jacob,
@jacob@jacobian.org avatar

@chrisshaw @fancysandwiches and you’re ok with that? I’m not.

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