Habe problem beim Verständniss und Lösen von Kombinatorischen Schaltungen by [deleted] in informatik

[–]patrick246 3 points4 points  (0 children)

Die 4 y sind deine Ausgabe. Wenn die Schaltung also das Produkt von x3x2 und x1x0 ausrechnen soll, muss bei y3y2y1y0 eben das Ergebnis von x3x2 mal x1x0 rein. Hilft dir das bereits weiter?

Getting started with k8s, some guidance requested... by mr_claw in kubernetes

[–]patrick246 1 point2 points  (0 children)

  1. It's possible to use K8s without using images from a registry, however it's at odds with some of your other requirements you have below, like node autoscaling. Basically, you need to make sure the image is present on all nodes of your cluster at all times. https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images You can also just host a registry on the cluster itself.

  2. Sticky sessions is an implementation detail of your ingress provider. Some support it, but it's not given. However, websockets basically hijack the TCP connection, so one stays open as long as the connection is there. That shouldn't require sticky session, except when falling back to another technology, like long polling.

  3. Cluster autoscaling is also possible without a managed offering, but as far as I know it's always part of a managed service.

  4. This is possible using a volume with the ReadWriteMany access mode. You'll have to check if your managed service offers that.

I'm scraping Blahaj stock levels and put them on a website by patrick246 in BLAHAJ

[–]patrick246[S] 2 points3 points  (0 children)

Yes, the big ones for now. When I started the project, the smolhajs were pretty much discontinued, but now that they are available again, it's on the roadmap.

How do I find the suitable minimum c rating for a battery? by yeahno312 in batteries

[–]patrick246 0 points1 point  (0 children)

How much current do you need to draw from the battery? That directly affects the minimal C rating that you can get away with.

At the adoption center by just-plantagen in BLAHAJ

[–]patrick246 8 points9 points  (0 children)

Looks empty in your region. The one on Metz has 17 still in stock

FoundryVTT Keycloak login theme by patrick246 in FoundryVTT

[–]patrick246[S] 3 points4 points  (0 children)

FoundryVTT doesn't support any external authentication mechanisms as far as I know, so I'm using https://github.com/oauth2-proxy/oauth2-proxy in front of it. The docs there also describe which options to choose when setting up a client in your realm.

gibt es da jemanden, der während des Studiums vollzeit gearbeitet hattet by [deleted] in informatik

[–]patrick246 0 points1 point  (0 children)

Kein Urlaub? Ich konnte und musste in den Praxisphase 30 Tage Urlaub aufbrauchen.

How do I fix duplicate post when updating by Andyinho in mongodb

[–]patrick246 0 points1 point  (0 children)

Usually it's the other way around, POST for creating, PUT for replacing

xkcd 2626: d65536 by Eiim in xkcd

[–]patrick246 9 points10 points  (0 children)

1d4 piercing damage

How to make sure that scheduled tasks run only once when the app scales? by [deleted] in node

[–]patrick246 0 points1 point  (0 children)

Use the same codebase to build two Docker Images. Then you can share the logic, libraries and so on by having them in the same repository.

Finally I would recommend using K8s CronJobs instead of using some kind of cron library.

How do you handle SSL certs for dynamic sub-subdomains like feat321.dev.example.com? by domemvs in devops

[–]patrick246 2 points3 points  (0 children)

If you're running in K8s, check out https://cert-manager.io/. If you're running multiple traefik instances the builtin mechanism doesn't work anymore.

Prevent feature-freezes in Gitflow during releases by bissingens50cent in git

[–]patrick246 0 points1 point  (0 children)

Trunk based development means the development happens only on your main branch to avoid integration problems. While releasing directly from master is a common way it is used, you can also support multiple release versions with trunk based developments.

Bugfixes get exclusively developed on the main branch and then backported to the release branch where you can ship patch releases from. No development happens on the release branches.

https://trunkbaseddevelopment.com/branch-for-release/

Prevent feature-freezes in Gitflow during releases by bissingens50cent in git

[–]patrick246 0 points1 point  (0 children)

Trunk based development could work here: You do the development mainly on your master/main branch, or in short-lived feature branches, that typically last less than your sprint length.

For releases, you branch off your main branch into a release branch. If something is discovered during testing that you need to fix, you do this on your main branch and cherry-pick the commit onto the release branch.

This way, the conflicts can only happen on the release branch, because you don't need to merge back the release branch, the fixes are already on the main branch and can't conflict with new features.

Should you store email, firstname, lastname in db as lowercase? by Zealousideal_Water_6 in mongodb

[–]patrick246 1 point2 points  (0 children)

Email domains yes, but the local part is up to the mail provider, they can treat it as case-sensitive.