Alex Budurovici

Freelance developer London

Marketing vanity urls

Sometimes I just have to write simple redirect rules, that will help the marketing teams track their vanity urls via google analytics campaigns. So, if you ever asked yourself: How to track traffic to websites from printed leaflets and posters How to use Google Analytics to asses printed marketing campaigns How to create vanity urls how…

Continue Reading

How to filter a sub array, inside a multidimensional array

This whole quest, for trying to better understand – and use – the array_filter php function, came when I was asked by my friends at QAH, to help them out to find why the website suddenly lost all custom styles (all template’s css settings disappeared), and fix it. First thing, obviously, was to use a backup…

Continue Reading

direct subdomain at Cloudflare, and duplicated content issue with google

Don’t know how many of you had realized this problem so far, but having direct.domain.com at cloudflare, that serves a live non-cached of the site, can create some duplicate content issues at google, and that’s never good. Well, the best and easiest solution that I found, was to redirect `robots.txt` to a `robots.php` (or what ever language…

Continue Reading

How many lines of code do I have?

The other day, when I received my Quora newsletter, a question that caught my attention was How many lines of code is Facebook? And while reading the answers, the most voted one had mentioned a very interesting git command line, that will allow you to know how many lines of code, your project contains. So, how many…

Continue Reading

Lazy loading images

During the rebuild of my Videouri project, I was/am constantly looking for the best approach of writing and serving all the modules involved, including loading front-end assets. My quest, at a certain point, was to find a way of optimizing the load of the images (plenty of them). First thing that came into my head was to server…

Continue Reading