News

Why Won't Visual Studio Step Into This Code?

Author: Craig Stuntz I helped another developer debug an interesting problem this morning. Let’s see if you can spot the problem. The code in question looked something like this simplified version containing only enough code to show the problem: public void Execute() { DoStuff(); // breakpoint 1 } public IEnumerable<Coordinate> DoStuff() { …
Read more
Delphi

Delphi JSON Viewer

Author: Michael K22532 JSON support has been introduced in Delphi 2010 as a part of DBExpress database driver architecture, but of course JSON support is not limited to just database applications. JSON is similar to XML as both are text-based data interchange formats. Delphi…
Delphi

Converting to grayscale with TBitmap.ScanLine property

Author: Pawe Gowacki In my previous post “Boian’s TBitmap Visualizer and converting to grayscale” I have described an algorithm for converting arbitrary TBitmap instances to gray using a selected formula. The problem is with the performance of the code that actually changes the color of each pixel. Accessing color information is done via TBitmap.Pixels property, which is a…
Read more
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
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

Using jqGrid with ASP.NET MVC: Search and Formatting

Author: Craig Stuntz This is the fourth post in a series on using jqGrid with ASP.NET MVC. Today, we’re going to examine search and formatting results. I will implement a search feature and fix the problem with formatting date columns which I observed in the last post. I’ve updated the demo solution with these new features, and also fixed a bug reported by Andrey last time. If…
Read more