[opensuse-web] frontpage uses static.opensuse.org in SVN
Hi, I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org This reduces the server load since static.opensuse.org is highly optimized to deliver static content. The code is now in SVN but not deployed on the live server yet. Reviews of my changes are highly welcome. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
Hi Andreas, On Fri, Dec 12, 2008 at 01:01:42PM +0100, Andreas Demmer wrote:
I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org
This reduces the server load since static.opensuse.org is highly optimized to deliver static content.
The code is now in SVN but not deployed on the live server yet. Reviews of my changes are highly welcome.
Cool. Would it make sense, in the future, to make use of a common base URL in the HTML head? <base href="http://static.opensuse.org/hosts/www.o.o" /> Then the links could be much shorter, and in addition a later change could be significantly easier. I don't know if all browsers support this, I just noticed this feature recently and it seems like a very useful thing. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
On 12.12.2008, at 13:36, Peter Poeml wrote:
Hi Andreas,
On Fri, Dec 12, 2008 at 01:01:42PM +0100, Andreas Demmer wrote:
I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org
This reduces the server load since static.opensuse.org is highly optimized to deliver static content.
The code is now in SVN but not deployed on the live server yet. Reviews of my changes are highly welcome.
Cool.
Would it make sense, in the future, to make use of a common base URL in the HTML head?
<base href="http://static.opensuse.org/hosts/www.o.o" />
Then the links could be much shorter, and in addition a later change could be significantly easier.
I don't know if all browsers support this, I just noticed this feature recently and it seems like a very useful thing.
Probably it could force problems with our Rails apps ... I found a contra after wie talked about this last time. But I can't remember now. We should ask abauer before wie change something. R
Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure
SUSE LINUX Products GmbH Research & Development
--- Robert Lihm, Webdesigner - Build Service Team SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg Tel: +49-911-74053-0 - rlihm@suse.de ____________________________________________________________ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) ____________________________________________________________ SUSE - a Novell business -- To unsubscribe, e-mail: opensuse-web+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-web+help@opensuse.org
Hello, (just going through the list archive, so don't be surprised that I answer a quite old mail ;-) on Freitag, 12. Dezember 2008, Robert Lihm wrote:
On 12.12.2008, at 13:36, Peter Poeml wrote:
Would it make sense, in the future, to make use of a common base URL in the HTML head?
<base href="http://static.opensuse.org/hosts/www.o.o" />
Probably it could force problems with our Rails apps ... I found a contra after wie talked about this last time. But I can't remember now. We should ask abauer before wie change something.
Be warned that <base href=...> affects every link and file reference, even links like <a href="#section"> (interpreted as "http://static.opensuse.org/hosts/www.o.o/#section" to use the example above). This means all links have to be written as absolute links ("http://www.opensuse.org/page.html#section"), which can cause some headache on maintenance. I went to this loop on a Typo3 website I implemented. I had to use <base href> because of the realurl plugin which creates "nice" URLs for all pages. Fortunately Typo3 can automatically prepend all #section links with the current URL automatically, so things are quite easy there. But: If you maintain your pages manually, this causes lots of work (rename a file? change all internal links!) and is more error-prone than prefixing images etc. with the static.opensuse.org path (you'll easily note a missing image ;-) To make the story short: Unless you auto-generate all links, using a <base href> tag can cause some headache. I normally tend to avoid it. Regards, Christian Boltz --
Und wo legst Du das Backup ab, wenn die einzige Partition read-only gemountet ist? *SCNR* Am besten auf /dev/null - das geht am schnellsten :-) [> Christian Boltz und Rainer Kaluscha in suse-linux] -- To unsubscribe, e-mail: opensuse-web+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-web+help@opensuse.org
On Sat, Dec 27, 2008 at 11:25:57PM +0100, Christian Boltz wrote:
Hello,
(just going through the list archive, so don't be surprised that I answer a quite old mail ;-)
on Freitag, 12. Dezember 2008, Robert Lihm wrote:
On 12.12.2008, at 13:36, Peter Poeml wrote:
Would it make sense, in the future, to make use of a common base URL in the HTML head?
<base href="http://static.opensuse.org/hosts/www.o.o" />
Probably it could force problems with our Rails apps ... I found a contra after wie talked about this last time. But I can't remember now. We should ask abauer before wie change something.
Be warned that <base href=...> affects every link and file reference, even links like <a href="#section"> (interpreted as "http://static.opensuse.org/hosts/www.o.o/#section" to use the example above). This means all links have to be written as absolute links ("http://www.opensuse.org/page.html#section"), which can cause some headache on maintenance.
A very interesting catch. Thanks for sharing this.
I went to this loop on a Typo3 website I implemented. I had to use <base href> because of the realurl plugin which creates "nice" URLs for all pages. Fortunately Typo3 can automatically prepend all #section links with the current URL automatically, so things are quite easy there.
But: If you maintain your pages manually, this causes lots of work (rename a file? change all internal links!) and is more error-prone than prefixing images etc. with the static.opensuse.org path (you'll easily note a missing image ;-)
To make the story short: Unless you auto-generate all links, using a <base href> tag can cause some headache. I normally tend to avoid it.
Thanks! Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Hi Andreas, On Fri, Dec 12, 2008 at 01:01:42PM +0100, Andreas Demmer wrote:
I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org
This reduces the server load since static.opensuse.org is highly optimized to deliver static content.
The code is now in SVN but not deployed on the live server yet. Reviews of my changes are highly welcome.
I reviewed your change: 1) There is an invalid link in js/fancyzoom_html.js to http://static.opensuse.org/hosts/www.o.o/images/closebox.png although it is commented, so not in use. The URLs constructed by Javascript rely on a common path which is set here: js/fancyzoom.js:var zoomImagesURI = '/images/fancyzoom/'; // Location of the zoom and shadow images I guess this needs to be changed too. (Old URLs will still be valid of course. So, no breakage is to be feared.) 2) These two won't work: http://static.opensuse.org/hosts/www.o.o/images/jcarousel_skins/opensuse/nex... http://static.opensuse.org/hosts/www.o.o/images/jcarousel_skins/opensuse/pre... The jcarousel_skins directory contains only pictures named horizontal-something, not vertical-something. 3) http://static.opensuse.org/hosts/www.o.o/images/spacer.gif should be http://static.opensuse.org/hosts/www.o.o/images/fancyzoom/spacer.gif And the following http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow1.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow3.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow6.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow8.png also need to have /images/fancyzoom/ instead of /images/ if they should work. (I didn't check if they are used at all though, or if they might just occur in a comment) Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Peter Poeml wrote:
There is an invalid link in js/fancyzoom_html.js to http://static.opensuse.org/hosts/www.o.o/images/closebox.png although it is commented, so not in use.
This code was commented and deactivated out of the box from the original zoombox author, so no need for fixing here. Nevertheless, removing the parts wouldn't hurt...
js/fancyzoom.js:var zoomImagesURI = '/images/fancyzoom/'; // Location of the zoom and shadow images [...] I guess this needs to be changed too.
ACK, fixed.
(Old URLs will still be valid of course. So, no breakage is to be feared.)
Sure, but when we switch to static.opensuse.org, we should do it consitantly everywhere.
http://static.opensuse.org/hosts/www.o.o/images/jcarousel_skins/opensuse/ne xt-vertical.png http://static.opensuse.org/hosts/www.o.o/images/jcarousel_skins/opensuse/pr ev-vertical.png [...] The jcarousel_skins directory contains only pictures named horizontal-something, not vertical-something.
The jQuery Carousel plugin can be used both horizontally and vertically aligned but the used custom openSUSE skin makes only use of the horizontal alignment, so the vertical images are neither existing nor used.
http://static.opensuse.org/hosts/www.o.o/images/spacer.gif should be http://static.opensuse.org/hosts/www.o.o/images/fancyzoom/spacer.gif
And the following http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow1.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow3.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow6.png http://static.opensuse.org/hosts/www.o.o/images/zoom-shadow8.png also need to have /images/fancyzoom/ instead of /images/ if they should work.
Fixing the base-url in the js file has fixed this, AFAICS. Changes are already commited to SVN trunk. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
On Fri, Dec 12, 2008 at 01:01:42PM +0100, Andreas Demmer wrote:
I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org
This reduces the server load since static.opensuse.org is highly optimized to deliver static content.
The code is now in SVN but not deployed on the live server yet. Reviews of my changes are highly welcome.
Greets, Andreas
The change is online now! Now static.o.o starts being used. There is a little something to see already: http://static.opensuse.org/apachestats/ Thanks everybody, Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Peter Poeml wrote:
The change is online now! Now static.o.o starts being used.
That's good news! :-) I'll start working on replacing the current screenshots with 11.1 screenshots in SVN trunk, so that we can do a new deployment on release day with fresh screenshots and a release announcement written by Zonker. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
Hi, On Tue, Dec 16, 2008 at 07:45:31AM +0100, Andreas Demmer wrote:
Peter Poeml wrote:
The change is online now! Now static.o.o starts being used.
That's good news! :-)
I'll start working on replacing the current screenshots with 11.1 screenshots in SVN trunk, so that we can do a new deployment on release day with fresh screenshots and a release announcement written by Zonker.
A little question. I noticed this (local) change last night: # svn st M news.html # svn diff Index: news.html =================================================================== --- news.html (revision 5909) +++ news.html (working copy) @@ -1,7 +1,7 @@ <ul> -<li><strong>Dec 10:</strong> <a href="http://news.opensuse.org/2008/12/10/release-party-in-nuremberg/"> Release Party In Nuremberg</a> +<li><strong>Dec 13:</strong> <a href="http://news.opensuse.org/2008/12/13/opensuse-weekly-news-issue-50/"> openSUSE Weekly News, Issue 50</a> +<span class="clear"> </span></li><li><strong>Dec 13:</strong> <a href="http://news.opensuse.org/2008/12/13/ssl-certificate-for-opensuseorg-has-expired/"> SSL Certificate for *.opensuse.org Has Expired</a> +<span class="clear"> </span></li><li><strong>Dec 13:</strong> <a href="http://news.opensuse.org/2008/12/13/sneak-peeks-at-opensuse-111-improved-installation-easier-administration/"> Sneak Peeks at openSUSE 11.1: Improved Installation, Easier Administration</a> +<span class="clear"> </span></li><li><strong>Dec 10:</strong> <a href="http://news.opensuse.org/2008/12/10/release-party-in-nuremberg/"> Release Party In Nuremberg</a> <span class="clear"> </span></li><li><strong>Dec 10:</strong> <a href="http://news.opensuse.org/2008/12/10/infrastructure-maintenance-thursday/"> Infrastructure Maintenance Thursday</a> -<span class="clear"> </span></li><li><strong>Dec 09:</strong> <a href="http://news.opensuse.org/2008/12/09/pre-order-opensuse-111/"> Pre-order openSUSE 11.1</a> -<span class="clear"> </span></li><li><strong>Dec 07:</strong> <a href="http://news.opensuse.org/2008/12/07/opensuse-weekly-news-issue-49/"> openSUSE Weekly News, Issue 49</a> -<span class="clear"> </span></li><li><strong>Dec 04:</strong> <a href="http://news.opensuse.org/2008/12/04/opensuse-education-10-beta2-for-opensuse-111/"> openSUSE-Education: Live-CD, CD-Cover and 1.0 Beta 2 for openSUSE 11.1</a> <span class="clear"> </span></li></ul> \ No newline at end of file I would think that this change happened after we deployed that directory on that host, and wouldn't expect a local change. Is this something that gets changed through the admin interface as well? Or is it in fact content that's pulled from news.o.o once in a while, and the file therefore receives local changes? Should it be committed to svn? Does the change propagate to the other servers automatically? Thanks, Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Peter Poeml schrieb am Dienstag 16 Dezember 2008:
I would think that this change happened after we deployed that directory on that host, and wouldn't expect a local change. Is this something that gets changed through the admin interface as well?
Nope, only "whats_hot.html" files can be changed via the WYSIWYG editor.
Or is it in fact content that's pulled from news.o.o once in a while, and the file therefore receives local changes?
That's correct! A cronjob calls /rss_client/refresh_frontpage_news.php every now and then. This little script renders the RSS newsfeed as static HTML snippet (/news.html) which is pulled into the website via SSI (server-side includes).
Should it be committed to svn?
No need for that. Even a new checkout would be updated automatically as soon as the cronjob calls the refresh-script.
Does the change propagate to the other servers automatically?
The news.html file resides on www.opensuse.org. I now that two servers are used to load-balance the website, but I never noticed that the news section was out of sync. So I guess Mike Cronquist made sure that the generation php script is either called on oth machines or that the resulting HTML snippet is synchronized between them. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
On Tue, Dec 16, 2008 at 02:51:27PM +0100, Andreas Demmer wrote:
Peter Poeml schrieb am Dienstag 16 Dezember 2008:
I would think that this change happened after we deployed that directory on that host, and wouldn't expect a local change. Is this something that gets changed through the admin interface as well?
Nope, only "whats_hot.html" files can be changed via the WYSIWYG editor.
Or is it in fact content that's pulled from news.o.o once in a while, and the file therefore receives local changes?
That's correct! A cronjob calls /rss_client/refresh_frontpage_news.php every now and then. This little script renders the RSS newsfeed as static HTML snippet (/news.html) which is pulled into the website via SSI (server-side includes).
Should it be committed to svn?
No need for that. Even a new checkout would be updated automatically as soon as the cronjob calls the refresh-script.
Does the change propagate to the other servers automatically?
The news.html file resides on www.opensuse.org. I now that two servers are used to load-balance the website, but I never noticed that the news section was out of sync. So I guess Mike Cronquist made sure that the generation php script is either called on oth machines or that the resulting HTML snippet is synchronized between them.
Great, thanks for the explanation. Now it all makes sense. I have put it on my list to check on all current servers (4 since last night). Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Hi Andreas, On Tue, Dec 16, 2008 at 02:51:27PM +0100, Andreas Demmer wrote:
Peter Poeml schrieb am Dienstag 16 Dezember 2008:
I would think that this change happened after we deployed that directory on that host, and wouldn't expect a local change. Is this something that gets changed through the admin interface as well?
Nope, only "whats_hot.html" files can be changed via the WYSIWYG editor.
Or is it in fact content that's pulled from news.o.o once in a while, and the file therefore receives local changes?
That's correct! A cronjob calls /rss_client/refresh_frontpage_news.php every now and then. This little script renders the RSS newsfeed as static HTML snippet (/news.html) which is pulled into the website via SSI (server-side includes).
Should it be committed to svn?
No need for that. Even a new checkout would be updated automatically as soon as the cronjob calls the refresh-script.
Okay, there is now a local cron job on each machine which does this hourly too - so that every machine gets it. It's done at 30 minutes after clock hour, so it doesn't conflict with your cron job. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Hi Andreas, On Fri, Dec 12, 2008 at 01:01:42PM +0100, Andreas Demmer wrote:
Hi,
I changed all stylesheet/javascript /image links of the openSUSE frontpage. They now point hard-coded to frontpage SVN checkout on static.opensuse.org
There are some links on the start page which don't point to static yet. Small oversight? ndex: sk/index.shtml =================================================================== --- sk/index.shtml (revision 5909) +++ sk/index.shtml (working copy) @@ -11,8 +11,8 @@ <!--[if IE 7]> <link rel="Stylesheet" rev="Stylesheet" href="http://static.opensuse.org/hosts/www.o.o/css/frontpage.ie7.css" type="text/css" media="screen" /> <![endif]--> - <link href="/css/jquery.jcarousel.css" rel="stylesheet" type="text/css" media="screen" /> - <link href="/css/jquery.jcarousel.skin.opensuse.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="http://static.opensuse.org/hosts/www.o.o/css/css/jquery.jcarousel.css" rel="stylesheet" type="text/css" media="screen" /> + <link href="http://static.opensuse.org/hosts/www.o.o/css/css/jquery.jcarousel.skin.opens..." rel="stylesheet" type="text/css" media="screen" /> <script type="text/javascript" src="http://static.opensuse.org/hosts/www.o.o/js/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://static.opensuse.org/hosts/www.o.o/js/jquery.selectbox.js"></script> <script type="text/javascript" src="http://static.opensuse.org/hosts/www.o.o/js/jquery.dimensions.js"></script> @@ -196,4 +196,4 @@ <script type="text/javascript" src="http://www.novell.com/inc/superstats.js"></script> <noscript><img src="https://novellcom.112.2O7.net/b/ss/novellcom/1/G.6--NS/0" height="1" width="1" alt="" title="" /></noscript> </body> -</html> \ No newline at end of file +</html> I'll change them unless somebody vetoes. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
Peter Poeml wrote:
I'll change them unless somebody vetoe
Argh, I missed the links indeed! Please make sure to change the links in _ALL_ translations. Since the according line of codes are identical through all of the translations, a simple side-wide search&replace should do it. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
Andreas Demmer wrote:
Please make sure to change the links in _ALL_ translation
Ah, I see you already did! :-) But you broke two css links in the sk translation, i fixed them in SVN trunk. Greets, Andreas -- Skype: andreas.demmer ICQ: 103 924 771 http://www.andreas-demmer.de
On Thu, Dec 18, 2008 at 08:30:58AM +0100, Andreas Demmer wrote:
Andreas Demmer wrote:
Please make sure to change the links in _ALL_ translation
Ah, I see you already did! :-) But you broke two css links in the sk
Yes, I changed them all.
translation, i fixed them in SVN trunk.
Oops. Good catch! Thank you. Mike, something to deploy :-) Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
participants (4)
-
Andreas Demmer
-
Christian Boltz
-
Peter Poeml
-
Robert Lihm