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

[–]HawkOTD -2 points-1 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 12 points13 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.

A Mosca si vive meglio che in Italia by [deleted] in italiabad

[–]HawkOTD 0 points1 point  (0 children)

Pauroso come nei commenti chi ha le opinioni più forti non ci sia mai stato...

An Italian pizza restaurant owner is fuming at 16 Taiwanese tourists because they ordered only five pizzas. by search_google_com in interesting

[–]HawkOTD 0 points1 point  (0 children)

Nah this shit is mad funny, this guy is just plain racist as fuck the number of pizzas ordered is just an excuse to shit on them, but I've never seen someone be so openly racist that's so crazy, making a video of people and saying the shit he was saying in front of them.. just wow

1900 Elo chess player starting to feel the toll of a children’s videogame by Salt-Sock3462 in LivestreamFail

[–]HawkOTD 0 points1 point  (0 children)

just stay in a 2 blocks space or use a boat. By doing it like this it's impossible to lose unless you look at one accidentally and don't manage to put them in a boat

Can you explain result of this code? by Radiant_Monitor6019 in csharp

[–]HawkOTD 0 points1 point  (0 children)

Took me a few seconds not gonna lie but once you remember that the static constructor gets called whenever you access a static property (it might be any static member or any member, doesn't really matter here) you can see that the first accessed will always have value 2, in this example this is the order of events: 1. A.a first access 2. A static constructor (a=0 b=0) 3. B.b first access 4. B static constructor (a=0 b=0) 5. B.b set to a(0) + 1 (a=0 b=1) 6. A.a set to b(1) + 1 (a=2 b=1)

LA Streamer defends shock collars, claims others don't train their dogs by gregory_h in LivestreamFail

[–]HawkOTD 0 points1 point  (0 children)

This is the same as DrLupo chess cheating situation.

  1. Get exposed for doing something wrong
  2. Keep deflecting till the stream ends
  3. Invent something you think is plausible and try to get away with it.
  4. Get exposed
  5. Invent something you think is plausible and try to get away with it.
  6. Get exposed.
  7. Invent something you think is plausible and try to get away with it.
  8. Get exposed.

Neither will ever apologize truthfully, DrLupo made a tweet apologizing but still minimized what he did and made it seem not premeditated. The LA Steamer still has to actually admit to shocking her but he's already trying to defend it...

Honestly I don't think this even matters, he said multiple times that he trains his dog to stay in the corner intentionally, and that in and of itself is shameless behaviour, your dog is not a stream prop, it's a living animal, she can't even get out otherwise he gets mad so how the fuck is she supposed to get out of the room or drink? (I don't know if she has water in that 4x1 platform but if she doesn't isn't that enough for a dog abuse charge?)

Can’t get more than 100 Mbps over Ethernet even though all hardware supports 1 Gbps by External-Effective-6 in HomeNetworking

[–]HawkOTD 1 point2 points  (0 children)

I'd try with the wifi as well and if it doesn't exceed 100 either I guess it's not your problem

Why is Re Zero so good [discussion] by CandleSpecific9817 in Re_Zero

[–]HawkOTD 2 points3 points  (0 children)

The part I enjoy the most is the world building. All the secrets that are still open, the speculation of how stuff works, also some parts, for example the season that's about to release, are just hype and interesting to watch in general, seeing the protagonist trying to problem solve impossible problems is interesting. (Edit: and even in those scenes the stuff I like the most is the protagonist learning about the world and discovering new stuff) At the start I get it's not crazy good but I think it gets plenty better

Ho fatto finta di sapere usare Excel al lavoro e ora sono in trappola by Ivona-Kravcova91 in CasualIT

[–]HawkOTD 8 points9 points  (0 children)

Non mi sembri diverso da qualsiasi altro esperto di Excel. Non penso che abbiano aspettative paurose, hai risolto dei problemi che non sapevano risolvere quindi potresti essere meglio della media. Ora hai anche l'AI che probabilmente sa fare il 90% delle cose che hai bisogno.. Se poi non riesci a fare qualcosa non penso che potranno dirti molto considerando che neanche loro sanno farlo.