Skip to main content

Home/ Groups/ ProGauge SCADA
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

Kevin Mershon

Howto disable background images at boot - 0 views

  • 1. Change VGA mode to normal and remove the splash screen. edit /boot/grub/menu.lst change the kernel parameters: vga=0x314 to vga=normal splash=silent to splash=0 2. Remove the graphical grub bootloader menu. comment or remove grub parameter, also in /boot/grub/menu.lst: gfxmenu (hd0,1)/boot/message becomes #gfxmenu (hd0,1)/boot/message
Kevin Mershon

Citrix Forums : Can't adjust VM memory using command ... - 0 views

  • xe vm-memory-limits-set uuid=xxx static-min=137438953472 dynamic-min=137438953472 dynamic-max=137438953472 static-max=137438953472
Kevin Mershon

File format - Vim Tips Wiki - 0 views

Kevin Mershon

XenServer: HowTo Convert HVM to PV (RHEL/SuSE) - 0 views

  • HVM-boot-policy=BIOS order
  • xe vm-param-set uuid=<vm uuid> PV-bootloader=pygrub
Kevin Mershon

wget - Linux Command - Unix Command - 0 views

Kevin Mershon

OpenSUSE 11.4 hangs on boot when installed as XenServer guest - 0 views

  • Ok great! I think I have a solution. For me this reduces the bug from 1 in 5 times, to around 1 in 1000. I still see the bug but this helps a bunch: ======== My Almost 100% Solution!! ======== Edit /etc/inittab. Comment out all of the normal tty's (they are unused in PV mode). For example: Code: #1:2345:respawn:/sbin/mingetty --noclear tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6 Near the end of the file, there (may) should be a cons entry. Comment it out as well Code: #cons:12345:respawn:/sbin/smart_agetty -L 42 console add this line to the end of inittab: Code: co:2345:respawn:/sbin/agetty xvc0 9600 vt102 From XenCenter: Right click on the VM, click Startup Options. Replace all the text in OS Boot Parameters with this: Code: xencons=xvc console=xvc0
« First ‹ Previous 41 - 60 Next ›
Showing 20 items per page