by David Orriss Jr | Nov 25, 2014 | Java, Mac OS X
Thanks to superuser.com I found a neat trick to make it easy to list your installed Java versions and switch between them. Just add these to your .bashrc file: # # # alias java_ls='/usr/libexec/java_home -V 2>&1 | grep -E "\d.\d.\d[,_]" | cut -d...
by David Orriss Jr | Sep 26, 2014 | Linux, Operating Systems
Recently the events concerning the Shellshock exploit have been all over the media. This one is bad.. real bad: Remote exploit vulnerability in bash CVE-2014-6271 However it’s entirely possible that your Linux distribution might not have a patch readily...
by David Orriss Jr | Apr 9, 2013 | Grails, Groovy Language
At some point in your Grails application development you’ll find yourself invariably needing your application to send mail. With the Grails mail plugin, it’s a snap. Essentially the mail plugin is a wrapper to configure a Spring MailSender instance. And...
by David Orriss Jr | Aug 12, 2012 | Grails, Groovy Language
When developing a Grails app, you don’t always have the luxury of using GORM (the Grails ORM) ‘out of the box’ against new schemas. Sometimes you just have to work with legacy data as you get it with little modification (if any). Today I’m...
by David Orriss Jr | Jul 22, 2012 | Java, Programming
Today I’m going to go ‘back to basics’ a bit and talk about string manipulation in Java. In particular, let’s talk about reversing a string. Something that is taught in every 100-level computer science class. The premise is simple enough. Take...