Friday, June 24, 2011
Monday, April 11, 2011
ID4175: The issuer of the security token was not recognized...
This error is thrown by sts.
Obviously, it is error in this section:
Obviously, it is error in this section:
<issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<trustedIssuers>
<add name="CN = test" thumbprint="12 34 56 78 89 45 45 45 45 45 44 44 44" />
</trustedIssuers>
</issuerNameRegistry>
At first look thubprint of certificate was OK. But when I open it in hex editor there was some characters that was not visible in text editor. I fix this and everything was OK. :)
Wednesday, April 06, 2011
Tuesday, March 29, 2011
Flatten objects tree structure
Flatten objects tree structure:
protected IEnumerable<T> Flatten<T>(IEnumerable<T> elements, Func<T, IEnumerable<T>> childrenFunc) { List<T> result = new List<T>(); result.AddRange(elements); IEnumerable<T> children = elements.SelectMany(childrenFunc); if (children.Count() == 0) { return result; } result.AddRange(this.Flatten<T>(children, childrenFunc)); return result; }
Monday, March 07, 2011
Tuesday, December 07, 2010
Powershell: Find certificate by thumbprint
cd cert:
dir -recurse | where {$_.Thumbprint -eq "84e2c011ad0c1b3f6d32f651069bba184c426158"} | Format-List -property *
dir -recurse | where {$_.Thumbprint -eq "84e2c011ad0c1b3f6d32f651069bba184c426158"} | Format-List -property *
Monday, October 18, 2010
Check how many open DB connection we have
SELECT SPID, STATUS, PROGRAM_NAME, LOGINAME=RTRIM(LOGINAME), HOSTNAME, CMD
FROM MASTER.DBO.SYSPROCESSES
WHERE DB_NAME(DBID) = 'MyDb' AND DBID != 0
FROM MASTER.DBO.SYSPROCESSES
WHERE DB_NAME(DBID) = 'MyDb' AND DBID != 0
Saturday, September 04, 2010
Unlock locked android
My child was playing with my HTC tattoo and he was try too many unsuccessful unlock patterns. When I try to unlock my phone it was asked for Google account credentials. But whatever I have try to enter I got a message:
"too many pattern attempts" and "invalid username or password"
The only solution that left was to do a factory reset :,(
And finally I found solution:
Enter your google username (with @gmail.com) and "null" as a password
"too many pattern attempts" and "invalid username or password"
The only solution that left was to do a factory reset :,(
And finally I found solution:
Enter your google username (with @gmail.com) and "null" as a password
Thursday, July 01, 2010
Wednesday, May 05, 2010
See cookie size in fiddler
To see cookie size in fiddler do the following:
- Choose from menu: Rules | Customize Rules
- Add "oSession["ui-customcolumn"] = oSession.oRequest["Cookie"].Length.ToString();" as the last line in method OnBeforeRequest
Subscribe to:
Posts (Atom)