Para acessar o VBA no Excel 2007 basta carregar em Alt+F11 e o editor aparece.

Cria-se um ficheiro Uninstall.bat com o seguinte conteúdo.
A aplicação arranca a partir de uma consola de DOS minimizada.

@echo off
REM /qf Pergunta se quer reparar ou desinstalar
start /min msiexec /x {Product Code} /qf

- CTRL + ALT + END: Abre o Microsoft Widnows NT caixa de diálogo de segurança.
- ALT + PageUp: Alternar entre programas da esquerda para a direita.
- ALT + PageDown: Alternar entre programas da direita para a esquerda.
- ALT + INSERT: Percorrer por meio de programas utilizados mais recentemente no fim.
- ALT + HOME: Mostrar Menu Iniciar.
- CTRL + ALT + BREAK: Mudar o computador cliente entre uma janela ea tela inteira.
- ALT + DELETE: Mostra o menu janelas.

Um Trigger é um tipo de Procedure que é executado automaticamente após a alteração numa tabela ou view.

A sua utilização não é muito aconselhada, visto reduzir a perfomance da base de dados.

Sintaxe Base:

CREATE TRIGGER
nome_da_trigger
ON { TABLE | VIEW }
{
{ { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [DELETE] } }
}

Exemplo:

CREATE TRIGGER

Calcula_Credito

On Conta_Corrente

AFTER INSERT,DELETE

AS

BEGIN

DECLARE @CLIENTE INT

SELECT @CLIENTE = Numero_Cliente FROM INSERTED

IF @CLIENTE IS NULL SELECT @CLIENTE = Numero_Cliente FROM DELETED

UPDATE Clientes

SET Clientes.Credito = (SELECT ISNULL(SUM(Conta_Corrente.valor), 0)

FROM Conta_Corrente

WHERE Conta_Corrente.Numero_Cliente = Clientes.Cliente)

END

To test some DOS commands you can go to Start/Run and write CMD and go to a DOS command line.

“copy con” – A user can create a file using this command. Example: “Copy con example.txt”
“md one two three” – To quickly create multiple folders at same time in DOS.
“rd /s” – The DelTree command is not supported anymore. You can use rd with the /s option to do the same thing.
“Type”, “Edit” – Use Type or Edit to see a file contents.

Camtasia is a screen video capture program that will let you record your screen to create training, demo, and presentation videos, aka screencasts.

Camtasi_boxshot


mcsft-error2

“ It seems that the iPhone Dev-Team has finally done the impossible — they’ve gone and unlocked the iPhone 3G. The hack isn’t out yet (the team says they’re shooting for a December 31st release), and it requires that you’ve got a baseband of 2.11.07 or earlier. The team is packaging the app — formerly codenamed “yellowsn0w” — into a user-friendly app a la PwnageTool and QuickPwn.”



 

Division with 2 Decimal Digits

     aLeft = 190100
     aRight = 190 mod 100
     Height = aLeft & “.” & aRight

 

In this case, i do a replace of the chars that are not accepted in a file name.

myStr = myReplace(myStr)

function myReplace(myStr)
         myStr = Replace(myStr, “/”, “”)
         myStr = Replace(myStr, “\”,”")
         myStr = Replace(myStr, “*”,”")
         myStr = Replace(myStr, “:”,”")
         myStr = Replace(myStr, “?”,”")
         myStr = Replace(myStr, “<”,”")
         myStr = Replace(myStr, “>”,”")
         myStr = Replace(myStr, “|”,”")
         myStr = Replace(myStr, “”"”, “”)

         myReplace = myStr
end function