#garfield Logs

Nov 12 2024

#garfield Calendar

02:53 AM polprog: rue_mohr: hmm, thats not a bad idea
03:06 AM polprog: i might patch something up, i could use it too
03:06 AM polprog: rue_mohr: whats the q about 29k boards?
04:09 AM VanUnamed_ is now known as VanUnamed
07:18 AM rue_mohr: I have to run acroread manually as it cant be done from a browser anymore
07:19 AM rue_mohr: so it would be nice to just keep it all on command line if I can
08:24 AM polprog: sure
08:25 AM rue_mohr: I got a bit of training on how to use dialog from chatgpt
08:25 AM polprog: the options are convoluted
08:25 AM rue_mohr: yea!
08:25 AM polprog: but you really just need to have two dialigs
08:25 AM polprog: but you really just need to have two dialogs
08:26 AM polprog: first one for the search term, second to choose the result
08:26 AM rue_mohr: so, I might work on that later
08:26 AM rue_mohr: yup
08:26 AM polprog: might do around with only the second one if you pass the search term as $1
08:27 AM polprog: i think if you pass a list choice to dialog it exits with $? equal to the selected entry number
08:27 AM rue_mohr: ooo have to run it anyway
08:27 AM polprog: so you can use that to run acroread with the right file
08:27 AM polprog: but ugh
08:27 AM polprog: arrays in bash
08:27 AM polprog: no thanks lol
08:27 AM rue_mohr: I got gpt to tell me how to use a list of files and feed it into dialog
08:27 AM polprog: unless you can make dialog print the filename to stderr/stdout where you can capture it
08:27 AM rue_mohr: it got it mostly right
08:28 AM rue_mohr: choice=$(dialog --menu "Select a file to view" 15 50 10 "${options[@]}" 2>&1 >/dev/tty)
08:29 AM rue_mohr: https://paste.debian.net/1335306/
08:29 AM polprog: ill take a look later when im done with woth
08:29 AM polprog: work*
08:30 AM rue_mohr: its not so bad, but I'd hate to try to create it from scratch
08:30 AM polprog: at work i implemented a simple window with 3 buttons in curses in python
08:30 AM rue_mohr: :]
08:31 AM polprog: it was... quite a journey to test it on all terminals and other less-than-ideal setups
08:31 AM polprog: i actually have another problem
08:31 AM polprog: when the program exits unclean i do os.system("stty sane") to reset the terminal
08:31 AM polprog: and then print("the error message"(
08:31 AM polprog: but stty sane takes a while, so it first prints the message then clear the terminal :--D
08:34 AM rue_mohr: clear ? (the bash command)?
08:34 AM rue_mohr: or reset
08:36 AM polprog: sometimes not enough
08:37 AM rue_mohr: ok I'm away to work, see you later!
08:37 AM polprog: cheers
10:54 AM VanUnamed_ is now known as VanUnamed
04:49 PM polprog: https://polprog.net/rozne1/ircjunk/various/chem/kietch/iodine-iodide.html
06:40 PM rue_mohr: huh
09:34 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/ simplescreenrecorder-2024-11-12_13.53.36.mkv
09:35 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/simplescreenrecorder-2024-11-12_13.53.36.mkv
09:35 PM Tom_L: try again :/