How to Asynchronously Load Backbone View Templates
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.
Quantum Revolution
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.
Rendering Nested Views in Backbone.js
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.
Using Java to Create Grayscale Images and Icons
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.
Jetty Maven: Run on Port 80 and Edit Files
Today I was playing with the jetty-maven-plugin and I came across two dilemmas:
- How do I get Jetty to run on port 80?
- How do I edit files (in Windows) once Jetty is running?