Archive for June, 2009


scp multiple distinct files ..

Jun 26, 2009 in Linux

scp  \
 user@machine:"/somepath/file1.txt \
/somepath/file2.doc \
/someotherpath/file3.c \
/somepath/file4.php \
/anypath/file5.bsh" \

Make sure there is (are) no space(s) after the back-slashes
and note the “.” (dot) at the end.. or replace the dot with
any target folder to copy the files to.

cvs administration with pserver notes..

Jun 26, 2009 in Config Manage, cvs

To check for cvs with pserver configuration:

  • – Check that xinetd is installed
  • – Check file /etc/xinetd.d/cvspserver
    It should look like this:

    service cvspserver
    port = 2401
    socket_type = stream
    protocol = tcp
    wait = no
    user = root
    passenv = PATH
    server = /usr/local/bin/cvs
    server_args = -f –allow-root=/opt/cvs pserver

  • – Check that cvsnt is where the xinetd file (above) says it is
    (/usr/local/bin/cvs in this example)
  • – Check the cvs path (/opt/cvs in this example)
  • $ telnet cvsserver 2401 (or whatever port is specified in /etc/xinet.d/cvspserver file)
  • – Check the cvs passwd file in /opt/cvs/cvsroot folder.
    It should have an entry for the user.
  • – If the user is not in the cvs passwd file (in example: /opt/cvs/cvsroot/passwd)
    add the user with:

    $ cvs passwd -a user (it will ask for a password)

See for more info.

WebMethods server admin notes..

Jun 25, 2009 in WebMethods

These notes are for WebMethods v6.5

  • Admin URL
  • Set logging level
    Left panel, Settings / Logging / (top of page) / Edit Logging Settings
    Drop down in “Level of Logging” field.
  • Some important paths
    logs/, packages/, config/
    /etc/init.d/webMethods [start|stop]
  • Reset Administrator password
    – Shutdown wm server
    – cd config
    – mv users.cnf users.cnf.0
    – Restart wm server, it will create a new users.cnf file
    – Shutdown wm server
    – Edit (newly created) users.cnf file, copy the ‘passHash’ for Administrator
    – mv users.cnf users.cnf.default
    – mv users.cnf.0 users.cnf
    – Edit users.cnf, replace/paste the ‘passHash’ for Administrator, save file
    – Restart wm server
    – Should be able to log in with ‘Administrator/manage’ combination.

iPhone notes..

Jun 23, 2009 in iPhone

— After jailbraking, go to Cydia and follow the instructions for
installing OpenSSH and logging into the unit with ssh.

— Apps can be installed either through Cydia or ‘Ad Hoc’
via iTunes under ‘Applications’. May need to enable the
Applications folder from Options.

— Crash logs can be found here:

Mac OS X : /Library/Logs/CrashReporter/MobileDevice//

Windows XP: C:\Documents and Settings\User\Application Data\Apple computer\Logs\CrashReporter\\

Windows Vista: C:\Users\User\AppData\Roaming\Apple computer\Logs\CrashReporter\MobileDevice\\

Java pattern matching example..

Jun 19, 2009 in Java, JavaUsage

import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class TestPattern {
    public static void main(String[] args) {
	String pin = "1234567";
	String pinPattern = "[0-9]+";
	String result = null;

	Pattern pattern = Pattern.compile(pinPattern);
	Matcher matcher = pattern.matcher(pin);

	result = "";
	while(matcher.find()) {
	    result +=;
	if (result.equals(pin)) {
	    result = "PIN accepted";
	else {
	    result = "PIN invalid";

RedHat Enterprise Networking note..

Jun 18, 2009 in Linux, Network

The /etc/sysconfig/network file contains the

The /etc/sysconfig/network-scripts/ifcfg-eth0 file contains the

Notes from ‘Java Web Services’ book ..

Jun 18, 2009 in Books, Java, JavaUsage

SOAP – Simple Object Access Protocol
WSDL – Web Services Description Language
UDDI – Universal Discovery, Description and Integration

Major characteristics:
— XML-Based
— Loosely coupled – interfaces may change without loss of service.
— Coarse-grained – provide high-level business functions.
— Both synchronous and Asynchronous
— Supports RPC (Remote Procedure Calls)
— Supports document exchange

apache mod_radius compile / build problem..

Jun 12, 2009 in Uncategorized

The mod_radius source code is named


See (as of today..)

When running this configuration with apache httpd:

./configure \
  --prefix=/usr/local/httpd-2.2.11 \
  --enable-ssl=shared \

We get an entry in modules.c like this:

extern module auth_radius-2.0_module;

The compiler blows up on this line.


After renaming the source file to


The linker blows up because the internal name
of the module (inside the mod_auth_radius-2.0.c
file) is this:

module AP_MODULE_DECLARE_DATA radius_auth_module;

which does not match the name of the file.
If we leave the internal name alone, the name
of the file must be:


One more thing.. I do not see how this could have built with
apache 2.0 (as opposed to 2.2) since the 2.0.63 does not
contain mod_auth.h which is required by mod_radius..


My first objective-c (objc) with GNUStep program..

Jun 11, 2009 in Objective-C

The setup:

The program “Test1.m” :


int main(void)
    NSLog(@"Hello, World!\n");
    return 0;

And the “GNUmakefile” :

include $(GNUSTEP_MAKEFILES)/common.make

APP_NAME = Test1

Test1_OBJC_FILES = Test1.m

include $(GNUSTEP_MAKEFILES)/application.make

Extreme programming..

Jun 10, 2009 in Engineering, Software

Finally! A methodology that makes sense to me!

Basic rules:

* Make frequent small releases.

* The project is divided into iterations.

* Move people around.

* No functionality is added early.

* Refactor whenever and wherever possible.

* The customer is always available.

* Write/Code the unit test first (with stubs).

* Integrate often.

* Leave optimization till last.

* All code must have and must pass unit tests.

* When a bug is found, unit tests are created.

* No overtime.

* Code must be written to agreed standards.