Problem which needs to be fixed: Project has two main directories with a lot files. Some of files are almost the same. Some changes to those files should be transfered to other main directory. Let's create testing git repository. (Today…
Lets create repository to experiment with: Graphically git repository will look like this: We are currently on master branch. Let's say we remove (by mistake) feature/Democratic branch with force (cause branch is not merged into master). [crayon-5a134042984b5381243760/] To revert that…
Let's say you are one man-army, single developer who develops next-great-thing-on-desktop. You have only one client for whom you send each day latest build to test. After sometime you started getting bug reports, and you want to easily tell which…
If you use Visual Studio Code there is very high probability, that you use also Git as your main version control system.
You can set Visual Studio Code as default editor and Diff tool which will be showing changes between two different commits.
To set Visual Studio Code as your default editor enter this command into command line:
git config --global core.editor "code --wait"
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"
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.
I was writing lately about problem with a lack of precision in date. I said about having many tables with column with time stamp of last update. You can figure it about that changing it by hand is very painful.
You can automatize that by using
Listener. Listener – ekm – listen for changes that are sent to database. You can define
Listner like that
Software which I was updating into XXI century had database in which every record contains time stamp about insert or latest update. In NHibernate - DateTime is saved with precision of seconds. "Old" software was saving with precision of milliseconds,…