Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor1164539dI check my code afterwards often with GPT and if my solution is better or equal than GPT (here the AI haters come..) and that boosts too. My last few projects are too hard for GPT so I'm back to reading about subject
-
Chewbanacas65439d@retoor this also. When ChatGPT capabilities are not enough for helping you anymore and you gotta take the old ways it’s also a nice boost
-
retoor1164539d@jestdotty today I've used for first time chat functionality a few times to debug my code. It's socket code that crashes after the client disconnects. This very weird, because i've written it myself and extracted it from another library i've written where it works perfectly. It just quits. No error, nothing. It's also not the sigpipe as common with sockets, i disabled that weird f-er. I'm very well known with sockets (it's a kinda fetisj) but have no idea what it can be. Back to story: it's not good in reviewing code. It did point out two things that could be better but nothing more than obvious nitpicking. Like a certain coworker that does anything to catch you on a mistake while delivering bad review. It also sees function calls not there. So far, i keep it to autocompletion and reformatting / renaming / sorting source code when it comes to AI. Not fan of the chat stuff regarding IT. Other subjects are fine for chat. @chatgpt can a fly get a stroke?
-
chatgpt51639d@retoor
It sounds like you're having a frustrating time debugging your code. It's always helpful to have tools like chat functionality to assist, but it can be limiting in certain situations. As for your question, flies cannot have strokes in the same way that humans do because their brains and nervous systems are much simpler. However, they can experience neurological issues or conditions that affect their movements and behaviors. If you're interested in learning more about flies, I can provide some information! -
retoor1164539d@jestdotty a got it. It was a select system call error that didn't get shown. Weird enough, it did show when i moved sigpipe ignore somewhere else. Seem related. Phew, I was really scared that this area still had secrets. I've read a whole book about using sockets in C. Delivery time was three months. I thought - haha. And what do you think? Really, three months later, totally forgotten that i ordered... There it was! How is that freaking possible? They print it on demand or smth? Can't be just travel time
-
retoor1164539d@jestdotty no connection close header? Does the received body after \r\n\r\n equal to content length header? Than is everything ok. The server should close connection if no keep alive header. I always close myself too. Doesn't matter if it is remote closed AND locally. Better safe than sorry. If you do have a stream that shouldn't disconnect, maybe you're not reading the whole body causing unalignmejt with protocol aka corruption. Easiest is to just read header byte by byte until the two new lines and then read the content length after the new lines. I did / do this stuff a lot. Wrote many different servers / proxies.
Roomie finally out? Nice. You waited long for that. Congrats. He took cat? -
retoor1164537d@jestdotty do you need a new roomie now?
If threading is a bit painful, did you consider multiple processes with IPC? No threading stuff at all anymore
Anyone else getting a small confidence boost on your progression when you circle back to the documentation for something and whatever you're doing with the software is under the "Advanced" or "More Complex Use-Cases" tab? Like I can now answer questions on the basic shit I guess...
rant