Home
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

Fix Client "Block" on stats.bml [Oct. 8th, 2008|09:03 am]

keainanhai
Finally last night, I got enough motivation to work on the stats.bml page.

What happens: When you finally get enough different types of clients so that the stats.bml page displays more then one type (usually the one being the web client), the page will display odd. For example the H1 and description of Client Usage will display right below the Age H1 and description and then the actual list of clients and how many users there are using them will display below the age demographics section. So it breaks up and displays incorrectly.

What's wrong: The offending line of code is line 181 in stats.bml. This line is:

chop $ret; chop $ret; # remove trailing ", "

This line SHOULD be:

chop $out; chop $out; # remove trailing ", "

It uses the chop function on the incorrect buffer (return buffer vice output buffer), which causes two HTML characters to be stripped away per the loop iteration.

So if you're looking to fix that display issue, just replace line 181 with what I've put above.

Thanks to Rafael @ WithinWindows for helping find the fix.
link5 comments|post comment

[Oct. 3rd, 2008|04:15 pm]

unknownj
I hope this isn't terribly off-topic, it's certainly development work, relating to LJ, and involves the use of a client of sorts, so I feel it's mostly in-keeping with the spirit of the thing..

I have a site that runs alongside an LJ community, and does.. well.. various things. One such thing is that (in theory) the site maintains a list of mappings from LJ username to "real name", which then goes into the community style itself as an associative array and overrides the usernames in comments and entries and displays the users' actual names.

Now in order to get that to work nicely, along with all the other site features, I need to have some means of authenticating users so as not to allow people to update each other's names, which of course would lead to all kinds of fun and games. I've come up with what I think is a decent way of doing that, but I'd really appreciate feedback on a) whether there's a better way and b) whether or not I'm leaving myself open to massive security holes. Because the site itself effectively works as a client, interacting with LJ itself, this would seem to be an appropriate place to ask.

I fear I may ramble.. )
link11 comments|post comment

livejournal repo trac viewer broken [Sep. 26th, 2008|08:59 pm]

potolo
[Tags|]

Hi. The livejournal repository trac viewer is broken. It displays an error with a python traceback right now. (The svn view is unaffected and checkouts/'svn log' work fine.)

...that's it. :)
link6 comments|post comment

Force RSS Syndication [Sep. 16th, 2008|03:47 pm]

keainanhai
[Tags|]

Is there anyway to force RSS syndication (that is accounts that are syndicated accounts/journals) for feed that return errors like "Too Big!"?? Or should I clear out the table so it resets it...I would prefer to just force it regardless of how big it is though :)

I think it happened because my server was down for a day or 2 so when it went to go syndicate there were too many items between what was last syndicated and what was available when I brought my server back online.

Thanks - I am MISSING LOLCATS!!!!
link8 comments|post comment

[Sep. 3rd, 2008|03:43 pm]

bad_machination
Hey, this will sound painfully nubish, but... maybe a get a silver star sticker for effort? I want to download the LJ source to play with, but I'm not quite sure how to get it all in one fel swoop.
(Yeah, I know, if I don't know how to get it I probably have no business messing with it, but hey, one of my favorite ways to learn is to dive in heedlessly.) Is there an archive of the whole thing somewhere, or can I wget it or something? Thanks.
link1 comment|post comment

[Aug. 21st, 2008|05:06 pm]

ezerick
Is there a list somewhere of all the URLs that can be used to pull info from the site? Other than just pulling journal feeds and FOAF data as mentioned in the FAQs?
link3 comments|post comment

[Jul. 23rd, 2008|01:12 am]

deux2k
While developing a custom layer for s2 I came across a strange problem: lj-embed doesn't work. I've looked at other layers, and they don't seem to differ much from my own in the entry presentation code. Any ideas why that happens?
link2 comments|post comment

LJ's Jabber Service loses messages sent to an off-line subscriber [Jul. 15th, 2008|02:14 pm]

poige
I've always suspected that, but yesterday it made me sick completely and I decided to check it with testing: my friend was sending me messages while I was logged out. All of them were lost as it turned out when I logged in.
link16 comments|post comment

Success...partially... [Sep. 14th, 2008|10:22 am]

tonytraductor
I apologize for flooding the queu.
Please disregard my prior posts.

At this juncture, I have succeeded in posting to my LJ using Tickle Text
by using this proc:

################
# post to livejournal...

proc ljpost {} {

global post
global plength
global login
global lurl
global subject
global mood
global tunes
global tags
global year
global mon
global day
global hour
global min
global mood
global tunes
global ptext
global lprops

set subject "subject"
set mood "mood"
set tags "enter, tags, here"
set tunes "music"
set lurl "http://www.livejournal.com/interface/flat:80"

set year [clock format [clock second] -format %Y]
set mon [clock format [clock seconds] -format %m]
set day [clock format [clock seconds] -format %d]
set hour [clock format [clock seconds] -format %H]
set min [clock format [clock seconds] -format %M]



toplevel .lj
wm title .lj "LiveJournal Post"

grid [tk::label .lj.ljname -text "LJ Username:"]\
[tk::entry .lj.uname -textvariable ljname]\
[tk::label .lj.pwd -text "LJ Password:"]\
[tk::entry .lj.pswd -show * -textvariable ljpswrd]

grid [tk::label .lj.date -text "Post time="]\
[tk::label .lj.dato -text "$year $mon $day - $hour : $min"]

grid [tk::label .lj.sujet -text "Subject:"]\
[tk::entry .lj.assunto -textvariable subject]

grid [tk::label .lj.md -text "Current mood:"]\
[tk::entry .lj.mude -textvariable mood]

grid [tk::label .lj.tunages -text "Current music:"]\
[tk::entry .lj.tunez -textvariable tunes]

grid [tk::label .lj.tagz -text "Tags:"]\
[tk::entry .lj.tagit -textvariable tags]

set ptext [.txt.txt get 1.0 {end -1c}]


set login [::http::formatQuery mode login user $::ljname password $::ljpswrd ]
set log [http::geturl $lurl -query $login]




grid [tk::button .lj.go -text "POST" -command {

set post [::http::formatQuery mode postevent auth_method clear user $::ljname password $::ljpswrd subject $::subject year $::year mon $::mon day $::day hour $::hour min $::min event current_mood $::mood current_music $::tunes taglist $::tags $::ptext ]
set plength [string length $::post]
set dopost [http::geturl $::lurl -query $::post]
set ljmta [http::meta $dopost]
set ljl [http::size $dopost]
set ljstat [http::status $dopost]
tk_messageBox -message "$ljmta\nLJ says: $ljstat\nPost length: $ljl"
}]\
[tk::button .lj.bro -text "VIEW Journal" -command {
set ljv "http://$::ljname.livejournal.com"
exec $::brow $ljv &
}]\
[tk::button .lj.ajuda -text "LJ Help" -command {ljhelp}]\
[tk::button .lj.no -text "DONE" -command {destroy .lj}]

}

####
# end proc ljpost



But, I'm not succeeding in setting the tags, music, and mood.
I don't understand what I'm doing wrong here...
link5 comments|post comment

Invalid character [Sep. 14th, 2008|10:55 pm]

mcfnord
I'm boppin along on foaf xml using .NET Framework 3.5 and after parsing 2k of foafs clean-n-easy I hit this one:

XDocument.Load("http://www.livejournal.com/users/andrewus/data/foaf");

System.Xml.XmlException: Invalid character in the given encoding. Line 39, position 331.

I think it's due to Russian characters in the or something. It's a bummer and I'm skipping it for now but I'm hoping someone's got a tip.
link5 comments|post comment

pebcak [Sep. 13th, 2008|07:46 pm]

tonytraductor
I would like to add lj posting capability to Tickle Text, a text editor I wrote in tcl/tk, but, being entirely new to trying to work with this particular kind of thing (communicating with a remote machine, but not using ftp or ssh) I'm a little lost.
Maybe someone here can straighten me out...or point me to resources that explain the matter a bit more clearly.
I'm using what I found here (Part III. Client/Server Protocol) and here (Tcl socket manual page).

This is the proc I've written, as a test, and it doesn't seem to be getting any response, or, effectively posting to my journal.
This is the most basic attempt just to understand how to use
a) socket
b) the protocol to communicate with the LJ server.


proc ljpost {} {
set chan [socket www.livejournal.com 80]
puts $chan "POST /interface/flat HTTP/1.1\n
Host: www.livejournal.com\n
Content-type: application/x-www-form-urlencoded\n
Content-length: 105\n
\n
mode=postevent&user=tonytraductor&password=******&subject=testing+testing+testing&event=this+is+a+test+post"

close $chan

exit
}

I don't even understand, at this juncture, how to get/read a response from the server.
The only things I've written that have had to communicate with a remote machine have used ssh or ftp,
so, this is completely unfamiliar territory to me.
I don't know, here, if I am misunderstanding how to use tcl socket, or the protocol to communicate with the server.
I know I'm doing something wrong, because this fails to post to my journal (yes, I replace ****** with my actual password).
link4 comments|post comment

Trying to post via Atom [Sep. 13th, 2008|05:25 pm]

sloot
I got the following error when trying to post via atom

HTTP/1.0 400 Bad Request
<html><head><title>400 Bad Request</title></head><body>
<h1>Bad Request</h1><hr /><p>Could not parse the entry due to invalid markup.<br /><pre>Empty String at /home/lj/cgi-bin/XML/Atom/Thing.pm line 40
</pre></p>
</body></html>


This is what I tried to post:

<?xml version="1.0" encoding="utf-8"?>
<entry><title>testing!</title><content>my content is here</content></entry>


I can't find any documentation on what I should be putting in an entry
link8 comments|post comment

Any WS? [Sep. 13th, 2008|01:45 pm]

kiisinkummitus
Hi everybody.
I can't find XML scheme or WSDL for LJ. Is it possible to communicate with server thru WS?
link1 comment|post comment

More problems. [Sep. 12th, 2008|04:13 pm]

chgu
I sort of hacked my way through the previous issue, simply commenting out line #9 in cgi-bin/LJ/Poll.pm, and now I'm running into this whenever I try to view user info...on anyone:

unknown class 'betafeatures' at /home/lj/cgi-bin/ljcapabilities.pl line 65. @ localhost.localdomain

Also, is the navigation bar part of LJ_com? I thought I saw a production implementation elsewhere with it working, but even the options to configure it are gone for me.
link2 comments|post comment

Restricting site to paid users only [Sep. 12th, 2008|06:38 am]

magyarok_saman
What is the easiest way to restrict an LJ-clone site to paid users only? If you use account codes, then anyone who has an existing account could conceivably invite their friends.

Thanks.
link2 comments|post comment

Error on a fresh install [Sep. 11th, 2008|02:37 pm]

chgu
I just set everything up today, and after getting all the modules satisfied, and apache with mod_perl compiled in working, I get this:

Error loading event module 'LJ::Event::JournalNewComment': Base class package "LJ::MemCacheable" is empty.\n

Full error after the cut.
Lots of output from perl )

Is this a bug, or am I doing something wrong? I've left the ljconfig.pl file completely default.

Edit: This was fixed this morning(Sept 16th). They were moving a feature from ljcom over to the svn. NOW I have an issue with not being able to view user info.
linkpost comment

Questions on FotoBilder [Sep. 7th, 2008|12:31 am]

magyarok_saman
Okay, I have FotoBilder installed and running.

One. It's running on a different port - 8082. What do you do to change that, so when you type in pics.yourdomain.com it goes straight to pics.yourdomain.com:8082?

Also, I've installed this after I already have paid and perm accounts. How do you tie the two together so the existing accounts have automatic access? Yes, I followed all the directions and included the fotobilder information in the ljconfig file, but this doesn't seem to tie existing accounts into fotobilder.

Any help would be appreciated. Thanks.
link3 comments|post comment

Exporting comments in syndicated entries? [Sep. 5th, 2008|05:32 pm]

astralblue

Is there a way to export comments in syndicated entries, like the one described at this page?  I'm trying to write a WordPress plugin that automatically fetches comments from a syndicated feed and enters them into the original blog.

link2 comments|post comment

LJ Flash Lite mobile client /beta [Aug. 29th, 2008|09:11 am]

n_soul
Hi all,

My name's Alex Tur, and I'm a newbie here. But I've came not empty-handed. Let me please introduce the beta version of Adobe Flash Lite 2.x+ mobile client for LJ. This's a simple version for Flash Lite enabled smartphones that allows:

• connect to LJ resource with its XML-RPC API through MobiTile proxy server
• login with user account data
• read user's journal with thumbnails of included images
• review reduced images
• make a new post in the user's journal
• edit previouse events
• delete selected posts
• get list of friends
• manage the list of favorites
• read other journals of friends and favorites
• switch a landuage of interface (auto/english/russian)
• turn off loading thumbnails

Original Adobe Flash Lite format (SWF) file and installetion for Symbian S60, 3rd edition smartphones are published as a part of MobiTile Project at http://www.mobitile.com/?l=en&p=livejournal

Advanced versions are in the way.

Best,
Alex
linkpost comment

LiveJournal SVN file naming [Aug. 19th, 2008|06:51 pm]

aljuvialle
While I was checkouting latest livejournal version under Windows with command line client, I'd got error about some files are missed, but files are in repository and under version control!
Detalied analysis shows, that there're files which differ in case in filename (for example: scrapbook.gif and Scrapbook.gif , Journal.gif and journal.gif and some others.)

Is this really bug (possibly copy-paste) or files are really should be different (possibly not only by filename)?

grep command says, that Journal.gif and some others are not used.
link1 comment|post comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]