How to force consistent line endings in Git commits with cross-platform compatibility

Q1 Enforcing consistent lineendings Q2 Enforcing at commit as well as checkout (comment) I’ll divide this into 2 parts: Practice and Principle Practice Expansion of code-apprentice’s suggestion Strictly avoid autocrlf — See why autocrlf is always wrong. And here for the core git devs arguing about the ill-thoughtout-ness of autocrlf. Note particularly that the implementor … Read more

Run Windows 10 Universal Apps on Windows 8.1

The answer would be no. For further clarifications, best to post on the forum: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/home?forum=wpdevelop Windows 10 introduces several new APIs and concepts (such as API contracts) that are not available on Windows 8.1. An app that relies on such new APIs and concepts cannot run on Windows 8.1. Additionally the app-model and a lot … Read more

Capture program stdout and stderr to separate variables

One option is to combine the output of stdout and stderr into a single stream, then filter. Data from stdout will be strings, while stderr produces System.Management.Automation.ErrorRecord objects. $allOutput = & myprogram.exe 2>&1 $stderr = $allOutput | ?{ $_ -is [System.Management.Automation.ErrorRecord] } $stdout = $allOutput | ?{ $_ -isnot [System.Management.Automation.ErrorRecord] }

Timed out receiving message from renderer: 10.000 while capturing screenshot using chromedriver and chrome through Jenkins on Windows

Seems you are using chromedriver=73.0.3683.68 and chrome=73.0.3683.86 on Windows OS John Chen (Owner – chromedriver) recently have confirmed that: We have confirmed issues with take screenshot when Chrome 73.0.3686.75 is started by a service (such as Jenkins or Task scheduler) on Windows. Please see https://crbug.com/942023 for more details. We apologize for any inconvenience caused by … Read more

How to run an awk commands in Windows?

If you want to avoid including the full path to awk, you need to update your PATH variable to include the path to the directory where awk is located, then you can just type awk to run your programs. Go to Control Panel->System->Advanced and set your PATH environment variable to include “C:\Program Files (x86)\GnuWin32\bin” at … Read more