by Alessandro | Mar 23, 2013 | Java, Jersey, XSS
This post is going to show you how to build a Jersey Cross-Site Scripting XSS filter for Java Web Apps. As we all know, when building a web application of any sort it’s always important to focus on security. Cross-Site Scripting (XSS) is a popular security issue found across many sites. Here is a brief summary on the current XSS situation and a good Cheat Sheet provided by OWASP.
by Alessandro | Jan 18, 2013 | Backbone.js, JavaScript, Lo-Dash
During the development of our third party widgets we decided to use a templating library like Backbone recommends. A templating library would allow the HTML code to be separated from the JavaScript, maximising re-use and avoiding code cluttered with ugly HTML. Ultimately all the templates would be bundled together and packaged into the compressed, single file version of the widgets. However, we still wanted the templates to be retrievable remotely, as and when they were needed. The templating library used below is the one provided by Lo-Dash but it could just as easily be any other library. So here goes, this is how you would asynchronously load backbone view templates.
by Alessandro | Dec 31, 2012 | Videos
I came across this video today and it’s quite amazing. I had to share it. The possibilities are infinite and the potential for exponential evolution is at our door step.
by Alessandro | Dec 29, 2012 | Backbone.js, JavaScript
I’m currently developing a set of third party Javascript widgets and opted for Backbone.js as the main library supported by Lo-dash (rather than underscore.js). Shortly after beginning I started seeing the need for rendering nested views to maximise re-use and be as DRY as possible. This is a problem I’m sure many people developing a medium to large sized application with Backbone will face.
by Alessandro | Dec 24, 2012 | Java
This article is going to cover how to use Java to create grayscale images from their colour counter-parts. When I started looking into this topic I did a quick Google search and found many different answers using many different libraries with considerably different outputs. So I decided to put together this post describing the outcome of my Quest For the Holy Gray.