beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
seninha has quit [Quit: Leaving]
seninha has joined #picolisp
clacke has joined #picolisp
seninha has quit [Remote host closed the connection]
<tankf33der> morning all
<tankf33der> connect does not understand "http" as service name
<abu[m]> yes
<abu[m]> Search in /etc/services?
<tankf33der> of course it has
<abu[m]> (format (and (from "\nhttp\t") (till "\t" T))) ?
<abu[m]> Yes, somebody must loouk it up
<abu[m]> It cannot be the task of connect, it is on a lower level
<tankf33der> try in your android
<abu[m]> in connect
<abu[m]> true, getaddrinfo()
<abu[m]> takes a "service"
<tankf33der> this works and prints 80
<abu[m]> yes, that's what I expected. I never used 'connect' with a protocol name
<tankf33der> reference says it should work
<abu[m]> But the ref mentiones it. No idea why it does not work
<abu[m]> Did it ever work? I don't remember
<abu[m]> Your 'from' is not correct
<abu[m]> matches any "http", fails if "https" were before
<abu[m]> I would include "\n" and "\t"
<abu[m]> But anyway it should not be necessary ;)
<tankf33der> lets debug and fix it
<abu[m]> yeah
<abu[m]> 'connect' simply calls getaddrinfo()
<abu[m]> (vi 'connect)
<tankf33der> getaddrinfo returns non 0 exit code
<tankf33der> fixed
<abu[m]> How?
<tankf33der> problem in (sym Service) in server function from net.l
<tankf33der> (sym 80) -> "80"
<tankf33der> (sym "http") -> "\"http\""
<tankf33der> so this code never worked beforwe
<tankf33der> so this code never worked before
<abu[m]> ah!
<abu[m]> Very good! Thanks!
<abu[m]> Pil21-only error then
<abu[m]> What is the best function instead of 'sym'? 'pack'?
<abu[m]> 'pack' seems best
<tankf33der> pack
<abu[m]> good
<abu[m]> Thanks tankf33der, you are a terrific bug hunter!
<abu[m]> Released
<tankf33der> works.
<tankf33der> writing pb1n monitoring on picolisp too
<abu[m]> Wow, pb1n.de is very fast!
<tankf33der> and ipv6 ready
<tankf33der> because you two in germany
<abu[m]> Where is ix.io?
<tankf33der> ping from tokyo is 200ms
<abu[m]> understandable
<tankf33der> usa
<abu[m]> You have a proxy in Japan?
<tankf33der> nope
<tankf33der> afk.
<abu[m]> Thanks!
<Hunar> Hello abu :) I think I found a similar issue, check this out and let me know if the answer makes any sense to you :) https://stackoverflow.com/questions/55022945/unable-to-access-camera-in-dynamically-created-webview
<abu[m]> Hi Hunar! I don't know, I never heard of a layer type in this context
<abu[m]> In PilBox the WebView is created from res/layout/activity_pil_box.xml
<Hunar> In the xml when creating the webview, there is a layer option which can be one of these (none, software, hardware) the answer above claims that it's set to none that's why its blank .. so add this... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/af47f543492a6b3d107186a4f59c12f68114f8b7)
<abu[m]> Very obscure
<abu[m]> I find no clear explanation what this is. Won't it break something else?
<abu[m]> The Android class ref only says "Indicates that the view has a hardware layer"
<Hunar> I have no idea :( but read somewhere that "hardware" uses gpu memory so be sure to have no memory leaks
<abu[m]> "backed by a hardware specific texture"
<Hunar> I wish there was an android expert among us
<abu[m]> yeah
<abu[m]> setLayerType() can also be called at runtime on the View
<Hunar> yes, but I think there are problems with it .. during my research all I found was people having no problem with xml but the dynamic way didn't work .. so we should start with xml
<abu[m]> I don't want to mess with the base system without understanding
<Hunar> understandable :)
<abu[m]> (java (; CONTEXT GUI PilView) 'getLayerType) gives zero
<abu[m]> setLayerType needs a Paint
<abu[m]> What Paint to use?
<Hunar> so it's NONE, we should make it 1
<abu[m]> Can you try? But with which Paint?
<Hunar> I don't know, says Paint(); creates new paint with default settings, maybe that
<abu[m]> (java (; CONTEXT GUI PilView) 'setLayerType 1 (java "android.graphics.Paint" T)) ?
<abu[m]> gives NIL
<abu[m]> Still black box
<Hunar> :(
<abu[m]> Same for 2
abu[m] has quit [Quit: Bridge terminating on SIGTERM]
Hunar has quit [Quit: Bridge terminating on SIGTERM]
abu[m] has joined #picolisp
Hunar has joined #picolisp
<Hunar> Is there a way to recover the main App.l after messing it up 😶
<abu[m]> Yes. I use termux-share in a script which builds a ZIP
<abu[m]> I use this script: http://pb1n.de/?865143
<abu[m]> it is called "share"
<abu[m]> then:
<abu[m]> (cd assets/run; share App.l)
<abu[m]> Best first close PilBox by swiping it off
<abu[m]> then run share and select PilBox
<Hunar> Got lost .. re-install .. I think I only loose 1 project
<abu[m]> No, it is easy
<abu[m]> What is the problem? Just a Zip with App.l
<Hunar> I can make the zip without termux .. what is in the zip, just one App.l with (cd assets/run; share App.l) in it?
<abu[m]> I change files this way very often
<abu[m]> Yes, only App.l
<abu[m]> Any files in the Zip expand with their corresponding pathes
<abu[m]> So you do not use Termux?
<abu[m]> it makes life a lot easier ;)
<tankf33der> abu[m]: i want to use (client) function from http.l to post one line to pb1n, can i do it?
<abu[m]> I think it cannot post a file
<abu[m]> Perhaps it can, but tricky
<abu[m]> building a multipart-message
<tankf33der> i want just a line or symbol
<tankf33der> Not a file
<abu[m]> Well, POST is supported
<Hunar> I use termux alot, but in this situation I have a file manager which is easier for me, I make a zip and press it to open it through PilBox
<Hunar> It didn't work :(
<abu[m]> What happens?
<Hunar> when I open pilbox a grey screen appears and after afew seconds it crashes
<Hunar> I made a typo in App.l I think
<abu[m]> Was only App.l damaged?
<Hunar> yes
<abu[m]> and the original one?
<Hunar> I got a copy of the original one by extracting the apk
<abu[m]> Perhaps better take it from the TGZ
<abu[m]> on software-lab
<abu[m]> it did not change with our new version
<abu[m]> In any case, sharing a Zip should replace all files in the Zip
<abu[m]> To the previous problem: I think LayoutType cannot be the problem, as it works with the remote webcamtest
<Hunar> Done :) I put App.l in the demo zip and it fixed it .. while only App.l in it didn't fix it for some reason
<abu[m]> Great!
<Hunar> But in the link I send, the person was saying the online webcam tests were working .. like us
<abu[m]> yes, same. But I cannot see that the Layout is the problem
<abu[m]> Probably webcamtest has something in its html or js we don't have
seninha has joined #picolisp
genpaku has quit [Remote host closed the connection]
genpaku has joined #picolisp
seninha has quit [Read error: Connection reset by peer]
clacke has quit [Read error: Connection reset by peer]
seninha has joined #picolisp
clacke has joined #picolisp
seninha has quit [Ping timeout: 265 seconds]
seninha has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Quit: -a- Connection Timed Out]
alexshendi has joined #picolisp
seninha has quit [Quit: Leaving]
seninha has joined #picolisp
seninha has quit [Remote host closed the connection]
seninha has joined #picolisp