The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Friday, February 25, 2011

CQRS with .NET and C#

I've been intrigued with the idea of CQRS for some time; ever since I watched an infoQ presentation by Greg Young on the subject. What is CQRS?
Command-Query Responsibility Segregation
See the links below to for more information from the experts.

Over the last month I've actually had the opportunity to work with CQRS, so far I am really enjoying it. Separating your reads from your writes is truly liberating! Listed below are a bunch of resources related to CQRS:

Informational:

Monday, February 21, 2011

OSHA Safety Software

I've been working on this project off and on for quite sometime. If you are a small to mid size business in California and you need Safety Documents and Safety Management Software check out www.safetysanity.com.

Use this code to save $100 off the setup fees
2011-SAVE-100
We've simplified the process of creating a Safety Program; starting with Safety Document creation through managing Employee Training, Equipment Inspections and Accident Reporting.
www.safetysanity.com
Our software application  generates a Safety Program which is compliant with Cal/OSHA regulations. Every business in California is required by law to not only have a Safety Program, but also prove that they are following their program. Safety Sanity makes it easy! Learn more at www.safetysanity.com.

Sunday, February 20, 2011

LibreOffice - the real Open Office

LibreOffice - http://www.libreoffice.org/
LibreOffice is the free power-packed Open Source personal productivity suite for Windows, Macintosh and Linux
this is basically Open Office, but without the Oracle factor

Wednesday, November 17, 2010

ASP MVC Razor templates with nested layout and sections

Using ASP MVC 3 with Razor views.

Ran into an issue with nested layouts and wanting to render a section in a top level layout, but define it in the view which uses a 'child' layout (master) page. This was generating a runtime error of:

The following sections have been defined but have not been rendered for the layout page... 

I posted some code to the asp.net forum and github. A nice workaround was supplied by 'Imran Baloch'


Tuesday, November 16, 2010

Automapper Datatable to List

I did a few Google searches for "c# automapper datatable to list" but nothing good showed up right away, maybe this post will help someone in the future?

The solution showed up on stackoverflow here is the link

http://stackoverflow.com/questions/2429194/automapper-mapping-ienumerable-to-datareader-issue

and here is a code snippet



Note that we are actually mapping IDataReader to a list, and DataTable has convenience method to do that for us 'CreateDataReader'


Friday, November 5, 2010

Get the date of the beginning and end of a month using Ruby

Sometimes Ruby blows my mind, I needed to get the start date and end date of the previous month. Guess what Ruby just happens to have methods to handle this - beginning_of_month, end_of_month, there is even beginning_of_quarter and end_of_quarter if you need them!