Thursday, September 24, 2009

Shows series that I watch

Here is a snapshot of the shows that I record on an ongoing basis.

  1. Nova scienceNOW, HD Preferred, New & rerun, anytime, keep up to 6 recordings until I watch.
  2. Smallville, 119.4 only, New, anytime, keep as many as possible until I delete
  3. The New Red Green Show, 89.4, New & rerun
  4. The Mentalist, Any, New & rerun
  5. House, 115.4, New
  6. Sesame Street, 89.4 only, New & rerun, anytime, keep up to 3 recordings until space needed
  7. Aurthur, 89.4 only, New & rerun, anytime, keep up to 3 recordings until space needed
  8. Curious George, 89.4 only, New & rerun, anytime, keep up to 3 recordings until space needed

Clear QAM channels on Mediacom




Channel
Number
Network Name Std/HD
82.1 QVC SD
82.3 CSPAN SD
82.7 WGNAMER SD
82.9 SHOPNBC SD
82.19 3ABN (3 Angels Broadcasting Network) SD
82.23 HSN SD
89.4 KIINDT (IPTV) HD
89.8 KIINDT2 (IPTV Learns)
89.10 KIINDT3 (IPTV World)
99.4 KFXADT2 (Fox 28) SD
99.6 KCRG (ABC) SD
99.8 KWKB (The CW) SD
99.9 BYU (Mormon) SD
99.10 KGAN (CBS) SD
99.12 KWWL (NBC) SD
99.16 KFXB (CNT) SD
99.20 MC22 (Mediacom Connections Channel) SD
114.1 KWWLDT (NBC) HD
114.2 KWWLDT2 (this) SD
114.3 KWWLDT3 (Retro TV) SD
114.6 KGANDT (CBS) HD
115.2 KCRGDT (ABC) HD
115.4 KFXADT (Fox 28) HD
117.1 PUAC018 SD
119.2 KPXRDT (Ion) SD
119.4 KWKBDT (The CW) HD

Monday, September 7, 2009

Using NHibernate ActiveRecord and LINQ

I'm trying to learn NHibernate ActiveRecord and LINQ all in the same day. I ran into the following exception:
Session is closed!
Object name: 'ISession'.

When trying to execute the following code:
      public static User FindByUserName(string username)
{
// Note that we use the property name, _not_ the column name
return (from p in User.Queryable
where p.Username == username
select p).First();
}

It took me a couple hours to get by this one, so I thought I would post it. I had to wrap it in a using (new SessionScope()) statement. Like this:
       public static User FindByUserName(string username)
{
using (new SessionScope())
{
// Note that we use the property name, _not_ the column name
return (from p in User.Queryable
where p.Username == username
select p).First();
}
}


Happy Coding.

Riddle

Here's a riddle that I though was pretty good:

It's present everywhere, but occupies no space.
We can measure it, but we can't see it, touch it,
get rid of it, or put it in a container.
Everyone knows what it is and uses it every day,
but no one has been able to define it.
We can spend it, save it, waste it, or kill it,
but we can't destroy it or even change it,
and there's never any more or less of it.
—Jespersen and Fitz-Randolph