@benjaoming@social.data.coop
@benjaoming@social.data.coop avatar

benjaoming

@benjaoming@social.data.coop

❤️ing computer reuse, repair and Open Source
🤜️ing tech solutionism and colonialism
🦫ing as an open source consultant/activist
📝️ing for GovStack's Consent Building Block

Active in www.fairdanmark.dk (@fairdanmark), www.data.coop, www.django-denmark.org, co-organizer of DjangoCon Europe 2019, co-organizer of Malawi Data Science Bootcamp 2021 https://mwdata.science

Daily work revolves around documentation, Django and digital consent

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

SebastianM6L, to django
@SebastianM6L@mastodon.social avatar

Why isn't

Model.objects.get_or_none()

a thing in ?

That would save some boilerplate code or am I wrong?

Because if there is a chance that there is no entry for the query get()will raise a DoesNotExist exception that you have to catch.

get_or_none()would be cleaner in my opinion.

benjaoming,
@benjaoming@social.data.coop avatar

@SebastianM6L you can use .first() if you don't care about MultipleObjectsReturned issues. Otherwise, I think it's best to define your own logic for your particular case. I wouldn't like the framework to "trick" people, so I think the current behavior is really good 😇

kimschulz, to Samsung Danish
@kimschulz@social.data.coop avatar

Nå men altså mine kanelsnegle gik vist lidt ampl i ovnen så det bliver svært at finde de muffinsforme de blev bagt i 🤣
#bagning #fredagshygge #familie #foodie #samsung #danskertoot

video af kanelsnegle der går amok i ovn

benjaoming,
@benjaoming@social.data.coop avatar

@andreasio @kimschulz DET NEMT! MAN FILMER FRA OVEN! 🥁 🥁 🥁 👋 🚪

gvwilson, to random
@gvwilson@mastodon.social avatar

I want the equivalent of 'lint' or 'ruff' for GitHub repos. Does the repo name match a pattern? Are the right issue labels set up? Et cetera. I can write a script to do this, but if it already exists, a pointer would be welcome: how do you manage the 780 repos your org has?

benjaoming,
@benjaoming@social.data.coop avatar

@gvwilson I know that @aj has built some tooling for managing consistent labels across repos.. in case he sees this (may not be so active here)

frank, to random
@frank@frankwiles.social avatar

It's not often I laugh multiple times during a Python YouTube Video but Hynek manages to pull it off https://www.youtube.com/watch?v=ImBvrDvK-1U

benjaoming,
@benjaoming@social.data.coop avatar

@frank that was a funtastic summary, thanks for sharing!

benjaoming, to random
@benjaoming@social.data.coop avatar

Interesting. Several Canonical projects are using Discourse as their platform.

As with documentation using wikis, it's nearly the opposite of Documentation As Code. Instead of benefiting from a relationship between documentation, the software, its versioning and CI platforms, it builds a direct relation between documentation, support and community.

Here's an introduction: https://discourse.ubuntu.com/t/documentation-contributions/35868

Rendered docs: https://microstack.run/docs

benjaoming, to random Danish
@benjaoming@social.data.coop avatar

Dansk Industri og Tryg

benjaoming,
@benjaoming@social.data.coop avatar

@siggi ja :)

benjaoming,
@benjaoming@social.data.coop avatar

@siggi haha, tak, skørt at virkeligheden er så dum, at den bedst beskrives på den her måde

ovelarsen, to random Danish
@ovelarsen@norrebro.space avatar

Vi har løsningerne. Implementer dem !

Düsseldorf, Germany: 1990 vs 2019

The Rheinufer tunnel relocated the street „Rheinuferstraße“ underground for a length of 1,928 m, allowing the construction of the beautiful Rhine Promenade.

benjaoming,
@benjaoming@social.data.coop avatar

@ovelarsen Opposite.... here's the before and after in Dresden's Elbe river shore... Waldschlösschenbrücke Bridge.

There's only two times in history that a site has ever been removed from the UNESCO World Heritage. This was one of them.

https://en.wikipedia.org/wiki/Waldschl%C3%B6sschen_Bridge

A photo of roughly the same place, after an ugly bridge was build and the land was ruined by construction work.

nanorepublica, to django
@nanorepublica@indiehackers.social avatar

📣 Common Django Project structures - Part 3
📄 A very simple setup, useful for demos or very simple prototypes
🔗 https://softwarecrafts.co.uk/100-words/day-91
,,

benjaoming,
@benjaoming@social.data.coop avatar

@nanorepublica Thanks for doing this write-up! Your part 1 and part 2 resemble my experience, too. Especially naming the project package simply project or django_project is something I've used the past years to avoid conflating the understanding with the custom application where 99% of logic lives.

If one was to take a "safe bet" at the inception of a project, I would go with "part 2" :)

benjaoming,
@benjaoming@social.data.coop avatar

@nanorepublica I've also had projects as Python packages with everything under src/<acme>/:

src/acme  
src/acme/project # Django project  
src/acme/apps/users # User handling  
src/acme/apps/pages # Wagtail stuff  
src/acme/apps/events # Events stuff  

That way, we can do DJANGO_SETTINGS_MODULE=acme.project.settings which I think is nice :)

stefan, (edited ) to fediverse
@stefan@stefanbohacek.online avatar
benjaoming,
@benjaoming@social.data.coop avatar

@stefan @stefan Another reason why Phanpy has >63% of alt texts on images, has to be that users have a constant reminder and experience of alt texts, since the text appears as a caption.

When I typed in an alt text in the normal Mastodon web client, the devil inside me used to whisper: "pssst! most people won't see that text anyways".

The example in the image is from a post by @mariatta - random hi from your follower 👋

decibyte, to stackoverflow
@decibyte@social.data.coop avatar

Funny how the "frequently asked questions" for the thing does not list the question "How do I opt out of this?" (nor the answer to it).

https://stackoverflow.co/teams/ai/

benjaoming,
@benjaoming@social.data.coop avatar

@decibyte there's also some discussion about it here => https://m.benui.ca/@ben/112396505994216742

simonjust, to random Danish
@simonjust@mstdn.dk avatar

Koldskål in the house! 😂

benjaoming,
@benjaoming@social.data.coop avatar

@simonjust Koldskålsbrok: "Hverdagskammerjunker" fra Discount 365 (eller hvad fanden de nu hedder) er fuldstændigt umulige at knuse i hånden og smager alt for meget af sukker.

Det er garanteret EU, som har ødelagt vores kammerjunker, så de ikke er til at knuse længere.

Jeg skal snakke med en advokat... en kammerjunkadvokat

anze3db, to random
@anze3db@fosstodon.org avatar

One thing that I'm missing with HTMX and Django is proper error handling.

By default HTMX swallows any response that is not a 2xx, which might leave your users hanging on an endless loading state.

Does anyone have a good solution for this that can be reused between projects?

video/mp4

benjaoming,
@benjaoming@social.data.coop avatar
aiefel, to random
@aiefel@mastodon.social avatar

Signal is secure, but the group of guys attacking it right now certainly do seem to be struggling with insecurities of some kind.

benjaoming,
@benjaoming@social.data.coop avatar

@aiefel ay context please 😳

benjaoming,
@benjaoming@social.data.coop avatar

@aiefel thanks... and yes Space Karen has said something random again, great, let's have news stories yay :)

grapefrukt, to random
@grapefrukt@mastodon.social avatar

redid my webpage for the first time since 2015
https://grapefrukt.com/

benjaoming,
@benjaoming@social.data.coop avatar

@grapefrukt if you run your own webserver, you can put the logs into goaccess, it's a command line tool that generates reports in CLI or as HTML.

https://goaccess.io

stefan, to music
@stefan@stefanbohacek.online avatar

Another write-up on Steve Albini.

"[Albini's] rebellion against corporate labels was rooted in a deeply held philosophy: that every musician is a worker."

https://jacobin.com/2024/05/steve-albini-indie-rock-labor-nirvana/

benjaoming,
@benjaoming@social.data.coop avatar

@stefan I'm super-sad to hear that 💔 I didn't know Steve Albini had passed, it's so early, and such a life force. He's been an inspiration to me since... I dunno... I had just moved out from my parents when I got introduced to Shellac and things started moving fast from there.

benjaoming, (edited )
@benjaoming@social.data.coop avatar

@stefan turns out he wasn't very cool anyways... I didn't even know about this... https://medium.com/@MoonMetropolis/now-that-steve-albini-is-dead-lets-reflect-on-his-admitted-love-and-promotion-of-child-fadf5072288e

Edit: There's much more to the above story, which is written by an experienced right-wing internet troll

benjaoming,
@benjaoming@social.data.coop avatar

@stefan it seems there's a lot to it, sorry about just sharing the link like that, I'm still a bit shocked and trying to digest things. Seems I've shared a link to a post that doesn't say everything... and is written by a dubious person. There are some comments below it with more nuance.

benjaoming,
@benjaoming@social.data.coop avatar

@stefan "Goldberg was released from prison on April 1, 2024." 😖

benjaoming, to random
@benjaoming@social.data.coop avatar
cryptohagen, to random Danish
@cryptohagen@social.data.coop avatar

M$ has finally embraced security as a top priority.
.. great news for customers as the move will turbocharge competition between firms over which of them is most secure
https://news.risky.biz/microsoft-makes-security-the-new-black/?attribution_id=663c587324c4550001e39a7f&attribution_type=post

M$ also published a post from security head Charlie Bell
... would 'elevate' security and work to instil a security-first culture
https://www.microsoft.com/en-us/security/blog/2024/05/03/security-above-all-else-expanding-microsofts-secure-future-initiative/?ref=news.risky.biz

There is a whiff of marketing, but a good thing that companies are now competing on security rather than sweeping their failures under the carpet

benjaoming,
@benjaoming@social.data.coop avatar

@cryptohagen "turbocharge" - det lyder som marketing? og måske en reaktion på dette? https://www.theguardian.com/technology/2024/apr/03/microsoft-errors-security-chinese-hack

»The Cyber Safety Review Board, created in 2021 by executive order, describes shoddy cybersecurity practices, a lax corporate culture and a lack of sincerity about the company’s knowledge of the targeted breach«

aiefel, to random
@aiefel@mastodon.social avatar

deleted_by_author

  • Loading...
  • benjaoming,
    @benjaoming@social.data.coop avatar

    @aiefel it's horrible... those ideas are even very specific and planned out in a leaked policy proposal from October. Whether it's an implemented policy seems pretty much up to the observer by now.

    »Israeli Government Mulls 'Forcible, Permanent' Transfer of 2.2 Million Gaza Strip Residents to Egypt«

    https://thewire.in/world/israeli-government-population-transfer-gaza-strip

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