Monthly Archives: October 2014

Source Code Readability Tips

I was reading the article Source Code Readability Tips http://msdn.microsoft.com/en-us/magazine/dn802600.aspx and saw the code   var min = Int32.MaxValue;   By looking at var, is this var an int? Is this var an Int32 or something else?   So I … Continue reading

Posted in .Net | Tagged , | Leave a comment

Working ASP.NET sample for VS 14 CTP 4 TailspinSpyworks

Beside those sample applications I blog in the articles The TailspinSpyworks is another application that you can run in VS 14 CTP 4 and it has been working since Visual Studio 2010 for me. The only trick that I always … Continue reading

Posted in .Net | Tagged , , , | Leave a comment

Write XML Tree to XML file (LINQ to XML) with sub child

In my article Write XML Tree to XML file (LINQ to XML) https://chanmingman.wordpress.com/2012/07/21/write-xml-tree-to-xml-file-linq-to-xml/ the XElement tree only has on level. In this sample, I added another level to the tree.   class Program   {     static void Main(string[] args) … Continue reading

Posted in .Net | Tagged , , | 2 Comments

Free ebook: Creating Mobile Apps with Xamarin.Forms, Preview Edition

Download the free book from http://blogs.msdn.com/b/microsoft_press/archive/2014/10/08/free-ebook-creating-mobile-apps-with-xamarin-forms-preview-edition.aspx?loc=zatfz_zTS1z&prod=zWPz&tech=zOtScenz&lang=zCSz_zXMLz&prog=zPressz&type=zBlz&country=zUSz. Remember, Xamarin is not a free tool even the book is free.

Posted in .Net | Tagged , , , | Leave a comment

7-zip or Winrar

In layman term, I have a folder with 4.76 GB, 19,875 files, and 3,803 folders. Using 7-zip version 9.2 I zipped into 2.2 GB. Using Winrar 5.11 I zipped into 2 GB. Will I choose 7-zip or Winrar? Well, it … Continue reading

Posted in .Net | Tagged , , , | Leave a comment

Bing Map SDK for Windows 8.1 will not work for VS 14 CTP 4

Don’t spend your time if you are thinking to run Bing Map in VS 14 CTP 4 at this moment.  

Posted in .Net | Tagged , | Leave a comment

ASP.NET samples that run in Visual Studio 14 CTP 4

So far I have tried 3 samples. I am running Visual Studio 14 CTP 4 in Windows 10. 1. The Wingtip Toys run without doing anything http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/introduction-and-overview. 2. Bug Tracker you need to change the .NET Framework to 4.5.3 Core. … Continue reading

Posted in .Net | Tagged , , , , | 1 Comment

How to resolve when VM in Oracle Virtual Box keep rebooting

If your VM in Virtual Box keep rebooting then there is one thing you can try. Delete the VM in Virtual Box Manager, DO NOT DELETE THE IMAGE FILE LIKE VDI or VHD. Then add a new VM into Virtual … Continue reading

Posted in Community, Computers and Internet, Operating System, Oracle | Tagged , | Leave a comment

The type or namespace name ‘xxxxxx’ could not be found (are you missing a using directive or an assembly reference

There are 3 possibilities 1. You are using .NET Framework 3.5 Client Profile instead of .NET Framework 3.5. 2. You are using .NET Framework 4 Client Profile instead of .NET Framework 4. 3. The .NET Framework uses in your Class … Continue reading

Posted in .Net | Tagged , , | Leave a comment

Convert a foreach loop to Parallel.Foreach loop

It is not hard to turn a serial foreach loop to a parallel foreach loop. The serial loop built with entity framework looks like this: //Serial NORTHWNDEntities ctx = new NORTHWNDEntities();   var result = from r in ctx.Products select … Continue reading

Posted in .Net | Tagged , , | Leave a comment