-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.xml
63 lines (63 loc) · 3.51 KB
/
demo.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<memorysurfer>
<deck>
<name>FAQ</name>
<card>
<type>1</type>
<question>So MemorySurfer supports HTML - isn't this a security |___|? If you use only your own ".imsf" file - rather not.</question>
<answer>risk
<br>
But using a ".imsf" file of untrusted source would give an potential attacker the possibility to run scripts in your browser, and make all sorts of actions on your behalf (even though i doubt it would be possible to steal your credit card number).</answer></card>
<card>
<type>1</type>
<question>So MemorySurfer runs on my Raspberry at home or on my VPS - wouldn't this make my computer vulnerable for port scans and such? Sure - but as far as i can tell neither my Raspberry nor my Debian setup have been |___|.</question>
<answer>hacked
<br>
Which doesn't mean hacking is not possible - there are possibly some "failure cases" and especially the XML parsing might be a good way to hack the system (but people who could do this very likely hack another [more valuable] system instead).</answer></card>
<card>
<type>1</type>
<question>Is Exporting the .imsf file to .|___| necessary? In case more than 1000 cards are present one Export / Import cycle could improve performance drastically (if it never has done before, and the Cards are shuffled across the .imsf file).</question>
<answer>XML
<br>
A Export / Import cycle is reordering the internal data structure of the .imsf file according to the order of the Decks / Cards.</answer></card>
<card>
<type>1</type>
<question>Some Cards are not asked / gone (something is weird) - The program has a bug? Maybe - but you can track your Cards and everything in the .XML via a content |___| (like git).</question>
<answer>tracker
<br>
That way you can be sure all your cards are OK.</answer></card>
<card>
<type>1</type>
<question>How many |___| are possible to create? The current implementation has a theoretical limit of about 130000000 |_"_| (for now and the foreseeable future). But this would use up 2 GB of RAM and certainly would run awful slow. Currently, on a Raspberry Pi (3 Model B) a realistic limit I would assume to be 10000 |_"_|.</question>
<answer>Cards
<br>
But this would involve regularly Exporting and Importing, and keeping the frequently used Decks "at the bottom" (to keep the "distance" for sorting "shorter").</answer></card>
<card>
<type>1</type>
<question>Why is this demo file already at the end? Aren't there more questions / topics? Probably - please feel free to |___| questions via GitHub or via email to [email protected].</question>
<answer>ask</answer></card></deck>
<deck>
<name>Creating Cards</name>
<card>
<type>1</type>
<question>A Card can be either TXT or |___|.</question>
<answer>HTML
<br>
HTML cards are a little tricky to edit. Simple text based flashcards are sufficient for many cases.</answer></card>
<card>
<question>Even for a simple TXT card, styling is possible - to overwrite the |___| definition, set the following style:
div.qa-txt { font-family: sans-serif; }</question>
<answer>monospace
The <div>'s for displaying the question and answer of the card use the (CSS) class "qa-txt", which is defined in ms.css as follows:
div.qa-txt {
width: 98%;
padding: 0.5ex 0.2ex 0.5ex 0.2ex;
margin: 0.3ex auto 0.3ex auto;
border-width: 1px;
border-style: solid;
border-radius: 0.3ex;
border-color: rgba(0, 0, 0, .25);
min-height: 2.5em;
font-family: monospace;
white-space: pre-wrap;
overflow-wrap: break-word;
}</answer></card></deck></memorysurfer>