Starting out with AngularJS

Coming from jQuery it’s a bit hard to start with AngularJS. Everything seems to be upside-down so my first encounter meant more than 4 hours to do what i could have done in 20 minutes with jQuery.
I wanted to change the interface of my episode downloader to AngularJS + Bootstrap 3. Since the backend is exposed with REST services, no modification on that side should be necessary.


Java Performance: IO vs NIO

Java NIO has been around for a while but i never had the chance to test it.
I have continued work on a data analyser project and for which i have optimized the parsing as presented in this post.
Anyway all that conversion was taking allot of time, so i have decided to convert the CSVs to binary files, and see how much performance can i gain along with shrinking the file sizes.


How to fix YouTube login in XBMC

I switched from MediaPortal to XBMC a year ago when i went after a dedicated HTPC. The transition was pretty simple, just installed OpenElec on the SSD and with a few configurations everything was in place.
Well .. Almost 🙂 I have installed the Youtube xbmc plugin , but could not login. I worked around the problem for a while, using Yatse to send videos to the XBMC.


Java Performance: Splitting Strings

I was working recently on a CSV parser needed for one of my personal projects.
The idea was simple, you have one (or more files) with over 1M lines of CSV data.
I only needed the last 3 fields and wanted to keep it simple, i had implemented a simple method which received a string and invoked its .split method.
Very nice and simple but the performance was very bad, with all the processing it took more than 30s to parse one file.


Configuring Spring without XML

Trying to refresh my knowledge about  the Spring framework, I’ve started to rewrite one of my standalone apps.

Usually the hardest part was the configuration, but as I have discovered, things have changed in the meantime!

So.. Here’s how I have ‘bootstrapped’ my application with just 3 java classes, no XML!


Stick footer to the bottom in Bootstrap 3

There are times when your page has very little content and you get a nasty looking half-browser page.
This is also happening if you have a SPA (Single Page Application) and your content varies in height and your footer jumps arround when this change.
So what can you do about it?