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,861 other subscribers

Archive for 2010

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 »

More Delphi x64 bits – Allen Bauer (kylix_rd) on Twitter

Posted by jpluimers on 2010/11/01

To save people from browsing Twitter history:

danny_thorpe:

@davidheff @kylix_rd x64 has SSE2 for FP ops. 8 directly addressable 64bit XMM FP registers. 8087 FP ops emulated in microcode, deprecated

28 Oct

@kylix_rd You mean critical mass isn’t church service on Christmas and Easter?

27 Oct

@kylix_rd Bah. What do they know about floating point? :P MSVC turns off all the FP hardware (exceptions) by default already!

27 Oct

@kylix_rd Yes, we did. The reason was Extendeds don’t exist at all in CLR. x64 FP ops only supporting 64 bit floats is justification

27 Oct

@kylix_rd Ok, so your cause/effect statement was incomplete. :P Shame to see extendeds go. How to count all atoms in the universe now?

27 Oct

@kylix_rd That doesn’t follow. You could still pass extendeds on the stack (not using the x87 register stack)

27 Oct

kylix_rd:

@davidheff Yes. Alignment is critical. Even the stack must remain properly aligned. Its all part of the ABI.

27 Oct

@davidheff SSE instructions and the xmm0:xmm15 registers.

27 Oct

@danny_thorpe That and the fact that MS strongly discourages the use of the FP coproc on 64 bit Windows.

27 Oct

@danny_thorpe Extendeds don’t align well, FP ops would dumb them down, sub-optimal codegen, are other reasons to drop them.

27 Oct

http://goo.gl/D0Kv. “The x87 register stack is unused. … must be considered volatile across function calls” So, Extended = Double.

27 Oct

As speculated, the Tag property will become a NativeInt.

27 Oct

@malcolmgroves @seanbdurkin And if we change the underlying implementation, don’t complain… mkay?

27 Oct

The elephants in the room. Max 64bit PE image size 4GB. Extended = Double (since xmm0-xmm4 are for FP param passing).

27 Oct

Number of calling conventions in x64 – 1. pascal, register, cdecl, stdcall… gone, treated as nop.

26 Oct

Wow… just a few tweets about D64 and I get flooded with new followers. Welcome to all my new followers from the last 24 hours.

26 Oct

Most common 64bit data models, LP64 and LLP64. Windows = LLP64, Linux, OSX = LP64. D64/Windows = LLP64.

26 Oct

64bit gotcha: SizeOf(THandle/HWND/HMODULE/Hxxxx) = SizeOf(Pointer) = 8. This isn’t valid: Value := Integer(Handle).

26 Oct

Type sizes for 64: SizeOf(Integer)=4, SizeOf(NativeInt)=SizeOf(Pointer)=8,

26 Oct

If you must… Value := Integer(TList[x]) -> Value := NativeInt(TList[x]). Even better, TList.

26 Oct

via Allen Bauer (kylix_rd) on Twitter
Danny Thorpe (danny_thorpe) on Twitter

Posted in 8087, Algorithms, Delphi, Development, Floating point handling, kylix_rd, SocialMedia, Software Development, Twitter | Leave a Comment »

VMware workstation guestappscache directory with GUID based filenames: they are for Unity support

Posted by jpluimers on 2010/10/29

After upgrading VMware workstation, I noticed when making backups of my VMs that they contained lots of files in the guestappscache subdirectory that have names containing GUIDs.

I’m always wary for sudden seemingly random files being created.
It might be just some kind of virus slipping through the gates targeting a specific vulnerability.

The files appear to be for Unity, and it is easy to disable Unity. (I don’t use Unity: I use VMs to separate work and keep the clutter away from my host machine’s desktop <g>).

–jeroen

via: VMware workstation guestappscache directory – Google Search.

Posted in Power User, VMware | Leave a Comment »

SQL Server: some date calculation logic

Posted by jpluimers on 2010/10/28

I always forget the syntax, because different DBMS systems use different ways of doing this.

This is the SQL Server way of doing some date calculations: Read the rest of this entry »

Posted in Database Development, Development, SQL Server | Leave a Comment »

Delphi Basics – worth a look!

Posted by jpluimers on 2010/10/27

Quite a while ago, Neil Moffat started the Delphi Basics site.

It is aimed at beginners, but since it has such a wealth of information (for instance a comprehensive list of compiler directives).
So even if you are a Delphi pro, it is worth to give Delphi Basics a look.

The cool thing: Neil originally is not even a programmer, nor a writer.
Maybe that is his strength: he learned by doing, step by step, now giving us a peak on what he learned.

–jeroen

via Delphi Basics.

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

Signs of Delphi x64: Allen Bauer (kylix_rd) on Twitter

Posted by jpluimers on 2010/10/26

Probably a few others will blog about these tweets too.
I have bolded the most important pieces:

kylix_rd Allen Bauer

If you must… Value := Integer(TList[x]) -> Value := NativeInt(TList[x]). Even better, TList<Integer>.

6 hours ago

kylix_rd Allen Bauer

Another Milestone: fixed my first legitimate 64bit RTL bug. if TryOpenForInput(t) then s/b if not TryOpenForInput(t) then

10 hours ago

kylix_rd Allen Bauer

Milestone: 64bit compiler now merged into the main dev branch! All devs are now locked and loaded!

13 hours ago

–jeroen

via Allen Bauer (kylix_rd) on Twitter.

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

On-the-road: XML Viewer

Posted by jpluimers on 2010/10/26

When on the road without access to your most favourite XML editing tools, and you want to view a local XML file, you are a bit stuck.

The built-in XML viewing capabilities of Internet Explorer 6 and up give you those nice “To help protect your security, Internet Explorer has restricted this…” messages.
Disabling those messages makes your system a lot less secure, so that is not a real option.
This besides the lack for viewing UTF-16 encoded XML files in Internet Explorer (and getting the dreaded “Switch from current encoding to specified encoding not supported. Line 1, Position 40“).

So, in my toolbox is XML Viewer from MindFusion. Read the rest of this entry »

Posted in Development, Power User, XML, XML/XSD | 3 Comments »

DOS on Dope: The last MVC web framework you’ll ever need

Posted by jpluimers on 2010/10/25

Hilarious!

After all the hypes…

…the modern MVC framework built on the awesome power of Batch scripts

–jeroen

via DOS on Dope: The last MVC web framework you’ll ever need.

Posted in Development, Software Development | Leave a Comment »

Change your ESXi machine’s network hostname, DNS information (and SSL certificate)

Posted by jpluimers on 2010/10/22

Since you do this only once per server, it is easy to forget (I do) where to specify the hostname of your ESXi server.

vm-help.com describes in Change your host’s network name how easy it is in ESXi 3.x (and also how to change the DNS information and SSL certificate).

ESXi 4.x is very, but not completely, similar Read the rest of this entry »

Posted in ESXi4, Power User, VMware | 1 Comment »