Category Archives: develop

Update Visual Studio Code on Linux Suse

From https://code.visualstudio.com/docs/setup/linux openSUSE and SLE based distributions The yum repository above also works for openSUSE and SLE based systems, the following script will install the key and repository: sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c ‘echo -e “\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” … Continue reading

Posted in develop, linux | Tagged , , , | Leave a comment

Shortcuts in Visual Studio Code

https://code.visualstudio.com/docs/editor/editingevolved You can jump to the matching bracket with Ctrl+Shift+\ https://stackoverflow.com/questions/37014171/how-can-we-save-all-files-in-vscode-like-we-do-in-visual-studio Save all opened files.

Posted in develop, linux | Tagged , | Leave a comment

Build error: array used as initializer (using gcc v4.8)

https://stackoverflow.com/questions/50025430/build-error-with-gcc-4-8-array-used-as-initializer/50037824#50037824

Posted in develop, linux | Tagged , , , | Leave a comment

Pass arguments to the PowerShell script in PowerShell ISE

Use the command pane. Open the script file in the ISE editor, set the breakpoints (F9). Then in the command pane type a command invoking this script with required parameters. I do not think there is another (built-in) way of … Continue reading

Posted in develop | Tagged , , | Leave a comment

Add a repository to SEL

Reference https://code.visualstudio.com/docs/setup/linux Running VS Code on Linux Installation openSUSE and SLE based distributions The yum repository above also works for openSUSE and SLE based systems, the following script will install the key and repository: sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc sudo sh … Continue reading

Posted in develop, linux | Tagged , , , | Leave a comment

PowerShell Culture and Help

https://powershell.org/forums/topic/invoke-command-remove-pscomputername/ https://powershellserveradmin.wordpress.com/2015/01/09/get-help-vs-help/ https://social.technet.microsoft.com/Forums/Lync/en-US/dea5d51d-0757-4916-86d8-c0b12ef55153/how-to-exclude-property-from-result-returned-by-powershell-command-?forum=sharepointadminprevious Aliases https://blogs.technet.microsoft.com/heyscriptingguy/2011/05/01/best-practice-for-using-aliases-in-powershell-scripts/ PowerShell session culture https://p0w3rsh3ll.wordpress.com/2012/01/22/working-with-system-locale-and-user-locale/ ## Test remote PS call from JACK on RHINO $computerName = “lsc561.tw.ibm.com” $remoteUser = “Administrator” $remotePassword = “!Sp@-81#” $credential = New-Object System.Management.Automation.PSCredential($remoteUser, (ConvertTo-SecureString $remotePassword -AsPlainText -Force)) invoke-command -ComputerName $computerName -Credential $credential … Continue reading

Posted in develop, windows | Tagged , , | Leave a comment

How to set the programming environment of Visual Studio

Q: I have set the programming environment of Visual Studio into C#. Now I want to change it to VC++. A: To change the environment from C# to C++, please go to Tools menu >> Import and Export Settings >> … Continue reading

Posted in develop | Tagged , | Leave a comment