?

Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

May 24th, 2001

Mac not showing comments right... [May. 24th, 2001|02:11 am]
LiveJournal Development

lj_dev

[cryo]
I think I've found out why.. has anyone actually run the HTML generated by talkread.bml through a parser? There's like.. some errors, including one dealing with tables. IE and NS are notorious for having table issues between each other if it's not -perfect-. A cursory exam shows [BASEFONT] inside of [HEAD], an extra [/tr] (most likely the mac problem), [a ..][table]...[/table][/a] (which you can't have a table inside of an tag... etc.

Also, it would be nice if it would actually attempt to make it readable by appropriate \n's once in a while. Having a 400 line HTML spooge isn't impressive for the few extra bytes of saved space.

But anyway, that looks like the problem.. I saved the HTML locally, fixed the broken tags, then loaded the file and it displayed properly.
link17 comments|post comment

Userinfo friend/community display [May. 24th, 2001|05:18 am]
LiveJournal Development

lj_dev

[jnala]
Right now, the userinfo page looks like:
Friends:35: bradfitz, changelog, cruiser, dolohov, dormando, evan, insomnia, linux, lj_audit, lj_biz, lj_dev, lj_everywhere, lj_maintenance, lj_sysdoc, lj_userdoc, lj_win32, ljstyle, loserjabber, lyonesse, mtffm, news, piman, silverhawk273, sine, sme, some_kitten, spanglemaker, suggestions, syndicated, thaisa, tikva, trysha, ukelele, upsilon, visions
Friend of:21: boojum, bradfitz, cruiser, czakari, dolohov, dormando, dphilli1, eustaciavye, evan, insomnia, loserjabber, mtffm, silverhawk273, sine, sme, some_kitten, tikva, trysha, upsilon, visions, vyxn
Member of:12: linux, ljstyle, lj_audit, lj_biz, lj_dev, lj_everywhere, lj_sysdoc, lj_userdoc, outofcontext, paidmembers, spanglemaker, suggestions
This has problems. Specifically, it makes it difficult to tell who's a mutual friend and who's a one-way relationship, it repeats names, and it doesn't say which friends are communities and which are people. I'd like to suggest that it instead look like
Friends: 15: bradfitz, cruiser, dolohov, dormando, evan, insomnia, mtffm, silverhawk273, sine, sme, some_kitten, tikva, trysha, upsilon, visions
4: lyonesse, piman, thaisa, ukelele
4: boojum, czakari, dphilli1,
[Error: Irreparable invalid markup ('<a [...] /userinfo.bml?user>') in entry. Owner must fix manually. Raw contents below.]

Right now, the userinfo page looks like: <TABLE CELLPADDING=5 WIDTH=100% border=0> <TR><TD ALIGN=RIGHT VALIGN=TOP><B><A HREF="http://www.livejournal.com/users/alanj/friends">Friends</A>:</B></TD><TD COLSPAN=2><B>35:</B> <A HREF="/userinfo.bml?user=bradfitz">bradfitz</A>, <A HREF="/userinfo.bml?user=changelog">changelog</A>, <A HREF="/userinfo.bml?user=cruiser">cruiser</A>, <A HREF="/userinfo.bml?user=dolohov">dolohov</A>, <A HREF="/userinfo.bml?user=dormando">dormando</A>, <A HREF="/userinfo.bml?user=evan">evan</A>, <A HREF="/userinfo.bml?user=insomnia">insomnia</A>, <A HREF="/userinfo.bml?user=linux">linux</A>, <A HREF="/userinfo.bml?user=lj_audit">lj_audit</A>, <A HREF="/userinfo.bml?user=lj_biz">lj_biz</A>, <A HREF="/userinfo.bml?user=lj_dev">lj_dev</A>, <A HREF="/userinfo.bml?user=lj_everywhere">lj_everywhere</A>, <A HREF="/userinfo.bml?user=lj_maintenance">lj_maintenance</A>, <A HREF="/userinfo.bml?user=lj_sysdoc">lj_sysdoc</A>, <A HREF="/userinfo.bml?user=lj_userdoc">lj_userdoc</A>, <A HREF="/userinfo.bml?user=lj_win32">lj_win32</A>, <A HREF="/userinfo.bml?user=ljstyle">ljstyle</A>, <A HREF="/userinfo.bml?user=loserjabber">loserjabber</A>, <A HREF="/userinfo.bml?user=lyonesse">lyonesse</A>, <A HREF="/userinfo.bml?user=mtffm">mtffm</A>, <A HREF="/userinfo.bml?user=news">news</A>, <A HREF="/userinfo.bml?user=piman">piman</A>, <A HREF="/userinfo.bml?user=silverhawk273">silverhawk273</A>, <A HREF="/userinfo.bml?user=sine">sine</A>, <A HREF="/userinfo.bml?user=sme">sme</A>, <A HREF="/userinfo.bml?user=some_kitten">some_kitten</A>, <A HREF="/userinfo.bml?user=spanglemaker">spanglemaker</A>, <A HREF="/userinfo.bml?user=suggestions">suggestions</A>, <A HREF="/userinfo.bml?user=syndicated">syndicated</A>, <A HREF="/userinfo.bml?user=thaisa">thaisa</A>, <A HREF="/userinfo.bml?user=tikva">tikva</A>, <A HREF="/userinfo.bml?user=trysha">trysha</A>, <A HREF="/userinfo.bml?user=ukelele">ukelele</A>, <A HREF="/userinfo.bml?user=upsilon">upsilon</A>, <A HREF="/userinfo.bml?user=visions">visions</A></TD></TR> <TR><TD ALIGN=RIGHT VALIGN=TOP><B><nobr>Friend of:</nobr></B></TD><TD COLSPAN=2><B>21:</B> <A HREF="/userinfo.bml?user=boojum">boojum</A>, <A HREF="/userinfo.bml?user=bradfitz">bradfitz</A>, <A HREF="/userinfo.bml?user=cruiser">cruiser</A>, <A HREF="/userinfo.bml?user=czakari">czakari</A>, <A HREF="/userinfo.bml?user=dolohov">dolohov</A>, <A HREF="/userinfo.bml?user=dormando">dormando</A>, <A HREF="/userinfo.bml?user=dphilli1">dphilli1</A>, <A HREF="/userinfo.bml?user=eustaciavye">eustaciavye</A>, <A HREF="/userinfo.bml?user=evan">evan</A>, <A HREF="/userinfo.bml?user=insomnia">insomnia</A>, <A HREF="/userinfo.bml?user=loserjabber">loserjabber</A>, <A HREF="/userinfo.bml?user=mtffm">mtffm</A>, <A HREF="/userinfo.bml?user=silverhawk273">silverhawk273</A>, <A HREF="/userinfo.bml?user=sine">sine</A>, <A HREF="/userinfo.bml?user=sme">sme</A>, <A HREF="/userinfo.bml?user=some_kitten">some_kitten</A>, <A HREF="/userinfo.bml?user=tikva">tikva</A>, <A HREF="/userinfo.bml?user=trysha">trysha</A>, <A HREF="/userinfo.bml?user=upsilon">upsilon</A>, <A HREF="/userinfo.bml?user=visions">visions</A>, <A HREF="/userinfo.bml?user=vyxn">vyxn</A></TD></TR> <TR><TD ALIGN=RIGHT VALIGN=TOP><B><nobr>Member of:</nobr></B></TD><TD COLSPAN=2><B>12:</B> <A HREF="/userinfo.bml?user=linux">linux</A>, <A HREF="/userinfo.bml?user=ljstyle">ljstyle</A>, <A HREF="/userinfo.bml?user=lj_audit">lj_audit</A>, <A HREF="/userinfo.bml?user=lj_biz">lj_biz</A>, <A HREF="/userinfo.bml?user=lj_dev">lj_dev</A>, <A HREF="/userinfo.bml?user=lj_everywhere">lj_everywhere</A>, <A HREF="/userinfo.bml?user=lj_sysdoc">lj_sysdoc</A>, <A HREF="/userinfo.bml?user=lj_userdoc">lj_userdoc</A>, <A HREF="/userinfo.bml?user=outofcontext">outofcontext</A>, <A HREF="/userinfo.bml?user=paidmembers">paidmembers</A>, <A HREF="/userinfo.bml?user=spanglemaker">spanglemaker</A>, <A HREF="/userinfo.bml?user=suggestions">suggestions</A></TD></TR> </table> This has problems. Specifically, it makes it difficult to tell who's a mutual friend and who's a one-way relationship, it repeats names, and it doesn't say which friends are communities and which are people. I'd like to suggest that it instead look like <TABLE CELLPADDING=5 WIDTH=100% border=0> <TR> <TD ALIGN=RIGHT VALIGN=TOP rowspan=3><B>Friends:</B></TD> <TD valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/doublearrow.gif"></td> <td> <b>15:</b> <A HREF="/userinfo.bml?user=bradfitz">bradfitz</A>, <A HREF="/userinfo.bml?user=cruiser">cruiser</A>, <A HREF="/userinfo.bml?user=dolohov">dolohov</A>, <A HREF="/userinfo.bml?user=dormando">dormando</A>, <A HREF="/userinfo.bml?user=evan">evan</A>, <A HREF="/userinfo.bml?user=insomnia">insomnia</A>, <A HREF="/userinfo.bml?user=mtffm">mtffm</A>, <A HREF="/userinfo.bml?user=silverhawk273">silverhawk273</A>, <A HREF="/userinfo.bml?user=sine">sine</A>, <A HREF="/userinfo.bml?user=sme">sme</A>, <A HREF="/userinfo.bml?user=some_kitten">some_kitten</A>, <A HREF="/userinfo.bml?user=tikva">tikva</A>, <A HREF="/userinfo.bml?user=trysha">trysha</A>, <A HREF="/userinfo.bml?user=upsilon">upsilon</A>, <A HREF="/userinfo.bml?user=visions">visions</A> </td> </tr> <tr> <td valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/rightarrow.gif"></td> <td> <b>4:</b> <A HREF="/userinfo.bml?user=lyonesse">lyonesse</A>, <A HREF="/userinfo.bml?user=piman">piman</A>, <A HREF="/userinfo.bml?user=thaisa">thaisa</A>, <A HREF="/userinfo.bml?user=ukelele">ukelele</A> </td> </tr> <tr> <td valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/leftarrow.gif"></td> <td> <b>4:</b> <A HREF="/userinfo.bml?user=boojum">boojum</A>, <A HREF="/userinfo.bml?user=czakari">czakari</A>, <A HREF="/userinfo.bml?user=dphilli1">dphilli1</A>, <A HREF="/userinfo.bml?user=eustaciavye>eustaciavye</A>, <A HREF="/userinfo.bml?user=vyxn">vyxn</A> </td></tr> <TD ALIGN=RIGHT VALIGN=TOP rowspan=3><B>Communities:</B></TD> <TD valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/doublearrow.gif"></td> <td><b>10:</b> <a href="/userinfo.bml?user=linux">linux</a>, <a href="/userinfo.bml?user=lj_audit">lj_audit</a>, <a href="/userinfo.bml?user=lj_biz">lj_biz</a>, <a href="/userinfo.bml?user=lj_dev">lj_dev</a>, <a href="/userinfo.bml?user=lj_everywhere">lj_everywhere</a>, <a href="/userinfo.bml?user=lj_sysdoc">lj_sysdoc</a>, <a href="/userinfo.bml?user=lj_userdoc">lj_userdoc</a>, <a href="/userinfo.bml?user=ljstyle">ljstyle</a>, <a href="/userinfo.bml?user=spanglemaker">spanglemaker</a>, <a href="/userinfo.bml?user=suggestions">suggestions</a> </td></tr> <tr> <TD valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/rightarrow.gif"></td> <td><b>2:</b> <a href="/userinfo.bml?user=lj_maintenance">lj_maintenance</a>, <a href="/userinfo.bml?user=syndicated">syndicated</a> </td></tr> <tr> <TD valign=top><img src="http://pobox.com/~jaffray/lj/userinfo/leftarrow.gif"></td> <td><b>2:</b> <a href="/userinfo.bml?user=outofcontext">outofcontext</a>, <a href="/userinfo.bml?user=paidmembers">paidmembers</a> </td></tr> </table> This doesn't take any more space, and it's clearer. For large friends lists it'll take considerably less space, since the mutual friends won't get duplicated. In very small friends lists, one or more of the categories will be missing.<p> An alternative which avoids the duplicate table structure is to group friends and communities together, and use the <img src="http://img.livejournal.com/userinfo.gif">userinfo and <img src="http://img.livejournal.com/community.gif">community icons to distinguish them within the lists. But I think that'd add excessive clutter. Other ideas are welcome; but I think the current layout has to go.<p> (BTW, I wrote the "make mutual friends boldface in userinfo" thing ... will post a patch tomorrow. *yawn*)
link51 comments|post comment

Improved similar-interests code [May. 24th, 2001|08:42 am]
LiveJournal Development

lj_dev

[jnala]
I wrote a patch to interests.bml to improve the similarity metric, taking into account the increased significance of a shared uncommon interest as discussed in this lj_dev post, and to give more useful output, indicating who matches you for what reasons rather than just a list of names and numbers.

I timed the main find-similar-users query and was surprised to find it only 0-20% slower than the old version. There's significant room to speed it up to be even faster than the old version, but I'd rather not optimize until I'm pretty sure it's not changing for a while.
link7 comments|post comment

LJ tag consistency and listing [May. 24th, 2001|09:51 am]
LiveJournal Development

lj_dev

[ntang]
First off, I think there should be a FAQ or something similar that explains the various lj tags, how they're used, etc. I don't mind writing it, but getting an official list of them would be nice. ;)

The next gripe I have is that they don't seem to have consistent syntax. What do I mean? <lj-cut> vs. <lj user=""> for example. I think they should all start with <lj and then have a space and then the type of tag and data inside, etc. Then the syntax could work like <lj cut="text"> or they should all use <lj-command modifier="blah"> as the syntax. Mixing and matching is too inconsistent and confusing. (I think I'm leaning towards lj dash command space modifier equals syntax, on second thought...)

Also, being able to close the lj-cut tag would be nifty, so you could mask off selective parts of that entry...
link13 comments|post comment

(no subject) [May. 24th, 2001|12:09 pm]
LiveJournal Development
lj_dev
[evan]
[music |tool - the patient]

So I'd like to save/restore journal entries to/from XML, but I've a dilemma:
Entries can have lots of crazy mismatched < and > HTML tags in them. That's fine; we can just wrap all of that data in the <![CDATA[ ]]> tag.
But then, what if someone writes a post about XML? Or they somehow manage to use the the magic string "]]>" at all?

There are two solutions, as I see it:
- I can urlencode the entire post. This is ugly, and reduces readability of the XML.
- I can somehow escape the important characters, via XML entities.

And with that second solution, I get to the point: what is the standard/proper way to do this with XML? Which entities are defined/what needs to be escaped?
link4 comments|post comment

navigation
[ viewing | May 24th, 2001 ]
[ go | Previous Day|Next Day ]