Thursday, August 1, 2013

Google Voice Setup

To setup a phone to work with the Google Voice
dial *71[followed by your gv #]and make the call. Your phone is now linked back to gv.

Undo Google Voice
Dial *73 and hit the call button. Phone will make a call but hang up. Then you should be able to dial into your Verizon vm with *86.

Wednesday, April 10, 2013

How to convert Oracle DateTime to C# DateTime

string[] strDate = {"2006-03-10 09:28:33", "2010-09-01 12:00:00" };

string pattern = "yyyy-MM-dd hh:mm:ss";
IFormatProvider culture = new System.Globalization.CultureInfo("en-US", true);
DateTime dateVal = DateTime.ParseExact(strDate[0], pattern, culture); dateVal.Dump();


3/10/2006 9:28:33 AM

Find out .NET version


Sub Version

Microsoft.Win32.RegistryKey installed_versions = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
string[] version_names = installed_versions.GetSubKeyNames();
//version names start with 'v', eg, 'v3.5' which needs to be trimmed off before conversion
double Framework = Convert.ToDouble(version_names[version_names.Length - 1].Remove(0, 1), System.Globalization.CultureInfo.InvariantCulture);
int SP = Convert.ToInt32(installed_versions.OpenSubKey(version_names[version_names.Length - 1]).GetValue("SP", 0));
SP.Dump(); 


0


Main Version

System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion().Dump();

v4.0.30319

Thursday, March 28, 2013

Is this beta

I am thinking this is an alpha.  Or does it matter?  

i am going to blog about MongoDB.