Since I’ve started doing some stuff in Grails lately I’ve virtually been forced to start looking for an alternative IDE. I’ve been an Eclipse guy for the last five years or so; ever since I got out of the JBuilder swamp. Unfortunately, the only IDE with decent support for Grails seems to be Idea (yes [...]
Setting Up Grails Projects in IntelliJ Idea
September 6th, 2009 by Mattias Hellborg Arthursson — Java, Tips & Tricks
Tags: buildconfig, grails, idea, intellij, programming, setup, tools
Maven automatic build versioning and Git against Subversion
June 4th, 2009 by Erik Ogenvik — Tips & Tricks
If you use Git locally against a Subversion repository you might run into problems if your project is set up to generate automatic build numbers through the buildnumber-maven-plugin, since the plugin might be setup to get the build numbers from Subversion. Through some use of additional profiles you can work around this.
Tags: git, maven, programming, subversion, tools, version controlling
Mocking static methods in Java system classes
May 17th, 2009 by Johan Haleby — Java, Testing
As you may already know PowerMock can be used to easily mock static methods which is normally not possible with standard mock frameworks such as EasyMock, JMock or Mockito. All you have to do is to use mockStatic in one of the PowerMock extension API’s as well as telling PowerMock to enable the class for [...]
Tags: frameworks, open source, powermock, tdd, tools
Transparent bind of JavaFX and POJOs
May 12th, 2009 by Magnus Robertsson — Java, Tips & Tricks
When I started coding JavaFX I quickly found that the great bind mechanism doesn’t work together very well with my legacy Java code. In fact, it doesn’t work at all. In my case I wanted to reuse my domain objects and just add a fancy user interface on top of it. This happen to be [...]
Tags: aop, javafx, programming, scripting, tools
Blogging Among the Clouds
May 7th, 2009 by Henrik Bernström — Cloud, Tips & Tricks
Up until now this WordPress blog has been hosted by DreamHost, a company with a good reputation and a solid knowledge in hosting. Unfortunately, the server we’ve been located on, Trafficante, have lately had some problems with stability and performance and DreamHost have also had some MySQL stability issues. This, plus the fact that we’ve [...]
Tags: amazon, dreamhost, ebs, ec2, linux, mysql, open source, php, s3, scripting, ssl, tools, web, wordpress
Working with SD cards in the Android emulator
April 22nd, 2009 by Mårten Österberg — Android, Embedded
Working with external storage in the Android emulator could be a little tricky and the documentation is not easy to find. I’ll try to give a brief walk through of the steps needed to create a SD card image, mount the image in Linux, put content on it and use it in the emulator. Creating [...]
Tags: linux, mobile, sdk, tools
WebLogic 10.3 JMX
April 9th, 2009 by Jan Kronquist — Java
I have been using Oracle WebLogic 10.3 for a while in my current assignment. I wanted to publish my own custom MBeans and be able to see and edit properties and invoke methods on them. However, the built-in management console does not support custom MBeans (without adding custom configuration). I ended up using JManage which is an open source management console implemented as a web application.
Setting up a local Subversion repository to use with your Eclipse
April 3rd, 2009 by Rickard Nilsson — Tips & Tricks
I’ve been spending some time studying a tool for looking at the structure of code bases. After having tried out some of the more basic possibilities I wanted to go for the finer points and study changes between two versions of code to see what effect my changes made. This is where I realise that [...]
Tags: eclipse, local, repository, subclipse, subversion, tools
Executable .jar, with onejar-maven-plugin
March 22nd, 2009 by Hugo Josefson — Java, Tips & Tricks
Onejar-maven-plugin collects your application including dependencies, into one executable jar. It’s both easy and works well!
(UPDATED for version 1.3.0. See below.)
It lets all your dependency jars stay jars, and your code is in its own jar. All of those jars are put in a bigger jar, which is made executable.
Configuration
It may sound weird, but it’s quite elegant! Just put this in your pom.xml‘s <plugins> tag to make it work:[...]
Tags: assembly, executable, jar, maven, onejar, open source, programming, tools
Mavenizing the Liferay Plugin SDK
March 14th, 2009 by Henrik Bernström — Java, User Experience
Liferay is the leading Open Source enterprise portal platform in the Java market. It’s certainly an impressive piece of software. I’ve been following it for some time now and the product is improving a great deal in many areas, perhaps most in end user usability. One area that, in my opinion, could still be improved [...]
Tags: archetype, artifact, liferay, maven, maven2, open source, plugin, portlet, sdk, tools, web
Encrypting Properties With Jasypt
December 9th, 2008 by Ulrik Sandberg — Java, Tips & Tricks
Properties are used in many Java applications as a simple way of separating parts that are likely to change, from the parts that are not that likely to change. Consider for example this typical bean definition in a Spring configuration file: <bean id="traditionalPersonDao" class="org.springframework.ldap.samples.article.dao.TraditionalPersonDaoImpl"> <property name="url" value="ldap://localhost:3901" /> <property name="base" value="dc=jayway,dc=se" /> <property name="userDn" [...]
Tags: properties, security, spring, tools
Neo4j matches my mental model of information
October 6th, 2008 by Mattias Ask — Java
I’m a visual person which means that I see pictures in my head when I think about abstract things like structure, code and information. My guess is that most people do, but anyway… When I first started looking at Neo4j I was blown away by how precise the graph database structure matched my mental model [...]
Tags: frameworks, graph database, neo4j, programming, tools
Squid, the caching proxy
June 6th, 2008 by Ulrik Sandberg — Tips & Tricks
I just checked out the old Squid again, the worlds most famous caching proxy. If you direct all your web access through the Squid proxy server, it will cache stuff after the first access. This would simplify for example for labs where fifty people simultaneously begin retrieving stuff from a Maven repo somewhere or downloading [...]
Tags: cache, network, performance, proxy, tools, web
Forensic tools, part 2
May 1st, 2008 by Tobias Södergren — Java
Have you ever been in the situation that an application behaves in strange ways and by the time you find out, you do not have access to your development environment. In this article we are discussing ways to pin- point the problem with tools available in the Sun SDK bin directory. In the first part [...]
My First Weekend With iPhone SDK
March 9th, 2008 by Fredrik Olsson — Embedded
My first reaction is that it is polished. Very polished. I have used the unofficial SDK for iPhone OS 1.x software, and nearly everything from iPhone OS 1.x has been redesigned. Small changes from renaming, to removal of changes, and addition of complete frameworks. Not only the provided Frameworks are polished even in beta, so [...]
Tags: frameworks, iphone, mobile, programming, sdk, tools
