Category: Programming

Sharp Develop

Posted on 11:12am 1/30/2008 by Bruno Silva in .NET, Open Source, Programming, Software

SharpDevelop

#develop (short for SharpDevelop) is a free and open-source IDE for C#, VB.NET and Boo programming language projects on Microsoft’s .NET platform. Of course that Microsoft Visual Studio Express Editions are freeware and are better that this IDE, but with #develop you get a chance to take a look a the source code and who knows, adapt it to develop in another language. #develop in written in C#.

SharpDevelop

The list of main features can be found in the project’s community website.

Vertigo: Slide.Show

Posted on 12:51pm 1/28/2008 by Bruno Silva in Freeware, Open Source, Programming, Silverlight, Web

Some time ago I’ve found an nice Silverlight 1.0 application which is now part of Silverlight.net Showcase. It is an open source configurable slide show application. The configuration is made by using XML or inline javacript (using JSON - JavaScript Object Notation).

Vertigo: Slide.Show

Vertigo: Slide.Show

See the live demo in Vertigo’s website. I had some issues while trying it on Firefox. The problem was Silverlight 1.1 September Alpha Refresh. So, in Internet Explorer it runs well with the 1.1 version, but to run it on Firefox you must have the stable 1.0 version.

This project is also hosted in Codeplex.

.NET Framework Library Source Code Debugging

Posted on 9:47am 1/17/2008 by Bruno Silva in .NET, Microsoft, Programming

.NET Framework

The .NET Framework library source code for debugging is now available. Follow the instructions to enable this kind of debugging in Visual Studio in Shawn Burke’s Blog.

Reference: Scott Guthrie ’s Blog.

Simply Genial - Wiimote based interfaces

Posted on 10:39pm 1/16/2008 by Bruno Silva in Games, Programming, Software

Recently I found out about some genial applications of wiimote. I cannot describe it. Just look at the videos.

Tracking Your Fingers with the Wiimote

Low-Cost Multi-point Interactive Whiteboards Using the Wiimote

Head Tracking for Desktop VR Displays using the Wii Remote

Read more about these projects and download the samples in this website.

C# operator overloading

Posted on 5:41pm 1/04/2008 by Bruno Silva in .NET, Programming

I’ve found out about a nice C# feature that I didn’t know about. Operator overloading. It allows you to define the operators like +,-,/*,+=,-=,!=,etc. for the classes you develop. How? Just add an static method named operator-<operator> where <operator> can be an operator like +. The first parameter must be of your class type (in this example MyType), the second one can be of any type. Inside the method body you implement the logic associated with your overloaded operator, returning an instance of your class.

public static MyType operator+(MyType o1,MyType o2){
     return new MyType(o1.Property1 + o2.Property1);
}
public static MyType operator+(MyType o,int i){     
     return new MyType(o.Property1 + i);

}

The code above allows you to do something like this:

MyType o1 = new MyType(10);
MyType o2 = new MyType(5);

MyType rs = o1 + o2;

Another nice feature is related with cast operations. You can allow something like (int)o1 (where o1 is an instance of MyType) by adding another static method to your MyType class. explicit/implicit keywords define if you must add (type) before your instance to trigger the cast. Implicit does an implicit cast when it is needed. With explicit you must and the (type) to cast.

public static explicit operator int (MyType from){
     return from.Property1;
}
© Bruno Silva | Powered by Wordpress