View unanswered posts | View active topics
It is currently Tue Jul 08, 2025 7:08 pm
Author |
Message |
HeatherKay
Moderator
Joined: Thu Apr 23, 2009 6:13 pm Posts: 7262 Location: Here, but not all there.
|
Ah, but you were probably prescribed a course of antibiotics rather than a course of bleeding by leeches. I humbly suggest your chances of survival are much higher than Wolfgang's were.
_________________My Flickr | Snaptophobic BloggageHeather Kay: modelling details that matter. "Let my windows be open to receive new ideas but let me also be strong enough not to be blown away by them." - Mahatma Gandhi.
|
Thu Aug 20, 2009 10:58 am |
|
 |
l3v1ck
What's a life?
Joined: Fri Apr 24, 2009 10:21 am Posts: 12700 Location: The Right Side of the Pennines (metaphorically & geographically)
|
True. But it's interesting to know I have something potentially fatal. It took me two weeks to go to the doctors too.
|
Thu Aug 20, 2009 11:12 am |
|
 |
forquare1
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:36 pm Posts: 5157 Location: /dev/tty0
|
GAAAAAARGH!!!!
What is it with people insisting that an Office product must be used for everything and anything!? Today alone I've had pictures sent to me in Word and step by step instructions given to me using Powerpoint. Now I've presented my boss with some results from a script I wrote which is in a text file, and she insisted that they should go into Excel. Why!? We aren't doing anything with the data that requires Excel. The only differences between the two approaches is that spreadsheet is twice the size and takes about three times as long to open...
Grrrrr!
Bugger, there goes another stress toy in the bin...
|
Thu Aug 20, 2009 1:25 pm |
|
 |
Blue_Nowhere
Spends far too much time on here
Joined: Thu Apr 23, 2009 8:57 pm Posts: 2220 Location: Here for now...
|
Yesterday I had a black eye, shaved head and a bit of a beard. How manly.
Today I look like I have multicoloured eyeliner around one eye. Brilliant.
|
Thu Aug 20, 2009 3:39 pm |
|
 |
John_Vella
I haven't seen my friends in so long
Joined: Fri Apr 24, 2009 7:55 am Posts: 7935 Location: Manchester.
|
_________________John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker  Sorry  I'll behave now. Promise 
|
Thu Aug 20, 2009 3:53 pm |
|
 |
Blue_Nowhere
Spends far too much time on here
Joined: Thu Apr 23, 2009 8:57 pm Posts: 2220 Location: Here for now...
|
As you know this is a hobby related incident! Funny thing is that I was off to meet a lady friend last night, you'd be amazed how quick I can go from tough-guy sparring at the gym to hurt little guy who needs all the sympathy in the world. 
|
Thu Aug 20, 2009 4:00 pm |
|
 |
saspro
Site Admin
Joined: Thu Apr 23, 2009 5:53 pm Posts: 8603 Location: location, location
|
0-sympathy sex in 60 seconds
|
Thu Aug 20, 2009 4:04 pm |
|
 |
John_Vella
I haven't seen my friends in so long
Joined: Fri Apr 24, 2009 7:55 am Posts: 7935 Location: Manchester.
|
I didn't actually know it was hobby related, (though I'd kinda guessed) because it's not beyond the realms of possibility that you hit yourself in the face on a top cupboard in the kitchen, or accidentally smacked yourself in the face whilst trying to unblock the loo, etc.  There's nothing wrong with milking the whole sympaphy thing a bit, as women have been doing that since time began!  * runs like [lifted]! *
_________________John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker  Sorry  I'll behave now. Promise 
|
Thu Aug 20, 2009 4:04 pm |
|
 |
Blue_Nowhere
Spends far too much time on here
Joined: Thu Apr 23, 2009 8:57 pm Posts: 2220 Location: Here for now...
|
Now....where's that free condoms thread gone? 
|
Thu Aug 20, 2009 4:05 pm |
|
 |
finlay666
Spends far too much time on here
Joined: Thu Apr 23, 2009 9:40 pm Posts: 4876 Location: Newcastle
|
And back in the same 
_________________TwitterCharlie 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.
|
Thu Aug 20, 2009 4:36 pm |
|
 |
leeds_manc
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 8:19 pm Posts: 5071 Location: Manchester
|
|
Thu Aug 20, 2009 5:47 pm |
|
 |
ProfessorF
What's a life?
Joined: Thu Apr 23, 2009 7:56 pm Posts: 12030
|
There's a whole YouTube thread y'know. 
|
Thu Aug 20, 2009 5:49 pm |
|
 |
Coref
Occasionally has a life
Joined: Mon Apr 27, 2009 6:20 pm Posts: 446 Location: ~/
|
_________________ I was nickholway on the old boards.
|
Thu Aug 20, 2009 6:11 pm |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
The clunky python script I've used before to count the 24hr threads is a rather crude screen-scraper, shown below. It'll need some modifications, but I'm a bit busy tonight, sorry. If anyone wants to fix it, feel free!  |  |  |  | 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('><a name=', endName) if startPost == -1: break startName = text.find('<b>',startPost) + 3 endName = text.find('</b>', 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.pcpro.co.uk/phpbb/viewtopic.php?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's a long long way from my finest code, but bear in mind it was written after a 24hr thread!
|
Thu Aug 20, 2009 8:37 pm |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
Last edited by EddArmitage on Thu Aug 20, 2009 9:08 pm, edited 1 time in total.
|
Thu Aug 20, 2009 9:02 pm |
|
|
Who is online |
Users browsing this forum: No registered users and 25 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
|
|