Based on the lj interests lists of those who share my more unusual interests, the interests suggestion meme thinks I might be interested in
1.
writing score: 36
2.
books score: 31
3.
music score: 27
4.
harry potter score: 24
5.
anime score: 20
6.
poetry score: 20
7.
cats score: 19
8.
monty python score: 18
9.
movies score: 17
10.
chocolate score: 17
11.
terry
(
Read more... )
Comments 107
Reply
Reply
Reply
Reply
Reply
erm...I'm afraid it's not caching at all at the moment, simply because I wasn't sure how to write that part of the code (I really am a beginner at this - this is only the fourth program I've written).
When testing it definitely was the data extract stages which were taking the time rather than the processing.
Having said which, remember it's only extracting data for those interests which 20 or fewer people have listed, so it wouldn't necessarily help that much (though it would speed things up when the meme was propagating between people with a number of shared unusual interests - quite likely).
Reply
Reply
Also I think
use LWP::Simple;
$content = get($url);
is a more idiomatic Perl way of downloading web pages.
Reply
Anyway, do you have the code handy in some form, for nosey people like me to look over and maybe appropriate bits of?
Reply
Reply
To fix this, I think all you need to do is replace this line in your HTTP header:
Content-Type: text/html; charset=iso-8859-1 with this:
Content-Type: text/html; charset=utf-8 and optionally add the tag
to the head of the actual HTML document.
Big thumbs-up on this meme overall; it's really interesting. And you serve valid HTML1, which is always a plus. :-)
1. Technically it's not 100% valid, since you're include Windows-1252 characters in a page whose headers declare it ISO-8859-1, but close enough.
Reply
I've made the change you suggested, and tried it on your list and it now displays montréal correctly.
Thanks again :)
Reply
Reply
Reply
In the mean-time, here are your results...
Based on the lj interests lists of those who share my more unusual interests, the interests suggestion meme thinks I might be interested in
1. lina inverse score: 33
2. reading score: 33
3. trigun score: 30
4. inuyasha score: 30
5. yaoi score: 29
6. fruits basket score: 29
7. music score: 28
8. final fantasy score: 27
9. bishounen score: 26
10. dragons score: 26
11. doujinshi score: 24
12. gravitation score: 23
13. art score: 23
14. rurouni kenshin score: 23
15. valgaav score: 23
16. allen schezar score: 21
17. gourry gabriev score: 21
18. fushigi yuugi score: 21
19. japan score: 21
20. computers score: 21
coded by ixwin
Find out more
Reply
Reply
Except that some browsers, notably Safari, are less patient if your script is slow. I think Safari gives up after one minute. (? If I'm wrong about this, someone please let me know.)
Reply
Leave a comment