Re: Question about comparing Remote image with Local one
From: Anno Siegel (anno4000_at_lublin.zrz.tu-berlin.de)
Date: 10/09/03
- Next message: ko: "Re: Newbie trying to access local repository with ppm on win2k"
- Previous message: Anno Siegel: "Re: regex to get OS from combined log"
- In reply to: Vijoy Varghese: "Question about comparing Remote image with Local one"
- Next in thread: A. Sinan Unur: "Re: Question about comparing Remote image with Local one"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Oct 2003 12:00:25 GMT
Vijoy Varghese <viijv@thedifferenZ.com> wrote in comp.lang.perl.misc:
> Hello Group,
>
> My final goal is to show a green/red gif image on my webpage when I am
> available on yahoo chat. Yes for this I could have used the url
> provided by yahoo
> http://opi.yahoo.com/online?u=xxxx&m=g&t=2, where xxxx is my yahoo
> userid. But the images yahoo print wont match with my webpage's
> colors. So I want to display a custom one. Now I know some Perl and I
> decided to give it a try.
>
> I used the LWP module to get the image (either online image/ offline
> image) from yahoo.
[snip irrelevant code]
> Now, I have the image from yahoo through my script. Now what I want is
> to see if the image is that of 'online_status' or 'offline_status'.
> And according to that, display my custom 'online/offline' image.
>
> For this, what I can do is to get the two images from yahoo, when my
> id is offline and when my id is online and save it.
> Then when ever the script is called, compare the real_time image from
> yahoo to the ones saved and take the decision.
>
> Now, my question is, Which is the best way to compare the remote image
> with the one I have on my server?
This sounds like a rather strange plan.
Use MD5 checksums to compare the files, don't compare the whole content.
See Digest::MD5 for how to.
Anno
- Next message: ko: "Re: Newbie trying to access local repository with ppm on win2k"
- Previous message: Anno Siegel: "Re: regex to get OS from combined log"
- In reply to: Vijoy Varghese: "Question about comparing Remote image with Local one"
- Next in thread: A. Sinan Unur: "Re: Question about comparing Remote image with Local one"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|