Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

From Sharp minds come... pointed heads. -- Bryan Sparrowhawk


devel / comp.lang.javascript / Re: Select in one device but view on another

SubjectAuthor
* Select in one device but view on anotherAndrew Poulos
+- Re: Select in one device but view on anotherJJ
+* Re: Select in one device but view on anotherJon Ribbens
|`* Re: Select in one device but view on anotherAndrew Poulos
| `- Re: Select in one device but view on anotherMichael Haufe (TNO)
`* Re: Select in one device but view on anotherThomas 'PointedEars' Lahn
 `* Re: Select in one device but view on anotherThomas 'PointedEars' Lahn
  `* Re: Select in one device but view on anotherAndrew Poulos
   `* Re: Select in one device but view on anotherThomas 'PointedEars' Lahn
    `- Re: Select in one device but view on anotherAndrew Poulos

1
Select in one device but view on another

<Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17169&group=comp.lang.javascript#17169

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 07 Jul 2021 17:51:12 -0500
Newsgroups: comp.lang.javascript
X-Mozilla-News-Host: news://news.iinet.net.au:119
From: ap_prog@hotmail.com (Andrew Poulos)
Subject: Select in one device but view on another
Date: Thu, 8 Jul 2021 08:51:11 +1000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-AU
Content-Transfer-Encoding: 7bit
Message-ID: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
Lines: 24
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 203.219.145.102
X-Trace: sv3-1dshZwNeAI/vHkHqj5zZsqyP0F012F+h4icl2zEm1UBifjH74n9ejlDJh4SSfI6/3yjsO/FCiMd6xVM!0dKghawzzY3gn8aXzY36cZEBxY9TuC9WbB4aB46DF04n5HStACdxfEUndd5gmf/kEKu+/cPRUmbS!BMPJL2QSCKSOiP5p3uN9xOc=
X-Complaints-To: abuse@westnet.com.au
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2230
 by: Andrew Poulos - Wed, 7 Jul 2021 22:51 UTC

There's an elearning web page I'm working on. It generates a quiz (as a
collection of a HTML page, JavaScript, and images) that gets downloaded.

The quiz needs to be responsive ie also run well on a phone.

Within the elearning page there's a button which will generate a live
version of the quiz for testing purposes.

I work with a desktop computer to test the quiz on a phone I have to
either download the quiz, upload it to a server or to run the elearning
page on a phone and then launch the test from there.

I was wondering if there's a way I can work on a desktop computer but
more easily test on a phone. I have a library that can create valid QR
codes that my phone can read and thought that it might be useful.

Alas I can't really see how I can view a website on one device and have
the output display on another. Perhaps if you click a button in the
elearning page it creates a file on the server (which is the HTML for
the quiz) and a QR code for that page?

Does anyone have any ideas on this?

Andrew Poulos

Re: Select in one device but view on another

<16q4wtxqvb92j$.o0kpxq5e0yhp.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17170&group=comp.lang.javascript#17170

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!gGLsN5MUWSH9/583YumYHQ.user.gioia.aioe.org.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: comp.lang.javascript
Subject: Re: Select in one device but view on another
Date: Thu, 8 Jul 2021 06:04:00 +0700
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <16q4wtxqvb92j$.o0kpxq5e0yhp.dlg@40tude.net>
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
NNTP-Posting-Host: gGLsN5MUWSH9/583YumYHQ.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: 40tude_Dialog/2.0.15.84
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Notice: Filtered by postfilter v. 0.9.2
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Wed, 7 Jul 2021 23:04 UTC

On Thu, 8 Jul 2021 08:51:11 +1000, Andrew Poulos wrote:
> There's an elearning web page I'm working on. It generates a quiz (as a
> collection of a HTML page, JavaScript, and images) that gets downloaded.
>
> The quiz needs to be responsive ie also run well on a phone.
>
> Within the elearning page there's a button which will generate a live
> version of the quiz for testing purposes.
>
> I work with a desktop computer to test the quiz on a phone I have to
> either download the quiz, upload it to a server or to run the elearning
> page on a phone and then launch the test from there.
>
> I was wondering if there's a way I can work on a desktop computer but
> more easily test on a phone. I have a library that can create valid QR
> codes that my phone can read and thought that it might be useful.
>
> Alas I can't really see how I can view a website on one device and have
> the output display on another. Perhaps if you click a button in the
> elearning page it creates a file on the server (which is the HTML for
> the quiz) and a QR code for that page?
>
> Does anyone have any ideas on this?
>
> Andrew Poulos

I don't think this can be solved using JavaScript.

Re: Select in one device but view on another

<slrnsecd1v.5f1.jon+usenet@raven.unequivocal.eu>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17171&group=comp.lang.javascript#17171

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jon+usenet@unequivocal.eu (Jon Ribbens)
Newsgroups: comp.lang.javascript
Subject: Re: Select in one device but view on another
Date: Wed, 7 Jul 2021 23:09:51 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <slrnsecd1v.5f1.jon+usenet@raven.unequivocal.eu>
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
Injection-Date: Wed, 7 Jul 2021 23:09:51 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8af8ced703a0df60af1f9ec0f58892b4";
logging-data="26616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/D61VYnlReRh8Yi8aQfYufuYcWopLSf3M="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:VSP/pzd1qYfFQXagxlI878fI5GE=
 by: Jon Ribbens - Wed, 7 Jul 2021 23:09 UTC

On 2021-07-07, Andrew Poulos <ap_prog@hotmail.com> wrote:
> There's an elearning web page I'm working on. It generates a quiz (as a
> collection of a HTML page, JavaScript, and images) that gets downloaded.
>
> The quiz needs to be responsive ie also run well on a phone.
>
> Within the elearning page there's a button which will generate a live
> version of the quiz for testing purposes.
>
> I work with a desktop computer to test the quiz on a phone I have to
> either download the quiz, upload it to a server or to run the elearning
> page on a phone and then launch the test from there.

On the desktop:
Right click -> Inspect -> Responsive Design Mode

Re: Select in one device but view on another

<fc-dnbaD4Kou9Hv9nZ2dnUU7-fHNnZ2d@westnet.com.au>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17172&group=comp.lang.javascript#17172

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 07 Jul 2021 21:57:54 -0500
Subject: Re: Select in one device but view on another
Newsgroups: comp.lang.javascript
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <slrnsecd1v.5f1.jon+usenet@raven.unequivocal.eu>
From: ap_prog@hotmail.com (Andrew Poulos)
Date: Thu, 8 Jul 2021 12:57:54 +1000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <slrnsecd1v.5f1.jon+usenet@raven.unequivocal.eu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-AU
Content-Transfer-Encoding: 7bit
Message-ID: <fc-dnbaD4Kou9Hv9nZ2dnUU7-fHNnZ2d@westnet.com.au>
Lines: 21
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 203.219.145.102
X-Trace: sv3-PiP4ahTk8BArnMcCEUA2BwQ6g0IiJfF9KGSDD2Gl0Z+eQrum+PZBgG7BE3KBOPgxgT1jIle2nv/hEuN!1nZz2iU0hzSmbo/rAdOMnrr/GBd8WPTTYZvJSbL/FHdnnJCDRSvpowfApHekz0y3iSkEsykGpk0K!lJeN7e5KH2nMw5sariQNmnM=
X-Complaints-To: abuse@westnet.com.au
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2148
 by: Andrew Poulos - Thu, 8 Jul 2021 02:57 UTC

On 8/07/2021 9:09 am, Jon Ribbens wrote:
> On 2021-07-07, Andrew Poulos <ap_prog@hotmail.com> wrote:
>> There's an elearning web page I'm working on. It generates a quiz (as a
>> collection of a HTML page, JavaScript, and images) that gets downloaded.
>>
>> The quiz needs to be responsive ie also run well on a phone.
>>
>> Within the elearning page there's a button which will generate a live
>> version of the quiz for testing purposes.
>>
>> I work with a desktop computer to test the quiz on a phone I have to
>> either download the quiz, upload it to a server or to run the elearning
>> page on a phone and then launch the test from there.
>
> On the desktop:
> Right click -> Inspect -> Responsive Design Mode
>
Ok, but is testing within Chrome is as good as testing on a device that
users are using.

Andrew Poulos

Re: Select in one device but view on another

<a9ad510f-bb3b-46dc-afbe-bb2f7a73bcf5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17174&group=comp.lang.javascript#17174

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:ac8:744d:: with SMTP id h13mr21409044qtr.308.1626039193183;
Sun, 11 Jul 2021 14:33:13 -0700 (PDT)
X-Received: by 2002:aca:4288:: with SMTP id p130mr37321691oia.80.1626039193015;
Sun, 11 Jul 2021 14:33:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sun, 11 Jul 2021 14:33:12 -0700 (PDT)
In-Reply-To: <fc-dnbaD4Kou9Hv9nZ2dnUU7-fHNnZ2d@westnet.com.au>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:63e1:1820:b827:d366:ff10:340f;
posting-account=hYRygAoAAABkmvJVmPilz9Q1TOjgPQAq
NNTP-Posting-Host: 2600:1700:63e1:1820:b827:d366:ff10:340f
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
<slrnsecd1v.5f1.jon+usenet@raven.unequivocal.eu> <fc-dnbaD4Kou9Hv9nZ2dnUU7-fHNnZ2d@westnet.com.au>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a9ad510f-bb3b-46dc-afbe-bb2f7a73bcf5n@googlegroups.com>
Subject: Re: Select in one device but view on another
From: tno@thenewobjective.com (Michael Haufe (TNO))
Injection-Date: Sun, 11 Jul 2021 21:33:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Michael Haufe (TNO) - Sun, 11 Jul 2021 21:33 UTC

On Wednesday, July 7, 2021 at 9:58:05 PM UTC-5, Andrew Poulos wrote:
> On 8/07/2021 9:09 am, Jon Ribbens wrote:

> > On the desktop:
> > Right click -> Inspect -> Responsive Design Mode
> >
> Ok, but is testing within Chrome is as good as testing on a device that
> users are using.

If you are using basic standards compliant stuff in your webpage and not bleeding edge technologies it's probably fine.

If you want to test things like orientation of the phone in 3d space or some service-worker stuff you might have some challenges.

Re: Select in one device but view on another

<1936879.oMNUckLgyt@PointedEars.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17176&group=comp.lang.javascript#17176

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.178.197.196.134!not-for-mail
From: PointedEars@web.de (Thomas 'PointedEars' Lahn)
Newsgroups: comp.lang.javascript
Subject: Re: Select in one device but view on another
Date: Wed, 14 Jul 2021 02:28:27 +0200
Organization: PointedEars Software (PES)
Lines: 72
Message-ID: <1936879.oMNUckLgyt@PointedEars.de>
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
Reply-To: Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8Bit
Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.196.134";
logging-data="23387"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: KNode/4.14.10
Cancel-Lock: sha1:WVX/CfMWES8dWzM3hrcT7ilfM10=
X-User-ID: U2FsdGVkX18Zp00olI4OGpqqSyxJ3joCQeNq/I+kAp3opTsbgj9U+A==
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
 by: Thomas 'Pointed - Wed, 14 Jul 2021 00:28 UTC

Andrew Poulos wrote:

> There's an elearning web page I'm working on. It generates a quiz (as a
> collection of a HTML page, JavaScript, and images) that gets downloaded.

This can be easily be tampered with.
> The quiz needs to be responsive ie also run well on a phone.

OK.
> Within the elearning page there's a button which will generate a live
> version of the quiz for testing purposes.

Meaning?
> I work with a desktop computer to test the quiz on a phone I have to
> either download the quiz, upload it to a server or to run the elearning
--------------------------^
> page on a phone and then launch the test from there.

Parse error.
> I was wondering if there's a way I can work on a desktop computer but
> more easily test on a phone.

Set up a Web server either A) on the desktop computer or B) on another
computer that acts as a remote server that can be accessed with the desktop
computer and the mobile phone alike. In case B you will also have to
synchronize your code with the remote server; special possibilities include
opening files on the server in your IDE via SSH, in which case the
synchronization is implicit.

I am occasionally using case A: I am using my mobile phone as an Internet
modem for my laptop (i.e. I am using mobile tethering via WLAN), which also
means that the phone and the laptop are in the same network. I can
therefore use the IP address assigned to the laptop’s WLAN adapter (by the
mobile phone) to access Web sites on the local (development) Web server on
the laptop from the mobile phone. I had to configure the Web server so that
it reacts to that IP address which, fortunately, appears to be static (maybe
it is based on the MAC address of the WLAN adapter of the laptop):

$ head /etc/apache2/sites-available/local
ServerName localhost
ServerAlias 127.0.0.1
[…]

# home
[…]
ServerAlias 192.168.x.y

whereas the latter address is IPv4 address assigned to my laptop’s WLAN
adapter.

> I have a library that can create valid QR
> codes that my phone can read and thought that it might be useful.

QR codes for what?
> Alas I can't really see how I can view a website on one device and have
> the output display on another.

That is something else than you have asked above.

> Does anyone have any ideas on this?

<http://www.catb.org/~esr/faqs/smart-questions.html>

--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Re: Select in one device but view on another

<2588613.mvXUDI8C0e@PointedEars.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17177&group=comp.lang.javascript#17177

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.178.197.196.134!not-for-mail
From: PointedEars@web.de (Thomas 'PointedEars' Lahn)
Newsgroups: comp.lang.javascript
Subject: Re: Select in one device but view on another
Date: Wed, 14 Jul 2021 02:53:28 +0200
Organization: PointedEars Software (PES)
Lines: 46
Message-ID: <2588613.mvXUDI8C0e@PointedEars.de>
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <1936879.oMNUckLgyt@PointedEars.de>
Reply-To: Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8Bit
Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.196.134";
logging-data="26356"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: KNode/4.14.10
Cancel-Lock: sha1:PJBwMQjS9jh9ixlT97aA2HrBykM=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-User-ID: U2FsdGVkX18gLwXjUS3/vJWjTyVHRTlGLPPaXUhD0bCcFI2AsRkqUQ==
X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
 by: Thomas 'Pointed - Wed, 14 Jul 2021 00:53 UTC

Thomas 'PointedEars' Lahn wrote:

> I am occasionally using case A: I am using my mobile phone as an Internet
> modem for my laptop (i.e. I am using mobile tethering via WLAN), which
> also
> means that the phone and the laptop are in the same network. I can
> therefore use the IP address assigned to the laptop’s WLAN adapter (by the
> mobile phone) to access Web sites on the local (development) Web server on
> the laptop from the mobile phone. I had to configure the Web server so
> that it reacts to that IP address which, fortunately, appears to be static
> (maybe it is based on the MAC address of the WLAN adapter of the laptop):
>
> $ head /etc/apache2/sites-available/local
> ServerName localhost
> ServerAlias 127.0.0.1
> […]
>
> # home
> […]
> ServerAlias 192.168.x.y
>
> whereas the latter address is IPv4 address assigned to my laptop’s WLAN
> adapter.

Correction: This directive was for another use-case. Apparently the only
directive that is required for case A, is the “Allow” directive below:

<Directory "$DOCUMENT_ROOT">
[…]
Order deny,allow
Deny from all
[…]
# WLAN (Android)
[…]
Allow from 192.168.43
</Directory>

whereas $DOCUMENT_ROOT is the document root of this virtual Apache host, and
192.168.43.0/24 is the subnet that is used by my mobile phone when it is
used for tethering. (I do not find any other configuration file where “.43”
occurs.)
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Re: Select in one device but view on another

<s6SdneznXO9w73P9nZ2dnUU7-XHNnZ2d@westnet.com.au>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17178&group=comp.lang.javascript#17178

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 14 Jul 2021 00:15:24 -0500
Subject: Re: Select in one device but view on another
Newsgroups: comp.lang.javascript
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au>
<1936879.oMNUckLgyt@PointedEars.de> <2588613.mvXUDI8C0e@PointedEars.de>
From: ap_prog@hotmail.com (Andrew Poulos)
Date: Wed, 14 Jul 2021 15:15:23 +1000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <2588613.mvXUDI8C0e@PointedEars.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-AU
Content-Transfer-Encoding: 8bit
Message-ID: <s6SdneznXO9w73P9nZ2dnUU7-XHNnZ2d@westnet.com.au>
Lines: 47
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 203.219.145.102
X-Trace: sv3-LBf6BshpNzDYUwCMuc7ESDLsgCofA/Ak7Kp5lkz/zDS0EdEotiOxCTNXTwuSqA6oGrBI0XjtypFjbeR!BLWvxEKoCUFWqE/rBXR2Lxf7XsR6lwWMyClrYFpS9R4YJVB+lDi3O7m8osJXLu84HSul2Izwi/QE!EZC6WfqyDa0DCQkBE+qTQtg=
X-Complaints-To: abuse@westnet.com.au
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2953
 by: Andrew Poulos - Wed, 14 Jul 2021 05:15 UTC

On 14/07/2021 10:53 am, Thomas 'PointedEars' Lahn wrote:
> Thomas 'PointedEars' Lahn wrote:
>
>> I am occasionally using case A: I am using my mobile phone as an Internet
>> modem for my laptop (i.e. I am using mobile tethering via WLAN), which
>> also
>> means that the phone and the laptop are in the same network. I can
>> therefore use the IP address assigned to the laptop’s WLAN adapter (by the
>> mobile phone) to access Web sites on the local (development) Web server on
>> the laptop from the mobile phone. I had to configure the Web server so
>> that it reacts to that IP address which, fortunately, appears to be static
>> (maybe it is based on the MAC address of the WLAN adapter of the laptop):
>>
>> $ head /etc/apache2/sites-available/local
>> ServerName localhost
>> ServerAlias 127.0.0.1
>> […]
>>
>> # home
>> […]
>> ServerAlias 192.168.x.y
>>
>> whereas the latter address is IPv4 address assigned to my laptop’s WLAN
>> adapter.
>
> Correction: This directive was for another use-case. Apparently the only
> directive that is required for case A, is the “Allow” directive below:
>
> <Directory "$DOCUMENT_ROOT">
> […]
> Order deny,allow
> Deny from all
> […]
> # WLAN (Android)
> […]
> Allow from 192.168.43
> </Directory>
>
> whereas $DOCUMENT_ROOT is the document root of this virtual Apache host, and
> 192.168.43.0/24 is the subnet that is used by my mobile phone when it is
> used for tethering. (I do not find any other configuration file where “.43”
> occurs.)

Thanks.

Andrew Poulos

Re: Select in one device but view on another

<2590997.mvXUDI8C0e@PointedEars.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17179&group=comp.lang.javascript#17179

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!.POSTED.178.197.212.78!not-for-mail
From: PointedEars@web.de (Thomas 'PointedEars' Lahn)
Newsgroups: comp.lang.javascript
Subject: Re: Select in one device but view on another
Date: Wed, 14 Jul 2021 23:19:58 +0200
Organization: PointedEars Software (PES)
Lines: 15
Message-ID: <2590997.mvXUDI8C0e@PointedEars.de>
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <1936879.oMNUckLgyt@PointedEars.de> <2588613.mvXUDI8C0e@PointedEars.de> <s6SdneznXO9w73P9nZ2dnUU7-XHNnZ2d@westnet.com.au>
Reply-To: Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
Injection-Info: gwaiyur.mb-net.net; posting-host="178.197.212.78";
logging-data="5800"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: KNode/4.14.10
Cancel-Lock: sha1:d/Ss2Py/CsQsvKgugriLNO76Ess=
X-User-ID: U2FsdGVkX18SANL0w9kHVemq4mmkYCJ0alwgvWxyOo3VP3c/VaoS0g==
X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
 by: Thomas 'Pointed - Wed, 14 Jul 2021 21:19 UTC

Andrew Poulos wrote:

> On 14/07/2021 10:53 am, Thomas 'PointedEars' Lahn wrote:
>> [a fracking lot]
>
> Thanks.

Seriously, that is all that you have to say? What about the effort that I
put in to understand what you meant, the question that *I* asked? You do
not inspire people to help you again with this behaviour. :-(

--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Re: Select in one device but view on another

<pf-dnaSFvqdX8XL9nZ2dnUU7-SnNnZ2d@westnet.com.au>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17180&group=comp.lang.javascript#17180

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 14 Jul 2021 18:01:30 -0500
From: ap_prog@hotmail.com (Andrew Poulos)
Subject: Re: Select in one device but view on another
Newsgroups: comp.lang.javascript
References: <Wr-dnVJw-NB9snv9nZ2dnUU7-c3NnZ2d@westnet.com.au> <1936879.oMNUckLgyt@PointedEars.de> <2588613.mvXUDI8C0e@PointedEars.de> <s6SdneznXO9w73P9nZ2dnUU7-XHNnZ2d@westnet.com.au> <2590997.mvXUDI8C0e@PointedEars.de>
X-Mozilla-News-Host: news://news.iinet.net.au
Date: Thu, 15 Jul 2021 09:01:27 +1000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <2590997.mvXUDI8C0e@PointedEars.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-AU
Content-Transfer-Encoding: 7bit
Message-ID: <pf-dnaSFvqdX8XL9nZ2dnUU7-SnNnZ2d@westnet.com.au>
Lines: 44
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 203.219.145.102
X-Trace: sv3-naNHRjAsexzCwiyDm6oFDLn9XM3ITQjaj1Ujj2GaxM4BwH2CCICh17M/TksnwMF8MVkM9g9oH0fE4Y7!GglfFKom79YxETAedqNQhJ/fWgiqk35hgzpPPB1DEu8GgFj849BQ1b1i9LN6PApeDxCad960mSVb!V1IVMeh3HOn8qzxscDDnDsU=
X-Complaints-To: abuse@westnet.com.au
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3166
 by: Andrew Poulos - Wed, 14 Jul 2021 23:01 UTC

On 15/07/2021 7:19 am, Thomas 'PointedEars' Lahn wrote:
> Andrew Poulos wrote:
>
>> On 14/07/2021 10:53 am, Thomas 'PointedEars' Lahn wrote:
>>> [a fracking lot]
>>
>> Thanks.
>
> Seriously, that is all that you have to say? What about the effort that I
> put in to understand what you meant, the question that *I* asked? You do
> not inspire people to help you again with this behaviour. :-(

I'm on Windows and the local web server is IIS. I couldn't do the Apache
directives. Instead I gave IIS a "faux" certificate to allow me to use
https though connecting to it from another device on the same network
still meant working through the normal lot of security warnings.

Although the media (images, video, audio...) associated with a generated
quiz must always exist on the server the actual control part of the quiz
only gets generated when the quiz is "published" (in which case the HTML
and associated scripts are written to the server) or when I'm testing
locally (in which case the HTML and associated scripts exist in memory).

I couldn't work out how to access the test version from a separate
device so when I tested locally I wrote the "in memory" files to the server.

Then I generated a QR code to the test version which I printed and
scanned with whatever mobile device I wanted to test with.

The same thing "worked" on the production IIS server.

The downsides are:
- I need to write the files to the server each time I make a change to
the quiz.
- If the files don't eventually get deleted it's possible that some
student will find them and do the test without any tracking.

Sorry if you expected more from my response.

Andrew Poulos


devel / comp.lang.javascript / Re: Select in one device but view on another

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor