10
Jul/09
0

Machine intelligence is real intelligence

AI or artificial human intelligence (AHI) is was originally conceived to develop methods to help machines exhibit human-like thinking processes. However, we have far from achieved this objective. Instead a discipline of real machine intelligence (RMI) matured from these researches. Why deal with something that is artificial when machines have some form of real smarts [...]

« Read more ... »
16
Aug/09
0

Shadowing vs Hiding vs Overriding

In C#, it is easy to confuse hiding with overriding. Both are ways to change the implementation of elements from a base class. But there are some significant differences between the two. A further confusion steps in with the term shadowing. Shadowing is a VB concept. In C#, this concept is called hiding, though there [...]

« Read more ... »
Filed under: C#
27
Jul/09
0

When to use a Dictionary (Hashtable)?

Here’s a pretty good tutorial on hashtable / dictionaries. Found it while studying some performance issues between the use of try/catch vs contains key for a dictionary with about 200,000 key/value associations.

http://www.kirupa.com/net/dictionary_hashtable.htm

« Read more ... »
Filed under: C#
21
Jul/09
0

Multi-threading in C#

Threading is fun, because with it you can do a lot more stuff at the same time. For example, keeping your UI updated while your background tasks are running. C# supports parallel execution of code through multi-threading. A thread is an independent execution path, able to run simultaneously with other threads. Here, we examine three [...]

« Read more ... »
Filed under: C#
15
Jul/09
0

Remove System.Data and System.XML permanently (Visual Studio 2005)

In Visual Studio 2005, references to the System.Data and System.Xml are automatically added when new class files are created. This happens even when you do not use Data or Xml at all. Why should you always manually remove these references from your project after adding new classes? Time to remove them permanently.

« Read more ... »
Filed under: IDE tweaks
13
Jul/09
0

Disappearing Nested User Controls in VS2005

When trying to nest usercontrols, the child usercontrol sometimes disappears off the parent usercontrol. This is a commonly reported bug on the internet, and there’s a hotfix FIX:#842706 for vs2003 but not for vs2005, and its extremely annoying. What happens is that after placing the MyControl on your MyForm.designer.cs, it just disappears when you save MyParentControl in wysiwyg mode.

For me, the problem occurs because the Component Designer auto-validates & re-generates your MyParentControl.designer.cs code again. And, if your MyControl constructor requires initializing parameters, vs2005 will just delete that instantiation in MyParentControl.designer.cs.

« Read more ... »
Filed under: IDE tweaks
13
Jul/09
0

Showing User Controls On Toolbar C#

User controls when placed in the same project in visual studios some times don’t appear on your toolbar. Recently had this experience when loading up some code on another workstation. Here’s how to fix it.

« Read more ... »
Filed under: IDE tweaks
Copy Protected by Chetan's WP-CopyProtect.