Tutorial: Google Analytics in Android

Enabling Google Analytics in your Android app can be a bit complicated given the messy and outdated official documentation so I've wrapped up the basic steps to enable it with last Google Play Services (currently v6). Get a Property Id The very first step is to create a new Google Analytics Property for our application or use an existing one. Just …

Read More

MongoDB basics and tips with PyMongo

I've traditionally worked with MySQL databases, they are really powerful, but... sometimes it gets really complicated with long and messy SQL Statements for storing simple data... Maybe that's because we are just using the wrong database schema. When I first saw JSON compared to XML files it was like night and day. JSON is much more simple to use, …

Read More

Add SSL to nginx website

There has been a lot of discussion about SSL(HTTPS) since Google announced that they would boost ranking of secure websites. It's not very hard to add the certificate to your own website but there is some important staff to understand before! SSL Certificates I guess most of you know what SSL is but, for the people who don't, I'll keep it simple: I…

Read More

Processing external js file with php

Most javascript files don't need php because they work client side and with the DOM but there are some particular cases in which it can be usefull. For instance, with some string translations, client info, selective script loading, etc... When the script is only used in a particular page it can be written inside that page, there is no need to exter…

Read More

Installing OpenWRT for TP-Link TL-WR1043ND

The WR1043ND is a really great router for a very cheap price. The original firmware from TP-Link is quite good but I needed some more advanced features so I tried some of the custom firmwares available: OpenWrt Dd-wrt Gargoyle I have to say that all this 3 firmwares run really well and I didn't encounter any major issue but I ended up with OpenWrt …

Read More

Compile opencv with ffmpeg for Ubuntu/Debian

I've needed to compile opencv with ffmpeg some times and it's quite hard to find the correct information and dependencies to make it work with most of videos(mp4, webm, avi..). If you get an error when compiling opencv telling you to recompile ffmpeg (or other libraries) with -fPIC this post will also fix it! Remove any older versions of ffmpeg i…

Read More