Problem with VC90 redistributables
I was facing a problem trying to run my application still compiled in debug in another machine (not a developer one, in other words without Visual Studio installed). Looking the Windows Logs -> Application appears this error:
Activation context generation failed for “C:\Projects\MyProgram.dll”.Error in manifest or policy file “C:\Projects\Microsoft.VC90.DebugCRT.MANIFEST” on line 4. Component identity found in manifest does not match the identity of the component requested. Reference is Microsoft.VC90.DebugCRT,processorArchitecture=”amd64″,publicKeyToken=”1fc8b3b9a1e18e3b”,type=”win32″,version=”9.0.21022.8″. Definition is Microsoft.VC90.DebugCRT,processorArchitecture=”amd64″,publicKeyToken=”1fc8b3b9a1e18e3b”,type=”win32″,version=”9.0.30729.4148″. Please use sxstrace.exe for detailed diagnosis.
The simple way to solve this was to edit the Microsoft.VC90.DebugCRT.MANIFEST file and change the version to the one that I have installed on the machine (in the case the VS 2008 redistributable download from here), so the begining of end file looks like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<noInheritable></noInheritable>
<assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8"
processorArchitecture="amd64" publicKeyToken="1fc8b3b9a1e18e3b">
</assemblyIdentity>
Taxímetro On-Line
Calcula o Preço e Ensina o Caminho
Disponível para as seguintes cidades: Rio de Janeiro, São Paulo,
Belo Horizonte, Vitória, Salvador e Recife.
Além de calcular o preço (aproximado) que ficaria um taxi entre
dois endereços fornecidos (rua, nº do prédio e bairro), ainda nos
fornece o trajeto em detalhes (nome das ruas que o motorista deve pegar, e
até se é para virar à direita ou à esquerda, quando precisa sair de
uma rua e pegar outra).
www.precodotaxi.com/
Beginning Google Android Development for .NET Developers – Part 1
How To: Transfer your PuTTY settings between computers
Reference:
downloadsquad.switched.com/2007/02/01/howto-transfer-your-putty-settings-between-computers/
Exporting Your PuTTy Configuration
Putty stores its settings in the Windows registry. To save a backup of your Putty settings, you’ll need to export this registry key to a file.
HKEY_CURRENT_USER\Software\SimonTatham
(Simon Tatham is the original developer responsible for PuTTy)
1. Click Start->Run and type “RegEdt32″ in the “Open” dialog. Click “Ok”
2. Press “Ctrl+F” to bring up the Find dialog. Enter the name of the key, “SimonTratham” in the “Find What” field, and make sure only “Keys” is checked in the “Look At” section of the dialog. Finally, click “Find Next”
3. The search may take a while, reminding us that the Windows Registry is a large and mysterious place where dragons be. Let’s use these few seconds to reflect on the fact that you should never, ever, never change things in the registry unless you are absolutely, positively, totally, completely, 100% dead sure that you know exactly what you’re doing. When the search completes we’ll see the key name for which we’re looking.
4. Click File->Export. Give your file an appropriate name like, “putty.reg” and click “Save”
5. We’re done! Save the putty.reg file somewhere safe. The file doesn’t contain any passwords or actual SSH key values so, it’s relatively safe from prying eyes. Still, it does contain your configuration and that kind of data is a private matter.
Importing Your PuTTy Configuration
To import your saved PuTTy configuration on any other Windows computer simply copy your exported registry key, right click on the file and click “Merge”
Windows will ask you for confirmation that you want to import this set of registry values. We know this file is safe, because we created it but, you should never import registry information from an unknown source.
That’s all you need to know about moving your PuTTy configuration from one machine to another. This can be really useful information when upgrading to a new PC or, if you’re an office IT guy where your users all have a standard list of servers they need to connect via SSH, you can create a reference configuration on once machine and “share” it between every computer in the office.
CryptographicException due to PaddingMode of TripleDESCryptoServiceProvider
Today I faced a “bug” in my decryption algorith due to the PaddingMode used by the TripleDESCryptoServiceProvider. As I was using the PaddingMode.PKCS7, when I try to decrypt using a wrong key (not the same key used to encrypt) I receive a System.Security.Cryptography.CryptographicException with the message “Bad Data”
This is not the behaviour that I wanted for my application. I want to decrypt and give as a result some invalid data … but decrypt …
If I change the PaddingMode in the correct cases (right keys) with input data that is not Base64, I´ll receive decrypted string that has spaces at the end … which is not also a desireble behaviour for me.
My solution was to use always PaddingMode.PKCS7, try to decrypt, catch the exception (when occurs) and decrypt again now without Padding.
If anyone has a better approach I will be happy to hear …
The Cars of Tomorrow
Changing Education Paradigms
Agile Tour Rio 2010
O Agile Tour, uma série de eventos sem fins lucrativos em diversas cidades durante os meses de outubro e novembro de 2010, irá passar pelo Rio de Janeiro! Em 2009, a segunda edição do Agile Tour atraiu mais de 2.500 participantes em 18 cidades espalhadas pelo mundo (Canadá, China, França, Luxemburgo, Suíça, EUA).
No Rio de Janeiro, o evento ocorrerá no sábado, dia 30 de outubro de 2010 e será GRATUITO! O evento contará com cinco palestras, realizadas por pessoas de renome nacional e por um palestrante internacional (nome a confirmar). Além disso, haverá um evento de confraternização ao final.
O Agile Tour Rio 2010 irá acontecer na PUC-Rio, Gávea.
Realize sua pré-inscrição e veja mais detalhes em:
Lista traz os 25 piores erros de programação
A Common Weakness Enumeration atualizou a sua lista com os 25 erros mais comuns que podem ser utilizados para invasões de sistema e outros crimes virtuais.
A lista é elaborada com o apoio de empresas como a McAfee, Microsoft, Oracle e Symantec. Organizações como a Open Web Application Security Project e o Web Application Security Consortium também participam do esforço.
O documento completo com os perfis pode ser encontrado no site oficial da CWE:
Microsoft Project Natal
www.xbox.com/en-US/live/projectnatal/
Este artigo explica um pouco como funciona a tecnologia por traz do Project Natal para X-Box 360.









