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

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/

Compile gdb

1
2
3
4
./configure --prefix=`pwd`/installed --with-python=/usr/bin/python3
make -j 16
make install
cp -Rf /usr/share/gdb/auto-load `pwd`/installed/share/gdb/

Remote desktop between Ubuntus

1
2
3
4
5
sudo apt install tigervnc-common
sudo apt install tigervnc-standalone-server
#vncpasswd
vncserver -localhost no -geometry 1280x720 :1
vncserver -list

Authentication required?

Empty ~/.vnc/passwd and

1
2
#/etc/xdg/autostart$ sudo vi org.gnome.SettingsDaemon.Color.desktop
X-GNOME-Autostart-enabled=false

then reboot the server.

refer to:
https://blog.csdn.net/Naisu_kun/article/details/123007055