#garfield Logs
Feb 10 2021
#garfield Calendar
05:58 AM polprog: Tom_L: Ive ordered in china one (JLC)
06:05 AM polprog: but the wait time is insane
06:05 AM polprog: i barely have 1.5 weeks break left
09:03 AM polprog: https://cdn.discordapp.com/attachments/739849787238776855/809068716854738944/unknown.png
09:03 AM polprog: engage safety squintz
11:22 AM rue_mohr: yike
12:33 PM rue_mohr: I need to start a business here that does answering/booking for businesses
12:33 PM rue_mohr: I suppose calling it Answering System Services is a bad idea
12:33 PM rue_mohr: :)
01:02 PM aandrew: yeah lasers are one thing I won't play with, especially with kids around
01:02 PM aandrew: way too easy to have an accident
01:59 PM polprog: yeah i need to get some protective glasses for this wavelength range
02:06 PM polprog: accidents around lasers may cause kids
02:06 PM polprog: or the other way around, i dont remember
03:38 PM rue_mohr: riddle me this...
03:38 PM rue_mohr: your somewhere in a long array of characters
03:38 PM rue_mohr: your specifically pointed to a \n and asked "what position are you on that line of the file?"
03:39 PM rue_mohr: do you give a position based on the length of the characters before the /n or a 0 for the characters after
03:39 PM rue_mohr: or even -1
03:40 PM Tom_L: yes
03:40 PM rue_mohr: when I defined line positions, I took the first character of the line as index 0
03:40 PM rue_mohr: 012345678
03:40 PM Tom_L: line number x column number y
03:40 PM rue_mohr: so, in the middle of
03:41 PM rue_mohr: 012345678\n012345678\n012345678\n012345678
03:41 PM rue_mohr: the \n's belong to the end of the chacters before them
03:42 PM rue_mohr: so, I suppose I should report those as character 9 of a line thats 9 characters long (from 0-8
03:43 PM * Tom_L gives rue_mohr a 0x07
03:45 PM Tom_L: if it takes up space it needs to be counted
03:49 PM Tom_L: for example
03:50 PM Tom_L: String1 := SUBSTR(String1, AT(CRLF, String1) + 2) // Grab the rest of String1 +1 to get past CRLF
03:50 PM Tom_L: i have to add 1 to include the whole line
03:50 PM rue_mohr: so normally it would just grab between the line feeds
03:51 PM Tom_L: Temp := Temp + SUBSTR(String1, 1, AT(CRLF, String1) -2 ) + "\r\n" // Grab the first part
03:51 PM Tom_L: and the reverse
03:51 PM Tom_L: -2
03:52 PM rue_mohr: so normally it would just grab between the line feeds?
03:53 PM Tom_L: i think so
03:53 PM Tom_L: but i think that is processing raw data
03:53 PM Tom_L: but so are you
03:53 PM Tom_L: in my case i'm formatting it to shut java up
03:56 PM Tom_L: my comment should say +2 instead of +1, i didn't change it after i edited the code
03:58 PM Tom_L: the code strips of the CR LF and formats them as esc char so java will interpret them correct
04:08 PM Tom_L: FREAD() is a low-level file function that reads characters from a binary
04:08 PM Tom_L: file into an existing character variable. It reads from the file
04:08 PM Tom_L: starting at the current DOS file pointer position, advancing the file
04:08 PM Tom_L: pointer by the number of bytes read. All characters are read including
04:08 PM Tom_L: control, null, and high-order (above CHR(127)) characters.
04:08 PM Tom_L: it reads everything
04:18 PM rue_mohr: yes, I'm storing the file in a memory buffer
04:18 PM rue_mohr: Byte 1 line position is: 2 (should be 1)
04:18 PM rue_mohr: Byte 7 line position is: 4 (should be 3)
04:18 PM rue_mohr: Byte 10 line position is: 1 (should be 0)
04:18 PM rue_mohr: >:/
04:18 PM Tom_L: how'd that come about?
04:18 PM rue_mohr: my "where is this in the context of the line" fn isn't working
04:35 PM rue_mohr: heh I cant get the navigation of the cursor to the previous line position right when the cursor is deleting the last character of a line
04:39 PM rue_mohr: but I'v trimmed it down to a tiny little bit of broken code
04:47 PM rue_mohr: got it!?
04:48 PM rue_mohr: yes yes I think I did
04:49 PM rue_mohr: there is one funny exception with the delete tho...
04:51 PM rue_mohr: if your beyond the content of a line, and you hit del, it should add padding and move the previous content to the end of it.
04:52 PM Tom_L: are we having fun yet?
04:53 PM rue_mohr: :)
04:53 PM polprog: :)
04:53 PM rue_mohr: backspace is working tho
04:54 PM rue_mohr: I should actaully be able to use it to edit itself now
04:54 PM rue_mohr: I just dont trust it yet
04:54 PM Tom_L: it might code itself to take over your life
04:55 PM Tom_L: careful...
04:55 PM rue_mohr: it was working really nice
04:55 PM rue_mohr: I loved the features I had in
04:55 PM rue_mohr: just the per-line-storage was causing too many bugs
04:55 PM rue_mohr: and hords of code to work with
04:55 PM Tom_L: is the cursor following the bouncing ball now?
04:55 PM rue_mohr: heh
04:56 PM rue_mohr: main.c is 30k
04:56 PM rue_mohr: the compiled editor is 32k
04:57 PM Tom_L: my program is 548k compiled
04:58 PM rue_mohr: sneaking up on 640
04:58 PM Tom_L: but it's more than an editor
04:58 PM Tom_L: it caches what it needs and flushes the rest
04:58 PM rue_mohr: so, I have a thing at work I should have asked you to look at doing for me
04:58 PM Tom_L: or i'd have been in trouble long time ago
04:58 PM rue_mohr: its a hydro test cap for a fire extinguisher
04:59 PM Tom_L: didn't you make one?
04:59 PM Tom_L: steel?
04:59 PM rue_mohr: no...
04:59 PM rue_mohr: I started one, I have a pro looking at doing the internal threads for me
04:59 PM rue_mohr: :S
04:59 PM rue_mohr: he's retired :)
04:59 PM Tom_L: what is the thread?
04:59 PM rue_mohr: its a screwball standard
05:00 PM rue_mohr: iirc 1.5" 16tpi
05:00 PM rue_mohr: its in THE_HANDBOOK
05:00 PM rue_mohr: :)
05:00 PM rue_mohr: I might need your help yet :)
05:00 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Brass_cup/Brass_Cups5.jpg
05:00 PM Tom_L: that's ~1.5 24 tpi
05:00 PM rue_mohr: prettymuch
05:01 PM rue_mohr: but thicker, for a 300psi hydro test
05:01 PM Tom_L: 1/4" wall?
05:01 PM Tom_L: more?
05:01 PM rue_mohr: 1/4 should do it
05:01 PM Tom_L: gotta be steel?
05:01 PM rue_mohr: its stupid, I should be able to buy them, but NOBODY can sell me one
05:02 PM Tom_L: i've got nothing to test the thread with though
05:02 PM rue_mohr: no, brass would be fine too
05:02 PM rue_mohr: yea
05:02 PM Tom_L: i have some brass i think
05:02 PM rue_mohr: thats part of what was holding back me asking
05:03 PM Tom_L: https://www.hydro-test.com/ecommerce/replacement-parts/test-adapters-for-fire-extinguishers.html
05:03 PM rue_mohr: I'd be fine if I could just get an old extinguisher too
05:03 PM Tom_L: are they all the same?
05:03 PM rue_mohr: yea, as soon as you ask for this one people tell ya its not available
05:04 PM rue_mohr: let me see if its here...
05:04 PM rue_mohr: https://www.hydro-test.com/ecommerce/replacement-parts/test-adapters-for-fire-extinguishers/100-205-adapter-test-2-female-brass.html
05:04 PM rue_mohr: I think thats it
05:04 PM Tom_L: brass must be ok, those are all brass
05:04 PM Tom_L: i got no hex
05:04 PM rue_mohr: no
05:04 PM rue_mohr: that cant be it
05:05 PM rue_mohr: its 1.5" and 16tpi
05:05 PM rue_mohr: https://www.hydro-test.com/ecommerce/replacement-parts/test-adapters-for-fire-extinguishers/100-236-adapter-test-1-1-2-dia-16-tpi-female-brass.html
05:05 PM rue_mohr: that one
05:06 PM Tom_L: it's got a seal in it though
05:07 PM rue_mohr: its just a square rubber gasket
05:07 PM rue_mohr: I was doing mine with a ledge for a plate
05:07 PM Tom_L: can you get the gasket?
05:07 PM rue_mohr: so the nut would be free from the host
05:07 PM rue_mohr: hose
05:07 PM rue_mohr: yea
05:07 PM rue_mohr: dime a dozen
05:07 PM Tom_L: what's the internal thread?
05:07 PM rue_mohr: I dont know if I asked *those* people for one
05:08 PM rue_mohr: 1.5" 16tpi
05:08 PM Tom_L: the small one
05:08 PM rue_mohr: its in the machinists handbook
05:08 PM rue_mohr: want a photo?
05:08 PM Tom_L: no
05:08 PM rue_mohr: oh the small one can be any pipe taper
05:08 PM Tom_L: but it's a taper thread?
05:08 PM rue_mohr: If its roughed for 1/2NPT I ahve a tap
05:08 PM rue_mohr: the 1.5" 16tpi is straight
05:08 PM Tom_L: i've got a few pipe taps
05:09 PM Tom_L: i know the 1.5 is straight
05:09 PM rue_mohr: :)
05:09 PM Tom_L: all my brass is roundbar
05:09 PM rue_mohr: I was REALLY fustrated as I went thru suppliers, each saying "yea.... welll...."
05:09 PM Tom_L: you can't get that one?
05:10 PM rue_mohr: round is ok
05:10 PM rue_mohr: no, nobody could actaully SELL me one
05:10 PM rue_mohr: I even got a few "I'll check and call ya back" "we cant get it"
05:10 PM Tom_L: it's got an undercut at the bottom of the threads i might have trouble cutting
05:11 PM rue_mohr: wont matter, thick gasket
05:11 PM rue_mohr: up past the thread-end
05:11 PM Tom_L: lemme see someting
05:11 PM rue_mohr: its just a flange seal
05:12 PM rue_mohr: its the ONLY adapter with internal thread
05:12 PM rue_mohr: the rest I can make
05:13 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Thread_Maj_int_ext_Diam.pdf
05:14 PM Tom_L: no data for 1.5 16
05:15 PM Tom_L: i would need the basic minor diameter of internal threads dimension
05:16 PM Tom_L: external is given as 1.5
05:17 PM Tom_L: major diameter i should say
05:17 PM Tom_L: how deep is the pocket? how many threads is required?
05:18 PM rue_mohr: how about 7 threads
05:18 PM Tom_L: 3/4 would give you 10-11 threads
05:18 PM rue_mohr: oh I got a book, hold on
05:19 PM Tom_L: you don't think that cup is thick enough for 300psi?
05:20 PM Tom_L: that's ~1.5" iirc... i can measure it
05:21 PM rue_mohr: it must be
05:21 PM rue_mohr: thats what its for
05:21 PM rue_mohr: I bet if I contact them, I cant buy it
05:22 PM Tom_L: i meant the one i did
05:22 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Brass_cup/Brass_Cups5.jpg
05:22 PM Tom_L: i forget exactly what thread that is.. it's an oddball one i calculated
05:22 PM Tom_L: that was the purpose of the exercise
05:22 PM Tom_L: to make 'any' thread
05:24 PM Tom_L: they ship to canada
05:24 PM Tom_L: back in a few
05:25 PM rue_mohr: ok I think
05:27 PM rue_mohr: stand by
05:28 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1180656.jpg
05:28 PM rue_mohr: is it readable?
05:28 PM rue_mohr: yea ok, ?
05:28 PM rue_mohr: does that translate to the numbers you would need?
05:37 PM Tom_L: i have the book
05:37 PM rue_mohr: 8-| he has it.......
05:37 PM rue_mohr: :)
05:38 PM rue_mohr: I should make up the other ones with the external threads
05:44 PM Tom_L: ok
05:44 PM Tom_L: so
05:45 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Brass_cup/Brass_bar1.jpg
05:45 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Brass_cup/Brass_bar2.jpg
05:45 PM Tom_L: i have the material
05:45 PM rue_mohr: cool
05:45 PM Tom_L: the flats across the big one are 2"
05:45 PM rue_mohr: do you want to make one?
05:45 PM Tom_L: i have no way to test the thread
05:46 PM rue_mohr: I mean, I'm not sure if the other chap is going to be able to thread up the steel one I started
05:46 PM rue_mohr: yea
05:46 PM Tom_L: and it should be tested first
05:46 PM rue_mohr: yea
05:46 PM Tom_L: i can i'm sure
05:46 PM rue_mohr: nice brass stock!
05:46 PM Tom_L: the big one was my sherline spindle counterweight for a while
05:46 PM rue_mohr: heh
05:46 PM Tom_L: those other blanks became a cup
05:47 PM rue_mohr: was it new stock or part of something
05:47 PM Tom_L: scrap
05:47 PM rue_mohr: looks darn near part of a ram
05:47 PM rue_mohr: wow
05:48 PM Tom_L: the thread might not be exactly centered
05:48 PM rue_mohr: doesn't matter
05:48 PM Tom_L: but pretty close
05:48 PM Tom_L: i know
05:49 PM Tom_L: it's gonna have to warm up first
05:49 PM rue_mohr: heh, I think you really want to try it :)
05:50 PM Tom_L: oh, i'm sure i can do the thread.. it's just a matter of getting the right fit
05:51 PM rue_mohr: that would be half my challange here
05:51 PM Tom_L: i know i can get it 'close' but if it doesn't screw on or is too loose it's junk
05:52 PM rue_mohr: the tank is at the machinists place so he can test-fit
05:52 PM Tom_L: send it to me :)
05:52 PM rue_mohr: heh
05:52 PM Tom_L: that would be an expensive test plug
05:52 PM rue_mohr: like I say, there were practicality issues in asking
05:53 PM Tom_L: i'm thinking all the extinguishers i've seen here are internal threads
05:53 PM rue_mohr: those water based ones are 50/50
05:53 PM rue_mohr: well, here its 75/25
05:53 PM rue_mohr: and the 75 is those!
05:53 PM Tom_L: the ones i have would be too small
05:54 PM rue_mohr: it was a generic tank that went out to about 4 diffrent manuf's
05:54 PM Tom_L: lemme get my book and see if it gives enough data
05:54 PM rue_mohr: General, ansul, kidde, and....
05:58 PM Tom_L: standard unf 1.5 is 12tpi
05:58 PM Tom_L: is it 12 or 16?
05:58 PM rue_mohr: 16
05:58 PM rue_mohr: its not a normal thread
05:58 PM Tom_L: that makes it fun
05:58 PM rue_mohr: iirc for $250 I can get a tap from ali :)
05:59 PM Tom_L: wouldn't work
05:59 PM rue_mohr: I know
05:59 PM Tom_L: the lead in would be half the thread so you would need 2 taps
05:59 PM rue_mohr: I was pondering modifying a machine tap to do the inside of that nut
05:59 PM Tom_L: a bottoming tap to finish
05:59 PM rue_mohr: use it like a bit in the lathe
05:59 PM rue_mohr: but I almost ALWAYS screw up the passes on the lathe and lose the thread
06:00 PM Tom_L: so what i did on mine was calculate the depth of a 24 tpi thread and applied it to my diameter
06:00 PM rue_mohr: I dont mind that if its external thread, but its a LOT of work to screw up internal threads
06:00 PM Tom_L: how deep should it be?
06:00 PM rue_mohr: 7-10 threads sounds ok
06:00 PM Tom_L: 5/8? 3/4?
06:01 PM Tom_L: i'll send you the program :)
06:01 PM rue_mohr: so 5/8
06:01 PM rue_mohr: hah
06:01 PM rue_mohr: oh I can cut it in wood or soemthing
06:01 PM rue_mohr: find out if it fits
06:01 PM rue_mohr: no I cant
06:01 PM Tom_L: naw, you don't have the same thread cutter
06:01 PM rue_mohr: I dont ahve the bit
06:01 PM rue_mohr: but I can make one for wood
06:02 PM rue_mohr: hmm
06:02 PM Tom_L: the tool diameter is a critical dimension
06:02 PM rue_mohr: could I make one for wood?
06:02 PM rue_mohr: lathe...
06:02 PM Tom_L: i'd have to program a special thread cutter for yours if you did
06:02 PM rue_mohr: take me a bit to get the taper angle right
06:03 PM Tom_L: any 'coarse' tap should do
06:03 PM rue_mohr: none of the cutters you have would do thatone?
06:03 PM Tom_L: you got anything with 12-16 threads?
06:03 PM rue_mohr: oh for yea, but if I was doing it with one of the cnc here
06:03 PM Tom_L: i have several cutters that will do it
06:03 PM rue_mohr: isn't 5/8 come in 16?
06:03 PM Tom_L: i'll use the biggest one for the job
06:03 PM rue_mohr: I think I have some "scrappable" ones
06:03 PM rue_mohr: oh I mean your threading bits
06:04 PM Tom_L: 3/4 16 is standard
06:04 PM Tom_L: i did one
06:05 PM rue_mohr: hmm
06:05 PM Tom_L: i can't find those pics now though
06:05 PM rue_mohr: :)
06:05 PM rue_mohr: the dizzyness keeps going in and out
06:10 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/thread_mills/Mill_Holder10.jpg
06:10 PM Tom_L: that's 16 thread
06:10 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/thread_mills/Mill_Holder_Steel1.jpg
06:10 PM Tom_L: in steel
06:11 PM Tom_L: the right one there is alum
06:14 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/thread_mills/Thread_mill2.jpg
06:14 PM Tom_L: i used that large one on it
06:16 PM Tom_L: so i _could_ take the 2 diameters from that and calculate the missing one for yours given the thread pitch is the same
06:27 PM Tom_L: so the major diameter of yours is 1.5
06:29 PM Tom_L: so the minor diameter will be 1.4324"
06:29 PM Tom_L: that gives it a .0338" thread
06:30 PM Tom_L: which sounds about right
06:35 PM Tom_L: mic the od of your cylinder threads and see if it isn't slightly under 1.5"
06:48 PM rue_mohr: ok, getting to it is a bit of a feat
06:48 PM rue_mohr: right now I'm ill and I dont know how available the guy with the tank is
06:49 PM Tom_L: i bet i'm pretty close
06:50 PM rue_mohr: I suspect your right
06:51 PM Tom_L: 6 tpi is 1.3196 minor diameter
06:51 PM rue_mohr: 16?
06:52 PM Tom_L: 6
06:52 PM Tom_L: at 1.5"
06:52 PM Tom_L: looking at the standard chart
06:52 PM Tom_L: /2 for the actual thread
06:53 PM Tom_L: so (1.5 - 1.3196)/2 is the thread height for a 6 tpi one
06:53 PM Tom_L: which is about .090"
06:53 PM rue_mohr: ok
06:54 PM Tom_L: sounds close
06:54 PM Tom_L: rather coarse thread
06:54 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1180656.jpg
06:54 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/temp/thread1.jpg
06:54 PM Tom_L: that one is 3 tpi
06:54 PM Tom_L: ~1.5"
06:54 PM rue_mohr: external threads or internal threads?
06:54 PM Tom_L: internal
06:55 PM rue_mohr: 1.4323
06:55 PM Tom_L: external would be slightly smaller
06:55 PM Tom_L: what's that number?
06:55 PM rue_mohr: http://ruemohr.org/~ircjunk/tempimage/p1180656.jpg <-- external threads and internal threads
06:55 PM rue_mohr: dia
06:56 PM Tom_L: so i was off by .0001
06:56 PM rue_mohr: :)
06:56 PM Tom_L: 1.4324
07:01 PM Tom_L: i should check my book again, i didn't see that page
07:02 PM rue_mohr: table 3h
07:03 PM Tom_L: i need a large print one now :)
07:04 PM Tom_L: same page as mine too
07:04 PM Tom_L: what edition do you have?
07:05 PM Tom_L: mine is 25
07:06 PM Tom_L: the way i did it you can calculate the diameter for any oddball diameter though
07:08 PM rue_mohr: 25 :)
07:09 PM rue_mohr: must have been a good year
07:18 PM Tom_L: heh
07:19 PM Tom_L: i'll program one in the next couple days and see how it goes for the weekend
07:19 PM Tom_L: do you want me to thread the small hole too?
07:20 PM Tom_L: i can just put a pilot hole in for you
07:20 PM Tom_L: (it will give the mill cutter a place to plunge)
07:21 PM rue_mohr: it would be easiest to just leave me a hole I can hit it with my thread tap
07:22 PM Tom_L: what size pipe thread?
07:22 PM rue_mohr: 1/2"
07:22 PM Tom_L: maybe 1/2" thick for the threads?
07:23 PM Tom_L: brass thickness
07:23 PM rue_mohr: 300psi... 1/4"?
07:24 PM rue_mohr: its not air, if it pops it doesn't go far
07:24 PM Tom_L: i gotta figure out how to whack off a piece of that brass
07:24 PM rue_mohr: heh
07:25 PM rue_mohr: I'v had challanges with stuff like that on my saw
07:25 PM Tom_L: i wish i had a bandsaw
07:25 PM rue_mohr: its too good a bearing surface
07:26 PM Tom_L: ok, she wants to watch a movie
07:26 PM Tom_L: i'll draw something up and show ya
07:26 PM Tom_L: later..
07:32 PM aandrew: oof
07:32 PM aandrew: I'm getting absolutely murdered with wwork lately
07:32 PM aandrew: can't keep up
07:36 PM rue_mohr: board design? ciruit design? coding?
07:43 PM rue_mohr: virtual admin..
08:04 PM aandrew: little bit of board redesign and rush-rush-rush 3 day turn for a 6 layer board ($$$), then rush rush rush to see why their code isn't good. that's contract 1. contract 2 is just some routine dev work that's pretty low key. Same with contract 3 but it's C++ and ROS which is hard for me to get into and grok. contract 4 is the murderous one with lots of C development on simulated silicon (they're going to
08:04 PM aandrew: tapeout in May and are VERY concerned they won't hit the target)
08:05 PM aandrew: that last one isn't bad if it weren't for also having to muck with C# for testing over some godforsaken framework to the virtual silicon simulation software, and then another team member's using cmock and ruby to test the c code... all wrapped up in a very tangled and huge build system
08:05 PM aandrew: then my son ahs been getting self-tape requests like crazy (3 a week sometimes) which sucks an ENORMOUS amount of my time up, plus their school
08:05 PM rue_mohr: hmm
08:06 PM aandrew: my other son (the one you met) I gave him an engineering task and he kind of did a half assed job because it got boring/became work
08:07 PM aandrew: but he did meet the very very basic requirements (need a lego apparatus that will let me slide an RFID card back and forth on a rail). I think once I hook the motor and distance sensor up and get him poking at it with an arduino he might get excited again because it's kind of abstract for him at the moment
08:07 PM aandrew: he kind of got a taste of "build to achieve a goal" vs "build something for fun" with his own stuff, but "build to someone else's spec" is a new one on him. :-)
08:10 PM rue_mohr: I'm still trying to understand my own motives
08:20 PM aandrew: what, you want me to contract my son out to you too? :-)
08:21 PM rue_mohr: heh, I need a machine that shakes screws out of a bin one at a time :)
08:21 PM rue_mohr: yes, it can be a lego bin
08:26 PM aandrew: oh man a screw sorter, Iv'e seen a couple nice designs
08:27 PM rue_mohr: :)
08:27 PM ClosetMoon: ;)
08:27 PM rue_mohr: I have a huge variety problem
08:27 PM aandrew: the simplest was a collection of bins under a V shaped channel where the distance between the sides at the point of the "V" got wider as you moved down the trough
08:27 PM rue_mohr: from #0 to 1/2"
08:27 PM aandrew: that has the problem of dealing with the heads though
08:28 PM rue_mohr: ClosetMoon, YOU TEST MY EDITOR NOW TELL ME BUGS.
08:28 PM ClosetMoon: a closet case like me?
08:28 PM ClosetMoon: you have latest version on ircJunk?
08:28 PM rue_mohr: not yet, I can
08:29 PM rue_mohr: you awake enough to give it a go?
08:29 PM ClosetMoon: at your liesure
08:29 PM ClosetMoon: let me see one sec
08:30 PM ClosetMoon: yeah I got a C compiler on this one, lets try.
08:30 PM rue_mohr: hmm I'll tgz it
08:30 PM ClosetMoon: ok, btw the top eighth of my frme buffer is fucked. does that matter?
08:30 PM ClosetMoon: frame*
08:32 PM rue_mohr: http://ruemohr.org/~ircjunk/programming/diy_te3.tgz
08:32 PM rue_mohr: meh, whatever
08:32 PM rue_mohr: try it!
08:32 PM rue_mohr: gcc *.c
08:32 PM rue_mohr: ./a.out
08:32 PM rue_mohr: I'm still working on stuff
08:32 PM rue_mohr: but you can open a file, edit it, and save it
08:32 PM rue_mohr: ctrl-a is save-as
08:33 PM ClosetMoon: let me see.
08:33 PM rue_mohr: there is no save-ass, so dont screw up what your editing
08:33 PM ClosetMoon: i'll get
08:35 PM rue_mohr: if this works out, it'll be a networked concurrent editor
08:35 PM rue_mohr: we can edit files togethor!
08:36 PM rue_mohr: I was pondering adding ctrl-l that would "load" a file, unlike open that clears the content first, load would insert the requested file at the cursor location
08:36 PM ClosetMoon: rue_mohr: whjat library is stropts.h from?
08:37 PM rue_mohr: libc6-dev:i386:
08:37 PM ClosetMoon: ok
08:38 PM rue_mohr: will it compile?
08:38 PM ClosetMoon: FUCCK my redhat skills sre plops
08:38 PM ClosetMoon: my one non Debian machine
08:39 PM ClosetMoon: I tried yum seaarch libc6
08:39 PM ClosetMoon: :(
08:39 PM ClosetMoon: almost time for My sexy Susan shower.
08:40 PM rue_mohr: I wonder what I used that library for
08:40 PM rue_mohr: try commenting it out
08:41 PM rue_mohr: it'll work witout it apparently
08:41 PM rue_mohr: just comment it out, main.c
08:41 PM ClosetMoon: ok 1sec
08:42 PM ClosetMoon: how do I edit without an editor?
08:42 PM rue_mohr: I keep changing things, I need to go thin the libraries
08:42 PM ClosetMoon: just kidding
08:42 PM rue_mohr: there is one error on compile
08:42 PM rue_mohr: there is a circular structure definition that it doesn't like my fix to
08:43 PM rue_mohr: I tell it that one of them is extern, that way it ignores things and by the time it needs to know it already does
08:43 PM ClosetMoon: ok I got one wierdness
08:43 PM rue_mohr: it says its a pointless assignment, but its quite pointed
08:43 PM rue_mohr: segfault on startup?
08:43 PM ClosetMoon: :|
08:43 PM rue_mohr: :)
08:43 PM ClosetMoon: nope
08:44 PM ClosetMoon: when I enter a bunch of characters into a line
08:44 PM rue_mohr: ooh there is debugging junk
08:44 PM rue_mohr: hold on
08:44 PM rue_mohr: run it with...
08:44 PM ClosetMoon: perhaps
08:44 PM rue_mohr: ./a.out test.txt 2>/dev/null
08:44 PM ClosetMoon: oh sure :|
08:44 PM rue_mohr: I have a bunch of printfs to stderr
08:45 PM rue_mohr: I been directing them to a seperate console
08:45 PM ClosetMoon: fixed
08:45 PM ClosetMoon: fprintf you mean?
08:46 PM rue_mohr: fprintf(stderr, "aaawe CRAP: %s
08:46 PM ClosetMoon: yerah :D
08:46 PM rue_mohr: and it turns on mouse events, so you cant middle click paste :(
08:47 PM rue_mohr: there is no help, that little blerb at the top for 3 seconds is all you get
08:47 PM rue_mohr: ctrl-q to quit
08:47 PM rue_mohr: it will not hound you to save
08:47 PM ClosetMoon: mouse events is cool
08:47 PM rue_mohr: yea, I can position the cursor with it
08:48 PM ClosetMoon: interface from stdout?
08:48 PM rue_mohr: stdin/stdout
08:48 PM rue_mohr: its a god-awfull mess
08:48 PM ClosetMoon: signaling originates from terminal emulator??
08:48 PM rue_mohr: I feed it to a state machine
08:48 PM ClosetMoon: you ARE a state machine
08:48 PM rue_mohr: yes, yes, I know
08:48 PM rue_mohr: so you can open test.txt
08:49 PM ClosetMoon: do you design it or does it design you?
08:49 PM rue_mohr: ctrl-o test.txt
08:49 PM ClosetMoon: yes I can
08:49 PM rue_mohr: I'm playing with the delete behaviour right now
08:49 PM rue_mohr: its close
08:49 PM ClosetMoon: truncate?
08:49 PM rue_mohr: oh, sorry the text is still all inverted
08:49 PM rue_mohr: I did that so I can see what is real and what is non-file space
08:50 PM ClosetMoon: vt100 style :)
08:50 PM rue_mohr: it wont normally be like that
08:50 PM ClosetMoon: :(
08:50 PM rue_mohr: put the cursor somewhere way off the right of the text and hit a character
08:50 PM rue_mohr: it auto ins whitespace for you
08:50 PM ClosetMoon: what? you dont want it to look like a sack of shit as a final product?
08:50 PM rue_mohr: its going to have colour hilighting too
08:51 PM ClosetMoon: ooooo
08:51 PM rue_mohr: when you hit open, see the light grey suggestion?
08:51 PM rue_mohr: hint?
08:51 PM ClosetMoon: at the top?
08:51 PM rue_mohr: yea
08:51 PM ClosetMoon: im missing to top of my frame buffer
08:51 PM rue_mohr: the framework can do a lot of things, I'm rewriting the core
08:51 PM rue_mohr: ah
08:52 PM ClosetMoon: RedHat, am I right?
08:52 PM rue_mohr: I might have to switch to gentoo
08:52 PM ClosetMoon: though I do believe in RedHat
08:52 PM ClosetMoon: why?
08:52 PM rue_mohr: debian is a mess and not getting better
08:52 PM ClosetMoon: switch to ARCH
08:52 PM ClosetMoon: :D
08:53 PM rue_mohr: no I like auto package stuff
08:53 PM ClosetMoon: arch has
08:53 PM rue_mohr: I'll see
08:54 PM ClosetMoon: cool. a guy(or gal) can build arch SOOOOOOOOO tight. I experimented last year
08:54 PM rue_mohr: yea I dont want to be building anyting
08:54 PM ClosetMoon: I couldnt manage gentoo when I was round 22, but I could arch last year
08:54 PM ClosetMoon: no not actually 'build'
08:54 PM ClosetMoon: all binarry
08:55 PM rue_mohr: mmmm
08:55 PM ClosetMoon: you would not find it hard
08:55 PM ClosetMoon: and the instructions also show you the cool systemD rule for getting old school eth0 NIC type names
08:56 PM ClosetMoon: ok I have to shower now
08:56 PM ClosetMoon: bye
08:56 PM ClosetMoon: :)
08:57 PM rue_mohr: hahaha
08:57 PM rue_mohr: copy-and-paste error
08:57 PM rue_mohr: my code inserted a buffer of
08:57 PM rue_mohr: '\n' s instead of ' '
08:57 PM rue_mohr: sweeet
08:58 PM rue_mohr: oh yea, gentoo is -systemd
08:58 PM rue_mohr: udev
09:03 PM MrTime: Hi their
09:03 PM rue_mohr: hi
09:03 PM rue_mohr: so who are you then?
09:03 PM rue_mohr: :) did someone leave the door open? :)))))
09:07 PM MrTime: me?
09:08 PM rue_mohr: no, whats up?
09:08 PM MrTime: not much
09:08 PM rue_mohr: ok the insert and delete behaviour is all good
09:08 PM aandrew: ClosetMoon> almost time for My sexy Susan shower.
09:08 PM aandrew: wtf
09:09 PM rue_mohr: what am I missing for an editor...
09:09 PM rue_mohr: aside from undo... copy paste
09:09 PM rue_mohr: ...
09:09 PM aandrew: block selection?
09:09 PM rue_mohr: yea...
09:09 PM aandrew: regex search and replace?
09:09 PM rue_mohr: oh! find
09:09 PM rue_mohr: there is the front of frame work for that
09:10 PM rue_mohr: working so far:
09:10 PM rue_mohr: save as
09:10 PM rue_mohr: save
09:10 PM rue_mohr: new
09:10 PM rue_mohr: open
09:10 PM rue_mohr: quite
09:10 PM MrTime: I'm on a computer in a portapotty
09:10 PM rue_mohr: fix that typo...
09:11 PM MrTime: oh
09:11 PM rue_mohr: home key is working, end isn't...
09:11 PM rue_mohr: page up and down need tuning, but work
09:11 PM rue_mohr: left,right,up,down work
09:12 PM rue_mohr: delete,backspace,enter,and normal text
09:12 PM rue_mohr: wonder if I should enable the mouse events...
09:12 PM rue_mohr: ok, end, then find!
09:16 PM rue_mohr: so, how could an editor have some kinda operation that helped verticaly align code
09:16 PM rue_mohr: something about giving a horiv refmark, then selecting what point of lines should be moved over to it
09:28 PM rue_mohr: end key is working!
09:29 PM MrTime: nice
09:29 PM rue_mohr: oh bug
09:29 PM rue_mohr: if your past the end of the line and it end, it goes to the beggining of the line
09:29 PM rue_mohr: hmm
09:29 PM rue_mohr: odd
09:38 PM aandrew: MrTime: sounds like any one of us to be honest
09:38 PM Tom_L: should go to the next line
09:38 PM aandrew: rue_mohr: you gotta put in a konami code easter egg
09:38 PM Tom_L: it's your line buffer
10:10 PM rue_mohr: ?
10:10 PM Tom_L: link me that nut again
10:11 PM rue_mohr: https://www.hydro-test.com/ecommerce/replacement-parts/test-adapters-for-fire-extinguishers/100-236-adapter-test-1-1-2-dia-16-tpi-female-brass.html
10:11 PM rue_mohr: that?
10:11 PM Tom_L: .750 pocket, .375 wall for pipe thread
10:11 PM Tom_L: ?
10:11 PM Tom_L: yeah
10:11 PM rue_mohr: 10 threads was like 5/8"?
10:12 PM rue_mohr: I count 7 on it
10:12 PM Tom_L: i'll measure it once i generate the threads
10:12 PM Tom_L: there are threads hiding in the gasket too
10:12 PM rue_mohr: yep, a tail end of some kind
10:13 PM Tom_L: so overall thickness 1.125"
10:27 PM rue_mohr: playing the "well what DO you want this button to do?" game is intereseting
10:44 PM rue_mohr: WTF
10:45 PM rue_mohr: #define Max(X,Y) ((X>Y)?(X):(Y))
10:45 PM rue_mohr: fprintf(stderr, "max or %d and %d, is %d\n", (E->crs_curr.cy - (E->windowrows - 1)), 0L, Max( (E->crs_curr.cy - (E->windowrows - 1)), 0L));
10:45 PM rue_mohr: max or 58 and 0, is 58
10:45 PM rue_mohr: max or 0 and 0, is 0
10:45 PM rue_mohr: max or -58 and 0, is -58
10:45 PM rue_mohr: max or -116 and 0, is -116
10:45 PM Tom_L: woops
10:45 PM rue_mohr: no, no woops
10:46 PM rue_mohr: its just blatently WRONG
10:50 PM rue_mohr: WTF
10:50 PM rue_mohr: the freaking WHAT?!?!
10:51 PM rue_mohr: if ((E->crs_curr.cy - (E->windowrows - 1)) > 0) {
10:51 PM rue_mohr: E->crs_curr.cy = (E->crs_curr.cy - (E->windowrows - 1));
10:51 PM rue_mohr: } else {
10:51 PM rue_mohr: E->crs_curr.cy = 0;
10:51 PM rue_mohr: }
10:52 PM rue_mohr: WTF
10:52 PM rue_mohr: not even that works?
10:53 PM rue_mohr: foo = E->crs_curr.cy - (E->windowrows - 1);
10:53 PM rue_mohr: if (foo > 0L) {
10:53 PM rue_mohr: E->crs_curr.cy = (E->crs_curr.cy - (E->windowrows - 1));
10:53 PM rue_mohr: } else {
10:53 PM rue_mohr: E->crs_curr.cy = 0;
10:53 PM rue_mohr: }
10:53 PM rue_mohr: its ok if I precalc it
10:55 PM rue_mohr: oooh, the 1?
10:56 PM rue_mohr: E->crs_curr.cy = Max((long)(E->crs_curr.cy - (E->windowrows - 1)), 0);
10:56 PM rue_mohr: works, something there is screwing up the result type
10:59 PM Tom_L: hex width inscribed in a 2" circle
11:01 PM rue_mohr: heh, you dont have to make it hex :)
11:01 PM rue_mohr: tho less fun, 2 monkey wrench flats is ok :)
11:02 PM rue_mohr: it should only ever need to be hand tightened :)
11:03 PM rue_mohr: ok, page up/down work how they should
11:03 PM rue_mohr: none of the normal sillyness
11:05 PM rue_mohr: next is find
11:15 PM Tom_L: 12 threads
11:15 PM rue_mohr: sure
11:15 PM Tom_L: approx
11:15 PM Tom_L: 11 likely
11:15 PM rue_mohr: is that with ~1/4" of meat in the back?
11:15 PM Tom_L: .375
11:16 PM rue_mohr: oo yea ok
11:35 PM Tom_L: program almost done
11:35 PM rue_mohr: hah! wow
11:36 PM Tom_L: 5 tools
11:36 PM rue_mohr: !
11:36 PM rue_mohr: roughout...
11:36 PM rue_mohr: cleanup?
11:36 PM rue_mohr: threader
11:36 PM rue_mohr: ?
11:37 PM Tom_L: spot drill, .250 drill, .250 EM, .375 threadmill, 45deg chamfer
11:37 PM rue_mohr: oo
11:37 PM Tom_L: still gotta cut some visejaws for it
11:38 PM rue_mohr: best not to lose the threadmill!
11:38 PM rue_mohr: tho I'm sure those are light cuts
11:41 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/extinguisher_cap_path.JPG
11:42 PM rue_mohr: nice
11:43 PM Tom_L: bedtime
11:43 PM rue_mohr: gnight
11:45 PM rue_mohr: I'm finding all the things my libraries are missing
11:45 PM rue_mohr: like a function to take the buffer offset and tell you what line your on