502 Bad Gateway on Discourse

502 Bad Gateway after Discourse update problem: ssl certificate error how to check: tail /var/discourse/shared/standalone/log/var-log/nginx/error.log if there’s cannot load certificate “/shared/ssl/<domain>_ecc.cer”: PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE) solution: rm /var/discourse/shared/standalone/ssl/*_ecc.* rm -rf /var/discourse/shared/standalone/letsencrypt/*_ecc/    Send article as Continue reading 502 Bad Gateway on Discourse

foam-extend 3.1 compilation error

foam-extend-3.1/src/transportModels/incompressible/incompressibleTwoPhaseMixture/twoPhaseMixture.H:38:28: fatal error: transportModel.H: No such file or directory #include “transportModel.H”   #include “incompressible/transportModel/transportModel.H” #include “incompressible/viscosityModels/viscosityModel/viscosityModel.H”    Send article as PDF   

auto crop images in one-line command in Linux

常用小工具集合: 将本文件夹下的 pdf 文档转换成相应的 jpg 格式,像素 600 px/in for A in *.pdf; do convert -density 600 “$A” “${A%%.}.jpg”; done (Mainly for personal future reference,) using ImageMagick: convert -trim image.jpg image.jpg To trim/autocrop the whole directory: 自动裁剪 for a in *.jpg; Continue reading auto crop images in one-line command in Linux

CFD 相关论坛

CFD-online, 关于 CFD 方面的专业论坛,以英语为使用语言。 流体中文网,关于流体方面的信息与论坛,以中文为使用语言。 CFD 中文网,关于 CFD 方面的专业论坛,以中文为使用语言。 CFDwired Forum,以服务于 CFD 中文社区为宗旨的专业论坛。    Send article as PDF   

qt gui error

If there’s an error like symbol lookup error: /lib64/libQt5Gui.so.5: undefined symbol: hb_font_funcs_set_font_h_extents_func Can be solved by update your gnome environment. error found in CentOS 7, qt5-5.9.2    Send article as PDF