2024年7月24日

a method to make some handy tools with python

摘要: In my working of computer, there are a lot of simple jobs that are frequently repeated. I tried to find a way to make these job been processed easily. 阅读全文

posted @ 2024-07-24 23:39 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年7月7日

cpp format a string

摘要: for older standard cpp char cc[55]; sprintf_s(cc, "%09d tttttt %.3f sssss", 7, 1.234567); cout << cc << endl; // 000000007 tttttt 1.235 sssss string s 阅读全文

posted @ 2024-07-07 02:11 yusisc 阅读(4) 评论(0) 推荐(0) 编辑

understanding r-value in cpp

摘要: r-value stl - C++ Double Address Operator? (&&) - Stack Overflow: https://stackoverflow.com/questions/4549151/c-double-address-operator && is new in C 阅读全文

posted @ 2024-07-07 01:12 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

use smart pointer to manage a dynamically allocated array in cpp

摘要: c++ - Can you make a std::shared_ptr manage an array allocated with new T[]? - Stack Overflow: https://stackoverflow.com/questions/13061979/can-you-ma 阅读全文

posted @ 2024-07-07 00:59 yusisc 阅读(5) 评论(0) 推荐(0) 编辑

2024年7月6日

modifing windows color from registry

摘要: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Colors] "ActiveBorder"="180 180 180" "ActiveTitle"="153 180 209" "AppWorkspace"= 阅读全文

posted @ 2024-07-06 08:59 yusisc 阅读(2) 评论(0) 推荐(0) 编辑

2024年5月26日

Why is it considered "bad practice" to use macros in C++?

摘要: This article originally appeared here on Quora It is a common practice to use macros, you just have to be aware of the proper use and unfortunate misu 阅读全文

posted @ 2024-05-26 00:23 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年5月6日

parallel processing in python

摘要: module usage threading t1 = threading.Thread(target=print_square, args=(10,)) t1.start() t1.join() concurrent.futures pool = concurrent.futures.Thread 阅读全文

posted @ 2024-05-06 01:38 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月28日

start windows executable in multi-process and wait its ending

摘要: the executable import time import random import sys time.sleep(random.random()) print(sys.argv[1]) the calling control import subprocess ll = [] for i 阅读全文

posted @ 2024-04-28 21:53 yusisc 阅读(1) 评论(0) 推荐(0) 编辑

2024年1月27日

windows console prompt modification

摘要: by setting prompt to be $d $t @ $p$_$g$S in environment variables. reference Change your DOS/Command prompt http://www.chami.com/tips/windows/020497W. 阅读全文

posted @ 2024-01-27 22:03 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

dealing with msys2 slow startup

摘要: All tools from shell are very slow · Issue #138 · msys2/MSYS2-packages · GitHub https://github.com/msys2/MSYS2-packages/issues/138 msys2.exe takes alm 阅读全文

posted @ 2024-01-27 20:14 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

导航