a bird in the hand is worth two in the bush 翻译:两鸟在林不如一鸟在手 Example1: You know there’s such a saying that “a bird in the hand is worth two in the bush”, and so it’s a dividend in hand is worth a dividend stream farther along.
the exception proves the rule 翻译:足以证明普遍性的例外 Example1: I actually am intentionally disobeying my own rule right now. So, the exception proves the rule.
rules are made to be broken Example1: The normal rules have gone out the window. Example2: You know the rules are made be broken, if you like.
early to bed and early to rise wakes a man, healthey, wealthy and wise Example1: And the forth myth is early to bed and early to rise wakes a man, healthey, wealthy and wise.
跟机会(opportunities)相关的谚语
make hay while the sun shines 翻译: 趁热打铁,勿失良机 Example1: We should go, let’s make hay while the sun shines.
While the going gets tough, the tough get going 翻译: 艰难之路,唯勇者行 example1: But I do remember Vince Lombardi saying that When the going gets tough, the tough get going.
When the cat is away, the mice will play 翻译: 阎王不在,小鬼跳梁 example1: When the cat is away, the mice will play. And this weeks sees “July days” at home chaos in the stress of Petrograd.
eat, drink, and be merry 翻译: 及时行乐 example1: And I would say to my soul: Soul, you have may goods laid up for many years. Take your ease, eat, drink and be merry.
strike while the iron is hot 翻译: 趁热打铁 example: Everyone is telling me, You gotta strike while the iron is hot. Sign with the label, put out an album in two weeks. And milk it while it’s hot.
Every cloud has a silver lining 翻译: 黑暗中总有一丝曙光 example: Good thing is by then the Earth won’t even be inhabitable due to our sun expanding. Every cloud has a silver lining, I guess.
简单工厂:通过参数动态创建对象,但违反开闭原则 public class CoffeeFactory { public static Coffee createCoffee(String type) { if (“Latte”.equals(type)) return new Latte(); else if (“Americano”.equals(type)) return new Americano(); throw new IllegalArgumentException(“Invalid type”); } }
Good code is its own best documentation. As you’re about to add a comment, ask yourself, “How can I improve the code so that this comment isn’t needed?” Steve McConnell
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
保存之后,记得:sudo apt-get update 更新数据源即可
首次登录设置root密码
打开终端,输入sudo passwd root, 在[sudo] password for wheat:后输入当前用户的密码
当前用户密码验证通过后 输入需要设置的root超级管理员账户密码Enter new UNIX password: 验证输入的密码Retype new UNIX password:
查看 MySQL 服务状态:sudo systemctl status mysql 停止 MySQL 服务:sudo systemctl stop mysql 启动 MySQL 服务:sudo systemctl start mysql 重启 MySQL 服务:sudo systemctl restart mysql 查看 MySQL 的开机自启状态:systemctl is-enabled mysql ,enable:启用,disable:禁用 启动 MySQL 开机自启动:sudo systemctl enable mysql 禁用 MySQL 开机自启动:sudo systemctl disable mysql
原书《Reactive Messaging Patterns with the Actor Model Applications and Integration in Scala and Akka》,作者:Vaughn Vernon,是《实现领域驱动设计》(Implementing Domain Driven Design)一书的作者。因而,本书值得一看。本文随笔笔记,记录本书中的主要点,以便后续查看翻阅。