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

Keep alive SSH connection with server in MacOs Mojave – Ask Different

Posted by jpluimers on 2020/11/30

Reminder to self: check if this has been worked-around yet: [WayBack] Keep alive SSH connection with server in MacOs Mojave – Ask Different

In El Captain, to maintain active a SSH connection you should edit ~/.ssh/config file to add your additional rules.

nano ~/.ssh/config

To maintain active for 1 hour you should add:

Host *
   ServerAliveInterval 3600

I cannot recreate the same situation is MacOS Mojave, it continue to close connections after some minutes. Any suggestions about this?

Via: [WayBackAsk Different on Twitter: “Can you answer this? Keep alive SSH connection with server in MacOs Mojave #ssh”

–jeroen

 

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

NOx value measurement is an indicator for much wider forms of pollution (was: Definitiv ein lesenswerter Artikel, trotz der plakativen Schlagzeile)

Posted by jpluimers on 2020/11/30

Basically:

In other words (and she’ll say that later in an interview): It’s not the NO2 limit we’re talking about here, it’s all the air pollutants we inhale day after day. The discussion about diesel bans and the reduction of NO2 emissions misses the real problem, because if only the NO2 is reduced and not the other pollutants, that does not help much.

Google translated from:

Mit anderen Worten (und das sagt sie auch noch später in Interview): Es ist gar nicht der NO2-Grenzwert, um den es hier geht, es sind die gesamten Luftschadstoffe, die wir Tag für Tag einatmen. Die Diskussion um Dieselfahrverbote und Reduzierung des NO2-Ausstoßes geht am eigentlichen Problem vorbei, denn wenn nur das NO2 reduziert wird und nicht die weiteren Schadstoffe, hilft das nicht viel.

[WayBack] Definitiv ein lesenswerter Artikel, trotz der plakativen Schlagzeile: > Es geht bei dem Grenzwert nicht nur um die Gesundheitswirkung des Reizgases NO2… – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in About, History | Leave a Comment »

Android: measuring sound levels

Posted by jpluimers on 2020/11/30

Two Android apps I tried that work quite OK for measuring dBA or Sound Pressure Level:

Measuring sound levels is not easy, especially the calibration is important. That’s why professional devices are relatively expensive.

These are no full replacements for those professional devices, but the first comes close enough for me.

–jeroen

Posted in Android Devices, LifeHacker, Power User | Leave a Comment »

Compressing C:\Users\All Users\Microsoft\ClickToRun\ProductReleases

Posted by jpluimers on 2020/11/27

Microsoft keeps more and more under C:\Users\All Users\Microsoft\ClickToRun\ProductReleases (also accessible via C:\ProgramData\Microsoft\ClickToRun\ProductReleases or more precisely %AllUsersProfile%\Microsoft\ClickToRun\ProductReleases).

This can be huge, running into 10s of gigabytes, which – for todays cloud, VM and light-weight device based world – is huge.

Compressing seems to fail for me consistently, as I get “access denied” while compressing when elevating from Windows Explorer.

So this is a reminder to sort this out eventually.

These did not help yet:

I don’t dare deleting it:

Hopefully it is something explainable like the a virus scanner.

Later

Yup: it was the Avira Virus Scanner.

Somehow it has the Windows Explorer UI cause an “Access Denied” message to appear when elevating, but you can still compress files fine in a subdirectory with these steps:

Given a subdirectory named C:\SomeDir\A do this:

  1. pushd C:\SomeDir\A
  2. compact /c /s *.*
  3. cd ..
  4. compact /c A
  5. popd

It is not the first time I bump into Avira stuff (but I only blogged about it once, dumb me: VirusTotal: Avira marks a Delphi built executable als false positive), but the decision of using it was outside my control.

–jeroen

Posted in Power User, Windows, Windows 10 | Leave a Comment »

Aaron Tay on Twitter: “trying experimental Wayback Machine Chrome ext from @internetarchive . There’s usual find latest/earliest archived versions and “context”, which just checks whois, annotations from https://t.co/qlqDUJNkIa, tweets etc but “find cited books and papers” is only on wikipedia pages… https://t.co/QqFSQ2HJ3e”

Posted by jpluimers on 2020/11/27

On my list of things to try:

Source: Aaron Tay on Twitter: “trying experimental Wayback Machine Chrome ext from @internetarchive . There’s usual find latest/earliest archived versions and “context”, which just checks whois, annotations from Hypothes.is, tweets etc but “find cited books and papers” is only on wikipedia pages”

–jeroen

Read the rest of this entry »

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

“twitter lite” “not available in your country” – Google Search

Posted by jpluimers on 2020/11/27

Need to figure out how to install: “twitter lite” “not available in your country” – Google Search.

Failing steps from [WayBack] Twitter vs Twitter Lite: Is Lite App Worth it?, but it might actually be the app sans APK.

On my reading list:

–jeroen

Posted in LifeHacker, Power User, SocialMedia, Twitter | Leave a Comment »

SEP92: A VIDEO COMPATIBILITY INTERFACE FOR TURBO DEBUGGER

Posted by jpluimers on 2020/11/26

[WayBack/Archive] SEP92: A VIDEO COMPATIBILITY INTERFACE FOR TURBO DEBUGGER

Blast from the past, which reminds me of the days that Peter Sawatzki used this interface to write a DLL that allowed Turbo Debugger for Windows (TDW) run on a secondary monochrome screen using a special TDVIDEO.DLL.

That way you could debug Windows applications without distorting the screens, highly speeding up the debugging process.

Lot’s of stuff from that era got never archived, so I wish I could have found it in my archive, but I seem to have lost it.

Found via:

–jeroen

Posted in Debugging, Development, Pascal, Software Development, Turbo Debugger, Turbo Pascal | Leave a Comment »

Git Mergetool and difftool with Beyond Compare 4 · GitHub

Posted by jpluimers on 2020/11/26

For my archive: [WayBack] Git Mergetool and difftool with Beyond Compare 4 · GitHub

jpluimers commented

I stuck to this as I:

  • do not run git bash
  • have Beyond Compared installed in the default directory (not the x86 one)
  • do not want a new UI instance, so use the recommended BComp.exe
git config --global merge.tool bc4
git config --global mergetool.bc4.cmd "'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\""
git config --global mergetool.bc4.trustExitCode true

This works splendid with git mergetool: it starts a merge in the already open BCompare.exe instance.

I only do merge from Beyond Compare, so no need for me to do a similar Beyond Compare setup for diff.tool, but if anyone wants it, it would be this:

git config --global diff.tool bc4
git config --global difftool.bc4.cmd "'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\""
git config --global difftool.bc4.prompt false

This works fine for any git versoin > 2.2.0.

Related:

What I need to find out is if it is possible to open all merges at once in Beyond Compare. Maybe these help:

This did help getting rid of .orig files: [WayBack] version control – Git mergetool generates unwanted .orig files – Stack Overflow

–jeroen

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

Delphi revelations #3 – kbmMW Smart client – DispInvoke leak – Components4Developers

Posted by jpluimers on 2020/11/26

For my archive, as one day I will run into this Variant/DispInvoke issue myself:[WayBack] Delphi revelations #3 – kbmMW Smart client – DispInvoke leak – Components4Developers:

Delphi revelations, now about investigating a pesky DispInvoke bug in all versions of Delphi supported by kbmMW, including 10.3 Rio, that results in leaks, and how kbmMW now ends up not being affected by it.

Via: [WayBack] Next Delphi revelations, now about investigating a pesky DispInvoke bug in all versions of Delphi supported by kbmMW, including 10.3 Rio, that results i… – Kim Madsen – Google+

–jeroen

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

`exit /b #`: set `errorlevel` to `#`, then exit batch file or subroutine – via: Errorlevel – Windows CMD – SS64.com

Posted by jpluimers on 2020/11/25

I seem to always forget how to set an error leve in side a batch file, but [WayBack] Errorlevel – Windows CMD – SS64.com tells how:

  • When ending a [WayBacksubroutine, you can use EXIT /b N to set a specific ERRORLEVEL N.
  • You can make a [WayBackbatch file return a non-zero exit code by using the [WayBackEXIT command.

    Exit 0
    Exit /B 5

    To force an ERRORLEVEL of 1 to be set without exiting, run a small but invalid command like [WayBack]COLOR 00 

    There is a key difference between the way .CMD and .BAT batch files set errorlevels:

    An old .BAT batch script running the ‘new’ internal commands: APPEND, ASSOC, PATH, PROMPT, FTYPE and SET will only set ERRORLEVEL if an error occurs. So if you have two commands in the batch script and the first fails, the ERRORLEVEL will remain set even after the second command succeeds.

    This can make debugging a problem BAT script more difficult, a CMD batch script is more consistent and will set ERRORLEVEL after every command that you run [[archive.is]source].

It looks like I already used a bare EXIT /B without explaining it in Source: stop/start IIS.

Further reading, including the difference between subroutines, blocks and batch files:

Finally saving Google Groups messages in the way back machine:

  1. Convert the URL
  2. Save the latter in archive.is

–jeroen

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