Vagrant broken with VirtualBox 4.2.14

Today I had this issue with Vagrant and VirtualBox 4.2.14 (virtualbox-4.2_4.2.14-86644~Ubuntu~raring_amd64) on an Ubuntu 13.04 host. [bash] vagrant up Bringing machine ‘default’ up with ‘virtualbox’ provider… [default] Importing base box ‘ubuntu12_04_v1’… There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["import",… Continue reading Vagrant broken with VirtualBox 4.2.14

Monolog logs the WARN after ERR

I have “the luck” to work on an old Symfony2.0 application and today I had the following *@#&$*@ problem. Monolog logs the WARN level messages if I log before an ERR level message. [php] $logger = $this->get(‘logger’); //$logger->err(‘RAZV err’); $logger->warn(‘RAZV 1 warn’); $logger->warn(‘RAZV 2 warn’); die; [/php] In the logs: [bash]tail -f log/*[/bash] Nothing. Same… Continue reading Monolog logs the WARN after ERR

Load bundle without composer.json in Symfony2.3

This is how I loaded a legacy budle without composer.json in a custom location for my Symfony2.3 project with composer. In one of my Symfony2.3 projects I needed to use an old external bundle. This legacy bundle (from Symfony2.0) hasn’t a composer.json file and in my case I can not add one. Anyway, I wanted… Continue reading Load bundle without composer.json in Symfony2.3

Tip: List vs. Set in Python

In Python, if you have a “list” with a lot of members and you need to do many membership checks, it will be better to use a “set” instead, because the checks are linear for lists and constant for sets.

What’s new in Linux Kernel 3.7

The version 3.7 of Linux Kernel was just released few days ago (11 December).  In this version there are a lot of interesting features, and I will mention only unified system architecture support for ARM, TCP Fast Open and Virtual extensible LAN tunneling protocol. For an extended list of the new features, you can check a list here.

How to use AWS SDK for PHP 2 and Symfony Console

Few days ago I wanted to write a small PHP script to backup (upload) some files in Amazon S3. And because Amazon just released last month a new version of their SDK, AWS SDK for PHP 2 I decided to use this one. I also choose to use Console component from Symfony2 and Composer to… Continue reading How to use AWS SDK for PHP 2 and Symfony Console

FreeBSD mount iso

Mount FreeBSD iso image (or any other iso, on freebsd machine). [bash] mdconfig -a -t vnode -f /patg/to/FreeBSD-9.0-RELEASE-i386-disc1.iso  -u 1 #mkdir -p /mnt/cdrom mount -t cd9660 /dev/md1 /mnt/cdrom/ [/bash] To unmount [bash] umount /mnt/cdrom/ mdconfig -d -u 1 [/bash]