EntityFramework 7

After I upgrade my Win 10 to latest technical preview 10074 and upgrade my VS 2015 to RC. I got a lot of error into my project when I build it. I watch the Build 2015 to figure out what it has changes. Usually I using “k ef add migration addProfile” it not going work anymore. check out this docs the latest asp.net 5. http://docs.asp.net/en/latest/ DNX (Dot Net Execution Environment) dnx . ef migration add  addProfile

Git swap branch to master

Sometimes in the development we always commit into the master but at the end we want to make our branch source become master.
I feel this is easier way to do it.

git branch -m master abandonmaster //Move the master to Branch abandonmaster
git branch -m branchName master //Move the branchName to master
git push origin master //push master to remote
git push origin abandonmaster //pust abandonmaster branch to remote

A request to allocate an ephemeral port number from the global UDP port space has failed due to all such ports being in use

Such a long title of error message, I got this error on the Win Server 2012, The server is running for more than 2 years and suddenly all my apps is hang.

The first things we want to check is what is the UDP Port is currently using there is 2 ways to check it.
1. Is using TCPView
2. Is using Command Prompt (netstat) it.

Open the Command Prompt “netstat -anob -p UDP > 20150414_1521.txt” It will save in this file.

We will see there is alot of list of “Dnscache” which is using PPID 3312

[svchost.exe]
UDP    [::]:49656             *:*                                    3312
Dnscache

Moving forward we want to know what is the PPID 3312.
tasklist /svc /fi “pid eq 3312”

svchost.exe 3312 CryptSvc, Dnscache, LanmanWorkstation,
NlaSvc, WinRM

Based on this article it said to turn off the LLMNR Listener, on the last comment

https://social.technet.microsoft.com/Forums/en-US/89364046-7fd1-4c20-bab0-f0138447901f/port-exhaustion-with-dnscache?forum=winserverPN

From what we capture the network traffic we saw that .48 is calling LLMNR destination 224.0.0.252 which is also state in this article:

http://www.schoolleader.com/Documentation/Disabling_LLMNR_Causing_Slow_Networks.pdf

To fix this issue I use the last article “Disabling LLMNR Causing Slow Network” and it work.

Chocolatey

You able to install the apps by using command line. an alternatives apt-get for windows.

#Install Chocolatey this is the best way to install the packages
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

#Install 7zip
choco install 7zip.install

#Install Notepad++
choco install notepadplusplus

#Install Git Client
choco install sourcetree

#Install Chrome Browser
choco install google-chrome-x64 

#Install Fiddler
choco install fiddler4

#Install Flux
choco install f.lux