by Alex Shapovalov | Aug 28, 2021 | Git
When doing merge in Git, it automatically commits merge results if no conflicts exist. That behaviour can be changed when –no-commit parameter provided. How to merge in Git without commit git merge branch-name –no-commit –no-ff
by Alex Shapovalov | Aug 26, 2021 | PowerShell
Window PowerShell provides a number of helpful CmdLets for managing windows services, such as New-ServiceGet-ServiceRestart-ServiceResume-ServiceSet-ServiceStart-ServiceStop-ServiceSuspend-Service And create a new Windows Service using PowerShell...
by Alex Shapovalov | Aug 26, 2021 | ASP.NET
In this video, I will show how to secure your contact form with Google reCapture v3 on ASP.NET MVC. The video shows step by step guide of Creating a new instance of reCapture key in Google admin console;generating the token on the contact form;submitting token to the...
by Alex Shapovalov | Aug 26, 2021 | IIS
Over the years of working as a .NET software developer, I noticed that I use the same IIS rewrite rules over and over again on different projects to solve the same business problems. Below I share examples of the most useful IIS rewrite rules which I use. Keep all...
by Alex Shapovalov | Aug 25, 2021 | JavaScript
It is a very common task to open a popup window in the browser to show some extra information to the user or, in my case, is to open a print-friendly version of the page. However, you need to be careful when implementing such a feature because if you do it...
by Alex Shapovalov | Aug 20, 2021 | Software Development
When deploying the ClickOnce application to the client, usually there is a requirement to display the application version. It’s possible to hardcode the application version in the configuration file or use the assembly version. But when deploying the ClickOnce...
by Alex Shapovalov | Aug 20, 2021 | Git
Delete Git branch locally can be done by providing -d parameter to git branch command. In some cases, git can complain that a branch is not fully merged, and it will refuse to delete it, in that case, you can use -D parameter (capital D), it will force Git to remove...
by Alex Shapovalov | Aug 20, 2021 | Git
Usually before committing changes in Git developer verifies one last time all changes he did. Normally we use git difftool command in order to do it. In that case, git will ask you a question if you want to see changes before opening each file. When the number of...
by Alex Shapovalov | Aug 20, 2021 | Git
Sometimes you did make a commit, but forget to add the ticket number into the commit message, or realized that the commit message is incorrect or contains some spelling mistakes. In git, you can easily change the last commit message without changing any files, just...
by Alex Shapovalov | Aug 20, 2021 | Git
There are a number of ways to undo changes you commit into a git repository, it depends on what exactly you want to change or undo and how. For example, the most common task is to change comment text for your commit, in this case, you can follow instructions from How...