Patrick Steele's .NET Blog
Implements ICodeWithDotNet
-
SRT Presents Software Stimulus Lab to Support Economic, Business Growth
I've been so busy recently I totally forgot to blog about this. We (SRT) are going to be hosting a Software Stimulus Lab at Automation Alley next Monday, June 15th. We've got a press release that covers the details better than I can but the important things are:
-
ActiveRecord: Loading Records by Primary Key
I was reviewing some code today for a project that uses ActiveRecord. One of the things that stood out for me was the use of a query to find objects by their primary key. There's two reasons this raised a red flag for me:
-
NHibernate Queries: HQL vs. Criteria API
As someone who did a lot of SQL a few years ago, I was immediately more comfortable using HQL for my ActiveRecord queries than the Criteria API. But from a documentation/samples standpoint, I see a much higher percentage of the Criteria API being used vs. HQL. I still use HQL most of the time.
-
Ajax Survey
From BradA: Simone Chiaretta is doing another Ajax survey to see how things have changed since his last survey a couple of years ago. I just filled it out (you should too!). The survey can be found here.
-
Fabulous Adventures In Coding
If you don't read Eric Lippert's Fabulous Adventures In Coding, you're really missing out on some great stuff.
-
XmlSerializer ignores Culture
I'm working with an automotive client that has a couple of data formats for some of their files. One is a simple CSV format and the other is XML using .NET's XML Serializer (nothing fancy). The CSV format is handy as it's easy for the engineers to quickly load it into Excel and view in a columnar format. The XML format was implemented as a much more "full featured" version of the data and contains additional metadata to describe the data. All of the maintenance of these files is very easy as we have a library for dealing with them.
-
OutputDebugStringAppender in a web app?
I spent a couple of hours yesterday trying to get log4net to log to an OutputDebugStringAppender with no success. At first, I thought I had a configuration error in log4net so I added a file appender and that works fine. It's a Monorail application that uses ActiveRecord for database access. There's a couple of spots where I wanted to check out the SQL being generated by ActiveRecord (NHibernate). I did all my set up for log4net and even got it logging to a FileAppender. But I wanted to log the SQL to an OutputDebugStringAppender.
-
New CodeMash Website
As you've probably heard (via Twitter), there's a new look to the CodeMash website. SRT Solutions and inner circle media have been working on the website for a while now getting things organized. Much of the praise for the new look goes to inner circle media – Catherine Hayes and Alaine Karoleff have put a lot of thought and design into the new site and it shows!
-
Be careful where you place your images on your website
Just found something interesting while researching a problem Dianne was having with a website SRT was working on. In checking various browsers throughout the office (FireFox, IE, Opera), a page looked ok on most of the browsers, but not all. In fact, there were just a couple of machines running Firefox that had problems (others, running the same version of Firefox had no problem viewing the page correctly).
-
Lansing GiveCamp a great success!
Congratulations to Jay Harris, Jeff McWherter and all those involved in making Lansing GiveCamp a great success! GiveCamps are a lot of work to organize but they are so fun and rewarding. The press is picking up on their hard work too: