世界经济年表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1760		蒸汽革命
1837-1842	经济危机
1856/7-1943/1		特斯拉
1857		经济危机
1861/4-1865/4	美国南北战争,废除奴隶制
1870		电气革命
1914/8-1918/11	一战
1929-1933	经济危机
1931/9		英国放弃金本位制
1933-1945/4		Franklin Delano Roosevelt 罗斯福 民主党
1939/9-1945/9	二战
1945/4-1953/1		Harry S.Truman 杜鲁门 民主党 
1950/6-1953/7	朝鲜战争
1953/1-1961/1		Dwight D.Eisenhower 艾森豪威尔 共和党
1955-1975	越南战争
1961/1-1963/11		John Fitzgerald Kennedy 肯尼迪 民主党
1963/11-1969/1		Lyndon Baines Johnson 约翰逊 民主党
1969/1-1974/8		Richard Milhous Nixon 尼克松 共和党
1974/8-1977/1		Gerald Rudolph Ford 福特 共和党
1977/1-1981/1		Jimmy Carter 卡特 民主党
1981/1-1989/1		Ronald Wilson Reagan 里根 共和党
1985		《广场协议》后日元大幅升值
1989/1-1993/1		George Herbert Walker Bush 老布什 共和党
1990/8-1991/2	海湾战争
1993/1-2001/1		William Jefferson Clinton 克林顿 民主党
2001/1-2009/1		George Walker Bush 小布什 共和党
2001/9/11
2001/10-2021/8	Afghanistan War
2003/3-2011/12	Iraq War
2006		subprime crisis 美国次贷危机
2009/1-2017/1		Barack Hussein Obama 奥巴马 民主党
2017/1-2021/1		Donald Trump 特朗普 共和党
2021/1-now		Joseph R. Biden Jr. 拜登 民主党

refer to:
https://baike.baidu.com/item/%E7%BE%8E%E5%9B%BD%E6%80%BB%E7%BB%9F/521627

日语中以ない结尾但不表否定的词

1
2
3
4
//危ない(あぶない)	危险	浴(あ)ぶ 
//幼い(おさない)	幼小	長(おさ)
少ない(すくない)	少
償い(つぐない)	补偿

refer to:
http://www.wushiyintu.com/index.php/riyurumen/4325.html

Environmental variables for Calligra

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PWD_DIR=/home/work/kde/calligra/build
INST_DIR=$PWD_DIR/installed
 
export XDG_DATA_DIRS=$INST_DIR/share:$XDG_DATA_DIRS
export XDG_CONFIG_DIRS=$INST_DIR/etc/xdg:$XDG_CONFIG_DIRS
export PATH=$INST_DIR/bin:$PATH
export QT_PLUGIN_PATH=$INST_DIR/lib64/plugins:$INST_DIR/lib/plugins:$INST_DIR/lib/x86_64-linux-gnu/plugins:$QT_PLUGIN_PATH
export QML_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
export QML2_IMPORT_PATH=$INST_DIR/lib64/qml:$INST_DIR/lib/qml:$INST_DIR/lib/x86_64-linux-gnu/qml
 
export XDG_CONFIG_HOME=$HOME/kde/Settings
export KDETMP=/tmp/kdedev-$USER
export KDEVARTMP=/var/tmp/kdedev-$USER
export KDESYCOCA=$KDEVARTMP/ksycoca
 
mkdir -p $KDETMP
mkdir -p $KDEVARTMP

refer to:
https://community.kde.org/Calligra/Building/3

Change hyperlink color in QT

1
2
3
4
5
6
	// ui->btnEdit is a QLabel.
	ui->btnEdit->setText(QString("<a href=\"localhost\"><font color=\"#ff0000\">") + tr("Edit") + QString("</font></a>"));
	ui->btnEdit->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
	connect(ui->btnEdit, &QLabel::linkActivated, [=, this](QString url) {
		...
	});

refer to:
https://www.lmlphp.com/user/507/article/item/13949

ERROR 2003 (HY000): Can't connect to MySQL server on ... 113

1
2
3
4
5
6
7
8
9
telnet 192.168.1.165 3306
 
# firewall in ubuntu
sudo ufw disable
 
# or found ip changed
vi /etc/mysql/mysql.conf.d/mysqld.cnf
systemctl restart mysql
systemctl status mysql

refer to:
https://blog.csdn.net/zhangasas/article/details/89432832

西方科学年表

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1451-1506	Cristoforo Colombo 哥伦布
1452-1519	Leonardo da Vinci 达芬奇
1473-1543	Mikołaj Kopernik 哥白尼
1499-1557	N.Fontana 三次方程求根公式 / Tartaglia 口吃者 / 意法战争 / J.Cardan 卡丹 / L.Ferrari 四次方程求根公式
1548-1600	Giordano Bruno 布鲁诺
1564-1642	Galileo 伽利略
1596-1650	René Descartes 笛卡尔
1643-1727	Isaac Newton 牛顿
1654-1705	Jakob Bernoulli‎ 雅各布第一·伯努利
1667-1748	Johann Bernoulli 约翰第一·伯努利
1707-1783	Leonhard Euler 欧拉
1700-1782	Daniel Bernoulli 丹尼尔第一·伯努利
1736-1813	Joseph-Louis Lagrange 拉格朗日
1777-1855	Johann Carl Friedrich Gauß/Gauss 高斯
1789		French Revolution 法国大革命
1822-1895	Louis Pasteur 巴斯德
1831-1879	James Clerk Maxwell
1853-1928	Hendrik Antoon Lorentz 洛伦兹

refer to:
《古典数学难题与伽罗瓦理论》徐诚浩著

Recording video or audio in Windows

1
2
3
4
5
6
7
8
9
10
11
ffmpeg -f dshow -list_devices true -i dummy
 
# can only play one instance simultaneously
ffplay -f dshow -i video="Integrated Webcam"
 
# can play multiple instances
ffmpeg -f dshow -i audio="Microphone (Realtek(R) Audio)" out2.wav
 
# record screen sound,
# if "Stereo Mix..." is not displayed, activate it in Sound Settings of Windows Control Panel.
ffmpeg -f dshow -i audio="Stereo Mix (Realtek Audio)" C:\Users\fatiw\Desktop\Audio\output.mp3

refer to:
https://blog.csdn.net/qq_43627907/article/details/124416450
compiled ok in Qt5.15.2.

https://blog.csdn.net/how0723/article/details/77418421
https://zhuanlan.zhihu.com/p/31348306
search 'QAudioOutput' in Qt Creator Examples.

https://blog.csdn.net/jlf521521/article/details/106689503
QT5使用QCustomplot绘制频谱瀑布图并封快速傅里叶变换fft类
https://blog.csdn.net/u013915524/article/details/122288358

https://www.addictivetips.com/windows-tips/record-system-sound-with-ffmpeg-on-windows-10/

QTimeLine starts very slowly

Need to set the time line execution curve as linear.

1
2
3
4
5
	m_time_line.reset(new QTimeLine(m_span_msecs * count, this));
	m_time_line->setFrameRange(0, count);
	m_time_line->setEasingCurve(QEasingCurve::Linear);
	// below is deprecated
	//m_time_line->setCurveShape(QTimeLine::LinearCurve);

refer to:
http://www.wjhsh.net/rickyk-p-4044875.html