Re: [opensuse] 11.1 countdown
Hi, On Thu, Nov 13, 2008 at 7:54 PM, jdd <jdd@dodin.org> wrote:
Ionut Vancea a écrit :
ok, now try to put the following:
[[http://en.opensuse.org/OpenSUSE_11.1|http://counter.opensuse.org/11.1/large]]
and it will work, I hope :)
nope, already tried
http://dodin.org/wiki/index.php?n=Main.HomePage
(look above the opensuse 11 banner)
:-(
this should works, but I'm not confident about the crontab (is the time correct?)
script to dl the image each day (this image is loaded in the wiki)
(opensuse.sh) #!/bin/sh cd /home/www/htdocs/wiki/uploads/Main wget http://counter.opensuse.org/small rm small.png mv small small.png
crontab
30 12 * * * sh /root/bin/opensuse.sh
noon each day, with 30 minutes delay?
jdd
So, there are two different things: 1. To place an image into a page 2. To have an image link to another location The differences between them are explained very well here: http://pmwiki.org/wiki/PmWiki/Images So, now what you tried and didn't work, was the second method, but you have to use the first method "To place an image into a page", and I see that the syntax to use is (example from above link): http://pmichaud.com/img/misc/pc.jpg"Paper clips" | [- %newwin% [[ (Wikipedia:Paper_clips | Paper clips ]] are ''fun'' to work with. -] so, in your case has to be: "To place an image into a page, enter the address (url) of the image into the markup text" http://counter.opensuse.org/11.1/large"OpenSUSE Counter" cheers, Ionut -- === Ioan Vancea http://www.vioan.ro -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ionut Vancea a écrit :
"To place an image into a page, enter the address (url) of the image into the markup text"
the "" are optional. the problem is that "large" is *not* an image, but some script? large.png don't works (tried) the solution I use works because I copy the image in a pmwiki visible place on the beginning (in fact I first upload one image to initialize the indexes, then change this image with the script given previous image (11) used the same thing: a true image copied to some accessible place jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Nov 14, 2008 at 12:04 PM, jdd <jdd@dodin.org> wrote:
Ionut Vancea a écrit :
"To place an image into a page, enter the address (url) of the image into the markup text"
the "" are optional.
the problem is that "large" is *not* an image, but some script? large.png don't works (tried)
I thing is a png image but without extension, I am not sure :) then maybe is better to ask the "author" to add also .png extension to that image, in the link :)
the solution I use works because I copy the image in a pmwiki visible place on the beginning (in fact I first upload one image to initialize the indexes, then change this image with the script given
previous image (11) used the same thing: a true image copied to some accessible place
jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
/Ionut -- === Ioan Vancea http://www.vioan.ro -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ionut Vancea wrote:
On Fri, Nov 14, 2008 at 12:04 PM, jdd <jdd@dodin.org> wrote:
the problem is that "large" is *not* an image, but some script? large.png don't works (tried)
I thing is a png image but without extension, I am not sure :)
$ wget http://counter.opensuse.org/11.1/large --13:44:48-- http://counter.opensuse.org/11.1/large => `large' Resolving counter.opensuse.org... 195.135.221.140 Connecting to counter.opensuse.org|195.135.221.140|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 52,398 (51K) [image/png] 100%[====================================>] 52,398 --.--K/s 13:44:48 (2.21 MB/s) - `large' saved [52398/52398] $ file large large: PNG image data, 400 x 400, 8-bit/color RGB, non-interlaced Cheers, Dave
then maybe is better to ask the "author" to add also .png extension to that image, in the link :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 14 November 2008 05:48, Dave Howorth wrote:
Ionut Vancea wrote:
On Fri, Nov 14, 2008 at 12:04 PM, jdd <jdd@dodin.org> wrote:
the problem is that "large" is *not* an image, but some script? large.png don't works (tried)
I thing is a png image but without extension, I am not sure :)
$ wget http://counter.opensuse.org/11.1/large ...
$ file large large: PNG image data, 400 x 400, 8-bit/color RGB, non-interlaced
Cheers, Dave
An additional interesting fact: % date; echo; wget http://counter.opensuse.org/11.1/large; echo; ll large Fri Nov 14 07:11:28 PST 2008 --07:11:28-- http://counter.opensuse.org/11.1/large => `large' Resolving counter.opensuse.org... 195.135.221.140 Connecting to counter.opensuse.org|195.135.221.140|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 54,013 (53K) [image/png] 100%[====...====>] 54,013 63.89K/s 07:11:30 (63.75 KB/s) - `large' saved [54013/54013] -rw-r--r-- 1 rschulz users 54013 2008-11-14 07:00 large Note the date when I ran wget (and I have NTP going) and the date of the "large" file retrieved. Apparently the image is generated once per hour by a script (unsurprisingly), but the important point is that the modification time is propagated through the HTTP response and saved with the file by wget. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
An additional interesting fact:
You learn something new every day :)
Apparently the image is generated once per hour by a script
So I wonder if it looks at where the browser is and allows for the timezone offset so as to give you and I the correct number of days during the hours that the question has different answers in Europe and America? :) :) Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 14 November 2008 07:46, Dave Howorth wrote:
Randall R Schulz wrote:
An additional interesting fact:
You learn something new every day :)
Apparently the image is generated once per hour by a script
So I wonder if it looks at where the browser is and allows for the timezone offset so as to give you and I the correct number of days during the hours that the question has different answers in Europe and America? :) :)
A coordinated experiment across a couple of time zones could answer that. However, that's not really necessary: <http://dev-loki.blogspot.com/2008/11/opensuse-111-countdown.html>: "The openSUSE release countdown banners have been updated, with new languages (pt_BR, hu, id, bg, jp and wa) as well as counting down to 11.1 It automatically localizes depending on the preferred language as configured in the user's browser, with support for the following languages: English, German, Czech, French, Danish, Russian, Polish, Dutch, Finnish, Spanish, Italian, Greek, Swedish, Croatian, Norwegian, Portuguese, Brazilian Portuguese, Hungarian, Romanian, Slovenian, Chinese (traditional and Taïwan), Hindi, Bulgarian, Japanese and Walloon. Again, thanks a lot to everyone who contributed those translations. And as it is rendered on the server, it always points to the right number of remaining days before 11.1 release (diffed against 12:00 CET)."
Cheers, Dave
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 14 November 2008 07:46, Dave Howorth wrote:
Randall R Schulz wrote:
An additional interesting fact:
You learn something new every day :)
If it's a good day. And if not, perhaps then it's a good day to die?
...
Cheers, Dave
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2008-11-14 at 15:46 -0000, Dave Howorth wrote:
So I wonder if it looks at where the browser is and allows for the timezone offset so as to give you and I the correct number of days during the hours that the question has different answers in Europe and America? :) :)
I think the hour is propagated as UTC, and your machine simply displays it in your localtime. Look: cer@nimrodel:~> wget http://counter.opensuse.org/11.1/large ; date ; TZ="UTC+4" date ; l large ; TZ="UTC+4" l large - --2008-11-20 12:38:00-- http://counter.opensuse.org/11.1/large Resolving counter.opensuse.org... 195.135.221.140 Connecting to counter.opensuse.org|195.135.221.140|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 55079 (54K) [image/png] Saving to: `large' 100%[=================================>] 55,079 86.9K/s in 0.6s 2008-11-20 12:38:00 (86.9 KB/s) - `large' saved [55079/55079] Thu Nov 20 12:38:00 CET 2008 Thu Nov 20 07:38:01 UTC 2008 - -rw-r--r-- 1 cer users 55079 2008-11-20 12:00 large - -rw-r--r-- 1 cer users 55079 2008-11-20 07:00 large So it is really simple :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkklTJkACgkQtTMYHG2NR9V8QgCfVYJQ176TLDct3JC71HoY3/SM ITsAn3W6uoIxeZ3PWJdq1fjblclZ79Zv =hT9r -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Friday, 2008-11-14 at 15:46 -0000, Dave Howorth wrote:
So I wonder if it looks at where the browser is and allows for the timezone offset so as to give you and I the correct number of days during the hours that the question has different answers in Europe and America? :) :)
I think the hour is propagated as UTC, and your machine simply displays it in your localtime.
I think you missed my smiley! It wasn't the wget/ls output I was thinking of, it was the bits in the image! At the start of release day, the countdown image should be showing 0 days to Europeans, while it should still be showing 1 day to North Americans. The number of days remaining changes at 0500 UTC for New Yorkers, for example, if the file is to be released at 0000 UTC. So the server should in theory serve a different image to browsers depending on where the browser is located. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2008-11-20 at 12:12 -0000, Dave Howorth wrote:
I think the hour is propagated as UTC, and your machine simply displays it in your localtime.
I think you missed my smiley!
It wasn't the wget/ls output I was thinking of, it was the bits in the image! At the start of release day, the countdown image should be showing 0 days to Europeans, while it should still be showing 1 day to North Americans. The number of days remaining changes at 0500 UTC for New Yorkers, for example, if the file is to be released at 0000 UTC.
So the server should in theory serve a different image to browsers depending on where the browser is located.
It serves a different language, but not time: the time to release is absolute, does not depend on where you live. <http://dev-loki.blogspot.com/2008/11/opensuse-111-countdown.html> ] And as it is rendered on the server, it always points to the right ] number of remaining days before 11.1 release (diffed against 12:00 CET). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkklXK4ACgkQtTMYHG2NR9V29ACfZy+eufCZa40zSi39OzkfYIaK uZ0AnjpHO5XW1sj7aM+SAW4LpQeVjXP8 =e3UR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
nice image, but you should say it's hours, most people think days :-( (use "H" in place of "T" :-) jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 17 December 2008 01:11:26 pm jdd wrote:
nice image, but you should say it's hours, most people think days :-( (use "H" in place of "T" :-)
It is common to use T-delta , where T is event time and delta remain time until event. You can put h, m, s behind delta. BTW, for the last few minutes or seconds <LANG>.opensuse.org can change to bigger counter in the center of the page, and then on T change to very prominent download links, and counter can go back to current position, now showing T+delta (this is past the event) for the first 24 hours, or whatever is used to measure number of downloads in peak time after release. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Dave Howorth
-
Ionut Vancea
-
jdd
-
Rajko M.
-
Randall R Schulz