ModelMaker Code Explorer 9.1.0 was released yesterday which supports Rad Studio / Delphi XE2.
Highly recommended for building and refactoring Delphi applications!
–jeroen
Posted by jpluimers on 2011/09/08
ModelMaker Code Explorer 9.1.0 was released yesterday which supports Rad Studio / Delphi XE2.
Highly recommended for building and refactoring Delphi applications!
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2011/09/08
While cleaning up my system, I found a while bunch of .iTrace files in “C:\Documents and Settings\All Users\Application Data\Microsoft Visual Studio\10.0\TraceDebugging” on a Windows XP system at a client that yet has to upgrade to newer Windows versions that store them under “C:\Users\All Users\Microsoft Visual Studio\10.0\TraceDebugging”.
Contrary to what IntelliTrace iTrace files and IntelliTrace Log ( .iTrace ) files and Visual Studio 2010 SP 1– Some Hidden Stuff « Abhijit’s World of .NET explains, these files are not always automatically removed.
And they are big, since Visual Studio 2010 Ultimate will automatically generate them.
So it is important to once in a while cleanup the “C:\Documents and Settings\All Users\Application Data\Microsoft Visual Studio\10.0\TraceDebugging” directory manually.
–jeroen
Posted in .NET, Development, Software Development, Visual Studio 2010, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2011/09/06
EmbarcaderoTechNet published a couple of interesting videos on YouTube covering Delphi XE2 including FireMonkey HD/3D, FireMonkey xPlatform, VCL Styles and more.
All of them short (couple of minutes each) studio work with good video and audio quality (they default to 360p, but most are available in 720p HD, some just in 480p).
–jeroen
Posted in Delphi, Development, FireMonkey, Software Development | Leave a Comment »
Posted by jpluimers on 2011/09/06
The drawback of using ORM layers is that often the error messages are very cryptic, and it takes some getting used to in order to find the (often deceptively) simple solution.
This case was an Entity Framework wrapper around a SQL Server database where the primary and foreign keys were all GUIDs, and some of the foreign keys were optional.
So the generated model has a mixed use of Guid? and Guid data types.
Below is the full stack trace, but here is the exception class and message:
System.NotSupportedException: Unable to create a constant value of type ‘System.Object’. Only primitive types (‘such as Int32, String, and Guid’) are supported in this context.
The exception is caused by a piece of code like this:
public static long CountChildren(ParentEntity parentEntity)
{
using (EntitiesObjectContext objectContext = new EntitiesObjectContext())
{
Guid? parentId = parentEntity.ID;
if (null == parentId)
throw new ArgumentNullException("parentEntity.Id");
IQueryable<ChildEntity> ChildEntitys =
from content in objectContext.ChildEntity
where content.ParentID.Equals(parentId)
select content;
long result = ChildEntitys.Count(); // BOOM!
return result;
}
}
The stack trace at the end of this post contains a truckload of ExpressionConverter lines. Since the LINQ expression contained only one WHERE clause, the mentioning of the list of primitive types in the message (Int32, String, and Guid) made me change the code into the one below.
Posted in .NET, .NET ORM, C#, Development, EF Entity Framework, Software Development | 5 Comments »
Posted by jpluimers on 2011/09/05
Note to Self:
A few days ago, the Rad Studio XE2 demos became available at sourceforge.net: SourceForge.net Repository – [radstudiodemos] Index of /branches/RadStudio_XE2.
You can get them by SVN as well: http://sourceforge.net/projects/radstudiodemos/develop
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2011/09/02
Kort geleden schreef ik over de #yellowbrick en #anwb #fail: Als de website nu ook nog nice was… (deal: ANWB – Ledenvoordeel – Yellowbrick – gratis registratie).
Inmiddels is er lichte voortgang:
Kortom: Read the rest of this entry »
Posted in Opinions, Power User, User Experience (ux) | Leave a Comment »
Posted by jpluimers on 2011/09/01
Because of Excel XML Spreadsheet: Date.Type is mandatory :), I researched a bit more about how people use the XML Spreadsheet format.
I found that Technobabble is using XSL to generate Excel XML Spreadsheets.
Be patient following the above link; it takes a while to completely load, and while loading the style sheet shows black text on a dark grey background :) When loaded completely, the background becomes white.
The article talks more about styles and formulas (XML Spreadsheets store formulas in relative R1C1 style notation which is far easier to parse than the absolute A1 style notation, which most people use).
It seems to imply that for a ss:Column, a ss:AutoFitWidth of 1 (True) combined with a specified ss:Width will autosize text values, but the ss:Column documentation is right: “We do not autofit textual values”.
The default Excel 2003 font has a Width of about 7 points per character, so you can use that as a base to calculate ss:Width values for a column.
–jeroen
Posted in Development, Software Development, XML, XML/XSD, XSD | Leave a Comment »
Posted by jpluimers on 2011/08/31
Let me start that you should store as little sensitive information as possible. But if you do, you should store it in a secure way. That’s why the .NET 2.0 introduced the SecureString class.
I won’t go into detail here, as the links below and the demo source do that much better than I can:
One warning: be very cautious when you convert a SecureString in a regular unsecure array of characters, string, or compare the unsecured content. To quote Fabio Pintos, everytime you do, a little village bursts on fire. When you access it in an insecure way, make sure it is pinned, clear and release the insecure memory as soon as possible.
The problem with a garbage collected environment like .NET is that strings live on the heap, and you can’t deterministically eliminate a string from memory like you could in deterministic environment like Delphi or C/C++.
Have fun with it!
–jeroen
Posted in .NET, C#, Development, Software Development | 2 Comments »
Posted by jpluimers on 2011/08/30
The problem solved here is two-fold:
Example:
echo batchfile=%0 echo full=%~f0 setlocal ::http://stackoverflow.com/questions/636381/what-is-the-best-way-to-do-a-substring-in-a-batch-file set Directory=%~dp0 echo Directory=%Directory% :: strip trailing backslash set Directory=%Directory:~0,-1% echo %Directory% :: ~dp does not work for regular environment variables: :: set ParentDirectory=%Directory:~dp% set ParentDirectory=%Directory:~dp% :: ~dp only works for batch file parameters and loop indexes for %%d in (%Directory%) do set ParentDirectory=%%~dpd echo ParentDirectory=%ParentDirectory% endlocal
This will show:
Hope you can give this some use.
–jeroen
Posted in Batch-Files, Development, Power User, Scripting, Software Development | Leave a Comment »