Microsoft has done things like this before and I just let it slip on by me. This time will be different. While I have been doing web development for many years I never bothered to earn any kind of certification. This year I am going to make a run at it. Hopefully I will not be a public failure, but as I take tests and get the results I will post about my experience.
For now I am going to take the certification path one step at a time. Step one, obtain at least one MTA. For me this will be the MTA for Web Development Fundamentals. I am not so arrogant as to assume I know everything, so I am going to make use of the course, Software Development Fundamentals, at Microsoft Virtual Academy.
If you are interested in taking up the challenge as well, head on over, and take up the challenge.
I know there are a lot of examples out there of MVC Code first, but there does not seem to be a whole bunch on Database first. I did find a really nice one, even though it is a bit old.
Julie Lerman had created a post about Building an MVC3 with Database First and Entity Framework 4.1.
This simple tutorial still applies today, I just did it with Visual Studio 2013 so that would be MVC5 and Entity Framework 6. There are just a couple gotchas.
Generating Strongly Typed Entity Class
This is the first gotcha. I picked the EF 6.x DbContext Generator. Then I discovered that the Model1.Context was redundant so I had to delete it. I kept the Model1.tt though.
Running the Application
This one was really easy to fix. In the Global.asax you will find that MVC5 uses the various config.cs files located in the App_Start folder. So instead of editing your routes in Global.asax just edit them in RouteConfig.cs in the App_Start folder.
There might be better ways to fix these gotchas, especially that first one. The thing is it worked and is a great little DB First tutorial.
Bob Tabor does an excellent job teaching material to developers. While he does have his own business he also has done a number of series for Microsoft’s Channel 9. Two of his series he put up that I wanted to go through are for Windows 8 App development; C#/XAML and HTML/CSS/JS. I just cannot find the time to complete them.
Last night I sat down to start the C#/XAML one; recently at work I have been moved to a Silverlight project so becoming familiar with XAML is a good idea. One of the first things you do is open the Contoso Cookbook solution and try to build it. You’ll get an error about a Callisto reference. If you try to use the package manager like he does in the video you will get an error. While these videos are not even a year old, I know things have changed. Below is the error message I received.
Could not install package ‘Callisto 1.4.0′. You are trying to install this package into a project that targets ‘.NETCore,Version=v4.5′, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
The fix is pretty simple if you use Nuget a lot. You use the Package Manager Console and type the command to install the version of Callisto you need.
PM> Install-Package Callisto -Version 1.2.4
Installing ‘Callisto 1.2.4′.
Successfully installed ‘Callisto 1.2.4′.
Adding ‘Callisto 1.2.4′ to ContosoCookbook.
Successfully added ‘Callisto 1.2.4′ to ContosoCookbook.
Build, and there you go.
So a couple weeks ago I saw a question on the ASP.Net or MSDN forums. Someone wanted to know how to use LINQ to sort by the day of the week and then by the time for a given datetime. I did not have a chance to do anything with it, but for some reason it stuck in my head. So, I came up with the answer, but of course I do not remember where the post was located. The answer is very simple.
The WSDL tool is a handy tool to generate a proxy class to consume a web service. There is plenty of information out there about it, so I will not go into detail. I will provide some links though. One bit of advice is to add a new Environment Variable to your machine. Here is an example, I named mine Path.
Variable name: Path
Variable value: %PATH%;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin
You may need to verify that path on your actual machine, it should be the location of wsdl.exe.
This post should motivate some people to be more security minded. I know I am not perfect but I did not realize all of the capabilities that are shown in this post. Mainly the ability for it to use the name of one of your trusted networks.
If you use the Web Express version of Visual Studio 2012, you will notice one thing missing; creating a console application. The solution is fairly simple. I found a blog post at Possibly the most boring blog ever that explains it perfectly. So instead of rehashing what has already been posted, I will let you use that link above.
In a nutshell though, you will create a new class library. In its property page set its output type to Console Application. Please see the original post for screen shots and more details.
Brian Harry made a post that some people might find very useful. How to rename your Team Foundation Service account. Apparently, in the past, you basically deleted your account and created a new one.
Instead of rewriting it, or copying and pasting it I will give you the link to his post. It is very straight forward, and a nice addition to the service.
Isn’t it nice to have dual 21″ or larger wide-screen monitors in the office? Don’t you wish you had them at home, especially when an application opens itself off-screen?
Well, this won’t magically give you your nice in office setup, but it will bring that pesky program into view. There are two basic ways.
First is to alt tab to that program and right-click it in the task bar. From this menu pick Move. Use your arrow keys to slide it into view. Then a simple left click of the mouse or hit your enter key and you’re done.
The second method can be used all of the time. The reason for this one is because some programs do not offer that move option. In this case, you still alt tab to the program. Next you hit Alt + Space + M. That puts it in move mode, so now you just use your arrow keys to move that window into view. Finally, like in the first method, you can hit your enter key or do a left click of the mouse.
Yesterday Ubuntu made an announcement, which on the surface might seem like not a big deal. They are releasing their operating system for phones and tablets. The really neat stuff is in the details. Watch to the video by Mark Shuttleworth, if that link does not work you can go to this page and use their link.
Like I said, on the surface it doesn’t seem like a big deal. In fact a lot of it kind of reminded me of what Microsoft is doing with Windows 8. Let me put this out there first, I do like Windows 8. In fact I purchased a new Alienware M17x R4 that came with Windows 8. I also like Ubuntu, but it is not a practical choice of operating system for me at this time. Also on the surface what they are doing sounds a lot like what another phone company did with docking their phone and trying to use it like a computer.
The big difference is really where the phone is concerned. When you dock a phone running Ubuntu, you do not get a phone operating system, you are on full-blown Ubuntu. This is really neat, and much better than trying to use a phone operating system as a computer. Another neat thing is how the UI will work with phone. It appears they really are trying to let your applications and what not take front and center on the phone with everything else just a swipe away.
Does this remind me of Windows 8, sure it does. Does it remind me of a Windows 8 phone, not really. The most outstanding feature to me is being able to use a phone like a full-blown computer.
They have a page about Ubuntu for Android; being an Android phone user I would really like to give that a spin some time.