Archive for April, 2009

Webcast Best of DevDays | Optimização de Performance de Web sites

Wednesday, April 29th, 2009
Autor: Tiago Andrade e Silva


A sessão “Optimização de Performance de Web sites“, apresentada no evento DevDays09 da Microsoft, foi considerada uma das melhores. Nesse sentido recebei o convite da Microsoft para gravar a sessão no formato webcast. A sessão já se encontra disponibilizada online.

Proxy Bypass – Sample code

Tuesday, April 28th, 2009
Autor: nuno.lourenco


Here is a sample code for bypassing web proxies.

Useful, maybe?!
For testing your apps, or for running your unit tests, I think it’s really useful.

 1: public class NoProxy : IWebProxy
 2: {
 3:    #region Instance
 4:    public static readonly NoProxy Instance = new NoProxy();
 5:  
 6:    private NoProxy() { }
 7:    #endregion
 8:  
 9:    #region IWebProxy Members
 10:   public ICredentials Credentials
 11:   {
 12:      get
 13:      {
 14:         throw new NotImplementedException();
 15:      }
 16:      set
 17:      {
 18:         throw new NotImplementedException();
 19:      }
 20:   }
 21:  
 22:   public Uri GetProxy(Uri destination)
 23:   {
 24:      throw new NotImplementedException();
 25:   }
 26:  
 27:   public bool IsBypassed(Uri host)
 28:   {
 29:      return true;
 30:   }
 31:   #endregion
 32: }

Note: All we want to do is inform that we want that the URI is to be bypassed and therefore not be under the definitions/restrictions of the proxy.

Cheers.

SQL Orphan Users

Tuesday, April 28th, 2009
Autor: nuno.lourenco


Steps To Resolve Orphaned Users 1. Run the following command for the orphaned user from the preceding step:

Use Northwind go sp_change_users_login ‘update_one’, ‘test’, ‘test’

This relinks the server login “test” with the the Northwind database user “test”. The sp_change_users_login stored procedure can also perform an update of all orphaned users with the “auto_fix” parameter but this is not recommended because SQL Server attempts to match logins and users by name. For most cases this works; however, if the wrong login is associated with a user, a user may have incorrect permissions. 2. After you run the code in the preceding step, the user can access the database. The user may then alter the password with the sp_password stored procedure:

Use master go sp_password NULL, ‘ok’, ‘test’

This stored procedure cannot be used for Microsoft Windows NT security accounts. Users connecting to a SQL Server server through their Windows NT network account are authenticated by Windows NT; therefore, their passwords can only be changed in Windows NT.

Only members of the sysadmin role can change the password for another user’s login.

http://support.microsoft.com/kb/274188/

Fullsix reconhecida como “Microsoft Silverlight Partner”

Tuesday, April 28th, 2009
Autor: Tiago Andrade e Silva


A Fullsix Portugal foi recentemente reconhecida como “Microsoft Silverlight Partner” como pode ser constatado no Directório de Parceiros.

A Fullsix reforça assim a sua posição e empenho no desenvolvimento de aplicações utilizando as tecnologias da camada de apresentação da Microsoft. Foi a primeira, e actualmente a única, empresa Portuguesa a ser considerada como parceira nesta tecnologia.

SilverlightPartner

Please re-install Visual Studio – Error Message

Tuesday, April 21st, 2009
Autor: nuno.lourenco


Com a última actualização do Windows XP SP3 surgiu um problema com o acto de actualizar web services através do Visual Studio, ou seja, web references a web services. Tal funcionalidade por algum acaso ficou indisponível, o mesmo é dizer que na realidade surgiu uma janela Windows de erro com a mensagem:

 

The components required to enumerate web references are not installed on this computer. Please re-install Visual studio

Tudo isto se passou com o Visual Studio 2008 SP1. Reinstalei apenas o SP1 do Visual Studio 2008 e tudo ficou na mesma.

Solução:

 

Se se depararem com tal situação no futuro, seja no Visual Studio 2005 ou 2008, executem o seguinte comando, na janela de prompt da respectiva versão, no meu caso -  Visual Studio 2008 Command Prompt:

 

devenv /resetskippkgs

 

Et voilá, ce ça.

Bom trabalho.


Better Tag Cloud