Fast VPN


 Join now for the fastest VPN service around

Posted in General | Leave a comment

Whitelist Outlook.com | Live.com | Hotmail.com

Got a call from a client today that my email are block from outlook.com, live.com and hotmail.com. Tried to talk to tech support which did not help. In the end I found a link to add my server ip to their white list.

If anyone else is looking for this here you go: https://support.microsoft.com/en-us/getsupport?oaspworkflow=start_1.0.0.0&wfname=capsub&productkey=edfsmsbl3&locale=en-us&ccsid=635639051175184163

Hope this saves you some time.

Posted in General | Leave a comment

Super Fast – VPN

 

 Join now for the fastest VPN service around

Posted in General | Leave a comment

Easy

Just for me Get it here

 

Posted in General | Leave a comment

Custom Numeric Format Strings

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

You can create a custom numeric format string, which consists of one or more custom numeric specifiers, to define how to format numeric data. A custom numeric format string is any format string that is not a standard numeric format string.
Custom numeric format strings are supported by some overloads of the ToString method of all numeric types. For example, you can supply a numeric format string to the ToString(String) and ToString(String, IFormatProvider) methods of the Int32 type. Custom numeric format strings are also supported by the .NET Framework composite formatting feature, which is used by some Write and WriteLine methods of the Console and StreamWriter classes, the String.Format method, and the StringBuilder.AppendFormat method.
Tip Tip
You can download the Formatting Utility, an application that enables you to apply format strings to either numeric or date and time values and displays the result string.
The following table describes the custom numeric format specifiers and displays sample output produced by each format specifier. See the Notes section for additional information about using custom numeric format strings, and the Example section for a comprehensive illustration of their use.
Format specifier
Name
Description
Examples
“0”
Zero placeholder
Replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string.
More information: The “0” Custom Specifier.
1234.5678 (“00000”) -> 01235
0.45678 (“0.00”, en-US) -> 0.46
0.45678 (“0.00”, fr-FR) -> 0,46
“#”
Digit placeholder
Replaces the “#” symbol with the corresponding digit if one is present; otherwise, no digit appears in the result string.
More information: The “#” Custom Specifier.
1234.5678 (“#####”) -> 1235
0.45678 (“#.##”, en-US) -> .46
0.45678 (“#.##”, fr-FR) -> ,46
“.”
Decimal point
Determines the location of the decimal separator in the result string.
More information: The “.” Custom Specifier.
0.45678 (“0.00”, en-US) -> 0.46
0.45678 (“0.00”, fr-FR) -> 0,46
“,”
Group separator and number scaling
Serves as both a group separator and a number scaling specifier. As a group separator, it inserts a localized group separator character between each group. As a number scaling specifier, it divides a number by 1000 for each comma specified.
More information: The “,” Custom Specifier.
Group separator specifier:
2147483647 (“##,#”, en-US) -> 2,147,483,647
2147483647 (“##,#”, es-ES) -> 2.147.483.647
Scaling specifier:
2147483647 (“#,#,,”, en-US) -> 2,147
2147483647 (“#,#,,”, es-ES) -> 2.147
“%”
Percentage placeholder
Multiplies a number by 100 and inserts a localized percentage symbol in the result string.
More information: The “%” Custom Specifier.
0.3697 (“%#0.00”, en-US) -> %36.97
0.3697 (“%#0.00”, el-GR) -> %36,97
0.3697 (“##.0 %”, en-US) -> 37.0 %
0.3697 (“##.0 %”, el-GR) -> 37,0 %
“‰”
Per mille placeholder
Multiplies a number by 1000 and inserts a localized per mille symbol in the result string.
More information: The “‰” Custom Specifier.
0.03697 (“#0.00‰”, en-US) -> 36.97‰
0.03697 (“#0.00‰”, ru-RU) -> 36,97‰
“E0”
“E+0”
“E-0”
“e0”
“e+0”
“e-0”
Exponential notation
If followed by at least one 0 (zero), formats the result using exponential notation. The case of “E” or “e” indicates the case of the exponent symbol in the result string. The number of zeros following the “E” or “e” character determines the minimum number of digits in the exponent. A plus sign (+) indicates that a sign character always precedes the exponent. A minus sign (-) indicates that a sign character precedes only negative exponents.
More information: The “E” and “e” Custom Specifiers.
987654 (“#0.0e0”) -> 98.8e4
1503.92311 (“0.0##e+00”) -> 1.504e+03
1.8901385E-16 (“0.0e+00”) -> 1.9e-16
\
Escape character
Causes the next character to be interpreted as a literal rather than as a custom format specifier.
More information: The “\” Escape Character.
987654 (“\###00\#”) -> #987654#
‘string’
“string”
Literal string delimiter
Indicates that the enclosed characters should be copied to the result string unchanged.
68 (“# ‘ degrees'”) -> 68 degrees
68 (“#’ degrees'”) -> 68 degrees
;
Section separator
Defines sections with separate format strings for positive, negative, and zero numbers.
More information: The “;” Section Separator.
12.345 (“#0.0#;(#0.0#);–“) -> 12.35
0 (“#0.0#;(#0.0#);–“) -> -0-
-12.345 (“#0.0#;(#0.0#);–“) -> (12.35)
12.345 (“#0.0#;(#0.0#)”) -> 12.35
0 (“#0.0#;(#0.0#)”) -> 0.0
-12.345 (“#0.0#;(#0.0#)”) -> (12.35)
Other
All other characters
The character is copied to the result string unchanged.
68 (“# °”) -> 68 °

Posted in General | Leave a comment

The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread’s user context, which may be the case when the thread is impersonating

Recently I’ve developed a site for a customer using MVC 5 with Asp.net Identity (OWIN) everything worked 100% locally then I deployed it to their server and all the proverbial wheels fell off.

Thanks to this wonderful post I’ve been able to resolve the issue in no time and get the customers site back online and working 100%.

Click here to see How to resolve this issue

Posted in ASP.Net Identity | Leave a comment

Web Hosting

If your’re looking for good priced web hosting for windows goto Aspnix

Posted in General | Leave a comment

System.Security.SecureString HowTo

Today I’ve had to look at System.Security.SecureString to store passwords. I would have never in my wildest dreams thought that you will have to use System.Runtime.InteropServices.Marshal to convert the SecureString value to an IntPtr and then convert that back to string.

Example:


public SecureString Value {       
get;      
   set;
}

public void DisplaySecureString()
{
   var valuePtr = Marshal.SecureStringToBSTR( Value );
   var stringValue = Marshal.PtrToStringBSTR( valuePtr );
   Console.WriteLine( stringValue );
}


 
Posted in .Net, C# | Tagged , , | Leave a comment

How to delete a Project in Team Foundation Server (TFS)

Open Visual Studio Command Prompt (2008), (2010), etc…

TFS 2008 and below:

TFSDeleteProject /server:ServerName ProjectName

TFS 2010 and above:

TFSDeleteProject /collection:http[s]://Servername:port/tfs “Project Name”

Warning: Deleting a team project is an irrecoverable operation. All version control, work item tracking and Team Foundation build data will be destroyed from the system. The only way to recover this data is by restoring a stored backup of the databases.

Posted in TFS | Leave a comment

30 Free Programming books

While browsing the interwebs I found the following site where you can get 30 free programming books.

Cheers

Posted in General | Leave a comment