Firefox, Visual Studio 2005 and Vista

Posted on August 28, 2007

To make Visual Studio open  pages in Firefox: close all files, then File->Browse with. If some file is open that menu item might not be visible.

If it takes very long time to open a page, in Firefox, goto about:config, and set "network.dns.disableIPv6"  to true.

And finally avoid ASP.Net 2.0 it is insanly complicated for no reason, instead use Castle.Monorail.

P.S Vista suck, but thats a topic for a separate post ;-)

 

 

Filed Under Uncategorized | Leave a Comment

Plum

Posted on August 22, 2007

Sometimes I read labels, because, well, bacause sometimes I make amazing discoveries!

plum.jpg

Filed Under Uncategorized | Leave a Comment

Queinnec’s Lisp in Small Pieces, beats Harry Potter as bestseller

Posted on August 9, 2007

Queinnec's Lisp in Small Pieces beats Harry Potter as bestseller

Filed Under Uncategorized | 2 Comments

Two useful generic utility classes for .Net applications

Posted on August 5, 2007

    /// <summary>
    /// By Jean-Paul S. Boodhoo
    /// From http://blog.codebetter.com/blogs/jean-paul_boodhoo/archive/2007/07/11/165483.aspx#165493
    /// </summary>
    /// <typeparam name="T">event specific data type</typeparam>
    public class EventArgse<T> : EventArgs where T : new()
    {
        public new static readonly EventArgse<T> Empty;
        private readonly T eventData;

        static EventArgse()
        {
            Empty = new EventArgse<T>();
        }

        private EventArgse()
        {
        }

        public EventArgse(T eventData)
        {
            this.eventData = eventData;
        }

        public T EventData
        {
            get { return eventData; }
        }
    }

     /// <summary>
    /// By Nate Kohari
    /// From http://kohari.org/2007/08/03/thread-safe-event-handlers/
    /// </summary>
    public static class ThreadSafe
    {
        public static EventHandler<T> EventHandler<T>(Control context, EventHandler<T> handler)
        where T : EventArgs
        {
            return delegate(object sender, T args)
            {
                if (context.InvokeRequired)
                    context.Invoke(handler, sender, args);
                else
                    handler(sender, args);
            };
        }
        public static EventHandler EventHandler(Control context, EventHandler handler)
        {
            return delegate(object sender, EventArgs args)
            {
                if (context.InvokeRequired)
                    context.Invoke(handler, sender, args);
                else
                    handler(sender, args);
            };
        }
    }

Filed Under Uncategorized | Leave a Comment

Documentation generator for C# projects

Posted on August 5, 2007

Ever noticed lack of .net documentation on the net?

There are plenty of javadoc but nothing for C#. That’s because Microsoft never provided documentation generator for .Net and open source projects are currently in non-working state. Well that is changing; Microsoft is trying to fill the need for various tools. They now have Sandcastle for documentation generation and msbuild for build scripting. I tried them and basically they suck and I will never use them.

However I found great open source tool for documentation generation, I think many Concordia CS students are familiar with it already, it’s called Doxygen.

With Sandcastle it took me about an hour to figure out how to make it work, but with docgen it only took 15 seconds! Doxygen produces amazingly useful and nicely formatted documentation. It event generated some graphs!

For the build scripting I have to use nant and msbuild together. I fork msbuild to build the project and use nant for everything else.
—————–

Why Microsoft had to design such and ugly XML for their tools?

Filed Under Uncategorized | 1 Comment

© Copyright 0xDEADBEEFCAFE • Powered by Wordpress • Design by Sebastin.

free web hit counter