#offbyone — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #offbyone, aggregated by home.social.
-
#retrocomputing #vintagecomputing #search #searchengine #frogFind #offbyone #konqueror #kde
Catch of the Day: The 1MB Wonder! 💥💾
Hey Retro Fans!
The highlights of the day:
🪶 Off By One Browser: An absolute legend of minimalism visited us today. The Off By One Browser for Windows consists of a single standalone executable and is a tiny 1 megabyte in size. No bloated frameworks, no plugins – just pure, fast web browsing. It aligns perfectly with our philosophy!
🐉 Konqueror: The classic KDE file manager and web browser for Linux also stopped by. Just a reminder: This browser's engine (KHTML) was so groundbreaking back in the day that Apple used it as the foundation for Safari!
Whether it's tiny browser oddities or massive Amiga traffic – the Frog pond is buzzing. Keep it up!
Your FrogFind Team 🐸
-
Mielenkiintoinen bugi tuli vastaan eräässä palvelussa, jossa voi hakea juttuja viikkonumeron perusteella.
Järjestelmä näyttää käyttävän amerikkalaista sunnuntaista alkavan viikon kalenteria. Toiminut edelliset vuodet, mutta koska 1.1.2026 on torstai, on tänä vuonna kaikki viikkonumerot yhden pielessä. 🤦🏼♀️
-
Dear anyone who ever talks about probabilities, percentages, or voting,
Please stop describing a simple majority as, "[at least] 50% + 1." That description is incorrect whenever the total is an odd number. The correct description is, "more than 50%."
In case you didn't notice:
- In this context, it's implied that the answer has to be a whole number. There's no such thing as half a vote.
- The use of either "more than" or "at least," means you have to round up, not down. 5 is not at least 5.5, but 6 is.
- "More than" and "at least" mean different things. "4 is at least 4" is true, but "4 is more than 4" is false.
So for example, in a group of 21 people, "more than 50%" means "more than 10.5," which means "at least 11." Meanwhile, "at least 50% + 1" means "at least 10.5 + 1," which is "at least 11.5," which really means "at least 12."
Sincerely,
All of the world's programmers
-
I've been #programming (hobby and professional) since the late 70s (TRS-80 Model I Level II anyone?). Indexing vs subscripting and the dreaded and much feared #offbyone error still bites me in the ass.
My fault really. I don't need to be doing what I'm doing in C, I'm just a masochist.
My other #blindspot is inverting branch conditions in assembly language, even with the help of mnemonics instead of bit masks.
I got them crossed up in my head and can't uncross them. BNZ vs BZ! DOH!
-
CW: random, music, localization
Surely a day has two nights, so did the 21st night of september already happen or not in CEST? Requirements unclear.
#Time #OffByOne #OccupationalDeformation #Remember -
I’m Founder #1299. #offbyone #punk #postpunkhistory #postpunk
-
Must blame it on the rotten fence post.
I am not buying this excuse BTW.
-
As a mathematician who studied combinatorics, and now a software developer, my kryptonite is off-by-one errors. Also called fencepost errors. They are just deadly to me and I make them all the time.
We had some very severe storms this week, and so it was fitting that this was the major damage we sustained.
-
Bizarrely, I asked #ChatGPT to calculate how many days between two arbitrary dates. It was #OffByOne and when I challenged it, said, "I apologize for the mistake in my previous response. To calculate the number of days between today (March 10, 2023) and June 9, 2023, we can subtract the two dates. June 9, 2023 - March 10, 2023 = 91 days Therefore, there are 91 days between today and June 9, 2023.
See attached screenshot." Can't make this up. See the screenshot for the full exchange. -
@esther
(Thank you Esther!)If it looks like a duck and quacks like a duck but it needs batteries, you probably have the wrong abstraction.
If it STILL won't quack, you have at least one of the batteries in backwards.
#MurphysLaw #AdminsCount but #OffByOne happens more than once!
-
No, 2 years. Two.
Can’t blame the classic #offByOne bug this time 🫣
-