12 2021 档案
摘要:A conditioner is a liquid that you put onto your hair after washing it to make it softer, or a liquid that you wash clothes in to make them softer. AC
阅读全文
posted @ 2021-12-31 23:12
华容道专家
摘要:n. 1) 空气/大气/空中; 2) 外观,印象,气氛; 3) 飞机相关v. a) 通风; b) 广播; c) 发表意见 1. airbrush: a device for spraying [喷] paint [油漆,颜料] by means of compressed [压缩的] air 2.
阅读全文
posted @ 2021-12-31 22:11
华容道专家
摘要:如题,x是32位unsigned integer. 有Quake公式,(n+1)**2 - n**2 = 2n + 1, 即1+3=4, 4+5=9, 9+7=16 ... [说错了:Babbage difference and Quake's Fast Inverse Square Root -
阅读全文
posted @ 2021-12-31 17:18
华容道专家
摘要:def tab2space(s, ts=4): out = ''; i = 0 for c in s: if c == '\t': j = ((i + ts) // ts) * ts out += (j - i) * ' ' i = j else: out += c; i += 1 return o
阅读全文
posted @ 2021-12-31 11:26
华容道专家
摘要:CHAPTER 17 ENGLAND UNDER EDWARD THE SECOND King Edward the Second, the first Prince of Wales, was twenty-three years old when his father died. There w
阅读全文
posted @ 2021-12-31 08:48
华容道专家
摘要:Bruce, after losing a battle and undergoing many dangers and much misery, fled to Ireland, where he lay concealed through the winter. That winter, Edw
阅读全文
posted @ 2021-12-30 23:36
华容道专家
摘要:Who betrayed William Wallace in the end, is not quite certain. That he was betrayed - probably by an attendant [侍从] - is too true. He was taken to the
阅读全文
posted @ 2021-12-30 23:29
华容道专家
摘要:Human immunodeficiency [免疫不足] virus infection and acquired immunodeficiency syndrome [症状] (HIV/AIDS) is a spectrum [系列] of conditions caused by infect
阅读全文
posted @ 2021-12-30 23:15
华容道专家
摘要:King Edward was abroad at this time, and during the successes on the Scottish side which followed, and which enabled bold Wallace to win the whole cou
阅读全文
posted @ 2021-12-30 22:36
华容道专家
摘要:Math for Programmers, 3D graphics, machine learning, and simulations with Python, Version 10, Copyright 2020 Manning Publications My (fictional) frien
阅读全文
posted @ 2021-12-30 21:55
华容道专家
摘要:a是个词根, in the state or process of. 有人问老板能不能去参加学术会议,老板答"go ahead",他的意思可能是"去个头。" go ahead1. used to tell sb they can do sth2. do sth that was planned, e
阅读全文
posted @ 2021-12-30 21:35
华容道专家
摘要:Agriculture is the science and art of cultivating [耕作] plants and livestock [牲畜]. Agriculture was the key development in the rise of sedentary [tendin
阅读全文
posted @ 2021-12-30 21:13
华容道专家
摘要:GitHub - lsils/benchmarks: EPFL logic synthesis benchmarks 有许多Verilog的.v文件可以下载。mem_ctrl.v 5万多行 2MB,变量名全是n+数字,几万行assign啊! Verilog里转义标识符(escaped identif
阅读全文
posted @ 2021-12-30 19:01
华容道专家
摘要:2011年的书,更像是论文集,不同章的作者不同,好多亚洲名字。1 IntroductionSunil P. Khatri and Kanupriya Gulati1.1 Logic Decomposition1.2 Boolean Satisfiability1.3 Boolean Matching
阅读全文
posted @ 2021-12-30 18:29
华容道专家
摘要:作者: Rajeev Murgai, Robert K. Brayton, Alberto Sangiovanni-Vincentelli. Recently, user-programmable gate arrays, called field-programmable gate arrays
阅读全文
posted @ 2021-12-30 17:10
华容道专家
摘要:到 https://www.bookzz.ren/ 下了些书,按size从大到小排序,翻完即删,反正也看不懂啊。翻指的是查找字符串simulat,下错书了 :-) 这本书是Winner of The Frederic Emmons Terman Award in Electrical & Compu
阅读全文
posted @ 2021-12-30 16:16
华容道专家
摘要:Espresso功能强大。处理16 in 40 out时不仅速度很快,而且只用了494x359的矩阵。集合则多到了用set family的程度,所占空间我没数,想必不会太多,因为494x359它就用稀疏矩阵来存了,row和column都是排序的双链表。Espresso是1960年代写的,到1988年
阅读全文
posted @ 2021-12-30 15:20
华容道专家
摘要:gcc -w -c espresso.h 2021/12/29 23:07 18,915 espresso.h2021/12/29 23:12 1,561,284 espresso.h.gch To create a precompiled header file, simply compile i
阅读全文
posted @ 2021-12-29 23:18
华容道专家
摘要:Scotland had a strong will of its own yet, however. King Edward, determined that the Scottish King should not forget he was his vassal, summoned him r
阅读全文
posted @ 2021-12-29 08:57
华容道专家
摘要:有人在Verilog里用门写个复杂电路吗?Mostly RTL吧?用C/C++...写个simulator,当然不简单,可是像SystemC那样搞上一堆宏啥的,感觉和nginx这样的异步I/O比较类似。网络仿真好像是个学科。 在Verilog里写个 + , simulator还是用高级语言来做 +
阅读全文
posted @ 2021-12-29 00:36
华容道专家
摘要:Input:.i 4.o 10000 10001 00010 00011 00100 10101 10110 00111 11000 11001 01010 01011 11100 11101 01110 01111 1 Output:1-1101-1--00 高档、专业: .i 16.o 4000
阅读全文
posted @ 2021-12-28 23:25
华容道专家
摘要:King Edward being much renowned [获得声誉] for his sagacity [wisdom] and justice, it seems to have been agreed to refer [交给...处理] the dispute to him. He a
阅读全文
posted @ 2021-12-28 22:25
华容道专家
摘要:请看代码: from html.parser import HTMLParser # pip install html-parser from htmldom import htmldom # pip install htmldom import urllib.request import time
阅读全文
posted @ 2021-12-28 17:43
华容道专家
摘要:0. Java面试高端局都要问虚拟机的, Java虚拟机,不是KVM和Xen. 1. 我一个外行老头子,都会那么一丢丢: module m(input a, b, c); reg y; always @(a) begin $display("@(a)"); y=a; end always @(a,b
阅读全文
posted @ 2021-12-28 12:49
华容道专家
摘要:好书多, 好多书, 书好多 - 博客园 (cnblogs.com) An FPGA is a gate array where the logic network can be programmed into the device after its manufacture. An FPGA con
阅读全文
posted @ 2021-12-28 09:17
华容道专家
摘要:Structured Exception Handling (C/C++) | Microsoft Docs 结构化异常处理 (SEH) 是 Microsoft 对 C 的扩展……尽管 Windows 和 Microsoft c + + 支持 SEH,但建议使用 ISO 标准 C++ 异常处理。 t
阅读全文
posted @ 2021-12-27 22:54
华容道专家
摘要:agenda: 'things to be done'; agent: 'to drive, lead, act, move, do' An agenda is a list of meeting activities in the order in which they are to be tak
阅读全文
posted @ 2021-12-27 22:33
华容道专家
摘要:Minimizing Boolean functions by hand using the classical Karnaugh maps is a laborious, tedious and error prone process. It isn't suited for more than
阅读全文
posted @ 2021-12-27 21:29
华容道专家
摘要:下文的大字.html版 3KB 我们有4个逻辑变量a,b,c,d, 要用它们造出一个输出y来,即y=f(a,b,c,d). 先看简单的例子: f(0000)=1, f(0001)=1, f(其它)=0. 当abcd=0000时,~a & ~b & ~c & ~d = 1. 当abcd=0001时,~
阅读全文
posted @ 2021-12-27 21:02
华容道专家
摘要:D:\>t.py 4 variables A B C D 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1
阅读全文
posted @ 2021-12-27 17:42
华容道专家
摘要:D:\Python39\Lib\site-packages>md zzD:\>python>>>import zz# 目录zz可以当module import,__init__.py不是必需的。 D:\Python39\Lib\site-packages\zz>type m.pydef p(): p
阅读全文
posted @ 2021-12-27 16:21
华容道专家
摘要:Out of bad things, good things sometimes arise. Out of this hanging of the innocent merchant, and the bloodshed and strife [冲突] it caused, there came
阅读全文
posted @ 2021-12-27 08:24
华容道专家
摘要:vvp的代码里出现了nb, GNU Chess里好多nb. 想起个笑话:老外说:你们中国人太不谦虚了!满大街的中国很行,中国工商很行,中国农业很行。切,中国人民也很行,那俩字念银行。:-)
阅读全文
posted @ 2021-12-26 23:30
华容道专家
摘要:大量C++书籍下载: c++ 20: free download. Ebooks library. On-line books store on Bookzz 大量机器学习书籍下载: machine learning: free download. Ebooks library. On-line b
阅读全文
posted @ 2021-12-26 23:23
华容道专家
摘要:Wales was now subdued. The Queen giving birth to a young prince in the Castle of Carnarvon, the King showed him to the Welsh people as their countryma
阅读全文
posted @ 2021-12-26 21:48
华容道专家
摘要:main h1=00000000 h2=00000000 main h1=009B0048 h2=00000000 main h1=009B0048 h2=009C0078 main h1=009B0048 h2=009C0078 coroutine: 0 @ 009B005C coroutine:
阅读全文
posted @ 2021-12-26 19:23
华容道专家
摘要:真正干事的是__builtin_coro_done, __builtin_coro_resume和__builtin_coro_destroy, coroutine_handle只是在void*外面包了一层。它没有析构函数,得去调destroy(). 它重载了(), h()等于h.resume()等
阅读全文
posted @ 2021-12-26 15:50
华容道专家
摘要:affix: 词缀; prefix: 前缀; suffix: 后缀 cholesterol: 胆固醇 chole 'choler' + stereos 'solid' + -ol [chemical compound]choler: great anger. 胆汁质的人常有精力旺盛、不易疲倦,但易冲
阅读全文
posted @ 2021-12-26 11:35
华容道专家
摘要:affluent: flow in large quantities; fluent: flow的现在分词(拉丁文); effluent: liquid waste, especially chemicals or sewage; flow out. 同近反义词: abundant, ample,
阅读全文
posted @ 2021-12-26 11:06
华容道专家
摘要:But the Welsh, although they were naturally a gentle, quiet, pleasant people, who liked to receive [接待] strangers in their cottages among the mountain
阅读全文
posted @ 2021-12-26 10:39
华容道专家
摘要:看雪-安全培训 ctf-wiki/README-zh_CN.md at master · ctf-wiki/ctf-wiki · GitHub CTF(Capture The Flag,夺旗赛)起源于 1996 年 DEFCON 全球黑客大会,是网络安全爱好者之间的竞技游戏。 作为一个自由的站点,围
阅读全文
posted @ 2021-12-25 23:27
华容道专家
摘要:vvp的代码很长,我们可以先看重点: lexor.lex, parser.y, compile.cc, delay.cc, event.cc, schedule.cc和main.cc。处理位向量,把它们拼来接去,每位有01xz四种状态等等比较无聊。有点像时序电路和组合电路: 组合电路当然也复杂,但有
阅读全文
posted @ 2021-12-25 22:49
华容道专家
摘要:Cadence Xcelium仿真环境搭建及常用Option总结_元直的博客 SystemC中文教程一@博客园 SystemC: an Introduction for beginners (electrosofts.com) SystemC恐怕前景堪忧。1. 现在就有systemc.org和sys
阅读全文
posted @ 2021-12-25 19:16
华容道专家
摘要:ffmpeg的安装目录下有个ffmpeg-all.html,巨长无比,下面是它的摘录。 ffmpeg [global_options] {[input_file_options] -i input_url} ... {[output_file_options] output_url} ... ffm
阅读全文
posted @ 2021-12-25 17:41
华容道专家
摘要:在 好懂的Quine-McCluskey算法 里我们知道所有的逻辑表达式,或者说任意的真值表,都可以用not, and和or来表示。 在电路里,除了x和y这样的变量外,我们还有常量1和0可用,即接正极VCC或接地GND. not(x) = nand(x, 1) and(x,y) = not(nand
阅读全文
posted @ 2021-12-25 13:21
华容道专家
摘要:To dismiss this sad subject of the Jews for the present, I am sorry to add that in this reign they were most unmercifully pillaged [掠夺]. They were han
阅读全文
posted @ 2021-12-25 11:24
华容道专家
摘要:试用Verilog中的=, <=和assign - 博客园 Synchronous sequential circuits do not process their Verilog statements in sequence within the always block. 我理解这句话的前提是用
阅读全文
posted @ 2021-12-25 10:40
华容道专家
摘要:1 module cpu(input reset, clk, input[0:55] rom); 2 reg[7:0] i; // instruction 3 reg[4:0] rf[2], pc; // register file and program counter 4 always @(re
阅读全文
posted @ 2021-12-25 00:59
华容道专家
摘要:https://dspace.mit.edu/handle/1721.1/16674 The core is approximately 27K gate count, runs at a maximum of 250 MHz, and is synthesized to a current sta
阅读全文
posted @ 2021-12-24 21:12
华容道专家
摘要:Karnaugh Map Solver (charlie-coleman.com) 最多10个变量,有js源码. 在右下角表里点,f会变。 class Petrick { constructor(minterms, maxterms, dontCares, dimension, variableNa
阅读全文
posted @ 2021-12-24 20:21
华容道专家
摘要:我这个第一个对,第二个不对: module flipflop(output q, q_, input set, enable, reset); wire er, es; and g1(er, enable, reset), g2(es, enable, set); nor g3(q, er, q_)
阅读全文
posted @ 2021-12-24 18:20
华容道专家
摘要:改编自Deepak Kumar Tala@www.asic-world.com和Shubham Singh的Verilog Fundamentals@csg.csail.mit.edu/6.375等。参考资料下载 3MB 面包板(Bread Board)和印刷电路板(Printed Circuit
阅读全文
posted @ 2021-12-24 16:21
华容道专家
摘要:用错assign的一个例子@博客园 .v: module my_circuit(output reg[7:0] c, input wire[7:0] a, b); // Remove/change 'reg' and 'wire' to see error messages like who can
阅读全文
posted @ 2021-12-24 13:33
华容道专家
摘要:近义词: ally, amalgamate, annex, band together, combine, confederate, connect, incorporate, link http://www.freethesaurus.com/affiliate The High School A
阅读全文
posted @ 2021-12-24 09:12
华容道专家
摘要:As the King his father had sent entreaties [请求] to him to return home, he now began the journey. He had got as far as Italy, when he met messengers wh
阅读全文
posted @ 2021-12-24 08:51
华容道专家
摘要:看fliplot的源码时看到若干新奇(对我而言)的东西,如: import { config, simDB} from "../main.js"; const WAVEARRAY = 0; export class Wave { constructor(waveTable) { setTimeout
阅读全文
posted @ 2021-12-23 23:00
华容道专家
摘要:窃以为: 多位的值的波形在改变时交叉下,交叉线只有装饰效果。变下0000和1010的颜色不就得了吗?! 搜了半天不知道正式的叫法。fliplot里分别叫bit和bus. 打log和改线的宽度证实了:
阅读全文
posted @ 2021-12-23 22:41
华容道专家
摘要:我刚学Verilog,说的自然是砖。说得可能不中听,会引来板砖,所以很机智地没有开放评论。请看代码和注释: // User Defined Primitives primitive xor_cell_level(output c, input a, input b); table // truth
阅读全文
posted @ 2021-12-23 20:31
华容道专家
摘要:The Windows Projected File System (ProjFS) allows a user-mode application called a "provider" to project hierarchical data from a backing data store i
阅读全文
posted @ 2021-12-23 17:20
华容道专家
摘要:affection的意思单一: feeling of fondness, love or caring. 如果考试考了"疾病, 病情"的词义: 1. 牛津标的是(dated 旧); 2. 朗文和柯林斯根本没这个词义。 affect的词源是influence, cause sb/sth to chan
阅读全文
posted @ 2021-12-23 13:36
华容道专家
摘要:A romantic affair, also called an affair of the heart, may refer to sexual liaisons [交流] among unwed or wedded [未婚或已婚] parties, or to various forms of
阅读全文
posted @ 2021-12-23 13:15
华容道专家
摘要:A Brief Introduction to Verilog by Sat Garcia Verilog Tutorial@riptutorial.com Ways To Use Verilog: Structural/Lower Level has all the details in it (
阅读全文
posted @ 2021-12-23 11:00
华容道专家
摘要:CHAPTER 1 ENGLAND UNDER EDWARD THE FIRST, CALLED LONGSHANKS It was now the year of our Lord one thousand two hundred and seventy-two; and Prince Edwar
阅读全文
posted @ 2021-12-23 08:58
华容道专家
摘要:So, on a day that was agreed upon, he said to his attendants after dinner (being then at Hereford), 'I should like to ride on horseback, this fine aft
阅读全文
posted @ 2021-12-23 08:43
华容道专家
摘要:假设我们要做个电路,输入为0到3的数,输出为4盏灯ABCD。输入为0时只有A灯亮,为3时只有D灯亮。它是个2-4 Decoder,输入XY两根线,输出ABCD4根线。输入不叫High和Low的原因后面会提到。 下面是用Verilog写的Encoder,懒得写Decoder了,大同小异: module
阅读全文
posted @ 2021-12-22 10:38
华容道专家
摘要:MemoryCache 如何清除全部缓存? c# - How to clear MemoryCache in ASP.NET Core? - Stack Overflow Clear Caching in Asp.net MVC: remove memory cache from server (w
阅读全文
posted @ 2021-12-21 23:52
华容道专家
摘要:把GNU Chess 6.2.9像SQLite那样合并成了3个文件: 284 chess-boring.cpp 8387 chess.cpp 77 chess.h 8748 total 它是个支持UCI的引擎,在stdin读入命令,计算后输出到stdout. 我把限制时间的代码删掉了,改成了只限制深
阅读全文
posted @ 2021-12-21 23:21
华容道专家
摘要:Taken from Chess Programming 已经有人用JavaScript做过了,8x8真好:-) Online Resources A step-by-step guide to building a simple chess AI by Lauri Hartikka, freeCo
阅读全文
posted @ 2021-12-21 19:54
华容道专家
摘要:美语里也可拼成esthetic. 词源: experience with the senses. aesthetics: 美学, 美语可拼成esthetics. Aesthetics is a branch of philosophy that deals with the nature of be
阅读全文
posted @ 2021-12-21 18:44
华容道专家
摘要:有时我们想把自己的"网站"copy给别人,它有一大堆小文件,很不清爽。给人一个httpd.py和data.zip不好吗?下面的代码能做到: import os import sys from zipfile import ZipFile zf = ZipFile('fliplot.zip', 'r'
阅读全文
posted @ 2021-12-21 17:03
华容道专家
摘要:用ctypes模块是可以的。但是也可以去system("getopenfilename.exe"): tdm-gcc-10.3.0.exe 61,647KB. 自带了Windows的头文件和库。 #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN #de
阅读全文
posted @ 2021-12-21 16:35
华容道专家
摘要:全部文件在这里。无需上网即可使用,自带了jquery.min.js等。页面最下面有作者信息, 不是我做的, 我只是下载删减压缩了一番。不好意思少了行 port = int(sys.argv[1]) What is a Value Change Dump (VCD) file? 博客园 python可
阅读全文
posted @ 2021-12-21 08:57
华容道专家
摘要:# sys.path -- module search path. sys.path.append(os.path.join(here, '..')) from fliplot.core import parseFileapp = Flask('fliplot') 今天改一个程序,在原先的文件夹里好
阅读全文
posted @ 2021-12-20 23:53
华容道专家
摘要:今天jquery-ui和jquery配合出错:Uncaught TypeError: Cannot read property 'step' of undefined 这里说是因为用了jquery的slim版,没那个函数了。可我用的不是slim版。反正换版本呗。 这里是新浪的CDN. 折腾了一会,还
阅读全文
posted @ 2021-12-20 21:55
华容道专家
摘要:首先要知道less: @width: 10px; @height: @width + 10px; #header { width: @width; height: @height; } 转换为CSS: #header { width: 10px; height: 20px; } 功能倒是强了,不过我
阅读全文
posted @ 2021-12-20 20:23
华容道专家
摘要:JavaScript和C都是编程语言。运行库和语言是两码事,如C的fopen和fprintf; JS在浏览器里运行的时候,可以调用alert()和console.log(). C是编译型语言,编译成.exe后单独运行;JS则需要个解释器/虚拟机(Virtual Machine)/引擎。 微软有自己的
阅读全文
posted @ 2021-12-20 19:46
华容道专家
摘要:[stackoverflow] Q. I have seen an HTML code like this for the ID attribute: id="t1:c3" Can someone explain this to me? What is the purpose of the colo
阅读全文
posted @ 2021-12-20 16:35
华容道专家
摘要:https://files.cnblogs.com/files/blogs/714801/iverilog-12.0-windows.7z 5,536KB 不带GTKWave. 玩玩在console看01就行。还有$dumpvars和$monitor呢。 Icarus Verilog is avai
阅读全文
posted @ 2021-12-20 14:05
华容道专家
摘要:6.111 Fall 2017 (mit.edu) MIT的网站,有不少资料可供下载。
阅读全文
posted @ 2021-12-20 13:32
华容道专家
摘要:补充: 今天干别的事情时发现D:\Python39\Lib\site-packages\Verilog_VCD\下没有__init__.py,我当初from Verilog_VCD import *咋work的?目前合理的解释是:当初把Verilog_VCD.py复制到当前目录下了。不是因为发现找不
阅读全文
posted @ 2021-12-20 11:13
华容道专家
摘要:It would require a great deal of writing on my part, and a great deal of reading on yours, to follow the King through his disputes with the Barons, an
阅读全文
posted @ 2021-12-20 08:22
华容道专家
摘要:Verilog is a Hardware Description Language (HDL) used to model digital logic. The values of signals can be written out to a Value Change Dump (VCD) fi
阅读全文
posted @ 2021-12-20 08:10
华容道专家
摘要:Icarus Verilog的使用 博客园 test.vcd是文本文件!看文本比看波形习惯多了。 #16 b110 ! b110 % b1000000 # b1000000 $ dsn也是文本文件!the compiler can generate an intermediate form call
阅读全文
posted @ 2021-12-20 00:24
华容道专家
摘要:搜(通过网页链接打开应用程序),有许多信息。HTTP是一种协议,ftp等也还没死。Windows, Android和mac OS下,都可以注册自己的协议,比如wdxy://... 我的协议:-)) Windows下就是改注册表喽,别的原理也差不太多。 有意思的是当没安装客户端时,网页里可能有个定时器
阅读全文
posted @ 2021-12-19 23:43
华容道专家
摘要:It was easy to make oaths, and easy to break them; and the King did both, as his father had done before him. He took to his old courses again when he
阅读全文
posted @ 2021-12-19 22:46
华容道专家
摘要:Synthesis: Verilog Gates - MIT OpenCourseWare Icarus Verilog的使用 博客园 Icarus Verilog for Windows (bleyer.org) Verilog 环境搭建 | 菜鸟教程 SPICE简史 - 回声小站 - 博客园 O
阅读全文
posted @ 2021-12-19 19:01
华容道专家
摘要:As of 2 September 2017 GNU Chess 5.60 is rated at 2813 Elo points (when using one CPU) on CCRL's 40-moves-in-40-minutes list. For comparison, the stro
阅读全文
posted @ 2021-12-19 10:23
华容道专家
摘要:https://github.com/pytorch/pytorch PyTorch is a Python package that provides two high-level features: Tensor [张量] computation (like NumPy) with strong
阅读全文
posted @ 2021-12-19 08:00
华容道专家
摘要:AI vs. Machine Learning vs. Deep Learning vs. Neural Networks: What’s the Difference? | IBM 摘要: Deep Learning就像最新式的手机/电脑CPU,游戏等等,好的很。可CPU早就有了,超级玛丽、魂斗罗
阅读全文
posted @ 2021-12-18 21:56
华容道专家
摘要:Automate Debugging with GDB Python API | Interrupt (memfault.com) 事前: 事后: D:\gcc\gdb32\bin>gdb32 GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software F
阅读全文
posted @ 2021-12-18 21:42
华容道专家
摘要:What is Deep Learning? | IBM 摘要: Deep learning is a subset of machine learning, which is essentially a neural network with three or more layers. Deep
阅读全文
posted @ 2021-12-18 21:23
华容道专家
摘要:线性回归和非线性回归是统计学里的概念。机器学习(百度百科) 非线性回归(百科) | Machine Learning [Python] – Non-linear Regression (geekering.com) | NonlinearRegression.dvi (toronto.edu) y(
阅读全文
posted @ 2021-12-18 20:16
华容道专家
摘要:test_and_set是这个意思: /* UINT32& u = hb[h >> 5]; const UINT32 m = 1 << (h & 0x1f); const UINT32 seen = u & m; u |= m; // test_and_set */ #include <iostre
阅读全文
posted @ 2021-12-18 19:48
华容道专家
摘要:比如我在博客园里写帖子,用IrfanView打开了一个.jpg文件,在里面复制,在博客园的TinyMCE里粘贴,发帖后发现图片变成了.png,既不是.jpg,也不是.bmp. 其原理是什么呢? HTML5里有ClipboardEvent.clipboardData,通过它可以。Flash好像也可以,
阅读全文
posted @ 2021-12-18 19:28
华容道专家
摘要:超快只是和我自己用python写的比而已。再写搜索就剁手。g++ -O3 pushbox.cpp Sorry,起个耸人听闻的标题骗点击。 // @ = man; $ = box; * = goal; # = wall; floor is represented by ' ', '-' or '_'
阅读全文
posted @ 2021-12-18 17:07
华容道专家
摘要:''' N = 2097152 0.0455327033996582 0.9995155334472656 0.9995260238647461 0.9997577667236328 起因是做推箱子游戏,想把箱子们的坐标hash下。如6个箱子,每个的x和y 都是0~31(一个字节有10位就好了)。上
阅读全文
posted @ 2021-12-17 15:33
华容道专家
摘要:aerial, antenna An aerial work platform (AWP), also known as an aerial device, elevating work platform (EWP), bucket truck or mobile elevating work pl
阅读全文
posted @ 2021-12-17 10:31
华容道专家
摘要:The Black Band never blushed, or they might have blushed at this. They knocked the Smith about from one to another, and swore at him, and tied the Ear
阅读全文
posted @ 2021-12-17 09:09
华容道专家
摘要:一个超简单的Microsoft Edge Extension - Fun_with_Words - 博客园 (cnblogs.com) 能在每个页面里注入JS代码,那我们有啥不能干的?我们可以弹出个窗口,输入编辑JS代码,然后在网页内执行。Ladies and gentlemen, I give y
阅读全文
posted @ 2021-12-16 23:30
华容道专家
摘要:界面程序很短。引擎不是我写的,棋力不是很强——但我写不出来,正在学GNU chess的源码。 全部文件: https://files.cnblogs.com/files/blogs/714801/ccib.zip 引擎是可以换的,如 象棋旋风官方网站--中国象棋第一AI智能引擎 (ccyclone.
阅读全文
posted @ 2021-12-16 21:03
华容道专家
摘要:# -*- coding: utf-8 -*- # 94个区,每个区94个汉字/符号/python会throw exception的东东 # 内码 := <区码+0xa0> <位码+0xa0>, little endian. 0xa0+94=0xfe # 汉字从1601(啊)开始,它的内码是B0 A
阅读全文
posted @ 2021-12-16 10:40
华容道专家
摘要:脑袋发懵走了点弯路,记下来: import subprocessengine = subprocess.Popen([wd + 'ELEEYE.EXE',]) ... from subprocess import *engine = subprocess.Popen([wd + 'ELEEYE.EX
阅读全文
posted @ 2021-12-15 16:28
华容道专家
摘要:24行Verilog写了个电脑:-) 博客园 《从美国1890年人口普查到IBM公司的崛起——浅谈机械式计算机的历史贡献》《“分析计算机”的三种基本设备与通用计算机体系结构的源流》。 The Punched Card Tabulator 下面是穿越小说《临高启明》中的片段[在原文里查找 命题 ]:
阅读全文
posted @ 2021-12-15 13:52
华容道专家
摘要:The Protectorship was now divided. Peter de Roches, whom King John had made Bishop of Winchester, was entrusted with the care of the person of the you
阅读全文
posted @ 2021-12-15 09:29
华容道专家
摘要:用了HTML5里的canvas. 这个"游戏"的”玩法“是: 改迷宫折腾电脑 改程序折腾自己:-)。我自以为程序挺简明,注释挺多,比如: // 全局变量坑死人,这里曾经少个var // 虽然直接drawImage有时能出来,但这么做绝对必要。坑了我好长时间。 单.HTML文件146行,包括数张嵌入式
阅读全文
posted @ 2021-12-14 21:55
华容道专家
摘要:阿里程序员先向美国报告安全漏洞@博客园 不及时通报工信部@博客园 Log4j漏洞原理解析及复现@博客园 1. 窃以为这个漏洞算不上史诗级,黑客干不了啥 2. 如果认为是史诗级,也很好,安全意识强。那就同时向工信部和美国报告,最好先报告工信部,后者晚点 3. 悄悄地只向美国报告,倒也罢了,别发通告:“
阅读全文
posted @ 2021-12-14 10:52
华容道专家
摘要:#include <vector> #include <stdio.h> struct X : public std::vector<int> { void print() const { printf("%p ", this); } }; void fn1(X x) { x.print(); }
阅读全文
posted @ 2021-12-14 07:03
华容道专家
摘要:大量IT电子书下载: Bookzz - Bookzz.org Alternatives Site 这个比微软官网上的例子简单很多,适合入门。总共4个文件: https://files.cnblogs.com/files/blogs/714801/cet6wordpicker.zip 36KB 1.p
阅读全文
posted @ 2021-12-13 23:18
华容道专家
摘要:别琢磨画棋子了。我们是程序员,又不是美工。真想画不如学Photoshop. https://files.cnblogs.com/files/blogs/714801/chess-pic.zip 有些互联网公司真是小家子气啊。 象棋资源 - 象棋百科全书 (xqbase.com) 附带源程序的: El
阅读全文
posted @ 2021-12-13 14:25
华容道专家
摘要:https://pe-cn.github.io/ ”欧拉计划是一系列有挑战性的数学与计算机编程题;要解开它们,需要的不止是数学知识:尽管数学能够帮助你找到一些优雅而有效的方法,大多数题目仍需要借助计算机和编程技巧来完成解答。 创立欧拉计划的初衷,以及不断维持其运行的动力,在于为好奇的头脑提供一个平台
阅读全文
posted @ 2021-12-13 13:42
华容道专家
摘要:advocate 词源: summon[召唤], call. 有点像号召:吹号召集。 If you play devil's advocate in a discussion or debate, you pretends to disagree with someone in order to h
阅读全文
posted @ 2021-12-13 10:21
华容道专家
摘要:CHAPTER 15 ENGLAND UNDER HENRY THE THIRD, CALLED, OF WINCHESTER If any of the English Barons remembered the murdered Arthur's sister, Eleanor the fair
阅读全文
posted @ 2021-12-13 09:23
华容道专家
摘要:今天用git下载东西很慢,把URL的https改http,很快就下好了。 有些新闻类网站真是吃饱了撑的:我手工把https改http,它还非https不可。[修改:可能不是网站而是浏览器的原因,请看后面] https不给自己的服务器增加负担吗?又不是网银。要是有个专用的网银浏览器就好了。https.
阅读全文
posted @ 2021-12-12 08:55
华容道专家
摘要:# Numba translates Python functions to optimized machine code at runtime using the industry-standard LLVM compiler library. # Numba-compiled numerical
阅读全文
posted @ 2021-12-11 10:34
华容道专家
摘要:有时候加载X.dll失败,而它明明就在那里。原因可能是X.dll用了Y.dll,而Y.dll不在。 dumpbin/imports可看到某个.exe或.dll用了哪些.dll。dumpbin/?看帮助。 dumpbin.exe需要link.exe, link.exe需要mspdb60.dll。下面的
阅读全文
posted @ 2021-12-11 09:49
华容道专家
摘要:On Monday, the fifteenth of June, one thousand two hundred and fourteen, the King came from Windsor Castle, and the Barons came from the town of Stain
阅读全文
posted @ 2021-12-11 08:58
华容道专家
摘要:advent和adventure的词源分别是arrival和arrive。 embark on a hair-raising adventure. adventurer/adventuress: 冒险家. adventurous/adventurously: 爱冒险/惊险的地 An adventur
阅读全文
posted @ 2021-12-10 23:12
华容道专家
摘要:import bdb import linecache class Cdb(bdb.Bdb): def __init__(m, skip=None): print('''<html><style> *{font: 10pt "Source Code Pro", Hack, mono} b{color
阅读全文
posted @ 2021-12-10 20:31
华容道专家
摘要:# -*- coding: gbk -*- # 1. 到www.runoob.com/python/python或www.w3school.com.cn/python/index.asp学基本语法 # 2. 到这里(不定期更新)学中级语法,让程序更有python味。 # 3. 算法+数据结构=程序,
阅读全文
posted @ 2021-12-10 18:55
华容道专家
摘要:As there was nothing that King Philip desired more than to invade England, he collected a great army at Rouen, and a fleet of seventeen hundred ships
阅读全文
posted @ 2021-12-10 16:18
华容道专家
摘要:此贴长、有趣、信息量大。发报员按住键时收报员听到声音,放开键时声音消失。如果按键持续1ms代表0, 2ms代表1, ..., 65536毫秒代表65535,这个通信系统里的symbol就是16个位。它的问题:1. 发送65535这一个symbol耗时一分钟;2. 收报员哪能分清1ms和2ms? Mo
阅读全文
posted @ 2021-12-10 12:03
华容道专家
摘要:# C调用python. search(Calling Python Functions From C PyObject Py_XDECREF Py_XINCREF). # # SetWindowsHookEx,回调函数用Python写: https://www.cnblogs.com/funwit
阅读全文
posted @ 2021-12-10 09:55
华容道专家
摘要:# termcolor outputs stuff like '\033[0m'. It doesn't work in Windows 10's cmd. class Color: kernel32 = hStdOut = None def init(): import ctypes Color.
阅读全文
posted @ 2021-12-10 07:14
华容道专家
摘要:# search(Using Python to build a spy program Develop Paper) def whatis(x, verbose = 0): print(x, 'is a ', end=''); x = eval(x); print(type(x), end='')
阅读全文
posted @ 2021-12-09 22:33
华容道专家
摘要:补充: print(f"{x= }"); 我又土了。 比如我们想有这么一个函数,其用法是:pr(x),输出是x = 3。我们需要从x得到'x'这个字符串。 我写了个很土的: def whatis(x, verbose = 1): print(x, 'is a ', end=''); x = eval
阅读全文
posted @ 2021-12-09 20:55
华容道专家
摘要:advance, advantage, advertise advance和advantage的词源都是before. 如果别人都向前一步,而你原地不动,他们就到了你的前面,有了advantage. get the start of: gain an advantage over. 起跑线领先。 b
阅读全文
posted @ 2021-12-09 16:20
华容道专家
摘要:六级/考研单词: prestige, tentative, talent, medium, sponsor, brand, advertise, slot, notify, brochure, cater, podcast, irrespective, outdoor, digit, geograp
阅读全文
posted @ 2021-12-09 16:06
华容道专家
摘要:乘法原则:如果一件事分两个步骤,第1步n种方式,第2步m种,那么共有n*m种。例如第一步有好好工作挣钱、卖左肾、卖右肾3种方式,第二步有网上买和实体店买,共计6种。 如果一件事分两个步骤,第一步0种方式,第二步1种,那么有0*1=1种。哎,0 and 1也是0哎。还有true and false.
阅读全文
posted @ 2021-12-09 10:19
华容道专家
摘要:The news of this atrocious [awful] murder being spread in England, awakened a hatred of the King (already odious [obnoxious] for his many vices, and f
阅读全文
posted @ 2021-12-09 10:13
华容道专家
摘要:adopt 词源: choose. [afth.org] What's The Difference Between Foster Care And Adoption? Adoption is forever, foster children often reunite with their bir
阅读全文
posted @ 2021-12-08 23:39
华容道专家
摘要:Python有线程。import threading; class EventLoopThread(Thread): def run(self): ... import asyncore class EchoHandler(asyncore.dispatcher_with_send): def ha
阅读全文
posted @ 2021-12-08 16:54
华容道专家
摘要:module Python { mod = Module(stmt* body, type_ignore* type_ignores) | Interactive(stmt* body) | Expression(expr body) | FunctionType(expr* argtypes, e
阅读全文
posted @ 2021-12-08 16:28
华容道专家
摘要:开通JS权限后能干啥?请看侧边栏公告、页首和页脚的演示:算24、胡几张、计算器。可以做个漂亮的时钟。 如何开通JS权限?管理-设置-JS权限,申请。管理员很nice,很痛快地给开通了。博客侧边栏公告,页首HTML代码,页脚HTML代码自己填。 开通JS权限会增加博客园网站的负担?.html文件肯定会
阅读全文
posted @ 2021-12-08 15:59
华容道专家
摘要:adult是adolescere (grow up)的过去分词。 egg - embryo [胚胎] - foetus [就要出生的胎儿] - toddler [刚会走路] - adolescent (12~18) | teenager (13~19) - adult Biologically [生
阅读全文
posted @ 2021-12-07 22:00
华容道专家
摘要:'Arthur,' said the King, with his wicked eyes more on the stone floor than on his nephew, 'will you not trust to the gentleness, the friendship, and t
阅读全文
posted @ 2021-12-07 19:29
华容道专家
摘要:RTSP基于TCP传输请求和响应报文,RTP基于UDP传输流媒体数据,RTCP基于UDP传送传输质量信息(如丢包和延迟)。 比如喀什一个局域网内10个人同时点播广州的同一个源,喀什和广州之间就要传10x4Mbps的数据。1. 是为讨论下文编的; 2. 4Mbps算不上高清。 在局域网和城域网之间有个
阅读全文
posted @ 2021-12-07 09:46
华容道专家
摘要:struct 音符 { int nPai; // 拍子数。nPai * per_pai_millisec得到毫秒。 int volume; // 音量 int note; // 音符,比220 Hz复杂,多组正弦波};音符 music[]; music分成小节。像一个很长的函数,若干组语句用空行分隔
阅读全文
posted @ 2021-12-07 09:40
华容道专家
摘要:# 1-((2+3)*4) = -19ptns = ''' N?N?N?N N?N?(N?N) N?(N?N)?N N?(N?N?N) N?(N?(N?N)) N?((N?N)?N) (N?N?N)?N (N?(N?N))?N ((N?N)?N)?N'''.splitlines() def perm
阅读全文
posted @ 2021-12-06 19:55
华容道专家
摘要:我想知道有哪些牌型能和好几张牌,所以编了程序来算。做法是:123456789 + 类C(9, 4),检查是否能能和。下面的代码生成类C(9, 4): cnt = 0; combo = set() for a in range(1, 10): for b in range(1, 10): for c
阅读全文
posted @ 2021-12-06 16:45
华容道专家
摘要:用过n-gram但没用好,所以改行了。没事瞎琢磨的: n-门问题用来面试不坏。 什么叫句子的概率?设一个语言有10个句子,某个句子100%属于这个语言,P(该句子)=0.1而不是1,因为还有别的句子呢,句子们的概率和是1. 不过在比较句子的概率时,可以大家都放大一个倍数,免得一堆小数字乘到最后成了0
阅读全文
posted @ 2021-12-06 12:42
华容道专家
摘要:CHAPTER 14 ENGLAND UNDER KING JOHN, CALLED LACKLAND At two-and-thirty years of age, John became King of England. His pretty little nephew Arthur had t
阅读全文
posted @ 2021-12-06 10:02
华容道专家
摘要:一些草率不精确的观点: 并发: 一起发生,occurence: sth that happens。 并行: 同时处理. parallel lines: 平行线。thread.join()之前是啥?落霞与孤鹜齐飞,秋水共长天一色。小霞与小鹜并发下单,线程1与线程2并行处理。并发是要被处理的,并行是处理
阅读全文
posted @ 2021-12-06 09:57
华容道专家
摘要:在VC里我们: #include <windows.h> DWORD dwNumberOfBytesWritten; int main() { HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); WriteFile(hStdOut, "Hello Wo
阅读全文
posted @ 2021-12-05 21:10
华容道专家
摘要:从 模仿UP主,用Python实现一个弹幕控制的直播间! - 蛮三刀酱 - 博客园 (cnblogs.com) 知道了 PyAutoGUI: * Moving the mouse and clicking in the windows of other applications.* Sending
阅读全文
posted @ 2021-12-05 15:38
华容道专家
摘要:search(诊断试验中的贝叶斯定理:检验阳性就一定患病了吗?); search(Bayes' rules, Conditional probability, Chain rule) 10天的统计表: 天 1 2 3 4 5 6 7 8 9 10 乌云 c c c c c Cloud 下雨 r r
阅读全文
posted @ 2021-12-05 14:21
华容道专家
摘要:问题:三扇门,只有一扇门后面有奖品。你随便选择了一扇门。然后主持人打开了另一扇门,里面是空的。他问你"换不换?" 换还是不换的中奖率高?答案:换的中奖率是2/3,不换的中奖率是1/3。注意:主持人必定打开空门。他知道哪扇门有奖品。他不会打开你选择的门。 如果选择不换,即忽略主持人,中奖率是1/3。如
阅读全文
posted @ 2021-12-05 10:25
华容道专家
摘要:'Knave [man without honor]!' said King Richard. 'What have I done to thee [you] that thou [you] shouldest [should] take my life?' 'What hast thou [hav
阅读全文
posted @ 2021-12-05 07:57
华容道专家
摘要:我想用python做个tiny BASIC编译器。赋值和加减乘除,IF和FOR。 语法分析python有ply包,用ply.lex和ply.yacc做个计算器很简单,我已经做了。 做个解释器应该也不难。但解释器和编译器之间还差着代码生成呢。一来看书,二来用python的dis包看"汇编"形式的byt
阅读全文
posted @ 2021-12-04 23:59
华容道专家
摘要:admire 当别人admire你时,小心掉进泥潭(mire)。词源:to wonder. wonderful夸人,awful骂人,awesome夸人。admiral与admire词源不同,碰巧长得像。 近/反义词: adore, awe, esteem; abhor, detest 1. If y
阅读全文
posted @ 2021-12-04 23:23
华容道专家
摘要:But he was shipwrecked in the Adriatic Sea, and was fain [happy, willing] to pass through Germany, under an assumed name [pseudonym]. Now, there were
阅读全文
posted @ 2021-12-04 20:14
华容道专家
摘要:ffmpeg是个音视频转换软件。比如你有个good_movie.avi文件,你可以用ffmpeg.exe把里面的音轨抽出来保存为.mp3, .m4a等文件。你还可以把分辨率从1920x1080(1080p)变成720p、提高压缩比,最终减少文件的大小(以图像变模糊为代价)。ffmpeg调用一大堆库(
阅读全文
posted @ 2021-12-04 19:17
华容道专家
摘要:sqlite3.c, 237436行 = 全部源文件,找东西比多文件查找方便多了:-),字符串查找一点都不慢。 不要太害怕,SQLite说它的代码里有非常多是用来做数据完整性检查和测试的。但愿B树,虚数据库引擎之类的不是太长。 /***********************************
阅读全文
posted @ 2021-12-04 17:15
华容道专家
摘要:最邻近插值算法和双线性插值算法——图像缩放 ...如果原图为5*5,缩放后的图为3*3,那么缩放后的图的像素点(1,1)对应的就是原图中([5/3 * 1], [5/3 * 1]) = ([0.6], [0.6]) = (1,1) 像素点对应的像素值... 图像插值算法总结 ...自适应的方法可以根
阅读全文
posted @ 2021-12-04 16:56
华容道专家
摘要:能用鼠标拉着转。 https://files.cnblogs.com/files/blogs/714801/%E7%A9%BA%E9%97%B4%E5%87%A0%E4%BD%95.7z var points = { A: [0, 0, 0], C: [20, 0, 0], B: [20, 0, 1
阅读全文
posted @ 2021-12-04 16:42
华容道专家
摘要:大中小[1] → [2] 大中[1] 小[2] 大中[1] → [3] 大[1] 中[3] 小[2] → 中[3] [2] 中小[3] 大[1] → [2] [1] 大[2] 中小[3] → [1] 中[3] 小[1] 中[3] → 大[2] [3] 大中[2] 小[1] → 大中[2] [1] 大
阅读全文
posted @ 2021-12-04 16:19
华容道专家
摘要:QEMU is a generic and open source machine emulator and virtualizer. 一般来说,emulator可以在x86上纯软件跑arm,virtualizer在同种architecture上跑,像add eax, ebx这样的直接在硬件上跑。
阅读全文
posted @ 2021-12-04 11:43
华容道专家
摘要:import ply.lex as lex # pip install ply import ply.yacc as yacc from functools import reduce tokens = ('WORD',); t_WORD = r'\w+'; literals = (':', ';'
阅读全文
posted @ 2021-12-04 11:09
华容道专家
摘要:got NUM(1) Is NUM(1) an expr? Is NUM(1) a term? Is NUM(1) a number? is_term got -(-) -(-) was back is_expr got -(-) is_expr got NUM(2) Is NUM(2) an ex
阅读全文
posted @ 2021-12-03 20:36
华容道专家
摘要:「回顾旧贴,以前不知道sympy,如今sympy用的还算可以,但没啥人对这个感兴趣。」 请先看下 https://www.cnblogs.com/funwithwords/p/15635065.html 可以边干边学:1. PLY (Python Lex-Yacc)的文档和源码。PLY is a p
阅读全文
posted @ 2021-12-03 10:45
华容道专家
摘要:Factorization or factoring consists of writing a number or another mathematical object as a product of several factors, usually smaller or simpler obj
阅读全文
posted @ 2021-12-02 23:47
华容道专家
摘要:(x - 1)(x2 + x + 1) = x3 - 1 1 import ply.lex as lex # pip install ply 2 import ply.yacc as yacc 3 4 def parse(s): 5 t = {} 6 tokens = ('NUM', 'VAR');
阅读全文
posted @ 2021-12-02 20:17
华容道专家
摘要:如果先给学生讲一点汇编,再讲一点C,再一点C++或其它OOP语言,再一点python或其它脚本语言,最后甚至一点机器学习框架,那会怎样? 学生肯定喊“爽!”啊。几十行我就能整个人脸识别出来。在PUSHA和POPA出现之前,几十行汇编就够保存和恢复寄存器用。 然后想学的再深耕,不想学的直接调参,或者做
阅读全文
posted @ 2021-12-02 13:02
华容道专家
摘要:A few could not resolve to do this, but the greater part complied. They made a blazing heap of all their valuables, and, when those were consumed, set
阅读全文
posted @ 2021-12-02 11:04
华容道专家
摘要:字符串层面:add(35, 2)写成+352不行,得+35空格2, +35 2. 3+5空格*2=8*2=16; 3+空格5*2=3+10=13. 3+5 *2, 3 +5*2,机器无所谓,人主子受不了“喵了个去,这有个空格?!” token流层面:+ opnd * opnd opnd和opnd +
阅读全文
posted @ 2021-12-02 08:26
华容道专家
摘要:Search(c++在线运行). 有的网站很慢——不是下面的程序有问题。 #include <string.h> #include <stdio.h> #include <new> typedef unsigned char byte; struct C1 { char m_str[5]; C1(c
阅读全文
posted @ 2021-12-02 00:27
华容道专家
摘要:CHAPTER 13 ENGLAND UNDER RICHARD THE FIRST, CALLED THE LION-HEART In the year of our Lord one thousand one hundred and eighty-nine, [北宋: 960~1127] Ric
阅读全文
posted @ 2021-12-01 17:19
华容道专家
摘要:https://cn.bing.com/search?q=8+queens+92 1 # -*- coding: gbk -*- 2 # 把棋盘看成8根木条。判断斜线时滑动木条。 3 mask = list(map(lambda n:1<<n, range(15, 7, -1))) 4 b = 8
阅读全文
posted @ 2021-12-01 15:27
华容道专家

浙公网安备 33010602011771号