August 2007 Entries
Here are my two presentations from the Jax CodeCamp.
OOPhttp://www.onetug.org/sf/Files/MemberFiles/JaxCcWeisfeldShawnOOP.ppt
Robot Visionhttp://www.onetug.org/sf/Files/MemberFiles/JaxCcWeisfeldShawnRobotVision.ppt
I was asked a question last night about the factory pattern. Factories construct and return an instance of a class type. Why you might ask, well first all the creational logic for my classes exist in one place. Secondly no modifications are needed to the factory if a new implementation is created (i.e. the factory is not tied to any specific concrete implementation).
Here is a reference implementation:
/// <summary> /// Base Class for all accounts /// </summary> public abstract class Account { /// <summary> /// Override of the ToString so we can see what type of account we have ///...
At the last few user group meetings (http://www.onetug.org) we have been collecting schools supplies for needy children in Central Florida. In total we have collected over 1400 items: including 432 crayons, 428 pencils, 228 colored pencils and 210 pens. Thank you to everyone that has contributed!
We also collected $50 in donations for the Earthquake victims in Peru at the meeting last night. The donation has been forwarded to the American Red Cross.
Here are PDF's of the Thank you letters ONETUG got from A Gift for Teaching and the Red Crosshttp://www.onetug.org/DNN/Portals/0/member_files/AGiftDonation.pdf http://onetug.net/Documents/2007_11_11_AGiftThankyou.pdf http://www.onetug.org/DNN/Portals/0/member_files/RedCrossDonation.pdf
Hierarchies are common in many applications today. Some classic examples are the reporting chain in your company. For example you are an employee and you report to another employee and that employee. A common way to represent this is utilizing an "Adjacency List Model". A good explanation of this can be found in Joe Celko’s book and on this website (http://www.sqlsummit.com/AdjacencyList.htm). The basic idea is that a boss column exists on the employee table a unary relationship. So utilizing the new common table expression (http://msdn2.microsoft.com/en-us/library/ms175972.aspx) in sql server 2005 it is easy to build a hierarchical query. Once the hierarcial...
Having problems authenticating? Maybe you need an SPN?
Here is some information on SPN’s (Service Principal Names), but basically SPN’s allow a client to find a service for Kerberos authentication.
SPN information from MSDNhttp://msdn2.microsoft.com/en-us/library/ms677949.aspx
SPN information from TechNethttp://technet2.microsoft.com/windowsserver/en/library/b3a029a1-7ff0-4f6f-87d2-f2e70294a5761033.mspx
SPN information from SQL Server Docshttp://msdn2.microsoft.com/en-us/library/ms191153.aspx
So this has been a busy week for me. Tuesday I went to my first Orlando SQL Server UG meeting (http://www.opass.org) and Wednesday I went to the first Orlando SharePoint UG meeting (http://www.mossmosis.com/schedule_orlando.html). A big thumbs up go to both groups for very successful presentations. So Andy from OPASS did something very interesting at his meeting he challenged all the attendees to figure out a puzzle. Go here (http://www.opass.org/content/showcontent.aspx?contentid=270) to get the full details of the puzzle but basically the task was to build a random raffle picker utilizing TSQL and data from the Adventure Works database in SQL Server...