Category Archives: Programming

Programming articles.

Bind Shortcut Keys on Linux with XBindKeys

A while ago I posted a tutorial on how to map a key with awesome to take a screenshot, well in case you don’t use Awesome (a shame if you don’t) or if you want another, possibly easier way to … Continue reading

Posted in Howto/Tutorial, Programming | Tagged , , , , , , , , , | View Comments

Groovy/Grails BBCode Markup Tutorial

I recently took it upon myself to implement a BBCode codec class for Groovy/Grails, and this is what I came up with. class BBCodeCodec {   static map = [ ‘[b](.*?)[/b]‘:’<strong>$1</strong>’, ‘[i](.*?)[/i]‘:’<em>$1</em>’, ‘[url=(.*?)](.*?)[/url]‘:’<a href="$1" target="_blank">$2</a>’, ‘[url](.*?)[/url]‘:’<a href="$1">$1</a>’ ]   static … Continue reading

Posted in Howto/Tutorial, Programming | Tagged , , , , , , , , | View Comments

Grails Quick And Easy Ajax Shoutbox

I recently had to make a shoutbox and I wanted to do it with Ajax in grails, so I’ll show you how it’s done. First thing’s first, let’s create the domain class and the controller for the shoutbox: grails create-domain-class … Continue reading

Posted in Howto/Tutorial, Programming | Tagged , , , , , , , | View Comments

How To Import A Grails 1.3+ Project To Eclipse STS

Since around grails 1.3ish, they have stopped autogenerating eclipse and netbeans project files because STS handles it itself. So what does that mean for people who start at the commandline and then want to go to STS? Well at first … Continue reading

Posted in Howto/Tutorial, Programming | Tagged , , , , , , , , , , | View Comments

Replacement Form Item For Grails to-Many Relationships

By default, grails just gives users a multi-select box when dealing with to-Many relationships in views. It’s damn ugly and incredibly ineffective if an end user is dealing with tons of things to select from. After tolerating it for a … Continue reading

Posted in Howto/Tutorial, Programming, Scripts | Tagged , , , , , , , | View Comments