#robotics Logs

Oct 20 2018

#robotics Calendar

12:39 AM rue_bed: http://www.ist.co.uk/motif/books/vol6A/ch-14.fm.html
01:09 AM rue_mohr: you know what frustrating about motif, is that the code is all from the punchcard days,
01:09 AM rue_mohr: so far back they dont include stdio.h or declare main as an int
01:10 AM rue_mohr: whats nice is that even with it all that old, it still works
01:11 AM rue_mohr: this code is from long before QT was even concieved, and it still works, unlike examples from the last version of QT
01:11 AM rue_mohr: most of the problem I'm running into, is that the gui elements are as dated at motif
01:12 AM rue_mohr: I actaully dont know if there is a list select box that can have multiple items selected at once...
01:24 AM Jak_o_Shadows: I would've been tempted to do it in a web-page
01:24 AM Jak_o_Shadows: cause all the GUI libraries suck nowadays
01:25 AM rue_mohr: cam software? no
01:26 AM rue_mohr: butyour not the first to look to resort to using a browser
01:26 AM rue_mohr: I'm trying to keep this light
01:26 AM rue_mohr: aka, not embedding tk
01:26 AM Jak_o_Shadows: yeah.
01:26 AM rue_mohr: but it looks like I'll have to make a modern widget set
01:26 AM Jak_o_Shadows: I dunno what's happened to the world man
01:27 AM rue_mohr: well, nothing happened to motif
01:27 AM rue_mohr: literally!
01:28 AM rue_mohr: this IS punchcard code
01:28 AM rue_mohr: how long has it been int main(...
01:28 AM rue_mohr: cause almost none of the motif examples are doing it
01:29 AM rue_mohr: they are also from the days when stdio was a default include by compiler, which... is late 90's???
01:32 AM Jak_o_Shadows: I need more M3 bolts
01:32 AM rue_mohr: I'd happily send you 15 lbs of them
01:32 AM rue_mohr: (If I didn't ahve to pay canadian shipping rates)
01:32 AM Jak_o_Shadows: Shipping is 100% my problem
01:33 AM rue_mohr: how amny of what do you need>?
01:33 AM Jak_o_Shadows: I sorta just want a selection
01:33 AM rue_mohr: from how long to how long
01:33 AM Jak_o_Shadows: 5mm through to 50mm
01:34 AM rue_mohr: "if your doing it right" you never need machine screws longer than 10mm
01:35 AM Jak_o_Shadows: Some of em are to act as shafts
01:35 AM Jak_o_Shadows: also, some of em are bolts with nuts, not into tapped holes
01:35 AM rue_mohr: yep, I have an insame number of screws from things up to the 10mm mark
01:35 AM rue_mohr: after that it gets a little scarse
01:36 AM rue_mohr: arg, modern widgets are just so subtlly different
01:38 AM rue_mohr: I cant find any evidence that motif has a listbox that can do multi-select
01:39 AM rue_mohr: the documentation is halarious
01:39 AM rue_mohr: there are all sorts of calls between Xm and Xt that you can tell not everyone knew about
01:40 AM Jak_o_Shadows: a friend of mine, a few years back, who regularly orders from the local bolt shop tacked on some M4 stuff for me
01:40 AM Jak_o_Shadows: so i have that coming out of my ears, for now
01:40 AM rue_mohr: what country you in?>
01:41 AM Jak_o_Shadows: aus
01:41 AM rue_mohr: that would make me shipping you something more insane
01:42 AM rue_mohr: it would take 4 months to get there
01:42 AM Jak_o_Shadows: Yeah, 100% not an option, not a worry
01:42 AM rue_mohr: how to tell canada doesn't ever export anything
01:42 AM Jak_o_Shadows: I suppose the bolt shop is only 40 minutes away, and probably only 20 from work?
01:43 AM rue_mohr: I could send ya 100g of a huge selection of screws, but, in worst case you would die before they left canada
01:43 AM Jak_o_Shadows: aha
01:43 AM Jak_o_Shadows: the bolt shop is literally < 10 minutes from work
01:43 AM Jak_o_Shadows: I should just go there at lunch
01:48 AM rue_mohr: >:/ I need 4 arms
01:49 AM rue_mohr: cant shave, and browse at the same time
01:49 AM rue_mohr: and typ
01:49 AM rue_mohr: e
01:53 AM rue_mohr: http://users.cs.cf.ac.uk/Dave.Marshall/X_lecture/X_book_caller/node12.html#SECTION001200000000000000000
01:53 AM rue_mohr: yet another example,
01:53 AM rue_mohr: ancient punchcard code
02:04 AM rue_mohr: maybe I can just make a regex search/replace for ,[whitespace]\n
02:14 AM rue_mohr: wtf
02:14 AM rue_mohr: XtAddCallback(list, XmNdefaultActionCallback, list_cbk, (void *)NULL);
02:14 AM rue_mohr: expected 'XtCallbackProc {aka void (*)(struct _WidgetRec *, void *, void *)
02:15 AM rue_mohr: but argument is of type {aka void (*)(struct _WidgetRec *, void *, struct <anonymous> *)}'
02:15 AM rue_mohr: no its not
02:15 AM rue_mohr: oooh, 3
02:15 AM rue_mohr: oooh
02:16 AM rue_mohr: ok
02:30 AM rue_mohr: what seems to be consistantly comming up is that the callbacks from Xt aren't working
02:34 AM rue_mohr: oh I have to doubelclick it
02:34 AM rue_mohr: single clicking a item in a list must be a 21st century thing
02:35 AM rue_mohr: hahahaha
02:36 AM rue_mohr: *click*
02:36 AM rue_mohr: libxmhtml-dev - Motif widget for displaying HTML 3.2 (development files)
02:36 AM rue_mohr: thats funny, so, use html for your layout
03:19 AM rue_mohr: its funny too, if I went python, with tkinter, the cam program might be done by now
03:19 AM rue_mohr: instead, I'm sitting here considering writing a basic gui library
03:23 AM rue_mohr: BUGS
03:23 AM rue_mohr: Not more than currently available in Motif 1.2.3 or Motif
03:23 AM rue_mohr: 1.2.4, but less than in the upcomming Motif 2.0
03:23 AM rue_mohr: heh
04:30 AM rue_mohr: huh, funny, I'm finding a lot of libraries that have alots of code, but do nothing
04:31 AM rue_mohr: it looks like most of the things that motif does, are actaully provided by X, and motif is just a bloatware and abstraction layer
04:34 AM veverak: welcome to 21. century coding
04:36 AM rue_mohr: looking for the bare metal, still shoveling....
04:37 AM rue_mohr: ok, I think ddd is a raw tx application
04:38 AM rue_mohr: lets see
04:39 AM rue_mohr: nope, it uses motif
04:41 AM rue_mohr: int main(void) { std::cerr << "This program requires the Athena widget library.\n";
04:41 AM rue_mohr: return EXIT_FAILURE;
04:41 AM rue_mohr: }
04:41 AM rue_mohr: oooo
04:41 AM rue_mohr: that explains what people were using before motif was free
02:26 PM patr0clus is now known as s3nd1vog1us
02:26 PM s3nd1vog1us is now known as s3nd1v0g1us