?

Log in

No account? Create an account
July 16th, 2001 - LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

July 16th, 2001

Hmm... [Jul. 16th, 2001|10:25 am]
LiveJournal Development

lj_dev

[thorshammer]
[mood |embarrassedembarrassed]
[music |Music at Work]

Ok, I thought I had it right but apparently I didn't. I suppose I'm sending the string wrong, could someone give me an example of the string I'm supposed to use when logging in to get my client listed under the stat page? I thought I had it right, but apparently I'm missing something or forgot something.
~Chris
link7 comments|post comment

I C a bug, but I can't C how to fix it... [Jul. 16th, 2001|04:36 pm]
LiveJournal Development

lj_dev

[stesla]
In my client code, I'm using fgets() to read in my console input...but, if I enter more on the stream than fgets() reads in, it gets read into the next stream...which may or may not be bad (in this case it is).

I've tried doing things like using fseek(), but that doesn't work for stdin. I'm tempted to try and slurp away the extra bytes with an extra fgets(), but I'm sure there's a Better Way To Do It (TM).

Any suggestions?
link4 comments|post comment

WAP's up, doc? [Jul. 16th, 2001|10:24 pm]
LiveJournal Development

lj_dev

[warwick]
[mood |amusedamused]
[music |Fastball - Out of my Head (Acoustic)]

OK, maybe the product of too much caffeine, or too many late nights ...

I set out to re-code the update.bml page as a wml page.

I seem to have gotten everything working on the WML side of things, but when I try to submit, then it rolls over.

So, who do I chat with? :-)

- Waz
link5 comments|post comment

Something weird with the network connection? [Jul. 16th, 2001|10:35 pm]
LiveJournal Development

lj_dev

[stesla]
I'm encountering something rather strange...and I imagine it has to do with the LJ webservers. A while back, in an effort to learn basic network programming (in C), I wrote a little utility that'd get a single webpage and print it to stdout. I tried it on twenty URLs that I go to all the time "http://www.livejournal.com" among them, and it worked like a charm.

I basically do all the stuff to open a socket, then do this:


/* SNIP resolving address and opening a socket to sockfd */
socketf = fdopen(sockfd, "r+");
fprintf(socketf, "GET http://%s/%s\n\n", domain, path);
while ( (inChar = fgetc(socketf)) != EOF ) {
putchar(inChar);
}


Now, when I try and go add the network stuff to my client's code, it acts weird...I figure, "Hey! Let's go use the htmlgetter again, see if it works." It doesn't. It just sits there for about 5 minutes, and then exits quietly. The code is ripe with error checking. It, does, in fact work for all of the non LJ URL's I've tried (a few on my server, google, etc). Any suggestions?
link5 comments|post comment

navigation
[ viewing | July 16th, 2001 ]
[ go | Previous Day|Next Day ]