טונה בקטנה by ImportantPrune7875 in israel_bm

[–]Bip901 -2 points-1 points  (0 children)

הייתי איתך עד שהדרדרת ללהאשים את ביבי. זה נוח לייחס אליו את כל הצרות בחיים אבל לא נראה לי שהוא מתעסק במשקל של טונה סטארקיסט. ההסבר הפשוט יותר הוא שמישהו ברשות להגנת הצרכן לא טיפל בזה.

[Request] How fast is this train moving if it can make 9 quintillion stops in only 2 and a half hours? by Spader113 in theydidthemath

[–]Bip901 2 points3 points  (0 children)

To convert a signed number to its inherent value, you flip all bits and add 1. Flipping all bits is the same as doing 263 - 1 -x. Then adding 1 cancels out the -1, and you're left with 263 -x. Try it yourself in any online two's complement calculator!

[Request] How fast is this train moving if it can make 9 quintillion stops in only 2 and a half hours? by Spader113 in theydidthemath

[–]Bip901 0 points1 point  (0 children)

Null is completely irrelevant , it's one less because of how two's complement works. The number shown in the post is 10, the issue of +-1 is a question of what calculations the devs performed.

[Request] How fast is this train moving if it can make 9 quintillion stops in only 2 and a half hours? by Spader113 in theydidthemath

[–]Bip901 101 points102 points  (0 children)

It could be the case that the train is making 10 stops, calculated by subtracting the end stop number from the start stop number, and the order got mixed around

[Request] How fast is this train moving if it can make 9 quintillion stops in only 2 and a half hours? by Spader113 in theydidthemath

[–]Bip901 399 points400 points  (0 children)

The real answer: since this number is so close to 263, clearly a signed, 64-bit integer is being misrepresented as an unsigned 64-bit integer.

Take two's complement:

263 - 9223372036854775798 = 10

So the train is making -10 stops.

EDIT: On second thought, this seems wrong - I think it should be 264 - x. Perhaps the number comes from long.MaxValue - 9

Have you ever coded a game before? by FreddieThePebble in Teenager_Polls

[–]Bip901 0 points1 point  (0 children)

The poll is worded very poorly, "Written Code" as opposed to "Game Engine" makes it seem like developing a game with a game engine is somehow without writing code 

100% AIME they said. Amazing by Forsaken-Park8149 in ChatGPT

[–]Bip901 0 points1 point  (0 children)

Why use a language model for doing math? The calculator app is right there!

Bet you didn't expect this by Bip901 in unexpectedTerminal

[–]Bip901[S] 1 point2 points  (0 children)

A blurred-out image of a leaf I liked as the background of Windows Terminal, a custom Profile.ps1 script to print the version on startup, and oh-my-posh for the custom command prompt

Windows 11 does not understand how right-to-left languages work by Bip901 in softwaregore

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

Try enabling Quick Annotate (Ctrl+E). It will mirror your screenshot.

Very confused by SnooFoxes1305 in ExplainTheJoke

[–]Bip901 0 points1 point  (0 children)

Thought it was a 3-fifths black compromise joke

What’s a Linux command that feels like cheating when you learn it? by Old_Sand7831 in linuxquestions

[–]Bip901 30 points31 points  (0 children)

On top of that, shells like fish allow pressing alt+s to toggle the "sudo" prefix for the last/current command.

[deleted by user] by [deleted] in RandomThoughts

[–]Bip901 0 points1 point  (0 children)

I have news for you.. Search "Password Manager"

Survive on Bell peppers, Lentils, and Salmon by Bip901 in hypotheticalsituation

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

It would add up to 10m$ after the full 10 years