Visit site Craig Stuntz's Weblog
August 2010
1
vote
Troubleshooting Entity Framework Connection Strings
Craig Stuntz's Weblog
– In an application which uses the Entity Framework, you may see the following error at runtime: MetadataException: Unable to load the specified metadata resource The cause of this error is a missing or malformed Entity Framework connection string. In particular, the cause of this error is the ...
1
vote
New InterBase Partner DVD In Progress
Craig Stuntz's Weblog
– The next version of InterBase is nearing completion, and, as always, will include a Partner DVD with demo versions of third-party tools supporting InterBase. If you are an InterBase Partner, you should have already been notified of how to submit your product. If you produce a tool or component ...
July 2010
0
votes
grid.history Demo Fixed
Craig Stuntz's Weblog
– Apologies to those who tried my grid.history demo page Friday. In the course of updating the integration to support jqGrid 3.7.2 and simultaneously learning GitHub’s pages feature, I killed the demo. It’s fixed now, and I’ve added the ability to run the unit tests directly from ...
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 ...



