Tag Archives: Internet

Worst color scheme

This is a screenshot from the settings page (classic non-ajax version) of Windows Live Mail (aka Hotmail):

white_on_grey.png

White on grey? Seems Microsoft needs to hire better designers.

随心所欲地配置代理

回到国内,要访问一些网站就必须想办法绕过 The Great Firewall of China。我有时用 ssh tunnel 使用自己在国外的主机上配置好的代理,有时就使用学校提供的代理。

Greatwall

我比较喜欢 KDE 下 Konqueror 的代理配置方式,可以指定只在访问某些站点时使用代理。大多数浏览器都只能指定不使用代理的网站,所以在大多数情况下都在不必要地使用代理。前两天找了一下代理配置脚本的文档,找到了解决办法。其实很简单,写一个叫 FindProxyForURL 的 JavaScript 函数,比如:

function FindProxyForURL(url, host)
{
  // 需要代理的网站
  var npdoms = [".google.com",
                ".bbc.com",
                ".bbc.co.uk",
                ".wikipedia.org",
                ".blogspot.com",
                ".faqts.com"];

  for (var i = 0; i < npdoms.length; i++) {
    if (dnsDomainIs(host, npdoms[i])){
      // 在下面填入你的代理服务器地址和端口
      return "PROXY yourproxy.example.com:3129";
    }
  }
  return "DIRECT";
}

浏览器调用这个函数来确定如何访问一个URL,这个函数的返回值如果是 "DIRECT" 就是直接访问,如果是 "PROXY host:port" 就使用指定的 HTTP 代理,另外也可以用 "SOCKS host:port" 来指定 SOCKS 代理。

把它存为一个后缀为 .pac 的文件,然后在浏览器里的代理配置里选自动配置脚本,把地址填进去。比如如果在windows下把上面的文件存为 c:\proxy-conf.pac 就在 Firefox 的自动配置脚本地址栏里填 file://c:/proxy-conf.pac

更详细的解释可以在这里找到。

Windows Live Mail beta

今天收到Windows Live Mail beta的邀请,打开试了一下,觉得做得还不错。其实新意不多,无非是学GMail在用AJAX使得界面比较流畅,另外空间增加到2G。不过那个preview panel只有在IE下能显示,在FireFox下邮件里的图片也显示得有些不正常,考虑到GMail在FireFox里用得很好,不知是不是微软故意用了些IE-specific的东西。

Edit: 今天注意到微软发布了这条消息,看来还是会支持其他浏览器的:

We just started building this version of the Mail Beta that works for all browsers. We’re not done yet, so some functionality is missing right now. You can read your mail right now by clicking on the Inbox.

Note that the web browser you are using does not yet support all Mail Beta functionality. You can still use this browser to access basic Mail Beta functionality, like reading and composing messages. We will make more functionality available for this web browser soon.

这里是Windows Live Mail的feathures

Google Talk

不出吾所聊, google果然要推出instant messenging服务了,详情见 http://talk.google.com