@fallenhitokiri@social.screamingatmyscreen.com avatar

fallenhitokiri

@fallenhitokiri@social.screamingatmyscreen.com

I build backends, apps and sometimes break them, practice martial arts and enjoy video games. I believe I have seen the whole Internet once, maybe twice.

Tools of choice #python #django and #golang
Sometimes musing about #gaming and #gym life

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

carlton, to random
@carlton@fosstodon.org avatar

A quick musing, whilst I'm playing about…

How many nines? - Or do you really need high availability?

https://noumenal.es/posts/how-many-nines/0bz/

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton I really like the Wikipedia table. My usual pitch is

„Per one 9 after the comma you’ll add 10x infrastructure cost and at least one engineer and potentially QA and ops. Otherwise your downtime will most likely be application and not infrastructure related“

This usually ends the conversation with zero 9s after the comma.

fallenhitokiri, to python
@fallenhitokiri@social.screamingatmyscreen.com avatar

“Members of any membership class with voting rights must affirm each year…“

A drama in three acts

  • register: (captcha) I think I should have an account already?!
  • login: (captcha) obviously not, I could register the mail address
  • no idea, same page as before without login button
  • click link in email: „obviously“ not a member

I have no idea what’s going on.
I’m not sure I have the energy to care.
I might simply reassign the money to another org.

Login
Don’t know what to do
Not a member?

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

The new iPads look like a pretty good upgrade, especially the display. But we are five or six years in and Apple still refuses to fix the software side to make them actually useful but for some niche application :/

If they’d announce macOS support at WWDC you could count the minutes between the announcement and me ordering one with the new keyboard case…

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

I have to give simone a test run some day. It seems to be the ultimate “this video should have been a blog post” tool :D https://github.com/rajtilakjee/simone

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Coming back at update_or_create for round 2!

If you call update_or_create where the instance already exists and the defaults passed in are already the values on the instance, do you ever want it to actually re-save the instance?

I'm running into the case where I'd prefer it to not update the instance if it doesn't need to. I'm guessing I'm overlooking some race condition problem though.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@CodenameTim I would expect DateTimeFields with auto=True to update for example?

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@CodenameTim I’m thinking of persisting a value that’s constantly being updated and you want to know when the last write was, even if nothing changed. New values (keys) might come in at any time.

(I had something similar for an industrial control system I worked on. The updated field was one of the heartbeats)

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@CodenameTim It’s a fair argument, but it feels inconsistent with how updates and creates outside of update_or_create behave.

You could make the argument that for consistency it might make sense to drop auto=now for all writes - you can simply pass it the same way as you’d have to do in your example.

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

I’m testing some widgets on my iPad and there are some I really like. But the iBooks one is… confused.

It’s not Wednesday, so I surely didn’t reach my goal.
I’m certain I a, reading a book…

My favorite one I have on all devices for some time is the photo widget. Random memories just make me for a better “screen unlock” experience :)

fallenhitokiri, to golang
@fallenhitokiri@social.screamingatmyscreen.com avatar

Bubble Tea for is the first TUI library I touched that doesn’t make me regret writing a TUI.

The examples, documentation and video tutorials also make it super easy to get started or stitch together the parts you need.

Overall this is just a really good library from a developer perspective.

carlton, to random
@carlton@fosstodon.org avatar

Small teams, building useful tools, in the real economy.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton “real economy”? I think that’s the thing VCs warned me about scnr

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton I see. That sounds like a wild and disruptive concept. I wonder if any VC or PE is interested in funding development in this area.

fallenhitokiri, to Games
@fallenhitokiri@social.screamingatmyscreen.com avatar

I finally figured out why I don’t like the last Doom games. It’s not necessarily the lack of ammo but the glory kills slowing down gameplay. That took me a while to realize…

carlton, (edited ) to random
@carlton@fosstodon.org avatar

The coffee must be good this morning.

Just drafting some thoughts about and « ”I’m just going to write my own”, is the battle-cry of morons » gently flows from the fingers. ☕️

May have to copy-edit 🤔

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@carlton I think edited forms of this statement circulated for decades in various contexts, maybe a different wording might help to convey the message :)

(Also I was told by @chanakya that my last post draft reads rather pissed off / aggressive in its message - I might not be the best advisor :D)

janettespeyer, to fediverse
@janettespeyer@flipboard.social avatar

Question for fedi experts. What are the benefits of hosting your own instance?

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@janettespeyer @JustineSmithies for me in no particular order:

  • no drama and which instances get blocked is my choice (I don’t mind Threads for example, easy way to follow a few people I cannot follow right now)
  • secured funding
  • control over my identity and account
  • home timeline is literally friends and family, my experience couldn’t be more curated and the most I’d accept to see as home timeline
webology, to random
@webology@mastodon.social avatar

👀 So it's a rare Saturday when I'm working because I shifted my week to take a Monday off, and I'm getting logged out of the Django Admin (localhost + Django 5.0.4) every ~5 seconds.

My console shows:

> django.security.SuspiciousSession WARNING Session data corrupted

This issue seemed to go away after I re-ran collectstatic to fix a few broken images. (It already gets ran at least twice).

🤔 I am not sure if this is a new Django bug or if anyone else is seeing this?

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology I am a bit slow today, but secrets in settings.py or environment variable?

I’ve seen “Session data corrupt” in the logs of an internal project last night but didn’t dig in it yet. The project is on 4.2.6.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology ok, so I’ll definitely have to look for a different reason why I’ve seen this message :) thanks!

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology yep, didn’t plan to work today, but still had the terminal open and saw the message first thing in the morning.

hynek, to random
@hynek@mastodon.social avatar

It’s kinda wild that for home NAS backups it’s still cheaper to buy a low-end Synology with a big-ass HDD, put it somewhere != home, and backup to it.

Famously-cheap Backblaze B2 is $144 / yr for 2 TB. A Synology DS124 is less than $200 and 4 TB HDDs are less than $100. Two years & you’re ahead. Add more TBs & it’s even faster. Of course, it’s even cheaper if you’re willing to fiddle w/ Raspberry Pis.

Holds up if you include electricity bills: backup NASes can be switched off most of the time.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@hynek I don’t disagree on the general principle and think this is a good solution for many people.

But what you didn’t factor in is a UPS, filesystem reliability, physical risk to the NAS, disks dying, potential offsite restore of data… there’s IMHO a lot more to it.

Also Hetzner Storage Box, 5TB for 156€/y :) Backblaze isn’t that cheap. https://www.hetzner.com/storage/storage-box/bx21/

webology, to random
@webology@mastodon.social avatar

✍️ Last night, I wrote about using Syncthing to organize my project files across several Macs and a Linux box.

I also wrote about the joy of not carrying anything to work anymore. This morning, while I was carrying a HomePod Mini in a bag to the office, I thought about the irony of it all.

https://micro.webology.dev/2024/03/27/on-syncthing-and.html https://mastodon.social/@webology/112170965528610807

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@webology did you run into any problems with .git so far? I remember Dropbox having a really bad time early on when having a git repository in the sync directory.

Edent, to random
@Edent@mastodon.social avatar

For some reason, Google have given me £3 in Play Store credit.

What's a paid-for app / game that you love which is ≤£5?

(Yes, I mostly use open source. No I don't mind paying for a developer's time. Yes, I know your iPhone is better. No, I'm not interested in your rant about fees or monopolies. Yes, I mean GBP5. No, I don't think these disclaimers get read.)

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@Edent not sure about the conversion rate but in the ballpark - Stardew Valley absolutely favourite for some casual gaming in the go :)

Edent, to ps5
@Edent@mastodon.social avatar

Hmmmm.

Trying to connect my new to the TV and it is adamant that it can't do HDR in 4K.

The AV receiver supports HDR passthrough, and the TV supports it. Things like the FireStick 4K are happy to do HDR at that resolution when plugged in.

Tried a couple of HDMI cables, but still no dice.

Time to figure out if it is a firmware thing, a cable thing, a port thing, a HDCP thing, or something else.

Almost as fun as actually playing games on it 😆

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@Edent my AV receiver technically supports HDR passthrough but hard crashes when setting the AppleTV to 4:4:4 chroma while working like a charm with 4:2:2. I got no idea why and didn’t care enough to find out as I connected it and the PS5 straight to the TV and started using eARC. Might be an option to play around with :/

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

TIL - how FingerprintJS works around Safaris audio fingerprinting protection, Gos improved http request routing in 1.22 and Bitcask, something I once implemented but didn't think about in a long time. Luckily I found the paper again :)

https://www.screamingatmyscreen.com/til/8/

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

When you sneak one point for the Tumblr armchair lawyer crowd into the FAQ. Still up for discussion if it makes it in the final copy, but I have a strong feeling it will.

fallenhitokiri, to random
@fallenhitokiri@social.screamingatmyscreen.com avatar

We got half a cake from my mum yesterday and @Airmed mentioned that my mum went a bit heavy on the rum flavour.

My mum is contemplating if she should be insulted.
I quote “As if I’d ever bake with rum flavour. I soaked the raisins for half a day in rum. That’s how you bake a proper cake! Your wife should know that by now!”

Edent, to vegetarian
@Edent@mastodon.social avatar

Picked up a block of vegan Salmon Sashimi substitute from a brilliant wholesaler.
https://veggie-world.com/retail/product/vegan-salmon-sashimi/

It is surprisingly nice. Slightly odd texture, but goes brilliantly in a little sushi roll.

fallenhitokiri,
@fallenhitokiri@social.screamingatmyscreen.com avatar

@slothrop @Edent that’s good to know! :) but I hope to find a local store without shipping across borders at some point :)

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