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

Archive for 2013

Foute foutmelding @heldenvannu (inschrijving: Pakketten | HELDEN VAN . NU)

Posted by jpluimers on 2013/03/29

Als je postcode “1060 NP” invult bij aansluiting en “1170 AB” bij facturatie, dan krijg je deze onterechte foutmeldingen:

  • Organisatie postcode is ongeldig
  • Facturatie gegevens postcode is ongeldig

Beetje vreemd, want al sinds de introductie van postcodes in Nederland in 1978 zit in een postcode 1 spatie, en tussen de postcode en de woonplaats 2 spaties.

Ook trema‘s gaan mis: bij postcode 1060 NP hoort de straat Pyreneeën in Amsterdam, maar bij Heldenvan.nu wordt het deze Mojibake:

Read the rest of this entry »

Posted in Development, Encoding, Mojibake, Opinions, Power User, Software Development, Unicode | Leave a Comment »

Various Adobe Flash Player download links (including standalone downloads)

Posted by jpluimers on 2013/03/29

A few links to make sure you can get a Flash version for a machine that is not internet connected:

(when I wrote it, I needed the Online or Offline installer for Flash Player 11 for Internet Explorer on Windows ).

–jeroen

Posted in Adobe, Flash, Power User | Leave a Comment »

VPN Gate Public VPN Relay Servers List

Posted by jpluimers on 2013/03/28

VPN Gate:

VPN Gate Academic Experiment Project is an online service as an academic research at the Graduate School of University of Tsukuba, Japan. The purpose of this research is to expand the knowledge of “Global Distributed Public VPN Relay Servers” .

Or in short a big VPN that helps you stay behind a wall in order to protect yourself.

It is interesting to see the demographics of VPN Gate and their data usage at VPN Gate User Countries Realtime Ranking:

  1. Japand in second place
  2. USA in 8th place, with 1/5 of the Japanese users, but more than their data usage

Could it be that the USA users like the anonymity of large downloads, and that the Japanese users just want to try to buy stuff from within the USA?

Configuration instructions for:

–jeroen

via: VPN Gate Public VPN Relay Servers List.

Posted in Power User | Leave a Comment »

Some Delphi libraries and ideas you should take a look at (link clearance)

Posted by jpluimers on 2013/03/28

There are a couple of very interesting libraries and ideas every Delphi developer should take a look at.

The list is far from complete, but should give you a good overview on what more recent Delphi language additions like attributes, generics, helpers, overloading, are capable of.

–jeroen

Posted in Delphi, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | 3 Comments »

Delphi XE3 inside a Windows 7 VMware Fusion VM at 2560×1600 on a 15 inch Retina MacBook Pro at 2880×1800

Posted by jpluimers on 2013/03/27

I was amazed that this is still usable:

You can even run VMware Fusion 4 full screen at 2880×1800, but I prefer to have the Mac Desktop and Dock to be visible. I didn’t have any of the VMware Fusion 4 issues mentioned here.

So the only thing you need VMware Fusion 5 for is Windows 8 support.

You need SwitchResX to get the Retina MacBook to use 2880×1800 at all (otherwise you get 1920×1200 at 1.5 scale factor, which is also a 16:10 display ratio).

It really runs 5+ hours on one battery charge, which is much longer than my ThinkPad W701.

All in all, I’m very happy with this setup.

--jeroen

PS:

via: Screen Shot 2013-03-27 at 19.55.39 | Flickr – Photo Sharing!.

Click on the image or here for full size image.

Delphi XE3 inside a Windows 7 VMware Fusion VM at 2560x1600 on a 15 inch Retina MacBook Pro at 2880x1800

Posted in Apple, Delphi, Delphi XE3, Development, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, OS X 10.8 Mountain Lion, Power User, Software Development | 7 Comments »

JCB TOUGHPHONE Sitemaster | JCB gsm | RN-electronics

Posted by jpluimers on 2013/03/27

Interesting: JCB TOUGHPHONE Sitemaster | JCB gsm | RN-electronics.

Posted in Uncategorized | Leave a Comment »

How to take a screenshot on the Nexus 4 | How To – CNET

Posted by jpluimers on 2013/03/27

Thanks Jason Cipriani – CNET:

To take a screenshot on the Nexus 4, press and hold down the power and volume down buttons at the exact same time. After a few seconds you’ll feel a vibration on your device and you’ll see the screenshot minimize into the notification tray. Pulling down the notification tray will in turn allow you to quickly share the picture.

–jeroen

via: via How to take a screenshot on the Nexus 4 | How To – CNET.

Posted in Android Devices, Google, Nexus 4, Power User | 1 Comment »

Delphi: you should avoid the `with` statement as it makes your code less future proof

Posted by jpluimers on 2013/03/27

As I wrote before, I’m with the [WayBack] Delphi with haters camp, and this is why:

Using the [WayBackwith statement in Delphi makes your code less future proof.

Originally, the with statement in Pascal was argumented in part of allowing compiler optimisations:

PASCAL User Manual and Report – Kathleen Jensen, Niklaus Wirth – Google Books

The with clause effectively opens the scope containing field identifiers of the specified record variable, so that the field identifiers may occur as variable identifiers. (Thereby providing an opportunity for the compiler to optimize the qualified statement.)

Screenshots of this 1975 book are below the fold.

The Delphi (actually even before that Turbo Pascal compiler) has no measurable difference between with and non-with code.

The debugger however, still does not support with, and there are other drawbacks of which one is below.

The below code example is just one of many. I show it because I recently bumped into doing some long overdue code porting to Delphi XE3.

Since I’ve been bitten by using with a couple of times before, it didn’t take me long to find the cause.

Example code where FIConData is of type NOTIFYICONDATAW that used to compile fine:

    with FIconData do
    begin
      cbSize := SizeOf(FIconData);
      Wnd := Self.Handle;
      uID := $DEDB;
      uFlags := NIF_MESSAGE or NIF_ICON or NIF_TIP;
      hIcon := Application.Icon.Handle;
      uCallbackMessage := WM_CAS400NTIcon;
      StrCopy(szTip, PChar(Caption));
    end;

Well, as of Compiler Version 20, it doesn’t compile any more. Read the rest of this entry »

Posted in Borland Pascal, Conference Topics, Conferences, Delphi, Delphi 1, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Development, Event, Pascal, Software Development, Turbo Pascal, With statement | 32 Comments »

WebSphere MQ errors I encountered.

Posted by jpluimers on 2013/03/26

While porting a library from Delphi 2006 to Delphi XE2.

The really cool thing is that the Windows Event Log contains details of what I did wrong (:

  • 2277 (08E5) (RC2277): MQRC_CD_ERROR
    Oops, typo on the header file.The MQCD structure supplied was not valid.The value of the ‘CLWLChannelWeight’ field has the value ‘0’. This value is invalid for the operation requested.Change the parameter and retry the operation.
  • 2538 (09EA) (RC2538): MQRC_HOST_NOT_AVAILABLE
    Oops, typo in the host name (:Remote host ‘Host.Domain’ not available, retry later.The attempt to allocate a conversation using TCP/IP to host ‘Host.Domain’ for channel WebSphereMQChannelName was not successful. However the error may be a transitory one and it may be possible to successfully allocate a TCP/IP conversation later. &P In some cases the remote host cannot be determined and so is shown as ‘????’.Try the connection again later. If the failure persists, record the error values and contact your systems administrator. The return code from TCP/IP is 11001 (X’0′). The reason for the failure may be that this host cannot reach the destination host. It may also be possible that the listening program at host ‘Host.Domain’ was not running. If this is the case, perform the relevant operations to start the TCP/IP listening program, and try again.
  • 2009 (07D9) (RC2009): MQRC_CONNECTION_BROKENTwo causes:- The service job on the AS/400 restarted; need to make the client more robust so it gracefully handles this.
    – WebSphere MQ 7.x needs different initialization than WebSphere MQ 5.x, I didn’t get some of the extra fields initialized correctly.
    Connection to host ‘Host (dot.ted.ip.addr)(TCPPort)’ for channel ‘WebSphereMQChannelName’ closed.An error occurred receiving data from ‘Host (dot.ted.ip.addr)(TCPPort)’ over TCP/IP. The connection to the remote host has unexpectedly terminated. &P The channel name is ‘WebSphereMQChannelName’; in some cases it cannot be determined and so is shown as ‘????’.

    Tell the systems administrator.

–jeroen

Posted in Delphi, Delphi XE2, Development, MQ Message Queueing/Queuing, Software Development, WebSphere MQ | Leave a Comment »

Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs

Posted by jpluimers on 2013/03/25

Why Internet Explorer does not use these two for showing shortcuts:

  • CSIDL_COMMON_FAVORITES
  • %ALL­USERS­PROFILE%\Microsoft\Internet Explorer\Quick Launch

–jeroen

via: Why don’t the shortcuts I put in the CSIDL_COMMON_FAVORITES folder show up in the Favorites menu? – The Old New Thing – Site Home – MSDN Blogs.

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