To restart tomcat, fill the following two lines in a .sh file and make it executable (chmod +x [filename]): killall -s 9 java /[tomcat installation folder]/bin/startup.sh Warning: It kills all other java processes as well!
Blog
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
simple digital clock based on PIC 16F628
This is a small project i did several years ago. The board basically consist of 4 7-segment displays some resistors and 4 transistors and last but not least a PIC 16F628. This microcintroller from Microchip was my favourite one because they are robust and easy to use. They can be clocked using an internal clock… Continue reading simple digital clock based on PIC 16F628
mass delete unapproved wordpress comments by SQL
Open your favorite tool to execute sql-statements like phpMyAdmin and type: DELETE FROM wp_comments WHERE comment_approved = ‘0’
get sun java on debian based system
just type: sudo add-apt-repository “deb http://archive.ubuntu.com/ubuntu hardy main multiverse” sudo add-apt-repository “deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse” sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner” sudo apt-get update sudo apt-get install sun-java6-jdk
xsl transform template for php5
// path to the xml document (may be url) $xml = “data.xml”; // path to the xsl document (may be url) $xsl = “transformation.xsl”; $xslDoc = new DOMDocument(); $xslDoc->load($xsl); $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $proc = new XSLTProcessor(); $proc->importStylesheet($xslDoc); echo $proc->transformToXML($xmlDoc);
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
Motorized kickboard
How to pimp a kickboard? Take a two ps two stroke motor from a handy lawn-mower and some pieces of metal and welde it all together… Did it work? Well no. The conversion from the motor to the axis of the small rear-wheel was not done thoughtfully. The motor is fast but not powerful, therefore… Continue reading Motorized kickboard
WordPress installed, blog opened
My first blog entry. Just managed to install wordrpess. It is not that easy as they claim… For mobile blogging, they provide a iPhone application. It requires the actiavtion of RPCs. Not tested yet, but seems to work.