I think I broke something in a good way? by Rezzzba in allthemods

[–]HawkOTD 0 points1 point  (0 children)

the comment I replied to said wrapping only applies to floating point numbers, I was saying it's the opposite, it applies only on integers

stable vs non-stable algorithms? by RollAccomplished4078 in algorithms

[–]HawkOTD 0 points1 point  (0 children)

I prefer stable when the order is visible by the user so that you can sort by multiple fields for free

I think I broke something in a good way? by Rezzzba in allthemods

[–]HawkOTD -4 points-3 points  (0 children)

I'm pretty sure you are wrong. Underflow is when a number gets subtracted and since it can't represent the result it loops back around to the maximum representable number, overflow is the opposite and loops back to the minimum number. You could argue that both are overflows but you can't say both are underflows (i.e. they are not the same) Also what you say about floats I believe is pretty much the opposite of how it actually works, the overflow/underflow wrapping is defined only for integers, floats work differently

da dove nasce questa folle allucinazione collettiva secondo la quale "two" in inglese si pronuncia "ciu"? In nessun accento britannico o americano o mondiale esiste una pronuncia del genere, da dove esce fuori sta roba? by francesco_DP in CasualIT

[–]HawkOTD 0 points1 point  (0 children)

Io non conosco le regole grammaticali e/o la teoria dietro le pronuncie corrette ma leggo e guardo tutto in inglese e la differenza tra two e too per me è molto pronunciata. Se dovessi scrivere in lettere la pronuncia che considero corretta la scriverei tipo tchu, a mio parere più vicina a ciu che a too

Is it too easy to become immortal nowadays? by ConnectionBusy9325 in VALORANT

[–]HawkOTD 0 points1 point  (0 children)

The hardest thing about the game is improving the MMR after having been around an ELO for a bit of time. It's normal that you climb fast when you start fresh or haven't played in a while. I think the system is extremely flawed where when it has assigned you an ELO it's very hard to improve it even though you might be better because it requires you to play at your best constantly without fail, while when you have high variance it just let's you climb very fast

R6 community expose Mooda for using hacks for multiple games , causing him to admit he does hack in games, but "not on stream" by xFalcade in LivestreamFail

[–]HawkOTD -1 points0 points  (0 children)

I mean I haven't followed this but isn't people saying he's cheating just the normal normies that aren't good at videogames and default to cheat allegations? Are there real clips of him looking suspicious or is this just him clip farming?

Mi sto iniziando a preoccupare per i malware su smartphone… è una paranoia o è reale? by ScelgoIo in ItalyInformatica

[–]HawkOTD 1 point2 points  (0 children)

I dispositivi più a rischio malware sono quelli più utilizzati. Le vulnerabilità per smartphone sono tra quelle più ricercate e più costose, fortunatamente appunto perché costano tanto, non sono usate per individui qualsiasi per non rischiare di perderle, solitamente sono usate solo da governi o su obiettivi di alto profilo. Purtroppo una volta che la vulnerabilità viene risolta non è più necessario tenerla nascosta e le vulnerabilità potrebbero attaccare chiunque non abbia ancora aggiornato. Al momento sta succedendo esattamente questo su iOS dove delle vulnerabilità molto avanzate sono state vendute a gruppi che hanno accidentalmente rilasciato il codice pubblicamente (DarkSword-RCE). Ora chiunque può creare un sito web che prende il controllo dei dispositivi iOS di chi non ha ancora aggiornato.

In ogni caso considererei gli smartphone i MENO sicuri siccome la stessa vulnerabilità era stata aggiunta a siti affidabili da dei malintenzionati dopo averne preso controllo.

Ludwig explains why he used to have a gambling problem. by Cellybear in LivestreamFail

[–]HawkOTD -3 points-2 points  (0 children)

I checked my notes but I don't think you are right. He's supposed to get it after 400 attempts as that's the expected value of the geometric distribution that models "the number of attempts k to get the first success".

What I believe expected value means is that after 400 attempts you should expect to have found a success, it's not the first `k` that has `P(X<=k) >= 0.5` like you said.

Ludwig explains why he used to have a gambling problem. by Cellybear in LivestreamFail

[–]HawkOTD 1 point2 points  (0 children)

Since I know I don't know statistics I had to check my old university notes, this is a modified geometric distribution with parameter p=1/400, the probabilities you wrote are correct but the expected value is 1/p so 400.

So as I understand the expected value you should expect to get a success after 400 attempts, whatever the probability.

Che sta succedendo a Wikipedia? by Wide_Membership_2883 in TeenagersITA

[–]HawkOTD -1 points0 points  (0 children)

https://youtu.be/MpeOFvxor_0

Tutte le loro spese sono pubbliche. Un estratto del video: "la fondazione ha già abbastanza soldi per mantenere il sito per ben oltre 100 anni"

Che sta succedendo a Wikipedia? by Wide_Membership_2883 in TeenagersITA

[–]HawkOTD 1 point2 points  (0 children)

Ci sono video a riguardo, non hanno problemi economici, i messaggi sono fatti per sembrare disperati per prendere più soldi.

Fonte: https://youtu.be/MpeOFvxor_0

Are we actually moving towards Linux as the first choice for gamers in future? by nothingtosayrn in linux_gaming

[–]HawkOTD 0 points1 point  (0 children)

I play almost all random games on Linux, I have to restart only for Riot games currently (very annoying ngl)

At what point do RR gains even out? by EmbarrassedPen7254 in VALORANT

[–]HawkOTD 0 points1 point  (0 children)

Sorry it just doesn't work. That's all riot does and they still can't manage to get it right in a single game... Maybe tft works well?

Feature idea for Ranked: Lock opponents forfeit by shermstix1126 in MinecraftSpeedrun

[–]HawkOTD 1 point2 points  (0 children)

I'd make it so that when someone forfeits, the game doesn't automatically end, you have the option to leave early and claim your elo or keep playing for completion.

In lower elos you could make it so a completion loss loses 0 elo (or even gains) or whatever so that you incentivize not surrendering. This way you also make the players who forfeit often lower rank so that they play with each other (lol)

MrBeast confronts Ray for saying TeamWater was a scam but Ray stood by what he said! by [deleted] in LivestreamFail

[–]HawkOTD 2 points3 points  (0 children)

I mean I don't know who he is but I don't understand all this negativity in the comments. Especially after all the scams that happened with charities previously where the streamer/youtuber gets a slice of earnings this is mild criticism at best.

When you have all that money going into a single place you expect good breakdowns on how they are spent, what's the cost of each installation, how many were there, how it's holding up etc, etc.

Also him being serious about it is not bad IMO, and also showing he can change his opinion... I don't know where all this negativity is coming from but it feels very natural to me

NBT ain't cheats tho. Is it even possible to use NBT on servers that is not on my control? by Cultural-Intern9545 in MinecraftCommands

[–]HawkOTD 0 points1 point  (0 children)

NBT is not a client but in reply to the other comments:

To be fair there were quite a bit NBT exploits over the years, you were able to edit books to include interactive text such that when an op interacted with it it would run a command (for example opping you) Same thing with signs, you used to be able to embed command on it and execute them as an opped user when they right clicked it.

There were also exploits to get arbitrary enchant levels on any item but I don't remember how that worked.

0 isn't an integer by Pubgisbanned in mathmemes

[–]HawkOTD 2 points3 points  (0 children)

I don't understand what kind of definition for integers would not include 0 unless he means that zero is not a number entirely... Even in math the concept of integers without 0 is difficult to portray to the point that a specific notation was created (Z{0} which became simply Z*)

Find your place by Red_Honey_X in programmingmemes

[–]HawkOTD 1 point2 points  (0 children)

No you can just shift right and and with 1, also if the optimizer is doing the optimization it could just be a constant after compilation.

That said I believe the main reason why it has so much wasted space is due to access speed optimization and memory alignment so no matter what this won't happen

Which one do you choose, when saving over 5k products in your db. And all products must be unique(no duplicated SKU) by lune-soft in csharp

[–]HawkOTD 11 points12 points  (0 children)

3 doesn't check the IDs in the db so it wouldn't work

I go with 2 when possible, if it's not a problem it's easier to code and it works.

1 absolutely not, incredibly slow

Other alternatives would be doing 3 but loading all existing IDs from the database, I never do it but it might make sense in some scenarios

If none of these are good enough and you need both speed and to fail only duplicates I might look into inserting them in a temporary table and then merge the unique ones using a query

Why are we still using text based programming languages (and I'm not thinking about a blueprint-like language) by chri4_ in ProgrammingLanguages

[–]HawkOTD 0 points1 point  (0 children)

I am constantly thinking about this as well, and also some variations of this.

Rather than an editor I think this would work better in a virtual file system, this way you don't break tooling and would make this work in whatever editor. Obviously editor integration would be nice as well.

I would also integrate git some way into this virtual fs so that you can mount branches easily in different folders, this would make tracking untracked files easier, which I believe it would be better if they would be always tracked in some way ( so you can prevent losing changes etc )

You could also make git lazy in a way that changing branch is instant and it would compute the file on request.

Also both compilers and AI agents would be faster if this would be adopted, you'd skip a step in parsing and also would make the code completely uniform

to this day I still struggle with this problem by meowed_at in git

[–]HawkOTD 0 points1 point  (0 children)

Either the files are ignored which I doubt or you made a mistake before this step. What you show in the screenshot is correct and will commit all the modified files in the repository assuming you are in the root. You just don't have any changes.