Links

Groovy PowerPoint DSL

Groovy PowerPoint DSL supports the following features:

* Slides with titles
* Bullets, which can be added to the slides
* Textboxes, which are large text area's
* Imageslides, which are slides consisting of only images. This is to support all the 'Beyond Bullet Points' lovers ;-)

Example:

builder.slideshow(filename:'Test.ppt') {
slide(title: 'Introduction') {
bullet(text: 'Bullet 1')
bullet(text: 'Bullet 2')
}
slide(title: 'Slide 2') {
bullet(text: 'Bullet 3')
bullet(text: 'Bullet 4')
}
slide(title: 'Example') {
textbox("""This is a slide
With a lot of extra lines
Which make no sense
At all""")
}
imageslide(src:'background.png')
}

http://dontmindthelanguage.wordpress.com/2009/02/27/groovy-powerpoint-dsl/

Filed under  //   dsl   groovy   powerpoint   presentation  
Posted December 9, 2009 by email 

YouDebug: Java program that lets you script a debug session through Groovy

Here is the problem; your program fails at a customer's site with an exception, but you can't (or don't want to) reproduce the problem on your computer, because it's too time consuming. If only you could attach the debugger and collect a few information, you can rapidly proceed on fixing the problem. But running a debugger at a customer's site is practically impossible; if the user isn't a techie, it's out of question. Even if he is, you'd still need the source code loaded up in the IDE, then you have to explain to him where he needs to set breakpoints and what to report back to you. It's just too much work.

That's where YouDebug comes into play. YouDebug is a Java program that lets you script a debug session through Groovy. You can think of it as a programmable, non-interactive debugger --- you can create a breakpoint, evaluate expressions, have it dump threads, and a lot more, without requiring any source code. Your customer can just run the tool with the script you supplied, without any knowledge about Java.

YouDebug uses the same Java Debug Interface that IDEs use, so from the point of view of your program, YouDebug behaves as a debugger. Therefore you need not do anything special with your program.

In this way, the troubleshooting of your program gets a lot easier.

http://youdebug.kenai.com/

Filed under  //   debugging   DSL   groovy   java   JDI  
Posted November 10, 2009 by email