Warning: session_start(): open(/var/lib/php/sessions/sess_442va2fmgml1iuqp7sdtq5m3c7, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
!include #1001372 // direct nohupJavax
static int maxTabsToShow = 10;
static MultiMap index = caseInsensitiveMultiMap();
static AutoComboBox cbInput;
static JButton btnTeach;
p {
autoRestart();
magellan();
showCAL_defaultSize(700, 450);
thread { downloadTypicalWebs(); updateIndex(); }
centerBiggerConsole();
cbInput = replaceConsoleInputWithAutoComboBox();
bot();
consoleInput("George Bush");
addAskButton();
focusInput();
showControls(jcenteredline(btnTeach = jbutton("", f makeDiagram));
onUpdateAndNow(consoleInputField(), r {
S s = consoleInput();
setText(btnTeach, "I want to teach" + (empty(s) ? "" : " about " + s));
});
calcOnConceptChangesInOtherProgram(circlesEditorDBID(), 1000, f updateIndex, true);
sleepIfMain();
}
svoid makeDiagram { thread { loading {
startCirclesEditor();
send("Circles Editor.", "new diagram with node *", consoleInput());
}}}
svoid updateIndex {
print("Updating index.");
index = dwlw_fullNodeIndex_ci();
updateAutoComboBoxItems(cbInput, keys(index));
consoleStatus(n(countDistinct(values(index), 'web), "web"));
}
answer {
s = trim(s);
L nodes = index.get(lower(s));
Set webs = litorderedset();
for (WebNode node : nodes) {
webs.add(node.web);
if (l(webs) >= maxTabsToShow) break;
}
if (nempty(webs)) {
setFrameTitle(s, showTabbedWebs(map(func(Web web) {
web_dropVisUnlessLoaded(cloneWeb(web)) }, webs)));
ret "Found " + n(nodes, "node");
}
try answer "No information found - please enter some!";
}