Friday, February 20, 2009

mod_rewrite debugging

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog


RewriteLog filename
RewriteLogLevel 3

Wednesday, February 18, 2009

zsh backspace/delete broken

In zsh, backspace was deleting, but it was working in bash. This addition to my .zshrc seems to have fixed it:

bindkey "^?" backward-delete-char

Friday, February 13, 2009

Choose Woodstox for StAX I/O

Set these system properties:

javax.xml.stream.XMLInputFactory=

com.ctc.wstx.stax.WstxInputFactory


javax.xml.stream.XMLOutputFactory=

com.ctc.wstx.stax.WstxOutputFactory


javax.xml.stream.XMLEventFactory=

com.ctc.wstx.stax.WstxEventFactory

Thursday, February 12, 2009

Highlight trailing whitespace in Emacs

http://www.emacswiki.org/cgi-bin/wiki/show-wspace.el


(require 'show-wspace)
(add-hook 'font-lock-mode 'show-ws-trailing-whitespace)

gnuclient vs emacsclient

Hmm... apparently gnuclient is sometimes (now) emacsclient...

alias em='emacsclient -n'
alias gnuclient=emacsclient

echo "(server-start)" >> ~/.emacs

Monday, February 9, 2009

Firefox 3: disable "Open All in Tabs"

/* for userChrome.css - create if needed */
menuitem[label="Open All in Tabs"],
menuseparator[builder="end"]
{
  -moz-appearance: none !important;
  display: none !important;
}