I learned something very cool yesterday. Of course, I'm a science geek, but I still thinks it's cool enough to share.

I'm in Los Angeles this week, doing what I hope will be ongoing programming work for a new client. The client is a big printing facility that spits out reams of paper by the minute, sorts, collates, folds, stuffs, and meters. If you've ever received a one-page explanation of benefits from your health insurance company, or a huge booklet with all the legalese for your policy, this is the kind of place that produced it.

I went on a tour of the facility yesterday afternoon. Among the huge laser printers and folding/inserting machines chained together like a mechanical version of the Human Centipede was a big blue roll printer. It was fascinating to watch in action. At one end was a giant roll of white paper, about six feet in diameter and 17 inches wide. The paper was fed at high speed into a unit that printed two pages side by side. As it emerged from that unit, the continuous paper strip went through a complex series of rollers, some set at a 45-degree angle, that turned the paper over so the blank side was facing up as it went into the next printer. As the paper emerged, now printed on both sides, a blade sliced it lengthwise. The two narrow side-by-side strips were then brought together, one on top of the other, and fed into a cutter that chopped them up into perfectly collated stacks of 8.5 x 11" duplex-printed paper.

That was cool enough, but I noticed that as the paper emerged from the machine that sliced it lengthwise, it passed beneath a piece of wire that had obviously been juryrigged. The wire was wound with a spiral of tinsel, the kind you'd use to decorate a Christmas tree. The tinsel brushed the paper as it sped past.

My guide pointed to the tinsel. "Every big print shop I know stocks up on tinsel at Christmas time," he said. "It's perfect for discharging static electricity from the paper."

Which then makes the paper behave better down the line and helps prevent jams in the equpiment. Pretty cool, right? I know.


Crossposted from Inhuman Swill
First, let me say that most of you aren't going to care about this.

To the few of you who do, let me say that my long LiveJournal nightmare is over.

Not that I have as bad an opinion of LiveJournal as some, but the fact that it had been my primary blogging platform for so long was holding me back from bringing all my blogs together under one roof. As I posted on Saturday, I'd written scripts a long time ago to let me crosspost my LiveJournal entries to my Movable Type blog, but now I wanted to switch that around and go the other direction. I wanted to be able to use Movable Type's superior content management system to work on more than one entry at a time, and to schedule them for automatic posting at future dates. It was only once I began looking into my options that I realized finding a solution would mean I could crosspost to LiveJournal from all my blogs. Bonus.

Interestingly, it was people I know who led me to the answer. My very first Google search led me to this 2008 post from Ben Rosenbaum, who was looking for a similar solution, and Tempest Bradford served it up in the very first comment. She pointed me toward a Movable Type plugin by Chip Marshall called ljcrosspost that sounded perfect. Several other sites praised it highly. The only problem was, site where the source code was archived no longer existed.

I tried a couple of other plugins I ran across, but when I tested them they were kind of iffy. I kept coming back to ljcrosspost in my Google searches, but was frustrated by the elusiveness of the source archive. If only I'd embarked on this project in 2008!

But then I realized I could probably get the code from the Wayback Machine. Bingo! There it was.

So finally I made some time today to familiarize myself with the code and to write a few test scripts. The ljcrosspost plugin works by communicating with LiveJournal.com via XML-RPC, and that makes it startlingly easy to post LiveJournal entries from a Perl script. (In fact, I probably annoyed the hell out of my LJ friends with all the placeholder entries I posted then deleted this afternoon.) Once I had the basic concepts down, I made some tweaks of my own to Mr. Marshall's code, and I was off to the races.

The cool thing about ljcrosspost (and forgive me if I get too geeky) is that it not only lets you crosspost but also crossedit. When you first publish a blog entry on the Movable Type end, the plugin opens an RPC channel to LiveJournal, posts the entry there, and gets back a couple of unique identifiers which it then stores with the Movable Type entry's metadata. If you should ever go back and edit that entry, Movable Type sees from the metadata that a copy already exists at LiveJournal, so it posts an RPC request to update the LiveJournal entry with the altered text. Very slick.

Another consequence of ljcrosspost's design is that, once you've installed it, if you republish your entire Movable Type blog, all the existing entries will get posted to LiveJournal. I actually did that with my Proper Manuscript Format and Signs of Yesteryear blogs, which you can now see neatly mirrored here and here.

Of course, as you might guess, I made some of my own little tweaks to ljcrosspost. First, I enabled the list of categories associated with a Movable Type entry to be translated into LiveJournal tags and passed to the remote server.

I also extended the <MTLJCrosspost> tag so I can pass it an explicit list of categories to be added to all entries mirrored from a given blog. (This is how, for instance, I can give all the entries from my formatting blog the LiveJournal tag "manuscript format," even though that's not a category associated with any of the original Movable Type entries.)

And finally I inserted a little message at the end of each mirrored entry which incorporates the name of the originating blog and links back to the original version of the post.

You might think that's a lot of trouble to go to just to be able to send content to a site that doesn't entirely suit me anymore, and you'd be right. But the fact is, I still have a lot of great friends at LiveJournal, and I like interacting with them there even if the other aspects of the site aren't what they used to be. We've got a lot of history, and I'm glad I'll finally be able to put some of my other content in front of them without a lot of annoying crosslinking.

So anyway, I've tested my new setup pretty thoroughly, but this will be the first real new entry that I post with it. I'm going to schedule it to go live just before midnight. Then I'm going to cross my fingers and hope it gets to you LiveJournal folks.


Crossposted from Inhuman Swill
I've been on LiveJournal a long time. I joined in October of 2000, more than eleven years ago. I've posted more than 2,000 entries. If you go to my profile page, you'll see that my user ID (17832) is in the low five digits. If you were to create a new account today, you'd get an eight-digit user ID. I obviously haven't been here since the very beginning, but I've been here long enough. I have a lot invested here. But I'm thinking hard about abandoning LiveJournal as my primary blogging platform.

I'm not going to rehash all the changes in management and ownership that have plagued us here over the years, the privacy concerns, the outages and denial-of-service attacks. That all contributes, but the biggest problem I've come to have with LiveJournal is simply the lack of some basic features that most other major blogging platforms feature. And two of the biggest of those are the inability to save more than one in-progress blog entry at once, and the inability to schedule completed entries for future posting.

Over at my personal site, I'm running a Movable Type blog. I know it's not the best choice out there, but it's the one my hosting service offers, and I've customized the hell out of it and even built some of my own widgets. I've written a script, also, to scrape my entries from here at LJ and repost them over there. But now I'm thinking seriously about reversing that polarity.

So here's my question. I know that a lot of you blog elsewhere and have your entries reposted to LJ. What process or service do you use to do it? How do like the results? I seek your wisdom.


I was sorely tempted to name this post "DeadJournal," but of course there is a site called DeadJournal. It's one of the many alternative sites built on LJ's codebase. I'm not sure whether or not the code is still open-source.

April 2014

S M T W T F S
  12345
6789101112
1314 1516 171819
20212223242526
27282930   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 14th, 2025 10:09 pm
Powered by Dreamwidth Studios