Quantcast
Channel: El blog de Deigote
Browsing latest articles
Browse All 19 View Live

Image may be NSFW.
Clik here to view.

Grails – my domain class instance says its class is abstract!

I recently faced a weird problem when using Grails and a domain class hierarchy that contained abstract classes, let’s say: abstract class A { ...} abstract class B extends C { ...} class C extends A {...

View Article



Image may be NSFW.
Clik here to view.

Grails – query or criteria against a string/value pairs map property

Grails has a feature that I find sometimes useful: mapping a simple map of string/value pairs using GORM. That is, given a domain class, if you create a property whose type is Map, and the name of the...

View Article

Image may be NSFW.
Clik here to view.

Grails – Is my bean a singleton?

At an interesting discussion about how to bulk-delete objects in Grails, I suggested using the sessionFactory bean to explicitly flush the session when required. One of the participants was concerned...

View Article

Image may be NSFW.
Clik here to view.

Fish shell – using modules to import functions

I recently decided to give fish shell a try. I’ve always been reluctant to change my shell: bash has certainly its flaws, but it is widely spread. But lately I’m trying to go easier on embracing new...

View Article

Image may be NSFW.
Clik here to view.

Grails – No such property for class:...

Behind that obscure title lies a problem that I recently had with Grails and that consumed half of my morning. The solution was rather simple but finding it was hard for me (although once it has...

View Article


Image may be NSFW.
Clik here to view.

Grails – Hibernate-safe domain class property editor

Grails automatic databinding is super powerful, but, at least in versions 2.2.x and below, is rather obscure and not very-well documented. Sometimes is not clear how a form input should be named...

View Article

Image may be NSFW.
Clik here to view.

Dropbox in docker

I was thinking of an easy way to backup the wp-content directory of my two blogs (the other one being Una Cerveza Al Día ) and Dropbox came to my mind: my space requirements are very modest, even for...

View Article

Gmail Sender – send emails from the command line

I had an itch that needed to be scratched already – in a couple of servers I maintain I had to send a few emails from some scripts, and having to install an SMTP server seemed like an overkill – one...

View Article


Feed My Files – build a feed from your filesystem

If for whatever reason you need to keep track of the new files being created on a remote filesystem, Feed My Files is your tool. It allows you to create a feed from a given path of the filesystem, and...

View Article


Human readable to camel case in Scala

After searching for a simple way to convert a string like I am a nice string (human friendly) into something like IAmANiceString (camel-case) and finding formulas only for the opposite, I decided to...

View Article
Browsing latest articles
Browse All 19 View Live


Latest Images