• Don't try so hard, the best things come when you least expect them to. 转载于:https://www.cnblogs.com/xiluhua/p/7403878.html

Don't try so hard, the best things come when you least expect them to.

转载于:https://www.cnblogs.com/xiluhua/p/7403878.html
展开全文
• ## 【英文演讲】 Try and TryHard

千次阅读 热门讨论 2018-11-30 15:28:04
Try and Try Hard is a very inspirational article， I am deeply in love with this article!Next, I will introduce the content of this article! If you’re going to try, go all the way. Otherwise, don’t ...
Try and Try Hard is a very inspirational article， I am deeply in love with this article!Next, I will introduce the content of this article!
If you’re going to try, go all the way. Otherwise, don’t even start.
If you’re going to try,go all the way. This could mean losing grilfriends, wives, relatives,jobs and maybe your mind.Go all the way.
It could mean not eating for three or four days. It could mean freezing on a park bench.It could mean jail. It could mean derision，mockery，isolation！
Isolation is the gift. All the others are a test of your endurance, of how much you really want to do it. And, you’ll do it, despite rejection and the worst odds. And it will be better than anything else you can imagine.
If you’re going to try, go all the way. There is no other feeling like that.
So I wnat to say,try and try hard ,Don’t talk anymore!
展开全文
• cracklib.so try_first_pass retry=6 password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok remember=3 password required pam_deny.so session optional pam_keyinit.so revoke session ...

-------------------------------------------------
每次修改密码时设置的新密码不能是前n次使用过的密码。配置如下：
Debian / Ubuntu：修改文件  # vi /etc/pam.d/common-password
CentOS / RHEL / RedHat / Fedora 修改文件 #  vi /etc/pam.d/system-auth
在 password sufficient pam_unix.so use_authtok md5 shadow remember=10
在相应行的后面添加 remember=10，而不是添加一行！
SUSE比较恶心，找了半天才找到。man pw_check
在 /etc/security/pam_pwcheck 文件中添加 remember=5
passwd:     nullok use_cracklib remember=5
-------------------------------------------------------
/etc/pam.d/system-auth
pam_cracklib.so 的 options
6.2.2.OPTIONS
debug
This option makes the module write information to syslog(3) indicating the behavior of the module
(this option does not write password information to the log file).
authtok_type=XXX
The default action is for the module to use the following prompts when requesting passwords:
"New UNIX password: " and "Retype UNIX password: ".
The example word UNIX can be replaced with this option, by default it is empty.
retry=N
Prompt user at most N times before returning with error. The default is 1.
difok=N
This argument will change the default of 5 for the number of characters in the new password
that must not be present in the old password. In addition, if 1/2 of the characters in the new password are different
then the new password will be accepted anyway.
difignore=N
How many characters should the password have before difok will be ignored. The default is 23.
minlen=N
The minimum acceptable size for the new password (plus one if credits are not disabled which is the default).
In addition to the number of characters in the new password, credit (of +1 in length) is given for each different
kind of character (other, upper, lower and digit). The default for this parameter is 9 which is good for a old style
UNIX password all of the same type of character but may be too low to exploit the added security of a md5 system.
Note that there is a pair of length limits in Cracklib itself, a "way too short" limit of 4 which is hard coded in and
a defined limit (6) that will be checked without reference to minlen. If you want to allow passwords as short as 5 characters
you should not use this module.
dcredit=N
(N >= 0) This is the maximum credit for having digits in the new password. If you have less than or N digits,
each digit will count +1 towards meeting the current minlen value. The default for dcredit is 1 which is the
recommended value for minlen less than 10.
(N < 0) This is the minimum number of digits that must be met for a new password.
ucredit=N
(N >= 0) This is the maximum credit for having upper case letters in the new password.
If you have less than or N upper case letters each letter will count +1 towards meeting the current minlen value.
The default for ucredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of upper case letters that must be met for a new password.
lcredit=N
(N >= 0) This is the maximum credit for having lower case letters in the new password.
If you have less than or N lower case letters, each letter will count +1 towards meeting the current minlen value.
The default for lcredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of lower case letters that must be met for a new password.
ocredit=N
(N >= 0) This is the maximum credit for having other characters in the new password.
If you have less than or N other characters, each character will count +1 towards meeting the current minlen value.
The default for ocredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of other characters that must be met for a new password.
minclass=N
The minimum number of required classes of characters for the new password. The default number is zero.
The four classes are digits, upper and lower letters and other characters. The difference to the credit check is that
a specific class if of characters is not required. Instead N out of four of the classes are required.
maxrepeat=N
Reject passwords which contain more than N same consecutive characters.
The default is 0 which means that this check is disabled.
Check whether the name of the user in straight or reversed form is contained in the new password.
If it is found the new password is rejected.
use_authtok
This argument is used to force the module to not prompt the user for a new password
but use the one provided by the previously stacked password module.
dictpath=/path/to/dict
Path to the cracklib dictionaries.
#----------------------------------------------------------------------------------------------------------------------#
cat > /etc/pam.d/system-auth <
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth        required      pam_env.so
auth        sufficient    pam_unix.so nullok try_first_pass
auth        requisite     pam_succeed_if.so uid >= 500 quiet
auth        required      pam_deny.so
account     required      pam_unix.so
account     sufficient    pam_succeed_if.so uid < 500 quiet
account     required      pam_permit.so
password    requisite     pam_cracklib.so try_first_pass retry=6
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass use_authtok remember=3
session     optional      pam_keyinit.so revoke
session     required      pam_limits.so
session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session     required      pam_unix.so
auth        required      pam_tally2.so deny=6 onerr=fail unlock_time=300
account     required      pam_tally2.so
password    required      pam_cracklib.so try_first_pass retry=6 minlen=8 lcredit=-1 ucredit=-1 ocredit=-1 dcredit=-1
!

展开全文
• Day 1: On Living the Hard Way 原文： MOTTO Life’s easy when you live it the hard way… and hard if you try to live it the easy way. ​ —Da


Day 1: On Living the Hard Way
Day 1: On Living the Hard WayMOTTOPart 01Part 02Part 03
Words**gratification**^1^**indulge**^2^**fleeting**^3^**opts**^3^**substantial**^4^**primary**^5^**insignificant**^6^**insurmountable**^7^**sheltered**^8^**disagreeable**^9^**seek out**^10^**self-imposed**^11^**affliction**^12^**immunize**^13^**precisely**^14^**deals**^15^**blow**^16^
Full Text Translation第1天：选择更难的方式生活Part 01Part 02Part 03-End-

原文：

Day 1: On Living the Hard Way
MOTTO

Life’s easy when you live it the hard way… and hard if you try to live it the easy way.
​ —Dave Kekich

Part 01
Self-discipline means living your life the hard way: resisting temptations and instant gratification1 , in order to receive bigger and better rewards in the future. It’s certainly easier to avoid all kinds of discomfort and indulge2 yourself whenever you want, but in the end, all that you get from that approach is fleeting3 pleasure now at the expense of your future, which otherwise could have been much better.
Part 02
Consider a weak-willed person who, when faced with a challenge, immediately opts3 out. How likely is this person to achieve anything substantial4 in life if their primary5 value is to feel comfortable? How is this person going to manage a crisis that they must face? Even a relatively insignificant6 problem can become an insurmountable7 obstacle for a person who’s been living a sheltered8 life and always avoided what’s difficult or disagreeable9.
Part 03
Now contrast that with a person who voluntarily makes his or her life harder. They seek out10 and welcome challenges as opportunities to grow. Each self-imposed11 affliction12 strengthens them, so that fewer and fewer difficulties in life overwhelm them. Day by day, they immunize13 themselves against problems, precisely14 because they seek them out. When life deals15 them an unexpected blow16, they’re ready to handle it because — thanks to living their lives the hard way — they’re always ready for hardships.
Words
gratification1
英/ɡrætɪfɪ’keɪʃn/ 美 /ˌɡrætəfɪˈkeʃən/
英：gratification n. a. state of being gratified; b. great satisfaction eg: Dull repetitious work gives no gratification; to my immense gratification he arrived on time  中：1.n. 满足;满意;喜悦 2.使人满意之事;可喜的事物  Eg: It is a gratification to know that … 得知…实在是让人欣喜的事  拓展：synonymous： satisfaction； the act or an instance of satisfying
indulge2
英/ɪn’dʌldʒ/ 美 /ɪn’dʌldʒ/
英：indulge v. a. give free rein to eg: The writer indulged in metaphorical language; b. yield (to); give satisfaction to synonymous： gratify, pander c. enjoy to excess eg: She indulges in ice cream synonymous： luxuriate d. treat with excessive indulgence  中：vt. 满足；使沉迷于…；使高兴；纵容 vi. 满足；沉溺；放任 时 态: indulged, indulging, indulges  Eg: I indulged in an orgy of housework. 我整天埋在干不完的家务活儿里。  拓展：synonymous： pamper (vt. 纵容;宠;娇养), featherbed(vt. 满足；使沉迷于…；使高兴；纵容 vi. 满足；沉溺；放任), cosset(vt. 宠爱;娇养;纵容), cocker(vt. 娇养,溺爱,放纵), baby（vt. 把…当作婴孩看待, 娇养）, coddle（vt. 娇养；溺爱）, mollycoddle（vt. 娇养,宠坏）, spoil（溺爱, 宠坏）
fleeting3
英/'fliːtɪŋ/ 美/ˈflitɪŋ/
英：fleeting lasting for a markedly brief time；  中：1.adj. 飞逝的；转瞬间的 2.v. 迅速移动（fleet的ing形式）  Eg: We only had a fleeting glimpse of the sun all day. 一整天我们只看到太阳露了一下脸。  拓展：synonymous： fugitive, momentaneous, momentary；a fleeting glance 快速一瞥
opts3
英/ɒpt/ 美/ɑpt/
英：opt v. a. select as an alternative; b. choose instead; c. prefer as an alternative eg: She opted for the job on the East coast  中：vi. 选择 时 态: opted, opting, opts  Eg: I became very rebellious and opted out. 我的逆反心理增强，选择了退出。  拓展：synonymous ：choose, prefer
substantial4
英/səb’stænʃ(ə)l/ 美 /səb’stænʃl/
英：substantial a. consisting of or relating to substance b. not imaginary or illusory : REAL, TRUE c. IMPORTANT, ESSENTIAL  中：1.adj. 坚固的; 结实的 2.大量的, 可观的 3.重大的, 重要的 4.实质的, 基本的, 大体上的  Eg: The article is devoid of substantial matter. 这篇文章缺乏实质性的内容。  拓展：synonymous：big, consequential, earth-shattering, earthshaking, eventful, historic, important, major, material, meaningful, momentous, monumental, much, significant, tectonic, weighty
primary5
英/'praɪm(ə)rɪ/ 美/'praɪmɛri/
英：primary n. a. a preliminary election where delegates or nominees are chosen synonymous： primary election b. one of the main flight feathers projecting along the outer edge of a bird’s wing synonymous： primary feather, primary quill c. coil forming the part of an electrical circuit such that changing current in it induces a current in a neighboring circuit d. current through the primary coil induces current in the secondary coil synonymous： primary coil, primary winding primary adj. a. of first rank or importance or value; direct and immediate rather than secondhand
primary goalsa primary effectprimary sourcesa primary interest b. not derived from or reducible to something else; basic a primary instinct c. most important element policemen were primary targets synonymous： chief(a), main(a), principal(a) d. of or being the essential or basic part synonymous： elementary, elemental e. of primary importance synonymous： basal  中：adj. 主要的；初级的；基本的 n. 原色；最主要者  Eg: This is the primary impetus behind the economic recovery. 这是促使经济复苏的主要动力。
insignificant6
英/ɪnsɪg’nɪfɪk(ə)nt/ 美/ˌɪnsɪɡ’nɪfɪkənt/
英：insignificant adj. not significant such as： a. lacking meaning or import b. small in size, quantity, or number c. not worth considering : UNIMPORTANT d. lacking weight, position, or influence : CONTEMPTIBLE  中：adj. 无价值的, 无意义的, 无用的  Eg: I know I am not your queen, I just your insignificant dogface. 我知道我不是你的女王，我只是你眼里不起眼的小兵  拓展：synonymous：fiddling, foolish, frivolous, incidental, inconsequential, inconsiderable, little, Mickey Mouse, minor, minute, negligible, nugatory, slight, small, small-fry, trifling, trivial, unimportant 均可表示“不重要”
insurmountable7
英/ˌɪnsə’maʊntəb(ə)l/ 美/ˌɪnsɚ’maʊntəbl/
英：insurmountable adj. a. not capable of being surmounted or overcome b. impossible to surmount  中：adj. 不可逾越的  Eg: The age barrier appeared insurmountable. 年龄障碍看来是无法逾越的  拓展：synonymous：insuperable, unsurmountable
sheltered8
英/ˈʃeltəd/ 美/'ʃɛltɚd/
英：sheltered adj. a. protected from danger or bad weather  中：adj. 受保护的；掩蔽的；免税的；为弱者提供方便的 v. 庇护（shelter的过去分词）  Eg: He sheltered himself behind a hedge. 他躲在树篱后面。  拓展：synonymous：protected
disagreeable9
英/dɪsə’griːəb(ə)l/ 美/ˌdɪsə’ɡriəbl/
英：disagreeable adj. a. causing discomfort : UNPLEASANT, OFFENSIVE b. marked by ill temper : PEEVISH  中：1. adj. <正>①不合意的;令人不快的;讨厌的 2. (人)不友善的;难相处的;暴躁的  Eg:I have never seen so disagreeable a schoolboy! 我不曾见过那样讨厌的学生  拓展：synonymous：acid, bearish, bilious, bloody-minded [chiefly British], cantankerous, dyspeptic, ill-humored, ill-natured, ill-tempered, ornery, splenetic, surly均可表示“脾气坏”
seek out10
英/siːk/ 美/sik/
英：seek vt. a. to go in search of : look for b. to try to discover vi. to make a search or inquiry  中：1. vt. 寻找；探索；寻求；搜索
vi. 寻找；探索；搜索 时 态: sought seeking, seeks  Eg: Don’t seek out only native English speakers. 不要只去寻找英语母语者。  拓展：synonymous：cast about (for), cast around (for), chase (down), forage (for), hunt, look up, pursue, quest, search (for or out), shop (for)均可表示“寻找”
self-imposed11
英/'selfim’pəuzd/ 美 /ˌsɛlfɪmˈpozd/
英：self-imposed adj. a. voluntarily assumed or endured  中：adj. 自己强加的;自愿接受的  Eg: He returned home after eleven years of self-imposed exile. 经历了11年的自我流放后他回家了。
affliction12
英/ə’flɪkʃ(ə)n/ 美/əˈflɪkʃən/
英：affliction n. a. a state of great suffering and distress due to adversity b. a condition of suffering or distress due to ill health c. a cause of great suffering and distress  中：n. 折磨；苦恼；苦难  Eg: Afflictions are sometimes blessings in disguise. 塞翁失马,焉知非福。  拓展：synonymous：adversity, hardship, hard knocks
immunize13
英/ˈɪmjəˌnaɪz/ 美/'ɪmjʊ’naɪz/
英：immunize vt. a. law: grant immunity from prosecution b. perform vaccinations or produce immunity in by inoculation  中：vt. 使某人免疫  Eg: So our body become immunize through failure. 我们的身体通过失败获得免疫力。
precisely14
英/prɪ’saɪslɪ/ 美/prɪ’saɪsli/
英：precisely adv. a. indicating exactness or preciseness eg: “he was doing precisely (or exactly) what she had told him to do” b. in a precise manner eg: “she always expressed herself precisely” c. just as it should be  中：1. adv. 精确地;恰好;细心地 2. 对, 的确如此  Eg: That’s precisely what I meant. 那恰恰是我的意思。  拓展：synonymous：accurately，exactly
deals15
英/diːl/ 美/dil/
英：deal n. a. a particular instance of buying or selling v. a. take action with respect to (someone or something)  中：1. vt. 发牌；处理；给予；分配
vi. 处理；做生意；对待；讨论n. 交易；份量；待遇；（美）政策 时 态: dealt dealing, deals  Eg: Deal with a man as he deals with you. 以其人之道, 还治其人之身。
blow16
英/bləʊ/ 美/blo/
英：blow n. a. a powerful stroke with the fist or a weapon blow v. a. exhale hard  中：1. n. 吹；殴打；打击
vi. 风吹；喘气  vt. 风吹   Eg: This was a sudden and unforeseen blow. 这是一个意想不到的打击。
Full Text Translation
译文：
第1天：选择更难的方式生活

当你选择了较为艰苦的方式，生活其实是容易的…但如果你选择了容易的方式，它往往会变得更难。
​ ——Dave Kekich

Part 01

Self-discipline means living your life the hard way: resisting temptations and instant gratification, in order to receive bigger and better rewards in the future.
It’s certainly easier to avoid all kinds of discomfort and indulge yourself whenever you want, but in the end, all that you get from that approach is fleeting pleasure now at the expense of your future, which otherwise could have been much better.

自律意味着过艰难的生活:抵制诱惑和即时满足，以便在未来获得更大更好的回报。
当然，避免各种各样的不适，并在任何你想要的时候放纵自己，是更容易的，但最终，你从这种方式中得到的只是转瞬即逝的快乐，以牺牲你的未来为代价，否则你的未来会好得多。
Part 02

Consider a weak-willed person who, when faced with a challenge, immediately opts out.
How likely is this person to achieve anything substantial in life if their primary value is to feel comfortable?
How is this person going to manage a crisis that they must face?
Even a relatively insignificant problem can become an insurmountable obstacle for a person who’s been living a sheltered life and always avoided what’s difficult or disagreeable.

考虑一个意志薄弱的人，当面对挑战时，他会立即选择退出。
如果这个人的主要价值是感觉舒适，那么他有多大可能在生活中取得任何实质性的成就?
这个人将如何处理他们必须面对的危机?
即使一个相对微不足道的问题也可能成为一个不可逾越的障碍，对于一个过着被庇护的生活的人来说，总是回避困难或不愉快的。
Part 03

Now contrast that with a person who voluntarily makes his or her life harder.
They seek out and welcome challenges as opportunities to grow. Each self-imposed affliction strengthens them, so that fewer and fewer difficulties in life overwhelm them.
Day by day, they immunize themselves against problems, precisely because they seek them out.
When life deals them an unexpected blow, they’re ready to handle it because — thanks to living their lives the hard way — they’re always ready for hardships.

现在来对比一下那些自愿让自己的生活更艰难的人。
他们寻找，把挑战当作成长的机会。每一种自我强加的苦难都使他们更坚强，所以生活中越来越少的困难压倒他们。
日复一日，他们让自己对问题免疫，恰恰是因为他们会去寻找问题。
当生活给他们一个意想不到的打击时，他们已经准备好应对，因为——感谢他们过的艰难的生活——他们总是准备好应对困难。
-End-
展开全文
• Why is it so hard to learn programming? 1. perseverance 2. modesty 3. open to new things 4.Use your program to prove yourself!
• 在linux kernel里，有一个debug选项CONFIG_HARDLOCKUP_DETECTOR。使能它可以打开kernel中的soft lockup和hard lockup探测。这两个东西到底有什么用处那？首先，soft/hard lockup的实现在kernel/wa...
• ## 激活函数hard sigmoid

千次阅读 2017-09-05 11:06:03
for classification problems it rarely if ever causes errors (and when it does, some more training tends to correct it–extra training you can afford to run because your training cycles run so much ...
• 某套数据库以dba组用户登录正常，但以非dba组用户登录时出现LIBCLNTSH.SO: WRONG ELF CLASS: ELFCLASS32错误，如下例子：su - macleansqlplusld.so.1: sqlplus: fatal: /s01/orabase/product/10.2.0/dbhome_1/lib32/...
• 这周遇到了一个内核关于 softlockup 和 hardlockup 相关的 bug, 首先 在内核文档中找到了关于他们的定义和实现的介绍的非常详细，还在网上找到了 更多关于他们的介绍和很细可以查看文后参考的博客 1. 首先来介绍下 ...
• So a file can have multiple hardlinks, appearing in multiple directories, but isn't deleted until there are no remaining hardlinks to it. Here are some other differences between hardlinks and ...
• HEAD points to your current branch (or current commit), so all that git reset --hard HEAD will do is to throw away any uncommitted changes you have. HEAD指向您当前的分支（或当前提交），因此所有git ...
• 当发生网络或NFS服务器端故障时，选用hard-mount选项会引起NFS客户端的程序挂起，而soft-mount则不会。 soft-mount: 当客户端加载NFS不成功时，重试retrans设定的次数.如果retrans次都不成功，则放弃此操作，返回...
• 2015年已经过去了1/6，但是却毫无收获，新年的目标看起来实现也是遥遥无期，或许期望太高，或许目标不现实。...“Try something new for 30days",开始变得有吸引力，似乎能够阻挡将要老去的时光一般。
• ex42 对象分为类对象和实例对象。类对象是用class命名时就生成了一个类对象；实例对象简称对象，是当实例化时生成的对象。 ## Animal is-a object class Animal(object): def __init__(self): ...
• 原文：http://techthrob.com/2010/09/26/softlinks-vs-hardlinks-a-quick-explanation/ http://linuxgazette.net/105/pitcher.html... ...Q & A: The difference between hard and soft links By Lew Pitcher I
• ## HDUOJ 3551 Hard Problem

千次阅读 2020-07-14 09:50:22
HDUOJ 3551 Hard Problem 题目链接 Problem Description This is the most tough task in this contest, do not try it until you solve all the other tasks or you feel boring on others. Given an undirected ...
• ## Hard disk hacking - Intro

千次阅读 2013-08-14 14:36:04
My target was to try and compromisethe security of a system by using hard disk firmware mods. The easiestand probably hardest-to-detect way to do this was to modify data on thefly. That way, the data...
• Read other people’s code in the language, and try to copy their patterns. In this book,I forced you to go through this process very slowly and in small chunks. Other books aren’t organized the same...
• 但在4.2.2版本的Android的Bionic实现中，加载的目录只有LD_LIBRARY_PATH变量所指示的路径以及被hardcode进代码的/system/lib，/vendor/lib这两个路径。而事实上LD_LIBRARY_PATH是不建议修改的，而且默认值在Android...
• Joey: Boy, it was so hard not to laugh, I tell ya. Hey, hey, the place looks great! Chandler: Yeah, not bad right? You know what, Monica's gonna be working late, so I'm gonna make this place spotless...
• So if we somehow base dp[i+1][j+1] on previos dp[i][j]'s then the result will be dp[s.length()][p.length()] So what about the first column? for and empty pattern p="" only thing that is valid is an ...
• ## pam操作实例

千次阅读 2016-12-18 11:16:38
#1.怎样才能强迫用户设置的密码不能与过去3次内的密码重复？ 修改/etc/pam.d/system-auth,增加pam_unix.so的参数，如下 ...password sufficient pam_unix.so md5 shadow nullok try_first_pass
• Then do your homework and try to apply for loans for which you are most likely to qualify. You can  monitor your credit score each month for free at Credit.com, and when you do, we’ll match you ...
• 原创文章，转载请注明： 转载自All-iPad.net 本文链接地址: 如何用gdb找到Android ... so文件中的加密key 来自XDA developer的一篇文章，作者详细描述了如何使用gdb + ida找到Angry Birds RIO Android版中l
• earn the python3 the hard way里的ex43难度陡增，因为代码超过百行，里面的文字又太多，但是有不少有趣的小套路，大家也可以试着总结一下。 from sys import exit from random import randint from textwrap import...
• Now, how to master this skill.... Try these proven methods for working hard easily. They will help you to relax and have easy power. <br />1. Don‘t get the idea that you are Atlas c

...