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

Author Archive

Beyond Compare 4.1.7.21529 – AUGUST 19, 2016

Posted by jpluimers on 2016/08/22

via Download Beyond Compare I found out about this new update:

4.1.7.21529 – AUGUST 19, 2016

Notable Changes

  • Text Merge output files will now be written using file format external conversion settings.
  • Various fixes and improvements.

Archives

  • Upgraded 7-zip libraries to 16.02 to fix code execution vulnerability in UDF (.img, .iso) decoder (CVE-2016-2334 and CVE-2016-2335).
  • Windows: Added support for PKZip v1 legacy compression algorithms (Implode, Reduce, Shrink).

Cloud Services

  • Fixed support for Unicode paths and filenames on SharePoint WebDAV servers.
  • Fixed support for connecting to Amazon S3 buckets in the eu-west-1 region that were created in 2013 and earlier.
  • Fixed resource leak when uploading/downloading from Microsoft OneDrive.
  • Windows: “Open With” for WebDAV profiles now passes http:// URLs to the requested application instead of BC-specific profile: ones.
  • Improved error message if an S3 bucket is stored in an unrecognized AWS region.
  • Fixed loading WebDAV folder listings that include empty getcontentlength entries.

Command Line

  • Fixed /fileviewer= switch to use fixed English phrases instead of translated strings.

File Formats

  • OS X/Linux: Fixed importing file formats with external helper executables.
  • Fixed loading .docx files that have been modified using MiniZip.

File Views

  • “Save File Using Profile” now handles “Editing disabled” just like “Save File on File System As” does.
  • Changed button caption in “Save Changes?” confirmation dialog from “Save None” to “Discard All”.

Installer

  • .msi packages now use SHA-256 code signing signatures instead of SHA-1 ones.

Misc

  • Fixed support for scrolling using laptops/tablets with precision touchpads (.e.g, Surface Pro).
  • OS X: Fixed support for Beyond Compare “Services” menu extensions in apps other than Finder.
  • Added Japanese as an official language.
  • Time limited license keys now show a warning on the Home view when close to the expiration, and show the expiration date in the About dialog.

Options

  • Improved appearance of Options dialog and Home view for themes with dark backgrounds.

Reports

  • Fixed Picture Compare Report to use printer DPI instead of screen DPI.
  • Fixed Picture Compare Report handling of empty comparison.
  • Fixed plain text output of right justified text.
  • Fixed plain text output handling of gap lines.
  • Fixed Table Compare plain text output of interleaved headers.

Table Compare

  • Fixed performance regression introduced in 4.1.4.

Text Views

  • Windows: Fixed displaying emoji characters when “Enable font linking in editors” is enabled.
  • Linux: Fixed slow performance when long lines are visible.

Text Merge

  • Output files will now be written using file format external conversion settings.

Crashes

  • Windows: Fixed crash when opening a file on 64-bit Windows.
  • Windows: Fixed crash when opening Options dialog to Tweaks panel while DisableCheckForUpdates registry tweak is active.

–jeroen

Posted in Beyond Compare, Power User | Leave a Comment »

Some notes on apcupsd, a SUA3000XLI and a SUA48XLBP battery pack

Posted by jpluimers on 2016/08/22

I’ve had a SUA3000XLI for years using the USB cable and default Windows support as PowerChute Personal Edition would fail to recognise it and abort installation (so I could not use APC drivers as described on youtube).

A while ago, Liander – the energy distribution company – wanted to replace both the gas and electricity meters to become “smart” during day time. The server configuration load was heavy enough for Windows to indicate the UPS would last about 30 minutes. At night that’s not much of a problem but during 1 hour replacement day-time it would be a problem.

So I bought a SUA48XLBP battery pack (and a SUA039 cable as the cable wasn’t long enough to keep an inch or so air space between UPS and battery pack) so the battery would last about 3 times as long.

Windows would still show it would last about 30 minutes. Strange. So I started looking around and it appeared the SUA3000XLI needed calibration which requires PowerChute. Since PowerChute won’t work, I was almost back at square 1. Almost, as I know knew it required calibration.

In the past I had come across apcupcd but that was a long time ago when it supported a limited set of operating systems and a limited set of features so I never installed it.

But when searching how to calibrate the without using PowerChute, it quickly appeared that the apctest part of apcupsd can do just that: soft calibrate the UPS/battery combo. There are some steps and prerequisites (the most important ones are to turn off the apcupsd and provide enough load and 100% battery charge at start).

Spoiler: the combined UPS/battery-pack now lasts for almost 2 hours which is long enough.

Installing apcupsd

I’m describing this from a Windows perspective and it’s dead easy:

  1. download the latest release
  2. run the installer
  3. allow the driver to be installed
    1. indicate it’s OK to install an unsigned driver
    2. now Windows won’t recognise the UPS any more, but in a few steps the apcupsd and helper program will
  4. update the configuration file (no changes needed when it’s a USB connected one)
  5. wait for the service to start
  6. wait for the apctray helper program to start
  7. look in the “system tray” for apctray helper program icon 
  8. optionally configure your system to auto-start apctray after logon

The USB connection to the UPS delivers slightly less options than using a serial cable

Using a serial cable instead of a USB one

Read the rest of this entry »

Posted in APC Smart-UPS, apcupsd, ESXi5, ESXi5.1, ESXi5.5, ESXi6, Liander, Power User, UPS, Virtualization, VMware, VMware ESXi, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2003, Windows Server 2003 R2, Windows XP | 1 Comment »

ThinkPad ‘Ultra Classic’ 780ZXL+

Posted by jpluimers on 2016/08/22

LOL: ThinkPad ‘Ultra Classic’ 780ZXL+ BZ4hQZi.png (1920×1080).

I lost my interest in ThinkPads long ago a while after Lenovo took over. But I could not resist posting this picture (:

–jeroen

via Peter VonesThinkpadders Rejoice (LARGE PICS) – Page 10.

Posted in Fun | Leave a Comment »

“Mühle” (Nine Men’s Morris) game – via Google Photos

Posted by jpluimers on 2016/08/19

I found this stone game on the bank of the Ahr river somewhere behind the Ruland hotel in Altenahr around 50°30’58.8″N, 6°59’27.9″E.

Since I didn’t know what it was, I asked my G+ friends “:Anybody who knows what kind of game this is?” and got quick answers:

The game is thousands of years old and this stone will last for quite a while…

--jeroen

Read the rest of this entry »

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

Olive – Juniper Clue

Posted by jpluimers on 2016/08/19

The original http://juniper.cluepon.net/index.php/Olive is gone, but the WayBack machine sitll has it: Olive – Juniper Clue

It describes how to install JUNOS on x86/x64 (or emulated) hardware.

–jeroen

via: Can I learn Juniper? : networking

Read the rest of this entry »

Posted in Internet, Juniper, Olive - JUNOS, Power User, routers | Leave a Comment »

Just in case you need to change the settings: A privacy reminder from Google

Posted by jpluimers on 2016/08/19

Google Privacy settings van be changed from A privacy reminder from Google.

Posted in Google, Power User | Leave a Comment »

If you need to know underlying information on Delphi versions

Posted by jpluimers on 2016/08/18

Since I’m not that fast at updating List-Delphi-Installed-Packages.ps1 [WayBack] (which I should rename into something containing the word Version in it), here are some useful links to stay up-to-date:

–jeroen

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

.NET/C#: two ways of creating an empty array

Posted by jpluimers on 2016/08/18

Empty arrays are not used often as arrays usually are about the presence data, not about the absence.

Here are two ways based on the int data type in C# (the original [WayBackexamples [WayBack] are using string, but since string itself is also a kind of array…):

Specify a size of zero:

int[] a = new int[0];

Specify an empty initialisation:

int[] a = new int[] { };

Though many people think arrays are a thing of the past, I think it is one of the first generic types and have their place. For one, enumerating over arrays using foreach is a lot faster in many environments than enumerating over other data types. Another thing is that the fixed nature of arrays can be very beneficial in setting constraints.

That’s why I like the balanced view from Eric Lippert [WayBack] in Arrays considered somewhat harmful – Fabulous Adventures In Coding – Site Home – MSDN Blogs [WayBack]

–jeroen

via:

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »

Glitch in `brew update` – just run it again when you see `Error: update-report should not be called directly!`

Posted by jpluimers on 2016/08/17

If you see the error below when running brew update, then you bumped in a small brew glitch [WayBack]. The solution is usually to just run brew update again [WayBack] (thanks Ashley Willis [WayBack]) and it will likely run fine:

$ brew update
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
/usr/local/Library/brew.sh: line 32: /usr/local/Library/ENV/scm/git: No such file or directory
Error: update-report should not be called directly!

–jeroen

via:

Posted in Apple, Home brew / homebrew, Power User | Leave a Comment »

Some interesting encoding/Unicode/text articles on kunststube and links for test files of various encodings

Posted by jpluimers on 2016/08/17

After yesterdays post on Testing and static methods don’t go well together, I read around on Source (kunststube [WayBack]) a bit more and found these very nice articles on encoding,Unicode and text:

Related on those, some other nice readings:

–jeroen

Posted in Ansi, ASCII, CP437/OEM 437/PC-8, Development, EBCDIC, Encoding, ISO-8859, ISO8859, Shift JIS, Software Development, Unicode, UTF-16, UTF-8, UTF16, UTF8, Windows-1252 | Leave a Comment »