Archive for December, 2007

Firefox not showing stylesheet

Friday, December 7th, 2007

Was uploading a site and discovered that the CSS didn’t work in Firefox, but worked in Safari and IE. It acted like there was no stylesheet, but the Web Developer Toolbar could show it. Clicking “edit CSS” on the Web Developer Toolbar showed a brief blink of the stylesheet being attached.

Turns out it’s a server misconfiguration, discussed in this article.

Apache reads a “mime.types” file. Make sure it includes the line:

text/css   css

You can also use Apache configuration directives to set the Content-type. If the worst comes to the worst you may be able to use a .htaccess file (which applies to the directory it is in and all subdirectories) to set the configuration (the default Apache configuration disallows this, but many hosts turn it on to allow users some degree of configuration).

AddType text/css .css

CuteFTP Backup

Tuesday, December 4th, 2007

I totally live and die by my FTP program, which on the Mac is CuteFTP.

I’ve been moving my files from my old MacBook, which is having some issues, to my new MacBook Pro. Among many things, this means moving over my CuteFTP site list. Here’s how to do it…

Copy these 2 files form the old computer:
YourUserName > Library > Preferences > com.globalscape.CuteFTP2.plist (Settings) and CuteFTP AddressBook.plist (Address Book).

SCP mini-man

Tuesday, December 4th, 2007

Another mini-man post…

SCP an entire directory from local to remote:
scp -r directoryname roxane@hostname:directoryname

SCP a file from local to remote:
scp file.txt roxane@hostname:directoryname