Posts Tagged ‘javascript’

Creating a Chat Application using Java EE 7, Websockets and GlassFish 4

Tuesday, August 13th, 2013

Java EE 7 is out now and so I was curious to play around with the new specifications and APIs from in this technology stack.

That’s why I didn’t hesitate to add yet another websocket-chat tutorial to the existing ones on the internet in favor of gathering some experience with this technology and a possible integration using a GlassFish 4 server, the new Java API for JSON Processing for data serialization combined with custom websocket encoders/decoders and finally adding some Bootstrap and jQuery on the client side.

(more…)

HTML5 Server Send Events using Node.js or Jetty

Sunday, October 21st, 2012

The HTML5 working draft describes different techniques to push information from a server to the client and the one described in this tutorial are Server-Send Events (SSE).

Using Server-Send-Events eliminates the need to poll a server periodically for information using AJAX and is really easy to implement because of the simple specification and the fact that nearly all modern browsers already implement this specification.

(more…)

Video Manipulation using HTML 5 and Javascript

Sunday, August 5th, 2012

Some funny stuff can be done using HTML 5, canvas elements and the video events API.

In the following example we’re using these techniques to apply graphic effects to a video embedded in a HTML page..

(more…)

Compiling CoffeeScript with Maven

Friday, May 18th, 2012

CoffeeScript is a neat language that is transcompiled into JavaScript but is more predictable and allows to write the same code with 1/3 fewer lines and of course with a (imho) nicer syntax.

CoffeeScript is nice but a vivid integration into our application build lifecycle with Maven is betterĀ  and that is what the following example is all about.

(more…)

Search
Categories