-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTODO.txt
306 lines (204 loc) · 11.3 KB
/
TODO.txt
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# ----------- TODOs ideas for ./w
- when new window is opened from link, it should record the current location (url or line number?)
- google ads tracking iframes:
- <noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NS64GV" title="GTM" height="0" width="0" style="display:none;visibility:hidden">
</iframe>
</noscript>
- RSS spec not readable and doesn't render as they have a "table" wrapping all of the page:
TODO: if the table seems to be "layout" - give up and just dump the formatted stuff...
(seems during parsing the * of the <li> get's "displayed". Possibly that and spacing and etc, (ansi-color codes) should go through a (_)p(c) function to capture?
- https://www.rssboard.org/rss-specifi
cation
- assert break for table
Whole page is inside table...
(when to give up table tag? revert to simple?)
- https://blog.robertelder.org/diff-algorithm/
- w.x segfault https://en.wikipedia.org/wiki/Irish_Travellers
- wdownload gives different version shorter!!!
~/GIT/RetroFit $ ./ls i*.html
166 inc-00.html
217 inc-01.html
229 inc-02.html
344792 ir-curl.html
344792 ir-myown.html
344792 ir.html
277697 irish.html
- if User-Agent contains "Android" or "iPhone" you'll get smaller version!
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent
- twtxt - textual mini tweeting platform
tweet "foobar"
follow bob
following (list)
unfollow bob
timeline (list global backwards 5m ago..)
view bob (url)
nick 0h me (name)
- https://twtxt.readthedocs.io/en/stable/user/configuration.html
- https://felix.plesoianu.ro/web/federation-fediverse.html
- TODO: twee/lyskom/news
note #fish foobar
todo [1 day, on wednesday] what
say (append to file [@foo])
news (unread+filter)
view bob
follow url
unfollow bob/url
list (filter)
list (all followed?)
find
- wget -O -o --no-check-certificate https://registry.twtxt.org/api/plain/users
= list "nick URL timestamp"
discover:
- https://twtxt.readthedocs.io/en/stable/user/discoverability.html
Filters: words/today/yesterday/last/top/unread/read/last week
Expansions: %u=url, %d=date %t=time %p=place, %i=iso-date-time, %f=file ansi, %n=%=tab number, %l=line, %e=email
- *.LINKS: links spanning spanning several lines get multiple entries.
- wget fails on.... https://au.finance.yahoo.com/news/the-boring-company-completes-the-excavation-of-its-las-vegas-tunnels-121043367.html
- 404 on "wrong" user-agent!
use -U "curl/7.78.0"
- somehting in scrolling makes it hang and not take any input...!
- img: display alt attribute, or rel?
<a href="https://hackaday.com/" rel="home">
<img src="https://hackaday.com/wp-content/themes/hackaday-2/img/logo.png" alt="Logo" class="logo-img">
</a>
<h1 class="site-title">
<a href="https://hackaday.com/" rel="home">Hackaday</a>
</h1>
- strange decolor (non-bright) of green only on page (in headers!)
- https://www.goodhousekeeping.com/uk/food/a566696/foods-you-shouldnt-put-in-a-slow-cooker/
- sitemaps?
- https://www.siteground.com/kb/what-is-a-sitemap/
- https://en.m.wikipedia.org/wiki/Sitemaps
- https://writemaps.com/blog/how-to-find-your-sitemap/
/sitemap
/sitemap.xml
/sitemap_index.xml
- use <nav> page for menu, sitemaps?
- blue link on black (h1/pre) is no good
- jump to content! role="main"
from hackaday!
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
<header id="masthead" class="site-header" role="banner">
<div id="content" class="site-content">
<section id="primary" class="content-area">
<main id="main" class="site-main" role="main">
- links without description in page?
- img: want to show 100% wide image
https://hackaday.com/tag/linux-fu/
- hint of img size in ? lol
<div class="entry-mobile-image"><a href="https://hackaday.com/2021/08/31/linux-fu-user-space-file-systems-now-for-windows-too/"><img src="https://hackaday.com/wp-content/uploads/2020/05/LinuxFu.jpg?w=600&h=450" alt=""></a></div>
- can you find the search-box?
<form rol="search" ...
- https://hackaday.com/blog/?s=esp32
- recover from unterminated tags:
<h3>Bitsavers'<br>
- http://bitsavers.informatik.uni-stuttgart.de/
- wordwrap bad of UTF-8 japanese?
- http://blog.esuteru.com/archives/9751843.html?fbclid=IwAR1-u63jqUCrhWgz5k8PSrAsW8mv2vHmXNHRTFYNDhZZgINvih6LNgLLfzA
- garbage on the screen when scrolling, table?
- http://designwithfontforge.com/en-US/Installing_Fontforge.html
- w.c <p> inside <ul> gives extra line breaks...
<ul><li><p>It provides a uniform interface to access font files.</p></li>
<li><p>It supports high-speed, anti-aliased glyph bitmap generation with 256 gray levels.</p></li>
- I really need it to persist TOP line (per document)
- AND the last page/document viewed...
(it implies that "viewing" a page/scroll) should create a new entry in history!
- many natural long text-tables in
- http://www.columbia.edu/cu/computinghistory/dec20.html
- DON'T break before , and . ? ) etc...
This massive grey and blue Stonehenge
, its thick tentacles reached
- viewing history, prefixes with http: even if local file, lol, need to normalize url before logging
- handle other manipulator of .whistory - now just get confused and out of sync when opening, need to continously "tail -f" the file! TODO: keep all "new tabs" in memory
- mysterious 0xbbef occur in lysator.liu.se generated ANSI:
- writing formula 3*4 bookmarks (stars) current page, maybe only do if empty cmd?
- <meta name="description" content="Meta descriptions can have a surprisingly large impact on your search marketing campaigns; find out how..." />
<meta name="keywords" content="meta description,google meta description,meta name description" />
<meta name="robots" content="index,follow" />
- runeberg.org/katalog.html - a 3.8MB table!
- .w/Cache/runeberg.org%2fkatalog.html.DOWN
- wless.x make it a (restrictable viewer of files, allow to run inside tmux, integration?)
- style not parsed correctly?
https://en.m.wikipedia.org/wiki/Forth
- https://sverigesradio.se/artikel/kriminella-gang-varvar-attaaringar-med-swish-hotar-och-skrammer?fbclid=IwAR25sXIr3rWqKBBszV7oVOU8zbCELs5Ry_hzl0UP6RrNPUlYeyDJYl9halk doesn't find files after download???
- ./w type an URL after clicking seems to get out of sync, and then it sais "reload" when clicking "a" (I think maybe wrong page?)
- ask cursor pos
$ printf "\e[6n" ; cat >fil
"^[[36;1R"
- use scroll region FROMLINE-TOLINE:
printf "\e[3;33r" to protect top/bottom!
- honor NOCACHE? CACHE directives? EXPIRE?
- TODO: how to only do RE-RENDER (w.x)?
(twice in a row?, lol)
- IDEA: auto-hilite link middle on page when do CTRL-P CTRL-N (line movement?), how about many links on same line? tab? (only if buffer=0 or last is space? lol)
- what is the /Tests/b.html on local filesystem? (-> ./Tests.b.html
<li><a href="/Tests/b.html">bbbbbbbbbbbbbbbbbb</a></li>
- perl whi2html generates E0 F6 F5 at end??? (generated by <br>!!!)
@5:^M<F5><E0>2021-08-18<F5>
@29138:^M06:46 :A:{et example.com}etexample<F6><F5>
- URL shortcut keys increased if it spans several lines!
- <br/> not recognized!
- when URL is q=TEXT extract and "put" in command line? possibley with search prefix "PAGE/"
- extract and log offset position in documetn of where viewed...
- ^U view source, extract and goto offset position (as per hidden)
- ^S step to next match (reverse?)
- ^O search and narrow for tags (currently not in text. Add hidden? <table> <h1> <h2> etc...
- w.x always log time it took for each file... this to find out extremes!
- at 100x100 scrolling is slow. less -r is fast scrolling down, but struggle upwards! I'm guessing it prints line at end and scrolls, but upwards it redraws. Curiously, if you scroll slowly upwards it's fine. Fast down, ok, fast up, no ok.
= Reading file each time from beginning is "stupid" cache, at least offset[lineno] need darray! or just read once for all (read twice first time, or only as when scrolls?).
???? Research: how much is slowdown because of "reading" 100x100==10 000 chars on screen, maybe 3x with formatting, read all, printf all? same speed as getc?
=== 300K ansi takes 8s to display on small screen, 11s on 97x109, this is captured output from loop 1..300 of wdisplay for each line full screen from top to bottom
???? copy runeberg.org.ANSI x 10 and browse with scroll pages: it gets progressive slower at about 1/3 of the file. 8000 pages, and 800Kbyte!
- when going back/forward in history skip several sequences of same URLs? (actully, they may have different positions/top?) (or don't add?)
- reload shouldn't (?) add to history?
- show welcom splash screen at startup instead of blank
- validate URL before calling wget
- indicate that a cashed version is shown "days old" (if too old reload autoamtically? Still show old first, then reload in background)
- generlize .wnetdown to contain message? maybe just general error at loading from external program?
- not give loading error on mailto: ?
- runeberg.org using iso-8850-1 latin-1? need translation (see js)
- optimized the nlines, no need count all bytes every time?
- Start rendering as soon as file loads?
- share/open in system browser
- on alternative URIs do:
termux-open "mailto:[email protected]?cc=foo@bar&subject=headline&body=big+fishes"
- how about alternative types? pdf? images? can detect without loading down? from URL (file endings? enctype?)
- URL completion? log/extract every URL:
unix> cut -d\ -f3 .whistory | sort | uniq -c | sort -rn | grep " Te" !!!
- Bracketed Paste Mode
When bracketed paste mode is set, pasted text is bracketed with control
sequences so that the program can differentiate pasted text from typed-
in text. When bracketed paste mode is set, the program will receive:
ESC [ 2 0 0 ~ ,
followed by the pasted text, followed by
ESC [ 2 0 1 ~ .
- Any-event tracking
Any-event mode is the same as button-event mode, except that all motion
events are reported, even if no mouse button is down. It is enabled by
specifying 1003 to DECSET.
- mouse scroll !
- mouse click click
- mouse menu
- https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
-
tmux: - https://unix.stackexchange.com/questions/172566/screen-xterm-how-to-select-text-with-the-mouse-in-one-only-pane-when-window-i
- use bold unicode for bold - https://unicode-table.com/en/blocks/mathematical-alphanumeric-symbols/ but NO bold numbers :-(
- allow font serif/monospace/normal bu
- .ANSI: change the #= out-of-band data, cache till next newline, output after:
<OFFET>#=W ...#=LINK <URL><clearend><bgcolor><fgcolor>TEXT TEXT TEXT(\n)
https://m.facebook.com/groups/GNUEmacsUsers/?notif_t=group_r2j_approved¬if_id=1629670864950883&ref=bookmarks
- .ANSI: add last lines #=LINES 4711
- .ANSI: add first "#"\r line with 80 chars, to later be overwritten with info #=LINES 4711 (if file is seekable!)
- when viewing URL-info (^Q) show bookmarks, and last visits (3 minutes ago, 7 hours ago, ...)
- wbookmarks: URL
- wbookmarks: SEARCH
- whistory: URL
- whistory: SEARCH
- whistory:
searching should generate result files and be part of history, using URI scheme like whistory:<url> wbookmarks:<url> wbookmarks:<foo>+<bar>
- need <td align=right>... for that display
- use field format for log files? keep fiexed fields?