Entry tags:
Question thread #57
It's time for another question thread!
The rules:
- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
The rules:
- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
no subject
1. It lets me post preformatted HTML5, with unclosed [p] and [li] tags, and treats newlines as spaces as per the HTML spec. This probably rules out XML-RPC unless it will take the body of the post in a CDATA section.
2. The body of the post comes from STDIN. (I can write a temporary file if necessary, but I'd rather not.)
3. After it posts, it returns the ID of the post.
4. Ideally, it can edit a post.
5. It can be put in a Makefile or other shell script -- it mustn't ask the user for the password or borrow a cookie from a browser. I want to integrate it with my make- and git-based workflow.
If there isn't one, which API should I use to build one? I've been meaning to find one of these for a while; it's gotten more urgent now that my preferred client, ljupdate.el, stopped working presumably due to the HTTPS upgrade.
no subject
If you are running Linux to use SSH, you might be able to open code in geany (or an IDE) by connecting to your dreamhack with ssh either from your file system or geany directly.
If this interests you, let me know. :)
no subject
Specifically, I want to create a file in emacs (foo.html, for example) and then say "make foo.post" at the command line and have the contents of foo.html shipped off to my Dreamwidth blog, updated with the post's URL, and committed in git.
I could probably do it directly in a Makefile recipe with curl, but I'm not familiar enough with the API and the documentation is sketchy to nonexistent.
no subject
https://dw-dev.dreamwidth.org/200615.html
I used JLJ in the past to write blog posts. I think it still works but am waiting to build a new client with the newer API soon.
Here's the PR: https://github.com/dreamwidth/dw-free/pull/2015
no subject
JLJ looks like it might be a starting point, but it would definitely take a fair amount of work.
no subject
no subject
no subject