The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Delphi’ Category

Formatted sourcecode in WordPress: uses SyntaxHighlighter 3.0; complete list of supported languages

Posted by jpluimers on 2011/01/18

In the past I wrote a few blog posts on posting sourcecode in WordPress.

Nick Hodges‘ last Flotsam and Jetsam blog post pointed me to the SyntaxHighlighter JavaScript that is used by WordPress and many other engines/sites.

Their site contains an even more elaborate list of supported languages.

I had the basic list right in my last post, but was missing all the aliases (which often are easier than the longer proper names).

This is the new table adapted from their list: Read the rest of this entry »

Posted in .NET, Batch-Files, C#, CSS, Database Development, Delphi, Delphi for PHP, Development, HTML, HTML5, Java, PowerShell, RegEx, Scripting, SQL, VBS, Web Development, WordPress, XML, XML/XSD, XSD | 5 Comments »

my 2010 blog in review

Posted by jpluimers on 2011/01/03

Don’t you love automated stuff.
Wordpress has a helper monkey that wrote me an email with stats, very similar to the results below.

From the stats page, I already know that popular posts not only include Delphi (where I originally came from) but also lots of other technologies: vmware, .NET, JRE, infrastructure.
Currently I’m doing quite a bit of iPhone/iPad work, so that likely will be reflected in the results next year.

What amazes me is the most popular day: according to the helper monkey it had 1 view :-)

Don’t you love the computing business :-)

–jeroen

Helper Monkey Results

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Wow. Read the rest of this entry »

Posted in Delphi, Development, Power User, Software Development, Virtualization, VMware, VMware Converter | Leave a Comment »

New years resolution: CHASM64 – More on Delphi x64 by twitter kylix_rd (Allen Bauer)

Posted by jpluimers on 2010/12/29

As a continuation of the previous assembly, the new twitter kylix_rd messages on Delphi x64:

To save people from browsing Twitter history: the first link in the quote has the CHASM64 picture :-)

kylix_rd:

I wonder what to make of this? http://yfrog.com/h2e20wp
28 dec

@davidheff I cannot confirm or deny any relationship CHASM64 has to dcc64 ;-)
24 Dec

kylix_rd Allen Bauer
As a followup… there is now a CHASM64 folder in the dev tree.
23 Dec

kylix_rd Allen Bauer
Interesting tidbit; The current Delphi inline assembler is called CHASM internally. Why? Chuck J. wrote it for Kylix. CHuck’s ASM = CHASM
23 Dec

kylix_rd Allen Bauer
Another reason why writing tools for x64 is a bit more fiddly than x86: http://bit.ly/hh3Q59 . Now consider the restrictions on asm…
15 Dec

kylix_rd Allen Bauer
Another excellent discussion of the x64 calling conventions ABI: http://bit.ly/hgLl8N
15 Dec

–jeroen

via: More on Delphi x64 by twitter kylix_rd (Allen Bauer) « The Wiert Corner – irregular stream of Wiert stuff.

Posted in Delphi, Development, Software Development | 5 Comments »

Volgende week woensdag: Hands-On Delphi Developer Workshop (8 december 2010, 08:30-17:00 Jaarbeurs Utrecht)

Posted by jpluimers on 2010/11/29

Volgende week woensdag geef ik tijdens de Hands-On Delphi Developer Workshop een sessie over Delphi Productiviteit

Er zijn nog een aantal plaatsen vrij.
Deze unieke dag kost slechts EUR 69,95 exclusief BTW, dus pak die kans!

Mijn sessie is de laatste van de dag; eerder zijn deze sprekers aan bod:

  • Danny Wind van de DelphiCompany: Cloud Data Storage Using Azure
  • Pawel Glowacki van Embarcadero: DataSnap (Engelstalig)
  • Bruno Fierens van TMS Software: Ontwikkel Office 2007/ Office 2010 style applicaties

Het doel van mijn sessie is om interactief met wat opdrachten te zien hoe je productief kunt zijn in Delphi.
Er is genoeg ruimte voor discussie, dus heb je zelf ook tips: kom er gerust mee!

Ik begin te laten zien wat ik minimaal aan mijn Delphi ontwikkelstraat toevoeg om een productief basis-systeem op te zetten.
Delphi specifieke tools als GExperts en ModelMaker Code Explorer komen aan bod, maar ook externe tools als Everything en SysInternals: tools die zowel geïntegreerd als los te gebruiken zijn.

Verder ga ik in op de versiebeheer integratie van SVN in Delphi: wat als er nieuwe versies zijn, hoe ziet u verschillen met oude versies, etc.
Er is voldoende gelegenheid om zelf aan de hand van opdrachten met een aantal van deze tools ervaring op te doen.
Tijdens de opdrachten doet u vaardigheden op met refactorings, vergelijkingen, unit testen, etc.

Ook toon ik een een aantal interessante sites die binnen de Delphi community erg gewaardeerd worden.
Genoeg dus om – ook na deze dag – uw kennis verder verrijken.

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

Generate XSD from XML – XSD.EXE versus on-line tools

Posted by jpluimers on 2010/11/23

Quite a while ago, I wrote about the XSD.EXE tool to generate wrapper classes from an XSD file.

Recently, I had to create an XSD based on some XML.
Actually: a client was implementing a tool, that could export some of the data as XML.
That XML had to go into their database.
But the tool vendor told the client that the underlying XSD was ‘not supported’ (odd: why allow exporting XML and then not provide something supporting as the XSD?).

Anyway, the data was not that difficult, but having an XSD at hand made the import process a lot easier.
So lets see how to get a starting XSD from an of XML files (in practice, you would do this with a couple of XML files, then collect the best pieces into your final XSD). Read the rest of this entry »

Posted in .NET, Delphi, Development, Software Development, XML, XML/XSD, XSD | 11 Comments »

Free ebook: Programming Windows Phone 7, by Charles Petzold – Microsoft Press – Site Home – MSDN Blogs

Posted by jpluimers on 2010/11/10

If you want to do Windows Phone 7 development, then get this book: Programming Windows Phone 7 by Charles Petzod.
The eBook and source code are free:

This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. Within the pages that follow, I show you the basics of writing applications for Windows Phone 7 using the C# programming language with the Silverlight and XNA 2D frameworks.

Yes, Programming Windows Phone 7 is truly a free download, but for those readers who still love paper—as I certainly do—this book will also be available (for sale)

In addition to C# and VB.NET, you can also do this in Delphi Prism.

Cool times ahead, because now there are 4 major competitors (in no particular order):

  • iPhone
  • Android
  • Windows Phone 7
  • Symbian

I left out the competitors of the past, as they soon will be deprecated.

–jeroen

via Free ebook: Programming Windows Phone 7, by Charles Petzold – Microsoft Press – Site Home – MSDN Blogs.

Posted in .NET, C#, Delphi, Development, Prism, Software Development | 1 Comment »

More on Delphi x64 by twitter kylix_rd (Allen Bauer)

Posted by jpluimers on 2010/11/09

As a continuation of the previous assembly, the new twitter kylix_rd messages on Delphi x64 (and some reactions by Danny Thorpe):

To save people from browsing Twitter history:

kylix_rd:

Interesting x64 fun fact: RIP relative addressing. Some instructions that use a 32bit offset, are interpreted as [RIP+offs].
7 nov

@danny_thorpe Add x64 and it happens even more.
7 nov

Because of the way the Intel instructions are encoded, it is possible to encode the same effective instruction in different ways.
7 nov

You know what would have made the x64 “REX” prefix moniker even better? They could have called it T-REX.
7 nov

As much as people like to deride the aging x86 architecture, I gotta admit that AMD did a fine job of stretching it into 64bit land.
7 nov

@davidheff Undetermined. There are plenty of reasons to deliver them separately. Either way will have no impact on the results.
2 Nov

Be ready for 64 bit: In Delphi XE, this “Component.Tag := NativeInt(Self);” will just recompile in 64 bit.
2 Nov

@davidheff Oh don’t worry… there will be plenty who will find that “limiting”, if only in concept and not in the real world :-)
2 Nov

x64 Fun Fact: JMP opcodes/offsets are identical to 32bit. Can only xfer control to an address +/- 2GB away. Thus the PE image size limit.
2 Nov

danny_thorpe:

@kylix_rd I remember digging through the x64 specs. Fun times til mgmt shut it down. Still have my Amd x64 laptop circa 2003 or so.
8 nov

@kylix_rd You just noticed? :P
8 nov

davidheff:

@kylix_rd is it still on course to be a cross-compiler as announced by Nick – single 32 bit compiler that can create 32 and 64 bit images
from Stavanger, Rogaland
2 Nov Favorite Retweet Reply

@kylix_rd Actually, I wonder whether the compiler wouldn’t give out first at such a monstrous demand
from Stavanger, Rogaland
2 Nov

@kylix_rd Think most of us should be able to avoid creating 2GB images!!!!
from Stavanger, Rogaland
2 Nov

–jeroen

via Allen Bauer (kylix_rd) on Twitter
Danny Thorpe (danny_thorpe) on Twitter
David Heffernan (davidheff) on Twitter

Posted in Delphi, Development, kylix_rd, SocialMedia, Software Development, Twitter | 5 Comments »

Delphi refactoring bugs – need input

Posted by jpluimers on 2010/11/04

One of the reasons that people are wary of using Delphi refactorings, is that some of them are not always reliable.

The only way to get them resolved is filing good bug reports.
But filing a good bug report is difficult: you need reproducible cases, and finding those can be tough.

Some of the refactorings can only be done by tools that have access to the complete compiler.
Which means that 3rd party tools like Model Maker Code Explorer, Castalia, cnPack and others cannot provide.

So I need some help in filing bugs centered around the refactoring topic:

  • Indicate weak points of the various refactorings
  • Help finding reproducible steps

Here are a few examples I filed recently:

  1. [WayBack] “No statements are selected” when performing “Extract Method” refactoring from case statement
  2. [WayBack] Complete case statement extracted when performing “Extract Method” refactoring from case statement
  3. [WayBack] Refactoring “Find Unit” often does not work any more

Please put your suggestions in the comments!

–jeroen

Some notes:

  1. Set Delphi “Block Indent” to 3
  2. Refactor – Extract method: it uses a Block Indent of 2.

Posted in Delphi, Development, QC, Software Development | 6 Comments »

Some ASX information in order to create a partical XSD schema of it

Posted by jpluimers on 2010/11/03

I tried searching for an XSD or other schema that describes ASX (Advanced Stream Redirector) files, but somehow could not find them.

The ASX files can be used to generate a playlist, but they are a bit richer in content than the WPL (Windows Media Player Playlist) file format.

So here is a post with some references to ASX files, examples, documentation and an XSD you could use for ASX files, and why ASX is not valid XML, it is just well-formed. Read the rest of this entry »

Posted in .NET, C#, Delphi, Development, Software Development, XML, XML/XSD, XSD | 2 Comments »

Interesting Delphi questions on StackOverflow by Ian Boyd in constructors, methods and directives.

Posted by jpluimers on 2010/11/02

Last month, Ian Boyd posted a series of interesting questions on StackOverflow.

They all handle specific situations on methods (especially constructors), classes and directives.

He used them to get a more detailed picture of how that all fits together.

Interesting reading!

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »