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 September, 2011

A few more classics on BitSavers in the /pdf/borland tree

Posted by jpluimers on 2011/09/27

Hope you like these classics from the early Borland era:

Oh, and if you – like me – started in the Apple ][ and Lisa era, there are lots of nice documents of Apple products from that period to, for instance:

–jeroen

Via: Index of /pdf/borland.

Posted in BitSavers.org, Delphi, Development, History, Software Development | 5 Comments »

Android 101: How to add a second gmail account to your phone | Android Central

Posted by jpluimers on 2011/09/26

Or third, fourth, …

Android 101: How to add a second gmail account to your phone | Android Central.

–jeroen

Posted in Android Devices, LifeHacker, Power User | Leave a Comment »

SMS via de vaste aansluiting – Afwijkend nummer SMS-berichtencentrale

Posted by jpluimers on 2011/09/26

Als je SMS berichten via het vaste net van KPN wilt versturen, moet je een SMS Service Center installen.

Meestal moet je daarvoor het nummer 0673644444 hebben, maar soms moet er een nul achter en wordt het 06736444440, en soms (in ieder geval bij KPN Glasvezel) moet er 0031 voor en wordt het 0031673644444.

Gelukkig had de nieuwe Siemens Gigaset DX600A ISDN genoeg aan het normale nummer 0673644444.

–jeroen

via SMS via de vaste aansluiting – Afwijkend nummer SMS-berichtencentrale.

Posted in Power User | Leave a Comment »

#abnamro #fail while reporting fishing mail, no past ABN AMRO email address works (nor does abuse@abnamro.com or .nl)

Posted by jpluimers on 2011/09/25

ABN AMRO should get their act together: I tried to notify them about some fishing email messages that fake they are coming from them (but instead try to lure me into providing my ABN AMRO credentials to a fishing site).

All of the mail addresses I used to communicate with ABN AMRO in the (recent!) past failed to work.

And since both abuse@abnamro.com or abuse@abnamro.nl also bounce, ABN AMRO now seem to want to  live in complete cyber oblivion.

I hope some people at ABN AMRO read this and take action.

Or maybe they like to loose clients?

–jeroen

Edit: gelukkig, op Twitter let de ABN AMRO wel op: https://twitter.com/#!/ABNAMRO/status/117939672268812288″ target=”_blank”>Gijs reageerde, waarvoor dank:

@jpluimers Hallo Jeroen. Je kunt de phishing e-mails sturen naar valse-email@nl.abnamro.com of service@nl.abnamro.com. ^Gijs

Posted in About, Opinions, Personal | Leave a Comment »

DNSCheck

Posted by jpluimers on 2011/09/23

Cool stuff:

About DNSCheck

Use this DNScheck to perform a technical check on a registered or as yet unregistered (undelegated) domain.

The result page gives details of any problems detected.

For yet undelegated domainnames, you need to enter the the host names and the IP-addresses of the name servers. Choose the ‘undelegated domain test’ tab for this.

About SIDN

SIDN is responsible for the functional stability and development of the .nl ccTLD domain. As well as registering and allocating .nl domain names, the organisation enables Internet users all over the world to make use of these labels at any given moment by means of the Domain Name System (DNS).

–jeroen

via: DNSCheck.

Posted in Power User | Leave a Comment »

Windows “Device Manager” – expand all nodes

Posted by jpluimers on 2011/09/23

 

Expanded Windows Device Manager

 

With the increasing number of devices, it really helps to expand all nodes in the Device Manager’s tree view.

You cannot do this with the mouse, as none of the menu options contain an “Expand All” option.

But since the treeview, is the built-in Windows treeview (used in many places, like Windows explorer), you can use these shortcuts to expand/collapse nodes:

  • Numeric Keypad *: Expands everything under the current selection
  • Numeric Keypad +: Expands the current selection
  • Numeric Keypad -: Collapses the current selection.
  • RIGHT ARROW: Expands the current selection if it is not expanded, otherwise goes to the first child
  • LEFT ARROW: Collapses the current selection if it is expanded, otherwise goes to the parent

This not only works in Microsoft Windows 7: Visual … – Google Books, I think it has been introduced as far back as Windows 95.

–jeroen

Posted in Keyboards and Keyboard Shortcuts, Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista, Windows XP | 1 Comment »

C# Using Blocks can Swallow Exceptions | DigitallyCreated

Posted by jpluimers on 2011/09/22

I got to the SafeUsingBlock extension method because of a nice StackOverflow thread on exceptions swallowed in a using block.

Actually, you can broaden the case into a wider scope: in any language when you protect resources in a try finally block (essentially, a using will turn into an implicit try finally block), and both the core logic and the finally throw an exception, the exception from the core block is swallowed.

Simple C# example:

using System;
public class Example
{
    public void Main()
    {
        try
        {
                try
                {
                    throw new ApplicationException("logic block");
                }
                finally
                {
                    throw new ApplicationException("finally block");
                }
        }
        catch (Exception error)
        {
            Console.WriteLine(error.ToString());
        }
    }
}

Simple Delphi example:

program Example;
begin
  try
    try
      raise Exception.Create('logic block');
    finally
      raise Exception.Create('finally block');
    end;
  except
    on error: Exception do
    begin
      Write(error.ClassName, ' ', error.Message);
    end;
  end;
end.

Both examples will only write out the finally block exception message, not the logic block exception message.

This is a corner case (like the example from the MSDN documentation), from which the SafeUsingBlock protects you from by providing an AggregateException class.

In C#, it is a guideline to avoid throwing exceptions in the Dispose when implementing the disposable pattern.

This is good practice in any programming environment: when disposing objects, only throw exceptions in very critical situations when the containing process has been corrupted.

Practically this is very easy as the disposers are very thin and should not contain any business logic, so it is pretty easy to spot places where the program state really is corrupt.

An other alternative is for instance have a Close method that throws an exception, and a disposer not throwing.

–jeroen

via C# Using Blocks can Swallow Exceptions | DigitallyCreated.

Posted in .NET, C#, Delphi, Development, Software Development | 7 Comments »

MQCONNX 2058 (080A) (RC2058): MQRC_Q_MGR_NAME_ERROR

Posted by jpluimers on 2011/09/21

Solved a “2058 (080A) (RC2058): MQRC_Q_MGR_NAME_ERROR” error when calling MQCONNX; My bad.

I forgot that both the Queue Manager name must be passed both as the pQMgrName parameter and as the ClientConnPtr (MQCD).QMgrName of the ConnectOpts (MQCNO) parameter to MQCONNX.

–jeroen

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

Comparisons for EBCDIC CCSID 37, 500 and 1047

Posted by jpluimers on 2011/09/20

The referenced article explains the difference in code points between EBCDIC CCSID 37 and EBCDIC CCSID 500, and the difference in code points between EBCDIC CCSID 37 and EBCDIC CCSID 1047:
IBM CCSID Comparisons – United States.

Basically, these are the codepoints that are sensitive:

4A, 4F, 5A, 5F, AD, B0, BA, BB and BD.

–jeroen

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

Dropbox – Simplify your life – easy way to sync your iOS Delphi XE2 FireMonkey stuff between your Mac and PC

Posted by jpluimers on 2011/09/20

One of the things hard when doing FireMonkey iOS development Delphi XE2 is that you have a multi stage process:

  1. Develop and test using Delphi XE2 on Windows
  2. Compile and deploy on the iOS Simulator using xCode on OS X
  3. Deploy on the real iOS hardware using xCode OS X

Basically you need to share your project files both ways between Windows and OS X.

Naturally, you would share files between your Mac and Windows using Samba. With the introduction of OS X Lion, the Samba support was rewritten, causing all sorts of problems.

One of the problems is that it uses a lot of CPU (I tried copying over a 40GB VM, and stopped because the fan in my MacBook Air was making so much noise, I was afraid it was going to take off).
I didn’t even realize it had one, but a MacBook Air has a Fan, and it vents through the keyboard :)

Now I use DropBox to share files between it. If you like that to, sign up with the URL at the end of this line. The 2GB account is free! http://db.tt/6f95UJW

And if you know a better way of sharing: please let me know!

–jeroen

Via: Dropbox – Referrals – Simplify your life.

Posted in Apple, Delphi, Development, FireMonkey, Mac OS X 10.7 Lion, Power User, Software Development | 15 Comments »