PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • rss
  • Home
  • Archive
  • Links
  • Contact
  • Categories
  • Search
  • Snazzy Archives
  • About
  • Photos

Conditional-CSS

August 16, 2008

Undoubtedly every web-designer and developer who as made any attempt to use CSS will have found a situation where different web-browsers require different style statements. I’ve just encountered this myself with a side project I’ve been working on. This irritation is due to the varying degree of completeness of the CSS implementation across browsers and browser versions.

Conditional-CSS is a solution to this problem, taking the idea of the conditional comment syntax from Internet Explorer and placing it inline with your CSS statements.

Conditional-CSS is something you need to install on your server to be able to use. It comes in three platform versions:

PHP -Very simple to install and portable to any platform that runs PHP - the right option for you if you want to give Conditional-CSS a go.

C - Exceedingly fast and will run on just about every *nix platform, this is a little tricker to install, but very useful as a global interpreter.

C# -Runs under .NET 2.0 in Windows and Mono on many other platforms, use this version if you are using IIS or a .NET based web-server.

Get Conditional-CSS here.

Comments
1 Comment »
Categories
Code, Tech, Web Life
Tags
browser versions, completeness, css implementation, internet explorer, interpreter, platform versions, platforms, style statements, syntax, tricker, web designer, web server
Comments rss Comments rss
Trackback Trackback

WP Super Cache - 500 error on BlueHost

June 13, 2008

So I installed the WP Super Cache plugin. Seemed simple enough, I’d been using WP-Cache for a long time and was pretty please with it. WP Super Cache is based on the excellent WP-Cache plugin and therefore brings all the benefits of that plugin to WordPress. On top of that it creates copies of every page that is accessed on a blog in a form that is quickly served by the web server. It’s almost as quick as if the you had saved a page in your browser and uploaded it to replace your homepage.

So that sounds good, except that I followed all the steps, let the plugin to it’s automagic stuff and then I got a 500 error when attempting to hit my site. OUCH! No good.

Turns out the issue was the way my .htaccess file was written (it did this automatically, no clue why it didn’t work out correctly. Anyway, what ended up in my htaccess was:

Options All -Indexes# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8

What it SHOULD be is this:

Options All -Indexes
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8

Make that simple update to the first line, ensuring that the #BEGIN WPSuperCache is on it’s own line and everything started working as expected.

Comments
No Comments »
Categories
Code, Site news, Tech, Web Life, Wordpress
Tags
automagic, blog, bluehost, htaccess file, indexes, web server, wp, wp super cache, wpsupercache
Comments rss Comments rss
Trackback Trackback

Google Search

Tag Cloud

ajax amazon barack obama bittorrent blog btjunkie cnn firefox gadget Gadgets game google Google Chrome HTC HTC Touch humor iGoogle internet explorer launch menu search microsoft microsoft windows open source operating system orb photo power users Ron Paul software microsoft sprint Sprint Touch start menu star wars target video Vista vista tweak Vista Tweaks wikipedia Windows Windows Mobile windows vista windows xp Wordpress youtube
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox