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

Limited Email Access Re: Frozen Pilbox

2023-11-08 Thread Howard Porter
I have very limited email access.  If you need to reach me, please call.Thanks.H.


Re: Frozen Pilbox

2023-11-08 Thread Alexander Burger
Hi Shaughan,

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

Great! I remember the opposite case. We could not get rid of old data, even over
a re-install, unless we went to "Memory and Cache" in the Android settings for
PilBox, and cleared memory and cache explicitly.

☺/ A!ex

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


Re: Frozen Pilbox

2023-11-08 Thread Alexander Burger
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


Unsubscribe

2023-11-08 Thread Cooper Healy



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


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


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


Re: Frozen Pilbox

2023-11-08 Thread Alexander Burger
Hi Shaughan,

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

Now I understand the problem!


"App.l" has three garbage bytes in the beginning;

~/tmp ~/pil21/pil +
: (hd "test/App.l")
  EF BB BF 22 54 65 73 74 22 0A 0A 28 6D 65 6E 75  ..."Test"..(menu
0010  20 22 54 65 73 74 22 0A 20 20 20 28 3C 68 31 3E   "Test".   (
0020  20 22 63 65 6E 74 65 72 20 66 68 22 20 22 54 65   "center fh" "Te
0030  73 74 21 22 29 20 29 0A  st!") ).
-> NIL
: (bin (hex "EF"))
-> "1110"
: (bin (hex "BB"))
-> "10111011"
: (bin (hex "BF"))
-> "1011"

The first byte is "1110", which is the first byte of a *four* byte UTF-8
sequence. This usually not really a problem, PicoLisp just reads a garbage
character.

I have of course not tried to install the file, but obviously PilBox gets
confused. It expects a certain structure in the first line of each "App.l" found
upon startup.

It skips until the *next* double quote, and 'load's possible further files. As
the *first* double quote is already eaten up by that bad byte sequence, it
starts from the last double quote of "Test".

I will try to make this more robust.

☺/ A!ex

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


Re: Frozen PilBox

2023-11-08 Thread Alexander Burger
On Thu, Nov 09, 2023 at 02:37:12AM +, Shaughan Lavine wrote:
> The cache needs to cleared for a new style to take effect. Is that a bug?

No. PilBox (and PicoLisp in general) caches CSS files for 24 hours.

See line 34 in @lib/http.l

   (`(chop "css") "text/css" 86400)

☺/ A!ex

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