May. 27, 2018
The Tell-Tale Heart
by Edgar Allan Poe
[caption id=“attachment_3212” align=“alignright” width=“300”]
The Tell Tale Heart[/caption]
True! –nervous –very, very dreadfully nervous I had been and am; but why will you say that I am mad? The disease had sharpened my senses –not destroyed –not dulled them. Above all was the sense of hearing acute. I heard all things in the heaven and in the earth. I heard many things in hell. How, then, am I mad? Hearken! and observe how healthily –how calmly I can tell you the whole story.
More...
May. 19, 2018
可以对Nextcloud配置反向代理,使反向代理服务缓存诸如图片、CSS、JS这样的静态文件,或将处理HTTPS请求的负载转移到其他服务器上,也可以利用多台服务器配置负载平衡。

参数格式
下文中所介绍的参数需要添加到
config/config.php
文件中的
$CONFIG = array (...)
中才可生效,格式遵守PHP数组的语法,为:
'value',
'parameters_2' => ['value_1','value_2'],
...
);
定义可信代理
安全起见,你必须为Nextcloud指定可以信赖的反向代理服务器。来自可信代理的请求将会被做特殊处理以获取客户端的真实信息,确保访问控制和日志不会出错。相关的参数可以在
config/config.php
中设置。
将trusted_proxies
参数设置为包含代理服务器IP地址的数组,以定义Nextcloud可以信任的代理服务器。此参数可防止客户端受到欺骗,您应像保护您的Nextcloud服务器一样保护这些服务器。
More...
May. 6, 2018
Nextcloud使用config/config.php
文件来控制服务端的运行。config/config.sample.php
示例文件中列出了所有可配置的参数,包括示例和默认值。本文将对这些参数进行更细致的讲解。其中大多数参数都可以在管理页面配置,所以如果你想修改一项配置,没必要非得去编辑config/config.php
。
More...
May. 5, 2018
想要实现的功能:
能够控制一个三色LED灯颜色亮起来的顺序
好像很简单,巧了,我也这么觉得。
然而,搞了半天发现自己的水平真的不行,勉勉强强把功能实现了:
int pinbtn[3]={26,30,34};
int pinled[3]={53,51,49};
int recbtn=22;
int data[3]={};
int rec[3]={};
void setup() {
// put your setup code here, to run once:
//pinMode(pin1,INPUT);
//pinMode(pin2,INPUT);
//pinMode(pin3,INPUT);
for (int i=0;i<=2;i++){
pinMode(pinbtn[i],INPUT);
pinMode(pinled[i],OUTPUT);
}
Serial.begin(9600);
pinMode(recbtn,INPUT);
pinMode(13,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(recbtn)){
digitalWrite(13,HIGH);
for(int i=0;i<=2;i++){
Serial.print("The ");
Serial.print(i+1);
Serial.println(" LED: ");
digitalWrite(13,LOW);
delay(50);
digitalWrite(13,HIGH);
delay(1000);
for(int j=0;j<=2;j++){
if(digitalRead(pinbtn[j])){
rec[i]=j+1;
}
}
}
Serial.println(".");
delay(500);
digitalWrite(13,LOW);
Serial.println("Time to see the MAGIC!!!!");
delay(2000);
}
for(int i=0;i<=2;i++){
Serial.print(rec[i]);
}
Serial.println(",");
for(int i = 0;i<=2;i++){
digitalWrite(pinled[rec[i]-1],HIGH);
delay(200);
digitalWrite(pinled[rec[i]-1],LOW);
delay(200);
}
}
使用方法:
More...
Apr. 30, 2018
- 书是读给自己的,这本书的对于你的好坏,你是最有发言权的人。
《我是猫》

来自夏目漱石的作品。《我是猫》最初被发表《杜鹃》期刊上连载,一共三部。
起初我以为《我是猫》想要以猫的视角抒写猫的生活,就像《笑猫日记》那样的童话式小说。小说的开头的确是这样,然而不到一章之后,内容就从猫的生活转到了主人苦沙弥一家的生活。大篇幅的语言描写占据了本书的主要情节,还有相当多的议论和说明,有时语言描写之多,作者还吝于提示,搞得我常常弄混说话者。
More...
Apr. 22, 2018
最近想到创建一个这样的新目录,单篇的书评或者读后感不好写,就以日志/笔记的形式写下来。目录名为“书·纪”。
与其担心我能坚持写几篇笔记而犹豫不决,不如直接开工,万事开头难嘛。
《三体》
无知与弱小不是生存的障碍,傲慢才是。
——《三体》
More...
Apr. 15, 2018
前两天帮别人处理了一个问题,环境是CentOS,在更新时出了一点小问题,虽然Nextcloud升级到了13.01,访问登录页面时显示正常,但是登录后却显示“服务器内部错误”。查看日志,发现记录“JSCombiner:can not cache Merge.js”
More...
Apr. 1, 2018
注:本文翻译自General troubleshooting ,仅接受翻译上的问题。
如果你在安装、配置、维护Nextcloud时出现问题,可以从下面的渠道寻找解决方案:
官方渠道(英文):
[ssbluelist]
- The Nextcloud Forums Nextcloud官方论坛,论坛中有一个FAQ页面,里面罗列了一些常见的错误。
- The Nextcloud IRC chat channel
irc://#nextcloud@freenode.net
Nextcloud官方聊天室,支持webchat访问。
[/ssbluelist]
其它:
[ssbluelist]
- QQ群:1:534777566(我建的群,因为我平时时间少,这个群活跃度低一些)
- QQ群:2:578094274(这个群比较活跃,讨论的人多一些,和这个群的群主一比我真是懒得没边)
- 橙叶论坛:https://forum.orgleaf.com 刚建起来,人还很少,用的是和官方论坛一样的程序,请多支持。
[/ssbluelist]
Bug反馈
如果你认为你找到了一个Nextcloud的Bug,可以:
[ssbluelist]
More...
Mar. 25, 2018
The Child’s Story
The Child’s Story (1852) is a parable about life’s journey, in which a traveller asks all he meets, “What do you do here?” and they invite him to join them, until it’s time to move on.
《孩子的故事》(1852)是关于人生旅程的寓言:一位旅行者问他遇到的每一个人:“你在这儿做些什么?”,他们邀请他加入,直到他离开。
More...
Mar. 18, 2018
在笔记1中提到了PWM,PWM实现了使用数字信号控制模拟电路的功能。
笔记2中则演示了制作电压表的过程,原理十分简单,而且得到了可视化的输出(SerialChart)。那么我们可以用电压表功能来一窥PWM。
More...