Create a file like: TakeOwnershipGer.reg.
Fill it with this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d j && icacls \"%1\" /grant administratoren:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d j && icacls \"%1\" /grant administratoren:F /t"
---
Found this for english windows here:
http://www.blogsdna.com/2173/add-take-ownership-option-in-right-click-context-menu-of-windows-7.htm
Also this is untested but seems to support more options:
http://beatmasters-winlite-blog.de/?p=1609
Dienstag, 26. Oktober 2010
Freitag, 18. Juni 2010
JBoss Tools and JBoss AS 5
Well, for some reason the JBoss Tools Team refuses to add easy Seam support for JBoss 5.
If you create a new Seam war project with JBoss 5, you get many weird errors.
Some suggest to add all entities to persistence.xml....
http://seamframework.org/Documentation/RunningSeamExamplesWithJBossApplicationServer5
and
https://jira.jboss.org/browse/JBSEAM-3821
But the real soultion is this:
add the following line to persistence.xml:
<property name="jboss.entity.manager.factory.jndi.name" value="java:/myEntityManagerFactory">
remove the following lines in components.xml:
<persistence:entity-manager-factory name="entityManagerFactory"
persistence-unit-name="MYPU"/>
<persistence:managed-persistence-context name="entityManager" auto-create="true"
entity-manager-factory="#{entityManagerFactory}"/>
add the following line:
<persistence:managed-persistence-context name="entityManager" auto-create="true"
entity-manager-factory="#{entityManagerFactory}"
persistence-unit-jndi-name="java:/myEntityManagerFactory"/>
Also hot depoly doesn't work anymore with JBoss 5 AS if you start it normally.
Try to start JBoss AS 5 in debug mode, then hot deploy should work again.
Don't know why though...
Happy Coding all !
Ray.
If you create a new Seam war project with JBoss 5, you get many weird errors.
Some suggest to add all entities to persistence.xml....
http://seamframework.org/Documentation/RunningSeamExamplesWithJBossApplicationServer5
and
https://jira.jboss.org/browse/JBSEAM-3821
But the real soultion is this:
add the following line to persistence.xml:
<property name="jboss.entity.manager.factory.jndi.name" value="java:/myEntityManagerFactory">
remove the following lines in components.xml:
<persistence:entity-manager-factory name="entityManagerFactory"
persistence-unit-name="MYPU"/>
<persistence:managed-persistence-context name="entityManager" auto-create="true"
entity-manager-factory="#{entityManagerFactory}"/>
add the following line:
<persistence:managed-persistence-context name="entityManager" auto-create="true"
entity-manager-factory="#{entityManagerFactory}"
persistence-unit-jndi-name="java:/myEntityManagerFactory"/>
Also hot depoly doesn't work anymore with JBoss 5 AS if you start it normally.
Try to start JBoss AS 5 in debug mode, then hot deploy should work again.
Don't know why though...
Happy Coding all !
Ray.
Freitag, 28. Mai 2010
OpenVPN client error: Sorry, 'Auth' password cannot be read from a file.
If you don't like to be patronized by OpenVPN client here is a version
with the compile flag ENABLE_PASSWORD_SAVE set:
http://rapidshare.com/files/388904833/openvpn-2.1.1-passwordsave-install.exe
Found in:
forum.perfect-privacy.com
Confirmed to work.
Great job who ever compiled it, thanks !
with the compile flag ENABLE_PASSWORD_SAVE set:
http://rapidshare.com/files/388904833/openvpn-2.1.1-passwordsave-install.exe
Found in:
forum.perfect-privacy.com
Confirmed to work.
Great job who ever compiled it, thanks !
Samstag, 9. Januar 2010
Add custom entries to NetBeans palette including events
Inspired by:
http://www.ryerson.ca/~dgrimsha/courses/cps841/JB_events.html
I could finally make my dream EventPanel.
Extending JPanel it allows Listeners to register for the paint event.
So you don't need to subclass JPanel anymore.
Just add EventPanel to NetBeans and add an event handler
for the now selectable paint event.
The Graphics2D object is placed into the the event Source object.
Get the source here:
http://kenai.com/projects/rayssharedcode/sources
http://www.ryerson.ca/~dgrimsha/courses/cps841/JB_events.html
I could finally make my dream EventPanel.
Extending JPanel it allows Listeners to register for the paint event.
So you don't need to subclass JPanel anymore.
Just add EventPanel to NetBeans and add an event handler
for the now selectable paint event.
The Graphics2D object is placed into the the event Source object.
Get the source here:
http://kenai.com/projects/rayssharedcode/sources
Abonnieren
Posts (Atom)