E-MIEL.NET

TECH STUFF

Music artist and developer…what’s the difference?

admin, · Categories: Development, Music

Last Friday I visited the North Sea Jazz festival. One of my musical highlights of the year. The chance to see my musical heroes shine on a large (and sometimes small) stage.

Being an absolute music lover and experienced software developer, I was confronted with a parallel universe:

And like any profession you have to work on your skills continuously too stay up-to-date.

And both are contagious: play along with a song versus taking over the keyboard and mouse for a particular solution.

And you have to be very creative.

And there are many more similarities.

In the end…are there any differences?

Hosting OpenVPN (on Debian) and configuring the iPhone

admin, · Categories: Uncategorized

I love my iPhone, I think it’s my best toy beside all bass related stuf :)

As I come in a lot of places I was searching for a nice solution to be able to connect through a public network to my network…VPN it is. XL2TPD was my first attempt but I ran into a lot of problems and therefor decided to switch to OpenVPN.

For those of you wandering how I found this great tutorial

Configuring the iPhone is very easy

ReverseService (WCF)

admin, · Categories: C#, WCF

I’m running a very simple WCF service that reverses a string. This service was originally created for presentation purposes, anyone who is interested please feel free to use it :)

The URL: Service and WSDL and TestPage

I do love recursive programming, the method I used (yes, I know there are a lot of solutions) is shown in the code below:

private string ReverseTheString(string value)
{
if (string.IsNullOrEmpty(value))
{
return string.Empty;
}
if (value.Length == 1)
{
return value;
}
return value.Substring(value.Length - 1) + ReverseTheString(value.Substring(0,value.Length - 1));
}

 

Calling the service from jQuery (just finished the 70-480 exam…has to consume this webservice :)) can be done with the following code:

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>
HTML5 calling JSON webservice
</title>
</head>
<body>
<input id="txtReverse" type="text" />
<button onclick="ReverseString($('#txtReverse').val())">Submit</button>
<label id="lblReversed" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
function ReverseString(stringReverse) {
$.getJSON('http://webservices.elconsultancy.nl/ReverseService/ReverseService.svc/json/' + stringReverse,
function (json) {
$("#lblReversed").text(json.ReverseStringJsonResult);
});
}
</script>
</body>
</html>

D510MO No device driver was found

admin, · Categories: HW, Windows, Windows 2012 RC

During my installation of Windows 2012 RC on the Intel D510MO, I ran into the “No device driver was found” message and was at that point not able to select the drive on which I wanted the Windows installation on.

Unfortunately Intel does not support 64bit versions of Windows on this motherboard (at least, they don’t supply the proper drivers). Luckily Asus does…

Turned out that by use of the Asus 64bits drivers for the NM10 Chipset the system works as a charm.

This is why Toad® sucks

admin, · Categories: Uncategorized

Sonicwall TZ 170 – Status: Warning! Invalid firmware boot option.

admin, · Categories: HW, Network

Got my hands on an old but decent Sonicwall TZ 170 but didn’t know the password…oops!

Regestring at Sonicwall wasn’t any problem, just send a picture of the bottom of the unit and…registered! Next…how to get rid of the password. There is a recovery mode, but that was giving me a “Status: Warning! Invalid firmware boot option.” Turned out that the version of the OS has issues with IE above version 6 (yes, Windows XP was originally supplied with it). As only running Windows 7 (and non-Microsoft machines) I created a virtualpc wth WindowsXP…that’s all…

The OpenWRT HowTo (for dummies – like me)

admin, · Categories: Network, OpenWRT · Tags: ,

As a test I wanted to install OpenWRT on my WNDR3700 (Version 1) router. Most is documented but it took me some time to get it to work.

Ok, what are the steps:

  1. Download the image (I took the squashfs from http://downloads.openwrt.org/snapshots/trunk/ar71xx/).
  2. Install it (simply either by use of the upgrade function from the GUI, assuming you are running the default Netgear firmware, or by TFTP)
  3. Set your computer to the fixed IP 192.168.1.2, subnet 255.255.255.0
  4. Start a telnet session from the command prompt (telnet 192.168.1.1)
  5. type passwd to set a root password
  6. install LUCI (ok, that step is really usefull for Windows-users like me as it will install a web GUI):

opkg update

opkg install luci

/etc/init.d/uhttpd enable

/etc/init.d/uhttpd start

By now, the basic setup is finished (including web GUI) and you can start the configuration.

Additional:

As I’m running a server on my LAN which is responsible for DHCP and DNS I uninstalled dnsmasq:

opkg remove dnsmasq

Finally I had to install a dyndns client (cable Internet with dynamic IP), this can be done from the GUI.

 

As a test I wanted to install OpenWRT on my WNDR3700 (Version 1) router. Most is documented but it took me some time to get it to work.

Ok, what are the steps:

Download the image (I took the squashfs from http://downloads.openwrt.org/backfire/10.03/ar71xx/).

Install it (simply either by use of the upgrade function from the GUI, assuming you are running the default Netgear firmware, or by TFTP)

Start a telnet session from the command prompt (telnet 192.168.1.1)

type passwd to set a root password

install LUCI (ok, that step is really usefull for Windows-users like me as it will install a web GUI):

opkg update
opkg install luci
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start
 
As I’m running a server on my LAN which is responsible for DHCP and DNS I uninstalled dnsmasq: opkg remove dnsmasq 
 
Finally I had to install a dyndns client (cable Internet with dynamic IP), this can be done from the GUI.
 

And…that’s it!

Devoteam Windows Azure Calculator

admin, · Categories: Azure

One of my colleagues has created an online calculator for calculating the costs of using Azure. This calculator is a big improvement on the current available calculators and can be used for free!

Jenkins, Nant and version numbering

admin, · Categories: C#, Tech

During the “upgrade” of a build server at a customer site from CruiseControl.NET to Jenkins (in combination with Nant) I ran into a major challange: how to handle version numbering.

The solution I use now is combining a BUILD_PREFIX (which is rarely changed) with the BUILD_NUMBER from Jenkins. The latter can be retreived by calling ${environment::get-variable(‘BUILD_NUMBER’)} in the script. This combination is written to AssemblyInfo.cs.

gacutil through right mouse click

admin, · Categories: C#

Another one that I forgot…adding assemblies to the GAC:

The string should contain this value:

c:\windows\Microsoft.NET\Framework\v1.1.4322\gacutil.exe /i “%1″