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 July, 2020

Eject USB drives / eject command – Unix & Linux Stack Exchange

Posted by jpluimers on 2020/07/20

I always thought than an umount /dev/sdX# for all partitions on /dev/sdX was enough for USB devices to be ejected, but there are three commands that (on most systems) actually power down USB drives (or USB to SD card adapters):

  • udisks --detach /dev/sdX (requires the udisks package which is obsolete)
  • eject /dev/sdX seems not to be enough on some systems; it is part of the util-linux package
  • udisksctl power-off -b /dev/sdX is equivalent to the udisks command; it is part of the udisks2 package.

These will ensure that the disk is not part of the fdisk --list output any more.

The opposite of these is sg_start, which is from the sg3_utils package.

Source: [WayBack] Eject USB drives / eject command – Unix & Linux Stack Exchange

On MacOS, you can use  diskutil eject /Volumes/<LABEL> (source: answer by efesaid on [WayBack] Eject USB drives / eject command – Unix & Linux Stack Exchange)

–jeroen

Posted in *nix, *nix-tools, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »

Colorectal Cancer: Stages | Cancer.Net

Posted by jpluimers on 2020/07/18

For my link archive:

These explain the below stagings.

  • cT3N1Mx:
    • c: stage determined before treatment
    • T3: tumor invades through the muscularis propria into the pericolorectal tissues
    • N1: regional lymph node metastasis suspicious in 1-3 lymph nodes
    • Mx: could not be evaluated for distant metastasis
  •  cT3bN1Mx:
    • c: stage determined before treatment
    • T3b: 1-5 mm extension beyond muscularis propria
    • N1: regional lymph node metastasis suspicious in 1-3 lymph nodes
    • Mx: could not be evaluated for distant metastasis
  •  cT3N1M0:
    • c: stage determined before treatment
    • T3: tumor invades through the muscularis propria into the pericolorectal tissues
    • N1: regional lymph node metastasis suspicious in 1-3 lymph nodes
    • M0: no distant metastasis
  • cT3bN1M0:
    • c: stage determined before treatment
    • T3b: 1-5 mm extension beyond muscularis propria
    • N1: regional lymph node metastasis suspicious in 1-3 lymph nodes
    • M0: no distant metastasis
  • cT3bN1:
    • c: stage determined before treatment
    • T3b: 1-5 mm extension beyond muscularis propria
    • N1: regional lymph node metastasis suspicious in 1-3 lymph nodes
  • ypT2N1a:
    • yp: stage determined after chemotherapy (y) and histopathologic (p), in this case also after surgeries of both tumor and metastases
    • T2: size of tumor
    • N1a: regional lymph node metastasis present in 1 lymph node
    • No M means no metastasis detectable

–jeroen

Posted in About, LifeHacker, Personal, Power User, science | Leave a Comment »

EU-Hof haalt streep door Privacy Shield en blokkeert datatransfers naar VS – IT Pro – Nieuws – Tweakers

Posted by jpluimers on 2020/07/18

For my link archive a good article and nice discussion thread:

Privacy Shield, het data-uitwisselingsverdrag tussen de EU en de VS, is van tafel. Volgens het Hof is het strijdig met de GDPR. De ‘standaard contractuele clausules’ blijven wel bestaan, maar door de surveillance in de VS wordt ook dat instrument voor de datadoorgiften een lastig verhaal.

[WayBack/Archive.is] EU-Hof haalt streep door Privacy Shield en blokkeert datatransfers naar VS – IT Pro – Nieuws – Tweakers

[WayBack/Archive.is] Wie toestemming onder de AVG vraagt, snapt de AVG niet (of heeft een nieuwsbrief) – Ius Mentis

–jeroen

Posted in GDPR/DS-GVO/AVG, Power User, Privacy, Security | Leave a Comment »

linux – ssh_exchange_identification: Connection closed by remote host (not using hosts.deny) – Unix & Linux Stack Exchange

Posted by jpluimers on 2020/07/17

I had this one day connecting to a guest:

debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.71.81 port 22

The cause was indeed a heavily overloaded box that would not respond in time to any actual data sent over network requests, but would accept the initial TCP connection.

Logging on the console also failed, but the memory and CPU usage on the wrapping host was out of the roof.

The only solution was to soft power-cycle the guest.

Very similar to:

You can also have a host who’s memory is so badly fragmented that it can’t allocate a page a contiguous memory to fork the process for hosting an SSH session.

In such a case, you can get either of the messages:

ssh_exchange_identification: read: Connection reset by peer

or:

Connection closed by aaa.bbb.ccc.ddd

depending on how far the host gets before it bails out.

If memory fragmenting is the apparent cause, the solution is to access the server via other means and to restart some of the pertinent services. I have found Apache and MySQL to be the culprit on VM’s since VM’s don’t have a swap partition. Failing that, reboot the host.

Via: [WayBacklinux – ssh_exchange_identification: Connection closed by remote host (not using hosts.deny) – Unix & Linux Stack Exchange

–jeroen

Posted in *nix, *nix-tools, Power User, ssh/sshd | Leave a Comment »

Windows 7 Hosts File Ignored: recreate it and you’re back in business

Posted by jpluimers on 2020/07/17

Wow: I never noticed this before, but thinking back it has happened to me at least a few times years ago: [WayBack] Windows 7 Hosts File Ignored.

The trick is to create a new hosts file as Administrator.

I thought it had to do with proper line endings: Notebad messes those up every now and then. But I was wrong: even with Notepad++ this happens, see [WayBack] I just had to trouble shoot a Windows XP (!) issue where the entries in the hosts file were being ignored. The change that actually worked was: 1. Crea… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in Power User, Windows | Leave a Comment »

openSUSE forums tips

Posted by jpluimers on 2020/07/17

A few tips from posting to the openSUSE forums, learned from banging my head to the wall too often.

  • They are at https://forums.opensuse.org/forum.php
  • The forum software can be very slow at times taking ~tens of seconds for loading a post:
    • loading multiple posts or pages of posts you are interested in multiple tabs speeds up your reading a lot
  • Answers on the post often are along the form “has been answered before” without pointing to the actual link, even if the post is marked with a read icon, for instance in [WayBack] No option to “keep me logged in on this device” with Novell/openSUSE login?
  • Your email is not your username, so do not use it during logon: [WayBack] Lousy log in
  • The search function in the forum is horrible.
  • The forum software is proprietary (vBulletin – Wikipedia) and has a
  • When writing/replying to posts:
    1. Edit your answer off-line, because
      • you will automatically be logged off even if the forum indicates you are still logged on (there is no count down of the activity timer), see
      • when you re-logon, your carefully edited text has been lost from the cache
    2. Never use formatting, either auto-introduced, or introduced while pasting, avoid BB-code
      1. Reasoning
      2. Though the forum supports BB code, NNTP news readers do not, and the added formatting gives quite a mess
      3. Use the text (“Source mode”) version of the editor, by first clicking the left most button: “Source”

        • After this, the third and fourth button get greyed out:
      4. Remove formatting button is the second from the left (in both text and WYSIWIG mode): “Remove format”
      5. If you are in WYSIWIG mode, then always paste using the third button from the left that strips formatting: “Paste as plain text”
      6. NEVER EVER paste with formatting with the fourth button from the left: “Paste from Word”

–jeroen

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »

LOW-TECH MAGAZINE

Posted by jpluimers on 2020/07/16

Below is a cool site that I do not just list because I like the site, but also that they have a solar powered server running a low-tech version of it.

[WayBack] LOW-TECH MAGAZINE

Doubts on progress and technology

It actually started as a Dutch site, is ran by a Belgian now living in Barcelona. This means many articles are available in various languages, not just English and Dutch, but many also in French, German, Spanish, and Italian. Some articles are only available in English or Dutch.

Via: [WayBack] The last c’t Magazin +c’t magazin mentioned lowtechmagazine.com and I have already spent hours reading various articles there … – Thomas Mueller (dummzeuch) – Google+

Here are some more links.

Dutch

English

Read the rest of this entry »

Posted in Development, Hardware Development, LifeHacker, Power User, Solar Power | Leave a Comment »

Li-Ion BMS – Lithium-Ion Battery Management Systems and large battery packs

Posted by jpluimers on 2020/07/16

Just in case I want to really go off-grid: [WayBack] Li-Ion BMS – Lithium-Ion Battery Management Systems and large battery packs

It has a configuration selector module pointing to companies (even one in The Netherlands) that can help me out.

Via [WayBack] DIY Electric Car Forums – View Single Post – using 18650 cells to make 25kwh battery

Hopefully they are based on 18650 batteries:

 

–jeroen

Posted in 18650, Batteries, Hardware, Li-Ion, LifeHacker, Power User | Leave a Comment »

Remote power control your IoT hardware and remote updating boot SD cards

Posted by jpluimers on 2020/07/16

Thomas Rini (of U-Boot and Yocto fame) mentioned these solutions for remote power control of IoT devices and remote updating SD cards in this slide State of the U-Boot – Thomas Rini, Konsulko Group:

Two power solutions I like myself are:

The combination of these allows for really flexible production and testing environments.

Slides at [WayBackELC2017 – State of the U-Boot.pdf

–jeroen

Read the rest of this entry »

Posted in Arduino, Development, ESP8266, ESP8266X, Hardware Development, Hardware Interfacing, IoT Internet of Things, Network-and-equipment, Odroid, Power User, Raspberry Pi | Leave a Comment »

logging facility in Synopse seems to be an interesting alternative to JclDebug. Need to check out how they differ in looking up the method name for tracing.

Posted by jpluimers on 2020/07/15

On my todo list, as Synops is updated more often than JCL: [WayBack] The logging facility in Synopse seems to be an interesting alternative to JclDebug: According to this StackOverflow answer, one of its features is looki… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »