Add Microsoft OneDrive Business account via registry

Have a look here.

U kunt EnableAddAccounts instellen door het bestand ‘EnableAddAccount.reg’ te implementeren op de computers van uw gebruikers. Dit bestand maakt deel uit van het OneDrive-implementatiepakket. Hiermee wordt de volgende registersleutel toegevoegd:



Eclipse for Python in virtual Windows 10

Download  and install Java:

Download and install Python:

Download and install Eclipse Standard X.X (Luna):

  • Unzip contents to Program Files/Eclipse directory
  • Start eclipse.exe
  • Select a directory for your workspace
  • Close the Welcome page
  • Click Help and Install New Software. XX
  • Enter into the Work with text box and press Enter
  • Select only the top PyDev checkbox
  • Click Next, Next
  • Click Finish
  • The installation will pause, and a Selection Needed pop-up window appears. Check the box labeled Brainwy Software; Pydev; Brainwy. Click OK
  • Click Yes to restart Python
  • Click Window / Prefrences
  • Expand PyDef / Interpreters / Python Interpreter
  • Click New
  • Enter Python35 and select Python executable, click OK
  • Select all checkboxes / Click OK
  • Click OK
  • Click Allow Access
  • Click Window (to the left of Help on the far right of the line below this window’s blue title Java – Eclipse SDK), hover over Open Perspective in the pull-down menu and then click Other… in the next pull-down menu
  • Double-click PyDev
  • Right-click the Java icon to the left of the PyDev icon and select close

Zie ook:

Vagrant or Dockers?

Vagrant vs. Docker

Vagrant vs Docker: Which is better for WordPress development?

After reading the above article I’ve decided to start with Vagrant, and maybe some other time I’ll use Docker.


Vagrant – the command line utility for managing the lifecycle of virtual machines.


First install VirtualBox (other virtualization-software also possible):

Then install Vagrant:


Project setup

mkdir vagrant_getting_started
cd vagrant_getting_started
vagrant init

Change VAGRANT_HOME directory on windows

Read this:

Change VAGRANT_HOME directory on windows

Open a Command Prompt (Admin) and type this command:

setx VAGRANT_HOME "X:/your/path" /M

That’s it.

Installing a box

Boxes are added to Vagrant with vagrant box add. This stores the box under a specific name so that multiple Vagrant environments can re-use it.

vagrant box add hashicorp/precise64

Or, download a different box, see:

Using a box

Now that the box has been added to Vagrant, we need to configure our project to use it as a base. Open the Vagrantfile and change the contents to the following:

Vagrant.configure("2") do |config| = "hashicorp/precise64"

The “hashicorp/precise64” in this case must match the name you used to add the box above. This is how Vagrant knows what box to use. If the box was not added before, Vagrant will automatically download and add the box when it is run.

Up and SSH

It is time to boot your first Vagrant environment. Run the following from your terminal:

vagrant up

You will not actually see anything though, since Vagrant runs the virtual machine without a UI. To prove that it is running, you can SSH into the machine:

vagrant ssh

This command will drop you into a full-fledged SSH session.

When you are done fiddling around with the machine, run

vagrant destroy

back on your host machine, and Vagrant will terminate the use of any resources by the virtual machine.

The vagrant destroy command does not actually remove the downloaded box file. To completely remove the box file, you can use the

vagrant box remove NAME


Facebook Marketing API

These steps were easy:

Step 1: Create Ad Account
Step 2: Create Developer Account
Step 3: Create a New App
Step 4: Configure Facebook App Settings
Step 5: Install Facebook SDK’s

This one took me some time to figure out:

Step 6: Getting a User Access Token via Facebook Login

I managed to do this via the Python / PHP via Graph API Explorer. Open this Graph API Explorer and select your app on the right hand site, using the Get Token dropdown. The page refreshes. Hit Get Token > Get User Access Token. In Extended Permissions choose ads_management and/or ads_read. Click Get Access Token and use the user access token that will be presented to you in the access token form input field.

Django, Python en Facebook Ads API op Windows 10 in een virtuele omgeving installeren


  • Install Python (3.5.1), zie mijn vorige beschrijving;
  • pip install Django

Django project starten

  • Create project: django-admin startproject <ProjectName>
  • Start Webserver: python runserver
  • Solve unapplied migrations: python migrate
  • Create new app: python startapp <AppName>

Facebook API

  • pip install facebookads

Excluding indexed directories in PyCharm

Since a while I am using the PyCharm Community Edition to expiriment with Python, but have been struggling with long startup times. This happens because of some Python package storing loads of httpcache on disk.


Here is how you can exclude these files and directories from the project that you are working on and speed up the startup process of Python:

  • Open Python;
  • Click File;
  • Click Settings;
  • Click on Project XYZ;
  • Select the folders to exclude.

You can download PyCharm (for Windows) here.

Installeren van Apache op mijn virtuele Ubuntu omgeving


Apache installeren

Lees hier meer daarover, of volg dit stappenplan:

  • Update het systeem:
sudo apt-get update
sudo apt-get upgrade

Installeer Apache:

sudo apt-get install apache2
 * Starting web server apache2                                                  AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message *
  • Open een webbrowser, en open:
  • if you read “It works!” which is the content of the file /var/www/index.html, this proves Apache works;
  • You can also use ifconfig (Ubuntu’s alternative for Windows ipconfig) to get your computers ip address and use this to test your webserver;
  • Webserver commando’s:
sudo /etc/init.d/apache2 stop / restart / start

Webpagina aanpassen:

sudo gedit /var/www/html/index.html


PHP 5 installeren

  • Open Terminal, enter:
sudo /etc/init.d/apache2 restart
  • Klik Install;
  • Start de module met dit commando:
sudo a2enmod php5

PHP 5 installatie controleren

  • Add an existing user to the www-data group:
sudo usermod -a -G www-data username
id username
groups username


  • In /var/www , create a text file called “test.php”;
  • Grant the world (or, at least, Ubuntu user “apache”) permission to read it;
  • Write in it the only line: “<?php phpinfo(); ?>” (without the quotation marks) then;
  • With your web browser, go to the URI “http://localhost/test.php“;
  • If you can see a description of PHP5 configuration, it proves PHP 5 works with Apache.