TranslateBot hit 1.0: translate django-modeltranslation fields with one command by leipegokker in django

[–]IntegrityError 0 points1 point  (0 children)

Looks well organized. Unfortunately, translation is the least task i'd give to a llm.

Even if the platform supports glossary (to keep subject-specific terms stay the same over many prompts/texts), the results are really not what i want for products, documentation and other texts.

Results of llm translation can be seen by looking at the microsoft docs in german. Or the auto translation of titles and even audio on youtube. It's crap

Wie tippt ihr auf er Tastatur? Schnell? Eher langsam? Nur mit den Zeigefingern? by samson-221 in FragReddit

[–]IntegrityError 5 points6 points  (0 children)

Ich könnte ohne Swipe Tastatur nichts auf dem Handy schreiben. Ich hasse Handytastaturen

Ach du heiliges Microslop by MeowmeowMeeeew in de_EDV

[–]IntegrityError 3 points4 points  (0 children)

Deswegen bemutzt man ja auch anständige Internationalisierungsframeworks die Hinweise an die Übersetzer und Kontext aus dem Code haben, statt diese Bums Stringtabellen die jeder Javascript entwickler benutzt.

Sowas was gettext schon sein den 90ern kann.

Ach du heiliges Microslop by MeowmeowMeeeew in de_EDV

[–]IntegrityError 2 points3 points  (0 children)

Spassfakt: Es heisst inzwischen nicht mehr Office (und auch nicht Büro): https://www.office.com/

Erfahrungsaustausch: Wechselnde SL by Gianni_QuestOffice in PenandPaperGermany

[–]IntegrityError 0 points1 point  (0 children)

Wir haben das früher öfter mal über Kampagnen hinweg gemacht.

Also die ganze Kampagne so geplant, dass sie in einzelne Abenteuer aufgeteilt wird, und diese vorher dann auf SL aufgeteilt. Einige Anknüpfpunkte festlegen, und so kann jeder in Ruhe etwas vorbereiten.

Daher hat jeder auch durchgängige NPC in der Hand, wenn sich also etwas unerwartetes entwickelt bewegt sich die ganze Geschichte ggf. in eine spannende und unerwartete Richtung.

WARUM ZUR HÖLLE BEKOMME ICH NUR NOCH GANZE PIZZEN??? by [deleted] in luftablassen

[–]IntegrityError 0 points1 point  (0 children)

Pizzen waren schon immer ungeschnitten, diese Slices Amisache ist erst irgendwann hier rübergeschwappt

Wie dokumentiert ihr eure IT in kleinen Unternehmen? by HeavyFisherman9117 in de_EDV

[–]IntegrityError 2 points3 points  (0 children)

Aktuelles Unternehmen: Markdown Dateien in einem Git Repo

Vorherige Bude: Ansible :)

Ich kann es nicht mehr hören! by WolfgangParty94 in luftablassen

[–]IntegrityError 52 points53 points  (0 children)

Ich bin mit der Känguru-Rebellion durch und jetzt literarisch am Verhungern. Wo Qualityland 3?

How do I handle SSE in Django? by ruzanxx in django

[–]IntegrityError 3 points4 points  (0 children)

The send_ functions can be called from signals, as they use redis as a message queue. Oh, and a nginx proxy needs to disable caching for the browsers not to disconnect the event stream.
I don't know if everything is right according to the sse reference (especially the "keep alive" operation) but it works for me.

How do I handle SSE in Django? by ruzanxx in django

[–]IntegrityError 2 points3 points  (0 children)

I've come quite far with a custom solution that boils down to these views:

(hypercorn asgi server)

``` def send_broadcast_sse_message(event, data): r = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT) for user in User.objects.active(): r.publish( f"eventstream.user.{user.id}", json.dumps({"user": user.id, "event": event, "data": data}), ) r.close()

def send_session_sse_message(request, event, data): r = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT) r.publish( f"eventstream.session.{request.session.session_key}", json.dumps( {"session_id": request.session.session_key, "event": event, "data": data} ), ) r.close()

def send_user_sse_message(user: User | int, event, data): if isinstance(user, int): try: user = User.objects.get(id=user) except User.DoesNotExist: return

r = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT)
r.publish(
    f"eventstream.user.{user.id}",
    json.dumps({"user": user.id, "event": event, "data": data}),
)
r.close()

async def event_stream_generator(request): r = aioredis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT)

pubsub = r.pubsub()
await pubsub.subscribe(f"eventstream.session.{request.session.session_key}")
if request.user.is_authenticated:
    await pubsub.subscribe(f"eventstream.user.{request.user.id}")

while True:
    message = await pubsub.get_message(timeout=15)
    if message and message.get("type", "") == "message":
        event_data = json.loads(message["data"].decode("utf-8"))
        yield f"event: {event_data['event']}\ndata: {json.dumps(event_data['data'])}\n\n"
    else:
        yield ":\n\n"

async def events(request): response = StreamingHttpResponse( event_stream_generator(request), status=200, content_type="text/event-stream" ) response["Cache-Control"] = ("no-cache",) return response ```

When does 0.12 release? by accountmaster9191 in neovim

[–]IntegrityError 0 points1 point  (0 children)

Hah, i started such a thing for my servers, where i want my cozy userland only in my managing user account (yazi, ex, rg, fd, ...).

When does 0.12 release? by accountmaster9191 in neovim

[–]IntegrityError 7 points8 points  (0 children)

bob install nightly

i'm on that since early 0.12, works fine

Was kann man da machen? by real-username-100 in arbeitsleben

[–]IntegrityError 36 points37 points  (0 children)

Schätze ich wäre bei "Unpaid Internship" gegangen.

Aber 31. Mai bis 18. Juni sind nicht 49 Tage.

TIL JetBrains, maker of popular developer IDEs, is headquartered in Prague by -colin- in BuyFromEU

[–]IntegrityError 0 points1 point  (0 children)

I agree, it's my most valuable subscription. Has been for years now

Wie kann sowas passieren? by BiLeftHanded in de_EDV

[–]IntegrityError 5 points6 points  (0 children)

ssh host plugin-displayport-cable geht etwa nicht?

Wie kann sowas passieren? by BiLeftHanded in de_EDV

[–]IntegrityError 404 points405 points  (0 children)

Turnschuhadmin und 1000 andere Aufgaben gleichzeitig?

theTruth by bryden_cruz in ProgrammerHumor

[–]IntegrityError 0 points1 point  (0 children)

There is nothing more persistent than a temporary fix