#garfield Logs

Apr 10 2020

#garfield Calendar

12:33 AM rue_shop1: ok enough soldering, I'm tired
08:00 AM aandrew: hey guys
08:01 AM aandrew: I came across something I think you'll enjoy
08:02 AM aandrew: http://mixdown.ca/dump/edn.design.ideas.zip
08:02 AM aandrew: it's a collection of the EDN design ideas over decades. some are missing but it's the most complete archive I've found
08:03 AM aandrew: $ ls -lh edn.design.ideas.zip
08:03 AM aandrew: -rw-r--r-- 1 andrew andrew 267M Apr 10 09:02 edn.design.ideas.zip
08:04 AM aandrew: missing the first half of the 80s and 2017- but looks otherwise complete
08:11 AM aandrew: ... and it's not all that great, looks like some of it is just shitty web saves. some nice pdfs but not as complete as I'd hoped
08:27 AM polprog: i recall the domain name
08:28 AM polprog: the index page is very helpful
08:29 AM polprog: i was lurking around that website not so long ago... it looks like it's someones blog based on redmine
08:43 AM aandrew: mixdown.ca is my site
08:48 AM polprog: ah, ok
08:48 AM polprog: nice
09:55 AM rue_mohr: :)
09:57 AM aandrew: so you're not far off, it's a redmine based site and I've done some blogging but not really much
09:59 AM polprog: id never think redmine can be used for blogging :D
10:08 AM rue_mohr: so, with the editor
10:09 AM rue_mohr: Iv' moved the status/interaction bar to the top,
10:09 AM rue_mohr: and implemented alt-0 for insert main() code
10:09 AM rue_mohr: alt-1 for insert an if block
10:09 AM rue_mohr: alt 2 for insert an else block
10:10 AM rue_mohr: alt-3 for insert a for loop
10:10 AM rue_mohr: and alt-4 for insert a while loop
10:10 AM rue_mohr: but it needs some work
10:10 AM rue_mohr: and the core code to this editor is not workable on a long term
10:11 AM rue_mohr: I have a solution, but it will require a splice-rewrite
10:12 AM polprog: alt-x as in ESC x ?
10:13 AM polprog: alt combos are pretty uncomfortable for me
10:13 AM rue_mohr: no, alt and the digit
10:13 AM rue_mohr: its not common stuff
10:13 AM rue_mohr: and I need nonstandard keys
10:13 AM polprog: i moved my ctrl key to caps lock to make keying in Ctrl- combos easier..
10:14 AM rue_mohr: I ponderd using the function keys, but I didn't like that
10:14 AM rue_mohr: tho one-touch would be nice
10:14 AM polprog: considering how terminals work i think esc-0 would work...
10:14 AM rue_mohr: so far, I'v reserved F1 for help and F3 for search
10:14 AM polprog: since thats what is being sent
10:15 AM rue_mohr: my code can tell the difference between escape, 0 and a escape sequence
10:15 AM polprog: oh, ok
10:17 AM rue_mohr: I was playing around on the actual text console
10:17 AM aandrew: pol it didn't start out that way. I use redmine for my internal projects/bugtracking/etc. and there was a blog or wiki extension to it that I installed
10:17 AM rue_mohr: real text console doesn't support 256 colour
10:18 AM rue_mohr: and the function key codes are all different *again*
10:18 AM rue_mohr: and no escape sequence for mouse interface
10:18 AM polprog: aandrew: oh, interesting
10:19 AM rue_mohr: one of all the stupid projects I'v not finished yet it a sun position tracker/logger
10:19 AM rue_mohr: I could have years of data by now, but noooo..
10:20 AM polprog: thats easy.. my Sun is at the windowsill since i put it there, and the Sun parts are in the closet
10:20 AM polprog: i dont need no trackers :v
10:20 AM rue_mohr: grumble.... took me 20 years to write an editor...
10:22 AM rue_mohr: but this is good its verry extended my console-foo
10:25 AM rue_mohr: maybe one day I can get an editor working with 2d content layout
10:59 AM rue_mohr: just adjusting the way that code insert works...
11:02 AM rue_mohr: I think I should make an elseif insert
11:08 AM ShopMoon: :)
11:08 AM rue_mohr: http://ruemohr.org/~ircjunk/programming/c/DIY-ed/main.c
11:11 AM rue_mohr: will it compile?
11:11 AM ShopMoon: Ready for some layman input
11:11 AM ShopMoon: ?
11:11 AM rue_mohr: http://ruemohr.org/~ircjunk/programming/c/DIY-ed/main.c
11:11 AM ShopMoon: are you ready I mean for my feedback?
11:12 AM rue_mohr: hey hey hey I got mouse scrolling working!
11:12 AM rue_mohr: yea, Its got a lot of magic keys, their noted in the comments
11:12 AM rue_mohr: ctrl-n is new
11:12 AM rue_mohr: then play with alt-0 thu alt-4
11:13 AM ShopMoon: my backspace doesnt work, and I think you should goo with light blue but I'll change that in my file
11:13 AM rue_mohr: what code is your backspace?
11:14 AM ShopMoon: leme check
11:14 AM rue_mohr: delete doesn't work to merge lines
11:14 AM rue_mohr: it'll be in the debug steam
11:15 AM rue_mohr: I'm using xterm
11:15 AM rue_mohr: the codes for every terminal are different
11:15 AM ShopMoon: how do I use DUmpKeys??
11:16 AM rue_mohr: just check the debug stream
11:16 AM ShopMoon: oh ok sure
11:16 AM rue_mohr: and its showkey -a
11:16 AM rue_mohr: but the debug says for sure
11:17 AM ShopMoon: also you need to save term settings on start and restore then on_exit()
11:17 AM ShopMoon: or atleast the colors ;P
11:17 AM rue_mohr: yea there is a missing reset
11:19 AM rue_mohr: if you like, throw this at the end of disableRawMode writes(ANSI_ColorRST);
11:19 AM ShopMoon: ok first error Alt-0 works but I also get this
11:19 AM ShopMoon: WTF key: C2
11:19 AM ShopMoon: hu? -> 0
11:20 AM rue_mohr: bastards
11:20 AM ShopMoon: WTF key: 8
11:20 AM ShopMoon: hu? -> 0
11:20 AM rue_mohr: nonstandard code type
11:20 AM ShopMoon: for backspce
11:20 AM rue_mohr: 8 ok
11:20 AM ShopMoon: and nice on catching mouse events :)
11:21 AM rue_mohr: er, here I'll throw you a new version
11:21 AM rue_mohr: http://ruemohr.org/~ircjunk/programming/c/DIY-ed/main.c
11:21 AM rue_mohr: see if that fixes backspace?
11:21 AM ShopMoon: k
11:23 AM ShopMoon: fix
11:23 AM rue_mohr: cool!
11:23 AM rue_mohr: why is your backspace a different code than mine!? *sigh*
11:23 AM ShopMoon: im going to look at your source now I hope you have your colors in a nice table :)
11:23 AM rue_mohr: kinda
11:24 AM rue_mohr: I'm surprised you didn't open main.c with it
11:24 AM rue_mohr: there are two parts
11:24 AM rue_mohr: one part puts attributes on the character positions
11:24 AM ShopMoon: I see here its good :)
11:24 AM rue_mohr: and another part maps them to escape codes
11:25 AM rue_mohr: char * editorAttribToESC(int a) {
11:25 AM rue_mohr: thats probably the best place to modify
11:25 AM rue_mohr: that commented out line is the default white text
11:25 AM rue_mohr: ANSI_BrtBlueF <-- I changed the default to ansi bright blue
11:26 AM rue_mohr: I kinda need to re-core it to make the colours of the braces stay put
11:27 AM rue_mohr: I muse at how it hilights the keywords section of its own code :)
11:28 AM rue_mohr: ShopMoon, did you get that console colour demo?
11:29 AM rue_mohr: being able to select/copy/paste would be great
11:29 AM rue_mohr: again, might need the new core for that
11:29 AM rue_mohr: this line based thing is awefull
11:31 AM rue_mohr: http://ruemohr.org/~ircjunk/programming/c/DIY-ed/256cDemo.sh
11:32 AM ShopMoon: ok I found this default color
11:32 AM rue_mohr: ^^ you can use that to test if the console does 256colours ok
11:32 AM ShopMoon: ill check this demo
11:32 AM ShopMoon: then I go work on car :)
11:32 AM rue_mohr: the *real* console doesn't support 256
11:34 AM ShopMoon: demo is a BUTE :) I'm play uotside now :D
11:34 AM rue_mohr: I think its flushing out the idea tho
11:34 AM rue_mohr: you should put your computer outside
11:34 AM ShopMoon: >:|
11:34 AM rue_mohr: make a hole in the wall or soemthing
11:35 AM rue_mohr: it can be inside AND outside
11:37 AM ShopMoon: <3
11:38 AM rue_mohr: this file also needs to be split up, its a monster
11:40 AM rue_mohr: I LOVE rainbow braces
11:40 AM rue_mohr: forget having a cursor hilight the other side, I can just see it instantly
11:43 AM aandrew: REAL consoles do support 256. :-)
11:43 AM aandrew: OLD consoles don't
12:06 PM rue_mohr: the computer I tried it on didn't do it
12:06 PM rue_mohr: its not that old
12:06 PM rue_mohr: I was wondering if there is a console mode switch
12:10 PM polprog: i think linux fb console supports 256 colors
12:11 PM polprog: there is probably a million setting though
12:11 PM rue_mohr: try that bash script on yours, mine didn't do it
12:11 PM rue_mohr: http://ruemohr.org/~ircjunk/programming/c/DIY-ed/256cDemo.sh
12:13 PM polprog: oh, wow
12:13 PM polprog: mine didnt do that either... standard debian 10
12:13 PM polprog: i wonder if a vt520 could do that
12:13 PM polprog: 525* iitc
12:13 PM polprog: iirc*
12:14 PM polprog: the ..0 were monochrome...
12:14 PM aandrew: works great on my shell, because I make sure xterm-256color is set :-)
12:14 PM rue_mohr: no no not xterm
12:14 PM rue_mohr: real
12:18 PM aandrew: ah, I don't have anything that I actually have a real console on
12:18 PM aandrew: ew. :-)
12:18 PM rue_mohr: hah
12:19 PM rue_mohr: dont know if I'll ever use it on a real console, but gee, it should work
12:19 PM rue_mohr: hey I'd better do real things while I'm awake
12:19 PM polprog: aandrew: can't ctrl-alt-f1 ?
12:20 PM polprog: unless you mean like a glass tty
12:21 PM aandrew: no all my machines are virtual or osx
12:22 PM polprog: i should try that on one of the netbsd VMs
12:23 PM polprog: weird, screen redraws the entire tty when i switch windows while in split mode
12:23 PM aandrew: unexpected great video of the day: https://www.youtube.com/watch?v=GOGru_4z1Vc
12:23 PM polprog: it should only redraw the top half
12:23 PM aandrew: (Kurt Vonnegut Jr is my al time favourite author)
12:24 PM polprog: til there was a * Jr.
12:25 PM aandrew: hm?
12:26 PM polprog: i didnt know there was a Kurt Vonnegut Jr
12:26 PM aandrew: Kurt Vonnegut Sr wasn't an author
12:26 PM polprog: oh
12:26 PM polprog: okay..
12:26 PM polprog: ive never read any of his works
12:26 PM polprog: there was a girl i knew who was heavily into that
12:27 PM aandrew: I think I've read all of them. discovered him in high school
12:28 PM aandrew: cat's cradle is one of my favourites only because it's so funny but not in ha ha kinds of ways, just lots of bits of absurd humour here and there
12:28 PM aandrew: slaughterhouse five is of course *the* book, and it's fanastic, but there are lots of others. he wrote a lot of short stories too
12:31 PM rue_mohr: int main (int argc, char *argv[], char *envp[])
12:34 PM polprog: hmm
12:34 PM polprog: wow.. gdb took like 10 secs to start up
12:34 PM polprog: hmm, destructor causes a fandango on core
12:34 PM polprog: ah
12:34 PM polprog: delete vs delete[]
12:34 PM polprog: gah
12:35 PM polprog: you know the feeling when youre back from $outside and your hands are cold
12:35 PM polprog: and you cant type
12:35 PM polprog: you can but its very difficult.. as in.. i have to explicitly make every single movement and i feel fatigued
12:35 PM rue_mohr: been there
12:36 PM rue_mohr: "OK DAMNIT 1 FINGER AT A TIME THEN!"
12:38 PM rue_mohr: and its 10:30 I need breakfast
12:38 PM polprog: >When I was using gdb 5, using just 'run' after recompilation was enough to reload the symbols. Now, with gdb 8.1, I need to type 'file executable' before 'run' in order to force gdb to reload the symbols after recompilation.
12:38 PM polprog: aaaaaaaa
12:38 PM polprog: why
12:38 PM polprog: https://stackoverflow.com/questions/49487977/how-to-reload-a-recompiled-binary-in-gdb-without-exiting-and-losing-breakpoints
12:39 PM rue_mohr: I went ddd, and didn't enjoy it either
12:40 PM rue_mohr: is it safe to assume a character defined between ' ' will be one the same line?
12:40 PM Tom_L: no
12:40 PM polprog: ddd is nice but 10 years of not maintaining it made it veeery frustrating to use
12:40 PM rue_mohr: I mean, its not technically COMPLETELY safe
12:41 PM Tom_L: ; line continuation char
12:41 PM rue_mohr: polprog, agreed
12:41 PM Tom_L: you need one
12:41 PM Tom_L: especially for variables like you like to use that are 10 miles long
12:41 PM Tom_L: (function names)
12:42 PM rue_mohr: if ( c == '6' ) {
12:42 PM rue_mohr: technically, someone could write
12:42 PM polprog: rue_mohr: https://stackoverflow.com/a/8909176
12:43 PM rue_mohr: if ( c == '
12:43 PM rue_mohr: ') {
12:43 PM rue_mohr: yes, but I'm talking characters
12:43 PM polprog: not sure what would that compare against... \n?
12:44 PM polprog: omg
12:44 PM polprog: that whole thread is gold
12:44 PM polprog: while (0 <--x) {}
12:44 PM polprog: lovely
12:44 PM polprog: "You can control speed with an arrow!"
12:44 PM polprog: :D
12:46 PM rue_mohr: haha
12:52 PM polprog: i wonder if the C++ programming teacher will tell us about valgrind.. ill keep my mouth shut
12:53 PM polprog: thats done..
12:53 PM polprog: im reading about karnaugh maps.. i see noone puts zeros in the grid, is that typical?
12:54 PM rue_mohr: but valgrind wont tell you about leaks inside the scope of the programs execution tho
12:54 PM rue_mohr: ? iv always seen zeros
12:54 PM polprog: http://www.cse.dmu.ac.uk/~sexton/CTEC1802/KM.pdf
12:54 PM polprog: yeah i know valgrind can not see all the leaks
12:54 PM polprog: but it does catch a great deal..
12:55 PM polprog: there are no zeros put in the maps in that pdf
12:55 PM rue_mohr: I wonder if they skipped the 0's for clarity
12:56 PM rue_mohr: the mouse on this program is a double edged sword
12:56 PM rue_mohr: because I enabled it, I cant copy/paste
12:59 PM rue_mohr: I can add keys for mouse on/off
01:14 PM rue_shop1: Tom_L, ever pondered a cnc lathe
01:21 PM Tom_L: yup
01:22 PM Tom_L: will i build one?
01:22 PM Tom_L: nope
01:34 PM Tom_L: i thought about my old lathe but it's too worn out
01:41 PM Tom_L: manual lathe is just about as useful to me
04:22 PM rue_mohr: every so often I have need of a lot of turned things and ponder it
05:07 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/thread_mills/Mill_Holder_Steel2.jpg
05:08 PM Tom_L: even round things can be milled :)
05:10 PM rue_mohr: nice
05:10 PM Tom_L: you saw those right?
05:10 PM rue_mohr: I thought the usa would surpass Italy in fatalities today, I was wrong, short by 500
05:11 PM rue_mohr: I dont know that I did
05:11 PM rue_mohr: thats when you were working with the threadeing bit
05:11 PM Tom_L: still wasn't centered enough for my taste
05:11 PM Tom_L: yep
05:12 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/thread_mills/Boring_Mill_Holder.jpg
05:12 PM Tom_L: even tried boring the 'tool' side in the spindle
05:13 PM rue_mohr: I built up a stand for the "new" drillpress
05:13 PM rue_mohr: we REALLY need to close the us border, wtf...
05:17 PM rue_mohr: this will get me my bench back
05:17 PM rue_mohr: http://ruemohr.org/~ircjunk/projects/drillPressStand/slide.htm
05:18 PM rue_mohr: thats today
05:18 PM rue_mohr: I need to heavily modify the bench its going into
05:21 PM Tom_L: the miller looks like mine but isn't yours a tig?
05:21 PM rue_mohr: tig/stick
05:22 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Mill_Steel/Welding/Miller.jpg
05:22 PM Tom_L: i got the cart though
05:23 PM Tom_L: the first press i had i got from my neighbor when i was a kid along with that steel table i have
05:24 PM Tom_L: he was a welder by trade and the press came with a smaller steel top table maybe 24" high the press set on
05:24 PM Tom_L: iirc 2.5" round legs or so
05:25 PM Tom_L: my grinder sits on a 4" pipe welded to a car rim for a base
05:25 PM rue_mohr: the idea is "thanks for the welder, I'll make my own cart thanks"
05:25 PM rue_mohr: I have a gridner stand I did like that too
05:27 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Mill_Steel/Paint/Paint3.jpg
05:27 PM Tom_L: grinder there
05:27 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Mill_Steel/Paint/Paint2.jpg
05:27 PM Tom_L: gen there
05:28 PM Tom_L: swapped gas in it yesterday
05:28 PM Tom_L: ready for the apocalipse
05:28 PM rue_mohr: :)
05:28 PM Tom_L: oh and the corner of the steel table the mill sits on
05:29 PM Tom_L: 1/2" plate
05:29 PM Tom_L: i'd never get rid of that
05:31 PM rue_mohr: have you seen my grinder stand?
05:33 PM Tom_L: not that i recall
07:41 PM rue_mohr: if I move the lazyboy to this computer, will I just stay in it till I die?
07:44 PM Tom_L: it could happen
11:30 PM rue_mohr: ShopMoon, finished working on your car for the day?