+ 1

Share your last problem in programming

Could you please remember your last problem in programming which you couldn't resolve for a while? But when you deal with it, you realized that it was kind of silly. Sometimes you can face such question in your getting job interview

15th Oct 2018, 9:12 PM
microBIG
microBIG - avatar
2 ответов
+ 7
I wanted to make a bot for a video game (League of Legends) that only took in screenshots and outputted clicks/keypresses. Just for fun. But for some reason, clicks wouldn't register. It should, but it doesn't. I even dug into some low level code and modified it. I sought help from a Python community, and was told by someone it was impossible, and that people spend their entire lives trying to simulate clicks/keypresses. (What!?) Turns out, all I had to do, no low level modifications or anything, was run the code as admin and it worked. So much for being a life long endeavor!
15th Oct 2018, 10:03 PM
Ahri Fox
Ahri Fox - avatar
+ 1
I was developing small client-server program in C using TCP sockets. Master was sending some values to the list of slaves from different hosts and get back calculated values in string contained slave's hostname, timestamp and data. Received data was displayed in master process. But I got only informational trash displayed. Couldn't deal with it for a few hours. Master wrote correct values in virtual channel. Clients read and wrote correct values in sockets as well. But I was confused with master's output. It turned out that I read incorrect amount of data from virtual channel. Just mixed up "sizeof" and "strlen" statements for char array in one place and couldn't notice that
15th Oct 2018, 9:28 PM
microBIG
microBIG - avatar