Press "Enter" to skip to content

Category: Development

WebSocket example in Java

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.

Comments closed

Solving the Jetty file locking problem when starting it programmatically

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.

Comments closed

How I blocked most ads on all devices connected to my network

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.

Comments closed

AngularJS workshop at 3Pillar Global

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.

Comments closed

Speeding up Eclipse

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.

Comments closed

Using Cucumber in Java unit testing

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.

Comments closed

Why I don’t write comments anymore

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.

Comments closed