Are you ready for the future?

AngularJS get data from remote WebAPI

A basic GET operation from a remote REST service. How simple it can be!

<!DOCTYPE html>
<html ng-app="store"><!--add application module to the page-->

    <div ng-controller="ProductController as Product">
            <li ng-repeat="product in products">
<script src=""></script>
<script src="js/simple.js"></script>

var serviceUrl = "http://YOUR-JSON-URL"; 

/* global angular */

    var app = angular.module('store', []);
    app.controller('ProductController', function($scope, $http) {
        $http.get(serviceUrl).success(function (data) {
                $scope.products = data;


Real Time Temperature Posting in SQL Azure using Windows Mobile Service and the Observer Design Pattern with Gadgeteer

Yes, it works! My goal was to be able to add a display and a logger to Windows Azure based on the Observer Design Pattern.

1. Temperature change -> inform subscribers (LED display & SQL Azure)

2. Led display gets updates through Observer 1, SQL Azure gets updates through Observer 2.

3. The Gadgeteer device communicates with Azure through Azure Mobile Services.

4. The Gadgeteer Ticker event takes care of the measurement. When there is a change then notify all subscribers.

Onderlinge verbanden in het Observer Pattern in C#

Update een aantal Observers (bv. een display, een database) gemeten in "Het Programma". Onderstaande schema geeft aan hoe je makkelijk een nieuwe observer kunt toevoegen (RegisterObserver), die dan gebruik maakt van de IObserver Interface, waarin deze Observer wel zijn eigen Update statement krijgt. Dit komt doordat het update statement van de IObserver interface 1 op 1 wordt geplaatst in je nieuwe Observer Class, die aangemaakt is voor je nieuwe Observer.

Upload een afbeelding naar een blob in Windows Azure

                Dim cloudStorageAccount = Storage.CloudStorageAccount.Parse(ConfigurationManager.AppSettings("connstring"))

                Dim cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient()

                Dim container As CloudBlobContainer = cloudBlobClient.GetContainerReference("azureref")


                container.SetPermissions(New BlobContainerPermissions() With {.PublicAccess = BlobContainerPublicAccessType.Blob})

                Dim blob As CloudBlockBlob = container.GetBlockBlobReference("dir/" & var)

                Using Stream = New MemoryStream(data)

                    blob.Properties.ContentType = contentType

                    blob.Properties.CacheControl = ("public, max-age=86400")




                    blob.Metadata("Id") = Guid.NewGuid().ToString()

                    blob.Metadata("Filename") = var1

                    blob.Metadata("ImageName") = var2

                    blob.Metadata("Description") = var2

                    blob.Metadata("Tags") = var4


                End Using

How to build your Bitcoin wallet in Linux Fedora

NOTE: this is only a manual for educational purpose and you should use it on your own risk. I am not responsible for anything.

If you want to do something with Bitcoin for the first time, do it safe. A very secure way is to setup a virtual machine (VM) and then compile your own Bitcoin Wallet. You can shutdown the VM when your ready or store it anywhere you think it is safe. If you do not anything else with this VM, this is a relative safe solution.

I am using VMware Fusion on a Mac to run the virtual machine. Setting up Fedora in VMWare Fusion as a virtual machine is simple, please google this if you need help.

Once setup: In Fedora (the Linux operating system used in this guide: open Terminal and then copy and paste these sentences one by one in Terminal:

sudo yum install git

sudo mkdir -p src && cd src

sudo git clone

sudo yum groupinstall "Development Tools" "Development Libraries"

sudo wget

echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef  db-4.8.30.NC.tar.gz' | sha256sum -c

sudo tar -xvf db-4.8.30.NC.tar.gz

cd db-4.8.30.NC/build_unix

sudo mkdir -p build

cd '/home/mediazone/src/db-4.8.30.NC/build_unix' 


sudo yum install -y gcc-c++ libtool swig pyqt4-devel python-psutil python-twisted wget protobuf-devel

sudo ../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX

sudo make install

cd ../..

cd bitcoin

sudo git checkout v0.9.3

sudo ./

sudo ./configure CPPFLAGS="-I${BDB_PREFIX}/include/ -O2" LDFLAGS="-L${BDB_PREFIX}/lib/" --with-gui

sudo make

sudo make install


Yes! It worked:

How to 'save for web' multiple images in Photoshop

Imagine you have hundreds om images in a folder that are all in hi-resolution and you want these images to be saved for the Internet. In Photoshop you use the "safe for web" feature that enables you to get the smallest size of an image in combination with the highest image quality. To process multiple images you need to execute a script. The source for this script was available in the Adobe Exchange forum, but somehow Adobe decided to remove this important post (or it is very difficult to find). So that is why you can download this handy 'save for web' script here:

saveforweb.jsx (2,49 kb)

You can execute the script in Photoshop by selecting: File - Scripts - Browse: Enjoy

Webshop developed by Mediazone nominated for the Thuiswinkel Award!! is a webshop developed by us in 2007. This webshop with more then 2000 products was completely customized to the needs of Lief! This means Lief! is capable of running this webshop with only 2 full time employees. Now, almost 3 year later, this webshop is competing for the dutch award of the year: Thuiswinkel Award.

To nominate for go to this page and klik on the button in the category "Baby & Kindermode":


How to solve the RPC server unavailable in Windows 2008 Hyper-V Server R2 core

Hyper-V Server contains only the Windows Hypervisor, Windows Server driver model and virtualization components. It is therefore that it is quite a job to get Hyper-V core to work without errors since the firewall options that you are able to configure in hyper-v core are not enough to allow remote management of your Hyper-V virtual machines. I had this problem when I was running the Hyper-V core not under Active Directory but as a Workgroup. Some of my sites are now running in this vitual testlandscape, and they are running very good.

One of the problems that did take some time to figure out, was the Windows Firewall running on the Hyper-V box. You have to take notice that configuring Hyper-V Firewall through the normal Hyper-V core is not enough. You have to connect to the hyper-v core remotely and then use MMC on the computer you are connecting from. In MMC you add a snap-in for Windows Firewall. Instead of managing the local firewall, you can also manage remote firewall's. Now open a connection to the hyper-V server and add the firewall of that server to your local MMC. Now you are able to configure the firewall of the Hyper-V core.

To solve the problem with the "RPC server unavailable" I had to open network discovery in Windows Firewall. After setting these options, I was able to connect to remote Hyper-V virtual machines without any problem. If you have this error too, try shutting down the firewall in the Hyper-V server core completely (CMD in hyper-v core: netsh firewall set opmode disableā€œ). Then try to connect remotely to this Hyper-V core. Are you able to connect, then you know you have to tweak the firewall settings in Windows Firewall of the Hyper-V core machine that hosts your virtual machines.

The problem I faced when trying to connect to a hyper-v core in my network:

Turning of the firewall in the Hyper-V core solved the problem. So I needed to tweak the firewall settings of this core server remotely.

Start MMC on your local compu:

Loading the remore Windows Firewall of the Hyper-V core in your local running MMC:

The solution is to tweak the Windows Firewall (enable network directory as in the picture) of the Hyper-V core:

After these steps, you will be able to access your Hyper-V core remotely.