Welcome login | signup
Language en es fr
OccupyForum

Forum Post: Older Posts Here

Posted 13 years ago on Oct. 15, 2011, 3:15 p.m. EST by malikov (443) from Pasadena, CA
This content is user submitted and not an official statement

33 Comments

33 Comments


Read the Rules
[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

I just want to say how great this is. I've started using it for all my OWS searches!

[-] 1 points by thebeastchasingitstail (1912) 13 years ago

This is great, thank you for setting it up!

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

Thanks, hope it's useful :-)

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

cool! would it be easy to implement sort by date as well? For google searches on their site, they let you sort by date if you specify "within the last month" etc.

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

Ok, now it serves the latest results first.

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

a small bug: if you do a search from the search page, it doesn't end up in the url behind a hashtag. that could be confusing for some users. but that's the only bug i've seen, this thing is great!

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

right, that's an annoying "feature". If you implement a one-page option the url doesn't change at all. I figured this is better than nothing, to make links to search results.

It'll probably annoy me enough to fix it :-)

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

hehe. It doesn't strictly sort it by time, though, but, rather, boosts the latest results.

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

Somehow a search like this removes the ads: http://ows.superunion.org/results/?q=sudoname%20-%22sudoname%27s%20user%20profile%22

Maybe they just can't find any ads to show to people that don't want to see someone's user profile.

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

I think it has trouble finding contextual ads. Sometimes the column of ads to the right disappears, and it only serves two ads in the top.

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

btw, no, there's no control over that in cse. And it's a feature of the news section I think, isn't it?

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

Here's another example, I'm trying to find this thread. It should be the top link but apparently isn't indexed by google at the moment. I think if the post is at the top of the forum long enough, google sees it, but since the page has to make the json query to get the next page of forum posts, google doesn't see anything else. Needs a custom googlebot responder or whatever it's called in web 2.0.

http://www.google.com/search?q=sudoname+site%3Aoccupywallst.org&hl=en&biw=1247&bih=859&num=10&lr=&ft=i&cr=&safe=images&tbs=,qdr:w#sclient=psy-ab&hl=en&lr=&tbs=qdr:w%2Csbd%3A1&source=hp&q=site%3Aoccupywallst.org%20older%20posts%20here&pbx=1&oq=&aq=&aqi=&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&fp=8e7fa2636e8b849&biw=1247&bih=785&pf=p&pdl=300

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

Summary: There's no sort by date in cse, per se, but there are a couple hacks (which I'm implementing right now) that kinda boost the latest results. However, there exists ambiguity, cause date-posted, and date-indexed are different things.

Source:

http://groups.google.com/group/google-custom-search-results/browse_thread/thread/b39c0d90a09608ac

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

Interesting. I don't suppose they allow you to restrict date to the "last hour" etc.? Or "5 minutes to 10 minutes ago". You could totally piss them off by doing a ton of date-restricted queries to "sort" it. Kinda like the opposite of a radix sort :)

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

well, they have to sell something to their corporate clients, I suppose. At least now one can look for a keyword and then go back two days, instead of looking through every result for dates.

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

btw, that link looks wrong but it does work

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

see link below, it is quite possible

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

oh, right. k, lemme look into it. Thanks!

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

I'll check. Though two points:

  • Within last month is a lot. I hope maybe there's "within 24 hours" option
  • This search only searches what Google has already indexed (which, I'm sure you are well aware of), which is not by the minute. (I don't think, not yet)

I appreciate the input.

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

They do seem to index very fast these days, especially for really active forums like this, like within 3 hours, but I'm not sure the index is complete. You can see when they indexed it in a search like this: http://goo.gl/5RYGR .

I think this forum should respond to the googlebot by giving it a complete index of posts. But that's a little off topic :)

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

Yep, often, but incompletely. Well, it'll get better. Sitemaps do wonders, for sure, but the admins don't listen, it seems.

Other problem, I have to re-post the link all the time cause it gets buried.

[-] 1 points by jart (1186) from New York, NY 13 years ago

no, it's that we don't have time and can't recruit people quickly enough. also the fact that i've found myself playing such an active role in organizing and public relations that i simply don't have as much time as i used to for coding the site :\

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

what do you mean? how can I help?

[-] 1 points by jart (1186) from New York, NY 13 years ago

If you know how to code python/django, talk to jart@jabber.no and send pull requests on github.

[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

sorry, dude, never worked with python. I can ask around, but it's deep night here.

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

Yeah the sitemap would help. Have you seen this: https://github.com/jart/occupywallst/ ? I looked at the code a little, it seems at least well organized.

[-] 1 points by jart (1186) from New York, NY 13 years ago

thanks

[-] 1 points by sudoname (1001) from Berkeley, CA 13 years ago

you're welcome, and I think these forums are doing incredibly well under the stress. i'm curious, what's the easiest way to hack on this? i think i have an ubuntu image i could boot up, but I'm curious where is the meat of the forum front page.

edit: (and for anyone observing, I mean hacking in the sense of working on something)

[-] 1 points by jart (1186) from New York, NY 13 years ago

The meat of the front page is:

  • occupywallst/views.py
  • occupywallst/templates/occupywallst/forum.html
  • occupywallst/templates/occupywallst/forumpost_synopsis.html

You'll also want to look at:

  • occupywallst/api.py
  • occupywallst/models.py
  • occupywallst/urls.py
[-] 1 points by malikov (443) from Pasadena, CA 13 years ago

Yep, saw that. Actually was going there after a smoke break to see about some sitemap plugin.

[Removed]