/dpt/ - Daily Programming Thread

"It's not the plan that matters, it's the planning"

What are you working on, Jow Forums?

Previous thread:

Attached: dont open this image with 7zip.png (315x320, 56K)

Other urls found in this thread:

ghostbin.com/paste/nzj8k
twitter.com/NSFWRedditImage

Could someone post the programming roll image? Thanks.

do we really need a third /dpt/?

This is the first time I've looked at one of these stupid anime images and said "hot"

welcome to the club

can't ever have too many of those

You have a long way to go now

>dont open this image with 7zip.png
What a coincidence, nothing happens. It's just a standard PNG file saved in paint.net. No GR17 violation here.

Is there any command to clear the screen in python?

os.system('cls') is not working

That depends what your screen is.
os.system("cls") is for the Windows terminal, it invokes the build-in CLS command of the command interpreter.

os.system("clear") is for Unix terminals. It requires the external clear command to know the specific control sequence to clear your terminal. The same thing can be done using the curses module, if available:
import curses
screen = curses.initscr()
screen.clear()
curses.endwin()
If that's not available, you can usually print("\x0c") to write the ^L escape sequence.

There's no standard way if you're running Python under some IDE that doesn't emulate a terminal (e.g. IDLE).

Finished up the code for Min-Max algorithm with TicTacToe. Tried compiling and got dozens of errors.

Attached: 1512552366390.jpg (793x786, 54K)

dumb frogposter

are you telling me you programmed something all in one go without compliing it and you consider that "finishing it up"

At least I did something, what have you done?
Finishing up meaning solving all my compile issues.

Attached: 1536018814125.gif (400x400, 1.64M)

trying to reverse engineer a wifi endoscope rn.

the ip is 192.168.1.1 and the only port i can spot in the decompiler output of the android app is 7070 but it does not reply to putty telnet mode or ncat. any tips?

ghostbin.com/paste/nzj8k

decompiler output of the functions in question

Attached: 1ce.jpg (225x225, 6K)

It is good to develop things more iteratively, making sure you have something buildable at a few steps along the way. When you have to fix a bunch of errors at the end, it's easy to accidentally introduce a bug or break the logic you originally tried to write.

But if the algorithm isn't particularly lengthy then doing it all in one go isn't bad.

what do you do when you feel programmer's block?

Attached: 1525603660461.png (1022x338, 383K)

Umm.. yes?
Why would you not want as many /dpt/s as possible?

Are schizos just humans whose brains are suffering from buffer overflow?

Attached: upload_2017-10-13_23-13-15.png (480x640, 526K)

angle deep into chronic loli futa addiction

Okay now add ab pruning then install gentoo