Designing Simple front ends with dialog/Xdialog LG #101
lg上讲的dialog/xdialog使用方法, 很好啊,以后自己写脚本就方便了。
Designing Simple front ends with dialog/Xdialog LG #101
lg上讲的dialog/xdialog使用方法, 很好啊,以后自己写脚本就方便了。
Leaning Out of Windows LG #101
Finally, we have those annoying Flash ads. If you use Mozilla's new Firefox browser, you can add a plugin (see the Properties dialog) which replaces all Flash ads with a link that says something like "Click to play". The ad won't appear now unless you tell it to.
呵呵,回头看看是哪个插件
这篇文章里提到了N多wm, 不过我发现我的E文真的不行啦, 看的头晕,记下来,回头仔细看吧 。
My solution: dproxy
http://dproxy.sourceforge.net
dproxy可以作为dns的cache和proxy,适用于局域网里router上架设。
secure email-clients with PGP/MIME
一个PGP/GnuPG的问题,让我头疼已久了。 我在Linux上使用mutt/Gnupg签名的信件,在windows上的outlook 安装gpg、gnupg plugin,都不行。现在明白了。
邮件使用gpg/gpg加密有两种方式
1。PGP/inline
2.PGP/MIME
mutt使用的是PGP/MIME,而 outlook/gpg/gnupg plugin for outlook都是使用PGP/inline
secure email-clients with PGP/MIME仔细描述了现在有那些邮件客户端支持PGP/MIME.
OUTLOOK当然不在其列。 解决方案倒是有, 使用relay, 比如GPGrelay。 不过outlook用起来还是不太方便。 GPGrelay 把validate之后的正文作为附件, 真是太bt了。
这样搞严重影响了gpg/gnupg的普及, 我觉得。
附一篇讲gpg算法的中文文档
Mutt PGP/OUTLOOK & OutLook Express
里面提到可以配置mutt或pathch mutt 来让他迁就 outlook
### GPG for Outlook
# don't do PGP/MIME but encrypt directly in the body
set pgp_create_traditional
# help Outlook (patched)
set pgp_outlook_compat=yes
# to cope with umlauts etc. we have to sign it ourselves and not let mutt do it
unset pgp_autosign
macro compose y "
###
patch 在 这里
我想两个程序的输出合并起来存入一个文件或管道,怎么办?
bash下,
${ echo "line1";cat /tmp/file1;echo "end"} >/tmp/file2
注意, {}中的每一个命令后都有;不然会有问题:)
一个快捷方式
javascript:d=document;t=d.selection?d.selection.createRange().text:d.getSelection();void(window.open('http://www.ieasy.org/cgi-bin/mt/mt.cgi?is_bm=1&bm_show=category,excerpt,text_more,keywords&__mode=view&_type=entry&blog_id=1&link_title='+escape(d.title)+'&link_href='+escape(d.location.href)+'&text='+escape(t),'_blank','scrollbars=yes,width=400,height=700,status=yes,resizable=yes,scrollbars=yes'))
放到连接里,就可以自动撰写自己的blog了:)
昨天一哥们找我看看,他的要架一个基于perl的论坛, 怎么都不行, 总是500错误。
把我也难住了, 明明都没有错误,就是不能运行:( ,自己回宿舍仔细的看了一会儿,才发现他的脚本都是dos格式的, 也就是说换行是
\n.
而脚本开头都是#!/usr/bin/perl, 因为后面多了一个^M所以 linux去找一个叫做/usr/bin/perl^M的解释器, 当然找不到了, 所以出错, dos2unix *就搞定了。
遇到问题一定要有耐心, 不能拖沓, 最后就一定能解决:)
wakka wiki引擎是一个很简单的,但是很容易扩展的wiki引擎。用php和mysql实现。 今天弄了半天才让它支持中文。
把默认的charset改成gb2312,
grep -r -i charset *
然后修改之:)
还有handler/page/edit.php里有一处使用了htmlentity....之类的函数,破坏了汉字
把它改了,改成了只去掉<>之类的字符。具体什么函数忘了:( , 看一下php手册字符串函数就能找到。
还有一点就是wakka wiki 规定的wikiname 比较奇怪, 它要求必须是几个连起来的词,每个词第一个字母大写才行,象这样 WikiName
我把它改了, 呵呵, 只要字母打头就行了:)