Line feed ‘\n’, 0x0A, 10 in decimal CR Carriage return, ‘\r’, 0x0D, 13 in decimal
Archive for the ‘Software Development’ Category
Line Feed and Carriage Return
Posted in Software Development on December 18, 2011 | Leave a Comment »
Installing the MigLayout Plugin for Griffon
Posted in Software Development, tagged Griffon on December 17, 2011 | Leave a Comment »
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 [...]
MySQL Cheat Sheet
Posted in Software Development on June 26, 2011 | Leave a Comment »
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 [...]
Problem with Grails Integration Test in IntelliJ IDEA
Posted in Software Development, tagged Grails, Integration Test on April 22, 2011 | Leave a Comment »
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. [...]
Grails, Vaadin and Security
Posted in Software Development, tagged Grails, Vaadin on March 7, 2011 | Leave a Comment »
So that I don’t forget something to check out.
Grails and the Burning-Image Plugin on Windows
Posted in Software Development, tagged burning-image plugin, Grails on March 1, 2011 | Leave a Comment »
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 [...]
Grails and smartgwt
Posted in Software Development, tagged Grails, GWT on February 11, 2011 | Leave a Comment »
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 [...]
Grails and GWT in IntelliJ’s IDEA: Not a valid GWT installation Error
Posted in Mac OS X, Software Development, tagged Grails, GWT, IntelliJ IDEA on February 8, 2011 | Leave a Comment »
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 [...]
Grails 1.3.6 Bug in jquery Tag: Page Reqeuest Instead of AJAX Call
Posted in Software Development, tagged 1.3.6, Bug, Grails, jquery, remoteLink on January 8, 2011 | Leave a Comment »
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 [...]
Adding Ant and AS3doc Support to Flash Builder
Posted in Software Development on August 4, 2010 | Leave a Comment »
Read here how to add Ant to Flash Builder 4
Sun VirtualBox BIOS
Posted in Software Development on June 16, 2010 | Leave a Comment »
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
WordPress XML-RPC
Posted in Software Development on June 12, 2010 | Leave a Comment »
Some useful information on the topic: blogId Grails WordPress Plugin – or so it seams
Logging in Grails
Posted in Software Development, tagged Grails on June 11, 2010 | Leave a Comment »
Tutorial about logging in Grails
ActionsScript 3: Calling nonexisting methods
Posted in Software Development, tagged ActionScript 3, Flex, Grails on July 5, 2009 | Leave a Comment »
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 [...]
Installing Grails on Mac OS X
Posted in Software Development, tagged Google App Engine, Max OS X on June 26, 2009 | Leave a Comment »
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.
Grails App-Engine deployment
Posted in Software Development, tagged Google App Engine, Grails on June 11, 2009 | Leave a Comment »
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.
Google App-Engine, Grails and Security
Posted in Software Development, tagged Google App Engine, Grails on June 8, 2009 | 1 Comment »
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 [...]
Google App-Engine and Grails Dynamic Methods
Posted in Software Development, tagged Google App Engine, Grails on June 7, 2009 | Leave a Comment »
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 [...]
Grails App-Engine JDO ‘generate-all’ Bug
Posted in Software Development, tagged Google App Engine, Grails on June 6, 2009 | Leave a Comment »
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
Google AppEngine Data Store explained
Posted in Software Development, tagged Google AppEngine on June 4, 2009 | Leave a Comment »
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
Connecting NetBeans 6.7 to SVN on Ubuntu
Posted in Software Development, Ubuntu, Uncategorized, tagged NetBeans, SVN on May 23, 2009 | Leave a Comment »
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. [...]
Trac and Eclipse Mylin
Posted in Software Development, tagged Eclipse, Trac on May 10, 2009 | Leave a Comment »
A useful tutorial about how to connect Mylin to a Trac repository.
Mercurial and SSH-2 DSA on Windows XP
Posted in Software Development, tagged Distributed SCM, Mercurial on May 9, 2009 | Leave a Comment »
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 [...]
Google App Engine Pros and Cons
Posted in Software Development, tagged Google Apps Engine on April 22, 2009 | Leave a Comment »
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.
Intercultural Differences on the Internet
Posted in Asia, Software Development on April 5, 2009 | Leave a Comment »
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 [...]
Groovy and ORM
Posted in Software Development, tagged Groovy on March 27, 2009 | Leave a Comment »
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.
Groovy and JPA
Posted in Software Development, tagged Groovy, JPA on March 21, 2009 | Leave a Comment »
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() } } [...]
Expression Language Tricks
Posted in Software Development, tagged EL, JBoss Seam on February 23, 2009 | Leave a Comment »
Useful functions for working with the JBoss Seam EL