Set Notepad++ As Default Git Editor

Set Notepad++ as default Git editor

A default editor for Git in Windows system is notepad, which we can all agree that editor is not the greatest editor in the world.

We can change it to Notepad++. Let’s assume that Notepad++ was installed in default path C:\Program Files (x86)\Notepad++\. Then the command to set Notepad++ as default git will look like this:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

Read more...
Why Elections In USA Are Held On Tuesday?

Why elections in USA are held on Tuesday?

We need to come back to begins of USA when there was no cars.

They are not held on Sunday because Sunday is a holy day and everyone needs to go to church.

Elections are not held on Monday because one day could be not enough to nearest polling place. You need to think about farmers with slow horse :).

To solve those issues elections are held on Tuesday.

Read more...
[WPF] How To Kill And Restart XAML Designer? Solution For Not Updated View

[WPF] How to kill and restart XAML Designer? Solution for not updated view

Lately I have started working with WPF. I observed that Design View, which enables developer to see how aplication will present it self, often hangs or stops refreshing when we makes some changes in our project. The bigger code base then there is higher chance for Design View to stops responding.

You can use popular Windows solution for any kind of problem “turn it off and on again”, but closing and opening again Visual Studio takes very long time.

Solution: Rendering view is made by seperate process, which you can kill, and then in Visual Studio you turn it on again.

You can kill this processes by using Task Manager and find any Microsoft Visual Studio XAML UI Designer, but you can do it faster by using command line and you do not need to leave Visual Studio environment.

Read more...