tokens
sequence
ner_tags
sequence
[ "I", "have", "Saved", "a", "link", "in", "database", "and", "then", "i", "need", "to", "view", "that", "link", "in", "view", "in", "asp.net", "mvc", "for", "example", "https://www.google.com" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Library", "B-Algorithm", "O", "O", "O" ]
[ "Just", "print", "the", "URL", ":" ]
[ "O", "O", "O", "O", "O" ]
[ "The", "@Url", "helpers", "are", "for", "links", "pointing", "into", "the", "application", "." ]
[ "O", "B-Code_Block", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Simple", "question", ":", "where", "do", "the", "tableView", "and", "section", "arguments", "get", "passed", "from", "?" ]
[ "O", "O", "O", "O", "O", "O", "B-Variable", "O", "B-Variable", "O", "O", "O", "O", "O" ]
[ "The", "actual", "code", "in", "the", "method", "return", "[", "self.listData", "count", "]", ";", "does", "n't", "even", "mention", "them", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "B-Code_Block", "O", "O", "O", "O", "O", "O" ]
[ "Here", "'s", "my", "interface", "code", ":" ]
[ "O", "O", "O", "O", "O", "O" ]
[ "And", "this", "is", "all", "the", "implementation", "code", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "just", "want", "to", "know", "how", "does", "the", "method", "(", "NSInteger", ")", "tableView", ":", "(", "UITableView", "*", ")", "numberOfRowsInSection", ":", "receive", "those", "arguments", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Code_Block", "I-Code_Block", "I-Code_Block", "B-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "B-Code_Block", "I-Code_Block", "O", "O", "O", "O" ]
[ "Of", "course", "this", "happens", "everywhere", ";", "I", "just", "want", "to", "understand", "it", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "The", "Simple_TableViewController", "class", "is", "likely", "meant", "to", "manage", "a", "single", "table", "with", "a", "single", "section", "." ]
[ "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "B-User_Interface_Element", "O", "O", "O", "O", "O" ]
[ "Given", "that", ",", "the", "tableView", "and", "section", "parameters", "are", "n't", "important", "because", "they", "can", "only", "be", "one", "thing", ":", "a", "pointer", "to", "the", "table", "and", "0", ",", "respectively", "." ]
[ "O", "O", "O", "O", "B-Variable", "O", "B-Variable", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Data_Type", "O", "O", "B-User_Interface_Element", "O", "B-Value", "O", "O", "O" ]
[ "Your", "view", "controller", "class", "is", "adding", "support", "for", "these", "callback", "methods", "through", "UITableViewDelegate", "and", "UITableViewDataSource", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "B-Variable", "O" ]
[ "You", "are", "adding", "this", "support", "in", "your", ".h", "file", "through", "<UITableViewDelegate,", "UITableViewDataSource>", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "B-File_Type", "O", "O", "B-Code_Block", "I-Code_Block", "O" ]
[ "These", "classes", "are", "built", "in", "to", "the", "Cocoa", "Touch", "framework", "and", "you", "are", "just", "using", "them", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Library", "I-Library", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "When", "the", "table", "is", "(", "re", ")", "loaded", ",", "this", "callback", "methods", "are", "called", "if", "you", "have", "defined", "them", "(", "some", "are", "required", ",", "others", "are", "optional", ")", "." ]
[ "O", "O", "B-User_Interface_Element", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "For", "example", "." ]
[ "O", "O", "O" ]
[ "I", "have", "multiple", "classes", "as", ":", "Inventory", ",", "Product", ",", "Sales", "etc", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Class", "O", "B-Class", "O", "B-Class", "O", "O" ]
[ "Now", "my", "requirement", "is", "to", "put", "all", "above", "types", "in", "a", "single", "map", "container", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O" ]
[ "I", "do", "n't", "want", "to", "create", "multiple", "maps", "for", "putting", "above", "each", "object", "values", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O" ]
[ "If", "all", "your", "classes", "can", "implement", "the", "same", "interface", ",", "then", "you", "can", "store", "them", "all", "in", "the", "same", "container", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Otherwise", "you", "would", "have", "to", "use", "Object", "..", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Class", "O", "O" ]
[ "More", "generally", "-", "why", "do", "you", "not", "want", "to", "use", "multiple", "maps", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O" ]
[ "Set", "the", "value", "type", "as", "Object", ":" ]
[ "O", "O", "O", "O", "O", "B-Class", "O" ]
[ "Or", ",", "if", "Inventory", ",", "Product", ",", "Sales", ",", "and", "whatever", "else", "is", "going", "into", "the", "map", "share", "a", "superclass", "or", "implement", "the", "same", "interface", ",", "then", "set", "the", "value", "type", "as", "that", ":" ]
[ "O", "O", "O", "B-Class", "O", "B-Class", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "am", "using", "a", "SKTextureAtlas", "to", "animate", "a", "SKSpriteNode", "." ]
[ "O", "O", "O", "O", "B-Class", "O", "O", "O", "B-Class", "O" ]
[ "The", "animation", "works", ",", "but", "it", "looks", "weird", "because", "for", "some", "reason", "the", "sprite", "'s", "height", "is", "changing", "several", "times", "in", "the", "animation", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "This", "also", "causes", "the", "y", "position", "to", "change", "as", "well", "." ]
[ "O", "O", "O", "O", "B-Variable", "O", "O", "O", "O", "O", "O" ]
[ "Everything", "else", "remains", "the", "same", "except", "for", "the", "height", "and", "the", "y", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Variable", "O" ]
[ "The", "only", "thing", "I", "can", "think", "of", "is", "there", "are", "different", "amounts", "of", "transparent", "pixels", "within", "each", "frame", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Each", "image", "is", "the", "same", "size", "though", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Even", "when", "I", "use", "SKAction.animateWithTextures(atlasFrames,timePerFrame:0.1,resize:true,restore:false)", ",", "with", "resize", "set", "to", "true", "and", "false", ",", "the", "problem", "persists", "." ]
[ "O", "O", "O", "O", "B-Code_Block", "O", "O", "B-Variable", "O", "O", "B-Value", "O", "B-Value", "O", "O", "O", "O", "O" ]
[ "I", "heard", "about", "this", "issue", "with", "textures", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Variable", "O" ]
[ "I", "recommend", "you", "to", "make", "all", "textures", "of", "same", "size", "and", "add", "background", "for", "all", "images", "of", "1%", "alpha", "(", "it", "wont", "be", "visible", "but", "it", "will", "be", "where", ")", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Variable", "O", "O", "O", "O", "O", "O", "O", "O", "B-User_Interface_Element", "O", "B-Value", "B-Variable", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "This", "is", "happening", "because", "invisible", "background", "is", "cut", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "You", "can", "watch", "this", "guide", "for", "more", "information", ":", "https://www.youtube.com/watch?v=TDwSR3e6nN0" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "am", "using", "below", "code", "snippet", "to", "create", "a", "singleton", "instance", "of", "Connection", "object", "for", "a", "web", "application", "which", "will", "be", "used", "by", "multiple", "users", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "This", "class", "will", "return", "same", "instance", "of", "connection", "until", "and", "unless", "connection", "is", "closed", "or", "null", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "B-Class", "O", "O", "O", "B-Value", "O" ]
[ "I", "suppose", "same", "connection", "will", "be", "shared", "by", "all", "users", "on", "different", "machine", "as", "it", "is", "static", "one", "." ]
[ "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "If", "one", "user", "is", "setting", "auto", "commit", "to", "off", "to", "commit", "couple", "of", "statements", "as", "transaction", ",", "will", "this", "create", "problems", "for", "other", "users", "by", "restricting", "their", "connection", "to", "disable", "autocommit", "as", "well", "or", "by", "commiting", "their", "transaction", "in", "mid", "way", "if", "one", "user", "has", "used", "con.commit()", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Function", "O" ]
[ "Yes", ",", "it", "will", "cause", "problems", "." ]
[ "O", "O", "O", "O", "O", "O", "O" ]
[ "They", "are", "sharing", "the", "same", "instance", ",", "so", "this", "statement", "is", "wrong" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "It", "should", "read" ]
[ "O", "O", "O" ]
[ "Since", "all", "the", "users", "(", "threads", ")", "are", "using", "the", "same", "instance", ",", "changes", "made", "to", "it", "by", "one", "user", "will", "affect", "the", "others", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "As", "Shivam", "Kalra", "says", ",", "connection", "pools", "are", "a", "better", "tool", "." ]
[ "O", "B-User_Name", "I-User_Name", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O" ]
[ "Most", "probably", "your", "web", "server", "will", "already", "provide", "them", ",", "and", "if", "not", "there", "are", "third", "party", "libraries", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Yes", "." ]
[ "O", "O" ]
[ "Yes", "." ]
[ "O", "O" ]
[ "Database", "connections", "are", "not", "safe", "for", "use", "by", "multiple", "threads", ",", "and", "should", "not", "in", "general", "even", "be", "member", "fields", "let", "alone", "singletons", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "They", "should", "be", "method-local", "variables", "." ]
[ "O", "O", "O", "O", "O", "O" ]
[ "If", "you", "want", "to", "economize", "on", "creating", "&", "destroying", "them", ",", "you", "must", "use", "a", "connection", "pool", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O" ]
[ "I", "'m", "writing", "an", "integration", "test", "where", "I", "will", "be", "inserting", "a", "number", "of", "objects", "into", "a", "database", "and", "then", "checking", "to", "make", "sure", "whether", "my", "method", "retrieves", "those", "objects", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "My", "connection", "to", "the", "database", "is", "through", "NHibernate", "...", "and", "my", "usual", "method", "of", "creating", "such", "a", "test", "would", "be", "to", "do", "the", "following", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Library", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "However", ",", "I", "'ve", "recently", "found", "out", "about", "TransactionScope", "which", "apparently", "can", "be", "used", "for", "this", "very", "purpose", "..", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Some", "example", "code", "I", "'ve", "found", "is", "as", "follows", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "believe", "that", "if", "I", "do", "n't", "include", "the", "line", "txScope.Complete()", "that", "the", "data", "inserted", "will", "be", "rolled", "back", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Function", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "But", "unfortunately", "I", "do", "n't", "understand", "how", "that", "is", "possible.", ".", "how", "does", "the", "txScope", "object", "keep", "a", "track", "of", "the", "deptAdapter", "and", "empAdapter", "objects", "and", "their", "transactions", "on", "the", "database", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Variable", "O", "O", "O", "O", "O", "O", "B-Variable", "O", "B-Variable", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "feel", "like", "I", "'m", "missing", "a", "bit", "of", "information", "here", "..", "am", "I", "really", "able", "to", "replace", "my", "BeginTransaction()", "and", "RollbackTransaction()", "calls", "by", "surrounding", "my", "code", "using", "TransactionScope", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Function", "O", "B-Function", "O", "O", "O", "O", "O", "O", "B-Class", "O" ]
[ "If", "not", ",", "how", "then", "does", "TransactionScope", "work", "to", "roll", "back", "transactions", "?" ]
[ "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O" ]
[ "Essentially", "TransactionScope", "does", "n't", "track", "your", "Adapter", "'s", ",", "what", "it", "does", "is", "it", "tracks", "database", "connections", "." ]
[ "O", "B-Class", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "When", "you", "open", "a", "DB", "connection", "the", "connections", "will", "looks", "if", "there", "is", "an", "ambient", "transaction", "(", "Transaction", "Scope", ")", "and", "if", "so", "enlist", "with", "it", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "I-Class", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Caution", "if", "there", "are", "more", "the", "one", "connection", "to", "the", "same", "SQL", "server", "this", "will", "escalate", "to", "a", "Distribtued", "Transaction", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Application", "I-Application", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "What", "happens", "since", "you", "'re", "using", "a", "using", "block", "you", "are", "ensuring", "dispose", "will", "be", "called", "even", "if", "an", "exception", "occurs", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Function", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O" ]
[ "So", "if", "dispose", "is", "called", "before", "txScope.Complete()", "the", "TransactionScope", "will", "tell", "the", "connections", "to", "rollback", "their", "transactions", "(", "or", "the", "DTC", ")", "." ]
[ "O", "O", "B-Function", "O", "O", "O", "B-Function", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "The", "TransactionScope", "class", "works", "with", "the", "Transaction", "class", ",", "which", "is", "thread-specific", "." ]
[ "O", "B-Class", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O" ]
[ "When", "the", "TransactionScope", "is", "created", ",", "it", "checks", "to", "see", "if", "there", "is", "a", "Transaction", "for", "the", "thread", ";", "if", "one", "exists", "then", "it", "uses", "that", ",", "otherwise", ",", "it", "creates", "a", "new", "one", "and", "pushes", "it", "onto", "the", "stack", "." ]
[ "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Data_Structure", "O" ]
[ "If", "it", "uses", "an", "existing", "one", ",", "then", "it", "just", "increments", "a", "counter", "for", "releases", "(", "since", "you", "have", "to", "call", "Dispose", "on", "it", ")", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Function", "O", "O", "O", "O" ]
[ "On", "the", "last", "release", ",", "if", "the", "Transaction", "was", "not", "comitted", ",", "it", "rolls", "back", "all", "the", "work", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "As", "for", "why", "classes", "seem", "to", "magically", "know", "about", "transactions", ",", "that", "is", "left", "as", "an", "implementation", "detail", "for", "those", "classes", "that", "wish", "to", "work", "with", "this", "model", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "When", "you", "create", "your", "deptAdapter", "and", "emptAdapter", "instances", ",", "they", "check", "to", "see", "if", "there", "is", "a", "current", "transaction", "on", "the", "thread", "(", "the", "static", "Current", "property", "on", "the", "Transaction", "class", ")", "." ]
[ "O", "O", "O", "O", "B-Variable", "O", "B-Variable", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "B-Class", "O", "O", "O" ]
[ "If", "there", "is", ",", "then", "it", "registers", "itself", "with", "the", "Transaction", ",", "to", "take", "part", "in", "the", "commit/rollback", "sequence", "(", "which", "Transaction", "controls", ",", "and", "might", "propogate", "to", "varying", "transaction", "coordinators", ",", "such", "as", "kernel", ",", "distributed", ",", "etc", ".", ")", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Application", "O", "O", "O", "O", "O", "O", "O" ]
[ "I", "am", "creating", "an", "XML", "file", "from", "scratch", "using", "PHP", "'s", "SimpleXML", "Object", "." ]
[ "O", "O", "O", "O", "B-File_Type", "O", "O", "O", "O", "B-Language", "O", "B-Class", "O", "O" ]
[ "But", "I", "am", "getting", "this", "error", "when", "validating", "the", "document", ":", "'", "Can", "not", "find", "declaration", "of", "element", "\"", "example", "\"", ".", "'" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block", "I-Output_Block" ]
[ "Here", "is", "the", "code", "that", "is", "creating", "the", "XML", "document", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-File_Type", "O", "O" ]
[ "The", "XML", "that", "is", "produced", "is", "this", ":" ]
[ "O", "B-File_Type", "O", "O", "O", "O", "O", "O" ]
[ "Any", "help", "would", "be", "appreciated", "!" ]
[ "O", "O", "O", "O", "O", "O" ]
[ "Thanks" ]
[ "O" ]
[ "An", "XML", "file", "needs", "something", "to", "validate", "it", "against", ",", "a", "Document", "Type", "Definition", "(", "DTD", ")", "or", "an", "XML", "Schema", "." ]
[ "O", "B-File_Type", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Language", "I-Language", "O" ]
[ "You", "'re", "not", "providing", "any", ",", "so", "validation", "(", "i.e", ".", ",", "checking", "if", "the", "structure/content", "of", "the", "XML", "document", "conforms", "to", "the", "rules", "set", "forth", "in", "the", "DTD/Schema", ")", "is", "impossible", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-File_Type", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Or", "did", "you", "just", "wish", "to", "check", "for", "well-formedness", "(", "i.e", ".", ",", "checking", "that", "all", "tags", "are", "closed", "properly", ",", "that", "there", "are", "no", "illegal", "characters", "anywhere", "etc", ".", ")", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "In", "order", "to", "validate", "an", "XML", "document", ",", "you", "need", "a", "DTD", "(", "or", "XML", "Schema", ")", "which", "describes", "how", "a", "valid", "document", "looks", "like", "." ]
[ "O", "O", "O", "O", "O", "B-File_Type", "O", "O", "O", "O", "O", "B-File_Type", "O", "O", "B-File_Type", "I-File_Type", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "You", "need", "write", "a", "DTD", "example.dtd", "for", "your", "XML", "application", ",", "and", "either", "give", "it", "to", "the", "validator", "or", "include", "it", "in", "your", "XML", "document", ",", "by", "prefixing", "it", "with" ]
[ "O", "O", "O", "O", "B-File_Type", "B-File_Name", "O", "O", "B-File_Type", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-File_Type", "O", "O", "O", "O", "O", "O" ]
[ "Since", "SimpleXML", "does", "not", "support", "doctypes", ",", "you", "must", "either", "manually", "prefix", "the", "above", "line", "or", "use", "php", "'s", "DOM", "extension", "." ]
[ "O", "B-Class", "O", "O", "O", "B-HTML_XML_Tag", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "B-Language", "O", "B-Library", "O", "O" ]
[ "Fortunately", ",", "you", "can", "import", "the", "SimpleXML", "fragment", "to", "DOM", "with", "dom_import_simplexml", "." ]
[ "O", "O", "O", "O", "O", "O", "B-Class", "O", "O", "B-Library", "O", "B-Code_Block", "O" ]
[ "Say", "I", "have", "a", "Class", ":" ]
[ "O", "O", "O", "O", "O", "O" ]
[ "And", "I", "want", "other", "objects", "to", "inherit", "variables", "&", "functions", "from", "it", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Then", "instantiate", "my", "objects", ":" ]
[ "O", "O", "O", "O", "O" ]
[ "What", "'s", "the", "proper", "function", "to", "include", "Foo", "in", "Bar", "and", "Baz", "?" ]
[ "O", "O", "O", "O", "O", "O", "O", "B-Function", "O", "B-Function", "O", "B-Function", "O" ]
[ "I", "already", "did", "Bar.prototype", "=", "new", "Foo()", ";", "but", "it", "seems", "to", "fail", "on", "our", "beloved", "IE", "(", "<", "9", ")", "." ]
[ "O", "O", "O", "B-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "I-Code_Block", "O", "O", "O", "O", "O", "O", "O", "O", "B-Application", "O", "O", "B-Version", "O", "O" ]
[ "have", "a", "look", "to", "Classy", "or", ",", "if", "you", "like", "Ruby", "and", "want", "a", "more", "complete", "solution", "to", "JS.Class", "." ]
[ "O", "O", "O", "O", "B-Library", "O", "O", "O", "O", "O", "B-Language", "O", "O", "O", "O", "O", "O", "O", "B-Language", "O" ]
[ "Those", "libraries", "helps", "you", "with", "object", "orientation", "in", "javascript", "ad", "hide", "prototype", "to", "the", "developer", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "B-Language", "O", "O", "O", "O", "O", "O", "O" ]
[ "Hope", "this", "helps" ]
[ "O", "O", "O" ]
[ "If", "you", "attach", "all", "the", "properties", "to", "the", "prototype", "(", "which", "is", "preferable", ",", "at", "least", "for", "methods", ")", "," ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "then", "assigning", "the", "parent", "'s", "prototype", "to", "the", "child", "'s", "prototype", "is", "sufficient", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Here", "we", "used", "an", "intermediate", "constructor", "function", "to", "\"", "decouple", "\"", "the", "two", "prototypes", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "Otherwise", "if", "you", "'d", "change", "one", ",", "you", "'d", "change", "the", "other", "one", "too", "(", "as", "they", "reference", "the", "same", "object", ")", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "This", "way", "is", "actually", "pretty", "popular", "and", "used", "by", "a", "couple", "of", "libraries", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "If", "not", ",", "you", "have", "to", "call", "the", "parent", "'s", "constructor", "function", "inside", "the", "child", "'s", "constructor", "function", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "This", "is", "something", "you", "always", "should", "do", ",", "to", "assign", "the", "properties", "set", "up", "in", "the", "constructor", "function", "to", "the", "current", "object", "." ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]
[ "An", "additional", "remark", "to", "your", "way", ":" ]
[ "O", "O", "O", "O", "O", "O", "O" ]
[ "this", "should", "work", "(", "also", "in", "IE", "actually", ")", ",", "but", "it", "has", "two", "major", "flaws", ":" ]
[ "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O" ]