A simple way to break a bad habit

When I was first learning to meditate, the instruction was to simply pay attention to my breath, and when my mind wandered, to bring it back.

Sounded[……]

查看更多内容

Posted in TED 演讲 | A simple way to break a bad habit已关闭评论

Fake videos of real people — and how to spot them

Look at these images. Now, tell me which Obama here is real.

(Video) Barack Obama: To help families refinance their homes, to invest in things like h[……]

查看更多内容

Posted in TED 演讲 | Fake videos of real people — and how to spot them已关闭评论

If a story moves you, act on it

So earlier this year, I was informed that I would be doing a TED Talk. So I was excited, then I panicked(upset), then I was excited, then I panicked,[……]

查看更多内容

Posted in TED 演讲 | If a story moves you, act on it已关闭评论

Why doctors are offering free tax prep in their waiting rooms

How many of you have had your doctor ask you about sex? Your mental health? Alcohol use? These questions are almost universal. But how many of you hav[……]

查看更多内容

Posted in TED 演讲 | Why doctors are offering free tax prep in their waiting rooms已关闭评论

centos 配置 nginx 和 uwsgi 运行 python 脚本

安装 uwsgit

pip install uwsgi

添加响应文件。

vim /data/install/bin/pptserver.py

内容是:

cat /data/install/bin/pptserver.py 
from flask import Flask,render_[......]

查看更多内容

Posted in 运维相关 | centos 配置 nginx 和 uwsgi 运行 python 脚本已关闭评论

Say your truths and seek them in others

Like many of us, I’ve had several careers in my life, and although they’ve been varied, my first job set the foundation for all of them. I was a home-[……]

查看更多内容

Posted in TED 演讲 | Say your truths and seek them in others已关闭评论

The power of diversity within yourself

We’re holding hands, staring at the door. My siblings(brothers and sisters) and I were waiting for my mother to come back from the hospital. She was t[……]

查看更多内容

Posted in TED 演讲 | The power of diversity within yourself已关闭评论

git 使用技巧

push时报错:

git push origin master
error: The requested URL returned error: 403 Forbidden while accessing https://github.com

如下解决:

在远程主机生成 ssh key 文件[……]

查看更多内容

Posted in DEVOPS | 1 Comment

wordpress 手动升级

缘由

   有些服务器不能打开 ftp 服务来升级,或者升级失败,就需要手动来升级。

怎么升级

WordPress 本身升级

wordpress 本身升级比较容易,手动 wget 下载 zip 包,解压缩后,记得删除里面的 wp-content 目录,然后 rsync 到已经部署的目录中即可。

当你刷新页面时[……]

查看更多内容

Posted in 运维相关 | 1 Comment