How to automount your virtualbox shared folder to /var/www

After adding the shared folder Websites to fstab by adding the line Websites /var/www vboxsf rw,uid=33,gid=33 0 0 and giving the right permissions, I always got the following error during my virtual Linux Mint boot: keys:Press S to skip mounting or M for manual recovery All I had to do was add vboxsf on a …

How to load leaflet.js and leaflet plugins with dojo AMD

<script type=”text/javascript”> var dojoConfig = { baseUrl: ‘/lib’, async: true, packages: [ {name: ‘Leaflet’, location: ‘./Leaflet’} ], map: { // lets you switch between minified and source version of leaflet for development ‘*’: { ‘Leaflet/leaflet’: ‘Leaflet/leaflet-src’ } } }; </script> <script type=”text/javascript” src=”lib/dojo/dojo.js”></script> <script type=”text/javascript”> require([ ‘require’, ‘Leaflet/leaflet’ ], function(require, L) { // load plugin …

Linux Mint 17: Install php_oci

Quick cooking recipe to install PHP oci8 on Linux Mint 17 / 18. Download the Instant Client from the Oracle Website and follow the instructions at the bottom of the download page. Download the Instant Client SDK from the same location, unpack it and move the SDK folder to the same folder where the Instant …

Linux beginners trick: mount root shell to read-write

If your Linux (Mint) fails to boot because you broke the /etc/fstab, for example, you’ll end up with a ready only root shell. The trick is to mount the root partition to as read-write without actually unmounting it: # mount -o remount,rw / After doing that, you wil be able to edit /etc/fstab, correct the …

SQL tip: Update add instead of replace

A simple way to add to a database record instead of replacing it with Oracle: UPDATE myTable SET textField = :text||textField WHERE … This comes in handy, when you have a form field, which can be empty, but should not overwrite an existing record when posted (This should also be easily adapted to other SQL …

Why using the DNG format might not be a good idea

A few years back I converted my photos from the proprietary Nikon NEF format to Adobes open DNG format, because I’m convinced of the open source idea and hate proprietary formats. But now that I started to enter photo contests, I have a problem. I can’t use any of these photos, since all contests want …

Nikon D810: Limit Selection of Autofocus Area Mode

I haven’t read about this in most reviews of the Nikon D810. It’s a small, but very welcome addition to customize your camera settings. You can now limit the selection of AF area modes. I for example never use neither 3D-tracking nor Auto-area AF. Now I can disable them in the menu a11 Limit AF-area …

Setup Lightning to work with Google Calendar

Quick installation guide to setup your Google Calendar in Thunderbird 31.2 with the Lightning Calendar Addon 3.3.1. You don’t even need to install the ‘Provider for Google Calendar’: Create a new calendar by right clicking on the calendar pane, then select ‘On the Network’ Select ‘CalDav’ as you remote calendar format and put the following …

Nikon D800/D810: Turning ISO-AUTO on/off single-handed

I love my D800, but I was always annoyed, that I could not turn on or off the ISO-AUTO setting with one hand. But after playing around with my camera settings I found the following solution: First create an new entry in your MY MENU and make sure it’s the first item at the top. …

CSS Quick Tip: Line Breaks in Flexbox Multi-line mode

Took my quite a while to find this, because it’s hardly mentioned anywhere except as a note on the Mozilla Developer Network: When you are using a flexbox layout in multi-line mode (e.g. the ‘flex-wrap’ property is set to wrap), you can force flex items to start on a new line by setting the ‘page-break-before’ …