Meta

  1. Recent blog posts

  1. Papers and HowTos

Recent output

  1. Blogs

  2. MSIE6, PNG, and (Sun|Open) Web Server

    Tue, 10/02/2007 - 16:25 — jmccabe

    [Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]

    Originally posted on Oct 2, 2007:

    MSIE 6 handles PNG Alpha Channels really badly. For years now I've not used them because of MSIE 6's poor implementation, and this means modern browsers that can handle them have not been working at their best while I designed with badness in mind.

    "Stupid MSIE 6," I'd grumble as I made yet another low bit-depth image, edges aliased to an "average" background color, a single background color. "I was making GIF images like this in 1996. When does The Future start?"

     

  3. sed, (Sun|Open) Web Server, and White Space

    Thu, 08/02/2007 - 21:06 — jmccabe

    [Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]

    Originally posted on Aug 2, 2007:

    Several months ago I wrote about an NSAPI Output filter that could be used to strip extra white space from HTML. At the time I also commented that with the release of Web Server 7.0 there would surely be a better (or at least easier) way to do the same task.

     

  4. Blocking image linking to (Sun|Open) Web Server

    Fri, 07/20/2007 - 13:17 — jmccabe

    [Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]

    Originally posted on July 20, 2007:

    In the Web Server 6.1 time frame I had hacked together a <Client> tag solution to block external image linking to my site (I'm glad people like my images, but my server has limited bandwidth and I'd rather that my purdy images chew up bandwidth making my site purdy instead of someone else's). This worked great until I began using Gallery 2. Under Gallery2 the URIs for images aren't exactly "clean." They look something like this:

    /main.php?g2_view=core.DownloadItem&g2_itemId=10436&g2_serialNumber=2

    This obviously won't get caught by my original <Client> tag (it looks specifically for file names that look like, you know, file names), so I've now got an excuse to recreate that bad boy using the <If ...> syntax in Web Server 7.0.

     

  5. Gallery2, URL Rewriting, and (Sun|Open) Web Server

    Thu, 07/19/2007 - 18:52 — jmccabe

    [Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]

    Originally posted on July 19, 2007:

    On my personal web site I use Sun Java System Web Server 7.0 and a slew of PHP applications. One of them, Gallery2, has built in support for URL rewriting. Unfortunately it depends on an extension to Apache called mod_rewrite and the syntax for the same functionality in Web Server is a bit different. Because of this I've been putting off enabling the feature until I could spare a few hours to research the differences and rewrite the rules. Here's what I came up with.

     

  6. PHP and (Sun|Open) Web Server in a hosted environment

    Tue, 03/13/2007 - 00:59 — jmccabe

    [Note: I no longer work for Sun. I am slowly migrating the more worthwhile blog entries I made for Sun to my own blog. I need the Google love.]

    Originally posted on Oct 2, 2007:

    A question was asked on our forums about how to use PHP and FastCGI in a hosted environment. The goal was to give each user their own PHP process in order to protect each user from potential security and performance problems associated with sharing a PHP engine with several virtual servers. I started thinking about this and took a whack at a quick solution using Web Server 7.0's environment variables to use the same PHP binary with a separate engine bound to each virtual server (keying off of the Host name of the domain). I also extended this to allow each VS to have its own php.ini file:

     

Small Things

  1. Monthly archive


Syndicate content