Tag Archives: Mono

A good new years gift…

My day job keeps me housed in Visual Studio 2010/Windows, so for my out of hours development I feel I need a change, so for many years I have been a home mac and/or linux user; anyway I have used many languages over the years but I feel more comfortable using C#, so my development environment of choice is monodevelop.

Last week I was lucky to get onto the MonoDroid beta, I thought of it is New Year gift from Mono/Novell guys…

So last week I started to playing with it…. its fun… and I think its going to be fun ride using Mono, C# and Android. With phone such as my nexus one and the recently announced Droid Bionic (2GHz dual-core processor, 512mb) it really means that we can start to put some quite computational intensive applications on these devices, plus having access to a quick database such as sqlite makes life easier… now what should I do with it?

Attachmate acquires Novell for $2.2 billion

Over the last decade I have gained quite a lot of respect for Novell mainly due to their SUSE Linux platform and Mono.

Strangely one of the companies involved in the acquisition is “Golden Gate” from San Fran, looks like it is the same company that also help us “Micro Focus” become liberated from Merant back in late 2001… if it is then Novell… sorry “Attachmate” have a really good chance.. Gosh.. its a small world..

I really hope that their fortune changes under the new leadership of Attachmate… anyway good luck old Novell..

http://news.cnet.com/8301-30685_3-20023535-264.html

http://www.sec.gov/Archives/edgar/data/758004/000119312510265964/d8k.htm

http://twitter.com/migueldeicaza/status/6732038669340672#

Detecting the use Mono CLR dynamically

While developing something that could be used on Mono on Windows, Mono on Unix and on Windows with Microsoft’s CLR, I needed to be sensitive to the environment but didn’t want to conditionally compile my code different. So I put together a quick class to help.. Below is the C# code with pics of it running on Windows/Mac…

using System;
using System.Reflection;

namespace Gennard.Net
{
    public class CLRUtils
    {
        private static readonly bool isMono= Type.GetType("Mono.Runtime") == null ? false : true;

        private static readonly int eOSp = (int)Environment.OSVersion.Platform;
        private static readonly bool isUnix =  (eOSp == 4) || (eOSp == 128);

        /* Class Properties */
        public static bool IsMono { get { return isMono; } }
        public static bool IsUnix { get { return isUnix; } }

        public static void Main()
        {
            Console.WriteLine("Are we using Mono? : "+IsMono);
            Console.WriteLine("Are we using Unix? : "+IsUnix);
        }
    }
}

The taste of the pudding mix.. is in the eating.. so lets see it working…

On Windows....

On the Mac, we get....