Frozen PilBox

2023-11-08 Thread Shaughan Lavine
The cache needs to cleared for a new style to take effect. Is that a bug?



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Frozen PilBox

2023-11-08 Thread Shaughan Lavine
Oops! I meant to say that it only appears in (global) lib.css.


–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Frozen PilBox

2023-11-08 Thread Shaughan Lavine
A!ex–
Some other weirdness:
I change test/App.l to
--
"Test"

(menu "Test!"
   ( "h1Style" "Test!") )
--
and add App.l
--
h1Style {
   color: green;
}

and, guess what? Green, as expected.
But I edit lib.css to
--
h1Style {
   color: red;
}
--
the color remains green!
The word "green" afaict appears in no other files loaded in PilBox except 
App.l. I'm very confused.



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Frozen Pilbox

2023-11-08 Thread Shaughan Lavine
Yeah, I'm pretty curious too. The zip opens fine in at least one other App. 
I've attached it. Maybe you will see something. I used termux-share to load 
hello.zip and then edited that into the test app. The result works fine.



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Wednesday, November 8th, 2023 at 11:20 AM, Alexander Burger 
 wrote:


> On Wed, Nov 08, 2023 at 07:06:59PM +, Shaughan Lavine wrote:
>
> > "termux-share test.zip" once again froze everything. "termux-share 
> > hello.zip"
> > worked fine. I'm stumped by that, but I'm going back to what I was doing
> > before—with better backups.
>
>
> I'd really like to know the reason. Is the ZIP damaged? Or is it the name 
> "test"
> which conflicts somehow?
>
> ☺/ A!ex
>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe<>


Re: Frozen Pilbox

2023-11-08 Thread Shaughan Lavine
A!ex–
"termux-share test.zip" once again froze everything. "termux-share hello.zip" 
worked fine. I'm stumped by that, but I'm going back to what I was doing 
before—with better backups.
–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Tuesday, November 7th, 2023 at 11:21 PM, Alexander Burger 
 wrote:


> On Tue, Nov 07, 2023 at 10:07:12PM +, Shaughan Lavine wrote:
> 
> > I'll most certainly wait till tomorrow and see if updating does the job

Re: Frozen Pilbox

2023-11-08 Thread Shaughan Lavine
The update did nothing, so I uninstalled then reinstalled, and, lo and behold, 
my main app was still there, with only two days worth of data missing. The 
hello app, which was installed, and the test app I was installing are nowhere 
to be seen. I don't understand how this is possible—I thought un/re-installing 
would delete everything—but I'll take it. Thanks for all your help.



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Tuesday, November 7th, 2023 at 11:21 PM, Alexander Burger 
 wrote:


> On Tue, Nov 07, 2023 at 10:07:12PM +, Shaughan Lavine wrote:
> 
> > I'll most certainly wait till tomorrow and see if updating does the job

Re: Frozen Pilbox

2023-11-07 Thread Shaughan Lavine
A!ex–
I'll most certainly wait till tomorrow and see if updating does the job. I 
would have tried that earlier, but I don't know how to force a reinstall. I 
frequently copy everything into the PilBox /storage/emulated/0/… directory. I 
can see files in there with Total Commander, and I have full access to those 
with permission 660. Unfortunately for present purposes the default is 600.



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Tuesday, November 7th, 2023 at 1:48 PM, Alexander Burger 
 wrote:


> Hi Shaughan,
> 
> > Ah well, unless you have any further suggestions, lesson learned. I'll only
> > lose 12 days of data, and I'll fix permissions so it won't happen again

Re: Frozen Pilbox

2023-11-07 Thread Shaughan Lavine
No joy: pty never connects, termux-share times out with a "PilBox is not 
responding" toast, and adb doesn't give access to system files. Your detailed 
instructions for replacing App.l, for all that it didn't work, were very 
helpful. I would have had to find the url, then unpacked everything to find the 
file. And copy and pasting is much easier than typing on a phone.
Ah well, unless you have any further suggestions, lesson learned. I'll only 
lose 12 days of data, and I'll fix permissions so it won't happen again.
For want of a permission, the data was lost, and all for the wane of a chmod 
660 


–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Monday, November 6th, 2023 at 11:45 PM, Alexander Burger 
 wrote:


> On Tue, Nov 07, 2023 at 07:15:07AM +, Shaughan Lavine wrote:
> 
> > ~ $ unzip -l storage/shared/Download/test.zip
> > Archive: storage/shared/Download/test.zip
> > Length Date Time Name
> > - -- - 
> > 0 2023-11-06 16:27 test/
> > 56 2023-11-06 16:28 test/App.l
> > ...
> > --
> > "Test"
> > 
> > (menu "Test"
> > ( "center fh" "Test!") )
> > --
> 
> 
> This looks all perfectly correct.
> 
> > I can't use bin/pty, since pilbox isn't starting properly. I tried, but it 
> > just times out.
> 
> 
> Then perhaps somehow the file "App.l" in the PilBox home directory (i.e. the
> PilBox app itself) got overwritten?
> 
> You could try to restore "App.l", by extracting it from the sources.
> 
> You probably know, but for the records:
> 
> $ curl -O https://software-lab.de/PilBox.tgz
> $ tar xfz PilBox.tgz PilBox/assets/run/App.l
> $ cd PilBox/assets/run/
> $ zip -r a.zip App.l
> $ termux-share a.zip
> 
> Let's hope ;)
> 
> ☺/ A!ex
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Frozen Pilbox

2023-11-06 Thread Shaughan Lavine
Thanks! I'll try that in the morning. A related question:
Would it have been ok to just create the test directory (!mkdir test), copy 
App.l into it, and add PIL-test? I would find that simpler than the zip then 
share dance.

–Shaughan openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c If I replace all 
the old parts in my PC with new ones, will it turn into a Greek ship? 
https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts
 …if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade. "Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3. "I 
do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance." Paul Krugman, "The theory of 
interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade If war was 
arithmetic, mathematicians would rule the world. Littlefinger, _Game of 
Thrones, Season 2, Episode 4 Not everybody benefits from a misspent youth. 
Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28. 
Sent from ProtonMail, encrypted email based in Switzerland.

Sent from Proton Mail mobile

 Original Message 
On Nov 6, 2023, 10:51 PM, Alexander Burger wrote:

> On Tue, Nov 07, 2023 at 07:28:27AM +0100, Alexander Burger wrote: > The 
> easiest fix is connecting via 'bin/pty' to a REPL and doing "rm -r test/". 
> This was not completely correct. Of course it is : (call "rm" "-r" "test/") 
> Just in case you have not enabled PTY yet: As you cannot use the built-in 
> REPL of PilBox now, you can upload the necessary ".pty" file also via zip. 
> E.g. on Termux: $ cd $ vi .pty $ zip -r x.zip .pty $ termux-share x.zip $ 
> pil21/bin/pty ☺/ A!ex -- UNSUBSCRIBE: 
> mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Frozen Pilbox

2023-11-06 Thread Shaughan Lavine
A!ex–
Thanks, as always, for your rapid reply.
~ $ unzip -l storage/shared/Download/test.zip
Archive: storage/shared/Download/test.zip
Length Date Time Name
- -- - 
0 2023-11-06 16:27 test/
56 2023-11-06 16:28 test/App.l
- ---
56 2 files
--
App.l
--
"Test"

(menu "Test"
( "center fh" "Test!") )
--
I can't use bin/pty, since pilbox isn't starting properly. I tried, but it just 
times out. I'm going to see what I can do with adb in the morning.

Best,
Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c If I replace all the old 
parts in my PC with new ones, will it turn into a Greek ship? 
https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts
 …if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade. "Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3. "I 
do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance." Paul Krugman, "The theory of 
interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade If war was 
arithmetic, mathematicians would rule the world. Littlefinger, _Game of 
Thrones, Season 2, Episode 4 Not everybody benefits from a misspent youth. 
Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28. 
Sent from ProtonMail, encrypted email based in Switzerland.

Sent from Proton Mail mobile

 Original Message 
On Nov 6, 2023, 10:28 PM, Alexander Burger wrote:

> Hi Shaughan, > I created a copy of the Hello World example, changed "Hello 
> World" to "Test" > everywhere placed in a folder named "test", zipped it, 
> then used Termux to share > it with Pilbox. This sounds all correct. > > 
> Pilbox now displays as a completely black screen with the logo in the middle, 
> > and does nothing. I cleared the cache, force stopped the app, ano rebooted. 
> No > change. I have lots of data in another app within Pilbox, so I can't 
> just > reinstall. Any suggestions? I can provide further details of other 
> things I had > done before, but I don't know whether it would be relevant. 
> Android 13. What might be wrong with the ZIP? Does it contain just one single 
> file named "App.l"? If so, nothing else in PilBox should be overwritten, and 
> the problem can be only in the first line of that file, because nothing else 
> is read at PilBox startup. Can you post the output of "unzip -l test.zip" and 
> the content of "App.l"? Attaching the whole ZIP to a mail here is probably 
> not a good idea due to spam filtering. The easiest fix is connecting via 
> 'bin/pty' to a REPL and doing "rm -r test/". ☺/ A!ex -- UNSUBSCRIBE: 
> mailto:picolisp@software-lab.de?subject=Unsubscribe

Frozen Pilbox

2023-11-06 Thread Shaughan Lavine
Help! I created a copy of the Hello World example, changed "Hello World" to 
"Test" everywhere placed in a folder named "test", zipped it, then used Termux 
to share it with Pilbox. Pilbox now displays as a completely black screen with 
the logo in the middle, and does nothing. I cleared the cache, force stopped 
the app, ano rebooted. No change. I have lots of data in another app within 
Pilbox, so I can't just reinstall. Any suggestions? I can provide further 
details of other things I had done before, but I don't know whether it would be 
relevant. Android 13.



–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Pilbox, view html

2023-11-05 Thread Shaughan Lavine
A!ex–
Thanks! That's perfect. Convenience isn't really an issue, since I only want it 
for occasional debugging.

–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts


…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.


"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade


If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4


Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.


Sent from ProtonMail, encrypted email based in Switzerland.


On Sunday, November 5th, 2023 at 9:26 AM, Alexander Burger 
 wrote:


> Hi Shaughan,
> 
> > Is there a way to view the generated html within pilbox?
> 
> 
> Yes, though a bit tricky, as this is not built-in.
> 
> 
> Get a PTY (pseudo TTY) to the REPL in your PilBox, as described in:
> 
> https://picolisp-explored.com/mobile-app-development-in-picolisp-v-getting-a-remote-shell-to-your-pc
> 
> 
> Then temporarily modify the 'http' function in-memory (without actually
> modifying the source code!!):
> 
> : (v http)
> 
> Move down to line 49
> 
> (out *HtSock
> 
> change it to e.g.
> 
> (out "src.html"
> 
> and type
> 
> :w
> 
> Now 'http' is modified in-memory. No need to exit Vip yet.
> 
> 
> In the PILBox GUI, click on something where you want to see the source. As the
> output is written to the file instead of the WebView component, you will see 
> no
> reaction at all in the GUI.
> 
> 
> Now, in Vip in the PTY REPL, undo the change by typing "u" twice, an exit Vip
> with
> 
> :x
> 
> Now the PilBox GUI works normally again.
> 
> 
> You can look at the generated file with
> 
> : (vi "src.html")
> 
> 
> or get it to the shell (Termux or PC) where you started 'pty' from
> 
> : (pbGet "src.html")
> 
> 
> This is just a quick shot, a prove of concept. The whole process could 
> probably
> be made more convenient.
> 
> ☺/ A!ex
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Pilbox, view html

2023-11-05 Thread Shaughan Lavine
Is there a way to view the generated html within pilbox?

–Shaughan

openpgp4fpr:c04203ea8983566aed3848a33e06c22a1841ba3c

If I replace all the old parts in my PC with new ones, will it turn into a 
Greek ship?

https://www.reddit.com/r/shittyaskscience/comments/4wni7d/if_i_replace_all_the_old_parts_in_my_pc_with_new/?ref=search_posts

…if you're just gonna end up in Arizona, then being dead isn't that much of a 
downgrade.

"Darlene, Mr. Robot, eps2.1k3rnel-pan1c.ksd, season 2, episode 3.

"I do not pretend here to develop a theory which is _universally_ valid, but it 
may at least have some galactic relevance."

Paul Krugman, "The theory of interstellar trade," 1978, p. 2. 
http://fermatslibrary.com/s/the-theory-of-interstellar-trade

If war was arithmetic, mathematicians would rule the world.

Littlefinger, _Game of Thrones, Season 2, Episode 4

Not everybody benefits from a misspent youth.

Thomas Pynchon, _Bleeding Edge: A Novel_ (Penguin, New York, 2013) Chapter 28.

Sent from ProtonMail, encrypted email based in Switzerland.

On Friday, October 27th, 2023 at 5:44 AM, Max  wrote:

>

Re: PicoLisp REPL on Twitter

2022-04-19 Thread Shaughan Lavine
Mastodon ( https://joinmastodon.org ), a federated system similar to Twitter, 
would make this possible: even if no current server would allow it, Mastodon 
can be self-hosted. Users are primarily technologically sophisticated, so it 
would probably stir up some interest.

Shaughan

Sent from ProtonMail mobile

 Original Message 
On Apr 19, 2022, 9:28 AM, Alexander Burger wrote:

> On Tue, Apr 19, 2022 at 05:45:30PM +0200, Christophe Gragnic wrote:
>> > I wanted to do that, but Mr. Twitter did not allow me to install a PicoLisp
>> > sandbox on his server.
>>
>> I guess you could still watch for tweets sent to this account and make
>> it post a reply.
>
> Yes, but nearly impossible to get it safe.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: strong language for blockchain

2021-05-21 Thread Shaughan Lavine
SJain–
A small addition to Beneroth: It is never a good idea to write your own 
implementations of encryption algorithms if that can be avoided: it is safer to 
use publically available code used by and checked by many others. Picolisp has 
good interfaces to various libraries, which makes that straightforward.
Shaughan

Sent from ProtonMail mobile

 Original Message 
On May 21, 2021, 10:44 AM, wrote:

> Hi SJain
>
> There is no meaningful difference. It doesn't matter if you have a write-able 
> text file or a write-able binary - yes of course text is easier to edit than 
> binary, but that is security by obscurity at best (which is not security).
> All meaningful cryptographic algorithms are designed to not be weak even if 
> you know everything about the running system - except the encryption 
> keys/parameters, that is. Algorithms which derive their security from an 
> attacker not knowing their inner workings are again basing their hopes on 
> security by obscurity, which is an illusion.
>
> You talk about the security of a running system. If a malicious actor has 
> access on a system, be it with an account which has more permission rights 
> than it should have (or ways to break out of those restrictions), or even 
> physical access, then nothing can stop an determined attacker. You already 
> lost when the attacker obtained this level of access and you cannot trust the 
> system anymore (= you should wipe and re-install it).
>
> A main problem with crypto is not weaknesses in the algorithms (though such 
> are hard to find, and sometimes only found by mathematicians after many years 
> of analysis), but often implementations have mistakes or the programmer 
> didn't understand the use of the algorithm correctly and missed some 
> fundamental detail. A language which makes understanding of the 
> implementation easier to grasp through having less language concepts, shorter 
> code to read and understand, and less "accidental complexity" (complexity 
> stemming from the implementation and not the task, e.g. manual memory 
> management) will be easier to check for implementation mistakes and easier to 
> correct them. So from that aspect, I think PicoLisp is probably better fitted 
> than a complex C++ implementation with a lot of accidental additional 
> complexity.
>
> Another aspect is, that cryptographic computation is mostly numeric 
> computation, and that is not really the strength and intention of PicoLisp. 
> So with that in mind, PicoLisp is not so well suited for crypto calculations, 
> especially if you want to optimize for performance - but not all crypto use 
> cases desire performance, so it depends.
>
> Regarding blockchain.. well the sole purpose of blockchain is to operate a 
> distribute database AND operate it by different people who actively mistrust 
> another. This makes it somewhat suited for crypto currencies like bitcoin, 
> but there is not really any other meaningful application. In nearly all 
> real-world scenarios, people can agree on a single group to be the masters of 
> a database and be trusted. Surely such a system warrants checks and balances, 
> but still you can then setup a central database operated by a single actor, 
> and this has just better performance, lower operating costs, lower 
> maintenance costs, just easier and better in all aspects. We have this with 
> all sorts of systems in private companies and on government levels, and even 
> on international agreed level even when the member parties not trust each 
> other but trust an institute they operate together and keep each each other 
> in check all the time.
>
> So in my humble opinion, any real world application of blockchain technology 
> outside of anti-governmental currency is complete bullshit and usually just a 
> scheme to get money from fashionable investors and computer-illiterate 
> governments. Or a pet project for developers to feel clever about themselves 
> while wasting intelligence and energy on stock market games instead of 
> increasing quality of life for humanity.
>
> Some believe they can do meaningful blockchain applications. I think they're 
> wrong. But even those people are completely dominated by 
> get-rich-quickly-schemers, see this twitter link and it's discussion by 
> insiders:
>
> - https://twitter.com/jonsyu/status/1389635626698297344
>
> - tl;dr: it's all just scammers and inside traders.
> - https://news.ycombinator.com/item?id=27061700
>
> - tl;dr: confirm.
>
> Kind regards,
> - beneroth
>
> On 21.05.21 18:43, SJain wrote:
>
>> There was a mail regarding picoLisp for blockchain. I am No expert in 
>> software, but I would have thought a compiled language with encryption, with 
>> full source code available, would be a more secure application than a 
>> interpreted language, requiring source code in readable and writable text 
>> file, such as picoLisp, despite all it's charm.
>> I would appreciate any thoughts on this.
>> Regards,
>>
>> SJain
>> 

Re: Android permissions

2021-04-12 Thread Shaughan Lavine
Ok. Copy-paste it is. Thanks!

Sent from ProtonMail mobile

 Original Message 
On Apr 12, 2021, 10:49 AM, Alexander Burger wrote:

> Hi Shaughan,
>
>> The following may also temporarily solve the problem, at least for anyone 
>> using
>> Android 10. It is taken from the document you linked:
>>
>> Before your app is fully compatible with scoped storage, you can temporarily 
>> opt
>> out by using the following method:
>> If you target Android 10 (API level 29), set the value of
>> requestLegacyExternalStorage to true in your app's manifest file.
>
> Yes, but in fact requestLegacyExternalStorage *was* set in PilBox in
> AndroidManifest.xml (from versions 132 (21jan21) till 135 (06apr21)).
>
> It seems it did not help much.
>
> But anyway Google allows updates on PlayStore after next August only for apps
> targeting SDK 30 (Android 11), so I needed to go to 30 in 135 :(
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Android permissions

2021-04-12 Thread Shaughan Lavine
Alex–
The following may also temporarily solve the problem, at least for anyone using 
Android 10. It is taken from the document you linked:

Before your app is fully compatible with scoped storage, you can temporarily 
opt out by using the following method:
If you target Android 10 (API level 29), set the value of 
requestLegacyExternalStorage to true in your app's manifest file.

Shaughan

Sent from ProtonMail mobile

 Original Message 
On Apr 11, 2021, 9:32 AM, Alexander Burger wrote:

> Hi Shaughan,
>
>> I have been unable to get files out of PilBox. In an earlier discussions, we
>> tried several things, all of which failed. I think the solution is provided
>> here:
>> wiki.termux.com/wiki/Termux_Google_Play .
>
> This is another problem. Apps targeting API 29 or higher can only execute
> binaries which come *with* the APK, not loaded dynamically at runtime. This is
> of course a show-stopper for Termux, which is all about loading arbitrary
> packets.
>
> And because Google disallows old target SDKs on PlayStore, Termux decided to
> continue on F-Droid as long as possible.
>
> PilBox had this problem too, as it executed bin/picolisp from its home
> directory. I could fix it by providing the binaries as shared libs in the APK
> system directories, and pointing symbolic links to them.
>
> Meanwhile PilBox targets SDK 30, and it runs well.
>
> The problem you have, i.e. accessing files in external directories, is 
> described
> in (as pointed out by Wilhelm Fitzpatrick in January)
>
> https://developer.android.com/training/data-storage/use-cases
>
> must be solved by using "scoped" storage.
>
>> Can someone please try providing a version of PilBox on Fdroid compiled with 
>> target SDK level <= 28?
>
> This would be doable, but could at best be a temporary solution.
>
>> If that works, we can then discuss the best course of action.
>
> I think the right way is to use scoped storage.
>
> I have not deeply investigated it yet, but as far as I understand it we don't
> need any change in PilBox for that. Instead, it should be doable directly in
> PilBox by opening a proper dialog to the user requesting the permission. This
> can be done by calling the Java runtime toolbox.
>
> If anybody finds an example for this in Java or Kotlin, I can translate it to
> Lisp. Probably best in a little stand-alone PilBox App.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Android permissions

2021-04-12 Thread Shaughan Lavine
Alex–
My previous email about copy–paste didn't say anything about scoped storage 
because I hadn't yet seen your message—my email client suddenly decided to send 
your messages to spam. It took me a bit to notice because it is only you and 
subscribe messages, not the whole list.
I have been under the impression that scoped storage only applied to Android 
11, and I'm running 10. At any rate, from what you say, scoped storage is 
clearly the way to go in future. Nonetheless, copy–paste should serve as a 
quick-and-dirty work-around until scoped storage gets implemented.
Thanks,
Shaughan

Sent from ProtonMail mobile

 Original Message 
On Apr 11, 2021, 9:32 AM, Alexander Burger wrote:

> Hi Shaughan,
>
>> I have been unable to get files out of PilBox. In an earlier discussions, we
>> tried several things, all of which failed. I think the solution is provided
>> here:
>> wiki.termux.com/wiki/Termux_Google_Play .
>
> This is another problem. Apps targeting API 29 or higher can only execute
> binaries which come *with* the APK, not loaded dynamically at runtime. This is
> of course a show-stopper for Termux, which is all about loading arbitrary
> packets.
>
> And because Google disallows old target SDKs on PlayStore, Termux decided to
> continue on F-Droid as long as possible.
>
> PilBox had this problem too, as it executed bin/picolisp from its home
> directory. I could fix it by providing the binaries as shared libs in the APK
> system directories, and pointing symbolic links to them.
>
> Meanwhile PilBox targets SDK 30, and it runs well.
>
> The problem you have, i.e. accessing files in external directories, is 
> described
> in (as pointed out by Wilhelm Fitzpatrick in January)
>
> https://developer.android.com/training/data-storage/use-cases
>
> must be solved by using "scoped" storage.
>
>> Can someone please try providing a version of PilBox on Fdroid compiled with 
>> target SDK level <= 28?
>
> This would be doable, but could at best be a temporary solution.
>
>> If that works, we can then discuss the best course of action.
>
> I think the right way is to use scoped storage.
>
> I have not deeply investigated it yet, but as far as I understand it we don't
> need any change in PilBox for that. Instead, it should be doable directly in
> PilBox by opening a proper dialog to the user requesting the permission. This
> can be done by calling the Java runtime toolbox.
>
> If anybody finds an example for this in Java or Kotlin, I can translate it to
> Lisp. Probably best in a little stand-alone PilBox App.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

PilBox copy-paste

2021-04-12 Thread Shaughan Lavine
Hi all!
I have finally realized that I can get data out of the PilBox app by cat-ing to 
the REPL, then using copy and paste. How can I write to the copy buffer 
programmatically?
Thanks,
Shaughan

Sent from ProtonMail mobile

Android permissions

2021-04-11 Thread Shaughan Lavine
I have been unable to get files out of PilBox. In an earlier discussions, we 
tried several things, all of which failed. I think the solution is provided 
here:
wiki.termux.com/wiki/Termux_Google_Play .
Can someone please try providing a version of PilBox on Fdroid compiled with 
target SDK level <= 28?
If that works, we can then discuss the best course of action.
Thanks,
Shaughan

Sent from ProtonMail mobile

Re: pilbox file sharing

2021-01-21 Thread Shaughan Lavine
Nope.  Thanks fo trying!

Sent from ProtonMail mobile

 Original Message 
On Jan 21, 2021, 12:15 AM, Alexander Burger wrote:

> On Wed, Jan 20, 2021 at 07:28:18AM +0100, Alexander Burger wrote:
>> Strange. So for a first fix, I will set the requestLegacyExternalStorage 
>> flag in
>> AndroidManifest.xml, as suggested by Wilhelm, and releaes a new PilBox.
>
> Done. PilBox 20210121 is now in Play Store.
>
> Can you check if this solves the problem for now?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilbox file sharing

2021-01-19 Thread Shaughan Lavine
Yes, I set the storage permission. This is odd, since it works for you. Termux 
still works for me, but not pilbox. I'm using a Samsung Galaxy Tab S5e. Samsung 
always locks everything down—maybe that's it.

Sent from ProtonMail mobile

 Original Message 
On Jan 18, 2021, 11:21 PM, Alexander Burger wrote:

> Hi Shaughan, Wilhelm,
>
> Hi On Tue, Jan 19, 2021 at 03:49:45AM +, Shaughan Lavine wrote:
>> Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?
>
> Hmm, I do have Android 10 here, and I can access files on external storage 
> with
> PilBox Version 20201231 without problems. (Perhaps a stupid question, but you
> did enable the permission in Settings/Apps/PilBox, right?)
>
> On Mon, Jan 18, 2021 at 08:22:13PM -0800, Wilhelm Fitzpatrick wrote:
>> If you are using the Play Store version, that
>> we might have to lobby Alex to make an update
>> that sets this flag, which he should be able
>
> This would not be a problem.
>
>> to do as long as he has not already set the
>> the target API version of the published app to
>> 30. If a version with target API 30 has
>> already been published then we are past the
>> point of no return.
>
> In the long range, I will not be able te avoid API 30. I cannot bring my
> customers to install from F-Droid, sadly.
>
>> To cooperate with the storage access framework
>> past API 29 is very tricky. Termux recently
>> abandoned their Play Store distributed version
>
> I have not looked at the Scoped Storage API yet. Is it really a problem? The
> PilBox core runtime does not depend on external storage, so the API should be
> accessible from Lisp (with perhaps a slight modification of
> AndroidManifest.xml), no?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: pilbox file sharing

2021-01-18 Thread Shaughan Lavine
Wilhelm–
Yes: Android 10 vs 9. So, how do I get files out of pilbox on Android 10?
Thanks!
Shaughan
Sent from ProtonMail mobile

 Original Message 
On Jan 18, 2021, 7:32 PM, Wilhelm Fitzpatrick wrote:

> Is the one having issues a newer version of Android perhaps (Android 10
> or 11?)
>
> Android has been locking thing down to require use of the Storage Access
> Framework in the most recent version of the OS, I believe.
>
> -wilhelm
>
> On 1/18/21 12:47 PM, Shaughan Lavine wrote:
>> I have two Android devices running pilbox 20201231. On one, access to
>> /storage/emulated/0 works perfectly, but on the other, any attempt to
>> access /storage/emulated/0 (ls, mkdir cat, …) yields "permission
>> denied." Storage permission has been granted. Any ideas?
>> Thanks,
>> Shaughan
>>
>>
>> Sent from ProtonMail mobile
>>
>>
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

pilbox file sharing

2021-01-18 Thread Shaughan Lavine
I have two Android devices running pilbox 20201231. On one, access to 
/storage/emulated/0 works perfectly, but on the other, any attempt to access 
/storage/emulated/0 (ls, mkdir cat, …) yields "permission denied." Storage 
permission has been granted. Any ideas?
Thanks,
Shaughan

Sent from ProtonMail mobile

Re: pilbox

2020-12-09 Thread Shaughan Lavine
Alex–
Doh! Ths was it. I've had pneumonia, hence the long interval. I'm fine now.
Thanks,
Shaughan

Sent from ProtonMail mobile

 Original Message 
On Nov 23, 2020, 10:54 PM, Alexander Burger wrote:

> Hi Shaughan,
>
>> When I install the latest version of Pilbox from the Play Store and run Demo 
>> —> Life, I get
>>
>> (grid 32 32}
>> Undefined
>
> I think this is due to a mismatch between PilBox and the Demo App.
>
> PilBox is now running pil21, and Demo uses the 'simul' library from
> "@lib/simul.l". That library is now in its own namespace
>
> (symbols 'simul 'pico)
>
> and "demo/App.l" calls
>
> (symbols 'demo 'simul 'gis 'android 'pico)
>
> So I think the fix is to also install the latest "demo" release.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

pilbox

2020-11-23 Thread Shaughan Lavine
When I install the latest version of Pilbox from the Play Store and run Demo —> 
Life, I get

(grid 32 32}
Undefined

Is this a bug, or am I missing something?

Thanks,
Shaughan

Sent from ProtonMail mobile

Re: PilBox problem

2020-10-23 Thread Shaughan Lavine
Same phenomenon—it just stopped running after working fine since August. There 
was a Java exception that it couldn't find some PilBox file. I didn't note the 
details, just reinstalled PilBox. On my device (Samsung S5E tablet), that fixed 
it—PilBox now runs fine. Unfortunately,
the reinstall—or perhaps the problem, whatever it was—deleted all local files, 
so my app and data are gone.

Sent from ProtonMail mobile

 Original Message 
On Oct 23, 2020, 7:53 AM, Alexander Burger wrote:

> On Thu, Oct 22, 2020 at 09:09:31PM +0000, Shaughan Lavine wrote:
>> PilBox stopped running, so I reinstalled it.
>
> Fatal! I got reports from other users too that PilBox doesn't start any more.
>
> Here it works, but when I tried my wife's phone, it refused to start. This is
> strange, because it worked before, and there was no update. So I manually
> installed the new PilBox (based on pil21, I did not dare to release it yet), 
> and
> all was fine again.
>
> Seems I should release PilBox/21 asap ...
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

PilBox problem

2020-10-22 Thread Shaughan Lavine
PilBox stopped running, so I reinstalled it. It works, but my apps are gone. 
Shouldn't a reinstall leave user files alone?

Thanks!
Shaughan

Sent from ProtonMail mobile

Problem wïth canvas in pilbox

2020-08-06 Thread Shaughan Lavine
I have an app running in pilbox that draws a graph using canvas. Occasionally, 
when I've made a small change (if only I could resist tinkering …—but that's a 
whole different story), the graph just disappears—only the background color 
remains, though the spacing stays the same, so a blank canvas is still there. 
But, to bring it back, all I need to do is open the canvas tab in demo.zip.
After I do that, my app runs perfectly. Since the problem is intermittent, I 
don't know how to hone in on it.
My question is, how can running one app in pilbox affect another? I would have 
thought they were completely independent.

Shaughan

Sent from ProtonMail mobile

Re: PilBox files

2020-07-28 Thread Shaughan Lavine
Alex–
That all works fine, _but_ first it is necessary to go to 
Settings->Apps->PilBox->Permissions and grant the Storage permission.
Shaughan

Sent from ProtonMail mobile

 Original Message 
On Jul 27, 2020, 11:43 PM, Alexander Burger wrote:

> Hi Shaughan,
>
>> 'Sorry—I should have been more explicit: I meant in storage. That is, there 
>> is no
>> /storage/emulated/0/Android/data/de.software_lab.pilbox/files
>> and no
>> /storage//Android/data/de.software_lab.pilbox/files.
>> Is there a way to store large files on an external sd card?
>
> I see. I never used /storage//..., as my devices have no external
> storage. But I do use /storage/emulated/0/ on various occasions.
>
> Out of the box, PilBox does not need it, so no directories are created. But 
> you
> can do things like
>
> (call "mkdir" "/storage/emulated/0/Android/xxx")
>
> depending on which place the system allows access to.
>
> I created here "/storage/emulated/0/pb" (for "PilBox"), or I use
> "/storage/emulated/0/" directly, as this is symlinked in Termux as
> "~/storage/shared/".
>
>> is it possible externally? In particular, if I have a file generated by an
>> app, say, /data/data/de.softwa|e_lab.pilbox/files/MyApp/MyFile, how can I 
>> copy
>> MyFile outside PilBox to, for example, email it?
>
> The easiest is to use the Termux "~/storage/shared/" directory. Does e.g.
>
> (call "cp" "MyApp/MyFile" "/storage/emulated/0/")
>
> not work?
>
> Or even create the file directly there:
>
> (out "/storage/emulated/0/MyFile"
> (print ...
>
>> I've been busy bugging you with newbie questions so let me explicitly say 
>> that
>> I love this! I'm lying in bed right now, developing an app on my tablet.
>
> No problem! It is good if you ask such things here, it might also help others 
> :)
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: PilBox files

2020-07-27 Thread Shaughan Lavine
Alex–

'Sorry—I should have been more explicit: I meant in storage. That is, there is 
no
/storage/emulated/0/Android/data/de.software_lab.pilbox/files
and no
/storage//Android/data/de.software_lab.pilbox/files.
Is there a way to store large files on an external sd card?

It is possible to access
/data/data/de.software_lab.pilbox/files
from within the PilBox app, but is it possible externally? In particular, if I 
have a file generated by an app, say, 
/data/data/de.softwa|e_lab.pilbox/files/MyApp/MyFile, how can I copy MyFile 
outside PilBox to, for example, email it?

I've been busy bugging you with newbie questions so let me explicitly say that 
I love this! I'm lying in bed right now, developing an app on my tablet.

Best,
Shaughan

Sent from ProtonMail mobile

 Original Message 
On Jul 27, 2020, 10:04 PM, Alexander Burger wrote:

> Hi Shaughan,
>
>> Where is Android/data/de.software_lab.pilbox/files in the Android filesystem?
>> PilBox is the only app I have that doesn't seem to have such a directory on
>> either the sd card or the emulated sd card. Is that expected behavior?
>
> I'm not sure - perhaps you mean this generically? There is no "Android" root,
> Apps normally reside in
>
> /data/data//files
>
> so in PilAox it is
>
> /data/data/de.software_lab.pilbox/files
>
> You can directly access this directory e.g. from the PilBox REPL (see attached
> screenshot).
>
> ☺/ A!ex

PilBox files

2020-07-27 Thread Shaughan Lavine
All–
Where is Android/data/de.software_lab.pilbox/files in the Android filesystem? 
PilBox is the only app I have that doesn't seem to have such a directory on 
either the sd card or the emulated sd card. Is that expected behavior?
Thanks,
Shaughan

Sent from ProtonMail mobile

Re: pilbox help

2020-07-19 Thread Shaughan Lavine
Thanks! I hadn't realized that (menu …) was required.

Sent from ProtonMail mobile

 Original Message 
On Jul 18, 2020, 11:27 PM, Alexander Burger wrote:

> Hi Shaughan,
>
>> I'm stumped about how to get an app into PilBox:
>>
>> I make a directory myapp containing, among other things, a file named App.l. 
>> I
>> zip the directory.
>
> This is good, but make sure that the file contains a name and a call to 'menu'
> at minimum, because otherwise nothing will be visible.
>
> You may take "App.l" from the "hello" app as an example:
>
> "Hello World"
>
> (menu "Hello World!"
> ( "center fh" "Hello World!") )
>
>> - In Termux, I enter 'termux-share ~/storage/downloads/myapp.zip'. Nothing
>> happens.
>
> This should also be good. At least it works here, and it is my standard way of
> installing apps.
>
> But I've heard that Android is quite picky sometimes in selecting apps for
> sharing.
>
> Same can be achieved (with perhaps the same pickiness) if you use your 
> device's
> file browser and select and share it from there.
>
>> - I go to PilBox PILs and try entering /storage/emulated/0/Download/myapp.zip
>> and hitting the Download button. I get "Data not found".
>
> This does not work. The download button really means "download". It tries to
> access a remote server in the global variable '*Repo'. It is set to
> "software-lab.de" by default.
>
> If you have access to a server, upload "myapp.zip" there, then open the REPL 
> in
> PilBox and enter (setq *Repo "myserver.com").
>
> Now the Download button should work with "myapp" (without ".zip").
>
>> - In Termux, I enter 'termux-open --send --chooser
>> ~/storage/downloads/myapp.zip. A chooser pops up, and I choose PilBox. PilBox
>> opens as a blank white screen that survives closing and reopening.
>
> Was your App.l file empty and did not contain the above minimum? That would
> explain it ...
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

pilbox help

2020-07-18 Thread Shaughan Lavine
All–

I'm stumped about how to get an app into PilBox:

I make a directory myapp containing, among other things, a file named App.l. I 
zip the directory.

- In Termux, I enter 'termux-share ~/storage/downloads/myapp.zip'. Nothing 
happens.

- I go to PilBox PILs and try entering /storage/emulated/0/Download/myapp.zip 
and hitting the Download button. I get "Data not found".

- In Termux, I enter 'termux-open --send --chooser 
~/storage/downloads/myapp.zip. A chooser pops up, and I choose PilBox. PilBox 
opens as a blank white screen that survives closing and reopening. I have to 
reinstall. Without '--send' the behavior is the same.

What am I missing?

–Shaughan

Re: Bug?

2020-06-21 Thread Shaughan Lavine
Yep. Got it. That's about what I'd settled on---though without thinking about 
the security implications.

Does something have to be allowed for forms.l to work? I'm getting
'*Get [::1] not allowed'.

And I'm still stumped about '"@doc/form/refD.html" -- Open error: Permission 
denied' without sudo.

I very much appreciate all the help!

Sent from ProtonMail Mobile

On Sun, Jun 21, 2020 at 9:57 PM, Alexander Burger  wrote:

> Hi all,
>
>> OK, thanks, It isn't worth trying to modify the reader. I'll just add the
>> decimal point while processing the input.
>
> It is not a good idea to use the Lisp reader in a GUI. Imagine what a 
> malicious
> user can do with read macros! She could enter things like
> `(call "sh" "-c" "rm -r *").
>
> So, yes, the input needs to be handled as strings. You could check what the
> PicoLisp GUI does (also in PilBox apps on Android) in "@lib/form.l". The code
> for a fixpoint input field is:
>
> (class +FixField +numField)
>
> (dm T (N . @)
> (=: scl N)
> (pass super) )
>
> (dm txt> (Val)
> (format Val (: scl) *Sep0 *Sep3) )
>
> (dm set> (Val Dn)
> (super (format Val (: scl) *Sep0 *Sep3) Dn) )
>
> (dm val> ()
> (let S (super)
> (format
> (or (sub? *Sep0 S) (pack S *Sep0))
> (: scl)
> *Sep0
> *Sep3 ) ) )
>
> The relevant line here is the 4th in the 'val>' method.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Re: Bug?

2020-06-21 Thread Shaughan Lavine
OK, thanks, It isn't worth trying to modify the reader. I'll just add the 
decimal point while processing the input.

Sent from ProtonMail Mobile

On Sun, Jun 21, 2020 at 8:06 PM, John Duncan  wrote:

> That I don't know. I don't know if you can modify the scanning part of the 
> reader with picolisp, the examples I've seen all work on atoms. You might 
> have to read bytes and process it yourself. Or rewrite the scanner in the C 
> source.
>
> On Sun, Jun 21, 2020 at 3:43 PM Shaughan Lavine  
> wrote:
>
>> Thanks for the rapid reply! This is for an android app. I can hardly require 
>> an end user to supply a decimal point. Of course, I can look for one and 
>> supply it if missing. I just wondered if, since this must be a common use 
>> case, there was a better way.
>>
>> Sent from ProtonMail mobile
>>
>>  Original Message 
>> On Jun 21, 2020, 12:16 PM, John Duncan < duncan.j...@gmail.com> wrote:
>>
>>> Not a bug, this is the design of the reader (symToNum). Can you make input 
>>> include the decimal point?
>>>
>>> On Sun, Jun 21, 2020 at 14:34 Shaughan Lavine 
>>> <[shaug...@nometaphysics.org](mailto:shaughan@nometaphysicsorg)> wrote:
>>>
>>>> Isn't this a bug?
>>>> ---
>>>> :(scl 2)
>>>> :212
>>>> 212
>>>> :212.
>>>> 21200
>>>> -
>>>> Shouldn't 212 be equal to 212. ?
>>>> If not, how do I force a "." after an integer input by a user? Do I really 
>>>> have to use a string input and look for a "."?
>>>>
>>>> Sent from ProtonMail mobile
>>>
>>> --
>>>
>>> John Duncan
>
> --
>
> John Duncan

Re: Bug?

2020-06-21 Thread Shaughan Lavine
Thanks for the rapid reply! This is for an android app. I can hardly require an 
end user to supply a decimal point. Of course, I can look for one and supply it 
if missing. I just wondered if, since this must be a common use case, there was 
a better way.

Sent from ProtonMail mobile

 Original Message 
On Jun 21, 2020, 12:16 PM, John Duncan wrote:

> Not a bug, this is the design of the reader (symToNum). Can you make input 
> include the decimal point?
>
> On Sun, Jun 21, 2020 at 14:34 Shaughan Lavine 
> <[shaug...@nometaphysics.org](mailto:shaughan@nometaphysicsorg)> wrote:
>
>> Isn't this a bug?
>> ---
>> :(scl 2)
>> :212
>> 212
>> :212.
>> 21200
>> -
>> Shouldn't 212 be equal to 212. ?
>> If not, how do I force a "." after an integer input by a user? Do I really 
>> have to use a string input and look for a "."?
>>
>> Sent from ProtonMail mobile
>
> --
>
> John Duncan

Bug?

2020-06-21 Thread Shaughan Lavine
Isn't this a bug?
---
:(scl 2)
:212
212
:212.
21200
-
Shouldn't 212 be equal to 212. ?
If not, how do I force a "." after an integer input by a user? Do I really have 
to use a string input and look for a "."?

Sent from ProtonMail mobile

Re: Permissions problem

2020-06-16 Thread Shaughan Lavine
Alex–
Yes, accessing the files from the shell works just fine. I tried reinstalling. 
Same behavior. I'm running under qemu, aarch64. I can't imagine that that 
matters, but I'm out of ideas, so ….
Shaughan

On Tue, Jun 16, 2020 at 11:02 AM, Alexander Burger  wrote:

> Hi Shaughan,
>
>> I have a permissions problem: When I run pil @lib/form.l+ I get:
>> [/usr/lib/picoLisp/lib/form.l:2657] … @doc/form/refD.html" -- Open error:
>> Permission denied ..
>> Everything works fine without the +
>
> OK. This is because only in debug mode the tail if lib/form.l is loaded:
>
> ### Debug ###
> `*Dbg
>
> (allow "!console")
> (de console @ # JS: lisp(null, "console", "Message");
> (msg (cons 'console (rest)))
> (respond) )
>
> (noLint 'gui)
> (noLint 'choDlg 'gui)
> (noLint 'jsForm 'action)
>
> (docs "@doc/form/")
>
> Without *Dbg this is part is ignored.
>
>> or if I run as root.
>
> So the docs are indeed not accessible.
>
>> ArchLinux, built from source, running from /usr/bin. @doc/form/ref has the 
>> same
>> owner:group as everything else in that directory (:), but it shipped
>> with permissions 600, while everything else in the directory was 644.
>
> Yes, should be fine, user read and write.
>
> Can you read the files in doc/ from the shell?
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Permissions problem

2020-06-16 Thread Shaughan Lavine
I have a permissions problem: When I run pil @lib/form.l+ I get: 
[/usr/lib/picoLisp/lib/form.l:2657] … @doc/form/refD.html" -- Open error: 
Permission denied I can post the rest of the error if it matters. Everything 
works fine without the + or if I run as root. ArchLinux, built from source, 
running from /usr/bin. @doc/form/ref has the same owner:group as everything 
else in that directory (:), but it shipped with permissions 600, while 
everything else in the directory was 644.
Changing them to 644 made no difference. Any suggestions?
Thanks!

Sent from ProtonMail Mobile

Subscribe

2020-06-16 Thread Shaughan Lavine
Sent from ProtonMail Mobile