sábado, 14 de agosto de 2010

Good movie - The Sorcerer's Apprentice

I watch a really good movie from Disney today, first I was in disbelief about it but after a few minutes I changed my mind.
The Sorcerer's Apprentice is much more than simply a copy of harry potter, in fact it doesn't resemble nothing harry potter movies...
Its references, for me, are more likely to be Dragon Ball Anime, Star wars (some jokes, see for yourself) and the good old medieval sorceres books (I can't remember the names, if you do please leave a comment =D).
Sum it up the effects are great and simple, the actors really get into the characters and the history is well made.
It worth your money go see it!

So I leave here with the thriller, enjoy it.

sábado, 24 de julho de 2010

Alias to namespaces in C#

I know that probabily you already know how to give an alias to your namespaces references and I know also there is some easy content in the web that explain that.

But this is a little tip that I never thought searching and step on it by chance.

Imagine that you are using two or more control libraries, one is from .NET (Desktop or Web) and the other are from external companies or from the community.

In this case it's very common to find a Label control, for example, in more than one library. So when that happens you'll have something like this:


Imagine calling these references all the time, this is bad for readability and also for the compiler, which have to load the reference in runtime instead of doing it in compile time.

There is a very simple way of not loading this references all the time and improving the readability, that are aliases.



So that is it, I hope you all liked it.

Cheers.

sábado, 10 de julho de 2010

Play as Master Hand in SSBM...WOW

I never tought that playing as master hand was possible, that is an incredible glitch and will make a lot of players very happy =D. Watch and do it to!!!

sexta-feira, 9 de abril de 2010

Programmers Excuses...Desculpas de programador

These are the TOP 20 excuses programmers give when the program doesn't work, I bet that you already used one, even if you're not a programmer:
20. "That's weird..."

19. "It's never done that before."

18. "It worked yesterday."

17. "How is that possible?"

16. "It must be a hardware problem."

15. "What did you type in wrong to get it to crash?"

14. "There is something funky in your data."

13. "I haven't touched that module in weeks!"

12. "You must have the wrong version."

11. "It's just some unlucky coincidence."

10. "I can't test everything!"

9. "THIS can't be the source of THAT."

8. "It works, but it hasn't been tested."

7. "Somebody must have changed my code."

6. "Did you check for a virus on your system?"

5. "Even though it doesn't work, how does it feel?

4. "You can't use that version on your system."

3. "Why do you want to do it that way?"

2. "Where were you when the program blew up?"

And the Number One Reply by Programmers when their programs don't work:
"It works on my machine"
---------------------------------------------------------------------------------
Este é o TOP 20 das desculpas utilizadas por programadores quando seu programa não funciona, eu aposto que você já utilizou uma, mesmo se você não for programador:
20. "Isso é estranho..."

19. "Ele nunca fez isso antes." (Isso nunca acontece antes ou eu não tinha visto isso)

18. "Funcionou ontem."

17. "Como isso é possível?"

16. "Deve ser um problema de hardware."

15. "O que você digitou errado que o fez falhar?"

14. "A algo engraçado em seus dados."

13. "Faz semanas que não toco nesse módulo!"

12. "Você deve estar com a versão errada."

11. "É só uma infeliz coincidência."

10. "Eu não posso testar tudo!"

9. "ISSO não pode ser a fonte DISSO."

8. "Funciona, mas não foi testado."

7. "Alguém alterou meu código."

6. "Você procurou por virus no seu sistema?"

5. "Mesmo não funcionando, como se sente?

4. "Você não pode usar essa versão no seu sistema."

3. "Porque você fazer isso dessa forma?"

2. "Onde você estava quando o programa explodiu?"

E a resposta número um pelos Programadores quando seus programas não funcionam:
"Funciona na minha máquina"