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…
.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
Please let me know if you need any more information.
Microsoft, Visual Basic .NET
You can check out the entire discussion thread here.
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).
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â€ś:
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.
- Raytracing Topics & Techniques Part 1: Introduction
- Raytracing Topics & Techniques Part 2: Phong, Mirrors and Shadows
- Raytracing Topics & Techniques Part 3: Refractions and Beer’s Law
- Raytracing Topics & Techniques Part 4: Spatial Subdivision
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” ….
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:
- Get the latest flex distribution. You can find instructions on flex’s homepage.
- Extract the distribution package to some folder (ex: d:\flex).
- Download the VS.NET solution I have created – flexvsnet.zip (25.74 KB)
- Unzip flexvsnet.zip to the flex misc folder (ex: d:\flex\MISC).
- A new VS.NET folder is created under the MISC folder. Open the solution in that folder and build it.
- 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)