#garfield Logs
Nov 30 2024
#garfield Calendar
02:20 AM rue_mohr: yay, the home automation controller is working again
02:35 AM rue_mohr: new computer,
02:35 AM rue_mohr: changed the avr from an rs232 to a usb-serial
02:35 AM rue_mohr: changed the firmware baud rate to 9600 and updated with some new commands
02:35 AM rue_mohr: modified the PC side software and its all working!
02:35 AM rue_mohr: I'm considering changing the message format to json
02:35 AM rue_mohr: so, with the new commands I can put up a bell for the driveway detector
02:25 PM rue_mohr: polprog, if there is only 1 result, should it open it?
03:05 PM polprog: hmm
03:05 PM polprog: i was thinking about that
03:05 PM polprog: but for me it's more important to see the filename to know if i got the search word right or if i wanna retry
03:06 PM rue_mohr: and a confirm would be more pointless dilogs.
03:06 PM polprog: nah, if you see one result you just press tab and enter to do a cancel
03:06 PM polprog: and retype the query
03:06 PM rue_mohr: I'm lovin this script by the way
03:07 PM rue_mohr: ah, what if
03:07 PM polprog: thank you :)
03:07 PM rue_mohr: if you specify the search on the command line and there is only 1 result...
03:07 PM polprog: ah
03:07 PM polprog: like that
03:07 PM polprog: hm, ok that makes sense
03:08 PM rue_mohr: its sort of a toss-up for me, if there is only 1 result and its the wrong one, its just as much to close the wrong pdf, than it would be to deal with finding the right file
03:08 PM rue_mohr: did you end up taking on some of my mods?
03:09 PM polprog: to the script?
03:09 PM polprog: not yet
03:09 PM polprog: i wasnt doing anything with it, i need to consolidate my book repository
03:09 PM rue_mohr: https://github.com/ruenahcmohr/pdfsearch
03:09 PM rue_mohr: you may not have to
03:09 PM polprog: i tried your version its pretty cool
03:09 PM rue_mohr: I think you can specify multiple directories
03:09 PM rue_mohr: I have not tried it
03:10 PM polprog: to find? maybe not but thats just a case of running find a few times with a bash for loo
03:10 PM polprog: loop, even
03:10 PM rue_mohr: no, feed it a list
03:10 PM polprog: IFS=":", for dir in $store; do .... done
03:10 PM rue_mohr: not even
03:10 PM rue_mohr: store=/morfiles/doc/pdf/
03:11 PM polprog: ah you mean it does a deep search of all subdirs
03:11 PM polprog: yeah mine does that too
03:11 PM rue_mohr: yea, but
03:11 PM rue_mohr: I think you can give find more than one search dir
03:11 PM polprog: hm yea if i were to put that script into /usr/local/bin id use your version
03:12 PM polprog: man find shows that it takes one path only
03:12 PM rue_mohr: find /tmp/*.png /files/doc/*.pdf |less
03:12 PM rue_mohr: it works
03:12 PM rue_mohr: oh
03:12 PM rue_mohr: I bent it wrong
03:13 PM polprog: oh
03:13 PM rue_mohr: find git/ gimp/
03:13 PM rue_mohr: yea, it worked
03:13 PM polprog: find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...]
03:13 PM polprog: right, there are "..." there
03:13 PM rue_mohr: git/blockfinder/.git/hooks/update.sample
03:13 PM rue_mohr: git/blockfinder/.git/hooks/push-to-checkout.sample
03:13 PM rue_mohr: git/blockfinder/.git/hooks/applypatch-msg.sample
03:13 PM rue_mohr: git/blockfinder/.git/description
03:13 PM rue_mohr: git/blockfinder/.git/branches
03:13 PM rue_mohr: gimp/
03:13 PM rue_mohr: gimp/2.10
03:13 PM rue_mohr: so just a space seperated list
03:13 PM rue_mohr: of dirs
03:15 PM polprog: right
03:15 PM polprog: that would work then
03:16 PM * polprog just prepared another sample with sodium persulfate
03:16 PM polprog: The hotplate set to "1" is still too hot
03:16 PM polprog: i need something that will keep the solution in the beaker at around 45 deg
03:16 PM polprog: deg C
03:16 PM polprog: hotplate even on 1 heats up to 120 C
03:17 PM rue_mohr: see, now you can put off fixing your archive for a few mroe years
03:17 PM polprog: nah i just need to do a few rsyncs between the ~/books/ directory on the computers
03:17 PM polprog: you would think after all these years of using 4 different computers Id set up a NAS or NFS
03:17 PM polprog: nu uh
03:17 PM rue_mohr: YEARS
03:18 PM polprog: always too busy :/ i got a nas but it only does SMBv2
03:18 PM rue_mohr: stay away from NFS!
03:18 PM polprog: why?
03:18 PM rue_mohr: nfsmount does not detect version diffrences of nfs servers, if they do not match it currupts your files
03:18 PM polprog: i mean, apart from the fact that
03:18 PM polprog: oh
03:18 PM polprog: its more of a can of worms than i thought
03:18 PM rue_mohr: I'v been using sshfs latley, but its really heavy
03:19 PM polprog: sshfs is ok for me
03:19 PM polprog: the alternative is samba
03:19 PM rue_mohr: samba sucked, but it did sort of work
03:20 PM polprog: plan 9 bunch did it relatively OK
03:20 PM polprog: but plan 9 as an OS is... well it is experimental for a reason
03:20 PM polprog: you can check email and write some C and browse the (very simple) web
03:20 PM rue_mohr: ;]
03:23 PM polprog: well you can write some go too
03:23 PM polprog: did i show you my microscope camera?
03:25 PM rue_mohr: no
03:25 PM rue_mohr: wait, I think I have a microscope camera
03:25 PM rue_mohr: wait, I have a microscope
03:25 PM polprog: https://ibb.co/BsrpTNj
03:26 PM rue_mohr: wtf was I using my camera to try to take a picture down an eyepeice for?
03:26 PM rue_mohr: nice!
03:26 PM rue_mohr: what did you use to get to the die?
03:26 PM polprog: i have a quartz windowed 8051 :)
03:27 PM rue_mohr: ah!
03:27 PM polprog: i ummounted the binocular piece from the microscope
03:27 PM polprog: and just laid the camera on the hole
03:27 PM polprog: (i now have a proper mounting element, friend is printing it)
03:28 PM polprog: so the nice thing about this setup is that the camera is closer to the microscope lens than the eyepieces were
03:28 PM polprog: so the lens has a focal point farther than normally
03:28 PM polprog: so its higher from the specimen than normally
03:28 PM polprog: so i can illuminate it easier
03:29 PM rue_mohr: choice=1
03:29 PM rue_mohr: # Show the choice menu. this returns a single number that you chose
03:29 PM rue_mohr: if [ $? -ne 1 ]; then
03:29 PM rue_mohr: choice=$(echo dialog --backtitle \"pdfsearch v2.0\" --stdout --menu \"Search results for \\\"$term\\\":\" 0 0 $i "$listopts" | sh)
03:29 PM rue_mohr: fi;
03:29 PM rue_mohr: ....
03:30 PM rue_mohr: if [ $# -ne 0 ]; then
03:30 PM rue_mohr: I need to stitch...
03:30 PM rue_mohr: oh eq
03:31 PM polprog: bbl
03:31 PM rue_mohr: oh
03:31 PM polprog: i gotta get a package
03:31 PM rue_mohr: choice=1
03:31 PM rue_mohr: # Show the choice menu. this returns a single number that you chose
03:31 PM rue_mohr: if [ $i -eq 1 ]; then
03:31 PM rue_mohr: choice=$(echo dialog --backtitle \"pdfsearch v2.0\" --stdout --menu \"Search results for \\\"$term\\\":\" 0 0 $i "$listopts" | sh)
03:31 PM rue_mohr: fi
03:32 PM rue_mohr: ne
03:45 PM polprog: back
03:48 PM rue_mohr: hah, I cant reverse the logic operators for the if
03:48 PM rue_mohr: if [$i -ne 1 -a $quick -eq 1]; then
03:48 PM rue_mohr: # Show the choice menu. this returns a single number that you chose
03:48 PM rue_mohr: choice=$(echo dialog --backtitle \"pdfsearch v2.0\" --stdout --menu \"Search results for \\\"$term\\\":\" 0 0 $i "$listopts" | sh)
03:48 PM rue_mohr: fi
03:49 PM rue_mohr: its not right
03:54 PM rue_mohr: if [ $quick -eq 1 -a $i -eq 1 ]; then echo Hi ; else
03:55 PM rue_mohr: so that should be if [ $quick -ne 1 -o $i -ne 1 ];
03:57 PM rue_mohr: it is!
03:57 PM rue_mohr: yay
03:57 PM rue_mohr: brain fail
03:58 PM rue_mohr: polprog, One other change I pondered is having it keep up the list when you open a document
03:59 PM rue_mohr: so, if its not the variant of the doc you want, you can not loose your place in the list
04:02 PM polprog: hm
04:02 PM polprog: that should be doable with a small change to the fsm
04:04 PM rue_mohr: I'm going to change it to pdfSearch.sh for easy tab completion
04:21 PM rue_mohr: https://github.com/ruenahcmohr/pdfsearch
04:21 PM rue_mohr: now with screen shots
04:25 PM Tom_L: tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/thread_mill2.mkv
04:27 PM Tom_L: keeps chopping off the http:
04:28 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/thread_mill2.mkv
04:28 PM rue_mohr: my browser wont do it, I ahve to use the url command line
04:29 PM rue_mohr: nice lead-in
04:30 PM Tom_L: the od one is wrong though
04:30 PM Tom_L: been working on that
04:30 PM Tom_L: should be on the ouside ehh?
04:30 PM rue_mohr: oh, yea, come tot hink of it you didnt' change the size
04:31 PM rue_mohr: ok I need to get going today or my wekeend will just be over
04:31 PM rue_mohr: still groggy
04:31 PM rue_mohr: I got the home automation computer back up
04:31 PM rue_mohr: still some work to be done
04:32 PM rue_mohr: hopefully it'll be good for another 15 years
04:32 PM Tom_L: so you'll have coffee & burnt toast in the morning now?
04:33 PM rue_mohr: hah
04:33 PM rue_mohr: still working on the new tea machine
04:34 PM rue_mohr: did you see? its a commercial BUNN coffee machine
04:34 PM Tom_L: no but i've seen those
04:35 PM rue_mohr: they pull like a million watts
04:35 PM rue_mohr: idle
04:35 PM rue_mohr: so, there is a long list of mods to make