使用Octopress的时候目录里默认存在一个.rvmrc
文件,
1
|
|
目测是指定ruby版本用的。每次进入目录都会有Do you wish to trust this .rvmrc file?
的提示,需要手动确认。
还是挺烦的…
其实,rvm list
可以看到我机子上只有这一个版本
1 2 3 |
|
所以这个 .rvmrc
是毫无意义的,可以删掉…
或者在~/.rvmrc
里写入export rvm_trust_rvmrcs_flag=1
I never quit, I never forgot my dreams.
使用Octopress的时候目录里默认存在一个.rvmrc
文件,
1
|
|
目测是指定ruby版本用的。每次进入目录都会有Do you wish to trust this .rvmrc file?
的提示,需要手动确认。
还是挺烦的…
其实,rvm list
可以看到我机子上只有这一个版本
1 2 3 |
|
所以这个 .rvmrc
是毫无意义的,可以删掉…
或者在~/.rvmrc
里写入export rvm_trust_rvmrcs_flag=1
发现一个极好玩的项目,hylang,结合 List 跟 python 的写法…
Lisp and Python should love each other. Let’s make it happen.
一些坑。
http://docs.python.org/2/distutils/setupscript.html#installing-package-data
Building and Distributing Packages with Setuptools
https://pypi.python.org/pypi/setuptools/ http://www.pip-installer.org/en/latest/usage.html#pip-install http://www.pip-installer.org/en/latest/logic.html#git http://stackoverflow.com/questions/6947988/when-to-use-pip-requirements-file-versus-install-requires-in-setup-py https://groups.google.com/d/msg/python-virtualenv/1eI6Z9_XRHE/cj6CCHvmS10J http://stackoverflow.com/questions/2087148/can-i-use-pip-instead-of-easy-install-for-python-setup-py-install-dependen
from pip.req import parse_requirements
http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kwarg-in-setuptool?answertab=votes#answer-16624700
Require pip>=1.2, as lower versions have a bug https://github.com/erikrose/peep/commit/65367f66b777f17b1223569e1cd2f6250a820e99
http://stackoverflow.com/questions/17366784/setuptools-unable-to-use-link-from-dependency-links/17442663#17442663 http://www.pip-installer.org/en/latest/logic.html#requirements-file-format
http://stackoverflow.com/questions/17346619/how-to-uninstall-editable-packages-with-pip-installed-with-e
At {virtualenv}/lib/python2.7/site-packages/
折腾了下树莓派,买了 PL2303串口TTL下载线,跟一个8G C10的TF带SD卡套。
只能串口访问,没买usb无线,没有多余网线。。不能SSH、开VNC。。不幸福
等能联网了再来折腾吧 →_→
df -h
来获得sd卡的设备路径1 2 3 4 5 |
|
And you can use killall -INFO dd
to check the status of dd
in progress (link)
http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41 安装完需要重启。。
brew install minicom
ps. 我不知道为什么直接用screen连 screen /dev/tty.usbserial 9600
会乱码加卡死。。
Classical ACM/ICPC Problem
one test case is easy, how to support multi- test cases?
ex.
1 2 3 4 5 6 7 |
|
in python 2.x
1
|
|
You can test it on the Online Judge. :)
For PDF output, you’ll also need LaTeX. We recommend installing BasicTeX (64M), and using the tlmgr tool to install additional packages as needed.
Just download and run the pkg files.
Then add /usr/texbin
to your $PATH(export PATH=${PATH}:/usr/texbin;
).
Now, you get them installed.
1 2 3 |
|
tlmgr - TeX Live package manager
1 2 3 |
|
1 2 3 4 5 6 7 8 9 10 |
|
and you can check the version by tlmgr --version
1
|
|
1
|
|
TO be continued
自从到豆瓣实习后,基本就博客就没更了,在github上的活动也都转到了code上…
最近的觉悟是自己写代码太慢,对IDE的依赖是累积的,各种恶性循环(不足够了解语言,不熟悉项目结构)。半天憋不出几行代码,这种状态让人厌恶…以前对此持观望态度,各种纵容自己,现在发现这已经成为自己的一大瓶颈…
这东西上次hack day的时候看 atupal用过,印象蛮深。今天挖出来玩玩。
去商店安装的时候,提示This application is not supported on this computer. Installation has been disabled.
,安装按钮直接变灰了。Google无果,看了下自己的Chrome版本,22…(mbp买来到现在没更过的节奏…),然后用”关于”里的自动更新报Error 12(以前也是这样所以一直没更吧..)。
试了官方提供的方法,木有用。。Google出来的也大致都是删掉SoftwareUpdate然后再装一遍的意思,以及各种偏方,无果。
然后想是不是因为现在版本太低(22->28)的缘故,最后直接把最新的下来覆盖了。后来发现完全无痛啊,因为现有的东西包括Extensions的localStorage都是放在Application Support/
里的么。。
然后很舒服地用着最新版,顺利地把Secure Shell装上了。
然后其实也不用什么配置是吧,输个<username>@localhost
就好了。。结果报Connection refused。。用iTerm试了下ssh localhost
同样是Connection refused(sshd服务没开的节奏…)
1
|
|
1 2 3 |
|
ok,现在已经可以顺利ssh到本地了。
另外,还可以直接授权publickey,这样就不用每次都输密码了(但是还是要输一次id_rsa私钥的密码,后面貌似shell会记住)。
1
|
|
用自己的账户登陆是ok了,但是尝试用root登陆时提示Permission denied (publickey,keyboard-interactive)
错误。
先是加了/etc/sshd_config里的PermitRootLogin yes
(开始把ssh_config跟sshd_config搞错了。。图样)。还是不行。
后来发现是OS X默认没有开启root用户,我输入的密码也只是a valid sudoer password
,根本不是root的密码。
1
|
|
之后就可以用root账户登陆了。
Chrome Secure Shell 用起来很方便也很爽。但是我发现ls
的时候中文目录名会乱码,中文文件内容可以正常显示。
还有就是不能输入中文(输入法无效。。)。
http://git.chromium.org/gitweb/?p=chromiumos/platform/assets.git;a=tree;f=chromeapps/hterm,这个据说是前端的源码,可以拿来研究下(kido参考)。但是clone了半天搞不下来。。= =(噗。。现在看了一下貌似死在3%了..)
巨二。
以后别把包名取做site,import的时候会跟python标准库里的site.py冲突。。