Alex Budurovici

London software engineer

Behat, Vagrant and Selenium

Behat, Selenium and Vagrant

Don’t run Selenium server in your Vagrant box, run it in your host. On one of my laptops I have a Vagrant box which is a replica of a live CentOS web server (provisioned via Ansible), and there is where all my code resides and naturally where I run my tests from also, whilst my host is completely…

Continue Reading

mongodb, systemd and ubuntu

Installing MongoDB on Ubuntu 15.04

A few weeks ago, I had updated Ubuntu on a laptop of mine, to 15.10. When I tried to install and configure MongoDB, I had completely overseen the fact that with the upgrade from Ubuntu 14.04 (Trusty) to 15.04 (Vivid),  Upstart had been replaced with systemd. That has caused me a few brainscratches of why mongo is not working as…

Continue Reading

Developer interview questions

My mentality has changed after reading An Astronaut’s Guide to Life on Earth by Chris Hadfield, and Delivering Happiness by Tony Hsieh, and step by step I’m trying to become even more driven and hungry for knowledge, and I’ve decided to put a collection of questions that I have been asked in different occasions. I am here to learn,…

Continue Reading

csv UTF-8 encoding issues in Excel

This frustrating csv UTF-8 encoding issue, most of the times, occurs after using Microsoft Excel for your CSV file, and that is due to a bug which causes some accented characters to become corrupted before / during / after import or just document edit (depending on when you use Microsoft Excel) – this is a known Microsoft bug which has never…

Continue Reading

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

Sorting a multidimensional array with array_filter

array_filter is a magnificent tool, and not hard at all to be understood, and is exactly what I needed when I was doing some forensics to find out what or who triggered a chain of events that affected to appeal of QueAprendemosHoy site. I started by querying its WordPress database, to find all the users that have a theme related permission, using the…

Continue Reading

direct subdomain at Cloudflare causes duplicated content issue

Don’t know how many of you had realized this problem so far, but having a direct sub domain at Cloudflare, for example:, which has the purpose to serve 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…

Continue Reading

git tips and tricks

How do I change the author of my commits? Whilst I was going through the log of my Git commits, I had noticed some inconsistencies with the author value of some commits. They were all from me, but with different values, so I decided to try and fix that by setting the author and the email values to…

Continue Reading

1 2