Web Development Blog

NHibernate IQuery using a DTO class import mapping

As I had demonstrated in my previous post NHibernate SetResultTransformer and DTO using ICriteria to select across multiple classes or entities is straight forward. At the time I got stuck on how to do this using the IQuery interface and HQL, for some queries I find HQL is more flexible.

Getting your data out of Google Analytics

I want to show my top 5 pages viewed on my blog, I don’t want to count page views myself , and I want to distinguish between views by real people and views by spiders etc... I want to get the information from my statistics package. I use Google Analytics; it is a great stats package for your web site. If you haven’t tried it out you are missing out. The basic functions of Google Analytics are easy to use with all the basic reports at your finger tips on your dashboard.

Expand a div element to the height of its floated child elements

When using div elements for layout, for example to produce a table like layout, often you have a div element with a collection of floated child div elements. The wrapper div does not expand to the height of all the floated contents. You may want a border around all the floated div elements or maybe some padding.