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 depends. 7-zip can edit a file without unzip it somehow I don’t think Winrar has that feature.


7-zip http://www.7-zip.org/

Winrar http://www.rarlab.com/

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. http://blogs.msdn.com/b/webdev/archive/2014/10/06/asp-net-vnext-in-visual-studio-14-ctp-4.aspx.

3. MVC Music Store I am not able to make it work for 1 hour. Maybe you can.  http://blogs.msdn.com/b/webdev/archive/2014/10/06/asp-net-vnext-in-visual-studio-14-ctp-4.aspx

Posted in .Net | Tagged , , , , | Leave a 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 Box Manager with the existing image file. That should work. 

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 Library (dll) is newer than the project refers to it.

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:


NORTHWNDEntities ctx = new NORTHWNDEntities();


var result = from r in ctx.Products select r;


foreach (Product product in result)


  Console.WriteLine(“Serial: Product ID: {0}, Product Name: {1}”, product.ProductID, product.ProductName);


To turn it to Parallel you do it like below:


Parallel.ForEach(result, product =>


  Console.WriteLine(“Parallel: Product ID: {0}, Product Name: {1}”, product.ProductID, product.ProductName);



But not all the conversion will make your code run faster. It will not be running faster if the code depends on a lot in IO. You might need to look into Interlocked or you might use the alternative such as Parallel.Invoke.

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

What do you need to be aware of when installing SQL 2012 SP 1 to Windows 10

Remember to install .NET Framework 3.5 before you install SQL Server 2012 into Windows 10. If not hen you will hit the error “Error installing .NET Framework 3.5”.


I reformat and reinstall the Windows 10, install .NET Framework 3.5 then install SQL 2012 with SP1 only it works.

To install .NET Framework 3.5.

1. Open Control Panel.

2. Open Program and Features.

3. Select Turn Windows features on or off on your left.

4. Select .NET Framework 3.5 (includes .NET 2.0 and 3.0).


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