USA: 2nd orientation course + the Movies + fun!

Today we had a required second orientation course in the International House over here, where a couple of persons welcomed us, presented a group, and stuff like that.

Heidi also did a presentation on American Culture, we are already learning!

At 04.20p.m. Joe picked me up to go to the movies. We went to see Defiance. (which takes up to March 4th to get released in Belgium…)

Great movie about World War II, and Daniel Craig sure played really well as the camp leader, though his appearance in Bond makes it a bit weird at first. The movie is packed with action, and there is a really good story as the backbone.

After the movies Joe and his friend JP (who also went with us to the movies) went out to Red Robin, and we ate some really great hamburger over there! And we concluded the evening by playing Rock Band at Joe’s. Great evening!

Thanks Joe for picking me up! Thanks JP for the dinner!

 

 

I love the American Culture. Friendliest people I’ve ever seen!!!

Linq To Entities with a SQL Compact Database

A while ago I wrote this (Dutch) article on how to perform LINQ to SQL for your SQL Compact databases, since Visual Studio did not understand this, we had to do it manually, as described in the article just mentioned.

But since the release of .NET Framework 3.5 SP1, and the therein included ADO.NET Entity Framework, it is now possible to generate a model out of a SQL Compact database!

Unfortunately this is not (yet) possible for Smart Device applications (Windows Mobile), but who knows what the future might bring!

USA: Orientation, lunch, TB test

Well today was a very busy day. Heidi made us attend an orientation about the rules on our F-1 status (Visa), we can’t work, where to go in case of emergency and stuff like that, basics actually.

When that was done we visited the library where the librarian showed us around, on how to use the category system, microfilms, microfiches.

And here is the best part: After the library tour there was PIZZA in the International house! GOOD pizza! Had a great lunch with Yorick, Paulette, Beza, and Sandra (from Austria).

Because of the bad weather (really cold!) the campus tour was replaced by a small tour (I don’t remember anything about it actually), and when we got back we were obliged to take a Tuberculosis skin test. So if my arm shows red in the next 2 days: TROUBLE! But I am healthy 🙂 I know.

In 30 minutes Paulette and Beza (maybe Sandra) will come and eat the rest of the pizza I ‘borrowed permanently’ 🙂

See y’all later!

USA: TOEFL test, dinner and K-State game!

Since we are foreign students over here we have to prove our English level!

So on Tuesday we had to be present at the class at 08.30 a.m. for the test.

It was a very long, easy listening, and reading test, with some texts and some grammar. I passed all 3 tests, so I don’t have to attend any English classes over here.

In the evening there was some dinner with the foreign students in the International House on the campus, really great! Had a very good time!

Thanks to Vicky from over here (she’s the secretary from the International House) for preparing the plates and being that kind to us!

An hour after dinner Joe took Yorick, Beza (Ethiopia), Paullette (Mexico) and me (Mars) to a bar to watch the K-State game! Very nice, and the chicken wings were good too!

This was our Tuesday, I’ll keep you up to date!

USA: Moving into the dorms!

Well hi y’all!!!

It’s been too long since I updated, and I apologize for that!

I’ve been very busy (papers, moving into the dorms, settling, …).

This is a summary about the last 3 days:

On Sunday (January 11th) we went out to the campus to eat dinner with the people from the local Chinese Bible church.

They made authentic Chinese food! It was really good, made some new friends. After that we went back to Joe’s to sleep our last night!

Monday morning Sam brought us to the school at 8 a.m., to move into the dorms. We went to the LLC, and had to wait about an hour before getting our key. We went for a cup of coffee, filled out some papers, and moved in.

The dorms were arranged to sleep with 2 people in 1 room, and 2 rooms connected to 1 bathroom (toilet + shower) and 2 sinks (without privacy). Horrible. So we went complaining that we filled out forms for a single room. But there were some problems with that. No problem, they arranged us a room in the Washburn village, so that we both have our private room, shared bathroom, shared living room (with small kitchen and fridge!!!).

In the evening Yorick and I went out to the Walmart to buy some stuff for our dorms (pillows, blankets, … the basic stuff). Thanks to Sam (Joe’s brother) for the transportation!!!

When we got back, we chatted and emailed a bit and got to bed.

Arrival in the USA!!!

Ok, this is the post you’ve all been waiting for.

Well so we left our home at 0530 a.m. local time, to the airport because it was SO snowy, we couldn’t drive more than 80km / hour!

So when we arrived (in time) I looked for Yorick and went to the check in. We could board the plane at about 1000 a.m., which was good, but because of the snow we only took off at 1200 p.m. They had to defrost the plane, and the trucks which do that were very busy. But after all, no problems, we took off.

When we were crossing over Ireland the pilot asked if there was a doctor on board (trouble!), after flew out of Ireland, and continued for about 30 minutes, we had to turn back because the situation was that bad.

Because the plane was filled up to the top with kerosine we landed too hard, so they had to check the landing gear (time is really adding up now!)

After that we took off again, and continued our flight to Newark. Since the plain couldn’t fly at full speed over New York we could watch the cars from up high.

It was really like GTA in real life.

After we landed we had to go through border control (easy) with our passports, we had to took another flight because we missed our connection.

Fortunately it was free, we flew to Kansas City for about 4 hours, and we landed at 1200 a.m. (which is midnight). So that is where Joe Forman picked us up with his brother’s Pontiac Grand Prix 3.8 V6 Supercharged (!!!!). (Thanks Joe!). What a car!!

We had to drove about 1 hour and 20 minutes to his home and the roads are HUGE here, so are the trucks.

He was driving about 75 miles an hour (maximum on the highway here is 70 miles), and since there are no road lights, you can’t see who’s driving in front. So were driving in lane 2, and on lane 1 there was a police car (we didn’t notice it until very close).

Joe had to drive slower, because of the cops. Fortunately I saw it, otherwise he would be fined! (Maybe I should have kept my mouth shut, than I would have seen a pull-over 😛 ).

So we arrived at his home at 0140 a.m. (add 7 hours for Belgium time). We went to sleep at 0400 a.m.

We woke up at 1000 p.m., then Joe prepared some eggs for us.

Then we took off to the driving licence office, to get some info, and after that he guided us around in the university.

In the afternoon we went to Walmart (we held a gun!) and Best Buy!

In Walmart we looked like small kids in a toy store. You can’t imagine how big everything is. The shampoo cans are HUGE.

So this is it for today, I’ll keep you up to date!!

C#: Smaller syntax for event handlers.

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 🙂