技术与实践: October 2004 Archives

我的数码世界

| | Comments (1) | TrackBacks (0)

我的数码世界 - Ma Jian 's Home Page 马剑的个人主页

呵呵, 今天我开始了一个新的wiki页面 - 我的数码世界。 我将逐渐介绍我的数码硬件,我使用它时的感受。我喜欢的软件,以及我为什么喜欢它们。还会给出一些介绍和连接。争取全面介绍我的数码相关生活。:)

听说那个Google Desktop了, 早就想有这个冬冬了, Single几年前就跟我说想要这个东西来管理资料。

不料,那天装的时候报告说和我电脑上的MS ISA Firewall Client冲突,要我升级到4.0,愁啊。

今天,我把ISA Firewall Client卸载了,安装上Google Desktop,又把Client装上了,居然又能用了,FT啊。

嗬嗬,不过终于能用了,不错。

MoinMoin中Anchor宏的BUG

| | Comments (0) | TrackBacks (0)

前几天发现,我的blog的左面导航栏的项目符号再firefox中总是高出一截儿,查了所有的css都没搞明白怎么回事儿。

昨天,突然发现这是MoinMoin里面宏Anchor搞得鬼。这个宏在当前位置插入一个<a id="xxx" >的tag,可是却没有封口,应该为< a id="xxx"></a>,导致firefox解析除了问题。IE比较皮实对这种问题能忽略。 现在我只得添加另一个宏[[HTML("</a>")]].

最好是把MoinMoin代码改了,不知道现在新的MoinMoin还有没有这样的bug.

补充:
刚刚改了/usr/lib/python2.3/site-packages/MoinMoin/formatter/text_html.py

99行:


def anchordef(self, id):
return '<a id="%s"></a>' % id

设定ProftpD的nice level

| | Comments (0) | TrackBacks (0)
我用的是Debian testing,开FTP用的是Proftpd. 现在觉得ftp影响了我的桌面的性能,想把它的nice值设置低。 查看/etc/init.d/proftpd 发现是用start-stop-daemon 启动Proftpd的。$ man start-stop-daemon .找到
       -N|--nicelevel int
              This alters the prority of the process before starting it.
于是修改/etc/init.d/proftpd文件,
start()
{
    if start-stop-daemon -N 18 --start --quiet --pidfile "$PIDFILE" \
        --exec $DAEMON -- $OPTIONS ; then
        echo "$NAME."
    else
        echo "."
    fi
}
, 搞定:)

以前特别奇怪,为啥google搜不到我wiki上的内容呢?今天去看MoinMoin的帮助才突然发现,wiki页面header里默认的加入了< meta name="robots" content="noindex,nofollow" >,搜索引擎当然不再索引了。 修改moin_config.py增加html_head_queries= "" 就可以去掉了

现在改过来了,希望以后能够看到变化:)

About this Archive

This page is a archive of entries in the 技术与实践 category from October 2004.

技术与实践: September 2004 is the previous archive.

技术与实践: November 2004 is the next archive.

Find recent content on the main index or look in the archives to find all content.