志豪's profilewelcome!PhotosBlogLists Tools Help
Photo 1 of 1

志豪 李

Occupation

welcome!

//
October 15

http://hmaya.blog.sohu.com/

以后不再MSN的blog上混了,回复和评论太复杂了,不方便。搬到sohu上去,欢迎大家去踢场子,地址如下:
 
 
October 14

牛逼的字典!(ZZ from 令狐补充)

 
香港的一些出版商有时候真是没有眼光。居然嫌弃这本《广东话俗语字典》("A Dictionary of Cantonese Slang - The Language of Hong Kong Movies, Street Gang and City Life".)内容太过鄙俗下流,不愿意出版。全然不顾词条全部来自香港市井小报、黑社会漫画、八卦周刊、蛊惑仔电影和黑帮电影,语言生猛活泼,释义精到有趣。字典的编著者求告无门,无奈,只得拿到新加坡,以保守著称的新加坡国立大学(national university of sigapore)一看大喜,马上爽快地出版了。搜索一下网页可以发现,对这本书是一面倒的赞誉之声。许多香港的有识之士都为这本牛逼字典没有在本土出版感到惋惜,叹息香港在拒绝出版字典的那一瞬间看起来还真他妈有点文化沙漠的意思。这般香港高雅书商眼里的鄙俗字典,其实是一本非常严肃的学术著作,取材别致,体列规范,编篡态度相当严谨。只是它太大胆太有趣,稍微懂一点广东话的人居然可以把一本辞典阅读得哈哈大笑,显然让学术崇拜狂们不舒服,也弄得高雅书商脸红筋胀昏了头。有一点是没有疑问的,那就是在接受这本书的时刻,新加坡国立大学绝对没有害眼病,也说明保守的人也有性欲。

不可遗漏的是,知道这本收罗了香港市井俗语,且不避脏话的字典,乃是由两位在香港大学任教的外籍人士编著的。说到这里,我觉得我应当郑重鼓励大家吃惊一下。christopher hutton和kingsley bolton,他们都是语言方面的专家,前者在牛津大学和哥伦比亚大学研究过语言,曾在得克萨斯州立大学教过意第绪语。后者是在香港大学任教二十年的资深教师、语言学教授。这是一本汉字词条、拉丁注音、英语释义给非华语人士阅读的字典。

闲话少说,其精彩录几条在此资证即可:

1、香港人民的恶搞
Yat Gwok Leuhng Jai 一国两制[one country two systems] a massage parlour which offers both sexual services and ordinary massage.



2、脏话肥沃,骂出花儿来
diu neih louh mei chat choi yun yeung faa laahn doi hahm lung laoh seui daaih sai bin jo king faa lauh daaih chun coi aa 丢你卤味七彩鸳鸯臭化烂袋含脓流水大细左倾花柳大春袋呀[fuck your old roasted meat colourful pair of lovers getting smelly and rotten scrotum puss running water lop-sided leaning to the left syphilitic great big scrotum ]an obscene expression of extreme anger,a creative variant of "fucher your mother", diu neih louh mou 丢你老母(fmyy 58,9).

3、逃过广电总急审查
ding neih go fai 顶你个肺[to pierce your lung]an expression of irritation,aggression,suprise or amazement,"shit!","damn you!","sod you!"(a variant of diu neih louh mou 丢你老母)

//呵呵,看英文明白顶你个肺的意思了,to pierce your lung]an expression of irritation,aggression,suprise or amazement,"shit!","damn you!","sod you!"(a variant of diu neih louh mou 丢你老母)

October 08

财富

清点财富  (黄云)
如果早上醒来,你发现自己还能自由呼吸,你就比在这一周离开人世的100万人更有福气。
如果你从未经历过战争的危险、被囚禁的孤寂、受折磨的痛苦和忍饥挨饿的难受......你已经好过世界上的5亿人了。
如果你的冰箱里有食物,身上有足够的衣服,有屋栖身,你已经比世界上70%的人更富有。
如果你银行户头有存款,钱包里有现金,你已经身居世界上最富有的8%的人之列。
如果你的双亲仍然在世,并且没有分居或离婚,你已经属于稀少的一群。
如果你能抬起头,带着笑容,内心充满感恩的心情,你是真的幸福---因为世界上大部人都可以这样做,但是,他们没有。
如果你能握着一个人的手,拥抱他,或者只是在他的肩膀上拍一下.....你的确有福气---因为你所做的,已经等同上帝才能做到的。
如果你能读到这段文字,那么你更是拥有双份的福气,你比20亿不能阅读的人更幸福。
//如果碰巧,你是对着电脑,在网上看到这段文字的,你知道你有多幸福?
想想这些,你还有什么不快乐的呢?
 
//////////////////////////////////////////
/////////////////////////////////////////
假期回家,跟父亲母亲在一起,自己还尝试着帮忙播种了小麦。其实就是拉拉耧而已,其他的像打埂之类的,就干不了了。
爷爷腰弯得更厉害了,但扶耧很稳很直,据说三爷扶的更直。
三叔更加的稳健,对于农活生计的安排越来越细密周全了。
跟秋玲姑拉家常还是那么贴心。二奶还是那么热情厚道。街坊邻居打招呼还是那么的熟悉。
老娘80多了,还很硬朗,大舅二舅的脸也越来越沧桑了。老表应从当年的意气风发少不更事到如今的成家立业独自支撑一家门户,转眼晓和奇都长大了。
当年骑车带我出去玩,送我文具盒送我笔送我《作文精粹》《喻林童话》的丽姐,小女儿也已经会见我就哭还会吹我买给她的肥皂泡泡了。而我从那本作文书里学到的字句已经帮助我叩开中学、大学的门并且再不写那样的字句了。80年代从那本童话里看到的似懂非懂的“的士巴士巴格达大马士革”到今天的一笑释然还有些鄙视当年的浅薄,可是家里带字的东西就这些了。我能为她做什么呢?
 
志伟和艳歌结婚了,前天晚上伙同另外两个初中好友去看了看,“添箱”。第二天终究由于我的小心眼和一些巧合,不想去教堂不想去他家吃饭了。
小宁过一段也要结婚了,坐他摩托跟他去东城溜了一圈,唏嘘楼群林立马路宽敞,还看到了两年前和某某人一起走过的小火车道一起走过的河堤,以及帮一个老太太试鞋的路口........晚上和“苏嫂”他们吃饭聊天,后来和苏叔叔聊了很多。以前去找苏宁玩,叔叔不太爱说话。这晚可能是他喝了点酒,说了很多心底的话。也许在叔叔眼里我带个眼镜,像个文化人,又在外求学。叔叔感叹他的生不逢时未能如愿上学或参军,错过了许多;也自责未能让小宁出去闯.........叔叔是个老技术员老党员,机械知识精湛。其实我倒是蛮佩服他和小宁,正像他说,“和平年代,一家相安无事,和美生活就是。英雄总是出在乱世。”人生短短几十年,真的很难界定什么是成功,什么是幸福,什么是对什么是错。
其实我就是文盲,戴个眼镜硬充文化人儿。
 
 
东张大桥的水是大的很了,或许是上游放水了,或许是今年雨水特别多。远处的寨墙隐约在参差不齐歪歪斜斜的芦苇丛后面,一湾碧水,总缠绵在树苗和隐约的庄稼地里。也许起初人们并未料到今年会有这么大的水,所以在河湾里种了庄稼,再了树苗。如今,大大小小杨树苗斜躺在齐腰的水里,树叶树枝倒映在水中,配合远处凸起的滩头,疑似进入了水乡。旁边有一些钓鱼的人,两岸的田野里,有人在忙着耕种。一忽,由北向南,公车将我带离了这片水乡,我扭头看看,再看看,他们仍然不停留,在渐渐的远去。
 
September 27

The Flight of Youth

The Flight of Youth
    by Richard Henry Stoddard
There are gains for all our losses.
There are balms for all our pain:
But when youth, the dream, departs
It takes something from our heart,
And it never comes again.
 
We are stronger, and are better,
Under manhood's sterner reign:
Still we feel that something sweet
Followed youth,with flying feet,
And will never come again.
 
Something beautiful is vanished,
And we sigh for it in vain;
We behold it everywhere,
On the earth, and in the air,
But it never comes again! 
 
//与Q.W神侃,发现许多自己年轻时的影子,哈哈。有朋自远方来,若备上一杯好茶,对面湖光塔影,促膝长谈,不亦乐乎。
September 25

盘子

//有意思,一帮人才把盘子问题放在桌面上讨论开了
//1,原来不是问题的,现在出了问题,为什么?有变化!A===人变了,B====食堂的某些方式变了譬如监工。
//2,有了问题如何解决?BBS上发泄一下,什么端不端分类不分类.........有这功夫成立伙委会解决阿
//3,附带的大家不由得扯一些义务权利,甚至素质、自由、精神、习惯之类的,都挺能狡辩的,反正说到底就是自己不愿受气和吃亏,例如被呵斥或搞一手油
//4,新生和老生,吵阿吵阿,呵呵,挺好,吵或者鄙视,是因为看不惯,为什么?自己老了嘛!呵呵别急,以后看不惯或者想鄙视的会更多,当然自己也更老。新东西总是不断出现。
//5,不想说了,一位同学的帖子写的不错,转过来,借机反思一下
 
我想在端盘子这个问题上我比较有发言权,因为在麦当劳做过几个月的大堂。每天就是负责端盘子。

   其实我一直觉得顾客把盘子留在作为上拍屁股走人是天经地义的事情,顾客是来消费的,完全没有义务收拾餐具。
   但在麦当劳做了几个月之后,我的想法有了彻底的改变,因为我发现所有外国人(美国人、欧洲人、甚至包括日本人和阿拉伯人、非洲人)都会自己把盘子送到回收处,把垃圾倒掉,并把桌子搽干净。而对于每一个主动收拾餐具的中国人,店经理都会安排我们一定要去说“thankyou”。当然,在国外是不用说“thankyou”的,因为每个人都会去主动收拾餐具,我问经理为什么要去说“thankyou”,经理说:“这样我们可以为中国人养成良好习惯做一点点小努力”

   至今我不会忘记那些把盘子倒完还一丝不苟地用餐巾纸把桌子搽拭干净的人,于是从此我也每次自己用餐之后都很认真的把座位收拾干净。

   每个国家都有每个国家的习俗,我们习惯了吃大餐,所以我们不收拾盘子,可是快餐和速食在中国本来是没有的,不管你用餐有没有付费,快餐有快餐的文化,只是中国人把快餐文化又加上了中国特色的烙印,认为不端盘子理所当然。其实如果我们每个人都稍微付出一点点劳动,在餐后把盘子放回原处会极大提升一个餐厅的客户容量,从而降低餐厅的成本,然后我们可以享受更廉价的食物,可惜我们学会了左手拿刀,右手拿叉,却没有学会餐后收拾盘子。

September 22

//海子

泉水白白流淌
花儿为谁绽放?
这样美丽而负伤的麦子
吐着芬芳
站在山冈上

September 19

MObject Wrappers Function sets Proxies MFn MIt MPx M

//note for maya c++ API

MObject
Access to all Maya objects (curves, surfaces, DAG nodes, dependency graph nodes, lights, shaders, textures, etc.) is done through a handle object called an MObject. This handle provides a few simple methods to help determine the object type (see the MObject class documentation for a complete description). The MObject destructor does not delete the Maya object that it references—calling the destructor only deletes the handle object, thereby maintaining ownership.


Wrappers
Wrappers exist for simple objects such as math classes (like vectors or matrices). They are generally fully implemented C++ classes with public constructors and destructors. API methods may return a wrapper, which you are then responsible for—leaving scope will usually be adequate for deleting the wrapper. You are also free to allocate and deallocate them as necessary. In the previous example (Building a curve using a plug-in), MPointArray and MDoubleArray are wrappers. You always own the wrapper that you reference.

 

Function sets
Function sets are C++ classes which operate on objects. In the example, Building a curve using a plug-in, MFnNurbsCurve is a function set (the MFn prefix indicates this).

Proxies
The Maya API uses proxy objects to create new types of Maya objects. Proxies are objects that you create but Maya owns.

 

Naming Conventions
The Maya API uses a convention of prefixes on its classes to distinguish the various types of C++ objects that it uses.

MFn
Any class with this prefix is a function set used to operate on MObjects of a particular type.

MIt
These classes are iterators and work on MObjects much the way a function set does. For example, MItCurveCV is used to operate on an individual NURBS curve CV (there is no MFnNurbsCurveCV), or iteratively, on all the CVs of a curve.

MPx
Classes with this prefix are all Proxies, API classes designed for you to derive from and create your own object types.

M classes
Most of these classes are Wrappers, though there are others. For example, Function sets is a handle on Maya's internal objects, and MGlobal is a class of static methods that operate globally and do not require an MObject on which to operate. (See Chapter 2, "Selecting with the API" for information on MGlobal.)


MFnNurbsCurve curveFn;
MObject curve = curveFn.create( ... );
curve = curveFn.create( ... );

The global active selection list can be copied through:

MGlobal::getActiveSelectionList()

This returns an MSelectionList and makes a copy of the list.

Any changes you might make through MSelectionList methods will not affect the global list unless you use:

MGlobal::setActiveSelectionList()

You can also create your own lists using MSelectionList to merge with other lists, including the global list. You can use this list to create sets of objects (see setObject() method).

MSelectionList
MSelectionList provides you with methods to add and remove objects from the selection list, as well as walk through the objects on the list.

Simple plug-in example
#include <maya/MSimple.h>
#include <maya/MGlobal.h>
#include <maya/MString.h>
#include <maya/MDagPath.h>
#include <maya/MFnDagNode.h>
#include <maya/MSelectionList.h>

MStatus pickExample::doIt( const MArgList& )
{
    MDagPath            node;
    MObject             component;
    MSelectionList      list;
    MFnDagNode          nodeFn;

    MGlobal::getActiveSelectionList( list );
    for ( unsigned int index = 0; index < list.length(); index++ )
    {
        list.getDagPath( index, node, component );
        nodeFn.setObject( node );
        printf("%s is selected\n", nodeFn.name().asChar() );
    }

    return MS::kSuccess;
}
DeclareSimpleCommand( pickExample, "Alias|Wavefront", "1.0" );

 

MItSelectionList
MltSelectionList is a wrapper class containing selected objects. This can either be a copy of the global active selection list, or a list you build yourself.

MItSelectionList lets you filter the objects on the selection list to only see objects of a particular type (MSelectionList does not let you filter selected objects).

MGlobal::getActiveSelectionList( list );
for ( MItSelectionList listIter( list ); !listIter.isDone();
listIter.next() )
{
    listIter.getDagPath( node, component );
    nodeFn.setObject( node );
    printf("%s is selected\n", nodeFn.name().asChar() );
}