Yet another Hello World
using System;
using System.Linq.Expressions;
class HelloWorldOfTrees {
static void Main ()
{
var param = Expression.Parameter (typeof (string), "p");
var cwl = Expression.Lambda<Action<string>> (
Expression.Call (
typeof (Console).GetMethod (
"WriteLine", new [] { typeof (string) }),
param), param).Compile ();
cwl ("Hello World !");
}
}
[mono] /tmp @ gmcs test.cs [mono] /tmp @ mono test.exe Hello World !
Well heh, you can’t do really much more than that, but at least, that is working (sort of).
Mono presentation at Microsoft Techdays 2
For the second year in a row, I’ll be presenting a session about Mono and Moonlight during the Microsoft Techdays that take place in Paris, on Feb 11. We’ll have the pleasure to have with me my oh so famous boss Miguel, to introduce my session, and answer a few questions.
Here’s the direct link to the session sum up: PrĂ©sentation des projets Mono et Moonlight .
Update: You can download the slides of the presentation.
A handful of useful scripts
I've just uploaded a zip file containing a handful of scripts I use in my every day routine.
- cleol: Clean the end of lines of the files passed as arguments. Accept ruby wildcards (such as * or **/*). That will replace the windows style line endings by unix style line endings, but will also remove useless white-spaces.
- clprop: Clean the svn properties of the files passed as arguments. Accept ruby wildcards (such as * or **/*). That will remove the svn:executable properties, and set the svn:eol-style to native to the files.
- svnci: My own script that prompt me my favorite lightweight editor to edit my ChangeLog entries.
-
monoport: I've detailed this one in this blog entry. I recently added to it the possibility to get a monoport entry printed to stdout. Typically, it allows me to apply patches directly from monoport:
monoport -g:4512 | patch -p0
Requires the cute library hpricot.



