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
alexshendi has quit [Read error: Connection reset by peer]
alexshe9 has joined #picolisp
alexshe9 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
chexum has quit [Ping timeout: 258 seconds]
chexum has joined #picolisp
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
kced has left #picolisp [Leaving]
seninha has quit [Quit: Leaving]
alexshendi has quit [Ping timeout: 244 seconds]
alexshendi has joined #picolisp
alexshendi has quit [Ping timeout: 244 seconds]
aw- has quit [Quit: Leaving.]
aw- has joined #picolisp
<aw-> abu[m]: here?
<abu[m]> Hi aw-! Yes :)
<aw-> hi
<aw-> i'm having an issue with reading a UART (/dev/ttyAMA0)
<aw-> from picolisp,
<aw-> i have something like (out "/dev/ttyAMA0" (prin "command")) and then (in "/dev/ttyAMA0" (line T))
<aw-> the problem is it seems the data returned in (line T) gets sent back out to /dev/ttyAMA0
<abu[m]> Looks like an echo
<aw-> agh
<aw-> yes i just figured it out
<aw-> echo
<aw-> stty -echo ...
<aw-> that solved it
<aw-> ok thanks! sorry
<abu[m]> ☺
chexum has quit [Ping timeout: 258 seconds]
chexum has joined #picolisp
<Hunar> Hello, I apologize, I became busy and instead of saying that I'm busy, I waited for a time to work on it then reply, and it never came :(
<abu[m]> No problem at all!
<abu[m]> Perhaps even good, because meanwhile I released PilBox for another reason
<abu[m]> (there were problems with Android 12)
<Hunar> Great, I'll try it as soon as possible :)
<abu[m]> I believe it is better now. Now the multiple updates of the canvas you observed should be gone.
<Hunar> Yay, it's great now in PilBox .. I'll later check out the multiple update issue on PC
<beneroth> hey Hunar :)
<beneroth> abu[m], how many walks did you need?
* beneroth thinks the difficulty of programming tasks can be measured in number of walks abu[m] took to solve it. or maybe number of beers.
<abu[m]> haha, well, in this case I had to do it statically (no walking) due to intensive interactions
<abu[m]> beer always helps indeed
<beneroth> hehe, I see. other factors making it harder.
<beneroth> maybe you should use beer license on some stuff for a while, so you get more beer :)
<beneroth> (it's kinda MIT + please buy the dev a beer when you meet them)
<abu[m]> good idea
<abu[m]> Nice ☺
<Hunar> Hello beneroth :D
<aw-> hey beneroth ;)
<beneroth> hey aw- :)
<tankf33der> abu[m]: cool enum tweets.
<abu[m]> Thanks!
<Hunar> The update is perfect :D any event causes a single call to drawCanvas and never repeated again, each frame I only get one update :D
<abu[m]> Glad to hear that. Thanks for pointing out the problem and for testing!
<Hunar> No problem :) I'l happy thay I helped improving PIL
<Hunar> that*
<abu[m]> As T is passed for plain refresh events, you can now also ignore them completely. I tested with this: http://ix.io/49Wc
<Hunar> Great :D
<Hunar> Small unrelated question
<Hunar> I have a database that is created by another program .. its extention is .accdb microsoft access database i think.. I used pypyobdc to interact with in in python. while using racket language there was a function (obdc-driver-connect ...) function .. I searched for obdc libraries in C and didn't get good results, are you familiar with other methods that I can use to interact with it in PIL?
<abu[m]> Not really. Is access in some way compatible with the old DBase format? I still have a lib for that iirc.
<Hunar> I'm not experienced with any database :) I don't know
<abu[m]> Me neither
<abu[m]> The old lib/dbase.l was: http://ix.io/49Wj (just in case)
<abu[m]> We used it to import customer data
<Hunar> I found a tool that says converts accdb to dbf
<abu[m]> Sounds good
<Hunar> : (dbase "a.dbf")
<Hunar> /home/hunar/pil21/bin/utf2: Can't exec
<Hunar> Missing EOF
<Hunar> what, the parameter is File, I thought its filename
<abu[m]> Yeah, utf2 is not needed any more. Nowadays we have iconv or recode
chexum has quit [Remote host closed the connection]
<Hunar> I encoded the dbf file as utf-8
<abu[m]> Good, so no conversion needed
<abu[m]> Otherwise something like (in (list "/usr/bin/iconv" "-f" "ISO-8859-15" "-t" "UTF-8" File)
chexum has joined #picolisp
<abu[m]> Just for the records ;)
<Hunar> I changed the function and wrote that code .. now it only says
<Hunar> Missing EOF
<Hunar> where is it refering to?
<abu[m]> It seems to expect a Ctrl-Z at the end of the file
<abu[m]> Ctrl-Z was EOF on MS-DOS
<abu[m]> I think you can omit the check
<abu[m]> or do (unless (eof) as a sanity check
<abu[m]> or better (when (char)
<abu[m]> cause (char) gives NIL on EOF
<abu[m]> Then we know that 'Cnt' was correct
<Hunar> I used it like this
<Hunar> :pil dbase.l +
<Hunar> I'll remove the check
<Hunar> It returned a large nested list :) done
<abu[m]> Perfect! :)
<abu[m]> I thought I'd never need dbase.l again
seninha has joined #picolisp
<Hunar> No that that's solved, I'll come back to the project I had in mind which required live feed from camera .. I stripped down a javascript example from internet and (I think) I only kept the important code... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/30c13ece6596c8460fe8470578eb7c49d0d6b426)
<Hunar> My goal is to have this in PilBox somehow :)
<abu[m]> I see, that is good news
<beneroth> Hunar, accdb should be "Microsoft Access"
<beneroth> it's the database software in the MS Office bundle.
<beneroth> I think you should be able to open such files with LibreOffice, though possibly they're full of customized vba programming. Access is the tool of choice once excel gets too big.. so small businesses sometimes have some stuff running in excel/access and the guy who did it is retired for 20 years or so...
<beneroth> nice you found a solution via dbase xD
<Hunar> Thanks for the info :) the solution wasn't good, first I have to decrypt the file using the password, then pass it to the converter which turns each table into a seperate .dbf file .. but using OBDC I could open the .accdb file directly by providing a password, when i was using python
<beneroth> i would have tried to open it in LibreOffice and export the data as CSV (or maybe even dbase, dunno what LibreOffice supports)
<beneroth> you could also use your existing python code to output (into a pipe or console) and call that from pil
<beneroth> (probably easier than using odbc in pil. I'm not aware of anyone having done that yet, it's certainly possible but will need some initial effort to wrap/program a client)
<beneroth> multiple people used pil as client for mysql/mariadb, I have made a wrapper to connect to MSSQL (but not published yet)
chexum has quit [Remote host closed the connection]
chexum has joined #picolisp
kuao has joined #picolisp
seninha has quit [Quit: Leaving]
alexshendi has joined #picolisp
alexshe15 has joined #picolisp
alexshe48 has joined #picolisp
alexshendi has quit [Ping timeout: 268 seconds]
alexshe15 has quit [Ping timeout: 244 seconds]
alexshe48 is now known as alexshendi
alexshe95 has joined #picolisp
alexshendi has quit [Ping timeout: 260 seconds]
alexshe95 has quit [Ping timeout: 244 seconds]
alexshe20 has joined #picolisp
seninha has joined #picolisp
alexshe20 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
seninha has quit [Remote host closed the connection]
alexshe38 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshe38 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
seninha has joined #picolisp
alexshe13 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
kuao has quit [Quit: elton john found alive]
alexshe13 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe92 has joined #picolisp
alexshe88 has joined #picolisp
alexshe92 has quit [Read error: Connection reset by peer]
alexshendi has quit [Ping timeout: 255 seconds]
alexshe88 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe31 has joined #picolisp
alexshendi has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp
alexshe31 has quit [Ping timeout: 255 seconds]
alexshe21 has joined #picolisp
alexshe87 has joined #picolisp
alexshe21 has quit [Read error: Connection reset by peer]
alexshendi has quit [Read error: Connection reset by peer]
alexshe87 has quit [Read error: Connection reset by peer]
alexshendi has joined #picolisp