This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
es: | |
authlogic: | |
error_messages: | |
login_blank: no puede estar en blanco | |
login_not_found: no es válido | |
login_invalid: debe utilizar sólo letras, números, espacios y .-_@ | |
consecutive_failed_logins_limit_exceeded: El número de accesos no autorizados se ha superado, la cuenta ha sido cancelada. | |
email_invalid: no es una dirección de correo electrónico válida. | |
password_blank: no puede estar en blanco | |
password_invalid: no es válido |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRANT ALL PRIVILEGES ON myapplication.* TO 'myapplication'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SomeHelper | |
# form: Active form | |
# question: Text displayed as label | |
# method: The method to call | |
# options: A set of [value, label] pairs | |
def radio_choice(form, question, method, options, onchange_fn = nil) | |
html = question + "<br />" | |
options.each do |option| | |
html << form.radio_button(method, option[0], :onchange => onchange_fn) | |
html << form.label("#{method.to_s}_#{option[0]}", option[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var anObject = { | |
field1: "Esto es un campo string", | |
field2: 1, /*Esto es un campo entero*/ | |
field3: 2.1, /*Esto es un campo float*/ | |
list: [1,2,3], /*En este campo hay una lista de números*/ | |
otraCosa: { /*Se permite anidar objetos*/ | |
algo: "Esto es anObject.otraCosa.algo" | |
}, | |
cosas: [ | |
{campo1: 2, campo2: "Se puede combinar todo para crear estructuras de datos complejas"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
//Se carga una clase con el nombre especificado en operatorClassName | |
BaseOperator operatorObject = (BaseOperator) Class.forName("com.engage.operators."+operatorClassName).newInstance(); | |
operatorObject.setSources(sources); //Se pasan las fuentes al operador | |
return operatorObject.calculateValues(); | |
} catch (ClassNotFoundException ex) { | |
System.out.println(operatorName + "is not installed in this system"); | |
} |