News for hackers. Stuff that matters.

kossovsky

Re:Set Timeout for any method in C# on Thursday July 16, 2009 @09:55AM (#707918)
callback is not good enough, it has to be a synchronous operation with ability to stop after specified number of milliseconds
Re:Set Timeout for any method in C# on Thursday July 16, 2009 @07:46AM (#707700)
Why not, try to create a loop that writes to the Console and set some timeout
sorry...

C# Protected Internal

http://kossovsky.net/index.php/2009/06/cshar-protected-internal/

I’ve noticed that most of the c# developers i’am talking to, know exactly what “public”, “private”, “protected” and “internal” access modifiers mean and how to use them, but when it comes to “protected internal” they start guessing the answer and it’s never the right one.

( Read More... | no comments | on HN )

SpeedTrace – .NET Profiler and Tracer

http://kossovsky.net/index.php/2009/07/speedtrace-net-profiler-and-tracer/

It is very important to be able to dynamically control the behavior of .NET applications and to keep track of some of the aspects of the application (i.e. how the application is performing, what errors are produced during runtime, how the application performs at peak times, how to dynamically alter the behavior of the application, etc).

( Read More... | no comments | on HN )

C# Rectangle Packing

http://kossovsky.net/index.php/2009/07/cshar-rectangle-packing/

Sometimes, you’re faced with the problem to cramp as many smaller textures as possible onto a larger texture. Typical cases are lightmaps, which are very small textures with dimensions that usually are not powers of two, or bitmap fonts where you want to try and fit the entire ascii character set onto a texture without wasting much space.

( Read More... | no comments | on HN )

Older »