Kevin Vance - Connect to LJ, parse response, build mood list, ... (gdb) print…

Entries | Archive | Friends | Friends' Friends | User Info

10:42 pm

Thursday, July 25th, 2002
Previous Entry Share Next Entry
Connect to LJ, parse response, build mood list, ...

(gdb) print moodsList
$11 = {buffer = 0x0, server = 0x16d40 "www.livejournal.com", port = 80,
count = 132, maxid = 134, moods = 0x16218, moodids = 0x15a26,
inmemory = 0x1618c '\001' <repeats 132 times>}


YES, YES! CORRECT!

Sort list, commit to database, clear list in memory, load from database...

(gdb) print moodsList
$20 = {buffer = 0x907ffce2, server = 0x1004ee09 "www.livejournal.com",
port = 80, count = 132, maxid = 134, moods = 0x16afc, moodids = 0x168b2,
inmemory = 0x16a24 ""}


YES! That is the true blue livejournal.com moods list, and it has been saved and loaded with Palm's data manager. I need to finish the code for updating an existing moods list, and come up with a default state for the moods list. Then, the GUI for the mood selector. That is when it becomes obvious that this is actually going to work.

Also, I need to run this on my actual Palm soon. I'm pretty confident in the speed of GNU's quicksort, but my parsing is probably like O(n^666)...

Current Mood on top of the world
Current Music MaF - Chaud Aux Pieds
Link )Reply )

Comments
[User Picture]From: bitman
2002-07-26 12:49 am (UTC)
At least it's better than O(2^n)...
(Reply) (Thread)