Feeds:
文章
评论

Archive for 2013年11月

Key words include: Windows 7 64bit, MinGW, Sublime Text 2 and CMake. github has this sublime text 2 c++ project boilerplate, which includes a CMakeLists.txt demonstrating linking to the Boost regex library.

Install MinGW

Download from MinGW Distro. This distribution includes up-to-date MinGW, as well as several often used libraries, e.g. Boost. Installation is as easy as extracting. Note that, GCC’s mode is C++11 by default since v11.2.

After extracting to C:\, add the following paths to the system environment variable PATH: (If not installed to C:\MinGW, we need further update cmake commond’s CMAKE_MAKE_PROGRAM in the project boilerplate.)

  • C:\MinGW\bin
  • C:\MinGW\lib
  • C:\MinGW\include

Install CMake

Download the Windows installer (only 32bit) from the official site.

After installed to the default path, add C:\Program Files (x86)\CMake 2.8\bin to PATH.

Set up Sublime Text 2

Assume Sublime Text 2 and Package Manager installed.

Use Package Manager to install CMake Syntax.

Download the project boilerplate.

Use the project boilerplate

Set the default Build System as make (Tools -> Build System –> make).

Ctrl+Shift+P –> cmake to run cmake

Ctrl+B to make

 

Will add “run” and “debug” two commands. And perhaps add auto complete suggestions supports for Sublime Text 2.

Reference Sites

Advertisements

Read Full Post »

今天,一个同事嘴唇上火了,我问他怎么了,他回答,但我没听懂。上网查了查“嘴唇上火”英文怎么说,有各种讨论和回复,但没找到准确的。然后,我向这位同事认真的请教:他曾经是一名GP。然后,我明白了,翻译“嘴唇上火”实际上是一个相当专业的医学术语问题,而且,中医“上火”概念的极大的影响了这个翻译(以及网上各种讨论)。

先抛出翻译:

  • Herpes labialis,中文意思是唇疱疹。这个是SNOMED CT推荐的术语。也是“嘴唇上火”的医学术语。
  • Herpes simplex,中文的意思是单纯疱疹,唇疱疹的更一般病症表述。
  • 略微口语化的表达可以是Cold sore或者Fever blister。值得一提的是,这两个略微口语化的表达是非常准确且有医学专业背景的。Cold sore是NHS官网上的。同时,两者都被SNOMED CT收录为Herpes labialis的同义词。

稍微分析一下:网上对“嘴唇上火”的翻译,大都从“火”来直译,这个是受中医“上火”的概念影响的。

我的分析,要从症状入手翻译:嘴唇上火的症状是嘴唇上起燎泡。水泡或者燎泡译为blister是准确的。其次,要从医学术语入手寻找翻译,那些燎泡是一种疱疹(herpes)。进一步,唇部的疱疹,即嘴唇上火,就是Herpes labialis。其中,labialis是唇的意思。

 

题外话:在确认“嘴唇上火”怎么翻译的过程中,也简单了解了这个病症:嘴唇上火,即唇疱疹,或者单纯疱疹,是一种病毒引起的局部病变。初次感染后,病毒会永远潜伏在人体内(感觉神经细胞内),然后因为某种诱因,再度发作。西医发现感冒/发烧是常见的诱因,所以被称作Cold sore或者Fever blister。

此外,我们熟知的“出水痘”也和“嘴唇上火”有点联系:水痘是病毒引起的,这个我们都知道了。而水痘的后遗症(远期并发症),叫做带状疱疹(Herpes Zoster,或者shingles),中医称作“缠腰龙”。“缠腰龙”的发作和“嘴唇上火”的发作原因类似,是因为长期潜伏在人体内的病毒(水痘病毒Varicella Zoster)再度发作引起的。

 

Reference:

  1. SNOMED CT: Systematized Nomenclature of Medicine Clinical Terms。是一个医学术语的国际标准。
  2. Wikipedia (小心各种疱疹的照片,比较恶心)
  3. “嘴唇上火”英文翻译的讨论:http://bbs.tianya.cn/post-english-126757-1.shtml
  4. Cord sore NHS page: http://www.nhs.uk/conditions/Cold-sore/Pages/Introduction.aspx

Read Full Post »