19:42 我们生活中的默认值 » 中外对话新鲜出炉

现代社会的生活中究竟有多少是必需品?于爱群感叹道,似乎我们这个时代,消费已成了一种天经地义的事情。每当现代技术提供一种可能,我们很快就把它从可能变成了必需。

计算机行业有个术语叫“缺省值”,也叫“默认值”。那是在你没有指定的情况下由系统提供给你的不言而喻的基本配置。在我们的日常生活中,自来水、抽水马桶、电灯、天然气灶、电话是最早的一批缺省配置。

我这个年龄的中国人,还在没有这些配置的时代生活过。当我像我女儿那么大的时候,自来水是定时供应的,每天4个小时,分早晚两次,所以家家户户要用大缸存水。我妈妈每天起早,赶在供水的时候用手把全家人的衣服洗出来。我们全家4口人,两盏25瓦和两盏15瓦的灯管用于日常照明,一台电子管收音机是唯一的家用电器。一直到我16岁时,家里才第一次有了电话。至于炉灶,也经历了从蜂窝煤、液化气、煤气到天然气的过程。而我家里帮我照顾孩子的女孩小涵,她在农村的家至今仍然用秸杆烧火做饭取暖,用压井水,也没有抽水马桶。

后来,我的缺省配置里又陆陆续续增加了电视机、电冰箱、洗衣机、空调、电脑、抽油烟机、饮水机、排风扇、电饭煲、微波炉,它们成了我生活方式的一部分。我8岁的女儿从出生开始就享用着这些东西。在她看来,这些东西是每个家庭都理所当然拥有的,必不可少的,缺少它们,是不可思议的。

这就是家庭现代化的过程。据说只有拥有了这些东西,才算是体面的,有尊严的生活。

然而这些家用电器都是以电为能源的。在中国,70%以上的电是由煤炭转化的。这不仅意味着二氧化碳的排放,还意味着二氧化硫的污染。

以前读过一个小故事,一位哲学家,闭门读书,潜心学问。一天来到市场,不禁大吃一惊,说,天哪,这里有这么多我不需要的东西。

很长时间里我一直纳闷,哲学家为什么会大吃一惊呢?现在明白,那是因为他发现,自己的默认值和这个时代主流的默认值,有太大的差距。

就拿洗澡来说。30年前,我爸爸作为援藏医生在西藏工作的两年中,只洗了两次澡,一次是进藏时,一次是出藏时。他说,藏北大部分藏民一辈子只洗两次澡,一次在结婚,一次在死前。

三毛也讲过,撒哈拉沙漠里的居民一年才洗一次澡,每次洗澡都是一次隆重的仪式。在小涵的家乡东北农村,从前只有换季的时候才洗澡。后来每个月到镇上的公共浴室洗一次澡。至于云南傣族人,他们靠水而居,依水谋生,洗澡是家常便饭。在这些民族的生活中,洗澡是和当地的气候相适应的。洗澡,怎么洗,在哪洗,多长时间洗一次,都是由环境决定的,是由千百年来形成的文化决定的。

而在现代城市生活中,洗澡已经脱离了当地的自然环境,而成为现代行为方式的某种仪式,某种象征。直到大学毕业,我一直每周洗一次澡,而现在也逐渐习惯了每天洗澡,把它当成了生活必需。

我们生活在现代的社会中,心安理得地享受着现代生活所带来的种种便利,似乎所有的这一切都成了我们生活中不言而喻的默认值。但是我们似乎很少去认真的想一下,在我们的日常生活中,冰箱是必需的吗?空调是必需的吗?汽车是必需的吗?每天洗澡是必需的吗?每天换新衣服是必需的吗?

每当现代技术提供一种可能,我们很快就把它从可能变成了必需,成为默认值。这个过程正在变得越来越短。似乎在现在的这个时代,消费成了一种天经地义的事情。
 但是真的是天经地义的事情么?我约略会想起来小时候的一些细节。比如那个时候,很多人会把空的易拉罐剪开,制作一些烟灰缸或者花瓶,还会把纸箱上绑扎用的绳子收集起来,编成一个一个的篮子,我就提着这样的篮子去买过菜,还会将废旧的挂历或者香烟盒搓成卷,然后缀成好看的帘子。这些用心做来的东西,丝毫没有因为他们低贱的出身被人鄙视,相反,每一个都做得相当精巧,堪称是很好的工艺品。但是后来这些东西就渐渐的在我们的生活中销声匿迹了。越来越多的精美的商品和越来越多的一次性的用品出现了。于是每一个人的购买欲望都被调动起来,生活却因此少了很多精心调制的乐趣。我曾在一家工艺品店看到过这样的帘子,但是很明显是有意为之,原材料应该不是废弃的东西,但是效果却不见得好。我有时候想,我们曾经遗弃下来的大量的铜版彩页,如果用来制作这个,岂不正合适?但是似乎没有人再会去想这些。

这就是现代社会。一种以消费为中心、以物质满足为终极目的的生活方式。只是,当技术成果成为缺省配置后,已经不能带来幸福感和满足感;相反,当缺省配置缺失时,却能带来痛苦。在这样的生活方式中,缺省配置会越来越庞大,消费的欲望会越来越高,用以支撑这种消费的能源和资源越来越捉襟见肘,环境越来越不堪重负,而这时再想取消这个默认值,已经不可能了。

由俭入奢易,由奢入俭难。从来如此。

 

于爱群,中央电视台记者、编辑。

首页图片kevsunblush

18:19 讨论:生态城就是未来的面孔吗? » 中外对话新鲜出炉

住宅需求随着城市人口的增长而上升,政府和开发商对“绿色”项目越来越感兴趣了——玛莉安·贝德写道。这些项目是明智之举吗?你想搬进去住吗?

“欲治其国者,先齐其家”,这是孔夫子的无数箴言之一。尽管这句话实际上指的是各个家庭的力量,而不是建筑物的自然完好程度,但夫子之言而今可以用于另一种 “齐”家:其生态友好程度。

政府和私营部门设法一起努力减轻气候变化的负面影响,在这种情况下,住宅问题日益成为其努力的焦点。随着人口增长以及新建筑可持续性的呼声高涨,官员和房地产开发商越来越趋向于采用生态城的理念。

小的生态村在全世界存在已久,通常是基于精神信仰。不过,对环境问题的日益关注激发了人们对一种新生活的向往:有大规模的绿色、具全球合理性以及对环境影响小。那么,在温室气体排放增加和地球自然资源消耗过度的今天,将良好的环保实践和新建住宅结合起来显然是一个理想的选择。

真正可持续的、无碳生态开发项目(并最终覆盖全部的城镇)有很多可圈可点之处——如果它们的规划、设计、建造合理的话。也就是说,把最新的绿色思想、技术和各种要素融于建筑内。例如,使用可再生或可回收材料;利用清洁、有效的运输系统;利用风能、太阳能、生物量或类似的自然技术发电;节水;被动式采暖降温系统;消费本地生产的粮食;在当地购物和上班;设立电动车充电站;设立与自然和谐相处的开放空间和娱乐设施。

支持者表示,生态城能够展示住宅的未来,在变化不断和充满挑战的世界中充当解决环境问题的模范。在中国——如同在英国和其他地方一样——可持续的、节能的住宅建筑相对而言还是比较陌生,大多数人尚未感受到广告所宣传的好处。

大型的生态城受到越来越多的批评。批评者称,很多由房地产开发商而不是环保组织牵头的项目实际上并不十分环抱,它们的主要目的是为开发商赚大钱。他们指出,通过有远见的项目开发,如上海大力鼓吹的东滩及其它项目,开发商和市政当局还热衷于从“环保”标签带来的公关效应中获利。

其他的批评包括: 新的生态城——脱离当前的城市区域——占据大量的旷野地带,减少了生物多样性,破坏了风景;它们“隔离”了本应成为所有新建住宅一部分的良好的环保实践;它们增加了居民对汽车的依赖。

《绿色冲击》是跟踪绿色创新和绿色思想的网络杂志,该杂志编辑丹·伊莱特说:“如果有人宣称能够建造一座可持续发展的城市,最好先确定自己明白自己在说什么,因为还有很多有待解答的问题。”

你的看法是什么?你想在生态城里生活吗?吸引你或你所排斥的会是什么?生态城就是住宅的未来面孔吗?

 

请在论坛发表你的观点。

玛莉安·贝德:"中外对话"副主编

首页图片telex4

关于颜色理论阮一峰的网络日志 » Che, Dong's shared items in Google Reader

制作网页的过程中,我一直不知道应该如何配色。

我的意思是,我不知道应该选择哪些颜色放在一起,完全凭感觉。于是昨天,我在网上找了一些资料,希望找到理论指导。

结果很失望。颜色理论研究的都是颜色的本质,至于颜色搭配,最终靠的还是个人感觉。说到底,Choosing colors is art, not science。不过,我还是记录一下吧,其中一些东西还是很有趣的。

=================

1. Color Wheel

所谓Color Wheel,就是将一系列颜色,有次序地通过一个圆盘的形式,展现出来。

它的产生方式是,首先列出三原色(PRIMARY COLORS):红、黄、蓝。

Photobucket

然后,二二混合,产生二级颜色(SECONDARY COLORS):绿、橙、紫。

接着,继续二二混合,又产生6种三级颜色(TERTIARY COLORS):黄橙、红橙、红紫、蓝紫、黄绿、蓝紫。

通过不断混合相邻颜色,产生新的颜色,最终形成一个全域的Color Wheel。

2. 类似色和互补色

12色的Color Wheel上任意三个相邻的颜色,被称为类似色(analogous colors)。通常认为,它们放在一起会很和谐。

Color Wheel对角线上的两种颜色,被称为互补色(complementary colors)。通常认为,它们放在一起,会形成对比效果。

此外,如果要寻找三种互相平衡的颜色,可以选择12色的Color Wheel上任意三个三角对立的颜色(Triad)。

如果要寻找三种颜色,其中二种互相类似,另一种与它们形成对比,则可以选取互补色两侧相邻的颜色。(split-complementary colors

3. 颜色模型

常用的颜色模型有三种,分别是RGB、CMYK、HSV模型。

4. RGB模型

RGB是Red、Green和Blue的缩写,任意颜色都可以由红、绿、蓝这三种颜色不同比例混合后产生。这个模型主要用于电子显示屏的颜色显示。

RGB模型通常用三个十六进制数来表示颜色,FFFFFF代表100%的红色、100%的绿色和100%蓝色混合,产生白色;000000代表0%的红色、0%的绿色和0%蓝色混合,产生黑色。

5. HSV模型

H指的是Hue(色调),它是“颜色”的同义词。

S指的是Saturation(饱和度),它指的是颜色的纯度,即颜色中含有灰色(gray)的程度。饱和度越高,颜色越纯;饱和度越低,颜色中灰色成分越大。任何颜色,饱和度变成最小值时,都会变成灰色。

V指的是Value,即颜色中白色的成分。这个值越大,颜色就越白越亮,这个值最小,颜色就越黑越暗。最大值时,所有颜色都变成白色,最小值时,所有颜色都变成黑色。

HSV模型是通过调节这三个值来标识颜色。它通常是一个color wheel的形式,所有边缘的颜色都是饱和度最高的颜色,越向圆心饱和度越小。Hue通过角度值选取,另有一个亮度轴,来选取Value值。

6.CMYK模型

这个模型主要用于印刷业,就是指用cyan, magenta, yellow, black这四种颜料混合,产生其他各种颜色。

印刷品上的图案,仔细看其实都是由一个个小点构成,而每个小点又都是采用四色套印,重合叠加后产生各种颜色的效果。

(完)

10:01 Sphinx 0.9.8 is released just in time for OSCON 2008 » MySQL Performance Blog

As you probably already seen in a post by Baron, Sphinx Release 0.9.8 is finally out, just in time for OSCON 2008. Even though it is “minor release” if you look at the number, it is major release in practice (and you can view snapshots as minor releases). The changes since 0.9.7 are dramatic with over 70 new features corresponding to over 15 months of work. With zero in front it still looks like “beta” release though it is very stable and widely used.

Myself I would have already named it 1.3.0 or something like it (with 3rd number used for minor releases) and use version 2.0.0 as a target for full live updates. Though it looks like Andrew has set his goal on naming it 1.0 only when dynamic updates work and starting from 0.9.1 it did not allow too much version flexibility.

Sphinx will be presented this year on OSCON as .ORG Exhibitor, with me running the show - it was too expensive for Andrew to come from Russia, especially as he did not get a session at OSCON.

It is also worth to note Sphinx is nominated as SourceForge community choice awards finalist in 3 nominations (Best Project, Best Project for Enterprise, Most Likely to Be the Next $1B Acquisition) which is pretty cool.

At Percona we actively support Sphinx as in our opinion it is great complement to MySQL when it comes to full text search tasks and other real time information processing applications. It integrates with MySQL and scripting languages very well, it is simple, it performs well and it is easily clustered, allowing you to scale out to multiple cores and multiple nodes, with close to linear scalability.

Because of this we included Sphinx chapter in High Performance MySQL book - check out Appendix C. This should be the best printed material about Sphinx out there, though as of now Sphinx has surely grown into the size to justify for a book of its own.

If you’re hungry for some numbers I’d be happy to share a couple of benchmarks results for the new version. First is about “EXTENDED2″ matching mode - which is faster and more feature full search mode than the previous “EXTENDED” one that originally introduced a query language. It can be 10-30% faster when it comes to rare word combinations, while if you search for frequent words the difference can be as large as 2-3 times.

For 15 million of documents on single client run on Intel Core Duo @ 2.2Ghz we got the following:

Query Matches EXT EXT2
some test 40509 92ms 80ms
the who 700663 1250ms 664ms

Extended2 mode also offers choice of “ranking modes” - if you would like to use BM25 ranking (similar to what MySQL build in full text search uses) you can get performance another 20-100% better though search result quality will be reduced. Or if you’re not interested in full-text ranking altogether, for example when you’re sorting by price, you can just disable ranking.

Another interesting point is Sphinx grouping performance. For example on the same 15M document collection counting number of documents per site_id takes 3.6 seconds to do using Sphinx, compared to 7.5 seconds using MySQL with best covering index (so no temporary table or sorting is needed for group by). Note that with Sphinx you can easily run the process on multiple cores/multiple nodes.

Anyways I’m excited of this new Sphinx milestone, and if you’re using Sphinx, be sure to try this new release.


Entry posted by peter | No comment

Add to: delicious | digg | reddit | netscape | Google Bookmarks

为什么笔纸备受时间管理者亲睐?生活帮-LifeBang » Che, Dong's shared items in Google Reader

你知道时间管理者和时间消费者之间的最大区别在哪里??

时间管理者总是随身携带一个小本,一只笔,而时间消费者只带一个脑子就足够了。呵呵~~

你可以用这个规则去审视一下你周围的人,看看是否准确。

为什么笔纸如此受到时间管理者的亲睐呢?

GTDLife.cn认为:因为笔纸可以为时间管理者做任何事。

任务分解

任务清单

行动清单

思维导图(头脑风暴)

收集篮

便条

等等。。。

具体怎么做,我就不说了,大家自己有自己的方法,我想归纳一下是笔纸的什么特性,让他能够做这么多事情,并且得到大家的亲睐。

最快速的工具,不遗漏任何Idea

笔纸是目前为止大家所公认的最快的记录工具,我们在头脑风暴,或者灵光一闪的时候,是没有时间去打开电脑,或者打开软件,或者打开手机去挨个敲字,大脑在那个时候就像是网住了一只蝴蝶,稍微漏出一点缝,那只蝴蝶就是翩翩飞去,只留下你后悔不已。以我们几十年的写字修炼,已经将这个技能联系到了炉火纯青的地步,写字的时候完全不需要任何思考,大脑的占用率接近0%,这样可以保证你不遗漏任何Idea

可随时撕下单独页

当你要给别人留便条,或者写个电话号码给别人的时候,比如说,你在吃饭时看到一个心仪的姑娘,想跟她说句话,或者要她的电话号码,这时候其他的数码工具都不太好使(除非007用的工具),只有在纸上真诚的写下一段话,然后让服务员递给她。

修改方便

只要你自己能看的懂,你可以随时的、随意的修改你记录的东西,觉得不好就修改,如果是用数码产品的话,打开、关闭、打开、关闭,一会就没电了,呵呵

携带方便

善于利用时间的人总是会抓住零碎的时间,比如说在长途车上,飞机场,火车上,这时候你的高级工具肯定是发挥不了作用的,甚至怕偷都不敢拿出来,而笔纸则不一样,随时随地,随心所欲。

当然,和数码产品比,纸质工具也有自己的缺点,至于什么缺点,大家可以在这里和超过800个时间管理者一起探讨,成长。

标签:, ,

相关内容

01:01 Missing Data - rows used to generate result set » MySQL Performance Blog

As Baron writes it is not the number of rows returned by the query but number of rows accessed by the query will most likely be defining query performance. Of course not all row accessed are created equal (such as full table scan row accesses may be much faster than random index lookups row accesses in the same table) but this is very valuable data point to optimize query anyway.

The question of optimizing number of rows accessed is what would be the optimal number indicating query is typically well optimized ? Of course in the perfect world we would like to see rows returned = rows analyzed. though this is only possible to reach for small fraction of queries.

If you’re joining multiple tables or if you have GROUP BY query the number of rows which need to be utilized to create the result set will be larger than number of rows returned.

What I would like to see (for example as another slow query log record) is the number of rows which MySQL used to generate result set. Comparing this number with number of rows query actually accessed we can guess (what is important automatically !) there is potential for optimizing this query.

For example:

SELECT GENDER, COUNT(*) FROM PEOPLE GROUP BY GENDER

This query will return only couple of rows but it is clear all rows from the table were used to generate result set and it is not possible to optimize this query directly to only access couple of rows (though this gives us another idea to possibly keep cache table with couple of rows in it)

Now if we have the same table with no indexes and query

SELECT GENDER, COUNT(*) FROM PEOPLE WHERE COUNTRY=’USA’ GROUP BY GENDER

even though full table scan is performed only rows with COUNTRY=’USA’ are used in results set which clearly puts query as optimization candidate.

It is not always possible to optimize queries so the number of rows accessed is same as number of rows used to generate result set - for example any filter which can’t use indexes will make these number different, though such filter will be suboptimal and you may think how to fix the situation.

For example if you have clause like TITLE LIKE “%MYSQL%” you may instead use Full Text Search indexes. If you have WHERE ID%100=0 you can have extra column divisible_by_hundred and keep it indexed. Of course in all cases there is extra cost involved and you should weight if it make sense to optimize such queries. I’m just describing the possibility.

Sounds nice as described right ? Unfortunately it is not that easy to implement it in the general sense as you can’t always track the future of individual row. Queries with temporary result set are especially complicated, for example:

SELECT * FROM (SELECT COUNTRY,COUNT(*) FROM PEOPLE GROUP BY COUNTRY) C WHERE COUNTRY=’USA’

As of MySQL 5.0 MySQL will materialize the subquery in the from clause fully and so “use” all rows in result set while in reality only fraction of them will be needed for end result set as most of the groups are filtered out. There are many similar cases when decision of whenever row is used for result set or not is taken long after it stop existed as individual row which just was accessed.

At the same time I think starting with something and covering basic “single level” queries keeping in account JOINs, GROUP BY, LIMIT would already be helpful for many cases.


Entry posted by peter | 7 comments

Add to: delicious | digg | reddit | netscape | Google Bookmarks


^==Back Home: www.chedong.com

^==Back Digest Home: www.chedong.com/digest/

<== 2008-07-20
  七月 2008  
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
==> 2008-07-22