Category: Coding

Coding

Python Networking | Super Beginner Series | Simple Server and Client – “Hello World”

I am more into web development but out of boredom decided to dabble into networking… okay let’s see what I have learned so far. Networking  2018-05-12 10:56:17 AM [sourcecode lang=”python”] #file name -> s.py (sorry I am not that creative!) #server import socket target_host = "localhost" target_port = 9999 #create server socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) […]

Coding

Useful MySQL Queries for a Beginner like me: SELECT

I am at the moment learning a lot about MySQL by reading the book, Learning MySQL and I thought providing a list of queries could help beginners like myself. Different ways to select databases, tables, rows and columns in MySQL Do note, I will be updating the list occasionally. So if this list seems incomplete, you […]

Coding

Python Learning: Automate Boring Stuff with Python | Chapter 15: Scheduled Web Comic Downloader

Book The world is indeed comic, but the joke is on mankind. H. P. Lovecraft true.. true.. 6:23:15 PM I made different functions to handle a specific (one) task; Division of labor [sourcecode language=”python”]</p> <p>#usage python download_lefthand_comic.py<br> import logging, os, requests, bs4,time, re</p> <p>logging.basicConfig(level=logging.DEBUG, format="%(asctime)s – %(levelname)s – %(message)s")</p> <p>comic_directory = os.path.join("c:\\", "comicbooks", "lefthandedtoons")<br> comic_directory = […]