Use the smile to change the world. Don't let the world change your smile. 用你的笑容去改变这个世界,别让这个世界改变了你的笑容。 Always keep a smiling face toward the world, may ...
分类:
其他好文 时间:
2018-02-15 22:50:48
阅读次数:
312
``` include include include using namespace std; const int INF=0x3f3f3f3f; const int maxn=10005; int perm[maxn]; bool used[maxn]; int n; void permutat ...
分类:
其他好文 时间:
2018-02-12 15:13:15
阅读次数:
151
Just do what works for you, because there will always be someone who think differently. 就做你自己所能做的,因为天外有天,人外有人,总会有人想的不同。 Just now, I saw a quote from J ...
分类:
其他好文 时间:
2018-02-10 11:09:26
阅读次数:
145
参考ug474.pdf: 7系列中,一个CLB包含两个slice: 每个CLB的资源: 每个Slice对应4个LUT,而每个LUT可配32bit的移位寄存器: 对应指令: always @(posedge clk) if(clk) srl <= {srl[31:0],din}; assign dou ...
分类:
其他好文 时间:
2018-02-08 12:12:57
阅读次数:
122
在Linux内核中(linux-4.14.12/mm/slab.c#3389), 乍一看下边的代码,貌似L3389有bug,于是我就绕偶兴趣地阅读了一下local_irq_save/local_irq_restore的源代码。 在L3380和L3389中, 如果local_irq_save()是一个 ...
分类:
系统相关 时间:
2018-02-06 14:16:09
阅读次数:
278
在一开始学到阻塞和非阻塞的时候,所被告知的两者的区别就在于阻塞是串行的,非阻塞是并行的。但是虽然知道这个不同点,有些时候还是很难真正区分用两者电路的区别,在这就通过几个例子来解释一下。 以一个简单的串行流水线寄存器为例:d-q1-q2-q3. 1,采用阻塞赋值 代码:always @ (posedg ...
分类:
其他好文 时间:
2018-02-06 13:03:43
阅读次数:
148
进入bin目录启动elasticsearch: 由于elasticsearch权限控制严格,不能用root用户启动。 那就把elasticsearch这个文件夹授权个一个用户吧。 1、进入安装目录: 2、授权 elasticsearch-6.1.0给我笔记本登陆用户luna 3 、启动 启动成功! ...
分类:
其他好文 时间:
2018-02-04 19:30:43
阅读次数:
331
Grain Lifecycle Grains are logical entities that always exist, virtually, and have stable logical identities (keys). Application code never creates or ...
分类:
其他好文 时间:
2018-02-04 16:41:32
阅读次数:
152
According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. At each iteration, ins ...
分类:
其他好文 时间:
2018-02-03 19:57:29
阅读次数:
135