Archive for the ‘Software Development’ Category

Line feed ‘\n’, 0x0A, 10 in decimal CR Carriage return, ‘\r’, 0x0D, 13 in decimal

Read Full Post »

The usual install-plugin method hangs, therefore this is what I did to install the MigLayout plugin in my Griffon Application: Check out the latest source code of the plugin from this repository. On the command line change into the source code folder Execute griffon package-plugin On the command line change into the project folder of [...]

Read Full Post »

Connecting to a DB: mysql -u username -p database_name Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 222 Server version: 5.1.44 Source distribution Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement. Simple Query mysql> SELECT * FROM LANGUAGE; +—-+———+——+—————-+ | id [...]

Read Full Post »

I tried to test a Grails Service with an Integration Test in my beloved IDEA IDE – sometimes it worked as expected, sometimes the service was not injected and the test failed with a Null Pointer Exception. It took me a while to figure out that the problem is related to the Run /Debug configuration. [...]

Read Full Post »

So that I don’t forget something to check out.

Read Full Post »

The Grails part is straight forward as documented. As for the Windows environment make sure that you have the jmagick.dll in your <JDK>/jre/bin directory and the jmagick.jar in the <JDK>/jre/lib directory.  Also make sure that the core_rl_magick_.dll is installed on your system. You can do so by downloading and installing an ImageMagick version that contains [...]

Read Full Post »

Grails and smartgwt

To set up a grails and smartgwt project basically follow this great tutorial by Peter Ledbrook. The equally useful tutorial by Josip goes one step further. 1) Create a grails project 2) Install the gwt plugin 3) Install the smartgwt plugin 4) Create a module 5) Fill in the entry point: Create the DataSource and [...]

Read Full Post »

The other day I treated myself to a license of IntelliJ’s IDEA and I am loving it especially when working with Grails projects. When I started toying around with the GWT plugin for Grails however, I ran into trouble because apparently the GWT_HOME environment variable that I defined for the bash shell is not visible [...]

Read Full Post »

There is a bug in Grails 1.3.6 that prevents (at least) the remoteLink to work correctly. Instead of calling the specified controller closure as an AJAX call, a normal page request is conducted resulting in a futile attempt to display a page on the part of the server. Downloading the latest Grails 1.3.7-SNAPSHOT release solved [...]

Read Full Post »

Read here how to add Ant to Flash Builder 4

Read Full Post »

Instrcutions on how to change the system time in a VirtualBox BIOS can be found here. Note: For my version I used VBoxManage modifyvm WindowsXP –biossystemtimeoffset -206150400000 rather then the sugested VBoxManage modifyvm “Windows Whistler 2419″ -biossystemtimeoffset -206150400000

Read Full Post »

Some useful information on the topic: blogId Grails WordPress Plugin – or so it seams

Read Full Post »

Logging in Grails

Tutorial about logging in Grails

Read Full Post »

I have been wondering all along how it is possible to call a method that is not defined anywhere in that class and get something reasonable done, e.g. the method on the Cairngorm delegate that conducts the call to the server. After playing around with Grails I became aware of the fact that this mechanism [...]

Read Full Post »

I found this blog that explains how to install Grails on Max OS X. Copy the downloaded folder to /usr/share/ $cd /usr/share $sudo chown -R root:wheel grails-1.1.1/ $sudo chmod 0755 grails-1.0.1/bin/* $ln -s grails-1.1.1 grails Add the path variable to /ect/profile like on Linux.

Read Full Post »

When deploying a new version of my application (actually I started an entire project from scratch) I continuously bounced my head against this  “You don’t have the permission…” exception. I finally added the following lines to my Configuration/config.groovy file: google.appengine.application=”myproject” google.appengine.email=”myname@gmail.com” google.appengine.password=”XXX” where myproject is the part that appears in the url, like myproject.appspot.com.

Read Full Post »

Here are the directions for a patch in a great Screencast by Tomás Lin that makes authentication work  in a Grails Application on Google’s App-Engine: google.appengine.sessionEnabled = true // default true google.appengine.enableSsl = true // default true google.appengine.security.useHttps = ["/secure", "/shoppingcart/*", "/admin"] google.appengine.security.requireAdmin = ["/admin", "/notsecuredadmin"] google.appengine.security.requireLogin = ["/admin", "/", "/yabbadabbadoo"] Don’t forget to apply [...]

Read Full Post »

A blog entry about running grails on Google’s App Engine. Among other things the methods that are provided by the App-Engine plugin are listed. The added domain class MetaClass methods are: save get delete findAll withTransaction withPersistenceManager (to execute code with access to the PersistenceManager) isJdoPersistent, isJdoDeleted, isJdoDetached, isJdoDirty, isJdoNew, isJdoTransactional, getJdoTransactionalObjectId, getJdoVersion, getJdoObjectId, and [...]

Read Full Post »

When using the above script the compiler apparently cannot find the Key class for the Google Data Store. A workaround is to simply add the following jar directly to the Classpath: $APPENGINE_HOM/lib/user/appengine-api-1.0-sdk-1.2.1.jar

Read Full Post »

Since the Data Store behind Google’s AppEngine is not a relational database I have been wondering all along how to manage one-to-many and many-to-many relationships. This links to the Java documentation: http://code.google.com/appengine/docs/java/datastore/relationships.html And here are some well explained examples in Python: http://arbingersys.blogspot.com/2008/04/google-app-engine-one-to-many-join_26.html http://arbingersys.blogspot.com/2008/04/google-app-engine-many-to-many-join_28.html http://arbingersys.blogspot.com/2008/04/google-app-engine-better-many-to-many_30.html

Read Full Post »

These are the steps I had to take to establish a connection from within NetBeans 6.7 to my Subversion Repository via a https connection. Install svn -> sudo apt-get install svn Install an svn client, I chose RapidSVN -> sudo apt-get install rapidsvn In NetBeans select Team > SVN>Check out… and fill in the Form. [...]

Read Full Post »

A useful tutorial about how to connect Mylin to a Trac repository.

Read Full Post »

After installing Mercurial and TortoiseHG on Windows XP I subscribed to the SCM Hosting provider Sourcerepo.com and so far I am very pleased with their service. The subscription process was straight forward, the repository usable within minutes after subscribing and all of that for a very affordable price, I might add. I had fun exploring [...]

Read Full Post »

Seam veteran Michael Yuan, whom I had the pleasure to see in a live talk last year in San Francisco, comments on Googles support for Java, the pros and cons of its hosting service.

Read Full Post »

This article published by the Swiss weekly SonntagsZeitung in German describes the research conducted by Katharina Reinecke from the Universiyt of Zurich about how web sites differ significantly in style and structure in various cultures. She found out about this gap while developing an e-learning system for farmers in Rwanda. Links naver.com is the most [...]

Read Full Post »

Groovy and ORM

Great article on groovy’s Object Relational Mapper GORM and the difference between using ORM in  statically typed languages as opposed to a dynamical envrionment such as Groovy.

Read Full Post »

Groovy and JPA

Tutorial about how to use Hibernate from within Groovy making use of Groovy Templating: import javax.persistence.* class JpaTemplate { EntityManagerFactory emf EntityManager em JpaTemplate(pu) { if (!pu) pu = “default” emf = Persistence.createEntityManagerFactory(pu) } void doInEntityManager(c, shutdown) { em = emf.createEntityManager() em.getTransaction().begin() c(em) em.getTransaction().commit() em.close() if (shutdown) shutdown() } void shutdown() { emf.close() } } [...]

Read Full Post »

Useful functions for working with the JBoss Seam EL

Read Full Post »