Archive for MAC手册

Search On VeryCD

最近在看Safari Extensions. 自己也尝试着写了一个. Search On VeryCD, 就是在右击菜单里面添加search功能.
search on verycd. 同时在safari偏好设置, 可以设置窗口打开的方式.

这是我第一个Extension, 所以有bug也是避免不了的, 如果有什么bug, 请随时联系我.

其实Extensions还是挺容易的.而且safariextz只是一个压缩格式而已, 你可以在命令行里面使用 xar -xf 'TheExtensionName.safariextz' 来解压文件, 然后可以看到里面所有的内容. 在windows下面你可以使用7zip来解压这个文件. 你可以尝试解压我的Extensions, 来看看到底怎么回事.

require ‘rubygems’ => false

The value returned by require doesn’t tell whether there was an error or not (if the file can’t be found, a LoadError exception will be raised).

since require tries to avoid loading a file more than one time, it says whether you required the file for the first time (true) or if it had already been loaded (in this case returns false and doesn’t try to load the file again). So, the fact that in irb

require ‘rubygems’

returns false only means that the file rubygems.rb had already been loaded,
and it wasn’t necessary to load it a second time.

~$ irb
irb(main):001:0> require 'time'
=> true
irb(main):002:0> require 'time'
=> false

Get Windows Live Hotmail in Mail.app

Start by opening up Mail and going to the Preferences. Click on the Accounts tab and create a new account by clicking on the plus (+) at the bottom. Enter your name, email address and password, then click continue to set the incoming mail settings. Enter the following:

Account Type: POP
Description: Hotmail (or whatever you like)
Incoming Mail Server: pop3.live.com
Username: Your email address
Password: Your password

In the next section, you should leave the Use SSL checkbox checked and Authentication as Password. For the outgoing mail settings, enter the following:

Description: Hotmail (or whatever you like)
Outgoing Mail Server: smtp.live.com
Check “Use only this server”
Check “Use Authentication”
Username: Your email address
Password: Your password

As before, leave Use SSL checkbox check and Authentication as Password.

事实上 Mail.app会自动识别并使用MSN POP, 基本上只要把第一个页面的输入用户名和密码, 其他会自动配置好.