Starting Rescue Mode in Ubuntu 11.10

It’s a little difficult to find the rescue mode in Ubuntu 11.10. Since 11.04 you can press the shift key in startup phase to show up the grub boot menu. First step is changing the following line in /etc/default/grub GRUB_HIDDEN_TIMEOUT=0 to GRUB_HIDDEN_TIMEOUT=1 Activate the changes by running /usr/sbin/upgrade-grub. Now you can boot up your system and can press the shift key to access the grub menu. Another important thing is that the file systems are mounted read-only in rescue mode. If you want make changes to the file systems then you must first choose the remount option in the boot[…]

Read more

Structure of the IBAN (International Bank Account Number)

An IBAN may contain up to 34 alphanumeric characters and is composed of the following parts: Double-digit alphabetic code according to ISO3166 Two-digit numeric check digit over the whole IBAN under Modulo 97-10 (ISO7064) Maximum 30-digit Basic Bank Account Number (BBAN), consisting of the Institute identification (IID) and Bank Account Number (BAN) The IBAN in electronic form contains no spaces, but  in a printed form it is usually presented into groups of four characters with spaces . The last group of characters contains the remaining characters of the IBAN. In this way the IBAN is easier to read. By validating[…]

Read more

Terminating processes with delphi

Windows processes can be terminated from a delphi application using Win32 API calls. To terminate processes not owned by the current user the SE_DEBUG_NAME privilege must be set for the current process. All sample code must include unit TlHelp32. Sample code for activating SE_DEBUG_NAME privilege

Read more

Load balancing with Apache 2.2 mod_proxy_ajp

The Apache 2.2 webserver has a module for proxiing AJP requests (mod_proxy_ajp). This module is delivered with the Apache webserver by default. Activating modules The following modules must be enabled to use the AJP proxy functionallity: mod_proxy mod_proxy_ajp mod_proxy_balancer To activate the modules uncomment the following lines in your httpd.conf configuration file (e.g. /opt/apache/conf/httpd.conf): LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so Configuring modules To configure the modules we create a new configuration file conf/ajp_proxy.conf in the apache directory and add the following line to our httpd.conf file: Include conf/ajp_proxy.conf First of all we put all configuration directives in[…]

Read more

ObjectListDataProvider Tutorial

This is a tutorial for using the ObjectListDataProvider in a Visual Web Project. A ObjectListDataProvider is useful if the underlaying data is from a datasource not supported by NetBeans. Some samples for such datasources are a JPA or hibernate connection, other legacy systems such SAP or Lotus Notes and files in various formats. In this tutorial we use a text file with customer records as datasource for our application. Creating the project In the first step you create a normal VWP project named OldpSample: Address POJO For data storage we use a simple POJO object. Right click the oldpsample package[…]

Read more