Re: Nav[19987:40b] Unknown class FirstLevelViewController in Interface Builder file.

Re: The Nav app in chapter 9 of Beginning iPhone 4 Development Exploring the iOS SDK.

I get this error, and the First Level view does not show up. The obvious answer is that its not connected, but I’ve gone through the code and it appears to be connected. :-(

Nav[19987:40b] Unknown class FirstLevelViewController in Interface Builder file.

Hints, ideas would be appreciated.

Fig a)

Fig b)

Posted in iOS | 2 Comments

Toronto drivers suck

Period.

Posted in Life 101 | Leave a comment

Windows services

re Windows services
useful code snippet from

http://arcanecode.com/2007/05/23/windows-services-in-c-adding-the-installer-part-3/

#
Mark Hubers Says:
December 28, 2007 at 12:44 pm

You can use the pre and post build options to manage loading and unloading service. Ex,
PRE-BUILD:
net stop “ServiceName”
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u “ServiceName”
POST-BUILD:
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /i “ServiceName”
net start “ServiceName”

You can go one step farther if you name your service the same as the project name. Ex.
PRE-BUILD:
net stop “$(TargetName)”
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u “$(TargetName)”
POST-BUILD:
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /i “$(TargetName)”
net start “$(TargetName)”
Reply
#
Yuriy Says:
February 12, 2008 at 2:17 pm

To make last code work should add “.exe”
EX:
net stop “$(TargetName)”
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u “$(TargetName)”.exe
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /i “$(TargetName)”.exe
net start “$(TargetName)”

Tagged , | Leave a comment

Another mobile test

Just trying the iPhone WordPress app again. Been awhile!!

Posted in Stupid | Tagged | Leave a comment

Mobile post test

Mobi test

Leave a comment

CSLA and nHibernate

For awhile I’ve been trying to integrate Csla and nHibernate. Being new to nHibernate that is where my difficulties lay. However, recentlly I’ve come accross an excellent tutorial by Gabriel Schenker. You can find it here.

It was not too difficult to incorporate Csla into Gabriel’s excellent example.

Csla and nHibernatesolution

You can download the source here. Just create a new empty solution and add the three existing projects. The download includes a folder named sharedLibs, which has the referenced dlls for nHibernate and MySQL connector.

Not all Csla data portal methods are implemented only Fetch and Insert.

The Csla object was generated using Codesmith 2.6. You may want to convert the tests to nUnit tests. My example uses MySQL as the data store.

I don’t like my implementation 100%, but it works and is going to be my starting point for other projects. I would like to move the DTO into a separate project. But whenI try that I just can’t get nHibernate mapping to work. I get the dreaded “Unknown Entity” error and am not able to fix it.

Next up, a more complex Csla object, one with children then optimistic concurrency.

This is what the Fetch looks like

#region Data Access - Fetch
private void DataPortal_Fetch(SingleCriteria criteria)
        {
            IDALRepository repository = new DALRepository();
            var data = repository.GetById(criteria.Value);

            LoadProperty(IdProperty, data.Id);
            LoadProperty(NameProperty, data.Name);

            ValidationRules.CheckRules();
        }
        #endregion //Data Access - Fetch

This is what the Insert looks like

        #region Data Access - Insert
        protected override void DataPortal_Insert()
        {

            BudanArtLib.DAL.DTO.Item data = new BudanArtLib.DAL.DTO.Item();

            //data.Id = ReadProperty(IdProperty);
            data.Name = ReadProperty(NameProperty);

            IDALRepository repository = new DALRepository();
            repository.Add(data);

            LoadProperty(IdProperty, data.Id);

        }
        #endregion //Data Access - Insert
Posted in Code, Geek | Leave a comment

Winter

Winter

Winter in Muskoka
  • ApertureValue: f/6.1
  • Copyright: (C) Steve Budan 2009
  • ExposureTime: 1/130 sec
  • Flash: No Flash
  • FocalLength: 16.4 mm
  • ISOSpeedRatings: 80
Posted in Photos | 1 Comment

Talavera

Talavera

  • ApertureValue: f/3.4
  • Copyright: (C) Steve Budan 2009
  • ExposureTime: 1/10 sec
  • Flash: No Flash
  • FocalLength: 14.7 mm
  • ISOSpeedRatings: 80
Posted in Photos | Leave a comment

blue Flower

blue Flower

  • ApertureValue: f/4
  • Copyright: (C) Steve Budan 2009
  • DateTimedigitized: 2004:06:02 17:41:26
  • ExposureTime: 1/160 sec
  • Flash: No Flash
  • FocalLength: 300 mm
  • ISOSpeedRatings: 200
Posted in Photos | Leave a comment

I heard the screen door slam

and a

Big yellow taxi

Took away my old man… Joni Mitchel ~1970

Posted in Code, Fun, Music, Vista | Leave a comment