#garfield Logs

Nov 15 2024

#garfield Calendar

07:54 AM rue_mohr: haha, yea, I missed something
08:09 AM rue_mohr: the 373 gates the data thru when its input is high, the signal I put it on is /wr
08:09 AM rue_mohr: active high vs active low
08:09 AM rue_mohr: this can be fixed by using a 374 instead
08:09 AM rue_mohr: but I didn't collect that many of them
08:09 AM rue_mohr: or adding an inverter
08:12 AM rue_mohr: polprog, well, the pdf search is a great start... needs some tuning...
08:21 AM rue_mohr: *.[Pp][Dd][Ff]
08:23 AM rue_mohr: store=/files/doc/pdf/
08:26 AM rue_mohr: this will be good
12:07 PM polprog: ah, my bad
12:07 PM polprog: capital letter file ext's are evil
12:07 PM polprog: though, find's -iname takes care of that
12:07 PM polprog: matches ignore case
12:08 PM polprog: rue_mohr: the board looks good!
06:12 PM rue_mohr: iname will take care of the extension?
06:12 PM rue_mohr: hmm, I suppose it would
06:12 PM rue_mohr: yea, I made a mistake on the baord, the IO needs to be 374 not 373
06:13 PM rue_mohr: latch polarity opposite
06:13 PM rue_mohr: the /wr line is normally high :/
09:25 PM rue_mohr: $PDFVIEWER ${results[$choice]} > /dev/null 2>&1 &
09:25 PM rue_mohr: my acroread cries about a lot of problems
09:31 PM rue_mohr: yay it works with filename spaces
09:39 PM Tom_L: but who would do such a thing?
09:41 PM Tom_L: did you see this one? http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/bolt_hole_pattern3.mkv
09:41 PM rue_mohr: yea!
09:42 PM rue_mohr: so, you could do one where you say, 'from the current location, cut a hole of dia n"!?
09:42 PM Tom_L: mill?
09:42 PM rue_mohr: there was a non-mass-manufacturing thing I was thinking of
09:42 PM rue_mohr: yea
09:43 PM Tom_L: it would take quite a few paramters
09:43 PM Tom_L: but anything is possible i suppose
09:43 PM rue_mohr: where, instead of drafting up your project, you just position the bit and give commands like that
09:43 PM rue_mohr: never have to make a cad file
09:43 PM rue_mohr: 1-offs
09:44 PM Tom_L: helix
09:44 PM rue_mohr: that would work
09:44 PM Tom_L: you'd have to know how tough the cutter was
09:44 PM rue_mohr: polprog, made the command line pdf search I was going to do up
09:44 PM Tom_L: those side downward moves are hard on cutters
09:45 PM rue_mohr: there are a few adjustments for how I want to use it, but this is awesome
09:45 PM Tom_L: python?
09:45 PM Tom_L: or script
09:45 PM rue_mohr: see, the problem with the web one is that it just gives me the comamnd to run on command line
09:45 PM rue_mohr: its done in bash
09:46 PM rue_mohr: just for extra crudeness :]
09:46 PM Tom_L: i did a bash script that dl the latest git pull, builds it and pushes a deb back to git
09:46 PM rue_mohr: bash has a nice thing called dialog, that makes a pretty dos like interface
09:46 PM rue_mohr: sudo-gui
09:46 PM rue_mohr: :]
09:46 PM Tom_L: and run it from a desk icon
09:47 PM rue_mohr: the bash script can run the pdf viewer direct
09:47 PM Tom_L: how do you call up dialog?
09:47 PM rue_mohr: so, not as much back and forth between browser and console
09:47 PM Tom_L: bash dialog/
09:47 PM Tom_L: ?
09:47 PM rue_mohr: its, a beast
09:47 PM rue_mohr: dialog --backtitle "pdfsearch v1.0" --stdout --clear --title "PDF Search" --inputbox "Search term?" 0 50 $term
09:47 PM rue_mohr: there is asking the user to enter what they want to search for
09:48 PM Tom_L: :)
09:48 PM Tom_L: i get nothing typing 'dialog'
09:48 PM Tom_L: not found
09:48 PM rue_mohr: on linux?
09:48 PM Tom_L: 12
09:49 PM rue_mohr: it might not be installed
09:49 PM rue_mohr: its usually used by the installer tho
09:49 PM Tom_L: what package?
09:49 PM rue_mohr: dialog
09:49 PM rue_mohr: :]
09:50 PM Tom_L: quite a list of options
09:50 PM rue_mohr: yep
09:52 PM Tom_L: cute
09:53 PM Tom_L: you gotta know the pdf name
09:53 PM rue_mohr: I want to strip off the directory component in the file list, looks like it'll take a few steps
09:53 PM rue_mohr: no
09:53 PM Tom_L: ?
09:53 PM Tom_L: how do you get a pdf list?
09:53 PM Tom_L: i may not have any on that pc...
09:53 PM rue_mohr: were using it in a find command, it will do a case insensitive strig search against the directory
09:54 PM rue_mohr: I enter something like 555, and it'll list all the stuff with 555 in the name
09:54 PM rue_mohr: like 2N5551.pdf
09:54 PM rue_mohr: polprog, linked the whole bash script
09:54 PM Tom_L: in all directories?
09:54 PM rue_mohr: <polprog> rue_mohr: https://polprog.net/rozne1/ircjunk/pdfsearch.sh
09:55 PM rue_mohr: no, polprog just had it search the current directory
09:55 PM Tom_L: ok
09:55 PM rue_mohr: I'm modifying mine, I added a variable for the directory store
09:55 PM rue_mohr: it works, but now I just want the name, not the full path
09:56 PM Tom_L: scripts are kinda fun
09:56 PM rue_mohr: :]
09:56 PM Tom_L: on my github thing, i move files around etc and eventually put one back on github
09:57 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/Untitled.png
09:58 PM Tom_L: mine builds a amd64 and crossbuilds an arm64 deb
09:58 PM rue_mohr: also want it to be able to take the search term on the command line as an argument, which wasn't my origional idea, but when polprog mentioned it, it made sense
09:58 PM rue_mohr: :]
09:58 PM Tom_L: i had been building on the rpi but figured out how to crossbuild
09:58 PM rue_mohr: I need to try swapping my 32 bit kernel out for a 64 bit
09:58 PM rue_mohr: it SHOULD work and just go into 32 bit mode for everything
09:59 PM rue_mohr: till I get some 64 bit binaries goin
09:59 PM Tom_L: you use grubcustomizer?
09:59 PM Tom_L: it helps..
09:59 PM rue_mohr: which might get me out of trouble with some dependeancy issues
09:59 PM rue_mohr: no, I use lilo, grub sucks
09:59 PM rue_mohr: ;]
09:59 PM Tom_L: i'm used to it
09:59 PM Tom_L: and don't need to relearn
10:00 PM rue_mohr: I can edit 1 line in a file, rerun lilo in 30 seconds and I'm done
10:00 PM Tom_L: i wish i could figure out how to get the bot to stay online better
10:01 PM Tom_L: it seems to die alot and not rejoin
10:01 PM rue_mohr: what did you use for the base code?
10:01 PM Tom_L: i'd have to look
10:02 PM Tom_L: i got my head wrapped around gcode right now
10:02 PM rue_mohr: yup
10:02 PM Tom_L: got ~50 subroutines for it
10:02 PM Tom_L: supporting inch & mm
10:03 PM Tom_L: i may come up with a few more things like the drill sub
10:04 PM Tom_L: git caught up on your sprayers?
10:07 PM rue_mohr: hell no
10:07 PM rue_mohr: I'm failing hard on it
10:07 PM rue_mohr: I'll get more done this weekend
10:07 PM rue_mohr: they need about 7 new heads and I dont have any assembled
10:20 PM rue_mohr: I wonder why polprog used read instead of sed
10:31 PM Tom_L: got a hole mill thing started
10:36 PM rue_mohr: heh
10:36 PM rue_mohr: what are the params?
10:37 PM Tom_dev: [x pos] [y pos] [safety height] [hole depth] [hole dia] [tool dia]
10:38 PM rue_mohr: ok, so you can have it do the jog for you
10:38 PM rue_mohr: can there be a relative vs absolute flag on the x y position?
10:38 PM Tom_L: you're gettin ahead of me :)
10:38 PM Tom_L: probably so
10:39 PM rue_mohr: in drawings you have seen, do they usually take everything from a single corner, or just off anywhere?
10:39 PM Tom_L: corner
10:39 PM Tom_L: too easy to get off using relative
10:40 PM rue_mohr: yep
10:40 PM Tom_L: and you can look at the code and get a better idea where it should be
10:41 PM Tom_L: relative might work for a hole grid etc easier
10:43 PM rue_mohr: not too often I do hole grids
10:43 PM rue_mohr: but quite often I "just need a hole x big, here"
10:44 PM rue_mohr: and its often too big for a drill or holesaw
10:45 PM rue_mohr: I cant see how polprog wrote this with read
10:45 PM rue_mohr: I smell ai help
10:45 PM Tom_L: if it's bigger than the tool diameter x2 you'd run it more times with an Y or X offset
10:46 PM Tom_L: or you'd get an island in the center
10:46 PM rue_mohr: it fires out
10:46 PM rue_mohr: or jams and breaks the bit off
10:47 PM rue_mohr: "
10:47 PM rue_mohr: Reads a single line from the standard input
10:47 PM rue_mohr: The line is split into fields as with word
10:47 PM rue_mohr: splitting, and the first word is assigned to the first NAME, the second
10:47 PM rue_mohr: word to the second NAME, and so on
10:48 PM rue_mohr: with any leftover words assigned to
10:48 PM rue_mohr: the last NAME
10:50 PM rue_mohr: -d delim continue until the first character of DELIM is read, rather than newline
10:51 PM rue_mohr: so -d is to separate lines
10:55 PM rue_mohr: no, bad manual, -d is for word splitting
11:37 PM rue_mohr: oh god, polprog I think I'v got it
11:37 PM rue_mohr: tell me if you want to try what I formulated
11:38 PM rue_mohr: I think I'm gonna love this, thanks!