星期五, 十二月 12, 2014
身体
星期四, 十一月 06, 2014
Sophie's learning log
6 Nov 2014
Last few days, I took Sophie outside with her little tricycle. I did this because I would like to do some exercise anyway. She loves outside. I walked quite a lot in the noon time yesterday. When I arrived home, I feel a little bit tired. Laying on the bed with just waked up Sohpie. I asked if she want to go outside with me. She said yes. I then talked to myself that I don't want to go and felt tired today.
Sophie, who understood exactly what my murmur, said that "if you are tired, it's all right" (如果你走不动了,就算了吧)
Eventually, we went outside. Because I was happy that she is so a sympathetic little girl.
星期二, 十月 28, 2014
Send PDF to Kindle
Feng
星期六, 十月 18, 2014
Switch to a different country on kindle
--
Feng
星期二, 九月 23, 2014
Sourcetree Git revert crash
Feng
星期四, 九月 04, 2014
知识是否也阻碍人类本能的进化
好吃的东西通常都是对人有益的。 但是有些并不是, 人类的本能无法分辨所有有害的东西。 这就需要知识来判断了。 因为有人知识的辅助,人类的本能似乎也不那么重要了。 这会不会阻碍人类本能的发展进化呀?
值得思考呀。
但进化通常是残酷的, 如果达尔文的理论正常的话。 进化需要太多的死亡。 不能本能的分辨毒蘑菇的大多数人要死光。 剩下的少部分人继续繁衍壮大。。。然后为了另一个进化,再死。。。再壮大。。。。
--
Feng
星期五, 八月 29, 2014
HTML table display padding issue
width: 100%;
display: table;
padding-left: 55px;
vertical-align: middle;
padding: 5px 0;
width: 100%;
display: table;
padding-left: 95px;
vertical-align: middle;
--
Feng
星期四, 七月 31, 2014
Ruby doesn't make
checking for ruby.h... C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/
ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executabl
e file. (RuntimeError)
You have to install development tools first.
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:506:in `try_cpp'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:931:in `block in have_header'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:790:in `block in checking_for'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:284:in `block (2 levels) in postpone'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:254:in `open'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:284:in `block in postpone'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:254:in `open'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:280:in `postpone'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:789:in `checking_for'
from C:/Users/ydeng/feng/gre/ruby-1.9.3-p545-i386-mingw32/lib/ruby/1.9.1
/mkmf.rb:930:in `have_header'
from extconf.rb:33:in `<main>'
C:\Tools\Vim\vimfiles\bundle\commandT\ruby\command-t>set path=C:\Users\ydeng\fen
g\gre\DevKit-tdm-32-4.5.2-20111229-1559-sfx\mingw\bin;%path%
C:\Tools\Vim\vimfiles\bundle\commandT\ruby\command-t>ruby extconf.rb
checking for ruby.h... yes
creating Makefile
C:\Tools\Vim\vimfiles\bundle\commandT\ruby\command-t>
--
Feng
星期四, 六月 05, 2014
MAC OS terminal read .bash_profile instead of .bash_rc
星期四, 五月 22, 2014
星期五, 五月 16, 2014
公钥私钥浅喻
公钥就是验钞机
通常来说,公钥往往是从网上下载的。这就会有一个问题。
公钥和私钥用法很多
这里说一种, 用来验证发布者。
我们知道, 人民币要由中央银行印的才是真钞。
我印的那肯定是假钞。
我现在给你一千万人民币, 还送了你一台验钞机。 你用验钞机一验, 全是真币。。。你高兴了。。。
但你惨了, 那验钞机是我做的,它验我的假币当然都说是真的。
假验钞机验假币,当然完蛋。
那怎么知道验抄机是假的呢? 那就牵扯到公证机构了。
现在你收到一叠假币, 和一个假验钞机。 假币上的防伪标记是我做的。 验钞机也是我做的。 但是你知道,验抄机上也是有防伪标记的, 验钞机上写着"此验钞机是真的-中央银行认证"。
好了, 你正好有一个验钞机验证器, 是从可靠的来源获得的。 于是你验证了一下这个验钞机。。。它妈的, 原来是假货。 于是, 你认定这叠钞票是假的。 如果验证出这个验钞机是真的, 那说明这些抄票是由中央银行授权的机构生产, 也是真钞。
这个验钞机上的防伪标记就相当于公证机构的私钥。 而那个验钞机验证器就是公证机构的公钥了。 公钥机构的公钥 (ROOT CA)一般在操作系统里已经带了。 是可靠的, 当然, 病毒软件也可以安装一些不可靠的公钥进去。
总的来说, 一个证书(CERT),就是由公证机构用私钥签过名的你的公钥。 公证机构证明,这个公钥的确是你发布的。 所以证书不是公钥, 证书里包含公钥。
--
Feng
星期三, 五月 14, 2014
git server on mac os over ssh
Feng
星期三, 四月 30, 2014
use xpath to extract web info in google chrome console
Feng
星期一, 四月 21, 2014
快速选择dropbox 的重复图片
Feng
星期三, 四月 09, 2014
YuFeng Deng's invitation is awaiting your response
| |||||||||||||||||||||||||||||||||||||||||||||||||
星期三, 四月 02, 2014
YuFeng Deng's invitation is awaiting your response
| |||||||||||||||||||||||||||||||||||||||||||||||||
星期二, 四月 01, 2014
regex, how look behind work
Feng
Regex "And" operation
Feng
星期一, 三月 31, 2014
Re: 批量删除iphone/ipad 上的照片
想要删除ipad上的照片,因为空间不够,而且都备份到百度网盘了。于是第一个想到的是itune, 然后想到iphoto
其实最简单的方法在下面,居然是 previewfigured it out, it works on the iphone 2G but i think it will work for the newer iphones too.
This is what i did
-connected my iphone to my mac
-open preview
-file > import from iphone
-command + A to select all photos
-hit the delete symbol on the bottom
then it just deleted all photos that were taken from my camera roll.
https://discussions.apple.com/thread/3777283
实验结果, 只删除了Camera Roll 里的文件, Photo Stream 没有被影响。 不过空间出来好多了。
--
Feng
Feng
