Using putty to connect raspberry pi by serial

Using putty to connect raspberry pi by serial

Notice: This article is only available in Chinese. :( 最近收到了期盼已久的树莓派:3B和zere 0w,当然要晒一晒了, 就像这样。 在连包装盒一起里里外外欣赏了个透之后,就有疑问来了:没有HDMI接口的显示器,该怎样给好吃的连无线网络呢?(尽管是有的,我还是这么想了)USB直连?可能不大行得通(人家只是电源接口而已,USB直连根本不行),还有烧板子的风险。查了查dalao们的博客,ttl串口通讯,好的,猜得八九不离十。 材料 USB转TTL串口连接线(带芯片),serial controller 驱动 连线 红色连接5V,黑色接地,还有两根白绿分别接TXD和RTX。 …

Continue Reading

Lumen custom page-notfound response

Lumen custom page-notfound response

Notice: This article is only a available in Chinese version available. :( 在 App\Exceptions\Handler 中引入: use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; 然后在 render()中更改响应的方式。 如果要渲染成页面,可以先在view文件夹中添加error.blade.php文件,然后在 render()中 return前加入判断404的语句: if ($e instanceof NotFoundHttpException){ return response(view("error"),404); } …

Continue Reading

Dream review on 23rd December

Dream review on 23rd December

Notice: This article is only available in Chinese. :( 刚醒来的时候,发现自己身处一狭窄的房间中。四周的地板边缘发出暗淡的深蓝色的光;面前有只有几步的小台阶,直连一截狭隘的走廊;走廊右侧便有一更小的房间,其中有着更加黯淡的深蓝色光芒。回想着不久之前发生的一切:天空突然的阴晦,喷气背包燃料的耗尽 … 是些什么记忆,如同梦境一般。 黑夜里的航海人突然从岸上醒来般的震惊使我坐了起来。我用手支撑着自己,同时听到了小房间里的金属碰撞的声音。 “Who is …

Continue Reading

Mudmood Gallery

Mudmood Gallery

Not only is this page a tunes' list, but also a gallery to match music with vivid artistic photos or paitings. Just come up with an idea, and this project (if could be called so) is still in process. List kept updating. Every item comes with a link to the source of the tune and a photo or paiting from Unsplash, Pexels or others, used under …

Continue Reading

NGINX 开放跨站请求

在Twic lab中新添加了一个CDN项目 T HREF,将常见的字体、前端框架等静态文件统一放在里面,便于引用。 然而在实际应用时,发现能够直接访问文件,能够在同一域下的其他文件中调用,却不能够在其他域中调用。 解决方法: 在CDN项目的NGINX配置文件中添加响应头: add_header Access-Control-Allow-Origin *; 以开放跨站请求,即可解决问题。

Continue Reading

Ubuntu 16.04 升级至 17.10

虽然部分VPS商家如Vultr等在部署时均提供Ubuntu 17.10版本,大多数的提供商(至少我遇到的两三家)的Ubuntu版本都还是在16.10及以下。为了方便使用,当然想把我的所有VPS都弄成同一个操作系统统一版本;既然决定使用Ubuntu 17.10,那么剩下的如何更新呢? 若是Ubuntu17.04,只需 " apt update " 后执行 " do-release-upgrade " 。但是对于以下的版本 (<= 16.10) ,似乎需要折腾一会儿。 更新已安装包 还是照常, apt update 如果有更新,就 apt upgrade 安装并配置更新管理 apt dist-upgrade apt install update-manager-core 安装好后打开 " …

Continue Reading

Using Samba to share files between Linux and Windows

Using Samba to share files between Linux and Windows

Notice: This article is only available in Chinese. :( 前面已经介绍了 家庭共享服务器的搭建,简单介绍了ftp服务器的安装配置与使用。虽然已经可以满足大部分的使用需求,但是有时候还是不太方便。 现在家中的这台服务器整天地跑着,它不仅用来存放视频和图片,也用来存放我的文件,例如代码。有时会在手机上写,有时也会在笔记本上写。若每一台都配置git直接传到gitlab的话当然太过于麻烦,而在手机或笔记本上写完再用ftp传到服务器上似乎不太方便,有时也会忘记。能不能通过什么办法,实现在任意客户端上写后立刻存盘至服务器,像是直接在本地编辑?挂载似乎很好地解决了这个问题。 …

Continue Reading

Brief guide to install Nginx, PHP, Mysql on Ubuntu 17

Brief guide to install Nginx, PHP, Mysql on Ubuntu 17

Introductions Nginx is a light Web / Reverse Proxy / Mail Proxy server . PHP is a popular server-side scripting language and quite a few applications such as blog , forum applications are written in php . MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. Preparations Ubuntu …

Continue Reading

Openssl 升级 Shadowsocks 报错及其解决

在将openssl升级到1.1.0以上版本后,Shadowsocks 2.8.2 启动时会报undefined symbol: EVP_CIPHER_CTX_cleanup错误,如下: INFO: loading config from ss.json 2016-12-14 22:47:50 INFO loading libcrypto from libcrypto.so.1.1 Traceback (most recent call last): File “/usr/local/bin/sslocal”, line 11, in sys.exit(main()) File …

Continue Reading

Apply for friendly link

Apply for friendly link

Welcome exchanging friendly links! please write an email or turn to board and have your message left on it. Shall not be serious, making friends comes first, under few requirements: Originally published ones are especially fond of HTTPS is of great importance (HSTS much better) Website runs steadily, have done a little with the improvement of …

Continue Reading