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

Archive for February, 2013

Please write dates and times so that everyone understands them, not just you. xkcd: ISO 8601

Posted by jpluimers on 2013/02/28

ISO 8601 was published on 06 05 88 and most recently amended on 12 01 04

ISO 8601 was published on 06 05 88 and most recently amended on 12 01 04

Boy, am I glad with the xkcd: ISO 8601 post and image on the right.

One reason:

Please write dates and times so that everyone understands them, not just you.

The alt-text of the comic is hilarious (ISO 8601 was published on 06 05 88 and most recently amended on 12 01 04) showing the confusion of using 2 digit years not knowing which field means which (I thin XKCD author Randall Munroe and Mathematics of the ISO calendar got some of the dates, see PDF search dates below).

I found out in the mid 1980s that people I was communicating with internationally (back then the internet was forming and you already had BITNET Relay chat and email) were using different date formats than I did.

Ever since that, I’ve used the YYYY-MM-DD format of writing dates, encouraging others to use as well and as soon as I found out that was a standard, started to evangelize ISO 8601 (there is an ISO 8601 category on my blog), which – at the time of writing this – had had revisions in 1998 (on 1998-06-15), 2000 (on 2000-12-15) and 2004 (on 2004-12-01).

A lot later I found out that back in 1971, this date format was a recommendation, and in 1976 already a standard. Not nearly as old as Esperanto though (:

Speaking about languages:

At the end of last century, after Delphi 5 added year 2000 support (which made the 16-bit Delphi 1 disappear from the box as the effort to prove the product including all libraries was year 2000 proof), Delphi went cross platform.

The Delphi team working on both Kylix 1 and Delphi 6, the also added a DateUtils unit which provides a lot of cuntionality, including support for weak numbers. The first test version always assumed week 1 was the one with januari first in it. As ISO 8601 also indicates how the first week of a year should be determined, a couple of people (Jeroen W. Pluimers, Glenn Crouch, Rune Moberg and  Ray Lischner) provided code that fixed this and a few other things in the unit. We even got mentioned by Cary Jensen!

That code is now also part of the RemObjects ShineOn library. That DateUtils unit is now on GitHub.
A Delphi XE version of the code (and a Delphi 2007 one) are now at NickDemoCode (Thanks Nick Hodges!).

Delphi is not the only environment having ISO 8601 support. XML has, .NET has, etc: it is now wide spread.
So follow your tools, and start using it yourself as well (:

Too bad the ISO 8601 standard text is not available publicly:

I remember the Y2K preparation era where the ISO-8601 standard was freely available at http://www.iso.ch/markete/8601.pdf, soon after the Year 2000, the PDF got locked behind a payment engine.
ISO suffers from heavy link rot too, for instance the ISO 3166 country codes used to be at http://www.iso.org/iso/prods-services/iso3166ma, but are now at http://www.iso.org/iso/home/standards/country_codes.htm. What about HTTP 303 or 302 redirect here guys?

Luckily people keep cached copies:

  1. “ISO 8601” “First edition” “1988-06-15” filetype:pdf
  2. “ISO 8601” “Second edition” “2000-12-15” filetype:pdf
  3. “ISO 8601” “Third edition” “2004-12-01” filetype:pdf

–jeroen

via: xkcd: ISO 8601.

Posted in .NET, Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Development, ISO 8601, Power User, Prism, Software Development | Tagged: , , , , , , , , , , , , , | 10 Comments »

Command line tool to manage Windows 7 Libraries, with source code – The Old New Thing – Site Home – MSDN Blogs

Posted by jpluimers on 2013/02/28

Interesting: Command line tool to manage Windows 7 Libraries, with source code – The Old New Thing – Site Home – MSDN Blogs.

Especially as next to some documentation, it points to these two:

–jeroen

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, Batch-Files, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Scripting, Software Development | Leave a Comment »

Free Chapters 1-4 Professional Android Programming with Mono for Android and .NET/C# | Wrox P2P

Posted by jpluimers on 2013/02/27

Cool: free starter is a PDF with chapters 1-4.

–jeroen

via: Free Xamarin Studio and Free Chapters 1-4 Professional Android Programming with Mono for Android and .NET/C# | Wrox P2P.

Posted in .NET, Android, C#, Development, Mobile Development, Mono for Android, Software Development | Tagged: , , , , , | Leave a Comment »

A few more interesting links on Delphi, C# and CLR history (trip down memory lane; Peter Sollich)

Posted by jpluimers on 2013/02/27

The continuation of the trip down memory lane

Few people know the name Peter Sollich, as he always chose not to be a public figure (for instance, he is absent on the Outstanding Technical Achievement video).

Peter has been very important for both the Delphi and the .NET worlds: he was the original author of the 32-bit product that became the Delphi x86 compiler.

A few interesting links came up when using his name in some Google searches.

–jeroen

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, .NET CF, C++, C++ Builder, Delphi 1, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Development, Software Development | 2 Comments »

Behind the Code with Anders Hejlsberg (via: Cape Cod Gunny Does Delphi: Priceless)

Posted by jpluimers on 2013/02/26

I remember having heard this interview on audio a long while ago, but couldn’t find it back. Now I stumbled across Cape Cod Gunny writing about this great video where Anders Hejlsberg is interviews by Research Channel for an hour. To quote Cape Cod Gunny:

I just watched this interview with Anders Hejlsberg for the first time. This is truly an amazing interview. It’s rather long, about 1 hour, but it is so worth it. I’m not giving anything away… you’ll have to just watch and enjoy.

I am giving a few things away: trip down memory lane, putting big parts of software development history into perspective,

Since Anders has been so versatile, influential and still humble, this is a must watch for anyone in the software field. To quote Research Channel:

This episode features industry luminary, Anders Hejlsberg. Before coming to Microsoft in 1996 he was well noted for his work as the principal engineer of Turbo Pascal and the chief architect of the Delphi product line. At Microsoft, he was the architect for the Visual J++ development system and the Windows Foundation Classes (WFC). Promoted to Distinguished Engineer in 2000, Anders is the chief designer of the C# programming language and a key participant in the development of Microsoft’s .NET Framework. In this show, Anders is joined by a surprise guest. This episode of ‘Behind the Code’ is hosted by Barbara Fox – former senior security architect of cryptography and digital rights management for Microsoft.

Thanks Gunny for pointing me at this!

–jeroen

via: Cape Cod Gunny Does Delphi: Priceless: Behind the Code with Anders Hejlsberg.

(PS: how a video published in the C# 3 era can be so current <g>).

And if you feel for more, here, hereherehere and here are some more, are a few lists of videos where Anders speaks.
From a historic perspective, I like these most:

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Delphi, Delphi 1, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Development, Software Development | 4 Comments »

Most common error codes during Windows/Microsoft Update

Posted by jpluimers on 2013/02/25

Finally I found a good list of error codes that you might encounter when doing Windows/Microsoft Updates.

The page is for Windows XP SP3, but the error codes occur in many other update situations as well.

Error code that appears in the WindowsUpdate.log file Error Code description (as it may appear in the Svcpack.log file) Knowledge Base article that describes potential resolutions
0x8007F0F4 STATUS_PREREQUISITE_FAILED 949388
0x80246007 SUS_E_DM_NOTDOWNLOADED 949386
0x8007F003 STATUS_NOT_ENOUGH_SPACE 949385
0x80070005 ERROR_ACCESS_DENIED 949377
0x800706BE RPC_S_CALL_FAILED 950718
0x8007F02B STATUS_NOT_ENOUGH_WITH_UNINST 949375
0x87FF0004 Error_Too_Many_Open_Files 950718
0x8007054F Error_Internal_Error 949384
0x8007001F ERROR_GEN_FAILURE 950718
0x8007F070 STATUS_SETUP_ERROR 950718
0x8007F205 STR_UPDATE_ALREADY_RUNNING 949381
0x8007F004 STATUS_INSUFFICIENT_PRIVS 951244
0x80070001 ERROR_INVALID_FUNCTION 950718
0x80070002 ERROR_FILE_NOT_FOUND 950718
0x8007F0CC STATUS_KERNEL_NONSTD 327101
0x87FF054F n/a 950718
0x87FF36B7 n/a 950718

Oh and this didn’t solve my problem:

  • REGSVR32 WUAPI.DLL
  • REGSVR32 WUAUENG1.DLL
  • REGSVR32 ATL.DLL
  • REGSVR32 WUPS2.DLL
  • REGSVR32 WUCLTUI.DLL
  • REGSVR32 WUPS.DLL
  • REGSVR32 WUWEB.DLL
  • REGSVR32 WUAUENG.DLL

–jeroen

via:

Posted in Power User, Windows, Windows 7, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

#KleintjePils vanaf vanmiddag ook als miniatuur in Madurodam…

Posted by jpluimers on 2013/02/23

Geweldig: nu ook wereldberoemd in Madurodam: Twitter / Kleintje_pils: Persbericht: #KleintjePils ….

–jeroen

Posted in About, Personal | Leave a Comment »

Microsoft Azure: Storage certificate expired?

Posted by jpluimers on 2013/02/23

Reasons like this is why I distrust the cloud: Storage certificate expired?.

From Windows Azure Status: Service Dashboard | Technical Support:

Beginning Friday, February 22 at 12:44 PM PST, Storage experienced a worldwide outage impacting HTTPS operations (SSL traffic) due to an expired certificate. HTTP traffic was not impacted. We executed repair steps to update the SSL certificate and expect HTTPS traffic to notice gradual recovery in many sub-regions. Further updates will be published to keep you apprised of the situation. We apologize for any inconvenience this causes our customers. Status of affected services will be updated in  the table below.

–jeroen

via: Windows Azure Status: Service Dashboard | Technical Support.

Posted in Cloud Apps, Internet, Power User | Tagged: , , , | Leave a Comment »

How to make a disallowed-by-default Software Restriction Policy

Posted by jpluimers on 2013/02/22

Locking down your Windows system even further than the standard restricted user: How to make a disallowed-by-default Software Restriction Policy.

–jeroen

Posted in Power User, Security, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | 1 Comment »

Xamarin vs Titanium vs FireMonkey: should cross-platform tools abstract the GUI? « Tim Anderson’s ITWriting

Posted by jpluimers on 2013/02/21

Great post and must read for any X-platform developer: Xamarin vs Titanium vs FireMonkey: should cross-platform tools abstract the GUI? « Tim Anderson’s ITWriting.

–jeroen

Posted in .NET, Delphi, Development, FireMonkey, Mono for Android, MonoTouch, Prism, Software Development | 2 Comments »