May 5, 2012 - .NET    No Comments

Opening solution file in Visual Studio 2010 running under Parallels

If you are running a virtual machine “Windows XP” on a MAC machine and you open a solution file which is on your MAC drive in Visual Studio 2010 or Visual Studio 2005, you will get an error message saying:

Unable to read the project file 'filename.csproj'. Invalid URI: The hostname could not be parsed.

To solve the problem, just follow the steps:

  1. Inside of XP in Parallels, Map a Network Drive ‘X’ to the ‘Home’ folder
  2. Open the Solution file in the Networked Drive using Visual Studio
May 4, 2012 - .NET    No Comments

Only Rounding Up Function in C# .NET

Image processing on a hypercube. Last step.

Image processing on a hypercube

Sometime, you only want to round up a value and especially if you work in the field of image processing so here is the snap code in C#.

  • int scaled = Math.Ceiling( (double) a / b );

or if you want to round down or up based on the < or > of the value then you can as follows:

  • int scaled = Math.Round( (double) a / b );

To make it round ‘upwards’ you can use Math.Ceiling:

Note:  a, b is your variable.

Mar 6, 2012 - Monitor    No Comments

Present Monitors Pixel Pitches

Recently, been involved developing 3D Holoscopic Display which requires a very high resolution monitors. Just for a cheap approach and high street display could be used to do a prototype 3D Display. As a result, I did some alittle research on current display pixel pitch size and nearly every monitor I’ve ever looked at lists the dot pitch on the spec sheet. Easy to find.

here is a list of the monitors I’d used or considered using when I do my next experiment, plus what I’m using at work now:

  • 0.294mm : BenQ FP931 (old home monitors)
  • 0.258mm : Dell 2009W (old work monitors)
  • 0.282mm : Dell 2208WFP
  • 0.270mm : BenQ G2400WD
  • 0.270mm : HP LP2475w
  • 0.282mm : Dell 2209WA
  • 0.270mm : Dell 2408WFP (current home monitors)
  • 0.270mm : Dell U2410 (current work monitors)
  • 0.125mm : IBM Dual Screen Monitor :)
Pages:1234567...24»