home »

太白山印象

7月11日去爬太白山。太白山海拔3767米,是秦岭主峰。秦岭是南北方地理分界线之一(东部以淮河为界)。

Mt Taibai, a fairyland from Li Yi on Vimeo.

相册在这里(为方便浏览,照片已批量缩小)。

Category: /travel | Permalink

A Chinese translation of a book

I'm trying to translate R. B. Grossman's book The Art of Writing Reasonable Organic Reaction Mechanisms (2nd ed., Springer, 2003) into Chinese in my spare time. The printable sample document can be downloaded from this website (click the link below), which is comprised of a table of contents and a sample chapter.

A Chinese translation of The Art of Writing Reasonable Organic Reaction Mechanisms, a sample chapter. (Created: 2007-06-21. Last updated: 2009-05-12.)

I do post nothing about this work to any other website or forum except my website (http://liyi.freeshell.org/) and my blog (http://yli.livejournal.com/). If you like to post something about it, please give a clear indication of the original source URL: http://liyi.freeshell.org/chemistry/taowm , thank you!

Feel free to drop me an email, I'll be very happy to receive comments from readers.

我在抽空翻译 R. B. Grossman 的 The Art of Writing Reasonable Organic Reaction Mechanisms, 2nd ed., Springer. (2003) 这本书。目录和样章提供下载:

《合理推断有机反应机理的艺术(样稿)》 (初稿:2007-06-21. 更新:2009-05-12.)

本书的内容和更新只在我的网站 (http://liyi.freeshell.org/) 和网志 (http://yli.livejournal.com/) 上发布,不会在其他网站分发。如果引用需要标明来源,请使用如下 URL: http://liyi.freeshell.org/chemistry/taowm , 谢谢!

虽力求翻译准确,但谬误在所难免,恳请读者指正。联系方式见 web 页面右上方或 PDF 样稿译序脚注。

Category: /chemistry | Permalink

西安国际机场交通指南

概况

西安咸阳国际机场(XIY)设在咸阳,距咸阳市13公里,距西安市47公里,距宝鸡市175公里。所有经停西安的民航客机都在这里起降。

机场目前有两个航站楼

  • 1号航站楼:南方航空公司(下属厦门航空、四川航空、重庆航空)
  • 2号航站楼:国内其他、国际和港澳台航空公司

机场与西安市(或咸阳市)之间的交通有三种选择

  • 自驾车
  • 大巴(注意运营时间)
  • 出租车

Read more ...

Category: /travel | Permalink

Mechanism: Ozonolysis of an enol ether

My hypothesis on an ozonolysis reaction mechanism of an enol ether.

ozonolysis reaction mechanism

Schank, K.; Beck, H. and Pistorius, S., Helv. Chim. Acta 2004, 87, 2025. [DOI: 10.1002/hlca.200490182]

Category: /chemistry/mechanisms | Permalink

硬盘安装 Debian

1. 下载安装文件

Debian 镜像列表 中选择镜像,下载以下三个文件,存放到 C:/debian/ 目录下:

  • debian-31r4-i386-netinst.iso (112M)
  • vmlinuz (798K)
  • initrd.gz (2.9M)

第一个文件在镜像的 /debian-cd/3.1_r4/ 目录中;

后两个文件在 /debian/dists/Debian3.1r4/main/installer-i386/current/images/hd-media/ 目录中。

2. 安装 Grub4DOS

下载 Grub for DOS,按提示安装到 Windows 的 C: 盘。实际上只需把二进制文件 grldr 拷贝到 C: 盘根目录。

编辑 C:/boot.ini ,添加:

C:\GRLDR="Start GRUB"

3. 安装基本系统

重启,进入 Grub 启动菜单,选择 Boot Grub,在 Grub 命令行依次输入以下三行:

grub> kernel (hd0,0)/debian/vmlinux root=/dev/ram \
> ramdisk_size=512000 devfs=mount,all
grub> initrd (hd0,0)/debian/initrd.gz
grub> boot

即开始安装基本系统。

注:

A. 分区基本原则:

  • 必须有主分区 / 和 swap,用户目录 /home 最好单独分区,如果用来做数据库或服务器,分区应当更细;
  • swap 分区的大小:当内存小于 256M 时,swap 分区大小为内存大小的二倍;当内存大于 512M 时,分给 swap 分区约 512M。

B. 桌面环境及其它软件包

在安装基本系统时,按提示设置好网络和 sources.list ,安装好基本系统以后,用 APT 安装桌面系统及其它软件包。

Category: /computer/debian | Permalink

ThinkPad T61 安装 Windows XP 的必要设置

ThinkVantage 帮助文档中有一个方法 (Access Help --> Advanced configuration --> Installing a new OS --> Installing Windows XP)。 把 CMOS 设置成 AHCI 模式,先安装南桥芯片组驱动,再安装 Windows XP 操作系 统,因为 Windows XP 安装 CD 中没有 SATA 硬盘接口驱动。帮助文档建议从 SCSI 控制器或 RAID 卡安装,否则安装过程中会出现蓝屏。实际上,在 BIOS 中把 SATA 设置成Compatibility 模式,可以绕过缺 SATA 驱动的限制。

关键步骤:

  1. 进 BIOS --> Config,把 Serial ATA(SATA) 设置为 Compatibility 模式 (默认为 AHCI 模式);
  2. 依次安装:
  3. 开机,进 BIOS --> Config,把 Serial ATA(SATA) 改回 AHCI 模式;
  4. 安装其他驱动……

--------------------

列几个链接参考:

Category: /computer/laptop | Permalink

软件开源协议和作品使用授权

昨天 Ian Murdock 给 talk,主要为推广 Sun 的开源操作系统 OpenSolaris 做宣传,免不了讲讲当年制造 Debian 的光辉历史。

现场有个问题,开放源代码时如何选择协议?目前 GPL/CDDL(~MPL) 各有侧重,有些内容互相冲突,会产生什么后遗症只有遇到过具体问题的人有体会。 Ian 的回答谈了一些区别,具体涉及较少。

和合法使用软件相似的一个问题是,怎样合法使用从网上得到的文字、图片和多媒体等作品。其中,有的原作者声明使用 Creative Commons (创作共用)某协议或某几个协议组合授权,明确了具体限制条件。如果依照授权使用,没有问题。有些虽然没有明确授权,但是能找到原始出处,可以主动联系原作者要求授权,当然这需要时间。另外,有不少是东抄西抄的、或者原作者过世已久版权不明的(如果是当代,版权也可能归出版社),很难找到原始出处或原作者根本无从联系。这些情况下需要使用作品怎么办?目前有一个钻空子的做法,如果是未授权公开的图(比如一副画),使用屏幕截图或数码相机记录而绕过原始文件,或者搭配其他对象拍一张照片当作自己的“创作”来“共用”,这样既不厚道也欠妥当。如果在正式文件中这样使用未授权的作品,可能会有麻烦。

Category: /news | Permalink

Abbreviated \today

\newcommand{\abbrtoday}{\ifcase\month\or%
Jan.\or Feb.\or Mar.\or Apr.\or May\or Jun.\or%
Jul.\or Aug.\or Sep.\or Oct.\or Nov.\or Dec.\fi%
\space\number\day, \number\year}

Category: /computer/tex | Permalink

How to install font symbols' packages (like ifsym) in teTeX?

It's so easy to generate and set up a new .sty file.

But how can we install a font/symbol package like ifsym ?

Is this a general method ?

  1. create a directory $TEXMF/fonts/sources/public/ifsym
  2. copy all the *.mf *.gen to this directory
  3. create a directory $TEXMF/tex/latex/ifsym
  4. copy all the *sty *.fd to this directory
  5. Add the following lines to the file: $TEXMF/fontname/special.map
    ifsym public ifsym
    ifgeo public ifsym
    ifwea public ifsym
    ifclk public ifsym
  6. update the TeX file database by running texhash or whatever your Tex imprementation provides.
  7. create a document:
    \documentclass{article}
    \usepackage[geometry]{ifsym}
    \begin{document}
    \Circle
    \SquareShadowA
    \end{document}
  8. Run LaTeX, if everything is fine, you should see a dvi that has a big circle and a big square shaded with a simple line at bottom and right of the square.

(See: http://www.tug.org/pipermail/tugindia/2001-August/000056.html)

Category: /computer/tex | Permalink

配置 SCIM

环境:Debian (3.1, sarge): Xorg (1:7.1.0-11); GNOME (1:2.14.3.5); SCIM (1.4.4-7)。

1. 设置 locale

# dpkg-reconfigure locales

选择 locales,如 en_US.UTF-8, zh_CN.UTF-8, zh_CN.GBK。

2. 安装 SCIM

# apt-get install scim scim-gtk2-immodule scim-modules-socket \
> scim-modules-table scim-pinyin scim-tables-zh

3. 修改 /etc/gtk-2.0/gtk.immodules

- "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" 
+ "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh:en" 
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" ""
+ "scim" "SCIM Input Method" "scim" "/usr/share/locale" "zh:en"

4. 重启 X

中、英文环境下都可以输入中文。

Category: /computer/debian | Permalink

Page 1 of 2: 1 2