Monday, January 29, 2024
How to increase the resolution on Ubuntu in Hyper-v
https://superuser.com/questions/1660150/change-screen-resolution-of-ubuntu-vm-in-hyper-v
Monday, January 22, 2024
Best Windows CMD Extension for autocompletion
Clink: https://github.com/chrisant996/clink/releases
Discussion: https://superuser.com/questions/584013/how-to-use-cmds-tab-autocomplete-effectively
Tuesday, May 16, 2023
How to execute/run a program as a user on Windows
1) Open the Powershell as a different user.
2) Enter the credentials on the login popup
3) Run executable on the command line.
Thursday, January 20, 2022
How to setup a Windows Scheduled Task for C# Console Application
Follows the Option1 from this tutorial (https://www.technipages.com/scheduled-task-windows). Full version bellow:
- Using the “Windows Key“ + “R” to open run and type “taskschd.msc“. This will open Task Scheduler.
- Under the actions panel, you can choose to create a back task or create a task. Click “Create Task“.
- The “Create Task” screen will appear. Select the “General” tab
- In the “Name” field, give the task a name. Example: “Outlook Task“.
- In the “Description” field, here you can describe what the task is for and what it will do.
- The last section is the “Security options“, here you can set who can run this task and if the task has admin right.
- Select the “Triggers” tab.
- Select “New…“.
- The “New Trigger” window will appear, here you have the option to set when the task will start.
- Select when you would like the task to start in the “Begin the task” drop-down menu.
- Modify the “Settings” area as desired.
- In the “Advanced settings” field you can choose to delay task, repeat task, stop task, activate and expire.
- “Enabled” is checked by default.
- Select “OK“.
- Select the “Actions” tab, then select “New“.
- The “New Action” window will open.
- In the “Action” drop down, “Start a program” is set by default. Change it if desired.
- Select “Browse…” next to the “Program/script” field
- Browse to the program you are wanting to schedule a task for.
- EXTRA: It might be useful to set the Start In parameter, which is the working directory (directory where your program is gonna be ran from).
- Select “OK“.
- Go to the “Conditions” tab.
- You can change these if you’d like, but I recommend leaving these settings default.
- Select the “Settings” tab. You can change these if you’d like, but I recommend leaving these alone.
- Select “OK“.
Monday, September 28, 2020
Saturday, June 20, 2020
How to move partitions on Windows
There are programs in the following link:
(From the top, the first one that worked for me it was the Mini Tool Partition Wizard)
https://www.lifehack.org/330301/best-5-free-partition-management-software-for-windows-10
(From the top, the first one that worked for me it was the Mini Tool Partition Wizard)
https://www.lifehack.org/330301/best-5-free-partition-management-software-for-windows-10
Saturday, January 25, 2020
Friday, January 10, 2020
Tuesday, January 7, 2020
How to rename multiple files?
Use Visual Studio Code with the following extension:
https://marketplace.visualstudio.com/items?itemName=alfnielsen.vsc-rename-files
https://marketplace.visualstudio.com/items?itemName=alfnielsen.vsc-rename-files
Monday, December 23, 2019
How to Update Nuget
Run command on Power Shell as admin:
nuget update -self
Source: https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-update
nuget update -self
Source: https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-update
Saturday, December 14, 2019
Thursday, November 7, 2019
Sunday, November 3, 2019
How to run SonarCube for C#
How to install SonarCube:
https://docs.sonarqube.org/latest/setup/get-started-2-minutes/
(I had a problem with Elastic Search. The error was about privileges, but in fact it was just because the disk partition it was running on was +95% occupied. I just deleted some stuff and it worked.)
How to install MSBuild for .NET Framework or .NET Core:
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/#header-2
How to run the scan:
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/#header-3
https://docs.sonarqube.org/latest/setup/get-started-2-minutes/
(I had a problem with Elastic Search. The error was about privileges, but in fact it was just because the disk partition it was running on was +95% occupied. I just deleted some stuff and it worked.)
How to install MSBuild for .NET Framework or .NET Core:
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/#header-2
How to run the scan:
https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-msbuild/#header-3
Thursday, October 31, 2019
How to compile c# .net for linux
Example command to run from projects folder:
dotnet.exe build --runtime ubuntu.18.04-x64 --configuration Release
Sources:
https://stackoverflow.com/questions/41533592/how-to-compile-net-core-app-for-linux-on-a-windows-machine
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build
dotnet.exe build --runtime ubuntu.18.04-x64 --configuration Release
Sources:
https://stackoverflow.com/questions/41533592/how-to-compile-net-core-app-for-linux-on-a-windows-machine
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build
Saturday, October 26, 2019
Monday, September 23, 2019
How to work with pip
Short example at the beginning of this video: https://www.youtube.com/watch?v=N5vscPTWKOk&t=183s
Friday, September 20, 2019
Visual Studio Preferences
Plugins:
Select Next Occurence (deprecated)OpenInVisualStudioCode (deprecated)
ProductivityPowerPack2017/219 (deprecated)
btVisualStudioExtensions
Follow Active File in Solution Explorer
Adds Advanced Save Options to menu
Adds New Line For Bracket
Disable File Preview Mode
Camel Hump
Resharper
Configs (Tools > Options):
Text Editor > C# > Code Style > Formatting > New Lines:- Uncheck all of them but "new line options for expressions"
Others:
Check if Projects are being Builthttp://lucastipss.blogspot.com/2019/12/how-to-run-visual-studio-vs-as-admin.html
Subscribe to:
Comments (Atom)