Posts

Showing posts from July 3, 2011

Yaksha (夜叉) in “Journey to the West” (西游记)

Perm url with updates: http://xahlee.org/lit/yaksha_Journey_West.htmlYaksha (夜叉) in “Journey to the West” (西游记)Xah Lee, 2011-07-09Yaksha 夜叉 appeared in 西游记 (Journey To The West) many times. Here's a list of all occurrences.西游记,第三回 (页1): 好猴王,跳至桥头,使一个闭水法,捻着诀,扑的钻入波中,分开水路,径入东洋海底。正行间,忽见一个巡海的夜叉,挡住问道:『那推水来的,是何神圣?说个明白,好通报迎接。』悟空道:『吾乃花果山天生圣人孙悟空,是你老龙王的紧邻,为何不识?』那夜叉听说,急转水晶宫传报道:『大王,外面有个花果山天生圣人孙悟空,口称是大王紧邻,将到宫也。』西游记,第九回 (页1): 这正是路上说话,草里有人。原来这泾河水府有一个巡水的夜叉,听见了百下百着之言,急转水晶宫,慌忙报与龙王道:『祸事了!祸事了!』龙王问:『有甚祸事?』夜叉道:『臣巡水去到河边,只听得两个渔樵攀话。相别时,言语甚是利害。那渔翁说:长安城里西门街上,有个卖卦先生,算得最准。他每日送他鲤鱼一尾,他就袖传一课,教他百下百着。若依此等算准,却不将水族尽情打了?何以壮观水府,何以跃浪翻波辅助大王威力?』龙王甚怒,急提了剑就要上长安城,诛灭这卖卦的。旁边闪过龙子龙孙、虾臣蟹士、鲥军师鳜少卿鲤太宰,一齐启奏道西游记,第十八回 (页2): 行者却弄神通,摇身一变,变得就如那女子一般,独自个坐在房里等那妖精。不多时,一阵风来,真个是走石飞砂。好风:起初时微微荡荡,向后来渺渺茫茫。微微荡荡乾坤大,渺渺茫茫无阻碍。凋花折柳胜揌麻,倒树摧林如拔菜。翻江搅海鬼神愁,裂石崩山天地怪。衔花糜鹿失来踪,摘果猿猴迷在外。七层铁塔侵佛头,八面幢幡伤宝盖。金梁玉柱起根摇,房上瓦飞如燕块。举棹梢公许愿心,开船忙把猪羊赛。当坊土地弃祠堂,四海龙王朝上拜。海边撞损夜叉船,长城刮倒半边塞。西游记,第二十一回 (页1): 王母正去赴蟠桃,一风吹断裙腰钏。二郎迷失灌州城,哪吒难取匣中剑。天王不见手心塔,鲁班吊了金头钻。雷音宝阙倒三层,赵州石桥崩两断。一轮红日荡无光,满天星斗皆昏乱。南山鸟往北山飞,…

食蔓鬼 Wreath-eating Ghost

Image
Perm url with updates: http://xahlee.org/dinju/wreath-eating_ghost.html食蔓鬼 Wreath-eating GhostXah Lee, 2011-07-09食蔓鬼. img srcThis is one of the sculptures outside of 丰都鬼城 (Fengdu Ghost City).What does 食蔓鬼 mean? 食=eat. 蔓 means 蔓菁, aka 蕪菁, 大頭菜 , which means turnip. So, with literal interpretation, it means “turnip-eating ghost”.蔓菁 Turnip蔓菁, 大頭菜, turnip. img srcTurnip flower. img srcTurnip roots. img src食蔓鬼 Wreath-eating GhostBut what does it really mean? According to this page: 鬼的种类及业因 By 陈咏明 @ www.longyuan.net, quote: 鬼的种类极多,正法念经卷十六中列举出三十六种鬼:…十一、食蔓鬼 有人用鲜花进行祭祀时,此鬼便于此时食花,虽身常饥渴,但不能吃别的东西。因其前生曾盗用装饰佛像的“华蔓”来打扮自己。“华蔓”指用鲜花编织成串的装饰物。Quick translation:There are many types of ghosts. The book 正法念经 [a old Buddhism scripture], section 16, lists 36 types of ghosts.…11. Wreath-eating Ghost. When in worship, this ghost eats the fresh flower given to the gods. Although she is hungry, but she can't eat anything else. Because, in prior life, she stole the ornamental flowers used on budha statues to…

HTML5 {meter, progress} Tags

Perm url with updates: http://xahlee.org/js/html5_meter_tag.htmlHTML5 {meter, progress} TagsXah Lee, 2011-07-08This page shows examples of the “meter” and “progress” tags.Meter TagThe meter tag is a inline element. It is used to indicate a measure within a given range. e.g. disk usage, percentage. Here's a example:Example 1HTML Code: <p><metervalue="0.7">70%</meter></p> Here's what your browser shows:70%Example 2 <p><metervalue="3"min="0"max="5">★★★</meter></p> ★★★Meter Tag Attributesvalue. Required.min and max. Specifies the range for possible values of the “value” attribute. If none of these are specified, they are by default 0 and 1.low. A number indicating that values below or equal to it is considered low. (must be within “min” and “max”.)high. A number indicating that values above or equal to it is considered high. (must be within “min” and “max”.)optimum. A number indicating the opti…

Perl Program to Delete Duplicate Files

Image
Perm url with updates: http://xahlee.org/perl-python/delete_dup_files.htmlPerl Program to Delete Duplicate FilesXah Lee, 2005-03-20, 2011-07-08Suppose you have 30 thousands of files in many directories. Some of these files are identical, but you don't know which ones are identical with which. Here's a perl script that solves the problem.How to Use It perl del_dup.pl --help To find dup files in a dir: perl del_dup.pl dirpath To find dup files in several dir: perl del_dup.pl dirpath1 dirpath2 dirpath3 ... To delete dup files: perl del_dup.pl --delete dirpath or perl del_dup.pl --delete dirpath1 dirpath2 ... When there are duplicate files, the first one found (in the order the dir is given) is preserved, the others are deleted. To see this help again: perl del_dup.pl --help Note: the options --help and --delete must be first argument. A file is considered duplicate only if its file content is exactly identical. If you have 2 images, one is scaled version of the other, …

HTML Table Examples with colgroup and col

Perm url with updates: http://xahlee.org/js/html_table_colgroup.htmlHTML Table Examples with colgroup and colXah Lee, 2011-07-07HTML table has a “colgroup” tag. It is used to indicate that several columns are a group. It does not change the rendering of the table. However, it is convenient to use it so that you can use CSS on just one tag, instead of adding a class to every “th” tag. Example:1,11,21,31,41,51,61,71,81,92,12,22,32,42,52,62,72,82,9Here's the source code: <tableborder="1"> <colgroupspan="1"style="background-color:blue"></colgroup> <colgroupspan="3"style="background-color:pink"></colgroup> <colgroupspan="2"style="background-color:yellow"></colgroup> <colgroupspan="3"style="background-color:gray"></colgroup> <tr> <td>1,1</td> <td>1,2</td> <td>1,3</td> <td>1,4</td> <td>1…

HTML5 “ruby” Tag

Perm url with updates: http://xahlee.org/js/html5_ruby_tag.htmlHTML5 “ruby” TagHTML5 has {ruby, rt, rp} tags. These are used for pronunciation markup for Asian languages (mostly Japanese, sometimes Chinese). This page show examples of how to use it.Following is HTML code for ruby annotation of the chinese characters 漢字, with the japanese pronunciation {かん,じ}. <ruby>漢<rt>かん</rt>字<rt>じ </rt></ruby> Here's what your browser shows: 漢かん字じ If your browser supports ruby annotation, the pronunciation should be rendered in small font above the chinese characters.The following are 2 more examples. The first one uses the pinyin pronunciation system, the second uses zhuyin. (See: Zhuyin (bopomofo), Pinyin, IPA, Comparison.) <ruby>汉<rt>hàn</rt>字<rt>zì </rt></ruby> <ruby>漢<rt>ㄏㄢˋ</rt>字<rt>ㄗˋ </rt></ruby> what your browser shows: 汉hàn字zì , 漢ㄏㄢˋ字ㄗˋ The “rp” TagThe “rp” tag is used to add p…

Emacs Lisp: Processing HTML: Transform Tags to HTML5 “figure” and “figcaption” Tags

Perm url with updates: http://xahlee.org/emacs/elisp_batch_html5_tag_transform.htmlEmacs Lisp: Processing HTML: Transform Tags to HTML5 “figure” and “figcaption” TagsXah Lee, 2011-07-03Another triumph of using elisp for text processing over {perl,python}.The ProblemSummaryI want batch transform the image tags in 5 thousand html files to use HTML5's new “figure” and “figcaption” tags.I want to be able to view each change interactively, while optionally give it a “go ahead” to do the whole job in batch.Interactive eye-ball verification on many cases lets me be reasonably sure the transform is done correctly. It also lets me see whether i want to push forward with this change.DetailHTML5 has the following new tags: “figure” and “figcaption”. They are used like this: <figure> <imgsrc="cat.jpg"alt="my cat"width="167"height="106"> <figcaption>my cat!</figcaption> </figure> (For detail, see: HTML5 “figure” & “figurecap…

Are You Intelligence Enough to Understand HTML5?

Image
Perm url with updates: http://xahlee.org/UnixResource_dir/writ/html5_vs_intelligence.htmlAre You Intelligent Enough to Understand HTML5?Xah Lee, 2011-07-03Are you intelligent?Check. I have SAT score of {600/verbal, 660/math} to prove it. Was a member of Mensa in ~1992. (I exited Mensa because i didn't want to pay annual membership fee.) Do you have years of experience working with HTML?Check. My website xahlee.org is 5 thousand pages of hand-crafted html, started in 1997. More than three thousand of those pages are written, typed, word by word, tag by tag, in a text editor. They are strictly correct, passing W3C's HTML validator. Do you have good understanding of mathematical logic?Check. I have studied math for over a decade, and am especially interested in formal logic. I've written several articles about it. By Luck, I've also done a stint as a lecturer for graduate math students on math visualization programing. (See: Math Notations, Computer Languages, and the “Form…

HTML5 “time” Tag

Perm url with updates: http://xahlee.org/js/html5_time_tag.htmlHTML5 “time” TagXah Lee, 2011-07-03The “time” tag is used to represent date/time combination. Examples: <footer>Published <time pubdate datetime="2011-07-03">07/03</time>.</footer> I need this <timedatetime="2011-07-03T12:28:57-07:00">now</time>! Captain's log, date <time>2011-07-03T12:51:02-07:00</time>. Note: if you do not include the “datetime” attribute, then your “time” tag's content must follow the same format used by the “datetime” attribute.“datetime” Attribute“datetime” attribute encodes the precise date or date/time. The format must be exact, and must include at least “yyyy-mm-dd”. (time info is optional) Examples: … mom's birthday <timedatetime="2011-07-03">July 3rd</time> … … had piano lesson at <timedatetime="2011-07-03T13:00">1 pm</time> … … the bomb went off at <timedatetime=&qu…

July4th Flag Chicks

Image
Gisele Bundchen Tomorrow is July 4th. Remember to take photos of any flag-clad cuties, and any flag things. Send it to me. See: 〈Banners & Damsels & Mores〉 @ http://xahlee.org/Periodic_dosage_dir/lanci/lanci.html