July 27th, 2001

Me in the sun

Parsing LJ Server Responses... with BASIC?!?!

Ok, thanks for all your help when I screwed up my CR-LF's earlier this week. Now I have another problem. The LiveJournal server responds in the format


variable1
value1
variable2
value2


as in


Username
idigital
Itemid
1234567


How do I get BASIC to read this in? (Remember BASIC doesn't have associative arrays... that's why I'm stuck... I'm trying to do things how perl does them and it isn't working :)

I know it's probably really obvious... my head just isn't churning out working code anymore. Maybe it's because it's 3:55am...
  • Current Mood
    geeky
hornrims

Clive 0.1-beta released

Finally, after some hair-raising debugging, I've got a functional beta version of Clive: a console LJ client written in C. It's still somewhat buggy, but it works most of the time. The current feature list is:

  • almost complete postevent mode (no prop_name yet)
  • rudimentary config-file system
  • two input modes: interactive, or through pipe (ala mail)
  • the use of an external editor as defined by the config file or in the appropriate environment variables (ala cvs)

You, too, can play with clive. The source tarball (tar.bz2) can be downloaded here. Be sure to watch the project page for updates!
roo

Deferred sending of journal entries - JLJ hack

I hacked the JLJ Perl client to support offline editing and deferred sending of journal entries. This is quite rudimentary, completely unofficial, might get into fights with your cat etc. etc., but if you're a modem user and want to give it a shot, grab this:

http://www.forum2.org/gaal/lj/jlj-1.8offline_patch.tgz

And use it just like you would use JLJ usually, *but*:

To write a deferred entry (that is, while you're offline):

    jlj -d


This will prepare everything to be sent but not actually contact the server; your actual message will be saved in a spool directory. Then,
Send your deferred entry when you do go online:

    jlj -s filename


(for example, jlj -s /home/roo/.jljspool/996237998-R )

The spool file is deleted after the entry is successfully sent.

Tell me what you think, but remember this is alpha quality!