Category: School

All About School

KTSI: Tag der offenen Tür 2011

Tomorrow (Saturday, 2. July 2011) you can visit the KTSI (Kantonale Technikerinnen- und Techniker-Schule für Informatik). Everyone is welcome and you can check-out some really cool projects like the MindTouchCollaboration multi-touch table, the web-based statusboard and a lot more.


Where: KTSI, Gründenstrasse 46, 4132 Muttenz
When: Saturday 2. July 08:30 – 12:00

More information:

DirectAccess for SMB and Lab environments – Design, Step by Step and Troubleshooting Guide

DirectAccess for SMB and Lab Environments This is a modified document which I wrote for a Microsoft Workshop at KTSI. It’s a Desgin, Step by Step and a Troubleshooting Guide for Microsoft DirectAccess. This is made for SMB or LAB environments not for Enterprise Deployments.

I hope this guide can help you deploy DirectAccess in your environment and you can enjoy DirectAccess like I do ;-)

Microsoft WebMatrix and Microsoft WebPlatform Installer

Microsoft WebMatrixFor a project at KTSI we needed a platform to quick deploy PHP and MySQL applications. There are a lot of solutions out there in the web, for example XAMPP. After testing some options I had a closer look at the Microsoft WebPlatform Installer and Microsoft WebMatrix. Those two tools do exactly what I need. With the WebPlatform Installer you can easily install a local instance of IIS Express with ASP.NET, PHP, MSSQL and MySQL support with in 5-10 minutes.

But the coolest tool in my opinion is WebMatrix. Webmatrix lets developers create, manage and deploy Web Applications very very easy. And if you need to to more Webmatrix lets you also work with Visual Studio on the same project.

Import Evernote notes to OneNote 2010

Microsoft OneNote 2010Since I work more and more with Windows 7 I had a look at Microsoft OneNote 2010. Before I used Evernote and I was happy with it. But as I saw OneNote and startet using it, I can’t think being without it. There are alot of features I really love and OneNote 2010 is really nice integrated into Windows 7 and the Office products.

So if you wish to migrate from Evernote to Microsoft OneNote 2010 you can do that in diffrend ways.

  • Import Notes via Outlook (send Evernote Notes via email and import them in Outlook via the Send to OneNote button)
  • Export Notes as HTML and Import Them Into OneNote
  • Import Notes via the OneNote Printer

You can read a great HowTo on

Btw. Microsoft released also OneNote for iPhone


Passed MCITP Certifications

In the last 2 months, I passed my first two MCITP (Microsoft Certified IT Professional) Certifications. The first was the new MCITP: Windows Server 2008 R2, Virtualization Administrator and the second was the MCITP: Enterprise Administrator. I am really happy it was hard work but I think it was worth it. If you want to get more information about certification, check out Microsoft Learn.

Simple Bean Machine program done in Powershell

Powershell Header

In the last article I posted the C++ Code for a simple Bean Machine output. Now I did the same in Powershell. I know this is not really a fantastic Powershell script, but its good to show others how things get done in Powershell.

Like in the C++ bean machine it works like this:

Bean MachineAnd the Output should look like this:

Bean Machine outputAnd here is how you do this in Powershell:

[int]$ballCount = 100
[array]$box = @(0, 1, 2, 3, 4, 5)
[string]$line = " +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-->"
[string]$numbers = " 0 5 10 15 20 25 30 35 40 45 50"
[object]$random = New-Object System.Random
for([int]$i = 0; $i -lt $ballCount; $i++){
[int]$counter = 0
for([int]$j = 0; $j -lt 5; $j++){
$leftorright = $,2)
$counter = $counter + $leftorright
$box[$counter] = $box[$counter] + 1
Write-Host $numbers
Write-Host $line
for ([int]$t = 0; $t -lt 6; $t++){
[string]$Statusline = ""
for ([int]$u = 0; $u -lt $box[$t]; $u++){
[string]$Statusline += "#"
Write-Host $t "|" $Statusline $box[$t]
Write-Host $line

Simple C++ Bean machine program @KTSI

This is a simple Bean machine program done in C++ for KTSI.

This is how it works, you drop 100 balls and they fall in 6 different boxes.

Bean MachineAnd this is how the C++ output should look like:

Bean Machine outputAnd here is how its done:

#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main (int argc, char * const argv[]) {
	// initial
	int ballCount = 100;
	int box[6] = { 0, 0, 0, 0, 0 };
	string line = " +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-->";
	string numbers = " 0     5     10     15     20     25     30     35     40     45     50";
	int leftorright = 0;
	// Need for Random Numbers
	srand ( time(NULL) );
	// Rund ballCount (100) zahl = rand() % 2;
	for (int i=0; i<ballCount; i++) {
			int counter = 0;
		for (int j=0; j<5; j++) {
			// left or right
			leftorright = rand() % 2;
			counter = counter + leftorright;
		box[counter] = box[counter]++;
	// Output
	cout << numbers << endl << line << endl;
	for (int t=0; t<6; t++) {
		cout << t << " |";
		for (int u=0; u < box[t]; u++) {
			cout << "#";
		cout << " " << box[t] << endl << line << endl;
	return 0;

I also did this program in Powershell