Author Archives: asoftwareguy

How to remove execute bit from files in Git

Occasionally, files get committed to source control having the wrong file permissions. Either they don’t have execute when they should, or they have execute when they shouldn’t, just for example. I came across this a couple of weeks ago and … Continue reading

Posted in bash, Git, Scripting, Source Control | Tagged , , , , , , | Leave a comment

Spring Security with Grails 3

I am a big user and advocate of Grails, and I was curious about working with Grails 3, so I started taking a look at it during the M2 release. Most of the applications I work on require authentication/authorization, and … Continue reading

Posted in Grails | Tagged , , , , , , | 3 Comments

Interesting use of Java 8 interface default method

Intro I was in the middle of trying to implement a type of validation on my current project at work. Said project uses Java 7, and the problem had to do with an interface extending another interface. I was literally in the middle … Continue reading

Posted in Java, Java 8, Uncategorized | Tagged , , , , | 1 Comment

Get the IP address for a host name in Groovy

I was playing around with some Groovy scripts and looking at some neat tip and tricks on how Groovy can simplify what would have taken a lot more code in Java. Here is one that came up with: print out … Continue reading

Posted in Groovy | Tagged , , , , | 1 Comment

Using Grails REST for authentication in an AngularJS SPA

Introduction I have played around with AngularJS for a few weeks now. I like how it provides for separation of concerns on the client-side that us server-side programmers prefer. I have built a couple of controllers that are retrieving data … Continue reading

Posted in AngularJS, Grails | Tagged , , , , , | 37 Comments

Grails 2.3 Maven dependency caching issues

tl;dr version: Change BuildConfig.groovy to reference your local mavenRepo repository as: Long version: If you have played around with Grails 2.3, you know that the project has switched to Maven (Aether, actually) as default for dependency resolution, as opposed to … Continue reading

Posted in Grails, Maven | Tagged , , , , | 2 Comments

SpringOne 2GX Wrap-up

(I have been meaning to post this for a while, but life has caught up with me, including my company’s tech conference, where I was a speaker in one session and a panelist in another.) On September 9-12, I had … Continue reading

Posted in Grails, Groovy, Spring | Tagged , , , , , , , , , | Leave a comment