Today's fun with Grails

Posted by skelter Mon, 15 Dec 2008 21:54:00 GMT

def service = new WebAppService(name:'ww36',externalName:'ww36',host:'c0ww36',serviceName:'_resin-indigo',production:false)
println service.save()
println service.version
println service.requestSuccessful

def listthem = {
WebAppService.findAll().each {
  print "${it.name}-${it.status},"
}
}

listthem()

println 'Deleting ww36 records'
WebAppService.findAllByName('ww36').each { it.delete() }

listthem()

Posted in  | no comments

Go, Josh, Go!

Posted by skelter Thu, 04 Dec 2008 17:42:00 GMT

Josh is still working on the javafx web site. Looks like they are having a rough time deploying.

JavaFX website in transition

Josh is still working on the javafx web site. Looks like they are having a rough time deploying.

UPDATE: There they go, they got it now.

Screenshot-JavaFX - Mozilla Firefox

Posted in  | no comments

JavaFX presentation at AJUG

Posted by skelter Wed, 03 Dec 2008 22:30:00 GMT

Last night I made it to the AJUG in time to catch some pizza and listen to Josh Marinacci talk about JavaFX.

JavaFX looks very cool for developing rich applications deliverable over the web (or locally). It makes applets not suck, and UI development looks surreally easy.

My notes from last night:

  • Sdk will be available on http://JavaFX.com
  • Linux support not ready yet! Trajedy!!! “we are comitted to supporting it!”
  • New site will be cut over on Thursday. (I think Josh is doing it before he gets on a plane?)
  • Inkscape plugins by campus? ambassador? in Brazil

Very frustrated it won’t be available on Linux right away. For Mac will require 10.5+. requires Firefox 3 and IE 7. I think but am not sure that Safari will work.

Posted in  | Tags ,  | no comments

One-click deploy/configure for J2EE stack

Posted by skelter Tue, 28 Oct 2008 03:24:00 GMT

Today was supposed to be get-home-early-and-stirfry-pork-broccoli.

I’m working on a new deploy mechanism. We have 20-25 servers that we need to be able to one-click-install-and-configure the front two-thirds of a J2EE software stack, including IIS->Resin running on Windows, JBoss on Linux. My predecessor has a mouse-trap-game of ant scripts involving telnet to do it. “As long as nothing goes wrong, it works every time.”

Read more...

Posted in  | Tags ,  | no comments

apache commons exec

Posted by skelter Mon, 27 Oct 2008 20:24:00 GMT

Not finding an available commons-exec module in the maven repos, but found one by criticalsection.org. Thanks guys!

     <!-- dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-exec</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency --> 
        <dependency>
            <groupId>org.criticalsection.commons-exec</groupId>
            <artifactId>commons-exec</artifactId>
            <version>1.0-cs-01</version>
        </dependency> 

Posted in  | no comments

Wicket quick start

Posted by skelter Mon, 27 Oct 2008 16:02:00 GMT

Evaluating wicket via a maven quickstart.

Read more...

Posted in  | no comments

jConsole and jmx

Posted by skelter Fri, 17 Oct 2008 16:20:00 GMT

I now have a real-time peek into heap and non-heap memory usage on a production server. PermGen dooms us.

Posted in  | no comments

Learning Idioms

Posted by skelter Thu, 16 Oct 2008 22:49:00 GMT

There’s learning idioms and there’s learning idioms.

Learning idioms, as in gaining knowledge of idioms, in a natural language as well as programming language. I don’t know that it is a specific skill, but it is definitely a general quality that is very useful in becoming productive in a new language. I have to think the two are related.

Made me think if idioms of learning. Will have to contemplate this. Generalized learning idioms might be useful in AI, but then might be useful in the real world, too, especially if you like to over-think things.

Posted in  | no comments

NFJS wrapup

Posted by skelter Thu, 16 Oct 2008 22:46:00 GMT

wrap up some straggler blog notes about nfsf.

git: Version control very popular among the presentorgencia? (presentatti?) seemed uncomfortably unstructured, but will have to look into it.

Brian Geotz’s are always great, and the Java Memory Model talk was worth the time. This will become more important as we look at things like terracotta.

Architecture and Scaling by Ken Sipe inspired me to set up the scaling lab at work and get some real numbers out of our application.

Leading Agile Projects by David Hussman. I think what I need next in my career is some bone-head manager training. My people leading and direction skills are not geared to what I am having to deal with at work right now.

Ted Neward was using the Komodo editor in a pinch during his magic show act.

In the roundtable/grilling/QA, one of the presenters mentioned Bill Gates going on a reading weekend. I thought this was a full week. I was right, and it even has a name:Think Week.

I need to google a bunch of things, including

I’ll update this post with links as I go.

Did you know you can just randomly put curly braces in a Java class, outside of a method. Uhh. Kind of a party trick. I’m not sure if it’s gross or not.

Posted in  | Tags  | no comments

Playing with TerraCotta 2.7.0

Posted by skelter Tue, 14 Oct 2008 16:41:00 GMT

I am playing with Terracotta clustering, the way it should be: on different machines.

Obstacle 1 - Binding to non-localhost address

  1. edit top level tc-config.xml <server> entry to bind to the public address
  2. Add a server line to the ClusteredHelloWorld/tc-config.xml to specify the server at that address

Obstacle 2 - Remote terracotta admin console access

Solution:

  1. Double check that the RMI stubs handed out are pointing to the resolvable hostname and not localhost or myhostname.local. See this helpful blog on hostname resolution on linux
  2. Enable authentication. admin console reports a timeout, but you are able to telnet to the port just fine, ruling out firewall issues. Server’s jmx is apparently handing out stubs, but still no joy. Turn on authentication and make sure the properties are set up, and admin console will prompt you for a username and password. See terracotta’s jmx guide. Would be nice if admin console helped diagnose this.

Conclusion - promising

Got the HelloClusteredWorld example going on two different machines hitting the same cluster. It’s a brain-dead hammering of a clustered object so I can see some performance grief, but it seems to be working find. This looks very promising. I am going to have to try some non-trivial prototypes.

Next stop: learn about ehcache.

Posted in  | Tags  | no comments

Older posts: 1 2 3