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

List goals/targets in GNU make that contain variables in their definition – Stack Overflow

Posted by jpluimers on 2016/08/24

*nix systems tools often are have write-only maintenance tricks:

alias make-list-target='make -qp | awk -F":" "/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split(\$1,A,/ /);for(i in A)print A[i]}"'

Like usual, I have only a vague idea what the regex expressions do.
–jeroen

via List goals/targets in GNU make that contain variables in their definition – Stack Overflow.

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

When “git mv” on a directory gives you en error starting with “fatal: bad source”

Posted by jpluimers on 2016/08/23

I use “git mv” a lot because somehow it works a lot better than having git automagically find out about renames.

The problem with “git mv” is that the “fatal: bad source” errors are a catch-all for many causes. Just look at the

Searching for “git mv” directory “fatal: bad source” didn’t get me much further. The one link that did get me towards the right track is version control – Getting Git to follow renamed and edited files – Stack Overflow.

What happened was that I had manually deleted and edited some files as part of a mass script (the repository had a lot of files in it that didn’t belong there compile targets and user specific settings or didn’t adhere to the naming conventions) before executing the “git mv”.

Since “git mv” tries to administer all the files that it thinks originally were in the directory, it complains about those files.

Lesson learned: first “git mv” then perform other changes.

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

ORACLE-BASE – DDL With the WAIT Option (DDL_LOCK_TIMEOUT) in Oracle Database 11g Release 1

Posted by jpluimers on 2016/08/23

To work around this error:

ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

ensure your DDL does wait a bit longer than the default of NOWAIT seconds:

alter session set ddl_lock_timeout=30
;
alter table TABLE_NAME
modify constraint CONSTRAINT_NAME enable
;
commit
;

via ORACLE-BASE – DDL With the WAIT Option (DDL_LOCK_TIMEOUT) in Oracle Database 11g Release 1.

Posted in Database Development, Development, OracleDB | Leave a Comment »

co2-adapter.de – Sodastream Zylinder selbst nachfüllen

Posted by jpluimers on 2016/08/22

co2-adapter.de – Sodastream Zylinder selbst nachfüllen – refill sodastream CO2 cartridges from a regular CO2 gas tank.

via:

+Jeroen Wiert Pluimers  just reminded me of something. We do have one of these things. Is this a thing in the Netherlands, and if so, where to get CO2 for… – Kristian Köhntopp – Google+

Posted in LifeHacker, Power User | Leave a Comment »

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 »