Sunday, July 17, 2011

How to add JARs file to Eclipse

To be brief on it: if you want to add JAR file to Eclipse project do it trough adding it into Properties/Build Path/Libraries/Add JARs:

 If you want to know the different ways to add JARs file to your project in Eclipse check this link.

Friday, July 1, 2011

RESTful Web Services

What is RESTful Web Services?

Shortly it is REpresentational State Transfer (REST).

More about REST read this article.

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.


Wednesday, May 25, 2011

How to restart network service on Mac without reboot

If your network connection got some failure
(for instance VPN does not work) do this command in CML (Terminal):

Choice #1
sudo killall racoon

Choice #2
launchctl stop com.apple.racoon
launchctl start com.apple.racoon

Saturday, May 14, 2011

A good one Python Tutorial

Here is the simple and the best Python tutorial I have ever seen.
Won't forget this link )) http://www.tutorialspoint.com/python/index.htm