Friday, 23 February 2018

Re: Forcing website menus to reveal themselves

On 23 February 2018 13:51:14 GMT+00:00, Tim Hill <tim@timil.com> wrote:

>I have never been able to get CSS-only drop-down menus to work in NS.

Nor I. Typical is the "Results" tab in www.wodql.org.uk which behaves as expected when viewed in all other browsers I've tried; similarly the overflow of the last menu item, which could be related, is peculiar to NS.


--
Sent from my Android tablet.

Re: linking to root of website, not root of drive

On Fri, Feb 23, 2018 at 02:18:18PM +0000, Jim Nagel wrote:
> - The distant server (probably running on Linux) does not care about
> RiscOS filetypes and Netsurf correctly displays pages from there when
> my !2018.css has RiscOS filetype as text

That's because it will be using the file extension to decide what
content type to tell the browser, where WebJames uses the RISC OS
metadata.

> - The local development server (Webjames) does a successful GET of
> !2018.css whatever its RiscOS filetype, but Netsurf does not display
> pages correctly when !2018.css is Ro-filetyped as text, and *does*
> display them correctly when !2018.css Ro-filetype is changed to CSS.

See above.

B.

Re: Forcing website menus to reveal themselves

Richard Ashbery wrote on 23 Feb:
> Is there any way of showing Javascript driven drop-down menus?

Try inspecting the code of the site (in Netsurf press F8) in a text
editor. Search for a unique-ish word that is used in one of the
menus.

You might find a bunch of <li> stuff matching all the menu words to a
specific URL within the site, including the menu words that would
appear as a drop-down in the mainstream browsers.

I recently found this to be the case in one site I use a lot, so I
concocted myself a little "menu-bypass.html" page that takes me direct
to any page I want.


(PS: If this works for you, howbout writing it up as a hint&tip for
Archive?)


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: Forcing website menus to reveal themselves

On Fri, Feb 23, 2018 at 12:30:08 +0000, Richard Ashbery wrote:
> Is there anyway of showing Javascript driven drop down menus?

JavaScript-driven and CSS-driven dynamic content are not supported in NetSurf's
render engine at this time.

D.

--
Daniel Silverstone http://www.netsurf-browser.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69

Re: linking to root of website, not root of drive

Rob Kendrick wrote on 19 Feb:

> On Mon, Feb 19, 2018 at 03:46:41PM +0000, Jim Nagel wrote:
>> - Netsurf displays the pages served up via Webjames perfectly,
>> except that it is NOT obeying the stylesheet (which is /2018.css )
>> even though the Webjames log records a GET success for the CSS file
>> just as it did for the logo and paper and favicon.
>> - Yet when Netsurf fetches the identical page from my ISP's server,
>> it DOES obey the CSS.

> Complete guess: is your CSS source file set to the CSS type, or plain
> text type? I'm not sure how NetSurf reacts to CSS files served with an
> appropriate Content-Type header.

Thanks, Rob. Sorry for delayed response. (I think I covered the
point elsewhere in the thread, though.)

Yes, the source file was called !2018.css but its RiscOS filetype was
still text. I changed the filetype to CSS and Netsurf is now happy.

I can't quite get my head around this (not that it matters, since
things are working now):

- The distant server (probably running on Linux) does not care about
RiscOS filetypes and Netsurf correctly displays pages from there when
my !2018.css has RiscOS filetype as text

- The local development server (Webjames) does a successful GET of
!2018.css whatever its RiscOS filetype, but Netsurf does not display
pages correctly when !2018.css is Ro-filetyped as text, and *does*
display them correctly when !2018.css Ro-filetype is changed to CSS.


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: Forcing website menus to reveal themselves

In article <56cee47a3dtim@timil.com>, Tim Hill <tim@timil.com> wrote:
> In article <56cedd0d61riscos@gotadsl.co.uk>, Richard Ashbery
> <riscos@gotadsl.co.uk> wrote:
> > Is there anyway of showing Javascript driven drop down menus?

> Are you certain they are JavaScript?

Unscientific guesswork I'm afraid.

> I have never been able to get CSS-only drop-down menus to work in
> NS.

Pity. Thanks for getting back Tim.

Richard

Re: Forcing website menus to reveal themselves

In article <56cedd0d61riscos@gotadsl.co.uk>, Richard Ashbery
<riscos@gotadsl.co.uk> wrote:
> Is there anyway of showing Javascript driven drop down menus?

Are you certain they are JavaScript?

I have never been able to get CSS-only drop-down menus to work in NS.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Forcing website menus to reveal themselves

Is there anyway of showing Javascript driven drop down menus?

Richard

Tuesday, 20 February 2018

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

Le 20 février 2018 à 04:06, J Percival <perciv.js@gmail.com> a écrit :  

I also continue to notice the Escape key not working on rare occasions but so far no obvious rhyme or reason to it.

On my side, I had it working at some point, but on most of the runs I made which mostly consisted of starting DigitalCD, playing something, starting it's TimVis full-screen plugin and noticing that I could not return to the desktop while pressing Esc (fortunately, there is also Ctrl+Shift+K to stop all DigitalCD's plug-ins). After that I tried the application's dialog boxes and they wouldn't close while pressing ESC.


Ah, I nearly forgot another little bug I noticed in full-screen mode! The mouse cannot move to the left edge of the screen, if get stuck a few pixels from the edge. I tried it at 2 different resolutions 1280x720 & 1920x1080 with the same results.

Re: mailto:

On Tue, Feb 20, 2018 at 09:02:57AM +0000, Richard Torrens (lists) wrote:
>
> This system appears to defeat spammers - most of the email addresses that
> have been spammed seem to have been harvested from computers by malware.

We're getting dangerously off-topic here, but they mostly harvest them from:
- usenet and mailing lists such as this (they are so bountiful,
the harvesters simply special-case the mitigations that
mailing list archival websites use to obscure addresses)

- brute-forcing people's email passwords, not only to send spam
through but to harvest addresses from your INBOX and address
book.

- Guesswork. Attempting to send an email is cheap, so when you
get a list of current domains, you simply try all the common
stuff, like "lists" or "tim".

Doing it on your website with mailto: links isn't worth it these days,
spidering the web like that is comparitively expensive compared to the
above techniques.

B.

Re Wikipedia (OT)

Tim Hill wrote on 19 Feb:
> Even Wikipedia gets this right.

If it didn't, then of course it would now, because you surely have
signed up for an account as one of the crowd-sourced and peer-reviewed
editors and you would have contributed the required correction.

--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: mailto:

In article <56ccf68de6tim@timil.com>,
Tim Hill <tim@timil.com> wrote:

> Coincidentally, I have just been adding 'munge' to
> http://timil.com/riscos and IME this conversion of a mailto link into
> entities seems enough to prevent harvesting by spammers. Or the ones that
> do are so useless it doesn't even reach me!

My script required a hidden variable be sent - the variable determines the
script action.

This system appears to defeat spammers - most of the email addresses that
have been spammed seem to have been harvested from computers by malware.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

Monday, 19 February 2018

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

A mapping between host/RO filetypes would be nice - but there are some issues - for example there are multiple RISC OS filetypes for ASCII text depending on the EOL convention.
 
I also continue to notice the Escape key not working on rare occasions but so far no obvious rhyme or reason to it.

On 19 February 2018 at 18:39, Peter Howkins <rpcemu.howkins@marutan.net> wrote:
On Sat, Feb 17, 2018 at 11:13:00PM +0100, andre timmermans wrote:
>
>    Wish list:
>
>    - Extension in the config file to specify rom name path for hosfs & .hdf
>    files. This would make it easier to switch to different OS versions
>    (different ROMs, !Boot and compatible applications).

Hi Andre, thanks for the testing, on this matter I have an idea for a more
comprehensive change to the way models are configured. But this will be
in several releases time as there is prep work to support it first.

>    - Possibility to access the other folders/discs of the host system without
>    risk of modifying the file extension of the files (i.e. using mimemap like
>    Win95FS or LanManFS). I make sense for documents to be readable on both
>    sides without having constantly add and remove the ",xxx" filtype to the
>    filename's extension.

This I suspect will never happen, it's difficult enough to create a
filesystem that's RISC OS compliant without the extra headache of being
compatible with a variety of host OSes requirements too. This is mainly
due to my extremely poor experiences with the highly configurable hostfs
provided with red squirrel and various versions of Virtual Acorn where
they ended up not even being compatible with each other.

>    Issues:
>
>    - ESC key not working

I have noticed this too occasionally, but have not been able to reproduce
recently. When I did have it failing, it worked for a while then
failed later. As such if you have any advice on how to reproduce it,
please let me know.

>    - when switching back to windowed mode the mouse on the RISC OS side
>    cannot reach the top (I think it only occurs if the RISC OS resolution is
>    not the same on exit of full-screen mode qs on entry),

Oh well spotted, this is not a new bug, but caused by needing to implement
part of 'follows host mouse' even when not using that (fullscreen mode
does not use 'follows host mouse'. There will be a fix for this in the
next version.

>    - sound is easely interrupted by disk accesses.

Annoyingly this is associated with the other fix of reducing the 'lag' in
the sound you mentioned. I need to do a proper fix by triggering the sound
interupts when data in consumed rather than just on a timer. However this
is not going to be fixed by the next release version. There is a
workaround (and you are allowed to be annoyed by me suggesting it) in that
if you run it on a faster processor the timers smooth out and you get
stutter free sound, it's not a great solution :)

Peter

--
Peter Howkins
peter.howkins@marutan.net

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Re: mailto:

On 19 Feb 2018 Tim Hill <tim@timil.com> wrote:

> In article <3d20e8cc56.pnyoung@pnyoung.ormail.co.uk>, Peter Young
> <pnyoung@ormail.co.uk> wrote:

> [Snip]

>> It works here with a plain email address. See on
>> http://www.cheltglosntc.btck.co.uk/Walkinggroup where clicking my
>> email address opens an email in MPro correctly.

> Yes, that's a plain vanilla mailto: link which some people think gifts
> your address to spammers. Do you receive lots of spam?

No, not a huge amount. What I get is mostly on newsgroups, not via
email. I think the Orpheus Internet filters are pretty good.

>> I realise that not everyone is keen on having their email addresses on
>> websites, but this is the only way it can be done on this site. I
>> wouldn't know a cgi-bin if in bit me.

> Coincidentally, I have just been adding 'munge' to
> http://timil.com/riscos and IME this conversion of a mailto link into
> entities seems enough to prevent harvesting by spammers. Or the ones that
> do are so useless it doesn't even reach me!

I don't think I can do that on the above site, but., as I said above,
it's not a great deal of a worry for me.

Best wishes,

Peter.

--
Peter Young (zfc Pt) and family
Prestbury, Cheltenham, Glos. GL52, England
http://pnyoung.orpheusweb.co.uk
pnyoung@ormail.co.uk

Re: mailto:

In article <3d20e8cc56.pnyoung@pnyoung.ormail.co.uk>, Peter Young
<pnyoung@ormail.co.uk> wrote:

[Snip]

> It works here with a plain email address. See on
> http://www.cheltglosntc.btck.co.uk/Walkinggroup where clicking my
> email address opens an email in MPro correctly.

Yes, that's a plain vanilla mailto: link which some people think gifts
your address to spammers. Do you receive lots of spam?

> I realise that not
> everyone is keen on having their email addresses on websites, but this
> is the only way it can be done on this site. I wouldn't know a cgi-bin
> if in bit me.

Coincidentally, I have just been adding 'munge' to
http://timil.com/riscos and IME this conversion of a mailto link into
entities seems enough to prevent harvesting by spammers. Or the ones that
do are so useless it doesn't even reach me!

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: linking to root of website, not root of drive

In article <56ccec687fJohnRW@ukgateway.net>, John Williams
<JohnRW@ukgateway.net> wrote:

[Snip]

> PS and yes, it is actually RISC OS, not RiscOS with its pseudo
> camel-case. Editor should have spotted that one!

The confusion of Risc<half space>PC and RISC OS is not a new phenomenon
just as WebJames is often called Webjames.

How about "doubleclicking" Vs double-clicking?

None of the meaning is lost in what was written and while I too like to
get things OCD-right, I think we can leave enforcement to trademark
owners!

Where's that old spelling I used to use in these cases. Oh yes!

The new Welsh operating system, rhisck/oH.eSs

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

On Sat, Feb 17, 2018 at 11:13:00PM +0100, andre timmermans wrote:
>
> Wish list:
>
> - Extension in the config file to specify rom name path for hosfs & .hdf
> files. This would make it easier to switch to different OS versions
> (different ROMs, !Boot and compatible applications).

Hi Andre, thanks for the testing, on this matter I have an idea for a more
comprehensive change to the way models are configured. But this will be
in several releases time as there is prep work to support it first.

> - Possibility to access the other folders/discs of the host system without
> risk of modifying the file extension of the files (i.e. using mimemap like
> Win95FS or LanManFS). I make sense for documents to be readable on both
> sides without having constantly add and remove the ",xxx" filtype to the
> filename's extension.

This I suspect will never happen, it's difficult enough to create a
filesystem that's RISC OS compliant without the extra headache of being
compatible with a variety of host OSes requirements too. This is mainly
due to my extremely poor experiences with the highly configurable hostfs
provided with red squirrel and various versions of Virtual Acorn where
they ended up not even being compatible with each other.

> Issues:
>
> - ESC key not working

I have noticed this too occasionally, but have not been able to reproduce
recently. When I did have it failing, it worked for a while then
failed later. As such if you have any advice on how to reproduce it,
please let me know.

> - when switching back to windowed mode the mouse on the RISC OS side
> cannot reach the top (I think it only occurs if the RISC OS resolution is
> not the same on exit of full-screen mode qs on entry),

Oh well spotted, this is not a new bug, but caused by needing to implement
part of 'follows host mouse' even when not using that (fullscreen mode
does not use 'follows host mouse'. There will be a fix for this in the
next version.

> - sound is easely interrupted by disk accesses.

Annoyingly this is associated with the other fix of reducing the 'lag' in
the sound you mentioned. I need to do a proper fix by triggering the sound
interupts when data in consumed rather than just on a timer. However this
is not going to be fixed by the next release version. There is a
workaround (and you are allowed to be annoyed by me suggesting it) in that
if you run it on a faster processor the timers smooth out and you get
stutter free sound, it's not a great solution :)

Peter

--
Peter Howkins
peter.howkins@marutan.net

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Re: linking to root of website, not root of drive

In article <f4f7e9cc56.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:

[Snipped]

> (Begs the question: why does RiscOS actually bother having a specific
> filetype for a CSS file?

You don't need to give your HTML or CSS files an extension with WebJames.
It seems to use the filetype to create the MIME data.

Conversely, files with no .ext on an Apache server seem to be treated as
text and sent to the browser. I rely on this with
http://timil.com/riscos/mimemap/mimemap

These are identical (ancient) files:
Apache (no .ext)
http://timil.com/links and
WebJames (no .ext but correct HTML RISC OS filetype)
http://dev.timil.com/timil.com/links

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: linking to root of website, not root of drive

In article <f4f7e9cc56.jim@6.abbeypress.net>,
Jim Nagel <netsurf@abbeypress.co.uk> wrote:

> why does RiscOS actually bother having a specific filetype for a CSS
> file? It's only text. Doubleclicking it only loads it into a text
> editor.

Many files are just plain text, but the filetype is helpful in that an icon
can be assigned, helping to spot the required file visually by type rather
than looking for obscure file extensions or looking at contents.

It's how RISC OS does it, and I like it that way!

John

PS and yes, it is actually RISC OS, not RiscOS with its pseudo camel-case.
Editor should have spotted that one!

--
| John Williams
| johnrw@ukgateway.net

Re: linking to root of website, not root of drive

Michael Drake wrote on 19 Feb:

> On 19/02/18 15:46, Jim Nagel wrote:

>> - NetSurf displays the pages served up via WebJames perfectly,
>> except that it is NOT obeying the stylesheet

> I guess WebJames is not serving the CSS file with the "text/css" MIME
> type. I think there's a mimemap file that lives somewhere in !Boot,
> which may need updated with an entry for CSS. WebJames may ship with
> an example mimemap for this.

Ah, thanks again, Michael! Found the required Mimemap syntax for a
CSS entry in the "Solved problems" section of the Webjames helpfile.
However, I then found I *already* have that entry in my Mimemap!

Then a closer look: I found that the file 2018/css had RiscOS
filetype Text. Changed filetype to CSS (&f79), relaunched Webjames --
and now everything is fine!

(Begs the question: why does RiscOS actually bother having a specific
filetype for a CSS file? It's only text. Doubleclicking it only
loads it into a text editor. Nothing else in RiscOS except the
browser, as far as I know, has any use for a CSS file. The HTML page
invokes the file as "xxx.css" and explicitly declares it as a
stylesheet. The distant host doesn't care about RiscOS filetypes.
What was the mechanism that made the filetype matter in this case?
Academic, I guess, now that it's working!)


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: mailto:

On 19 Feb 2018 "Richard Torrens (lists)" <Lists@Torrens.org> wrote:

> 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.

It works here with a plain email address. See on
http://www.cheltglosntc.btck.co.uk/Walkinggroup where clicking my
email address opens an email in MPro correctly. I realise that not
everyone is keen on having their email addresses on websites, but this
is the only way it can be done on this site. I wouldn't know a cgi-bin
if in bit me.

Best wishes,

Peter.

--
Peter Young (zfc Pt) and family
Prestbury, Cheltenham, Glos. GL52, England
http://pnyoung.orpheusweb.co.uk
pnyoung@ormail.co.uk

Re: linking to root of website, not root of drive

On 19/02/18 15:46, Jim Nagel wrote:

> - NetSurf displays the pages served up via WebJames perfectly,
> except that it is NOT obeying the stylesheet
I guess WebJames is not serving the CSS file with the "text/css"
MIME type.

I think there's a mimemap file that lives somewhere in !Boot, which
may need updated with an entry for CSS.

WebJames may ship with an example mimemap for this.

Cheers,

--
Michael Drake http://www.codethink.co.uk/

mailto:

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!

Re: linking to root of website, not root of drive

Richard Porter wrote on 19 Feb:

> I have the same problem. I'm running WebJames with its root directory
> as the directory containing my web sites. That means that "/" on the
> local site takes me back to the top level and not the root of the site
> I want.

Eureka! I tried setting a system variable in
Choices.Webjames.Attributes, on the DocumentRoot line and Webjames
happily served it. So in that attributes file I now have

DocumentRoot <webjames-thissite$dir>

and in the root directory of each of my sites I now have an obeyfile
called !!hey-Webjames (the plings to put it at the top) containing

set webjames-thissite$dir <obey$dir>
filer_run SSD.$.Network.Servers.!Webjames
(your pathname might differ)

Put a copy of the identical obeyfile into the root of each site.

So when I want to point Webjames at a single specific local site,
simply doubleclick !!hey-Webjames in that site's root directory.
In Netsurf's URL bar type just "localhost" and Webjames serves it.

(Webjames doesn't seem to mind the apparently repeated filer_run line
when it has already been running for a previous site.)


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: linking to root of website, not root of drive

In article <92f5dfcc56.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:
> Richard Porter wrote on 19 Feb:
> > ... I don't think your ISP's software comes into it unless your ISP
> > is also your hosting company.

> Sorry: I used the wrong term. I did mean the hosting company.

No, you didn't. Hosting is an internet service provided by an ISP, a
"Hosting ISP". It may not provide (your) Internet Access, which is just
ONE of the things an ISP may do. One of them. Some ISPs do not provide
internet connections at all; perhaps only email.

ISP should not be seen as synonymous with an "Access provider ISP".

I have seen the press making this mistake all the time. Amazing how it
has now become received wisdom.

Even Wikipedia gets this right.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: linking to root of website, not root of drive

In article <20180219154920.GJ3127@platypus.pepperfish.net>, Rob Kendrick
<rjek@netsurf-browser.org> wrote:
> On Mon, Feb 19, 2018 at 03:46:41PM +0000, Jim Nagel wrote:
> > - Netsurf displays the pages served up via Webjames perfectly,
> > except that it is NOT obeying the stylesheet (which is /2018.css )
> > even though the Webjames log records a GET success for the CSS file
> > just as it did for the logo and paper and favicon. - Yet when Netsurf
> > fetches the identical page from my ISP's server, it DOES obey the
> > CSS.

> Complete guess: is your CSS source file set to the CSS type, or plain
> text type? I'm not sure how NetSurf reacts to CSS files served with an
> appropriate Content-Type header.

Also, are you fetching your CSS with a suffix of ?v=1 or something?
Browsers are notorious for not fetching CSS files if they think they
don't need a new one, even if it's changed. Putting a fake variable on
the end seems to force a fetch.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: linking to root of website, not root of drive

Richard Porter wrote on 19 Feb:
> ... I don't think your ISP's software comes into it unless your ISP is
> also your hosting company.

Sorry: I used the wrong term. I did mean the hosting company.


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: linking to root of website, not root of drive

On Mon, Feb 19, 2018 at 03:46:41PM +0000, Jim Nagel wrote:
> - Netsurf displays the pages served up via Webjames perfectly,
> except that it is NOT obeying the stylesheet (which is /2018.css )
> even though the Webjames log records a GET success for the CSS file
> just as it did for the logo and paper and favicon.
> - Yet when Netsurf fetches the identical page from my ISP's server,
> it DOES obey the CSS.

Complete guess: is your CSS source file set to the CSS type, or plain
text type? I'm not sure how NetSurf reacts to CSS files served with an
appropriate Content-Type header.

B.

Re: linking to root of website, not root of drive

Michael Drake wrote on 19 Feb:
> Use a webserver to serve the root directory of the web
> site you're developing, and point your browser at
> http://localhost/ I believe WebJames can do this on RISC OS.

Thanks. I've now got Webjames successfully serving local pages, and
obeying those "absolute" links -- /logo.gif and /paper.jpg (the
background pattern) which appear on every page of the site.

I have also discovered that simply putting favicon.ico in the root
directory causes that icon to appear beside the URL automagically:
absolutely no extra code at all is required in the HTML.

One problem still has me scratching my head:
- Netsurf displays the pages served up via Webjames perfectly,
except that it is NOT obeying the stylesheet (which is /2018.css )
even though the Webjames log records a GET success for the CSS file
just as it did for the logo and paper and favicon.
- Yet when Netsurf fetches the identical page from my ISP's server,
it DOES obey the CSS.

Same problem for pages farther out the directory tree. All pages now
specify /2018.css in handy "absolute" shortform.


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

linking to root of website, not root of drive

In article <9f33c3cc56.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:

[Snip]

> 2018.css or ../2018.css or ../../2018.css etc

[Snip]

> Is there a way around this?

[Snip]

I'm going to run away and hide after writing this:

1. Apart from files in the root, link them all with ../ and copy the css
file into every directory except the last in each branch using an obey
file which you keep in the root so you can update them if you make a
change to the master. Yeah, okay, those people screaming at the back,
maybe not if you have hundreds of directories, or

2. Re-organise - flatten - your site so that this isn't a problem, or

3. Learn PHP. ;-) This can read the current directory of the script/page
that's running and depending on the host it finds, sets either
"[nothing]" or "/[extra path]" as the value of a path which prefixes
"/Style.css?v=1"

A copy of the script:
http://timil.com/riscos/_to-do/css_slash.txt

Output of the script from my servers:
Distant:
http://timil.com/riscos/_to-do/css_slash.php
Local:
http://87.127.161.109/timil.com/riscos/_to-do/css_slash.php

You'll need to change the value of the first variable to the first eight
letters of the string returned as "current path" from your local server
and also the second variable, which is the name of the local folder
containing you web site, assuming it's in your server's root. You can see
timil.com is kept locally in a folder with the same name as its proper
site's URL.

Then replace your CSS sheet <link...> with everything between <head> and
</head> in the script on every page, and, oh, you'll also have to change
the name of your files from <name>/htm to <name>/php and make sure your
provider supports PHP and also that you're running a server with PHP
(such as WebJames+PHP).

There. No changes to servers required. ;-)

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: linking to root of website, not root of drive

On 19 Feb 2018 Jim Nagel wrote:

> 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!)

I have the same problem. I'm running WebJames with its root directory
as the directory containing my web sites. That means that "/" on the
local site takes me back to the top level and not the root of the site
I want.

Therefore all my links are relative if possible and links are explicit
i.e. the index file is /index.html rather than /. The only places
where relative links don't work are in error and acknowledgement pages
which could be invoked from different levels of the hierarchy. These
are addressed relative to the root i.e. /something and I put up with
them not working on the local sites.

The other exceptions are in mouseover stuff for drop-down menus where
they're not going to work in NetSurf anyway, and in data files for
scripts for the same reason. For html forms I use absolute addresses.

I'm afraid that's just a workaround rather than a solution. I don't
think your ISP's software comes into it unless your ISP is also your
hosting company. Normally your web site will be loaded into
public_html on the server and your ftp parameters should reflect this,
so public_html is your root directory. I suppose you could push the
site down a level to match your local setup and then have redirects
for any links that go to the top level by default but I haven't tried
this.

--
Richard Porter http://www.minijem.plus.com/
t: @westernexplorer mailto:ricp@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.

Re: linking to root of website, not root of drive

On Mon, Feb 19, 2018 at 10:35:22 +0000, Jim Nagel wrote:
> 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!)

The best way is if you can run a local web server and serve up the content
similarly to how it'd be served in production. A common web development tactic
is to run up a simple server and visit http://localhost/ or
http://localhost:8000/ or similar, having it serve the site "normally" from
there.

If you have a Linux system available you could store the content on there,
and if everything is basic static content then you can serve a site trivially
by:

cd /path/to/website/base
python -m SimpleHTTPServer

it'll tell you what port it's on, and you can visit http://linuxbox:someport/

If you're stuck developing the site on RiscOS, then consider using a RAM disc
or similar because then your site would be a $ on the FS.

D.

--
Daniel Silverstone http://www.netsurf-browser.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69

Re: linking to root of website, not root of drive

On 19/02/18 10:35, Jim Nagel wrote:

[snip]

> Is there a way around this?

Use a webserver to serve the root directory of the web
site you're developing, and point your browser at
http://localhost/

I believe WebJames can do this on RISC OS.

Cheers,

--
Michael Drake http://www.codethink.co.uk/

linking to root of website, not root of drive

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

Saturday, 17 February 2018

[Rpcemu] RPCEmu pre release test version 0.8.101

Hi,

I tested a little bit the release.

What is great compared to the allegro based versions:

- full screen mode working perfectly

- opening menus does not cause sound to freeze

- no delay in sound (used to to be at least a second when pausing the sound in DigitalCD)


Wish list:

- Extension in the config file to specify rom name path for hosfs & .hdf files. This would make it easier to switch to different OS versions (different ROMs, !Boot and compatible applications).

- Possibility to access the other folders/discs of the host system without risk of modifying the file extension of the files (i.e. using mimemap like Win95FS or LanManFS). I make sense for documents to be readable on both sides without having constantly add and remove the ",xxx" filtype to the filename's extension.


Issues:

- ESC key not working

- when switching back to windowed mode the mouse on the RISC OS side cannot reach the top (I think it only occurs if the RISC OS resolution is not the same on exit of full-screen mode qs on entry),

- sound is easely interrupted by disk accesses.


My setup:

localtime: 2018-02-17 22:29:57
   gmtime: 2018-02-17 21:29:57
RPCEmu 0.8.101 MOSTLY SECRET EDITION [DYNAREC NO_DEBUG]
Build: 32-bit binary
Compiler: GCC version 4.9.2
OS: Microsoft Windows
OS: PlatformId = 2
OS: MajorVersion = 6
OS: MinorVersion = 1
OS: ProductType = 1
OS: SuiteMask = 0x100
OS: ServicePackMajor = 1
OS: ServicePackMinor = 0
OS: ProcessorArchitecture = 9
OS: SystemMetricsServerR2 = 0
OS: ProductInfoType = 4
QT5: 5.6.2
Number of screens: 1
Primary screen: \\.\DISPLAY1
Information for screen: \\.\DISPLAY1
 Resolution: 1920 x 1080
 Colour depth: 32
Working Directory: E:\RISC OS\RPCEmu
config_load: bridgename = "rpcemu"
config_load: cdrom_enabled = "1"
config_load: cdrom_iso = ""
config_load: cdrom_type = "0"
config_load: cpu_idle = "0"
config_load: ipaddress = ""
config_load: macaddress = ""
config_load: mem_size = "64"
config_load: model = "RPCSA"
config_load: mouse_following = "1"
config_load: mouse_twobutton = "0"
config_load: network_type = "off"
config_load: refresh_rate = "60"
config_load: sound_enabled = "1"
config_load: stretch_mode = "1"
config_load: username = ""
config_load: vram_size = "2"
romload: Loaded 'Select6i1.rom' 6291456 bytes
romload: Total ROM size 6 MB
plt_sound: qt5 Audio Device: BenQ GW2260 (Intel(R) Display A
plt_sound: qt5 Audio Codecs Supported: 1
0: audio/pcm
plt_sound: qt5 Audio SampleRates Supported: 10
0: 8000
1: 11025
2: 16000
3: 22050
4: 32000
5: 44100
6: 48000
7: 88200
8: 96000
9: 192000
initpodulerom: Successfully loaded 'hostfs,ffa' into podulerom
initpodulerom: Successfully loaded 'hostfsfiler,ffa' into podulerom
RPCEmu: Machine reset
RPCEmu: Machine reset complete
plt_sound: changing to samplerate 20833Hz
HostFS: Registration request version 3 accepted


Kind Regards,
André

[Rpcemu] RPCEmu pre release test version 0.8.101

Hi,

I tested a little bit the release.

What is great compared to the allegro based versions:

- full screen mode working perfectly

- opening menus does not cause sound to freeze

- no delay in sound (used to to be at least a second when pausing the sound in DigitalCD)


Wish list:

- Extension in the config file to specify rom name path for hosfs & .hdf files. This would make it easier to switch to different OS versions (different ROMs, !Boot and compatible applications).

- Possibility to access the other folders/discs of the host system without risk of modifying the file extension of the files (i.e. using mimemap like Win95FS or LanManFS). I make sense for documents to be readable on both sides without having constantly add and remove the ",xxx" filtype to the filename's extension.


Issues:

- ESC key not working

- when switching back to windowed mode the mouse on the RISC OS side cannot reach the top (I think it only occurs if the RISC OS resolution is not the same on exit of full-screen mode qs on entry),

- sound is easely interrupted by disk accesses.


My setup:

localtime: 2018-02-17 22:29:57
   gmtime: 2018-02-17 21:29:57
RPCEmu 0.8.101 MOSTLY SECRET EDITION [DYNAREC NO_DEBUG]
Build: 32-bit binary
Compiler: GCC version 4.9.2
OS: Microsoft Windows
OS: PlatformId = 2
OS: MajorVersion = 6
OS: MinorVersion = 1
OS: ProductType = 1
OS: SuiteMask = 0x100
OS: ServicePackMajor = 1
OS: ServicePackMinor = 0
OS: ProcessorArchitecture = 9
OS: SystemMetricsServerR2 = 0
OS: ProductInfoType = 4
QT5: 5.6.2
Number of screens: 1
Primary screen: \\.\DISPLAY1
Information for screen: \\.\DISPLAY1
 Resolution: 1920 x 1080
 Colour depth: 32
Working Directory: E:\RISC OS\RPCEmu
config_load: bridgename = "rpcemu"
config_load: cdrom_enabled = "1"
config_load: cdrom_iso = ""
config_load: cdrom_type = "0"
config_load: cpu_idle = "0"
config_load: ipaddress = ""
config_load: macaddress = ""
config_load: mem_size = "64"
config_load: model = "RPCSA"
config_load: mouse_following = "1"
config_load: mouse_twobutton = "0"
config_load: network_type = "off"
config_load: refresh_rate = "60"
config_load: sound_enabled = "1"
config_load: stretch_mode = "1"
config_load: username = ""
config_load: vram_size = "2"
romload: Loaded 'Select6i1.rom' 6291456 bytes
romload: Total ROM size 6 MB
plt_sound: qt5 Audio Device: BenQ GW2260 (Intel(R) Display A
plt_sound: qt5 Audio Codecs Supported: 1
0: audio/pcm
plt_sound: qt5 Audio SampleRates Supported: 10
0: 8000
1: 11025
2: 16000
3: 22050
4: 32000
5: 44100
6: 48000
7: 88200
8: 96000
9: 192000
initpodulerom: Successfully loaded 'hostfs,ffa' into podulerom
initpodulerom: Successfully loaded 'hostfsfiler,ffa' into podulerom
RPCEmu: Machine reset
RPCEmu: Machine reset complete
plt_sound: changing to samplerate 20833Hz
HostFS: Registration request version 3 accepted


Kind Regards,
André

[Rpcemu] RPCEmu pre release test version 0.8.101

Hi,

I tested a little bit the release.

What is great compared to the allegro based versions:

- full screen mode working perfectly

- opening menus does not cause sound to freeze

- no delay in sound (used to to be at least a second when pausing the sound in DigitalCD)


Wish list:

- Extension in the config file to specify rom name path for hosfs & .hdf files. This would make it easier to switch to different OS versions (different ROMs, !Boot and compatible applications).

- Possibility to access the other folders/discs of the host system without risk of modifying the file extension of the files (i.e. using mimemap like Win95FS or LanManFS). I make sense for documents to be readable on both sides without having constantly add and remove the ",xxx" filtype to the filename's extension.


Issues:

- ESC key not working

- when switching back to windowed mode the mouse on the RISC OS side cannot reach the top (I think it only occurs if the RISC OS resolution is not the same on exit of full-screen mode qs on entry),

- sound is easely interrupted by disk accesses.


My setup:

localtime: 2018-02-17 22:29:57
   gmtime: 2018-02-17 21:29:57
RPCEmu 0.8.101 MOSTLY SECRET EDITION [DYNAREC NO_DEBUG]
Build: 32-bit binary
Compiler: GCC version 4.9.2
OS: Microsoft Windows
OS: PlatformId = 2
OS: MajorVersion = 6
OS: MinorVersion = 1
OS: ProductType = 1
OS: SuiteMask = 0x100
OS: ServicePackMajor = 1
OS: ServicePackMinor = 0
OS: ProcessorArchitecture = 9
OS: SystemMetricsServerR2 = 0
OS: ProductInfoType = 4
QT5: 5.6.2
Number of screens: 1
Primary screen: \\.\DISPLAY1
Information for screen: \\.\DISPLAY1
 Resolution: 1920 x 1080
 Colour depth: 32
Working Directory: E:\RISC OS\RPCEmu
config_load: bridgename = "rpcemu"
config_load: cdrom_enabled = "1"
config_load: cdrom_iso = ""
config_load: cdrom_type = "0"
config_load: cpu_idle = "0"
config_load: ipaddress = ""
config_load: macaddress = ""
config_load: mem_size = "64"
config_load: model = "RPCSA"
config_load: mouse_following = "1"
config_load: mouse_twobutton = "0"
config_load: network_type = "off"
config_load: refresh_rate = "60"
config_load: sound_enabled = "1"
config_load: stretch_mode = "1"
config_load: username = ""
config_load: vram_size = "2"
romload: Loaded 'Select6i1.rom' 6291456 bytes
romload: Total ROM size 6 MB
plt_sound: qt5 Audio Device: BenQ GW2260 (Intel(R) Display A
plt_sound: qt5 Audio Codecs Supported: 1
0: audio/pcm
plt_sound: qt5 Audio SampleRates Supported: 10
0: 8000
1: 11025
2: 16000
3: 22050
4: 32000
5: 44100
6: 48000
7: 88200
8: 96000
9: 192000
initpodulerom: Successfully loaded 'hostfs,ffa' into podulerom
initpodulerom: Successfully loaded 'hostfsfiler,ffa' into podulerom
RPCEmu: Machine reset
RPCEmu: Machine reset complete
plt_sound: changing to samplerate 20833Hz
HostFS: Registration request version 3 accepted


Kind Regards,
André

Friday, 16 February 2018

Re: date in search results

In article <322755cb56.John@rickman.argonet..co.uk>, John Rickman
<rickman@argonet.co.uk> wrote:
> In message <8d6444cb56.jim@6.abbeypress.net> Jim Nagel
> <netsurf@abbeypress.co.uk> wrote:

> > What causes Google (or other searchers) to display (or not display) a
> > DATE in search results?

Luck. And a date at the top of the page, as a letter would have.

[Snip]

> Google is reluctant to return pages with old data. In the beginning
> Google worked by trying to answer queries. Now it uses every query as
> an excuse to present pages that can be monetised.

Another leg on that conspiratorial stool: is it a good idea to put Google
Ads on your own pages because Google will favour them? (But make sure you
use an ad blocker yourself!)

[Snip]

> In the advanced serch options Google used to have an option to search
> by a range of dates. This has been removed from the mobile a desktop
> versions.

#FakeNews. ;-) It is still on desktops.

www.google.com/advanced_search

It's the eighth parameter on that page.

> Who is likely to want to pay for advert to pop up on a page that was
> last updated a long time ago?

Advertising placement doesn't work like that. The advert is grabbed from
a pool as the page is being viewed; it's value is on being viewed now,
and what words it contains, not necessarily how old it may be.

It's easy to fake those dates anyway. Only things like
http://web.archive.org/ give a true idea of page's age as it keeps a note
of when things are fetched.

There is another huge factor which has pushed many older pages further
down all search results. Mobile compatibility. Even if your content is
not specifically expecting mobile users (e.g. any RISC OS specific site!)
your web pages won't appear high in the results if they don't work on a
phone against pages that do. This is because mobile use of the web
overtook desktops in November 2016 and Google changed their policy to
prioritise mobile-friendly content.

(Yes, perhaps it is a bit odd. Desktop search results have non-mobile
content 'suppressed' even though a desktop user isn't looking for mobile
content.)

Your mention of YouTube is illustrative. It works on every size of
display; most old websites don't. YT is also Google's own site, obviously.

For registered webmasters, Google search helpfully displays your own page
results with "This page is not mobile friendly" if that applies. (Too
bloody often, tbh).

I'd like to think all RISC OS webmasters are feeding their sites into
http://search.google.com/test/mobile-friendly/ and gradually fixing this
but they are obviously not(!). However, with no serious mobile-friendly
competition, there is little incentive for RISC OS specific web sites to
improve. Perhaps young people will, in frustration, write their own
mobile-friendly RISC OS websites. :-o

I know from personal experience that (e.g.) a site which uses large fixed
widths for layout or - perish the thought - tables for non-tabular
information, or even just large images, iframes, frames or small buttons
too close together, it is a whole lot of fun trying to make content work
and look okay on both an iPhone 5 with a 320px wide screen and a
3840x2160 4K display.

T

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: date in search results

In message <8d6444cb56.jim@6.abbeypress.net>
Jim Nagel <netsurf@abbeypress.co.uk> wrote:

> 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.

There is an option which may help for recent "stuff". On every
platform (mobile and desktop) the Google search results page has a
"ribbon" of options below the search box (web, image, video etc.) and
if you go to the right hand end of this is "Search tools". (You may
need to scroll right on mobile platforms.)

Clicking on "Search tools" introduces another "ribbon" on which one of
the options is "Any time". Clicking on this brings up a choice of Past
hour/past 24 hours/past week/past month/past year and filters the
results on the page.

Unfortunately "Search tools" isn't present on Netsurf. Instead the
date choices are present by default in the left hand column on the
actual delivered page.

One up for Risc OS!
--

Chris Shepheard writing as himself
chris.shepheard@chrispics.co.uk
from far west Surrey www.chrispics.co.uk

Re: date in search results

On 16 February 2018 12:54:04 GMT+00:00, Jim Nagel <netsurf@abbeypress.co.uk> wrote:
>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.
>

Do a search for "Google structured data".

Chris

Re: date in search results

In article <8d6444cb56.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:
> 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.

Those with a date seem to have it in the page following the word
"updated" as many news stories do elsewhere. I can't say that would be of
much use to many of my pages, but gives me an idea.

> 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.

A pity there is no standard for a document's date or last revision date,
isn't it?

We should be using something like a meta tag with name 'published' or
'revised'; perhaps 'updated'. But whatever you use, it needs to appear in
the body of a page for a search engine to take notice.

Unfortunately, the way these dates are grabbed off a page are not
particularly useful in some circumstances.

> So state date. I've long wondered what the mechanism is.

A search result dates this page as 25th July 1982, showing that the date
is grabbed off the page without intelligence: it demonstrates only that
such dates are not particularly useful.

www.youngtheatre.co.uk/archive/harrow/productions.php

There are different publication and build dates in the meta tags which
tells me I need to look into this more, thanks for bringing it up.

I'm going to add "updated: [date]" to my RISC OS page(s) which are
currently undergoing a re-vamp.....Done. (~24 pages changed with one edit
to read and 'print' the last modification date of the relevant part of
the page. Got to love PHP.)

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: date in search results

In message <8d6444cb56.jim@6.abbeypress.net>
Jim Nagel <netsurf@abbeypress.co.uk> wrote:

> What causes Google (or other searchers) to display (or not display) a
> DATE in search results?

> 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.

I am not big on conspiracy theories, but here is one with a lot of
personal experience to support it.

Google is reluctant to return pages with old data. In the beginning
Google worked by trying to answer queries. Now it uses every query as
an excuse to present pages that can be monetised.
Search for a line of a poem and a few years ago you would get a series
of hits about the poem and the poet.
Now you get a load of crap consisting of references to YouTube videos
for songs with lyrics that contain fragments the searched for quote.

In the advanced serch options Google used to have an option to search
by a range of dates. This has been removed from the mobile a desktop
versions.

Who is likely to want to pay for advert to pop up on a page that was
last updated a long time ago?

--
John Rickman

date in search results

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

Thursday, 15 February 2018

Re: Backyard Worlds

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-anniversary/
(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-anniversary/'
(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

Re: Backyard Worlds

>Message: 4
>Date: Wed, 14 Feb 2018 22:42:02 GMT
>From: Richard Porter <ricp@minijem.plus.com>
>Subject: Re: Backyard Worlds
>To: <netsurf-users@netsurf-browser.org>
>Message-ID: <f18c72ca56.ricp@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-anniversary/
>
>> 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

Re: CSS support for display:table

On 15/02/18 16:00, Jim Nagel wrote:

> That seems to mean Mozilla and Webkit. Is there perhaps an equivalent
> for NetSurf?

No, we have no plans to implement draft specifications under
a vendor prefix.

We don't have enough developer bandwidth to implement all the
stuff that is currently standard, never mind trying to keep up
with volatile draft standards.

Cheers,

--
Michael Drake http://www.codethink.co.uk/

Re: CSS support for display:table

Thanks for such a swift reply, Michael. Will digest and report back.

You said:
> The min-content value for width is just at editors draft stage.
> https://drafts.csswg.org/css-sizing-3/
> So it's subject to change, and not standardized yet.

In the final para of my post, I didn't quote all the code I found in
that Stackoverflow suggestion about width:min-content (which was
dated 2015). The writer included interim lines addressed to specific
browsers while the aforementioned editors' deliberations continue. He
suggested:
figure {
width: -webkit-min-content;
width: -moz-min-content;
width: min-content;
}
That seems to mean Mozilla and Webkit. Is there perhaps an equivalent
for Netsurf?


--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

Re: CSS support for display:table

On 15/02/18 12:17, Jim Nagel wrote:
> I'm wondering if Netsurf CSS supports these commands (if that's the
> correct term)
> display:table or width:min-content

Supported: display:table
Unsupported: width:min-content

The min-content value for width is just at editors draft stage.

https://drafts.csswg.org/css-sizing-3/

So it's subject to change, and not standardized yet. As the
mozilla documentation says, it shouldn't be used in production
code.

> 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".)

NetSurf doesn't support table captions.

As for how I'd do it, I think there would be more mileage in
constraining the outer figure element with image dimensions,
rather than the image.

Something like (untested, and requiring polish):

figure {
display: block;
width: 33%;
max-width: 400px;
min-width: 100px;
}

figure.left {
float: left;
}

figure.right {
float: right;
}

figure > img {
display: block;
width: 100%;
}

figure > figcaption {
display: block;
width: 100%;
}

Then you'd have e.g.

<figure class="right">
<img src="pic" alt="">
<figcaption>Lots of text...</figcaption>
</figure>

--
Michael Drake http://www.codethink.co.uk/

CSS support for display:table

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

Wednesday, 14 February 2018

Re: Backyard Worlds

In article <000646f6.01e9b49016b8@smtp.freeola.net>,
Peter Slegg <p.slegg@scubadivers.co.uk> wrote:
> Netsurf isn't able to open this link:

> https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-anniversary/

> It just says "Unable to fetch document" after ~20s.

> In choices I have:

> curl_fetch_timeout:180


> In can open it in Cab without difficulty.

Opens quite quickly #4315 RISC OS 4.02 VRPC

Brian

Re: Backyard Worlds

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-anniversary/

> 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.

--
Richard Porter http://www.minijem.plus.com/
t: @westernexplorer mailto:ricp@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.

Re: Backyard Worlds

In message <000646f6.01e9b49016b8@smtp.freeola.net>
Peter Slegg <p.slegg@scubadivers.co.uk> wrote:

>Netsurf isn't able to open this link:
>
>https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-anniversary/
>
>It just says "Unable to fetch document" after ~20s.
>
>In choices I have:
>
>curl_fetch_timeout:180
>
>
>In can open it in Cab without difficulty.

I think this may be Atari-specific. Works here on RISC OS.

Dave

Re: Backyard Worlds

In message <000646f6.01e9b49016b8@smtp.freeola.net>
Peter Slegg <p.slegg@scubadivers.co.uk> wrote:

> Netsurf isn't able to open this link:

> https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-anniversary/

> It just says "Unable to fetch document" after ~20s.

It opens with no problem here on ARMX6 NetSurf 3.8 #4235

John



--
John Rickman

Backyard Worlds

Netsurf isn't able to open this link:

https://blog.backyardworlds.org/2018/02/14/we-love-you-and-happy-anniversary/

It just says "Unable to fetch document" after ~20s.

In choices I have:

curl_fetch_timeout:180


In can open it in Cab without difficulty.

Peter

fix build of hubbub tests with json-c 0.13

From 2a7157c319d4de41af31f5ce08723a9ead09e53f Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Wed, 14 Feb 2018 08:49:32 +0100
Subject: [PATCH] do not use deprecated is_error()

---
test/tokeniser2.c | 2 +-
test/tokeniser3.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/tokeniser2.c b/test/tokeniser2.c
index c8ab9c0..c077276 100644
--- a/test/tokeniser2.c
+++ b/test/tokeniser2.c
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
}

json = json_object_from_file(argv[1]);
- assert(!is_error(json));
+ assert(json);

assert(strcmp((char *) ((json_object_get_object(json)->head)->k),
"tests") == 0);
diff --git a/test/tokeniser3.c b/test/tokeniser3.c
index 949ddd0..db5686e 100644
--- a/test/tokeniser3.c
+++ b/test/tokeniser3.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
}

json = json_object_from_file(argv[1]);
- assert(!is_error(json));
+ assert(json);

assert(strcmp((char *) ((json_object_get_object(json)->head)->k),
"tests") == 0);
--
2.14.3

Hi,

since json-c 0.13, bits.h is no longer included automatically via
json.h and the macros defined in it are deprecated. That means that
build of hubbub tests fails, because is_error() is not defined. Patch
attached.

D.

Friday, 9 February 2018

Re: CSS for a RiscOS font and button

In article <ccf2bbaf-2c2c-4b4a-cc6e-8010dc68a31e@codethink.co.uk>,
Michael Drake <michael.drake@codethink.co.uk> wrote:


> On 09/02/18 14:56, Jim Nagel wrote:

> > In CSS, is it possible to specify a particular RiscOS font?

> No, NetSurf only supports the generic font families.

This is a great tool for helping choose which generic font family.
https://www.w3schools.com/cssref/playit.asp?filename=playcss_font-family
but not in NetSurf for presumably Javascript reasons.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: CSS for a RiscOS font and button

On 09/02/18 14:56, Jim Nagel wrote:

> In CSS, is it possible to specify a particular RiscOS font?

No, NetSurf only supports the generic font families.

> In CSS, how would I define a button to look like a familiar RiscOS
> action button?

Input type image is probably your best bet, but it won't match
desktop button style if users have customised the RISC OS button
rendering in any way.

--
Michael Drake http://www.codethink.co.uk/

CSS for a RiscOS font and button

=== 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

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

In message <CAFWmK8wZ_ZsuS_2r8q+DsOWp4Qy8igjn=KgjCpOFBU_b48wbFw@mail.g
mail.com>
J Percival <perciv.js@gmail.com> wrote:

> Someone kindly gave the link to the most recent CLib a couple of months
> back - in the !System from https://www.riscosopen.org/
> content/downloads/common [5.94 (29 Oct 2017)].
> I haven't tried the networking yet - I should give it a go...


[snip]

Unfortunately replacing CLib in 310 & 500. Did not spring networking
back to life. Have you had any luck?

Chris

--
chris.j.craig@btinternet.com
ARMX6 Cortex-A9 RISC OS 5.23
---

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Thursday, 8 February 2018

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

Someone kindly gave the link to the most recent CLib a couple of months back - in the !System from https://www.riscosopen.org/content/downloads/common [5.94 (29 Oct 2017)].
I haven't tried the networking yet - I should give it a go...

On 8 February 2018 at 16:04, Chris Craig <chris.j.craig@btinternet.com> wrote:
I have functioning Networking on previous version but I can not get
Networking on the new version. Problem appears to be on Risc OS side.

Incdently the set up instructions need to say the Shared C Library is
called CLib. Mine is 5.85 (3 April 2015). It is no longer downloadable
from www.iyonix.com/32bit/system.shtml.

Chris

--
chris.j.craig@btinternet.com
ARMX6 Cortex-A9 RISC OS 5.23
---

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

I have functioning Networking on previous version but I can not get
Networking on the new version. Problem appears to be on Risc OS side.

Incdently the set up instructions need to say the Shared C Library is
called CLib. Mine is 5.85 (3 April 2015). It is no longer downloadable
from www.iyonix.com/32bit/system.shtml.

Chris

--
chris.j.craig@btinternet.com
ARMX6 Cortex-A9 RISC OS 5.23
---

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Wednesday, 7 February 2018

Re: online telephone directory

In article <8471a5c556.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:

> 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.

I tried that link in Netsurf & got a failed to verify certificate message.
Edge in W10 gave me a This site is not secure message.

--
Chris

Tuesday, 6 February 2018

Re: [Rpcemu] RPCEmu pre release test version 0.8.101

Thanks for the new test-version.
I tested the 'MOUSE TO' behaviour and got some strange results.
RO3.71, RPC SA, Windows 10, Interpreter (or Recompiler it seems) with default settings.

There seems to be a few problems:
- If the host mouse pointer goes outside of the client window (or even on an edge sometimes) then MOUSE TO no longer has any effect and this can be caused by the command itself (e.g. to 0,0)
- In some modes the emulated pointer is in the right position but the host pointer sometimes moves to the bottom of the window (but at the correct x coordinate) (e.g. 28)
- In other modes the emulated pointer ends up in the wrong vertical position (e.g. 15)

#1 and #2 apply only to windowed mode, #3 to both.
I couldn't get completely repeatable results except for #3. Maybe the window position affects the behaviour or some odd thing in the emulated environment.

I noticed some other strange things like the escape key not working at one point and both interpreter and compiler crashing (as in some illegal operation causing Windows to complain and close the program) when switching 'follow host mouse' on and off but I couldn't reproduce either.

I can't imagine the MOUSE TO behaviour is needed for much anyway and it's all fine with 'follow host mouse' off. I just use it to centre the mouse so I can get (delta-x,delta-y) values. Maybe the odd 3D game with mouselook. If any exist!
If you want to look into it however, here is the program I wrote when testing:

---
MODE 15:MOUSE ON
FOR M%=15 TO 28 STEP (28-15)
PRINT"Re-center the mouse and press any key":A=GET
MODE M%:MOUSE ON
PRINT "Mode: ";MODE
PRINT"TO (300,300)"
MOUSE TO 300,300
PRINT"Re-center the mouse and press any key":A=GET
PRINT "TO (0,0)"
MOUSE TO 0,0
NEXT
---

I think the emulator is in pretty good shape now! Thanks again.

Kind Regards,
James





On 5 February 2018 at 18:10, Peter Howkins <rpcemu.howkins@marutan.net> wrote:
This is the third test release of RPCEmu based on the wide ranging
changes made for qt5.

https://www.marutan.net/rpcemu/testing/

Please test this version as thoroughly as possible, and if you previously
reported an issue with 0.8.100 and it is listed below, please test and
confirm it is fixed.

 - Windows - pass 'alt' key onto emulator correctly.
 - Windows - Re-enabled networking.
 - In 'Follow host mouse' mode enable support for OS_Word 21,3 'Move
   Mouse', also supports BBC BASIC 'MOUSE TO'.
 - In 'Follow host mouse' mode, the mouse is now capped to the bounding
   box (e.g. an error box), restoring the 0.8.15 behaviour.
 - Re-enable writing the configuration file to the log file to assist in
   debugging.

For further information and downloads please visit

https://www.marutan.net/rpcemu/testing/

Matthew Howkins
Peter Howkins

--
Peter Howkins
peter.howkins@marutan.net

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Monday, 5 February 2018

(no subject)

Hi all.

not sure that it's a right place for discussion. I'm interested in developing HTML/CSS based GUI autobuilder. lightweight, very lightweight. the idea is close to yad or zenity but much more powerful. no it's not Electron/NW.js-like bloat. Something light that we can use from bash/perl/tcl/python. roughly my approach is to take web-browser, cut off javascript, web-, network-stack, leave CSS, XML parsing, DOM, layout rendering, add IPC interface. netsurf looks to be a fine donor :). What do you think? any suggestions, interest?

Alex

[Rpcemu] RPCEmu pre release test version 0.8.101

This is the third test release of RPCEmu based on the wide ranging
changes made for qt5.

https://www.marutan.net/rpcemu/testing/

Please test this version as thoroughly as possible, and if you previously
reported an issue with 0.8.100 and it is listed below, please test and
confirm it is fixed.

- Windows - pass 'alt' key onto emulator correctly.
- Windows - Re-enabled networking.
- In 'Follow host mouse' mode enable support for OS_Word 21,3 'Move
Mouse', also supports BBC BASIC 'MOUSE TO'.
- In 'Follow host mouse' mode, the mouse is now capped to the bounding
box (e.g. an error box), restoring the 0.8.15 behaviour.
- Re-enable writing the configuration file to the log file to assist in
debugging.

For further information and downloads please visit

https://www.marutan.net/rpcemu/testing/

Matthew Howkins
Peter Howkins

--
Peter Howkins
peter.howkins@marutan.net

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Re: online telephone directory

In article <8471a5c556.jim@6.abbeypress.net>, Jim Nagel
<netsurf@abbeypress.co.uk> wrote:
> 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.

All those nested divs instead of giving several styles to one div.
[insert 'face with rolling eyes' emoji]

> 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).

I think it's the mistaken belief that it is the only way to make your
website also compatible with an iPhone 4 which is only 320 pixels wide.
Hence the current crop of websites which you can read from across the
room on a monitor.

> Does anybody know a current phonebook site that DOES work with Netsurf?

192.com works with business numbers but may require £ for private ones.

--

Tim Hill

timil.com : tjrh.eu : butterwick.eu : blue-bike.uk : youngtheatre.co.uk

Re: online telephone directory

Jim Nagel wrote on 5 Feb:
> ... 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). ...

Hmmm, I thought the new design was giving me no result when I search,
but rather just redisplaying the same page.

However, I again searched for my own home phone number, scrolled way
down the page, and there it was.

Tried again, searching for the person I actually want to find, scroll
down, it's blank. Scroll some more, and suspect I saw a snippet of
text. Did Ctrl-A, and, aha, it must have been white text on a white
background, for I now see text saying the number is ex-directory.

Tiresome.

--
Jim Nagel www.archivemag.co.uk
|| See you at the show? www.riscos-swshow.co.uk Feb 24

online telephone directory

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