What’s next

February 4, 2009

Debugging Java web applications

Filed under: Java — stigl @ 10:56 pm
Tags: , , , ,

Debugging Java web applications is often necessary, but setting it up on different vendors can be difficult.
However, there is a generic, easy way to do this by setting the JVM running the web server in debug mode.

Jetty and Maven


export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n"
mvn jetty:run

Set up your IDE for remote debugging on port 4000 and you’re laughing!
idea-remote-jetty-debugging

Advertisements

January 19, 2009

Neo4J as a Grails backend

Filed under: Grails,Java — stigl @ 3:07 pm
Tags: , , , , , , ,

This post is a reply to @EmilEifrem‘s twition.

Neo4J could be a nice extension as a Grails’ persistence backend, similar to a DB, space or LDAP. The problem today is that GORM is tightly coupled to Hibernate. Looks like @GraemeRocher is in the works of extracting Hibernate as a plugin, from which one can use other persitence plugins. Absolutely looking forward to that. (Graeme, please document what defines the folders which contain domain classes, controllers and views, so they can be changed!).

@Nawroth recommended using Neo4J through a JCR layer, though theres no implementation for Grails or Neo4J. The motivation for this is to be able to use the nice features such as MyPersonNode.find(), trinity.save() … Recommend watching this clip 4 intro to Grails.

What can be done today is just using the Neo4J jar in Grails as it is. But the magic of  GORM that makes Grails so different, compared to regular Java won’t exist…

December 23, 2008

GStreamer – multimedia fun on a plugin architecture

Filed under: Architecture,Java — stigl @ 11:25 pm
Tags: , , , , , , ,

I’ve poked around GStreamer and the bindings for Java. GStreamer is a framework for “constructing graphs of media-handling components”. For example a video player from “scratch”. (more…)

December 9, 2008

Java on PS3

Filed under: Java — stigl @ 10:00 am
Tags: , , , , ,

Today, I saw a Java Powered logo on the side of my PS3 box. Hmm… What does that mean?

If you install linux on the PS3, it can ofcourse run Java. But my sources indicate that it has little resources, and the requirements for installing are a little tough for the regular gamer.

The JVM installed on PS3 is placed there to meet the BluRay standard to show menus and stuff, called BD-J. From what I can gather after a quick Google, its an interpreted JVM, which is far slower than a regular Sun JVM. The PS3 is claimed to be one of the fastest, but probably not optimized in any way to cater for the multitude of Cell processors. And the BD-J does not help running Java applications in the web browser.

So, why would we want a native JVM on the PS3 specialized for Cell? Because it’s damn cool 🙂 Perhaps for running web servers. But a JVM capable of running Applets in the PS3 Web Browser could mean that Sony could capitalize on the enourmous amounts of Java games located on the web available freely to PS3 owners. Ofcourse, the native games will still have better funding and perform better, but allowing free applications could create the same community of developers and games as Apple has benefited from. Without the drawback of locking in developers to a single platform.

Update

Apparently, running games off a USB memory stick works. Will be back with more on the subject

December 6, 2008

Groovy does Neo4J thanks to Maven Simplicity

Filed under: Groovy,Java — stigl @ 11:54 pm
Tags: , , , , ,

Guillaume Laforge, Groovy Project Manager, kicked off a debate on the Neo4J mailing list with his post Groovy and Neo4J. He stated some examples of how Neo4J could be more Groovy. However, since most Neo4J developers aren’t familiar with Groovy, the topic wasen’t tested out further.

Therefore, with of my L337 skillz in Groovy, Neo4J and Maven, I saw it my destiny to create a simple Neo4J test in a Groovy environment to validate Guillaume’s propositions. Along the way, I had to add some GMaven magic, embedded Neo4J, Mercurial version control and Maven Archetype for distribution. No wonder why I didn’t get this out the door yesterday! 😉
(more…)

November 12, 2008

Idea for create-archetype-from-existing-project plugin

Filed under: Idea,Java — stigl @ 8:27 am
Tags: , ,

The project I’m working on is teh best, and I don’t have time to create an archetype from it! Why should I need to structure the project in a different way to create the archetype? If I do that, I cannot continue working on the code. The plugin should be able to rip out all the non-generic stuff, like groupId, projectId, folders, wrap them in templates so they are automatically filled and presto, you have a new archetype.

Idea for simple-jar-lib plugin

Filed under: Idea,Java — stigl @ 8:23 am
Tags: , , ,

Often, when one looks at someone elses project, the artifact dependencies are a mess! The jars litter a lib/ folder, and often have no version or groupId, and it would be beneficial to structure them into a local repository. Another case is when you wish to supply an artifact which is not located in any external repository, but wish to have it close to your project in the VCS, for convenience. And the artifact has no pom. I believe the maven-dependency-plugin has a similar functionality which can be used with legacy maven1 projects, which do not require the advanced folder structure, but still requires a pom present.
(more…)

November 5, 2008

Java applets churn random stalking app

Filed under: Java — stigl @ 10:59 am
Tags: , , , ,

wefeelfineTED has an interesting video presentation of the random-stalking application WeFeelFine.org, which scours the bloggosphere for unstable emo’s.

The important part is Java Applets as the choice of technology! 🙂 At a first glance, they have chosen to discard standard swing components for getting the custom look and feel.  But the use of Applets for a thick client and an opensaucy API makes me all warm and fuzzy inside. I will definitely poke inside the app and the technology stack “When I find time”

“I feel Java Applets”

October 29, 2008

The state of Applets – Java SE 6 Update 10

Filed under: Java — stigl @ 8:42 am
Tags: , , ,

I’ve had my hopes up high since Sun promised to leverage Java Applets. Java SE 6 update 10, “Consumer Edition” was recently released. I dusted off the would-be-could-be shelf and took Applets for a spin ten years later to see if it delivers.

Competing framework Flash delivers what Java developers should have been able to do 10 years ago. But I’ve invested too much know-how in Java and Swing. So, what are my expectations?
(more…)

October 27, 2008

MicroXP just made Windows sexy for development

Filed under: Groovy,Java — stigl @ 1:58 pm
Tags: , , , , ,

There are times you have an application or job task which requires windows, and you need a Windows box with the least amount of hassle and small footprint.

Behold MicroXP; a stripped down version of WindowsXP. Match weight: 100MB distro, <500MB HDD, <50MB RAM, ~10min almost inputless installation and <20 second bootup time!!!

Just to test it out for development in parallels, downloaded Java 6 JDK, Maven and tested out the Smacking up Groovy demo in less than 10 seconds which creates a full Java/Groovy development environment with no hassle. And it worked!

Conclusion: Damn sweet footprint! You can propably get your chores done, and still be smiling. Bill Gates won’t love us, but since when has he appreciated Java anyways?

PS. I have been using OS X for over a year, and allthough MicroXP is sweet and sexy, I’m still content with having moved away.

Next Page »

Blog at WordPress.com.