Skip to main content

Posts

Showing posts from 2020

In defence of swap: common misconceptions

https://chrisdown.name/2018/01/02/in-defence-of-swap.html This post is also available in Japanese , Chinese , and Russian . tl;dr: Having swap is a reasonably important part of a well functioning system. Without it, sane memory management becomes harder to achieve. Swap is not generally about getting emergency memory, it's about making memory reclamation egalitarian and efficient. In fact, using it as "emergency memory" is generally actively harmful. Disabling swap does not prevent disk I/O from becoming a problem under memory contention, it simply shifts the disk I/O thrashing from anonymous pages to file pages. Not only may this be less efficient, as we have a smaller pool of pages to select from for reclaim, but it may also contribute to getting into this high contention state in the first place. The swapper on kernels before 4.0 has a lot of pitfalls, and has contributed to a lot of people's negative perceptions about swap due to its overeagerness to swap out

How do I blacklist a kernel module to prevent it from loading automatically?

Environment Red Hat Enterprise Linux 4, 5, 6, 7, 8 Issue How do I blacklist a kernel module to prevent it from loading automatically? How to disable a kernel module? How to disable a specific device driver? Resolution In order to prevent kernel modules loading during boot, the module name must be added into the blacklist file. Ensure the module is not configured to load either in /etc/modprobe.conf , /etc/modprobe.d/* , /etc/rc.modules , or /etc/sysconfig/modules/* before making the following modifications. Due to differences between the various versions of RHEL, please be sure to follow the appropriate steps for your system's version below: The shared steps for RHEL 5, 6, 7, 8 followed by the specific steps for each version The steps for RHEL 4 Shared Initial Steps for Red Hat Enterprise Linux 5, 6, 7 and 8 Kernel modules can be loaded directly, loaded as a dependency from another module, or during the boot

Are Facebook employees depressed? (H1B slavery visa & abuse)

礼记/中庸

  天命之谓性;率性之谓道;修道之谓教。道也者,不可须臾离也;可离,非道也。是故君子戒愼乎其所不睹,恐惧乎其所不闻。莫见乎隐,莫显乎微。故君子愼其独也。喜怒哀乐之未发,谓之中。发而皆中节,谓之和。中也者,天下之大本也。和也者,天下之达道也。致中和,天地位焉,万物育焉。 仲尼曰:“君子中庸;小人反中庸。君子之中庸也,君子而时中。小人之反中庸也,小人而无忌惮也。” 子曰:“中庸其至矣乎!民鲜能久矣。” 子曰:“道之不行也,我知之矣:知者过之;愚者不及也。道之不明也,我知之矣:贤者过之;不肖者不及也。人莫不饮食也。鲜能知味也。” 子曰:“道其不行矣夫。” 子曰:“舜其大知也与!舜好问以好察迩言。隐恶而扬善。执其两端,用其中于民。其斯以为舜乎!” 子曰:“人皆曰:‘予知’,驱而纳诸罟擭陷阱之中,而莫之知辟也。人皆曰:‘予知’,择乎中庸,而不能期月守也。” 子曰:“回之为人也:择乎中庸,得一善,则拳拳服膺,而弗失之矣。” 子曰:“天下国家,可均也;爵禄,可辞也;白刃,可蹈也;中庸,不可能也。” 子路问强。子曰:“南方之强与,北方之强与,抑而强与?宽柔以教,不报无道,南方之强也。君子居之。衽金革,死而不厌,北方之强也。而强者居之。故君子和而不流;强哉矫。中立而不倚;强哉矫。国有道,不变塞焉;强哉矫。国无道,至死不变;强哉矫。” 子曰:“素隐行怪,后世有述焉:吾弗为之矣。君子遵道而行,半涂而废:吾弗能已矣。君子依乎中庸。遁世不见知而不悔:唯圣者能之。” 君子之道,费而隐。夫妇之愚,可以与之焉,及其至也,虽圣人亦有所不知焉。夫妇之不肖,可以能行焉,及其至也,虽圣人亦有所不能焉。天地之大也,人犹有所憾。故君子语大,天下莫能载焉,语小,天下莫能破焉。《诗》云:“鸢飞戾天;鱼跃于渊。”言其上下察也。君子之道,造端夫妇;及其至也,察乎天地。 子曰:“道不远人。人之为道而远人,不可以为道。《诗》云,‘伐柯伐柯,其则不远。’执柯以伐柯,睨而视之。犹以为远。故君子以人治人,改而止。忠恕违道不远。施诸己而不愿,亦勿施于人。君子之道四,丘未能一焉:所求乎子,以事父,未能也;所求乎臣,以事君,未能也;所求乎弟,以事兄,未能也;所求乎朋友,先施之,未能也。庸德之行,庸言之谨;有所不足,不敢不勉;有馀,不敢尽。言顾行,行顾言。君子胡不慥慥尔。” 君子素其位而行,不愿乎其外。素富贵,行乎富贵;素贫贱,行乎贫

RedHat and CentOS Stream projects

  The Fedora Project, foundation of the Fedora operating system, for those looking to contribute to the leading-edge of operating system innovation. CentOS Stream for ecosystem developers who need to see what is coming in RHEL and need to introduce changes in order to enable their hardware or software.    The Red Hat Universal Base Image, a cost-free, redistributable and developer-ready image for creating cloud-native enterprise applications. With the Red Hat Universal Base Image, developers can more easily create certified applications for production deployment on RHEL and across Red Hat’s open hybrid cloud portfolio, including Red Hat OpenShift.  The RHEL Developer subscription, a free, self-supported subscription for developers, provides a dev/test environment for applications that are meant to be deployed into production on the stable, more secure and high-performance foundation of RHEL.

Flint's Deadly Water (full documentary) | FRONTLINE

Costco $10以下好物,价廉物美,试试不吃亏

PyPI Service Degradati

Incident Report for Python Infrastructure Subscribe to Updates Update The XMLRPC Search endpoint is still disabled due to ongoing request volume. As of this update, there has been no reduction in inbound traffic to the endpoint from abusive IPs and we are unable to re-enable the endpoint, as it would immediately cause PyPI service to degrade again. We are working with the abuse contact at the owner of the IPs and trying to make contact with the maintainers of whatever tool is flooding us via other channels. Posted 3 days ago. Dec 15 , 2020 - 20:59 UTC Monitoring With the temporary disabling of XMLRPC we are hoping that the mass consumer that is causing us trouble wi

北美华人的最应该感恩的3个人

 北美华人的最应该感恩的3个人: 1. Dr. Martin Luther King jr.,没有他的民权运动, 今天的美国华人只能在唐人街 居住,子女只能在唐人街上学,哪里还敢梦想美国华人今天的繁荣景象。我们中国人应 该感谢黑人用命拼来的平权运动成果AA,没有 M.L.K, 今天你们的子女的工作 前途就 是中国餐馆,就是密西西比的摘棉花工作。 2. Barack Obama,  Obama给了我们中国人10年签证, 任期里面还是作了惊天动地的事情 ,今天的美国华人,得益于obama, 美国华人的社会和经济地位都大提高,更多的华人 从政,做律师,医生,教授。美国大学里,也随处可见大陆来的小留学生, 这种情况 ,在8年前都不敢想像。Obama那时候, 新移民还有廉租房, 医疗保险, 最低生活保障。 Trump 要把旅美签证的有效期缩短到一个月。 3. Kamala Harris, 华人尤其是应该感谢Harris 的 S.386法案。美国每年发放给职业 技术移民的绿卡数是14万份。为公平起见,每个国家移民的配额,不能超过总移民配额 的7% 。换言之,每个国家每年可以分到约9800张 绿卡配额。这个数字,对于印度和中国这种绿卡申请大户来说,明显是不够用的。那每 年多出来的申请者怎么办呢?那就排队,积压到下一年处理。有了这个法案, 北美就会 有更多的华人移民.

The Virus: What Went Wrong? (full film) | FRONTLINE

For What It’s Worth

  While FWIW isn’t the most popular piece of slang on the internet, it routinely finds its way into Twitter posts, message boards, and chat rooms. But what does FWIW mean, where’d it come from, and how do you use it? For What It’s Worth FWIW means “for what it’s worth.” It’s an idiom that rarely carries any literal meaning, and it’s used to politely express that someone should consider an opinion, idea, or fact (usually because their opinion is flawed). If it helps, imagine that FWIW means, “You can ignore what I’m going to say, but I think you should hear it anyway.” The phrase doesn’t really change the overall meaning of your sentence, it just adds a polite tone to what you’re saying. So instead of telling a friend, “You have no idea what you’re talking about, 4K TVs have four times the pixel resolution of HD TVs,” you could just say, “FWIW, 4K TVs have four times the pixel resolution of HD TVs.” Interestingly, FWIW can also be used to inject a snarky, empathetic,

“九章”量子计算机为啥快?玻色采样是什么?量子霸权时代来了吗?

Mike Meyers on: Touring the Network Server Room

Structured Cabling Beyond a Star-Topology Network

Three basic components of Structured Cabling

MDF and IDF - CompTIA Network+ N10-006 - 5.7

杨振宁的最后一战

 发信人: eatsilver (五教派掌门兼创始人), 信区: Military 标  题: 杨振宁的最后一战:阻止中国为超大对撞机买单 发信站: BBS 未名空间站 (Tue Dec  8 01:22:29 2020, 美东) The party is over。   杨振宁张开左手向上抬起微微摇了摇,加重语气补充翻译:   什么意思?盛宴已过。   虽然97岁高龄,杨振宁也只需一根拐杖就能走路,他坐在沙发上,拐杖斜放在腿边。   台下,坐满了年轻大学生,一位男生站起来发问,脸上挂着愤懑、委屈与不解。   这是2019年4月29日,在北京雁栖湖畔中国科学院大学(国科大)新礼堂发生的一 幕。   男生读研一,来自中国科学院高能物理研究所,未来即将从事CEPC(环形正负电子 对撞机)的预研工作。   4年前,针对CEPC该不该建,杨振宁与男生老师,高能物理研究所所长王贻芳之间 爆发了一场大战。   从事高能物理研究的人,都指望这个项目上马,不然他们在剩下的岁月中将无事可 干。   前一阵子,任正非呼吁,要加强基础教育,砸钱砸不出来科学家。令人啼笑皆非的 是,当代最基础的理论物理,恰恰把希望寄托在砸钱上面。   作为一个超级费钱的项目,CEPC环形周长100公里,保守估计就得400亿。第二期 SppC(环形强子对撞机)耗资更是超千亿。   北京五环路全长98.58公里,这意味着,隧道可将整个北京主城区包在其中。   醋醋的朋友房师说,宇宙第一房企碧桂园,做梦都不敢奢望拿下这么大一块土地。   CEPC-SppC,这简直就是物理学的三峡工程,高能所只是冲在前台的马前卒,背后 强力推手,是国际超弦界。   从2014年开始,国际超弦界就组团来中国游说超级对撞机项目,不幸的是,2016年 他们遭到杨振宁的强势阻击,当年发改委十三五项目审批,CEPC只差一票未能通过。   这位高能所研一男生,从室友那听到小道消息,现在杨振宁不反对建CEPC了,于是 怀着激动的心情,抢到了一张杨振宁的国科大讲座门票,想当面求证一下。   杨振宁第一句话就是我的看法没有变,迎头泼了他一盆凉水。   他不仅一如既往反对建超大对撞机,还劝这位男生尽早转行,高能物理盛宴已过。   人的一生呐,不能只看个人

分享一个朋友在亚麻的pip过程

 分享一个朋友在亚麻的pip过程,给亚麻的朋友提个醒。 顺便帮忙问问能不能申诉 Context: 19年9月入职,昨天收到manager pip的告知。 AWS相关组,manager白人,组内印度 国人美国人 差不多,没啥争执的。manager一直 对人挺好的,而且每次1on1都比较positive。朋友代码贡献量,CR提交数量和ticket handle 量也位居组里前三。最近正好负责一个功能上线,开始参加另一个长期项目, 突然被告知pip。没有任何征兆。 原因:两周前1on1的时候,manager翻出来一张ticket说是朋友代码bug造成的,没有造 成customer impact 因为是在gamma QA test发现的,后来同事及时改正。当时没说啥 ,只说下次注意。然后manager突然问朋友有没有转组和跳槽的打算。这时候朋友感觉 不太对。因为之前从来没有出现过代码bug惊动manager。而且朋友一年多没出现过一次 其他代码bug 这周再次1on1的时候manager直接点破说因为代码能力要进入pip。朋友顿时傻眼 请问: 现在能不能找HR申诉或者向大组领导反映。没有超时完成任务的情况并且每周 汇报都有记录。有代码提交量,设计量,各种工作量的截图,决定是组里数一数二的。 而且那个代码的bug没有实际影响,并且CR被5个同事approve通过。 另外朋友想对亚麻的朋友说一句,能早点走还是早点走吧,别像他一样自愿加班工作超 额完成任务还莫名其妙因为i一个bug被pip 

10万订阅特别节目!老李真心话大冒险Q&A!特殊嘉宾出场!

Apple M1 chip: not so crazy after all.

说说中美可能发生的

 发信人: cellcycle (vacoule), 信区: USANews 标  题: 就Biden上台后,说说中美可能发生的 发信站: BBS 未名空间站 (Sun Dec  6 12:26:28 2020, 美东) 1, 四年后中美经济体量基本接近,华尔街的生意在中国很兴隆, 2, 华为 基本超过 三星,硬件指标超过 苹果,但软件生态还是差一点;5g 不好说, 因为社会应用方面还没铺开,但华为5g 没有“死”, 活的很好;加上小米等等,手机 业务市场基本中国独大, 3, 中芯国际进入芯片产业前三,除了每年最高端的芯片,其它基本可以满足供应。 4, 中国在南海 完全站稳,已对台湾行成某种“和围”,且trump 期间卖的武器,大部 分没有到位,台湾在美训练的F35飞行员已成鸡肋。 5, 中美文化,科技人员交流顺畅,大陆游客和美华都来去自由,。。。 6, 不完全确定的是 习大2022是否“退位”, 估计6成 继续干,4成 仿效老姜,依旧 控制局面。。 7, 中美高层多次互访,biden 被人民日报多次称为 中国人民的老朋友,总之,未来四 年,国际经济形势应该不错,有中美两个领头,全世界也基本从新冠恢复。。

做学问最重要的是系统性

  不仅做学问。世界上任何事其实都是一个耐心。 中学时候,学课文“劝学”。骐骥一跃,不能十步,驽马十驾,功在不舍。 小时候,是稀里糊涂的学。刻苦学习也不知道为什么。 老了,理解了持之以恒的重要性,但也因为年轻时的轻浮,再也回不去了。 生活安逸,也是消磨意志的一种挑战。 试想,别无选择,被逼着到戈壁滩当人肉电池,说不定我老还能成就一番事业。但人都 是有惰性的。没有人能放着好日子不过为了做出成绩去找罪受。 我老这一生,总觉自己有悟性看问题清楚,一路顺风顺水,但最后还是一事无成。这就 是聪明人的悲哀。总是找捷径,偷懒,占便宜。聪明人注定一事无成。历史是笨蛋书写 的。因为笨蛋不懂得投机取巧。历史也是公正的。     人一聪明,就敏锐 敏锐了,就不稳定 就像一台仪器,对细微信号都很敏感,可以做大用,但多半没用 现实世界,不会给你搞一个高级实验室伺候你这一台高精密仪器。 一点小小的噪音,就可能摧毁精密的探测器。 聪明人,在历史上,命运多非常悲惨。他们的一生,只能在天时地利人和的某一刹那, 闪耀一点光芒,然后就陨落了。 而成功的人,多半是不那么敏感,不那么敏锐,而是死脑筋的笨蛋。这些人不受到外部 因素的干扰,一往无前。这样的人,不论干什么,都不会混得太差。因为人类社会,太 复杂了,什么样的人都需要,只要你专心致志做一件事,都会混得不错,哪怕是你专心 致志挑大粪,也能混出名堂。 所以苏轼诗云 人皆养子望聪明, 我被聪明误一生。 但愿生儿愚且鲁, 无灾无难到公卿。 实在是肺腑之言   1. 把兴趣放在最重要最实用实际的领域。 2. 尽量减少与兴趣无谓无关的娱乐和兴趣。 3. 基础和兴趣领域的知识扎实。专精,认真。 4. 不虚荣,不攀比,不浮躁,不懈的专注思考。 5. 尽量提高自学能力。远离依赖性。不急功近利。 6. 对重要知识能力方法和技术,必精益求精加创新。  

Monorepo

  In revision control systems , a monorepo ("mono" from Greek μόνος, mónos, 'single, alone' and "repo" short for repository ) is a software development strategy where code for many projects is stored in the same repository . As of 2017, various forms of this software engineering practice were over two decades old, but the general concept had only recently been named. [1] Many attempts have been made to differentiate between monolithic applications and other, newer forms of monorepos. [2] [3] [4] Google , [5] Facebook , [6] Microsoft , [7] Uber , [8] Airbnb and Twitter [9] all employ very large monorepos with varying strategies to scale build systems and version control software with a large volume of code and daily changes. Contents 1 Advantages 2 Limitations and disadvantages 3 Scalability challenges 3.1 Scaling version control software 3.2 Scaling build software 4 References Advantages There are a number of potential advantages t