• submit to reddit
Dustin Marx12/20/12
4227 views
0 replies

Groovy JDK (GDK): Date and Calendar

Groovy makes working with dates and times a little easier when third-party frameworks are not available or cannot be used.

Zemian Deng12/12/12
5463 views
0 replies

Checking DB Connection Using Groovy

Here is a simple Groovy script to verify Oracle database connection using JDBC.

Geraint Jones12/05/12
7460 views
0 replies

Groovy's RESTClient with Spock Extensions

This post will describe how to use the RESTClient, how to inject it into a Groovy Spock test class via custom annotations, how to swap the injected client between a real one and a mocked one using Mockito, and how to test it.

Dustin Marx12/03/12
4309 views
0 replies

Scripted Reports with Groovy

The post will show how custom text-based reports of data stored in the database can be easily presented with Groovy. I will highlight several attractive features of Groovy along the way.

Hubert Klein Ikkink11/05/12
4445 views
0 replies

Gradle Goodness: Task Output Annotations Create Directory Automatically

One of the great features of Gradle is incremental build support. With incremental build support a task is only executed if it is really necessary. For example if a task generates files and the files have not changed than Gradle can skip the task. This speeds up the build process, which is good

Douglas Maxwell11/05/12
5961 views
4 replies

Why I Like Using Gradle in NetBeans IDE (Part 2)

Part 1 of the NetBeans/Gradle series came from Martin Steffen in Uruguay. Below, in part 2, we travel to Scotland!  My name is Douglas Maxwell. I’m Scottish and  a Java software consultant specializing in financial apps. 

Mitch Pronschinske11/05/12
32290 views
1 replies

We Need a Programmer for President

Today, I'm going to present a new presidential candidate... A software developer candidate. This candidate is going to address the issues that the IT world cares about. Will you support them?

Hubert Klein Ikkink11/04/12
3749 views
0 replies

Gradle Goodness: Init Script for Adding Extra Plugins to Existing Projects

Gradle is very flexible. One of the ways to alter the build configuration is with initialization or init scripts. These are like other Gradle scripts but are executed before the build. We can use different ways to add the init script to a build. For example we can use the command-line option -I or --init-script, place the script in the init.d directory of our GRADLE_HOME directory or USER_HOME/.gradle directory or place a file init.gradle in our USER_HOME/.gradle directory.

Peter Pilgrim11/02/12
5949 views
0 replies

A Groovy Script to Keep The Internet Cafe WiFi From Dropping

Have you ever been to an Internet Cafe and connected to the free WIFI? Have you found that after five minutes of activity the connection has been dropped and you have go through the License and Terms of Agreement again and again and again? Annoying isn’t it?

Martin Steffen10/25/12
7897 views
6 replies

Why I Like Using Gradle in NetBeans IDE (Part 1)

Greetings from Montevideo, Uruguay! My name is Martin Steffen and I use NetBeans IDE in my work as a developer. Also, I use NetBeans IDE in my career as a student. I use NetBeans IDE for all my projects and always have installed the latest NetBeans...

Stoimen Popov10/22/12
10113 views
1 replies

Algorithm of the Week: Bellman-Ford Shortest Path in a Graph

As we saw in the previous post, Dijkstra's algorithm is very useful when it comes to finding all the shortest paths in a weighted graph. However, it has one major problem! Obviously it doesn’t work correctly when dealing with negative lengths of the edges.

Hubert Klein Ikkink10/22/12
4973 views
1 replies

Grassroots Groovy: Parse XML with XmlSlurper from Java

We can introduce Groovy into our Java projects at grassroots level. Even if we aren't allowed to run the Groovy compiler we can use other ways to run Groovy code. As long as we can include the Groovy libraries as a compile dependency than we can already use Groovy from Java. In this post we see how we can use the power of XmlSlurper to parse XML from our Java code.

Mitch Pronschinske09/26/12
6501 views
0 replies

Connect With DZone at JavaOne 2012!

This is our call to all DZone community members who will be attending the conference next week! Please get in touch with us and let's make plans to meet and talk.

John Cook09/21/12
6381 views
0 replies

How Much Longer Will Computer Science Departments Last?

If other departments aren't satisfied with the education their students are getting from the computer science department, they will start teaching their own computer science classes.

Swizec Teller09/20/12
5398 views
9 replies

Fizzbuzz Without Ifs in 90 Characters -- I'll Buy You a Beer if You Can Beat It

A solution to the fizzbuzz problem that relies on Python’s interactive command line interpreter to do the printing, shaving off 4 characters for print. Can you beat it?