August 5th, 2003


(no subject)

I just got an Apple, and I thought I'd try to wade through the Mac OSX API by writing an LJ client. Currently, I'm working the calendar widget to display the history of posts. I'd like to store the just the subjects and such locally. I do not want to download the entire entries history. Still, the best way to go about this seems to be with syncitems.

I initially tried to use getdaycounts couples with getevents with a prefersubject which I like because I can use other journals besides the default one. However, there doesn't seem to be a way to use the same sync logic as syncitems with this mode. That is, I have to download all the getdowncounts each time.

Is there a way to fake the last sync date? I'd like to use the getdaycounts for the initial full download, but then use the lastsync on the subsequent updates. In the documentation, it is stressed to use this mode of getentries coupled with syncitems. Can I just use the events_n_eventtime in getentries by converting it to GMT to figure out the lastsyncdate for the next time?

Hopefully, that's clear and isn't too rambly. :)
тайные знания
  • quirrc


Does anyone know if there's a possibility to use gzip encoding when posting/getting friends etc. from a client (non web)?
I tried to add gzip content encoding header to make server reply using that but the result was the same- uncompressed. Maybe I wasn't quite correct with header format since I'm not familiar in detail with this socket stuff or the LJ server doesn't support it at all? The latter case is rather odd since the reply for web interface is always in gzip (if accepted by browser).
I wanted to implement it for posting long entries especially on slow networks like GPRS.

CF and PHP

I'm new to LJ and I would like to contribute both a cold fusion and a php client. Or... more likely classes and udfs. Im planning on using the XML-RPC interface rather than the HTTP.

Is there anyone already working on this?
Miyazaki - Crazy King Cat
  • elo_sf

perl module + example scripts for mass actions

Update: Discussion seems to have taken off in lj_nifty so I'm marking this post as disallow comments. Go here to comment.

Previously posted an earlier version of this directly to lj_nifty in this post; anyhow, a bit of testing by users caught some (in retrospect) "obvious" bugs and if you run this on your web server with Perl + CGI capabilities you can do some mass changes of entries and also see how to use the framework to extend out the features.

Perl module:

Example hooks that use the module: default.cgi

I am not providing public hosting for these tools. Use at your own risk.

Thanks again to queue for the initial inspiration for this.
  • Current Music
    TV - Queer Eye for the Straight Guy