<razzy>
non pritable characters are not readable in linux console
<razzy>
web browser should print them
<razzy>
tankf33der: hmmm, maybe these characters are formatting characters for terminal?
<razzy>
maybe there is program that can read it as terminal and print into file?
pfd has joined #picolisp
hunar has quit [Ping timeout: 252 seconds]
hunar has joined #picolisp
<hunar>
Hello Everyone :) I got very busy the last few months and gone from here, I almost switched programming language at one point but fortunately came back to pil.. Today I started again and got interested in PilBox .. in part6 of mia's tutorials on mobile development I have a problem.. when i enter (let PM (java CONTEXT 'getPackageManager)) then
<hunar>
(java PMan 'hasSystemFeature "android.hardware.camera") I assume PMan is a typo so corrected it to PM, but it prints this (java.lang.NoSuchMethodException: hasSystemFeature([L java.lang.Class;@c407e7b) ) is the tutorial up to date or i'm doing something wrong?
<razzy>
i will read possible answers
razzy has quit [Quit: leaving]
chexum has quit [Quit: No Ping reply in 180 seconds.]
chexum has joined #picolisp
<abu[m]>
Hi hunar:!
<hunar>
Hello abu[m] :D
<abu[m]>
razzy, these are ncurses control characters from readline()
<abu[m]>
hmm, does (camera?) work?
<abu[m]>
it is in @lib/android.l
<abu[m]>
It calls: (java (java CONTEXT 'getPackageManager) 'hasSystemFeature "android.hardware.camera")
<abu[m]>
Anyway, hunar, I'm glad to see you back here ☺
<hunar>
The camera within the demo example works
<abu[m]>
Good, but what is different then?
<hunar>
Thank you abu[m] :)
<abu[m]>
just the 'let'?
<hunar>
This runs normally (let PM (java CONTEXT 'getPackageManager)) the problem is in the next command
<abu[m]>
But 'camera?' calls it
<hunar>
Wait, I'll install PilBox in another phone and try again
<abu[m]>
(vi 'camera?)
<abu[m]>
it calls hasSystemFeature
<abu[m]>
Perhaps in the wrong namespace?
<abu[m]>
It needs 'android'
<hunar>
I don't follow what you're saying :( here is what i'm doing: opening pilbox, going to repl, typing (let PM (java CONTEXT 'getPackageManager)) then (java PM 'hasSystemFeature "android.hardware.camera") .. if I type (vi 'camera?) it freezes then crashes
<abu[m]>
yes, (vi 'camera?) works only in pseudo TTY
<abu[m]>
(pp 'camera?) then
<hunar>
My other phone said (not compatible with your device's CPU)
<hunar>
The installation of the app failed
<abu[m]>
Oh, yes, needs an Arm64
<hunar>
Ah, I was switching between tty and the phone, didn't know there was a difference :)
<abu[m]>
So in your Arm64 phone (camera?) should work
<hunar>
ok (pp 'camera?) outputs a function definition, I'll compare the code to see what's different
<abu[m]>
Or you connect from a PC or Termux via 'pty' to get a real terminal
<hunar>
Oh, I'm dumb
<hunar>
It was a parenthesis issue, I didn't put the java call within the let .. sorry for wasting you time
<abu[m]>
Ah, good! No problem :)
<abu[m]>
You should really try bin/pty
<abu[m]>
If your phone is in the LAN, you can ~/pil21/bin/pty 192.168.xxx.yyy
<abu[m]>
and voila have a full terminal
<abu[m]>
with 'vi' and all
<abu[m]>
into the PilBox REPL
<hunar>
I did try it :) It's awesome, but I fall back to the phone because I expected that my tty is causing the problem ... however the connection is laggy for me .. half second delay between key press and character showing on terminal
<abu[m]>
I see, strange
<abu[m]>
The built-in REPL in PilBox is a bit limited
<hunar>
I agree :)
<abu[m]>
Anyway, so you found a typo in the blog?
<abu[m]>
'PM' ?
<hunar>
Yes, it was PMan instead of PM
<abu[m]>
I tell Mia
<hunar>
Great :) should I always tell typos in here or there is a better place
<hunar>
I think I saw another typo but I don't remember where
<abu[m]>
Perhaps the mailing list?
<abu[m]>
Or, if you have a Matrix client, in the room #picolisp:7fach.de
<abu[m]>
There Mia is member
<hunar>
Ah, right .. I never use the mailing list.. I should start using it
<hunar>
First time I hear about Matrix, I'll research it now
<abu[m]>
Great! Look at matrix.org
<hunar>
Thanks :D
<abu[m]>
You can set up your own server, and be safer.
<abu[m]>
My Matrix ID is @abu:7fach.de
<hunar>
I joined the room and saw you :) , the messages are hidden (I suppose old messages aren't accessible due to encryption) :) what is the idea behind yet another chatting location? when to use matrix
<abu[m]>
Good question ;) Just fun.
<abu[m]>
We made that room before we hat this bridge to Libera.chat
<abu[m]>
In that room it is kind of easier to make a Video Conf
<abu[m]>
It uses also Jitsi, but sets up the conf for us. Never tried though.
<hunar>
Cool :) .. where is the 6th finger of the penti keyboard on your profile picture?
<abu[m]>
This was the original version, there was no 6th button yet
<abu[m]>
Also no arpeggio, so it was hard to use
<hunar>
Aha
hunar has quit [Quit: Client closed]
Hunar[m] has joined #picolisp
<Hunar[m]>
Wait, I can connect to libera.chat fron a matrix client :D that's great
<abu[m]>
I like it too. No need to keep an IRC client open all the time
<Hunar[m]>
My irc client on android was horrible and constantly disconnecting, another client was banned, this one is very nice
<Hunar[m]>
There are options to send images/files/polls etc.. what happens if i use them here?