Simple multithreaded Java Webserver

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

wordpress app for iPad

Good news for all bloggers with an iPad. For me the most important functionality: blogposts can be written, saved and edited without an Internet connection. Means: write your post on the go and publish them later!

Concatenate multiple files

Sometimes data comes split into several files. It might be a table from a database exported to several csv files. You could use the cat tool in linux to combine the files: cat table_file1 table_file2 table_file3 > full_table

Published
Categorized as Linux

Concatenate multiple files

Sometimes data comes split into several files. It might be a table from a database exported to several csv files. You could use the cat tool in linux to combine the files: cat table_file1 table_file2 table_file3 > full_table

Published
Categorized as Linux

Concatenate multiple files

Sometimes data comes split into several files. It might be a table from a database exported to several csv files. You could use the cat tool in linux to combine the files: cat table_file1 table_file2 table_file3 > full_table

Published
Categorized as Linux

program AT90S8515 with AVRISP mkII

The AVR ISP mkII does not support the AT90S8515 by default for programing. There s a simple workaround for that: Go to the path where your Atmel stuff is installed. In my case it is: C:Program Files (x86)atmelAVR ToolsPartdescriptionfiles Look for the file AT90S8515.xml Locate the <ICE_SETTINGS> part and change the <MODULE_LIST> to [SIMULATOR:STK500:STK500_2:AVRISPmkII] and… Continue reading program AT90S8515 with AVRISP mkII

domain forwarding with Apache mod_rewrite

You might have the domain domain1.com which should redirect visitors to domain2.com. You could set up a virtual host, pointing to /path where an index.php file resides which forwards the user, e.g. with: <?php header(“Location: http://domain2.com”); ?> The easier way is to create a virtual host, e.g. by creating /etc/apache2/sites-available/domainForwarding with the following content: <VirtualHost… Continue reading domain forwarding with Apache mod_rewrite

embedded stack collision with the variable-memory

There was a strange bug I found which took me ages to find. I was implementing some stuff on a Atmel A90S8515 microcontroller. This device is quite old and has very limited memory. Both Flash and RAM. The problem occurred when sprintf from the standard library was called. When called,  any internal variables were changed… Continue reading embedded stack collision with the variable-memory

my atmel microcontroller is continuously reseting

A problem I had multiple times was: I reuse software from the internet, but when i use the software / simulate it, it is constantly resetting! The reason why this is happening is (or can be) undefined reset vectors. This means, the hardware raises an interrupt, which is not hadled by your software. Therefore, make… Continue reading my atmel microcontroller is continuously reseting