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

Archive for September, 2016

SysInternals sdelete: zero wipe free space is called -z instead of -c

Posted by jpluimers on 2016/09/20

In the 2009 past, sdelete used the -c parameter to zero wipe clean a hard drive and -z would clean it with a random pattern.

That has changed. Somewhere along the lines, -c and -z has swapped meaning which I didn’t notice.

This resulted in many of my virtual machines image backups were a lot larger than they needed to be.

The reason is that now:

  • -c does a clean free space with a random DoD conformant pattern (which does not compress well)
  • -z writes zeros in the free space

Incidently, -c is a lot slower than -z as well.

TL;DR: use this command

sdelete -z C:

Where C: is the drive to zero clean the free space.

–jeroen

Posted in Batch-Files, Development, Fusion, Hyper-V, Power User, Proxmox, Scripting, sdelete, Software Development, SysInternals, View, VirtualBox, Virtualization, VMware, VMware ESXi, VMware Workstation, Windows | Leave a Comment »

Batch files to show the User/System environment variables stored in registry – via: Stack Overflow

Posted by jpluimers on 2016/09/20

I wrote two tiny batch files that would dump the environment variables from the registry.

Various reasons:

  1. Environment variables can be stored in two contexts: System and User (SET will show them all at once and for instance combine PATH up to 1920 characters).
  2. Environment variables can be set to auto-expand or not, which you cannot see from a SET command (REG_EXPAND_SZ versus REG_SZ).

show-user-environment-variables.bat:

reg query "HKCU\Environment"

show-system-environment-variables.bat:

reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"

Filtered results:

Read the rest of this entry »

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows NT, Windows Server 2000, 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 | Leave a Comment »

OpenSSH/Logging and Troubleshooting – 

Posted by jpluimers on 2016/09/19

For my own link history: Debugging a server configuration

Source: OpenSSH/Logging and Troubleshooting – Wikibooks, open books for an open world

Posted in Communications Development, Development, Internet protocol suite, SSH, TCP | Leave a Comment »

PSA: Manually Assign Any Coordinates As Your Home Or Work Address In Google Maps And Google Now

Posted by jpluimers on 2016/09/19

A solution for:

The problem with Google Now’s predictions though is that sometimes they can be inaccurate from the start or take a little longer to adapt to change. Moved your home? Switched jobs? Went for a month or two to a vacation house? Google Now might stubbornly want to keep your old addresses.

Source: PSA: Manually Assign Any Coordinates As Your Home Or Work Address In Google Maps And Google Now

–jeroen

Posted in Google, GoogleMaps, GoogleNow, Power User | Leave a Comment »

Very Small – Slim Leather Wallets by Bellroy

Posted by jpluimers on 2016/09/19

Interesting as foldable bills and around 12 plastic cars plus a few coins fit in: Very Small – Slim Leather Wallets by Bellroy.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

What every Browser knows about you

Posted by jpluimers on 2016/09/19

See all the data your browser reveals about you by visting a website.

Source: What every Browser knows about you

Posted in Chrome, Firefox, Internet Explorer, Opera, Power User, Safari, Web Browsers | Leave a Comment »

Why the Apple II ProDOS 2.4 Release is the OS News of the Year « ASCII by Jason Scott

Posted by jpluimers on 2016/09/18

http://ascii.textfiles.com/archives/5054

Posted in Uncategorized | Leave a Comment »

 Becker Mexico Cassette AUX input Upgrade by Ken Tyler for W116 : Mercedes-Benz S-Class – 280S, 280SE, 280SEL, 300SD, 350SE, 350SEL, 450SE, 450SEL & 450SEL 6.9

Posted by jpluimers on 2016/09/16

A modification to fit a 3.5 mm stereo socket to the front face of a Becker Mexico Cassette to allow use of mp3 players and the like but still retaining AM/FM radio and cassette functions.

Source: W116 : Mercedes-Benz S-Class – 280S, 280SE, 280SEL, 300SD, 350SE, 350SEL, 450SE, 450SEL & 450SEL 6.9

Interesting…

We’ve such a receiver in our classic car (see 1970 Becker Mexico AM-FM Cassette Car Radio showing operation & sound – YouTube « The Wiert Corner – irregular stream of stuff).

It would be a great way to add AUX to it, but I’d rather not modify the front-panel. Since the 450SEL69 has plenty of room, I will try to see if the above instructions can make the cable external so the AUX connector will be either near the arm rest or the glove compartment.

–jeroen

 

Posted in cars, LifeHacker, Power User, W116 | 2 Comments »

VMware KB: Configuring Network Time Protocol (NTP) on ESX/ESXi hosts using the vSphere Client

Posted by jpluimers on 2016/09/16

Often it is better to configure more than just a single pool.ntp.org server in case the IP-address of the name gets cached too long and it becomes unresponsive during that period.

So it is better to configure multiple, choose from this list from [WayBackpool.ntp.org: How do I setup NTP to use the pool?.

0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org
3.pool.ntp.org

Here are the steps for one server where you need to repeat the steps after entering pool.ntp.org:

To configure NTP on ESX/ESXi 4.1 and ESXi 5.x hosts using the vSphere Client:

  1. Connect to the ESX/ESXi host using the vSphere Client.
  2. Select a host in the inventory.
  3. Click the Configuration tab.
  4. Click Time Configuration.
  5. Click Properties.
  6. Click Options.
  7. Click NTP Settings.
  8. Click Add.
  9. Enter the NTP Server name. For example, pool.ntp.org.
    1. Note: When entering the multiple NTP Server names, use a comma (,) followed by a space ( ) between the entries.
  10. Click OK.
  11. Click the General tab.
  12. Click Start automatically under Startup Policy.
    1. Note: It is recommended to set the time manually prior to starting the service.
  13. Click Start and click OK.
  14. Click OK to exit.

–jeroen

via:

Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

Decompression libraries and tools for many formats

Posted by jpluimers on 2016/09/15

7-zip can uncompress a truckload of formats, but what if you need formats it doesn’t support or you want to integrate decompression in your own software?

Then some libraries can be really useful provided you regularly update them (otherwise you – like Symantec – can run in substantial security risks).

libmspack (license: GNU LGPL, version 2)

Formats supported:

File format Year Algorithm Supported?
COMPRESS.EXE (SZDD) 1990 LZSS Decompression
Microsoft Help (.HLP) 1990 LZSS To-do
COMPRESS.EXE (KWAJ) 1993 LZSS, Huffman, DEFLATE Decompression
Microsoft Cabinet (.CAB) 1995 DEFLATE, Quantum, LZX Decompression
HTML Help (.CHM) 1997 LZX Decompression
Microsoft eBook (.LIT) 2000 LZX, SHA, DES To-do
Windows Imaging Format (.WIM) 2007 LZX, XPRESS To-do
Exchange Offline Address Book (.LZX) 2008 LZX DELTA Decompression

cabextract (license: GNU GPL)

Pre-compiled console wrappers around libmspack for many platforms.

WinRAR archiver, a powerful tool to process RAR and ZIP files

Libraries and pre-compiled console applications for many platforms.

HTML Help (CHM) Index

Background on CHM files.

–jeroen

Via:

Symantec dropped the ball here. A quick look at the decomposer library shipped by Symantec showed that they were using code derived from open source libraries like libmspack and unrarsrc, but hadn’t updated them in at least 7 years.

Source: Project Zero: How to Compromise the Enterprise Endpoint

Posted in 7zip, Compression, Development, Power User, Software Development | Leave a Comment »