The Glade 4.0

"Turn the lights down, the party just got wilder."
It is currently Sat Nov 23, 2024 7:45 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: Tue Mar 16, 2010 11:46 pm 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
Yay, Stathol! Interesting stats. It makes me sad that I'm generally not motivated enough to teach myself the bits I'd need to in order to expand my ancient and dusty programming knowledge to do this sort of thing when i get to wondering about this sort of thing.

Ah, well.

Now, what will it take to get these calculations (once the algorithms have been tweaked to whoever's satisfaction) to be re-calculated on demand and included in profile pages?
And when I say, "what would it take?" I mean "in terms of pastries baked and sent to Stathol and Mookhow"...

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject: Re: Re:
PostPosted: Wed Mar 17, 2010 6:59 am 
Offline
Commence Primary Ignition
User avatar

Joined: Thu Sep 03, 2009 9:59 am
Posts: 15740
Location: Combat Information Center
LadyKate wrote:
Müs wrote:
LadyKate wrote:
Oh so now Lydiaa's in on it too? Hmmmm.

My stepson just farted.


Sure, blame it on your stepson :p


Now don't start THAT again...


N, really. You're not fooling anyone.

_________________
"Hysterical children shrieking about right-wing anything need to go sit in the corner and be quiet while the adults are talking."


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 17, 2010 8:55 am 
Offline
Doom Patrol
User avatar

Joined: Thu Sep 03, 2009 10:31 am
Posts: 1145
Location: The subtropics
[youtube]HNTxr2NJHa0[/youtube]

:P

_________________
Memento Vivere

I have local knowledge.
That sandbar was not there yesterday!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 9:05 am 
Offline
User avatar

Joined: Fri Feb 05, 2010 11:59 am
Posts: 3879
Location: 63368
When I was a kid I thought Shari Lewis was hot.

_________________
In time, this too shall pass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 10:14 am 
Offline

Joined: Wed Sep 02, 2009 10:49 pm
Posts: 3455
Location: St. Louis, MO
Judging by your current proclivities, I would have thought Lambchop to be more your speed.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Wed Mar 17, 2010 10:37 am 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
Kaffis Mark V wrote:
Now, what will it take to get these calculations (once the algorithms have been tweaked to whoever's satisfaction) to be re-calculated on demand and included in profile pages?

Hm....I'm not sure that it can be automated from this side. At least, not with my poor bash scripting and sed skills. There are definitely limitations to parsing the HTML output from phpbb vs. just running queries against the actual database.

What I did was something like this:
Code:
wget -O in25.txt 'http://gladerebooted.org/viewforum.php?f=2&start=25'
egrep 'topicdetails">[^>]+>[^<]+<\/a>' in25.txt | \
   sed 's/^.*>\([^<]\+\)<\/a.*$/\1/' > out25.txt

wget -O in50.txt 'http://gladerebooted.org/viewforum.php?f=2&start=50'
egrep 'topicdetails">[^>]+>[^<]+<\/a>' in50.txt | \
   sed 's/^.*>\([^<]\+\)<\/a.*$/\1/' > out50.txt

[...]

cat out* > all.txt
rm in* out*
sort all.txt | uniq -c | sort -rn all.txt


The grep and sed stuff are just regex search and replace. They're not as nasty as they look. The grep statement finds and outputs all lines that look like this:
Quote:
topicdetails"><a [blah, blah, blah]>Stathol</a>

Sed then processes that list and replaces the entire line with the part I've shown in bold.

After dumping the list of last posters for each page into it's own outXXX.txt file, all of them are globbed together with cat. The list is sorted alphabetically, then handed off to uniq, which counts the number of duplicate lines, adds that information to the text file, and then removes the duplicate lines. The final sort is optional - it just puts the whole thing into reverse numerical order (highest kills first).

There are several problems with this:

  1. The wget and egrep statements were generated "in line" by Excel because I suck and couldn't be bothered to learn rudimentary Bash control structures. This could easily be done with a 'for' loop, I'm sure, but the problem is knowing when to stop. As with the Excel approach, the only thing I know to do is manually check the last page in each forum to figure out what the max value should be for 'start='. Since this is a moving target, it present an automation problem. There might be a way to infer it from the thread count on the main board index, though.
  2. There's no automated way to tell if a forum is a PbP forum. The forum IDs (f=) are intermixed. You could always use a static list, but it would have to be updated every time a forum was created or destroyed.
  3. Offhand, I don't know of any way to automatically ignore the announcement threads using only grep and sed. Both pattern match on a line-by-line scope, and the line of text in the HTML that includes the last poster's name doesn't contain anything that would allow you to distinguish between the two. This was a manual adjustment that I had to make for each forum based on which announcements were visible. It can differ from forum to forum. Michael's announcement in General is not global like the other two, for instance; it only exists in the General forum.
  4. Correlating the post counts to my list of thread-killers had to be done manually as well. I actually did the data entry manually too, but it would be possible to automated that part of it. The trick would be correlating a list of all users and their postcounts to a list of some users and their thread kill count. This is really a job for a database engine rather than a bash script or excel spreadsheet.

The straightest path through the mud would be build some SQL queries that you could run directly against the phpbb databases. This would give you a much cleaner and easier way to do all of the above. For instance, all of the PbP forums are in their own section, which has some kind of implication in the database. I don't know what, exactly, but it's something that you could build a query around.

Edit:

Of course, someone will surely come along and say,
"Oh, that's easy in Python! Just 'import parsePhpbbThreadKills'!"

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 11:18 am 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
*thumbsup for the xkcd reference*

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 7:36 pm 
Offline
Perfect Equilibrium
User avatar

Joined: Wed Sep 02, 2009 8:27 pm
Posts: 3127
Location: Coffin Corner
Amateurs.

_________________
"It's real, grew up in trife life, the times of white lines
The hype vice, murderous nighttimes and knife fights invite crimes" - Nasir Jones


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Wed Mar 17, 2010 7:36 pm 
Offline
I got nothin.
User avatar

Joined: Thu Sep 03, 2009 7:15 pm
Posts: 11160
Location: Arafys, AKA El Müso Guapo!
Rafael wrote:
Amateurs.


Slacker

_________________
Image
Holy shitsnacks!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 8:00 pm 
Offline
Perfect Equilibrium
User avatar

Joined: Wed Sep 02, 2009 8:27 pm
Posts: 3127
Location: Coffin Corner
It's not slacking. It's strategery.

_________________
"It's real, grew up in trife life, the times of white lines
The hype vice, murderous nighttimes and knife fights invite crimes" - Nasir Jones


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 17, 2010 8:10 pm 
Offline
Asian Blonde

Joined: Mon Sep 21, 2009 7:14 pm
Posts: 2075
damn strategical slacker...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Mar 18, 2010 12:26 am 
Offline
User avatar

Joined: Thu Sep 03, 2009 3:08 am
Posts: 6465
Location: The Lab
Mus wouldn't even be on the list if you excluded IBTL posts :P

Also, these stats are meaningless without going back to all of the previous incarnations.

I recall a day when Shelgeyr and I were kings of the threadkills.... I think we even started a club or something...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Mar 18, 2010 1:04 am 
Offline
Bull Moose
User avatar

Joined: Wed Sep 02, 2009 7:36 pm
Posts: 7507
Location: Last Western Stop of the Pony Express
Hmm, I could cheat post and lock all threads, but then Talya or Lenas, or Moobot, nah, Moobot may be random but he's a gentlebot, would unlock the threads, make a harrumph, bad Mike comment, then lock the threads again.

I wonder if we could give Moobot the function to lock a random thread, then roll a random number 100-1000 and after that many posts have been made total since the last lock, make a random comment and lock the thread.

We could always unlock the thread,or make a Moobot has ruled - what Moobot locks, stays locked - rule.

_________________
The U. S. Constitution doesn't guarantee happiness, only the pursuit of it. You have to catch up with it yourself. B. Franklin

"A mind needs books like a sword needs a whetstone." -- Tyrion Lannister, A Game of Thrones


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Mar 18, 2010 5:58 am 
Offline
Solo Hero
User avatar

Joined: Wed Sep 02, 2009 9:32 pm
Posts: 3874
Location: Clarkston, Mi
Damn firewall...

I miss out on all the good stuff now.

_________________
Raell Kromwell


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Thu Mar 18, 2010 4:53 pm 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
Micheal wrote:
Hmm, I could cheat post and lock all threads, but then Talya or Lenas, or Moobot, nah, Moobot may be random but he's a gentlebot, would unlock the threads, make a harrumph, bad Mike comment, then lock the threads again.

It's even worse. If you're a mod, my recollection is that you can post to locked threads without even unlocking them. That's why best practice is to lock and then post.

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 18, 2010 5:04 pm 
Offline
Asian Blonde

Joined: Mon Sep 21, 2009 7:14 pm
Posts: 2075
I think the random idea would be awsome =P but we'd have many more threads arguing about the same thing though :lol:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Mar 19, 2010 5:45 pm 
Offline
Web Ninja
User avatar

Joined: Wed Sep 02, 2009 8:32 pm
Posts: 8248
Location: The Tunt Mansion
Lydiaa wont win this.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Mar 19, 2010 5:51 pm 
Offline

Joined: Wed Sep 02, 2009 10:49 pm
Posts: 3455
Location: St. Louis, MO
I think it's gone well past where anyone could be considered to win it.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Mar 19, 2010 6:17 pm 
Offline
Perfect Equilibrium
User avatar

Joined: Wed Sep 02, 2009 8:27 pm
Posts: 3127
Location: Coffin Corner
In every contest there is a victor.

_________________
"It's real, grew up in trife life, the times of white lines
The hype vice, murderous nighttimes and knife fights invite crimes" - Nasir Jones


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Mar 19, 2010 6:29 pm 
Offline
Bull Moose
User avatar

Joined: Wed Sep 02, 2009 7:36 pm
Posts: 7507
Location: Last Western Stop of the Pony Express
Nope, think of a gunfight where both fighters are killed.

There is no guarantee there be a winner in real life contests, only in sports where you make them keep playing until someone wins.

_________________
The U. S. Constitution doesn't guarantee happiness, only the pursuit of it. You have to catch up with it yourself. B. Franklin

"A mind needs books like a sword needs a whetstone." -- Tyrion Lannister, A Game of Thrones


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Mar 19, 2010 6:47 pm 
Offline
User avatar

Joined: Wed Sep 02, 2009 7:59 pm
Posts: 9412
Micheal wrote:
There is no guarantee there be a winner in real life contests, only in sports where you make them keep playing until someone wins.

Though, amusingly, we've discovered a sport in which nobody wins until you stop playing.

And worse, you can make them lose by starting to play again!

_________________
"Aaaah! Emotions are weird!" - Amdee
"... Mirrorshades prevent the forces of normalcy from realizing that one is crazed and possibly dangerous. They are the symbol of the sun-staring visionary, the biker, the rocker, the policeman, and similar outlaws." - Bruce Sterling, preface to Mirrorshades


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Mar 19, 2010 7:23 pm 
Offline
Lean, Mean, Googling Machine
User avatar

Joined: Thu Sep 03, 2009 9:35 am
Posts: 2903
Location: Maze of twisty little passages, all alike
I think "the game" did that first.

_________________
Sail forth! steer for the deep waters only!
Reckless, O soul, exploring, I with thee, and thou with me;
For we are bound where mariner has not yet dared to go,
And we will risk the ship, ourselves and all.


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Mar 19, 2010 7:25 pm 
Offline
I got nothin.
User avatar

Joined: Thu Sep 03, 2009 7:15 pm
Posts: 11160
Location: Arafys, AKA El Müso Guapo!
Stathol wrote:
I think "the game" did that first.


The only way to win is not to play.

_________________
Image
Holy shitsnacks!


Top
 Profile  
Reply with quote  
 Post subject: Re: Re:
PostPosted: Fri Mar 19, 2010 8:01 pm 
Offline
Commence Primary Ignition
User avatar

Joined: Thu Sep 03, 2009 9:59 am
Posts: 15740
Location: Combat Information Center
Müs wrote:
Stathol wrote:
I think "the game" did that first.


The only way to win is not to play.


That's true in 1983. With current arsenals, it's possible to win.

_________________
"Hysterical children shrieking about right-wing anything need to go sit in the corner and be quiet while the adults are talking."


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Sun Mar 21, 2010 10:07 pm 
Offline
Perfect Equilibrium
User avatar

Joined: Wed Sep 02, 2009 8:27 pm
Posts: 3127
Location: Coffin Corner
Micheal wrote:
Nope, think of a gunfight where both fighters are killed.

There is no guarantee there be a winner in real life contests, only in sports where you make them keep playing until someone wins.


This isn't a real life contest, so even if that were true, it's exempt.

_________________
"It's real, grew up in trife life, the times of white lines
The hype vice, murderous nighttimes and knife fights invite crimes" - Nasir Jones


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 133 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group