第一步:安装命令:sudo apt-get install ntpdate
第二步:输入命令tzselect
第三步:进入到/usr/share/zoneinfo/Asia 然后输入命令sudo cp Shanghai /etc/localtime
第四步:输入命令sudo ntpdate cn.pool.ntp.org
All posts by ht
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 三种树莓派温度控制风扇方案整理
获取树莓派的CPU和GPU温度(Python)
在这篇文章里我将为你展示如何使用Python做一个简单的程序来监视你的树莓派温度。可能你还不知道,树莓派内置了一个传感器你可以用来获取树莓派的CPU和GPU温度。 Continue reading 获取树莓派的CPU和GPU温度(Python)
Raspberry Pi 迅雷
Xware 版本
Xware1.0.31_armel_v5te_glibc.zip
下载地址:http://g.xunlei.com/thread-12545-1-1.html
Xware1.0.05_armel_v5te_glibc.zip
下载地址:http://g.xunlei.com/thread-208-1-1.html Continue reading Raspberry Pi 迅雷
GPS for Raspberry pi
最近很多朋友都想在树莓派上使用gps,遇到很多问题,所以今天单独为大家写一个简单的教程,方便大家使用gps! Continue reading GPS for Raspberry pi