道德经20

道德经20

    Therefore, a sage is good at helping people without rejecting anyone.
    是以圣人长善于救人故无弃人
    He is good at saving things without abandoning anything.
    常善救物故无弃物
    This is called invisible wisdom.
    是谓袭明
    Thus a sage is the teacher of common people, and the common people are the stuff for good men.
    故善人者不善人之师不善人者善人之资
    If the teacher is not honered and the stuff not valued, even a wise will be at a loss.
    不贵其师不爱其资虽智大迷
    This is the essential secret.
    是谓要秒
    Learn to be hard as man and  remain soft as woman like a stream in the world.
    知其雄守其雌为天下溪
    This stream in the world will not depart from the way of virtue but rejuvenate to its infancy.
    为天下溪常德不离复归于婴儿
    Learn to be bright and remain in the dark ,and try to be a model for the world.
    知其白守其黑),为天下式)。
    A model for the world will not stray from the way of virtue but stretch to infinity. 
    为天下式()常德不忒(乃足)复归于无极  ()
    Simplicity may be diversified into instruments.
    朴散则为器
    When a sage uses the instruments,he becomes the ruler.
    圣人用之则为官长
    There should be unity in the rule of the great sage.
    故大制不割

61-70经典名句

61-70英语经典名句

  No.61: Now sometimes you are up and somietimes your are down. 
         生命会有高潮 偶尔也有低潮
  No.62: Now in this world of ups and downs. 
         人生在世 起伏不定
  No.63: But it was not to last.
         但是花无百日好
  No.64: What I say is true. Anyone can cook. But only the fearless can be great.
         相信我的话人人皆可烹饪可是只有勇敢者才能获得成功
  No.65: Your only limit is your soul.
         你最大的束缚就是你的内心
  No.66: And you must not let anyone define your limits because of where you come from.
         不要怕任何人说你是外行王侯将相宁有种乎
  No.67: When will you realize, the more you take, the less you have.
         你何时才能领悟 索取越多 收获越少 
  No.68: Because the more I think about this idea, the more tremendous I think it is.  
         因为这个主意我越想     就越觉得超赞
  No.69: Who is,in this critic's opinion, nothing less than the finest chef in France.
         依个人的看法 他是法国最优秀的厨师
  No.70: All's well that ends well.
         结果好就一切都好

道德经19

道德经19

    The heavy is the base of the light; the still is the lord of the rash.
    重为轻根静为躁君
    So the sage goes all day long  without leaving his heavy baggage. 
    是以圣人终日行不离()辎重
    Though with glory in view, he stays light-hearted.
    虽有荣观燕处超然
    Why should a ruler of ten thousand chariots make light of the country?
    奈何万乘之主而以身轻天下
    Light the base will be lost; so will be a rash ruler.
    轻则失根躁则失君
    Good deeds leave no traces.
    善行无辙迹
    Good words exclude mistakes.
    善言无瑕谪
    Good at countingnone uses counters.
    善数不用筹策
    A good lock without a bolt cannot be opened.
    善闭无关楗而不可开
    A good knot tied without strings cannot be untied. 
    善结无绳约而不可解

electron 编译原生addon 踩坑记

electron 编译原生addon 踩坑记

你好,我是燕云长风。 寓意:结合李白著名的边塞诗《关山月》取【燕云长风】—— 长风几万里,吹度玉门关。
最近一段时间投入了医疗行业 ,开发了一个药店管理平台。 其中涉及到销售医保对接 ,前端使用electron打包应用。其中遇到了一些electron编译问题 ,想把出现的问题和解决方案分享一下。 医保对接涉及到读卡操作,其中需要c++ 文件支持。然而node 不支持c++ 文件 ,所以需要编译c++文件为.node文件以供node调用。然后通过electron 渲染进程和通信 ,以便于前端可以调用原生的nodeAPI。正当以为流程快要打通的时候,一个意外发生了: Uncaught Error: The module ‘medicare_hz.node’ was compiled against a different Node.js version using NODE_MODULE_VERSION 69. This version of Node.js requires NODE_MODULE_VERSION 70. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).

electron webview 打印

electron webview 打印

你好,我是燕云长风。 寓意:结合李白著名的边塞诗《关山月》取【燕云长风】—— 长风几万里,吹度玉门关。 最近在实际的项目中接到了大量打印方面的需求,起初是优先采用lodop进行web打印,后来考虑到了跨平台的可扩展性,研究了electron webview 打印。
由于electron5版本以上默认是禁用状态,所以首先需要在构造BrowserWindow时,需要通过设置webviewTagwebPreferences选项来启用标electron 打印有两种方式

Pagination