News

A Math Primer for Gentry's Fully Homomorphic Encryption

Author: Craig Stuntz 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, it’s actually very simple. (I say “surprisingly” because much of…
Read more
Delphi

A case when FreeAndNil is your enemy

Author: Allen It seems that my previous post about FreeAndNil sparked a little controversy. Some of you jumped right on board and flat agreed with my assertion. Others took a very defensive approach. Still others, kept an “arms-length” view. Actually, the whole…
News

jqGrid and XSS Security

Author: Craig Stuntz 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 it would have been a breaking change for the grid, since there are a few cases where…
Read more
News

Entity Framework Models and Source Control

Author: Craig Stuntz 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…
Delphi

Delphi 2010 DirectWrite "Hello World" Example

Author: Sinisa P29531 In my previous post I have translated Windows 7 SDK Direct2D “Advanced Geometries” examplefrom C++ to Delphi 2010 code. That was a lot of fun, so I have decided to continue the adventure in the realm of Direct2D programming and this timeconverted one of the DirectWrite examples – DirectWrite sample “Hello World”. Delphi 2010 Hello…
Read more
C++

Code Navigation In The RAD Studio Code Editor

Author: Darren Kosinski V1400 During the recent field test for RAD Studio 2010, I had a discussion with some field testers about the different mechanisms that the IDE provides for navigating through your source code. In particular, they were wondering why sometimes one…
News

JSON Types for Server Methods in DataSnap 2010

Author: Adrian Z1428 converter_1946 I am very happy I was granted permission to talk about the new features present in Delphi 2010 concerning database area. DataSnap 2010 (DS2010) extended the list of server method parameter types with the full suite of JSON types. It is now…
News

In LINQ, Beware of Skip(0)

Author: Marc Geldon Calling IQueryable<T>.Skip(0) seems like it should be “free.” In other words, since it will have no effect on the resulting data, there should be little to no performance cost for calling it. But this is demonstrably not true in LINQ to Entities, and it occurs to me that LINQ providers are not required to optimize it away. Therefore, it is probably a good idea…
Read more