Francois Beaussier & Aymeric Gaurat Apelli

Monday

Binary numbers...

I just came accross some c# code wich was used to convert a number into it's binary representation. It did work but there is already something much simpler in the framework that does exactly the same thing:

Console.WriteLine(">> " + Convert.ToString(12345, 2));

>> 11000000111001

Instead of base 2, you may as well put 8, 10 or 16, which might be handy :)

Import msn messager contacts at once

I joined my new company and I have a list of 20 people that want to add to my msn contact list. There is an import command in the "Contact" menu, asking for a .ctt file. Hum, well... Lets try to export my current contact list to have a look at the format :


<?xml version="1.0"?>
<messenger>
<service name=".NET Messenger Service">
<contactlist>
<contact>first_contact@some_domain.com</contact>
<contact>second_contact@some_domain.com</contact>
<contact>third_contact@some_domain.com</contact>

...

<contact>last_contact@some_domain.com</contact>
</contactlist>
</service>
</messenger>


This is great, this is xml format ! I just need to write a file with all the new contacts I want to add and import it.

To create the file, i used Excel. I wrote "<contact>" in A1, "</contact>" in C1 and i pasted my list of new contacts in B1. I copied the A1 and C1 cells downwards, up to my last contact. I selected everything and pasted it in a notepad. Less than a minute :)

And it works ^^

Wow ! there is now 20 people saying hello at once ! ^^

Hello Australia / Bonjour l'Australie

J'habite maintenant en Australie et je vais donc continuer mon blog en anglais :)

I now live in Australia and i will continue my blog using english :)