Good morning. That was a rubbish nights sleep, and I'm feeling knackered this morning. Ah, well.
Got training, hopefully I can stay awake for it.
Good morning. That was a rubbish nights sleep, and I'm feeling knackered this morning. Ah, well.
Got training, hopefully I can stay awake for it.
The blog buttons are in the wrong order, I don't like post showing up in the middle.
Also, I've decided that the button style for nav links is wrong. I'm not sure about the whole colour scheme either. Gah, maybe I'm just feeling rubbish this morning and need stuff to complain about? On the other hand, I should design the site so that I'm happy looking at it when I'm depressed, so I keep using it when I'm depressed.
I can use rfc5622 messages without an imap server!
RFC5322 is the mail format one. Oops.
New layout doesn't work on mobile.
Flip, second time I've hit "new entry" instead of post
Microservices change explicit complexity (in the code) to implicit complexity (in the communication between components)
That's "Remember where you were" more or less done, including proper consent and everything. Only thing it needs is to fix the scroll to so that the end of the last entry read is at the bottom of the page.
Might also want to update the "this is where you got to" highlight in realtime.
Thank you stackoverflow!
element.scrollIntoView(false)
does exactly what I want it to do.
Hmm. Scroll to latest isn't interacting well with location.hash
being set at the same time. Let's try checking for a hash at scroll time, and not moving if there is one.
Yup, that seems to have fixed it.
(Note: location.hash
is empty string, not null)
Hehehehe, that's so frickin' cool! It's been on the wishlist for the blog for ages! Now I can have best of both worlds - all the entries on the page, in date order, and regular visitors don't have to scroll for miles to find their place.
Aint JavaScript brilliant!
Works on my phone too, although the jump is more obvious.
IMAP is not the right solution for backend storage. Could make it work, probably, but it's too immutable. I want to be able to edit entries and them keep their ids (whether or not they keep a change history)
I want a bigger gap between paragraphs as well.
I think "Track latest seen" might be better than "Remember where you are". It's shorter and a little more accurate (since I'm not going to track scrolling back up, right?)
Track latest entry seen is still making me quite happy.
I can think of five sources of images off the top of my head (although there maybe some overlap): Upload from local device, pull from URL, Google images, local camera, Android intent ("Share image" from another app)
Once we've got an image, it needs to be added to a post. Again, a few options: Just post image, attach to end of post, inline in post.
Given that Markdown has an inline image tag (a link, bit with a leading exclamation mark), I'd like to support that, but getting the filename right (and things like scaling/rotation/crop) is going to be tricky/irritating. (Since this bit is almost certainly going to need JavaScript anyway, I've got a bit of wiggle room to make life easier. Things like an "insert image" button on the edit page that shows an image picker/uploader/editor, generates a link, and inserts it into the textarea)
That's actually sounding like a reasonable plan right now. The dialog
tag works well for the consent screen. I'll have a think about what could/should go into the add image dialog.
Android share is out, at least for now. It would work in Chrome, but I don't use Chrome.
Local camera looks doable (verging on easy): Open the camera, link it to a video
element, take a snapshot, upload.
Local storage should just be a file upload tag, ideally with a scriptless version that updates to something more fancy if supported. (fancy in this context implies upload progress)
Generic url is easy as well, although since I'd want the server to do the download that probably needs JavaScript for progress/completion notification.
Google photos is it's own problem that I'm going to ignore for now.
Since the dialog stuff needs JavaScript (right? could I do something with the css checkbox trick?)(plus, it's 2022, JavaScript exists, get over it), how much JavaScript do I want to use?
The local camera stuff absolutely depends on JS. Can (probably) do crude local storage upload with no JS, likewise remote url (certainly in terms of post image as separate entry). Again, do I want to? What's the use case?