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

Marketing vanity urls

Vanity urls are simple but incredibly efficient redirects to help the marketing teams track their  campaigns via Google Analytics, in this case, and help build reports or track their effectiveness. This is a small walk-through on: How to track traffic to websites from printed leaflets and posters How to use Google Analytics to asses printed marketing…

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: direct.domain.com, 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

Lazy loading images

During the rebuild of my Videouri project, I was constantly looking for the best approach of writing and serving all the modules involved, and onto that matter, I decided to do a bit of investigation into implementing a lazy load for the images. First thing that came into my head was to server the images, upon DOM ready with…

Continue Reading