Codigos Fonte, Artigos e Dicas
paulodiogo
Este usuário ainda não compartilhou nenhuma informação biográfica
Artigos por paulodiogo
Criptografar Connection String (App.Confing / Web.Config)
03/10/10
public static void ProtectSection(String sSectionName)
{
// Open the app.config file.
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
// Get the section in the file.
ConfigurationSection section = config.GetSection(sSectionName);
// If the section exists and the section is not readonly, then protect the section.
if (section != null)
{
if (!section.IsReadOnly())
{
// Protect the section.
section.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider");
section.SectionInformation.ForceSave = true;
// Save the change.
config.Save(ConfigurationSaveMode.Modified);
}
}
jQuery: Input sempre em maiusculo
15/07/10
Hoje eu estava precisando colocar que a entrada de uns inputs ficassem sempre em maiusculas, encontrei um plugin do jQuery bem facim de usar =D
Criptografando Senhas com Java (“sha-1″)
15/07/10
Muito tempo sem posta no blog voltei =D
Hoje vou fazer um exemplo de como criptografar uma senha em java usando o padrao “sha-1″
JEE(2/2)Testando o seu projeto JPA com Eclipse e PostgreSQL
10/12/09

Voltando a postar… vamos agora testar os códigos gerados no post anterior…
JEE(1/2)Tutorial JPA com Hibernate, Eclipse e PostgreSQL
10/12/09

Versões usadas:
Eclipse 3.5 SR1
PostgreSQL 8.3
Driver PostgreSQL 8.3
Jboss
Restaurar banco do MySQL em C# (2/2)
24/10/09

Process.Start("cmd.exe", "/c /*CAMINHO DO MYSQL.EXE*/ +
" -u/*usuario*/ -p/*senha*/ /*banco*/ < "+/*CAMINHO DO ARQUIVO .SQL*/);
Converter List para DataSet
24/09/09
Usando Dictionary no C#
12/09/09

Vamos lá… vou falar sobre o Dictionary do c#, eu falaria que se parece muito com o HashMap do Java, pelo que eu usei…
Fazendo backup do MySql com C# (1/2)
03/09/09
Pegar endereço a partir de CEP
03/09/09
