Behold! DynamicConfig is here!

A couple of days ago while working on Videum ( as usual ) I was in need of a simple configuration mechanism, something that would allow me to use plain text files. Maybe with JSON data but without the need of accessing values with dictionary-like syntax like [“key_name”] and so on....

1 minute read

Hi my name is Simon. I want to play a game.

Who’s Simon? Nobody? My God, are you living under a rock? Simon is an elecronic game created in the late ’70 where you basically had to push some buttons in a specific sequence that gets longer and longer. Still nobody? Ok, here’s the wiki. Why this introduction? Because Simon is...

1 minute read

Pagination with MongoDB

In the last few months I have spent some time looking at the traffic stats for this blog and looks like this post is attracting a lot of visits, so this time I decided to write a couple of words about how to page query results from a MongoDB collection....

2 minute read

oh my God, it’s full of LEDs!

Too much time has passed since my last post. That’s not a good thing. In my defense, I spent part of this time trying to learn new stuff 🙂 I have always had the desire to learn a little bit of electronics. Nothing specific, just basic stuff…and I tried, oh...

2 minute read

SQL: generate a report with dynamic columns by month

Hi all! This time I’ll try to dig a little bit into the fabulous realm of SQL and see how we can generate a nice report with dynamic columns. The need: I had to generate a report showing some counts divided by month, basically the columns represent the months and the user...

2 minute read

MVC: reading LinkedIn user profile data

Suppose you have to login your users using an external provider. Maybe LinkedIn. Suppose you have to read the user profile data and do some stuff. Maybe you have to register the guy on your website. Maybe you know a bit of OAuth and you want to give it a...

6 minute read

AngularJS: unnecessary routing and the hash sign

If you are using AngularJS for something different from a Single Page Application, probably you are not using the built-in routing functionality. In this case, don’t add the ngRoute dependency to your app , or it will always try to handle your #hashes (and most probably your web app won’t work)....

1 minute read

SQLCE: How to execute complex scripts

For one of the side-projects I am working on, I needed a way to execute long SQL scripts to create some reports. I started the project using SQLCE because I didn’t wanted to bother with a full installation of a SQL server (even the Express one), so I wrote all...

1 minute read