From abc123c0d8c3d05b4bcfdca4e2aa211017f8f4cb Mon Sep 17 00:00:00 2001 From: Tim Lossen Date: Thu, 17 Dec 2009 10:04:30 +0100 Subject: [PATCH] improved spidering --- files.txt | 46 ------------------------------------ spider.sh => generate_www.sh | 2 +- views/chart.erb | 12 +++++++++- 3 files changed, 12 insertions(+), 48 deletions(-) delete mode 100644 files.txt rename spider.sh => generate_www.sh (81%) mode change 100644 => 100755 diff --git a/files.txt b/files.txt deleted file mode 100644 index 8b8189d..0000000 --- a/files.txt +++ /dev/null @@ -1,46 +0,0 @@ -http://localhost:8000/charts/us-west-1.linux.m1.large.xml -http://localhost:8000/charts/us-east-1.linux.m2.4xlarge.xml -http://localhost:8000/charts/us-east-1.linux.m1.small.xml -http://localhost:8000/charts/us-west-1.linux.m1.small.xml -http://localhost:8000/charts/us-east-1.linux.m1.large.xml -http://localhost:8000/charts/eu-west-1.linux.c1.xlarge.xml -http://localhost:8000/charts/us-east-1.linux.c1.medium.xml -http://localhost:8000/charts/eu-west-1.linux.m1.small.xml -http://localhost:8000/charts/us-west-1.linux.c1.medium.xml -http://localhost:8000/charts/us-west-1.linux.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.linux.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.linux.m1.large.xml -http://localhost:8000/charts/us-west-1.linux.m1.xlarge.xml -http://localhost:8000/charts/us-east-1.linux.c1.xlarge.xml -http://localhost:8000/charts/us-east-1.linux.m1.xlarge.xml -http://localhost:8000/charts/eu-west-1.linux.c1.medium.xml -http://localhost:8000/charts/us-west-1.linux.c1.xlarge.xml -http://localhost:8000/charts/us-west-1.linux.m2.4xlarge.xml -http://localhost:8000/charts/us-east-1.linux.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.linux.m2.4xlarge.xml -http://localhost:8000/charts/eu-west-1.linux.m1.xlarge.xml -http://localhost:8000/charts/us-west-1.windows.m1.large.xml -http://localhost:8000/charts/us-east-1.windows.m2.4xlarge.xml -http://localhost:8000/charts/us-east-1.windows.m1.small.xml -http://localhost:8000/charts/us-west-1.windows.m1.small.xml -http://localhost:8000/charts/us-east-1.windows.m1.large.xml -http://localhost:8000/charts/eu-west-1.windows.c1.xlarge.xml -http://localhost:8000/charts/us-east-1.windows.c1.medium.xml -http://localhost:8000/charts/eu-west-1.windows.m1.small.xml -http://localhost:8000/charts/us-west-1.windows.c1.medium.xml -http://localhost:8000/charts/us-west-1.windows.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.windows.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.windows.m1.large.xml -http://localhost:8000/charts/us-west-1.windows.m1.xlarge.xml -http://localhost:8000/charts/us-east-1.windows.c1.xlarge.xml -http://localhost:8000/charts/us-east-1.windows.m1.xlarge.xml -http://localhost:8000/charts/eu-west-1.windows.c1.medium.xml -http://localhost:8000/charts/us-west-1.windows.c1.xlarge.xml -http://localhost:8000/charts/us-west-1.windows.m2.4xlarge.xml -http://localhost:8000/charts/us-east-1.windows.m2.2xlarge.xml -http://localhost:8000/charts/eu-west-1.windows.m2.4xlarge.xml -http://localhost:8000/charts/eu-west-1.windows.m1.xlarge.xml -http://localhost:8000/amstock/amstock.swf -http://localhost:8000/favicon.ico -http://localhost:8000/ - diff --git a/spider.sh b/generate_www.sh old mode 100644 new mode 100755 similarity index 81% rename from spider.sh rename to generate_www.sh index d96c6b7..fb19e83 --- a/spider.sh +++ b/generate_www.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -wget -r -i files.txt +wget -r http://localhost:8000 cp -r localhost\:8000/* www rm -rf localhost\:8000 cp www/charts/eu-west-1.linux.m1.small.html www/index.html \ No newline at end of file diff --git a/views/chart.erb b/views/chart.erb index 7af322c..115d102 100644 --- a/views/chart.erb +++ b/views/chart.erb @@ -14,6 +14,7 @@ h3 { font-size: 110%; } .navigation { margin-top: 2em; } .footer { margin-top: 4em; font-size: 70%; text-align: right; } + .invisible { display: none; } @@ -28,7 +29,6 @@
-
You need to upgrade your Flash Player @@ -41,6 +41,10 @@ so.addVariable("preloader_color", "#999999"); so.write("flashcontent"); + +

+ download data +

<% @regions.each do |region| %> @@ -75,6 +79,12 @@
+ +