Posted by – September 15, 2008
Sometimes I remeber to visit TSS site to check some news about Java world, one of the threads that catch my attention was the article about use Raven to build Java projects, Raven allows to use your DSLs to write build files on top of Java language, with these DSLs you can do much more than any other build system like Ant but with less code.
You can define your own DSL to solve a specific problem, Raven uses a DSL to write builds scripts, but you can use DSLs to generate XML content, RSS content, HTML pages, SQL statements, create swing applications and to perform unit conversions.
But what about Gracelets? What’s it for?
Posted by – March 31, 2008
I have been working with regular expressions in Java, regular expressions are very useful to retrieve some data based on document structure. In my example I’m extracting cellular model and brand based on particular html document structure, take a look on html code below:
Regular expressions sample data
<font style="font-size: 8pt;" face="Verdana"><br />
</font><font face="Verdana" size="1"><b>
CDM 9500</font></a><font size="1">
PDA - (Thera)</font></a><font size="1">
PDA - PPC6600 (Harrier)</a>
<font style="font-weight: 700;"
CB 0870 BR (PoZ)</font></a><font size="1">
CB 0880 BR (Triton)</font></a><font size="1">
CP X315 BR (PoZ EVDO)</a>
</font><b><font face="Verdana" size="1">
Posted by – March 6, 2008
Yesterday I started to think about how can I use languages like Groovy, JRuby, Jython or Scala with JSF, after some research I found a elegant way to do it, in order to do that, you must add the following jars to your project:
Now you must create the necessary configuration files:
Posted by – February 28, 2008
I started my study about grails few weeks ago, grails is a rad framework, very similar to Ruby on Rails but with a lot of nice features, one of them is the builtin support for rest webservice, you just need create your domain and controller classes, start the application and then you can submit your xml over GET, POST, PUT and DELETE methods! Very easy and handy!
You only need type these command on command line window:
grails create-app restservice
grails create-domain-class Person
grails create-controller Person
Now you must edit Person.groovy at restservice/grails-app/domain folder and then add Person class properties like below:
Posted by – October 11, 2007
After some years away from mobile world I finally back with mobile development, I’ve been working on a application that solves some server management tasks like start/stop services, this application consists of two parts, a webservice written in Groovy and the J2ME client. The J2ME client can call webservice methods that will execute these management tasks, like a remote control.