Archive for November, 2007

Looking for Alex? with Google AdSense

Now and again I check wether I should be doing some SEO (ok I just like seeing if I come out on top but hey who doesn’t), but today I noticed something interesting in the Google Results I was testing (you can probably guess what terms I was checking):

googadalex

The domain behind it is parked with ads, but is this a new kind of social phishing? Apart from displaying incorrect information,  I mean who on earth would put up Google Adsense ads for the keyword “Alex”? Wait a minute… I have an idea. I’ll be right back…

Technorati Tags:

Visual Studio 2008 – "Ah" #1 – Automatic Properties and Object Initializers

I downloaded VS08 on Monday but didn’t really get round to doing anything until today. So far so good, looks nice. Installation was a bit long, but completed without any problems.

I just tried creating a class with some properties. Nothing really interesting, except that I’m used to using the “prop” snippet.

Well guess what Visual Studio generated when I did my usual prop + tab + tab?

public string User { get; set; }

I immediately screamed BUG, but I then came across this article by Daniel Moth. And then I remembered what this was. It’s a new feature called “Automatic Properties”. This reminds me that know I can actually start using all those features that all those slides at Tech-Ed this and last year were talking about.

I’m not sure if I’m going to like these automatic properties. It doesn’t really speed up my typing because the old prop template was just one word more, and I wonder it that one word was the cost for the flexibility of a full property template (think validation in the setters). I mean now I actually have to insert the brackets and new lines into the property myself. Well, time will tell. I’ll just start using what VS gives me (by the way, you can change those snippets if you want to using VĂ­sual Studio options).

Another feature I’m going to force myself to start getting used to is Object Initializers. This wil certainly clean up some of my code. 

User _u = new User(){ Name="Alex", Age=24 };

instead of 

User _u = User();
_u.Name = Alex;
_u.Age = 24;

(and it works nested aswell!)

Read Bard de Smet’s post about this here.

Touchdown! Visual Studio 2008 + .net 3.5 RTM

No further comments now… I’m downloading right at this moment and will be enjoying the goodness soon…

Read here:

http://blogs.msdn.com/somasegar/archive/2007/11/19/visual-studio-2008-and-net-framework-3-5-shipped.aspx

Technorati Tags: ,

Powershell – Quick Tip #1: Run a .ps1 file

This is an egoistic post, but I need to remember this piece of information, so I’ll put it in a place I’m sure I’ll find it again. I might do that a little more often if my Google searches take too long (or my memory fails more often).

The problem: How do I run a .ps1 file (Powershell script) from within Powershell?

Attempt 1:

PS C:foo> .Install.ps1
File C:fooInstall.ps1 cannot be loaded. The file C:fooInstall.ps1 is
not digitally signed. The script will not execute on the system. Please
see "get-help about_signing" for more details..
At line:1 char:13
+ .Install.ps1 <<<<

Ok, strange but secure. How do you switch it off?

Read here for the details or continue for the summary:

The command “Get-ExecutionPolicy” will return the policy you are currently running with.

There are three options for the execution policy that you can set:

  • AllSigned (default): all scripts need to be signed.
  • RemoteSigned: Only scripts downloaded from the internet must be signed.
  • Unrestricted: Any scripts will run without being signed.

I changed the policy using “Set-ExecutionPolicy RemoteSigned” and voila…

Student Conference Travel Tips

At breakfast this morning I read Conference Travel Tips on ShoeMoney. It inspired me to make my own tips (I’ve visited way less conferences than the author of that pots, but quite a few over the last two years in student terms).

So here go some general tips followed by Tech-Ed tips for student delegates.

1. Make the conference fee as cheap as possible.

IMG_1714Try getting academic pricing, try getting some of the fee paid by your University or if you are working – by your employee. Offer in return to present them a summary of the results of the conference. Some conferences may even offer to give even cheaper tickets if you are willing to work a little during the conference. This can range from simple tasks right up to providing your knowledge (if that’s applicable to the conference) at an info booth for example.

2. Book flights early

As soon as you have confirmed the conference fee and you’ve decided to go, book the flight immediately (but read nr. 3 first). The cheapest flights you can get are the earliest and since a lot of people will most probably be visiting that conference with you, the cheap flights will be gone fast. Don’t waste time, book early. I sometimes even book before I have absolute confirmation that I can participate in the conference, if the probability is high. Also try not to fly to the main airports if possible, look for alternatives such as flying to London Stansted rather than Heathrow and then continuing on per train if it’s cheaper.

3. Plan extra time to visit the town/city if you want to

Usually you will not have time to visit the town/city the conference is held in during the conference itself. At the maximum you can visit some things in the evening, but if you really want to experience the surroundings plan in an extra day or two, but remember you will have to add additional costs for food and accommodation.

4. Food and Drinks

IMG_1716Some conferences provide food and beverages. You can take some extra drinks from the conference to the place your staying which saves money. If you want to save even more, try to fill you stomach with the last set of snacks available before the conference day ends. If you and your stomach can live with that, you won’t have to spend any money on evening food. (Some conferences also have evening events, so beware not to fill-up with snacks on these days, because the food at the events is usually better.)

If they don’t provide any food at all, then you are best off doing it like the locals and going to the supermarket first thing when you arrive and fill up with stuff there. If you take it to the maximum, you could even make yourself some sandwiches and eat them hidden away in the closet. No be proud that you are a money saving student and it’s certainly a great way to start networking.

5. Accommodation

Go cheap as you have to, but not any further. I’ve had shady hotels at conferences and especially if you are traveling with expensive stuff like a notebook you want to be sure that it’s safe in your room. For students hostels are the cheapest way and if you find one that provides an in-room lockable locker (or at least a safe at the reception) then that should be fine. You’ll certainly make new (good and bad) friends in a 4 bed shared room.

If you are lucky to have friends or relatives nearby you can always ask them for a room to stay. I personally haven’t tried the new hype of couch surfing, so I can’t say much about it, but I may try it one day.

As to where in the city you should book, I can only say that the further away you are from the main venue the cheaper it gets. Check the public transport lines and choose a hotel near to the metro or bus line that you need and you will be ok.

One important word of warning, always check that the reception is open 24h a day. At conferences (especially those with evening events) you just don’t know when you will be back home. You could always take the key if that’s possible, but a rather more important reason for 24h reception is your flight back. You will soon find out that the cheapest flights are those early in the morning. They leave at 06:00 for example, meaning you need to be at the airport at 05:00 and if you need to travel to the airport you will need to add extra time between 1 and 3 hours. Sum it up and you may be leaving the hotel at around 03:00 in the night. But to check-out you will need the reception… Get it?

6. Getting around

Check what the cheapest recommended form of transport is in the city that you will be staying in. Some conference provide travel passes for the duration, but you will still need some extra travel, so find out about that before hand. You don’t want to explain to the foreign guy at the ticket counter what you need.

If you are leaving at night (see 5) then remember to check the availability of public transport to the airport at night. It may cost extra, it may take longer than daytime travel,…

Tech-Ed Tips for Barcelona

Students going to Tech-Ed can usually get academic tickets. They are cheaper. If you are a Microsoft Student Partner ask your ADE if there are even cheaper tickets and ask what you have to do to get one.

When flying to Barcelona the main airport is probably the destination you want to go to. I haven’t experienced that much price difference between the one in the south (the main one) and the northern one. Austria students can buy the Austria Airlines red-ticket in advance and the return flight will cost them a total of about 150 Euros.

Food in Barcelona is expensive. Of course the international brands (M..D….s, B….K…g and S..rB….s) are there as well and cost about the same, but here are two recommendations:

Restaurante 101, Nou de la Rambla, 101: A good three dish menu costs 7,50 EUR. It’s small and cosy. One of the waitresses speaks at least 5 languages!

Les Quinze Nits, Placa Reial, 6: A little more expensive than the above (but not much). Great view over Placa Reial where with a little fountain in the middle. Great eating when the sun is shining.

I have tried three hotels in Barcelona and if you speak at least a bit of Spanish (I don’t but still managed to get my way through) I would suggest Hotel Lyon, near metro station Barcelonetta. Friendly atmosphere, fairly cheap but clean rooms. A bit loud currently due to the building site at Franco station, but the perfect distance to the city center. (For Tech-Ed the metro line that passed through Barcelonetta is the same as for Tech-Ed so that’s great.)

Software Estimation and Austrian law

Ok, I’ve just come out of one of my law classes (part of my business studies) and a small part of today’s topic has made me think about consequences for our software making industry. Austria law states that if you give a customer an estimation of the costs (German: Kostenvoranschlag) you are only allowed miss that goal by +15% otherwise the other party can decline contract fulfillment and pay you a standard rate for work done so far. Don’t nail me down on any law details – I’m no lawyer and only have a minimal set of law courses, but it does get me thinking, how often estimations made on software projects are off by more than 15%.

I recently read the book “Software Estimation” by Steve McConnell and it contains a number of different methods and helpers for better estimations. It’s well written, has lot’s of practical examples (including common pitfalls) and introduces you to a lot of methods for different project sizes. It may not solve all your problems, but it may help you on the way.

Technorati Tags: ,

Channel 8: My interview with two VB.net stars

On the last day Mario and Christian were scheduled to do an Interview with Amanda Silver, the Senior Program Manager Lead for Visual Basic and Jay Schmelzer, the Principal Group Program Manager for Visual Basic.

As it turned out Christian was already scheduled for another interview – he was a very busy guy at Tech-Ed – and so I jumped in to film the interview and as it happened I also had to ask some questions. The video is not published yet – and you won’t see me anyway, because I posed questions from behind the camera – but there is a summary of the interview on Channel 8 and a german version on vb-magazin.de.

Data privacy – What can I find out about you?

Having studied and worked in Germany, I always had to have data privacy laws (which are quite stringent there) in the back of my mind. So I’ve always had this thing of trying to make people aware that even the slightest slip in data privacy will contribute to the big picture or better said to the big data pool that the world can find for you. Some people understand, some don’t take it too seriously and some think I’m hyping the topic. Rob Miles recently talked in front of a bunch of MSPs including me and talked about the internet as

The Biggest CV you will ever have

Quite true if you ask me, and you really have to be careful what you put online or let people put online about you.

A simple example. At the University of Technology in Munich your student id number (Matrikelnummer in German) was completely separated from your name. It was forbidden to include both parts in one document. Regardless of wether that was offline or online. Grades were published with the id number and project white papers where published with your real name.

In Austria both universities that I visit (TU/WU) have email addresses made up of the student id (i.e. id@university.com) and frequently these email addresses are published on websites together with the names of the students. (Think lists of groups that you are part of during a course and things like that). What effect does that have? Put yourself in the position of an employer who’d like to find out more information on what courses you failed on or how your grades were? It’s quite easy now, all he needs is your name, a search engine and if he finds your student id, he will have gained a lot more information than he should really have.

This example may be quite simple, but it’s not even considering all those social networks you are on and thanks to the number of online publications increasing all the time, you actually have to be aware that anytime you give out your name, it may be published (in an online version of a newspaper article) and consequently indexed by Google and co.

Why am I blogging about that right now? Yesterday I wanted to find out information on a person that I didn’t know anything about except for that he or she (let’s call the person Andi for sake of readability) was in a relationship with someone who’s name I knew. You’d think that’s quite a bad starting point for trying to find information about some one, because you don’t really have a relationship database publicly available. The starting point was Alex (again anonymized to protect gender and people involved). My first search for Alex led me to Alex’s blog, which didn’t turn up any information on Andi. But I found out that Alex had done a particular activity in summer and searching for a combination of name + some activity terms revealed a picture site (that wasn’t linked to from the blog) with a number of photos. I soon found Andi’s nickname and a picture on there. Searching for Andi’s nickname wouldn’t bring up any specific results, so I decided to search for Andi’s name in combination with Alex’s name, which didn’t help, but after searching for Andi’s full given name (that I guessed from Andi’s nickname) and Alex’s name I found an article about people being interviewed about some random topic. There were lot’s of people in the interview, but also Alex’s name and a name starting with Andi’s given name. Chances were good that this was Andi’s real full name.

Once you have that you only need to search on well known social networks and the door is open for a lot more information. Keep in mind that Alex was not on any social networks (Andi was) but I was still able to find quite a bit of information on them.

When meeting new people I usually google them just to see if I can find any similar interests – I’m sure I’m not the only one and you may call me strange now – but wait a couple of years and you’ll be doing it too. But this example surely has convinced me again to be much more careful about what information I publish or make publicly available. Because you can’t really delete something that’s been on the web before.

Just my thoughts…

LINQ in .net 2.0 – Did you know?

I was reading the all new theruntime.com blog (members of codebetter.com have started it) and came across the following post. I hadn’t given it much thought, but it states that LINQ is available in .net 2.0. I’ve yet to try it out in .net 2.0, but it certainly opens up some possibilities for projects that are required to run on .net 2.0 – you can at least use some of the goodness of VS2008!

(n.b. you need to include System.Core.dll in your .net 2.0 apps as stated here)

Tech-Ed: Download session files now

My last Tech-Ed report is still missing and will be coming shortly, but I wanted to share a quick tool that I wrote to download all of the session slides and things that were available while I was still at Tech-Ed. I thought using the network there might be faster than doing it at home, but I was wrong, so I ended up downloading it from here.

I know some companies can’t wait for the DVD to be delivered and want the slides now, so this tool will simply let you log in to your MS Events site, then press “Start” to download the files. It will parse the download sites and then download the files to a directory of your choice. It’s quick and dirty, but it works. There isn’t a tremendous amount of error handling and you will have to work by the process “Log-In” then press “Start”, but if you want to change something feel free to do so, a link back to here would be nice if you use or change anything.

For sake of having a license at all code and binaries are subject to the Common Publice License.

Download Binaries or Source.

Update: Some people have to login, then click on “PPTX files” and then press start to download the files. But you should only have to login and press start.

Technorati Tags:

Next Page »


Subscribe / Search


XING

 

November 2007
M T W T F S S
« Oct   Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Twitter

Blog Stats

  • 173,980 hits