BlueKey@fedia.iotoGames@lemmy.world•DOOM can now run on a quantum computer with Quandoom port — seminal FPS blood and gore mixed with spooky action
35·
2 months agoPorting Doom to run in real life.
Moin
Porting Doom to run in real life.
It wasn’t :D
See my comments below.
I’m new to Go and wanted to copy some text-data from a stream into the outputstream of the HTTP response.
I was copying the data to and from a []byte with a single Read() and Write() call and expexted everything to be copied as the buffer is always the size of the while data.
Turns out Read() sometimes fills the whole buffer and sometimes don’t.
Now I’m using io.Copy().
Turned out that the bug ocurred randomly. The first tries I just had the “luck” that it only happened when the breakpoints were on.
Fixed it by now btw.
And then the quick hack gets a permanent solution and the next employee has to fight trough the spagetti.
Thats why ones password DB should also be saved encrypted one one or two external drives.