The Wiert Corner – irregular stream of Wiert stuff

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

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20120127-Microsoft-Visual-Studio-2010-New-Work-Item-menu-still-loading...-(try-again-in-a-moment)

    20120127-Microsoft-Visual-Studio-2010-Cannot-navigate-to-definition.Disable-this-productivity-power-tool

    20120127-Microsoft-Visual-Studio-2010-Cannot-navigate-to-definition

    More Photos
  • Pages

  • All categories

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

    Join 366 other followers

Archive for January, 2010

gmail harmless error message when editing settings: “Your changes have not been saved. Discard changes?”

Posted by jpluimers on 2010/01/28

When you edit your gmail settings, recently you often  get this message if you move the focus away from the settings pane:

Your changes have not been saved.
Discard changes?

The odd thing is that the settings are indeed saved just before you move the focus away.

So I always wondered if the message can be really ignored, and this thread confirms the message indeed is harmless.

I do still wonder why I get this message mostly in FireFox and Internet Explorer, but almost never in Chrome :-)

–jeroen

Posted in Uncategorized | Leave a Comment »

Brilliantly simple webpage: Get URLs

Posted by jpluimers on 2010/01/27

Fill in an URL on this page, and it will extract all the URLs it finds on that page.

Simple. Brilliant.

Get URLs.

Posted in Development, Power User, Software Development | Leave a Comment »

Validate XML with XSD in .NET and native MSXML – big difference in string maxLength validation with newlines (samples in C# and Delphi)

Posted by jpluimers on 2010/01/19

Recently, I had an issue while validating XML with XSD: validation in .NET using the built in classes in the System.XML namespace, and validation in native Windows using the COM objects exposed by  MSXML version 6 (which incidentally ships with the .NET 3.0 framework).

Some documents validating OK in .NET did not validate well with MSXML.

I’ll show my findings below, and try to explain the difference I found, together with my conclusions.
The main conclusion is that MSXML version 6 has a bug, but I wonder why I can’t find much more information on it.

Since there is not so much ready to use for validating XML by XSD in .NET and native, I’ll include complete source code of command-line validations applications for both platforms.
.NET source code is in C#.
Native source code is in Delphi.
Read the rest of this entry »

Posted in .NET, C#, C# 2.0, C# 3.0, Delphi, Development, Software Development, Visual Studio and tools, XML, XML/XSD, XSD | 4 Comments »

10 Free Add-ons to Extend Google Apps and Make It More Useful

Posted by jpluimers on 2010/01/19

I need to remember this:

10 Free Add-ons to Extend Google Apps and Make It More Useful.

Posted in Google Apps, Power User | Leave a Comment »

Delphi – HIGHCHARUNICODE directive (Delphi) – RAD Studio

Posted by jpluimers on 2010/01/18

I forgot about it, but this thread reminded be about the differences between these two character values.

Quoting from the first post:

c1 := #128;
c2 := chr(128);
Assert(c1 = c2);

the assertion fails, meaning that c1 <> c2.

In fact c1 = #$20AC and c2 = #$80.

Read the rest of this entry »

Posted in Delphi, Development, Encoding, Software Development, Unicode | 2 Comments »

Web Security: Are You Part Of The Problem? – Smashing Magazine

Posted by jpluimers on 2010/01/15

These Smashing people provide real concise info.

Note their quite though:

Disclaimer: the things we’ll talk about in this article today won’t make you a security expert, just as buying a Swiss Army knife won’t make you a locksmith or buying a whip won’t make you a lion tamer. The purpose here is to raise awareness and perhaps make some of that security mumbo-jumbo a bit more understandable to you.

Web Security: Are You Part Of The Problem? – Smashing Magazine.

Posted in CSS, Development, JavaScript, Software Development, Web Development | Leave a Comment »

My Tips on WordPress.com — Blog — WordPress.com

Posted by jpluimers on 2010/01/14

So I won’t forget:

My Tips on WordPress.com — Blog — WordPress.com.

–jeroen

Posted in Power User | Leave a Comment »

5 Alternatives to Keeping a Fax Machine

Posted by jpluimers on 2010/01/14

Like Thursday Bram, I can’t remember the last time I sent a FAX.
I still have a FAX: it is a multifunctional HP Color LaserJet 2840.
It was one of my biggest mistakes, see at the end of this blog article why.

Back to faxing: unlike Tursday, I live in The Netherlands, so I’ll explain how my FAX stuff works. Read the rest of this entry »

Posted in Power User | Leave a Comment »

Windows 7 has lots of ‘GodModes’ (exclusive) | Beyond Binary – CNET News

Posted by jpluimers on 2010/01/14

Some more GodModes in Windows 7.
Note that some might work in Vista too, but note that Vista-64 users have problems with the original ‘GodMode’.

Windows 7 has lots of ‘GodModes’ (exclusive) | Beyond Binary – CNET News.

–jeroen

Posted in GodMode, Pingback, Power User | Leave a Comment »

Website Performance: What To Know and What You Can Do – Smashing Magazine

Posted by jpluimers on 2010/01/14

In todays fusion of Web 2.0 and mobile users, performance is key again.

The below article by Christian Heilmann explains the what and how of improving your website performance.

It contains references to the current tools that help you measure and improve performance.
The article also references some interesting videos, and people that lead in performance improvement.

Recommended reading!

Quote:

Even if you don’t have millions of users (yet), consider one very important thing: people are consuming the Web nowadays less with fat connections and massive computers and more with mobile phones over slow wireless and 3G connections, but they still expect the same performance. Waiting for a slow website to load on a mobile phone is doubly annoying because the user is usually already in a hurry and is paying by the byte or second. It’s 1997 all over again.

Website Performance: What To Know and What You Can Do – Smashing Magazine.

–jeroen

Posted in CSS, Development, JavaScript, Software Development, Web Development | Leave a Comment »

Petzold Book Blog – Dear EarthLink Customer Support

Posted by jpluimers on 2010/01/14

It seems that IT problems are not limited to large corportations, or are they?
Charles Petzold (not only of  ”Windows Programming” fame) recently got his charlespetzold.com domain  hijacked by his former ISP.

So if his web-site looks like an earthlink advertisement, just load his web-site by IP-address (http://140.174.69.91/).

He wrote an hilarious blog entry about this: Petzold Book Blog – Dear EarthLink Customer Support.

All of his material (both computer and other stuff) is recommended reading.

–jeroen

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

.NET/C#/ASP.NET – CodeProject: Multi-Threading in ASP.NET. Free source code and programming help

Posted by jpluimers on 2010/01/12

Finally someone who explains this topic well: CodeProject: Multi-Threading in ASP.NET.

Most of it is based on Web 405 “Building Highly Scalable ASP.NET Web Sites by Exploiting Asynchronous Programming Models” by Jeff Prosise, which should be here on the Microsoft events site (which currently has connection problems) and is referenced here and here.

Recommended reading!

–jeroen

Posted in .NET, ASP.NET, C#, C# 2.0, C# 3.0, C# 4.0, Development, IIS, Software Development, Visual Studio and tools | 2 Comments »

Delphi – TCustomGrid.InvalidateCol and InvalidateRow bug that has been there since at least Delphi 4^H^H^H^H^H^H^H^H 2 and 1

Posted by jpluimers on 2010/01/12

I just re-reported this in in QC as 81060, but wanted to let you know that there is a bug in TCustomGrid.InvalidateCol and TCustomGrid.InvalidateRow which has been there since at least Delphi 4 Delphi 1 (InvalidateRow) and Delphi 2 (InvalidateCol) and still present in Delphi 2010.

Both methods will not invalidate the entire Row/Col but only the Left/Top most cells of that Row/Col.
So the invalidate the absolute rectangle in stead of the visible rectangle.

You will see this behaviour when you have a virtual grid that is larger than the actual grid on the screen, you scroll through that grid, and perform your own drawing.

Boths bugs are easy to fix, have been reported in QC as number 8472 before (and reported even before QC existed), but denied as ‘test case error’  in stead of being investigated further.
The earliest reference I could find on them is as number 531 in the Delphi Buglist, by Rune Moberg, long time and well respected Delphi developer and bikedude.

Some of the 3rd party grid vendors are also to blame: they seemed to have worked around it without pressing the Delphi team to solve the issue.
For instance, the infamous rxgrid, just invalidates all Rows within InvalidateCol. Now that is pure overkill, as my solution will show. Read the rest of this entry »

Posted in Delphi, Development | Leave a Comment »

C# / Delphi – getting the right parameter and function result order for SOAP

Posted by jpluimers on 2010/01/05

Getting different architectures to talk can be a pain, even when using standards like SOAP.

In this case, the .NET WSDL imports Delphi generated WSDL in a different manner than you’d expect at first sight: when having both an ‘out’ parameter and a function ‘result’, the ‘result’ is not imported well.

But alas: SOAP didn’t accommodate for this situation in the past, and now SOAP now has some additions to solve this.

Bruneau Babet explains this here: SOAP inconsistency? Delphi 2010 (Win32) Server and .NET Client swapping ‘out-parameter’ and ‘result’. – Stack Overflow.

–jeroen

Posted in .NET, ASP.NET, Delphi, Development, SOAP/WebServices, Software Development | Leave a Comment »

C# – Kirk Evans Blog : Suppress warnings in C# 2.0

Posted by jpluimers on 2010/01/05

I always forget the pragma syntax, because it differs substantially from the #if syntax, and I hardly use #pragma.

Contrary to #if#endif, there is no #pragma#endpragma.
Instead, there is #pragma warning disable ### #pragma warning restore ###).

Ken Evans wrote a nice blog article about it (a long time ago, but it is still current): Kirk Evans Blog : Suppress warnings in C# 2.0.
And of course: the official docs, which indicate that when you omit the  warning list in a #pragma warning restore, then all warnings are restored.

You can get the error numbers from the compiler output window (no, the errors/warnings/hints window does not show the numbers, that would be to obvious).

–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Development | Leave a Comment »

Delphi – Announce: ModelMaker Code Explorer 8.02 beta

Posted by jpluimers on 2010/01/05

Gerrit Beuze just announced the new beta of ModelMaker Code Explorer 8.

For me, ModelMaker Code Explorer (especially at a price of only EUR 99!)  is an indispensable tool for both creating new sources, and maintaining old sources (the refactorings it can do are awesome, but there are many other useful features in it as well).

Over the years, I’ve been using interfaces in Delphi more and more.
Actually, in some of my projects almost all classes implement interfaces.

Therefore, I’m particularly glad with the new feature  ’auto complete style drop down list’ in the ‘Edit Class dialog’ that this beta brings.

More info: ModelMaker Code Explorer 8.02 beta.

Note: if you use Visual Studio, there is a Visual Studio edition of ModelMaker Code Explorer too.

–jeroen

Posted in C# 2.0, C# 3.0, Delphi, Development, Software Development, Visual Studio and tools | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 366 other followers