<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PASOPAS</title>
	<atom:link href="http://www.pasopas.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pasopas.nl</link>
	<description></description>
	<lastBuildDate>Fri, 11 May 2012 05:36:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting the Enum from a String value</title>
		<link>http://www.pasopas.nl/2012/getting-the-enum-from-a-string-value-2/</link>
		<comments>http://www.pasopas.nl/2012/getting-the-enum-from-a-string-value-2/#comments</comments>
		<pubDate>Fri, 11 May 2012 05:36:18 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Geen categorie]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/?p=302</guid>
		<description><![CDATA[Ever asked yourself the question how you could get the Enum from a String value?&#160;This is particularly usefull when you use Enum values in your screens and pass back the value of the enum! &#160; http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html]]></description>
			<content:encoded><![CDATA[<p>Ever asked yourself the question how you could get the Enum from a String value?&nbsp;This is particularly usefull when you use Enum values in your screens and pass back the value of the enum!</p>
<pre class="brush: java; title: ; notranslate">

Enum.valueOf(YourClassName.class, &quot;String Value&quot;)
</pre>
<p>&nbsp;</p>
<ul>
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html">http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2012/getting-the-enum-from-a-string-value-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading Grails configuration files update!</title>
		<link>http://www.pasopas.nl/2012/loading-grails-configuration-files-update/</link>
		<comments>http://www.pasopas.nl/2012/loading-grails-configuration-files-update/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 18:42:23 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Groovy and Grails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2012/loading-grails-configuration-files-update/</guid>
		<description><![CDATA[We recently changed the way how we load configuration files in a Grails project. Normally we to use the .properties file format, but this has some serious disadvantages. You cannot deal with all Grails Mail settings in the configuration file You cannot use the log4j DSL to extract the logging [...]]]></description>
			<content:encoded><![CDATA[<p>We recently changed the way how we load configuration files in a Grails project. Normally we to use the .properties file format, but this has some serious disadvantages.</p>
<ul>
<li>You cannot deal with all Grails Mail settings in the configuration file</li>
<li>You cannot use the log4j DSL to extract the logging configuration outside your application</li>
<li>etc..</li>
</ul>
<p>In our hunt for a good way to load configuration files we asked question on the mailinglist and also found this <a href="http://www.baselogic.com/blog/development/java-javaee-j2ee/getting-grails-external-configuration-working-in-the-real-world/">blogpost</a> which was the start for our implementation of loading the external configuration files. We modified some small things and added a way of loading a configuration file that is resident in the root of a Grails project. So when developing with IntelliJ for example the config file is at your fingertips in the root of the application project structure. We must also note that we are very happy with the fact that the Grails community was more then helpfull in helping us out here!</p>
<pre class="brush: groovy; title: ; notranslate">
// -------------------------------------------------------------------------------- //
// - START: CONFIGURATION FILE LOADING -------------------------------------------- //
// -------------------------------------------------------------------------------- //
// locations to search for config files that get merged into the main config
// config files can either be Java properties files or ConfigSlurper scripts
def ENV_NAME = &quot;${appName}.config.location&quot;
if(!grails.config.locations || !(grails.config.locations instanceof List)) {
    grails.config.locations = []
}
println &quot;--------------------------------------------------------------------------------&quot;
println &quot;- Loading configuration file                                                   -&quot;
println &quot;--------------------------------------------------------------------------------&quot;
// 1: check for environment variable that has been set! This variable must point to the
// configuration file that must be used. Can be a .groovy or .properties file!
if(System.getenv(ENV_NAME) &amp;amp;&amp;amp; new File(System.getenv(ENV_NAME)).exists()) {
    println(&quot;Including System Environment configuration file: &quot; + System.getenv(ENV_NAME))
    grails.config.locations &amp;lt;&amp;lt; &quot;file:&quot; + System.getenv(ENV_NAME)

// 2: check for commandline properties!
// Use it like (examples):
//      grails -D[name of app].config.location=/tmp/[name of config file].groovy run-app
// or
//      grails -D[name of app].config.location=/tmp/[name of config file].properties run-app
//
} else if(System.getProperty(ENV_NAME) &amp;amp;&amp;amp; new File(System.getProperty(ENV_NAME)).exists()) {
    println &quot;Including configuration file specified on command line: &quot; + System.getProperty(ENV_NAME)
    grails.config.locations &amp;lt;&amp;lt; &quot;file:&quot; + System.getProperty(ENV_NAME)

// 3: check on local project config file in the project root directory
} else if (new File(&quot;./${appName}-config.groovy&quot;).exists()) {
    println &quot;*** User defined config: file:./${appName}-config.groovy ***&quot;
    grails.config.locations = [&quot;file:./${appName}-config.groovy&quot;]
} else if (new File(&quot;./${appName}-config.properties&quot;).exists()) {
    println &quot;*** User defined config: file:./${appName}-config.properties ***&quot;
    grails.config.locations = [&quot;file:./${appName}-config.groovy&quot;]

// 4: check on local project config file in ${userHome}/.grails/...
} else if (new File(&quot;${userHome}/.grails/${appName}-config.groovy&quot;).exists()) {
    println &quot;*** User defined config: file:${userHome}/.grails/${appName}-config.groovy ***&quot;
    grails.config.locations = [&quot;file:${userHome}/.grails/${appName}-config.groovy&quot;]
} else if (new File(&quot;${userHome}/.grails/${appName}-config.properties&quot;).exists()) {
    println &quot;*** User defined config: file:${userHome}/.grails/${appName}-config.properties ***&quot;
    grails.config.locations = [&quot;file:${userHome}/.grails/${appName}-config.properties&quot;]

// 5: we have problem!!
} else {
    println &quot;********************************************************************************&quot;
    println &quot;* No external configuration file defined                                       *&quot;
    println &quot;********************************************************************************&quot;
}
println &quot;(*) grails.config.locations = ${grails.config.locations}&quot;
println &quot;--------------------------------------------------------------------------------&quot;
// -------------------------------------------------------------------------------- //
// - END: CONFIGURATION FILE LOADING ---------------------------------------------- //
// -------------------------------------------------------------------------------- //
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2012/loading-grails-configuration-files-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading external Configuration files in a Grails application</title>
		<link>http://www.pasopas.nl/2011/loading-external-configuration-files-in-a-grails-application/</link>
		<comments>http://www.pasopas.nl/2011/loading-external-configuration-files-in-a-grails-application/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 12:20:24 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Groovy and Grails]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[grails]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2011/loading-external-configuration-files-in-a-grails-application/</guid>
		<description><![CDATA[The use of &#8216;Config.groovy&#8217; as a placeholder for configuration settings is nice, but not always sufficient. The &#8216;Config.groovy&#8217; file will get compiled and packaged inside the WAR file you are creating. If you want to externalize the configuration and have a need to configure settings outside the deployed (WAR file) [...]]]></description>
			<content:encoded><![CDATA[<p>The use of &#8216;Config.groovy&#8217; as a placeholder for configuration settings is nice, but not always sufficient. The &#8216;Config.groovy&#8217; file will get compiled and packaged inside the WAR file you are creating. If you want to externalize the configuration and have a need to configure settings outside the deployed (WAR file) application you can use property files (.properties) to achieve that. </p>
<p>A simple mechanism to load these property files is to place a short snippet of code in the &#8216;Config.groovy&#8217; that will load a specific configuration file from the filesystem, depending on the availability.</p>
<pre class="brush: groovy; gutter: true; first-line: 1">grails.config.locations = ["classpath:application-config.properties",
"file:./application-config.properties"]</pre>
<p>This snippet will first try to load the property file from the classpath and if that fails you have a backup on the filesystem. This opens opportunities to load a different property file during development! When you deploy the application you can place the &#8216;application-config.properties&#8217; file inside a folder which is available in the classpath. For Apache Tomcat this would be the &#8216;lib&#8217; folder! This gives the opportunity to configure the application outside the &#8216;Config.groovy&#8217; file so any changes made the the property file will be reflected in your environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2011/loading-external-configuration-files-in-a-grails-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving desktop toolbar on Linux Mint 11</title>
		<link>http://www.pasopas.nl/2011/moving-desktop-toolbar-on-linux-mint-11/</link>
		<comments>http://www.pasopas.nl/2011/moving-desktop-toolbar-on-linux-mint-11/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 07:39:33 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mint]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2011/252/</guid>
		<description><![CDATA[When using Linux Mint with an additional display there was no way i could get the toolbar moved to my external sceen. Eventually there seems to be a solution and that is to issue a terminal command. Open a terminal Issue the command &#8216;xrandr&#8217; this gives a list with displays [...]]]></description>
			<content:encoded><![CDATA[<p>When using <a href="http://linuxmint.com/">Linux Mint</a> with an additional display there was no way i could get the toolbar moved to my external sceen. Eventually there seems to be a solution and that is to issue a terminal command.</p>
<ul>
<li>Open a terminal</li>
<li>Issue the command &#8216;xrandr&#8217; this gives a list with displays that are attached to your system</li>
<li>Issue the command &#8216; xrandr &#8211;output &lt;displayname&gt; &#8211;primary&#8217; where you replace the &lt;displayname&gt; with the actual name of the display that is going to be used as primary display!</li>
</ul>
<p>Example:</p>
<ul>
<li>&#8216;xrandr &#8211;output HDMI1 &#8211;primary&#8217;</li>
</ul>
<p>Good Luck and Happy Minting</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2011/moving-desktop-toolbar-on-linux-mint-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Combining ImageMagick and Grails</title>
		<link>http://www.pasopas.nl/2011/combining-imagemagick-and-grails/</link>
		<comments>http://www.pasopas.nl/2011/combining-imagemagick-and-grails/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 07:05:31 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Groovy and Grails]]></category>
		<category><![CDATA[grails]]></category>
		<category><![CDATA[groovy]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/?p=192</guid>
		<description><![CDATA[When there is a need to work with images (thumbnailing, watermark, resize etc.) there is always ImageMagick that comes to the rescue. Combining this image utility powerhouse with the Grails framework is a task which can be easily accomplished. Steps: Install ImageMagick according to the installation instructions. It contains a [...]]]></description>
			<content:encoded><![CDATA[<p>When there is a need to work with images (thumbnailing, watermark, resize etc.) there is always <a title="ImageMagick" href="http://www.imagemagick.org/">ImageMagick</a> that comes to the rescue. Combining this image utility powerhouse with the Grails framework is a task which can be easily accomplished.</p>
<p>Steps:</p>
<ul>
<li>Install ImageMagick according to the installation instructions.</li>
<li>It contains a utility called <em>convert</em> which we will need later on! This utility takes care of the conversion of images to thumbnails, watermarks etc. So remember where this utility is installed on your system!</li>
<li>Make sure that ImageMagick is installed correctly be converting an image to a thumbnail by using the following command in a terminal.
<pre class="brush: bash; gutter: true; first-line: 1">/opt/local/bin/convert &lt;filename&gt; -thumbnail 70x70 &lt;thumbnail-filename&gt;</pre>
<p>example:</p>
<pre class="brush: bash; gutter: true; first-line: 1">/opt/local/bin/convert /tmp/image-001.jpg -thumbnail 70x70 /tmp/thumbnail-image-001.jpg</pre>
</li>
<li>Create some code that calls the ImageMagick convert utility with the correct parameters to enable you to achieve what you want. Something like below:
<pre class="brush: groovy; gutter: true; first-line: 1">def createThumbnail(File file) {
   def command = "/opt/local/bin/convert ${file.canonicalPath} " +
                 "-thumbnail 70x70 " +
                 "/images/thumbs" + File.separator + "${file.name}"
   def proc = Runtime.getRuntime().exec(command)
   int exitStatus;
   while (true) {
       try {
           exitStatus = proc.waitFor();
           break;
       } catch (java.lang.InterruptedException e) {
           log.debug("Creating thumbnail - Interrupted: Ignoring and waiting")
       }
   }
    if (exitStatus != 0) {
        log.error("Error executing command: exitStatus=[${exitStatus}]")
    }
    log.debug("Succesfully created thumbnail")
    return (exitStatus == 0);
}</pre>
</li>
</ul>
<p>The above should give you some idea on how you could integrate Grails and ImageMagick into your own application.</p>
<h2 id="referencelinks:">Reference links:</h2>
<ul>
<li><a title="ImageMagick" href="http://www.imagemagick.org/">ImageMagick</a></li>
<li><a title="Grails" href="http://www.grails.org">Grails</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2011/combining-imagemagick-and-grails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Vimball plugins when using Pathogen</title>
		<link>http://www.pasopas.nl/2010/installing-vimball-plugins-when-using-pathogen/</link>
		<comments>http://www.pasopas.nl/2010/installing-vimball-plugins-when-using-pathogen/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 14:05:17 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2010/installing-vimball-plugins-when-using-pathogen/</guid>
		<description><![CDATA[No need to discuss that [Vim][vim] is truly a great text editor. Wealth of features, great speed and extensive support for plugins. The installation of plugins is very easy. If you want to learn how to install plugins, make sure to check out the wiki. ##Pathogen When you instal a [...]]]></description>
			<content:encoded><![CDATA[<p>No need to discuss that [Vim][vim] is truly a great text editor. Wealth of features, great speed and extensive support for plugins. The installation of plugins is very easy. If you want to learn how to install plugins, make sure to check out the <a href="http://www.installationwiki.org/Installing_Vim_Scripts">wiki</a>.</p>
<p>##Pathogen<br />
When you instal a plugin one may copy the files to the plugin directory. In a later stage you also want to delete a plugin and then the hunt for files starts. You need to track down which files belong to the specific plugin you want to delete. <a href="http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen">Pathogen</a> to the rescue <img src='http://www.pasopas.nl/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Pathogen enables you to create sub-folders inside a bundle-folder which will acts a place holder for all your plugins nicely separated in a ‘folder per plugin’ structure. So if you need to delete a plugin then you just delete the correct plugin-folder and everything is gone.</p>
<p>Normal installation of a Vim script is standard, you create a sub-folder below the bundle-folder, copy the Vim script and all is ok. BUT when you want to use a <a href="http://www.vim.org/scripts/script.php?script_id=1502">vimball</a> then you need to do some additional steps.</p>
<p>* Create a folder in which you want to later on extract the vimball. Preferably below the ‘bundle’ folder.  </p>
<pre class="brush: shell; gutter: true; first-line: 1">mkdir ~/.vim/bundle/align</pre>
<p>* Open the vimball with command ‘:e &#8216;location of your vimball’/‘name of your vimball&#8217;  </p>
<pre class="brush: shell; gutter: true; first-line: 1">:e ~/Downloads/Align.vba</pre>
<p>* Tell Vim to use the vimball by issuing command ‘:UseVimball &#8216;location to extract’&#8217;  </p>
<pre class="brush: shell; gutter: true; first-line: 1">:UseVimball ~/.vim/bundle/align</pre>
<p>* Restart your Vim and your plugin should be available.</p>
<p>##Links<br />
* [Vim Homepage][vim]<br />
* [Installing Vim Scripts][installing_vim_scripts]<br />
* [Pathogen Vim Script][pathogen_vim_script]<br />
* [The modern Vim Config with Pathogen][the_modern_vim_config]</p>
<p>[vim]: http://www.vim.org/  &#8220;Vim Homepage&#8221;<br />
[installing_vim_scripts]: http://www.installationwiki.org/Installing_Vim_Scripts<br />
[the_modern_vim_config]: http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen<br />
[pathogen_vim_script]: http://www.vim.org/scripts/script.php?script_id=2332</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2010/installing-vimball-plugins-when-using-pathogen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Markdown on OSX and use it inside VIM</title>
		<link>http://www.pasopas.nl/2010/installing-markdown-on-osx-and-use-it-inside-vim/</link>
		<comments>http://www.pasopas.nl/2010/installing-markdown-on-osx-and-use-it-inside-vim/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 18:32:59 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2010/installing-markdown-on-osx-and-use-it-inside-vim/</guid>
		<description><![CDATA[Back again to one of my favorites which is called Markdown. Once every now and then i forget how easy it is. Normally i use Textmate to do all my writing, but recently i have picked up VIM to do some editing etc. Why i did chose VIM? I will [...]]]></description>
			<content:encoded><![CDATA[<p>Back again to one of my favorites which is called <a href="http://daringfireball.net/projects/markdown/">Markdown</a>. Once every now and then i forget how easy it is. Normally i use <a href="http://macromates.com/">Textmate</a> to do all my writing, but recently i have picked up <a href="http://www.vim.org/">VIM</a> to do some editing etc. Why i did chose VIM? I will not trouble you with that decision <img src='http://www.pasopas.nl/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Using Textmate everything is easy, but when you want to use Markdown inside VIM it is somewhat different. But anything is different when using VIM <img src='http://www.pasopas.nl/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>##Steps<br />
* download Markdown from [The home of Markdown][home_of_markdown], It’s usual place as this is a Perl script you need to put it somewhere so OSX is able to execute it.<br />
* start your terminal and create a directory inside ‘usr/local/bin’<br />
* extract the downloaded file and put the ‘Markdown.pl’ file inside the ‘user/local/bin’ directory<br />
* inside the terminal chmod the ‘Markdown.pl’ to 777<br />
* using the [Installing Markdown as OSX Service][osx_markdown_service] OSX Automator create a service to use Markdown<br />
* You are done… <img src='http://www.pasopas.nl/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>##Links<br />
* [The home of Markdown][home_of_markdown]<br />
* [TextMate][textmate]<br />
* [Vim][vim]<br />
* [Installing Markdown as OSX Service][osx_markdown_service]</p>
<p>[home_of_markdown]: http://daringfireball.net/projects/markdown/<br />
[textmate]: http://macromates.com/<br />
[vim]: http://www.vim.org/<br />
[osx_markdown_service]: http://gothick.org.uk/2010/08/04/installing-markdown-as-a-os-x-service-using-automator-in-snow-leopard/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2010/installing-markdown-on-osx-and-use-it-inside-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to Groovy &amp; Grails</title>
		<link>http://www.pasopas.nl/2010/introduction_to_groovy_and_grails/</link>
		<comments>http://www.pasopas.nl/2010/introduction_to_groovy_and_grails/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 17:48:20 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Groovy and Grails]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[grails]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[presentations]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2010/untitled/</guid>
		<description><![CDATA[Recently i had the opportunity to show an exciting crowd a presentation about [Groovy][groov] &#038; [Grails][grails]. This happend during the [Devnology Community][devnology] Event at Baarn. If you want to view the presentation [check it out here!][presentation]. ##Links: * [Groovy][groov] * [Grails][grails] * [Presentation Introduction to Groovy and Grails][presentation] * [Devnology][devnology] [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i had the opportunity to show an exciting crowd a presentation about [Groovy][groov] &#038; [Grails][grails]. This happend during the [Devnology Community][devnology] Event at Baarn. If you want to view the presentation [check it out here!][presentation].</p>
<p>##Links:<br />
* [Groovy][groov]<br />
* [Grails][grails]<br />
* [Presentation Introduction to Groovy and Grails][presentation]<br />
* [Devnology][devnology]</p>
<p>[groov]: http://groovy.codehaus.org/<br />
[devnology]: http://www.devnology.nl<br />
[presentation]: http://slidesha.re/cfL3eH<br />
[grails]: http://www.grails.org/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2010/introduction_to_groovy_and_grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cinch &amp; Rightzoom</title>
		<link>http://www.pasopas.nl/2010/cinch-rightzoom/</link>
		<comments>http://www.pasopas.nl/2010/cinch-rightzoom/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 04:30:08 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2010/cinch-rightzoom/</guid>
		<description><![CDATA[Als je net als ik werkt met verschillende besturingssystemen dan komt het soms voor dat je sommige zaken uit een bepaald besturingssysteem graag zou willen overnemen in een ander. Goed voorbeeld hiervan is [Windows 7 Aero Snap][aerosnap] wat bijzonder prettig werkt. Op een Mac kun je zoeken wat je wil [...]]]></description>
			<content:encoded><![CDATA[<p>Als je net als ik werkt met verschillende besturingssystemen dan komt het soms voor dat je sommige zaken uit een bepaald besturingssysteem graag zou willen overnemen in een ander. Goed voorbeeld hiervan is [Windows 7 Aero Snap][aerosnap] wat bijzonder prettig werkt. Op een Mac kun je zoeken wat je wil maar standaard zit het er gewoon niet in. Om dit op te lossen gebruik ikzelf [Cinch][cinch] van Irradiated Software. Als je bij het opstarten van Cinch even 3 tellen kan wachten dan is het volledig gratis. (NagWare) Wil je van die 3 seconden af dan kost het je een kleine vergoeding van 7 dollar.</p>
<p>Naast Windows Areo Snap betrap ik mezelf er ook nog wel eens op dat ik van het ‘groene’ balletje in de schermen van Mac OSX verwacht dat het zorgt voor volledige vergroten van het huidige scherm. Helaas…. soms gaat het zoals verwacht maar soms ook niet. Hiervoor is ook een oplossing in de vorm van [Rightzoom][rightzoom] wat eveneens gratis is. Dit keer zonder NagWare <img src='http://www.pasopas.nl/cms/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>##Links<br />
* [Windows Aerosnap][aerosnap]<br />
* [Cinch][cinch]<br />
* [Rightzoom][rightzoom]</p>
<p>[aerosnap]: http://windows.microsoft.com/en-US/windows7/products/features/snap<br />
[cinch]: http://irradiatedsoftware.com/cinch/<br />
[rightzoom]: http://www.blazingtools.com/downloads.html#RightZoom</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2010/cinch-rightzoom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using MySQL instead of in-memory database for a Grails application</title>
		<link>http://www.pasopas.nl/2010/using-mysql-instead-of-in-memory-database-for-a-grails-applications/</link>
		<comments>http://www.pasopas.nl/2010/using-mysql-instead-of-in-memory-database-for-a-grails-applications/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 06:49:35 +0000</pubDate>
		<dc:creator>Marco Pas</dc:creator>
				<category><![CDATA[Groovy and Grails]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[grails]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.pasopas.nl/2010/using-mysql-instead-of-in-memory-database-for-a-grails-applications/</guid>
		<description><![CDATA[A Grails application by default uses a in-memory HSQL database. To switch to a MySQL database the steps are simple and straightforward. * Download the MySQL JDBC driver [called a connector] from the [MySQL website][1] * Extract the zip or tar archive * Copy the driver (at this time of [...]]]></description>
			<content:encoded><![CDATA[<p>A Grails application by default uses a in-memory HSQL database. To switch to a MySQL database the steps are simple and straightforward.</p>
<p>* Download the MySQL JDBC driver [called a connector] from the [MySQL website][1]<br />
* Extract the zip or tar archive<br />
* Copy the driver (at this time of writing called `mysql-connector-java-5.1.13-bin.jar` into the `grails-app/lib` directory</p>
<p>* Configure your application datasource in file &#8216;grails-app/conf/DataSource.groovy&#8217;</p>
<pre class="brush: groovy; gutter: true; first-line: 1">development {
 		dataSource {
 		dbCreate = "create-drop" // one of 'create', 'create-drop','update'
 		url = "jdbc:mysql://localhost/"
 		driverClassName = "com.mysql.jdbc.Driver"
 		port =  // default 3306
 		username = ""
 		password = " "
 	}
}</pre>
<p>Use your own database settings!</p>
<p>* Start your Grails application</p>
<p>[1]: http://dev.mysql.com/downloads/connector/j/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pasopas.nl/2010/using-mysql-instead-of-in-memory-database-for-a-grails-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

