调侃手机品牌的段子
2016-10-13 Update: 加了两个链接方便读者理解内涵,改了一个段子里的错别字,还改了一下格式。另外,新增了一个笑话段子分类。
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。
我是曲阜人,在孔子故里长到十八岁,虽然不好孔氏的学问,耳濡目染,也比不少伪国学爱好者懂的多的多了。我对于儒家的了解并没有指导人生,反而被我总结成了段子。这些段子我跟很多人都讲过,包括一些孔氏后人,总体来讲反响不错。把它们整理到网络上,以飨读者,希望能让读者长些知识。真能如此,又何怨。
我的网站一直是响应式的,自然是移动端友好的。以前不知从哪里看来的优化技巧,在robots.txt文件里用Disallow: /js/
一类的命令禁止谷歌抓取这些文件,结果谷歌提示网站不是移动端友好的。看了一下官方的移动端SEO指导,不应该禁止抓取这些文件。现在好了,网站是友好的了。
心得:来路不明的经验别随便用。
这也是我不换到master分支的原因,有日本的朋友详细分析了,里面还有解决方案,如果你在Windows下使用Tramp时遇到了类似这样错误输出:
Tramp: Encoding remote file ‘/sshx:[email protected]#29876:/root/acme-tiny/README.md’ with ‘base64 <%s’…done
Tramp: Decoding local file ‘z:/TEMP/tramp.13308UmH.md’ with ‘base64-decode-region’…done
Tramp: Inserting ‘/sshx:[email protected]#29876:/root/acme-tiny/README.md’…failed
Removing old name: No such file or directory, /msys64/TEMP/tramp.13308UmH.md
你一定要看里面给的解决方案。
如果你在使用apt-get升级Nginx时出现了类似下面的错误提示:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nginx.org jessie Release: The following signatures were invalid: KEYEXPIRED 1471427554
W: Failed to fetch http://nginx.org/packages/mainline/debian/dists/jessie/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.