Loading...

Archive for May, 2009

import this

by Dofy

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!

favicon 是一个站点的图标, 通常我们可以在地址栏和收藏夹中见到他. 比如下面一些大家比较熟悉的图标:

Google , Google Reader , Twitter , 煎蛋 , 小众软件

还有本站的 phpz.org :D

一般情况下, 只要放一个名为 favicon.ico 的图标文件到站点根目录下, 大部分浏览器都会自动显示在地址栏和收藏夹中.

如果没有显示你可以手动在页面中加入 favicon 代码, 也支持 gif 和 png 格式的图片, 具体方法参考这里: http://zh.wikipedia.org/wiki/Favicon

最近在折腾我的 GM 脚本站点时(), 发现一个非常不错的免费在线制作 favicon 的站点: favicon.cc 操作简便, 但功能很强大:

favicon-cc

  1. 可以导入图片, 支持 jpg, jpeg, gif, png, bmp, ico 等格式, 最大 4M, 自动缩放;
  2. 支持创建逐帧动画图标 ( favicon 是支持动画的, 注意上面 GM 脚本站点的图标 )
  3. 可以自由免费下载站点里收藏的图标 (近 3W 个), 而且都有 tag , 可以很准确地搜索到需要的图标;
  4. 注册后可以保存自己创建的图标;

就介绍这么多, 自己去体验一下吧 ;)

一个新站, 偶的 GM 脚本集合.
地址: http://gm.phpz.org/

目前包括针对 Twitter, Plurk 和 Picasaweb 等站的 5 个脚本.

会陆续丰富更新, 敬请关注.