Thursday, August 27, 2009

Bosch 5 pin SPDT relays


Bosch 5 pin relay - SPST single pole single throw:
====================================================
white 85 coil source: +
black 86 coil ground: -

yellow 87 normally open: to + of load
red 87a normally closed: to + of load
blue 30 common: to - of load
====================================================

Wednesday, August 26, 2009

IRC stuff

P - priority, from 0 to 10
T - type of message:
1: plaintext data
2: base64 encoded data
D - data
Can be indexed, ex: D1, D2 ... D65535


Examples:
[P:0][T:1][D1: // priority 0, type chat, data 1

Tuesday, August 4, 2009

How to install Sun Glassfish sges-2_1-linux.bin

# Install the missing library
apt-get install libstdc++5

# go to the download location
cd /opt/downloads/

# execute the binary
./sges-2_1-linux.bin


Answer all the prompts. If you didn't install Java 2 SDK 5.0 or greater, go to another shell (ALT F2), log in and install it:

cd /opt/downloads/jdk
chmod u+x jdk-6u14-linux-i586.bin
./jdk-6u14-linux-i586.bin

and then move the installation:
mv jdk1.6.0_14 /opt/jdk16014

and then go back to the glassfish installation (ALT F1) and specify the installation directory:
/opt/jdk16014

When prompted for all the settings, make sure to enter an admin password (ex: adminadmin)

To start the app server:
/opt/SUNWappserver/bin/asadmin start-domain domain1

Console: http://localhost:4848


Install mysql:
apt-get install mysql-server-5.1
apt-get install mysql-client-5.1

mysql -u root -p

How to install Java after a fresh Ubuntu installation

sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
java -version