Categories
- Active Directory
- Apache
- ASP.Net
- Attributes
- Batch Files
- C#
- FireFox
- Generics
- IIS
- Internet Explorer
- JavaScript
- jQuery
- LINQ
- Microsoft AJAX
- Microsoft Office
- Microsoft TechNet
- MS Build
- MS SQL Server
- MVC
- Regular Expressions
- SSIS
- Subversion
- T-SQL
- Team Foundation Server
- This and that
- Visual Studio
- WCF
- Web Services
- Windows 7
- Windows Server 2008 R2
- WinForms
- WordPress
Archives
- January 2012
- October 2011
- September 2011
- August 2011
- June 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- May 2006
- March 2006
- January 2006
Meta
Monthly Archives: June 2009
Convert Hex to Readable String and Readable Text to Hex
If you ever need to convert Hex data to readable strings or the reverse, try the following methods: private static readonly char[] HexChars = "0123456789ABCDEF".ToCharArray(); private static string ConvertToHex(string ascii) { if (ascii == null) return null; if (ascii == … Continue reading
Posted in C#
Leave a comment
Read a CSV file with Regular Expressions in .Net
Here’s how you can read a CSV file using Regular Expressions in .Net: </p> public static DataTable GetDataTableFromCsvFile(string file) { // Where the CSV data goes DataTable dt = new DataTable("CsvData"); // The pattern used to parse the CSV const … Continue reading
Posted in C#, Regular Expressions
Leave a comment
Reading a CSV File with an OleDbDataAdapter and Jet
Reading a comma delimited is quite simple with an OleDbDataAdapter and Jet 4.0: private static DataTable ReadCsvFileViaJetOleDb(string file) { string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"" + Path.GetDirectoryName(file) + "\\\";Extended Properties=\"text;HDR=Yes;FMT=Delimited\""; string query = "SELECT * FROM " + file; DataTable dt … Continue reading
Posted in C#
Leave a comment
July 2009 IT Toolbox Column for TechNet Magazine
The July 2009 issue of TechNet Magazine is out on the website. Check out my IT Toolbox column here: July 2009 TechNet Magazine IT Toolbox In this issue I cover: ObserveIT Express: Audit your Users’ Sessions Mouse Tracks 2009 Enterprise … Continue reading
Posted in Microsoft TechNet
Leave a comment