Dongsheng He
Dongsheng He
``` async def execute(sql, args, autocommit = True): .... async with __pool.get() as conn: ... try: async with conn.cursor(aiomysql.DictCursor) as cur: await cur.execute(sql.replace('?','%s'),args) affected = cur.rowcount .... except BaseException: ........
在visual 2013里面运行tutorial_07的测试用例时以下测试用例会出现错误(在gcc下面测试正常) TEST_ROUNDTRIP("1e+20"); //1e+020 TEST_ROUNDTRIP("1.234e+20"); //1.234e+020 TEST_ROUNDTRIP("1.234e-20"); //1.234e-020 test.c:394: expect: 1e+20 actual: 1e+020 test.c:395: expect: 1.234e+20 actual: 1.234e+020 test.c:396: expect: 1.234e-20 actual: 1.234e-020 指数部分会多一个0,在转化的时候需要去除多余的0。去除后能通过所有测试用例。
why not implement the support the bytes that be a multiple of 16 in length?
Support log length based snapshot
ballot `init` function always return 0.
`void DoStuffAsync(std::function; cb);` should be `void DoStuffAsync(std::function cb);`
missing colon after `else` at line 37 in train.py.
## General Question 关于实验室项目多人协作(例如作业提交)的工作流程,拟定如下步骤,如果有需要优化的地方一起讨论: # 协作开发流程 我们的项目的协作主要使用 PR (pull request) 的方式 来完成,每位开发者在自己的 branch 上完成开发、测试等工作,然后将新的修改进行 PR,这样可以方便代码 review,通过后再 merge 到 master 上,保证 master 分支的提交历史清晰整洁且符合一定的规范。 下面是一般的协作流程: ## 1. 创建新的项目仓库 首先管理者在组织下建立一个新的项目仓库,名称尽量使用英语单词,并完善 README、LICENSE、gitignore、template等必要文件。 ## 2....
Compiler: clang version 14.0.6 Target: Ubuntu x86_64-pc-linux-gnu Link libraries: [libcxxabi](https://github.com/llvm/llvm-project/tree/main/libcxxabi)、[libcxx](https://github.com/llvm/llvm-project/tree/main/libcxx) The coredump stacktrace: ``` * thread #23, name = 'main', stop reason = signal SIGSEGV: invalid address (fault address: 0x38)...
## issue `change_peers` 过程中继续重启,可能导致无法恢复。 bad case (*from braft wechat group*): 1. 启动 5 个节点的 cluster $(A,B,C,D,E)$ 2. `leader` 在 $(A,B,C)$ 中, 开始节点变更,从集群中删除 $(A,B,C)$ , 仅保留 $(D,E)$, 即 $C_{old} = (A,B,C,D,E)$...