Apple终结了Emacs和Vi(m)的圣战
Apple finally weighs in on the Vim vs. Emacs debate. Chooses Emacs, removes the escape key.
Apple finally weighs in on the Vim vs. Emacs debate. Chooses Emacs, removes the escape key.
假期折腾了很多东西,但没有完整的记录,等回忆的时候才有点慌。没记住的就算了,把记住的东西记下来也不错。
Octave里默认的三角函数,比如sin
、cos
等用的单位是弧度制,就是说π是180°,我以前总用蹩脚的方式把角度换算到弧度来计算:
1 | sin(30/180 * pi) |
后来总算是怒了,查了一下,发现有相关的函数,以“d”结尾,就是sind
、cosd
等,所以上面的代码用sind(30)
就行了。
十一假期某城市的星巴克里,一对情侣背着包想必是逛完一处来歇脚,女的意犹未尽,兴奋地问男的喝什么,男的一脸疲态,尽是不耐烦。店内拥挤,但男的还是抢到了一个位子,在人挤人中,他拿出笔记本熟练地打开一个网站,我看见他打了两个字,然后露出久违的笑容,准备一鼓作气大干一番,那两个字是「谢邀」。
Using ORCA under Windows is painful. However, this does not dim the light of ORCA. Today I met a “not enough memory” error. The following are the details.
Phenomenon: The ORCA 3.0.3 Windows 64-bit version was used under Windows 8.1. The calculation was run in single-process mode (I can’t make the parallel version work 😢). Since the auxiliary basis set def2-QZVPP/C was used, MP2 should be calculated. But a error occurred:
When I switched to the master branch of Emacs, I found that octave-mode doesn’t work correctly. The run-octave
will result in the crash of “octave-gui.exe”, even without the configuration file. Afer hours of digging, I think the problem is related to the default-directory
. That is, no matter what the PATH
is, only when the default-directory
being the directory of octave program can make it work. This may relate to the octave, but in Emacs 24.5 run-octave
works correctly. Strang enough. I can workaround the problem by temporarily setting the default-directory
. The code looks like:
1 | (let ((default-directory (file-name-directory |
当换到master分支后,我发现octave-mode工作不正常了,现象是“octave-gui.exe”崩溃。我捉摸了好长时间,觉得问题出在default-directory
取值的问题,不论PATH
怎么设置,只有default-directory
是octave.exe所在目录时才不会崩溃。这似乎和octave有关系,但Emacs 24.5是正常的,很奇怪。要完全解决这个问题我的功力恐怕不够,只要暂时设置default-directory
就好了。代码就像下面的样子:
继Firefox 48.x的提升之后[1,2],Firefox又给了我惊喜。不仅快了(据说只是响应速度快了,不过变快的感觉是很明显的,各个方面,不论是网页中的交互式元素,还是打开关闭标签页等等,都快了很多),而且调试界面也进一步打磨了,感觉49是近几年一个里程碑式的版本。
虽说现在Firefox有式微的趋势,而且官方的一些决策不太得人心,Mozilla的一点是值得我们学习的:通过不断的升级产品确实有所提升。比如之前很烂的PDF.js,现在基本可用了,还有之前很烂的Android版Firefox,现在优势慢慢显现,反而一些原来很好的移动端浏览器,由于没啥好提升的,再加上对商业利益的变态追求,变的越来越差。Mozilla是非盈利组织,天然的具有「为全人类服务」的特质。仅从Firefox这一个产品的改变看,我还是很相信Mozilla的。
欢迎访问emacs-w64在GitHub上的下载页面:
https://github.com/zklhp/emacs-w64/releases
或在SourceForge上的下载页面:
https://sourceforge.net/projects/emacsbinw64/files/release/
或者本站的项目页面:
https://chriszheng.science/emacs-w64/
以及百度网盘镜像:
http://pan.baidu.com/s/1i33oWtR
获取用于64位Windows的Emacs-w64。