Monday, 31 January 2022

Re: Online converters

On 30 Jan 2022 as I do recall,
Richard Porter wrote:

> On 30 Jan 2022 Harriet Bazley wrote:
>
> > I have this one bookmarked for XLSX to XLS, and it also seems to offer
> > 'Word to PDF'.
>
> > https://convertstandard.com/word2pdf.aspx
>
> > Tested, and it works - with the proviso that the first time I tried to
> > open the resulting PDF I was asked for a (non-existing) password, but it
> > worked on the second attempt.
>
> I tried this on two files. The first produced an XML file. I changed the
> file type to MSexcel and !ViewXLS just produced a large grid with no
> content. The other file produced no output at all.
>
I haven't used it for a while, but I just tried it on a file from the
Office of National Statistics and so far as I can tell, it worked -
however, the resulting file was so huge (30 pages in !ViewXLS) that
Fireworkz ran out of memory before managing to convert and generate all
30 Excel sheets, while !ViewXLS only displays the text labels and not
the formula results.

--
Harriet Bazley == Loyaulte me lie ==

It is better to wear out than to rust.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

In article <59b3796fc6Lists@Torrens.org>,
Richard Torrens (lists) <Lists@Torrens.org> wrote:
> In article <59b36aac3ccvjazz@waitrose.com>,
> Chris Newman <cvjazz@waitrose.com> wrote:
> > In article <59b2e89e73Lists@Torrens.org>,
> > Richard Torrens (lists) <Lists@Torrens.org> wrote:
> > > Has anyone found a file converter that will work with Netsurf?

> > > I am looking for docx to pdf.

> > Techwriter will do that on a RISC OS machine.

> The requsest was for something that worked with Netsurf!

> Many years ago I bought Techwriter Professional. Didn't like the program
> so stopped using it.

I'm a horses for courses kind of guy...

Why don't you go to MS-Windows where DocX files are native creatures,
it'll save a lot of faffing about.

I still use RISC OS for lot of things, but there are areas of endeavour
where RISC OS is a waste of time; So I gave up wasting my time years ago
and went Win side for those particular things.

Dave

Years ago... Had I not been able to apply the Horses for courses with
regard to some of the things I do, I would have completely dumped RISC OS.

:-(

D.

--

Dave Triffid
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

In article <59b36aac3ccvjazz@waitrose.com>,
Chris Newman <cvjazz@waitrose.com> wrote:
> In article <59b2e89e73Lists@Torrens.org>,
> Richard Torrens (lists) <Lists@Torrens.org> wrote:
> > Has anyone found a file converter that will work with Netsurf?

> > I am looking for docx to pdf.

> Techwriter will do that on a RISC OS machine.

The requsest was for something that worked with Netsurf!

Many years ago I bought Techwriter Professional. Didn't like the program
so stopped using it.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

On 31 Jan 2022 Chris Newman wrote:

> In article <59b2e89e73Lists@Torrens.org>,
> Richard Torrens (lists) <Lists@Torrens.org> wrote:
>> Has anyone found a file converter that will work with Netsurf?

>> I am looking for docx to pdf.

> Techwriter will do that on a RISC OS machine.

I was going to suggest TW/EW but they don't keep the format particularly
if you have text flowed around images, and it doesn't do automatic
numbering of paragraphs, sections, chapters etc.


--
Richard Porter
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

In article <59b2e89e73Lists@Torrens.org>,
Richard Torrens (lists) <Lists@Torrens.org> wrote:
> Has anyone found a file converter that will work with Netsurf?

> I am looking for docx to pdf.

Techwriter will do that on a RISC OS machine.

--
Chris
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

On 30 Jan 2022 Richard Porter wrote:

> On 30 Jan 2022 Harriet Bazley wrote:

>> I have this one bookmarked for XLSX to XLS, and it also seems to offer
>> 'Word to PDF'.

>> https://convertstandard.com/word2pdf.aspx

>> Tested, and it works - with the proviso that the first time I tried to
>> open the resulting PDF I was asked for a (non-existing) password, but it
>> worked on the second attempt.

> I tried this on two files. The first produced an XML file. I changed the
> file type to MSexcel and !ViewXLS just produced a large grid with no
> content. The other file produced no output at all.

I tried again but with the same result - first time a blank grid, then
after that no output, just a blink. I then tried XLSX to PDF and that was
fine.

--
Richard Porter
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

In article <3a8615b359.harriet@bazleyfamily.co.uk>,
Harriet Bazley <lists@bazleyfamily.co.uk> wrote:
> On 30 Jan 2022 as I do recall,
> Richard Torrens (lists) wrote:

> > Has anyone found a file converter that will work with Netsurf?
> >
> > I am looking for docx to pdf.
> >
> I have this one bookmarked for XLSX to XLS, and it also seems to offer
> 'Word to PDF'.

> https://convertstandard.com/word2pdf.aspx

> Tested, and it works - with the proviso that the first time I tried to
> open the resulting PDF I was asked for a (non-existing) password, but it
> worked on the second attempt.

Thanks Harriet. I tried 15 other converters before asking - this one did
not turn up on a duckduckgo search before I gave up.

The page doesn't display well in Netsurf but the "Drop file here" box is
evident. It was a large (9MB) file and nothing appeared to happen. I had
nearly given up when Netsurf's download window appeared. Now down to 3656KB.

The download wes filetyped XML but has a /pdf name. But re-typing to pdf it
worked properly.

So yes, it works fine.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Sunday, 30 January 2022

Re: Online converters

On 30 Jan 2022 Harriet Bazley wrote:

> I have this one bookmarked for XLSX to XLS, and it also seems to offer
> 'Word to PDF'.

> https://convertstandard.com/word2pdf.aspx

> Tested, and it works - with the proviso that the first time I tried to
> open the resulting PDF I was asked for a (non-existing) password, but it
> worked on the second attempt.

I tried this on two files. The first produced an XML file. I changed the
file type to MSexcel and !ViewXLS just produced a large grid with no
content. The other file produced no output at all.

--
Richard Porter http://www.minijem.plus.com/
t: @westernexplorer mailto:ricp@minijem.plus.com
Sent from my User-Agent using my X-Editor.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Online converters

On 30 Jan 2022 as I do recall,
Richard Torrens (lists) wrote:

> Has anyone found a file converter that will work with Netsurf?
>
> I am looking for docx to pdf.
>
I have this one bookmarked for XLSX to XLS, and it also seems to offer
'Word to PDF'.

https://convertstandard.com/word2pdf.aspx

Tested, and it works - with the proviso that the first time I tried to
open the resulting PDF I was asked for a (non-existing) password, but it
worked on the second attempt.

--
Harriet Bazley == Loyaulte me lie ==

The way to a man's heart is through the left ventricle.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

[A9home-list] USB HID Support

Hi,

Having an issue with my USB HID support not always loading during startup.
Sometimes have to reboot 2 or three times for it to load :(

USB startup routine is at !Boot.Choices.Users.single.boot.predesk.

Is this the same for everyone else. Just wondering if perhaps I should
move it to !Boot.Choices.Hardware.Disabled.Boot.PreDesk.

--
Paul Stewart
Sent from A9home running RISC OS 4.42

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

Online converters

Has anyone found a file converter that will work with Netsurf?

I am looking for docx to pdf.

--
Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Thursday, 27 January 2022

fixes bug #0002045 on alpine linux

--- a/netsurf/frontends/gtk/gettext.c
+++ b/netsurf/frontends/gtk/gettext.c
@@ -27,14 +27,29 @@
#include "utils/messages.h"
#include "gtk/gettext.h"

+char *libintl_gettext(const char *msgid)
+{
+ return dcgettext(NULL, msgid, 0);
+}
+
char *gettext(const char *msgid)
{
return dcgettext(NULL, msgid, 0);
}

+char *libintl_dgettext(const char *domainname, const char *msgid)
+{
+ return dcgettext(domainname, msgid, 0);
+}
+
char *dgettext(const char *domainname, const char *msgid)
{
return dcgettext(domainname, msgid, 0);
+}
+
+char *libintl_dcgettext(const char *domainname, const char *msgid, int category)
+{
+ return dcgettext(domainname, msgid, category);
}

char *dcgettext(const char *domainname, const char *msgid, int category)
--- a/netsurf/frontends/gtk/gettext.h
+++ b/netsurf/frontends/gtk/gettext.h
@@ -25,6 +25,10 @@
#ifndef _NETSURF_GTK_GETTEXT_MESSAGES_H_
#define _NETSURF_GTK_GETTEXT_MESSAGES_H_

+char *libintl_gettext(const char *msgid);
+char *libintl_dgettext(const char *domainname, const char *msgid);
+char *libintl_dcgettext(const char *domainname, const char *msgid, int category);
+
char *gettext(const char *msgid);
char *dgettext(const char *domainname, const char *msgid);
char *dcgettext(const char *domainname, const char *msgid, int category);
hello there,

it looks like gtk3 on alpine linux uses libintl_*gettext functions
instead of plain *gettext, so we need to override those functions too
to get the preferences window to display correct messages.

i have attached a patch to fix it.

Friday, 21 January 2022

Re: Using Netsurf cookies with wget

On 2022-01-21 13:17, Harriet Bazley wrote:
> On 21 Jan 2022 as I do recall,
> Jeremy Nicoll - ml netsurf wrote:

>> Also, the form when used on a webpage, sets variable
>> "user_remember_me"
>> and (I'm not completely sure) maybe also the submit button part sets
>> something - I don't know why it defines a name and a value - the
>> latter
>> is the text on the button but what's "name" for?
>
> That's just a 'Remember Me' (and don't ask for log-in again but
> redirect
> to the stats page) button.

It's not just that. The form code has

<input name="user[remember_me]" type="hidden" value="0"/>
<input type="checkbox" value="1" name="user[remember_me]"
id="user_remember_me"/>

(odd that there's two such definitions, but maybe JS on the page hides
one
of them completely). Nevertheless one would expect the POST request
sent
to the server to contain "&user_remember_me=0" (or =1) and maybe the
server ignore requests that arrive without all the required parameters.




> I'm afraid I don't know enough about HTML forms to understand exactly
> what the Submit button is doing, but the page only prompts for two user
> inputs in this form.

Yes, but type=hidden means there's entries in the form that do do things
even if you don't see them. You should maybe read this, and the pages
around it that discuss various aspects of forms

https://www.w3schools.com/tags/att_input_type_hidden.asp


I see from one of your other posts that you've found that pages have
unique content. I'd guess that the server is using (eg) php session ids
& it's sending the id of the session it's established for you to the
page
so the page can send that back on successive requests. The id (and
maybe
other values) would likely be used as a key in a database on the server
that's storing a whole set of user- & session- specific information.


--
Jeremy Nicoll - my opinions are my own
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

>> there might be hidden input fields, [...]
> Ah - I think I may have spotted something. The actual <form> tag at
> the start contains an 'authenticity token':

[reformatted for readability]
> <form class="new_user" id="new_user" action="/users/login"
> accept-charset="UTF-8" method="post">
> <input name="utf8" type="hidden" value="&#x2713;"/>
> <input type="hidden" name="authenticity_token" value="VfGGu3jwjsf6xNQmlmuu3Qkgc1BsZzgu0ikhluwqmVHU9RFVQQUUANuaza9HFgXr_c71SiKwBLz8XA8bQ4hSOA"/>
> [...]
> </form>

There's also that "utf8" field. Amusingly, U+2713, from the Dingbats
range, is CHECK MARK. Of course, who knows what the server would do if
that field weren't there or had a different value, such as maybe U+2718
(an X mark, called HEAVY BALLOT X) or U+00AC (NOT SIGN)....

> And this value is different for every copy of the page served, which
> presumably means that it is, by design, impossible for anyone to log
> in 'blind' with user name and password alone....

Likely. Quite possibly done as a defense against automated
password-guessing bots. Unfortunately, with the current state of
Internet governance, such defenses are close to essential.

The token looks like URL-safe base64. Decoding it under that
assumption produces random-looking binary data, so I suspect it is (as
should be) being done with proper crypto.

/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 21 Jan 2022 as I do recall,
Michael Drake wrote:

>
> On 21/01/2022 13:17, Harriet Bazley wrote:
>
> > Then the browser history getting updated with the new page and a
> > FETCH_REDIRECT from the login page to the user home page. No record of
> > what data was sent to the server, that I can see.
>
> In your Choices file, try setting:
>
> suppress_curl_debug:0
>
That doesn't seem to make any difference, despite quitting and
restarting (so far as I can tell by eye, the two log files are identical
around that area in terms of what gets logged following the 'keydown'
events).

I tried it using the search box form, in order to simplify the amount of
logging-in, quitting, and logging-out I had to do, and you just get a
fetch_curl_setup with the URL of the page being fetched - which in the
case of the search form, contains the 'work_search?query=' data encoded
as part of the URL itself. Unfortunately in the case of the login form
the variables submitted are not present in the URL of the resulting
page!


--
Harriet Bazley == Loyaulte me lie ==

Radioactive cats have 18 half-lives.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 21 Jan 2022 as I do recall,
Mouse wrote:

> > I'm afraid I don't know enough about HTML forms to understand exactly
> > what the Submit button is doing,
>
> HTML forms, I think, just generate a POST when submitting. But just
> prompting for two visible inputs doesn't mean there are only two
> input fields in the POST; there might be hidden input fields, fields
> which aren't displayed, being there just to pass values through from
> page generation to form submission. Read the HTML source for the form
> if you want to check that possibility.
>

Ah - I think I may have spotted something. The actual <form> tag at the
start contains an 'authenticity token':


<div id="loginform">
<form class="new_user" id="new_user" action="/users/login" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;"/><input type="hidden" name="authenticity_token" value="VfGGu3jwjsf6xNQmlmuu3Qkgc1BsZzgu0ikhluwqmVHU9RFVQQUUANuaza9HFgXr_c71SiKwBLz8XA8bQ4hSOA"/>
<dl>
<dt><label for="user_login">User name or email:</label></dt>
<dd><input type="text" name="user[login]" id="user_login"/></dd>
<dt><label for="user_password">Password:</label></dt>
<dd><input type="password" name="user[password]" id="user_password"/></dd>
<dt><label for="user_remember_me">Remember me</label></dt>
<dd><input name="user[remember_me]" type="hidden" value="0"/><input type="checkbox" value="1" name="user[remember_me]" id="user_remember_me"/></dd>
<dt class="landmark">Submit</dt>
<dd class="submit actions">
<input type="submit" name="commit" value="Log in" class="submit"/>
</dd>
</dl>
</form>
</div>

And this value is different for every copy of the page served, which
presumably means that it is, by design, impossible for anyone to log in
'blind' with user name and password alone....

--
Harriet Bazley == Loyaulte me lie ==

The best laid schemes o' mice and men gang oft a-gley.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

> I'm afraid I don't know enough about HTML forms to understand exactly
> what the Submit button is doing,

HTML forms, I think, just generate a POST when submitting. But just
prompting for two visible inputs doesn't mean there are only two
input fields in the POST; there might be hidden input fields, fields
which aren't displayed, being there just to pass values through from
page generation to form submission. Read the HTML source for the form
if you want to check that possibility.

Mouse
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 21/01/2022 13:17, Harriet Bazley wrote:

> Then the browser history getting updated with the new page and a
> FETCH_REDIRECT from the login page to the user home page. No record of
> what data was sent to the server, that I can see.

In your Choices file, try setting:

suppress_curl_debug:0

--
Michael Drake https://www.codethink.co.uk/
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 21 Jan 2022 as I do recall,
Jeremy Nicoll - ml netsurf wrote:

> On 2022-01-21 00:55, Harriet Bazley wrote:
>
> > I also tried using --post-data 'user-Login=USER&user_password=PASSWORD'
> > with no result,
>
> That /may/ be because you weren't careful enough coding that. According
> to the form code, the login variable isn't called "user-Login" but
> instead (2 differences) "user_login".

No - unfortunately it looks as if that was just sloppy transcription.
The actual data in my test script is "user_login". :-(


>
> Also, the form when used on a webpage, sets variable "user_remember_me"
> and (I'm not completely sure) maybe also the submit button part sets
> something - I don't know why it defines a name and a value - the latter
> is the text on the button but what's "name" for?

That's just a 'Remember Me' (and don't ask for log-in again but redirect
to the stats page) button.
I'm afraid I don't know enough about HTML forms to understand exactly
what the Submit button is doing, but the page only prompts for two user
inputs in this form.

(There are other forms on that page, e.g. a search box to search the
site, but I'm assuming that provided I supply the correct id/input pairs
the server will act on the data from the correct form - the trouble is
that I understand very little of what I am actually doing here and am
basically poking around at random.)

>
>
> I haven't used Netsurf for ages, but in Firefox one can see in its logs
> what URLs are built and sent back to a server - indeed in developer
> tools one can see the "curl" equivalent command to each communication
> with a server. Really the simplest way to recreate something is to
> look at what the browser actually does.

Yes, that was the recommendation on the Web page that suggested using
the --post-data method: simply 'turn on development tools'.
Unfortunately so far as I know Netsurf doesn't provide access to sniff
around at that level.

You can't read the log in !Scrap while the browser is actually running,
which makes looking at that a little tricky, and it gives a *lot* of
data that is nothing to do with curl fetches. But all I'm seeing is
HTTP status codes, e.g.

(16.330000) [INFO netsurf] content/fetchers/curl.c:1200 fetch_curl_process_headers: HTTP status code 200

And then way, way down the page

(17.460000) [INFO netsurf] content/handlers/html/html.c:126 fire_generic_dom_event: Dispatching 'click' against 0x55ef7118
(18.690000) [INFO netsurf] content/handlers/html/html.c:203 fire_dom_keyboard_event: Dispatching 'keydown' against 0x55d2d690
(18.960000) [INFO netsurf] content/handlers/html/html.c:203 fire_dom_keyboard_event: Dispatching 'keydown' against 0x55d2d690

etc., which is me typing passwords.

Lots of things being removed on the submission of the form:

(20.030000) [INFO netsurf] content/handlers/html/html.c:1192 html_destroy: content 0x55a955c0
(20.030000) [INFO netsurf] content/handlers/html/form.c:1460 form_free_control: Control:0x55e20698 name:0x55e1ca48 value:0x55b1e9f0 initial:0x0
(20.030000) [INFO netsurf] content/handlers/html/form.c:1460 form_free_control: Control:0x55e6f2e0 name:0x55e6f2c8 value:0x55e6f348 initial:0x55e6ea88
(20.030000) [INFO netsurf] content/handlers/html/form.c:1460 form_free_control: Control:0x55e42780 name:0x0 value:0x55e42000 initial:0x0
(20.030000) [INFO netsurf] content/content.c:695 content_remove_user: content file:///NetSurf:/Resources/CSS (0x55b62098), user 0x16c498 0x55a92c28

Then the browser history getting updated with the new page and a
FETCH_REDIRECT from the login page to the user home page. No record of
what data was sent to the server, that I can see.

But as I said, I understand very little of what is going on.

--
Harriet Bazley == Loyaulte me lie ==

Death is nature's way of telling you to slow down.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 2022-01-21 00:55, Harriet Bazley wrote:

> I also tried using --post-data 'user-Login=USER&user_password=PASSWORD'
> with no result,

That /may/ be because you weren't careful enough coding that. According
to the form code, the login variable isn't called "user-Login" but
instead (2 differences) "user_login".

Also, the form when used on a webpage, sets variable "user_remember_me"
and (I'm not completely sure) maybe also the submit button part sets
something - I don't know why it defines a name and a value - the latter
is the text on the button but what's "name" for?


I haven't used Netsurf for ages, but in Firefox one can see in its logs
what URLs are built and sent back to a server - indeed in developer
tools
one can see the "curl" equivalent command to each communication with a
server. Really the simplest way to recreate something is to look at
what
the browser actually does.


--
Jeremy Nicoll - my opinions are my own
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Thursday, 20 January 2022

Re: Using Netsurf cookies with wget

On 20 Jan 2022 as I do recall,
Harriet Bazley wrote:

> On 20 Jan 2022 as I do recall,
> simon_smith@zen.co.uk wrote:
>
> [snip]
>
> >
> > The cookie part is probably a red herring. The conventional approach
> > would be to use the wget tools to fetch the login page and send
> > username and password using the features wget has built-in. Hey
> > presto, now you're logged in, via wget, and you should be able to get
> > the rest of the stuff you're after.
>
> I've tried "wget --ask-password URL", which prompts me for the password
> but then redirects to fetch the login page as if I were not logged in,
> and "wget --user=USER --password=PASSWORD URL", which also redirects to
> the login page instead of retrieving the one I asked for.
>
> I've tried fetching the login page directly using --user and --pass, but
> it just fetches the 'please log in' prompt instead of the 'you are
> already signed in' prompt.
>

I also tried using --post-data 'user-Login=USER&user_password=PASSWORD'
with no result, where the form in the log-in page is as follows:


<dt><label for="user_login">User name or email:</label></dt>
<dd><input type="text" name="user[login]" id="user_login"/></dd>
<dt><label for="user_password">Password:</label></dt>
<dd><input type="password" name="user[password]" id="user_password"/></dd>
<dt><label for="user_remember_me">Remember me</label></dt>
<dd><input name="user[remember_me]" type="hidden" value="0"/><input type="checkbox" value="1" name="user[remember_me]" id="user_remember_me"/></dd>
<dt class="landmark">Submit</dt>
<dd class="submit actions">
<input type="submit" name="commit" value="Log in" class="submit"/>
</dd>


--
Harriet Bazley == Loyaulte me lie ==

The fact that you're paranoid.... doesn't mean they're NOT out to get you.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 20 Jan 2022 as I do recall,
simon_smith@zen.co.uk wrote:

[snip]

>
> The cookie part is probably a red herring. The conventional approach
> would be to use the wget tools to fetch the login page and send
> username and password using the features wget has built-in. Hey
> presto, now you're logged in, via wget, and you should be able to get
> the rest of the stuff you're after.

I've tried "wget --ask-password URL", which prompts me for the password
but then redirects to fetch the login page as if I were not logged in,
and "wget --user=USER --password=PASSWORD URL", which also redirects to
the login page instead of retrieving the one I asked for.

I've tried fetching the login page directly using --user and --pass, but
it just fetches the 'please log in' prompt instead of the 'you are
already signed in' prompt.

I've tried using the --save-cookies option to save any cookies generated
by 'logging in', and it just saves a blank "generated by Wget" file with
no data in it.

I've tried --load-cookies=SCSI::SSD.$.!BOOT.Choices.WWW.NetSurf.Cookies
on the offchance, but that didn't work either....


--
Harriet Bazley == Loyaulte me lie ==

My opinions may have changed, but not the fact that I am right.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 2022-01-20 06:46 PM, "Harriet Bazley" <lists@bazleyfamily.co.uk> wrote:
> On 20 Jan 2022 as I do recall,
> cj wrote:
>
> > In article <88ea7bad59.harriet@bazleyfamily.co.uk>,
> > Harriet Bazley <lists@bazleyfamily.co.uk> wrote:
> > > How can I use Netsurf's cookie file with wget to retrieve a web page
> > > that is only accessible to logged-in users
> >
> > wget --help shows there are commands to send user names and passwords
> > when downloading, ftping etc. Have you tried that?
> >
> I'm not sure how that would work, unless I fetched the log-in page
> first? The stats page doesn't request a password - so far as I can
> tell it just doesn't let you fetch it if the relevant browser cookie
> isn't present.

The cookie part is probably a red herring. The conventional approach would
be to use the wget tools to fetch the login page and send username and
password using the features wget has built-in. Hey presto, now you're logged
in, via wget, and you should be able to get the rest of the stuff you're after.

If this web site really was using a cookie for 'authentication', then in theory you should be able to send the cookie to someone else, they could put it on
their computer, and then access the 'protected' area without logging in at all.
That makes no sense.

Try the tools wget already provides - unless it genuinely is a highly eccentric
website, wget should be sufficient.

--
Simon Smith [via webmail]




_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

On 20 Jan 2022 as I do recall,
cj wrote:

> In article <88ea7bad59.harriet@bazleyfamily.co.uk>,
> Harriet Bazley <lists@bazleyfamily.co.uk> wrote:
> > How can I use Netsurf's cookie file with wget to retrieve a web page
> > that is only accessible to logged-in users
>
> wget --help shows there are commands to send user names and passwords
> when downloading, ftping etc. Have you tried that?
>
I'm not sure how that would work, unless I fetched the log-in page
first? The stats page doesn't request a password - so far as I can
tell it just doesn't let you fetch it if the relevant browser cookie
isn't present.

--
Harriet Bazley == Loyaulte me lie ==

Cole's Law: Thinly sliced cabbage.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Using Netsurf cookies with wget

In article <88ea7bad59.harriet@bazleyfamily.co.uk>,
Harriet Bazley <lists@bazleyfamily.co.uk> wrote:
> How can I use Netsurf's cookie file with wget to retrieve a web page
> that is only accessible to logged-in users

wget --help shows there are commands to send user names and passwords
when downloading, ftping etc. Have you tried that?

--
Chris Johnson
Edinburgh
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Wednesday, 19 January 2022

Using Netsurf cookies with wget

How can I use Netsurf's cookie file with wget to retrieve a web page
that is only accessible to logged-in users - so that it's visible when I
visit that URL with the browser, but blocked if I try to fetch it with
wget for local processing?

Of course I can simply save the displayed page out of Netsurf manually,
which is what I've been doing for test purposes, but it would be nice to
be able to automate the script slightly further.

--
Harriet Bazley == Loyaulte me lie ==

I like work; it fascinates me; I can sit and look at it for hours.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Wednesday, 12 January 2022

Re: [A9home-list] USB MassFC maximum disk size

In message <1bf841b9-4230-a8c0-6d62-a5139c2927e3@arcor.de>
Raik Fischer via A9home-list <a9home-list@riscository.co.uk>
wrote:

> I'm not sure. Maybe I'm wrong.
> For the IDEDisc (I change to an 120GB SSD... bigger, faster, cooler
> ;-)), an HDForm formatted Disc was not usable on a9home. It needs a
> IDETools formatted one. So I not know ... Is it the same with an USB device?

I find the IDE interface on the A9home to be quite selective about what it
likes :(

Many years ago, not too long after I had purchased the A9, I changed the
drive for MLC(I think that was the term) based SSD. This worked fine, was
a bit slow at writing. But then started having issues it. Eventually I
settled on an 44 pin IDE to 32GB Compact flash interface that I have been
using in it for quite a number of years now. The read speed on the CF was
good, but was never quick at writing. Finally I have now purchased a 32GB
Sandisk Extreme Pro Compact Flash. This both reads and writes fairly
quickly.

With regards to my question about the capacity of Filecore Formatted
devices on USB. I do have a CF to USB adaptor. This is detected without
problem, and works fine with 1GB CF. When I tried the 32GB, so I could
transfer the data to my new quicker CF card, the whole system just locked
up, resulting in a reboot being required.

I did manage to get at the data, via my Pinebook. I have a folder setup
on that as a ShareFS boot(along with necessary bits for booting A9)(One of
the useful items from the boot menu). I was able to boot the A9 from this
then copy all the data back across from th CF via the Pinebook.

--
Paul Stewart
Sent from A9home running RISC OS 4.42

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

Re: [A9home-list] USB MassFC maximum disk size

Not a direct answer. I newer try. But I think 256GB. I try do this evening.

I found this link in my "linkcollection".

https://www.riscos.info/index.php/Simtec_USB_technical

Do you use USBUtils to find the correct settings?

I'm not sure. Maybe I'm wrong.
For the IDEDisc (I change to an 120GB SSD... bigger, faster, cooler
;-)), an HDForm formatted Disc was not usable on a9home. It needs a
IDETools formatted one. So I not know ... Is it the same with an USB device?

Raik



Am 11.01.2022 um 23:14 schrieb Paul Stewart via A9home-list:
> Anyone know if the there is a maximum disk size for filecore formatted USB
> devices? I have one Compact flash at 1Gb that works fine. Another at
> 32Gb just locks the system when trying to access.
>
> I aware that for MassFS the maximum size if 4GB because for the maximum
> RISC OS file size limit, but the devices I am using are formatted filecore
> not DOS.
>


--
"Die Leute sind gar nicht so dumm, wie wir sie durch das Fernsehen noch
machen werden." (Hans-Joachim Kulenkampff)

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

[gccsdk] GCC 4.7.4 Rel 6: execvp() abort on data transfer

The following program fails with an "abort on data transfer" error.
This happens on both VRPC and RPCEmu.

*Type c.err_exec
#include <unistd.h>
int main(int argc,char** argv) {
  (void) argc;
  execvp(argv[1],&argv[2]);
  return 0;
}

*gcc -std=gnu11 err_exec.c -o err_exec

*wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

*err_exec wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
Internal error: abort on data transfer at &0226627C

And when run from a TaskObey file, it can stiff the machine.

wget is from
https://www.riscos.info/packages/arm/Network/wget_1.20.3-2_arm.zip

Regards
Duncan Moore

gcc (GCCSDK GCC 4.7.4 Release 6) 4.7.4
SharedUnixLibrary 1.16
VirtualRPC-AdjustSA RISC OS 4.39
RPCEmu 0.9.3 RISC OS 5.24


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Tuesday, 11 January 2022

[A9home-list] USB MassFC maximum disk size

Anyone know if the there is a maximum disk size for filecore formatted USB
devices? I have one Compact flash at 1Gb that works fine. Another at
32Gb just locks the system when trying to access.

I aware that for MassFS the maximum size if 4GB because for the maximum
RISC OS file size limit, but the devices I am using are formatted filecore
not DOS.

--
Paul Stewart
Sent from A9home running RISC OS 4.42

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

Tuesday, 4 January 2022

Re: [A9home-list] Longshot - ST Developments USB Wifi Adaptor

Am 04.01.2022 um 22:32 schrieb Paul Stewart via A9home-list:
> Longshot I know, but....
>
> Does anyone recall the make and model of the ST Developments USB Adaptor?

Sorry, no.
I was trying (a lot of attemps) to get the complete stuff (Adapter +
Driver) direct from STD and via the dealer I buy my a9home but we never
get an answer from STD.

>
> Many moons ago I did have one and it worked well until it broke. Sadly it
> broke when I was going through a period of doing a lot on RISC OS and at
> the time I just disposed of it. Would like to have one again now. Still
> have the driver. Just lacking the hardware :(

I have any different USB Adapter here but no driver. If anyone has an
idea where I can buy the driver, I will do so.

Best wishes for 2022,

Raik

>


--
"Die Leute sind gar nicht so dumm, wie wir sie durch das Fernsehen noch
machen werden." (Hans-Joachim Kulenkampff)

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

[A9home-list] Longshot - ST Developments USB Wifi Adaptor

Longshot I know, but....

Does anyone recall the make and model of the ST Developments USB Adaptor?

Many moons ago I did have one and it worked well until it broke. Sadly it
broke when I was going through a period of doing a lot on RISC OS and at
the time I just disposed of it. Would like to have one again now. Still
have the driver. Just lacking the hardware :(

--
Paul Stewart
Sent from A9home running RISC OS 4.42

--
This mailing list is hosted by RISCOSitory/Soft Rock Software
http://www.riscository.com/mailing-lists/

Monday, 3 January 2022

Re: Wix site images

On 4 Jan 2022, at 3:18, Rob Kendrick wrote:

This is true, but it's not the reason websites do this. They do this
because it drastrically reduces their bandwidth costs and bursts of
activity on the httpd, which is important if you're paying AWS's rates.

Oh, for sure, I'm well aware that this kind of nonsense is done to favour the corporations and not the end users.

--   TTFN, Andrew Hodgkinson  Find photos, software, music and more at my home site, Bandcamp and GitHub:  https://pond.org.uk / https://pondnz.bandcamp.com / https://github.com/pond  

Re: Wix site images

On Mon, Jan 03, 2022 at 09:28:46AM +1300, Andrew Hodgkinson wrote:
> There is almost no universe in which this is better or faster than
> just letting the web browser load the original image directly, with
> the web site building providing a precise at-in-page-resolution copy
> of the image for the page and optionally a click-through to the full
> resolution version, if available and if permitted by the person who
> put the web site together.

This is true, but it's not the reason websites do this. They do this
because it drastrically reduces their bandwidth costs and bursts of
activity on the httpd, which is important if you're paying AWS's rates.

B.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Sunday, 2 January 2022

Re: Wix site images

On 2 Jan 2022 as I do recall,
Andrew Hodgkinson wrote:

> On 3 Jan 2022, at 6:44, Harriet Bazley wrote:
>
> > How are these images supposed to work?
> >
> > [https://www.phantomlibrary.com/macabre-mystery-curse-of-the-nightingal](https://www.phantomlibrary.com/macabre-mystery-curse-of-the-nightingal)

[snip]


> They built a very over-complicated JavaScript system, that uses a custom
> element wrapping a standard IMG tag in the hope that a browser will
> ignore the outer custom element but render whatever it wraps. So, the
> browser renders the standard `img` tag, which contains a low resolution
> blurred preview of the actual image. JavaScript code looks for the
> custom `wix-image` elements and parses parameters in the various `data`
> attributes to work out how it's supposed to load and show the full
> resolution image to the user.
>

Thanks. At least in this case there is a way in which one *can* view
the missing images via some source-diving if they appear to be relevant
to the body text - more and more sites on the Web seem to be showing up
with their photos missing, presumably due to similar just-in-time JS
loading techniques.

--
Harriet Bazley == Loyaulte me lie ==

I like work; it fascinates me; I can sit and look at it for hours.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

Re: Wix site images

On 3 Jan 2022, at 6:44, Harriet Bazley wrote:

How are these images supposed to work?

https://www.phantomlibrary.com/macabre-mystery-curse-of-the-nightingal

First rule of the web: There's nothing you can't ruin with JavaScript.

Apparently, after loading 100s of K of JavaScript source code (at least it's < 1MB, small mercies!) that runs in your web browser using up your computer's resources, those smart developers at Wix realised - IDK - that the big thing causing slow loading times is images, because Reasons, maybe? Or they just wanted fancy loading transitions and hadn't heard of CSS. Whatever.

They built a very over-complicated JavaScript system, that uses a custom element wrapping a standard IMG tag in the hope that a browser will ignore the outer custom element but render whatever it wraps. So, the browser renders the standard img tag, which contains a low resolution blurred preview of the actual image. JavaScript code looks for the custom wix-image elements and parses parameters in the various data attributes to work out how it's supposed to load and show the full resolution image to the user.

One of the delightful side-quests is implementation of the "feature" wherein an image doesn't load until I scroll down to wherever it is showing on the page. I get to experience the joy of waiting for images to load over and over again, rather than the browser just loading them all when it fetches the page so that I can get on with viewing it without further delays or interruptions.

There is almost no universe in which this is better or faster than just letting the web browser load the original image directly, with the web site building providing a precise at-in-page-resolution copy of the image for the page and optionally a click-through to the full resolution version, if available and if permitted by the person who put the web site together.

--   TTFN, Andrew Hodgkinson  Find photos, software, music and more at my home site, Bandcamp and GitHub:  https://pond.org.uk / https://pondnz.bandcamp.com / https://github.com/pond  

Wix site images

How are these images supposed to work?
https://www.phantomlibrary.com/macabre-mystery-curse-of-the-nightingal

<wix-image id="img_comp-kwl9a6lh" class="_1-6YJ _1Fe8-"
data-image-info="{&quot;containerId&quot;:&quot;comp-kwl9a6lh&quot;,&quot;displayMode&quot;:&quot;fill&quot;,&quot;imageData&quot;:{&quot;width&quot;:1022,&quot;height&quot;:766,&quot;uri&quot;:&quot;9da2c5_b840c835b6f74327b9b75907f3e33c0d~mv2.png&quot;,&quot;name&quot;:&quot;mm1.png&quot;,&quot;displayMode&quot;:&quot;fill&quot;}}"
data-bg-effect-name="" data-is-svg="false" data-is-svg-mask="false"
data-image-zoomed="" data-has-ssr-src="true"><img
src="https://static.wixstatic.com/media/9da2c5_b840c835b6f74327b9b75907f3e33c0d~mv2.png/v1/fill/w_180,h_135,al_c,usm_0.66_1.00_0.01,blur_2,enc_auto/mm1.png"
alt="mm1.png"
style="width:600px;height:449px;object-fit:cover;object-position:50%
50%"/></wix-image>

The *actual* intended picture can be accessed at
https://static.wixstatic.com/media/9da2c5_b840c835b6f74327b9b75907f3e33c0d~mv2.png
although since they seem to be over a megabyte each, I suppose one
should perhaps be grateful that the page isn't loading all seventy-odd
of them....

--
Harriet Bazley == Loyaulte me lie ==

Joseph Stalin's grave was a Communist Plot.
_______________________________________________
netsurf-users mailing list -- netsurf-users@netsurf-browser.org
To unsubscribe send an email to netsurf-users-leave@netsurf-browser.org

[gccsdk] GCC 4.7.4 Rel 6: Wrong --version

Using --version with the utilities in !GCC.bin reports Release 5, rather
than Release 6.

Regards
Duncan Moore

gcc (GCCSDK GCC 4.7.4 Release 6) 4.7.4
SharedUnixLibrary 1.16
VirtualRPC-AdjustSA RISC OS 4.39
RPCEmu 0.9.3 RISC OS 5.24


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

[gccsdk] GCC 4.7.4 Rel 6: SO Manager memory leak

The following programs cause the 'SO Manager' dynamic area to increase
to 1MB, and then fail with an error.
This happens on both VRPC and RPCEmu.

*Type c.true
int main(void) {return 0;}

*gcc -static -std=gnu11 true.c -o true

*Type c.err_SOM
#include <stdio.h>
#include <stdlib.h>
int main(void) {
  for (int i=0;;++i) {
    if ((i&0x7F)==0) printf("%i\n",i);
    if (system("true")!=0) return 1; // Failure.
  }
  return 0;
}

*gcc -static -std=gnu11 err_SOM.c -o err_SOM

*err_SOM
0
128
256
384
512
640
768
There is not enough memory to perform this operation.
Quit any unwanted applications or see the RISC OS User Guide for ways to
maximise memory.
(Memory cannot be moved)

After this, any ELF commands give the same error message.

Regards
Duncan Moore

gcc (GCCSDK GCC 4.7.4 Release 6) 4.7.4
SharedUnixLibrary 1.16
VirtualRPC-AdjustSA RISC OS 4.39
RPCEmu 0.9.3 RISC OS 5.24


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK