#garfield Logs
Apr 12 2020
#garfield Calendar
04:11 AM rue_mohr: ok
04:17 AM rue_mohr: I'v rewritten the whole escape code parser to be a state machine
12:58 PM rue_mohr: ok! it uses select() to get the events!
12:58 PM rue_mohr: now I just need an event subsystem
12:59 PM polprog: rewriting emacs i see
01:01 PM rue_mohr: hell no
01:01 PM rue_mohr: screw lisp
01:01 PM rue_mohr: I'd use python
01:01 PM polprog: haha
01:02 PM polprog: after implementing some additional keybindings in my emacsrc, i think python would be way better
01:02 PM rue_mohr: if I wanted it to be popular I'd use javascript, but I presonally wont go that low
01:03 PM rue_mohr: that tutorial editor is a line editor, it stores the file in an array of lines
01:03 PM rue_mohr: which means *ANY* operation that needs to happen outside of one line is a HUGE PAIN
01:03 PM rue_mohr: back in 2000 I wrote the core of an editor, all the content control code
01:04 PM rue_mohr: but I couldn't get a ui
01:04 PM rue_mohr: *this* gave e the start I needed on a ui
01:04 PM rue_mohr: so I'm going to swap in all my old code
01:04 PM rue_mohr: but its a bit of a transformation from A to B
01:05 PM polprog: nice
01:05 PM rue_mohr: this will give me a good stroll thru what I need to know to rewrite a widget toolkit for X too
01:06 PM rue_mohr: might rewrite motif, might go deeper
01:06 PM rue_mohr: when motif was written, object oriented code was young, and lots of the coders just didn't get it
01:07 PM rue_mohr: so, motif is made out of a pile of objects that were specifically made for one thing, but configurable not to be
01:12 PM rue_mohr: oooo
01:12 PM rue_mohr: I could make a key that auto reindents all the selected code 8-)
01:13 PM polprog: thats a feature i use a lot
01:13 PM Tom_L: cause you write sloppy code?
01:13 PM Tom_L: :)
01:13 PM polprog: :P
01:13 PM rue_mohr: every so often I copy a block from somewhere and maul it
01:13 PM rue_mohr: then Ihave to go thru and fix all the indenting
01:14 PM polprog: yeah, or i take someone elses code to work on it and teach them
01:14 PM polprog: dev-cpp does not autoindent
01:14 PM Tom_L: give it parameters so you can set the indent size, be it tab or space
01:14 PM polprog: it looks horrid.. esp if they copy from various places, the indentation is random pretty much
01:14 PM rue_mohr: hell no, I always use 2 spaces
01:14 PM Tom_L: well i use 3 or 4
01:15 PM rue_mohr: this is really probably every only gonna be my editor
01:15 PM rue_mohr: I want way too many features people just wont understand
01:15 PM rue_mohr: alt-0 inserts a main() function
01:16 PM Tom_L: resequence a gcode file
01:16 PM rue_mohr: resequence?
01:16 PM Tom_L: operate on a gcode file like change all X from this to that
01:16 PM Tom_L: i have one that does that
01:16 PM rue_mohr: huh
01:16 PM Tom_L: change all these Z moves from this to that
01:16 PM rue_mohr: it would help to ahve a preview windoww
01:16 PM Tom_L: or an undo
01:17 PM rue_mohr: yea, I dont knwo how to implement undo yet
01:18 PM Tom_L: a feature you will want
01:18 PM Tom_L: alot of them have an undo 'trail' so you can undo multiple clear back to when you opened the file
01:18 PM rue_mohr: yea, that and copy/cut/paste is why I'm not using it to edit itself yet
01:20 PM rue_mohr: taking this code from where it is to where I want it, it like untangling a 50lb pile of rope
01:20 PM Tom_L: better than thread
01:24 PM rue_mohr: this is all going quite well tho
01:24 PM rue_mohr: I wish it weren't 1 file with 34k of code
01:24 PM Tom_L: sounds like you're having fun with it at least
01:25 PM Tom_L: so break it up and use includes
01:25 PM rue_mohr: yea, there are no snap-lines yet
01:25 PM rue_mohr: I have to move stuff around more
01:25 PM rue_mohr: that tutorial used lots of globals (that I fixed on my second pass) and everything is an editor operation
01:25 PM rue_mohr: he didn't break it up at all
01:26 PM rue_mohr: its a tangled mess of everythingness
01:26 PM rue_mohr: I'm reworking it to be event based
01:26 PM rue_mohr: but the operations like open, save, find, all do their own little main loop
01:27 PM rue_mohr: so I need a high level dispatch system...
01:27 PM rue_mohr: which introduces the concept of object focus
01:28 PM rue_mohr: which is needed for cursor position control anyhow
03:21 PM rue_mohr: https://coronavirus.jhu.edu/map.html
03:51 PM rue_mohr: USA officially leading the death toll
03:53 PM Tom_L: we aim to be #1
03:54 PM rue_mohr: trump would have no less
03:54 PM rue_mohr: looks like new york is being the worst hit, man they live hard over there
03:56 PM Tom_L: man it's windy here today
03:58 PM Tom_L: https://earth.nullschool.net/#current/wind/surface/level/orthographic=-98.33,34.31,1784/loc=-99.811,35.469
05:22 PM rue_mohr: says the chap in hurricane alley
06:14 PM polprog: so ive made a Live dos floppy
06:14 PM polprog: i had to run some dos software recently
06:15 PM polprog: it boots up dos6.22.. makes a ramdisk, copies command.com and edit.exe to said ramdisk
06:15 PM polprog: sets some env var that i already forgot and voila
06:15 PM polprog: you can remove the original floppy
06:28 PM polprog: i can give you the img file if you want
06:28 PM polprog: goodnight
06:47 PM Tom_L: polprog, what did you need it for?
06:50 PM rue_mohr: polprog, good show
06:51 PM polprog: still awake
06:51 PM rue_mohr: http://ruemohr.org/~ircjunk/not_public_dont_open/dosutils.bin
06:51 PM rue_mohr: check out whats on that one
06:51 PM polprog: Tom_L: i had to use some dos only software and i got tired of swapping floppies
06:51 PM polprog: hmm, will that stay there till european morning?
06:52 PM polprog: i was reprogramming a motorola handheld radio
06:52 PM rue_mohr: its been there for 3 years so far
06:52 PM polprog: ok
06:52 PM polprog: it just so happens i have to blank floppies, red and blue
06:53 PM rue_mohr: I was pretty annoyed the last time I read a disk on the server
06:53 PM rue_mohr: linux doesn't shut off the motor anymore
06:53 PM rue_mohr: wore thru the floppy
06:53 PM polprog: i found it weird. mine keeps spinning for a couple secs
06:54 PM polprog: im not sure if its a good idea to swap floppies then
06:54 PM polprog: sometimes i get read errors
06:54 PM polprog: which i have to wait out
06:54 PM rue_mohr: a few seconds is ok, its to prevent repeatedly spinning it up and down between intermittent access
06:54 PM polprog: ah
06:54 PM polprog: yeah i think its bad
06:55 PM polprog: my local utility box has /mnt symlinked in /var/www/html
06:55 PM polprog: i mount floppies in mnt usually.. so thats probably the slowest www server in the country at times :v
06:56 PM rue_mohr: :)
06:56 PM rue_mohr: and yet still faster than a mirc server
06:56 PM polprog: haha
06:56 PM rue_mohr: no
06:56 PM rue_mohr: not mirc
06:56 PM rue_mohr: mirc?
06:56 PM polprog: click on the link and you can hear the drive buzzing
06:56 PM polprog: do you mean a DCC fserve?
06:56 PM rue_mohr: not mirc
06:57 PM rue_mohr: ICQ
06:57 PM rue_mohr: I'm losing it
06:57 PM aandrew: LOL
06:57 PM polprog: is that even alive today
06:57 PM rue_mohr: floppy is still faster than an ICQ server
06:57 PM rue_mohr: if you can connect
06:57 PM rue_mohr: I think its still served off a 9600 baud network link
06:57 PM polprog: i know there are people who reverse engineered AOL and keep running a server
06:58 PM rue_mohr: hahaha
06:58 PM aandrew: I had Ari and Stefi (ICQ creators) on my contract list at one point
06:58 PM aandrew: Sefi not stefi
06:58 PM polprog: allright. cant wait to check out your dosutils tomorrow
06:58 PM rue_mohr: I suppose as one of the origional social media things, it just got way too popular too fast
06:58 PM polprog: if you want my dos Live distibution just ask :^)
06:59 PM polprog: night
06:59 PM aandrew: ICQ was nice, I liked the random feature
06:59 PM rue_mohr: the dos box it was all spawned from died
06:59 PM rue_mohr: thats the hard drive I have in the freezer
06:59 PM rue_mohr: I got some of the data off
07:00 PM rue_mohr: there is a really narrow temp region that it'll work in
07:00 PM rue_mohr: about -3c I think
07:00 PM rue_mohr: the platter magnetics degraded and it cant read
07:01 PM rue_mohr: once you get it going you have about 8 minutes to mount it, grab the stuff you want
07:01 PM rue_mohr: then its gone again
07:04 PM Tom_L: i think i've got dos on a cd
07:06 PM rue_mohr: I dont think I have my copy of "direct access" or my programming files
07:06 PM rue_mohr: I have a bunch of random backups tho
07:07 PM rue_mohr: I think lots of the recovery time was spent copying DOOM.WAD :/
07:07 PM rue_mohr: that bites
07:09 PM Tom_L: mm i must not have that drive plugged in right now
07:10 PM Tom_L: i'm not sure anybody bothered to save windows 3.1
07:10 PM rue_mohr: I did
07:10 PM rue_mohr: love to have my old machine back on its feet :/
07:11 PM Tom_L: you had to boot dos first didn't you?
07:11 PM Tom_L: i can't even remember now
07:11 PM rue_mohr: yea, its just on top of dos
07:11 PM rue_mohr: 3.1 isn't an OS
07:12 PM rue_mohr: mine had a 95 pack that made lots of programs that didn't support 3.1 work anyway
07:12 PM Tom_L: i've got 95 & 98 sp2
07:12 PM rue_mohr: I wonder if I backed up DRA on a floppy
07:13 PM Tom_L: got an old colorado tape backup with who knows what on it
07:51 PM aandrew: I used to have isos for nt4, 95, 98, 98se 2000 and even os2 warp but couldn’t see a reason to keep that stuff around anymore. Others have done so much good work keeping the old stuff alive that any of my efforts were laughable in comparison
07:52 PM aandrew: I have a bunch of dat tapes to but nothing to read them
10:18 PM rue_mohr: 2# ls /files/iso/windows/ -1
10:18 PM rue_mohr: 98key.txt
10:18 PM rue_mohr: 98sekey.txt
10:18 PM rue_mohr: win95.bin
10:18 PM rue_mohr: win98.iso
10:18 PM rue_mohr: win98se.iso
10:18 PM rue_mohr: winstall.iso
10:18 PM rue_mohr: winxp.iso
10:18 PM rue_mohr: xpkey.txt
10:50 PM zhanx: ?