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

mail.google.com throwing ERR_CONNECTION_RESET and ERR_FAILED only on MacOS with Chrome (many versions)

Posted by jpluimers on 2021/11/22

This started somewhere towards the end of 2019, and the only solution that consistently is a full reboot.

Chrome (many versions) on MacOS High Sierra sometimes throws these errors only on https://mail.google.com:

Failing solutions:

  • close and open new tab
  • kill and restart chrome

Searches tried, but no results yet:

This was not the cause: [WayBack] 913220 – Broken Gmail sign in with Chrome 71 and “Block third-party cookies” enabled – chromium – An open-source project to help move the web forward. – Monorail

–jeroen

Posted in Apple, Mac OS X / OS X / MacOS, Power User | Leave a Comment »

Thread by @SNeurotypicals: Neurotypical social skills develop very early on. They are making friends at 5 and negotiating complex diplomatic scenarios at 10…

Posted by jpluimers on 2021/11/19

Interesting observation [WayBack] Thread by @SNeurotypicals:

Neurotypical social skills develop very early on. They are making friends at 5 and negotiating complex diplomatic scenarios at 10. This can cause NT parents to despair that their kids are behind, and have stopped developing at 8 or 10 or 18 or 25. But we haven’t. 
For many NDs, social skills development just takes longer. Lacking the innate instincts of neurotypicals, we have to build our frameworks using experience and the scientific method. It takes sophisticated skills and higher order thinking. I hit my stride in my late 20s. 

and [WayBack] later on (on neurotypicals versus neurodivergents:

it’s the double empathy problem. They don’t understand us or themselves, we don’t understand them or ourselves (to begin with), but the onus is on us to fix it so we end up having to figure out both sides. It’s an achievement that we make any headway at all.

Related:

–jeroen

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

Effectiviteit van COVID-19 vaccinatie tegen ziekenhuis- en intensive-care-opname in Nederland (stand eind oktober 2021)

Posted by jpluimers on 2021/11/19

I wanted to know how well protected in the Dutch context my vaccination against Covid-19 with the Oxford–AstraZeneca COVID-19 vaccine was, so I asked [Archive] Jeroen Wiert Pluimers on Twitter: “Waar vind ik cijfers rond AstraZeneca voor de groep onder de 60 (met name voor zorgverleners die daarmee gevaccineerd zijn en vaak een hoger risico lopen vanwege veel contacten omdat ze in de zorg werken)… “ and got this:

–jeroen

Posted in Covid-19 / Coronavirus, Health, LifeHacker, Power User, Vaccinations | Leave a Comment »

Dutch vattenfall outgoing mail servers: energierapport, accounts

Posted by jpluimers on 2021/11/19

  • energy report: mailzgbazb.mail.dmdelivery.com [91.197.72.102]
  • account activation o16789100x225.outbound-mail.sendgrid.net [167.89.100.225]

Via:

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

One needs to actually fail in order to get a feel for reality

Posted by jpluimers on 2021/11/18

Failure is very important to understand about reality.

Software Development and DevOps should do this more often, as real world failures are always different from test cases.

This is especially true in the field of web sites, cloud development, kubernetes, microservices and other distributed “Stuff” (which starts with DNS!).

There was a great thread last year that ended with this quote:

“Error Budget”: How much infrastructure you’re allowed to set on fire to learn the meaning of the word “heiß”. Every organization has an error budget, but most don’t plan for it.

The start of the thread is around [Archive.is] Kristian Köhntopp on Twitter: “So the little one was a bit over 12 months old, and could already say “Mama” and “Papa”. It was around christmas, and there was a candle on the table, glowing interestingly, so he wanted to touch it. Of course I told him “Nein, heiß!”.”.

Then Kristian Köhntopp summarised the thread in this great blog post: [Wayback] On Touching Candles, And Error Budgets | Die wunderbare Welt von Isotopp.

Too bad ThreadReaderApp still is unable to archive trees of messages (not even single threaded trees with multiple participants) as this is possible with the Twitter v2 API: [Archive.is] twopcharts_nl on Twitter: “is wel eenvoudig mogelijk nu met api v2.… “

So I archived the thread in two Archive.is links:

In the thread, Kristian also mentions [Wayback] Code rant: The Configuration Complexity Clock

That article has a very important observation:

At a certain level of complexity, hard-coding a solution may be the least evil option.

–jeroen

Read the rest of this entry »

Posted in Cloud Development, Development, Micro Services, Software Development | Leave a Comment »

GitHub’s commitment to npm ecosystem security | The GitHub Blog – no npm package can historically ben tracked to be authentic

Posted by jpluimers on 2021/11/18

What started as [Wayback/Archive] GitHub’s commitment to npm ecosystem security | The GitHub Blog with this qoute:

on November 2 we received a report to our [Wayback/Archive] security bug bounty program of a vulnerability that would allow an attacker to publish new versions of any npm package using an account without proper authorization. …

This vulnerability existed in the npm registry beyond the timeframe for which we have telemetry to determine whether it has ever been exploited maliciously. … the timeframe for which we have available telemetry, which goes back to September 2020 …

This basically means you cannot trust the authenticity of any npm package published through the registry.

It sparked reactions like these:

–jeroen

Posted in Development, JavaScript/ECMAScript, Node.js, Scripting, Software Development | Leave a Comment »

GitHub – JanDerogee/TeleJukebox: A project based on the concepts of the Wonderfoon and Arduinofoon

Posted by jpluimers on 2021/11/18

[Wayback/Archive.is] GitHub – JanDerogee/TeleJukebox: A project based on the concepts of the Wonderfoon and Arduinofoon which simplfies the design of the Wonderfoon keeping the most important music playback feature down to

a simple PCB in a small case where you plug the phone in

The completed project works very simple:

  • Pick up the phone, you hear the “dial tone” MP3, Dial a number, you hear the MP3 0..9 playing (depending on the dialed number), When the song is over, you hear the “disconnected” MP3, You can dial another number and hear another song or hang up the phone.
  • Some phones also have a button on the front. When you press this button, the phone randomly playes one of the songe 0..9 and when that song is over, it automatically plays a new song, randomly. This will allow the person on the phone to continuously listen to the music. This may be of help to those who can’t figure out how it works but love to hear the songs over and over again.
  • You can configure the music folder from which the MP3s are played, you can use up to 10 different folders
  • You can configure the volume of the device
  • Configurations are done through the phone itself (dial 738 OR hold the button while picking up the handpiece), you hear a voice that guides you through a menu and all you need to do is dial in your settings value.

You can power this design through a USB port cable. This way the device can be fed using a simple mobilephone charger OR be connected to the PC. When connected to a PC, the TeleJukebox identifies itself like a USB-stick and you can easily modify the file without removing the card from the system. Meaning that you do no even need to open the case in order to change the collection of MP3 files. Keep in mind that when the device is in USB-stick mode, it cannot playback MP3 files meaning that in this mode it will not act like a TeleJukebox.

Music rights

Especially when using this in a professional environment. be sure the music that plays is rights free (there are music therapists for treating people with Alzheimer’s and dementia that can help you with that).

Steps, reasoning, and building instructions

A less in depth Dutch article (with 13 minute explaining video below) explaining most of the steps and all the reasoning is this multi-part one:

  1. [Wayback] .Build – Bouw een Wonderfoon – Bouw een Wonderfoon voor iemand anders – Achtergrond – Tweakers

    It works with these and younger phones as long as they can do pulse-dialing:

    De T65, W65 en T65 TDK

  2. [Wayback] .Build – Bouw een Wonderfoon – Wat is een Wonderfoon? – Achtergrond – Tweakers

    The small regular and debug boxes under the PTT/KPN phone connector box:

    .Build Wonderfoon - Twee keer TeleJukebox

  3. [Wayback] .Build – Bouw een Wonderfoon – Een goedkopere variant – Achtergrond – Tweakers
  4. [Wayback] .Build – Bouw een Wonderfoon – Slopen is zonde – Achtergrond – Tweakers

    Both boards with electronics soldered:

    .Build Wonderfoon - Beide varianten van de TeleJukebox

    The non-debug board with components to be soldered:

    .Build Wonderfoon - Onderdelen TeleJukebox

  5. [Wayback] .Build – Bouw een Wonderfoon – T65 bewerken – Achtergrond – Tweakers

    The small cleanup and modification steps (shorting the microphone) for the T65 phone:

    .Build Wonderfoon - Contact haakT65 schoonmaken.Build Wonderfoon - Contact haakT65 schoonmaken

    .Build Wonderfoon - Aansluitingen T65.Build Wonderfoon - Aansluitingen T65.Build Wonderfoon - Aansluitingen T65.Build Wonderfoon - Aansluitingen T65

  6. [Wayback] .Build – Bouw een Wonderfoon – Solderen maar! – Achtergrond – Tweakers

    Schematics:

    .Build Wonderfoon - Schema TeleJukebox

    Shopping list:

    – 1x Pcb of perf board (€ 1,01)
    – 1x Arduino Pro Micro (€ 7,95)
    – 1x DFPlayer mp3-speler(€ 0,73)
    – 1x TIL111 optocoupler (€ 0,41)
    – 2x Weerstand 4K7 Ohm (€ 0,16)
    – 7x Weerstand 2K7 Ohm (€ 0,56)
    – 1x Weerstand 560 Ohm (€ 0,08)
    – 1x Elco 1000 µF 6.3 V (€ 0,23)
    – 1x Condensator 330nF (€ 0,13)
    – 1x Condensator 100nF (€ 0,05)
    – 2x Led (€ 0,06)
    – 1x USB, type B, pcb (€ 0,67)
    – 1x Tactile switch (€ 0,09)
    – 1x Pinheader, male, 6 breed (€ 0,03)
    – 4x Jumper kabel, female (€ 1,95)
    – 1x Micro sd-kaart (€ 2,50)
    – 1x PTT-wandcontactdoos (€ 2,99)
    – 1x Behuizing (€ 1,22)
    Totaal € 20,82

    Voor de compacte pcb kun je de switch, een led, een weerstand van 2k7 Ohm en de twee weerstanden van 4k7 Ohm weglaten.

  7. [Wayback] .Build – Bouw een Wonderfoon – Voor wie gaat hij worden? – Achtergrond – Tweakers

    The inside of the non-debug box:

    .Build Wonderfoon - TeleJukebox

 

Wonderfoon got more versatile

Note that the most recent Wonderfoon products got more versatile allowing more songs, warnings for taking pills, and ring-reminders based on morse code.

[Wayback] Home | Wonderfoon

. De Wonderfoon-Centrale

–jeroen

Read the rest of this entry »

Posted in Arduino, Arduino, Development, ESP32, ESP8266, ESP8266X, Hardware, Hardware Development, Hardware Interfacing, Raspberry Pi, Software Development | Leave a Comment »

checkbashisms(1) – Linux man page

Posted by jpluimers on 2021/11/17

Even with lots of experience, one learns new things every day.

A while ago, I discovered checkbashisms which checks sh shel scripts (usually with extension .sh) scripts to they do not contain code specific to bash.

[Wayback] checkbashisms(1) – Linux man page

checkbashisms, based on one of the checks from the lintian system, performs basic checks on /bin/sh shell scripts for the possible presence of bashisms. It takes the names of the shell scripts on the command line, and outputs warnings if possible bashisms are detected.

Note that the definition of a bashism in this context roughly equates to “a shell feature that is not required to be supported by POSIX”; this means that some issues flagged may be permitted under optional sections of POSIX, such as XSI or User Portability.

In cases where POSIX and Debian Policy disagree, checkbashisms by default allows extensions permitted by Policy but may also provide options for stricter checking.

The source by now is a Perl script (it used to be a bash script) of which you can find the latest version here: [Wayback] scripts/checkbashisms.pl · master · Debian / devscripts · GitLab

Not installed by default

Virtually no distribution has checkbashisms installed by default.

In fact, the package containing checkbashisms heavily varies by distribution.

For OpenSuSE, it is in a package by itself: [Wayback] openSUSE Software: package checkbashisms

checkbashisms

Tool for Checking /bin/sh Scripts for Possible Bashisms

checkbashisms performs basic checks on /bin/sh shell scripts for the possible presence of bashisms. It takes the names of the shell scripts on the command line, and outputs warnings if possible bashisms are detected.

–jeroen

Posted in *nix, *nix-tools, bash, bash, Development, Power User, Scripting, sh, Sh Shell, Software Development | Leave a Comment »

Interesting situation now UWP isn’t panacea any more: for Windows development, native is back to center stage

Posted by jpluimers on 2021/11/17

Summary: UWP (Universal Windows Platform) is dying, long live native Windows development.

Source: [Wayback/Archive] Native Windows is Back to Center Stage

With the downplay of UWP, native development is again the primary Windows development model, after 20 years (given we had .NET in between). Native is what Delphi does at its best, so this is great news

Via:

–jeroen

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

How do I restart sshd on my Unix system | StarNet Knowledge Database – PC X, X Windows, X 11 & More – StarNet

Posted by jpluimers on 2021/11/17

[Wayback] How do I restart sshd on my Unix system | StarNet Knowledge Database – PC X, X Windows, X 11 & More – StarNet

RedHat and Fedora Core Linux

/sbin/service sshd restart

Suse linux

/etc/rc.d/sshd restart

Debian/Ubuntu

/etc/init.d/sshd restart

Solaris 9 and below

/etc/init.d/sshd stop
/etc/init.d/sshd start

Solaris 10

svcadm disable ssh
svcadm enable ssh

AIX

stopsrc -s sshd
startsrc -s sshd

HP-UX

/sbin/init.d/secsh stop
/sbin/init.d/secsh start

Note that for opensuse, by now you need this to restart sshd:

/usr/sbin/rcsshd restart

Edit 20211118: some tweets in reaction to this post

–jeroen

Posted in *nix, *nix-tools, Debian, Development, Linux, openSuSE, Power User, RedHat, Scripting, Software Development, SuSE Linux, systemd, Tumbleweed | Leave a Comment »