afuna_archive: (Default)
I'm trying to remember how to send a direct message. I accidentally posted something public that I shouldn't, and managed to give THE tiny subset of THE WHOLE WORLD who reads my Twitter a peek into the random, embarrassing series of events that is my life.

Deleted now, so it only reached those who were following me through something other than the web interface. Still, oops?
afuna_archive: (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 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: (backdated so that it doesn't double-spam, forchrissake).

<3 [ profile] aveleh, [ profile] murklins, [ profile] ciaran_h for bearing with my babbling over IM (while I tried to figure out how to best tweak certain things *g*)
afuna_archive: (Default)
Abby convinced me, and I have a Twitter... thing.

I think I like it. It basically lets me indulge in one-way whining in tiny bursts (words stolen from murklins :-)), without having to think too much.

I started in the afternoon by posting to it from GMail chat, but it seemed a bit awkward to have to switch to the browser all the time. Plus, the notifications wouldn't work. After I got home, I tried out Bitlbee on [ profile] exor674's recommendation, and now I'm able to post from IRC (irssi, which I'm logged into via Ciaran's server all the time, anyway!)

What would make it perfect would be if I could post a digest of my Twitter stuff as a backdated entry on my LJ, but I'm running into problems with the Perl modules (reflected on the last few items of my feed hah). I wonder what XML::RSS::Tools does, and whether I can rewrite the script to not use it? (My other alternative is to run it as a cron job from a web server, but it needs additional modules, and I'd have to ask first.)
afuna_archive: (Default)
Abby, I'm making this for you (though anyone else can join in if they want). Post new script suggestions, ideas for improving current scripts, and bug reports here. Take a look at my current Greasemonkey scripts my current Greasemonkey scripts, and see if you think of anything!

(Poor man's tracker, ahaha)
afuna_archive: (nonconformist)
22:23:00 <fu|work> I am honored by your consideration <33
22:23:09 <aveleh> And didnt' think I was ignoring you just because you ditched me with your "timeout"
22:23:11 <fu|work> arno tom ponnixry junh a xih dutfcy
22:23:18 <fu|work> err
22:23:25 <aveleh> <3  try again.
22:23:26 <fu|work> okay I have no idea what i meant to say
22:23:32 <fu|work> heeee
22:24:06 <fu|work> "also now possibly just a bit hungry"
22:24:14 <aveleh> mmm, food.
22:24:18 <fu|work> oh man that was weird
afuna_archive: (Default)
[ profile] aveleh, damn you for putting the idea in my head. Was bored in the car while running errands, so I ended up working on the script you asked me to do. I think this does what you wanted (possibly with a few additions).

Right now, you can hide all requests with a certain tag or view only those requests with a certain tag, and you can choose whether your filter is applied persistently (on a new pageload) or will go away once you close the tab.

User interface is rough, but I think it's self-explanatory, though I'd welcome suggestions to improve it. Can't handle filters like "entries|styles", and can't handle both an inclusive filter and an exclusive filter at the same time, but it should be enough for normal boardwork.

Tell me if I got your demands request wrong? ;-)

Forgot the link to the script, but it's there now, as well as a brief explanation of what it actually does ;-)


afuna_archive: (Default)

June 2009

  1 2 3 4 5 6
7 8 9 10 11 1213


RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 24th, 2017 02:43 am
Powered by Dreamwidth Studios