Skip to content

Instantly share code, notes, and snippets.

@yanlusu
yanlusu / log.py
Created May 28, 2018 11:35 — forked from hxer/log.py
python logging 将日志同时输出文件和屏幕
#将日志同时输出到文件和屏幕
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename='myapp.log',
filemode='w')
@yanlusu
yanlusu / Install NVIDIA Driver and CUDA.md
Created February 7, 2019 06:14 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS

Adding combo boxes to a list view

teps to achieve this:

  • Create a class derived from CListCtrl or CListView.

  • Subclass your view or control window using new class.

  • Create combo box with desired style (not visible - hence, do not use WS_VISIBLE).

Git push 提示HTTP 400 / 413

error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 Failed reading client body
fatal: The remote end hung up unexpectedly
  • HTTP 413 调nginx配置

  • HTTP 400 设置下git的缓冲区大小, 比如100M