I'm working on improving the LJ-POUND linkage (right now, POUND is relatively dumb and will re-post entries to LJ if I update them on my software). I have determined that while posting to LJ is easy, and blind batch manipulation of LJ entries is easy, finding a particular LJ entry programmatically isn't quite that simple. LJ does a shoddy job of indexing its posts - the best pseudoindex one can get is to ask for a particular date, get a list of entries on that date, and then plod through each of those trying to recognise the entry there. Entries do have a timefield, but LJ's concept of dates leaves a bit to be desired -- they do something funny with timezones (presumably), so your entry may be an hour off where you expect it to, programmatically (I say may be because looking at a set of entries, I see no pattern in when they're an hour off and when they're not). Oh, and LJ doesn't keep track of seconds, so you get to chop seconds off if you're doing a comparison. This up-and-down truncation means that if you want to robustly look for an entry, you might get to look in three spots, one for the date you wrote it, one for the date before (in case you posted within the 59 seconds after midnight and want to be really sure), and and one for the day after (in case it decided to add an hour to your after-23:00 post). You also get to try adding an hour and subtracting one in your comparison to deal with the random adding/subtracting hour thing, and if you should so happen to do two posts separated by exactly an hour, you simply lose if you want to deal with them without trying to recognise content. I'm going to sit on this problem for awhile to see if I can figure out more of what's going on. There *is* something called an ItemID that comes out of PostEntry() that maybe I should be using instead -- I could save these in the database whenever an entry is posted to LJ and maybe avoid this stupid mess.
Quirky, interesting things:
- Males are still male online
- I wouldn't mind inviting Lions to that Cafeteria
- Greenpeace lists companies by how eco-friendly they are. Nokia and Dell get props, Motorola and Lenovo suck. This might impact where I get my next phone from, and now that Dell is becoming AMD64-friendly, my next personal computer may indeed be a Dell (although my present laptop shows only light signs of wear at this point, so no rush)
- An Abugida is like an Abjad, but with a default vowel between consonants that can be modified by markers. This is kind of clever. I have a certain interest in writing systems, at various times inventing my own and trying to come up with novel ideas, along with attempting to make a syllabary for English that's visually close to the English alphabet.
- I want to know if CinePaint (once known as video-gimp) is a straight-up image editor that can handle still image formats often exported/imported from videos well, or if it is a movie editor that lets me edit images out of a movie without yanking it apart and putting it back together. The second is interesting to me, the first is not. If anyone's used it, drop me a line, especially if you're up to spending half an hour or so showing me how it works.
- The Beehive, my favourite coffeeshop (although I only go on weekends because it involves a longish bus-ride and a good amount of walking after that to get there), has a neat website. I think it's safe to say that it's my favourite Coffeeshop anywhere (I liked the old Insomnia in Columbus better, but it's long-gone)
I think I mentioned Malkit Singh before -- an indian pop-Bhangra musician who I saw on TV at India Garden before -- his clever music video for Jago Aaya helped me notice the song, which is an excellent song to program to. Having found more of his music, I've decided that I really like his sound - like many people who get a programmer's high, I have my own preference for music that helps me get in the zone. Almost none of the stuff has recognisable lyrics, and when it does, it's generally not stuff that grabs too much attention -- I suspect that music with lyrics tends to interfere with the word and spatial manipulations involved in weaving code. I also suspect that the music I'm listening to tends to influence my pace and style of programming (although I have no way to know for sure because my human introspection is turned off while I code). For me, Bhangra is great for coding - the constant rolling beats help keep me moving and inspired. On the occasions I need to stop to think, I typically switch to darkwave (not quite ideal because it has words, but Darkwave sans words becomes Trance, which I've never liked, either for programming or for casual listening). To my fellow readers who have programmed enough to enter Deep Hack Mode, what kinds of music help get you there? Do you vary the music for particular things, and what for?