#garfield Logs

Jan 29 2022

#garfield Calendar

12:44 AM rue_mohr: this is a pattern one
12:53 AM rue_mohr: you have to do "shave and a haircut"
11:03 AM rue_mohr: polprog, is it an 8051?
11:05 AM polprog: Everything is an 8051
11:05 AM rue_mohr: the esp8266?
01:01 PM polprog: No, that one is xtensa :v
02:32 PM TimeTop is now known as MrClock
03:03 PM rue_mohr: I'm getting close
03:04 PM rue_mohr: I'm getting closer to going into a rage and rewriting inkscape
04:59 PM polprog: :<
05:07 PM rue_mohr: I have an SVG, I just need to embed links
05:07 PM rue_mohr: not quite sure how I should do it
05:07 PM rue_mohr: params or individual urls?
05:11 PM rue_mohr: http://ruemohr.org/%7Eircjunk/programming/inkscape.svg
05:12 PM polprog: ive no idea how these kind of svgs work
05:16 PM rue_mohr: thats the svg, I dont have the links set up yet
05:16 PM rue_mohr: you can do onclick()
05:16 PM rue_mohr: and have javascript
05:16 PM polprog: oh no
05:16 PM rue_mohr: yea
05:16 PM polprog: i know, just kidding
05:17 PM rue_mohr: so I'm wondering if I should request a special url for each or have it a ? param
05:17 PM rue_mohr: but I dont want it to reload
05:17 PM rue_mohr: I think I can have a javascript ajax a url to /dev/null
05:18 PM polprog: ajax request does not reload
05:18 PM polprog: thats the point
05:18 PM polprog: so you can have doodad.net/application/interface.html
05:19 PM polprog: and then the handling at say, doodad.net/application/backend.whatever?key=x
05:19 PM rue_mohr: yea
05:22 PM rue_mohr: do you have a phone to try loading it on? I tested it on my phone and it used its own damn icons for play and pause
05:22 PM rue_mohr: so I switched them to vector drawing stuffs and now the phone has it cached and wont reload
05:23 PM rue_mohr: I dont know how the sizing works
05:23 PM rue_mohr: and unicode doesn't have two gears meshing
05:23 PM polprog: let me check
05:24 PM polprog: my phone does not render the arrow keys
05:24 PM polprog: should something happen when i click anything>
05:24 PM polprog: ?
05:27 PM rue_mohr: nothing is clickable yet
05:27 PM rue_mohr: I'll vector the arrows too then
05:27 PM polprog: id vector everyghing tbh
05:27 PM polprog: or all non ascii characters
05:27 PM rue_mohr: will it reload it is it stuck in cache?
05:28 PM polprog: not sure how to force clean cache on mobile
05:28 PM rue_mohr: hah
05:28 PM rue_mohr: can only try it once
05:28 PM rue_mohr: just a sec
05:31 PM rue_mohr: http://ruemohr.org/~ircjunk/programming/inkscape2.svg
05:31 PM rue_mohr: we can try that
05:31 PM polprog: i believe you can set a header to not cache
05:31 PM polprog: you can append headers in .htaccess with a per file basis
05:32 PM polprog: the first file on mobile
05:32 PM polprog: https://i.ibb.co/3c0gQ95/Screenshot-20220130-001118.png
05:33 PM rue_mohr: thats 2>
05:33 PM rue_mohr: ?
05:33 PM polprog: no, thats the first one
05:33 PM rue_mohr: yea
05:33 PM rue_mohr: try
05:33 PM rue_mohr: http://ruemohr.org/~ircjunk/programming/inkscape2.svg
05:34 PM polprog: Yeah that one looks okay!
05:34 PM rue_mohr: :) I vectorized all the "text"
05:34 PM polprog: What you can do is make a .html wrapper that will just size the svg to fill the screen with some simple css rule
05:35 PM rue_mohr: I sized that last one up to be huge, so I think it'll fill most screens
05:35 PM rue_mohr: did that 2 fill the screen pretty good?
05:36 PM rue_mohr: you know svg is just a xml file?
05:38 PM polprog: youre entering a world of frontend development, prepare to see nonsense
05:38 PM polprog: yeah
05:39 PM polprog: though not entirely, modern phones have insane resolutions and huge dpi
05:41 PM rue_mohr: ok, so I should put this aside and do some esp8266 programming
05:41 PM rue_mohr: supposedly there is a file system reserve that I could put the svg in
05:41 PM rue_mohr: svg is 70k
05:43 PM polprog: okay lets move desks and try the boot0 pin on the mystery premium china supposed-to-be-stm32
05:48 PM rue_mohr: I'v never changed those jumpers
05:49 PM polprog: on this one it is floating
06:41 PM rue_mohr: ok, second time on the wagon with dxf->svg I'm doing much better
06:42 PM Tom_L: what are we trying to accomplish tonight?
06:48 PM rue_mohr: so
06:48 PM rue_mohr: I'm going to try basic SVG control
06:48 PM rue_mohr: see if I can find an esp8266 and use an SVG from it to turn its user led on and off
06:49 PM rue_mohr: I'v learned things like, in inkscape, you need to select things 3 times to join them, each time you select it, it goes into a different mode
06:50 PM Tom_L: what a pita
06:50 PM rue_mohr: yes....
06:51 PM rue_mohr: I made an SVG with an on and off button
06:52 PM rue_mohr: http://ruemohr.org/~ircjunk/programming/main.svg
06:52 PM rue_mohr: I have to embed some links in it, but I need to get an esp8266 up and going first
06:53 PM rue_mohr: which I dont think I remember how to do
06:53 PM rue_mohr: and I have to find one
07:21 PM rue_mohr: heh, it helps not to have a copy of minicom on the port your trying to program an esp8266 with
07:27 PM Tom_L: :)
07:32 PM rue_mohr: got an led flashing but
07:57 PM rue_mohr: ok, uploading example with basic wifi server
07:58 PM rue_mohr: trying to get the mac adderss, but it looks like its already in the mac filter for the wifi
07:58 PM rue_mohr: ap
08:03 PM rue_mohr: ok I have the http hello server
08:23 PM rue_mohr: ok, killed it with mofifiaions
09:31 PM rue_mohr: got it
09:31 PM rue_mohr: needs its mdns
09:42 PM rue_mohr: ok, so I can get it to turn the led on and off using manual urls...
09:42 PM rue_mohr: I need to know how to send a file...
09:42 PM rue_mohr: I need to know how to put a file on it :/
09:45 PM rue_mohr: oh, that was easy, how to I access it then
10:06 PM Tom_L: oh, that was those wifi things you and zhan were messin with
10:06 PM Tom_L: was it zhan?
10:06 PM Tom_L: memory fades
10:07 PM Tom_L: https://i2.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/ESP8266-NodeMCU-kit-12-E-pinout-gpio-pin.png?quality=100&strip=all&ssl=1
10:15 PM rue_mohr: zhanx
10:15 PM rue_mohr: yea, little thing, I
10:15 PM rue_mohr: dont know how to send the files to its file system
10:19 PM Tom_L: https://www.youtube.com/watch?v=QLGwI5tC9yk
10:19 PM rue_mohr: I have no "sketch data upload button" did they use that?
10:19 PM rue_mohr: in the tools menu?
10:19 PM Tom_L: https://tttapa.github.io/ESP8266/Chap12%20-%20Uploading%20to%20Server.html
10:20 PM rue_mohr: I dont want to load it with a sever so I can upload the file
10:21 PM Tom_L: https://randomnerdtutorials.com/install-esp8266-filesystem-uploader-arduino-ide/
10:21 PM rue_mohr: oh, maybe its an extension
10:21 PM Tom_L: don't know nuthin about the thing
10:23 PM rue_mohr: the reason its so popular is beacsue of how its extensible
10:27 PM rue_mohr: go damned java
10:28 PM rue_mohr: god damned java
10:28 PM Tom_L: heh
10:29 PM Tom_L: i learned about that when i was uploading files to my phone
10:31 PM Tom_L: i thought you had that all figured out with zhanx
10:42 PM rue_mohr: oh, they dont have a thing for installing tools extensions
10:42 PM rue_mohr: thats whats going on
10:45 PM rue_mohr: reload app
10:53 PM rue_mohr: oh requries a power first
10:56 PM rue_mohr: colour me confused
11:00 PM rue_mohr: ok the file is uploaded
11:00 PM rue_mohr: but it cant send it?
11:02 PM Tom_L: 'it'
11:02 PM Tom_L: esp can't send it?
11:03 PM rue_mohr: ugh
11:03 PM rue_mohr: they changed the whole html subsystem they use when streaming files
11:03 PM Tom_L: heh
11:03 PM rue_mohr: I hate chasing carrots
11:03 PM rue_mohr: ...dangling from strings...
11:15 PM rue_mohr: no
11:15 PM rue_mohr: F*** syncwebserver
11:16 PM rue_mohr: this can be done without it
11:21 PM rue_mohr: oops
11:21 PM rue_mohr: forgot to start the file system in init
11:27 PM rue_mohr: File open failed buddy :(
11:27 PM rue_mohr: error messages are gonna help me along
11:40 PM rue_mohr: trying to get the error to tell me what files it sees on the flessystem
11:46 PM rue_mohr: it cant see the files?
11:46 PM Tom_L: hmm
11:50 PM rue_mohr: oh I closed the stream before it had a chance to tell me
11:51 PM rue_mohr: apparently I'm not mashing the keyboard properly
11:52 PM rue_mohr: error y /main.svg End of file list
11:52 PM rue_mohr: so yea, its opening the fs ok and has main.svg
11:54 PM rue_mohr: ahaIMAGE!
11:54 PM rue_mohr: "/main.svg"
11:54 PM rue_mohr: ^^ that initial slash is really important
11:54 PM Tom_L: making progress ehh?
11:54 PM rue_mohr: SLOWLY
11:55 PM rue_mohr: its sending the image and it takes an argument on the url that turns the user led on and off