11 October 2007

Rant: Stupid OOo hyperlinks.

OpenOffice.org 2.3. Type:
The quick brown fox http://www.google.com/
over the lazy dog.
Now click on the end of line after http://www.google.com/. Type "jumps". Now try to remove "jumps" away from the link. You can't.

This: http://www.laliluna.de/remove-openoffice-hyperlink.html don't really work properly. It just changes the style so it doesn't look like a link. In HTML speak, it becomes
http://www.google.com/jumps
Source:
<a href="http://www.google.com/">http://www.google.com/</a><a href="''" style="text-decoration: none">jumps</a>
instead of
http://www.google.com/jumps
Source:
<a href="http://www.google.com/">http://www.google.com/</a>jumps
The original problem is that OOo puts the cursor to the left of the invisible "</a>" when you try to get to the end of the line, not after.

Very, very irritating bug that destroys the mental flow.

Related problems: 4364 Nothing new. Resolution: "INVALID"? wtf?

08 August 2007

Back! Random web optimizations.

Wow, that's a long time since my last entry. Just gonna dive right in and continue.

Anyway, been using using Firebug for ages, and now combined with YSlow, I've finally been looking at the performance numbers for some sites and web apps we have. A few interesting tidbits:
  • Apache Bench not that useful at showing real browser experience. Too many pages have external requests that take forever to load. Firebug's "Net" information is more useful in tracking down bottlenecks. YSlow would take that information and tell you where things suck.

  • Just bite the CPU load hit and enable transparent deflate compression on Apache. It's worth it. The network bandwidth is a lot more of a bottleneck than CPU processing is.
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

  • Drupal 5.x can automagically concat its many .css together. No need to muck around. Admin - Site Config - Performance - Aggregate and compress CSS files. Too bad it does not handle the nonconformant themes' css.