Wednesday, June 29, 2011

Mysql commands

Show mysql td table process_stage
select * from process_stage;

Change the process stage
update process set stage_id = 7, process_type_id = 1;

How to skip tests in maven

Here is the command that excludes tests during mvn package:

mvn -Dmaven.test.skip=true package


or


mvn package -DskipTests


Consult this example from appach site: http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html


Thursday, June 23, 2011

How to get IP of Mouse

This command will get IP of Mouse:

nodeattr -c mds=secondary

How to start nodes on cluster from terminal

Check the state of all nodes on cluster:

[admin@client5544-oem ~]$ pm -q
on:      
off:     ssltest[00-05]
unknown:

Here all 6 nodes turned OFF. Now we now its name and we should turn it ON:

[admin@client5544-oem ~]$ pm -1 ssltest[00-05]

Now check the state of all nodes on cluster again:

[admin@client5544-oem ~]$ pm -q
on:     ssltest[00-05]    
off:
unknown:

Done

Links to examples of how to use Vector class in Java

Java class Vector example link #1:

http://webcache.googleusercontent.com/search?q=cache:R0E18-chhhoJ:www.roseindia.net/java/beginners/vectordemo.shtml+vector+java+example&cd=1&hl=ru&ct=clnk&client=safari&source=www.google.com


Java class Vector example link #2 (it is a bad example - anonymous constructor is written with small letter):



Java class Vector example link #3:

All links are results of the Google search, yep... that way )

Thursday, June 16, 2011

What is SAS and SSD disk

SAS stands for Serial Attached SCSI
SAS drive utilizes the same form factor as a SATA drive but has several high performance advantages. While typical SATA drives operate at 7200RPM, a SAS drive operates at 10000RPM or 15000RPM.
SAS drives are typically utilized in server and high-end workstation environments where speed and I/O frequency reign supreme.

SSD stands for Solid State Drive.
Two of SSD can be used in a RAID 0 (Redundant Array of Inexpensive Disks) for the boot and applications drive, but then for scratch disks/additional storage, would be good to have 3-5 or more SAS drives in a RAID 5 (best mix of redundancy and speed, with the addition of parity).

Where stability is concerned, the drives must be properly paired. If drives in a RAID array are not properly matched by Firmware version, the odds are that at least one of the drives will fall out of the array within the first year. Depending on the type of array chosen, this could simply mean the company has to foot the bill for higher hardware costs, or be as bad as catastrophic data loss.

The full post on this topic is here. Read comments as well.