this post was submitted on 16 Jul 2024
667 points (97.8% liked)

Programmer Humor

32692 readers
529 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 39 comments
sorted by: hot top controversial new old
[–] [email protected] 24 points 5 months ago (2 children)

Apparently it’s really hard to get a progress bar right. It’s just kinda guessing, but some can be worse than others if coded carelessly, from what I’m reading.

[–] owsei 25 points 5 months ago (2 children)

While it's true that's a progess bar is guessing (since it doesn't know what would take more time in your computer). It should still finish when at 100%

[–] [email protected] 20 points 5 months ago

This. The guessing part comes from the time it takes to do the tasks, but you know the number of tasks. So a progress bar should only reach 100% when all the tasks are completed.

For example, you might have a big process that performs 3 other small tasks and then finishes. You could reasonably assume that each small task is 33% of the big process, so after the first finishes you get 33% progress, then 66% after the second and 100% after the third. When the bar reaches 100%, the third task has finished, so your process has finished too.

What you don't know is how much time each small task takes, so if the first task needs 20 seconds and the following tasks take just 5, you'll spend 2/3 of the time on the first 33% of the progress bar, and then the remaining 66% gets done in 1/3 of the time.

[–] [email protected] 2 points 5 months ago

IDK how I missed that :)

[–] [email protected] 18 points 5 months ago

Last week, I tried to install a BIOS update on my work laptop, but the UI didn't give me feedback, so I thought, maybe they locked down BIOS updates or something. I didn't actually try very hard and forgot about it.

This week, Monday morning, I couldn't log into my laptop anymore, for unrelated reasons apparently.
Only real thing I could try was a reboot. That would decide, if I had to go to the office to get support.

So, I trigger the reboot and a wild BIOS update appears. Step 1/6, 0%, let's fucking go.

And yeah, that shit took a while. I was scrolling through Lemmy or something on my phone, and saw out of the corner of my eye that it had reached 100%, then power cycled.
Finally, I thought. Nope. Step 2/6, 0%. Fuck me.

It took about half an hour in total, but I had never done a BIOS update on this laptop, and the last BIOS update on my previous work laptop ended up frying the hard drive, unrecoverably. So, that half hour felt like an eternity.

Thankfully, it eventually rebooted and everything worked, including the login.

[–] PoolloverNathan 13 points 5 months ago (1 children)
[–] [email protected] 5 points 5 months ago

1% for extra bloatware

[–] [email protected] 11 points 5 months ago (2 children)

Kann ich Sie für unseren Herrn und Erlöser, Linux, begeistern?

[–] [email protected] 6 points 5 months ago (1 children)

Und dann geht nach dem Kernelupdate Bluetooth nicht mehr xD

[–] [email protected] 8 points 5 months ago

Der Witz geht auf dich. Bluetooth hat unter Linux bei mir schon immer funktioniert, während egal-welcher-Treiber unter Windows keine Verbindung zustande bringt.

[–] [email protected] 2 points 5 months ago (2 children)

In Mint: Externen Monitor anschließen geht nur, nachdem man Treiber nachinstalliert hat. Zwischen externem Monitor und internem ist eine Lücke von geschätzt 800 Pixeln. Skalierung für jeden Bildschirm separat einstellen, geht gar nicht. Externe Lautsprecher brummen auf voller Lautstärke, wenn kein Ton abgespielt wird, was ich bisher nur nach Login und vor Logout reparieren konnte.

Ubuntu: WLAN geht nicht

Manjaro: Hier sind 500 Paket-Updates, finde selbst raus, wie du die Konflikte reparierst.

Solange so ein Krempel nicht „einfach funktioniert“, ist Linux kein Herr und Erlöser.

[–] [email protected] 3 points 5 months ago (1 children)

Also mein Bogen funktioniert einfach. Nach ein bisschen Konfiguration ist es auch Benutzer Tauglich. Und das dauert nicht mal länger, als Fenster ein zu richten und den unnötigen Krempel runter zu schmeißen. Andere wert geschätzte Nutzer wie @Peter_[email protected] werden dir dabei helfen.

[–] [email protected] 4 points 5 months ago (1 children)

Helfe gerne, bin von Fenster nach Bogen.

[–] [email protected] 2 points 5 months ago (1 children)

Bei mir hat sich abgesehen vom funktionierenden Installieren mancher Programme (DaVinciResolve) alles eingespielt.

[–] [email protected] 2 points 5 months ago

Ich bin gelegentlich noch dabei, neue Dienste aufzusetzen, eine geteilte Ablage für alle Geräte in meinem Netzwerk hin zu bekommen, sobald wir Glasfaser bekommen und ich meinen Zweitwohnsitz in Frankfurt habe muss ich dann sämtliche Netzwerke umgestalten:

  • Ein Servierer zu Hause, ein mal im Koaxialbasierten Netzwerk (1 GB hoch, 50 MB runter) meines Vaters, an der alten Fritz!Box 6660 Kabel, sowie meinem eigenen Glasfaser Netzwerk (1 GB hoch, 500 MB runter) , der Servierer dient als Brücke dazwischen.
  • Ein Servierer in Frankfurt an meinem Koaxialnetzwerk (1 GB runter, 50 MB hoch). Die beiden Servierer sind baugleich und mit Kabelwache verbunden, sodass ich auf alles gegenseitig zugreifen kann. Die Servierer sind dabei für die Zurückhochs zuständig.
[–] [email protected] 2 points 5 months ago

Bazzite: funktioniert einfach

Hatte mal Ubuntu probiert und war nicht Fan. Bin jetzt seit ein paar Monaten mit bazzite unterwegs und musste nur ein Mal das Terminal öffnen, weil die einen Fehler mit dem Schlüssel zur Authentifizierung der OS Versionen gemacht hatten und neue Updates einen anderen Schlüssel hatten oder so. Bin echt erstaunt, wie gut alles läuft.

[–] [email protected] 8 points 5 months ago (1 children)

same for PowerToys somehow. how the hell is it that slow in installing updates?

[–] [email protected] 13 points 5 months ago

Absolutely! Windows has every chance to download the update before the process starts, do whatever computing is required and then just swap files upon the next reboot. This shouldn’t take more than a few seconds on an SSD.

[–] [email protected] 7 points 5 months ago

obligatory 🐧

[–] [email protected] 4 points 5 months ago (1 children)
[–] [email protected] 7 points 5 months ago (1 children)

Infuriatingly long and badly communicated Windows update today, at work, which I wanted to install during the break, only to find that the laptop crashed midway and I still had to do the update when I came back.

[–] [email protected] 1 points 5 months ago

Second break!

[–] [email protected] 4 points 5 months ago

Oh yeah thats a hard reboot

[–] livingcoder 2 points 5 months ago

"Cleaning up..."

[–] [email protected] 1 points 5 months ago

Good old ReviOS paused windows updates until 2034 😁

[–] [email protected] -1 points 5 months ago (2 children)

Isn't her question supposed to be the same in both panels for this meme template?

[–] [email protected] 24 points 5 months ago

It isn't worded the same but the second pane just reaffirms the same question.

[–] [email protected] 11 points 5 months ago (1 children)

I consulted the Book of Memes, and I think you're right but I'm no lawyer.

[–] [email protected] 4 points 5 months ago (1 children)

I agree and I am a lawyer, but not a meme lawyer.

[–] [email protected] 2 points 5 months ago (1 children)

What kind of certifications do you need to be a meme lawyer?

[–] [email protected] 3 points 5 months ago (1 children)

You need to understand loss.

[–] [email protected] 2 points 5 months ago