Happy moments

Wednesday, January 2nd, 2008 03:04 pm
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
I was reading a manual when I realized: at this moment, I am *very* *very* happy.

ETA
I later ,quoted a paragraph from the manual to [livejournal.com profile] murklins, because she was wondering what I was reading, and she revised it:


At the bottom of the GenericallySexyObjectEditor dialog are four killer buttons. The first two, Open Sesame... and Save the Whales... allow object orgy configurations to be stored for future use (lube optional). The Cancel (USE IN CASE OF PANIC) button backs out without remembering any changes that have been made (spontaneous amnesia is such a problem these days). Once you are happy and sated with the object and settings you have chosen as your companions, click OK to return to the main Explorer window.rowr!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
I forgot that certain characters under certain conditions will cause parts of a word to be expanded as a variable in Perl. (In other words, my password was wrong because a portion of it was being recognized as a variable "$xyz", which was blank ;))

*whistles innocently*

The original twitter2lj.pl script is barely recognizable, as I had to redo the feed fetching, parsing, authentication, time(zone) handling, and posting to LJ. However! The HTML format of the output remains (mostly) the same.

Had to rework the feed-fetching-related stuff because the RSS feed has too few items (only 20). The archives XML file, which gives 80 items at a time, is in XML, but not RSS. They require different approaches to authentication as well. I feel a bit guilty about fetching directly from the archives instead of from latest items, but I only do it once a day, so it seems reasonable enough.

Given the problem with the password, the authentication for my RSS feed probably never worked. I just didn't notice it, because authenticating on that feed had no effect, given my settings!

For some reason, @lj_tags = ["tweets"]; was parsed as "array(0xblah)" when posted $lj->Setprop_taglist (in LJ::Simple). However, using @lj_tags = qw(tweets); works. As does using LJ::Simple::QuickPost. It's likely I've misunderstood something about the way lists work in Perl.
ETA: Ciaran has explained it to me :)
( [] indicates an array reference. I got that first line from the original code, which uses QuickPost, which expects an array reference, so it worked for that, but not when I switched to Setprop_taglist. Refreshing my memory about scalars vs lists vs references now *g*)

Now that it works, I have to resist the urge to redo it to optionally use JSON instead of XML (for the sake of those who had trouble installing the XML::Parser, since that would only affect a few people, and of those few people, I'm probably the only one who wants to do Twitter->LJ via this script). I also have to resist the urge to add options to grab other things available via the Twitter API.

So yay, my Twitter stuff archived here: http://afuna.livejournal.com/tag/tweets (backdated so that it doesn't double-spam, forchrissake).

<3 [livejournal.com profile] aveleh, [livejournal.com profile] murklins, [livejournal.com profile] ciaran_h for bearing with my babbling over IM (while I tried to figure out how to best tweak certain things *g*)

[livejournal.com profile] murklins is back!

Wednesday, August 8th, 2007 03:41 pm
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
I'm so glad you had a wonderful honeymoon <3 I missed you, my chocolate-covered cornflakes. Long dark days of being murklins-less are over \o/

Blurp me, baby <3