原创 [c++] c++異步處理和clock函數踩坑
c++異步處理和clock函數踩坑 文章目錄c++異步處理和clock函數踩坑1. 異步處理1.1 確認或者封裝需要異步處理的函數1.2 調用異步處理函數```std::async()```2. ```clock()```函數的坑
原创 [cernRoot]How to get tree name from root file
TIter nextkey( root_file->GetListOfKeys() ); TKey *key, *oldkey=0; while ( (key = (TKey*)nextkey())) { TOb
原创 [c++] random number
#include<iostream> #include<ctime> #include<cstdlib> srand(unsigned(time(0))); double random(double start,double end) {
原创 如何python搭建簡單的服務,並實現post、get功能
如何python搭建簡單的服務,並實現post、get功能 問題背景 兩臺機器,其中一臺機器A需要計算,並且時刻把結果傳輸到另一臺機器B上。 最simple的方式,機器B搭建一個系列公共目錄,其中一個設置A有權限讀寫。A掛在B的公
原创 git和github學習筆記
git和github學習筆記 僅爲學習筆記和重要內容參考,如果想學習git相關知識,請移步廖雪峯的git教程 安裝git windows下下載二進制安裝 創建git倉庫 在git bash工具窗口內,切換到某文件夾下,輸入git
原创 啓發式算法學習筆記
目錄啓發式算法學習筆記在百度百科中,啓發式算法被定義爲在英英釋義中,啓發式heuristic在維基百科中,heuristic algorithm 啓發式算法學習筆記 在百度百科中,啓發式算法被定義爲 啓發式算法(heuristic a
原创 how to remain a TObject after the corresponding TFile is closed
當一個TFile 被關閉時,在這個文件打開至結束之間產生的任何類,默認都是delete的。其用意相當於,TFile相當於一個目錄,當打開這個目錄的時候,裏面的任何東西都是可以看得到的,但當關閉了這個目錄,其中的任何東西都在內存中被清除。這
原创 [bash] how to use bash-shell array
how to use bash-shell array #!/bin/bash # echo "### title: b36_run_b35.sh" array=(0 1 2 3 4) for((i=0;i<${#array[@]};i+
原创 [ProE (Creo) 二次開發] 實現Dialog中Tree的Node節點的展開和摺疊
主要是用這兩個函數。 ProUITreeActivateActionSet() ProUITreeTreecurrentnodeGet() 第一個函數 ProUITreeActivateActionSet() 表示,在用戶雙擊Tree的某
原创 how to calculate the textsize of TLatex in CernRoot
these code can be used in the SetTextSize(TextSizeValue(textsize0, cc, gPad)), where cc is a pointer of TCanvas; doub
原创 my web sites for HEP
[★][glgoo] [★][inspirehep] [★][wikipedia] [sch.g] [sch.g.hk] [g.linkscholar] [guog] [keyan] [G.oldBig] [sc
原创 【python】 中單引號,雙引號,三個雙引號的差別
單引號&雙引號 print "hello, world" 和 print 'hello, world'是一樣的。 單引號特殊用途:英語中的單引號的使用。如 print 'hello, dogs' world' 是錯誤的,而 print "
原创 【MyNote】Latex 普通筆記模版
\documentclass[11pt, a4paper]{article} %\documentclass[eprint,amsmath,amssymb%, %superscriptaddress, %groupedaddress
原创 如何添加網絡打印機
此文特定針對L332的HP打印機(很破的那個) 控制面板-》硬件和聲音-》設備和打印機 添加打印機-》我所需要的打印機未列出-》通過手動設置添加本地打印機或網絡打印機-》下一步 創建新端口(Local Port) 輸入端口名(\192.
原创 c++ string 字符串分割
https://www.cnblogs.com/Azhu/articles/3981193.html