The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,854 other subscribers

How to have git log show filenames like svn log -v – Stack Overflow

Posted by jpluimers on 2020/12/01

I stick to git log --name-status as suggested in [WayBack] How to have git log show filenames like svn log -v – Stack Overflow.

A slightly less readable alternative isgit log --num-status .

There is also git log --name-only as suggested in [WayBack] How to show changed file name only with git log? – Stack Overflow

–jeroen

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

Delphi Compiler Intrinsics can help you collapse generated code for generics a lot

Posted by jpluimers on 2020/12/01

On my reading list [WayBack] Delphi Corner Weblog: The current state of generics in Delphi because it explains in more detail why Delphi compiler generic type based intrinsics introduced some 5 years ago, but never been (accurately) documented, but listed at [WayBack] delphi – Undocumented intrinsic routines – Stack Overflow, are so important to help collapse decreasing code bloat:

  • Default
  • IsManagedType
  • HasWeakRef
  • GetTypeKind

There is also the TypeInfo which is somewhat documented on-line starting in the Delphi 2007 documentation:

 

And some non-generic intrinsics that are still undocumented:

  • IsConstValue
  • ReturnAddress

Spring4D already has been making use of this for a few years, and you can too!

Via [WayBack] rvelthuis.blogspot.com/2018/10/the-current-state-of-generics-in-delphi.html – Jacek Laskowski – Google+ that has some more information on Spring4D too.

A tiny bit more information on collapsing: [WayBack] TURBU Tech » Blog Archive » Wish list: Generics collapsing

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

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 »