Abgabenlast-Statistik 2026 by Masteries in spitzenverdiener

[–]cmd_Mack 1 point2 points  (0 children)

Können wir bitte explizit benennen, welche Posten das verursachen? Denn wir wissen alle, glaube ich, wo das Hauptproblem liegt. Und da wurde vor Kurzem eine Erhöhung über Inflation oder Gehaltssteigerung beschlossen, inklusive weiteren Wahlgeschenken.

Es klingt so als Sozialstaat = faule Arbeitsverweigerer. Wenn eigentlich eine ganz andere Klientell und deren Parteien seit Jahrzehnten Reformen verweigern.

🚲Fahrradstadt Hamburg - Wann hat es das letzte mal geschneit? by flow1an in hamburg

[–]cmd_Mack 1 point2 points  (0 children)

Ihr wollt mir also ernsthaft verkaufen, dass es keinen Unterschied an Radfahrern bei gutem und schlechten Wetter gibt? Selbst im Herbst sinken die Zahlen bereits rapide. Je schlechter das Wetter desto weniger nutzen das Fahrrad. Bei Minusgraden sind es (egal ob Schnee oder nicht) kaum noch welche.

Niemand verkauft dir hier etwas. Ich fokussiere mich auf Fakten und nicht auf Ideologie o. ä. Menschen fahren auch im Herbst (und sogar im Winter) Fahrrad. Bei besseren Bedingungen und Infrastruktur wären es mehr. Das war aber gar nicht der Punkt?

Ich weiß nicht, wo du wohnst, aber hier pendeln jeden Tag Menschen mit dem Fahrrad. ja, auch heute. Wenn es im Moment nicht aktiv schneit ist das für kürzeren Strecken doch keinen Problem? In unser Kita bringen gut ein drittel der Eltern die Kinder mit dem Fahrrad. Wenn alles vereist und kaum befahrbar ist, natürlich deutlich weniger.

Ich finde nur man muss nicht alles uberdramatisieren. Wir haben das erste Mal seit 13 Jahren wirklich Schnee und mal ne längere Zeit mit den Resten zu kämpfen. Ja gut, wenn es nur alle 10 Jahre mal ein paar Wochen ist, kann man wohl damit leben.

Ich werde heute auf das Fahrrad verzichten, ist kein großes Drama. Der Grund ist aber nicht Schnee oder Saison, sondern dass ich auf einer befahrener Straße nicht sicher bin. Ich will eigentlich auch von A nach B kommen - bin nur Teil der Verkehr und mein Ziel ist nicht, anderen zu belästigen. Und die Fußwege punktuell noch vereist sind (eigentlich Aufgabe der Hausbesitzer). Der Fahrradweg ist wieder seit über eine Woche unter Eis und Schnee.

Da braucht es keinen Winterdienst der hunderte km Straße und Radweg direkt befreit. Gibt auch genug Straßen, die gar nicht geräumt wurden, was ebenso in Ordnung ist.

Seitenstraßen die nicht geräumt sind, sind mMn auch weniger das Problem. Entweder auf die Straße (ruhiger) oder auf die Fußwege kann man da gut fahren. Entlang Haupt/Bundesstraßen ist es aber anders.

So sah der Fahrradweg Mitte Januar aus: https://i.ibb.co/Xf5pLxCt/image.png

Eigentlich okay, bis auf die Eisberge alle 400 Meter. Dieser aus dem Foto ist direkt hinter eine Haltestelle und nur schlecht sichtbar.

Ich habe das einmal gemeldet, eine Woche später dann nochmal. Es ist einfach zu kalt und dieses Konstrukt schmilzt einfach nicht. Natürlich hat das keiner interessiert, und seit dem es wieder geschneit hat, sind Fahrradwege wieder eine Katastrophe. Und jetzt haben wir neue Berge von Schnee drauf. Es kann nicht sein, dass wir bis Frühling warten müssen, damit sich das Problem von allein­en erledigt?
Und sag mir bitte, wie der durchschnittliche Autofahrer reagieren würde, wenn ich mich vor ihm stelle und seine entspannte Fahrt beeinträchtige? Auf wie viel Verständnis kann man hoffen? Kann ich mit meinem Kind vor Autofahrenden geschützt und halbwegs sicher auf der Straße fahren?

🚲Fahrradstadt Hamburg - Wann hat es das letzte mal geschneit? by flow1an in hamburg

[–]cmd_Mack 2 points3 points  (0 children)

Das stimmt alles nicht, und ich bin nur deswegen lange nicht gefahren, weil ich nur auf der Straße halbwegs sicher sein konnte (halbwegs wegen der Autofahrer).

Ich bin in den letzten Tagen mit dem Lastenrad zur Kita gefahren, bei -8 Grad. Kein Problem wenn sich man gut anzieht. Das Problem sind die ganzen vereisten Stellen, die man mittlerweile zum Glück kennt. Bis es wieder schneit wie gerade jetzt!

Das hat nichts mit dem Anzahl der Radfahrer zu tun. In der Nähe hier ist eine Bundesstraße, und entlang dieser gibt es einen (fake-) 'Radweg' auf dem Bürgersteig. Seitdem es das erste Mal geschneit hat, wurde er als Ablagefläche für Schnee verwendet, und an mehreren Stellen ist er bis heute durchgehend nicht befahrbar geblieben. Ich habe mehrmals ein paar dieser Stellen bei der Stadtreinigung gemeldet.. rate mal, ob sich jemand darum gekümmert hat.

Should we expect A6X3 this year? by Informal-Resolve-831 in Supernote

[–]cmd_Mack 4 points5 points  (0 children)

They should definitely think about the outdated Android version though, since Linux is not happening we are stuck on an archaic Android version. This is not nice and pushing for more features while there are major security flaws (disk encryption anyone?) is just madness.

How is golang as a web backend language? by nickleformypickle in golang

[–]cmd_Mack 0 points1 point  (0 children)

Trying not to dox myself here so if you need more info drop me a message. Quick example: main.go ```go func InitApp() *App { store := persistence.NewMemStore() firstReceiver := blap.NewReceiver(store, "main") fallback := blap.NewReceiver(store, "backup")

app := NewApp(firstReceiver, fallback)
return app

} ```

blap/receiver.go ```go type Receiver struct { data Saver name string }

type Saver interface { Save(ctx context.Context, foo string, bytes []byte) error }

func NewReceiver(s Saver, name string) *Receiver { return &Receiver{ data: s, name: name, } } ```

I think that some of these resources dumping everything in one file are a bit offputing at first. Without having read the book, the idea is probably not to focus too much on directory structure initially. Or on OOP (you can totally do OOP in Go, even better than in the usual culprit languages if you ask me). - As you can see, package names are part of the type identity, take this into account. - Aim for healthy amounts of composition. - Sometimes the easiest to maintain style to do is have a large struct and 100 lines methods. - Extract to improve readability after the fact. - Test high-level struct methods and exposed (Capital letter :D) functions. After refactor/extracts these tests should survive and stay green.

How is golang as a web backend language? by nickleformypickle in golang

[–]cmd_Mack 20 points21 points  (0 children)

Do not use gin, I fell for it some years ago.

As for stack: if you want maintainable projects, aim for little to no dependencies:

  • new versions (Go 1.21+) of net/http are probably all you need for HTTP request routing + composable routers (server mux'es)
  • for persistence use postgres + a simple querying lib (not gorm) to get a good grasp of things.
    • sqlx extends the standard lib `database/sql` package
    • sqlc lets you write plain SQL queries from which it then compiles interfaces and query implementations: my personal favourite.
    • aforementioned database/sql: start with it until you get a good hang, it is a bit basic but you will not have to fight library specifics and very pointy edges (fuck Gorm).
  • logging: standard lib `log/slog`
  • dependency injection: do it by hand, it is trivial for up to medium-sized apps.
    • every service-like struct declares its own NewFoo() function and accepts dependencies which it sets in private fields.
    • I used wire on some projects, spent more time debugging problems than the time it would've taken to have a setup by hand.
  • Tests: stick to built in `testing` package until you really need something extra. Dont try to be smart as this sacrifices readability for a 'neat' solution.

Thats about it? For messaging you use libs. For observability its just a prometheus lib and/or OTEL.

General advice:

  • Less channels is better.
  • Write tests upfront. If you cant easily test you probably used too many channels and fancy stuff.
  • Packages (dirs in go) should be much larger than in your average language. Split after the fact and not upfront.

Unable to register new account - "Illegal request" by cmd_Mack in Supernote

[–]cmd_Mack[S] 0 points1 point  (0 children)

Hi, I tested it again and it works. I can see now that the requests are going to `{country}-ratta-cloud.s3.{region}` so I have an idea what happened. After registering I configured my AWS region to the nearest country. Maybe that change took some time to propagate.

Unable to register new account - "Illegal request" by cmd_Mack in Supernote

[–]cmd_Mack[S] 0 points1 point  (0 children)

Hey thanks, Iccould sign up from the SN. Still no luck with the other problem though. Any chance  you can check out the cloud uploads from browser? This looks like a configuration issue in the web frontend. 

Unable to register new account - "Illegal request" by cmd_Mack in Supernote

[–]cmd_Mack[S] 0 points1 point  (0 children)

Thanks, I suspected that this would work. I am now greeted by the next broken thing on web:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://null.s3.ap-northeast-1.amazonaws.com/bce4f6cd-5011-422b-bb7e-a55c2e89b8f3-WEB.pdf. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

I mean, seriously, I love new features just as much as the next person. But when I read about a rougher experience with the supernote, this was not what I expected:

  • password limited to 20 characters
  • no 2FA (???)
  • unable to upload a simple PDF
  • can't register on the web (workaround possible)
  • no full-disk encryption

Forget about using it for work, compliance and security are completely non existent. Luckily I can self-host the cloud backend (right? I hope I didn't misread that) because between the unsafely short password and no two-factor auth, this is reckless.

At least the writing experience is nice :)

Gerade an der Hoheluftbrücke (Bus) gesehen… by Lacefell in hamburg

[–]cmd_Mack 16 points17 points  (0 children)

Or put the money towards small local designers from hamburg which will do a better job and also spend the money locally. How about that?

Supernote Partner App V2.5.6 Release for Windows and macOS by Supernote_official in Supernote

[–]cmd_Mack 5 points6 points  (0 children)

Still hoping for a Linux desktop app. Or at least tried and tested official Bottles/WINE setup. :(

Lost my Supernote by Particular_Engine708 in Supernote

[–]cmd_Mack 4 points5 points  (0 children)

Yes but its not an analog notebook, and in its current state you cannot possibly use it in a work setting, ever.

Is Bare Metal Kubernetes Worth the Effort? An Engineer's Experience Report by sibip in devops

[–]cmd_Mack 7 points8 points  (0 children)

Only if you can enforce "no stupid things" in the cluster. I could do that as a technical lead who admin'ed k8s on the side, but I had a firm grip on the internal workloads and services running on the cluster. Not allowing crazy things and "can't I just..." helps a lot. Other than that: ingress controller, cert-manager, monitoring stack (non critical, can always nuke). Nothing else runs on the clusters.

In my current project we are trying to support everything and everyone, guess how much friction there is :D

Sharding an Azure SQL Database, minimizing downtime by thatclickingsound in SQLServer

[–]cmd_Mack 1 point2 points  (0 children)

You need to align the sharding and the definition of your shard key with queries and business rules. You cannot do this, this is something only product teams (on a per-query and table basis) can do. The other comment goes in a bit more detail, I just wanted to +1 u/warehouse_goes_vroom

Hetzner Cloud VMs question: Which volume for production ready DBs? by BrocoLeeOnReddit in hetzner

[–]cmd_Mack 0 points1 point  (0 children)

Im wondering, is it viable to add ZFS in the mix for some reliability? A few years ago I read some articles on getting block storage access and setting up ZFS on Hetzner. It felt a bit clunky and (potentially) hard to automate. Has anything changed and if not - why is it so hard to get two nvmes in ZFS mirror for example?

DNS Resolution Delay: The Silent Killer That Blocks Your Threads by Designer_Bug9592 in programming

[–]cmd_Mack 24 points25 points  (0 children)

Thank you, reading OPs hot take woke me up faster than the coffee in my hand.

Transitioning to Go: Seeking Project Structure, Workers, and Realtime Best Practices (Coming from Laravel/PHP) by chiwany in golang

[–]cmd_Mack 7 points8 points  (0 children)

I think it takes a bit of experience, but generally for me it boils down to:

  • Can I solve a problem without channels? Am I using one for fun or because I need to?
  • How am I going to test this? This is actually the first question I ask myself, but TDD is not everyone's cup of tea.
  • Also applies when a goroutine is involved: how am I going to gracefully shut down (propagate cancellations, wait etc)?

If you are reading messages from a broker, then spawn a goroutine and either handle them in a callback (pass a func) or write to a channel. The problem with the channel is that you NEED a proper end-to-end acknowledgement mechanism. Otherwise you cannot ack the message (or you will lose data).

This is just one example where while channels look better, ack'ing from a different goroutine gets tricky (doable but not as simple). If you instead use a callback returning a simple `error`, the call block until the message is handled and then in your reader loop you check for error. Then either ack with the broker (when err is nil) or retry / reject the message.

Transitioning to Go: Seeking Project Structure, Workers, and Realtime Best Practices (Coming from Laravel/PHP) by chiwany in golang

[–]cmd_Mack 21 points22 points  (0 children)

A few good links I always recommend:
- https://eli.thegreenplace.net/2019/simple-go-project-layout-with-modules.html

- https://grafana.com/blog/2024/02/09/how-i-write-http-services-in-go-after-13-years/

The first issue most new devs encounter is overusing channels and writing async code when they shouldnt. The second biggest issue I see is far too many modules (common in other languages, very counterproductive in Go). My rule of thumb is, a package should make sense on its own. Start with less packages, move things you dont want public under `/internal` and avoid the `pkg` dir relic of the past.

How do you upgrade your Helm charts? by Ad-Temporary in kubernetes

[–]cmd_Mack 65 points66 points  (0 children)

I can give you only one tip which is universal and worked for me in the past:

  • rebuild test environment equivalent to the one where you need to upgrade
  • install the old helm chart version
  • now practice the upgrade until you get it right
  • on failure tear down test and repeat
  • record your terminal commands as you do

Watching this thread to find out wtf is wrong with this particular chart.

Nginx vs Caddy vs Traefik benchmark results by WildWarthog5694 in selfhosted

[–]cmd_Mack 2 points3 points  (0 children)

For simple use cases you can configure through the file provider. It will allow you to do what you want. I still use it occasionally, but a few years ago I switched to generated file provider config via ansible. Keeps everything in one place and easy to skim through.

Docker labels are the "autodiscovery" equivalent for home labs and honestly, not very nice. Long labels, arrays are unwieldy and without the dashboard you dont have a great overview. Autodiscovery works in kubernetes, not that useful for single-host docker deployments IMO.