harvester 0.8.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +45 -0
- data/README.rdoc +74 -0
- data/Rakefile +28 -0
- data/bin/harvester +13 -0
- data/bin/harvester-chart +5 -0
- data/bin/harvester-clock +35 -0
- data/bin/harvester-db +15 -0
- data/bin/harvester-fetch +5 -0
- data/bin/harvester-generate +5 -0
- data/bin/harvester-jabber +6 -0
- data/bin/harvester-new +25 -0
- data/bin/harvester-post +5 -0
- data/bin/harvester-run +14 -0
- data/collections.yaml +15 -0
- data/config.yaml +13 -0
- data/data/ent/HTMLlat1.ent +194 -0
- data/data/ent/HTMLspecial.ent +77 -0
- data/data/ent/HTMLsymbol.ent +241 -0
- data/data/sql/dbd-mysql-isotime.diff +11 -0
- data/data/sql/harvester-0.6-mysql.diff +59 -0
- data/data/sql/harvester-0.7-mysql.diff +39 -0
- data/data/sql/mysql/chart.sql +1 -0
- data/data/sql/mysql/create.table.enclosures.sql +9 -0
- data/data/sql/mysql/create.table.items.sql +8 -0
- data/data/sql/mysql/create.table.jabbersettings.sql +5 -0
- data/data/sql/mysql/create.table.jabbersubscriptions.sql +5 -0
- data/data/sql/mysql/create.table.sources.sql +9 -0
- data/data/sql/mysql/create.view.last48hours.sql +1 -0
- data/data/sql/postgresql/chart.sql +1 -0
- data/data/sql/postgresql/create.table.enclosures.sql +9 -0
- data/data/sql/postgresql/create.table.items.sql +8 -0
- data/data/sql/postgresql/create.table.jabbersettings.sql +5 -0
- data/data/sql/postgresql/create.table.jabbersubscriptions.sql +5 -0
- data/data/sql/postgresql/create.table.sources.sql +9 -0
- data/data/sql/postgresql/create.view.last48hours.sql +1 -0
- data/data/sql/sqlite3/chart.sql +1 -0
- data/data/sql/sqlite3/create.table.enclosures.sql +9 -0
- data/data/sql/sqlite3/create.table.items.sql +8 -0
- data/data/sql/sqlite3/create.table.jabbersettings.sql +5 -0
- data/data/sql/sqlite3/create.table.jabbersubscriptions.sql +5 -0
- data/data/sql/sqlite3/create.table.sources.sql +9 -0
- data/data/sql/sqlite3/create.view.last48hours.sql +1 -0
- data/data/templates/atom-all.xml +88 -0
- data/data/templates/atom.xml +88 -0
- data/data/templates/index.html +412 -0
- data/data/templates/rss-all.rdf +86 -0
- data/data/templates/rss.rdf +85 -0
- data/data/templates/static/harvester.css +365 -0
- data/data/templates/static/harvester.gif +0 -0
- data/data/templates/static/harvester_ie7.css +15 -0
- data/data/templates/static/harvester_lte_ie6.css +27 -0
- data/harvester.gemspec +35 -0
- data/lib/harvester.rb +132 -0
- data/lib/harvester/chart.rb +72 -0
- data/lib/harvester/db.rb +123 -0
- data/lib/harvester/fetch.rb +96 -0
- data/lib/harvester/generate.rb +152 -0
- data/lib/harvester/generator/entity_translator.rb +46 -0
- data/lib/harvester/generator/link_absolutizer.rb +39 -0
- data/lib/harvester/jabber.rb +443 -0
- data/lib/harvester/mrss.rb +355 -0
- data/lib/harvester/post.rb +19 -0
- metadata +237 -0
@@ -0,0 +1,77 @@
|
|
1
|
+
<!-- Special characters for HTML -->
|
2
|
+
|
3
|
+
<!-- Character entity set. Typical invocation:
|
4
|
+
<!ENTITY % HTMLspecial PUBLIC
|
5
|
+
"-//W3C//ENTITIES Special//EN//HTML">
|
6
|
+
%HTMLspecial; -->
|
7
|
+
|
8
|
+
<!-- Portions (C) International Organization for Standardization 1986:
|
9
|
+
Permission to copy in any form is granted for use with
|
10
|
+
conforming SGML systems and applications as defined in
|
11
|
+
ISO 8879, provided this notice is included in all copies.
|
12
|
+
-->
|
13
|
+
|
14
|
+
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
15
|
+
New names (i.e., not in ISO 8879 list) do not clash with any
|
16
|
+
existing ISO 8879 entity names. ISO 10646 character numbers
|
17
|
+
are given for each character, in hex. CDATA values are decimal
|
18
|
+
conversions of the ISO 10646 values and refer to the document
|
19
|
+
character set. Names are ISO 10646 names.
|
20
|
+
|
21
|
+
-->
|
22
|
+
|
23
|
+
<!-- C0 Controls and Basic Latin -->
|
24
|
+
<!ENTITY quot CDATA """ -- quotation mark = APL quote,
|
25
|
+
U+0022 ISOnum -->
|
26
|
+
<!ENTITY amp CDATA "&" -- ampersand, U+0026 ISOnum -->
|
27
|
+
<!ENTITY lt CDATA "<" -- less-than sign, U+003C ISOnum -->
|
28
|
+
<!ENTITY gt CDATA ">" -- greater-than sign, U+003E ISOnum -->
|
29
|
+
|
30
|
+
<!-- Latin Extended-A -->
|
31
|
+
<!ENTITY OElig CDATA "Œ" -- latin capital ligature OE,
|
32
|
+
U+0152 ISOlat2 -->
|
33
|
+
<!ENTITY oelig CDATA "œ" -- latin small ligature oe, U+0153 ISOlat2 -->
|
34
|
+
<!-- ligature is a misnomer, this is a separate character in some languages -->
|
35
|
+
<!ENTITY Scaron CDATA "Š" -- latin capital letter S with caron,
|
36
|
+
U+0160 ISOlat2 -->
|
37
|
+
<!ENTITY scaron CDATA "š" -- latin small letter s with caron,
|
38
|
+
U+0161 ISOlat2 -->
|
39
|
+
<!ENTITY Yuml CDATA "Ÿ" -- latin capital letter Y with diaeresis,
|
40
|
+
U+0178 ISOlat2 -->
|
41
|
+
|
42
|
+
<!-- Spacing Modifier Letters -->
|
43
|
+
<!ENTITY circ CDATA "ˆ" -- modifier letter circumflex accent,
|
44
|
+
U+02C6 ISOpub -->
|
45
|
+
<!ENTITY tilde CDATA "˜" -- small tilde, U+02DC ISOdia -->
|
46
|
+
|
47
|
+
<!-- General Punctuation -->
|
48
|
+
<!ENTITY ensp CDATA " " -- en space, U+2002 ISOpub -->
|
49
|
+
<!ENTITY emsp CDATA " " -- em space, U+2003 ISOpub -->
|
50
|
+
<!ENTITY thinsp CDATA " " -- thin space, U+2009 ISOpub -->
|
51
|
+
<!ENTITY zwnj CDATA "‌" -- zero width non-joiner,
|
52
|
+
U+200C NEW RFC 2070 -->
|
53
|
+
<!ENTITY zwj CDATA "‍" -- zero width joiner, U+200D NEW RFC 2070 -->
|
54
|
+
<!ENTITY lrm CDATA "‎" -- left-to-right mark, U+200E NEW RFC 2070 -->
|
55
|
+
<!ENTITY rlm CDATA "‏" -- right-to-left mark, U+200F NEW RFC 2070 -->
|
56
|
+
<!ENTITY ndash CDATA "–" -- en dash, U+2013 ISOpub -->
|
57
|
+
<!ENTITY mdash CDATA "—" -- em dash, U+2014 ISOpub -->
|
58
|
+
<!ENTITY lsquo CDATA "‘" -- left single quotation mark,
|
59
|
+
U+2018 ISOnum -->
|
60
|
+
<!ENTITY rsquo CDATA "’" -- right single quotation mark,
|
61
|
+
U+2019 ISOnum -->
|
62
|
+
<!ENTITY sbquo CDATA "‚" -- single low-9 quotation mark, U+201A NEW -->
|
63
|
+
<!ENTITY ldquo CDATA "“" -- left double quotation mark,
|
64
|
+
U+201C ISOnum -->
|
65
|
+
<!ENTITY rdquo CDATA "”" -- right double quotation mark,
|
66
|
+
U+201D ISOnum -->
|
67
|
+
<!ENTITY bdquo CDATA "„" -- double low-9 quotation mark, U+201E NEW -->
|
68
|
+
<!ENTITY dagger CDATA "†" -- dagger, U+2020 ISOpub -->
|
69
|
+
<!ENTITY Dagger CDATA "‡" -- double dagger, U+2021 ISOpub -->
|
70
|
+
<!ENTITY permil CDATA "‰" -- per mille sign, U+2030 ISOtech -->
|
71
|
+
<!ENTITY lsaquo CDATA "‹" -- single left-pointing angle quotation mark,
|
72
|
+
U+2039 ISO proposed -->
|
73
|
+
<!-- lsaquo is proposed but not yet ISO standardized -->
|
74
|
+
<!ENTITY rsaquo CDATA "›" -- single right-pointing angle quotation mark,
|
75
|
+
U+203A ISO proposed -->
|
76
|
+
<!-- rsaquo is proposed but not yet ISO standardized -->
|
77
|
+
<!ENTITY euro CDATA "€" -- euro sign, U+20AC NEW -->
|
@@ -0,0 +1,241 @@
|
|
1
|
+
<!-- Mathematical, Greek and Symbolic characters for HTML -->
|
2
|
+
|
3
|
+
<!-- Character entity set. Typical invocation:
|
4
|
+
<!ENTITY % HTMLsymbol PUBLIC
|
5
|
+
"-//W3C//ENTITIES Symbols//EN//HTML">
|
6
|
+
%HTMLsymbol; -->
|
7
|
+
|
8
|
+
<!-- Portions (C) International Organization for Standardization 1986:
|
9
|
+
Permission to copy in any form is granted for use with
|
10
|
+
conforming SGML systems and applications as defined in
|
11
|
+
ISO 8879, provided this notice is included in all copies.
|
12
|
+
-->
|
13
|
+
|
14
|
+
<!-- Relevant ISO entity set is given unless names are newly introduced.
|
15
|
+
New names (i.e., not in ISO 8879 list) do not clash with any
|
16
|
+
existing ISO 8879 entity names. ISO 10646 character numbers
|
17
|
+
are given for each character, in hex. CDATA values are decimal
|
18
|
+
conversions of the ISO 10646 values and refer to the document
|
19
|
+
character set. Names are ISO 10646 names.
|
20
|
+
|
21
|
+
-->
|
22
|
+
|
23
|
+
<!-- Latin Extended-B -->
|
24
|
+
<!ENTITY fnof CDATA "ƒ" -- latin small f with hook = function
|
25
|
+
= florin, U+0192 ISOtech -->
|
26
|
+
|
27
|
+
<!-- Greek -->
|
28
|
+
<!ENTITY Alpha CDATA "Α" -- greek capital letter alpha, U+0391 -->
|
29
|
+
<!ENTITY Beta CDATA "Β" -- greek capital letter beta, U+0392 -->
|
30
|
+
<!ENTITY Gamma CDATA "Γ" -- greek capital letter gamma,
|
31
|
+
U+0393 ISOgrk3 -->
|
32
|
+
<!ENTITY Delta CDATA "Δ" -- greek capital letter delta,
|
33
|
+
U+0394 ISOgrk3 -->
|
34
|
+
<!ENTITY Epsilon CDATA "Ε" -- greek capital letter epsilon, U+0395 -->
|
35
|
+
<!ENTITY Zeta CDATA "Ζ" -- greek capital letter zeta, U+0396 -->
|
36
|
+
<!ENTITY Eta CDATA "Η" -- greek capital letter eta, U+0397 -->
|
37
|
+
<!ENTITY Theta CDATA "Θ" -- greek capital letter theta,
|
38
|
+
U+0398 ISOgrk3 -->
|
39
|
+
<!ENTITY Iota CDATA "Ι" -- greek capital letter iota, U+0399 -->
|
40
|
+
<!ENTITY Kappa CDATA "Κ" -- greek capital letter kappa, U+039A -->
|
41
|
+
<!ENTITY Lambda CDATA "Λ" -- greek capital letter lambda,
|
42
|
+
U+039B ISOgrk3 -->
|
43
|
+
<!ENTITY Mu CDATA "Μ" -- greek capital letter mu, U+039C -->
|
44
|
+
<!ENTITY Nu CDATA "Ν" -- greek capital letter nu, U+039D -->
|
45
|
+
<!ENTITY Xi CDATA "Ξ" -- greek capital letter xi, U+039E ISOgrk3 -->
|
46
|
+
<!ENTITY Omicron CDATA "Ο" -- greek capital letter omicron, U+039F -->
|
47
|
+
<!ENTITY Pi CDATA "Π" -- greek capital letter pi, U+03A0 ISOgrk3 -->
|
48
|
+
<!ENTITY Rho CDATA "Ρ" -- greek capital letter rho, U+03A1 -->
|
49
|
+
<!-- there is no Sigmaf, and no U+03A2 character either -->
|
50
|
+
<!ENTITY Sigma CDATA "Σ" -- greek capital letter sigma,
|
51
|
+
U+03A3 ISOgrk3 -->
|
52
|
+
<!ENTITY Tau CDATA "Τ" -- greek capital letter tau, U+03A4 -->
|
53
|
+
<!ENTITY Upsilon CDATA "Υ" -- greek capital letter upsilon,
|
54
|
+
U+03A5 ISOgrk3 -->
|
55
|
+
<!ENTITY Phi CDATA "Φ" -- greek capital letter phi,
|
56
|
+
U+03A6 ISOgrk3 -->
|
57
|
+
<!ENTITY Chi CDATA "Χ" -- greek capital letter chi, U+03A7 -->
|
58
|
+
<!ENTITY Psi CDATA "Ψ" -- greek capital letter psi,
|
59
|
+
U+03A8 ISOgrk3 -->
|
60
|
+
<!ENTITY Omega CDATA "Ω" -- greek capital letter omega,
|
61
|
+
U+03A9 ISOgrk3 -->
|
62
|
+
|
63
|
+
<!ENTITY alpha CDATA "α" -- greek small letter alpha,
|
64
|
+
U+03B1 ISOgrk3 -->
|
65
|
+
<!ENTITY beta CDATA "β" -- greek small letter beta, U+03B2 ISOgrk3 -->
|
66
|
+
<!ENTITY gamma CDATA "γ" -- greek small letter gamma,
|
67
|
+
U+03B3 ISOgrk3 -->
|
68
|
+
<!ENTITY delta CDATA "δ" -- greek small letter delta,
|
69
|
+
U+03B4 ISOgrk3 -->
|
70
|
+
<!ENTITY epsilon CDATA "ε" -- greek small letter epsilon,
|
71
|
+
U+03B5 ISOgrk3 -->
|
72
|
+
<!ENTITY zeta CDATA "ζ" -- greek small letter zeta, U+03B6 ISOgrk3 -->
|
73
|
+
<!ENTITY eta CDATA "η" -- greek small letter eta, U+03B7 ISOgrk3 -->
|
74
|
+
<!ENTITY theta CDATA "θ" -- greek small letter theta,
|
75
|
+
U+03B8 ISOgrk3 -->
|
76
|
+
<!ENTITY iota CDATA "ι" -- greek small letter iota, U+03B9 ISOgrk3 -->
|
77
|
+
<!ENTITY kappa CDATA "κ" -- greek small letter kappa,
|
78
|
+
U+03BA ISOgrk3 -->
|
79
|
+
<!ENTITY lambda CDATA "λ" -- greek small letter lambda,
|
80
|
+
U+03BB ISOgrk3 -->
|
81
|
+
<!ENTITY mu CDATA "μ" -- greek small letter mu, U+03BC ISOgrk3 -->
|
82
|
+
<!ENTITY nu CDATA "ν" -- greek small letter nu, U+03BD ISOgrk3 -->
|
83
|
+
<!ENTITY xi CDATA "ξ" -- greek small letter xi, U+03BE ISOgrk3 -->
|
84
|
+
<!ENTITY omicron CDATA "ο" -- greek small letter omicron, U+03BF NEW -->
|
85
|
+
<!ENTITY pi CDATA "π" -- greek small letter pi, U+03C0 ISOgrk3 -->
|
86
|
+
<!ENTITY rho CDATA "ρ" -- greek small letter rho, U+03C1 ISOgrk3 -->
|
87
|
+
<!ENTITY sigmaf CDATA "ς" -- greek small letter final sigma,
|
88
|
+
U+03C2 ISOgrk3 -->
|
89
|
+
<!ENTITY sigma CDATA "σ" -- greek small letter sigma,
|
90
|
+
U+03C3 ISOgrk3 -->
|
91
|
+
<!ENTITY tau CDATA "τ" -- greek small letter tau, U+03C4 ISOgrk3 -->
|
92
|
+
<!ENTITY upsilon CDATA "υ" -- greek small letter upsilon,
|
93
|
+
U+03C5 ISOgrk3 -->
|
94
|
+
<!ENTITY phi CDATA "φ" -- greek small letter phi, U+03C6 ISOgrk3 -->
|
95
|
+
<!ENTITY chi CDATA "χ" -- greek small letter chi, U+03C7 ISOgrk3 -->
|
96
|
+
<!ENTITY psi CDATA "ψ" -- greek small letter psi, U+03C8 ISOgrk3 -->
|
97
|
+
<!ENTITY omega CDATA "ω" -- greek small letter omega,
|
98
|
+
U+03C9 ISOgrk3 -->
|
99
|
+
<!ENTITY thetasym CDATA "ϑ" -- greek small letter theta symbol,
|
100
|
+
U+03D1 NEW -->
|
101
|
+
<!ENTITY upsih CDATA "ϒ" -- greek upsilon with hook symbol,
|
102
|
+
U+03D2 NEW -->
|
103
|
+
<!ENTITY piv CDATA "ϖ" -- greek pi symbol, U+03D6 ISOgrk3 -->
|
104
|
+
|
105
|
+
<!-- General Punctuation -->
|
106
|
+
<!ENTITY bull CDATA "•" -- bullet = black small circle,
|
107
|
+
U+2022 ISOpub -->
|
108
|
+
<!-- bullet is NOT the same as bullet operator, U+2219 -->
|
109
|
+
<!ENTITY hellip CDATA "…" -- horizontal ellipsis = three dot leader,
|
110
|
+
U+2026 ISOpub -->
|
111
|
+
<!ENTITY prime CDATA "′" -- prime = minutes = feet, U+2032 ISOtech -->
|
112
|
+
<!ENTITY Prime CDATA "″" -- double prime = seconds = inches,
|
113
|
+
U+2033 ISOtech -->
|
114
|
+
<!ENTITY oline CDATA "‾" -- overline = spacing overscore,
|
115
|
+
U+203E NEW -->
|
116
|
+
<!ENTITY frasl CDATA "⁄" -- fraction slash, U+2044 NEW -->
|
117
|
+
|
118
|
+
<!-- Letterlike Symbols -->
|
119
|
+
<!ENTITY weierp CDATA "℘" -- script capital P = power set
|
120
|
+
= Weierstrass p, U+2118 ISOamso -->
|
121
|
+
<!ENTITY image CDATA "ℑ" -- blackletter capital I = imaginary part,
|
122
|
+
U+2111 ISOamso -->
|
123
|
+
<!ENTITY real CDATA "ℜ" -- blackletter capital R = real part symbol,
|
124
|
+
U+211C ISOamso -->
|
125
|
+
<!ENTITY trade CDATA "™" -- trade mark sign, U+2122 ISOnum -->
|
126
|
+
<!ENTITY alefsym CDATA "ℵ" -- alef symbol = first transfinite cardinal,
|
127
|
+
U+2135 NEW -->
|
128
|
+
<!-- alef symbol is NOT the same as hebrew letter alef,
|
129
|
+
U+05D0 although the same glyph could be used to depict both characters -->
|
130
|
+
|
131
|
+
<!-- Arrows -->
|
132
|
+
<!ENTITY larr CDATA "←" -- leftwards arrow, U+2190 ISOnum -->
|
133
|
+
<!ENTITY uarr CDATA "↑" -- upwards arrow, U+2191 ISOnum-->
|
134
|
+
<!ENTITY rarr CDATA "→" -- rightwards arrow, U+2192 ISOnum -->
|
135
|
+
<!ENTITY darr CDATA "↓" -- downwards arrow, U+2193 ISOnum -->
|
136
|
+
<!ENTITY harr CDATA "↔" -- left right arrow, U+2194 ISOamsa -->
|
137
|
+
<!ENTITY crarr CDATA "↵" -- downwards arrow with corner leftwards
|
138
|
+
= carriage return, U+21B5 NEW -->
|
139
|
+
<!ENTITY lArr CDATA "⇐" -- leftwards double arrow, U+21D0 ISOtech -->
|
140
|
+
<!-- ISO 10646 does not say that lArr is the same as the 'is implied by' arrow
|
141
|
+
but also does not have any other character for that function. So ? lArr can
|
142
|
+
be used for 'is implied by' as ISOtech suggests -->
|
143
|
+
<!ENTITY uArr CDATA "⇑" -- upwards double arrow, U+21D1 ISOamsa -->
|
144
|
+
<!ENTITY rArr CDATA "⇒" -- rightwards double arrow,
|
145
|
+
U+21D2 ISOtech -->
|
146
|
+
<!-- ISO 10646 does not say this is the 'implies' character but does not have
|
147
|
+
another character with this function so ?
|
148
|
+
rArr can be used for 'implies' as ISOtech suggests -->
|
149
|
+
<!ENTITY dArr CDATA "⇓" -- downwards double arrow, U+21D3 ISOamsa -->
|
150
|
+
<!ENTITY hArr CDATA "⇔" -- left right double arrow,
|
151
|
+
U+21D4 ISOamsa -->
|
152
|
+
|
153
|
+
<!-- Mathematical Operators -->
|
154
|
+
<!ENTITY forall CDATA "∀" -- for all, U+2200 ISOtech -->
|
155
|
+
<!ENTITY part CDATA "∂" -- partial differential, U+2202 ISOtech -->
|
156
|
+
<!ENTITY exist CDATA "∃" -- there exists, U+2203 ISOtech -->
|
157
|
+
<!ENTITY empty CDATA "∅" -- empty set = null set = diameter,
|
158
|
+
U+2205 ISOamso -->
|
159
|
+
<!ENTITY nabla CDATA "∇" -- nabla = backward difference,
|
160
|
+
U+2207 ISOtech -->
|
161
|
+
<!ENTITY isin CDATA "∈" -- element of, U+2208 ISOtech -->
|
162
|
+
<!ENTITY notin CDATA "∉" -- not an element of, U+2209 ISOtech -->
|
163
|
+
<!ENTITY ni CDATA "∋" -- contains as member, U+220B ISOtech -->
|
164
|
+
<!-- should there be a more memorable name than 'ni'? -->
|
165
|
+
<!ENTITY prod CDATA "∏" -- n-ary product = product sign,
|
166
|
+
U+220F ISOamsb -->
|
167
|
+
<!-- prod is NOT the same character as U+03A0 'greek capital letter pi' though
|
168
|
+
the same glyph might be used for both -->
|
169
|
+
<!ENTITY sum CDATA "∑" -- n-ary sumation, U+2211 ISOamsb -->
|
170
|
+
<!-- sum is NOT the same character as U+03A3 'greek capital letter sigma'
|
171
|
+
though the same glyph might be used for both -->
|
172
|
+
<!ENTITY minus CDATA "−" -- minus sign, U+2212 ISOtech -->
|
173
|
+
<!ENTITY lowast CDATA "∗" -- asterisk operator, U+2217 ISOtech -->
|
174
|
+
<!ENTITY radic CDATA "√" -- square root = radical sign,
|
175
|
+
U+221A ISOtech -->
|
176
|
+
<!ENTITY prop CDATA "∝" -- proportional to, U+221D ISOtech -->
|
177
|
+
<!ENTITY infin CDATA "∞" -- infinity, U+221E ISOtech -->
|
178
|
+
<!ENTITY ang CDATA "∠" -- angle, U+2220 ISOamso -->
|
179
|
+
<!ENTITY and CDATA "∧" -- logical and = wedge, U+2227 ISOtech -->
|
180
|
+
<!ENTITY or CDATA "∨" -- logical or = vee, U+2228 ISOtech -->
|
181
|
+
<!ENTITY cap CDATA "∩" -- intersection = cap, U+2229 ISOtech -->
|
182
|
+
<!ENTITY cup CDATA "∪" -- union = cup, U+222A ISOtech -->
|
183
|
+
<!ENTITY int CDATA "∫" -- integral, U+222B ISOtech -->
|
184
|
+
<!ENTITY there4 CDATA "∴" -- therefore, U+2234 ISOtech -->
|
185
|
+
<!ENTITY sim CDATA "∼" -- tilde operator = varies with = similar to,
|
186
|
+
U+223C ISOtech -->
|
187
|
+
<!-- tilde operator is NOT the same character as the tilde, U+007E,
|
188
|
+
although the same glyph might be used to represent both -->
|
189
|
+
<!ENTITY cong CDATA "≅" -- approximately equal to, U+2245 ISOtech -->
|
190
|
+
<!ENTITY asymp CDATA "≈" -- almost equal to = asymptotic to,
|
191
|
+
U+2248 ISOamsr -->
|
192
|
+
<!ENTITY ne CDATA "≠" -- not equal to, U+2260 ISOtech -->
|
193
|
+
<!ENTITY equiv CDATA "≡" -- identical to, U+2261 ISOtech -->
|
194
|
+
<!ENTITY le CDATA "≤" -- less-than or equal to, U+2264 ISOtech -->
|
195
|
+
<!ENTITY ge CDATA "≥" -- greater-than or equal to,
|
196
|
+
U+2265 ISOtech -->
|
197
|
+
<!ENTITY sub CDATA "⊂" -- subset of, U+2282 ISOtech -->
|
198
|
+
<!ENTITY sup CDATA "⊃" -- superset of, U+2283 ISOtech -->
|
199
|
+
<!-- note that nsup, 'not a superset of, U+2283' is not covered by the Symbol
|
200
|
+
font encoding and is not included. Should it be, for symmetry?
|
201
|
+
It is in ISOamsn -->
|
202
|
+
<!ENTITY nsub CDATA "⊄" -- not a subset of, U+2284 ISOamsn -->
|
203
|
+
<!ENTITY sube CDATA "⊆" -- subset of or equal to, U+2286 ISOtech -->
|
204
|
+
<!ENTITY supe CDATA "⊇" -- superset of or equal to,
|
205
|
+
U+2287 ISOtech -->
|
206
|
+
<!ENTITY oplus CDATA "⊕" -- circled plus = direct sum,
|
207
|
+
U+2295 ISOamsb -->
|
208
|
+
<!ENTITY otimes CDATA "⊗" -- circled times = vector product,
|
209
|
+
U+2297 ISOamsb -->
|
210
|
+
<!ENTITY perp CDATA "⊥" -- up tack = orthogonal to = perpendicular,
|
211
|
+
U+22A5 ISOtech -->
|
212
|
+
<!ENTITY sdot CDATA "⋅" -- dot operator, U+22C5 ISOamsb -->
|
213
|
+
<!-- dot operator is NOT the same character as U+00B7 middle dot -->
|
214
|
+
|
215
|
+
<!-- Miscellaneous Technical -->
|
216
|
+
<!ENTITY lceil CDATA "⌈" -- left ceiling = apl upstile,
|
217
|
+
U+2308 ISOamsc -->
|
218
|
+
<!ENTITY rceil CDATA "⌉" -- right ceiling, U+2309 ISOamsc -->
|
219
|
+
<!ENTITY lfloor CDATA "⌊" -- left floor = apl downstile,
|
220
|
+
U+230A ISOamsc -->
|
221
|
+
<!ENTITY rfloor CDATA "⌋" -- right floor, U+230B ISOamsc -->
|
222
|
+
<!ENTITY lang CDATA "〈" -- left-pointing angle bracket = bra,
|
223
|
+
U+2329 ISOtech -->
|
224
|
+
<!-- lang is NOT the same character as U+003C 'less than'
|
225
|
+
or U+2039 'single left-pointing angle quotation mark' -->
|
226
|
+
<!ENTITY rang CDATA "〉" -- right-pointing angle bracket = ket,
|
227
|
+
U+232A ISOtech -->
|
228
|
+
<!-- rang is NOT the same character as U+003E 'greater than'
|
229
|
+
or U+203A 'single right-pointing angle quotation mark' -->
|
230
|
+
|
231
|
+
<!-- Geometric Shapes -->
|
232
|
+
<!ENTITY loz CDATA "◊" -- lozenge, U+25CA ISOpub -->
|
233
|
+
|
234
|
+
<!-- Miscellaneous Symbols -->
|
235
|
+
<!ENTITY spades CDATA "♠" -- black spade suit, U+2660 ISOpub -->
|
236
|
+
<!-- black here seems to mean filled as opposed to hollow -->
|
237
|
+
<!ENTITY clubs CDATA "♣" -- black club suit = shamrock,
|
238
|
+
U+2663 ISOpub -->
|
239
|
+
<!ENTITY hearts CDATA "♥" -- black heart suit = valentine,
|
240
|
+
U+2665 ISOpub -->
|
241
|
+
<!ENTITY diams CDATA "♦" -- black diamond suit, U+2666 ISOpub -->
|
@@ -0,0 +1,11 @@
|
|
1
|
+
--- git/harvester/fetch.rb 2010-08-29 23:16:17.000000000 +0200
|
2
|
+
+++ harvester/fetch.rb 2011-01-03 16:57:14.000000000 +0100
|
3
|
+
@@ -152,7 +152,7 @@
|
4
|
+
if item_is_new
|
5
|
+
begin
|
6
|
+
dbi.do "INSERT INTO items (rss, title, link, date, description) VALUES (?, ?, ?, ?, ?)",
|
7
|
+
- rss_url, item.title, link, item.date, description
|
8
|
+
+ rss_url, item.title, link, item.date.iso8601, description
|
9
|
+
items_new += 1
|
10
|
+
rescue DBI::ProgrammingError
|
11
|
+
puts description
|
@@ -0,0 +1,59 @@
|
|
1
|
+
diff -u harvester-0.6/config.yaml harvester-0.6-mysql/config.yaml
|
2
|
+
--- harvester-0.6/config.yaml 2006-04-14 22:29:53.000000000 +0200
|
3
|
+
+++ harvester-0.6-mysql/config.yaml 2006-10-03 11:47:48.303550000 +0200
|
4
|
+
@@ -1,8 +1,8 @@
|
5
|
+
---
|
6
|
+
db:
|
7
|
+
- driver: dbi:Pg:harvester:localhost
|
8
|
+
- user: harvester
|
9
|
+
- password: ***
|
10
|
+
+ driver: dbi:MySQL:database_name:localhost
|
11
|
+
+ user: username
|
12
|
+
+ password: password
|
13
|
+
settings:
|
14
|
+
size limit: 102400
|
15
|
+
timeout: 30
|
16
|
+
diff -u harvester-0.6/db.sql harvester-0.6-mysql/db.sql
|
17
|
+
--- harvester-0.6/db.sql 2006-03-13 03:38:57.000000000 +0100
|
18
|
+
+++ harvester-0.6-mysql/db.sql 2006-10-03 11:41:49.549129250 +0200
|
19
|
+
@@ -1,6 +1,6 @@
|
20
|
+
create table sources (
|
21
|
+
- collection varchar(256) not null,
|
22
|
+
- rss varchar(256) not null,
|
23
|
+
+ collection varchar(100) not null,
|
24
|
+
+ rss varchar(100) not null,
|
25
|
+
last varchar(40),
|
26
|
+
title varchar(256),
|
27
|
+
link varchar(256),
|
28
|
+
@@ -9,24 +9,24 @@
|
29
|
+
);
|
30
|
+
|
31
|
+
create table items (
|
32
|
+
- rss varchar(256) not null,
|
33
|
+
+ rss varchar(100) not null,
|
34
|
+
title varchar(256),
|
35
|
+
- link varchar(256),
|
36
|
+
- date timestamp,
|
37
|
+
+ link varchar(100),
|
38
|
+
+ date datetime,
|
39
|
+
description text,
|
40
|
+
unique (rss, link)
|
41
|
+
);
|
42
|
+
|
43
|
+
-create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval '48 hour' < items.date order by date;
|
44
|
+
+create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval 48 hour < items.date order by date;
|
45
|
+
|
46
|
+
create table jabbersubscriptions (
|
47
|
+
- jid varchar(256) not null,
|
48
|
+
- collection varchar(256) not null,
|
49
|
+
+ jid varchar(100) not null,
|
50
|
+
+ collection varchar(100) not null,
|
51
|
+
unique (jid, collection)
|
52
|
+
);
|
53
|
+
|
54
|
+
create table jabbersettings (
|
55
|
+
jid varchar(256) primary key,
|
56
|
+
- respect_status boolean,
|
57
|
+
+ respect_status tinyint(1),
|
58
|
+
message_type varchar(16)
|
59
|
+
);
|
@@ -0,0 +1,39 @@
|
|
1
|
+
--- db.sql.orig 2007-08-16 17:41:45.000000000 +0200
|
2
|
+
+++ db.sql 2007-09-30 13:55:12.000000000 +0200
|
3
|
+
@@ -5,7 +5,7 @@
|
4
|
+
title varchar(255),
|
5
|
+
link varchar(255),
|
6
|
+
description text,
|
7
|
+
- unique (collection, rss)
|
8
|
+
+ unique (collection(166), rss(166))
|
9
|
+
);
|
10
|
+
|
11
|
+
create table items (
|
12
|
+
@@ -14,7 +14,7 @@
|
13
|
+
link varchar(255),
|
14
|
+
date timestamp,
|
15
|
+
description text,
|
16
|
+
- unique (rss, link)
|
17
|
+
+ unique (rss(166), link(166))
|
18
|
+
);
|
19
|
+
|
20
|
+
create table enclosures (
|
21
|
+
@@ -24,15 +24,15 @@
|
22
|
+
mime varchar(255),
|
23
|
+
title varchar(255),
|
24
|
+
length int,
|
25
|
+
- unique (rss, link, href)
|
26
|
+
+ unique (rss(100), link(100), href(100))
|
27
|
+
);
|
28
|
+
|
29
|
+
-create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval '48 hour' < items.date order by date;
|
30
|
+
+create view last48hrs as select items.rss, items.title, items.link, sources.title as blogtitle, sources.collection from items, sources where items.rss = sources.rss and now() - interval 48 hour < items.`date` order by date;
|
31
|
+
|
32
|
+
create table jabbersubscriptions (
|
33
|
+
jid varchar(255) not null,
|
34
|
+
collection varchar(255) not null,
|
35
|
+
- unique (jid, collection)
|
36
|
+
+ unique (jid(166), collection(166))
|
37
|
+
);
|
38
|
+
|
39
|
+
create table jabbersettings (
|
@@ -0,0 +1 @@
|
|
1
|
+
select date(items.date) as date,sources.collection from items left join sources on sources.rss=items.rss where date > now() - interval '14 days' and date < now() + interval '1 day' order by date
|