You are not logged in.
What is it?
arch-home is a webpy script that generates an Arch Linux homepage.
Community Inspired
CodeBlock originally came up with the basic design. http://bbs.archlinux.org/viewtopic.php?id=69554&p=1
I liked it and wanted to expand on the idea.
Source
http://github.com/pyther/arch-home
Link
http://home.archlinux.ca - Big thanks to Dusty for hosting this!
Last edited by pyther (2011-12-10 22:53:18)
Offline
Nice, but you should escape ampersands in urls.
Replace:
rchlinux.org/viewtopic.php?id=69554&p=1">community</a>. Source at <a href="ht
with:
rchlinux.org/viewtopic.php?id=69554&p=1">community</a>. Source at <a href="ht
Also since it's valid XHTML why don't you serve it with mime type "application/xhtml+xml" so our web browsers can process it as xml?
Last edited by 9nqksfhn (2009-07-25 17:14:30)
Offline
Offline
OK, I'll explain.
Basically when HTML is rendered; if the code is incorrect and has tags all over the place etc web browsers try to automatically correct the errors and still display the web page, without giving an error. This has three problems:
1. It is hard to write correct code because the web browser does not tell you when you make a mistake.
2. It massively increases the amount of processing power needed to render the page and the complexity of the web browser's rendering engine.
3. It means that websites written for one web browser are less likely to work in other web-browsers because the error correction handling of different web browsers might be different.
So the w3c created XHTML; an application of XML, because XML does not tollerate errors so it solves the above problems.
XHTML 1.0, which you have written that page in, is backwards compatible XHTML; it works as either HTML or XHTML. You are currently serving it as html. Type: "curl -I http://arch.pyther.net/"
The http-equiv setting makes no difference because the http headers overwride it. In order to make web browsers process it as XML you need to change the http headers. I think you need to change this in /etc/lighttpd/lighttpd.conf
Microsoft Internet Explorer does not support rendering XHTML as XML, which is why most webservers use text/html by default. But since people who use IE aren't likely to use that page you might as well serve it as XHTML to save a bit of electricity and make the page load faster.
Offline
Ahh okay thanks for explaining! That is very interesting and I'm surprised IE8 doesn't support it either, considering IE8 has been getting better at supporting css.
I implemented the feature and its in git right now. I simply added web.header('Content-Type','application/xhtml+xml;') in index.py
Thank you
Offline
Offline
Nicely written, I just quite doubt about the power saving argument. It sounds like "I don't drink much water to make rivers cleaner." Most users will probably prefer viewing an invalid page to saving power parsing it. But right, I think I know what you mean.
Offline
Offline
Nicely written, I just quite doubt about the power saving argument. It sounds like "I don't drink much water to make rivers cleaner." Most users will probably prefer viewing an invalid page to saving power parsing it. But right, I think I know what you mean.
Don't valid pages render faster, since the engine does less error checking etc?
I ask because I'm not sure, in my tests XML renders much faster than invalid HTML for larger pages, and much slower for the smallest pages, I'm not sure what that means about the page speed though.
Offline
I am not much into it but it seems probable. Note that crossing tags and things like this are not allowed in HTML either. The main difference is only that the engine doesn't try to figure out what was meant.
Your tests are interesting, there must be a speed benchmark out there.
Offline
Huge thanks goes out to Dusty for hosting arch-home!
Offline
Nice. Homepage'd
Offline
Really nice! Now if we can get google to replace their search engine with ours, we can have world domination!
EDIT: Actually I was thinking, why not have a dedicated tab for this on this site? Where the Home, Forums, Wiki, Bugs, AUR, Download tabs are?
Last edited by Acecero (2009-07-26 01:41:21)
Offline
Version 0.7 has been released. http://github.com/pyther/arch-home/tarball/0.7
A special thanks to Dusty for helping me with the CSS/Design and again for the hosting!
Noteworthy items:
*i686 and x86_64 design was updated
*CSS uses ems instead of pixels. This should cause arch-home to render better with various resolutions.
Offline
Could you post the source on github instead of the tar ball please?
Offline
It is already on github: http://github.com/pyther/arch-home/tree/master
Offline
Offline
Not capable of technical contributions, sorry.
But could the word 'google' link to google.com, equivalent to what the other words (forums, wiki etc) do, to make it easier to get to image searches and so forth?
Great idea though!
Offline
Cheers
ETA:
Thinking about it, RECENT UPDATES could sensibly link to http://www.archlinux.org/packages/?sort=-last_update as well...
Or even X86_64 to http://www.archlinux.org/packages/?sort … =&limit=50 and i686 http://www.archlinux.org/packages/?sort … =&limit=50
(though that might be overkill... )
Last edited by Confuseling (2009-08-04 12:33:39)
Offline
Nice work, pyther!
Offline
uau!
I was just going to suggest you to make the "Forums", "Wiki", "Aur", etc actual links for the respective places, but it is already like that!
Thanks for a wonderful job!
Offline
Edit: Wrong thread. Opps.
Last edited by simongmzlj (2009-08-10 02:28:54)
Offline
how do u set this up on my as a localhost instead of using the webserver
Say what is good or keep silent --Prophet Muhammad (SAW)
Offline
Well you can set it up on a local apache or lighttpd server, however for your needs, it might be easier to just use the basic webpy server.
To do that you need the following packages:
python-feedparser, feedcache (aur), python-flup, and of course python
Then just extract it and run ./index.py
That should set the server up on port 8080. Do not put your server online using the webpy backend as it is by no means secure!
Offline