Archive

Archive for the ‘Tips & Tricks’ Category

C# Image Processing with AForge.NET Framework

July 10th, 2009 Xander 6 comments

A couple of days ago i found a great framework called AForge.NET.

AForge.NET is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence – image processing, neural networks, genetic algorithms, machine learning, robotics, etc.

Read more…

VN:F [1.9.16_1159]
Rating: 4.6/5 (8 votes cast)

C# Rectangle Packing

July 9th, 2009 Xander 5 comments

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.

What you need then, is a rectangle packer, an algorithm that arranges as many smaller rectangles on a larger rectangle as can possibly fit.

Read more…

VN:F [1.9.16_1159]
Rating: 4.3/5 (6 votes cast)

SpeedTrace – .NET Profiler and Tracer

July 9th, 2009 Xander No comments

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…

VN:F [1.9.16_1159]
Rating: 4.7/5 (7 votes cast)

C# The “double” trouble

July 7th, 2009 Xander No comments

This is a very simple question with a not so simple answer…

Forget for a second about .NET.
If someone asks you how much is 1.000025 – 0.000025 your answer will probably be “1″ and correct. An easy question, right ?

Now, let’s go back to .NET and check if our calculations are correct.

Read more…

VN:F [1.9.16_1159]
Rating: 4.3/5 (6 votes cast)

C# Increment operator (++) question

July 1st, 2009 Xander 10 comments

Well, this is a nice one. We all familiar with incremental operators, but from what i saw yesterday… well, there is no need to give a developer some tricky assignment so he could find a way to make some bugs.

3bj4h786fc

Read more…

VN:F [1.9.16_1159]
Rating: 5.0/5 (6 votes cast)

SQL 2005 – Return query rows as one delimited column

June 30th, 2009 Xander 5 comments

Once in a while we need to return data from SQL as delimited string of values and not as rows. There are several ways to do that, but personally i like the next one.

Read more…

VN:F [1.9.16_1159]
Rating: 4.6/5 (8 votes cast)

C# string.Empty vs “”

June 29th, 2009 Xander 3 comments

As we know we have two ways to set a variable value to an empty string.
We can just set it to empty quotes “” or set it to string.Empty, but what is the difference and is there one at all ?

Read more…

VN:F [1.9.16_1159]
Rating: 4.2/5 (9 votes cast)

C# Protected Internal

June 29th, 2009 Xander 14 comments

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…

VN:F [1.9.16_1159]
Rating: 4.8/5 (17 votes cast)

Unusual software bugs

June 28th, 2009 Xander No comments

Unusual software bugs are a class of software bugs that are considered exceptionally difficult to understand and repair. There are several kinds, mostly named after scientists who discovered counterintuitive things.

Read more…

VN:F [1.9.16_1159]
Rating: 4.2/5 (5 votes cast)

C# Inheritance Question

June 25th, 2009 Xander 13 comments

The following are two simple questions related to C# inheritance.
Please try to give an answer without executing the code, otherwise where is the fun part ?
Read more…

VN:F [1.9.16_1159]
Rating: 4.6/5 (5 votes cast)

SEO Powered by Platinum SEO from Techblissonline
watch free movies