<?xml version="1.0"?><rss version="2.0">
   <channel>
      <title>Mengu.net - Groovy</title>
      <link>http://www.mengu.net/</link>
      <description>mengu on web programming.</description>
      <language>en-us</language>
      <pubDate>Tue, 07 Feb 2012 05:43:38 AM +0200</pubDate>

      <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
      <generator>Mengu.net</generator>
      <managingEditor>mengu@mengu.net</managingEditor>
      <webMaster>mengu@mengu.net</webMaster>

            <item>
         <title>Annotating Your Grails Controller Classes And Actions</title>
         <link>http://www.mengu.net/post/annotating-your-grails-controller-classes-and-actions</link>
         <description><![CDATA[<p>For the current project of mine which I'm building with Grails I needed to annotate my controller classes and some actions in some cases. I had no idea on how to do it but I think I have just solved it and I am sharing it with you and I think I will stop saying that I am not a Java person as Groovy and Grails stuff is pushing me into both Java and its ecosystem.</p>

<p>The best example for explaining this would be security. Imagine you have a controller class that you don't want your regular members to access so you add <code>@RequireRole("Admin")</code> above your controller class. Whenever a member tries to access that annotated controller class they will be redirected to an unauthorized page unless they are admin. </p>
]]></description>
         <pubDate>2011-02-25 10:04:37</pubDate>
         <guid>http://www.mengu.net/post/annotating-your-grails-controller-classes-and-actions</guid>
      </item>
            <item>
         <title>Counting Many To Many Relationships With Grails</title>
         <link>http://www.mengu.net/post/counting-many-to-many-relationships-with-grails</link>
         <description><![CDATA[<p>I have two domain classes in my Grails app, Post and Tag. I have created an action in my TagController called tagIndex which displays all the tags. So far so good. However I need to count how many posts a tag has. Surely I can implement this with the following:</p>

<pre><code>def tagList = Tag.list()
tagList.each { println "${it.tagName() (${it.posts.size()})" }
</code></pre>

<p>The code above will select all the tags from the database and will do a count query on all tags you will display. Absolutely a blood thirst.</p>
]]></description>
         <pubDate>2011-02-15 09:14:50</pubDate>
         <guid>http://www.mengu.net/post/counting-many-to-many-relationships-with-grails</guid>
      </item>
            <item>
         <title>Geb And Gradle</title>
         <link>http://www.mengu.net/post/geb-and-gradle</link>
         <description><![CDATA[<p>I have been yearning to use Geb and Gradle for a while. Let's look at what is Geb and Gradle:</p>

<p><strong>Geb:</strong></p>

<pre><code>Geb (pronounced with a soft “G” like “Jeb”) is a browser automation solution for the Groovy programming language. 
It combines the browser driving features of WebDriver (and therefore can work with Internet Explorer, FireFox, Chrome and HTMLUnit 
with a jQuery inspired content navigation/inspection API and the expressiveness of Groovy.
</code></pre>

<p><strong>Gradle:</strong></p>

<pre><code>A better way to build.

Project automation is essential to the success of software projects. It should be straight-forward,
easy and fun to implement.

There is no one-size-fits-all process for builds. Therefore Gradle does not impose a rigid process over people. 
Yet we think finding and describing YOUR process is very important. And so, 
Gradle has the very best support for describing it.

We don't believe in tools that save people from themselves. Gradle gives you all the freedom you need. 
Using Gradle you can create declarative, maintainable, concise and high-performance builds.
</code></pre>

<p>In order to use Gradle I had to find something for myself to play with it and it was Geb so it is a win-win. :) In this short post, I will explain how to build your Groovy project with a simple Geb example.</p>
]]></description>
         <pubDate>2011-02-01 08:19:30</pubDate>
         <guid>http://www.mengu.net/post/geb-and-gradle</guid>
      </item>
            <item>
         <title>Read From Command Line With Groovy</title>
         <link>http://www.mengu.net/post/read-from-command-line-with-groovy</link>
         <description><![CDATA[<p>This is a quick tip for executing commands from groovy and reading the output and there are two ways for that.</p>

<pre><code>def p = "ls /home/mengu/projects".execute()
// either this
p.getInputStream().eachLine { println it }
// or this
println p.in.text
</code></pre>

<p>and the output:</p>

<pre><code>clj-learn
d
djanqx
grails
groovy
mysql-connector-java-5.1.10
obj-c
pearl
pearl-studio
play-1.1
pylons
pyramid-env
rails
repoze_env
scala
scala-learn
sdn
tapestry
test-db
test-my
vim-ruby
vixml
</code></pre>
]]></description>
         <pubDate>2011-01-29 05:11:28</pubDate>
         <guid>http://www.mengu.net/post/read-from-command-line-with-groovy</guid>
      </item>
            <item>
         <title>Groovy and Grails Video Compilation</title>
         <link>http://www.mengu.net/post/groovy-and-grails-video-compilation</link>
         <description><![CDATA[<p>If you are into Groovy and Grails but need something to boost you out, here you go! I have compiled some of the available videos on Groovy and Grails to get you in the right direction. </p>

<h2><a href="http://skillsmatter.com/event/java-jee/groovy-grails-exchange-2010">Skills Matter: Groovy &amp; Grails Exchange 2010</a></h2>

<p>The latest information and talks about Groovy and Grails world. This event did take place in London on 16 - 17 December 2010. You will watch the talks about latest development events on Groovy and Grails. All of the talks are really great and must watch!</p>
]]></description>
         <pubDate>2010-12-24 06:00:12</pubDate>
         <guid>http://www.mengu.net/post/groovy-and-grails-video-compilation</guid>
      </item>
            <item>
         <title>Getting Started With Grails And Qooxdoo</title>
         <link>http://www.mengu.net/post/getting-started-with-grails-and-qooxdoo</link>
         <description><![CDATA[<p>In my current company I am asked to develop a CMS as you may have read from the Expensii post. I was going to build this CMS with Yii framework however I have changed my decision. The CMS will be developed with Grails and Qooxdoo. The whole application will rely on Grails and for the admin panel instead of getting busy with lots of front-end stuff I will use Qooxdoo. </p>

<p>Let me introduce my tools for the job first. Qooxdoo is a great JavaScript framework which lets you create rich internet applications with its impressive GUI toolkit. Grails, on the other hand, is a great web framework which you use Groovy with and runs on top of the Java Virtual Machine. Both of these two frameworks are open source, under active development and very open to improvements.</p>
]]></description>
         <pubDate>2010-12-05 02:25:00</pubDate>
         <guid>http://www.mengu.net/post/getting-started-with-grails-and-qooxdoo</guid>
      </item>
            <item>
         <title>How To Install Grails on Ubuntu</title>
         <link>http://www.mengu.net/post/how-to-install-grails-on-ubuntu</link>
         <description><![CDATA[<p><a href="http://www.grails.org">Grails</a> is a web framework built on <a href="http://groovy.codehaus.org/">Groovy</a> which runs on Java Virtual Machine. Grails was first named as Groovy on Rails but after creator of <a href="http://www.rubyonrails.org">Ruby on Rails</a> requested "on Rails" suffix to be dropped and the name has changed into Grails which I think is really nice. In this simple tutorial, I explain how to install Grails on Ubuntu.</p>
]]></description>
         <pubDate>2009-11-21 07:15:46</pubDate>
         <guid>http://www.mengu.net/post/how-to-install-grails-on-ubuntu</guid>
      </item>
          </channel>
</rss>

