HQL current time like NOW() in PostgreSQL
If you want to set the actual timestamp to a field in HQL just use current_timestamp() instead of setting it in your code via a param.
HQL current time like NOW() in PostgreSQL Read More »
If you want to set the actual timestamp to a field in HQL just use current_timestamp() instead of setting it in your code via a param.
HQL current time like NOW() in PostgreSQL Read More »
to change the label on the checkout button from “Bestellung abschließen” to “Zahlungspflichtig bestellen” you just have to change the file app/locale/de_DE/Mage_Checkout.csv
Magento Button “Bestellung abschließen” Read More »
I had the problem that starting my jboss application server was veeeeery slow – don’t know how long it would have taken as I always killed it after a few minutes. After some experiments with more memory without a change I removed all my breakpoints in the debug view of eclipse and voilá – it
Eclipse: JBoss very slow in Debug mode Read More »
Magento creates lots of files and database entries no one really needs. So here is how I tried to clean up the mess – based on this script from the magento site http://www.magentocommerce.com/wiki/groups/227/maintenance_script First I logged in into the shell and executed the following in the magento directory: rm -rf var/cache/* var/log/* var/report/* var/session/* var/tmp/*
Magento Manual Cleanup Read More »
Eclipse uses the system username by default. This is not always useful. Especially if you can’t choose the username on your own. To get around this just add “-Duser.name=Max Mustmann” (without quotes!) in your eclipse.ini somewhere after vmargs.
Set Author Name in eclipse.ini Read More »
I tried to run openproj under ubuntu 12.04 with the latest jdk7 from oracle. Openproj complains that the java vendor should be sun instead of oracle. So simply use the zip or tar.gz version of openproj from sourceforge, extract the files and change the following line in openproj.sh: JAVA_OPTS=”-Xms128m -Xmx768m” to JAVA_OPTS=”-Djava.vendor=Sun -Xms128m -Xmx768m” Then
OpenProj 1.4 with Oracle JDK Read More »
I wanted to use the dtd of jboss-web.xml as code completion only works with a schema in eclipse and I don’t like warnings about missing schemas anyway. So here is an example jboss-web.xml that is validated with it’s dtd. <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE jboss-web PUBLIC “http://www.jboss.org/j2ee/dtd” “http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd”> <jboss-web> <context-root>test</context-root> </jboss-web> You can also download the
jboss-web.xml validated with its dtd Read More »
I had to checkout a very large repository which included branches, tags and trunk in a subfolder of the project. So checking out the basedir gets all branches and tags which makes SVN very slow. So I was looking for a way to exclude folder from checkout. The following statement makes SVN ignore and delete
SVN: exclude folder from update Read More »
To undo all changes until a specified version, here is the command to do that: svn merge -rHEAD:456 .
SVN revert to previous version Read More »
Creating a standalone EJB-client application works like the following. If you use maven, just include the following dependency: <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-ejb-client-bom</artifactId> <type>pom</type> <version>7.1.1.Final</version> </dependency> Then you need a file jboss-ejb-client.properties in your classpath. Here an example: remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false remote.connections=default remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=true remote.connection.default.host=localhost remote.connection.default.port=4447 remote.connection.default.username=username remote.connection.default.password=password If you haven’t changed default configuration the username+passwort are added with the
EJB Standalone Client JBoss AS7.1.1 Read More »