#garfield Logs

Mar 07 2021

#garfield Calendar

06:53 AM rue_mohr: where did irc go
07:00 AM rue_mohr: ok,
07:00 AM rue_mohr: my room is full of dead laptops
07:00 AM rue_mohr: I have one that boots dos
07:00 AM polprog: what do you need dos for
07:00 AM rue_mohr: well 2, but the hard drive is SO much trouble to get in and out of that toughbook that I dont want to play with it
07:00 AM polprog: also i love that toughbook :P
07:00 AM rue_mohr: hah
07:00 AM rue_mohr: ever removed the hard drive from one/
07:00 AM rue_mohr: ?
07:00 AM polprog: no, but i know how it looks like
07:00 AM polprog: hard drive heater :V
07:00 AM polprog: i've rinsed the other dead PSU in the shower to get rid of the dust, might as well recap that one somewhere this week
07:00 AM polprog: i'd have two 600W units
07:00 AM polprog: then
07:00 AM polprog: also - i reverse engineered your keybb.exe
07:00 AM polprog: it's nice :D
07:02 AM rue_mohr: must have been borland
07:02 AM rue_mohr: bc
07:03 AM polprog: yes
07:03 AM polprog: borland C++
07:03 AM rue_mohr: prog/islandc/keyctrl.cpp: printf("flooring it")
07:04 AM rue_mohr: meaning I wrote it in ~1998 while at school
07:04 AM polprog: KEYB.ASM�KEYB�KEYCTRL.CPP�KEYCTRL�argv�argc�times�__s�wcha
07:04 AM polprog: ah haha, you found it first
07:04 AM polprog: islandc?
07:04 AM rue_mohr: wow rlly? they have all that in there?
07:04 AM polprog: yeah
07:05 AM rue_mohr: http://paste.debian.net/1188226/
07:05 AM polprog: it's not a long exe, it's all in the hexdump
07:05 AM rue_mohr: http://paste.debian.net/1188227/
07:06 AM polprog: neat
07:06 AM polprog: thanks
07:06 AM rue_mohr: I dont lose anything, I just misplace it
07:06 AM polprog: same
07:07 AM rue_mohr: I used to hate that default key rate
07:13 AM rue_mohr: ok, so
07:14 AM rue_mohr: now that I have a dos machine with a parallel port, I can test the stm32 parallel -> serial converter
07:14 AM rue_mohr: later, as the hardware isn't set up, and its 5am
07:14 AM polprog: so that's what the dos machine was for
07:14 AM polprog: why dos though
07:14 AM rue_mohr: its "true" parallel port operations
07:15 AM rue_mohr: its not a funny emulation, its the real thing
07:15 AM polprog: right, that makes sense
07:15 AM rue_mohr: I dont want to test with my scope first
07:15 AM rue_mohr: partly cause of danger testing, partly cause its awkward
07:16 AM rue_mohr: did you get a reverse C listing of the keyboard program?
07:17 AM rue_mohr: I'd be curious to see how close it would be :)
07:24 AM polprog: hmm
07:24 AM polprog: IDA can decompile to C
07:24 AM polprog: i can get it for ya
07:24 AM polprog: sec
07:29 AM rue_mohr: heh, whats it say?
07:33 AM polprog: hmm, maybe it was something else that generated the c listings
07:33 AM rue_mohr: :) gnight
07:33 AM polprog: goodnight :)
07:46 AM polprog: https://www.youtube.com/watch?v=1K2VubuBt8w
09:39 AM * Tom_L yawns
11:54 AM rue_mohr: not sure if I should continue where I left off or work on one of the other things
12:04 PM Tom_L: may as well be true to yourself and take up on another thing
12:11 PM rue_mohr: well, this parallel -> serial converter has been in the works for quite a long time now
12:11 PM rue_mohr: there is no hurry
12:11 PM rue_mohr: oops, left the camera on, flat battery
12:16 PM rue_mohr: https://github.com/misan/dcservo
12:16 PM rue_mohr: suggested dc servo code
12:23 PM rue_mohr: I see piles of errors and I'v only read half way thru main
12:29 PM Tom_L: who suggested it?
12:29 PM rue_mohr: hmm
12:29 PM rue_mohr: someone on twitter
12:29 PM rue_mohr: it has a few good ideas
12:30 PM Tom_L: rpi is great for irc but sucks to view any posts
12:30 PM rue_mohr: oh yea
12:30 PM rue_mohr: hmm
12:31 PM rue_mohr: shall I send you an old laptop?
12:31 PM Tom_L: i got piles of those
12:31 PM rue_mohr: I have one with a working parallel port :)
12:31 PM Tom_L: i'll fix the broken pc
12:31 PM rue_mohr: only took me all night
12:31 PM Tom_L: heh
12:32 PM Tom_L: i still got the one i used for the sherline when it was all sherline
12:32 PM Tom_L: may not still boot...
12:32 PM rue_mohr: wtf
12:32 PM Tom_L: i'm not so surprised it failed, it's on 24/7
12:33 PM rue_mohr: they say the encoder is quadrature decoded, but they only check on the edge of one of the lines
12:33 PM Tom_L: hah
12:33 PM rue_mohr: I'm re-reading, but I'm pretty sure...
12:34 PM Tom_L: we wrote quad for the avr
12:34 PM rue_mohr: yep, I'v had code I'v used since 1998
12:37 PM rue_mohr: aha, maybe they do, they are dancing around hardware limitations
12:37 PM rue_mohr: something doesn't look like it adds up tho
12:38 PM Tom_L: clock doesn't stay updated on the screen
12:38 PM rue_mohr: wow
12:38 PM Tom_L: timestamp on irc is though
12:39 PM Tom_L: shows 12:03
12:39 PM rue_mohr: aha, hmm
12:39 PM Tom_L: time is 12:27
12:39 PM rue_mohr: they must have it
12:39 PM rue_mohr: tho, interrupt priority is a bit dodgy
12:41 PM rue_mohr: this dir is a mixed bucket of bolts
12:41 PM rue_mohr: each of these appears to be for a differnent controller
12:43 PM rue_mohr: I'v been really impressed how well a main() loop, polling can track an encoder
12:49 PM rue_mohr: so
12:49 PM rue_mohr: the take-away is that there may be enough head-room to include a scope interface that allows PID tuning
12:49 PM rue_mohr: BUT
12:49 PM rue_mohr: need to see that pid code
12:49 PM rue_mohr: oh good its punchcard friendly source
12:49 PM rue_mohr: I can put it on my punchcards now...
12:51 PM rue_mohr: well, they don't even attempt to be fast about it
12:53 PM rue_mohr: huh
12:54 PM rue_mohr: they have you wild poll the PID compute function, and it does the math if it sees enough time has passed
12:55 PM rue_mohr: it looks like a "if we missed it, we will just hope that it wasn't by a lot"
01:30 PM rue_mohr: I think I'd like to work on the side table today
02:04 PM rue_mohr: myPID.SetSampleTime(1);
02:04 PM rue_mohr: 1ms
02:04 PM rue_mohr: the smallest time slice its capable of
02:07 PM rue_mohr: unsigned long SampleTime;
02:07 PM rue_mohr: in ms
02:07 PM rue_mohr: who the hell is going to use anything over about 1 second?
02:08 PM rue_mohr: 4294967295 ms
02:10 PM rue_mohr: 49.7 days is the max sample time
02:13 PM rue_mohr: hmm
02:13 PM rue_mohr: so, a stepper starts moving at .3ms
02:13 PM rue_mohr: this code sleeps for 1ms
02:14 PM rue_mohr: and the problem with short-slicing is that when the time numbers get small, the integrator and differentiator calc go to hell
02:15 PM rue_mohr: I suppose I should get dressed and go grocery shopping
02:15 PM rue_mohr: I wonder if this can settle a step in 24-34ms
02:17 PM rue_mohr: I wonder if I can use the source as a base
02:17 PM rue_mohr: I dunno tho
02:17 PM rue_mohr: but the idea of integrating tools to tune is seems great
02:18 PM rue_mohr: and it doesn't have to load the controller as much as they have done
02:32 PM polprog: oh youre awake again
02:33 PM polprog: only 4 hours of sleep ?
02:33 PM polprog: i didnt sleep well recently either..
02:38 PM Tom_L: oh you're awake again as well!!
02:38 PM polprog: jokes on you, i never slept
02:38 PM Tom_L: joke'll be on you later
02:38 PM polprog: :)
03:18 PM rue_mohr: ok, thats the groceries
03:18 PM rue_mohr: I was only up till about 5am
03:18 PM rue_mohr: then ma came by at 9
03:18 PM rue_mohr: but the cat was puking, so I'd have waken up anyhow
03:27 PM aandrew: https://imgur.com/a/actBiPH those were the HDDs I brought back. left pile = PATA, then 3.5" SATA, in the back are some 2.5" SATA and the two on the right are the ones that were in his PC, 5T 2.5" and 500G SSD
03:28 PM aandrew: there were four additional SATA drives that the connectors are utterly destroyed and/or circuit boards completely corroded
03:28 PM aandrew: he had a saltwater tank he worked beside for a while, guess that stuff was from there
03:28 PM aandrew: also got three cell phones, an old MP3 player and a digital camera with a CF card in it
03:28 PM aandrew: it's a little weird spelunking through your friend's shit. haven't actually mounted any of the drives yet, but I'm hoping to get his current cell phoen from his dad on Wednesday
03:29 PM aandrew: hopefully I can recover a gmail account with the SIM (the phone'll be locked I'm sure) and then from there recover his microsoft account and hopefully be able to shut everything down
03:30 PM aandrew: he's apparently got a linode VM somewhere that is still active, hopefully he's got an ssh key on that SSD and I can boot in to shut it all down right
03:31 PM aandrew: years ago I set up a usb key with a text file encrypted with a passphrase that is written on the outside of the key which gives some info, and then more detailed data encrypted with my brother's and my public keys so he can get into my equipment and shut everything down
03:45 PM rue_mohr: cool
03:47 PM rue_mohr: I dont trust drives over about 80G
03:47 PM aandrew: what do you mean?
03:47 PM rue_mohr: data density / stability
03:48 PM rue_mohr: heh, this parallel port project is so simple I'm having issues coping with how done I'm getting
03:55 PM aandrew: hahaha
03:55 PM aandrew: as far as data density etc I don't know; the march of technology tells me that modern heads and electronics are far better at doing their job than the old stuff, so the data density is all relative
03:56 PM aandrew: now there is some crazy stuff already even in 80G drives but the helium-filled, microwave-assisted stuff is definitely "out there" kind of tech which is putting an incredible number of bits in a physical space
03:56 PM aandrew: my own data tells me that a modern 4T drive is no more likely to fail than a 60G drive was back in the day
03:57 PM aandrew: it's the typical bathtub curve... you get some early failures no matter what, and the vast majority just keep going even well beyond their design life, and then age keeps bringing a higher percetnage of failures
03:57 PM rue_mohr: right now it looks like the 2-4G drives are living the longest
03:57 PM rue_mohr: I mean, the new ones havn't had time to proof, so
03:58 PM aandrew: I've always had *some* drives fail right around their warranty period. that seems as true in the 60-80-120G range as it is in the 2-4T range I play in now
03:59 PM aandrew: in an array it just doesn't matter as much, and I've kept a spare drive waiting on the shelf for as long as I was able to afford doing so because I have had a second drive die while waiting to get a replacement
04:00 PM aandrew: and when I moved to 2T drives I moved from RAID5 to RAID6 because that seems to be the size of drive where you can get a failure reading while rebuilding
04:09 PM aandrew: ok there we go, ddrescue creating the image for the 500G SSD, then the 5T. Not expecting any errors, but this should allow me to poke around nondestructively
04:15 PM rue_mohr: I'm raid 1, /dev/md0 898G 431G 421G 51% /files
04:16 PM rue_mohr: each of the servers holds a copy of the critical stuff from the other
04:16 PM rue_mohr: and I have 2 portable drives I do images to intermittently
04:16 PM aandrew: *nods* everyone finds a system that works for them
04:17 PM rue_mohr: once upon a time on an apple IIe, I copied a disk the wrong way (dest -> src) lost all my best apple IIe programs I'd written
04:17 PM rue_mohr: devistated me
04:17 PM aandrew: for my business/personal projects I have a ~/Projects directory. I run syncthing on my laptop, desktop, fileserver and colocated server which all sync that directory
04:17 PM rue_mohr: so, how many jumpers do I need here
04:18 PM aandrew: and the fileserver has "history" turned on on its copy. as I work on a project I can seamlessly move between systems and keep working which sounds silly but I use semi-frequently
04:18 PM rue_mohr: 8 data
04:18 PM rue_mohr: 1 strobe, 1 ready, 1 ack
04:18 PM rue_mohr: 1 ground
04:18 PM aandrew: and the history one means if I blow away something I can usually go to that server and dig it out
04:18 PM rue_mohr: maybe 12...
04:18 PM aandrew: rue_mohr> once upon a time on an apple IIe, I copied a disk the wrong way (dest -> src) lost all my best apple IIe programs I'd written
04:18 PM aandrew: I know that pain. ouch
04:18 PM rue_mohr: iirc I got the slots backwards on the machine
04:19 PM rue_mohr: drive 0 slot - vs drive 0 slot -+1
04:19 PM aandrew: when I learned the value of revision control it was like some holy fountain of knowledge was bestowed upon me
04:19 PM rue_mohr: heh
04:19 PM aandrew: CVS, then svn which I hated, and git which I love now
04:19 PM rue_mohr: I started with sourcesafe
04:19 PM rue_mohr: which is the most unsafe place to ever put your source
04:19 PM aandrew: "for I walk through the valley of experiment and tweaking of code, and I fear no loss, for the reflog it comforts and sustains me"
04:20 PM aandrew: how many times did I "oh I'll just make one small change" to code that was mostly working and lose HOURS or DAYS of work trying to back out of the experiment to get back to something working
04:20 PM rue_mohr: cvs had the whole, "sure, 7 people checked out the file, but fred submitted his first, I guess your out of luck" thing going on
04:20 PM aandrew: now it's "git checkout -b funkytest; vi ... git checkout master"
04:20 PM aandrew: so so so so so nice
04:21 PM rue_mohr: svn flew by so fast i never really noticed
04:21 PM rue_mohr: I only use git to post source to public
04:22 PM rue_mohr: maybe 12 jumpers
04:43 PM Tom_L: rue_mohr, moral to the apple story is never have it backed up in just 1 place
05:45 PM aandrew: oh ffs
05:46 PM aandrew: I was ddrescuing on a USB 2.0 port, wondering why it was taking so damn long
05:46 PM aandrew: now we're on a USB 3.0 port, much better
05:48 PM aandrew: 44MB/sec to 280MB/sec is a bit of a difference...
05:52 PM polprog: are you recovering your late friend's drives?
06:10 PM aandrew: yes. nothing to recover yet, I'm just taking images with ddrescue
06:11 PM aandrew: he is notoriously bad with hardware so the two drives he had in use in his current system are the first I'm imaging. the rest of them I'll look at in time I guess
06:11 PM aandrew: primary objective is to be able to log in and shut his online stuff down
06:12 PM polprog: youre doing good things
06:15 PM aandrew: I sound like a child to say it out loud but really I just want my friend back
06:17 PM Tom_L: it's tough when your friends start falling all around you
06:18 PM aandrew: yeah. this one's particularly hard. he actually introduced me to irc so so so many years ago :-)
06:20 PM Tom_L: i forget how i got started but it was around '90
06:20 PM polprog: i think i started about 5 years ago
06:20 PM rue_mohr: oh drat
06:21 PM rue_mohr: most of these pins weren't 5V tolerant
06:21 PM Tom_L: and you discovered that how?
06:21 PM polprog: goodnight
06:21 PM aandrew: you're earlier than me, I was into BBSes for a few years before the internet (like grade 7/8) and had a fidonet point node for a while, then got into the internet mid-90s I think
06:21 PM rue_mohr: second thought to look it up
06:21 PM Tom_L: i did the bbs stuff too
06:21 PM rue_mohr: I thought it was the other controller that had a bunch of 3V only pins
06:22 PM Tom_L: compuserv and the source for a small stretch
06:22 PM aandrew: never did compuserve (wasn't much of that in my area)
06:23 PM Tom_L: founder of a couple channels for most of that
06:25 PM rue_mohr: this would be a good reason to switch to an atmega88
06:25 PM rue_mohr: I wonder if the logic levels on that parallel port at 3.3V or 5V
06:26 PM aandrew: rue_mohr: why not just put some inline 100R and let the ESD diodes handle it
06:26 PM rue_mohr: 3.3
06:27 PM rue_mohr: the stm32 could not pick up on the /strobe pulses
06:27 PM rue_mohr: and they were 3.3V
06:27 PM rue_mohr: so its all ok
06:27 PM rue_mohr: bit
06:27 PM rue_mohr: but why
06:28 PM rue_mohr: re-tested the interrupt pin, its ok
06:28 PM aandrew: actually 100R is a little low for that, need something higher but the idea's the same
06:28 PM aandrew: wonder why the 3.3V STM can't see the strobe
06:28 PM rue_mohr: yea
06:28 PM aandrew: is it a nice sharp edge?
06:28 PM rue_mohr: dunno
06:28 PM rue_mohr: I dont have this set up near my scope
06:28 PM rue_mohr: its not really portable
06:29 PM rue_mohr: for all I know its a bad parallel cable
06:30 PM rue_mohr: 0.6 ohms, its not that
06:30 PM rue_mohr: I wonder which grounds this laptop implements
06:31 PM rue_mohr: apparently we do agree on grounds
06:33 PM rue_mohr: I cant imagine the latency on the busy signal is too slow
06:33 PM rue_mohr: cant be
06:34 PM rue_mohr: I tried telling it to take 1 byte and never let go of busy, still didn't catch
06:34 PM rue_mohr: its a line level issue
06:34 PM rue_mohr: ok, I'll copy the front end of an old printer
06:34 PM rue_mohr: they have resistors and a buffer
06:36 PM rue_mohr: I suppose I need to see what the strobe pulses look like
06:36 PM rue_mohr: oh that tiny toy digital scope!
06:36 PM rue_mohr: maybe its enough
06:43 PM aandrew: heh
07:06 PM rue_mohr: takes aboiut 86uS to send a byte over the serial
07:06 PM rue_mohr: so that wont break anything
07:07 PM rue_mohr: ok, distraction
07:07 PM rue_mohr: scope vga video recording
07:07 PM rue_mohr: what is an IOGEAR guwavkit4b
07:08 PM rue_mohr: oh, thats it OWN adatper plugged into it, handy
07:09 PM rue_mohr: 'computer to HD display'
07:09 PM rue_mohr: ...
07:10 PM rue_mohr: its a wireless usb video card?
07:10 PM rue_mohr: drat, thats not what I wanted.
07:11 PM rue_mohr: os support: windows, windows, windows
07:13 PM rue_mohr: ok, drat
07:14 PM rue_mohr: hmm
07:16 PM rue_mohr: I'd like a vga video capture device for the tek scope
07:16 PM rue_mohr: there should be lots of that kinda thing around from the gaming community
07:31 PM aandrew: vga video capture? yes that should be around everywhere
07:31 PM aandrew: I have a nice hdmi one but that won't help you
07:31 PM aandrew: oh
07:31 PM aandrew: speaking of that
07:31 PM rue_mohr: I could go vga->hdmi too tho
07:31 PM aandrew: does anyone here have any use for DDR2 memory? I have inherited a metric buttload of it
07:31 PM rue_mohr: but I need somthing that works with linux
07:32 PM rue_mohr: not ddr2
07:32 PM rue_mohr: FSMs?
07:32 PM aandrew: I swear I have like 256GB of 4Gbit PC2-5300
07:32 PM rue_mohr: or I'm thinking of sdram
07:32 PM aandrew: pretty sure this is DDR2
07:32 PM rue_mohr: hah, me and tom just had that conversation last night
07:32 PM aandrew: yep it's ddr2
07:32 PM aandrew: this is old stuff
07:33 PM rue_mohr: sell it to the gold miners for more than its worth ;)
07:34 PM rue_mohr: One of the guys at work paid $700 for a wire stripper
07:35 PM rue_mohr: yea I know who's makin the money on that purchase
07:35 PM rue_mohr: I could have sold him one for $350 :)
07:37 PM aandrew: hah
07:37 PM rue_mohr: I'm starting to see the grey zone in making piles of money
07:37 PM rue_mohr: leveraging fools
07:38 PM rue_mohr: they seem to be abundant
08:02 PM Tom_L: we did?
08:03 PM Tom_L: there's ALWAYS someone out there begging to get rid of their money
08:04 PM Tom_L: my god when that ps3 thing hit it was worse than the california wildfires
08:04 PM aandrew: what ps3 thing was that
08:04 PM Tom_L: (my programmers happen to be able to patch something in the ps3 game system back then)
08:05 PM Tom_L: rue_mohr, what did i sell those for? $28?
08:06 PM Tom_L: that netted ~11k
08:09 PM Tom_L: so like i said
08:09 PM Tom_L: there's ALWAYS someone out there begging to get rid of their money
08:09 PM Tom_L: you just gotta be there to snatch it up
08:16 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
08:16 PM Tom_L: those
08:22 PM Tom_L: rue_mohr tried selling pet rocks on ebay but i think the timing was just off
08:22 PM Tom_L: maybe in the late 60's
08:22 PM Tom_L: if the interweb had been a thing
08:58 PM rue_mohr: Tom_L, :)
09:07 PM Tom_L: i don't see where to set the clock on the rpi
09:18 PM rue_mohr: ok I did it
09:19 PM rue_mohr: I finished converting that old server to a side table with retractable cup holder and 8 usb charging ports
10:28 PM rue_mohr: ooooh where is the todo list with the things on it that I jsut did!
10:29 PM Tom_L: you'd better slow down a bit... starting to act so unlike yourself!
10:29 PM Tom_L: spring's awakening?
10:36 PM rue_mohr: so
10:36 PM rue_mohr: I was given
10:36 PM rue_mohr: a few old servers
10:36 PM rue_mohr: I was able to mix the parts to make a good one
10:37 PM Tom_L: big ones? like HP?
10:37 PM rue_mohr: and the other one I wanted to do something special with
10:37 PM rue_mohr: dell
10:37 PM Tom_L: so not the big raid ones
10:37 PM rue_mohr: so I decided I'd see if I could turn it into a side table
10:37 PM rue_mohr: with retractable cup holder [ ;) ] and usb charging ports
10:37 PM rue_mohr: a big raid one
10:38 PM rue_mohr: I confirmed the cdrom needed 12V, not just 5, which was annoying, but whatever
10:38 PM Tom_L: my but offered me one but i turned it down
10:38 PM Tom_L: as well as an old 9 track
10:38 PM rue_mohr: and the rest of the challange was to work out powering the usb ports
10:38 PM rue_mohr: so I just got that worked out
10:39 PM rue_mohr: I put a little fanless supply in it
10:40 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1180832.jpg
10:41 PM Tom_L: yeah his was alot older and bigger
10:41 PM Tom_L: iirc