Monthly Archives: September 2012

How to return var

I always see the question in C# forum on what is the use of IEnumerable and how to return var. These 2 questions are somehow related. One of the uses of IEnumerable is to return var in a function, see … Continue reading

Posted in .Net | Tagged , | Leave a comment

Access is denied when using IIS Express 8

If your application is using IIS Express and see Access is denied like the screen below.   Go to your Documents folder then look for IISExpress folder. Open applicationhost.config file under config folder. Look for the line below. <windowsAuthentication enabled=“false“> … Continue reading

Posted in .Net | Tagged , | 1 Comment

Serial Queue vs Parallel Queue using C#

Below is Enqueue and Dequeue using System.Collections in serial fashion. public static void Main() {   // Creates and initializes a new Queue.    for (int i = 0; i < 10000; i++) myQ.Enqueue(i);     // Displays the properties … Continue reading

Posted in .Net, Community, Computers and Internet, Java | Tagged , | Leave a comment

When you double click a button Web Server control but Visual Studio does not bring you to code behind

Look at the 4 buttons below. When I double click the button then it should be me to the code behind. Somehow when I double click this there is nothing happen. For example, I have WebForm1.aspx and one complete Web … Continue reading

Posted in .Net | Tagged , | Leave a comment

AMD Delivers a New Generation of AMD Opteron and Intel Xeon “Ivy Bridge” Processors in its New SeaMicro SM15000 Micro Server Chassis

─ Unprecedented Computing Efficiency Available for Virtualization, Cloud Computing and Big Data ─ SUNNYVALE, Calif.  September 10, 2012 – AMD(NYSE: AMD) today announced the availability of three pioneering innovations that firmly cement the company as the leader in fabric computing, … Continue reading

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

Oracle Virtual Machine 4.1.22 vs. Windows Hyper-V on USB integration

Unfortunately I could not find  USB integration in Windows 8 Hyper-V but I could find USB integration in Oracle Virtual Box and it works for my old LiDE 20 CanonScan.

Posted in Operating System, Oracle | Tagged , | Leave a comment

Convert image to byte array

The code below is converting the image to byte array. It is pretty straightforward. partialvoid NewImage_Compute(refbyte[] result) {   byte[] _tempByte;   // Set result to the desired field value   string path = @”C:\temp\images\” + this.ProductImage;   System.IO.FileInfo _fi1eInfo … Continue reading

Posted in .Net | Tagged , | Leave a comment

— AMD Opteron™ 4200 and 6200 Series Processors Deliver Unparalleled Price/Performance —

  SUNNYVALE, Calif. – September 4, 2012 – AMD (NYSE: AMD) today announced that it has worked closely with Microsoft throughout the Windows Server 2012 development process to deliver an exceptional server solution powered by its award-winning AMD Opteron™ processors. … Continue reading

Posted in .Net | Tagged , | Leave a comment

Import Excel using OpenXML SDK in ASP.NET MVC

This is a good sample to uploading using ASP.NET http://www.codeproject.com/Articles/38970/Implementing-HTTP-File-Upload-with-ASP-NET-MVC. In order to stream Excel you need few more steps. var fileName = Path.GetFileName(file.FileName); //file.SaveAs(@”C:\Temp\”+fileName);   constint blockSize = 256; int bytesNum; byte[] buffer = newbyte[blockSize]; MemoryStream ms = newMemoryStream(); … Continue reading

Posted in .Net | Tagged , | 1 Comment

There is no Windows Azure SDK for .NET Framework 4.5 it seems

You have to choose .NET Framework 4.0

Posted in .Net | Tagged , | 1 Comment