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 4,262 other subscribers

Posts Tagged ‘stack overflow’

.NET 4.5 versus 4.0 and C# 5 versus C# 4, or the funny way how StackOverflow closes good answers

Posted by jpluimers on 2014/02/27

I’m more and more amazed (actually I’m not, this is how life on forum-like communities when moderatorss take over) about which StackOverflow questsions get closed, and which ones stay alive.

It seems the best way is to ask longer questions way beyond what most moderatorss can grasp.

Closed:

Still open:

A great point in the comments of the first question is that

you can technically can write .NET 4.0 / C# 4 applications on a .NET 4.5 / C#5 equiped machine and deploy them on machines that only have .NET 4.0 and C# support.

Don’t. I learned that in the .NET 3.0/3.5 and C# 3.0/2.0 era that combining is bad as the version matrix allows for subtle combinations that are hard to test.

.NET 3.0 with C# 2.0 applications written on a system that had .NET 3.5 and C# 3.0 installed would occasionally fail on systems that only had .NET 3.0 and C# 2.0 installed.

–jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Tagged: | Leave a Comment »

Where to watch for StackOverflow / StackExchange downtime status: @StackStatus, @TechCrunch, @HNTweets

Posted by jpluimers on 2014/02/17

Basically, stackstatus.net is not actively updated when severe things like DDoS happen. So the best way to be kept up to date is watch these links:

–jeroen

Posted in Pingback, SocialMedia, Stackoverflow | Tagged: , | Leave a Comment »

XSD/XML Schemas: resolving `Namespace ” is not available to be referenced in this schema` (via: StackOverflow)

Posted by jpluimers on 2013/09/01

While working on my Delphi: First try on an XSD for .groupproj files, I bumped into an error `Namespace ” is not available to be referenced in this schema`.

I added a targetNamespace attribute to the GroupProj.xsd so the .grouproj files would use the right namespace.

That resulted into two funny errors:

  1. Namespace ” is not available to be referenced in this schema.
    Visual Studio (which I normally use for editing XSD) would only throw this error on these elements:
    <xsd:element ...>
    So it would not throw them on nodes using the empty namespace.
    That was really confusing!
  2. When validating .grouproj files using this GroupProj.xsd, I would get this error for all .groupproj files:
    System.Xml.Schema.XmlSchemaValidationException: Type ‘<type>’ is not declared. (in this case for ‘<type>’  ‘ProjectType’).
    That was odd too: the ‘ProjectType’ was indeed declared, and should be valid.

I could hardly find any information about the latter error, but the former gave a few useful hits.

Thanks User weston – Stack Overflow. for answering this: it made me smack to my head (like usual, a case of EBCAK). Read the rest of this entry »

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development, XML/XSD, XSD | Tagged: , , | 2 Comments »

When your Delphi XE Browsing Path has been destroyed Ken White to the rescue (via: Stack Overflow)

Posted by jpluimers on 2013/08/11

Something overwrote the Browsing Path of my Delphi XE installation.

Symptoms:

  • When debugging a project in “use debug DCUs” mode, the IDE cannot find RTL, VCL and Indy units.
  • When you type `System` in a source file, then press `Ctrl+Enter`, the IDE cannot find the source code to the `System.pas` unit.

It was faster to examine the Delphi XE Library registry settings from Ken White than comparing them with a backup or a fresh Delphi XE install.

Now it works fine…

–jeroen

via: Delphi can’t find System.dcu; what should the default path settings be? – Stack Overflow.

Posted in About, Delphi, Delphi XE, Development, Software Development | Tagged: , , | 2 Comments »

Map WebDAV Drive tool: works in Windows 8 and Windows 7

Posted by jpluimers on 2013/02/15

Wow, I wish I had found this tool a lot earlier: Map WebDAV Drive.

–jeroen

via: windows – Mapping a Network Drive with Delphi WITHOUT WNetAddConnection2 – Stack Overflow.

Posted in Power User, Windows, Windows 7, Windows 8 | Tagged: , , , , | Leave a Comment »