摘要: 昨夜,一个人很安静地看完了Cage的《Weather Man》。真不错。      全片说的是天气预报员Dave在事业和人生遭遇中年危机以及他心态的变化过程。略显幽默的对白,以一种戏谑和些微调侃的腔调,却是在诉说着中年危机这一颇有些难于精准表达的话题。      不想写影评,毕竟我算不上是搞这个的,也算不上发烧友,只是说说自己有些感触地地方吧。      Dave有一份收入尚可的工作—...阅读全文
posted @ 2010-09-26 08:28 kenneth Z.Lo 阅读(60) 评论(0) 编辑
摘要: 一篇很不错的文章,和我一直推崇的学习方式相当一致。。。是的,这也是我认为的最好的方法。有空的话翻译一下吧,先放这里。by Alex AllainLearning to program isn't something you can do in an afternoon, but it doesn't have to be a life's work, either. There are lots ...阅读全文
posted @ 2010-06-30 11:41 kenneth Z.Lo 阅读(68) 评论(0) 编辑
对于寻找经济增长和企业经营上的创新,我们或许可以从爵士乐创作上借鉴一些经验。
在周六的达沃斯全球经济论坛上,John Kao如是说。John Kao是一位企业和管理领域的创新指导,同时他还是一位爵士钢琴师。MR. Kao讲到,爵士的创作过程,同样也体现出了创新过程中的tensions,我们需要一边加强训练基本功以提升专业素养,而另一边要不停的寻找灵感。
这就是爵士创作的阴和阳两个方面,商业上的创新同样也存在这样的阴阳,使得新的想法和产品不断产生。当然,在不同的公司,情况有些不同。
Mr. Kao指出了google和apple两个公司创新模式的不同之处。这两家公司是硅谷的powerhouse,可以说是全球企业创新的典范,其代表性可见一斑。
google模式依赖于快速的实验和数据反馈。他们坚持不断的,以人们怎样使用这些在线产品为依据,来优化他们的搜索,广告,邮箱等等服务。这是一种从客户→工作室的模式:客户是设计的参与者,某种程度上他们与设计师一起进行了新产品的设计。
apple模式则是一种更加edited、更加直观的工作室→客户的模式。当被问到是什么市场信息给了他们创造如此精致的产品的动力时,steve jobs总会说“没有”,然后他还会补充一句,“知道自己想要什么,不是“顾客”的job。”

 

后面的不翻译了,见谅,手上有活干。原文如下:

The Yin and the Yang of Corporate Innovation 

IN the hunt for innovation, that elusive path to economic growth and corporate prosperity, try a little jazz as an inspirational metaphor.

 

That’s the message that John Kao, an innovation adviser to corporations and governments — who is also a jazz pianist — was to deliver in a performance and talk on Saturday at the World Economic Forum in Davos, Switzerland. Jazz, Mr. Kao says, demonstrates some of the tensions in innovation, between training and discipline on one side and improvised creativity on the other.

 

In business, as in jazz, the interaction of those two sides, the yin and the yang of innovation, fuels new ideas and products. The mixture varies by company.

 

Mr. Kao points to the very different models of innovation represented by Google and Apple, two powerhouses of Silicon Valley, the world’s epicenter of corporate creativity.

 

The Google model relies on rapid experimentation and data. The company constantly refines its search, advertising marketplace, e-mail and other services, depending on how people use its online offerings. It takes a bottom-up approach: customers are participants, essentially becoming partners in product design.

 

The Apple model is more edited, intuitive and top-down. When asked what market research went into the company’s elegant product designs, Steve Jobs had a standard answer: none. “It’s not the consumers’ job to know what they want,” he would add.

 

The Google-Apple comparison, Mr. Kao says, highlights the “archetypical tension in the creative process.”

 

Google speaks to the power of data-driven decision-making, and of online experimentation and networked communication. The same Internet-era tools enable crowd-sourced collaboration as well as the rapid testing of product ideas — the essence of the lean start-up method so popular in Silicon Valley and elsewhere.

 

“These are business and management innovations lubricated by technology,” says Thomas R. Eisenmann, a professor at the Harvard Business School.

 

The benefits, experts say, are most apparent in markets like Internet software, online commerce and mobile applications for smartphones and tablets. “The cost of creation, distribution and failure is low, so it takes relatively little time, money and effort to float trial balloons,” says Randy Komisar, a partner in Kleiner Perkins Caufield & Byers, the venture capital firm, and a lecturer on entrepreneurship at Stanford.

 

That style of innovation is being applied well beyond Google’s products and Internet start-ups. The National Science Foundation, for example, is embracing the formula to try to increase commercialization of the university research it finances. Last fall, the foundation announced the first of a series of grants for what it calls the N.S.F. Innovation Corps. The 21 three-member teams received a crash course at Stanford in lean start-up techniques, and have been given $50,000 each and six months to test whether their inventions are marketable.

 

The lean formula, with its emphasis on constantly testing ideas and products with customers, amounts to applying “the scientific method to market-opportunity identification,” says Errol B. Arkilic, program director at the foundation.

 

Yet while networked communications and marketplace experiments add useful information, breakthrough ideas still come from individuals, not committees. “There is nothing democratic about innovation,” says Paul Saffo, a veteran technology forecaster in Silicon Valley. “It is always an elite activity, whether by a recognized or unrecognized elite.”

 

Successful innovation, Mr. Saffo observes, requires “an odd blend of certainty and openness to new information.” In other words, it is a blend of top-down and bottom-up discovery.

 

OPEN innovation isn’t a new idea. It flourished, in its way, even in the late 19th and early 20th centuries, notes Tom Nicholas, a historian at the Harvard Business School. In fields like electricity, pharmaceuticals and communications, big corporations including General Electric and Dow Chemical routinely monitored the research beyond their walls, and bought or licensed promising work, especially the inventions of university scientists. The result, Mr. Nicholas says, was a thriving “ecosystem of private and corporate innovation.”

 

A century later, the corporate labs at G.E. are trying to quicken the pace of innovation — but this is long-cycle innovation, since G.E.’s power generators, jet engines and medical-imaging equipment last for decades. The company is opening a software center in Northern California to make its machines more intelligent with data-gathering sensors, wireless communications and predictive algorithms. The goal is to develop machines, such as jet engines or power turbines, that can alert their human minders when they need repairs, before equipment failures occur. Such smarter machines, the company says, are early arrivals in what it calls the Industrial Internet.

 

To tap outsider ideas, G.E.’s research arm has made investments with venture capital funds in clean-energy technology and health care, and it works with corporations, government labs and universities on hundreds of collaborative projects. “We’re much more externally focused and connected to the outside world than we were several years ago,” says Michael Idelchik, G.E.’s vice president of advanced technologies.

 

Apple’s smartphones, tablets and computers typically have life spans measured in a few years instead of decades, with new models introduced regularly. But like G.E., Apple is in the hardware business, where innovation cycles are beholden to the limits of materials science and manufacturing.

 

Apple’s physical world is far different from Google’s realm of Internet software, where writing a few lines of new code can change a product instantly. The careful melding of hardware with software in Apple’s popular products is a challenge in multidisciplinary systems design that must be orchestrated by a guiding hand — though it will no longer be the hand of Mr. Jobs, who died last October.
Yet Apple has also repeatedly displayed its openness to new ideas and influences, as exemplified by the visit that Mr. Jobs made to the Palo Alto research center of Xerox in 1979. He saw an experimental computer with a point-and-click mouse and graphical on-screen icons, which he adopted at Apple. It later became the standard for the personal computer industry.

 

In 2010, Apple bought Siri, a personal assistant application for smartphones. At the time, it was a small start-up in Silicon Valley that originated as a program funded by the Defense Advanced Research Projects Agency of the Pentagon. Last year, Siri became the talking question-answering application on iPhones.

 

Apple product designs may not be determined by traditional market research, focus groups or online experiments. But its top leaders, recruited by Mr. Jobs, are tireless seekers in an information-gathering network on subjects ranging from microchip technology to popular culture. “It’s a lot of data crunched in a nonlinear way in the right brain,” says Erik Brynjolfsson, director of the M.I.T. Center for Digital Business.

 

Apple and Google pursue very different paths to innovation, but the gap between their two models may be closing a bit. In the months after Larry Page, the Google co-founder, took over as chief executive last April, the company eliminated a diverse collection of more than two dozen projects, a nudge toward top-down leadership. And Timothy D. Cook, Apple’s C.E.O., will almost surely be a more bottom-up leader than Mr. Jobs.

 

“What we’re likely to see,” Mr. Kao says, “is Google and Apple each borrowing from the playbook of the other.” 

posted @ 2012-02-02 12:00 kenneth Z.Lo 阅读(27) 评论(0) 编辑

在TI芯片SN74CB3T16210的Datasheet里面看到这么一句:Latch-Up Performance Exceeds 250 mA Per JESD17

显示对JESD17感兴趣,想找来看下,额,没找到,然后又发现在不是很明白到底什么是latch-up... 好吧,先找找Latch-up是怎么回事。

lathch-up的一般叫法是闩锁效应,wiki的英文解释是:a term used in the realm of integrated circuits (ICs) to describe a particular type of short circuit which can occur in an improperly designed circuit(大意:在集成电路领域使用的一个名词,它描述了某些不恰当设计情况下的一种“短路”现象。)

唔, 先对它产生的原理了解下:

在CMOS晶片中,会有很多寄生的PNP、NPN的BJT, 他们可能会相互影响到,在VDD和GND间形成一个个SCR(silicon-controlled rectifier)。当ESD或者是干扰等到来时,SCR被触发,从而在VCC和GND间形成一个低阻通路,即上文提及的“短路”。这里产生的大电流,足以对晶片造成不可恢复的损伤。

 

好了,暂时不需要了解实现的问题,知道what和why就行,how到用的时候再了解。 

posted @ 2011-12-26 11:05 kenneth Z.Lo 阅读(18) 评论(0) 编辑

啊,倒腾一晚上,以为小哥把板子给我搞坏了。。。还发誓不要借给别人玩了。。。

结果。。。

 

问题是这样的,Jlink通信正常,在commander模式下可以正常访问cpu,读取状态,但是在jlink-arm里面,connect的时候,跳出一句“can not find any flash device”。

问题解决步骤是这样的:

1、google之,使用关键词jlink  can not find any flash device。搜出的结果是Jlink可能没法支持某些器件的内部flash。so,我翻出原理图,查看是不是类似情况,会有跳线被改了之类的情况。产看原理图的结果是没有跳线或者开关之类的供我选择。

2、然后吧,明明能找得到cpu,而且能读出状态的啊。。。于是我怀疑flash挂了。但是flash挂的几率也太小了。我也没法验证。

3、既然是设计的时候需要用到外部flash,那么应该有别人的设计经验可以参考,看看是哪块flah出问题了。

4、于是,百度搜索:stm32 jtag flash。嘿,遇到有人在H-Jtag软件下类似问题,提示是“Can't halt target  and make it enter DEBUG state. For USB H-JTAG please reduce the TCK speed and try again“,说是能进Core,但是找不到Flash,问题的原因是没有为H-Jtag指定器件!额。。。

5、于是研究怎么给Jlink-arm设置器件,在Option->Project settings-> CPU选项卡里设置了Device。

 

然后,就没有然后了。。。一切顺风顺水。 你妈不是能自动识别的啊?要不你放个auto有毛用啊,直接告诉哥需要指定器件不就得了。

posted @ 2011-12-19 22:45 kenneth Z.Lo 阅读(72) 评论(0) 编辑

 

lua是门新兴的语言,额,其实也不是刚出来,好几年前大家就在学怎么用了。它的出现主要是搭了游戏产业的快车,也多被用来做游戏开发。

 

关键是,已经连续好几个月,lua的使用频率都在编程语言排行榜上跻身前20了!

 

先讲讲我知道的一些应用。

首先是在i OS下写游戏,《愤怒小鸟》就是用lua写的;同时,也好多用其它语言在为Iphone写游戏的程序员,添加lua到游戏开发中去,让过程更简单。当然,Lua最著名的应用是在暴雪公司的网络游戏《魔兽世界》中----在网上可以找到好多用lua做的wow小工具。

然后是一些小的程序,这个和我的目标一致,一些简单的测试用例可以用lua来写,比如可以在百度找得到的‘康泰串口程序’,还在百度文库发现一篇,有在用lua开发测量仪器上位机测试程序的例子(好处是用c写完一些固定的调用后,用lua简单配置一下,又是另外一个测试程序,写完就可以用)。

还有在嵌入式开发上的应用,在C程序中田间C实现的解释器,程序大小只增加200K!要知道,游戏开发里面,lua是留给不懂程序开发的策划用的,你就能想想,lua往上的开发会是怎样的容易。在思科开源路由器方案中openwrt中,有开发一个叫luci(Unified Configuration Interface)的config接口,暂时不知道里面是怎么用的,但是,它提供的web服务是基于lua。还有,有人讲,busybox也打算开发一个lua版本的。

 

讲点其它细节。

lua是动态语言,它的解释器现在有用各种主流语言完成的各种版本,c、java...应有尽有。你的程序需要做config吗?lua应该是个不错的选择。或者,找现成的lua解释器过来,你可以再添加好你的库,完全直接执行脚本也行。

lua的解释器最初是用c实现的,lua的开发者说,lua最初是被开发用来做C不擅长的事。

有人把它和python作比较,可能是应用领域的关系,那个家伙讲,他觉得lua会比python好用。在lua的官网可以看到他们吹水记录,不贴连接了。

网上下的某PPT里这么讲,Lua最引人注目的特点:
--以极小 的体积和简单 的语法提供相对全面的功能。
--以简洁 的API实现与宿主语言最方便 的接口。

 

不过,希望用它干什么‘大事’的可能会有些失望。它的开发者是这么讲的:

Lua 没有打算被用来进行大型的程序设计,相反,Lua 定位于中小型程序设计,通常是作为大型系统的一部分,常用于一个或少数程序员开发的情况,甚至是由非程序员进行的开发。所以,Lua 避免了过分的冗余和过多的人为限制。如果你不希望一个对象的内部结构被访问,那么就不要去访问它们。

 

“以极小的体积和简单 的语法提供相对全面的功能”这句还是很诱惑人的,你可以慢慢去发现它到底提供了哪些“相对全面的功能”。

如果是想学习一门C/C++以外的其它语言玩玩,推荐lua。

posted @ 2011-11-11 11:42 kenneth Z.Lo 阅读(102) 评论(0) 编辑

没见过什么大世面,程序也都是上千行最多了,所以,这些也都没仔细考虑过。前面为了面试草草的看了下static的一些关键用法,囫囵吞枣,压根没搞明白具体用处,居然都能蒙混过关。

学习lua到lua包的部分。看到下面一种定义包私有的方法,有点茅塞顿开的意思:

local function checkComplex(c) 
  if not ((type(c) == "table") and tonumber(c.r) and tonumber(c.i)) then 
  error("bad complex number", 3) 
  end 
end 
 
local function new(r, i) 
 return {r = r, i = i} 
end 
local function add(c1, c2) 
 checkComplex(c1); 
 checkComplex(c2); 
  return new(c1.r + c2.r, c1.i + c2.i) 
end 
 
... 
 
complex = { 
 new = new, 
 add = add, 
 sub = sub, 
 mul = mul, 
 div = div, 
}

 

上面的例子是把所有的函数(包成员)都定义为私有变量,然后再申请公有变量,把私有变量赋值给公有变量。如此,没有经过重新赋值过的变量,在本文件之外是无法访问到的。这里的local关键词,就和c语言里的static关键词是一样的。(需要后面看看用c实现的lua解释器怎么做的,也算是又分析了一个经典代码库)。

同样,不希望被从其它文件访问的变量,我们可以用static把它锁起来。

 

既然到这里了,再顺便整理一下C里面static关键词的用法(巨汗,从百度文库搜到一篇文章,居然有7页!!!):

1、对于变量:

不管是局部变量,还是全局变量,用static声明之后,都是存储在静态区。未初始化的静态变量自动赋初值为0。

关于静态存储区:静态存储区也就是通常说的数据段,还会有初始化数据段和未初始化数据段之分;堆是留给程序动态申请空间的,也就是malloc出来的;而栈则是留给局部变量的。

全局变量经static声明后,只能有本文件范围内可调用;而局部变量作用域还是定义空间内,但是它的值会因为修改而被更新,而不是再次由栈分配并初始化。

全局变量的好理解,下面看看用static声明的局部变量

#include        <stdio.h>
#include        <stdlib.h>

int
test()
{
        static int a = 1;
        a = a + 1;
        return a;
}

int
main()
{
        int b;
        b = test();
        printf("%d\n",b);
        b = test();
        printf("%d\n",b);
}

它的结果是:2、3

 

2、对于函数

c里面的全局变量及函数是默认可以extern的,而用stiac声明过之后,就只有在本文件内可用了。

用static 定义函数或全局变量名之后,有以下两个好处:

a、在本文件内可见,可防止污染变量名,防止与其它文件内变量名冲突。

b、只有本文件可调用该函数或该变量,本文件之外无法访问。

在其他地方看到有另外的好处,这个是比较稀罕的东西:用static声明后,它会从一开始就拥有内存空间,函数和变量都是如此(预先给函数分配空间?这个怎么理解,没学过编译原理啊);这个内存空间的生存周期到程序结束,也就是他不是栈给他临时分配空间。这样做大大节约了切换时间(我怎么觉得不会有多少:x)。

posted @ 2011-11-10 16:03 kenneth Z.Lo 阅读(37) 评论(0) 编辑
摘要: 现在的开发工作要求我们能够快速掌握一门语言。一般来说应对这种挑战有两种态度:其一,粗粗看看语法,就撸起袖子开干,边查Google边学习;其二是花很多时间完整地把整个语言学习一遍,做到胸有成竹,然后再开始做实际工作。然而这两种方法都有弊病。第二种方法的问题当然很明显,不仅浪费了时间,偏离了目标,而且学习效率不高。因为没有实际问题驱动的语言学习通常是不牢固不深入的。有的人学着学着成了语言专家,反而忘了自己原本是要解决问题来的。第一种路子也有问题,在对于这种语言的脾气秉性还没有了解的情况下大刀阔斧地拼凑代码,写出来的东西肯定不入流。说穿新鞋走老路,新瓶装旧酒,那都是小问题,真正严重的是这样的程序员.阅读全文
posted @ 2011-09-09 16:59 kenneth Z.Lo 阅读(52) 评论(0) 编辑
摘要: 不多讲,用printf的方式真的很让人崩溃啊。。。尤其是刚开始就连一句printf的没添加过的,你更是伤不起。。。初次使用,更高级功能慢慢挖掘。首先,要在编译的时候加上-g开关,我这里用的gcc-gupdate0803.c-oupdate如果不加-g开关,用GDB打开文件的时候会提示找不到symbol。然后就可以开始找哪一句出现segment fault了...1、用gdb打开需调试的可执行文件gdbupdate2、对照自己的code,要在哪一行加break。比如,我需要在217行家break。break217 or b 217另,断点可以用行号,也可以用函数的名字。暂时知道这两个。。。。。加阅读全文
posted @ 2011-08-10 17:49 kenneth Z.Lo 阅读(33) 评论(0) 编辑
摘要: 艾小羊:我在家乡有个男朋友,他个子不是很高,有点胖,工作一般,也不是很上进,但脾气超好,对我也很好,并且很会做家务,尤其很会做菜,恋家,无不良嗜好,我觉得他是做老公的好人选。今年大学毕业后,我回到了家乡,跟他在一起很踏实。但我妈觉得我在自毁前程,她想让我去考研究生,而且要供我出国留学,她认为我应该留在大城市,有更好的前途。我现在很矛盾,其实我不是个非要在事业上做出什么的女孩,挺留恋安稳小日子的,如果按我妈选择的路,我担心自己去了大城市,再也找不到这么适合做老公的男人,变成剩女,而且大城市又不是有个好工作等着我,一切都是未知,都要靠我自己奋斗,用我同学的话说是“不好混呐”,可是,如果留在家乡,跟阅读全文
posted @ 2011-07-25 23:44 kenneth Z.Lo 阅读(879) 评论(0) 编辑
摘要: 第一,不是沽名钓誉,通俗讲叫装逼,我英文也不咋地。但是,一直坚持看原文,水平也在不断提高。第二,以前被专业书籍伤的。那翻译。。。连google翻译都不如,真想把翻译的煞笔拉出来扇几个嘴巴子。逼不得已,只能找原版的看,即使有生词,也比那些傻x翻译的看起来快。第三,以前隐约认识到的一个问题,后来多方印证,有在这边日志里提到,《“持咒”到底是个什么东西?----再论语言和思维关系 》是当时看到《般若波罗蜜多心经》时,那句“密”语佛经勾起了我的好奇心。后来找到另一个原因,这是真正的教授写的,因为这篇文我敬佩他,详见《对五四白话文学运动的语言学再认识》。第四,意识到上面的问题后,得出个结论,学习语言其实阅读全文
posted @ 2011-07-21 22:30 kenneth Z.Lo 阅读(1283) 评论(9) 编辑
摘要: 有一次在北大讲座,遇到一位学生问我,“老师,你说学习重要,还是经营人脉重要?”看着他一脸大杂烩的表情,我先拿出本子记下了这个问题,然后告诉他说,这是个比较大的话题,我会仔细写篇文章放在网上的,然后给了他我的博客地址 。而后又补了一句,“相信我,所谓的人脉就算重要,也根本没他们说的那么重要”。 让我们细说从头。先动脑思考一下,你愿意与什么样的人成为朋友?从幼儿园开始,每个人就都已经有一些选择朋友的原则——尽管并不自知。事实上,资源分布的不均匀,必然造成人与人之间的某种依附关系。观察一下,就可以看到事实:幼儿园里玩具多的孩子更容易被其他孩子当作朋友。那么,玩具最多的孩子朋友最多么?答案并非肯定。.阅读全文
posted @ 2011-07-20 16:16 kenneth Z.Lo 阅读(147) 评论(0) 编辑