Quantcast
Channel: saltnlight5
Browsing all 68 articles
Browse latest View live

Checking DB Connection Using Groovy

Here is a simple Groovy script to verify Oracle database connection using JDBC. @GrabConfig(systemClassLoader=true) @Grab('com.oracle:ojdbc6:11g') url=...

View Article



Creating Oracle Stored Procedure Using Java

Did you know you can write Oracle database stored procedure in Java? Give this a try in your sqlplus prompt.  sql> create or replace and compile java...

View Article

Checking DB Connection Using Java

For the sake of completeness, here is a Java version of the Groovy post to test your Oracle Database connection.  package atest; import...

View Article

Intellij IDEA is Pretty Awesome!

Did you know IntelliJ IDEA has a free Community Edition you may download? I've been test driving it, and I will post few things I learned so far. Here are...

View Article

Getting Started with Quartz Scheduler on MySQL Database

Here are some simple steps to get you fully started with Quartz Scheduler on MySQL database using Groovy. The script below will allow you to quickly experiment...

View Article


A Simple Groovy Issue Tracker Using File System

 It's a chao not to track bugs and feature requests when you developing software. Having a simple issue tracker would make managing the project much...

View Article

A Strange case of Java Generic and Inheritage Parameter Passing

I came a cross some strange Java code and I would like to share it here. Take a look few of classes I have here:// file: AFoo.java package atest.deng; public...

View Article

Reading https URL From a Self-Signed Cert

 Groovy has made fetching data from URL a snap:println(new URL("http://www.google.com").text)But have you ever try to get data from an https of an site...

View Article


Java Implementation of String#next() Successor

I've found the Ruby's String#next() or #succ very useful and productive, specially when generating data for testing. Here is what the Ruby doc says: succ...

View Article


Apache Tapestry 5 Makes Java Web Development Easy

I went through the Apache Tapestry 5 tutorial today and found it surprisingly easy to use. The two most productive features I love are auto class reloading...

View Article

Fast Shell Utilities to Report Maven's Unit Tests Results

I would like to share a couple of shell utilities that I have collected. These are for fast Maven multi modules reporting from your unit tests results,...

View Article

A Few Notes About Java clone() Method

Did you know you can create new Java instance without constructor? That's right, and this feature is brought to you by the Java clone() method. I personally...

View Article

How to Bring Pseudo Code to Life

When designing a piece of software, I like to start with some pseudo code first, then work my way out. I tend to try mapping out the normal workflow (one...

View Article


Carry Your Sword and Dagger Programmers!

A knight would for sure carry his sword proudly and ready for any battles. But then he can not use such a heavy weapon for daily tasks such as peeling an...

View Article

Choosing Technology Stack to Build a Common Platform

There are many talks in Java community about Spring vs Java EE, and how one group would argue you should use one and not other etc. When I see this, I can't...

View Article


MySchedule 3.2.0.0 FINAL is released

Hi folks,I have tagged the 3.2.0.0 release of the MySchedule project today. This is the first stable release of the version 3 branch line of the project. In...

View Article

Taming the JMX on WebLogic Server

Let assume couple things first: 1) I assume you have heard of Java’s JMX features and familiar what it does (expose and manage your service remotely)....

View Article


How to Zip Up a Release From a hg Repository

Did you know hg archive command can quickly zip up your project by given a revision or release name? This is very handy to package up a...

View Article

How to Manage Maven Third Party Jars

When you find yourself the need to load third party jars into Maven repository, there are few steps you normally do to test it out. You first install them...

View Article

How to Convert Asciidoc Text to HTML using Groovy

Here is how you can convert asciidoc text using a Groovy script: // filename:...

View Article
Browsing all 68 articles
Browse latest View live




Latest Images