Blog
-
How to Deploy a Grails (Tomcat 7) Application to Cloud Foundry
I had an issue with deploying my Grails project to Cloud Foundry using cloudfoundry-grails-plugin. My application was using Tomcat 7, unlike Cloud Foundry, which uses Tomcat 6. In other words, to have a Grails application with Tomcat…
-
Embedding Recent Jetty in Groovy Using Grape
A few days ago, I needed to launch Groovlets on a web server. I have decided to go with the latest Jetty for this task, developed by the Eclipse Foundation. It turned out to be a non-trivial…
-
Upgrade ElasticSearch on Linux
Suppose you have a system with an ElasticSearch server installed and need to upgrade it to a newer version. Below is a step-by-step guide on how to do it, but note that it only works for Elasticsearch…
-
Proper Rendering of Posts by Tag and By Author in Octopress
Octopress generates per-tag indexes that show only the post title by default. This works fine until you customize category_index.html to output a post content excerpt too—then the content renders incorrectly. This is a problem in the plugins/category_generator.rb plugin. In both of…
-
Checkout a Specific Revision with Git
If you have a project and want to checkout a specific revision (commit), you can do it as described below. 1) Clone the project: 2) Use the git describe command to get a readable name for your commit. git…
-
Get Total Records Count with GORM Criteria
Assume you have a page with pagination that displays a table of objects (selected from the DB with GORM criteria) in your Grails application. If you want to know the total number of possible results (as if…
-
Unit Testing Web Flow in Grails
I’ve faced a problem with unit testing the web flow controllers. There’s an existing WebFlowUnitTestMixin for unit testing WebFlow in GDK, but no word on how to use it in the latest Grails 2.2.0 official documentation. I’ve…
-
Native 0mq Library Version for akka-zeromq-2.0.x
I had a chance to try the akka-zeromq module last month in order to implement a solution for inter-service communication using Scala, Akka 2.0, and ZeroMQ. The module is built as an extension to Akka and based…
-
How to Create a Remote Git Branch in IntelliJ IDEA
To create a remote Git branch in IntelliJ idea one should:
-
Customizing the Field Widget of the Platform UI Grails Plugin
Our team is working on a Grails plugin now, which will have a UI based on the Platform UI Grails plugin. The platform UI plugin allows you to easily configure the look of Grails applications using different…
-
Changing the Grails Project Configuration from Within a Plugin
This code snippet shows how to update project configuration settings from a Grails plugin executable script. The script updates the configuration by copying settings from a default config file in the plugin’s folder into Config.groovy. This is…
-
Hosting StackMob HTML5 Application on Apache Web Server
Our team had a task to develop complex application for StackMob. During the development we have faced a need to host HTML5 application on our internal server to increase productivity of our QA department. This article explains…
Boost your business with custom software
Tell us about your business needs and we’ll suggest a solution
Thank you!
We have received your request and will get back to you within 1 business day.











