November 2007
12 posts
NHibernate SlicedFindAll
doesn’t appear to like to try and get you zero rows - throws an exception. Guess that kind of makes sense, but lesson learned is trap for this condition before hand or catch the exception…
Decent Hibernate (and thus... →
NHibernate DetachedCriteria
are funky…. No idea if this is normal behavior, but I am using a ‘DetachedCriteria’ in a search object. I want to generate a page of search results, so I need both the total rows returned as well as the slice of the data for this page. So, generate a DetachedCriteria for the where clause, use a ScalarProjectionQuery to get the total count, and then a SlicedFindAll to get the...
I Hate Castle ActiveRecord!
Or do I blame NHibernate? Big and complicated, huge learning curve. Once I get over it, I may love it, but until then, it’s more swimming in mud….
Castle ActiveRecord and Generics
So don’t believe what you read in the documentation. With the latest version of ActiveRecord, you don’t need to us NHibernate.Generics - NHibernate 1.2 has build in support (see the Iesi.Collections.Generics classes). So that one only cost me a half day. I am having a real love hate relationship with Castle ActiveRecord, maybe I should be switching back to Rails… NHibernate...
My First Amazon S3 Bill
4 cents. Got to love this service….
Discovery consists of seeing what everybody has seen and thinking what nobody...
– Alber von Szent-Gyorgy
Back from Defrag
It was a very intesting conference. Small - only 240 people, which was very cool, as everybody fit in one room, and you had contact with everyone. That’s what it was really about, networking, meeting new people, and just getting a little bit connected. I’m still digesting the content. The morning speakers were all good, but I have to admit, I don’t remember much from the...
Off to Denver
I’m off to Denver for the Defrag conference. Should be interesting, as this is my first real ‘tech’ conference. I big gathering of geeks trying to figure out the next big thing, hopefully I’ll come away inspired…
Dynamic User Controls on ASPX Pages
Pretty simple to do - in your code behind: control = LoadControl(control path/filename) Want to make it typesafe so you can set attributes of the control? Register the control on the ASPX page (or else the code behind doesn’t seem to know about it, or is that because I’m using namespaces in my control naming?) Shared.Controls.MyControl myControl = (Shared.Controls.MyControl)...
The Project
To frame up what I’m working, and thus posting on, here is a short description of the development project and the technologies I am working. The project is to create a simple web based digital asset management system. The basic functionality is signup, upload assets (video, images), and tag and categorize those assets. In addition, a user can create or become a member of an account, which...
Development Project Notes
I’m going to try something new, and use tumblr as a way to record notes related to a development project I am in the middle of. As I am working on this project, I am learning a lot, and this is an opportunity to share these notes for the world, and for my own personal reference when I hit the problem again. So why not use a regular blog to do this? Because I’ll never do it. If...