Thursday, March 28, 2013

Shutdown a remote windows desktop

If you are working on a remote windows desktop you can not power off the system...
Sounds like a good idea, because the machine you are working on is not under your control. But what if this machine is just in the next room and you know exactly what's going on?

Just create a desktop shortcut with the following command and you can power off windows very easy:

shutdown -s

Wednesday, March 13, 2013

Specify Maven environment on windows powershell

Here is just a smart snippet to specify the maven environment like PermGen or Memory space on windows powershell:
$env:MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
Simple but useful ;-)

Tuesday, January 1, 2013

Vaadin - url mapping and javascript files

If you are developing a Vaadin-based application and you are getting an error like this:

Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js

you should have a look to your web.xml! Vaadin couldn't find the javascriptfile as expected.
Maybe you've defined some servlet-mapping that's not matching with the vaadin defaults. Just change your mapping to:
 
  simpleapp
  /*
 

and see if things are working correctly now. For more details see Vaadin ticket#10122