date in search results
by Jim Nagel
What causes Google (or other searchers) to display (or not display) a
DATE in search results?
For instance, search for "Terran site:iconbar.com" -- some of the
items listed show a date and some don't.
If I ran the world, *every* item would show a date. So often one
wants current information, not waste time on stuff from 2001. But
sometimes historical stuff is indeed what is sought.
So state date. I've long wondered what the mechanism is.
--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24
5 years, 5 months
linking to root of website, not root of drive
by Jim Nagel
I have tidied up one of my websites to make better use of CSS, and now
intend to add some new pages to it. Of course I want to keep it
Netsurf-friendly.
The <head> section of each article includes the usual link to my
stylesheet, which (in Linux filepath syntax) might be
2018.css or
../2018.css or
../../2018.css etc
depending how many branches back it roosts on the directory tree.
Advice from Linuxland tells me that simply prefixing a "/" with no
dots before it makes the link "absolute" (to the root of the website)
rather than relative to the page where we are when writing the link.
IT would be quite handy&welcome to use this trick rather than having
to adjust the links for stylesheet, page background and top-of-page
graphic if I relocate a page in the directory structure. This indeed
works when viewing my page online.
However, when developing the page in the local copy of my site rather
than online, the "absolute" version of the link looks for the *root
directory of my own RiscOS drive* rather than the root of the website.
If I make a copy of the stylesheet as $.2018/css Netsurf is happy.
Is there a way around this? Is there some setting I would need to
make in Netsurf to define what I mean by "/" as root? (Presumably
there is such a setting in my ISP's software, for I am not being taken
to the root of their drive!)
Excuse me if this is a dumb question, but I haven't been here before.
http://glastonburyconservation.org.uk if anybody wants to have a look.
--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24
5 years, 6 months
mailto:
by Richard Torrens (lists)
I think the response to mailto: may be broken!
I have a new site
http://www.burwellness.co.uk/
where there is a contact link - if you want to try it, it is the link under
Therapy Rooms to let
This calls a cgi-bin which returns the email address. This works on
Android/chrome and on Firefox, but not on Netsurf.
I've used this system before with Netsurf, so something seems to have
changed. The contact tab at the top uses the same cgi-bin but links to a
web page.
--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
5 years, 7 months
Re: Backyard Worlds
by Peter Slegg
In the log I can see this but I don't know if it is the cause of the failure:
* Hostname blog.backyardworlds.org was found in DNS cache
* Trying 192.0.78.12...
* TCP_NODELAY set
(21.395000) frontends/atari/gui.c:142 atari_poll: WM: 30
(21.395001) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=10):
(21.395002) content/fetchers/curl.c:1181 fetch_curl_poll: fd 10: write
* Connected to blog.backyardworlds.org (192.0.78.12) port 443 (#2)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: ./res/cabundle
CApath: ./res/certs
(25.400002) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=10):
(25.400003) content/fetchers/curl.c:1181 fetch_curl_poll: fd 10: read
(25.415000) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=10):
(25.415001) content/fetchers/curl.c:1181 fetch_curl_poll: fd 10: read
(25.415006) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=10):
(25.415007) content/fetchers/curl.c:1181 fetch_curl_poll: fd 10: read
(25.430000) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=10):
(25.430001) content/fetchers/curl.c:1181 fetch_curl_poll: fd 10: read
* error:1407743E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert inappropriate fallback
* Closing connection 2
(28.345000) content/fetchers/curl.c:1052 fetch_curl_done: done https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-annivers...
(28.345001) content/fetchers/curl.c:1097 fetch_curl_done: Unknown cURL response code 35
(28.350000) content/fetchers/curl.c:811 fetch_curl_stop: fetch 0x1ab0b14, url 'https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-annivers...'
(30.140001) content/fetchers/curl.c:1162 fetch_curl_poll: Curl file descriptor states (maxfd=-1):
(30.145000) frontends/atari/rootwin.c:108 handle_event: WM_REDRAW
(30.145001) frontends/atari/gui.c:142 atari_poll: WM: 20
5 years, 7 months
Re: Backyard Worlds
by Peter Slegg
>Message: 4
>Date: Wed, 14 Feb 2018 22:42:02 GMT
>From: Richard Porter <ricp(a)minijem.plus.com>
>Subject: Re: Backyard Worlds
>To: <netsurf-users(a)netsurf-browser.org>
>Message-ID: <f18c72ca56.ricp(a)user.minijem.plus.com>
>On 14 Feb 2018 Peter Slegg wrote:
>
>> Netsurf isn't able to open this link:
>
>> https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-annivers...
>
>> It just says "Unable to fetch document" after ~20s.
>
>> In choices I have:
>
>> curl_fetch_timeout:180
>
>Works here on #4303 (RO 5.23). Probably a DNS glitch or server down.
No. It's repeatable and I was able to open it with another browser.
Ole had a look and said the page causes a lot of individual requests
and suggested lowering the maximum concurrent fetchers?
I lowered it to 10 but it is still the same.
I will see if I can log something more helpful.
Peter
5 years, 7 months
CSS support for display:table
by Jim Nagel
I'm wondering if Netsurf CSS supports these commands (if that's the
correct term)
display:table or width:min-content
Netsurf's online documentation for development progress says the CSS
"display" category is complete, but I can't seem to get this
particular display function to perform.
What I'm struggling to achieve is to use the <figure> and <figcaption>
tags to produce a caption under a photo. This works fine as long as
the caption is a single line. But if the caption text is longer,
you'd think it would simply flow to a new line under the picture but,
no, it fills the width of the whole page before it breaks to a new
line.
See examples: http://archivemag.co.uk/TEMP/Netsurf-figure/ . The main
part of the page is a tutorial (from my son); my attempts are added at
the bottom.
* The page "works-but-uses-BR.html" nearly shows the result I want --
picture and caption at the right of main story, which starts at top of
page alongside the picture. But take out my bodged <br> tags and see
what happens.
* The "tablecaption-X.html" page fails (see (3) below).
Multi-line captions are so common (look at any magazine or newspaper)
that I'm surprised that CSS doesn't have a simple built-in standard
for them.
Obviously whatever approach I settle on, I want it to suit Netsurf as
well as mainstream browsers.
The idea for using display:table came from an online search:
(1) https://stackoverflow.com/questions/6534473/how-can-i-make-the-wid
th-of-my-figcaption-match-the-width-of-the-img-inside
(2) https://stackoverflow.com/questions/10264463/can-a-figcaption-be-r
estricted-to-the-width-of-a-responsively-sized-image
The third idea uses table:caption; caption-side:bottom; -- again,
does Netsurf support it? In my attempts the caption lands at the
right of the picture, not beneath it. (See "tablecaption-X.html".)
(3) https://www.sitepoint.com/community/t/how-to-force-this-figcaption
-element-to-respect-its-parents-width-boundaries/30025
(Unforch this link stymies Netsurf but try e.g. Firefox or Android.)
A promising idea in (1) is width:min-content -- a value for width
used in the reply at https://stackoverflow.com/a/28341085/496046
that is apparently new, according to documentation at
https://developer.mozilla.org/en-US/docs/Web/CSS/width#min-content --
does Netsurf support this?
--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24
5 years, 7 months
CSS for a RiscOS font and button
by Jim Nagel
=== 1 ===
In CSS, is it possible to specify a particular RiscOS font?
For example, Oxford.Bold.Italic -- what would the CSS syntax be?
Presumably those dots in the Ro filepath would change -- to what?
Viewers of the page in question will be mostly RiscOS users, but the
font declaration should degrade gracefully for people who don't have
that font or for anybody happening to view the page on other platforms
where the font might be called Optima or just generic sans-serif.
I know it's general good practice to stick to "standard" fonts, but
out of curio city, I'm wondering how to specify this partic font.
=== 2 ===
In CSS, how would I define a button to look like a familiar RiscOS
action button? I mean like the one at the bottom of a Save dialogue,
with a yellow moat around a grey slab.
I want to use it for "Submit" at the bottom of an HTML form. (I am
adapting a page where a grey panel further up is actually a menu
though it shows only the default option -- the appearance of the
current Submit button close by is too similar.)
Thanks.
--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24
5 years, 7 months
online telephone directory
by Jim Nagel
Sigh. BT has yet again redesigned the front-end of its online
phonebook: http://thephonebook.bt.com
Do F8 in Netsurf and admire the pretty layout of the code.
Until a week or two ago (last time I needed it) the BT Phonebook
worked fine in Netsurf. The new design is in the
big-boxes-on-mostly-blank-page style that seems the current fashion
(e.g. the gov.uk pages).
Does anybody know a current phonebook site that DOES work with
Netsurf?
--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24
5 years, 7 months