Welcome to LiveJournal! Home | Site Map | News | Help

Welcome!
Login
Create a Journal
Update Journal

Find Users
Random
By Region
By Community
By Interest
Directory Search

LiveJournal
Download
Invite a Friend
Paid Accounts
Payment Area

Help & Support
LiveJournal FAQ
Have a question?
Lost Password
Developer Area

Legal
Terms of Service
Privacy
COPPA

 
 
 

 

 

 Username:   Password:   

Brad Fitzpatrick (userinfobradfitz) wrote in lj_dev,
@ 2003-03-16 00:37:00


/ \
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
\ /
New URL format & much else committed
See:
http://www.livejournal.com/talkpost.bml?journal=changelog&itemid;=496035
http://www.livejournal.com/~changelog/496035.html (future URL)

Please, test thoroughly and reply above with both successes & failures. Thanks!


(Post a new comment)


userinfosupersat
2003-03-16 01:41 (link)
Is this live yet? The new changelog URL is giving me a 404 error.

(Reply to this) (Thread)


userinfotsutton
2003-03-16 01:51 (link)
Maybe because he said "future URL" ?

(Reply to this) (Parent) (Thread)


userinfoasciident
2003-03-16 02:27 (link)
I think he wants people to apply the patch and try it on their own server, seeing as that URL doesn't work yet.

Or perhaps he meant on ljcom but he forgot to make it live.

(Reply to this) (Parent) (Thread)


userinfocsogilvie
2003-03-16 07:07 (link)
I tried this out locally and on my goathack and the only problem I can find locally (doesn't seem to do it on goathack) is that when I go to http://csogilvie.plus.com:90/users/csogilvie/385.html?usescheme=lynx I get:
HTTP/1.1 200 OK Date: Sun, 16 Mar 2003 14:50:40 GMT Server: Apache/1.3.27 (Unix) mod_perl/1.27 Cache-Control: private, proxy-revalidate ETag: "6369156f4fcbcf0a80ccb012e9f2896f" Keep-Alive: timeout=15, max=83 Connection: Keep-Alive, Keep-Alive Transfer-Encoding: chunked, chunked Content-Type: text/html Content-Language: en, en
appearing mid page and then the page again. This only occurs on the new id.html pages.

The URL above should be active for about 9 hrs from the time of this post if you want to see the output.

(Reply to this) (Thread)


userinfobradfitz
2003-03-16 09:53 (link)
Does your local server have mod_perl compiled statically or dynamically?

Find the apache binary and do, for example:

$ /usr/sbin/apache -l

And look at the result and tell me what it is:

Compiled-in modules:
http_core.c
mod_so.c
mod_perl.c
mod_macro.c
suexec: enabled; valid wrapper /usr/lib/apache/suexec

Mine's static. ("compiled-in")

So is goathack.

(Reply to this) (Parent) (Thread)


userinfocsogilvie
2003-03-16 09:58 (link)
[root@omega lj]# /usr/local/httpd-perl/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_perl.c
suexec: disabled; invalid wrapper /usr/local/httpd-perl/bin/suexec

(Reply to this) (Parent) (Thread)


userinfobradfitz
2003-03-16 11:33 (link)
That helps a lot! You have modules registered before mod_perl ... that pointed to the problem. I was pushing handlers, not setting them.

Check out CVS and try now. It should work now.


(Reply to this) (Parent) (Thread)


userinfocsogilvie
2003-03-16 11:40 (link)
Seems to work fine now.

(Reply to this) (Parent) (Thread)


userinfocsogilvie
2003-03-16 11:43 (link)
Hmm, I take that back actually - now I get: "Unknown User There is no user at csogilvie.plus.com." when visiting http://csogilvie.plus.com:90/view/?type=month&user;=csogilvie&y;=2003&m;=3

(Reply to this) (Parent) (Thread)


userinfoidigital
2003-03-16 23:53 (link)
This seems to have fixed the problem I reported too.

(Reply to this) (Parent) (Thread)


userinforuakh
2003-03-16 18:26 (link)
Since it's not live on the site yet, I hope it's not too late to make a suggestion?

How about a URL of the form http://www.livejournal.com/~changelog/~496035; that is, journal/~itemid?

It's English-free and clearly distinct from the calendar URLs (both from LJ's standpoint and from the user's standpoint), and LJ already uses the tilde in a similar way for journal URLs.

(Reply to this) (Thread)


userinfobradfitz
2003-03-16 18:29 (link)
ugh... no.

(Reply to this) (Parent) (Thread)


userinfosigne
2003-03-18 00:56 (link)
Oi. So I'm about two days late to respond to this, but it would be really bad for a number of reasons.

~ was adapted into www-lingo from UNIX where it is a pseudonyn for the user's GECOS home directory (whatever directory is located in /etc/passwd as the user directory). www took it a very slight step further to mean "wherever ${LOGNAME}'s html resides"

Using ~ in any fashion other than those would be confusing and inaccurate.

(Reply to this) (Parent) (Thread)


userinfomart
2003-03-18 04:44 (link)

…and annoying for those who don't have a tilde key on their keyboard. ;)

(Reply to this) (Parent) (Thread)


userinfocrschmidt
2003-03-21 07:00 (link)
You actually have to type out /users/ all the time?

How I pity thee :)

(Reply to this) (Parent) (Thread)


userinforuakh
2003-03-18 06:37 (link)
Ah, okay.

Thanks for that explanation. :-)

(Reply to this) (Parent) (Thread)

hmmm...
userinfoexstatica
2003-03-17 00:41 (link)
Ok i'm getting tons of errors and i'm not sure why... i updated to the latest and now...

http://www.aboutmylife.net

sometimes the main page comes up on it's own or sometimes you have to do /index.bml and if you browse around sometimes you'll get garbled binary text... and sometimes when refreshing the homepage a bunch of times you get User doesn't exist on (sitename) it's very very wierd

I'll leave the files the way they are for now so you can take a look

(Reply to this) (Thread)

Re: hmmm...
userinfoexstatica
2003-03-17 01:02 (link)
The exact error sometimes is..

Unknown User
There is no user at About My Life

(Reply to this) (Parent) (Thread)

Re: hmmm...
userinfobradfitz
2003-03-17 01:04 (link)
I need info on how your Apache was built. Where is mod_perl loaded in relation to the other modules? Give me the "-l" on the apache httpd binary. Also, any LoadModule lines in your config.

(Reply to this) (Parent) (Thread)

Re: hmmm...
userinfoexstatica
2003-03-17 09:31 (link)
I have it built as dso...

so it's a loaded as dso...

Compiled-in modules:
http_core.c
mod_so.c
suexec: enabled; valid wrapper /usr/sbin/suexec

that's what's compiled in

(Reply to this) (Parent) (Thread)

Re: hmmm...
userinfoexstatica
2003-03-17 09:36 (link)
here is the other stuff..

#LoadModule mmap_static_module modules/mod_mmap_static.so
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so
LoadModule referer_log_module modules/mod_log_referer.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so
#LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule status_module modules/mod_status.so
#LoadModule info_module modules/mod_info.so
LoadModule includes_module modules/mod_include.so
#LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule asis_module modules/mod_asis.so
#LoadModule imap_module modules/mod_imap.so
LoadModule action_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule proxy_module modules/libproxy.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule access_module modules/mod_access.so
#LoadModule auth_module modules/mod_auth.so
#LoadModule anon_auth_module modules/mod_auth_anon.so
#LoadModule dbm_auth_module modules/mod_auth_dbm.so
#LoadModule db_auth_module modules/mod_auth_db.so
LoadModule digest_module modules/mod_digest.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule example_module modules/mod_example.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so

LoadModule php4_module extramodules/libphp4.so


LoadModule ssl_module extramodules/libssl.so


LoadModule sxnet_module extramodules/mod_sxnet.so

LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule perl_module lib/apache/libperl.so

(Reply to this) (Parent) (Thread)

Re: hmmm...
userinfoexstatica
2003-03-17 09:48 (link)
I do have an httpd-perl it runs at port 8200, i know there is a way to redirect all the perl stuff to go to that server it has mod_perl build into it.... that would also save resources...

it runs like...


RewriteEngine on
RewriteRule ^proxy:.* - [F]
RewriteRule ^(.*\/perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]
RewriteRule ^(.*\/cgi-perl\/.*)$ http://%{HTTP_HOST}:8200$1 [P]


there should be a way to have it run anything that is .bml and .pl it would be in the mod_perl.bml but i'm not sure exactly whqat to put... it would be something lik...

RewriteRule ^(.*\.pl)$t http://%{HTTP_HOST}:8200$1 [P]
RewriteRule ^(.*\.bml)$t http://%{HTTP_HOST}:8200$1 [P]

any idea's?

(Reply to this) (Parent) (Thread)


userinfocoolstring
2003-03-18 01:03 (link)
seems to be working fine.

(Reply to this) (Thread)


userinfotenaciousb
2003-03-18 01:40 (link)
same here

(Reply to this) (Parent) (Thread)


userinfocompwiz
2003-03-18 01:56 (link)
Go to a URL on a paid user's subdomain that doesn't exist, e.g.:
http://compwiz.livejournal.com/blah

I get:
Not Found
The requested URL /blah was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

That last part probably isn't so good.

(Reply to this) (Thread)


userinfojackin69
2003-03-18 10:29 (link)
It should be known that "reply at the webpage" links in HTML comment notifications are now linking to the reply page for the entry, and not to the 'reply' page for the comment the notification refers to.

*jack

(Reply to this) (Thread)


userinfontang
2003-03-19 04:24 (link)
Something I've noticed (and I'm sure there are a lot of places it's still true, but this one in particular bugged me) - memories still point to the old urls. Is that because they've actually got hard-coded urls, or just because memories.bml hasn't been updated? (If it's the latter, no big deal - if it's the former, though, much bigger deal! :) )

Also, a suggestion: when an old url is found, rather than loading correctly, silently redirect to the new url - an actual redirect, so the url the user sees in their location bar changes to the new style. That'll help keep people from referencing the old urls (I know I personally often copy/paste the url out of the location bar when I'm referencing another post in a comment somewhere).

(Reply to this) (Thread)

Minor bug
userinfoseattlesparks
2003-03-20 02:36 (link)
I /think/ it's as a side-effect of this overall changeset (which seems to be the one, at least looking over it at 2:30am, that caused the change in talkread.bml to page titles), and it's a fairly minor aesthetic bug, but it has to do with how talkread.bml now displays the subject at the top of the page and in the header. And if it doesn't have a subject set, it grabs the first 40 characters of the first line of text.

That's all nice and good...until you create an entry with no subject, and the first line being just <lj-cut text=foo> ... you'll quickly see what I mean, as you get 'journal: <a name="cutid1"></a>' as the page subject, and you get 'journal: ' (i.e. the anchor tag actually processes) as the subject header on the viewed page...which means the cutid leaps you there rather than down into the entry content.

It's a really minor aesthetic quirk, and as best I can tell the problem actually lies in how lj-cut is expanded within clean_subject_all, but at 2:30am, I can't put my finger on it. I'm certain it'd be a minor hack for someone who (unlike me) is more intimately familiar with the LiveJournal codebase. :)

--Rachel

(Reply to this) (Thread)


(Post a new comment)