Google Plus 我很少用,但是 +1 我觉得还是一个不错的功能。以前看到不错的页面会存书签,后来发现这些书签平时不会用到,想搜东西的时候一来不会去搜书签,二来书签不包含内容也搜不到。而 +1 过的页面以后再次 Google 的时候会更容易找到,可以很方便的用来
mark 自己觉得有价值的网页。(Twitter 的 search 太差。Evernote 的 webclip 不错,不过比起单击一下就能 mark 还是麻烦了一点。所以只有非常有价值的内容我才会用 webclip。)
最近网络环境非常糟糕,无法访问 Google 的情况越来越多。实验室的公用代理经常无法使用,不得不在本地写几个 PAC 文件备用。使用过程中发现用本地的 PAC 文件设定代理
Chrome, Firefox, Twitter For Mac 都能正常使用,唯独 Safari 不行。但是一旦本地开一个 web server 来获取这个文件就一切正常。
Google 一番得到结果,原因是 OS X Lion 的 sandbox 机制限制了 Safari 能够访问的文件,而我指定的 PAC 文件 Safari 没有权限读取。
;; Copyright (c) 2008 Apple Inc. All Rights reserved.;;;; sshd - profile for privilege separated children;;;; WARNING: The sandbox rules in this file currently constitute ;; Apple System Private Interface and are subject to change at any time and;; without notice.;;(version1)(denydefault)(allowfile-chroot)(allowfile-read-metadata(literal"/var"))(allowsysctl-read)(allowmach-per-user-lookup)(allowmach-lookup(global-name"com.apple.system.notification_center")(global-name"com.apple.system.logger"))
vardirect='DIRECT';varhttp_proxy='PROXY host:port; DIRECT';varblocked_list=["akamai.net","akamaihd.net"];varblocked={};for(vari=0;i<blocked_list.length;i+=1){blocked[blocked_list[i]]=true;}functionhost2domain(host){vardotpos=host.lastIndexOf(".");if(dotpos===-1)returnhost;// Find the second last dotdotpos=host.lastIndexOf(".",dotpos-1);if(dotpos===-1)returnhost;returnhost.substring(dotpos+1);};functionFindProxyForURL(url,host){returnblocked[host2domain(host)]?http_proxy:direct;};
ruby-debug-base19 version 0.11.25 does not work with ruby 1.9.3-p0 on OS X.
I found a workaround on WyeWorks Blog.
Here’s my modified gist to install the
working version with RVM managed ruby-1.9.3-p0
I’m taking the SaaS class. The class
project can be done using the pre-created VirtualBox image or on Amazon EC2
virtual machine, but I want to do it directly on my Mac because its more
convenient for me. Luckily, there is
instructions on how to
configure a bare VM.
Looking into the configure script
used to configure the ubuntu VM shows that there is nothing special in the
software used. It just needs some ruby gems, PostgreSQL, and Sphinx. (The script
will also install and configure Vim, Emacs, but that’s not relevant to me.)
Configuring the environment on OS X should be easy, if you are not using Xcode
4.3.
#encoding: UTF-8require'./plugins/post_filters'classStringhan='\p{Han}|[,。?;:‘’“”、!……()]'@@chinese_regex=/(#{han}) *\n *(#{han})/mdefjoin_chinese!gsub!(@@chinese_regex,'\1\2')endend# Use Jekylly's plugin system to modify the content before invoking rdicountmoduleJekyllclassJoinChineseFilter<PostFilterdefpre_render(post)post.content.join_chinese!endendend
AI Class 结束了,昨天收到了 Statement of Accomplishment。这学期的很多周末都花在了做作业上,最后看到这个还是挺开心的。
总体来说课程不难,但涉及的面很广。上课的一个很大的感受是,讲课好的老师可以帮你节省很多看书的时间,而且有些方法的思想只有在视频里才可以很好的展示。我买了
Artificial Intelligence A Modern Approach (AIMA) 这本书,在课程开始前按照课程涉及内容看了一些,速度比较慢。课程开始之后比较忙,一般只遇到不太明白的地方才看,明显感觉到比没上过课时看起来轻松很多。可惜的是本科和硕士阶段我很少遇到这样的老师,上课和自己看书的效果差不多。