Archive for December, 2008

p1060254(my sister!)

So much for global warming… (it’s just an excuse for the government to ask more taxes!!!)

Update:
Let me clarify my comment ^.

It’s a JOKE! (yet still the government uses it as an excuse!)

Comments 5 Comments »

It seems that there are magic telephones that can recieve calls without a sim card :D (look at the ‘No SIM card inserted’ text on the screen!)

CSI: Miami magic telephone

Comments 2 Comments »

An update for Windows Live Messenger has just been released, it includes an updated GUI, and it finally displays custom emoticons :)

Messenger itself notifies you of the update :)

Comments 1 Comment »

imag0025

My visa for the USA :D

Takeoff January 5th, at 0950 a.m. (yes I am writing it like this, because I have to write the date like that in the states!).

So nervous…

Comments 2 Comments »

Using lambda functions you can shorten your event handlers.

E.g.:

With a normal event hander:

class Test
{
	private Timer timer;

	private void Timer_Elapsed(object sender, ElapsedEventArgs e)
	{
		Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
	}

       public Test()
	{
		this.timer = new Timer();

		this.timer.Elapsed += new ElapsedEventHandler(this.Timer_Elapsed);

		this.timer.Interval = 100;
		this.timer.Start();
	}
}

With an anonymous function:

class Test
{
	private Timer timer;

        public Test()
	{
		this.timer = new Timer();

		this.timer.Elapsed += delegate(object sender, ElapsedEventArgs e)
					 {
						 Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
					 };

		this.timer.Interval = 100;
		this.timer.Start();
	}
}

And with an anonymous lamba:

class Test
{
	private Timer timer;

        public Test()
	{
		this.timer = new Timer();

		this.timer.Elapsed += (sender, e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
		//or you can explicitly type your parameters:
		this.timer.Elapsed += (object sender, ElapsedEventArgs e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));

		this.timer.Interval = 100;
		this.timer.Start();
	}
}

And with a named lamda:

class Test
{
	private ElapsedEventHandler elapsedEventHander;
        private Timer timer;

        public Test()
	{
		this.timer = new Timer();

		this.elapsedEventHander = (sender, e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));

		this.timer.Elapsed += this.elapsedEventHander;

		this.timer.Interval = 100;
		this.timer.Start();
	}
}

Which one to take? The one that suits you and your current application / case!

Sidenote: sorry for the layout, I will fix it ASAP. Fixed :)

Comments 3 Comments »

Mulder

Comments 1 Comment »

(I quote):

Developer Express and Microsoft are proud to announce a new version of CodeRush licensed exclusively for C# developers working in Visual Studio. The new product is called CodeRush Xpress, and it includes a fresh selection of hand-picked features taken from CodeRush and Refactor! Pro.

And I love it! It has very handy functions for refactoring your code very fast!

I recommend it for everyone!

Usefull links (both contain the downloads):

If you are interested in learning the features you can access these movies:

Dustin Campbell also presented a video on this tool, among other useful Visual Studio 2008 shortcuts  on PDC 2008, you can find it here (click below for wmv-hd download).

Comments 2 Comments »

For those who like to live on the edge:

Vista SP2 x64 Beta

Vista SP2 x86 Beta

Remember that there is a change when you install this on your workstation you might need to reinstall Vista if problems occurs, I AM NOT RESPONSIBLE for this.

Comments 1 Comment »

Since this is a fairly unknow website, I thought on pointing it to you:

http://translate.google.com/

It detects the entered language, and the translation is quite accurate. Not as good to use in a paper, but good enough to understand :)

Comments No Comments »

I just downloaded the Visual Studio 2010 CTP (you can get it here) (an easier way to download the CTP is described here).

When you have downloaded everything you will end op with an VHD (Virtual HardDisk) and VMC (Virtual Machine Configuration). The first one contains the actual C drive of the VM, and the VMC some (default) configuration.

These files are useless in VMware, because you can’t load the VMC, nor can you use the VHD.

But you can convert the VHD (the hard disk) to a VMware-readable format.

These are the steps:

  1. Download WinImage trial here (choose your flavor).
  2. Install/extract (depending on your flavor).
  3. Open the VHD with WinImage: winimage
  4. Open your VHD (you might need to change the filter).
  5. Select Dynamically expanding disk: winimage-dyn
  6. Choose where to save your file.
  7. Now create a new VM in VMware, a Server 2008. And when it asks to create a new Hard Drive you select: Use an Existing Virtual Disk, and point it to your newly created vmdk.

Good luck!

Problems? Leave a comment :)

Comments 1 Comment »

And shepherds we shall be, for thee my Lord for thee, power hath descended forth from thy hand, that our feet may swiftly carry out thy command. We shall flow a river forth to thee, and teeming with souls shall it ever be. In nomine Patris, et Filii, et Spiritus Sancti.