Monthly Archives April 2005

The "PT" flag of mod_rewrite

‘passthrough|PT’ (pass through to next handler)
This flag forces the rewriting engine to set the uri field of the internal request_rec structure to the value of the filename field. This flag is just a hack to be able to post-process the output of
RewriteRule
directives by Alias,
ScriptAlias
, Redirect, etc. directives from other URI-to-filename translators. A trivial example […]

OK, I’ll go with the official hardcodedates.py

And this will save some confusing about versions. I can give time 00:00 for notes without a note taken timestamp. Anyway this is what Michael give for blog files with only date in the timestamps file.

Share This

markup the notes

Sacha pastes this on #emacs. I think I can tweak this to do the region render. Nice!
"Mark up STRING according to `emacs-wiki-publishing-rules’.
No header or footer is added."
(let ((emacs-wiki-project emacs-wiki-current-project))
(with-temp-buffer
(emacs-wiki-mode)
(insert string)
(let ((emacs-wiki-publishing-header "")
(emacs-wiki-publishing-footer ""))
(emacs-wiki-replace-markup))
(buffer-string))))

Share This

some comments on Python web frame work

Zope is easy if it does what you want out of the box, Quixote is good for sites that are big on calculations and small on eye candy, Twisted is good for high-demand sites

Share This

Python, Ipython, and Emacs

While there are several python mode for Emacs, I can’t get them work all together. And the most important thing I want to do is intergrate Ipython in Emacs. So the easiest way is to start an ansi-term, and run Ipython in it. This saved me all the efforts of patching python-mode and so on. […]

Close
E-mail It