Monday, February 14, 2005

ASP.NET - User sob o qual corre o processo

System.Security.Principal.WindowsIdentity.GetCurrent().Name

Wednesday, February 09, 2005

Running .NET Framework 1.0 vs 1.1

No caso de se ter os dois instalados, e se pôr a correr uma aplicação compilada em 1.0, qual é a Framework que é usada, e como é que se pode alterar isso? Ora aqui está uma resposta simples (mas vai-se já aqui adiantando que é a 1.0, e que se pode alterar...).

Monday, February 07, 2005

Tao da Programação?

Hm... vejo que o fulano do Tao da Programação se veio inspirar aqui nas palavras de Lao Tzu, pelo menos uma vez...

Why are people starving?
Because the rulers eat up the money in taxes.
Therefore the people are starving.

Why are the people rebellious?
Because the rulers interfere too much.
Therefore they are rebellious.

Why do people think so little of death?
Because the rulers demand too much of life.
Therefore the people take life lightly.

Having to live on, one knows better than to value life too much.

Friday, February 04, 2005

File input (or "upload") in HTML forms

Hmmm... isto pode vir a dar jeito: