News for hackers. Stuff that matters.
Re:Asking ChatGPT to write my security-sensitive code for me by timonoko on Saturday January 07, 2023 @02:17PM (#34291556)
ChatGPT knew exactly how to have image icons on micropython usocket server. Could not find ANY comprehensible explanations for this with Google.

in HTML:

   <a href=Button> <img scr=Button.png> </a>
and in Python:

    with open("Button.png", 'rb') as f:
                img_data = f.read()
    headers = "HTTP/1.1 200OK\nContent-Type: image/png\n\n"
    conn.send(headers)
    conn.sendall(img_data)
Annoying and creepy are all those people who know almost nothing about the subject, but want to insert their best guess anyway.

There are no comments on this comment yet.