#robotics Logs
Nov 29 2018
#robotics Calendar
12:12 AM rue_mohr: awe, my code trips on the fact it needs to get a colour before the windows been drawn
05:16 AM Tom_itx is now known as Tom_L
06:10 AM LuminaxWk is now known as Luminax
09:12 AM rue_mohr: XmeRedisplayGadgets
09:14 AM rue_mohr: no, thats not it
09:26 AM rue_mohr: huh
09:27 AM rue_mohr: my layout widget doesn't display anything when I put it in another layout widget
09:27 AM rue_mohr: this is why you should write your own gui kids
09:31 AM veverak: lol :)
09:31 AM * veverak is still in process of writing prompt
09:31 AM veverak: few days, did not wrote a single line of code :/
09:32 AM rue_mohr: prompt?
09:32 AM rue_mohr: if that c++ isn't doin it for ya, you should move to C, its better in the long run, in every way
09:32 AM rue_mohr: ;)
09:33 AM rue_mohr: hmm I missed a callback or somethin
09:33 AM * rue_mohr hates working with other peoples code
09:34 AM rue_mohr: or I overrode something I shouldn't have
09:34 AM veverak: language is not the problem
09:34 AM veverak: I still not settled the way it should work
09:34 AM veverak: :)
09:34 AM veverak: overall design/API
09:35 AM veverak: rue_mohr: have you used mikrotik ssh interface ?
09:35 AM rue_mohr: I got so deep into motif, there is NO documentation for what I'm doing
09:35 AM rue_mohr: mikrotik?
09:35 AM rue_mohr: not that I'm aware of, no
09:35 AM veverak: hmm
09:36 AM veverak: gdb-like interface
09:36 AM rue_mohr: you just need a command line with history, right?
09:36 AM veverak: almost
09:36 AM rue_mohr: do you want keyword shortcuts like cisco?
09:36 AM * veverak did not used cisco
09:36 AM veverak: rue_mohr: mikrotik got tree hiearchy in the command line interface
09:37 AM veverak: hmm
09:37 AM rue_mohr: I have done command lines in my programs, I used readline and wrote a fn to work out what needed to be done
09:37 AM rue_mohr: readline gave me editing and history
09:38 AM veverak: https://paste.vpsfree.cz/ZEEyFE7H/
09:38 AM veverak: rue_mohr: it's not just a command line with commands
09:38 AM rue_mohr: how does a tree hiearchy help on a command line?
09:38 AM veverak: at each level
09:38 AM veverak: you have either command or sublevel
09:38 AM veverak: writing sublevel as command moves you into that sublevel
09:39 AM veverak: (I used <tab> at some places in the thing I pasted)
09:40 AM rue_mohr: command and tab gives you help? not that hard , is it?
09:41 AM rue_mohr: doyou want to do it with loadable modules to extend it?
09:42 AM veverak: not really
09:42 AM veverak: and I think I've got an idea about how it could work
09:43 AM rue_mohr: k, well the only thing to decide then is how you want to define the param tree
09:43 AM rue_mohr: is it fixed to only two levels?
09:43 AM veverak: for now yes, but I don't think I have to fix myself on two levels
09:44 AM veverak: rue_mohr: it's tree.. where each node can be of two types
09:44 AM rue_mohr: so no kitchen toaster maketoast
09:44 AM veverak: (sublevel, command with args)
09:44 AM rue_mohr: parents and children
09:45 AM veverak: so, 'levelnode' which contains array of 'levelnode' as sublevels and array of 'commands'
09:45 AM rue_mohr: dump the list of the next level from where the user is
09:45 AM veverak: yep, you simply remember active levelnode
09:45 AM veverak: :)
09:46 AM rue_mohr: so you gonna have it written by tommorow morning or do I need to do it
09:47 AM veverak: and, interactiong with an app: seprate thread which puts 'commands' (with information about wher eit is in tree) in queue?
09:48 AM rue_mohr: argc, argv
09:49 AM veverak: it's interactive terminal... not args in bash
09:49 AM veverak: hmm
09:49 AM veverak: maybe I did not said that correctly
09:50 AM veverak: rue_mohr: idea is to make interactive terminal for user
09:50 AM veverak: to controll the app
02:08 PM veverak: god damn it
02:09 PM veverak: how the fuck did I end up with variadic templates again
02:20 PM veverak: rue_mohr https://paste.vpsfree.cz/VY6ZEi3a/
02:43 PM dravine_ is now known as dravine
03:34 PM polprog: https://puu.sh/C9Nqt/d1088ae65a.jpg
03:34 PM patr0clus is now known as s3nd1v0g1us
04:46 PM veverak: https://imgur.com/a/5rQ7PBb
04:46 PM veverak: got colors!
06:27 PM rue_mohr: haha nice sign
06:27 PM rue_mohr: veverak, so, did you get it then?
06:28 PM veverak: rue_mohr: reading readline doc
06:29 PM veverak: need proper tab complettion and history
06:29 PM veverak: but that's only thing missing
06:29 PM rue_mohr: history is part of readline
06:29 PM veverak: I know
06:29 PM veverak: as is tab-completion
06:32 PM rue_mohr: https://imgur.com/gallery/5BxkpcE
06:32 PM rue_mohr: hahahahahaha
06:32 PM rue_mohr: "fuck off, robot"
06:32 PM veverak: LOL
07:03 PM zhanx: rue_mohr, thats a good one
09:00 PM SpeedEvil is now known as Guest93507
09:39 PM BitEvil is now known as SpeedEvil
10:15 PM rue_mohr: it seems my child objects are not getting expose events
10:15 PM rue_mohr: or their managed flags were never set
10:17 PM rue_mohr: its almost like their inheriting something that I didn't properly set up
10:17 PM rue_mohr: it would be nice if there was SOMETHING that covered this topic
10:18 PM rue_mohr: but I am, as usual, completely on my own
10:19 PM rue_mohr: I asked the electrical supplier for a lightbulb, they said that I'm the only person who has EVER asked for one, and that there were none in canada
10:19 PM rue_mohr: what are the odds of that?
10:19 PM rue_mohr: seriously?
10:19 PM rue_mohr: 100% when its me
10:20 PM rue_mohr: its like me being the only person here, now
10:20 PM rue_mohr: there are billions of people supposedly in the world
10:20 PM rue_mohr: I wonder what leads to this situation
10:21 PM rue_mohr: I wonder if its even statistically possible
10:21 PM rue_mohr: I dont think it is
10:21 PM rue_mohr: I think the odds are about 1/NaN
10:22 PM rue_mohr: somewhere, there is an old spaceship sales lot, thats abandoned
10:22 PM rue_mohr: with a huge field of ships just sitting there
10:23 PM rue_mohr: corroding away
10:23 PM rue_mohr: the odds are NaN/42
10:23 PM rue_mohr: their not here tho
10:24 PM rue_mohr: no, I'm stuck in the middle of nowhere
10:24 PM rue_mohr: maybe thats ironic
10:24 PM rue_mohr: I'm in the one place I need to be least
10:24 PM rue_mohr: stuck with impossable odds
10:25 PM rue_mohr: what are the odds a time traveler will read this log
10:25 PM rue_mohr: odds are REALLY small on that one
10:25 PM rue_mohr: sorry time traveler, your not likley to find this, even tho I want you to
10:25 PM rue_mohr: how can you make it easier for them to find?
10:26 PM rue_mohr: make it big somehow I suppose
10:26 PM rue_mohr: how
10:26 PM rue_mohr: dont really know
10:26 PM rue_mohr: it would have to traverse time and space
10:26 PM rue_mohr: it already is dude
10:26 PM rue_mohr: so how do I point them to it
10:27 PM rue_mohr: dude, with your luck, even if you put it on the universes largest billboard, they would still miss it
10:27 PM rue_mohr: damn
10:27 PM rue_mohr: but what you need is right here
10:27 PM rue_mohr: this channel here?
10:27 PM Tom_L: still stuck on your gui?
10:27 PM rue_mohr: oh hey tom
10:27 PM rue_mohr: yea, I have a redraw problem
10:27 PM Tom_L: was watching a show
10:28 PM rue_mohr: the object works fine, just not when I put it in another object
10:28 PM rue_mohr: everyone wasting time but me eh?
10:28 PM Tom_L: like a bubble in a bubble?
10:28 PM rue_mohr: yea
10:28 PM Tom_L: pop one of them
10:28 PM rue_mohr: accept my inner bubbles fail to exist
10:29 PM rue_mohr: no, the outter bubble constrains the inner bubbles
10:29 PM rue_mohr: heh, there is more alien tech, using layers of bubbles of different materials to contain things
10:29 PM rue_mohr: each an effective interface between its adjacent materials
10:29 PM rue_mohr: *sigh*
10:30 PM rue_mohr: they wont teach me how to make things in 0G
10:30 PM rue_mohr: your babbling at tom again
10:30 PM rue_mohr: sorry tom
10:31 PM Tom_L: still makin sprayer parts?
10:31 PM Tom_L: or sellin em
10:31 PM rue_mohr: havn't had an order in months
10:31 PM Tom_L: did they quit cutting trees?
10:31 PM rue_mohr: which is good, my buddy making them has taken on two other part time jobs
10:31 PM rue_mohr: maybe, our economic policies sucks
10:32 PM Tom_L: ours isn't any better
10:33 PM Tom_L: was watching about those tidal generators
10:33 PM rue_mohr: I want 100 hours to work on this in a row
10:33 PM rue_mohr: all these freaking 4 and 2,and 1/2 hour peices suck
10:34 PM Tom_L: you gotta keep in in your head so when you return you can resume
10:34 PM Tom_L: that's what i gotta do all the time
10:34 PM rue_mohr: I think I'm blocking an event
10:34 PM rue_mohr: I dont want to have to sleep
10:34 PM Tom_L: i don't know oops that well to help
10:34 PM rue_mohr: damnit let me take machine form
10:34 PM * rue_mohr bangs his head on the desk
10:35 PM Tom_L: careful you may bleed out
10:35 PM rue_mohr: heh,t hat implies there is still hope
10:35 PM rue_mohr: I suppose transforming ones self into a machine is just as scarry as having your body fall apart on ya
10:36 PM rue_mohr: if my mind dosn't hold togethor I'm really screwed
10:36 PM Tom_L: i'm aware of the latter issue
10:36 PM rue_mohr: I mean, I can repair a certian amount of stuff afterwords, but, it beats any horror movie
10:37 PM rue_mohr: I need my mind, hands and eyes
10:37 PM Tom_L: so you better protect them better
10:38 PM Tom_L: what are you gonna accomplish with this GUI gcode thing?
10:38 PM Tom_L: that you can't already do
10:38 PM Tom_L: how are you getting gcode for the cnc you already run?
10:40 PM rue_mohr: I'll have made the ONLY gcode program for linux
10:40 PM rue_mohr: I'm using cambam
10:40 PM rue_mohr: I dont know if I can ever make something as good as cambam
10:40 PM rue_mohr: but I can make something basically usable
10:58 PM Tom_L: jt did some gcode stuff
10:58 PM Tom_L: i forget what all it did
10:59 PM rue_mohr: writing functions that create a circle *if your carefull* is not my goal
10:59 PM Tom_L: i did part of a GTK tutorial he did
10:59 PM Tom_L: you don't like gtk?
10:59 PM Tom_L: or is it useable for this
10:59 PM rue_mohr: gtk is c++
11:00 PM Tom_L: python
11:00 PM rue_mohr: otherwise gtk is awesome
11:00 PM Tom_L: http://gnipsel.com/gtk/index.html
11:01 PM Tom_L: http://gnipsel.com/glade/index.html
11:01 PM Tom_L: i don't know alot about it
11:01 PM Tom_L: i was following the tutorial for a while
11:01 PM rue_mohr: its great, but its not C
11:03 PM Tom_L: https://www.gtk.org/
11:03 PM Tom_L: GTK+ is written in C......
11:03 PM rue_mohr: I'v checked it out, there is no documentation or examples for use of C in gtk
11:04 PM Tom_L: i wouldn't know
11:04 PM Tom_L: i know little about it
11:04 PM rue_mohr: its vaporware
11:04 PM Tom_L: just trying to offer suggestions
11:04 PM Tom_L: https://www.gtk.org/tutorial1.2/gtk_tut-2.html
11:04 PM rue_mohr: I'v spent like a month now on motif, I cant just throw that out anyhow
11:05 PM Tom_L: you spent years waiting...
11:05 PM rue_mohr: yea, but I'm working hard to not just push it aside for another 18 years
11:05 PM rue_mohr: I have to stay with it
11:06 PM rue_mohr: and everything is against me
11:06 PM Tom_L: but you're hitting roadblocks and i'm trying to help get around them
11:06 PM rue_mohr: heh, no
11:06 PM rue_mohr: I'm hitting steep inclined planes
11:07 PM rue_mohr: slopes of infinity/1 aren't going to detur me
11:07 PM rue_mohr: midnight on a worknight will tho
11:07 PM rue_mohr: or 7:20 on a workmorning
11:07 PM Tom_L: http://gnipsel.com/files/mill-g-code/
11:08 PM Tom_L: did you ever look at that?
11:08 PM rue_mohr: and that (&*^&^%$ sleep thing
11:08 PM Tom_L: that was his gcode work
11:08 PM rue_mohr: I refuse to now
11:08 PM rue_mohr: I cant waste time with all the crap that doesn't work and cant draw cirles unless your carefull
11:09 PM rue_mohr: }:|
11:09 PM rue_mohr: dxf->cam->gcode
11:09 PM rue_mohr: no compromise
11:09 PM rue_mohr: s
11:09 PM rue_mohr: technically I already did it
11:09 PM Tom_L: i think he did stuff with dxf on his
11:09 PM rue_mohr: my program can drill holes
11:10 PM rue_mohr: ... you just have to recode the source to change the hole details...
11:11 PM Tom_L: his is only 1300 lines
11:11 PM Tom_L: i scanned thru the whole thing just now
11:12 PM rue_mohr: also, I'm not writing slow bloatware
11:12 PM rue_mohr: mhm
11:13 PM Tom_L: it's hard for me to grasp oops
11:13 PM Tom_L: i didn't grow up with it
11:13 PM Tom_L: i did a little bit of it toward the end
11:14 PM Tom_L: but i don't think it was 'real' oops
11:14 PM rue_mohr: the basic premise is a program that sets up an array of event generators to the user and then handles them as they come in
11:14 PM Tom_L: multi thread
11:14 PM rue_mohr: yes and no
11:14 PM Tom_L: i'm used to dealing with a single thread
11:15 PM rue_mohr: indeed
11:15 PM rue_mohr: the implementation is usually as a single thread
11:15 PM rue_mohr: there is just an event dispatch thread that does callbacks
11:15 PM Tom_L: seems yours is dialing the wrong number right now
11:16 PM rue_mohr: yea, they have an inheritance model
11:16 PM rue_mohr: and I'm not sure if there is something that didn't get inherited, or something that got overwritten
11:16 PM rue_mohr: *super thin documentation*
11:16 PM rue_mohr: esp at this level
11:16 PM Tom_L: at this point in time i decided oops was one i wasn't going to try to tackle
11:16 PM rue_mohr: normal stuff is fine
11:17 PM rue_mohr: I'm just pushing the limits a bit
11:17 PM Tom_L: too many api for me to learn python too
11:18 PM rue_mohr: the nc spooler program I did worked otu great
11:18 PM rue_mohr: the python inheritance model only had a few minor snags
11:18 PM rue_mohr: I was able to create eash part of my program as an object that all tied togethor properly
11:20 PM rue_mohr: ok, the redraw is being called and all the objects are being positioned
11:20 PM rue_mohr: but not drawn
11:20 PM Tom_L: if i really wanted to i could probably write the dxf thing in clipper even though it's not intended for such things
11:21 PM Tom_L: i believe it's got all the pieces to do it
11:21 PM Tom_L: and it's got hooks for c & asm
11:21 PM rue_mohr: only about 5% of my time has been on the actaul work code
11:22 PM rue_mohr: 90% of the code is gui stuff
11:22 PM Tom_L: it doesn't do graphics though
11:22 PM Tom_L: it _is_ fast though
11:23 PM Tom_L: it's a fully compiled target
11:23 PM rue_mohr: oh modern computer make anything fast enough
11:23 PM Tom_L: no interpreter
11:23 PM Tom_L: p100 isn't considered modern now i don't think
11:23 PM rue_mohr: you onyl have to wait a few minutes for slicer to generate gcode for a 3d probject :/
11:23 PM Tom_L: but the whole program compiles on my good pc in .1 sec
11:24 PM rue_mohr: people accept slow, crashie programs that eat up lots of memory
11:24 PM rue_mohr: and they will even comment that it does not matter how much memory a program takes up
11:24 PM rue_mohr: just like emil and his lurkers
11:24 PM Tom_L: we used to
11:25 PM Tom_L: dunno who emil is
11:25 PM rue_mohr: I dont udnerstand how a child does not get a redraw event
11:25 PM Tom_L: did it inherit that characteristic from the parent?
11:26 PM rue_mohr: I dont think its even supposed to have to
11:26 PM rue_mohr: its like there is an enable flag I didn't set
11:26 PM rue_mohr: its positioning them, and their 'managed'
11:26 PM rue_mohr: I thought mangaged took care of the events
11:28 PM Tom_L: https://vivaclipper.wordpress.com/tag/hmg/
11:28 PM Tom_L: i spent a fair ammount of time with that
11:28 PM Tom_L: it's a windows wrapper for the old language i used
11:30 PM Tom_L: that's about as far as i got into oops