January 2008 Entries
Sometimes working with pure XML is our only option and we may just want it as clean as it can be. I usually use the XmlDocument object to load and/or create the XML and manipulate it and then at the end of the day, I'll use the InnerXml property to get pure XML, which I usually save to a file or do something with or I may just be serializing a Serializable object to XML. The XmlDocument object by default assigns a namespace to the XML string and also includes the declaration as the first line of the XML document....
Here is a handy script that I usually run after designing a database. My database designs are usually consistent and they are made up of certain fields/columns that exist on all tables. Ideally, in my world all tables should have an "IsDeleted/bit" column and some auditing columns such as "CreatedOn", "ModifiedOn", "CreatedBy" and "ModifiedBy". To reduce the time it takes to design these tables, I always ignore those columns and run this script after I'm done with the design. The script simply loops through all the tables in the database and determines whether or not it has the required columns, if not it...
It is DONE! I posted a while back about the possibilities that the .Net Framework Library source code will soon be available to the public and that day has come. Scott has a post up about the release. Today I'm happy to announce that this is now available for everyone to use. Specifically, you can now browse and debug the source code for the following .Net Framework libraries: .NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, etc). ASP.NET (System.Web, System.Web.Extensions) Windows Forms (System.Windows.Forms) Windows...
Apparently, Microsoft is giving away a free Ebook which includes content from three recent Microsoft press publications. Excited as I was the download link doesn't work!!!! arrrgggghhhh! Anyway, the details are below just incase they fix it. Here are the details. • Introducing Microsoft LINQ by Paolo Pialorsi and Marco Russo (ISBN: 9780735623910)This practical guide covers Language Integrated Query (LINQ) syntax fundamentals, LINQ to ADO.NET, and LINQ to XML. The e-book includes the entire contents of this printed book! • Introducing Microsoft ASP.NET AJAX by Dino Esposito (ISBN: 9780735624139)Learn about the February 2007 release of ASP.NET AJAX Extensions 1.0,...
Once you start building applications that run every so often for an undefined/unknown amount of time, its very possible that two processes may overlap. For example, if you have a schedule task that executes a console application every 5 mins, it is possible that very much possible that it will execute another before the previous one completes. So, how do we determine if a process is already running? So far I've seen three ways of doing it. Use the Singleton pattern Use Mutex Use System.Diagnostics (my preffered method) /// <summary>
/// Determines if this process is already running, if so it will kill itself.
/// </summary>
static void ExitIfRunning()
{
...
FYI. NewsGator feed readers and tools are now free. Link to RSS Web 2.0 Suite for Individuals - NewsGator
Database access layers (DAL) are still archaic and hard to design and develop, for the .Net developer there are tons of ways to design a DAL. As for me, I got fed up a few years ago and basically used generators to generate the layer for me and as time passes by I needed something more custom to my style of coding, so I developed my own custom DAL generator. Anyway, to cut a long story very short, SQL server has advanced forward, so I have to keep updating the generator every now and then, mainly because there are simpler ways of...
http://www.google.com/intl/en_ALL/images/logo.gif Link to Google
Recently I've been working on a new project that requires more math and calculations that I'm usually up for. Anyway, one of these routines require a conversion to quadragesimal which is base 40. However, after 2 hrs of research I could not find anything in the .Net Framework library to convert to any base higher than sexadecimal, also known as hexadecimal. The "System.Globalization.NumberStyles" has a few number styles that you can easily cast to including Hex but that is as far as it goes. I was baffled that .Net Framework does not have any complex conversion routines, so I resulted to searching for other languages...
Next entries »