#robotics Logs

Nov 12 2018

#robotics Calendar

03:18 AM rue_bed2: --
10:25 AM LuminaxHome is now known as Luminax
11:47 AM rue_mohr: almost got self-modifying C code working last night
11:47 AM rue_mohr: it seems you have to copy your fn to new malloc'd space to be able to modify the content
06:01 PM veverak: wow
06:01 PM veverak: nice
06:01 PM veverak: rue_mohr: care to tell more?
06:30 PM z64555: given the nature of self-modifying code, yes, you need to use it on the stack instead of hardcoded locations
06:30 PM z64555: rue_mohr: playing with markov chains?
06:31 PM rue_mohr: well, since trying it the first time, a different machine wont do it
06:31 PM rue_mohr: so
06:32 PM rue_mohr: http://paste.debian.net/1051472/
06:32 PM rue_mohr: I think it depends on the kernel protection bits that are set
06:32 PM rue_mohr: that one has the mprotect stuff in there
06:32 PM rue_mohr: but would require more work
06:33 PM rue_mohr: on a differnt machine it runs fine without the mprotext
06:33 PM z64555: kernel protection... what? the stack should grow away from the kernal, not towards it
06:33 PM z64555: disclaimer: I'm not a linux dev
06:33 PM z64555: or user for that matter
06:33 PM rue_mohr: me and a fellow ere hacking
06:34 PM rue_mohr: we were tyring to use a 64 bit instruction on a 32 bit os
06:34 PM rue_mohr: we didn't get there, but we had a hell of a time
06:34 PM rue_mohr: hand edit obj files anyone?
06:35 PM z64555: its C... you should be able to execute the assembler instruction without meddling from the OS
06:36 PM rue_mohr: the C compiler will not allow a 64 bit inline assembler instruction in a 32 bit program
06:36 PM rue_mohr: nor will an assembler do it
06:36 PM z64555: oh ffs
06:36 PM rue_mohr: *BUT* if you know the binary you need, you can alloc a region of memory and load it with whatever you want, then call it
06:36 PM rue_mohr: *but* it seems that x86 needs something to flip it into '64 bit instructions' mode
06:37 PM rue_mohr: which is halarious
06:37 PM rue_mohr: cause I'd expect flat mapping of all the instructions
06:38 PM rue_mohr: the load rax, constant instruction, dissassembles, in 32 bit, into something else
07:33 PM rue_mohr: huh server has 4.6 sec lag
07:48 PM theBear: wtf ! are we plaintext-chatting in the early to mid 90's here !??!?! 4.6 seconds is an outrage ! pfft, a man of my stature... how dare they !?!?!
07:49 PM rue_mohr: I remember back int eh 90's when we had a graphic area and icons we could move around a room
07:50 PM rue_mohr: bear, you alive tho
07:51 PM rue_mohr: ....or... that might have just been a reflex...
07:52 PM rue_mohr: do another test here, lets see
07:52 PM rue_mohr: a 3TB drive is $110!
07:54 PM theBear: yep, alive and pending no appeals being allowed, somewhat vindicated and starting to feel ok about things, since friday... https://www.abc.net.au/news/2018-11-07/etem-duga-denies-taking-weapons-to-house-of-ex-wife/10474760 convicted 2 attempted, one succeeded, and a grievous on my face... sounds like a life lived out where yer can't hurt any other nice people to my ears...
07:54 PM theBear: hot damn ! and i thought 80gb drives under a hundred bucks was amazing just 10 or 15 years ago
07:55 PM theBear: wonder what i did to my font recently... all my exclamations look like boring pedestrian grade pipes :-(
07:55 PM rue_mohr: ok, so I think its a mix of being alive and reflex
07:55 PM rue_mohr: |||
07:55 PM rue_mohr: ;)
07:56 PM rue_mohr: so theBear does this mean your more messed up now? (physical shape)
07:56 PM rue_mohr: that was the same crazy person as a few years ago, wasn't it
07:57 PM rue_mohr: isn't that like the second murder attempt in the complex your living in?
07:59 PM theBear: yeah, the cogs of the legal system move real slow here
08:00 PM rue_mohr: theBear, can I sucker you into some voice acting for me?
08:01 PM rue_mohr: its an old question, I actually cant recall what I wanted now
08:01 PM rue_mohr: you still got audio gear, right?
08:02 PM theBear: umm, i don't think a problem with my fonts makes me less physically able <cheeky grin> i spose technically i'm a little bit worse than 2 or 4 years back, words like "degenerative" in yer mri/xray comments/radiographers-report kinda suggest that should be the case, but i'm not noticing too much.. maybe a few more days on my back in a given month or so, but ya know, lying down and painkiller-ed yer tend to sleep or close-to, not like yer staring at
08:02 PM theBear: the ceiling rue-ing (ooh, i used rue in a sentence) yer miserable life ya know
08:02 PM rue_mohr: oh crap, I was suppsoed to make an audio isolator this weekend
08:03 PM rue_mohr: theBear, so, voice acting?
08:04 PM rue_mohr: cmon, I need(ed) and aussie accent, your close enough :D
08:04 PM rue_mohr: I got a serial controlled mp3 player for the robots, I think thats what it was for
08:05 PM theBear: yeah and yeah... probly not a very decent mic any more, but i'm sure i still know a few people with lots of 'em that owe me a favour or two.... tbh i'm kinda hurt that i haven't been asked before... even went fer a chat (when i first moved states back to here 10ish years ago, and needed to find work,) with an old family-friend who records 90% of those political ads (where the last second or so is a low clear voice "blah blah blah approved by senator
08:05 PM zhanx: why is the lag so high?
08:05 PM theBear: Dudeman for the LiberalParty of 'straya" after some slightly slower ya know, mostly vocal message of some kind,) whose his own (otherwise gainfully employed/busied) son did most of them just 'cos i dunno, there ain't many "beautiful man-voices" around anymore ?
08:06 PM theBear: heh, i don't much care for the term 'mate', struggle to make it sound natural even when reading, but apart from that, i can aussie-up my voice pretty darned well
08:07 PM rue_mohr: zhanx, prolyl getting hammered by spammers
08:07 PM zhanx: k
08:08 PM rue_mohr: theBear, recall the airport, your accent is good enough even if you dont think you have one.
08:08 PM zhanx: Normally its my connection, but tonight I know its not
08:09 PM rue_mohr: no I got like 5 sec latency goin in
08:09 PM zhanx: rue_mohr, they dug up the hard line today. Next to my house after the box
08:09 PM zhanx: So its me and 2 other people on the fiber right now
08:10 PM zhanx: I got an 80meg upload done in 4 minutes today
08:10 PM rue_mohr: hah, their getting good at digging up those lines
08:10 PM zhanx: they are
08:10 PM zhanx: its epic fun
08:10 PM zhanx: not really
08:10 PM theBear: i no doubt got a bit of a one, but like the Crane boys (altho to a much less silly extent) from the television world, i try to ya know, say words properly like a real english accent might, rather than just giving up halfway thru like a strayan or irish would (showrrr == show-er in irish, extrapolate as you see fit :] )
08:10 PM rue_mohr: is it the same company each time?
08:11 PM zhanx: No this was the tree service for the power company
08:11 PM zhanx: I was called out to take pics of this one rue
08:11 PM zhanx: easy 100 bucks
08:12 PM rue_mohr: a tree service dug up a fiber line...
08:12 PM rue_mohr: usually they stop at the gound
08:12 PM zhanx: they pulled the tree out for fun, the roots got it
08:12 PM Tom_itx: they wanted to do a really good job
08:13 PM zhanx: either way waveform is out now, splicing in the cold
08:13 PM theBear: as far as the big picture goes, i feel you north of the crappy country border types not only seem more similar to us socially/err, ethics and erm, ya know, what you consider is ok/not-ok than any other country, but that yer accents are one of if not the #1 closest to ours, fer english speaking countries... apart from yer extreme areas, yer know, the flannel wearing types that cut of all their words like a grumpy old scot might, or the areas where
08:13 PM theBear: the oot in yer aboot or the ooose in yer hooowse is a bit too obvious <grin>
08:14 PM zhanx: theBear, you have an accent :)
08:16 PM theBear: speaking of service-boundaries kinda stuff... apparently a friend of a friend (by which i imply it's not just fiction, in my opinion,) had the power company tell them that THEY (the customer) were responsible for repairing (including any costs of course,) the little feed from the street power-lines to their house/home, when EVERYONE (well, the power companies and sparkies and people like us at least,) know that it's VERY clearly the big
08:16 PM theBear: tamper-evident-sealed 100A pre-fuse-box pre-main-switch GIANT fuse just before yer meter, where the power company ends and private maintenance/responsibility begins
08:17 PM theBear: zhanx, heh, i think a bit more when i type than when i speak, tho i am very fond of a few abbreviations/modifications like yer in real talking... throw them in here and there kinda keeps people on their toes, or at least paying attention... kinda sounds outta-place which can help get yer point across if they starting to lose concentration :)
08:17 PM rue_mohr: hmm, so linuxcnc can run a dc motor/encoder via parallel port???
08:18 PM Tom_itx: it's not so evident if you tuck it back in nicely
08:18 PM theBear: rue_mohr, i always assumed so...
08:18 PM Tom_itx: rue_mohr, i don't see why not
08:19 PM rue_mohr: the parallel port is slow as all hell
08:19 PM Tom_itx: somewhat limited on the encoder res
08:19 PM rue_mohr: yea
08:19 PM theBear: Tom_itx, mmm, and the new ones are much easier.. the old ones with some lead-like VERY soft brittle metal crimped REAL flat over some heavy duty wire stuff are tricky... even when yer done it before you gotta be real gentle to avoid them just crumbling to pieces ;-)
08:19 PM Tom_itx: your top speed may be limited
08:19 PM Tom_itx: that's why i keep prying you to look at the mesa cards
08:20 PM theBear: that'll make it match your propriety nicely at least :)
08:21 PM theBear: mesa ? they some fancy purpose-designed cnc i/o things ? surely not something to do with the open gl/3d mesa stuff, at least i feel like that should be a surely at the start of this sentence
08:21 PM Tom_itx: http://www.mesanet.com/
08:21 PM Tom_itx: fpga based motion control
08:21 PM zhanx: theBear, I can see that
08:22 PM theBear: oooh fancy fancy-pga in fact
08:23 PM zhanx: oh good new rue, my copper coil boiler works right now
08:23 PM zhanx: i have proper here
08:23 PM zhanx: heat
08:23 PM theBear: i dunno exactly hwo fast you guys are building machines these days, but i always figured people like us just kinda roll our own controllers or at least interface-between-machine-and-software-thingers with whatever micro we been enjoying at the time
08:24 PM zhanx: I pulled the insulation off it, i bent a line
08:24 PM theBear: ooh, copper pipe/coil as the heater element ?
08:24 PM zhanx: yep
08:25 PM zhanx: electric water bath
08:26 PM zhanx: its now 29F out or what -2c? and its 90F in here
08:26 PM zhanx: before i was hard pushed to get over 50F
08:29 PM theBear: nice... only seen that done ONE time, in a rather expensive but for some reason unknown/unpopular old smoke/fog (theatrical/entertainment kinda smoke that is) machine ... big toroid pumped maybe 30A+ into about 6" of pfft, 4 or 5mm dia approx copper pipe, zero thermal lag or coupling-issues to design around, and fer bonus points they just tacked a dot of something and a couple wires near the err, "business-end" for similarly drawback-avoiding
08:29 PM theBear: thermocouple/temp-sensing ... makes such a machine (basically a glycol-mix steam-maker, or if yer familiar with any "real" espresso machine, basically exactly the same deal, but a little hotter 'cos glycol ain't water, and the very large majority of them, all brands and ages, are 99% the same as a coffee machine design-wise... big heavy prone-to-scaling-and-unfixable-blocks copper thru a big brick of cast-ally heater blocks, literally (in again
08:29 PM theBear: maybe 90% of all brands/models/ages) the same thug-thug mains thru a diode and a couple spring-valves little pumps as better domestic and all but the biggest commercial coffee machines use... generally a very crappy way to achieve the goal
08:30 PM Tom_itx: theBear, https://www.youtube.com/watch?v=J6n2ZgY-5Ls&t=9s
08:30 PM Tom_itx: the one i built
08:31 PM zhanx: theBear, I was HVAC in a former life, so it was 220v heating element to a pid with a coil and fans
08:31 PM zhanx: right now I need to check the water level still
08:31 PM zhanx: my line set is 100' of 6mm copper id
08:33 PM theBear: recently a friend got a cheap 2ndhand blow-up/portable spa-pool thinger... about 2kw of heating and both water and air pumps so it works like a real one when yer sitting in it (2.4kw is what a standard mains socket/plug/lead can do here,) that the heater went a bit leaky kill-the-gfi after not much use so i been thinking about/looking at all kinds of makeshift heater replacements (the original has to be a weird shape and inlet/outlet positions to
08:33 PM theBear: fit inside the all-in-one giant plastic egg thing that runs it all, but replace that with a pipe and run the already pumped water thru a something-else and you lookin good...) sidenote: original 2kW heater element is officially spec'd/rated to give yer just under err, 2degC from memory, temp-rise per hour, at the rated fill/water-amount, which is just silly ... you'd have to start the heater a day or two before you wanted to use the thing
08:34 PM theBear: i been thinking a makeshift "instant gas hot-water heater" like sensible houses with gas service available use would be a lot better... run it off bbq gas bottles, probly 2ndhand bbq flame-nozzle-thingers and valve/knobs etc, then just curl up some copper pipe and weld a box around it...
08:35 PM zhanx: that would cost alot
08:35 PM zhanx: propane is expensive for small fills
08:49 PM theBear: i don't think we use propane here, or at least not the same mix as us and probly other places, but there's a pretty universal bottle-swap system fer bbq bottles here that been around a long time now... basically yer take the empty bottle (and cos of this same system it's always not-rusty-as-heck and within the 10 or 15year legal age-limit for such bottles,) to any hw store or petrol station and maybe $20-25 later the guy gets yer a new full one
08:49 PM theBear: outta the big bottle-cage and off yer go... but without a massive non-domestic power socket (and matching non-domestic multiple BIG feeds from the power lines outside,) yer never gonna be able to break the 2.4kW limit, or at best maybe double it with a long extension lead to the other end of your house where there might be a different breaker/circuit feeding the sockets, which gets back to the stupid 1 or 2C per hour temp rise, while a single
08:49 PM theBear: "strip" of bbq burner i guesstimate will do more than a couple kW worth of heating if it all going into an insulated metal box full of pipe, and for a LOTTA hours, but more importantly just quicker... also we have one of if not the most expensive electricity prices ANYWHERE the last decade or so, which might swing the maths a bit if yer used to sanely priced kW/h's
08:50 PM theBear: pfft, fonecall after fonecall today... it's almost as if i hadn't spent most of my adult life giving people the impression i don't care for chatting away the hours :-]
08:59 PM theBear: i do remember when i was young before the bottle-swap stuff existed tho... nightmarish, not just the prices, but the way your bottle always seemed to be a month or 3 past the use-by age on the one day you wanted to bbq that year, so yer not only pay for the expensive tiny-fill, but a silly-overpriced new little bottle too, or often a not-new one, still for a crazy price and already halfway to retirement age
09:00 PM theBear: heh, on reflection, back then gas bbq's were VERY rare here... whether in a half-44gallon-drum on saw-horses, a rough horse-shoe of poorly laid bricks or whatever was handy at the time, it was all about wood and fire in those days
09:04 PM theBear: hehe, just reminded myself of this recent (and much loved) find.... https://www.youtube.com/watch?v=NE-al0xSFJo&feature=youtu.be&t=127 the first episode is also a highlight in my eyes, even just the very first scene... https://www.youtube.com/watch?v=DHQRZXM-4xI the err, series of videos is about showing australian culture and how to integrate, thru the eyes of some comfortable, but still recent immigrants, done for the benefit of their fictional
09:04 PM theBear: country-men who are fresh off the boat, and while not exactly offensive/abusive, nicely captures a lot of the more unique and often ridiculous ways that we behave here ;-)
09:07 PM theBear: ZOMFG!!! i forgot, about a minute into episode one is possibly the funniest bad wordplay/one-liner i will ever hear... re: % of peoples and racism... just pure gold !
09:08 PM rue_mohr: :)
09:12 PM theBear: ooh, just picked up a little err, disc-shaped magnet from under the desk.... i wonder if you've seen such a magnet before.... appears to be straight-up traditional iron-coloured powdered ferrite gooped together somehow kinda magnet, bout the size of a mid-large coin, or err for accuracy sake, say a cr2032, give or take a mm here and there, got a very small and shallow dimple/indent in the center on one side (maybe 4-5mm dia and 1/3mm deep) and that
09:12 PM theBear: same side is NOT MAGNETIC !!! somehow coincidentally spotted what looks like the same one at my local electronics place a few days after i inherited a couple of them somehow or other, and they clearly spec'd/sold as one-sided-magnets ! how the eff ?!?!!?
09:19 PM zhanx: magic
09:45 PM theBear: hmmmm... i'm almost entirely sure (years of fulltime cripple medications, i don't never-question the validity of my memory like when i was young and eager and had everything to prove to the world <wink>,) that it was my local place that listed/sold the same things, but i can't find any non neo/rare magnets listed there right now, and for some reason i never worked out, they keep out-of-stock/discontinued items better maintained in their
09:45 PM theBear: website/stock-whatever-db than current ones (even got a big red 'search discontinued items only' tickbox right next to the main search-box consistantly thru the website... if anything i woulda thought the opposite would be an often desired option, meh) either way, they don't seem to have them right now, tho they DO say up to 50% off sale must end 1st december, which is nice to know... won't be like the 2nd half of last year, 3-5year FULL stocktake
09:46 PM theBear: + cleanout of all the wacky overpriced (pre-early-adopter styles) things their no doubt drug-addled purchasing dept seems to constantly be buying in bulk, only to have it stay on the shelves 'cos a month later EVERYWHERE on the web adn in the real world has the same thing only smaller and better for under $20, PLUS a few of the senior floor/shop-staff were just sick of a bunch of various component+similar crud that had been taking up valuable retail
09:46 PM theBear: space fer too long, thus the many MANY $5-$20 grab/random bags of stuff i picked up during the period... i got every size and shape of phoenix or very similar fancy connectors (phoenix are the green ones, bit atx power style molex-esque, often seen on things like serial links to alarms or i dunno, crappy cheap led-controller-boxes, literally over $1000 worth of nice new brand-name to3 pnp "linear" (old MUCH more than logic-voltage to saturate the
09:46 PM theBear: gate kinda ones, which is fine,) fets in a single $15 bag, all kinds of random gold plated banana jacks and piggybacks, odd rca and 1/4" bits and pieces, a nearly lifetime (hobby) supply of various electro and various mains (X? and Y? kinda ones) caps, all sorts of awesome crap
09:46 PM theBear: and that's officially gone from talking to myself to ranting, i'm gonna go see if i can do SOMETHIGN usefull before someone turns up at the door or i get another fonecall :-) later t8-er
09:49 PM rue_mohr: ok I'm back from youtube
10:04 PM Tom_itx: did you get lost in it?
10:05 PM zhanx: Tom_itx, that is normal
10:06 PM Tom_itx is now known as Tom_L
10:06 PM Tom_L: i was lost for a while too
10:07 PM Tom_L: you get started on one and one thing leads to another
10:19 PM rue_mohr: https://www.youtube.com/watch?v=fCn8zs912OE
10:19 PM rue_mohr: so, 80% of the irc databases should be tokenizable
10:19 PM rue_mohr: quiet you!
10:19 PM rue_mohr: :)