Dec 23, 2008

读书——弗兰西斯·培根

读史使人明智,读诗使人聪慧,演算使人精密,哲理使人深刻,伦理学使人有修养,逻辑修辞使人善辩
Histories make men wise, poets witty, the mathematics subtle, natural philosophy deep, moral grave, logic and rhetoric able to contend

圣经——关于爱


<< 1 Corinthians 13 >>
King James Bible

1 Though I speak with the tongues of men and of angels, and have not charity, I am become as sounding brass, or a tinkling cymbal. 2 And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing. 3 And though I bestow all my goods to feed the poor, and though I give my body to be burned, and have not charity, it profiteth me nothing. 4 Charity suffereth long, and is kind; charity envieth not; charity vaunteth not itself, is not puffed up, 5 Doth not behave itself unseemly, seeketh not her own, is not easily provoked, thinketh no evil; 6 Rejoiceth not in iniquity, but rejoiceth in the truth; 7 Beareth all things, believeth all things, hopeth all things, endureth all things.
8 Charity never faileth: but whether there be prophecies, they shall fail; whether there be tongues, they shall cease; whether there be knowledge, it shall vanish away. 9 For we know in part, and we prophesy in part. 10 But when that which is perfect is come, then that which is in part shall be done away. 11 When I was a child, I spake as a child, I understood as a child, I thought as a child: but when I became a man, I put away childish things. 12 For now we see through a glass, darkly; but then face to face: now I know in part; but then shall I know even as also I am known. 13 And now abideth faith, hope, charity, these three; but the greatest of these is charity.

<< 歌 林 多 前 书 13 >>
中文版

1 我 若 能 说 万 人 的 方 言 , 并 天 使 的 话 语 , 却 没 有 爱 , 我 就 成 了 鸣 的 锣 , 响 的 钹 一 般 。 2 我 若 有 先 知 讲 道 之 能 , 也 明 白 各 样 的 奥 祕 , 各 样 的 知 识 , 而 且 有 全 备 的 信 , 叫 我 能 够 移 山 , 却 没 有 爱 , 我 就 算 不 得 甚 么 。 3 我 若 将 所 有 的 赒 济 穷 人 , 又 舍 己 身 叫 人 焚 烧 , 却 没 有 爱 , 仍 然 与 我 无 益 。 4 爱 是 恒 久 忍 耐 , 又 有 恩 慈 ; 爱 是 不 嫉 妒 ; 爱 是 不 自 夸 , 不 张 狂 , 5 不 做 害 羞 的 事 , 不 求 自 己 的 益 处 , 不 轻 易 发 怒 , 不 计 算 人 的 恶 , 6 不 喜 欢 不 义 , 只 喜 欢 真 理 ; 7 凡 事 包 容 , 凡 事 相 信 , 凡 事 盼 望 , 凡 事 忍 耐 。
8 爱 是 永 不 止 息 。 先 知 讲 道 之 能 终 必 归 于 无 有 ; 说 方 言 之 能 终 必 停 止 ; 知 识 也 终 必 归 于 无 有 。 9 我 们 现 在 所 知 道 的 有 限 , 先 知 所 讲 的 也 有 限 , 10 等 那 完 全 的 来 到 , 这 有 限 的 必 归 于 无 有 了 。 11 我 作 孩 子 的 时 候 , 话 语 像 孩 子 , 心 思 像 孩 子 , 意 念 像 孩 子 , 既 成 了 人 , 就 把 孩 子 的 事 丢 弃 了 。 12 我 们 如 今 彷 佛 对 着 镜 子 观 看 , 糢 糊 不 清 ( 原 文 作 : 如 同 猜 谜 ) ; 到 那 时 就 要 面 对 面 了 。 我 如 今 所 知 道 的 有 限 , 到 那 时 就 全 知 道 , 如 同 主 知 道 我 一 样 。 13 如 今 常 存 的 有 信 , 有 望 , 有 爱 这 三 样 , 其 中 最 大 的 是 爱 。

Dec 16, 2008

发几个字体

现有字体如下
  1. adobe宋体
  2. adobe仿宋
  3. adobe楷体
  4. adobe黑体
  5. 微软雅黑
  6. YaHeiConsole
下载字体

Dec 8, 2008

Lyx 使用XeLatex编译中文Tex

  • 在documents/setting里面设置如下


这个packages是自己设的,你只需把XeTex要用到的自己写个packages就好了
  • 修改 C:\Program Files\LyX16\Resources\lyxrc.dist 文件,在最后面加入下边两行
  • \format "pdf4" "pdf" "PDF (xelatex)" "" "" "" "document,vector"
    \converter "pdflatex" "pdf4" "xelatex $$i" "latex"
  • 在工具栏中也添加xelatex的预览和更新可以在\LyX16\Resources\ui\stdtoolbars.inc 文件,在 Toolbar "view/update" "View/Update" 这部分后面添加下边三行
  • Separator
    Item "View PDF (xelatex)" "buffer-view pdf4"
    Item "Update PDF (xelatex)" "buffer-update pdf4"

Dec 3, 2008

Arch Linux 硬盘网络安装——通过代理

安装前的准备
  1. 下载arch的2008-03的ftp的iso
  2. 解压得到vmlinuz和initrd
  3. 用grub引导
  4. 准备arch的2008-06的setup文件,可以通过虚拟机拷出来 可以在这里下载
  5. 所有文件可以这里下载 。
安装过程
  1. 引导进去以后,首先用06的setup来替换掉原来的。
  2. 通过代理来网络更新,需要设置代理。首先网络安装时不是通过pacman来下载的,也不是通过wget来下载。因此设置wget代理没有用。可以通过设置环境变量来下载:export http_proxy="http://proxyusername:proxypassword@192.111.111.1:8080"。ftp代理类似
  3. 可以先编辑mirrorlist文件,这样在选择源时不需要再输入特定的源了。
  4. 注意最好一次成功,不然网络如果搞得不对的话,会不能下载的,即使修改后还是有问题。此时可以考虑重新引导,或者删掉/tmp里面的相关文件