00:10:48 Roguish has joined #emc-devel 00:22:46 Roguish has left #emc-devel 00:28:24 anonimasu has quit 00:41:03 anonimasu has joined #emc-devel 06:42:58 anyone awake to night? 08:33:00 LawrenceG: just me 14:20:17 rayh has joined #emc-devel 14:21:57 morning ray 14:22:37 Hi alex 14:23:11 Did you get that sound problem with the steppers figured out? 14:25:47 somehow 14:25:56 it's better now, but still a bit loud at low speeds 14:26:09 but then again, I'm not sure it isn't supposed to sound like that 14:26:29 the other motor is lots quieter 14:28:30 [Global Notice] Hi all. If you have a moment, please stop by #freenode-survey and answer a few questions which may help us with feature design. Please check the topic or join notice for the questions and answer briefly on channel. Thanks. 14:28:35 I've had problems with some of the little handwheels rattling but you've swapped motors and the sound traveled with the drive. 14:29:09 #freenode-survey 14:32:03 rayh has quit 14:32:12 rayh has joined #emc-devel 14:32:34 That wasn't much fun. 14:36:12 I've swapped the gecko and the sound still stayed with the gecko 14:36:32 but once, running with an open gecko (no cover), the sound went away almost completely 14:36:49 when I mounted the cover back on it came back .. but it's not a problem I think 14:36:52 Really. That is odd. 14:39:08 indeed 14:39:16 anyways .. 14:39:50 I guess we leave the cover off that one. 14:40:29 alex_joni: did you try pressing on the circuit board with the motor running? Maybe there is a broken trace that gets flexed by the case 14:40:32 But noise comes from the motor. 14:41:25 rayh: noise comes from the motor, but might be bad driving.. 14:41:30 high speed is fine though 14:41:45 only low speed (manual jogging) is noisy 14:42:43 Okay. Gecko uses the anodizing on the aluminum plate to insulate 14:43:33 If you've got a scope you might look at the signals on that. 14:43:46 I'll try to get one.. no scope around now 14:44:10 I don't think a multimeter would show much but it might. 14:44:26 between power minus or plus and the plate. 14:44:28 I seriously doubt that 14:44:29 :) 15:53:43 rayh has quit 15:56:59 is halconfig available from the various tcl "tools" menus? 16:56:02 not yet.. but soon 16:56:06 ok 16:56:14 it should ;) 16:56:20 * alex_joni wants to look at tkemc today 16:56:38 already started to sort tcl things out, (with ray's help of course) 16:57:06 don't you lsort in tcl? ;) 17:01:38 yeah.. sure 19:37:14 jepler has joined #emc-devel 19:37:15 alex_joni: hi 19:37:19 hello 19:37:31 ok, I'm sorting some tcl stuff out 19:37:53 but I don't have much tcl knowledge, so I'm struggling 19:38:15 what kind of "sorting out" do you mean? 19:38:26 well.. I started by cleaning up licensing 19:38:41 and then I got to tkemc, and I said I should add halconfig to the menu 19:38:57 but then I noticed halconfig only works when run from emc2's top dir 19:39:04 so I thought I'd fix that 19:39:28 but that's not that easy.. and though I can sort it out eventually, it might be a while 19:39:49 for instance.. I'm trying to check for a file now (no idea how to test) 19:40:01 file exists $filename 19:40:35 apt-get install tk8.4-doc tcl8.4-doc 19:40:44 if {file exists $EMC2DIR/halcmd } ? 19:40:44 then the tcl and tk manpages are under section "n" 19:40:52 if {[file exists ...]} 19:41:15 What is $EMC2DIR? Is that an environment variable? 19:41:16 apt-get complete 19:41:23 yeah 19:41:29 then I think it's $env(EMC2DIR) 19:41:35 but I converted it to a local var. 19:41:36 right 19:42:17 strange, the debian packages have all the tcl and tk stuff under section 3 19:42:25 man 3 file, not man n file like I do on all my fedora systems 19:42:59 or 'man3tcl file' 19:43:20 alex_joni: When is EMC2DIR set? By scripts/emc? 19:43:40 yup 19:43:53 actually EMC2_BIN_DIR is set by scripts/emc 19:44:09 then I export it by bash when halconfig is run (before wish gets run) 19:44:27 then I do: 19:44:47 if {[info exists env(EMC2_BIN_DIR)]} ... 19:46:19 guess I need to figure out scripts/ and such 19:46:31 which reminds me.. 19:46:46 you should figure out something that can be used by all the tcl scripts 19:46:49 cradek: any idea if po stuff works on make install ? 19:47:03 jepler: probably I would if I knew how that looks like 19:47:12 alex_joni: no, haven't tried it 19:47:24 cradek: we need to try it some time 19:47:34 trying now (very slowly) 19:47:42 I'm sure it'll work in axis 19:47:53 nfc about tkemc 19:48:24 nope it's english 19:48:30 running 'LANG=de emc sim' 19:48:50 alex_joni: I'm not quite sure what it would look like either 19:50:58 alex_joni: If all the tcl programs were run from inside scripts/emc, it would be possible to set an environment variable so that 'package require emc' would make some extra commands and variables available, and then particular files (like .ini files, splash-screen gifs, or whatever) would be found based on that 19:51:03 cradek: don't even bother.. I realized translations don't get installed 19:51:19 I spoke too soon - de axis doesn't work either 19:51:42 bugger it.. axis had a fair chance :) 19:51:50 wonder if the emc script screws up LANG 19:52:06 try env LANG=de emc sim 19:52:07 cradek: are you on ubuntu or bdi? 19:52:23 con't think you'll catch him on bdi 19:52:26 don't 19:52:33 wtf is wrong with me... 19:52:36 cradek: on ubuntu I noticed that 'LANGUAGE' was set, and after I unset it, LANG was used. 19:52:36 chris@buster2:~$ dpkg -L emc2-axis |grep /de 19:52:36 /usr/share/axis/tcl/bwidget/lang/de.rc 19:52:36 /usr/share/locale/de 19:52:36 /usr/share/locale/de/LC_MESSAGES 19:52:36 /usr/share/locale/de/LC_MESSAGES/axis.mo 19:52:55 jepler: aha let me try that 19:53:16 jepler: how does that package work? 19:53:39 'package require emc' is that deb related? 19:54:19 oh, I see there's some tcl package foo 19:54:22 alex_joni: I'm a bit fuzzy on how Tcl "packages" work, but the basics are that a directory has a special file 'pkgIndex.tcl' and that directory is listed in tcl's $auto_path 19:54:57 ok I agree de axis works fine 19:55:02 alex_joni: right now there is no tcl "emc package" 19:55:23 guess this is beyond my limited tcl knowledge :( 19:55:24 alex_joni: that's something that would have to be written, and environment variables set for it 19:55:28 except for "Geschwindigkeitsübersteuerung" which still looks a bit ridiculous 19:56:03 jepler: how did you make tcl use the .mo ? 19:56:50 alex_joni: I've never done internationalization for a pure tcl app 19:57:23 jepler: otoh, even if you did and told me, I probably would be just as clueless :)) 19:57:32 alex_joni: I think you're forced to use their terrible msgcat::foo, you can't use .mo files 19:58:18 jepler: ok, then I guess I'll have to see where the .msg get installed to, and use those 19:58:21 alex_joni: based only on the manpage, I think you can extend the directories that are searched for .msg files by the msgcat::mcload command 19:58:35 yup, I think so too 19:59:59 one more question: instaed of [open "|bin/halcmd -skf"] can I do [open"|$EMC2BIN/halcmd ... ? 20:00:38 That should work, as long as $EMC2BIN doesn't contain the kind of characters that are problems in shell commands 20:03:20 hrmm.. does halconfig.tcl work for you if hal isn't loaded? 20:03:31 dunno, I don't have an emc2 machine to test at the moment 20:03:33 it should pop up some window, but I only get some errors 20:03:48 SWPadnos: can you try? 20:04:16 Error in startup script: invalid command name "noHal" 20:04:16 while executing 20:04:16 "noHal" 20:04:16 invoked from within 20:04:16 "if {$temp == -1} { 20:04:19 noHal 20:04:43 although further down there is a proc noHal 20:05:32 does order of proc definition matter in tcl ? 20:06:16 seems so :) 20:06:31 alex_joni: Yes. The proc must be defined before it is called. 20:06:48 ok, ray must have moved it without wanting that 20:07:07 though this is OK: proc a {} { b }; proc b {} {}; a 20:07:27 hrmm.. this was the case 20:07:28 because it's not until a is actually called that b is used, so it's OK that b isn't defined when a is defined 20:07:43 but moving proc b to the beginning cured it 20:08:14 err.. no, the call a was before proc b 20:11:58 why not have scripts/emc put $EMC2BIN on $PATH, so that you can just [open "|halcmd ..."]? 20:12:34 hrmm.. that's nice too 20:12:53 but does it work for this case? 20:13:04 emc runs tkemc.tcl (which is bash, then emcsh) 20:13:10 [open "|..."] will use $PATH 20:13:30 $PATH is global? 20:13:47 PATH=$PATH,$EMC2_BIN_DIR ? 20:14:00 the environment variable PATH is used by the C functions system() and execvp(), one of which is what [open "|..."] uses 20:14:06 PATH=$EMC2_BIN_DIR:$PATH 20:14:49 put it at the beginning, in case we're running in-place but there's a /usr/bin/halcmd from emc2.deb 20:17:39 any idea how to check for halcmd in $PATH from tcl ? 20:17:47 file exists ? 20:18:03 doesn't halcmd always have to be present? 20:18:21 yeah, but halconfig bails out if it's not there 20:18:28 for example not compiled 20:18:50 how can you run emc without halcmd compiled? 20:19:03 you can run halconfig.tcl 20:19:21 and it should test for halcmd and fail if it's not there 20:19:24 oops - back. 20:19:27 but fail nicely 20:19:33 I'll boot up my machine if you still want me to test stuff 20:22:04 SWPadnos: not that urgent 20:22:08 ok 20:22:20 it's booting. I was going to take a look at halconfig anyway 20:23:34 what's the print command in tcl again? 20:23:39 puts 20:23:40 puts stderr 20:23:44 darn 20:23:57 why can't they call it print or write or echo or something :D 20:24:19 those are all taken 20:24:32 proc {print or write or echo or something} {args} { eval concat puts stderr $args } 20:24:45 then you can write: {print or write or echo or something} this is a nifty diagnostic message 20:25:02 well, no, not quite... 20:25:06 forget I said anything 20:25:08 lol, I'd love a program that has 'something "fishy"' in it ;) 20:25:14 print_or_write_or_echo_or_something 20:26:07 sometime in the next 5 years, someone will see this log, and make a function called POWOEOS, and nobody will know why 20:26:22 he will 20:26:27 ah, this is what I meant to write: proc {something fishy} args { puts stderr $args } 20:31:22 puts expects the thing to put on a single line, so using eval concat was the entirely wrong tree 20:31:31 and it was missing some square brackets anyway 20:31:48 I guess I should avoid showing how clever I am at tcl if I'm to continue evading responsibility for the tcl code in emc2 20:31:49 like I would know :) 20:32:07 I guess so too :P 20:34:03 jepler: the cat's out of the bag you know 20:34:36 cradek: think we'll give him a few more weeks to accomodate the developer status 20:34:44 but that's it then.. 20:35:00 step 1: remove the tcl components that have been replaced by superior alternatives (that means mini and tkemc) 20:35:17 alex_joni: I don't get what you mean 20:35:32 step 2: rewrite remaining pure tcl components into python 20:35:44 cradek: he only started to commit code to emc2 recently 20:35:51 jepler: saying that is surely worse than drawing mohammed cartoons 20:37:01 jepler: I don't get it.. are mini & tkemc the superior alternatives? or did they get replaced by superior alternatives? 20:37:15 if the later.. by which? as I can't see any in CVS 20:37:17 alex_joni: he's trolling about AXIS 20:37:31 no he's not.. at least not till it's part of emc2 20:37:44 :P 20:38:10 I can troll anytime I like 20:38:22 I can attest to that 20:38:38 you do resemble a troll sometimes :) 20:38:45 but we all do ;) 20:39:15 speak for yourself 20:39:41 I may not be as cute as my half-sister, but I'm not a troll ;) 20:39:51 trolls are cute :) 20:39:57 at least the cute kind of trolls 20:40:05 the ones with pink hair 20:40:08 heh - to other trolls, I guess 20:40:12 Tananda 20:40:39 I just did a GIS on "cute troll" and I have to agree there's no such thing 20:40:52 lol 20:40:58 GIS=google image search? 20:41:08 yes 20:41:26 read the "M.Y.T.H." series, by Robert Lynn Asprin, I think 20:41:26 internet certainly defines new words 20:42:06 http://i1.ebayimg.com/03/i/05/18/22/df_2.JPG 20:42:42 that's hideous 20:42:48 alex_joni: I've never found those cute... 20:43:00 well.. cuter than other trolls 20:43:07 looks like a baby but even uglier 20:44:21 lol, like the 'ugli_er_' part :) 20:44:49 at least it's quiet_er_ 20:45:06 jepler: how do I test for files in path ? 20:45:22 [file executable foo] doesn't work :( 20:45:33 % set a [open "|zzz"] 20:45:33 couldn't execute "zzz": no such file or directory 20:45:33 % info exists a 20:45:33 0 20:46:09 I just know that was supposed to be a hint.. 20:46:10 I think you shouldn't test, you should just handle the error 20:47:19 I kinda agree 20:47:48 so I should try an exec halcmd ? 20:48:38 yes, and handle an error if you get it 20:48:58 searching the path is hard, and it's stupid to do it - it's the job of exec* 20:49:13 no need to over-write 20:49:24 if {![exec halcmd]} .. ? 20:49:35 I dunno, ask jepler :-) 20:50:10 since a missing halcmd signifies a hopelessly broken emc installation, I say just crash and burn 20:50:21 won't scripts/emc have long since failed if it's not present? 20:50:42 no, you're missing the point.. halconfig can run by itself 20:50:57 not necessarely run from tkemc, or the script 20:51:04 that part is what I am doing now 20:51:20 till now you started emc, switched to a new console, and ran halconfig 20:51:31 proc which file { 20:51:32 foreach dir [split $::env(PATH) :] { 20:51:32 set pathname [file join $dir $file] 20:51:32 if {[file executable $pathname]} { return $pathname } 20:51:32 } 20:51:34 return "" 20:51:36 } 20:51:53 how about: set haltest [exec halcmd] 20:52:07 if {$haltest == ""} { exit } 20:52:10 [which zzz] returns the path to the program 'zzz', or the empty string if there is none 20:52:30 % which bash 20:52:30 /bin/bash 20:52:30 % which flooz 20:52:30 % 20:52:39 I don't trust code I don't understand :) 20:53:11 even I understand that which 20:53:21 even you know more tcl than me 20:53:26 not that I could have written it myself in a half hour 20:53:36 I have no idea what split & join do :) 20:53:54 I think they split and join things 20:53:55 they do the obvious things 20:53:58 anyways.. 20:54:02 [file join $dir $file] is much the same as "$dir/$file", as long as $file doesn't start with a slash 20:54:05 strings, most likely (at least in tcl) 20:54:31 don't bother teaching me.. I'm not at all fond of tcl 20:54:41 alex_joni: I'm not very fond of tcl either 20:54:46 man tcl > /dev/null 20:54:50 jepler: walk away.. 20:55:05 from tcl I mean 20:55:31 alex_joni: first you ask me for help, then you ask me to walk away? Make up your mind. 20:55:45 help me as you're walking away :) 20:55:52 kidding.. 20:56:05 it's not friendly at all (tcl I mean) 20:56:09 * cradek throws a fish at alex_joni 20:56:10 These scripts were made for walkin' 20:56:20 * alex_joni likes fish 20:56:38 cradek: that fish is already transformed into some yummy sushi 20:56:45 some pickled herring in cream sauce would be nice 20:56:49 with wasabi 20:57:01 ok that wasn't my intent 20:57:04 mmmmm - sushi 20:57:19 maybe the next Fest should be in Japan ;) 20:57:25 that reminds me.. I have some ingredients left, should make some sushi these days 20:57:48 err - maybe some cooked fish would be better, with "left" ingredients of this type ;) 20:59:28 well.. I usually use smoked salmon 20:59:34 yummy 20:59:51 not that much of a fan of the raw fish.. 20:59:57 although raw meat is good 21:00:10 I like Salmon, Tuna, and Mackerel quite a bit 21:00:10 jepler: look away :) 21:00:15 also Carpaccio 21:00:29 (on the meat side) 21:01:02 I had shark carpaccio once 21:01:05 very nice 21:01:09 odd 21:01:17 ewwww 21:01:19 shark is a bit rubbery, isn't it? 21:01:20 did I start this? 21:01:25 this is worse than tcl 21:01:28 not as bad as octopus though 21:01:30 not rubbery.. it's good 21:01:37 octopus is damn yummy 21:01:43 Guidos in LA has very good carpaccio 21:01:45 but properly cooked 21:01:51 good food in general, actually 21:02:04 octopus is good, but definitely takes some chewing 21:02:05 some octopus in wine sauce.. 21:02:10 as sushi 21:02:17 lol.. guess so 21:02:33 btw, I made some sausages last week.. they turned out yummy 21:02:47 reminds me of one of my favorite sayings 21:02:57 just got them back from smoking today 21:03:12 "laws are like sausage, you lose all respect for them once you see how they're made" 21:03:18 (or something like that) 21:03:33 well.. I actually was surprised how easy they are made 21:03:53 yep - depends on how fancy you want to get with the spices 21:04:04 and whether or not you have a machine to help stuff them 21:04:05 minced meat & fat, spices, mix for a while, put that in pork intestines.. done 21:04:15 yep 21:04:27 SWPadnos: over here almost every 3rd person has a machine for stuffing those 21:04:37 make that 3rd family 21:04:41 not person 21:04:43 heh - I can't even get my wife to buy me a stand mixer :) 21:04:56 (I'd buy it myself, but they're expensive ;) ) 21:05:13 well.. before the revolution (during the old regime) you couldn't find stuff like that, so people made their own.. 21:05:18 we love going to ermany. I get all the sausages, and she gets all the brerads 21:05:24 Germany 21:05:33 (which is closer to you than we are) 21:05:33 brerads? 21:05:41 did you try met? 21:05:48 yeah - erman bereeserreeads :) 21:06:09 Bread and Sausage (there - damned fingers) 21:06:09 no idea what that is.. 21:06:16 ahh 21:06:30 wurstbrot/ 21:06:32 ? 21:06:33 heh 21:06:58 I like meats more than she does, but she likes all the dense breads more than I do 21:07:15 heh.. soudns like a good fit then 21:07:16 so we still like going to Germany, because they have both 21:07:20 yep 21:09:04 you need to try Mett once 21:09:14 that's in the cologne region 21:09:15 what is that? 21:09:26 it's some minced meat you eat on bread 21:09:34 but with some special spices 21:09:37 very good 21:09:45 hmm - I'm probably going there this September - I'll have to remember 21:09:54 with gurkeys .. yumm 21:10:05 cologne? 21:10:38 yes, cologne 21:10:49 coo 21:10:51 the Photokina trade show is in late September or early October 21:11:19 I like cologne.. were you there before? 21:11:31 3 or 4 times, for a few days each time 21:11:47 guess you climbed the dome then 21:11:54 nope - not there 21:12:00 (did it at the Duomo though) 21:12:10 I'm always at a trade show in Koln 21:12:15 not much time to play around 21:13:15 the first time I was there, I stayed at the Excelsior Dom hotel, I could see the twin steeples in the mist above the hotel roof - it was pretty cool 21:13:44 except that there were metal scaffolds, because it's been under renovation for the last (long time) 21:17:14 SWPadnos: the dome is always under construction 21:17:23 heh 21:17:29 the Domokloster? 21:17:33 local word says that the day they stop building it, it's the end of the world 21:17:47 I see - well then, they can keep on going 21:17:52 but they need clear scaffolds :) 21:17:59 lol 21:18:21 I looked at the scaffolds last time I went up there. do you know they are only suspended on the towers? 21:18:36 I mean, they didn't use bolts to bolt the scaffolds to the towers 21:18:47 they used ropes to suspend the scaffolds up there 21:18:58 right - they don't want to damage the building 21:19:19 well.. I'd feel funny about walking on those 21:19:22 heh 21:19:55 I went inside for the first time when I was there ~1.5 years ago 21:20:15 it's pretty big :) 21:20:21 it is 21:20:26 I loke the organ as well 21:20:28 but you really need to make it up there 21:20:29 like 21:20:34 check out the bells... 21:20:38 I'll try to do that this time 21:20:57 I'll see if my sister wants to pop over from Gottingen 21:21:32 too bad there aren't any fast trains ibetween Gottingen and Koln 21:21:48 can't say I know german trains too well :) 21:22:14 me either, except between Dusseldorf / Koln, Frankfurt, Munich, and Gottingen ;) 21:50:47 SWPadnos is now known as SWP_Away 22:15:48 logger_devel has joined #emc-devel 22:15:48 topic is: "Welcome to the Enhanced Machine Control development place. | Regular Developers' meetings 24/7 !" 22:15:48 Users on #emc-devel: logger_devel jepler anonimasu alex_joni SWP_Away LawrenceG jtr_ @ChanServ cradek steves_logging