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 December, 2021

CAT5/CAT6/CAT7 stuff from LogiLink :: Product Category Adapters, Connectors & Accessories|24.04.2020

Posted by jpluimers on 2021/12/31

Just in case I need more network cabling related hardware: [WayBack] LogiLink :: Product Category Adapters, Connectors & Accessories|24.04.2020.

I already used MP0010, MP00003, MP00008, AA0039W, and LPS231.

Here is a longer list of their products:

  Home>Products>Passive Network Components>Adapters, Connectors & Accessories
AC113 – Mounting Set M6, metal, black, 20pcs
AC116 – Mounting Set M6, metal, black, 50pcs
CG0M12B – Cable gland M12, set with 10pcs., IP68, black
CG0M12G – Cable gland M12, set with 10pcs., IP68, light grey
CG0M16B – Cable gland M16, set with 10pcs., IP68, black
CG0M16G – Cable gland M16, set with 10pcs., IP68, light grey
CG0M20B – Cable gland M20, set with 10pcs., IP68, black
CG0M20G – Cable gland M20, set with 10pcs., IP68, light grey
CG0M25B – Cable gland M25, set with 10pcs., IP68, black
CG0M25G – Cable gland M25, set with 10pcs., IP68, light grey
MP0002 – Modular Plug CAT5e unshielded 100 pcs
MP0003 – Modular Plug CAT5e shielded 100 pcs
MP0004 – Modular Plug CAT5 shielded with insert 100 pcs
MP0005 – Strain Relief Hoods for Modular Plugs 100 pcs grey
MP0006 – Strain Relief Hoods for Modular Plugs 100 pcs black
MP0007 – Strain Relief Hoods for Modular Plugs 100 pcs green
MP0008 – Strain Relief Hoods for Modular Plugs 100 pcs blue
MP0009 – Strain Relief Hoods for Modular Plugs 100 pcs yellow
MP0010 – Strain Relief Hoods for Modular Plugs 100 pcs red
MP0011 – Modular Plug CAT5e with Strain Relief Hood grey 100 pcs
MP0012 – Modular Plug CAT5e with Strain Relief Hood black 100 pcs
MP0013 – Modular Plug CAT5e with Strain Relief Hood green 100 pcs
MP0014 – Modular Plug CAT5e with Strain Relief Hood blue 100 pcs
MP0015 – Modular Plug CAT5e with Strain Relief Hood yellow 100 pcs
MP0016 – Modular Plug CAT5e with Strain Relief Hood red 100 pcs
MP0021 – Plug Connector Cat.6 RJ45 100pcs. set, shielded, grey
MP0022 – Plug Connector Cat.6 RJ45 100pcs. set, shielded, black
MP0022O – Plug Connector Cat.6 RJ45 100pcs. set, shielded, orange
MP0022P – Plug Connector Cat.6 RJ45 100pcs. set, shielded, violet
MP0022W – Plug Connector Cat.6 RJ45 100pcs. set, shielded, white
MP0022Y – Plug Connector Cat.6 RJ45 100pcs. set, shielded, yellow
MP0023 – Plug Connector Cat.6 RJ45 100pcs. set, unshielded, grey
MP0024 – Plug Connector Cat.6 RJ45 100pcs. set, unshielded, black
MP0025 – UTP Cat.6 Modular Plug Toolless type
MP0026 – Modular Plug Cat.5e UTP RJ45, toolless
MP0027 – Modular plug connector Cat.6 UTP RJ45 50ps – open front
MP0030 – Modular Plug Cat.6A RJ45 for Cat7,Cat.6A, Cat.6 cable, 10pcs. set, shielded
MP0033 – Modular Plug Cat.6A RJ45 for Cat7,Cat.6A, Cat.6 cable, 50pcs. set, shielded
MP0034 – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs
MP0035 – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs
MP0035B – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, blue
MP0035G – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, green
MP0035O – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, orange
MP0035R – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, red
MP0035W – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, white
MP0035Y – Strain Relief Boot 8.0 mm for Cat.6 RJ45 plugs, yellow
MP0039 – Modular T coupler Cat.5e 3 port RJ45 female, 1:1, UTP, white
MP0040 – Cat.6A field assembly RJ45 plug
MP0041 – Field Assembly Cable Connector Cat.6A 10GE, fully shielded, metal
MP0042 – RJ45 port blocker (1x key, 10x locks)
MP0043 – RJ45 port blocker (10x locks)
MP0044 – Field Assembly RJ45 Plug Cat.6A 10GE, fully shielded, EconLine
MP0045 – Field Assembly RJ45 Plug Cat.6A 10GE, unshielded, EconLine
MP0046 – Field assembly Cat.6A cable connector, slim type
MP0049 – DIN-Rail mounting brackets, stainless steel, 2pcs.
MP0050 – RJ45 male to 8 pin screw terminal adapter
MP0051 – DIN-Rail adapter for 1x RJ45 Keystone modules, metal
MP0052 – DIN-Rail adapter for 2x RJ45 Keystone module, metal
MP0053 – DIN-rail adapter for RJ45 keystone jack, 1-port, plastic
MP0060 – RJ45 Socket protector and dust cover, 100 pcs., black
MP0063 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, grey
MP0064 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, black
MP0065 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, green
MP0066 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, blue
MP0067 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, yellow
MP0068 – Strain relief boot 6.5 mm for RJ45 plugs, 50 pcs, red
MP0070 – Modular plug Cat.6A STP RJ45 50pcs., for solid and stranded wire
MP0071 – Modular plug Cat.6A UTP RJ45 50pcs., for solid and stranded wire
MP0080 – Cat.8.1 field assembly RJ45 plug, EconLine
MP0080 – Cat.8.1 field assembly RJ45 plug, EconLine
MP0081 – CAT.8.1 Field Termination RJ45 Plug, PrimeLine
NK4000 – Keystone Jack RJ45 EconLine Cat.6A, 10 Gbps, shielded, STP 180°, tool free
NP0012A – Cat.6 Connection Box for shielded and unshielded installation cables
NP0012B – Connection Box for shielded and unshielded installation cables
NP0025 – Inline Coupler 1:1 Cat.6A 10GE RJ45 STP, metal housing, ultra slim
NP0026 – Inline Coupler 1:1 Cat.6A RJ45 STP, metal housing
NP0029 – Cat5E Modular Coupling 8P8C 1:1
NP0030 – Cat5E Modular Coupling 8P8C Crossover
NP0031 – Modular coupling for network cables
NP0034A – Inline Coupler 1:1 Cat.6 RJ45 UTP, black
NP0042 – T-Adapter RJ45 plug->2 x RJ45 jack 1:1 port doppler
NP0043 – T-Adapter RJ45 plug->2 x RJ45 jack 10/100BaseT – ISDN
NP0044 – T-Adapter RJ45 plug->2 x RJ45 jack 2 x 10/100BaseT
NP0045 – T-Adapter RJ45 plug->2 x RJ45 jack 2 x ISDN
NP0054 – Inline Coupler 1:1 Cat.6 RJ45 STP, metal housing
NP0080 – Outdoor patch cable connector RJ45 female/female, IP67 waterproof
NP0098 – RJ45 coupler with mounting flange, 2 x RJ45 socket, Cat.5e
NP0099 – Ultra-slim RJ45 window feedthrough, 0.3 m, RJ45 F/F
NZ0001 – Patch cord color coding clips, 100 pcs
WP0006 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 6U, retrofitting
WP0009 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 9U, retrofitting
WP0012 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 12U, retrofitting
WP0015 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 15U, retrofitting
WP0018 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 18U, retrofitting
WP0021 – 19″ Mounting Rail for Canovate Wall Mounted Racks, 21U, retrofitting

–jeroen

Posted in Ethernet, Network-and-equipment, PoE - Power over Ethernet, Power User | Leave a Comment »

Upgrading drawio throug brew functions slightly different than one expects

Posted by jpluimers on 2021/12/31

TL;DR

This fails:

brew update drawio
brew upgrade drawio

This works:

brew cask upgrade drawio

Read the rest of this entry »

Posted in Apple, Cloud Apps, draw.io, Home brew / homebrew, Internet, Power User | Leave a Comment »

Tarieven 2022 | Consument | Liander

Posted by jpluimers on 2021/12/31

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Winbox configuration files

Posted by jpluimers on 2021/12/31

A few notes:

  • WinBox configuration files are under %APPDATA%\Mikrotik\Winbox
    • The subdirectory sessions contains binary *.viw files that seem to represent “view” configurations (the positions, dimensions and other properties of the open Windows in a Winbox session) where the * of the name seems to be an IPv4 address of a machine.
    • Directories named like 6.40.3-2932358209 and 6.43.13-695307561 contain configuration files that seem to determine what WinBox features a certain RouterOS version should reveal; files in those directories seem to always be these:
      • advtool.crc / advtool.jg
      • dhcp.crc / dhcp.jg
      • hotspot.crc / hotspot.jg
      • icons.crc / icons.png
      • mpls.crc / mpls.jg
      • ppp.crc / ppp.jg
      • roteros.crc / roteros.jg
      • roting4.crc / roting4.jg
      • secure.crc / secure.jg
      • wlan6.crc / wlan6.jg
    • There are binary files Addresses.cdb and settings.cfg.viw
    • A text file named sessionpath contains the expanded path %APPDATA%\Mikrotik\Winbox\sessions

The *.crc files contain a CRC code, presumably on the contents of the correspoding *.jg file. The *.jg files seem to contain some kind of JSON.

Some links I found:

–jeroen

Posted in Development, Internet, MikroTik, Power User, RouterOS, routers, Scripting, Software Development | Leave a Comment »

Leerlingen zelf een toets laten maken die ze zelf kunnen nakijken (door Martijn Leisink)

Posted by jpluimers on 2021/12/30

[Archive.is] Martijn Leisink on Twitter: “Soms wil je leerlingen een zelftoets laten maken. Je wil dat ze die zelf na kunnen kijken, maar tegelijkertijd wil je juist niet dat ze meteen de antwoorden op kunnen zoeken. Dat lijkt tegenstrijdig, maar er is een manier! (Ter inspiratie voor andere bèta-docenten.)… “

Thread: [Wayback] Thread by @mleisink on Thread Reader App – Thread Reader App

Truc: [Archive.is] Harry de Jonge on Twitter: “In eerste instantie 8 van de 9 goed. Uit de formule volgt dat ‘t te behalen totaal aantal punten n x 360 – 90 moet zijn, met behulp daarvan bepaald dat ik vraag 8 fout had. Ergens 2 of 4 van aftrekken is nog lastig😀 Natuurkunde is toegepaste wiskunde.… “

Zelf maken: [Archive.is] http://zelftoets.wiskunstelaar.nl/

Maak een aantal vragen met telkens drie antwoordopties.
Zet de getallen in de tabel hierboven voor de antwoorden.
Een leerling kan met het volgende recept controleren hoeveel antwoorden hij goed heeft:

  1. Tel de getallen voor het antwoord van jouw keus bij elkaar op.
  2. Vermenigvuldig het resultaat met 10.
  3. Druk op de knop sinus en vervolgens op de inverse cosinus.
  4. Deel de uitkomst door 20 en je weet hoeveel vragen je goed hebt beantwoord.

Leerlingen kunnen dus wel achterhalen hoeveel antwoorden ze goed hebben, maar niet welke antwoorden goed zijn.
Let er overigens op dat de rekenmachine op graden moet staan en niet op radialen!

–jeroen

Posted in Learning/Teaching, LifeHacker, Power User | Leave a Comment »

Productivity tips by Florian Haas and David Moreau-Simard: the mottos you work by

Posted by jpluimers on 2021/12/30

My own motto: learn new things every day.

Florian:

[Archive.is] Florian Haas 🇪🇺 on Twitter: “Docs or it didn’t happen.… “

David:

[Archive.is] ☁David Moreau-Simard on Twitter: “Hey software and system folks, I’m curious: what are some of the mottos you work by ? I’ll start:

Via Florian’s pinned Twitter post I found while writing media.ccc.de – No, we won’t have a video call for that! (Communications in distributed teams by Florian Haas).

–jeroen

Posted in Development, DevOps, Software Development | 1 Comment »

windows 7 – How can I eject a CD via the cmd? – Super User

Posted by jpluimers on 2021/12/30

Quite a while ago I found [Wayback] windows 7 – How can I eject a CD via the cmd? – Super User, but forgot to document that in the batch-files I created from it.

It shows both this one-liner:

powershell "(new-object -COM Shell.Application).NameSpace(17).ParseName('D:').InvokeVerb('Eject')"

The hardcoded const 17 is for the ssfDRIVES element in the ShellSpecialFolderConstants, which is documented at [Wayback] ShellSpecialFolderConstants (shldisp.h) – Win32 apps | Microsoft Docs.

There is no PowerShell equivalent of that element, hence the hardcoded value 17.

The script invokes the verb Eject, which works on any kind of removable media (not just optical drives). If you want to limit it to only certain drive types, then you would need to compare the Type of the ParseName() result. However, that result has a Type property returns a string for which the possible values are not documented.

Here are some links I tried to find out what is returned:

In addition to the Shell.Application, there also is Scripting.FileSystemObject, which allows enumerating the drives and filter on DriveType. This is the relevant documentation:

The second example in the above mentioned answer shows how to use this to filter for optical drives.

It also shows a cool technique to have a hybrid batch-file/JScript script:

@if (@CodeSection == @Batch) @then

@echo off
setlocal

cscript /nologo /e:JScript "%~f0"

goto :EOF

@end // end batch / begin JScript hybrid chimera

// DriveType=4 means CD drive for a WScript FSO object.
// See http://msdn.microsoft.com/en-us/library/ys4ctaz0%28v=vs.84%29.aspx

// NameSpace(17) = ssfDRIVES, or My Computer.
// See http://msdn.microsoft.com/en-us/library/windows/desktop/bb774096%28v=vs.85%29.aspx

var oSH = new ActiveXObject('Shell.Application'),
    FSO = new ActiveXObject('Scripting.FileSystemObject'),
    CDdriveType = 4,
    ssfDRIVES = 17,
    drives = new Enumerator(FSO.Drives);

while (!drives.atEnd()) {
    var x = drives.item();
    if (x.DriveType == CDdriveType) {
        oSH.NameSpace(ssfDRIVES).ParseName(x.DriveLetter + ':').InvokeVerb('Eject');
        while (x.IsReady)
            WSH.Sleep(50);
    }
    drives.moveNext();
}

–jeroen

Posted in Batch-Files, Development, JScript, PowerShell, Scripting, Software Development | Leave a Comment »

Some notes on ESXi `smartinfo` throwing `error Cannot open device`

Posted by jpluimers on 2021/12/29

I wrote about the built-in smartinfo command before at NVMe and SATA health data on ESXi: some links to investigate.

It is at /usr/lib/vmware/vm-support/bin/smartinfo, which is not in the path. I used it recently after having trouble with some 2.5-inch SSD devices, of one which is listed below.

Some note on this error what smartinfo from ESXi throwed on some devices over time on various ESXi machines:

Failed to get SMART stats for t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ error Cannot open device 
----------------------------------------------------- 

The same SSD sometimes had very big latency times:

2021-05-01T16:23:20.306Z cpu7:2097783)WARNING: ScsiDeviceIO: 1564: Device t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ performance has deteriorated. I/O latency increased from average value of 59147
2021-05-01T16:23:20.306Z cpu7:2097783)WARNING: microseconds to 1274466 microseconds.
2021-05-01T16:23:20.306Z cpu7:2097783)WARNING: ScsiDeviceIO: 1564: Device t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ performance has deteriorated. I/O latency increased from average value of 59150
2021-05-01T16:23:20.306Z cpu7:2097783)WARNING: microseconds to 2664445 microseconds.
2021-05-01T16:23:20.847Z cpu7:2097190)ScsiDeviceIO: 1530: Device t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ performance has improved. I/O latency reduced from 2664445 microseconds to 526814 microseconds.
2021-05-01T16:23:38.477Z cpu5:2097783)ScsiDeviceIO: 1530: Device t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ performance has improved. I/O latency reduced from 526814 microseconds to 116553 microseconds.
2021-05-01T16:24:01.380Z cpu9:2097674)NMP: nmp_ResetDeviceLogThrottling:3586: last error status from device t10.ATA_____Samsung_SSD_860_EVO_500GB_______________S3Z2NB0M529545P_____ repeated 1 times

[Wayback] “smartinfo” “error Cannot open device” – Google Search delivered mainly results around the old smartinfo.sh tool that is now replaced by the smartinfo binary:

[Wayback] “ESXi” “smart” “error Cannot open device” – Google Search returned no relevant results.

I think an 860 EVO 2.5-inch SSD is not on par running half a dozen Windows VM’s that have regular write actions, but I will later give this a try, though I doubt it will help as this is on a VMware 6.7 update 3 based system which should not have the vmw_ahci driver slowness:

[Wayback] NVMe SSD Fast, but SATA SSD slow ! – VMware Technology Network VMTN (hyphen fixes mine):

I have done the esxcli system module set --enabled=false --module=vmw_ahci and rebooted, and I got a small performance increase.  But still not what I thought.

It refers these other posts:

The system with this behaviour is on these versions:

# esxcli software vib list | grep ahci
sata-ahci                      3.0-26vmw.670.0.0.8169922             VMW     VMwareCertified   2021-04-03
vmw-ahci                       2.0.7-2vmw.670.3.143.17700523         VMW     VMwareCertified   2021-04-04

–jeroen

Posted in ESXi6, ESXi6.5, ESXi6.7, ESXi7, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

media.ccc.de – No, we won’t have a video call for that! (Communications in distributed teams by Florian Haas)

Posted by jpluimers on 2021/12/29

Not just for during the Covid times: the helpful examples and thorough explanation by Florian makes this a must-watch video for anyone wanting to participate in distributed teams.

[Wayback] media.ccc.de – No, we won’t have a video call for that!

The above link has downloads for both Video (mp4 and WebM formats) and audio (mp3 and opus formats). I found the video easier to digest.

If you want to watch it on-line, there is the YouTube video (below the signature) which has closed captions as well.

Kristian Köhntopp made a [Wayback/Archive.is] short intro and abstract on Twitter:

https://xahteiwi.eu/resources/presentations/no-we-wont-have-a-video-call-for-that/

Exactly one year ago, the office building I was working from every work day caught fire, and was closed for a month for renovation.

On the day of the planned reopening, my employer declared Covid emergency and asked everybody to work from home.

So that is how we work since then, and we will continue to do so until at least October.

Not too much has changed, though. When the new https://oosterdokseiland.nl/en/ opens, there will be probably a lot of pain between the people who go to the office to work and those who don’t.

The talk above by @xahteiwi explains in a nice way how to work properly remote first:

  • Writing over speaking.
  • Asynchronous over synchronous.
  • Structured communication over free form.

Some things require a free form video chat, but even then, set an agenda and write minutes.

Florian also explains when to use what, and what situations would require a synchronous wide-band channel, but most of them are exceptional, and most of the time you could execute better using structured, written, async mode comms.

Having said that, if you want his talk as a briefing, here is a Youtube: https://www.youtube.com/watch?v=NVnci3tyDa4

First watch the video, then read the full speaker notes at [Wayback] No, We Won’t Have a Video Call for That! – xahteiwi.eu “My talk from FrOSCon 2020, Cloud Edition.”

More on-line:

–jeroen

Read the rest of this entry »

Posted in Agile, Conference Topics, Conferences, Development, Event, LifeHacker, Power User, Software Development | 1 Comment »

Chrome: allow some URLs to “never sleep” (or hibernate/discard)

Posted by jpluimers on 2021/12/29

This option in Chrome has moved around a bit, so here is how it was in Version 89.0.4389.90 (Official Build) (64-bit) when I documented it.

  1. Browse to chrome://discards/
  2. Don’t be intimidated by the many rows and columns; only the rightmost 8 (at the time of writing) are interesting:

  3. Search for the URL (in my chase https://web.whatsapp.com/ , so I searched for whatsapp which you see as orange in the screenshots below) for which you want to ensure it will never sleep/hibernate (Chrome calls this “discardable”)

  4. Click Toggle under the checkmark ✔ so it changes into a cross ✘️ (so the URL will never be discarded, hence always stays awake)

Do this only for tabs that are not CPU/memory/traffic intensive

I got there via these posts:

When searching for discards, I found this post: [Wayback] How to Prevent Chrome from Reloading Tabs When You Switch to Them

Chrome has built-in memory management that causes inactive tabs to “sleep” as RAM is filled. When you click the tab again, it has to reload the page. It’s annoying.

–jeroen

Posted in Chrome, Development, Google, Power User, SocialMedia, Software Development, Web Development, WhatsApp | Leave a Comment »