记录一次在全新服务器下配置Django项目说明:
Linux操作系统:Ubuntu 16.04
Django版本:1.8.7
Python版本:2.7.12
运行模式:Ubuntu+Django+Apache2+Mod_wsgi Continue reading Ubuntu 16.04下配置Django项目
Django部署至Apache的步骤 Ubuntu12.04
0x00 前言
在这里先说一点人生的经验 之前买了腾讯云的服务器(有学生认证的话只要1块钱) 我明明在自己电脑上ubuntu虚拟机用了一年多了 却作死选了个Centos 还是最新版的(7.2) 于是出现了各种问题 网上的解决方案都很少 最后因为一些很扯的问题放弃了 重装了一个ubuntu12.04的系统 感觉舒服 简单 多了 Continue reading Django部署至Apache的步骤 Ubuntu12.04
VOF多相流计算里的库朗数(Courant Number)
CFX的帮助文件里给出了一个比较直观的公式来定义一维网格的库朗数(Courant Number): Continue reading VOF多相流计算里的库朗数(Courant Number)
raspberry pi 时间 同步
第一步:安装命令:sudo apt-get install ntpdate
第二步:输入命令tzselect
第三步:进入到/usr/share/zoneinfo/Asia 然后输入命令sudo cp Shanghai /etc/localtime
第四步:输入命令sudo ntpdate cn.pool.ntp.org
python strftime
Python time strftime()方法
描述
Python time strftime() 函数接收以时间元组,并返回以可读字符串表示的当地时间,格式由参数format决定。 Continue reading python strftime
Integrating the calibre content server into apache
The calibre content server can be run directly, in process, inside a host server like Apache using the WSGI framework. Continue reading Integrating the calibre content server into apache
latex 单元格内换行
其实使用表格嵌套模拟出来的。
建立命令:
\newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
在单元格内使用此命令,第一个参数放对齐方式,第二个参数放文本内容,需要换行的地方使用“\\”换行
ubuntu latex 中文
sudo apt-get install texlive-xetex latex-cjk-all texstudio
change texstudio Options/Configure TeXstudio/Build/Default Compiler to XeLaTex
in the document add: \usepackage{ctex}
打造增强型Raspberry Pi 液晶屏篇
三种树莓派温度控制风扇方案整理
三种树莓派温度控制风扇方案整理
不知道为什么Pi3的温度升高的不快(使用桌面环境时升温快),而Pi2的温度升高的很快,也很高,所以就准备买个小风扇给两个小派降降温,但是那个几块钱的风扇噪音真不是吹的,于是就像弄个程序让风扇根据条件转动。走了不少弯路,愿给各位同仁借鉴。 Continue reading 三种树莓派温度控制风扇方案整理