Category: Python

Code Snippet: mysql_fetch_assoc in Python

Unfortunately the mySQL connector library for Python has no function like mysql_fetch_assoc known from PHP where you can fetch data from the database into an associative array. I needed that function for one of my actual projects, so I decided to write it on my own and share it, so that it maybe helps someone […]


Continue reading »

Code Snippet: Getting variables in python with a defined size of bits

For a new project I needed to do some low level programming in python in which I needed data types with a defined size of bits. Normally python organizes the size of your variables, so that you cannot make your variable a defined 8bit , 16bit, 24bit, etc. integer, but with some bitwise operations you […]


Continue reading »

Code Snippet: Keep Alive check for servers

When you want to test out if your webserver configuration currently is supporting Keep-Alive requests and how it’s responding them, there are several ways. You could use Firebug, Chrome Developer Tools or you could use benchmarking tools like “ab” (ApacheBench) and so on. For me “ab” was always a good choice, but I seem to […]


Continue reading »

YAPW Version 0.0.1b released

A new version of YAPW is now released, because of some requests. There are no major changes, but in version 0.0.1b it is now possible to have more than just one connection to the server at the same time. The default port is set to 80 and the maximum of connections to 200. I hope […]


Continue reading »

YAPW Windows update

I made a little update on the windows side. Now python is no longer needed, because I made it to include the fantastic Portable Python package. Unfortunately there is also a bad side of it. Now the system requirements for free hard disk space increased to 50 MB on windows machines, but on modern systems […]


Continue reading »

YAPW (Yet another python webserver), version 0.0.1a realease!

YAPW is a very simple and tiny webserver written in Python programming language. I have written this for educational uses and to learn how to make your own webserver. It’s in a very early development state and has not many features for now. Features for version 0.0.1a: Hosting plain HTML files Error page load, when […]


Continue reading »