原文地址:http://success-sys.com/2016/09/26/would-your-work-habits-change-if-you-were-paid-by-the-job/ A couple of days ago I noticed a guy installing a solar system on a two-story house in my neighborhood. Working 20 plus feet off the ground on a pitched…
1. 写在之前的话 0x1:贝叶斯推断的思想 我们从一个例子开始我们本文的讨论.小明是一个编程老手,但是依然坚信bug仍有可能在代码中存在.于是,在实现了一段特别难的算法之后,他开始决定先来一个简单的测试用例,这个用例通过了.接着,他用了一个稍微复杂的测试用例,再次通过了.接下来更难的测试用例也通过了,这时,小明开始觉得这段代码出现bug的可能性大大大大降低了.... 上面这段白话文中,已经包含了最质朴的贝叶斯思想了!简单来说,贝叶斯推断是通过新得到的证据不断地更新我们的信念. 贝叶斯推断很少会…
As we continue examining this season’s DVR success stories in The Blacklist and Sleepy Hollow it makes one wonder, just what other shows caused networks to change the way they think about how their audience watches television? 24 (2001) Jack Bauer is…
什么是Actor模式 Actors 为最低级别的"计算单元" 以上解释来自官方文档,看起来"晦涩难懂".大白话就是说Actors模式是一段需要单线程执行的代码块. 实际开发中我们经常会有一些逻辑不能并发执行,我们常用的做法就是加锁,例如: lock(obj) { //dosomething... } 或者用Redis等中间件,为分布式应用加一些分布式锁.遗憾的是,使用显式锁定机制容易出错. 它们很容易导致死锁,并可能对性能产生严重影响.Actors模式为单线程逻辑提…
前言: 前篇-绑定 文章对Dapr的绑定构建块进行了解,本篇继续对 Actor 构建块进行了解学习. 一.Actor简介: Actors 为最低级别的"计算单元". 换句话说,您将代码写入独立单元 ( 称为actor) ,该单元接收消息并一次处理消息,而不进行任何类型的并行或线程处理. 当代码处理一条消息时,它可以向其他参与者发送一条或多条消息,或者创建新的 Actors. 底层 运行时 将管理每个 actor 的运行方式,时机和位置,并在 Actors 之间传递消息. 大量 Acto…
Seven habits of effective text editing(via) Bram Moolenaar November 2000 If you spend a lot of time typing plain text, writing programs or HTML, you can save much of that time by using a good editor and using it effectively. This paper will present g…
Habits of Considerate People体贴人的八种习惯哲学家亚瑟·叔本华曾经说过:“蜡之可贵,在于燃烧自己温暖他人,人之可贵,在于屈尊敬贤彬彬有礼”,事实的确如此.善意与体贴能够抚慰人心,让别人更容易接受你的想法.Philosopher Arthur Schopenhauer once said, “Politeness is to humannature what warmth is to wax.” It’s true. Being kind and considerate…
TRANSFORM YOUR HABITS3rd EditionNote from James Clear:I wrote Transform Your Habits to create a free guide that would help people like you makeprogress in health, business, and life. You are welcome to share it with anyone you think itwould benefit.…
坏味道--发散式变化(Divergent Change) 发散式变化(Divergent Change) 类似于 霰弹式修改(Shotgun Surgery) ,但实际上完全不同.发散式变化(Divergent Change) 是指一个类受多种变化的影响.霰弹式修改(Shotgun Surgery) 是指多种变化引发多个类相应的修改. 特征 你发现你想要修改一个函数,却必须要同时修改许多不相关的函数.例如,当你想要添加一个新的产品类型时,你需要同步修改对产品进行查找.显示.排序的函数. 问题原因…
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins,…
输入框的change事件: 必须等到输入框失去焦点的时候才会触发,鼠标在空白的地方点一下: 输入框的input事件: 在输入内容变化的同时,实时的触发,不需要等到失去焦点.…
Change the Target Recovery Time of a Database (SQL Server) 间接checkpoints   flushcache flushcache-message https://msdn.microsoft.com/en-us/library/hh403416.aspx 间接checkpoints在SQL Server2012开始引入 sql2012的target recovery time就是强制做checkpoint,强制人工干预之前的reco…
Change Line Type in OpenCascade eryar@163.com 关键字KeyWords:OpenCascade,Line Aspect, Line Type 在OpenCascade的显示模块中,可以设置线型.消隐方式和离散精度等属性.这些属性都是在AIS_Drawer中设置. AIS_Drawer类就是用来管理显示属性的.可以设置如下显示属性: void  SetLineAspect (const Handle< Prs3d_LineAspect > &a…
最近在整一台华硕笔记本,大概有5年寿命了吧,质量还行,由于系统出了问题,打算用自制U盘WinPE进去修复一下.按照个人经验,在主板设置里启用了USB启动选项,并且设置USB启动顺序为第一个,可是进系统居然报错,如下图所示. Windows failed to start. A Recent hardware or software change might be the cause. To fix the problem: 1. Insert your windows installation…
1.Morning Routine (早上列行公事) Probably the most common habit ultra-successful people have is they can tell you exactly what they do for the 60 minutes of their day(一个共同点就是他们能在60秒之内,告诉你他们今天要做什么) 2.Practicing Gratitude (做感恩练习)3.Read - The person you will…
在Linux扩展LVM时,使用fdisk创建分区时,在磁盘上新建扩展分区(逻辑分区),修改分区格式,指定分区类型为8e时,报错"You cannot change a partition into an extended one or vice versa Delete it first.". 具体操作如下所示: [root@get-linux01 ~]# fdisk /dev/sdc   The number of cylinders for this disk is set to…
I want to share this great post from Anoop that shows a easy way to add a notification system to dependency properties of a given element. It creates and attaches a new property to the existing property and let's you specify the PropertyChangedCallba…
原本想着在<input>输入输入框中添加change事件,来实现对输入内容的限定. 当人们在使用时跟多的会直接去点击完成.所以完成按钮的点击事件会和change事件产生 冲突,所以我把验证放在了完成按钮中.这样会出现一个问题, input输入框的原值我无法拿到,在用户输入负值,和0之后我这边能做的只能是提醒, 不能把原值返回.但是用户应该是知道自己想要多少的,所以我暂时没有管他..…
基因表达谱数据 基因表达谱可以用一个矩阵来表示,每一行代表一个基因,每一列代表一个样本(如图1).所有基因的表达谱数据在“gene_exp.txt”文件中存储,第一列为基因的entrez geneid,第2~61列是疾病样本的表达,第62~76列是正常样本的表达. 图1 基因表达谱的矩阵表示 寻找差异表达的基因: 原理介绍: 差异表达分析是目前比较常用的识别疾病相关miRNA以及基因的方法,目前也有很多差异表达分析的方法,但比较简单也比较常用的是Fold change方法.它的优点是计算简单直观…
input输入框的change事件,要在input失去焦点的时候才会触发 $('input[name=myInput]').change(function() { ... }); 在输入框内容变化的时候不会触发change,当鼠标在其他地方点一下才会触发 用下面的方法会生效,input $("#input_id").on('input',function(e){ alert('Changed!') });…
hbase(main)::> create 'test_table_region', 'username' row(s) in 1.2150 seconds hbase(main)::> put ' row(s) in 0.0050 seconds hbase(main)::> scan 'test_table_region' ROW COLUMN+CELL column=username:nick, timestamp=, value= row(s) in 0.1370 seconds…
https://hacks.mozilla.org/2015/04/es6-in-depth-an-introduction/ Counting to 6 The previous editions of the ECMAScript standard were numbered 1, 2, 3, and 5. What happened to Edition 4? An ECMAScript Edition 4 was once planned-and in fact a ton of wor…
select change下拉框改变事件 设置选定项,禁用select 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head&…
在使用Extjs制作crud时,由于添加和修改界面的高度相似,使用了相同的row字段. 在角色字段中使用了change监听事件,用于动态的无效化权限分配字段,因为权限分配界面默认没有隐藏,设定了checked:true属性 var row_role = {layout:'column',items:[{columnWidth:.9,layout:'form',items:[{ xtype:'radiogroup', fieldLabel:'角色', items:[ {id:'role1', bo…
How can I protect derived classes from breaking when I change the internal parts of the base class? A class has two distinct interfaces for two distinct sets of clients: It has a public interface that serves unrelated classes It has a protected inter…
本文仅展现个人使用情况和理解,英文原址:https://review.openstack.org/Documentation/cmd-query.html 基本使用格式: ssh -p <port> <host> gerrit query   [--format {TEXT | JSON}]             --结果集返回格式 默认为'text'格式 开发中基本上采用'json'格式   [--current-patch-set]                --结果集中…
用FileZilla连接ftp出现错误,500 OOPS: cannot change directory:/home/ftp 原因是CentOS系统安装了SELinux,因为默认下是没有开启FTP的支持,所以访问时都被阻止了. ##查看SELinux设置[root@bgsl-001 vsftpd]# getsebool -a|grep ftp allow_ftpd_anon_write --> off allow_ftpd_full_access --> off allow_ftpd_use…
针对CFX (Compound File EXplorer)中rotor-stator interface 网格的处理,Pitch Change方法提供了四种交接算法(intersection algorithm),即 None, Automatic, Value 和 Specified Pitch Angles.最常用的是Automatic.两个网格面不完全overlap时,可选择 Automatic,当interface的两网格面完全overlap时可以选择 None. 如何理解Pitch…
我们用Eclipse创建Maven结构的web项目的时候选择了Artifact Id为maven-artchetype-webapp,由于这个catalog比较老,用的servlet还是2.3的,而一般现在至少都是2.5,在Project Facets里面修改Dynamic web module为2.5的时候就会出现Cannot change version of project facet Dynamic web module to 2.5,如图: 其实在右边可以看到改到2.5需要的条件以及有…
/* from: https://netsuite.custhelp.com/app/answers/detail/a_id/30057/kw/reassign%20sales */ How to change Sales Rep/Team via Mass update 1. Navigate to Lists > Mass Update > Mass Updates 2. Select Sales Force Automation 3. Select Change Sales Rep As…