Posts

Showing posts from March, 2011

How to format a g:formatDate tag in grails

This is a simple snippet, but worthy of note! (1) Put this in the gsp <g:formatDate date="${theDate}" formatName="customDateFormat"/> (2) Put this in the grails-app\i18n\messages.properties customDateFormat=yyyy-MM-dd et voila!

Great tortiose SVN tip for bringing back deleted files

I found the following on stack overflow very useful! If you're using Tortoise SVN, you should be able to revert changes from just that revision into your working copy (effectively performing a reverse-merge), then do another commit to re-add the file. Steps to follow are: Browse to folder in working copy where you deleted the file. Go to repo-browser. Browse to revision where you deleted the file. In the change list, find the file you deleted. Right click on the file and go to "Revert changes from this revision". This will restore the file to your working copy, keeping history. Commit the file to add it back into your repository. hints: you can find the Revision number from the change logs, another good reason to make good commit commments! I repeated the steps again for one file and it didn't have all the above options. But once in the repo browser I found you the actions 'copy' and 'copy to working...'  after which you will then need

My First Post

I'll be using this blog to keep track of new stuff I'm learning with jquery, grails, javascript that I can't find easily documented. Also I'll be posting the css tricks I find and/or remember so I can keep them all in one place! Coming up soon: jquery validation plugin!