The following code (estimated 150 lines of code) implements a simple multithreaded Web Server in Java. The code is easy to read and contains no (really) complicated stuff. There are 5 classes: HTTPException.java This class extends Exception and overrides the getMessage(String) Methode, which is responsibe for example for the Error 404 Not Found message. MimeTypeResolver.java This… Continue reading Simple multithreaded Java Webserver
Category: Web
change max_allowed_packet (or any arbitrary DB parameter group value) in Amazon RDS from commandline
This task sounds to be quite easy, but because the AWS Management Console does not allow the manipulation of parameter group values, you have to go the way using the API from your commandline (or from wherever you want). This post will explain how to do it in your console using the API tools from… Continue reading change max_allowed_packet (or any arbitrary DB parameter group value) in Amazon RDS from commandline
Use ETH SMS service for sending texts abroad
The following simple website demonstratates how to send texts using the free SMS service of the ETH (you need to be member of). The core task of the website is to send a HTTP post request to the following website: https://www.sms.ethz.ch/cgi-bin/sms/send.pl The documentation is found here: https://www.sms.ethz.ch/sms/simpledescription.htm The header data consists out of your ETH… Continue reading Use ETH SMS service for sending texts abroad
Stress-testing your website or put your website under siege
Sometimes one just want to check the stability of a web application under heavy load to check whether all ressources are sufficient or just for finding the limits of a webserver. This especially applies if you have some fancy backend calls assoiated with a HTTP request. A small Linux utility named “siege” helps you make… Continue reading Stress-testing your website or put your website under siege