Phenix Development
RSS 2.0

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Sign In
Friday, June 29, 2007

This has been a time consuming effort.  When running as an administrator everything worked fine, but when trying this as a user we kept receiving an error.  Or better yet, the executable was finding a file that did not exist in that directory (still do not have an answer to this one).

We searched the web and found information, on Joel on Sofware's discussion, group that changing the name of the program to "update" or "setup" would solve the problem.  There was also mention that making a change to the manifest file will solve the problem.

Both solutions cause Vista to launch the UAC to ask for Administrator privileges.

Other information

Posted on Friday, June 29, 2007 2:16:59 PM (Eastern Standard Time, UTC-05:00)  #   Comments [1]
Thursday, May 10, 2007

This past Tuesday I did a small presentation on WCF at PDANUGHere are the files from that presentation.

Remember to sign up with PDANUG for information on events or subscribe to the RSS Feed.

Posted on Thursday, May 10, 2007 10:08:19 AM (Eastern Standard Time, UTC-05:00)  #   Comments [1]
Tuesday, May 08, 2007

I was working with a ORM system the other day and kept running into problems with the Nullable types when I called Convert.ChangeType().

[InvalidCastException: Invalid cast from 'System.DateTime' to ' System.Nullable`1[[System.DateTime, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'

A Quick Google search came up with a number of entries.  This is a known problem in the CLR.

Here a couple or other blogs on this and below is my version of the code:

Peter Johnson's Blog
The Blog

        public static object ChangeType(object value, Type conversionType)
            if (conversionType.IsGenericType && conversionType.GetGenericTypeDefinition().Equals(typeof(Nullable<>)))
                if (value == null)
                    return null;

                NullableConverter nullableConverter = new NullableConverter(conversionType);
                conversionType = nullableConverter.UnderlyingType;

            if (conversionType.IsEnum)
                return Enum.ToObject(conversionType, value);
                return Convert.ChangeType(value, conversionType);

Posted on Tuesday, May 08, 2007 10:08:17 AM (Eastern Standard Time, UTC-05:00)  #   Comments [0]
Tuesday, April 03, 2007

Saurah Gupta published an article comparing WCF with existing Distributed Communication Technologies

There are also a article on WF performance here.

Posted on Tuesday, April 03, 2007 9:33:59 AM (Eastern Standard Time, UTC-05:00)  #   Comments [0]
Tuesday, March 13, 2007

If you enjoy your music over the web, this should be of interest.  The Copyright Royalty Board has raised its rates on streaming broadcast.  A number of these companies would have to pay more than 100% of their total income.

Wired News

Here is a some information posted about the proposed pricing:

The new rates, just announced today, are retroactive to 2006, and increase rapidly each year. The rates per performance are as follows:

$0.0008 in 2006
$0.0011 in 2007
$0.0014 in 2008
$0.0018 in 2009

At first glance, those seem like fairly small numbers: eight ten-thousandths of a dollar, eleven ten-thousandths of a dollar, and so on. When you actually do the math, however, you see the truth revealed. The average radio station plays 16 songs in an hour. Under this system, that would be equivalent to 16 performances.

0.0011 x 16 = 0.0176

Still a fairly small number - under two cents. But now assume this station has 1000 listeners. That means that, in one hour, the station would be billed for 16,000 performances.

0.0011 x 16000 = 17.60

That’s $17.60 an hour. Now we’re starting to see how expensive this truly is. Multiply that by 24 hours a day.

17.60 * 24 = 422.40 

$422.40 a day. But there’s 365 days in a year.

422.40 * 365 = 154176

$154,176 for the year in performance royalties alone for a station with 1000 listeners. And that’s just for 2007: it gets even worse. In 2008, the cost rises to $193,536 for the year. In 2009, it goes up to $248,832. Even for a much smaller station, the royalties owed are huge.

Of course, these figures don’t include the other set of rights that Internet radio stations are required to purchase, which must be licensed separately from an agency like SESAC or ASCAP, or the cost of bandwidth and server capacity. When you add all these costs together, you can easily see why nobody, save perhaps a megacorporation like AOL or Yahoo, could afford to pay these rates.

Posted on Tuesday, March 13, 2007 9:20:59 AM (Eastern Standard Time, UTC-05:00)  #   Comments [0]