September 2009 Blog Posts
Well, I finally got the courage to download the RTM version of Fluent NHibernate.
I wrote about using Fluent NHibernate in an earlier post (June 28, 2009), so a lot of this is repetitive and some is new.
I have highlighted in yellow the important stuff.
First, I create a simple class
------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StockPrices {
public class COMPANY {
public virtual int Id { get; set; }
public virtual string COMPANY_NAME { get; set; }
public virtual string COMPANY_TICKER { get; set; }
public virtual int ASSET_TYPE_ID { get; set; }
public virtual int IS_ACTIVE { get; set; }
}
}
------------------------------------------------------------------
The COMPANY class has...
Well, now I have definite evidence that there is no intelligent life on earth.
Last week an appeals court threw out Lucent's $358 million award against Microsoft for infringing on a patent allowing MS Outlook users to enter a date by clicking on a calendar. Go here http://www.channelinsider.com/c/a/Errata/Microsoft-358-Million-Damage-Award-Overturned-620309?.
Does anyone else think this is galactically stupid?
I have have just three questions.
(1) What idiots on a jury think clicking on a calendar is worth $358 Million?
(2) Does Lucent think that because they're such a failure they have to resort to frivolous lawsuits to make money?
(3) What on earth is the patent office thinking...
So, today I decided I would try to figure out how classes work in F#.
I have decided to make a Bank object. The first thing I tried is this:
#light
type Bank() = class
nCustomers : int
nEmployees : int
end
This does not work! I get the error:
Program.fs(6,5): error FS0010: Unexpected identifier in member definition.
Who knows what that means.
So, I start poking around and find that I need to use the 'val' key word to create a public property. So the next thing I tried is this:
type Bank() = class
val nCustomers : int
val nEmployees : int
end
This also does not work! I...
Well, I just got a look at the rail traffic data for the week ending 8/29/2009.
We actually see a fairly sizable increase -- all non-intermodal traffic increased by 2.1% over the previous week:
Two percent may not sound like a lot, but in the world of railroads it is a fairly big deal. Total carloads are now 285,580, well off their low of around 250,000 just a few weeks ago.
Let's look at coal:
Coal loads were up just about the same 2.1 percent. This stands to reason as coal makes up nearly half of all carloads.
Chemicals also showed a fairly good sized...