You are such a wiz with coding Oscar
. Hope you’re all geared up for the egg hunt tomorrow
Posted by
Maggie on 04/19 at 07:34 PM
Sign of a mis-spent youth Maggie!
And yes, daughter had a fun egg hunt!
Posted by
Oscar on 04/20 at 04:22 PM
One in a Million
If you are One in a Million, there are 6285 people in the world that are exactly like you....
Tracked on:
: One in a Million (64.235.234.140) at 2003 04 21 17:01:54
Dear God! Someone should have told me about this before I started making statistics of world population in Excel… ha ha! Cool plugin. I just don’t have the patience (or the resources, I’m afraid) to make them work.
Cool! Spongebob!
Posted by
Beatriz on 04/23 at 12:22 PM
Uh oh! Sorry for the double comment. But I’m sure being a blog-guru you can fix it.
Posted by
Beatriz on 04/23 at 12:26 PM
Thanks Beatriz! Yes, I used my computer brains to push the delete button on the duplicate comment
Phew!
You know, all you have to do is throw the plugin into the plugins directory, and then you have a new tag at your disposal. But, I know, ya gotta be in the mood for that sort of thing.
I was thinking of adding some tags to the plugin, like populations for different countries, or who knows. But I figure, I’ll only do that if someone wants it!
But, hey, I am glad that youy LIKE it in any case!
Posted by
Oscar on 04/23 at 05:47 PM
WorldPop
Uses the census data from Census.gov. oscar@ofhills.com-->
Tracked on:
: MT Plugin Directory (66.246.57.2) at 2003 04 24 16:04:37
World Population plug-in
Still playing around with plug-ins and track back. I just installed the World Population Gadget which screen scrapes the world population. It is a cute waste of time....
Tracked on:
: Confessions of a Tech Junkie (207.142.135.101) at 2003 09 26 00:29:08
Where does the second “Chunk of Javascript code” go? Do both the first two codes go in your head of “index.html”? Also, does the last part have to be in a post, or can it go in the sidebar on the site? Thanks
-Neil Vitale
Posted by
Neil on 03/19 at 11:53 PM
It can go anywhere you want. You can put it in an individual post if you are going to use it only once, or in your index template or elsewhere if you plan to use it repeatedly, i.e., if you want those functions available to you regularly without having to recode them all the time. Hope that helps ...
Posted by
Oscar on 03/20 at 12:57 PM
Thanks alot. I have it working now on my site. http://neil.cbulock.com It’s in the sidebar right under the cost of the Iraq war
Posted by
Neil on 03/24 at 02:32 PM
The script fetches a quote from a page that is double in size (~8k rather than ~4k) and seems to be less “live” than this page from Census.gov: http://www.census.gov/cgi-bin/ipc/popclockw . Might I suggest only the following MINOR modifications?:
sub scrape_pop {
my $out = ‘Could not retrieve population.’;
my $population = ‘http://www.census.gov/cgi-bin/ipc/popclockw’;
my $req = HTTP::Request->new(GET => $population);
my $ua = LWP::UserAgent->new;
$ua->agent(’cenCheck/1.0’);
my $res = $ua->request($req);
my $c = $res->content;
if ($c =~ /<h1>(.*?)<\/h1>/i)
{
$out = $1;
}
return $out;
}
Posted by
John Wyles on 07/06 at 07:03 PM
Right you are John (on both size and “liveness")!
I’ll change the code and re-post the plugin when I get a few minutes wunna these days soon.
Thanks!
Posted by
Oscar on 07/06 at 08:09 PM
I must be doing something wrong with this...I thought this would be an interesting piece of info for my email blog domain and I cannot seem to get it to work.
Instead of getting numbers I get letters...3 of them which state “NaN”. What the heck did I do wrong?
Posted by
Susan on 11/28 at 10:56 AM
If anyone is using this plugin, the site has changed just a little, so it hasn’t been working lately. I just now updated it, so download the new one and give it a try!
Posted by
Oscar on 12/10 at 06:39 PM
Thanks!
Posted by
Susan on 12/12 at 01:09 PM
okay, is the new plug-in at the same location? I am still getting the NaN thing.
Posted by
Susan on 12/12 at 01:14 PM
I got rid of the NaN thing, but nothing shows up for numbers now.
I am sorry if I am being a pain.
Posted by
Susan on 12/12 at 01:26 PM
Hmmm ... If you’ll email me your template code, I’ll try it here and be sure it’s working.
But, before that, you might download the plugin again, or make sure it’s the latest one, then delete the current one on your server, then upload the new one. Then CHMOD the plugin to at least 755 (assuming your comfortable with such) - permissions are important here or plugins won’t work.
If the plugin is failing to get the data, it should return “could not retrieve population” but if it is not working at all, you get a blank.
In the latter case, the plugin has either become corrupted on upload somehow, or permissions are wrong.
Let me know howit goes, and feel free to ask for more help. The thing should be working
Posted by
Oscar on 12/12 at 03:59 PM
<<Hide Comments and Trackbacks