Re: Frozen Pilbox
On Thu, Nov 09, 2023 at 08:08:22AM +0100, Alexander Burger wrote: > Now I understand the problem! > > "App.l" has three garbage bytes in the beginning; I tried on another device. It is all not such a big problem :) Though PilBox cannot initialize with that faulty file, you can just fix it, and zip and termux-share it once more. PilBox then starts up fine again. So it is not true what you wrote, i.e. that termux-share does not work in this broken state. The unpacking and installation of ZIP files happens on the Java level *before* any Lisp is started, so you can always undo any mistakes. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Frozen PilBox
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
Re: Frozen Pilbox
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
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
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
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
Limited Email Access Re: Frozen Pilbox
I have very limited email access. If you need to reach me, please call.Thanks.H.
Re: Frozen Pilbox
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
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
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. Now I released PilBox 23.11.8 to PlayStore. It may take some time to propagate, but you can also download it as ever from https://software-lab.de/pilBox.apk and the sources from https://software-lab.de/PilBox.tgz Hope this helps :) ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Frozen Pilbox
Hi Shaughan, > 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. When PilBox starts up, it checks the file "Version". If this file does not exist or has a different value, all Lisp files from the APK replace the old ones. If I messed something up, I sometimes simply do (call "rm" "Version") and then restart PilBox, but this is no option here as you cannot get a REPL. If you build or get a new version, "Version" will have changed in the new APK and everything is installed. Other data in PilBox are not deleted or modified. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Frozen Pilbox
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
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. > For want of a permission, the data was lost, and all for the wane of a chmod > 660 I don't quite understand. What permissions did you change, and how? Would it help to install a new PilBox version? This would overwrite just PilBox itself, but not your data. I was planning a new release tomorrow anyway. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Frozen Pilbox
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
On Tue, Nov 07, 2023 at 07:33:29AM +, Shaughan Lavine wrote: > 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. Yes. You don't even need PIL-test. The PIL-* files are only for the zip uploading, and viewing and deleting in the GUI. Just creating a directory with a file "App.l" is enough. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Frozen Pilbox
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
Re: Frozen Pilbox
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
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
Re: Frozen Pilbox
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
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