02:59
seninha has quit [Quit: Leaving]
03:32
seninha has joined #picolisp
03:42
clacke has joined #picolisp
04:19
seninha has quit [Remote host closed the connection]
05:36
<
tankf33der >
morning all
05:37
<
tankf33der >
connect does not understand "http" as service name
05:38
<
abu[m] >
Search in /etc/services?
05:40
<
tankf33der >
of course it has
05:40
<
abu[m] >
(format (and (from "\nhttp\t") (till "\t" T))) ?
05:40
<
abu[m] >
Yes, somebody must loouk it up
05:41
<
abu[m] >
It cannot be the task of connect, it is on a lower level
05:41
<
tankf33der >
try in your android
05:45
<
abu[m] >
in connect
05:45
<
abu[m] >
true, getaddrinfo()
05:45
<
abu[m] >
takes a "service"
05:49
<
tankf33der >
this works and prints 80
05:51
<
abu[m] >
yes, that's what I expected. I never used 'connect' with a protocol name
05:54
<
tankf33der >
reference says it should work
05:54
<
abu[m] >
But the ref mentiones it. No idea why it does not work
05:55
<
abu[m] >
Did it ever work? I don't remember
05:55
<
abu[m] >
Your 'from' is not correct
05:56
<
abu[m] >
matches any "http", fails if "https" were before
05:56
<
abu[m] >
I would include "\n" and "\t"
05:56
<
abu[m] >
But anyway it should not be necessary ;)
06:01
<
tankf33der >
lets debug and fix it
06:02
<
abu[m] >
'connect' simply calls getaddrinfo()
06:02
<
abu[m] >
(vi 'connect)
06:06
<
tankf33der >
getaddrinfo returns non 0 exit code
06:09
<
tankf33der >
problem in (sym Service) in server function from net.l
06:09
<
tankf33der >
(sym 80) -> "80"
06:09
<
tankf33der >
(sym "http") -> "\"http\""
06:10
<
tankf33der >
so this code never worked beforwe
06:10
<
tankf33der >
so this code never worked before
06:10
<
abu[m] >
Very good! Thanks!
06:10
<
abu[m] >
Pil21-only error then
06:14
<
abu[m] >
What is the best function instead of 'sym'? 'pack'?
06:18
<
abu[m] >
'pack' seems best
06:20
<
abu[m] >
Thanks tankf33der, you are a terrific bug hunter!
06:32
<
tankf33der >
works.
06:34
<
tankf33der >
writing pb1n monitoring on picolisp too
06:34
<
abu[m] >
Wow, pb1n.de is very fast!
06:35
<
tankf33der >
and ipv6 ready
06:35
<
tankf33der >
because you two in germany
06:35
<
abu[m] >
Where is ix.io?
06:35
<
tankf33der >
ping from tokyo is 200ms
06:36
<
abu[m] >
understandable
06:36
<
abu[m] >
You have a proxy in Japan?
07:34
<
abu[m] >
Hi Hunar! I don't know, I never heard of a layer type in this context
07:37
<
abu[m] >
In PilBox the WebView is created from res/layout/activity_pil_box.xml
08:10
<
abu[m] >
Very obscure
08:12
<
abu[m] >
I find no clear explanation what this is. Won't it break something else?
08:13
<
abu[m] >
The Android class ref only says "Indicates that the view has a hardware layer"
08:13
<
Hunar >
I have no idea :( but read somewhere that "hardware" uses gpu memory so be sure to have no memory leaks
08:14
<
abu[m] >
"backed by a hardware specific texture"
08:14
<
Hunar >
I wish there was an android expert among us
08:15
<
abu[m] >
setLayerType() can also be called at runtime on the View
08:16
<
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
08:17
<
abu[m] >
I don't want to mess with the base system without understanding
08:18
<
Hunar >
understandable :)
08:19
<
abu[m] >
(java (; CONTEXT GUI PilView) 'getLayerType) gives zero
08:19
<
abu[m] >
setLayerType needs a Paint
08:22
<
abu[m] >
What Paint to use?
08:23
<
Hunar >
so it's NONE, we should make it 1
08:24
<
abu[m] >
Can you try? But with which Paint?
08:25
<
Hunar >
I don't know, says Paint(); creates new paint with default settings, maybe that
08:27
<
abu[m] >
(java (; CONTEXT GUI PilView) 'setLayerType 1 (java "android.graphics.Paint" T)) ?
08:28
<
abu[m] >
Still black box
08:29
<
abu[m] >
Same for 2
08:42
abu[m] has quit [Quit: Bridge terminating on SIGTERM]
08:42
Hunar has quit [Quit: Bridge terminating on SIGTERM]
08:46
abu[m] has joined #picolisp
08:50
Hunar has joined #picolisp
08:50
<
Hunar >
Is there a way to recover the main App.l after messing it up 😶
08:51
<
abu[m] >
Yes. I use termux-share in a script which builds a ZIP
08:52
<
abu[m] >
it is called "share"
08:52
<
abu[m] >
(cd assets/run; share App.l)
08:53
<
abu[m] >
Best first close PilBox by swiping it off
08:53
<
abu[m] >
then run share and select PilBox
09:05
<
Hunar >
Got lost .. re-install .. I think I only loose 1 project
09:06
<
abu[m] >
No, it is easy
09:07
<
abu[m] >
What is the problem? Just a Zip with App.l
09:07
<
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?
09:07
<
abu[m] >
I change files this way very often
09:08
<
abu[m] >
Yes, only App.l
09:08
<
abu[m] >
Any files in the Zip expand with their corresponding pathes
09:09
<
abu[m] >
So you do not use Termux?
09:09
<
abu[m] >
it makes life a lot easier ;)
09:09
<
tankf33der >
abu[m]: i want to use (client) function from http.l to post one line to pb1n, can i do it?
09:10
<
abu[m] >
I think it cannot post a file
09:11
<
abu[m] >
Perhaps it can, but tricky
09:11
<
abu[m] >
building a multipart-message
09:11
<
tankf33der >
i want just a line or symbol
09:11
<
tankf33der >
Not a file
09:12
<
abu[m] >
Well, POST is supported
09:12
<
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
09:12
<
Hunar >
It didn't work :(
09:13
<
abu[m] >
What happens?
09:13
<
Hunar >
when I open pilbox a grey screen appears and after afew seconds it crashes
09:14
<
Hunar >
I made a typo in App.l I think
09:14
<
abu[m] >
Was only App.l damaged?
09:14
<
abu[m] >
and the original one?
09:15
<
Hunar >
I got a copy of the original one by extracting the apk
09:15
<
abu[m] >
Perhaps better take it from the TGZ
09:15
<
abu[m] >
on software-lab
09:17
<
abu[m] >
it did not change with our new version
09:20
<
abu[m] >
In any case, sharing a Zip should replace all files in the Zip
09:22
<
abu[m] >
To the previous problem: I think LayoutType cannot be the problem, as it works with the remote webcamtest
09:26
<
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
09:27
<
Hunar >
But in the link I send, the person was saying the online webcam tests were working .. like us
09:28
<
abu[m] >
yes, same. But I cannot see that the Layout is the problem
09:29
<
abu[m] >
Probably webcamtest has something in its html or js we don't have
09:33
seninha has joined #picolisp
10:36
genpaku has quit [Remote host closed the connection]
10:40
genpaku has joined #picolisp
11:36
seninha has quit [Read error: Connection reset by peer]
12:17
clacke has quit [Read error: Connection reset by peer]
12:38
seninha has joined #picolisp
13:52
clacke has joined #picolisp
13:53
seninha has quit [Ping timeout: 265 seconds]
14:13
seninha has joined #picolisp
18:03
alexshendi has joined #picolisp
20:57
alexshendi has quit [Quit: -a- Connection Timed Out]
20:57
alexshendi has joined #picolisp
22:20
seninha has quit [Quit: Leaving]
22:24
seninha has joined #picolisp
23:11
seninha has quit [Remote host closed the connection]
23:12
seninha has joined #picolisp