Welcome to Hardcode Sign in | Join | Help

June 2008 - Posts

But is now implemented in TR1 or Technical Revision 1: Associated Laguerre polynomials, Irregular modified cylindrical Bessel functions and of course Spherical Bessel functions of the first kind !

Cool, it seems Flex SDK comes with source code for the entire framework (in C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1\frameworks\source).

Surprisingly, Flex code runs extremely well, at about 300%-500% duration of the same .NET code speed. And all this with serious image-processing (in Flex with BitmapData).

Whoa at last a simple way to do it.

Whoa :) this is huge news in the mobile space. And, no, this won't make Symbian a better mobile OS, it's still crap.

I encountered yesterday a terrible issue in ActionScript 3 (Flex): files (with new File) suddenly won't open, and if you examine (watch) the File object you'd see a weird "function Function {}" string appended to file name.

The issue was traced to an extension of the Array class (using Array.prototype.myfunction), simply its presence will cause this bug.

(and yes, I'm doing Flex at the moment, having to translate some C# code to run in Air). 

Every software that has "Departments" somewhere is Enterprise :)

Ok I'm off to San Francisco ... 

I've just saw a comet - really impressive and beautiful, 2 seconds only though.

Whoa! It seems that Michael Abrash is involved in the Larrabee project by Intel!

As MeasureString adds some left-right padding, a better use is MeasureString( "m"+str+"m").Width -  MeasureString("mm").Width

Why do I need 5 clicks to add a feed to my netvibes page ?

Using the ThreadPoolWait class from here you can simply convert any repetitive task to parallelized:

for( i = 0; i < 1000; i++)

DoWork( data[i]);

becomes:

ThreadPoolWait tpw = new ThreadPoolWait();

for( i = 0; i < 1000; i++)

{

tpw.QueueUserWorkItem( new WaitCallback( o => DoWork((string)o)), data[i]);

if( tpw.Remaining > 20)

tpw.WaitOne();

}

while( tpw.Remaining > 1)

tpw.WaitOne();

If you spend a lot of time using SQL Server check this addon - it really rocks.

Having

int i = control.NewProperty;

The compiler throws

error CS1061: 'System.Web.UI.HtmlControls.HtmlControl' does not contain a definition for 'NewProperty' and no extension method 'NewProperty' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlControl' could be found (are you missing a using directive or an assembly reference?)

Is there something I'm missing ? :) Extension properties shouldn't have been implemented in C# 3.0.

Be very careful when you add a custom ISAPI extension to IIS like FastCGI etc and specify Limit to Verbs to not write them as you may be used "GET, POST, HEAD" but without any whitespace at all - you may otherwise either encounter 403.1 IIS status code or other bizarre errors.

If you have sharp eyes you've noticed a "Make Obect ID" entry in Visual Studio watch context menu. What does that do ? See here.