This topic is locked, you cannot edit posts or make further replies.  [ 2636 posts ]  Go to page Previous  1 ... 128, 129, 130, 131, 132, 133, 134 ... 176  Next
The Random Sh*t Thread 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:19 pm
Posts: 5071
Location: Manchester
oceanicitl wrote:
saspro wrote:
I've just tried installing a gateway security device.
Opened the sealed package, configured it, hit register and got told the serial number is already registered. WTF


:lol:

Ah the joys of IT. If someone asks me 'how long will it take?' I no longer reply as if you say a time it's going to take 6 times longer than that!


For every 10 minutes I just say that time in days, so a 20 minute job could take 2 days. A 5 minute job will take 6 hours.


Fri Aug 21, 2009 5:40 pm
Profile
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 4876
Location: Newcastle
leeds_manc wrote:
For every 10 minutes I just say that time in days, so a 20 minute job could take 2 days. A 5 minute job will take 6 hours.


Surely a 5 minute job could be 12 hours?

_________________
Twitter
Charlie Brooker:
Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.


Fri Aug 21, 2009 5:54 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Code:
forquare1                 448
themcman1                 253
Paul1965                  144
soddit112                 60
Linux_User                43
saspro                    43
mars-bar-man              32
l3v1ck                    25
onemac                    10
bobbdobbs                 6
jonlumb                   4
Blue_Nowhere              3
brataccas                 2
bally199                  1
cloaked_wolf              1


Calculated using the following if anyone else wants to ratify my results or view the script:
Code:
import os, glob, string
from operator import itemgetter
from urllib import urlopen

"""Method that prints the results nicely"""
def printResults():
    #Produce a sorted list of tuples
    scores = sorted(results.items(), key=itemgetter(1), reverse=True)
    for score in scores: #Iterate over the tuples, printing them
        print score[0].ljust(25) , score[1]

"""Method that add's a person's posts to the results dictionary"""
def addPost(person):
    if results.has_key(person):
        results[person] += 1
    else:
        results[person] = 1

"""Method that finds all the posts in a page, and adds the posts to the dictionary of results"""
def findPosts(text):
    startPost, startName, endName = 0,0,0
    while True:
        startPost = text.find('by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=', endName)
        if startPost == -1:
            break
        startName = text.find('">',startPost) + 2
        endName = text.find('</a>', startName)
        addPost(text[startName:endName])

"""Method that grabs all the pages in the thread from the web"""
def grabFiles():
    thread = input('Enter the thread id of the thread to be counted: ')
    pages = input('Enter the number of pages to be counted: ')
    html = ''

    for page in range (0, pages):
        url = 'http://www.x404.co.uk/forum/viewtopic.php?f=3&t=' + `thread` + '&start=' + `15*page`
        html += urlopen(url).read()
    return html

results = {} #Dictionary to store each poster's current post count

findPosts(grabFiles())
printResults()


It should be noted that the screen-scraping is even more hideous than it was at Dennis' site, so if anyone does spot any issues do raise them! I've tested it on a few pages, but it wasn't monstrously thorough.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Fri Aug 21, 2009 5:58 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5163
Location: /dev/tty0
Phew, that was quite a lead :shock:

In other news, it's very quiet on here tonight...


Fri Aug 21, 2009 7:51 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:29 pm
Posts: 5975
forquare1 wrote:
Phew, that was quite a lead :shock:


Well done, sir! A well-deserved victory!

_________________
"I hadn't known there were so many idiots in the world until I started using the Internet." - Stanislaw Lem


Fri Aug 21, 2009 8:16 pm
Profile
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 4:00 pm
Posts: 940
Location: Pompy
http://www.youtube.com/watch?v=9CygpAztxMs

WIN!!!!

_________________
Just your friendly neighbourhood mars-bar-man.

flickr


Fri Aug 21, 2009 8:34 pm
Profile
Legend

Joined: Sun Apr 26, 2009 12:30 pm
Posts: 45931
Location: Belfast
Michael Jackson: The Glove

http://www.play.com/Gadgets/Gadgets/4-/ ... duct.html#

:lol:

_________________
Plain English advice on everything money, purchase and service related:

http://www.moneysavingexpert.com/


Fri Aug 21, 2009 9:18 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:14 pm
Posts: 5664
Location: Scotland
forquare1 wrote:
In other news, it's very quiet on here tonight...


I have yet to hear a forum make any audable sound :shock:

_________________
Image


Sat Aug 22, 2009 12:30 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:19 pm
Posts: 5071
Location: Manchester
finlay666 wrote:
leeds_manc wrote:
For every 10 minutes I just say that time in days, so a 20 minute job could take 2 days. A 5 minute job will take 6 hours.


Surely a 5 minute job could be 12 hours?



Work days ;)


Sat Aug 22, 2009 12:32 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5163
Location: /dev/tty0
leeds_manc wrote:
finlay666 wrote:
leeds_manc wrote:
For every 10 minutes I just say that time in days, so a 20 minute job could take 2 days. A 5 minute job will take 6 hours.


Surely a 5 minute job could be 12 hours?



Work days ;)


Then for me it'd be 7 hours 24 minutes...(not including lunch)
Must be nice to work a 6 hour day


Sat Aug 22, 2009 9:18 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:19 pm
Posts: 5071
Location: Manchester
I work closer to a ten hour day including lunch.


Sat Aug 22, 2009 9:51 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:29 pm
Posts: 5975
Saw this individual in London on Thursday but his identity remains a mystery.....

Image

_________________
"I hadn't known there were so many idiots in the world until I started using the Internet." - Stanislaw Lem


Sat Aug 22, 2009 9:57 am
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 7:56 pm
Posts: 12030
Hmm.
He has placards.
Maybe he's onto something.

_________________
www.alexsmall.co.uk

Charlie Brooker wrote:
Windows works for me. But I'd never recommend it to anybody else, ever.


Sat Aug 22, 2009 10:04 am
Profile
Legend

Joined: Sun Apr 26, 2009 12:30 pm
Posts: 45931
Location: Belfast
^ It's definitely not Bratty - there's no :cry: smilies on them... ;)

_________________
Plain English advice on everything money, purchase and service related:

http://www.moneysavingexpert.com/


Sat Aug 22, 2009 10:13 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 8:19 pm
Posts: 5071
Location: Manchester
pcernie wrote:
^ It's definitely not Bratty - there's no :cry: smilies on them... ;)



And he's black. What? I like to start with the obvious.


Sat Aug 22, 2009 1:18 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2636 posts ]  Go to page Previous  1 ... 128, 129, 130, 131, 132, 133, 134 ... 176  Next

Who is online

Users browsing this forum: No registered users and 28 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

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