Quarta-feira, 24 de Junho de 2009

How to install a MSMQ

http://msdn.microsoft.com/en-us/library/aa967729.aspx

To install Message Queuing 4.0 on Windows Vista
  • Open Control Panel.
  • Click Programs and then, under Programs and Features, click Turn Windows Features on and off.
  • Expand Microsoft Message Queue (MSMQ) Server, expand Microsoft Message Queue (MSMQ) Server Core, and then select the check boxes for the following Message Queuing features to install:
MSMQ Active Directory Domain Services Integration (for computers joined to a Domain).
MSMQ HTTP Support.
  • Click OK.

If you are prompted to restart the computer, click OK to complete the installation.

Sleep em Csharp

using System.Threading;
...

int SLEEP_TIME = 300;
...

void Sleep() 
System.Threading.Thread.Sleep(SLEEP_TIME); 
}

Terça-feira, 23 de Junho de 2009

MSMQ: Message Queue Cannot find a formatter capable of reading this message.

Solution: Define a formatter for example of type string
queue = new MessageQueue(quequeName);
queue.Formatter = new XmlMessageFormatter(new string[] { "System.String" });

use this when writting and reading.


Domingo, 21 de Junho de 2009

What's New in Google Earth 5.0

Terça-feira, 9 de Junho de 2009

How to Disable StickyKeys

Problem: When you press E - opens explorer, L - logout, ...

This problem is called stickykeys (accessibility options of windows).

First Solution:
1. Log off of your windows session and then Log on again;
2. After log on, press the shift 5 five times fast;
3. You will find the icon of the StickyKeys on the traybar and then Turn off the StickyKeys.


Second Solution: (if the first solutions wasn't enough)

Open the regedit and locate the key for all users:
HKEY_USERS\.DEFAULT\Control Panel\Accessibility\StickyKeys
ON = The default is 510
OFF = 506

them locate the key for the current user:
HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys
ON = The default is 510
OFF = 506

Third Solution:
Log on to your Windows using another account... :|

Safari: DIV problem - one possible solution

When using Safari Browser, if you have problems with DIV  try change only the class associated to a DIV:

thediv = document.getElementById(wdiv);

thediv.className == 'ClassForSafari'
or
thediv.className == 'ClassForInternetExplorer'

And aplly the changes to each browser.



Domingo, 7 de Junho de 2009

Renault Megane: Consumo Instantaneo Oscila Muito

Se o Indicador de Consumo Instantaneo Oscilar Muito, efectuar os seguintes passos:
  1. Verificar se está activo o alerta de mudança de óleo (o problema está aqui);
  2. Se Estiver, colocar o computador de bordo no ecrã que tem a mensagem "Mudança de Óleo" e carregar na botão de reset que está no painel de instrumentos durante 15 segundos (ver manual do carro para mais detalhe);
  3. Após fazer reset, o símbolo de alerta com a chave desaparece e o indicador de consumo instantaneo volta ao normal ;)