TFS API to manipulate your server Workspaces

Hi all, one in a while we need to do some changes within our TFS Build process template, and a easy way to do it is using powershell in pre or post build command.

I will add a sample code to find the current workspace and then you can program what you need from this point on.

Code:

# load the needed client dll’s
[void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.TeamFoundation.VersionControl.Client”)

#here I’m considering that your workspace is one folder up

$rootBuildPath = (get-item $PSScriptRoot ).parent.FullName

#here I get the workspaces set for that local folder

$workspaceInfos = [Microsoft.TeamFoundation.VersionControl.Client.Workstation]::Current.GetLocalWorkspaceInfoRecursively($rootBuildPath)

#here I can get the tfs collection

$tfsCollection = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection($workspaceInfos[0].ServerUri);

#then I can get the version control service

$vc = $tfsCollection.GetService([type] “Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer”);

#and for example, download something

$fileXml = Join-Path -Path $rootBuildPath -ChildPath “file.xml”
$itemToDownload = $vc.GetItem(“$/teamProjectName/file.xml”, [Microsoft.TeamFoundation.VersionControl.Client.VersionSpec]::Latest);
$itemToDownload.DownloadFile($fileXml)

 

It works for all xaml builds and also for the new build system.

OpenWrt – OS for embedded devices

Hi there,

If you are looking for some powerful SO for your routers, modems, repeaters I can say that you should give a try to OpenWrt. I tried it and I install in my two devices here:

TL-WA850RE-01[1]
TL-WA850RE
First I installed in my TL-WA850RE, using the default firmware and I had no issues. Set it up using the GUI Luci, and it worked well as expected. Seems that it works better than the original firmware, and I have way more options to set up this little repeater. Actually now it works like a regular router as well as a repeater. OpenWrt makes any device a repeater easily, I tested it with my second device.

 

 

TL-WR841N-01[1]
TL-WA850RE
My second device TL-WR841N, it’s a bit more powerful, but it has only 4MB of storage, and it is a problem sometimes when you want to install a custom software. I had installed the main latest trunk, it worked but I had no GUI. Then when I tried to install the GUI got issues with my storage. Using the forum I was able to find another way, and all is described in the forum, click here to check.

After installed the GUI I was able to set up my network quickly. Also it’s possible to make any regular router a repeater, I tried here and it works pretty well (look on YouTube how to set it up). Also I was able to define some host names, and point then to some specific IP address, make my local network more accessible.

OpenWrt also has a full dashboard to control what is going on in your network. If you like to change things and play with your devices I recommend that. Just be careful to not brick your devices, read the forum and act knowing that you may break something. Try to understand things before doing them, just it is enough. Good luck!

Como verificar SHA1 de imagens ISO?/How to verify ISO’s SHA1

Se você quer ter certeza que o seu ISO não está corrompido, use a comparação de SHA1.

Para isso vc precisa do software sha1sum:
http://www.labtestproject.com/files/sha1sum/sha1sum.exe

Pelo command, vá até a pasta do software baixado e digite:
sha1sum nomedoarquivo.iso

Após alguns minutos vc vai ver o SHA1 do ISO verificado.

Agora basta ir até onde vc baixou o arquivo e ver há o SHA1 disponível para comparar, ou então procure no google o SHA1.

If you have to be sure if your ISO is not corrupted you can use the SHA1 compare.

For that you need the software sha1sum:
http://www.labtestproject.com/files/sha1sum/sha1sum.exe

Using cmd, go to the software’s folder and type:
sha1sum ISOName.iso

After some minutes you will see the SHA1 from your ISO.

Now you just need to compare the SHA1 calculated with the one available where you downloaded your ISO, or look for the SHA1 on google.

Microsoft VCdRom: Rode ISOs sem instalar Daemon, Alcohol, etc…

Ok, sei que quase todo mundo usa algum tipo de software para rodar suas isos, e que eles funcionam muito bem. Mas o que quero falar aqui é sobre um programa da Microsoft (Microsoft VCdRom), antigo, que tem 60kb (Isso mesmo, 60 kb!!!) e que faz a mesma coisa. Juro, funciona mesmo.

O que você precisa fazer é baixar esse arquivo do site da Microsoft.

E para configurá-lo siga esse link.

 

Uso a um bom tempo e funciona muito bem. E é bem leve.

Recomendo!

Picasa 3 – Você ainda não usa?

Já usava o picasa há um tempo atrás mas acabei me acostumando ficar sem ele… depois de tanto tempo muitas melhorias aconteceram… é um software indispensável para quem gosta de organizar bem as fotos.

Coisa legais:
Reconhecimento facial
Videos com as fotos das pessoas que você quiser
Edição automática de fotos
Montagens em geral

… tudo isso bem fácil de fazer.

É muito bom.

http://picasa.google.com/

A opção de hibernação não está disponível no Windows Vista

Pessoal, muitas vezes a opção de hibernar do windows vista some! Hoje tive esse problema (pela segunda vez) após uma atualização.

Resolução

Para resolver o problema, use a ferramenta de linha de comando PowerCfg para habilitar o recurso de hibernação. Para fazer isto, execute as seguintes etapas:
Observação Caso o computador não seja compatível com o recurso de hibernação, não é possível habilitá-lo. Para obter informações sobre como usar a ferramenta PowerCfg na determinação do suporte do computador ao recurso de hibernação, consulte a seção "Mais informações".

1. Clique em Iniciaro botão Iniciar, digite comando na caixa Iniciar Pesquisa, clique com o botão direito do mouse em Prompt de Comando na lista Programas e, em seguida, clique em Executar como administrador.
Permissão Controle de Conta de Usuário Caso você seja solicitada a senha de administrador ou a confirmação, digite a senha ou clique em Continuar.

2. No prompt de comando, digite powercfg /hibernate on.

 

Fonte: http://support.microsoft.com/kb/929658/pt-br