Skip to main content

Home/ Groups/ ProGauge SCADA
Kevin Mershon

[#GRAILS-3138] Use a separate sequence for each table - Grails JIRA - 0 views

  • define "id generator:'sequence', params:[sequence:'mydomain_id_sequence']" on each of your domain classes.
Kevin Mershon

[#GRAILS-5302] Postgresql generated SQL should quote table and field names - Grails JIRA - 0 views

  • Any reserved names can be escaped with backticks in the mapping block, e.g. static mapping = { table "`user`" }
Kevin Mershon

DbSettings - 0 views

  • databaseToUpper Database setting DATABASE_TO_UPPER (default: true). Database short names are converted to uppercase for the DATABASE() function, and in the CATALOG column of all database meta data methods. Setting this to "false" is experimental. When set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords).
  •  
    "Database setting DATABASE_TO_UPPER (default: true). Database short names are converted to uppercase for the DATABASE() function, and in the CATALOG column of all database meta data methods. Setting this to "false" is experimental. When set to false, all identifier names (table names, column names) are case sensitive (except aggregate, built-in functions, data types, and keywords)."
Kevin Mershon

package-cleanup(1) - Linux man page - 0 views

  • --oldkernels Remove old kernel and kernel-devel packages.
  •  
    "--oldkernels Remove old kernel and kernel-devel packages."
Kevin Mershon

Grails - user - Injecting beans into controllers from plugin - 0 views

  • You can add it to the metaclass, e.g. to add a 'foo' property to all controllers:    def doWithDynamicMethods = { ctx ->       for (controller in application.controllerClasses) {          controller.metaClass.getFoo = { ->             return ...          }       }    }
Kevin Mershon

Grails Detect if a Plugin is Installed - Stack Overflow - 0 views

  • import org.codehaus.groovy.grails.plugins.PluginManagerHolderif (PluginManagerHolder.pluginManager.hasGrailsPlugin('acegi')) {   ...}
Kevin Mershon

Marc Palmer's Blog » Excluding files from a WAR with Grails - the right way - 0 views

  • // Remove the JDBC jar before the war is bundled grails.war.resources = { stagingDir -> delete(file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") }
  • // Remove the JDBC jar before the war is bundled eventWarStart = { warName -> if (grailsEnv == "production") { println "Removing JDBC 2 Extensions JAR" Ant.delete( file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") } }
Kevin Mershon

4 The Command Line 2.0.1 - 0 views

  • export GRAILS_OPTS="-Xmx1G -Xms256m -XX:MaxPermSize=256m" grails run-app
Kevin Mershon

[#GRAILS-1984] id initialization on constructor when generator is assigned - Grails JIRA - 0 views

  • Status: Open
  • Resolution: Unresolved
  • domain classes ignore a parameter named id on the constructor
  • ...1 more annotation...
  • In order to save it, one must do: def c = new CurrencyRow(name:'one', numericCode:10) c.id = 'CUR' c.save() Otherwise an exception about the id being unassigned is raised.
Kevin Mershon

[#JENKINS-9679] NoClassDefFoundError on Base64 when launching an headless slave with -j... - 0 views

  • I was using -noCertificateCheck so there was no issue with SSL certificates. Either way thanks for the suggestion. Meanwhile i was able to find a workaround: After installing Hudson Slave as a service I got to the local (on Slave) directory and found jenkins-slave.xml I edit the <arguments> entry to add the necessary jar to the invocation classpath: commons-codec-1.5.jar is the jar missing and you can grab it here (just unzip and it's there) Put commons-codec-1.5.jar in the local slave directory (inside a newly created lib directory) Change the <arguments> entry to add commons-codec-1.5.jar to the classpath like this -Xrs -jar "%BASE%\slave.jar" -jnlpUrl <url_to_jnlp> -classpath "%BASE%\lib\commons-codec-1.5.jar" -jnlpCredentials <user>:<password> -noCertificateCheck Start service in windows and monitor jenkins-slave.err.log
Kevin Mershon

SDB:OpenSSH public key authentication - openSUSE - 0 views

« First ‹ Previous 61 - 73 of 73
Showing 20 items per page