Re: [aur-dev] [PATCH 3/5] Remove Dummy Package concept

2011-04-04 Thread Lukas Fleischer
On Wed, Mar 30, 2011 at 08:48:09PM -0500, Dan McGee wrote:
 Instead, we just store dependencies directly in the PackageDepends
 table. Since we don't use this info anywhere besides the package details
 page, there is little value in precalculating what is in the AUR vs.
 what is not.
 
 An upgrade path is provided via several SQL statements in the UPGRADING
 document. There should be no user-visible change from this, but the DB
 schema gets a bit more sane and we no longer have loads of junk packages
 in our tables that are never shown to the end user. This should also
 help the MySQL query planner in several cases as we no longer have to be
 careful to exclude dummy packages on every query.
 
 Signed-off-by: Dan McGee d...@archlinux.org
 ---
  UPGRADING |   12 
  support/schema/aur-schema.sql |5 +--
  support/scripts/newpackage-notify |2 +-
  web/html/pkgsubmit.php|   17 ++
  web/html/rss.php  |1 -
  web/lib/aur.inc   |3 +-
  web/lib/aurjson.class.php |4 +-
  web/lib/pkgfuncs.inc  |   56 +++-
  web/lib/stats.inc |4 +-
  web/template/pkg_details.php  |   21 -
  10 files changed, 41 insertions(+), 84 deletions(-)

Just a short feedback: Those patches have already been in my working
tree for a few days now. I will double-check if there are no side
effects - especially with the dummy package removal - before merging and
pushing tho (just to be sure there's no unexpected breakage, e.g. this
one will remove all dummy package pages, like [1] - tho they're broken
anyways and have probably never been used by anyone).

[1] https://aur.archlinux.org/packages.php?ID=42


[aur-dev] Some optimization patches

2011-04-04 Thread elij
My apologies for splitting these changes into so many patches, but 
apparently the Arch mailman instance will not let anything larger
than 40k though (and I got feedback that there is something amiss
regarding the mailman setup -- this is here nor there though).

These patches are mostly optimizations for content delivery.
- merge css into fewer files to reduce number of files. this makes for faster
  end user delivery as there are fewer http requests (fewer tcp connections,
  whether the response is 200/ok or 304/not-modified).
- created minimized versions of css. this reduced css size by 3.3K (24%) the
  originals are retained for ease of editing and reference
- split out ie6 css into a separate file, and use 'conditional stylesheet
  inclusion' so that only ie6 fetches that stylesheet.
- optimize logo png file -- this was a 22% (1K)



[aur-dev] [PATCH 2/7] add minified aur css

2011-04-04 Thread elij
---
 web/html/css/aur.min.css |  148 ++
 1 files changed, 148 insertions(+), 0 deletions(-)
 create mode 100644 web/html/css/aur.min.css

diff --git a/web/html/css/aur.min.css b/web/html/css/aur.min.css
new file mode 100644
index 000..51380bb
--- /dev/null
+++ b/web/html/css/aur.min.css
@@ -0,0 +1,148 @@
+span{color:#555;font-family:Bitstream Vera Sans, Lucida Grande, Arial, sans-serif;}
+span.f1{font-size:20px;letter-spacing:1px;}
+span.f2{font-size:14px;color:#6c83b0;font-weight:bold;}
+span.f3{color:#888;font-size:14px;font-weight:bold;padding-right:2px;}
+span.f4{color:#444;font-size:12px;}
+span.f5{color:#333;font-size:11px;}
+span.f6{color:#b06d6e;font-size:14px;font-weight:bold;}
+span.f7{color:#6db06d;font-size:14px;font-weight:bold;}
+span.f8{color:#888;font-size:12px;font-weight:bold;}
+span.fix{color:#000;font-family:monospace, fixed, terminal;font-size:12px;}
+span.error{color:#900;font-size:12px;}
+span.warning{color:#c0c000;font-size:12px;}
+.blue{color:#6c83b0;}
+.white{color:#fff;}
+.black{color:#000;}
+.green{color:#6db06d;}
+.outofdate .blue{color:#444;}
+.link{color:#6c83b0;font-weight:bold;}
+span.preHeader{color:#c9d1e2;font-weight:bold;font-size:11px;padding-right:8px;word-spacing:8px;}
+span.sideBarSmallHeader{color:#fff;font-weight:bold;font-size:11px;padding-right:8px;}
+a{color:#0771a6;text-decoration:none;font-weight:bold;}
+a:hover{color:#333;text-decoration:none;font-weight:bold;}
+h1, h2, h3, h4{font-size:16pt;}
+.important{font-weight:bold;color:#f00;}
+body, table, td, img{border:none;margin:0;padding:0;}
+td.preHeader{background-color:#000;border-bottom:1px solid #455471;height:16px;text-align:right;}
+td.headerFill{background-color:#6c83b0;border-bottom:1px solid #000;}
+td.headerDisplay{background-color:#6c83b0;padding-left:16px;}
+td.mainLinks{background-color:#eee;border-bottom:1px solid #000;height:22px;padding-left:12px;}
+td.sideBar{background-color:#fff;text-align:center;vertical-align:top;width:150px;}
+td.sideBarGrey{background-color:#eee;border-bottom:1px solid #000;vertical-align:top;width:150px;}
+td.sideBarSmall{background-color:#6c83b0;border-bottom:1px solid #000;height:16px;text-align:right;width:150px;}
+td.sideBarSmallHeader{background-color:#6c83b0;vertical-align:top;height:16px;padding-top:1px;padding-bottom:2px;text-align:right;width:150px;}
+td.subLinks{background-color:#ffe4e8;border-right:1px solid #000;color:#787878;padding-left:12px;height:19px;}
+td.contentDisplay{background-color:#fff;border:1px solid #000;border-top:none;text-align:center;vertical-align:top;padding:10px;}
+td.footerDisplay{background-color:#eee;border-bottom:1px solid #000;text-align:center;}
+table.boxSoft{width:90%;background-color:#ddd;}
+td.boxSoft{background-color:#fff;padding:2px;}
+td.boxSoftColumn{padding-left:16px;padding-right:16px;text-align:justify;vertical-align:top;text-indent:20px;}
+td.div{background-color:#eee;width:3px;}
+.boxSoftTitle{border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#f1f2f4;padding:1px 0 0 3px;}
+table.boxSoftSmall{width:94px;background-color:#ddd;}
+td.boxSoftSmall{background-color:#fff;text-align:center;padding-top:2px;padding-bottom:2px;}
+td.boxSoftSmallTitle{border-bottom:1px solid #ccc;background-color:#f1f2f4;padding-left:10px;}
+td.ss{padding-left:6px;vertical-align:top;}
+td.display{border-bottom:1px solid #000;padding-bottom:6px;}
+td.features{padding:4px;text-align:justify;vertical-align:top;}
+td.formLeft{padding:6px;vertical-align:top;}
+td.data1{background-color:#eee;vertical-align:top;padding-left:.3em;}
+td.data2{background-color:#ddd;vertical-align:top;padding-left:.3em;}
+.outofdate{background-color:#faa;padding-left:.3em;}
+.legend span{padding:1px;margin-left:.3em;border:solid 1px #888;}
+td.text{color:#000;font-size:12px;}
+th{text-align:left;}
+th.header{border-bottom:#666 1px solid;vertical-align:bottom;}
+fieldset{border:none;}
+input, textarea, select{background-color:#6c83b0;font-family:monospace;font-size:12px;background-color:#ccc;border:#000 1px solid;color:#111;}
+input.button{background-color:#fff;color:#6c83b0;border:1px solid #6c83b0;font-size:12px;padding:2px 8px;}
+input[type=image]{border:0;background:none;}*{margin:0;padding:0;}
+* ul{padding:20px;}
+body{min-width:600px;background-color:white;color:#555;font-family:DejaVu Sans, sans-serif;font-size:12px;}
+#title{display:block;position:relative;height:123px;}
+#main_nav, #sub_nav{list-style:none;font-size:13px;line-height:26px;padding:0 32px;}
+#main_nav{background-color:#333;text-align:right;}
+#sub_nav{min-width:700px;background-color:#1793d1;text-align:right;}
+#main_nav a.selected{background-color:#1793d1;}
+#sub_nav a.selected{background-color:#333;}
+#main_nav a, #sub_nav a{padding:5px 9px;line-height:26px;color:#fff;font-weight:bold;text-decoration:none;}
+#main_nav a:hover{background-color:#1793d1;}
+#sub_nav a:hover{background-color:#333;}

[aur-dev] [PATCH 4/7] split out the ie6 css into ie6 specific css file

2011-04-04 Thread elij
---
 web/html/css/archnavbar/archnavbar.css |6 +-
 web/html/css/archnavbar/ie6.css|2 ++
 2 files changed, 3 insertions(+), 5 deletions(-)
 create mode 100644 web/html/css/archnavbar/ie6.css

diff --git a/web/html/css/archnavbar/archnavbar.css b/web/html/css/archnavbar/archnavbar.css
index e8ade28..dd69382 100644
--- a/web/html/css/archnavbar/archnavbar.css
+++ b/web/html/css/archnavbar/archnavbar.css
@@ -10,11 +10,7 @@
 #archnavbar { height: 40px !important; padding: 10px 15px !important; background: #333 !important; border-bottom: 5px #08c solid !important; }
 
 /* logo trickery -- GIF for IE6 and PNG for the rest */
-#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 !important; height: 40px !important; width: 190px !important; }
-/* IE6 doesn't support alpha PNGs so we serve it a GIF */
-#archnavbarlogo { background: url('archlogo.gif') no-repeat !important; }
-/* and use a proper PNG for all other modern browsers */
-html  body #archnavbarlogo { background: url('archlogo.png') no-repeat !important; }
+#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 !important; height: 40px !important; width: 190px !important; background: url('archlogo.png') no-repeat !important; }
 
 /* move the heading/paragraph text offscreen */
 #archnavbarlogo p { margin: 0 !important; padding: 0 !important; text-indent: -px !important; }
diff --git a/web/html/css/archnavbar/ie6.css b/web/html/css/archnavbar/ie6.css
new file mode 100644
index 000..3f5b072
--- /dev/null
+++ b/web/html/css/archnavbar/ie6.css
@@ -0,0 +1,2 @@
+/* IE6 doesn't support alpha PNGs so we serve it a GIF */
+#archnavbarlogo { background: url('archlogo.gif') no-repeat !important; }


[aur-dev] [PATCH 3/7] add minified archnavbar css

2011-04-04 Thread elij
---
 web/html/css/archnavbar/archnavbar.min.css |   16 
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 web/html/css/archnavbar/archnavbar.min.css

diff --git a/web/html/css/archnavbar/archnavbar.min.css b/web/html/css/archnavbar/archnavbar.min.css
new file mode 100644
index 000..b4448cf
--- /dev/null
+++ b/web/html/css/archnavbar/archnavbar.min.css
@@ -0,0 +1,16 @@
+#archnavbar{height:40px !important;padding:10px 15px !important;background:#333 !important;border-bottom:5px #08c solid !important;}
+#archnavbarlogo{float:left !important;margin:0 !important;padding:0 !important;height:40px !important;width:190px !important;background:url('archlogo.png') no-repeat !important;}
+#archnavbarlogo p{margin:0 !important;padding:0 !important;text-indent:-px !important;}
+#archnavbarlogo h1{margin:0 !important;padding:0 !important;text-indent:-px !important;}
+#archnavbarlogo a{display:block !important;height:40px !important;width:190px !important;}
+#archnavbar ul{display:inline !important;float:right !important;list-style:none !important;margin:0 !important;padding:0 !important;}
+#archnavbar ul li{float:left !important;font-size:14px !important;font-family:sans-serif !important;line-height:45px !important;padding-right:15px !important;padding-left:15px !important;}
+#archnavbar ul#archnavbarlist li a{color:#999;font-weight:normal !important;text-decoration:none !important;}
+#archnavbar ul li a:hover{color:white !important;text-decoration:underline !important;}
+div#archdev-navbar{margin:1.5em 25px;}
+div#archdev-navbar ul{list-style:none;margin:-0.5em 0;padding:0;}
+div#archdev-navbar li{display:inline;margin:0;padding:0;font-size:0.9em;}
+div#archdev-navbar li a{padding:0 0.5em;color:#07b;}
+#archnavbar.anb-aur ul li#anb-aur a{color:white !important;}
+#archnavbar ul#archnavbarlist li a{color:#999;font-weight:bold !important;text-decoration:none !important;}
+#archnavbar ul li a:hover{color:white !important;text-decoration:underline !important;}
\ No newline at end of file


[aur-dev] [PATCH 5/7] use new css files in header template

2011-04-04 Thread elij
---
 web/template/header.php |9 +
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/web/template/header.php b/web/template/header.php
index 0f0e362..5862852 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -5,10 +5,11 @@
 	xml:lang=?php print $LANG\ lang=\$LANG; ?
   head
 titleAUR (?php print $LANG; ?)?php if ($title != ) { print  -  . $title; } ?/title
-	link rel='stylesheet' type='text/css' href='css/fonts.css' /
-	link rel='stylesheet' type='text/css' href='css/containers.css' /
-	link rel='stylesheet' type='text/css' href='css/arch.css' /
-	link rel='stylesheet' type='text/css' href='css/archnavbar/archnavbar.css' /
+	link rel='stylesheet' type='text/css' href='css/aur.min.css' /
+	link rel='stylesheet' type='text/css' href='css/archnavbar/archnavbar.min.css' /
+!--[if IE 6]
+link rel='stylesheet' type='text/css' href='css/archnavbar/ie6.css' /
+![endif]--
 	link rel='shortcut icon' href='images/favicon.ico' /
 	link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='rss.php' /
 	meta http-equiv=Content-Type content=text/html; charset=UTF-8 /


[aur-dev] [PATCH 7/7] specify dimensions for images

2011-04-04 Thread elij

- some html renderers work faster/better if you specify image dimensions to
  avoid reflow/repaits
---
 web/template/stats/updates_table.php |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index b9f6d6d..55ebf96 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -2,7 +2,7 @@
 tr
 th colspan=2 class=boxSoftTitle style=text-align: right
 span class=f3?php print __(Recent Updates) ?span class=f5/span/span
-a href=rss.phpimg src=images/feed-icon-14x14.png alt=RSS Feed //a
+a href=rss.phpimg src=images/feed-icon-14x14.png width=14 height=14 alt=RSS Feed //a
 /th
 /tr
 
@@ -23,7 +23,7 @@ $sub_int = intval($row[SubmittedTS]);
 if ($mod_int != 0):
   $modstring = gmdate(r, $mod_int);
 elseif ($sub_int != 0):
-  $modstring = 'img src=images/new.gif alt=New! / ' . gmdate(r, $sub_int);
+  $modstring = 'img src=images/new.gif width=31 height=12 alt=New! / ' . gmdate(r, $sub_int);
 else:
   $modstring = '(unknown)';
 endif;


Re: [aur-dev] Some optimization patches

2011-04-04 Thread elij
On Mon, Apr 4, 2011 at 2:20 PM, elij elij...@gmail.com wrote:
 My apologies for splitting these changes into so many patches, but
 apparently the Arch mailman instance will not let anything larger
 than 40k though (and I got feedback that there is something amiss
 regarding the mailman setup -- this is here nor there though).

 These patches are mostly optimizations for content delivery.
 - merge css into fewer files to reduce number of files. this makes for faster
  end user delivery as there are fewer http requests (fewer tcp connections,
  whether the response is 200/ok or 304/not-modified).
 - created minimized versions of css. this reduced css size by 3.3K (24%) the
  originals are retained for ease of editing and reference
 - split out ie6 css into a separate file, and use 'conditional stylesheet
  inclusion' so that only ie6 fetches that stylesheet.
 - optimize logo png file -- this was a 22% (1K)

So, it looks like mailman gobbled my patches _again_ (3rd time was not
a charm), saying 'a non text attachment was scrubbed' when the patches
*are* text files (patch.txt).

At this point I am giving up on sending them via the mailing list.
If someone wants the patches, let me know and I will send them a
tarball or post them somewhere.


Re: [aur-dev] Some optimzation patches

2011-04-04 Thread Lukas Fleischer
On Sun, Apr 03, 2011 at 08:41:27PM -0700, elij wrote:
 Here are some patches that optimze a few things:
 
 - combine css for faster delivery (fewer tcp connections)
 - minimize css (faster delivery, bandwidth reduction)
   note: originals are retained for later editing and re-minimization
 - optimize png file
 - specific image dimensions in a few places where they were missing
 - move ie specific style (archnav bg image) to a separate stylesheet
   and include conditionally

Seems like you forgot to submit a whole bunch of patches... I only got
the PNG file optimization and the image dimension patches so far.

Imho, we should also be careful with optimizing code for the sake of
bandwidth reduction and speed. Most modern browsers have caching enabled
by default, so most of those performance improvements will only come
into operation once. I'll accept any patches as long as they don't have
an impact on maintainability. Things like merging modular files into a
single monster probably do.


Re: [aur-dev] Some optimzation patches

2011-04-04 Thread elij
On Mon, Apr 4, 2011 at 2:30 PM, Lukas Fleischer
archli...@cryptocrack.de wrote:
 On Sun, Apr 03, 2011 at 08:41:27PM -0700, elij wrote:
 Here are some patches that optimze a few things:

 - combine css for faster delivery (fewer tcp connections)
 - minimize css (faster delivery, bandwidth reduction)
   note: originals are retained for later editing and re-minimization
 - optimize png file
 - specific image dimensions in a few places where they were missing
 - move ie specific style (archnav bg image) to a separate stylesheet
   and include conditionally

 Seems like you forgot to submit a whole bunch of patches... I only got
 the PNG file optimization and the image dimension patches so far.

I didn't forget. Mailman ate them. Aaron said there was something goofy going
on with the mainman config. I will try submitting them _one last time_ using
format-patch --inline instead of attach, and see if that makes a difference.

 Imho, we should also be careful with optimizing code for the sake of
 bandwidth reduction and speed. Most modern browsers have caching enabled
 by default, so most of those performance improvements will only come
 into operation once. I'll accept any patches as long as they don't have
 an impact on maintainability. Things like merging modular files into a
 single monster probably do.

I guess it is up to you whether you want to include them or not.
Caching is well and good
if you have very long cache lifetimes. The aur appears to be
configured for about 10 days into the future for expires headers.

Also realize that to perform if-modified-since requests, the browser
makes connections. Reducing the file counts (merging css files)
reduces both tcp connections (whether response is 200 ok or 304 not
modified) as well as wait time (waiting for responses for
if-modified-since requests). Minimizing css files also reduces size.


[aur-dev] Some optimization patches

2011-04-04 Thread elij
Trying to send these patches one final time, using 'inline' at 
Aaron's suggestion. Here goes.

---

My apologies for splitting these changes into so many patches, but 
apparently the Arch mailman instance will not let anything larger
than 40k though (and I got feedback that there is something amiss
regarding the mailman setup -- this is here nor there though).

These patches are mostly optimizations for content delivery.
- merge css into fewer files to reduce number of files. this makes for faster
  end user delivery as there are fewer http requests (fewer tcp connections,
  whether the response is 200/ok or 304/not-modified).
- created minimized versions of css. this reduced css size by 3.3K (24%) the
  originals are retained for ease of editing and reference
- split out ie6 css into a separate file, and use 'conditional stylesheet
  inclusion' so that only ie6 fetches that stylesheet.
- optimize logo png file -- this was a 22% (1K)



[aur-dev] [PATCH 2/7] add minified aur css

2011-04-04 Thread elij
---
 web/html/css/aur.min.css |  148 ++
 1 files changed, 148 insertions(+), 0 deletions(-)
 create mode 100644 web/html/css/aur.min.css

diff --git a/web/html/css/aur.min.css b/web/html/css/aur.min.css
new file mode 100644
index 000..51380bb
--- /dev/null
+++ b/web/html/css/aur.min.css
@@ -0,0 +1,148 @@
+span{color:#555;font-family:Bitstream Vera Sans, Lucida Grande, Arial, sans-serif;}
+span.f1{font-size:20px;letter-spacing:1px;}
+span.f2{font-size:14px;color:#6c83b0;font-weight:bold;}
+span.f3{color:#888;font-size:14px;font-weight:bold;padding-right:2px;}
+span.f4{color:#444;font-size:12px;}
+span.f5{color:#333;font-size:11px;}
+span.f6{color:#b06d6e;font-size:14px;font-weight:bold;}
+span.f7{color:#6db06d;font-size:14px;font-weight:bold;}
+span.f8{color:#888;font-size:12px;font-weight:bold;}
+span.fix{color:#000;font-family:monospace, fixed, terminal;font-size:12px;}
+span.error{color:#900;font-size:12px;}
+span.warning{color:#c0c000;font-size:12px;}
+.blue{color:#6c83b0;}
+.white{color:#fff;}
+.black{color:#000;}
+.green{color:#6db06d;}
+.outofdate .blue{color:#444;}
+.link{color:#6c83b0;font-weight:bold;}
+span.preHeader{color:#c9d1e2;font-weight:bold;font-size:11px;padding-right:8px;word-spacing:8px;}
+span.sideBarSmallHeader{color:#fff;font-weight:bold;font-size:11px;padding-right:8px;}
+a{color:#0771a6;text-decoration:none;font-weight:bold;}
+a:hover{color:#333;text-decoration:none;font-weight:bold;}
+h1, h2, h3, h4{font-size:16pt;}
+.important{font-weight:bold;color:#f00;}
+body, table, td, img{border:none;margin:0;padding:0;}
+td.preHeader{background-color:#000;border-bottom:1px solid #455471;height:16px;text-align:right;}
+td.headerFill{background-color:#6c83b0;border-bottom:1px solid #000;}
+td.headerDisplay{background-color:#6c83b0;padding-left:16px;}
+td.mainLinks{background-color:#eee;border-bottom:1px solid #000;height:22px;padding-left:12px;}
+td.sideBar{background-color:#fff;text-align:center;vertical-align:top;width:150px;}
+td.sideBarGrey{background-color:#eee;border-bottom:1px solid #000;vertical-align:top;width:150px;}
+td.sideBarSmall{background-color:#6c83b0;border-bottom:1px solid #000;height:16px;text-align:right;width:150px;}
+td.sideBarSmallHeader{background-color:#6c83b0;vertical-align:top;height:16px;padding-top:1px;padding-bottom:2px;text-align:right;width:150px;}
+td.subLinks{background-color:#ffe4e8;border-right:1px solid #000;color:#787878;padding-left:12px;height:19px;}
+td.contentDisplay{background-color:#fff;border:1px solid #000;border-top:none;text-align:center;vertical-align:top;padding:10px;}
+td.footerDisplay{background-color:#eee;border-bottom:1px solid #000;text-align:center;}
+table.boxSoft{width:90%;background-color:#ddd;}
+td.boxSoft{background-color:#fff;padding:2px;}
+td.boxSoftColumn{padding-left:16px;padding-right:16px;text-align:justify;vertical-align:top;text-indent:20px;}
+td.div{background-color:#eee;width:3px;}
+.boxSoftTitle{border-bottom:1px solid #fff;border-top:1px solid #fff;background-color:#f1f2f4;padding:1px 0 0 3px;}
+table.boxSoftSmall{width:94px;background-color:#ddd;}
+td.boxSoftSmall{background-color:#fff;text-align:center;padding-top:2px;padding-bottom:2px;}
+td.boxSoftSmallTitle{border-bottom:1px solid #ccc;background-color:#f1f2f4;padding-left:10px;}
+td.ss{padding-left:6px;vertical-align:top;}
+td.display{border-bottom:1px solid #000;padding-bottom:6px;}
+td.features{padding:4px;text-align:justify;vertical-align:top;}
+td.formLeft{padding:6px;vertical-align:top;}
+td.data1{background-color:#eee;vertical-align:top;padding-left:.3em;}
+td.data2{background-color:#ddd;vertical-align:top;padding-left:.3em;}
+.outofdate{background-color:#faa;padding-left:.3em;}
+.legend span{padding:1px;margin-left:.3em;border:solid 1px #888;}
+td.text{color:#000;font-size:12px;}
+th{text-align:left;}
+th.header{border-bottom:#666 1px solid;vertical-align:bottom;}
+fieldset{border:none;}
+input, textarea, select{background-color:#6c83b0;font-family:monospace;font-size:12px;background-color:#ccc;border:#000 1px solid;color:#111;}
+input.button{background-color:#fff;color:#6c83b0;border:1px solid #6c83b0;font-size:12px;padding:2px 8px;}
+input[type=image]{border:0;background:none;}*{margin:0;padding:0;}
+* ul{padding:20px;}
+body{min-width:600px;background-color:white;color:#555;font-family:DejaVu Sans, sans-serif;font-size:12px;}
+#title{display:block;position:relative;height:123px;}
+#main_nav, #sub_nav{list-style:none;font-size:13px;line-height:26px;padding:0 32px;}
+#main_nav{background-color:#333;text-align:right;}
+#sub_nav{min-width:700px;background-color:#1793d1;text-align:right;}
+#main_nav a.selected{background-color:#1793d1;}
+#sub_nav a.selected{background-color:#333;}
+#main_nav a, #sub_nav a{padding:5px 9px;line-height:26px;color:#fff;font-weight:bold;text-decoration:none;}
+#main_nav a:hover{background-color:#1793d1;}
+#sub_nav a:hover{background-color:#333;}

[aur-dev] [PATCH 6/7] optimize png file

2011-04-04 Thread elij

- savings of about 1K (22%)
---
 web/html/css/archnavbar/archlogo.png |  Bin 4192 - 3258 bytes
 1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/web/html/css/archnavbar/archlogo.png b/web/html/css/archnavbar/archlogo.png
index e873e94b1a38b58963e15252f6e175fc1c6f1ec7..b4cf35f169d8e0848a62f2173ea8cfc0f2ba4e90 100644
GIT binary patch
delta 3255
zcmV;o3`q0fAi5clBYzBmNklZc-rlq3y7W8OINKoDzA4+r2x8fPlP2UP?eTViF5^
zDk$V6hhn67XoMJy8VVPzoY)H#;XBPvsSY0Z~AMF(IN!D0$q948ozQ4%T?Ne~c(
z8hns+x=#*x3_1eXLfdr!kMan9Xs38Gu!j)p6~nmmer^jeq9rEo;=1M2H%oq+;n
zLODKzzZ$e5XxKpC81Mo3JkWX2MNq4taRYr*z@H9^lI8`C8|bPBA3(1QILZ|0@N^Q
z;6PV9_#+wUO-%|KSXwuM8u?XU(?u0cgEq|$_t0De-KnBXk?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ov~H
z0Ve}TmP^N4|E?E?I{v%BA0uFYK2c2t?A8MEY+ywj*af@-oKjNM%!sMZ6{t^

[aur-dev] [PATCH 7/7] specify dimensions for images

2011-04-04 Thread elij

- some html renderers work faster/better if you specify image dimensions to
  avoid reflow/repaits
---
 web/template/stats/updates_table.php |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index b9f6d6d..55ebf96 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -2,7 +2,7 @@
 tr
 th colspan=2 class=boxSoftTitle style=text-align: right
 span class=f3?php print __(Recent Updates) ?span class=f5/span/span
-a href=rss.phpimg src=images/feed-icon-14x14.png alt=RSS Feed //a
+a href=rss.phpimg src=images/feed-icon-14x14.png width=14 height=14 alt=RSS Feed //a
 /th
 /tr
 
@@ -23,7 +23,7 @@ $sub_int = intval($row[SubmittedTS]);
 if ($mod_int != 0):
   $modstring = gmdate(r, $mod_int);
 elseif ($sub_int != 0):
-  $modstring = 'img src=images/new.gif alt=New! / ' . gmdate(r, $sub_int);
+  $modstring = 'img src=images/new.gif width=31 height=12 alt=New! / ' . gmdate(r, $sub_int);
 else:
   $modstring = '(unknown)';
 endif;


[aur-dev] Some optimization patches

2011-04-04 Thread elij
*sigh*
Forgot to change the setting for format-patch and resent the same patches.
Trying to send these patches one final time, using 'inline' at 
Aaron's suggestion. Here goes.

---

My apologies for splitting these changes into so many patches, but 
apparently the Arch mailman instance will not let anything larger
than 40k though (and I got feedback that there is something amiss
regarding the mailman setup -- this is here nor there though).

These patches are mostly optimizations for content delivery.
- merge css into fewer files to reduce number of files. this makes for faster
  end user delivery as there are fewer http requests (fewer tcp connections,
  whether the response is 200/ok or 304/not-modified).
- created minimized versions of css. this reduced css size by 3.3K (24%) the
  originals are retained for ease of editing and reference
- split out ie6 css into a separate file, and use 'conditional stylesheet
  inclusion' so that only ie6 fetches that stylesheet.
- optimize logo png file -- this was a 22% (1K)



[aur-dev] [PATCH 1/7] merge css files into one file

2011-04-04 Thread elij
---
 web/html/css/arch.css   |  424 --
 web/html/css/aur.css|  701 +++
 web/html/css/containers.css |  188 
 web/html/css/fonts.css  |  115 ---
 4 files changed, 701 insertions(+), 727 deletions(-)
 delete mode 100644 web/html/css/arch.css
 create mode 100644 web/html/css/aur.css
 delete mode 100644 web/html/css/containers.css
 delete mode 100644 web/html/css/fonts.css

diff --git a/web/html/css/arch.css b/web/html/css/arch.css
deleted file mode 100644
index eec02ee..000
--- a/web/html/css/arch.css
+++ /dev/null
@@ -1,424 +0,0 @@
-* { margin: 0; padding: 0; }
-* ul { padding: 20px; }
-body {
-  min-width: 600px;
-  background-color: white;
-  color: #555;
-  font-family: DejaVu Sans, sans-serif;
-  font-size: 12px;
-}
-/* Divs */
-#title {
-  display: block;
-  position: relative;
-  height: 123px;
-}
-#main_nav,
-#sub_nav {
-  list-style: none;
-  font-size: 13px;
-  line-height: 26px;
-  padding: 0 32px;
-}
-#main_nav {
-  background-color: #333;
-  text-align: right;
-}
-#sub_nav {
-  min-width: 700px;
-  background-color: #1793d1;
-  text-align: right;
-}
-#main_nav a.selected {
-  background-color: #1793d1;
-}
-#sub_nav a.selected {
-  background-color: #333;
-}
-#main_nav a,
-#sub_nav a {
-  padding: 5px 9px;
-  line-height: 26px;
-  color: #fff;
-  font-weight: bold;
-  text-decoration: none;
-}
-#main_nav a:hover {
-  background-color: #1793d1;
-}
-#sub_nav a:hover {
-  background-color: #333;
-}
-#lang_sub {
-  display: block;
-  font-size: 10pt;
-  text-align: right;
-  margin-bottom: 40px;
-  margin-right: 35px;
-  margin-left: 35px;
-}
-#lang_sub ul {
-  list-style: none;
-  padding: 0px;
-}
-#lang_sub ul a {
-  text-decoration: none;
-}
-#lang_sub ul a:hover {
-  text-decoration: underline;
-}
-#lang_sub ul li {
-  display: inline;
-  padding-right: 1px;
-}
-#login_bar {
-   display: block;
-   margin-bottom: 10px;
-}
-#login_bar input {
-  margin-right: 5px;
-}
-#login_bar .button {
-  margin: 2px;
-}
-#updates {
-  font-size: small;
-  /*position: relative;*/
-  top: 0px;
-  background-color: #e7f0f6;
-  border: 1px solid #92cbe8;
-  padding: 10px;
-}
-#logo {
-  z-index: 1;
-  position: relative;
-  top: 10px;
-  left: 25px;
-  width: 350px;
-}
-#logo h1#archtitle {
-  background: transparent url(../images/titlelogo.png) no-repeat top left;
-  margin: 0px;
-  padding: 0px;
-}
-#logo h1#archtitle a {
-  color: transparent;
-  display: block;
-  width: 350px;
-  height: 103px;
-}
-.clear {
-  clear: both;
-  margin: 0px;
-  padding: 0px;
-}
-.right {
-  float: right;
-  width: 320px;
-  padding: 0px 10px 10px 0px;
-}
-.left {
-  padding: 10px;
-  margin-right: 360px;
-}
-.left p {
-  padding-bottom: 10px;
-}
-.box {
-  padding: 10px;
-}
-.greybox {
-  padding: 10px;
-  background-color: #f6f3dd;
-  border: 1px solid #d9d6c2;
-}
-div.listing {
-  padding-right: 10px;
-}
-.error {
-  color: #dd;
-  font-size: small;
-}
-.foot {
-  clear: both;
-  text-align: center;
-  font-size: 0.75em;
-}
-#search {
-  float: right;
-  position: relative;
-  top: -2em;
-  font-size: 0.8em;
-}
-#search input {
-  background-color: #f6f3dd;
-  border: 1px solid #d9d6c2;
-}
-.smalltext {
-  text-align: right;
-  font-size: x-small;
-}
-/* Headers */
-h2 {
-  margin: 20px 0px 10px 0px;
-}
-h2.title {
-  border-bottom: 1px solid #46494d;
-}
-h3 {
-  margin-bottom: 10px;
-}
-h3.title {
-  text-align: right;
-  border-bottom: 1px solid #46494d;
-}
-h4.title {
-  border-bottom: 1px solid #46494d;
-}
-h4.news {
-  border-bottom: 1px dotted #0771a6;
-  margin-bottom: .25em;
-  padding-bottom: .2em;
-}
-div.listing h4 {
-  color: #fff;
-  background-color: #0771a6;
-  padding: 3px;
-}
-/* Paragraphs, Anchors, Images */
-p {
-  padding-bottom: 20px;
-}
-p.news {
-  font-size: small;
-}
-a {
-  color: #0771a6;
-}
-a:hover {
-  color: #333;
-}
-#about {
-  position: relative;
-  top: -9px;
-}
-ol {
-  padding-left: 45px;
-}
-ul.small {
-  list-style: none;
-  font-size: x-small;
-}
-ul.links {
-  list-style: none;
-  font-size: small;
-  padding: 0px 0px 20px 20px;
-}
-img {
-  border: none;
-}
-hr {
-  border: none;
-  border-top: 1px solid #46494d;
-}
-.greybox input,
-button,
-textarea,
-select {
-  background-color: #e1e3e6;
-  border: 1px solid #8faecd;
-}
-.box input, button {
-  padding: 2px;
-  background-color: #c1c3f6;
-  font-size: x-small;
-  border: 1px solid #8faecd;
-}
-button#f_trigger {
-  background-color: #e1e3e6;
-}
-/* Table stuff */
-table.center {
-  margin-left: auto;
-  margin-right: auto;
-}
-table.results {
-  padding: 0px;
-  border-collapse: collapse;
-}
-.results th {
-  background-color: #e1e3e6;
-  border-bottom: 1px solid #46494d;
-  border-top: 1px solid #46494d;
-  padding: 0px 5px 0px 0px;
-}
-.results tha {
-  text-decoration: none;
-  color: #46494d;
-}
-.results td {
-  padding-right: 5px;
-  vertical-align: top;
-  font-size: 0.8em;
-}
-.listing th {
-  font-size: small;
- 

[aur-dev] [PATCH 3/7] add minified archnavbar css

2011-04-04 Thread elij
---
 web/html/css/archnavbar/archnavbar.min.css |   16 
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 web/html/css/archnavbar/archnavbar.min.css

diff --git a/web/html/css/archnavbar/archnavbar.min.css 
b/web/html/css/archnavbar/archnavbar.min.css
new file mode 100644
index 000..b4448cf
--- /dev/null
+++ b/web/html/css/archnavbar/archnavbar.min.css
@@ -0,0 +1,16 @@
+#archnavbar{height:40px !important;padding:10px 15px 
!important;background:#333 !important;border-bottom:5px #08c solid !important;}
+#archnavbarlogo{float:left !important;margin:0 !important;padding:0 
!important;height:40px !important;width:190px 
!important;background:url('archlogo.png') no-repeat !important;}
+#archnavbarlogo p{margin:0 !important;padding:0 !important;text-indent:-px 
!important;}
+#archnavbarlogo h1{margin:0 !important;padding:0 
!important;text-indent:-px !important;}
+#archnavbarlogo a{display:block !important;height:40px !important;width:190px 
!important;}
+#archnavbar ul{display:inline !important;float:right 
!important;list-style:none !important;margin:0 !important;padding:0 !important;}
+#archnavbar ul li{float:left !important;font-size:14px 
!important;font-family:sans-serif !important;line-height:45px 
!important;padding-right:15px !important;padding-left:15px !important;}
+#archnavbar ul#archnavbarlist li a{color:#999;font-weight:normal 
!important;text-decoration:none !important;}
+#archnavbar ul li a:hover{color:white !important;text-decoration:underline 
!important;}
+div#archdev-navbar{margin:1.5em 25px;}
+div#archdev-navbar ul{list-style:none;margin:-0.5em 0;padding:0;}
+div#archdev-navbar li{display:inline;margin:0;padding:0;font-size:0.9em;}
+div#archdev-navbar li a{padding:0 0.5em;color:#07b;}
+#archnavbar.anb-aur ul li#anb-aur a{color:white !important;}
+#archnavbar ul#archnavbarlist li a{color:#999;font-weight:bold 
!important;text-decoration:none !important;}
+#archnavbar ul li a:hover{color:white !important;text-decoration:underline 
!important;}
\ No newline at end of file
-- 
1.7.4.1



[aur-dev] [PATCH 4/7] split out the ie6 css into ie6 specific css file

2011-04-04 Thread elij
---
 web/html/css/archnavbar/archnavbar.css |6 +-
 web/html/css/archnavbar/ie6.css|2 ++
 2 files changed, 3 insertions(+), 5 deletions(-)
 create mode 100644 web/html/css/archnavbar/ie6.css

diff --git a/web/html/css/archnavbar/archnavbar.css 
b/web/html/css/archnavbar/archnavbar.css
index e8ade28..dd69382 100644
--- a/web/html/css/archnavbar/archnavbar.css
+++ b/web/html/css/archnavbar/archnavbar.css
@@ -10,11 +10,7 @@
 #archnavbar { height: 40px !important; padding: 10px 15px !important; 
background: #333 !important; border-bottom: 5px #08c solid !important; }
 
 /* logo trickery -- GIF for IE6 and PNG for the rest */
-#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 
!important; height: 40px !important; width: 190px !important; }
-/* IE6 doesn't support alpha PNGs so we serve it a GIF */
-#archnavbarlogo { background: url('archlogo.gif') no-repeat !important; }
-/* and use a proper PNG for all other modern browsers */
-html  body #archnavbarlogo { background: url('archlogo.png') no-repeat 
!important; }
+#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 
!important; height: 40px !important; width: 190px !important; background: 
url('archlogo.png') no-repeat !important; }
 
 /* move the heading/paragraph text offscreen */
 #archnavbarlogo p { margin: 0 !important; padding: 0 !important; text-indent: 
-px !important; }
diff --git a/web/html/css/archnavbar/ie6.css b/web/html/css/archnavbar/ie6.css
new file mode 100644
index 000..3f5b072
--- /dev/null
+++ b/web/html/css/archnavbar/ie6.css
@@ -0,0 +1,2 @@
+/* IE6 doesn't support alpha PNGs so we serve it a GIF */
+#archnavbarlogo { background: url('archlogo.gif') no-repeat !important; }
-- 
1.7.4.1



[aur-dev] [PATCH 6/7] optimize png file

2011-04-04 Thread elij
- savings of about 1K (22%)
---
 web/html/css/archnavbar/archlogo.png |  Bin 4192 - 3258 bytes
 1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/web/html/css/archnavbar/archlogo.png 
b/web/html/css/archnavbar/archlogo.png
index 
e873e94b1a38b58963e15252f6e175fc1c6f1ec7..b4cf35f169d8e0848a62f2173ea8cfc0f2ba4e90
 100644
GIT binary patch
delta 3255
zcmV;o3`q0fAi5clBYzBmNklZc-rlq3y7W8OINKoDzA4+r2x8fPlP2UP?eTViF5^
zDk$V6hhn67XoMJy8VVPzoY)H#;XBPvsSY0Z~AMF(IN!D0$q948ozQ4%T?Ne~c(
z8hns+x=#*x3_1eXLfdr!kMan9Xs38Gu!j)p6~nmmer^jeq9rEo;=1M2H%oq+;n
zLODKzzZ$e5XxKpC81Mo3JkWX2MNq4taRYr*z@H9^lI8`C8|bPBA3(1QILZ|0@N^Q
z;6PV9_#+wUO-%|KSXwuM8u?XU(?u0cgEq|$_t0De-KnBXk?)}gQkJr03DCUx9;iI
zn;+31hc-V3Dt}47KSsB(s+Z=j$RYAy-(mnBX=*Z|dHlk%d|nP2GC0RG}wy94Cr
zzOJ*Y8o8KaeqkB9}e2yKkygZfWISXS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ster/better if you specify image dimensions to
  avoid reflow/repaits
---
 web/template/stats/updates_table.php |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/template/stats/updates_table.php 
b/web/template/stats/updates_table.php
index b9f6d6d..55ebf96 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -2,7 +2,7 @@
 tr
 th colspan=2 class=boxSoftTitle style=text-align: right
 span class=f3?php print __(Recent Updates) ?span 
class=f5/span/span
-a href=rss.phpimg src=images/feed-icon-14x14.png alt=RSS Feed //a
+a href=rss.phpimg src=images/feed-icon-14x14.png width=14 height=14 
alt=RSS Feed //a
 /th
 /tr
 
@@ -23,7 +23,7 @@ $sub_int = intval($row[SubmittedTS]);
 if ($mod_int != 0):
   $modstring = gmdate(r, $mod_int);
 elseif ($sub_int != 0):
-  $modstring = 'img src=images/new.gif alt=New! / ' . gmdate(r, 
$sub_int);
+  $modstring = 'img src=images/new.gif width=31 height=12 alt=New! / 
' . gmdate(r, $sub_int);
 else:
   $modstring = '(unknown)';
 endif;
-- 
1.7.4.1



[aur-dev] [PATCH 5/7] use new css files in header template

2011-04-04 Thread elij
---
 web/template/header.php |9 +
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/web/template/header.php b/web/template/header.php
index 0f0e362..5862852 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -5,10 +5,11 @@
xml:lang=?php print $LANG\ lang=\$LANG; ?
   head
 titleAUR (?php print $LANG; ?)?php if ($title != ) { print  -  . 
$title; } ?/title
-   link rel='stylesheet' type='text/css' href='css/fonts.css' /
-   link rel='stylesheet' type='text/css' href='css/containers.css' /
-   link rel='stylesheet' type='text/css' href='css/arch.css' /
-   link rel='stylesheet' type='text/css' 
href='css/archnavbar/archnavbar.css' /
+   link rel='stylesheet' type='text/css' href='css/aur.min.css' /
+   link rel='stylesheet' type='text/css' 
href='css/archnavbar/archnavbar.min.css' /
+!--[if IE 6]
+link rel='stylesheet' type='text/css' href='css/archnavbar/ie6.css' /
+![endif]--
link rel='shortcut icon' href='images/favicon.ico' /
link rel='alternate' type='application/rss+xml' title='Newest Packages 
RSS' href='rss.php' /
meta http-equiv=Content-Type content=text/html; charset=UTF-8 /
-- 
1.7.4.1



Re: [aur-dev] Some optimization patches

2011-04-04 Thread elij
On Mon, Apr 4, 2011 at 2:44 PM, elij elij...@gmail.com wrote:
 *sigh*
 Forgot to change the setting for format-patch and resent the same patches.
 Trying to send these patches one final time, using 'inline' at
 Aaron's suggestion. Here goes.

 ---

 My apologies for splitting these changes into so many patches, but
 apparently the Arch mailman instance will not let anything larger
 than 40k though (and I got feedback that there is something amiss
 regarding the mailman setup -- this is here nor there though).

 These patches are mostly optimizations for content delivery.
 - merge css into fewer files to reduce number of files. this makes for faster
  end user delivery as there are fewer http requests (fewer tcp connections,
  whether the response is 200/ok or 304/not-modified).
 - created minimized versions of css. this reduced css size by 3.3K (24%) the
  originals are retained for ease of editing and reference
 - split out ie6 css into a separate file, and use 'conditional stylesheet
  inclusion' so that only ie6 fetches that stylesheet.
 - optimize logo png file -- this was a 22% (1K)

Hooray! This time it worked.