#hazzy Logs

Oct 03 2019

#hazzy Calendar

12:00 AM Lcvette: designer changed for some reason?
12:00 AM Lcvette: missing alot of things
12:00 AM TurBoss: maybe broke widget
12:00 AM TurBoss: give me a sek
12:00 AM Lcvette: seems its designer is broke
12:09 AM Lcvette: do i need to checkout anything in qypyvcp?
12:09 AM TurBoss: yes both
12:09 AM * Lcvette uploaded an image: Screenshot_2019-10-03_00-59-36.png (40KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/iEWoTPrhvcIKIOOPwbkuGAOj >
12:09 AM TurBoss: great
12:09 AM TurBoss: same error?
12:09 AM TurBoss: ook I saw
12:09 AM TurBoss: ☹️
12:09 AM * Lcvette uploaded an image: Screenshot_2019-10-03_01-00-28.png (59KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/zfQXOrncaUNUPDwpKqNPKCCT >
12:10 AM TurBoss: get latest qtpyvcp
12:10 AM TurBoss: grom kraken
12:11 AM Lcvette: \o/
12:11 AM TurBoss: great!
12:11 AM TurBoss: grom is happy
12:12 AM * Lcvette uploaded an image: Screenshot_2019-10-03_01-05-45.png (78KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/qYcDHygEmMwFqfhhXKVhCNUC >
12:12 AM Lcvette: whose grom?
12:12 AM Lcvette: grom baenre?
12:12 AM TurBoss: but
12:12 AM TurBoss: still bugs inside
12:12 AM Lcvette: so what i ned to do now?
12:13 AM TurBoss: duno
12:14 AM Lcvette: i see it in probe basic so does that mean i don't need to add it in designer?
12:14 AM TurBoss: ABCUVWXYZR is wrong
12:14 AM TurBoss: run the simulator
12:14 AM TurBoss: you got from the kraken
12:14 AM TurBoss: * you got it from the kraken
12:15 AM Lcvette: its working
12:15 AM Lcvette: but
12:16 AM TurBoss: its wrong
12:16 AM TurBoss: I know
12:16 AM TurBoss: lol
12:16 AM Lcvette: seems its writing to wrong offsets
12:16 AM TurBoss: don't use in production yet
12:16 AM Lcvette: \o/
12:16 AM Lcvette: lol
12:16 AM TurBoss: \o/
12:16 AM Lcvette: major breakthrough
12:16 AM Lcvette: what did you do?
12:16 AM Lcvette: how did you do it?
12:17 AM TurBoss: we where using the filename sim.var
12:17 AM TurBoss: but it requires the abosulute file path
12:17 AM Lcvette: :o
12:18 AM Lcvette: whats that?
12:18 AM TurBoss: eg. /home/turboss/linuxcnc/config/sim/sim.var
12:18 AM TurBoss: the file with the path
12:18 AM Lcvette: the whole file path?
12:18 AM Lcvette: ah
12:18 AM Lcvette: maybe thats why mine worked
12:19 AM Lcvette: i use absolute file paths in my ini
12:21 AM Lcvette: can the columns be moved around to show xyzabr
12:21 AM Lcvette: ?
12:21 AM TurBoss: colum header labels yes
12:21 AM TurBoss: but doesn't make effect
12:21 AM TurBoss: is bugged
12:22 AM Lcvette: ok
12:22 AM Lcvette: \o/ this is fantastic progress!
12:22 AM TurBoss: offset table is a copy of the tool table and some features still not working
12:22 AM Lcvette: ah
12:22 AM Lcvette: lol
12:23 AM TurBoss: is simply the same both show a table and both read a file lul
12:23 AM Lcvette: yeah
12:23 AM Lcvette: easy bugs to fix you think?
12:23 AM TurBoss: yes
12:23 AM TurBoss: but now i'm blind
12:23 AM TurBoss: I should refresh
12:24 AM Lcvette: yes
12:24 AM TurBoss: i searched
12:24 AM Lcvette: get soem sleep you are the offset warrior!
12:24 AM Lcvette: \o/ hurray!
12:24 AM TurBoss: \o/
12:24 AM TurBoss: I'm the sleep offset warrior :(
12:24 AM Lcvette: lol
12:24 AM Lcvette: mne too
12:25 AM Lcvette: night bud!
12:25 AM TurBoss: night
04:58 AM jthornton: morning
05:08 AM TurBoss: good morning JT
05:08 AM TurBoss: jthornton: do you use wifi on your pi 4?
05:08 AM TurBoss: mine is instable :(
05:09 AM jthornton: yes, I use wifi to ssh into it
05:15 AM hazzy-m: morning
05:15 AM TurBoss: o/
05:16 AM TurBoss: hazzy hazzy hazzy I got the fswatcher to work
05:16 AM TurBoss: \o/
05:20 AM hazzy-m: Hip hip hurray!
05:20 AM hazzy-m: Will check out after a shower!
05:21 AM TurBoss: absolute vodka
05:21 AM TurBoss: *path
05:23 AM Tom_L: TurBoss, got the offsets working?
05:23 AM TurBoss: just the read part
05:23 AM TurBoss: still wip
05:23 AM Tom_L: https://github.com/LinuxCNC/linuxcnc/blob/master/share/axis/tcl/axis.tcl
05:23 AM Tom_L: there's the axis code i believe
05:23 AM Tom_L: they set the offsets in there somewhere
05:24 AM TurBoss: they do g10 L20 P1 X0
05:26 AM TurBoss: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/axis/scripts/axis.py#L2690
05:28 AM Tom_L: ahh ok the other must be the front end for that file
05:31 AM TurBoss: currently in designer you can choose wich columns to show but the table still shows the ABCXYZUVWR
05:32 AM TurBoss: Tom_L: you pasted a link about the params table
05:32 AM TurBoss: can't find
05:32 AM Tom_L: the first one?
05:32 AM Tom_L: the glade widget?
05:32 AM TurBoss: the other day
05:33 AM Tom_L: http://tom-itx.no-ip.biz:81/~tom-itx/irc/logs/%23hazzy/2019-09-30.html
05:33 AM Tom_L: very bottom
05:33 AM TurBoss: no from the docs
05:33 AM Tom_L: oh
05:33 AM TurBoss: the value of the params
05:33 AM TurBoss: I can't find
05:33 AM TurBoss: :)
05:34 AM Tom_L: http://linuxcnc.org/docs/2.8/html/gcode/g-code.html#gcode:g54-g59.3
05:34 AM Tom_L: http://linuxcnc.org/docs/2.8/html/gcode/coordinates.html#cha:coordinate-system
05:34 AM Tom_L: maybe one of those?
05:35 AM TurBoss: yes thanks
05:35 AM TurBoss: X Y Z A B C U V W R
05:35 AM TurBoss: thats the correct order
05:35 AM Tom_L: yeah
05:36 AM Tom_L: 3 regular axis, 3 rotary then the rest
05:46 AM Not-5e4d: [02qtpyvcp] 07TurBoss pushed 031 commit to 03offset_table [+0/-0/±2] 13https://git.io/JecBT
05:46 AM Not-5e4d: [02qtpyvcp] 07TurBoss 03d9097a4 - set the data in the order that is stored on params file
05:49 AM * hazzy-m sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/prlyvKZdIYVwUyzFaCuFAMWC >
05:49 AM * hazzy-m broke it
05:49 AM TurBoss: hmmm
05:49 AM TurBoss: lul
05:50 AM TurBoss: how?
05:50 AM hazzy-m: I get that when I try to edit any of the cells in the offset table
05:51 AM TurBoss: ah
05:51 AM hazzy-m: is that supposed to be working yet?
05:51 AM TurBoss: no edit posible yet
05:51 AM hazzy-m: it looks great!
05:51 AM TurBoss: no
05:51 AM TurBoss: just reads the file
05:52 AM TurBoss: try to change some offset from mdi or somth
05:52 AM TurBoss: * try to change some offset from mdi or somthing
05:58 AM hazzy-m: sweet!
05:58 AM hazzy-m: I guess I must have had thepath wrong when Itried watching before
05:59 AM TurBoss: absolute path fixed
05:59 AM TurBoss: maybe diferent workdir
06:03 AM * hazzy-m heads to work
06:03 AM TurBoss: bye
06:03 AM hazzy-m: only one week untill the shows start, things are getting crazy lol
08:52 AM Lcvette: morning
08:55 AM TurBoss: hello
08:55 AM Lcvette: offset hero \o/
08:55 AM Lcvette: lol
08:56 AM TurBoss: 😇
09:07 AM Lcvette: turboss fixed the order
09:07 AM Lcvette: \o/
09:07 AM TurBoss: the designer option to show hide columns still broken
09:10 AM Lcvette: offset_table.py
09:10 AM Lcvette: ?
09:13 AM TurBoss: there are 2
09:13 AM TurBoss: one in qtpyvcp/plugins and other in widgets
09:14 AM Lcvette: both are active?
09:15 AM TurBoss: one is the responsible of get the data and the other is the table
09:15 AM TurBoss: the one in plugin gets the data from the file
09:15 AM Lcvette: ah
09:15 AM TurBoss: and the widget is a table that uses that pulgin to get the data
09:17 AM TurBoss: Lcvette: how do I set R fom mdi?
09:19 AM Lcvette: sek
09:21 AM Lcvette: think its 5220
09:22 AM Lcvette: G10 L2 P#
09:23 AM Lcvette: G10 L2 P#5220 X[#<c1x> + #<workspace_x>] Y[#<c1y> + #<workspace_y>]
09:23 AM Lcvette: thats how i did it in probing
09:23 AM Lcvette: add R to the end of with the angle
09:24 AM TurBoss: R not allowed
09:25 AM Lcvette: R works in probing and sets the rotation angle
09:25 AM Lcvette: sek im gonna test in probing to see if it sets it and records it in the offsets table
09:32 AM TurBoss: Lcvette: I noticed that the var file stores the negative value of the offset is that by any reason?
09:33 AM Lcvette: in the case of z, o is as high as it gets
09:33 AM Lcvette: in normal conditions
09:33 AM Lcvette: so all z offsets will be negative
09:33 AM Lcvette: or should be
09:33 AM TurBoss: but in dro they are positive
09:33 AM Lcvette: in most cases x and y home to minus directions so any offsets will be positive numbers
09:34 AM Lcvette: not z
09:34 AM Lcvette: in xyzab sim z will ALWAYS be a negative offset
09:35 AM Lcvette: and x and y will always be positive
09:35 AM Lcvette: due to the nature of where machine home is in that sim
09:35 AM Lcvette: if the machine home and made middle travel of x and y home then it could have positive and negative offsets
09:35 AM * TurBoss uploaded an image: Captura de pantalla de 2019-10-03 16-29-41.png (25KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/HPKjzEpAyqprNibVueilisZR >
09:36 AM TurBoss: spot the bug
09:36 AM Lcvette: :o
09:36 AM TurBoss: find*
09:36 AM Lcvette: 59.2 and 59.1 need switching
09:36 AM Lcvette: i fix now!
09:36 AM TurBoss: \o/
09:36 AM TurBoss: checkout master first
09:37 AM TurBoss: Lcvette: ^
09:37 AM TurBoss: so you commit doesn't go to the offset branch
09:37 AM * Lcvette uploaded an image: Screenshot_2019-10-03_10-31-15.png (18KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/FJaUobSNQXLWbIFHNhXbnLum >
09:37 AM Lcvette: rotation offset is set but not showing in the offset table
09:37 AM Lcvette: notice the origin has been rotated
09:38 AM * TurBoss uploaded an image: Captura de pantalla de 2019-10-03 16-32-02.png (29KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/nFoFyJNCdiyBtJeYmfqeAENw >
09:38 AM Lcvette: wait maybe it has not been rotated
09:39 AM TurBoss: R should show C
09:39 AM TurBoss: thats the bug
09:39 AM TurBoss: R column
09:39 AM TurBoss: * R is showing C
09:45 AM * Lcvette uploaded an image: Screenshot_2019-10-03_10-39-32.png (43KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/DauRvfiPHHowdrvawGzPWHpJ >
09:45 AM Lcvette: is working
09:45 AM * Lcvette uploaded an image: Screenshot_2019-10-03_10-39-18.png (16KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/xhcoxLNtyPZbfEHqschAQWEA >
09:46 AM Lcvette: shows r in degrees of rotation
09:46 AM Lcvette: turboss ^^^
09:46 AM TurBoss: hurray!!!!
09:46 AM Lcvette: hurray
09:46 AM TurBoss: offset 2 and 6 are busted
09:46 AM TurBoss: i figured
09:47 AM Lcvette: rotsation i think must have x y and r when submitted into mdi
09:47 AM Lcvette: maybe xyz and r
09:50 AM Not-5e4d: [02qtpyvcp] 07TurBoss pushed 031 commit to 03offset_table [+0/-0/±1] 13https://git.io/JeczP
09:50 AM Not-5e4d: [02qtpyvcp] 07TurBoss 03a1539ca - fix wrong index
09:50 AM TurBoss: pushng
09:50 AM TurBoss: tis fixes offset 2 and 6
09:50 AM Lcvette: yes to change r format must be g10 l2 p2 x1 y1 z-1 r45
09:51 AM TurBoss: trying
09:51 AM Lcvette: i can change offset tabole with that comand r included
09:52 AM TurBoss: hurrauy!!!!!
09:52 AM TurBoss: nannananana
09:52 AM Lcvette: hurray
09:53 AM Lcvette: \o/
09:53 AM TurBoss: also sort doesn't help
09:53 AM Lcvette: lol
09:53 AM Lcvette: :o
09:53 AM Lcvette: offset button bug fix is pushed
09:53 AM TurBoss: I should diable sort?
09:54 AM TurBoss: well done!
09:54 AM TurBoss: so we don't mess with th eoffset table
09:54 AM Lcvette: dunno
09:55 AM Lcvette: the offset order on newest offswet branch is sorting?
09:55 AM Lcvette: put row 3 at the bottom because it had a stored offset
09:55 AM Lcvette: i would remove sort
09:55 AM Lcvette: offsts should remain in their respective order
09:55 AM TurBoss: I should disable sort feature?
09:55 AM TurBoss: ok
09:55 AM Lcvette: G54, g55, g56 etc
09:56 AM TurBoss: that tiii
09:56 AM TurBoss: * that too
09:56 AM Lcvette: getting close
09:56 AM TurBoss: step by step
09:57 AM Not-5e4d: [02qtpyvcp] 07TurBoss pushed 031 commit to 03offset_table [+0/-0/±1] 13https://git.io/Jeczy
09:57 AM Not-5e4d: [02qtpyvcp] 07TurBoss 03be6cfc2 - disable sorting
09:58 AM Lcvette: one way or another
09:58 AM Lcvette: step by step working undercover
09:59 AM TurBoss: so
09:59 AM Lcvette: fletch
09:59 AM TurBoss: what whe do with edit
09:59 AM Lcvette: another chevy chase movie
09:59 AM Lcvette: like caddy shack
09:59 AM Lcvette: nananananana
09:59 AM Lcvette: lol
09:59 AM Lcvette: \o/
09:59 AM TurBoss: \o\ \o\
10:00 AM TurBoss: ~o~
10:01 AM Lcvette: Hahahah
10:01 AM roguish[m]: Lcvette: you're dating yourself with the movie references......
10:02 AM Lcvette: I'm 44
10:02 AM roguish[m]: yeah, right.
10:03 AM * TurBoss uploaded an image: Captura de pantalla de 2019-10-03 16-57-33.png (6KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/YqusYvfHNlXcyWISWWvMzhXs >
10:04 AM TurBoss: Lcvette: what does re-read and reload?
10:04 AM Lcvette: Caddyshack because I'm a golfer and it's a classic and Fletch was an 80's show
10:04 AM Lcvette: Dunno
10:04 AM Lcvette: Garbage
10:04 AM TurBoss: new buttons?
10:04 AM Lcvette: Was what was on gmoccapy maybe?
10:04 AM TurBoss: duno
10:05 AM roguish[m]: ok, gotta run to a client meeting. hopefully they will continue the project....$$$$$$$$$$
10:05 AM Lcvette: roguish Born 75
10:05 AM roguish[m]: ttfn
10:05 AM Lcvette: Yeah maybe same as tooltable?
10:06 AM TurBoss: Lcvette: do you need all thoose buttons?
10:06 AM Lcvette: Will be editable in the table?
10:06 AM TurBoss: duno
10:06 AM TurBoss: it will?
10:06 AM Lcvette: Can it?
10:06 AM TurBoss: it could....
10:06 AM Lcvette: If so, what buttons will we need?
10:07 AM TurBoss: clear and save?
10:07 AM Lcvette: Clear, reload, save
10:07 AM Lcvette: ?
10:07 AM TurBoss: ok
10:07 AM Lcvette: Reload to save the entries to var file?
10:08 AM TurBoss: ok now I need to figure how to highligh t the active one
10:08 AM Lcvette: Maybe that would issue a g10 l2 p# x y z r
10:08 AM TurBoss: ok
10:08 AM TurBoss: reload if you broke
10:08 AM Lcvette: How did tool table do?
10:08 AM Lcvette: Linked to active tool?
10:08 AM TurBoss: :P
10:10 AM TurBoss: there is a way
10:10 AM * Lcvette uploaded an image: Screenshot_2019-10-03_11-04-33.png (113KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/IiGTXaxYBxjSORyrOTUCqYKJ >
10:10 AM Lcvette: current tool color
10:11 AM Lcvette: ?
10:11 AM Lcvette: current offset color
10:11 AM Lcvette: ?
10:12 AM TurBoss: yes
10:12 AM TurBoss: xD
10:13 AM Lcvette: \o/
10:13 AM Lcvette: i did it?"
10:13 AM Lcvette: :D
10:13 AM Lcvette: was helpful?
10:14 AM TurBoss: lol
10:14 AM Lcvette: not so much? :(
10:18 AM Tom_L: you shouldn't use 5220 as i see above
10:18 AM Tom_L: valid numbers for it are 1 thru 9
10:19 AM Tom_L: it sets the active work offset
10:19 AM Lcvette: correct
10:19 AM Lcvette: which is why we do use it
10:20 AM Lcvette: in probing routine
10:20 AM Lcvette: to set the correct work offset
10:21 AM Lcvette: turboss is not using it in the offset table that line was from the probe routine and is in ALL probe routines
10:21 AM Lcvette: its how you select the offset being updated
10:21 AM Tom_L: ok
10:22 AM Tom_L: is it updated any time an active work offset is set?
10:22 AM Lcvette: it updates based on the active work offwt selected
10:22 AM Lcvette: which is known by pulling in #5220
10:22 AM Lcvette: without it it would not know what offset to update
10:23 AM Tom_L: alright
10:23 AM Lcvette: G10 L2 P#5220 X[#<c1x> + #<workspace_x>] Y[#<c1y> + #<workspace_y>]
10:23 AM Lcvette: this is a subroutine
10:24 AM Lcvette: P#5220 if the offset in the gui was set to G55 would equal 2
10:24 AM Tom_L: so if you were setting several work offsets you would have to select the next one with G54 55 56 etc before 5220 would update
10:25 AM Lcvette: so it actuall would read G10 L2 P2 X(whatever the calcualtion equals) Y(whatever the calculation equals) R(whatever the calulation equals)
10:25 AM Lcvette: correct
10:25 AM Tom_L: i get that part
10:25 AM Lcvette: 5220 updates when you select the next offset
10:26 AM Lcvette: or i suppose turboss could write into each line that when you press save it fires a line specific to whatever the table says
10:26 AM Lcvette: so you could update the table without being in the appropriate offset
10:27 AM Lcvette: ie if you are editing line 3 it plugs P3 in
10:27 AM Lcvette: line 5 it plugs P5 in etc
10:27 AM Tom_L: i don't quite see the reason for wanting to update a whole table full of offsets in the first place
10:27 AM Tom_L: generally you don't use that many at once anyhow
10:27 AM Lcvette: you aren't in production
10:27 AM Tom_L: i've been there
10:27 AM Lcvette: you don't
10:28 AM Tom_L: i know what goes on
10:28 AM Lcvette: but in many cases there are multiple offset in a program
10:28 AM * Tom_L heads out the door again
10:28 AM Lcvette: im a small shop and have many programs with 4 offsets setup in them for flipped parts and multiple sides
10:29 AM Tom_L: i still don't see the problem with setting them individually even if you have to set several at once
10:29 AM Tom_L: the offset must become active to set it anyway
10:31 AM Lcvette: what if i want to import a table full of offsets for a specific program rathe rthen enter them in one by one?
10:31 AM Lcvette: especially a table full of offsets i will use frequently but must change for other programs
10:31 AM Lcvette: if its setup for single line entry only that can be problmeatic
10:32 AM Lcvette: i suppose you could write a subroutine to do it
10:33 AM Lcvette: for each program, but through the ui i think is easier for most
10:35 AM Tom_L: i would want to touch off the vise or whatever to ensure nothing moved
10:36 AM Lcvette: with a fixture plate the beauty is that you usually probe one point nd the remaining offsets all correspond to that point
10:37 AM Lcvette: it keeps from having to probe all other points
10:37 AM Lcvette: you can do a edge angle offset probe and it will account for any rotation misalignment
10:51 AM Lcvette: but if you use alignment dowels, then you can refit to th table and load offsets and they should be on the mark
10:52 AM Not-5e4d: [02qtpyvcp] 07TurBoss pushed 031 commit to 03offset_table [+0/-0/±2] 13https://git.io/Jec2Y
10:53 AM Not-5e4d: [02qtpyvcp] 07TurBoss 03afae150 - WIP paint active offset
10:58 AM Lcvette: \o/
11:11 AM Lcvette: lcvette fixed the text color
11:11 AM Lcvette: \o/
11:17 AM Lcvette: turboss, for the row headers, how to make display G54 instead of 1?
11:37 AM * Lcvette uploaded an image: Screenshot_2019-10-03_12-30-44.png (20KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/nZPVZTBNbGUWxYGeUVzEgoEO >
11:38 AM Lcvette: pushed the changes
11:39 AM Lcvette: looks like the sort is still on
12:52 PM Lcvette: whoa, there are two turbosses
12:54 PM Lcvette: \o/ sorting is fixed!
01:24 PM TurBoss: hurray!
01:24 PM Lcvette: hurray!
01:25 PM TurBoss: twoboss
01:25 PM Lcvette: hahaha
01:26 PM Lcvette: turboss, in the offsets file, you have this:
01:26 PM Lcvette: # self.status.tool_in_spindle.notify(self.refreshModel)
01:26 PM Lcvette: with hashtag
01:27 PM TurBoss: ohhhhh
01:27 PM Lcvette: and this:
01:27 PM Lcvette: # refresh model so current row gets highlighted
01:27 PM Lcvette: is this how we would highlight the offset row?
01:27 PM Lcvette: just need to find the status name?
01:28 PM TurBoss: i don't know :D
01:28 PM Lcvette: lol
01:28 PM Lcvette: didnt hazzy do a list of named parameter for status?
01:28 PM TurBoss: fu is strong in your youl find
01:29 PM Lcvette: i can't remember how to find that list now though
01:29 PM Lcvette: http://linuxcnc.org/docs/2.6/html/common/python-interface.html
01:29 PM Lcvette: :o
01:30 PM Lcvette: g5x_offset
01:30 PM Lcvette: (returns tuple of floats) - offset of the currently active coordinate system.
01:30 PM Lcvette: self.status.g5x_offset.notify(self.refreshModel)
01:30 PM Lcvette: ?
01:31 PM Lcvette: lcvette doesn't know what he is doing
01:31 PM TurBoss: is wronf
01:31 PM Lcvette: but he is trying to help
01:31 PM Lcvette: lol
01:31 PM TurBoss: g5x_index
01:31 PM Lcvette: \o/
01:31 PM TurBoss: ithink
01:32 PM Lcvette: ☹️ get error
01:32 PM Lcvette: self.status.g5x_index.notify(self.refreshModel)
01:32 PM Lcvette: AttributeError: 'OffsetModel' object has no attribute 'status'
01:33 PM Lcvette: dunno
01:36 PM Lcvette: self.offset_model = OffsetModel(self)
01:37 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/yIUUfymEtHpuIXiqpArVcEPP >
01:37 PM Lcvette: hide vertical header
01:37 PM Lcvette: maybe why G54 G55 doesn't show instead of numbers?
01:37 PM TurBoss: disable
01:38 PM TurBoss: * disabled
01:38 PM TurBoss: with #
01:38 PM Lcvette: if enabled would it show G54 instead of 1?
01:38 PM Lcvette: or you disabled it from hiding the header
01:38 PM Lcvette: i see
01:38 PM Lcvette: i think
01:39 PM TurBoss: It was disabled so I disable de disableation
01:39 PM Lcvette: lol
01:41 PM Lcvette: what is an attribute mean?
01:45 PM Lcvette: lcvette doesn't know
01:45 PM Lcvette: thought i would look and see if anything jumped out at me
02:00 PM Tom_L: BOO!
02:00 PM Tom_L: there jump!
02:01 PM Tom_L: so what are we up to now?
02:23 PM Lcvette: trying to figure out how to highlight the selected offset in the table
02:23 PM TurBoss: just eat a kebak
02:23 PM Lcvette: and trying to figure out how to make the row headers show G54 G55 G56 etc instead of 1 2 3
02:23 PM Tom_L: shouldn't be that hard
02:24 PM Tom_L: where are they initialized?
02:24 PM Tom_L: got about 10 fires to put out or i'd look
02:25 PM Lcvette: kebab?
02:26 PM Lcvette: i dunno what a kebak is
02:26 PM Lcvette: lol
02:26 PM Tom_L: food on a stick
02:27 PM Lcvette: offset_table.py
02:27 PM Lcvette: are you on kraken?
02:27 PM Tom_L: no
02:28 PM Tom_L: wouldnt that be in qtpyvcp in the table?
02:28 PM Lcvette: its not released yet
02:28 PM Lcvette: can't access iot without kraken
02:28 PM TurBoss: kraken is a git client
02:28 PM Tom_L: sure you can
02:29 PM TurBoss: there is a branch
02:29 PM Tom_L: you just need the git repository
02:29 PM Tom_L: which i saw already
02:29 PM Lcvette: ok cool
02:29 PM TurBoss: kraken is not requiered
02:29 PM Tom_L: the one turbo is working on anyway
02:30 PM Tom_L: what did you call it?
02:30 PM TurBoss: yes cool
02:31 PM Tom_L: i think i found it once
02:31 PM TurBoss: give me a sek
02:32 PM TurBoss: offset_table
02:33 PM Tom_itx: is it under kcjengr?
02:33 PM TurBoss: is the branch
02:33 PM TurBoss: ahhhhh
02:33 PM TurBoss: no
02:33 PM Tom_itx: no wonder
02:34 PM TurBoss: hmmm it isnt?
02:34 PM Tom_itx: haven't found it yet
02:34 PM TurBoss: https://github.com/kcjengr/qtpyvcp/tree/offset_table?files=1
02:37 PM Tom_L: oh. under plugins
02:38 PM Tom_itx: row labels has an extra comma at the end of the array
02:39 PM Tom_itx: ln113
02:39 PM Tom_itx: where's a pic of the table?
02:43 PM * Tom_itx taps on the monitor
02:49 PM Tom_L: same typo in tool_table.py unless that's what python wants to see
02:50 PM Tom_L: extra "," at the end of both those arrays
02:50 PM Tom_L: DEFAULT_TOOL and COLUMN_LABELS
04:13 PM Lcvette: Tom_L: here?
04:13 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/toUSFCfFlSkshLajjtogBmfu >
05:02 PM Tom_L: what?
05:04 PM Tom_L: yes
05:04 PM Tom_L: wrong [] though, should be {}
06:47 PM Tom_L[m]: mmm i thought you fixed the repo
06:47 PM Tom_L[m]: https://github.com/kcjengr/qtpyvcp/blob/offset_table/qtpyvcp/plugins/offset_table.py
06:47 PM hazzy-m: yo
06:47 PM * hazzy-m is home
06:49 PM Tom_L: really? that's odd
06:50 PM Tom_L: the tool table file does have an extra "," at the end of each array though
06:50 PM Tom_L: i don't know python but i don't think those belong
07:25 PM Tom_L: hazzy-m, the github copy has {}
07:26 PM Tom_L: on the tooltable file and the offsettable file
07:27 PM Tom_L: maybe it doesn't matter?
07:32 PM Tom_L: i looked it up though and you're right about list and dict
07:32 PM * Tom_L is confused now
07:33 PM Tom_L: https://www.w3schools.com/python/python_datatypes.asp
07:34 PM Tom_L: i don't get the difference between list, tuple, dict or set
07:37 PM hazzy-m: list and tuple are orderd list of items, the only difference between the two is that a tuple is not mutable, and a list is (you can add and remove items from a list). The advantage of a tuple is that is offers slightly better performance than a list in situations you don't need to change the items
07:38 PM Tom_L: so a tuple is static?
07:38 PM hazzy-m: yes
07:38 PM Tom_L: or in effect a constant
07:39 PM hazzy-m: right, you can't modify a tuple instance once it has been created
07:39 PM Tom_L: ie, it is set and can't be changed
07:40 PM Tom_L: so as a programmer you need to know which is more effective for any particular case
07:40 PM hazzy-m: yes, I'm actualy not clear enough on what a set is to explain it, but two sets are equal if they contain the same items, in any order, unlike a list or tuple
07:41 PM hazzy-m: which are only equal if they contain the same items in the same order
07:41 PM hazzy-m: I tend to use lists by default, since you can use a list wherever you could use a tuple, but I'm trying to get better at using the right one for the application
07:42 PM Tom_L: heh
07:42 PM hazzy-m: a dict is an unordered mapping of key, value pairs, and you can look up the value based on a key
07:43 PM Tom_L: i can see using the wrong type further down the road could cause a snag
07:44 PM hazzy-m: the consequenses of using a list in place of a tuple are pretty small, but the other way around is not ture! lol
07:46 PM Tom_L: is python white space sensitive/
07:46 PM Tom_L: ?
07:48 PM hazzy-m: Yes, very, almost all the code flow is determined by white space, which is what makes it such an easy language to read, since you are forced to be neat and tidy
07:49 PM Tom_L: heh
07:50 PM Tom_L: lists are referenced by number where dict are referenced by 'key'
07:52 PM hazzy-m: yep
07:55 PM Tom_L: so are 'COLUMN_LABELS' and 'ROW_LABELS' dict or list?
07:55 PM Tom_L: by definition i think they're dict
07:55 PM Tom_L: https://github.com/kcjengr/qtpyvcp/blob/offset_table/qtpyvcp/plugins/offset_table.py
07:56 PM hazzy-m: yes, COLUMN_LABELS and ROW_LABELS are dicts
07:57 PM hazzy-m: DEFAULT_OFFSET is a dict of lists
07:58 PM Tom_L: now, that's confusing :)
07:58 PM hazzy-m: you can also have a list of dicts :)
08:12 PM Lcvette: hazzy: o/
08:15 PM Lcvette: Yo
08:15 PM Lcvette: \o/
08:15 PM Lcvette: Offsets table is coming together!
08:16 PM Lcvette: Is there allot left on the persistent boxes
08:17 PM hazzy-m: yo
08:22 PM Tom_L: Lcvette what are those for?
09:41 PM TurBoss: yo
09:42 PM Tom_L: yo yo
09:43 PM TurBoss: whats up?
09:44 PM Tom_L: nothing much now
09:44 PM Tom_L: was looking over the offset .py file a bit
09:45 PM Tom_L: wondering why things were the way they were
09:45 PM TurBoss: QtableView uses models
09:45 PM Tom_L: <-- doesn't know python
09:46 PM Tom_L: i did notice that was done with a template right?
09:46 PM Tom_L: err a widget... whatever
09:46 PM TurBoss: template?
09:46 PM TurBoss: there are 2 file
09:46 PM TurBoss: * there are 2 files
09:46 PM TurBoss: files*
09:46 PM TurBoss: plugins/offset_table.py
09:46 PM TurBoss: wich is responsible of load the file and reload on change
09:47 PM TurBoss: and the widget wich is another file that draws the table
09:47 PM Tom_L: yeah i'm looking at that one
09:47 PM Tom_L: how do you attach them to each other?
09:48 PM Tom_L: function calls within the widget file?
09:48 PM TurBoss: in the widget at the very top
09:48 PM TurBoss: its a getPlugin('offsettable')
09:49 PM Tom_L: Generated by: QtPyVCP ToolTable plugin ({version})
09:49 PM Tom_L: that's what made me wonder if it was a widget
09:50 PM Tom_L: what's with the extra "," on ROW_LABELS?
09:51 PM Tom_L: is that supposed to be there?
09:51 PM TurBoss: no
09:51 PM TurBoss: its a typo
09:51 PM Tom_L: i noticed it also in the tooltable file
09:51 PM TurBoss: it doesn't matter
09:51 PM TurBoss: but should be removed
09:51 PM Tom_L: C would bitch about it
09:53 PM TurBoss: Tom_L: do you have a computer with good resources?
09:53 PM TurBoss: wich editor do you use?
09:53 PM Tom_L: several
09:53 PM Tom_L: notepad notepad++
09:53 PM Tom_L: oh linux you mean?
09:53 PM TurBoss: I'm using pycharm pro
09:54 PM Tom_L: i forget what is on the linux ssd
09:54 PM TurBoss: but comunity can do
09:54 PM TurBoss: its apython IDE
09:54 PM TurBoss: very powerfull
09:54 PM Tom_L: i'm not that wild about IDEs
09:54 PM Tom_L: just used to not using them
09:55 PM * TurBoss uploaded an image: Captura de pantalla de 2019-10-04 04-48-49.png (143KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/KbALmCDdczBjaEBjQMIDKKnj >
09:55 PM TurBoss: use vim
09:55 PM TurBoss: lol
09:55 PM Tom_L: but i haven't programmed in a while either
09:55 PM Tom_L: pfft
09:55 PM Tom_L: i've never used vi
09:55 PM Tom_L: pico was ok
09:55 PM Tom_L: gedit used to be
09:56 PM Tom_L: really haven't found one i like for linux
09:56 PM TurBoss: pycharm is not opensource :(
09:56 PM Tom_L: at least not on stretch
09:57 PM Tom_L: $200 for an editor? :)
09:57 PM TurBoss: yes
09:58 PM TurBoss: comunity version is free for ever
09:58 PM TurBoss: and full featured
09:59 PM Tom_L: i've done very little oops programming. it's takes a while for me to grasp it
10:02 PM Tom_L: i still maintain a couple DOS programs :)
10:02 PM TurBoss: nice
10:02 PM TurBoss: with dosbox?
10:02 PM Tom_L: nope
10:02 PM TurBoss: freedos?
10:02 PM TurBoss: lol
10:02 PM Tom_L: boot into 6.22
10:02 PM Tom_L: i've got the real deal :)
10:02 PM TurBoss: amazing
10:02 PM TurBoss: once used freedos to program some screen plc
10:03 PM Tom_L: i can somewhat follow the python programs but i don't think i'd be much good writing any
10:05 PM TurBoss: you can start making tweaks
10:05 PM Tom_L: meh i'd just mess it up
10:05 PM TurBoss: lol
10:05 PM TurBoss: use git
10:05 PM TurBoss: you can rever the mess
10:05 PM TurBoss: :P
10:05 PM Tom_L: if you know git
10:05 PM Tom_L: which i don't
10:06 PM TurBoss: download the git kraken
10:06 PM Tom_L: i can find what i'm looking for but that's about it
10:06 PM TurBoss: is a git client
10:06 PM Tom_L: i'd rather know what it's doing
10:06 PM Tom_L: bbiab
10:06 PM TurBoss: what
10:06 PM TurBoss: the offst table?
10:07 PM TurBoss: starts from line 123 on plugin offset table
10:08 PM TurBoss: anyway we are using tables from qt that requires a MVC model view controller stuff
10:08 PM TurBoss: thats why there are so many objects
10:14 PM Tom_L: no, git
10:16 PM Tom_L: some of that is leftover from the tooltable isn't it?
10:16 PM Tom_L: looks like you borrowed it to start
10:17 PM TurBoss: yes
10:17 PM TurBoss: is just a copy
10:17 PM Tom_L: real programmers know how to cut n paste :)
10:18 PM TurBoss: lol
10:19 PM Tom_L: do you have it writing offsets back to the file yet?
10:19 PM Tom_L: but not the whole table to file...
10:19 PM TurBoss: no
10:19 PM TurBoss: save is disabled
10:20 PM Tom_L: that G20 L2 may be the way to go
10:20 PM Tom_L: and let linuxcnc take care of the file
10:20 PM TurBoss: yup thats a good plan
10:21 PM Tom_L: i'm trying to see why Lcvette want's to write the whole grid out at once
10:21 PM Tom_L: you can only have one active offset at a time anyway
10:48 PM Tom_L: s/G20/G10
10:55 PM TurBoss: hurray
10:55 PM TurBoss: I managed to color the active offset
10:55 PM Tom_L: :)
10:55 PM Tom_L: i'm gonna manage some sleep now
10:55 PM Not-5e4d: [02qtpyvcp] 07TurBoss pushed 031 commit to 03offset_table [+0/-0/±2] 13https://git.io/Jec1l
10:55 PM Not-5e4d: [02qtpyvcp] 07TurBoss 03199b417 - color active index
10:56 PM TurBoss: cool
10:56 PM TurBoss: night
11:12 PM Lcvette: Lcvette is here
11:13 PM Lcvette: You did it turboss??
11:13 PM TurBoss: a bit
11:13 PM Lcvette: \o/
11:30 PM Lcvette: lcvette just got caight up
11:31 PM Lcvette: turboss got the color highlight done Hurray!
11:31 PM Lcvette: \o/
11:34 PM TurBoss: great!
11:34 PM Lcvette: lcvette mae it a bette color than green
11:35 PM * Lcvette uploaded an image: Screenshot_2019-10-04_00-28-51.png (19KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ejQLcuQdtwUubTtXrjkzOieq >
11:35 PM TurBoss: hurray!
11:35 PM Lcvette: hurray
11:35 PM TurBoss: ~o~
11:35 PM Lcvette: i removed the extra buttons
11:35 PM TurBoss: !giphy eddo
11:35 PM * Giphy[m] uploaded an image: teen-wolf-dylan-obrien-gifs-h3W7mFeTcy9t6 (540KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/zKzfPBuJYsGFLqvgETmGxRdh >
11:35 PM TurBoss: not that one
11:36 PM Lcvette: lol
11:36 PM Lcvette: and extra columns
11:36 PM Lcvette: and respaced the tsabloe format
11:37 PM TurBoss: !gif edo
11:37 PM TurBoss: !giphy edo
11:37 PM * Giphy[m] uploaded an image: Edorestaurant-STkJtT6WWADNJMsou0 (11301KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/fTcYVjWFJxFYUKnzdAwDbpbo >
11:38 PM Lcvette: Carrillos?
11:41 PM Lcvette: Lcvette is goin to the ABC store tomorrow and getting some Bailey's Irish cream