WebSocket is a communication protocol providing a bi-directional communication channel between client and server. It allows us to directly send a message to the clients whenever something changes on the server side and we want all clients to be notified. Let’s see the skeleton for a simple WebSocket example in Java. Continue reading WebSocket example in Java
Over here at Uniqa Raiffeisen Software Service we are organising an internship program for this summer and because this year the interns will be working on the project I work on and I am going to be one of the 2 or 3 mentors, I had the opportunity to actively participate in the interviewing process and the selection of the candidates.
In the past few weeks I was required to create a prototype for the frontend of a project and because the focus is only on the frontend, I’ve chosen Jetty to create a simple mock server that would respond with simple JSON messages or stream some image files. I also use Jetty to serve the static files, like static images, CSS, JS that I am continuously modifying while developing the new frontend. Because I am developing on Windows, I have run quite soon into the file locking problem.
Even though I already suffer from complete ad-blindness, sometimes they still annoy me, especially when it comes to mobile apps when a whole screen filled with ads just pops up randomly. Not to mention those sneaky pop-ups/pop-unders in your browser. I’ve tried different ad blockers, both on Windows/Ubuntu and Android, but wasn’t very happy with them.
In the past two weeks I have participated at an AngularJS workshop organized by 3Pillar Global and hosted by Cornel Ştefănache. The news about the event I’ve received in an email from a colleague of mine and registered for it in no time. About 10 minutes later when I’ve tried to register one of my coworkers as well, the tickets were already sold out. During the workshop we have found out that there were a total of 20 tickets available and they’ve been all sold out in just one hour.
Do you usually ask questions during an interview about the computer and other hardware you will be using if you get the job? And about the software? Well, I didn’t, and after using IntelliJ Idea from the beginnings and never having less than 8 gigs of RAM in my machines, I woke up with a laptop with 4GB RAM and Eclipse.
While working in Ruby at my previous workplace we were required to write unit tests using RSpec and end-to-end tests using Cucumber and Watir webdriver. I wasn’t a big fan nor am I today of writing tests, but for some reason I just loved Cucumber. We wrote them together with the members of the QA and it was fun, because we both were thinking about all the possible cases to test and not about the way the tests were going to be implemented. Furthermore, it was clear for everybody what I wanted to test, as the scenarios were written in natural language.
I remember when I was 16 and I started writing my first web application (actually just a simple PHP page that processed some inputs from a form) in PHP. I didn’t really know PHP at all, I have started reading some basic tutorials and then sat down to put in practice what I just learned. I have been familiar with pascal at that time, so I knew how to achieve what I wanted, but I didn’t know the PHP statements, so after finding the right statement I have added a line comment after it, so that I would know what it does. My code was really ugly, but at that time I have found comments quite useful.
Wink is the JAX-RS implementation from Apache. I have never used it in a real-life project, but I thought it would be a good idea to create a small, dummy example as I did with RESTEasy and Jersey before just to see how easy/hard it is to get started with it.
Previously I have published a small example of a RESTful Web Service in Java using RESTEasy and JBoss. Today I have created another example, which uses Jersey and may be deployed on Tomcat…