As a part-time vegetarian, I face some small problems. They do not bother me very much, but I feel discriminated by both my meat-eating friends and my full-time vegetarian friends.
The former mock my ways, the latter doubt my commitment.
Posted on 29 Aug 2007
Dave Winer has an interesting observation on blogging, fact checking and correcting previous statements.
Sometimes I use an "Update" tag when corrections are sent my way, sometimes I use a new post, sometimes I update and link, sometimes am guilty of being sloppy.
What is your take?
Posted on 29 Aug 2007
The Mainsoft developers have been busy implementing the core foundation for ASP.NET AJAX. They usually do all their testing on Grasshopper.
Recently System.Web.Extensions got added to the default build in Mono (I do not think this will make it into Mono 1.2.5, you will need to use the code from SVN for that) but we had not really tested it directly with Mono.
Onur Gumus posted a How To: ASP.NET Ajax with Mono document today.
For doing native development in Unix this is a bit cumbersome (due to all the new stuff that needs to be added to the Web.config file; Should we put most of this in the standard machine.config?) but if you are moving an application, the Web.config should have been produced by Visual Studio already.
Konstantin Triger reports that the open source ASP.NET AJAX Toolkit works on Grasshopper, we have not tested this directly with Mono and XSP, but hopefully someone will try it soon.
Posted on 28 Aug 2007
A few weeks ago Thomas introduced me to Achim Hasenmueller from Innotek, the makers of VirtualBox, an open source virtual machine system (similar to VMware and VirtualPC).
It turns out that much of the functionality of VirtualBox is exposed through COM interfaces and at least on Unix they use Mozilla's XPCOM as their COM layer.
Achim wanted to use Mono to script and control VirtualBox through its XPCOM interfaces.
The good news is that for the past few months, Jonathan Chambers has been working on adding COM support to Mono. Jonathan has some software that exposes COM interfaces, and wants to be able to control it from Mono, instantiate COM classes from Mono, consume COM interfaces from Mono and export Mono objects to COM applications.
Jonathan's initial goal was to support COM on Windows, but as the recent testing showed, Mono can use Mozilla's XPCOM to script VirtualBox.
Last time I talked to Jonathan he was putting together a tool that can import type libraries from XPCOM and generate the C# stubs that are necessary to get access to all the APIs exposed by XPCOM instead of having to manually bind each interface.
Hopefully Jonathan will post his sample code for folks that might be interested in using COM with Mono on Unix.
Here is a C# sample that he emailed me recently (for VirtualBox):
static void listVMs(IVirtualBox virtualBox) { IMachineCollection collection; IMachineEnumerator enumerator = null; collection = virtualBox.Machines; if (collection == null) return; enumerator = collection.Enumerate(); if (enumerator == null) return; while (enumerator.HasMore) { IMachine machine = enumerator.Next; if (machine != null){ IntPtr ptr; string machineName; ptr = machine.Name; machineName = Marshal.PtrToStringUni(ptr); Console.WriteLine ("\tName: {0}\n", machineName); } } } static int Main (string[] args) { int hr = 0; nsIServiceManager sm; hr = NativeMethods.NS_InitXPCOM2 (out sm, IntPtr.Zero, IntPtr.Zero); IntPtr ptr; nsIComponentRegistrar cr = (nsIComponentRegistrar)sm; Guid kEventQueueServiceCID = new Guid("be761f00-a3b0-11d2-996c-0080c7cb1080"); sm.getService(kEventQueueServiceCID, typeof(nsIEventQueueService).GUID, out ptr); nsIComponentManager cm = (nsIComponentManager)sm; string NS_VIRTUALBOX_CONTRACTID = "@virtualbox.org/VirtualBox;1"; IVirtualBox virtualBox = (IVirtualBox)cm.createInstanceByContractID( NS_VIRTUALBOX_CONTRACTID, null, typeof(IVirtualBox).GUID); listVMs(virtualBox); Marshal.ReleaseComObject (virtualBox); NativeMethods.NS_ShutdownXPCOM(sm); return 0; }
The code above would also automatically work with any other .NET language (for scripting purposes, IronPython, and one day IronRuby).
COM does not exist on Unix as a service that applications can depend on. Developers today have a choice between using Mainsoft's COM runtime or embedding a variation of Mozilla's XPCOM in their application.
For example, VirtualBox today bundles a copy of XPCOM in its source code distribution.
Some folks have a lot of code that has been built with COM in mind and this should open the doors for folks to take advantage of it on Unix with Mono.
Posted on 28 Aug 2007
A useful Flash interactive application to browse how much money candidates have raised, how much they have spent and who are their major donors.
Three folks that have impressed me (Dennis Kucinich, Mike Gravel and Ron Paul Gravel) have raised very little money compared to the multi-million juggernauts in the mainstream.
Electability seems to be highly correlated to how much money these folks are raising and spending.
Posted on 27 Aug 2007
Cuando era niño, era fan de esta colección de libros de Pemsa que tristemente ya no están a la venta.
Ahora un esfuerzo está tratando de digitalizar libros de segunda mano y completar un acervo histórico en línea (por Barrapunto).
Posted on 27 Aug 2007
Edd Dumbill has authored a superb summary on where Moonlight is.
He has put together a great description that pulls information from multiple sources to put together a really nice story and give a good idea of where we are headed to.
Posted on 23 Aug 2007
Ivan has posted the final status report for his Mono.Design work for the summer:
During the summer Ivan worked on implementing a Windows.Forms designer surface and various pieces of the infrastructure to load and save designs. He also worked on integrating Windows.Forms with Gtk# to enable the designer to be used from within MonoDevelop.
Read his entire report here and you can comment on his blog.
Posted on 23 Aug 2007
Today I received my copy of the Annotated C# Standard that Jon Jagger, Nigel Perry and Peter Sestoft put together.
This book is an annotated version of the C# specification that comes with plenty of comments and contributions from people that have implemented the language (It has contributions from Mono's Marek Safar, Martin Baulig, Paolo Molaro, Raja Harinath and myself, but also from the C# team at Microsoft, contributors to ECMA and some universities that researched C#).
Jon has been passionate about C# for a long time. The C# specification that we distribute as part of Monodoc was based on his hyperlinked version of the standard.
Nigel contributed to both the CLI and C# standards over the years and recently joined Microsoft.
Peter has written a number of books (Java Precisely, C# Precisely) and is also behind the implementation of C5 a Generic Collection Library (this was a great test case for Mono's C# compiler: it was quite a challenge).
Congratulations to Jon, Nigel and Peter. They have been working on this project for a long time.
Posted on 22 Aug 2007
OMG2 OMG2 OMG2 OMG2 OMG2 Mark Probst pointed me out to the announcement of Canon's 40D camera. I skipped over the 30D, so this is my opportunity to continue shopping until I drop.
OMG3 OMG3: it can do Wifi file transfers and hook up to a GPS.
Posted on 22 Aug 2007