Tuesday, November 03, 2015

"can't open file" for downloaded APK

I just got a new Nexus 5X phone and want to install shadowsocks. But I always met "can't open file" mistake from naive Android download manager when I downloaded apk from my own http server. Finally I found it is a download manager bug (link) and could be fixed by update mime configuration file from sever side (link)

Thursday, October 22, 2015

ens, new name for internet interface

I lost ip for my VPS after reboot when systemd update from 225 -> 226. I noticed a wired thing is eth0 -> ens3. According to this link, ens is better new name strategy. So I decided to follow this rule. The configuration file of netctl and iptables are updated (all eth0 -> ens3).

Another thing is I found systemd-networkd could be used for statis IP instead of netctl for my VPS. So I uninstall netctl and switch to systemd-networkd.

  • similar issue: link
  • introduction on arch wiki: link
  • systemd-networkd on arch wiki: link

Thursday, January 22, 2015

2014 Summary



2014年初正式告别做了三年之久的maintenance project,并将项目转给了一位新来的同事。之后的主要精力放在了mRBS和node 相关的事情。


生活发生了巨大的变化,8月份诞生了狮子座的小宝宝。她给我们带来了很多的欢乐和幸福,但从此也失去了晚上和周末的业余时间。 11月去土耳其出差期间重新使用微信,因而和很多多年不联系的老朋友又重新取得联系。


由于宝宝的缘故,2014年的读书进度很慢。看完了英文版的安娜卡列琳娜,Darwin's dangerous idea由于生僻单词的原因,只看了20%。中文方面还在看网络小说,比如魔天记,宰执天下,从前有做灵剑山,宋时归。


2014年主要使用微博,微信和 Google+。微博仍然是主要的信息来源;微信主要用于和老朋友联系,但朋友圈的帖子质量是在不高。Google+的使用频率在下降,主要还是确实有用的信息源。 水木,twitter and Facebook的账户已经删除。reddit和豆瓣的账户还在,但活跃度基本为零。


2014年python的编程能力有了很大的提高。业余时间利用webpy制作了记账网站和blogspot的镜像。在制作网站的过程中学习了html, CSS, JavaScript, rational databases和thread的知识。在工作中也开始利用python计算可靠性和处理数据。 2015年要开始抛弃webpy,并逐步转移到flask上。 2014年开始学习数据结构和haskell,但都只是很粗浅的了解,希望在新的一年中能有所突破,特别是haskell。


科学方面上并无特别突出的研究和兴趣点,希望2015年能focus一两个方向。最主要的还是要多读几本英文原著。 经济方面也无所突出的兴趣点,希望2015对货币和汇率相关的课题能有所了解。 大数据和机器学习在网上很火爆,但暂时还是不要有所涉及吧,有限的精力需要放在重点项目上。

Wednesday, January 21, 2015

issue for git and werkzeug

there are two issues when I installed new server on vultr

i couldn't git clone or ssh to git on new server. It takes long time to trouble shooting and finally it is caused no home direct in /etc/passwd.

SharedDataMiddleware in werkzeug could be used to host static file, but te problem is I always get a empty png without any drawing. It also take a long time to trouble shooting and it is caused by cache parameter which is used to enable or disable caching headers. cache is enabled by default and browser always use first png it get even later one has changed.