April 2017

S M T W T F S
      1
2345678
910111213 1415
16171819 2021 22
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
marcmagus: (regexp)
Thursday, February 11th, 2010 10:40 am

It turns out there's a bug in jlj, the program I use to compose messages in my favorite editor and submit them to LiveJournal and DreamWidth. I've finally tracked it down and written a quick fix. I feel slightly dirty, but the proper fix requires ripping out the existing band-aid on a band-aid and going back and fixing the underlying problem, which is a bit more effort than I want to go to for someone else's code at this time, as there could well be unexpected consequences.

The problem was that if you had written a post to go to a server other than LiveJournal, and you had it in your queue but it failed to post for some reason, then when you ran jlj -f to flush the queue it would attempt to log in to LiveJournal using the credentials for whatever site you had intended to post to. The symptom looked something like this:

[magus@cabinet ~]$ jlj -f
Logging in to server www.dreamwidth.org
Error Message returned:
Invalid password

Read more... )

Tags:
marcmagus: (regexp)
Monday, May 18th, 2009 05:32 pm

I've just uploaded my Vim syntax file for JLJ to vim.org.

This will colorize all the header stuff up top, and also include the syntax file of your choice to appropriately colorize the body of your entry while you're working on it.

You can get it at jlj.vim.

Tags:
marcmagus: (regexp)
Tuesday, April 14th, 2009 04:14 am

I . . . really don't want to admit how much time I just spent fixing my vim syntax files for jlj and markdown so they work the way I want them to.

All because something about the way they were interacting with one another was making it treat ' as the beginning of a quoted string, so, for instance, everything after the ' in don't until the next ' somewhere would get highlighted bright magenta, making it hard to tell what was going on and interfering with other highlighting.

The time consuming thing, beside tracking down what was causing that, was that I wasn't happy with the way the mkd.vim I picked up off vim.org handled "reference-style" links.

At least it's working in a way I don't hate now. I'll say again, this Markdown thing is pretty cool. Something out there has probably made it completely obsolete by now.

Ah, shoot; I just remembered I'm not happy with the way the markdown syntax handles emphasis and strong. Work to do sometime.

Tags:
marcmagus: Me playing cribbage in regency attire (Default)
Thursday, April 2nd, 2009 03:54 pm

As I alluded to in my last post, I've configured JLJ to format my posts using Markdown for conversion to HTML. Getting it set up was a little trickier than I'd expected, due to a flaw in the JLJ documentation.

To get JLJ using Markdown, you must add the following to your .livejournal.rc:

format: external preformatted none jerry
formatter: /usr/bin/markdown

Obviously, you should replace the path if your markdown is installed elsewhere. In theory, I expect one should be able to use an alternate processor; I may try multimarkdown sometime.

Tags: