This is another of the games in my “must have” list. I’m currently playing the trilogy of Prince of Persia and i’m loving it. Although they are great, Prince of Persia IV promises to be even greater.
In a previous post i released some images of the new prince of persia. This time, here is a in game video. By the looks of it, the game is fantastic!!!!
After this 2 games (street fighter and Prince of persia) i only need God of War 3 and i’m happy for a long long time!
This time i think they actually did it. Capcom finally brought street fighter to a new era. Without losing it’s personal mark (the 2D fighting system), they managed to insert 3D characters and animations in a game that i consider a “must have”.
About the gameplay, only when i get my hands on the game, i will know if it the has evolved for better or worse.
Meanwhile, where is a in game video (Excellent, by the way):
I came up with a simple error that can make lose some hours around something has simple has an operator.
imagine that you have the following operator definition:
public static bool operator ==(Player c1, Player c2) {
if( c1 == null && c2 == null ) {
return true;
}
if ( c1 == null || c2 != null ) {
return false;
}
return c1.Id == c2.Id;
}
The above code should work in a normal situation. But not in a situation where we use the operator inside it’s own definition. The code will enter a recursive state and it will eventually generate a Stack Overflow Exception.
So, in order to avoid the usage of the operator == inside it’s definition, you can use the alternative:
the Equals Type method inherit from object.
The following code demonstrates the correct implementation of the operator ==:
public static bool operator ==(Player c1, Player c2) {
if( Equals(c1,null) && Equals(c2,null) ) {
return true;
}
if ( Equals(c1, null) || Equals(c2, null) ) {
return false;
}
return c1.Id == c2.Id;
}
And here they are:
To do this i use mootools, a very fast and handy JavaScript framework.
Imagine that you got an element as following:
<img id="image" src="..." aaa="true" />
To get the value attribute “aaa” using mootools you only need to do the following:
$("image").getAttribute("aaa");
This solution will work in all browsers.
Wordpress is, since the beginning of 2008, my loyal companion in my blog. I not regret to have change from some ASP.NET platform available in the Portuguese community PontoNetPt to my own domain and my own blog.
Since i started to use wordpress the way i blog changed a lot. And because i have much control over my blog now, here some of the most important plugins i use:
And you? Do you have any plugin that you usually use and is not above? Share it with me.
That what happened to me after the upgrade from Firefox 2 to Firefox 3. For some strange reason, cache was totally disable. To solve this problem you need to change 2 of your Firefox configuration settings:
Open a new tab an type about:config
On the search bar that appears type browser.cache
Set the following atributes to true:
browser.cache.disk.enable and browser.cache.memory.enable
In my case, they were both set to false so in each browser request all the content was being downloaded… a little annoying.
i hope this helps

Red Alert was one of the games that marked my childhood. I remember when i first got a computer one of the first RTS games i played was red alert. And i loved it!
Now it’s time for Red Alert 3. New game design takes this game forward with the possibility to construct your bases in land or see. A lot of new units (one of my personal favorites is the tesla trooper and the vacuum bomb :D) that can be used both in land or see (yes, most units are amphibious ).
Nothing like seeing a gameplay demo in red alert 3 official site, here.
You can also see the promotion video here.
Defenatly a “must play” game!
The out keyword causes arguments to be passed by reference. This is like the ref keyword, except that ref requires that the variable be initialized before it is passed
in: MSDN C# Development Center
This post objective is to point out 4 reasons why you shouldn’t use this keyword in your regular C# programming:
It obligates the programmer to make code around it’s usage. Example: if you want to call a method with an out keyword, you must declare a variable first.
Now imagine you decide that the method should have 5 more parameters? And you think: “If i have one, i can have 5 more”. Now you have to declare 6 variables before the method, insert 6 variables into the method signature, and the obligation to set the variable before the end of the method.
it’s the diference between this:
int var1; int var2; int var3; int var4; int var5; int var6; Something(out var1,out var2,out var3,out var4,out var5,out var6);
and this,
MyObject obj = Something();
Methods that have outs in the signature are more dificult to use than the ones that don’t use them(see the code above).
One of the things that i hate are signatures of methods that have 5 or 6 out parameters and, from those 5 or 6 i only want to use 2 of them (for example).
In those cases, i am always obligated to declare the 6 variables, because we really need to pass all of them to the method. If a return object/struct is used, this problem doesn’t apply.
It’s Syntax! Ugly until the end… Yes is easy to use, but it makes unreadable code… Especially because most of the programmers use and abuse of it.
“How will i return this values? humm, making a nested struct or class is so dificult!!!!! I’ll just use the out keyword”
There is always a way around. If you have more than one return value consider the usage of a struct or a class. The code will be cleaner, more readable and all of your methods will be easier to use by other programmers.

It’s public. Almost every blogger made the announcement. A request was made by the mozilla team in order to beat up the world record. 8 million Downloads in 24 hours. In a few days we will no if the world record was beaten up or not.
Firefox 3 is really good. Fast, a lot faster than it’s previous version both in it’s load time and loading the pages.
But it has a huge drawback… Seams like the the mozilla team changed something with the plugin engine. Maybe that was part of the strategy to speed up the load time. One thing is true. The plugins i use most don’t work any more:
In fact the most important plugin above is, without doubt, Firebug. I hope an update is released soon because if that’s not the case, i must make a downgrade into Firefox 2.
UPDATE: Looks live there are several updates that i didn’t noticed.
For Firebug there is a beta release available. Get it here (Thanks Mário for the reference).
For colorzilla there is also a beta version. as far as i tested it works fine. Get the beta here.
Google sync unfortunately doesn’t have an update. I hope i comes out soon.
Finally Javascript Debugger has already new version updated for Firefox 3. I really don’t know why Firefox didn’t updated this plugin automatically.