WeiNote

yyrcd

web

TA

FEB

20

FEB

15

TBD To Be Determined

FEB

09

FEB

04

Birthday Paradox

n is the number of students in a class

import numpy as np
import matplotlib.pyplot as plt

def prob(n):
    p = 1
    for i in range(n):
        p *= (365-i)/365
    return p

def prob_list(x):
    result = []
    for n in x:
        result.append(prob(n))
    return np.array(result)

x = np.linspace(1, 100, num=100, dtype=int)

plt.plot(x, prob_list(x), label='P (no same birtyday)')
plt.plot(x,1 - prob_list(x), label='P (same birtyday)')
plt.title('Birthday Paradox')
plt.legend()
plt.show()

FEB

03

algorithm steps:

  1. check input
  2. check boundary (<= or >=)
  3. length (counts) and index a[length-1]

JAN

12

JAN

09

一个有意思的网站 Neal.fun The Size of Space

2019

DEC

20

DEC

20

DEC

20

NOV

29

NOV

28

NOV

28

>db.stats()
{
    "db" : "test",
    "collections" : 5,
    "views" : 0,
    "objects" : 53829,
    "avgObjSize" : 43.555,
    "dataSize" : 2344556121,
    "storageSize" :3124416336,
    "numExtents" : 0,
    "indexes" : 7,
    "indexSize" : 8096876,
    "ok" : 1
}
  • dataSize The total size in bytes of the uncompressed data held in this database.
  • storageSize The total amount of disk space allocated to all collections in the database.

Mongo IS USING RAM! wiredTiger

NOV

26

richard@pc~> df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              40G     0   40G   0% /dev
run              40G  1.9M   40G   1% /run
/dev/nvme0n1p4  1.4T  961G  447G  69% /
tmpfs            40G     0   40G   0% /dev/shm
tmpfs            40G     0   40G   0% /sys/fs/cgroup
tmpfs            40G  5.8M   40G   1% /tmp
/dev/nvme0n1p4  1.4T  961G  447G  69% /mnt/nvme
/dev/nvme0n1p4  1.4T  961G  447G  69% /home
/dev/nvme0n1p4  1.4T  961G  447G  69% /root
/dev/nvme0n1p4  1.4T  961G  447G  69% /var/lib/docker
/dev/sdb2       3.4T  934G  2.3T  29% /mnt/hdd
tmpfs           7.9G   12K  7.9G   1% /run/user/1001 

NOV

18

Slater not Slator

NOV

15

NOV

08

Mongo commands runtime larger than 200

{'wb97mv.pre1.runtime': {$gte: 200}}

total_energy is null

{'wb97mv.wb97md3bj.total_energy': null}

NOV

04

he = psi4.geometry("""
H
""")
psi4.set_options({'guess': 'core',
                  'basis': 'cc-pvdz',
                  'scf_type': 'pk',
                  'e_convergence': 1e-8,
                  'reference': 'uhf'})
psi4.energy('SCF')

NOV

03

Abbreviation

  • a.k.a. - also known as
  • BLAS - Basic Linear Algebra Subprograms

NOV

03

GiB vs GB

NOV

02

Shift + Opt + M - copy current tab as markdown url

OCT

16

High Performance Computing (HPC) and parallel programming

  1. OpenMp
  2. MPI

OCT

07

NAMES

  1. Federico (M)
  2. Y(sh)amila (F)
  3. Nilu (F)
  4. Pierre Louis (M) (French)

OCT

04

Show two image one line at weinote (Not usable on mobile)

<p class="img" style="display: inline-flex;">
<img width=49% src="imglink">
<img width=49% src="imglink">
</p>
<p class="img" style="display: inline-flex;">
<img width=49%  height=initial src="https://yyrcd-1256568788.cos.na-siliconvalley.myqcloud.com/yyrcd/2019-05-02-IMG_1303_HDR.jpg">
<img width=49%  height=initial src="https://yyrcd-1256568788.cos.na-siliconvalley.myqcloud.com/yyrcd/2019-05-02-IMG_1479_HDR.jpg">
</p>

OCT

03

SEP

29

Table template

|      |      |      |
| :--- | :--: | ---: |
|      |      |      |
|      |      |      |

SEP

28

Shortcuts

Youdao-Alfred

Cmd + Enter Pronounce

Ticktick

Shift + Cmd + A Show quick add Bar Shift + Cmd + O Show Mini Main Window Cmd + 0 Clear Date Cmd +1 Set today

Option + cmd + A Open All Option + cmd + T Open Today

SEP

25

bullshit转移到了hey yyrcd

SEP

23

EMAIL

  1. Thanks for your prompt reply!

SEP

15

Gas for one round trip to ST Augustine is about 16$, about 6.75 gallon (2.37$/g) MPG (Mile per Gallon) is around 25

SEP

09

VSCode Shortcuts

Code > Preferences > Keyboard Shortcuts > keybindings.json (see image above)

[
    {
        "key": "ctrl+shift+tab",
        "command": "workbench.action.previousEditor"
    },
    {
        "key": "ctrl+tab",
        "command": "workbench.action.nextEditor"
    },
]

SEP

02

AUG

31

鸡胸肉怎么做好吃?

(Due to the connectivity issue of AWS us-east-1 (mlab status), wiki is currently not avaliable. This is a temporary place for wiki.

AUG

16

Car

  • Oil change today (every 3000miles)
  • Air engine filter changed today. (every 15000miles)

AUG

13

AUG

12

AUG

12

macOS 应用开发 Swift 入门教程 - 菜鸟

感觉还是html最简单啊。。

AUG

10

大乱斗

皮卡丘

ZeRo

零基础攻略 电玩部落

  • (上B)的作用:当角色处于浮空状态时,各种招式的形态都会发生变化,其中大部分上必杀技将能提供一段向上的位移。
  • 闪避通过肩键+左/右完成,能够在水平方向上进行位移并且躲避敌人的伤害。
  • 下+A:
  • 奔跑时按A
  • 连按A

JUL

14

Nullboard Notes

JUL

13

Alfred Youdao cmd + enter 发音

JUN

23

nmap secure jupyter

JUN

18

Markdown 上下标

Emin<sup>Maj7</sup> 
H<sub>2</sub>O  CO<sub>2</sub>

EminMaj7 H2O CO2

JUN

16

2018

DEC

07

如何练习发声

面部

  • 笑肌
  • 嘶 练习
  • 张大嘴巴,做出咬苹果的姿式
  • 努嘴
  • 用舌头顶左边腮帮子

腹部

  • 站直,挺胸,深呼吸
  • 腹部使劲

伪声