#garfield Logs
Dec 02 2018
#garfield Calendar
12:00 AM zhanx: hold on link is being weird
12:04 AM zhanx: http://www.ctr-electronics.com/pdp.html
12:04 AM zhanx: with
12:04 AM rue_mohr: geez, who the hell made thelist
12:04 AM zhanx: 8 of these http://www.ctr-electronics.com/vrm.html
12:04 AM rue_mohr: yea, these guys cater to big stupid and rich
12:04 AM zhanx: no clue
12:05 AM rue_mohr: "Use the 5V 2A connection on the VRM. However this radio is not legal to use in the FRC2016 season."
12:06 AM rue_mohr: yea, they had a gig going
12:06 AM zhanx: lol
12:06 AM rue_mohr: they were making overpriced stuff for a competition where people HAD to use your kit
12:06 AM zhanx: this from the 2016/2017 season
12:06 AM rue_mohr: wow, total money grab
12:08 AM rue_bed: and sponsors that throw in thousands of dollars without a care
12:08 AM rue_bed: ok, gonna try and nap
12:08 AM rue_bed: but a cat is comming for me
12:08 AM rue_bed: and I'm stuffed with too mcuh food
12:09 AM rue_bed: arg, I just want to code
12:09 AM zhanx: hey rue_bed we scored
12:09 AM rue_bed: :)
12:09 AM rue_bed: ignore the prices, tho eh? thats what they paid, tho its nice stuff
12:09 AM rue_bed: rigged pricing
12:09 AM rue_bed: eeesh
12:10 AM zhanx: and to think i had to leave the 6' part bin at the brother in laws to make time
12:10 AM rue_bed: :)
12:10 AM rue_bed: hows the ratio on the motors?
12:10 AM rue_bed: not too fast, not too slow?
12:10 AM zhanx: 154:1
12:10 AM rue_bed: oof, k
12:10 AM rue_bed: robot arm joint
12:10 AM zhanx: 12v 4amp
12:10 AM rue_bed: not ...
12:10 AM zhanx: yep
12:10 AM * rue_bed counts on fingers
12:10 AM rue_bed: wow
12:11 AM rue_bed: they are a lot larger than they looked
12:11 AM zhanx: size of a half can of soda
12:11 AM zhanx: that 8oz one
12:11 AM rue_bed: good thing I know binary, I can count to 1023
12:12 AM zhanx: like i said i got the 36" arm kit not the industrial one
12:12 AM zhanx: but i got a good one
12:12 AM rue_bed: post a - or link to instructions
12:12 AM rue_bed: I'd like to see the design
12:12 AM zhanx: no instructions
12:13 AM rue_bed: somethin
12:13 AM zhanx: I am going off marked on the aluminum
12:13 AM rue_bed: is it a first challange?
12:13 AM zhanx: yes
12:13 AM rue_bed: hahaha
12:13 AM zhanx: this was marked 3rd year college on the box
12:13 AM rue_bed: dont go cantalevered tho eh?
12:14 AM rue_bed: that would make it more fun
12:14 AM zhanx: I dont know yet
12:14 AM rue_bed: esp knowing you dont have to follow the rules
12:14 AM zhanx: its like i have all the wiring and parts almost but... no paper
12:14 AM rue_bed: one of the motors had that big gear on it, (they put it on wrong side) is there a small gear?
12:15 AM zhanx: and i have a god damn power block for it from hell
12:15 AM zhanx: lots of small gears
12:15 AM zhanx: gears box style amounts
12:15 AM rue_bed: ah good shjow, cause of course the cantaleverd torque would strip those motors
12:16 AM zhanx: one that was put together partly
12:17 AM zhanx: it had a servo with a block to lock the gear location
12:17 AM rue_bed: http://ruemohr.org/%7Eircjunk/robots/arm6/p1070894.jpg
12:17 AM rue_bed: that guy needs mor ework
12:17 AM zhanx: so that tells me it had to hold wieght with out power
12:18 AM rue_bed: nap, cam software, work 5 mroe days
12:18 AM zhanx: they pinion geared the block with the servo if that makes sense
12:18 AM rue_bed: next week I get to upgrade all the lights in one of the large grocery stores
12:19 AM zhanx: oh fun
12:19 AM rue_bed: I have 3 helpers
12:19 AM rue_bed: its not my usualy project
12:19 AM rue_bed: all the exit lighting
12:19 AM zhanx: another part that was together had 5-6 gears and a servo on it
12:20 AM rue_bed: if its first, there prolly wans't a design and they had to make it up
12:20 AM zhanx: true
12:20 AM zhanx: still might copy it but make it better
12:20 AM rue_bed: the money grubing saddens me
12:20 AM rue_bed: nap!
12:21 AM zhanx: like i said i have 10 grand in part due to that
09:26 PM rue_mohr: zhanx, hash tables
09:26 PM rue_mohr: a little voice in the back of my head says there is a way to make a hash that is just as long as you need for the set your building
09:27 PM rue_mohr: but that implies you know how many things your hashing in the first place, and I think that sopmething that isn't a desired consideration in the first palce
09:35 PM zhanx: rainbow hash table?
09:36 PM zhanx: I am around reading up on CAN protocol from NI
09:39 PM rue_mohr: I keep needing to do name-value lookups
09:40 PM rue_mohr: / gcc -lz main.c; ./a.out
09:40 PM rue_mohr: #include <stdio.h>
09:40 PM rue_mohr: #include <zlib.h>
09:40 PM rue_mohr: #include <string.h>
09:40 PM rue_mohr: #include <stdint.h>
09:40 PM rue_mohr:
09:40 PM rue_mohr: int32_t s2crc32(char * s) {
09:40 PM rue_mohr: return crc32(0, (const void*)s, strlen(s));
09:40 PM rue_mohr: }
09:40 PM rue_mohr:
09:40 PM rue_mohr: int main(){
09:40 PM rue_mohr: printf("%lX\n", s2crc32( "The quick brown fox jumps over the lazy dog"));
09:40 PM rue_mohr: return 0;
09:40 PM rue_mohr: }
09:40 PM rue_mohr: there, instant hash... if you trust it...
09:41 PM rue_mohr: so, between the binary tree table code, and the string hash code
09:41 PM rue_mohr: we have a hash table
09:41 PM rue_mohr: as a binary tree
09:41 PM rue_mohr: ;)
09:41 PM zhanx: why
09:41 PM zhanx: are you making this so hard on your self
09:42 PM rue_mohr: ?
09:42 PM rue_mohr: what would you suggest? c++?
09:42 PM zhanx: why do you need a hash table
09:42 PM rue_mohr: I keep running into needing to indentify values by a string name
09:43 PM zhanx: ok, I can see that
09:43 PM rue_mohr: you hash all the strings
09:43 PM rue_mohr: cause you dont need them back
09:43 PM rue_mohr: theri just a reference name
09:43 PM rue_mohr: so, they only take up 32 bints
09:43 PM rue_mohr: bits
09:44 PM zhanx: ah that is why the size
09:44 PM zhanx: what is the speed trade off for size is my next question
09:45 PM rue_mohr: well, binary tree over a list
09:46 PM rue_mohr: bit more memory but 2nd root on n entries for search time
09:46 PM rue_mohr: approx
09:47 PM zhanx: a binary tree is slower to search on I thought
09:47 PM zhanx: also your hash table to memory allocation
09:47 PM rue_mohr: binTreeSet( &t , s2crc32("Pi"), 3.14) ;
09:47 PM rue_mohr: binTreeSet( &t , s2crc32("Meaning of life"), 42) ;
09:47 PM rue_mohr: binTreeSet( &t , s2crc32("e"), 2.71828) ;
09:47 PM zhanx: seems like your are adding more time on the search to me
09:48 PM zhanx: but i can't code
09:48 PM zhanx: or am I thinking this wrong
09:49 PM rue_mohr: http://paste.debian.net/1054120/
09:49 PM zhanx: your storing the hash in the tree not a hash table
09:49 PM rue_mohr: think big scale, lots of named values
09:50 PM rue_mohr: zippo:/files/programming/c/libdev/bintree$ ./a.out
09:50 PM rue_mohr: key: EFDA7A5A -> value: 2.718280
09:50 PM rue_mohr: key: 84865BF7 -> value: 42.000000
09:50 PM rue_mohr: key: CF0C9657 -> value: 3.140000
09:50 PM rue_mohr: ----
09:50 PM rue_mohr: key: CF0C9657 -> value: 3.140000
09:50 PM zhanx: k
09:50 PM rue_mohr: so, I set 3 values by using a name string,
09:50 PM rue_mohr: then searched and pulled one back out
09:51 PM zhanx: I see that
09:51 PM rue_mohr: aka, I didn't ahve to do a bunch of string compares
09:51 PM rue_mohr: I suspect a checksum would hav worked ok too, but I'd not trust the uniqueness as much
09:51 PM zhanx: I stand corrected
09:52 PM rue_mohr: huh, ascii rolls over a 32bit number at 33554432 chars...
09:53 PM rue_mohr: doesn't seem right
09:53 PM zhanx: no that doesn't
09:53 PM rue_mohr: I'd thing about 4.5 chars
09:55 PM rue_mohr: ok, so, hmm
09:55 PM zhanx: wait how did you get that number
09:55 PM rue_mohr: 2^32/127
09:55 PM rue_mohr: logic flaw
09:56 PM rue_mohr: not gonna try to work it out tho
09:56 PM zhanx: k
09:56 PM rue_mohr: as 127 is the largest a character could be,
09:57 PM zhanx: unless you want unicode
09:57 PM rue_mohr: so, if you divided out the positions into character spaces 127 wide
09:57 PM rue_mohr: and put a 1 in each (there is the flaw) position of /127 for each character of the string
09:59 PM rue_mohr: ok, so there, I did a hash table
09:59 PM zhanx: here i was thinking ascii was 8 bit not 2 bit
09:59 PM rue_mohr: I even made a demo to use it as a hash table
09:59 PM rue_mohr: and a binary tree
10:00 PM rue_mohr: I suppose if this code gave back a void*
10:00 PM rue_mohr: I could use it for anything
10:00 PM rue_mohr: even fn pointers
10:00 PM rue_mohr: hmmm
10:01 PM zhanx: thanks rue_mohr you just killed the train i was on
10:02 PM * rue_mohr tries to cover his ears hard enough to wash out the sound of the sqeeking/crunching/exploding train
10:03 PM zhanx: i want to use those power boards for the energy usage monitor that is built in
10:03 PM zhanx: and then you side tracked me
10:04 PM rue_mohr: you need a hash table of values
10:04 PM rue_mohr: "rotate motor current"
10:04 PM rue_mohr: your biasing my towards working on that arm again
10:04 PM rue_mohr: all it needs is time
10:04 PM rue_mohr: but I want to finish....."" this CAM program
10:05 PM rue_mohr: I'm close
10:05 PM zhanx: oh finish by all means
10:05 PM rue_mohr: well, for hole drilling anyho
10:05 PM zhanx: I am only in my planning stages on the arm
10:05 PM rue_mohr: I think I'll stop when I hav it drilling holes
10:05 PM rue_mohr: I can see that Ic ould pour a LOT of time into this
10:05 PM rue_mohr: no gearbox collars yet tho eh?
10:06 PM zhanx: make pcb's
10:06 PM rue_mohr: maybe you can make your own 2:1 now
10:06 PM rue_mohr: with metal gears
10:06 PM zhanx: 3 gear boxs
10:06 PM zhanx: had boyscouts etc today so not much time to look at stuff
10:07 PM zhanx: then I got in to the photon particles to test out the OLEDS on them
10:07 PM rue_mohr: how do we trip ourselvs into exponential progress?
10:07 PM zhanx: they are nice
10:07 PM zhanx: rue_mohr, I would settle for staying on track for 8 hours in one day
10:08 PM zhanx: tomorrow I am going to get the base of the bot put together
10:08 PM rue_mohr: I got so many old things to catch up with
10:08 PM rue_mohr: "damnit I should have"
10:08 PM rue_mohr: the concurrent editor would be a main focus now if I had anyone to help me code
10:08 PM zhanx: I need to do about 100 things at once
10:09 PM zhanx: 3d printer needs upgrades, its family time, its boyscout time, work, food, etc
10:09 PM rue_mohr: tell me when youhave the collars ready, if you still want ot do that
10:09 PM rue_mohr: yea, work/food/sleep are a major impediment for me
10:09 PM zhanx: k, i will print them tomorrow while i am doing the base
10:09 PM zhanx: I have a "plan"
10:09 PM rue_mohr: no, you cant print the collars
10:09 PM rue_mohr: they have to be metal
10:10 PM zhanx: the gears first then the collars to match them
10:10 PM rue_mohr: you can make the collars whevener their just nuts with grub screws
10:10 PM rue_mohr: I did it so they dont have to be drilled out
10:10 PM rue_mohr: I'm learning!
10:10 PM zhanx: i did put the batteries on the charger for them
10:11 PM zhanx: my new work drill beats my corded pos
10:11 PM zhanx: plus I have to run 200 ish feet of cable tomorrow, for the furnace
10:12 PM zhanx: currently its 2 wire for the t-stat, i need a 4 wire
10:12 PM zhanx: running 6 as that is what i have
10:13 PM zhanx: ugh
10:13 PM rue_mohr: one day they will resent lvt not having a ground
10:14 PM rue_mohr: ok, back tot eh problem that put me on hashtables
10:14 PM zhanx: go, i am going back to NI's datasheets
10:15 PM rue_mohr: I have a fn that is called when a entry field gets an entry, and the only handle it gets is the string for what field it does into
10:16 PM rue_mohr: I need to break that down into a switch statement, so I can direct the value to one of the values in the struct
10:29 PM zhanx: I need to dumpster dive tomorrow, I guess the grounds crew tossed out a bunch of stuff from storage
10:29 PM zhanx: my 5 truck loads was a fraction I guess, brother in law called me
10:35 PM rue_mohr: more robotics!?
10:35 PM zhanx: yep
10:35 PM rue_mohr: ouch
10:36 PM zhanx: I guess another class room they didn't say anything about
10:36 PM zhanx: this one is fair game for the students also, they left the door open on the construction dumpster
10:37 PM rue_mohr: I dont suspect any of the students have enough interest
10:37 PM rue_mohr: just like me as a kid walking by a broken tv on the side of the road for months thinking about if there was anyting I wanted in it
10:38 PM Tom_L: you made up for it since then
10:38 PM zhanx: debating really
10:38 PM zhanx: do i kill my plans for tomorrow and have enough stuff or get more stuff
10:39 PM Tom_L: depends if they were profit making plans or other
10:39 PM rue_mohr: get as much as you can
10:39 PM rue_mohr: "Opportunity is fleeting"
10:39 PM zhanx: other Tom_L
10:39 PM rue_mohr: technically, I'd say go get it now
10:40 PM Tom_L: so rent a flatbed and load the whole dumpster. bring it back when you're done looking :)
10:40 PM zhanx: its raining
10:40 PM zhanx: lol Tom_L my wife would kill me
10:40 PM rue_mohr: then you shuld move fast
10:40 PM Tom_L: last i checked i'm fairly waterproof
10:41 PM zhanx: you guys are bad a influence
10:41 PM Tom_L: you did ask
10:41 PM rue_mohr: I'm water resistant down to a few feet for a few mins
10:41 PM zhanx: i did
10:41 PM rue_mohr: "Opportunity is fleeting"
10:41 PM zhanx: ok, I will call the brother in law at 8 am and have him check it
10:41 PM rue_mohr: ^^^ do not underestimate that!
10:42 PM zhanx: then go dive for a full load
10:42 PM rue_mohr: does he know a capacitor from a bent nail?
10:42 PM zhanx: nope
10:42 PM rue_mohr: he will jus say its a dumpster full of garbage
10:42 PM zhanx: he knows its electronic by the fact its a thing
10:43 PM zhanx: but the cool thing about him, he is in a band, so grabbing cables and power supplies is his thing
10:43 PM zhanx: he made sure to get them all for me
10:43 PM rue_mohr: anything that has a battery in it and gets wet is donedky
10:44 PM zhanx: if its a box of another 100 controllers I will not be happy
10:44 PM rue_mohr: YOU BE CAREFULL OR i'LL START WALKING THERE NOW
10:45 PM zhanx: 28 days later the zombie rue shows up
10:45 PM rue_mohr: "brains... need more.... brains...."
10:45 PM rue_mohr: "oo m328!"
10:46 PM zhanx: whats funny, only 1 arduino so far
10:46 PM rue_mohr: for those competitions, the parts are regulated
10:46 PM zhanx: I figured there would be more
10:46 PM rue_mohr: you HAVE TO buy their overpriced kits
10:46 PM zhanx: which wow they are
10:47 PM rue_mohr: and the kids are forced to raise the money
10:47 PM zhanx: really?
10:47 PM rue_mohr: so, they go around and get big coperate sponsonrs
10:47 PM zhanx: thats stupid
10:47 PM rue_mohr: who give them lots of money to get the parts and go to the competition
10:47 PM rue_mohr: its really sick zhanx
10:47 PM zhanx: It is
10:48 PM zhanx: I mean look at this stupid power distro board
10:48 PM zhanx: 204 bucks for that???
10:48 PM rue_mohr: they change parts too
10:48 PM rue_mohr: I dont know how the people who are gonna make a mint set it up
10:48 PM zhanx: I did find out they used the photon particles I got as bot labels as all thing
10:48 PM zhanx: 64 dollars a bot
10:48 PM zhanx: like wtf
10:49 PM zhanx: its called tape and a marker
10:50 PM zhanx: why they needs an OLED display on a robot for a number blows my mind
10:51 PM rue_mohr: been trying to think of what to use screens that small for
10:51 PM rue_mohr: I got a long oe to make a network tester
10:51 PM rue_mohr: you plug in it, it'll tell you if there is link
10:51 PM rue_mohr: then it'll tell you if there is dhcp
10:51 PM rue_mohr: then it'll get an address and tell ya what it is
10:51 PM zhanx: once i got them online they all came up with a number on them
10:51 PM rue_mohr: that projects on my todo list
10:52 PM zhanx: oh look lets make a number on a bot cost more than my printer
10:52 PM zhanx: and I have 20 of them
10:53 PM rue_mohr: if you dont want 4, I'm game
10:53 PM zhanx: ok
10:53 PM zhanx: I will send you some
10:53 PM rue_mohr: hey, did you say if thre were those funky nxt cords?
10:53 PM rue_mohr: the 6 pin with the offset latch?
10:54 PM zhanx: yep
10:54 PM zhanx: i have a ton of the cords also
10:54 PM rue_mohr: moonis working on a nxt controller, could use 3
10:54 PM rue_mohr: moon
10:54 PM zhanx: have many extra just in case ? 20?
10:54 PM rue_mohr: 10 would be complete overkill :)
10:55 PM zhanx: ok
10:55 PM zhanx: 4 photon kits, 10 cables, 1 industrial usb kit with psu
10:55 PM rue_mohr: :) maybe start a box, and I'll think for a while
10:55 PM zhanx: k
10:56 PM rue_mohr: how many photon kits were there???
10:56 PM zhanx: extra nxt controller for sure, i have a few
10:56 PM zhanx: 20 work
10:56 PM zhanx: 5 don't
10:56 PM rue_mohr: (:|
10:56 PM rue_mohr: wow
10:56 PM zhanx: so far
10:57 PM zhanx: each kit is a photon particle, a oled and charger board
10:57 PM rue_mohr: there any quardrature encoders extra in there?
10:57 PM zhanx: weirdly only 1 so far
10:57 PM rue_mohr: k
10:58 PM rue_mohr: what kinda mechanical interface did they put on it, and whats it got for resolution?
10:58 PM rue_mohr: (curious)
10:58 PM zhanx: mind you they packed the boxes
10:58 PM zhanx: its in the shed, will pull it out tomorrow
10:58 PM rue_mohr: k
10:58 PM zhanx: I had to pack the shed, no room etc
11:00 PM zhanx: rue if it fits want one of these power disto blocks?
11:00 PM rue_mohr: :) I'm ok, you need the power monitor
11:00 PM rue_mohr: do you know what the sensor is?
11:00 PM zhanx: ok i have a couple of them
11:00 PM zhanx: not yet
11:00 PM zhanx: that is on the table for tomorrow
11:01 PM rue_mohr: resistor or one of the fancy current sensor chips
11:01 PM rue_mohr: aha, I can pass a number via the button callback
11:10 PM furrywolf: supposed to get cold tonight... where cold here is defined as freezing. I still have all my peppers outside...
11:10 PM furrywolf: hopefully not all of them die.
11:10 PM zhanx: so its one year today that Alienware A4 5000 dollar pc was not picked up
11:10 PM zhanx: is it mine now?
11:11 PM rue_mohr: I think by a long shot dude,
11:11 PM rue_mohr: have you been keeping it warm under a spare harddrive?
11:11 PM zhanx: nope
11:11 PM zhanx: in warm storage and dry
11:12 PM zhanx: it has 4 video cards :D
11:13 PM zhanx: I think tomorrow I am getting an upgrade
11:13 PM rue_mohr: dont tell them tho, they will want it back and still never take it
11:13 PM zhanx: they didn't pay me
11:14 PM zhanx: they owe me for a mobo and the install
11:14 PM furrywolf: do you have a sign or other policy along the lines of "hardware not picked up within 90 days will be considered abandoned"?
11:15 PM zhanx: furrywolf, no I have a handshake and pay your bill or I don't beat you deal
11:16 PM furrywolf: ah, kinda like the mortgage guy here...
11:17 PM zhanx: basically
11:17 PM zhanx: I am a big guy, so you pay the price we agree on or, its not leaving
11:17 PM furrywolf: last week they shut down two bars here for selling cocaine... I LOLed when the article said they were both owned by an olive oil company.
11:18 PM rue_mohr: sweet, most of the callback id's work
11:19 PM zhanx: nice rue
11:19 PM rue_mohr: the checkbox is being trickey
11:20 PM furrywolf: bbl, wolfy bedtime
11:20 PM zhanx: shit rue, this being a game machine do i have to kill my linux rule to use it right
11:21 PM rue_mohr: hmm
11:21 PM rue_mohr: game devs keep drifting in and out of the liunx world
11:21 PM rue_mohr: aha, got the toggle button
11:24 PM rue_mohr: there is nothing quite as humiliating as going to a book to reference something complex your having problems with, and its on page 10
11:24 PM rue_mohr: "your an idiot, thats easy."
11:24 PM rue_mohr: :/
11:31 PM rue_mohr: hey! ok, I have a callback for modification or trigger of each field
11:45 PM rue_mohr: arg, its like having a 80x80 exel grid you have to load from a integer array!
11:45 PM rue_mohr: without a loop!
11:46 PM rue_mohr: huh, dejavoo, i'm abuot to hear soemthing about russians in context of coding...
11:47 PM zhanx: socks made you guys paid 1.50 each to a foreign government nice
11:48 PM rue_mohr: havn't heard of socks yet
11:48 PM zhanx: Trudue and his socks
11:48 PM zhanx: here we call him socks
11:48 PM rue_mohr: trying to ignore it, its just frustrating
11:48 PM rue_mohr: ah
11:49 PM zhanx: dude can't pay vets
11:49 PM zhanx: but can fund that
11:49 PM zhanx: nice
11:53 PM rue_mohr: there are entire towns where everyone is a govt paper pusher
11:53 PM rue_mohr: around and around in circles
11:53 PM zhanx: your population can't handle that debt
11:54 PM zhanx: it doesn't make sense
11:54 PM rue_mohr: dosn't even matter what happens to it, just goes around
11:54 PM rue_mohr: dunno how I'm gonna build a house
11:54 PM zhanx: brib
11:54 PM zhanx: bribe
11:54 PM zhanx: seems to be the cand
11:55 PM rue_mohr: I see it plausable I might not be able to
11:55 PM zhanx: canada way
11:55 PM zhanx: Socks signed the UN pact for human right to immigrate. There goes your health system
11:56 PM zhanx: which is sad as canada balanced the army and the health care system