Certified MongoDB Developer

Published by burgerboydaddy on Wed, 01/30/2013 - 16:07


During last fall I attended online mongoDB developers course.

I just checked and found that 10Gen prepared my mongoDB certificate.

Problem with Views Pager

Published by burgerboydaddy on Wed, 01/30/2013 - 15:30


This one is funny.
Today I discovered that my page, created with multiple views, and each view with its own pager works weird. Clicking on one pager will affect all other pagers on the page --> click on one pager change value of all of them.

Little research and I found that I need to change pager ID inside my view.

How to setup startup scripts in Ubuntu

Published by burgerboydaddy on Tue, 01/08/2013 - 14:48


For some projects I needed to run startup scripts everytime when I start my ubuntu server. Here is little how-to with addition how to run some processes using non-sudo username (normal user account).

After some searching I found out that there is a small command that allows the root to run a process as a different user.
So when I had put “sudo -u burgerboydaddy” in front of my command it worked flawlessly.

- use vim or an equivalent to write your script and make sure it starts with
- make your script executable by doing

Installing VirtualBox Guest Addition & mount shared folder

Published by burgerboydaddy on Fri, 11/30/2012 - 11:01


Step by step guide how to install VirtualBox guest addition and mount shared folder (Ubuntu 12.04)

1. Start the Ubuntu Server VM and insert the Guest Additions CD image (Devices menu, Install Guest Additions).
2. Install necessary build tools and build dependencies:

    $ sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
3. Mount guest addition
    $ cd /opt
    $ mkdir cdrom
    $ mount /dev/cdrom /opt/cdrom
    $ cd cdrom
    $ ./VBoxLinuxAdditions.run

Drupal 7 Open File attachment Links in New Window

Published by burgerboydaddy on Wed, 11/07/2012 - 13:21


For requests like: Open attachment in new window code bellow should be placed inside template.php file:
Also return statement is wrapped with span/class that allows extra theming options.

function THEMENAME_file_link($variables) {
  $file = $variables['file'];
  $icon_directory = $variables['icon_directory'];

  $url = file_create_url($file->uri);
  $icon = theme('file_icon', array('file' => $file, 'icon_directory' => $icon_directory));

  // Set options as per anchor format described at