You are viewing bastard_blog

SXEmacs/LJ v1.27 is released

sxelj, lj

Apparently Size DOES matter

So I was lazily flipping through the LJ API docs and I discovered that they impose limits on the maximum size of a post. I had no idea. Not only that, but there are also limits on the size of the subject header and other metadata fields as well.

This update adds code to SXEmacs/LJ that checks for these limits before you post. If you exceed the limits you'll get an error telling you what limit was exceeded, and by how much.

In other news

I had always intended SXEmacs/LJ to have its own abbrev table. I had gone as far as defining the table. I'd just left one thing off… I hadn't bloody turned on abbrev-mode in the LJ-Post buffer. Oops.

That's now fixed, so you can now define and use abbrevs to your heart's content.

Getting the code

Grab it via git…

git clone http://git.sxemacs.org/slh

The Gory Details

And here's the log


commit 7a47792891785ceeedc2676bee9c24ce36ca48a1
Author: Steve Youngs <steve@sxemacs.org>
Date: Sat Jun 25 20:10:07 2011 +1000

Impose size limits as per Livejournal API docs.

This patchset makes sure you don't exceed the limits on size that

Livejournal imposes on entries.

It also fixes a quick little bug to do with abbrevs… I kinda forgot

to turn them on.

* lj.el (lj-check-limits): New. Livejournals puts limits on the

length of posts and the headers etc. This ensures you don't

exceed them.

* lj.el (lj-post): Use it.

* lj.el (lj-mode): Turn on abbrev-mode.

* lj.el (lj-version): Bump.

Signed-off-by: Steve Youngs <steve@sxemacs.org>

Till next time...
Steve


Posted via: SXEmacs/LJ (SXEmacs-22.1.14/LJ: 1.27)

SXEmacs/LJ v1.26 is released

sxelj, lj

Woohoo! New Goodies

It's all pretty much described in the log below, but here are a couple of new features for SXEmacs/LJ

  1. Sign-off your posts with a user-definable signature
  2. Tell the world that you use sexy software with some shameless self-promotion

Getting the code

Grab it via git…

git clone http://git.sxemacs.org/slh

The Gory Details

And here is the log


New signature feature and self-promotion.

This patchset brings some shameless self-promotion by adding a byline to
the bottom of a post: "Posted via: SXEmacs/LJ (version string)". It is in
a fairly small font and out of the way so should be reasonably
inconspicuous, but you can turn it off if you want to with…

(setq lj-self-promote nil)

There's a new user variable, `lj-signature', the value of which is
inserted at the bottom of the post buffer if it is non-nil. It is
inserted verbatim, so making it pretty (HTML formatting) is up to the
user.

* lj.el (lj-byline): New. Nothing wrong with a bit of

self-advertising, I reckon. ;-)

* lj.el (lj-self-promote): New. When non-nil tell the world that

you use sexy software.

* lj.el (lj-post): Optionally add the byline.

* lj.el (lj-preview): Include byline in preview.

* lj.el (lj-validate): Ditto.

* lj.el (lj-signature): New. Lets you include a sig at the bottom

of a post.

* lj.el (lj-generate-new-buffer): Insert the signature if it is set.

* lj.el (lj-version): Bump.

Till next time...
Steve


Posted via: SXEmacs/LJ (SXEmacs-22.1.14/LJ: 1.26)


This is just a test, noting to see here, unless you're me

Till next time...
Steve


Posted via: SXEmacs/LJ (SXEmacs-22.1.14/LJ: 1.25)

SXEmacs/LJ v1.25 is released

sxelj, lj

More Sexiness

This update makes for much better handling of Writer's Block question answering. If you were to answer one of those Writer's Block question on the LJ site, the Subject header in the composition form was pre-filled with a title they'd given the question. But not if you used SXEmacs/LJ.

The problem was that the titles are not stored with the questions and I had no idea where the info was coming from. Well, after a bit (read: lot) of poking about, I finally found the source. So now when you do `C-c w' in SXEmacs/LJ and choose the question you want to answer, the subject header will be pre-filled just like it is if you were to do it on the LJ site.

How Valid Is Your Validation

I've also updated the validation code so that it now checks for more problems in your markup. So if you are going to validate, you better make sure you know what you are doing when it comes to writing XHTML markup.

More Bugfixes

What would be the point of an update if I didn't include the odd bugfix or two. In this update I've fixed a problem that was causing the Writer's Block buffer to have no questions displayed.

Getting the code

As usual, grab it via git…

git clone http://git.sxemacs.org/slh

Or grab just lj.el from…

http://bastard.steveyoungs.com/~steve/lj/lj.el

The Gory Details

And here is the log…


commit 0c0ea7374cd19ad4959ea22e981de0c1f4bbb2f4
Author: Steve Youngs <steve@sxemacs.org>
Date: Fri Jun 24 16:28:19 2011 +1000

Update Writer's Block code to pre-fill Subject header.

* lj.el (lj-parse-qotd-archive): Fix regexp.

* lj.el (lj-qotd-subject): New. Pre-fills the Subject header with

the title of the Writer's Block question.

* lj.el (lj-narrow-to-qotd): Use it.

* lj.el (lj-version): Bump.

Signed-off-by: Steve Youngs <steve@sxemacs.org>

commit 6a599ad3764aba83a78ca64e7f0545ed559ee806
Author: Steve Youngs <steve@sxemacs.org>
Date: Fri Jun 24 11:02:46 2011 +1000

Tweak the validation code a bit. Make it check for more problems

* lj.el (lj-validate-footer): Massage the validation command to

check for and warn about more things.

* lj.el: Add blurb about validating in commentary section.

Signed-off-by: Steve Youngs <steve@sxemacs.org>

SXEmacs/LJ v1.24 is released.

sxelj, lj

It's been ages since I've used SXEmacs/LJ and this morning I found a bug! So have a fix.

Bugs, ick! Squish em, Quick

The bug was in the code that searches through your web browser settings looking for LJ cookies. It turns out that if it was set on auto (the default) and you happened to not have the first browser to be searched installed… Wham, Bam, infinite loop!

Infloop BEGONE!

To Tweet, Or Not… Nope, Can't

In other news, I've also turned off the twitter updating. Why? Because Twitter, in their infinite wisdom (sic) decided that Basic Auth was too, erm, basic, so they turned it off. SXEmacs/LJ was using, you guessed it, Basic Auth to send status updates.

So until I rewrite it to use the OAuth crapola, the SXEmacs/LJ twitter stuff is off.

You can still get your LJ posts announced in your Twitter stream by fiddling with your setting on your LJ profile. But, where SXEmacs/LJ is concerned, this is an "Always On" or "Always Off" thing. You can't set it for individual posts like you can if you write the post on the LJ site.

Sorry about that, but the API docs don't even mention twitter at all, so I'm kinda stuck (until OAuth). It's actually why I had added the twitter stuff to SXEmacs/LJ in the first place… So you could turn it off on your profile and choose which posts you wanted tweeted in SXEmacs/LJ.

The Log

And here is the log of the changes I made

commit 2f5cd6c9d1ce0ea807feecf2be69857edb86750d
Author: Steve Youngs <steve@sxemacs.org>
Date: Thu Jun 23 17:36:48 2011 +1000

Fix an infinite loop, and disable twitter updates

* lj.el (lj-get-cookies): Fix infinite loop when flavour is auto.

* lj.el (lj-post): Don't attempt to update Twitter. It's broke.

Erm, I mean that SXEmacs/LJ twitter updating is broken, not that

Twitter itself is broken… at least not all the time. :-P

* lj.el (lj-version): Bump.

Signed-off-by: Steve Youngs <steve@sxemacs.org>

Getting The Code

If you want to get your hands on this rilly sexy LJ client, and you have git installed…

git clone http://git.sxemacs.org/slh

There is also a copy of just the lj.el at http://bastard.steveyoungs.com/~steve/lj/lj.el

Have fun with it.

Hmm, does this thing still work?


Seeing as though my SXEmacs is getting closer and closer to being as usable as it used to be I thought I'd see if this here SXEmacs/LJ of mine still worked.

If you're reading this I guess it does.

Funky Shit I'd Give My Left One To Do


Day-dreaming. We all do it. There's nothing wrong with it. It can be very healthy and even rewarding. Some of us, like me, tend to take it to the extreme. We can let it take over our lives, and that, my friends, is the fast lane to insanity.

So after bringing myself back from the brink of spending the rest of my days in a rubber room, I thought I'd share with you a list of some of my most recent absent-minded delusions. I'd love to read what you think of these wonders so please don't be shy… leave a comment.

  • Invent a time machine that can transport me to any place in space and time. Do you think they'd let me call it a "Tardis"? I'd love to go back and see the pyramids being built. Or spend some time with a group of Neanderthals (real ones, not rugby players). To be able to chat one on one with all of history's greats… da Vinci, Columbus, Solomon, Erik the Red, Newton, Einstein, Alexander the Great, even the guy who invented the wheel. Wow, that'd be something, wouldn't it? And why restrict ourselves to the past, what would things be like 10,000 years from now into the future?
  • Being able to travel vast distances in the time it takes to blink. By "vast distances", I mean billions of lightyears. I refuse to believe that our pathetic little planet is the only place where inteligent life has evolved. I want a way to go drop in for tea and crumpets with these other inteligent lifeforms.
  • Find a way to have a sustainable civilisation that doesn't use or need money. Put an end to poverty for all time.
  • Sail, unpowered, across an ocean. I think that the Pacific is the one that is most appealing to me. I don't want to do it alone, but with no more than one or two others. And I don't want to make a race out of it or break any records. Just want to do it.
  • Spend a year alone on a deserted island. Obviously the island must have the resources I'm going to need to survive.

Oh, there's also a few other things, but they're all kinda boring. Things like…

  • Write several novels
  • Sky-Diving
  • Run a marathon
  • Climb a mountain
  • Work and live in Antartica for 6 months

Well, that's it. Well the stuff I'm prepared to voice out loud, anyway. :-) Hope you enjoyed it. Hope it makes you think up some wonders of your own. But most of all, I hope you let me know what goes through your mind when you read my ramblings.

Till next time…


peanuthorst, I'm pretty sure that this should get you going again. Let me know if it doesn't.

Summary: Fix URL encoding problem
Keywords: bugfix, internal

This changeset fixes a problem that has recently cropped up. The
LiveJournal people now insist that the useragent be properly encoded. It
is actually amazing that this used to work before. Anyhoo, fixed now.

* lj.el (lj-construct-url): Ensure that the useragent is URL-encoded

Try to load ffi-curl along with ffi-sqlite.

(lj-version): Bump.

bug hunting


Something's broke

Tags:

sxelj, lj

In the third test, we again connect to the remote machine via SSH. However, this time we start a new SXEmacs instance on the remote and post from there.

peanuthorst, sorry man, I'm afraid that I cannot reproduce your bug. Can you give me anymore info (preferrably an exact error message)?

Tags: