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

C#/Windows: why LastWriteTime can be earlier than CreationTime

Posted by jpluimers on 2011/10/05

I was wondering about file times like these:

CreationTime....: 5-10-2011 10:00:13
LastAccessTime..: 5-10-2011 12:05:58
LastWriteTime...: 5-10-2011 10:00:10

I found the answer on stackoverflow.

If a file is copied to another file, the new file retains the LastWriteTime of the source but the CreationTime will be the time of the copy.

And indeed: the file had been copied from a local directory to a central network location.

–jeroen

via c# – Windows: How to determine if a file has been modified since a given date – Stack Overflow.

Posted in .NET, C#, Development, Power User, Software Development, Windows, Windows 7, Windows 8, Windows Vista, Windows XP | Leave a Comment »

CRC32 Calculators in Delphi and .NET

Posted by jpluimers on 2011/10/05

For a couple of projects, I needed to calculate CRC32 hashes (they same CRC that for instance is used in ZIP files).

A few of the projects used C#, others used Delphi, so here are a few references:

FileFormat.info has a good on-line hasher (that does CRC32, md5 and a bunch of others) accepting both strings, hex bytes and files.

–jeroen

via: CRC32 Calculator.

Posted in .NET, C#, Delphi, Development, Software Development | 1 Comment »

The *must read* WebSphere MQ security topic on #MQSeries.net

Posted by jpluimers on 2011/10/04

MQSeries.net is the site to visit for WebSphere MQ (formerly MQSeries) topics.

They have a forum with very knowledgeable people.

One of the must-read topics is MQSeries.net :: View topic – NOT running amqcrsta as ‘mqm’… that points to a very nice IBM WebSphere MQ Security presentation (including a 50 minute YouTube video) that Martyn Ruks presented on EUSecWest 08  (an older version of the presentation is from DefCon 15) who in 2006 did a very nice piece of security research on the SNA protocol and now has a series of publications on WebSphere MQ security.

The posting does not link the the paper that goes with the conference (that he wrote with Alex Pratt), which has much more in depth information than the presentation itself. Recommended reading!

–jeroen

via: MQSeries.net :: View topic – NOT running amqcrsta as ‘mqm’…

Posted in Development, MQ Message Queueing/Queuing, Power User, Security, WebSphere MQ | Leave a Comment »

I won’t make it to CodeRage this year, the Diving instructor and a diving buddy of my retarded brother just died in a diving accident: counselling to do

Posted by jpluimers on 2011/10/03

I’m really sorry to announce it, but I’m still shocked, while in the mean time providing counselling to my brother, providing the newspaper interviewer with background information on how diving with handicapped/retarded people works, and helping hands where I can.

It means I won’t make it to CodeRage this year. With pain in my heart, but even more pain for Fred Snijder (diving instructor) and Nico Laan (diving buddy), their families, friends, pupils, and co-divers. Those guys will be dearly missed, and leave an inexplicably large hole behind (no pun intended).

Just read, and shiver imagining that two of the most well trained and precautionary diving people I know just, well, died on October, 1st.

I’m in an utterly confused state of mind: sad, confused, supportive, etc.

Germany

2 Dutch divers died in German lake

The bodies of 2 divers were recovered on Sunday at a depth of 50 metres in the Kreidesee in Hemmoor, 30 miles southeast of Cuxhaven, following a diving accident.

The Delta Duikteam of Alkmaar had a group of 6 people diving at the 60-metre deep lake, 2 surfaced without problems, 2 others required to make an emergency ascent but they are not listed in life-threatening condition. Of the 2 missing divers whose bodies were found yesterday, 1 was an experienced instructor. 3rd October 2011

–jeroen, confused.

via: www.safetynews.co.uk

Fundiving    Kreidesee    Zevensprong    Delta Duikteam Alkmaar    AD newspaper    CodeRage

 

 

Posted in About, Delphi, Development, Personal, Software Development | 7 Comments »

MacBook (or -Pro; -Air): Disable the default “fn key” behaviour and enable the normal Function-keys by default

Posted by jpluimers on 2011/10/03

In their infinite wisdom Apple has chosen to cripple the Apple keyboards on the MacBook (and -Pro and -Air) to default the top-row keys to not behave as function keys.

Apparently they expect people to use those keys more often for changing screen brightness, multi media playing, sound volume, than as function keys.

Maybe it is their 1 Infinite Loop address, but out there in the real world, people appreciate the function keys by default to behave, well like they are meant for: Function Keys and not having to press the fn key to use them.

Actually, some people at Apple were smart enough to make this configurable, but it is well hidden behind the phrase “Use F1-F12 keys to control software features” as the MacRumors Forums 2007 post titled “View Single Post – How To F Lock?” points out.

In the mean time however, the Mac OS X System Preferences to reorganized quite a bit, and “Keyboard & Mouse” are now to separate entries. So the steps are now these:

  1. Press Command-Space to start the Spotlight Window
    (yes, the Command Key still is marked as ⌘ for consistency, but for how long?)
  2. Type “Keyboard” (without double quotes ;-)
  3. Choose the “Keyboard” entry under “System Preferences”
  4. Put a checkmark in front of the “Use all F1, F2, etc. jeys as standard function keys”
    When this option is selected, press the Fn key to us ethe special features printed on each key”
    (note that on a MacBook Air, the key is not “Fn”, but “fn”: so far for consistency again)
  5. Done.

There even seem to be some answers on the Apple discussion forums seem to hint on this, but – at the time of writing – they all conveniently show up as “We’ll be back soon” for some time now, thereby redefining the term “shortly” in the same pass:

We will be back soon.

Being in this mode, it would be soooooo nice if actually they marked the option key with the same character as they refer to it from the menus: ⌥.
They used to on older versions of the option key (even on old MacBook Pro machines). Now that would be consistent user experience…

Now people have to find the right Apple documentation on keyboard shortcuts to find out what the symbols mean.

But – though often famed for consistency –  I don’t think it is one of Apple strengths.

–jeroen

via: MacRumors Forums – View Single Post – How To F Lock?.

Posted in Apple, Keyboards and Keyboard Shortcuts, Mac, MacBook, MacBook-Air, MacBook-Pro, Power User | 2 Comments »

WordPress › Support » WordPress is inserting div tags

Posted by jpluimers on 2011/10/03

I just reproduced this: WordPress › Support » WordPress is inserting div tags.

  1. Start an unordered or ordered list
  2. Type entries
  3. After the last entry, press Enter twice
  4. Then type a few lines of text with Enter as separators
Those lines of text will have
DIV tags in between them
Just like this post.
–jeroen

Posted in Power User, SocialMedia, WordPress | 1 Comment »