Category: Howto

  • fit-PC2 & Ubuntu 9.10: Configure Wi-Fi access for WPA2 protected WLAN

    Here is a step-by-step tutorial how to configure a fit-PC2 running Ubuntu 9.10 to connect to a WPA2 protected WLAN. First, follow the instructions on http://www.fit-pc2.com/forum/viewtopic.php?f=43&t=1150 to install some fit-PC2 packages that ensure the hardware support. After rebooting, the system should use the fit-PC2 kernel: # sudo uname -r 2.6.31-34-fitpc2 Next, create the file /etc/wpa_supplicant/wpa_supplicant.conf […]

  • ASP.NET MVC 3 & Unity 2.0: Using XML configuration for design-time configuration

    Introduction In one of my blog post “ASP.NET MVC 3: Dependency injection with Unity 2.0” I explained how to use the Unity 2.0 dependency injection (DI) container in an ASP.NET MVC 3 web application. The example shown in this previous post uses run-time configuration to set up the DI container. A drawback of run-time configuration […]

  • ASP.NET Membership Provider: Changing user password without knowing the old one

    If you want to change a membership user’s password with the MembershipUser.ChangePassword method you need to know the user’s old password. The following extension method defines a SetNewPassword method that enables you to reset the password without knowing the old one: public static class MembershipUserExtension { /// /// Set a new password for the membership […]

  • ASP.NET MVC3: Controller extension methods to render a partial view to string

    To handle AJAX form requests in my ASP.NET MVC3 controller I needed a way to render a partial view to a string to return a JSON result containing both the (server-side) validation result (as boolean) and a rendered partial view (as string). Unfortunately in ASP.NET MVC3 there seems no out-of-the-box support for rendering partial views […]

  • Windows 7: How to edit hosts file

    To edit the hosts file on a Windows 7 system just follow the instructions below: Press Windows-Key or click on Windows icon Search for “cmd.exe“ Press Strg+Shift+Return or right click on cmd.exe and select “Run as administrator” Confirm the Windows UAC dialog. Run notepad %systemroot%\system32\drivers\etc\hosts Edit the hosts file and save the changes Close the […]

  • Ubuntu 10.04: Duplicate/Outdated “Message of the day” after updating from 10.04.1 LTS to 10.04.2 LTS

    After updating my Ubuntu system from 10.04.1 LTS to 10.04.2 LTS I got two Messages of the day after the login. Ubuntu 10.04.2 LTS Welcome to the Ubuntu Server! * Documentation: http://www.ubuntu.com/server/doc […] Ubuntu 10.04.1 LTS Welcome to the Ubuntu Server! * Documentation: http://www.ubuntu.com/server/doc […] 53 packages can be updated. 5 updates are security updates. […]