Visit site Craig Stuntz's Weblog
July 2010
2
votes
grid.history: A New, Free Integration for jqGrid and jQuery BBQ
Craig Stuntz's Weblog
– I recently finished an integration between the open source jqGrid and jQuery BBQ libraries. I have released my integration as open source, as well. As with both projects, it is dual-licensed under the MIT and GPL licenses. jqGrid is a JavaScript grid component with many useful features. I have ...
June 2010
0
votes
Replacing Controller.Session in ASP.NET MVC: Is This Wrong?
Craig Stuntz's Weblog
– Here’s some code I wrote: public class MyBaseController : Controller { // ... public new ISession Session { get; private set; } // .... } ISession is an interface type I wrote which exposes everything I store in the session at runtime. Session, in ASP.NET, is a user-specific ...
May 2010
0
votes
Book Review: Rework
Craig Stuntz's Weblog
– Rework, by Jason Fried and David Heinemeier Hansson, cannot accurately be described as the "sequel" to the first book to come out of 37 Signals, Getting Real. As a significant percentage of the book seems to be word for word identical to text in Getting Real, I think it’s more of a "remix." ...
0
votes
Stir Trek 2: Iron Man Edition Wrap Up
Craig Stuntz's Weblog
– Last Friday, I attended the Stir Trek conference here in Columbus. The day got off to an inauspicious start when I turned on my car. There was a high screaming noise, and acrid black smoke poured out from the engine. I opened the hood, pulled out a burning air-conditioner drive belt, and threw it ...
April 2010
0
votes
In LINQ, Don’t Use Count() When You Mean Any()
Craig Stuntz's Weblog
– If you have a list, array, or query in a C#/LINQ application and need to check and see if the list is empty, the correct way to do this is to use the Any() extension method: if (q.Any()) { Similarly, you can check to see if any elements in the list meet a certain condition: if (q.Any(i => ...
0
votes
A Math Primer for Gentry’s Fully Homomorphic Encryption
Craig Stuntz's Weblog
– A couple of weeks ago, I wrote What Is Homomorphic Encryption, and Why Should I Care? In that post, I promised to share my C# implementation of the algorithm from Craig Gentry’s CACM article. Before I can do that, though, I need to explain some of the math involved. Perhaps surprisingly, ...
March 2010
0
votes
Want to Beta Test the Next Version of InterBase?
Craig Stuntz's Weblog
– The InterBase roadmap says that the next version will probably include native 64 bit and Windows 7 support, cloud deployment, and enhance password security. Want to help beta test it? You can sign up now. Share This | Email this page to a friend
0
votes
What is Homomorphic Encryption, and Why Should I Care?
Craig Stuntz's Weblog
– The March 2010 issue of the Communications of the ACM includes a technical paper with an introduction entitled "A First Glance of Cryptography’s Holy Grail" (ACM subscription required). That’s enough to catch my attention. The paper itself, Computing Arbitrary Functions of Encrypted ...
0
votes
Don’t Depend Upon the ASP.NET Membership Tables
Craig Stuntz's Weblog
– One very popular option for implementing user security in ASP.NET is to use Forms Authentication with the SQL Server membership provider. This provider creates several database tables to store user-related information, as well as a number stored procedures. From time to time, a developer will ...
February 2010
0
votes
jqGrid and XSS Security
Craig Stuntz's Weblog
– Version 3.5.2 of jqGrid included an important new feature: Now when autoencode is set to true we encode the data coming from server and not only when we post it (secutity fix) Prior to this, you were required to encode the data yourself. Now personally, I think that should be the default. But ...
0
votes
Entity Framework Models and Source Control
Craig Stuntz's Weblog
– As you're probably aware, an Entity Framework model is stored in a single XML file, with the extension EDMX. Developers occasionally ask if this means that two people cannot work on the entity model concurrently. My answer to this is, "It depends." But I can give you some tips to ...
January 2010
1
vote
join in LINQ to SQL and LINQ to Entities Considered Messy, Redundant
Craig Stuntz's Weblog
– In this post I will demonstrate that use of the join keyword in LINQ to SQL and LINQ to Entities is nearly always wrong. LINQ queries which you write with the join keyword are harder to read and write than queries you write using associations, and they require knowledge of ...
0
votes
Crossword No. 2
Craig Stuntz's Weblog
– DotNetSlackers just published a crossword puzzle I created; you'll see the grid below. The puzzle is focused on .NET and programming themes, including a Delphi reference here and there. The site editors wanted an article to go with the puzzle, so I wrote an article explaining how I created the ...
December 2009
0
votes
Projecting Onto A Presentation Model with the Entity Framework and ASP.NET MVC
Craig Stuntz's Weblog
– In this post, I will demonstrate how to map entity models to views in an ASP.NET MVC application without worrying about implementation details like eager loading, lazy loading, or having to manually optimize SQL for the task at hand. I will argue that expressing the relationship between an entity ...
0
votes
Delphi Developers: Go Buy CodeHealer
Craig Stuntz's Weblog
– If you're doing commercial Delphi development and you're not already doing static analysis in your automated build, go buy CodeHealer now. Nick Hodges has arranged a 1/2 price special offer. There is no good reason not to use static analysis. If you are the sort of person who doesn't allow hints ...




