In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#将日志同时输出到文件和屏幕 | |
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') |
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).