Category Archives: Web Servers

TODO: Remove “TODO:” code comments before RTM

I was tweaking the editmessage.aspx page for OWA 2007 in Exchange 2007 and I noticed some leftover code comments from the developers at Microsoft.

Do code comments like this make it past the QA process often?

< !--LocalizedStrings.GetHtmlEncoded(Strings.IDs.SubjectColon)--> < !-- TODO: OWA: 775: make sure this comment (and any others) are removed in retail --> < !-- For some reason, if this input field is not wrapped in a div, when the user types some text it resizes itself by a few pixels. Go figure.-->

Virtual Server 2005 R2 and IE8 Compatibility

Virtual Server 2005 R2 and Internet Explorer 8 don’t play nice by default. As you can see from the picture, it looks a little funny, but what’s worse is you can’t turn Virtual Machines (VMs) on. Clicking Turn On doesn’t do anything.

Virtual Server 2005 R2 IE8
Virtual Server 2005 R2 IE8

Well, the reason is the some of the features of IE8 aren’t compatible with Virtual Server 2005 R2. But there are at least 2 easy ways to fix this. The first is super simple and it will fix your browser in no time. In the address bar of IE, next to the refresh button, there is a page with a zig-zag through it. Just click that button to enable compatibility mode which should make the browser behave the same way as IE7.

The second method, which I prefer, will make it so any computer with IE8 that connects to your Virtual Server 2005 R2 server will default to compatibility mode. In order to do this, open you IIS administration window. I’m running IIS 7.5 on windows 7, so your’s might look a little different, but the idea is the same.

Continue reading Virtual Server 2005 R2 and IE8 Compatibility

Installing lighttpd with mod_magnet on centos x86_64

Installing lighttpd was pretty simple, however while setting up this wordpress site I wanted to enable WP Super Cache. In order to run Super Cache in full mode on lighttpd we need lighttpd with mod_magnet.

mod_magnet requires that lua be install. For some reason lighttpd doesn’t appear to like lua when it is installed via yum. So I had to compile it by source.

mkdir /root/installers
cd /root/installers
mkdir lua
cd lua

wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar xvfz lua-5.1.4.tar.gz
cd lua-5.1.4

Note: if you are using x86_64 you will need to make this modification

vim src/Makefile

change

CFLAGS= -O2 -Wall $(MYCFLAGS)

to

CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS)

Continue reading Installing lighttpd with mod_magnet on centos x86_64