To disable the automatic reset of the Arduino board upon serial connection, just stick a 120 Ohm resistor between the RESET and +5V pins.
This is especially useful when the running application is expected to communicate over serial port, and thus you don’t want a reset each time a connection is made.
In order to be able to upload your sketches again, simply unplug the resistor during the upload, or follow this procedure: