portella.com.br

Blog pessoal de Felipe Portella

Archive for the ‘Desenvolvimento’ Category





Evento gratuito sobre Scrum no Rio

without comments

scrum-meeting-banner

O Scrum Meeting 2.0 é um evento criado pela Dextra Sistemas e Teamware do Brasil para disseminar a cultura de projetos de desenvolvimento SCRUM.

Dados do Evento:
Quarta 28 de Outubro de 2009
Hotel Guanabara, Rio de Janeiro, RJ

Mais informações:

http://www.dextra.com.br/eventos/scrum-meeting-2.0.htm


Written by Felipe Portella

October 20th, 2009 at 8:57 pm

Posted in Desenvolvimento

Tagged with

How to install an assembly into the Global Assembly Cache in Visual C#

without comments

Written by Felipe Portella

October 8th, 2009 at 4:36 pm

Posted in .NET Framework

Tagged with

Desinstalando o Visual Studio 2008

without comments

Hoje eu perdi algumas horas com problemas com o meu VS2008. Ao executar o setup ele apresentava a seguinte mensagem de erro:

“A problem has been encountered while loading the setup components. Canceling setup.”

Como o setup era cancelado, não conseguia reparar ou executar a desinstalação. Apagar o diretório e chaves do registro também não adiantou, pois o instalador decta que outros produtos do Visual Studio 2008 estão instalados. Resolvi o problema executando o AutoUninstallTool disponível em:

http://msdn.microsoft.com/en-us/vs2008/bb968856.aspx

Neste site também há uma lista de todos os produtos que devem ser desinstalados caso queira realizar o procedimento manualmente.

Written by Felipe Portella

August 25th, 2009 at 11:36 pm

Posted in Desenvolvimento

Tagged with

Align String with Spaces [C#]

without comments

http://www.csharp-examples.net/align-string-with-spaces/

This example shows how to align strings with spaces. The example formats text to table and writes it to console output.

To align string to the right or to the left use static method String.Format. To align string to the left (spaces on the right) use formatting patern with comma (,) followed by a negative number of characters: String.Format(„{0,–10}“, text). To right alignment use a positive number: {0,10}.

Following example shows how to format text to the table. Values in the first and second column are aligned to the left and the third column is aligned to the right.

[C#]

Console.WriteLine("-------------------------------");
Console.WriteLine("First Name | Last Name  |   Age");
Console.WriteLine("-------------------------------");
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Bill", "Gates", 51));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Edna", "Parker", 114));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Johnny", "Depp", 44));
Console.WriteLine("-------------------------------");

Output string:

 -------------------------------
 First Name | Last Name  |   Age
 -------------------------------
 Bill       | Gates      |    51
 Edna       | Parker     |   114
 Johnny     | Depp       |    44
 -------------------------------

See also

Written by Felipe Portella

August 11th, 2009 at 11:57 am

Como matar o dragão e salvar a princesa

without comments

Certa vez um dragão aprisionou uma linda princesa em uma torre que fica em
uma ilha, a única forma de se acessar esta ilha era através de uma ponte na
qual o dragão ficava dia e noite de vigia, então lá vão nossos “heróis” da
Informática salvar a princesa, cada um a sua maneira:

*Programador Java:*

Chega, encontra o dragão. Desenvolve um framework para aniquilamento de
dragões em múltiplas camadas. Escreve vários artigos sobre o framework, mas
não mata o dragão.

*Programador .NET:*

Chega, olha a idéia do Javanês e a copia, tenta matar o dragão, mas é comido
pelo réptil.

Read the rest of this entry »

Written by Felipe Portella

July 18th, 2009 at 12:39 am

Posted in Desenvolvimento,cool

Tagged with ,

A First Look at Visual Studio 2010 and .NET 4.0

without comments

Written by Felipe Portella

July 14th, 2009 at 9:48 pm

Por que usar “story points”?

without comments

Usar pontos ou horas é uma discussão recorrente quando se adota métodos ágeis. Um amigo meu – Rodrigo Toledo – escreveu este interessante artigo que recomendo para quem trabalha com SCRUM ou outra metodologia ágil:

http://visaoagil.wordpress.com/2008/12/08/por-que-usar-story-points/

Written by Felipe Portella

July 1st, 2009 at 3:31 pm

Posted in Desenvolvimento

Tagged with

Como gerar números aleatórios para o seu algorítmo

without comments

random_number

2318.strip

Written by Felipe Portella

June 27th, 2009 at 12:06 am

Posted in Desenvolvimento,cool

Teste de classes internas

without comments

No arquivo AssemblyInfo.cs localizado na pasta Properties do projeto que
contém a classe interna que se deseja testar, adicione a seguinte
instrução:

[assembly: InternalsVisibleTo("InternalConstructor.Test")]

Isso torna classes internas visíveis ao assembly definido.

Dessa forma conseguiremos testar diretamente as classes internas, sem a
necessidade de testá-las através de chamadas de funções públicas que as
usam.

Written by Felipe Portella

June 26th, 2009 at 10:07 pm

How do I browse an old revision of a subversion repository through the web view?

without comments

Append something like this to your repository URL:

!svn/bc/<revision_number>/

E.g.

http://www.example.com/svnrepository/!svn/bc/3/

Written by Felipe Portella

June 4th, 2009 at 11:55 pm

Posted in Desenvolvimento