tokens
sequence | ner_tags
sequence |
---|---|
[
"Similarlly",
",",
"there",
"are",
"AddHours",
",",
"AddMonths",
"and",
"even",
"AddMilliseconds",
":"
] | [
"O",
"O",
"O",
"O",
"B-Function",
"O",
"B-Function",
"O",
"O",
"B-Function",
"O"
] |
[
"http://msdn.microsoft.com/en-us/library/system.datetime_members.aspx"
] | [
"O"
] |
[
"Imagine",
"a",
"plane",
"with",
"a",
"number",
"of",
"points",
"at",
"known",
"locations",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Most",
"are",
"clustered",
"close",
"together",
",",
"but",
"some",
"are",
"outliers",
",",
"and",
"there",
"are",
"large",
"areas",
"where",
"there",
"are",
"no",
"points",
"at",
"all",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"multiple",
"clients",
"who",
"can",
"view",
"the",
"plane",
"through",
"rectangular",
"viewports",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Each",
"client",
"'s",
"viewport",
"may",
"be",
"of",
"different",
"dimensions",
",",
"and",
"can",
"be",
"moved",
"instantly",
"to",
"any",
"location",
"on",
"the",
"plane",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"clients",
"do",
"not",
"know",
"the",
"locations",
"of",
"the",
"points",
";",
"only",
"the",
"server",
"does",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"When",
"a",
"client",
"connects",
",",
"it",
"will",
"communicate",
"the",
"size",
"of",
"its",
"viewport",
"to",
"the",
"server",
",",
"and",
"the",
"server",
"should",
"respond",
"with",
"a",
"location",
"where",
"one",
"or",
"more",
"points",
"will",
"be",
"visible",
"to",
"that",
"client",
"'s",
"viewport",
"."
] | [
"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"
] |
[
"The",
"client",
"visits",
"that",
"location",
",",
"collects",
"data",
"from",
"visiting",
"those",
"points",
",",
"sends",
"that",
"data",
"back",
"to",
"the",
"server",
",",
"then",
"requests",
"the",
"next",
"location",
"to",
"visit",
"."
] | [
"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"
] |
[
"This",
"continues",
"until",
"all",
"points",
"have",
"been",
"visited",
"by",
"at",
"least",
"one",
"client",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"need",
"an",
"efficient",
"algorithm",
"that",
"will",
"choose",
"the",
"locations",
"to",
"visit",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"An",
"ideal",
"solution",
"will",
"minimize",
"the",
"number",
"of",
"locations",
"that",
"clients",
"need",
"to",
"visit",
"by",
"including",
"as",
"many",
"unvisited",
"points",
"as",
"possible",
"within",
"a",
"viewport",
"location",
",",
"minimizing",
"duplicate",
"visits",
"on",
"points",
",",
"and",
"not",
"visiting",
"locations",
"with",
"no",
"unvisited",
"points",
"."
] | [
"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"
] |
[
"Can",
"you",
"recommend",
"an",
"algorithm",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"To",
"do",
"this",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"2",
"FileHandlers",
"that",
"write",
"out",
"to",
"two",
"separate",
"files",
",",
"and",
"the",
"amount",
"of",
"I/O",
"occurring",
"is",
"slowing",
"down",
"my",
"application",
"quite",
"a",
"bit",
":"
] | [
"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"
] |
[
"I",
"'ve",
"decided",
"to",
"have",
"the",
"FileHandlers",
"run",
"on",
"separate",
"threads",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O"
] |
[
"As",
"they",
"are",
"on",
"separate",
"threads",
",",
"I",
"needed",
"a",
"concept",
"of",
"a",
"\"",
"queue",
"\"",
",",
"so",
"that",
"these",
"separate",
"threads",
"can",
"poll",
"this",
"queue",
"and",
"print",
"out",
"any",
"incoming",
"messages",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'ve",
"preformatted",
"messages",
"so",
"that",
"any",
"arguments",
"used",
"do",
"not",
"change",
"before",
"they",
"actually",
"reach",
"the",
"print",
"out",
"in",
"the",
"FileHandler",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"Now",
"I",
"'ve",
"realised",
"that",
"I",
"ca",
"n't",
"use",
"the",
"\"",
"log",
"\"",
"methods",
"provided",
"by",
"the",
"logger",
",",
"as",
"that",
"attempts",
"to",
"invoke",
"methods",
"on",
"the",
"current",
"thread",
"to",
"format",
"and",
"print",
"out",
"the",
"messages",
"."
] | [
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
"I",
"simply",
"call",
"a",
"method",
"that",
"adds",
"my",
"trace",
"message",
"to",
"the",
"queue",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"then",
"use",
"run()",
"method",
"of",
"the",
"FileHandlers",
"to",
"print",
"out",
"the",
"messages",
"using",
"publish()",
"."
] | [
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O"
] |
[
"I",
"now",
"realise",
"publish()",
"only",
"takes",
"in",
"a",
"LogRecord",
",",
"which",
"is",
"just",
"a",
"level",
"+",
"message",
"."
] | [
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"My",
"traces",
"have",
"much",
"more",
",",
"which",
"ca",
"n't",
"simply",
"be",
"placed",
"in",
"an",
"overall",
"message",
",",
"I",
"want",
"to",
"be",
"able",
"to",
"use",
"the",
"\"",
"Formatter",
"\"",
"that",
"I",
"'ve",
"set",
"to",
"the",
"FileHandler",
"."
] | [
"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-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"So",
"I",
"create",
"an",
"instance",
"of",
"the",
"logger",
"in",
"the",
"FileHandler",
",",
"so",
"I",
"can",
"use",
"the",
"log",
"method",
"and",
"format",
"the",
"string",
"as",
"designed",
"in",
"the",
"Formatter",
"."
] | [
"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",
"B-Class",
"O"
] |
[
"Which",
"works",
",",
"kinda",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"..",
"."
] | [
"O",
"O"
] |
[
"This",
"is",
"getting",
"a",
"bit",
"silly",
",",
"is",
"it",
"worth",
"continuing",
"on",
"like",
"this",
",",
"working",
"AROUND",
"the",
"java.util.Logger",
"rather",
"than",
"working",
"with",
"it",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"One",
"of",
"the",
"useful",
"parts",
"of",
"the",
"java.util.Logger",
"is",
"having",
"a",
"separate",
"logger",
"instance",
"for",
"each",
"class",
"and",
"being",
"able",
"to",
"have",
"more",
"control",
"over",
"the",
"messages",
"..",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Any",
"suggestions",
"?"
] | [
"O",
"O",
"O"
] |
[
"The",
"code",
"is",
"quite",
"long",
",",
"but",
"I",
"think",
"it",
"'s",
"easily",
"understood",
"from",
"the",
"description",
"above",
",",
"if",
"not",
"let",
"me",
"know",
"and",
"I",
"'ll",
"upload",
"somewhere",
"."
] | [
"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"
] |
[
"You",
"can",
"use",
"log4j",
"2",
"JDK",
"Logging",
"Adapter",
"to",
"enable",
"logging",
"with",
"log4j",
",",
"And",
"log4j",
"2",
"provide",
"remarkable",
"asynchronous",
"Logging",
"mechanism",
"with",
"lot",
"of",
"configuration",
"options",
"."
] | [
"O",
"O",
"O",
"B-Application",
"B-Version",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"B-Application",
"B-Version",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Necessary",
"VM",
"arguments"
] | [
"O",
"O",
"O"
] |
[
"You",
"can",
"find",
"more",
"information",
"about",
"log4j",
"2",
"async",
"logging",
"here",
"and",
"tomcat",
"configuration",
"details",
"here"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"B-Version",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O"
] |
[
"sample",
"Log4j2.xml",
"for",
"async",
"loggign"
] | [
"O",
"B-File_Name",
"O",
"O",
"O"
] |
[
"You",
"should",
"really",
"consider",
"using",
"SLF4J",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O"
] |
[
"These",
"issues",
"you",
"are",
"describing",
"come",
"along",
"with",
"rolling",
"your",
"own",
"logger",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O"
] |
[
"SLF4J",
"is",
"really",
"commonly",
"used",
"because",
"it",
"is",
"not",
"very",
"intrusive",
",",
"should",
"you",
"decide",
"that",
"you",
"need",
"something",
"different",
"you",
"can",
"swap",
"it",
"out",
"for",
"a",
"different",
"framework",
"."
] | [
"B-Library",
"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"
] |
[
"http://saltnlight5.blogspot.ca/2013/08/how-to-configure-slf4j-with-different.html"
] | [
"O"
] |
[
"http://www.slf4j.org/manual.html"
] | [
"O"
] |
[
"If",
"you",
"do",
"decide",
"to",
"stick",
"with",
"your",
"own",
"logger",
"I",
"would",
"say",
"that",
"you",
"should",
"start",
"by",
"making",
"it",
"a",
"singleton",
"with",
"several",
"logwriters",
"attached",
"to",
"log",
"levels",
",",
"you",
"then",
"setup",
"a",
"non-blocking",
"queue",
"for",
"each",
"logger",
"(",
"there",
"are",
"tons",
"of",
"examples",
"of",
"this",
"out",
"there",
")",
"and",
"simply",
"call",
"log(logLevel,",
"logOrigin,",
"logMessage)",
"and",
"under",
"the",
"hood",
"send",
"this",
"to",
"each",
"logwriter",
",",
"which",
"would",
"be",
"a",
"non-blocking",
"queue",
"that",
"runs",
"on",
"a",
"thread",
"for",
"each",
"logwriter",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"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-Data_Structure",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"I-Function",
"I-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"Each",
"logwriter",
"should",
"be",
"it",
"'s",
"own",
"thread",
",",
"not",
"each",
"log",
",",
"and",
"you",
"only",
"need",
"one",
"logger",
"as",
"all",
"it",
"is",
"is",
"a",
"short",
"hand",
"to",
"place",
"things",
"in",
"your",
"logwriter",
"'s",
"queues",
"from",
"anywhere",
"in",
"your",
"app",
"."
] | [
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"using",
"an",
"AVAssetReaderOutput",
"to",
"read",
"samples",
"from",
"an",
"AVAsset",
",",
"do",
"some",
"processing",
"on",
"them",
",",
"and",
"play",
"the",
"result",
"using",
"a",
"RemoteIO",
"AU",
"."
] | [
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"I-Device",
"O"
] |
[
"The",
"problem",
"is",
"that",
"after",
"calling",
"AudioOutputUnitStop",
"to",
"pause",
"the",
"playback",
",",
"then",
"after",
"going",
"to",
"the",
"background",
"and",
"back",
"to",
"the",
"foreground",
"the",
"audio",
"wo",
"n't",
"start",
"again",
"after",
"calling",
"AudioOutputUnitStart",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"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"
] |
[
"This",
"is",
"due",
"to",
"an",
"error",
"returned",
"from",
"the",
"copyNextSampleBuffer",
"method",
"of",
"AVAssetReaderOutput",
",",
"which",
"is",
"called",
"as",
"part",
"of",
"the",
"rendering",
"pipeline",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"status",
"property",
"of",
"AVAssetReader",
"after",
"calling",
"copyNextSampleBuffer",
"is",
"AVAssetReaderStatusFailed",
",",
"and",
"its",
"error",
"property",
"is",
"Error",
"Domain",
"=",
"AVFoundationErrorDomain",
"Code",
"=",
"-11847",
"\"",
"Operation",
"Interrupted",
"\"",
"UserInfo",
"=",
"0x1d8b6100",
"{",
"NSLocalizedRecoverySuggestion",
"=",
"Stop",
"other",
"operations",
"and",
"try",
"again",
".",
",",
"NSLocalizedDescription",
"=",
"Operation",
"Interrupted}"
] | [
"O",
"B-Variable",
"O",
"O",
"B-Class",
"O",
"O",
"B-Function",
"O",
"B-Error_Name",
"O",
"O",
"O",
"B-Variable",
"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",
"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",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block"
] |
[
"I",
"'m",
"looking",
"for",
"a",
"solution",
"which",
"wo",
"n't",
"force",
"me",
"to",
"reinitialize",
"the",
"entire",
"pipeline",
"after",
"coming",
"back",
"to",
"the",
"foreground",
"-",
"Hoping",
"there",
"is",
"such",
"a",
"solution",
",",
"that",
"AVAssetReaders",
"can",
"survive",
"the",
"app",
"going",
"to",
"background",
"and",
"back.",
"."
] | [
"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-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Notes"
] | [
"O"
] |
[
"The",
"app",
"is",
"entitled",
"to",
"play",
"audio",
"in",
"the",
"background",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"handling",
"audio",
"interruptions",
"-",
"Setting",
"my",
"AVAudioSession",
"as",
"the",
"active",
"one",
"both",
"on",
"AVAudioSessionDelegates",
"endInterruptionWithFlags",
":",
"event",
"and",
"whenever",
"the",
"app",
"becomes",
"active",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"B-Function",
"I-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Does",
"n't",
"make",
"a",
"difference",
"whether",
"I",
"do",
"this",
"or",
"not",
",",
"getting",
"the",
"same",
"error",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Some",
"code",
":"
] | [
"O",
"O",
"O"
] |
[
"AudioPlayer"
] | [
"B-Class"
] |
[
"AudioReader",
"Setup"
] | [
"B-Class",
"O"
] |
[
"AudioReader",
"Render",
"Method",
",",
"called",
"eventually",
"by",
"the",
"RenderCallback",
"function"
] | [
"B-Class",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O"
] |
[
"The",
"graph",
"and",
"AVReader",
"underpinnings",
"are",
"not",
"connected/linked",
"whatsoever",
"."
] | [
"O",
"B-User_Interface_Element",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"confusion",
"perhaps",
"comes",
"from",
"that",
"iOS",
"wo",
"n't",
"\"",
"background",
"\"",
"(",
"hibernate",
")",
"a",
"process",
"if",
"it",
"sees",
"the",
"audio",
"graph",
"running",
"(",
"because",
"then",
"audio",
"data",
"would",
"be",
"unable",
"to",
"be",
"generated",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Operating_System",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"I-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"That",
"'s",
"why",
"when",
"you",
"stop",
"the",
"audio",
"graph",
",",
"2-3",
"minutes",
"later",
",",
"iOS",
"will",
"background",
"your",
"process",
"(",
"as",
"of",
"iOS",
"9",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"I-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"B-Operating_System",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Operating_System",
"B-Version",
"O",
"O"
] |
[
"Presumably",
",",
"iOS",
"looks",
"at",
"what",
"'s",
"going",
"on",
"in",
"your",
"process",
"and",
"decides",
"when",
"your",
"process",
"should",
"be",
"forced",
"to",
"background",
"(",
"via",
"beginBackgroundTaskWithName:expirationHandler",
")",
"."
] | [
"O",
"O",
"B-Operating_System",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O"
] |
[
"Apple",
"devs",
"decided",
"for",
"whatever",
"reason",
"to",
"make",
"AVReader",
"stop",
"when",
"put",
"into",
"background",
"mode",
"(",
"my",
"best",
"guess",
"is",
"QA",
")",
"."
] | [
"B-Website",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"good",
"news",
"is",
"that",
"you",
"can",
"detect",
"it",
"and",
"recover",
"when",
"your",
"process",
"exits",
"background",
"mode",
",",
"but",
"you",
"WILL",
"need",
"to",
"restart",
"your",
"reader",
"and",
"readerOutput",
"again",
"."
] | [
"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-Variable",
"O",
"B-Variable",
"O",
"O"
] |
[
"First",
",",
"when",
"AVAssetReaderOutput",
"'s",
"copyNextSampleBuffer",
"returns",
"NULL",
",",
"check",
"AVAssetReader.error.code",
"for",
"AVErrorOperationInterrupted",
"."
] | [
"O",
"O",
"O",
"B-Class",
"O",
"B-Function",
"O",
"B-Value",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O"
] |
[
"The",
"way",
"we",
"pull",
"off",
"a",
"gapless",
"recovery",
"here",
"is",
"when",
"we",
"get",
"to",
"that",
"point",
",",
"we",
"first",
"calculate",
"the",
"exact",
"time",
"we",
"left",
"off",
"at",
"(",
"easy",
"to",
"do",
"-",
"-",
"just",
"maintain",
"a",
"counter",
"of",
"the",
"total",
"samples",
"already",
"output",
")",
"."
] | [
"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"
] |
[
"Then",
",",
"you",
"WILL",
"need",
"to",
"restart",
"your",
"AVAssetReader",
"and",
"AVAssetReaderOutput",
"flow",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"B-Class",
"O",
"O"
] |
[
"But",
"that",
"'s",
"no",
"problem",
"since",
"your",
"good",
"development",
"practices",
"would",
"have",
"encapsulated",
"that",
"in",
"a",
"single",
"function",
"that",
"has",
"a",
"seek",
"time",
"as",
"an",
"argument",
"."
] | [
"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",
"that",
"function",
",",
"use",
"AVAssetReader.timeRange",
"to",
"seek",
"to",
"that",
"time",
"you",
"need",
"to",
"resume",
"at",
"and",
"presto",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"There",
"first",
"thing",
"I",
"would",
"try",
"is",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Not",
"calling",
"AudioOutputUnitStop",
"?"
] | [
"O",
"O",
"B-Function",
"O"
] |
[
"Why",
"do",
"n't",
"you",
"leave",
"the",
"graph",
"running",
"and",
"when",
"the",
"audio",
"is",
"paused",
"simply",
"not",
"call"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Instead",
"just",
"fill",
"the",
"buffer",
"with",
"0",
"'s",
"and/or",
"use",
"a",
"render",
"action",
"of",
"kAudioUnitRenderAction_OutputIsSilence",
"for",
"the",
"buffers",
"."
] | [
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"Starting",
"and",
"stopping",
"the",
"graph",
"takes",
"time",
"and",
"leads",
"to",
"an",
"unresponsive",
"graph",
"."
] | [
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O"
] |
[
"I",
"never",
"stop",
"the",
"graph",
"while",
"my",
"apps",
"are",
"running",
"."
] | [
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"(",
"Unless",
"some",
"serious",
"interruption",
"happens",
")",
"This",
"may",
"keep",
"the",
"asset",
"reader",
"around",
"and",
"happy",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"I",
"have",
"a",
"hunch",
"that",
"as",
"the",
"AVAssetReader",
"is",
"not",
"directly",
"connected",
"to",
"the",
"audio",
"graph",
"(",
"you",
"just",
"happen",
"to",
"request",
"samples",
"and",
"place",
"them",
"in",
"the",
"buffer",
"supplied",
"by",
"the",
"render",
"callback",
")",
"the",
"problem",
"does",
"not",
"lie",
"with",
"the",
"audio",
"graph",
"being",
"stopped",
"and",
"restarted",
"at",
"all",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"I-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"I-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
"the",
"next",
"line",
"of",
"attack",
"I",
"would",
"try",
"is",
"to",
"request",
"samples",
"from",
"an",
"AVAsset",
",",
"put",
"the",
"app",
"into",
"the",
"background",
"and",
"bring",
"it",
"back",
"to",
"the",
"foreground",
"without",
"using",
"an",
"AUGraph",
"at",
"all",
"."
] | [
"O",
"O",
"O",
"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",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O"
] |
[
"This",
"will",
"determine",
"if",
"the",
"problem",
"is",
"related",
"to",
"the",
"AUGraph",
"or",
"the",
"app",
"entering",
"a",
"background",
"state",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"something",
"happens",
"that",
"forces",
"you",
"to",
"tear",
"down",
"your",
"AVAssetReader",
"you",
"will",
"have",
"to",
"reconnect",
"to",
"the",
"asset",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
"as",
"you",
"have",
"to",
"write",
"that",
"code",
"another",
"the",
"option",
"I",
"would",
"look",
"at",
"is",
"the",
"one",
"you",
"do",
"n't",
"want",
"to",
"do",
"."
] | [
"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"
] |
[
"Reconnect",
"to",
"the",
"AVAssetReader",
",",
"seek",
"to",
"the",
"position",
"you",
"left",
"off",
"at",
"and",
"keep",
"going",
"."
] | [
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"am",
"struggling",
"to",
"get",
"the",
"login",
"code",
"to",
"run",
"successfully",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"keeps",
"on",
"echoing",
"the",
"\"",
"Username",
"or",
"Password",
"incorrect.",
".",
"\"",
"section",
",",
"though",
"the",
"correct",
"username",
"and",
"password",
"in",
"entered",
"."
] | [
"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",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"O"
] |
[
"Am",
"I",
"missing",
"something",
"somewhere",
",",
"please",
"help",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"following",
"worked",
"in",
"test",
"(",
"up",
"to",
"the",
"password_verify",
"where",
"I",
"used",
"a",
"different",
"test",
"as",
"I",
"have",
"PHP",
"5.3.2",
"and",
"hence",
"no",
"password_verify",
")",
"~",
"hopefully",
"it",
"might",
"prove",
"of",
"benefit",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"B-Version",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"/",
"**"
] | [
"O",
"O"
] |
[
"*",
"You",
"might",
"need",
"to",
"save",
"a",
"hashed",
"copy",
"of",
"the",
"password",
"at",
"the",
"point",
"of"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O"
] |
[
"*",
"user",
"creation",
",",
"so",
"that",
"you",
"can",
"password_verify",
"the",
"input",
"password",
"against",
"the",
"hashed"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"B-Variable",
"O",
"O",
"O"
] |
[
"*",
"copy",
"returned",
"from",
"the",
"DB",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"*",
"something",
"like",
"this",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"*",
"$hashed",
"=",
"password_hash",
"(",
"$password",
",",
"PASSWORD_BCRYPT",
")",
";"
] | [
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"B-Code_Block"
] |
[
"*",
"NOTE",
":",
"I",
"'ve",
"changed",
"you",
"code",
"to",
"an",
"extent",
",",
"pls",
"adapt",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"*",
"/"
] | [
"O",
"O"
] |
[
"I",
"'m",
"studying",
"the",
"Clojure",
"Koans",
":"
] | [
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O"
] |
[
"https://github.com/functional-koans/clojure-koans/blob/master/src/koans/10_lazy_sequences.clj"
] | [
"O"
] |
[
"I",
"am",
"stuck",
"on",
"this",
"one",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"do",
"n't",
"know",
"the",
"exact",
"builtin",
"function",
"to",
"fill",
"in",
"the",
"_",
"blanks",
"with",
",",
"so",
"I",
"tried",
"writing",
"my",
"own",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"wrote",
"it",
"as",
"a",
"separate",
"function",
"as",
"a",
"test",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"intend",
"this",
"one",
"to",
"be",
":",
"if",
"x",
"is",
"a",
"seq",
",",
"then",
"just",
"repeat",
"its",
"first",
"element",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Otherwise",
",",
"make",
"it",
"a",
"seq",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"When",
"I",
"run",
"it",
"explicitly",
",",
"it",
"looks",
"fine",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"using",
"iterate",
"adds",
"an",
"extra",
"parenthesis",
":"
] | [
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"B-Value",
"O"
] |
[
"Re-read",
"the",
"documentation",
"for",
"iterate",
":"
] | [
"O",
"O",
"O",
"O",
"B-Code_Block",
"O"
] |