Sunday, January 31, 2010

Windows 7 RDP with blank password

I have a windows 7 HTPC setup atr home that is not part of my domain (in orderr if it reboots it reboots all by its self and dont ask for a password or ALT+CTRL+DELETE

but I wanted to work on it with RDP. But when I connected I gotr the following error:
"Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.". Even

run secpol.msc /s and then under Security Settings -> Local Policies -> Security Options set the Accounts: Limit local account use of blank passwords to console logon only to disabled

Tuesday, January 19, 2010

Developer Interview question samples

FizzBuzz example.

A fizzbuzz is a small code sample/program that can be given to a developer to test his skills and knowledge about certain subjects

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1 {
public class ClassA {
public override string ToString() {
return "Hello from class A";

public class ClassB : ClassA {
public override string ToString() {
return "Hello from class B";

public class ClassC : ClassB {
public override string ToString() {
return "Hello from class C";

class Program {
static void Main(string[] args) {

ClassA first = new ClassC();
ClassC second = new ClassC();
ClassB third = (ClassB)second;
ClassA fourth = (ClassA)third;
object fifth = (object)fourth;

Console.WriteLine("1: " + first.ToString());
Console.WriteLine("2: " + second.ToString());
Console.WriteLine("3: " + third.ToString());
Console.WriteLine("4: " + fourth.ToString());
Console.WriteLine("5: " + fifth.ToString());