Wednesday, November 5, 2008

Obama Mutex

A little something for the Obama supporting programmers out there

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Hope;
using Change;
using ProgUtils.ErrorLog;

namespace PresidentialElection
{
    static class Program
    {
        ///
        /// The main entry point for the application.
        ///
        [STAThread]
        static void Main()
        {
            try
            {
                bool ObamaElected;
                System.Threading.Mutex Obama;
                Obama = new System.Threading.Mutex(true, "ObamaAsPresident", out ObamaElected);

                if (!ObamaElected)
                {
                    MessageBox.Show("Obama has already been elected, you can elect him again in 4 years.");
                    return;
                }

                Application.Run(new Form1());

                GC.KeepAlive(Obama);
            }
            catch (Exception ex)
            {
Log.WriteToLog(ex);
            }
        }
    }
}

Monday, November 3, 2008

City Organization: Los Angeles vs. San Diego

I recently had a short conversation with a friend about the layout and organization of the city of San Diego compared to the layout of Los Angeles. My friend is of the opinion that San Diego is better organized than Los Angeles and expressed his view, part of a broader obsession that one reason Los Angeles is not layed out as well as San Diego is due to massive immigration, a reference to illegal Mexican immigration which is the broader obsession of this friend of mine. Unlike the humor of Seth MacFarlane post that has not yet gone anywhere, I will begin to put up posts on this topic as I research the issue and of Los Angeles' and San Diego's city planning and how immigration to both cities may have affected it. I will still probably be putting a few unrelated posts on this blog while working on the City Organization Series so if you do a search please look for the tags "City Organization", "LA vs San Diego"

(My Friend if he reads this should know I am playfully jabbing at him in this post, as I enjoy taunting and generally provoking his acerbic wit into making an appearance in the comments section)