#garfield Logs

Jan 05 2024

#garfield Calendar

03:50 AM polprog: remind me https://allegro.pl/oferta/kabel-rs232-zebra-motorola-symbol-cba-r23-s07zar-7499398893
04:03 AM polprog: the elusive 10 pin jack used to program the Motorola scanners
04:03 AM polprog: rue_mohr: is that spanish?
04:03 AM polprog: i dont speak spanish, only as much as you do :P
04:03 AM polprog: that looks like a ROM FSM project :)
07:32 AM rue_mohr: yea, you didn't catch it on twitter?
07:32 AM Tom_L: morning
07:32 AM rue_mohr: I was quite excited to see someone else doing one and made a bunch of programs for him
08:23 AM rue_mohr: http://paste.debian.net/1303143/
08:26 AM Tom_L: snow day here
03:59 PM Tom_L: hahaha, that V spring bending video has 1.6k views
06:47 PM rue_mohr: cool!!!
06:50 PM Tom_L: yours has quite a few too... forget how many
06:50 PM Tom_L: who'd have thought?
06:56 PM rue_mohr: ooooh, my, you want views?
06:56 PM rue_mohr: get a cnc to make a cup of tea...
06:57 PM rue_mohr: should I do it?
06:59 PM Tom_L: heh
07:00 PM Tom_L: i could care less about views but was surprised
07:01 PM rue_mohr: I got 2k camrea from amazon
07:02 PM rue_mohr: awe drat, its only wifi
07:03 PM rue_mohr: grrr
07:12 PM Tom_L: what'd you get that one for?
07:30 PM rue_mohr: find out where I put down the screwdriver
07:53 PM rue_mohr: damnit, no, just no, I wanted somethign standalone
07:53 PM rue_mohr: it was too many accounts and has too much signup
07:54 PM Tom_L: what now?
08:20 PM rue_mohr: I'm gonna return it
08:20 PM rue_mohr: its amazon
08:20 PM rue_mohr: not what I wanted
09:53 PM rue_mohr: Tom_L, !!!! you meant _MY_ video got 1k views!?!?!
09:53 PM Tom_L: i think so
09:54 PM rue_mohr: yea
09:54 PM rue_mohr: 1k
09:54 PM rue_mohr: in flipping 4 days!?
09:55 PM rue_mohr: thats insane for me
09:55 PM Tom_L: yeah i don't usually keep track but happened to be looking for one of mine and noticed it
09:56 PM Tom_L: which prompted me to look at yours again
09:56 PM rue_mohr: I think my best is 3k
09:56 PM Tom_L: i don't post them for that
09:56 PM Tom_L: i post to convey ideas
09:56 PM rue_mohr: no, but its crazy to see what people focus on
09:56 PM rue_mohr: I never ever expected more than 100 followers on twitter
09:57 PM Tom_L: my best is 14k
09:57 PM Tom_L: for my spindle motor
09:57 PM rue_mohr: I was kinda surprised when an instrumentation guy I know was visiting my shop and was taken by how well I draw schematics
09:57 PM rue_mohr: :]
09:57 PM Tom_L: yeah you're pretty good at that
09:57 PM rue_mohr: I was kinda like "er, ok"
09:57 PM rue_mohr: huh
09:57 PM Tom_L: i've seen some pretty crappy ones
09:58 PM rue_mohr: hahaha
09:58 PM Tom_L: that V spring thing was boreing as hell and not a good video
09:59 PM rue_mohr: :]
09:59 PM Tom_L: that one was mostly to show you
09:59 PM rue_mohr: one of my 'silly' twitter posts took off like crazy
09:59 PM Tom_L: no effort whatsoever
10:00 PM Tom_L: 1.7k now
10:00 PM Tom_L: ppl really must not have a life
10:00 PM rue_mohr: I'm quite sure they dont
10:01 PM Tom_L: the guide was key to the coil one
10:01 PM rue_mohr: I'm on call this weekend
10:01 PM Tom_L: get some sleep
10:01 PM Tom_L: :)
10:01 PM rue_mohr: If I made your version of spring I don't know how I'd test it right
10:01 PM Tom_L: how do you test yours?
10:02 PM Tom_L: field test a couple and tell them it's a test
10:02 PM rue_mohr: well, I have to get up at ~7 casue we know I have to be at work by 9 for a tech coming who needs to be let in
10:02 PM rue_mohr: they just go out there
10:02 PM Tom_L: yeah
10:02 PM rue_mohr: I'v never wear-tested anything
10:02 PM rue_mohr: they are impossible to work with
10:02 PM Tom_L: put a handfull out and see if they come back
10:03 PM rue_mohr: if you ask them for an address and phone number, they will reply "yes" if your lucky
10:03 PM rue_mohr: they might come back in 3 years after working for a week
10:03 PM Tom_L: most of them dumb as rocks?
10:03 PM rue_mohr: from the communications, you would think so
10:03 PM Tom_L: i guess they're smart enough not to sever their limbs
10:03 PM rue_mohr: should I build a shop/house or a spaceship
10:04 PM Tom_L: get a container and make a house
10:04 PM Tom_L: lots of those are popping up
10:04 PM rue_mohr: the advantage of a spaceship is that it could last longer, and I dont need a building permit
10:04 PM Tom_L: not practical
10:04 PM rue_mohr: isn't it?
10:04 PM rue_mohr: I mean, self contained system
10:05 PM rue_mohr: same size
10:05 PM rue_mohr: more complex
10:05 PM rue_mohr: If I'm gonna live 8k-10k years, it would be usefull for longer
10:05 PM Tom_L: from the sounds of it, you may need something sooner than later
10:06 PM rue_mohr: I do
10:06 PM rue_mohr: but I dont want to waste money on a house and wish I'd made a shi
10:06 PM rue_mohr: p
10:06 PM Tom_L: they put up a prefab house down the road here
10:06 PM rue_mohr: yep
10:06 PM rue_mohr: what I need is way too far out of the norm
10:06 PM rue_mohr: WAY TOO FAR
10:07 PM rue_mohr: also I dont have to worry about the property line setbacks if its a ship
10:07 PM rue_mohr: its only 55' wide
10:11 PM Tom_L: mine is 50 wide
10:11 PM Tom_L: 150 deep
10:12 PM rue_mohr: huh
10:13 PM rue_mohr: and your set back more than 10 feet?
10:23 PM Tom_L: yeah i'm sure
10:24 PM Tom_L: https://www.google.com/maps/@37.6739189,-97.3587379,3a,75y,288.76h,90t/data=!3m7!1e1!3m5!1sVL2EMwjuYeOuYTXUHfQefQ!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fpanoid%3DVL2EMwjuYeOuYTXUHfQefQ%26cb_client%3Dsearch.gws-prod.gps%26w%3D86%26h%3D86%26yaw%3D288.76016%26pitch%3D0%26thumbfov%3D100!7i16384!8i8192?entry=ttu
10:26 PM rue_mohr: one of them anyhow
10:27 PM rue_mohr: if I visit I'll bring you a fern
10:27 PM rue_mohr: ... it'd be greener...
10:27 PM Tom_L: obviously winter time
10:28 PM Tom_L: maybe spring
10:28 PM Tom_L: real early
10:31 PM rue_mohr: polprog, did you see the code?
10:31 PM Tom_L: how well do you know python?
10:32 PM rue_mohr: Monty? me and him go way back
10:32 PM rue_mohr: heh
10:32 PM rue_mohr: enough to get by
10:32 PM Tom_L: was looking at some code trying to figure out if or how to use try: except: except
10:33 PM Tom_L: more than one exception
10:33 PM rue_mohr: I dont use try and expect
10:33 PM Tom_L: google said you could but i couldn't figure it out
10:33 PM Tom_L: if elif?
10:33 PM rue_mohr: well, lets ask chatgpt
10:33 PM rue_mohr: hold on
10:35 PM rue_mohr: http://paste.debian.net/1303210/
10:35 PM rue_mohr: this is what it says
10:35 PM Tom_L: so you have to name the exception
10:36 PM Tom_L: are those just names or result codes from some failed event?
10:36 PM rue_mohr: except Exception as e:
10:36 PM rue_mohr: no
10:37 PM Tom_L: https://paste.debian.net/1303159/
10:38 PM rue_mohr: its a language model, it translate languages
10:38 PM rue_mohr: even programming ones
10:38 PM Tom_L: i wanted a [:5] [:4] [:3]
10:38 PM rue_mohr: is that python, or soemthing that looks like it?
10:38 PM Tom_L: the [:4] [:3] works
10:38 PM Tom_L: python
10:38 PM rue_mohr: rewind
10:39 PM rue_mohr: what do you want the code to do, break up a version number from....
10:39 PM Tom_L: yeah but it's got some crap on the end that needs to be discarded
10:39 PM Tom_L: but it's not always the same format
10:39 PM rue_mohr: ok, whats the text from
10:39 PM Tom_L: ie: 2.9.2.14a;lksdjfa;lshdf
10:40 PM Tom_L: linuxcnc versions
10:40 PM rue_mohr: sure, but what does it get that from, a header file?
10:40 PM rue_mohr: what do you read or run to get that
10:40 PM Tom_L: uname -a then apt-cache policy linuxcnc-uspace
10:41 PM rue_mohr: To find out the version of LinuxCNC installed on your system, you can use the following command in the terminal:
10:41 PM rue_mohr: bash
10:41 PM rue_mohr: Copy code
10:41 PM rue_mohr: linuxcnc --version
10:41 PM rue_mohr: This command will display the version information of LinuxCNC installed on your system. If the linuxcnc command is not found, you can try using linuxcnc-related commands like axis:
10:41 PM rue_mohr: bash
10:41 PM rue_mohr: Copy code
10:41 PM rue_mohr: axis --version
10:42 PM rue_mohr: is it right???
10:42 PM Tom_L: i dunno, he parses that what i gave you
10:42 PM Tom_L: and displays it as part of his program
10:42 PM Tom_L: i was just messin with it a bit
10:42 PM rue_mohr: maybe its an overly complex way of doing it
10:43 PM Tom_L: otherwise sometimes it displays way too much
10:43 PM Tom_L: like i showed above
10:43 PM rue_mohr: hmm
10:44 PM rue_mohr: https://paste.debian.net/1303211/
10:44 PM rue_mohr: it missed my question
10:44 PM Tom_L: sometimes it has like 2.9.2.14~pre0 or ~pre1 etc
10:45 PM Tom_L: https://github.com/jethornton/mesact/blob/master/mesact/src/libmesact/startup.py
10:45 PM rue_mohr: and you just want the number right?
10:45 PM Tom_L: line 78
10:45 PM Tom_L: starts
10:45 PM rue_mohr: yo just want 2.9.2.14 ?
10:45 PM Tom_L: no i was just playing with it trying to getmore than 2 exceptions
10:45 PM Tom_L: i got the 2.9.2.14 already
10:45 PM Tom_L: from what i pasted
10:45 PM rue_mohr: ok, but what result do you want?
10:46 PM Tom_L: that but in all cases
10:46 PM Tom_L: and the version varies
10:46 PM Tom_L: i'm sure he's solved it, i was just looking at it
10:47 PM Tom_L: for the ~pre1 one he searched for the + because right after the ~pre1 was the +
10:47 PM rue_mohr: https://paste.debian.net/1303212/
10:48 PM rue_mohr: this is chatgpt, trust it as far as you can throw it, which you cant do, becasue its not physical
10:48 PM Tom_L: i think he settled on the first 3 digits which is fine for what he's doing
10:49 PM rue_mohr: https://paste.debian.net/1303213/
10:49 PM rue_mohr: the first 3
10:50 PM rue_mohr: I dont think thats right tho
10:50 PM Tom_L: like i said, it's working i was just trying something
10:51 PM rue_mohr: https://paste.debian.net/1303214/
10:51 PM rue_mohr: this looks closer
10:52 PM Tom_L: for the 2nd except to work you'd have to have the system error the first one throws out and it doesn't always throw out an error
10:52 PM rue_mohr: the regex is a better way to do it
10:52 PM Tom_L: so the 2nd one would never execute
10:52 PM Tom_L: it's his code and i'm not gonna try to change it
10:53 PM rue_mohr: try that last one
10:53 PM rue_mohr: its just a contained function
10:56 PM rue_mohr: zippo:/files/programming/python# python3 versrx.py
10:56 PM rue_mohr: First three parts of the version number: 6.3.5
10:56 PM rue_mohr: gimme a string
10:57 PM rue_mohr: its working here
10:57 PM rue_mohr: python3 versrx.py
10:57 PM rue_mohr: First three parts of the version number: 2.9.2
10:57 PM Tom_L: Installed: 1:2.9.2.14.gb3a390692b
10:57 PM Tom_L: Installed: 2.9.0~pre0+git20220402.2500863908-4
10:57 PM rue_mohr: zippo:/files/programming/python# python3 versrx.py
10:57 PM rue_mohr: First three parts of the version number: 2.9.2
10:58 PM rue_mohr: zippo:/files/programming/python# python3 versrx.py
10:58 PM rue_mohr: First three parts of the version number: 2.9.0
10:59 PM rue_mohr: https://paste.debian.net/1303214/
10:59 PM rue_mohr: that code
10:59 PM Tom_L: yeah i was looking at that
10:59 PM rue_mohr: specifically python 3
10:59 PM rue_mohr: but its working
11:00 PM rue_mohr: with no fancy stuff
11:09 PM Tom_L: i'll stick to gcode :)
11:17 PM rue_mohr: chatgpt answers are cursed the further you get from the "there is an online tutorial for exactly that question"