The PowerCollections project

.NET, Programming October 28th, 2004

The PowerCollections project is a community project sponcered by wintellect to develop a collection classes library for .NET 2.0.

Browse the Power Collections for .NET documentation or download the latest version. For more information you can check out the project’s blog.

Generic numerics with .NET

.NET, Programming, Projects, Sharp3D.Math October 22nd, 2004

I’ve been playing with .NET generics trying to find a way to convert the current Sharp3D.Math structures to be generic templates.

The problem with .NET generic templates and numerics code is that there is no way to constraint a type parameter to require the existence of static method that we require for calculations (arithmetic operators etc.)

I found a very good workaround in this article.

Though I do not plan on converting Sharp3D.Math to use generics any time soon I assume I will use this solution when the time to move to .NET 2.0 comes…

SEHException when serializing value types problem fixed on Whidbey

.NET, Programming October 15th, 2004

Just got an answare for the problem reported in this entry.

The product team looked at the issue and the problem is as follows

Issue has to do with having a declarative security demand on a method that
is the implementation of an interface AND the type that implements the
interface is a value type

The problem has been fixed in whidbey. For now the workaround suggested is
to Convert the declarative demand to an imperative demand inside
GetObjectData().
Please let me know  if you need any more information.

Thanks

Anand Balasubramanian
Microsoft, Visual Basic .NET

You can check out the entire discussion thread here.

DirectX 9.0 SDK October Update

Game Development, Programming October 8th, 2004

The DirectX 9.0 SDK – (October 2004) contains the FINAL release of the DirectX 9.0c Runtime and all DirectX software required to create DirectX 9.0 compliant applications in C/C++, and C#.

Primary areas of concentration for this Summer Update have been with the Direct3D Extension Library (D3DX), Graphics Samples, Tools and documentation. The included developer runtimes and the DirectX Redistributable have also been updated to include the latest updates (DirectX 9.0c).

Here are the download links: Release Notes, SDK, Extras, Symbols.

Tags: ,

UrlAuthorization vulnerability in ASP.NET

.NET, Programming October 7th, 2004

A serious vulnerability issue that affects ASP.NET was recently discovered.

There’s a bug in ASP.NET’s canonicalization process which can allow an attacker to slip past the UrlAuthorizationModule by using a backslash instead of a forword slash.

For example, an unauthorized attacked might be able to access a secured directory using the following URL (notice the ‘\’ between “something“ and “secure“:

http://www.ekampf.com/something\secure/securedPage.aspx

Apperantly this isn’t reproducable in Windows2003 (the built-in URLScan capability is fixing the URL before it gets to ASP.NET) but earlier platforms are still vulnerable.

Microsoft has posted an article detailing steps that you can take to protect yourself in the meantime, while they work on a patch.

Tags:

Ray tracing tutorials on flipcode.org

Game Development, Programming October 7th, 2004

Jacco Bikker started a new tutorials series at flipcode.org.
Check it out:

Validation code is not sexy!

Humor, Programming October 4th, 2004

Here’s what the MSDN entry about validation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp) has to say:

“Validation code is not particularly sexy to write.“

I wonder what the author means by “sexy code” …. :-)

Tags:

GnuWin32 project

Programming October 2nd, 2004

After the time I spent making Flex compile on win32 platform (see this post) I found out about the GnuWin32 project which provides Win32 (MS Windows 95 / 98 / ME / NT / 2000 / XP) ports of tools with a GNU or similar open source license.

Nice…

Compiling flex for win32 using VS.NET 2003

Programming October 1st, 2004

I’ve recently had to use flex and went through some trouble trying to compile it to win32 platform (using my VS.NET 2003).

So, if you want to compile here’s what you do:

  1. Get the latest flex distribution. You can find instructions on flex’s homepage.
  2. Extract the distribution package to some folder (ex: d:\flex).
  3. Download the VS.NET solution I have created – flexvsnet.zip (25.74 KB)
  4. Unzip flexvsnet.zip to the flex misc folder (ex: d:\flex\MISC).
  5. A new VS.NET folder is created under the MISC folder. Open the solution in that folder and build it.
  6. The build process creates a new ‘bin’ folder under the ‘vs.net’ folder where flex.exe and flexlib.lib are located.

I have also included a test project which shows how to use flex with visual studio. This samples compiles a lex file and builds a console application.

If you just want the flex.exe without bothering with compiling it I have packed it here: flex-2.5.4-win32.zip (73.11 KB)