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 2015

Some notes on recording sounds produced by your Mac on your Mac

Posted by jpluimers on 2015/12/04

Sounds funny? Well, it’s a way to record sound the Mac produces so you can find out where the sound actually comes from.

I got triggered by this question: osx – What is causing this sound on my Mac? – Ask Different.

The reason is that wasn’t hearing that sound, but a different one.

I tried searching through all audio files on my machine, to no avail.

The sound is now gone, but if it gets back, these are the things I’m going to try:

–jeroen

Posted in Uncategorized | 1 Comment »

VisionApp: pass Windows key combinations to remote machine

Posted by jpluimers on 2015/12/04

Like MSTSC/RDP, I wanted VisionApp to pass Windows specific key combinations (like Alt-Tab, menu key, PrtSc, and of course Windows key combinations) to pass to the remote.

Though the web-search didn’t turn any good information in the high ranked results, this was remarkably easy:

  1. Right click on your connection
  2. Choose “Properties”
  3. Switch to the “RDP” tab
  4. Set “Apply Windows key combinations” to “On the remote computer”
  5. Press “OK”

One catch:

this only work for new sessions. So you will have to re-connect existing sessions to apply this change.

Click on the image for a larger version.

Set "Apply Windows key combinations" to "On the remote computer"

Set “Apply Windows key combinations” to “On the remote computer”

–jeroen

Posted in Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | Leave a Comment »

BashPitfalls: common errors that Bash programmers make – Greg’s Wiki

Posted by jpluimers on 2015/12/03

I wish I had seen this years ago, as I’ve always had a hate-hate relationship with many shells on many OS-es.

I’ve included the ToC; read the rest of BashPitfalls: common errors that Bash programmers make – Greg’s Wiki back-to-back. It’s worth it, really.

Bash Pitfalls

This page shows common errors that Bash programmers make. These examples are all flawed in some way.

You will save yourself from many of these pitfalls if you simply always use quotes and never use WordSplitting for any reason! Word splitting is a broken legacy misfeature inherited from the Bourne shell that’s stuck on by default if you don’t quote expansions. The vast majority of pitfalls are in some way related to unquoted expansions, and the ensuing word splitting and globbing that result.

Posted in bash, Development, Scripting, Software Development | Leave a Comment »

The curse of nested DataSet fields in ClientDataSets: naming conventions

Posted by jpluimers on 2015/12/03

Nested DataSet fields assume identical naming of fields and parameters as Richard Stevens did comment in   So I’m in total n00b mode here. I’m trying to set up a master/detail….

Of course the documentation for that is easy to find. Not.

Even this article by Cary Jensen doesn’t reveal the issue: Nesting DataSets in ClientDataSets.

So thanks Richard for clearing that up!

–jeroen

Posted in Delphi, Delphi 10 Seattle, Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | Leave a Comment »

Undocumented Delphi record alignment directive – Chee Wee’s blog: IT solutions for Singapore and companies worldwide

Posted by jpluimers on 2015/12/02

Reading a thread with ramblings on failing to understand that packed records overrides the $ALING directive, I found out that there is also an Undocumented Delphi record alignment directive – Chee Wee’s blog: IT solutions for Singapore and companies worldwide.

David Heffernan mentioned some nice permutations in the first thread.Chee Wee Chua “documents” the second. Both provide great reference material.

Note that both directive require a const expressions evaluating to a power of two. If you don’t, you get the same error: E2573 Illegal value for the ALIGN directive (valid for one of 1, 2, 4, 8 or 16) (Delphi) – RAD Studio

–jeroen

via:

Posted in Delphi, Delphi 10 Seattle, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | 2 Comments »

NameBasedSSLVHostsWithSNI – Httpd Wiki

Posted by jpluimers on 2015/12/02

For my link archive:

# Ensure that Apache listens on port 443
Listen 443
    
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:443

# Go ahead and accept connections for these vhosts
# from non-SNI clients
SSLStrictSNIVHostCheck off


  # Because this virtual host is defined first, it will
  # be used as the default if the hostname is not received
  # in the SSL handshake, e.g. if the browser doesn't support
  # SNI.
  DocumentRoot /www/example1
  ServerName www.example.com

  # Other directives here




  DocumentRoot /www/example2
  ServerName www.example2.org

  # Other directives here


One more time as WordPress screws XML:


# Ensure that Apache listens on port 443
Listen 443
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:443
# Go ahead and accept connections for these vhosts
# from non-SNI clients
SSLStrictSNIVHostCheck off
<VirtualHost *:443>
# Because this virtual host is defined first, it will
# be used as the default if the hostname is not received
# in the SSL handshake, e.g. if the browser doesn't support
# SNI.
DocumentRoot /www/example1
ServerName http://www.example.com
# Other directives here
</VirtualHost>
<VirtualHost *:443>
DocumentRoot /www/example2
ServerName http://www.example2.org
# Other directives here
</VirtualHost>

–jeroen
Source: NameBasedSSLVHostsWithSNI – Httpd Wiki

Posted in *nix, Apache2, Power User | Leave a Comment »

Wish more people named Peter Sollich for what he did in the Pascal world…

Posted by jpluimers on 2015/12/02

A small video reference to the work that Peter Sollich did for the Pascal world is at around 38:20 in this video: https://www.youtube.com/watch?v=btGj-PocjeU#t=2298

It is where Allen Bauer talks about his early years at Borland. He talks about a German guy there without naming him. It is Peter Sollich (he names them a few time in the newsgroups though).

Peter Sollich came from Germany where he had written a Turbo Pascal compatible compiler for the Atari ST (it used a m68k Motorola 68000 CPU which is a 32-bit processor on the internal side with a 16-bit wide data bus (transporting 16-bit words) on the outside using a 24-bit address (so it can address 16 mebibytes of memory) – hence ST for Sixteen/Thirtytwo).

Borland bought the source code which formed the base for the current 32-bit x86 compiler implementations of both Delphi and C++ Builder (they hired him as a contractor to do the port).

Rumour goes that Peter wrote many parts of the x86 code emitter on the flight from Europe to the USA.

Before the ST era there was already a CP/M Modula-2 compiler written by Peter Sollich and Martin Odersky which Borland bought even earlier and was turned into Turbo Modula-2.

For people interested, here are some links with ore details – where possible I saved them in the WayBack machine as sites tend to Ditch historically important information:

–jeroen

Posted in .NET, Borland Pascal, Delphi, Development, Pascal, Software Development, Turbo Pascal | 4 Comments »

Interesting use of an IDE plugin: Copy a string from a “Watch” entry to the…

Posted by jpluimers on 2015/12/01

On the todo list:

Interesting use of an IDE plugin: Copy a string from a “Watch” entry to the clipboard without quotes. – Thomas Mueller (dummzeuch) – Google+

Source: delphi – Can I change the display format for strings in the watch list? – Stack Overflow:

Every now and then I use the watch window to display strings which contain sql statements.Now I select Copy Value from the context menu and get

'SELECT NAME FROM SAMPLE_TABLE WHERE FIRST_NAME = ''George'''#$D#$A

but want

SELECT NAME FROM SAMPLE_TABLE WHERE FIRST_NAME = 'George'

The answer by MartynA has an OTA plugin that could be integrated with something like GExperts.

–jeroen

via: Interesting use of an IDE plugin: Copy a string from a “Watch” entry to the clipboard…

Posted in Delphi, Delphi 10 Seattle, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | Leave a Comment »

osx – How to find wifi password on my mac which is already connected – Ask Different

Posted by jpluimers on 2015/12/01

To view a WiFi password on OS X for an SSID you have been connected to before (you don’t need to be connected to it now):

  1. Open “Keychain Access” (for instance by first finding it in Spotlight)
  2. Sort on “Kind”, as the WiFi passwords are of kind “AirPort network password”
  3. In the find box, type your WiFi SSID. Note that – unlike Spotlight – it is:
    1. case sensitive
    2. need to match from the start
  4. Double click the matching entry for keychain “iCloud” (preferred) or “System” (needs additional step)
  5. Put a checkmark in front of “Show password”
  6. Depending on the keychain type:
    1. If it was an “iCloud” keychain
      1. then enter your keychain password
    2. If it was a “System” keychain
      1. Enter your system password
      2. Enter a username and password for the “System” keychain
  7. The password is shown

–jeroen

via: osx – How to find wifi password on my mac which is already connected – Ask Different.

Posted in Apple, Mac OS X / OS X / MacOS, OS X 10.10 Yosemite, OS X 10.9 Mavericks, Power User, SpotLight | Leave a Comment »

How To Work with Google Reference List: all Google URLs you will ever need in one handy place – via Denis Labelle

Posted by jpluimers on 2015/11/30

All Google URLs you will ever need in one handy place: How To Work with Google Reference List I. by Dennis Labelle.

–jeroen

Posted in G+: GooglePlus, GMail, Google, Google Analytics, Google Apps, GoogleAuthenticator, GoogleBookmarks, GoogleCalendar, GoogleContacts, GoogleDocs, GoogleDrive, GoogleFlights, GoogleGroups, GoogleHangouts, GoogleMaps, GoogleReader, GoogleSearch, GoogleTranslate, GoogleVoice, Hangouts, Power User, SocialMedia | Leave a Comment »