The speed race is on: Vert.x and Node.js

Vert.x and Node.js are similar in some ways, and different in others. One such difference is that Node.js only allows you to write code in JavaScript whereas Vert.x allows you to code in Java, Groovy, JavaScript, Ruby and eventually as the team expands: Clojure, Scala and Python. So what happens if you could have as good or better performance (a very simple benchmark – check out the comments though!) than Node.js and you can write your code in your preferred language which may or may not be JavaScript?

Continue reading

Posted in Java, JavaScript, Node.js, Open Source, Vertx | 1 Comment

Getting started with Socket.IO and Node.js

Node.js is not the cure for everything, however, it can certainly makes working with Websockets very easy when using the Socket.io library. Using websockets you can easily build realtime applications and even multi-player games. Today I’ll show you how to easily build a simple chat program using Node.js and Socket.io.

Continue reading

Posted in JavaScript, Node.js, Open Source | 2 Comments

Getting started with Vert.x and Java on OS X

Vert.x is a fairly new project that has already reached 1.0 status and has a growing community. According to their website Vert.x is: Effortless asynchronous application development for the modern web and enterprise. If your familiar with Node.js then you will most likely feel right at home with Vert.x. Vert.x also allows you to use a favorite language like Java, Ruby, Groovy, or JavaScript with support for Scala and Python coming in the future. Today I’ll go over a very simple demo on how to try out Vert.x using Java.

Continue reading

Posted in Java, Online Games, Vertx | Leave a comment

Installing and configuring Netbeans 7.1.2 and the Java JDK 1.7 on OS X

Recently Oracle released the JDK 1.7 for OS X (download here). This is a JDK release as of the time of this article and a consumer version of the JRE 1.7 will be released later in 2012. Today I’m going to walk through how you can install and configure the new JDK 1.7 on OS X as well as how to take advantage of it in Netbeans 7.1.2.

Continue reading

Posted in Java, Netbeans | 1 Comment

Posting a new ATOM entry to Atom Hopper using Node.js

Previously I blogged about how you can use Apache Abdera to post ATOM entries to an AtomPub server like Atom Hopper. Today I’ll show you how to do something similar but with Node.js.

Continue reading

Posted in Atom Hopper, JavaScript, Node.js, Open Source | Leave a comment

Tutorial: Getting started with RESTEasy (a Java REST Framework) and Netbeans 7.1

RESTEasy is quickly becoming a favorite project of mine. RESTEasy allows you to easily and quickly create REST based services with Java. Today I’ll show you how fast you can have a minimal REST service running using Netbeans 7.1 and RESTEasy.

Continue reading

Posted in Apache Tomcat, Java, REST | Leave a comment

Running the new MongoDB data adapter for Atom Hopper with Netbeans 7.1

I’ve mentioned Atom Hopper several times in this blog. Atom Hopper (based on Apache Abdera) for those whom might not know is a Rackspace sponsored open source project. Today I’ll show you how to use the new MongoDB data adapter. Although the MongoDB data adapter has not been fully tested and therefor shouldn’t be used in production yet, as a developer you can kick the tires and send us feedback or pull requests with improvements.

Continue reading

Posted in Apache Abdera, Apache Tomcat, Atom Hopper, Java | 2 Comments

Build a clustered ATOM server with Node.js

From the Node.js documentation: A single instance of Node runs in a single thread. To take advantage of multi-core systems the user will sometimes want to launch a cluster of Node processes to handle the load. Today I’ll show you how to use Cluster for Node.js to serve out a simple static ATOM feed.

Continue reading

Posted in JavaScript, Node.js | 1 Comment

Starting out with CoffeeScript

I went to a Java conference this past weekend and there were several topics of interest. One of the speakers was talking about Underscore and his examples were all done in CoffeeScript. I had previously looked at CoffeeScript and messed around with it but after seeing it in action I decided to give it full second look. If you work with JavaScript in the browser or Nodejs on the server then CoffeeScript will work for you regardless and it makes it easier to work with than just plain JavaScript.

Continue reading

Posted in CoffeeScript, JavaScript | Leave a comment

Tutorial: Working with Node.js and Redis (Expire and TTL)

In my previous post I showed you how to install and use Redis with Node.js. Today I’m going to take that a step further and walk through some of the things you can do with node_redis using Redis’s TTL and EXPIRE commands.

Continue reading

Posted in JavaScript, Node.js, Redis | Leave a comment