A Story

09 01

 让我们先从一个故事开始说起。

  英国的一份著名报纸,曾经举办过一项高额奖金的有奖征答活动。题目是:在一个充气不足的热气球上,载着三位科学家。

  第一位是环保专家,他的研究可以拯救无数人,使人们免于因环境污染而面临死亡的厄运。

  第二位是核专家,他有能力防止全球性的核战争,使地球免于遭受灭亡的绝境。

  第三位是粮食专家,他能在不毛之地,运用专业知识成功地种植食物,使几千万人脱离饥荒的命运。

此刻,热气球即将坠毁,必须丢出一个人以减轻载重,使其余的两个人得以存活。请问,该丢下哪一位科学家?

问题见报后,很多热心的读者纷纷把自己的答案投给报社。回答大多集中在讨论那一位科学家的重要程度上,有人说环保重要,有人说核重要,有人说粮食重要。为此,各方支持者争吵不休。

  结果出来了,众多的回答都与大奖无缘。最终,偏偏是一个小男孩答对了题,中了大奖。小男孩的答案再简单不过了——“丢下那个最胖的人“!

  为什么?

  因为题目要解决的问题是:“防止热气球超重坠毁”,而不是任何其他科学问题。而解决这一问题的底线,就是热气球的重量。所以“减重活命”——在这个故事里就是底线答案。至于谁能对社会贡献最大,那是等到科学家能活命之后才能够讨论的问题。

Hide JS Error or Not?

08 27

在项目更新后发现了部分JS脚本错误,排查需要不少时间,于是乎,建议使用window.onerror。

也许很多同学都会觉得这不是好做法,但避免让客户/用户在第一时间看到错误总比把错误留着等更新好吧。之后慢慢排查吧……

话说回来,回到window.onerror,在HTML4.01标准中好像其中并没有 onerror 事件。搜索了一下,在HTML5草案中描述了window对象的事件处理程序,其中有onerror存在,相信HTML5正式发布了,各个浏览器除了onerror的兼容性问题也就解决了。

A Look into Color Theory in Web Design

08 11

From : http://sixrevisions.com/web_design/a-look-into-color-theory-in-web-design/

Unarguably one of the most important aspects of any design is its colors. Designers create the style of a site, as well as the movement it makes, the emotion it creates, and its purpose based largely upon the color choices they make. Colors are powerful tools and an important thing all designers should understand when creating websites.

A Look into Color Theory in Web Design

Color Terminologies

Many of you may have learned some color basics in school, but let’s quickly review some terminology in order to get a better grasp on colors and how to use them.

Color Wheel Main Groups

Color Wheel Main Groups

Colors are traditionally shown in a color wheel, and from this wheel, we can separate colors into three main groups: primarysecondary and tertiary.

The three primary colors are red, blue and yellow. These colors are the base colors that make up all the other colors on the color wheel.

Mix the primary colors together, and you get the secondary colors. These are orange, green and purple.

Tertiary colors are comprised of the middle colors like yellow-green and blue-green. They are created by mixing a primary color and a secondary color.

Relationships of Colors

There are plenty of terms to describe colors, which will be helpful to know later on when we discuss colors and their emotional meanings.

Complimentary colors are colors that compliment each other well and are located opposite of each other on the color wheel. These are colors like blue and orange, purple and yellow, and red and green.

Analogous colors are those located right next to each other on the color wheel, so they usually match fairly well but provide little contrast when used together.

Color Groups Based on Emotions

There are color groups that are associated with emotions: warmcool and neutral.

Warm colors evoke warmth like red, yellow and orange.

Cool colors make people think of cool and chilly colors like blue, green and purple.

Neutral colors, as the term suggests, don’t create much of an emotion. Colors like grey and brown are neutral colors.

The knowledge of all these terms can be used to a designer’s advantage to help create meaning and suggest certain emotions in a web design without words.

Types of Color in Design

Types of Color in Design

There are two different color systems and both are used depending on what you’re designing for.

RGB is short for Red Green Blue, which are the three primary colors of the system and is produced with light. RGB is used on televisions, computer monitors, and any kind of screen.

CMYK, which is short for Cyan Magenta Yellow and Key (Black) is created by pigments and is used in print.

Designs on the web should be created using the RGB system.

Making Wise Color Choices to Convey a Meaning

Making Wise Color Choices to Convey a Meaning

Color theory is the practice of using the meaning behind colors to bring about a sensory experience. This practice can be applied to web design with some knowledge and thought.

People will often disagree about what certain colors mean and what colors designers should use to implore a certain emotion. However, what can’t be argued is that consumers do have emotional responses to colors.

When choosing colors for your designs, be deliberate; don’t use colors without purpose. Instead, use colors that are appropriate for your target audience, the message that the client wants you to convey, and the overall feeling you want the user to experience on your site.

Warm colors will bring about sunny emotions and are wisely used on sites that want to call to mind a feeling of happiness and joy. As a case in point, yellow became a popular color in web design in 2009 when the global economy wasn’t doing very well and companies wanted their customers to feel sunny and comfortable on their site.

Cool colors are best used on professional and clean-cut sites to achieve a cool corporate look. Cool colors stir up emotions of authority, establishment, and trust. For example, cool shades of blue are used in many banking sites, such as Chase. It wouldn’t be wise to use cool colors on a site about an upbeat topic because users will get the wrong impression.

Making Wise Color Choices to Convey a Meaning

What Colors Mean to Users

Most colors can be taken in a positive or negative manner, depending on how it’s used, the other colors surrounding it, and the connotation of the site itself.

Here are some general meanings of popular colors.

Red

What Colors Mean to Users

Red symbolizes fire and power and is associated with passion and importance. It also helps to stimulate energy and excitement.

The negative connotations of red are rage, emergency, and anger, which stem from the passionate and aggressive qualities of red.

Orange

Orange

Orange is a combination of its two neighbors on the color wheel, red and yellow. Orange symbolizes happiness, joy and sunshine. It is a cheerful color, evoking childlike exuberance.

Orange is not as aggressive as red but takes on some of the same qualities, stimulating mental activity. It also symbolizes ignorance and deceit.

Yellow

Yellow

Bright yellow is a happy color representing the positive yellow qualities: joy, intelligence, brightness, energy, optimism, and happiness.

A dingy yellow brings about negative feelings: caution, criticism, laziness, and jealousy.

Green

Green

Green symbolizes nature and has a healing quality. It can be used to symbolize growth and harmony. People feel safe with green. Hospitals often use the color of green.

On the other hand, green is symbolic of money, showing greed or jealousy. It can also be used to symbolize a lack of experience or a beginner in need of growth (”green behind the ears”).

Blue

Blue

Blue is a peaceful and calming color exuding stability and expertise. It is a common color used in corporate sites because of this. Blue can also symbolize trust and dependability.

A cool shade can bring about the negative side of blue, symbolizing depression, coldness, and passiveness.

Purple

Purple

Purple is the color of royalty and sophistication showing wealth and luxury. It also gives a sense of spirituality and encourages creativity.

Brighter purples can exude a magical feeling. It’s also great for promoting creativity and feminine qualities.

Darker purples can conjure gloominess and sadness.

Black

Black

Although black is not a part of the color wheel, it can still be used to suggest feeling and meaning. It is often correlated with power, elegance, sophistication, and depth. It is said that wearing black on a job interview can show that the interviewee is a powerful individual, and the same goes with websites.

Black can also be seen negatively because the color is associated with death, mystery and the unknown. It is the color of grief, mourning, and sorrow so it must be used wisely.

White

White

White—also not a part of the color wheel—symbolizes purity and innocence. It also shows cleanliness and safety.

Conversely, white can be seen as cold and distant, symbolizing winter’s harsh and bitter qualities.

Examples of Colors in Big Companies Sites

We’ll look at some large company sites to get an idea of how they use color and what that color means to their users.

Nike

Nike

Nike changes their site often, but it is usually dark with mostly black and grey hues. The black shows the power in their product, giving the impression that they sell quality products to sporty people.

White House

White House

The White House website is mostly white and light grey with some blue and red accents. The white symbolizes hope and freedom, showing a value for safety and purity. The red and blue are of course the other USA colors, but the blue shows stability and peace, while the red shows passion and energy.

Amazon

Amazon

Amazon’s site is mostly white, which is the best color to use for contrast and readability. It also shows cleanliness and helps users navigate the site freely. There are orange and blue accents to help people feel at ease when on the site, as well as excited and hopeful to find their perfect purchase.

Verizon

Verizon

Verizon’s main corporate branding color is red, which is used throughout the site. This helps stimulate the excitement of users, showing a company that sells an exciting and fast-paced product. The white background is used similarly to Amazon, helping users navigate the site by displaying a clean and orderly site.

Best Buy

Best Buy

Best Buy’s site showcases dark blue hues, showing their stability and power in the electronic market. Buyers are making large purchases from Best Buy and need to feel secure and peaceful on their site. The yellow emits happiness and helps people feel excited and joyful while making their purchases.

Charles Schwab

Charles Schwab

Charles Schwab is an investment company, and in an unstable market, they need to make consumers feel peaceful on their site. They use soft and dark blue tones to achieve this, creating a calming and peaceful atmosphere on their site. The neutral brown is another corporate color and helps neutralize intrepid users’ feelings. The orange accents are used to generate excitement in buying stocks and help bring a happier feel to the site.

Dodge

Dodge

Dodge’s site is mostly black which allows their images to pop. They use a bright red for accents. The black gives a powerful quality to the site, showing their products off in a sophisticated and masculine light. Black is a great color to use to make products look expensive and worthy of value. The red shows passion and excitement, as well as the hope to drive consumers to purchase the vehicles from a company that values commitment and quality.

Whole Foods

Whole Foods

The main color used in Whole Foods corporate branding, as well as their website, is green. Whole Foods sells healthy and organic food for a premium price. The green in their site design does well to show their healthful and pure values as well as their nature-loving products. They also use some pale yellow accents that are very complimentary to the green, and it gives a joyful value to the site.

How You Can Use Colors in Websites

How You Can Use Colors in Websites

Colors give sites meaning without having to use descriptive words. They create a lot of impact, whether you intend for them to or not. They can help move a user’s eye through your site, creating movement and motion that directs users around a page. As seen in many of the corporate sites, they create emotions and values that help show users what the company is about and what kind of products they are selling.

Use colors to your advantage by carefully selecting complimentary colors and ones that showcase the values you’re trying to sell.

Pairing colors can help change the meaning of a site altogether. Pair a soft blue site that creates calming qualities with a bright orange, and you could change your site to be more exciting and joyful.

Maybe your client thinks the site you’ve designed is too harsh with lots of dark grey hues. Add soft blue colors and your site design could have a more calming and peaceful tone.

Resources for Having Fun with Colors

Resources for Having Fun with Colors

Many sites out there discuss color theory and the usage of color in design. Use these helpful resources below to find color matches and infuse more meaning into your site designs.

midomi的“哼唱搜索”

08 06

百度不是第一个做声音流搜索的,所谓的“哼唱搜索”,其实也就是“学习”国外优秀的产品,比如midomi.com。
midomi允许用自己的声音唱歌或哼唱来搜索音乐。

以下引用自meta description:
midomi.com find and discover music and people. Use your voice to instantly connect to your favorite music, and to a community of people that share your musical interests. Sing your own versions, listen to voices, see pictures, rate singers, send messages, buy music

You can fool all the people some of the time, and some of the people all the time, but you cannot fool all the people all the time

07 27

You can fool all the people some of the time, and some of the people all the time, but you cannot fool all the people all the time

工资制度列表对比

07 13

工资制度列表比较如下

工资类型 付酬因素 特点 优点 缺点
岗位工资制 岗位的价值 对岗不对人,岗变薪变 同岗同酬 灵活性差,鼓励官本位思想
技能/能力工资制 员工所拥有的知识、技能 因人而异,技能/能力提高工资提高 鼓励员工发展广度深度技能,有利于培养人才 技能评定复杂,能力界定困难
绩效工资制度 员工的劳动贡献 与绩效直接挂钩,工资随绩效浮动 激励效果明显,节约人工成本 助长员工短期行为,团队意识差
市场工资制 劳动力供求关系 根据市场、竞争对手确定工资 竞争性强,操作简单 缺乏内部公平
年功序列工资制 员工的年龄、工龄和经验 工龄与工资同步增长 稳定性好,员工忠诚度高 缺乏弹性,缺乏激励

纸醉金迷……悲

07 13

家里打扫干净了,
窗帘洗好晾干了,
洗完澡等宵夜到……

结果11点多先来了个半醉的,1点多又来了个烂醉如泥的。
流了几趟汗得以抬回房间;
得,老子睡沙发去!

辗转难眠,饿到不行;
6点起床,喝粥去,慈悲之心让我买多几份回去;

我已经决定,今晚下班回去收拾装备睡公司,这家已不像我家;
不听我言者,无言以道。

一个计算工具——Rio献给CC专用版

06 23

日本乐天之地域电子商务

06 22

由于地方土特产类的商品背后一般都有不少故事,很多可以天然的成为可供运营活动使用的素材,例如名称来历和一些历史典故(过去曾经是皇家贡品或者与历史上某位名人的关联等)。下面这张乐天地域运营网站首页截图中的5个推荐文字链分别是(方括号中是日本地名):

【和歌山】有田蜜桔熟了!免运费
鲷鱼饭免运费+积分10倍
【山梨】信玄(日本战国时期名人)所爱的山梨乡土特产
超级美味★全国B级美食大集合
【千叶】电视节目里介绍过用来下酒极佳的鸡翅饺子

http://event.rakuten.co.jp/area/

可惜可叹,国内的电子商务门槛越来越高,所谓的创造力只能由少数只会投资山寨的主去主导。否则象日本这种模式不仅能借鉴来解决国内的土特产销路问题,对资源做更合理的分配。而且这东西还能提高GDP对吧,哈~~~

送别Kewell,你是悲壮的!

06 21

  如果让你在足球和生命之间选择一项,你会选择什么?澳大利亚球员科威尔的选择是前者。南非当地时间昨晚,澳大利亚与加纳的比赛,科威尔首发登场。很少有人知道,科威尔为了世界杯,付出的甚至是生命的代价。然而,命运却和他开了一个大大的玩笑——第23分钟,他的一次无意手球,被裁判判罚点球加红牌,他成为澳大利亚本场比赛最终1:1憾平的“罪臣”。

  看着在场边失魂落魄的他,只能感叹老天是如此的不公。这不禁让人想起利物浦传奇主帅香克利那句话:“足球无关生死,但足球高于生死。 ”无论如何,当科威尔踏上世界杯赛场的那一刻,掌声就值得为他响起。

小时候喜欢看Leeds比赛,也正是从那时起认识了Kewell这个非常有天赋的球员,还记得他在一张对阵Arsenal的比赛中单骑窜关,射爆球门的经典之作!在当年的青年近卫军中他可算是球员中的球星。

后来从利兹联转会到利物浦后,科威尔穿上了代表核心的7号。每次出战,他都竭尽全力,但在安菲尔德的多次受伤,让他饱受质疑,球迷们给他送上嘘声,利物浦主帅贝尼特斯开始不信任他,媒体甚至给他送上了“玻璃人”的绰号,谁也不知道,科威尔是一名身患绝症的生命战士。

“我告诉澳大利亚足协(现在的FFA)他有一个健康问题——所以不要让哈里参加那些次要比赛,让他保留体力参加重大。结果澳大利亚人民得到的印象是,科威尔十分自大。

其实,一位悲情英雄的剧本,本应是这样设计的:首场比赛澳大利亚面对德国丢盔弃甲,队内一片愁云惨淡,此时,身患绝症的科威尔站了起来,对他的兄弟们说,他忍着病痛跟随部队出征,不是来欣赏男人演哭戏的,他要的是一个庆祝胜利的时刻,让体内残损的血液最后燃烧一次。

于是,走出更衣室的,是一群热血沸腾的角斗士,在科威尔的激励下,一举拿下加纳,最后一场迎战塞尔维亚,补时阶段还是平分。但科威尔在最后时刻爆发小宇宙,神一般地连过对手11人,打进制胜一球。他随后跪倒球门,仰天长笑,而泪水却也同时从眼睛中狂泻。很快地,他开始失去知觉,恍惚之中,他看见自己和队友们在球场上狂奔,汗水四溅,金发飞扬……而他的眼睛却再也睁不开了……

这就是漫画版的足球风云,这才是Kewell应该得到的悲壮英雄结局。