Archive for the '学海无牙' Category


我的新鼠标罗技MX1100

Posted in Tech 2010-04-19 Comments26 CommentsComments

周六去电器店转时无意见看到鼠标很便宜,一想起自己用的那款杂牌“少胜”都已经4,5年了,表面的漆都成锈斑了不说,里面还曾断过线手动接过,早应该退役了,便挑了挑,最终选择了罗技的Logitech MX1100 Cordless Laser无线激光鼠标。

Logitech_MX1100_Cordless_Laser_Mouse 
这款MX1100应该可以说是之前罗技的MX RevolutionMX1000两款鼠标的结合进阶版本。

MX1100同样采用了MX1000的右手“扭曲”人体工学外形设计,左右两侧的指托很舒服,小指和拇指都可以放上面而和鼠标垫悬空,而且用的仿肤材质相当舒适。无线接收器还是老款的比较大。采用两节AA电池,据说可以用9个月,稍微有点重,我只装了一节,哈哈。

在功能上MX1100则和MX Revolution相近。采用了疾速滚轮,通过按键可以在无阻尼和普通滚动的两种方式间切换。但初用无阻尼模式好没感觉啊。。。

有两档dpi分辨率,最高可以调到1600,不过我基本800dpi之后就找不到北了。那个切换的按键不太容易按,好在不是很常用。隐藏的大拇指处的切换按键很有趣,可以通过程序设置来实现alt tab和ctrl tab的功能。另外配合软件可以修改改除了左右键外的所有按键的功能。但我设置了调节dpi分辨率的那个按键为音量调节无法成功,有可能是Win7的关系?另外我把拇指下面那个键换成了静音,还是很方便的。

使用了一天多,目前感觉还是相当满意的,价格上比国内行货便宜,50欧。不过看网上说在欧洲可以30欧拿下,汗。。。

update: 这款鼠标好重啊,2节电池放进去有152克,不适合玩游戏。。

德国工业设计大师Dieter Rams的十条优秀设计准则

Posted in 学海无牙 2009-11-10 CommentsCommentsComments,

看了一个片长为75分钟的《工业设计记录片: Objectified 2009》,感触颇深。从开始看到第一个显示出商标的品牌便是Braun德国布朗,当时正在说话的便是工业设计大师Dieter Rams。第二个品牌是Apple,发言人是设计了iMac, iPod和iPhone的Jonathan Ive

Jonathan Ive的设计理念深受Dieter Rams影响,他在Apple的一些设计很大程度上是参考和继承了Braun 6-70年代的设计,Gizmodo上有片被digg了3165次对比二者的文章《1960s Braun Products Hold the Secrets to Apple’s Future》。

作为一代设计大师,Dieter Rams有十条关于优秀设计的准则,Good Design,以下内容和图片为转载:

1. 好设计是创新的 Good Design is innovative
创新恒久远,山寨不流传
It does not copy existing product forms, nor does it produce any kind of novelty for the sake of it. The essence of innovation must be clearly seen in all functions of a product. The possibilities in this respect are by no means exhausted. Technological development keeps offering new chances for innovative solutions.image

2. 好设计让产品有用 Good Design makes a product useful
非可用勿扰
A product is bought in order to be used. It must serve a defined purpose – in both primary and additional functions. The most important task of design is to optimise the utility of a product.image

3. 好设计有美感 Good Design is aesthetic
美感很重要,懂得审美也很重要
The aesthetic quality of a product – and the fascination it inspires – is an integral part of the its utility. Without doubt, it is uncomfortable and tiring to have to put up with products that are confusing, that get on your nerves, that you are unable to relate to. However, it has always been a hard task to argue about aesthetic quality, for two reasons.
Firstly, it is difficult to talk about anything visual, since words have a different meaning for different people.
Secondly, aesthetic quality deals with details, subtle shades, harmony and the equilibrium of a whole variety of visual elements. A good eye is required, schooled by years and years of experience, in order to be able to draw the right conclusion.image

4. 好设计有助于产品的传达 Good Design helps a product be understood
让产品会说话
It clarifies the structure of the product. Better still, it can make the product talk. At best, it is self-explanatory and saves you the long, tedious perusal of the operating manual.image

5. 好设计无障 Good Design is unobtrusive
留点空间给用户
Products that satisfy this criterion are tools. They are neither decorative objects nor works of art. Their design should therefore be both neutral and restrained leaving room for the user’s self-expression.image

6. 好设计是诚实的 Good Design is honest
吹嘘,越吹越虚
An honestly-designed product must not claim features it does not have – being more innovative, more efficient, of higher value. It must not influence or manipulate buyers and users. image

7. 好设计是持久的 Good Design is durable
美感很重要,懂得审美也很重要
It is nothing trendy that might be out-of-date tomorrow. This is one of the major differences between well-designed products and trivial objects for a waste-producing society. Waste must no longer be tolerated. image

8. 好设计追求细节 Good Design is thorough to the last detail
成也细节,败也细节
Thoroughness and accuracy of design are synonymous with the product and its functions, as seen through the eyes of the user.image

9. 好设计关注环境 Good Design is concerned with environment
拒绝垃圾,实体或像素的
Design must contribute towards a stable environment and a sensible use of raw materials. This means considering not only actual pollution, but also the visual pollution and destruction of our environment.image

10. 好设计是极简的 Good Design is as little design as possible
无,极
Back to purity, back to simplicity.image

10个WordPress的.htaccess技巧(强烈推荐)

Posted in Tech, WordPress, 学海无牙, 网事如风 2009-03-19 Comments35 CommentsComments,,

对于Apache服务器,使用.htaccess文件可以进行很多相关网络服务访问的配置。而以下的10个技巧则专门针对WordPress所进行的设置,推荐大家参考使用:
参考原文:10 awesome .htaccess hacks for WordPress

1. 重定向WordPress的RSS Feed链接地址到Feedburner地址:
除了修改WP的模板文件来定制其输出的RSS Feed链接地址外,还可以使用.htaccess文件来进行设置(替换yourrssfeedlink为自己的Feedburner地址)。

  1. # temp redirect wordpress content feeds to feedburner
  2. <IfModule mod_rewrite.c>
  3.  RewriteEngine on
  4.  RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
  5.  RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
  6.  RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds2.feedburner.com/catswhocode [R=302,NC,L]
  7. </IfModule>

参考:How to redirect WordPress rss feeds to feedburner

2. 去除WordPress分类链接中的“/category/”:
默认情况下,WordPress的分类链接显示的样式为:

  1. http://e-spacy.com/blog/category/tech

其实其中的category部分没有任何意义,如果想去掉它可以修改.htaccess文件(替换yourblog为自己的网址)。

  1. RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]

参考:How to remove category from your WordPress url

3. 使用浏览器缓存:
可以修改.htaccess文件让访问者使用浏览器缓存来优化其访问速度。

  1. FileETag MTime Size
  2. <ifmodule mod_expires.c>
  3.   <filesmatch "\.(jpg|gif|png|css|js)$">
  4.        ExpiresActive on
  5.        ExpiresDefault "access plus 1 year"
  6.    </filesmatch>
  7. </ifmodule>

参考: Comment accelerer le temps de chargement de votre blog

4. 压缩静态数据
可以修改.htaccess文件来压缩需要访问的数据(传输后在访问端解压),从而可以减少访问流量和载入时间。

  1. AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
  2. BrowserMatch ^Mozilla/4 gzip-only-text/html
  3. BrowserMatch ^Mozilla/4.0[678] no-gzip
  4. BrowserMatch bMSIE !no-gzip !gzip-only-text/html

5. 重定向日期格式的WP Permalink链接地址为Postname格式:
如果你目前的Permalink地址为/%year%/%monthnum%/%day%/%postname%/ 的格式,那么我强烈推荐你直接使用/%postname%/ ,这样对搜索引擎要舒服得多。首先你需要在WordPress的后台设置输出的Permalinks格式为/%postname%/ 。然后修改.htaccess文件来重定向旧的链接,不然别人以前收藏你的网址都会转成404哦!(替换yourdomain为自己的网址)

  1. RedirectMatch 301 /([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ http://www.yourdomain.com/$4

参考: Redirect day and name permalinks to postname

6. 阻止没有referrer来源链接的垃圾评论:
设置.htaccess文件可以阻止大多数无Refferrer来源的垃圾评论机器人Bot Spammer。其会查询访问你网站的来源链接,然后阻止其通过wp-comments-post.php来进行垃圾评论。

  1. RewriteEngine On
  2. RewriteCond %{REQUEST_METHOD} POST
  3. RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
  4. RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
  5. RewriteCond %{HTTP_USER_AGENT} ^$
  6. RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

参考: How to deny comment posting to no referrer requests

7. 定制访问者跳转到维护页面:
当你进行网站升级,模板修改调试等操作时,最好让访问者临时跳转到一个声明的维护页面(和404错误页面不同),来通知网站暂时无法访问,而不是留下一片空白或者什么http bad错误。(替换maintenance.html为自己定制的维护页面网址,替换123.123.123.123为自己目前的IP地址,不然你自己访问也跳转哦)

  1. RewriteEngine on
  2. RewriteCond %{REQUEST_URI} !/maintenance.html$
  3. RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123
  4. RewriteRule $ /maintenance.html [R=302,L]

参考:Comment faire une page d’accueil pour les internautes

8. 设置你的WordPress防盗链:
盗链是指其它网站直接使用你自己网站内的资源,从而浪费网站的流量和带宽,比如图片,上传的音乐,电影等文件。(替换mysite为自己的网址和/images/notlink.jpg为自己定制的防盗链声明图片)

  1. RewriteEngine On
  2. #Replace ?mysite\.com/ with your blog url
  3. RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
  4. RewriteCond %{HTTP_REFERER} !^$
  5. #Replace /images/nohotlink.jpg with your "don't hotlink" image url
  6. RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]

参考:How to protect your WordPress blog from hotlinking

9. 只允许自己的IP访问wp-admin:
如果你不是团队合作Blog,最好设置只有自己能够访问WP的后台。前提是你的IP不是像我一样动态的哦。(替换xx.xx.xx.xx为自己的IP地址)

  1. AuthUserFile /dev/null
  2. AuthGroupFile /dev/null
  3. AuthName "Example Access Control"
  4. AuthType Basic
  5. <LIMIT GET>
  6. order deny,allow
  7. deny from all
  8. allow from xx.xx.xx.xx
  9. </LIMIT>

参考:Protecting the WordPress wp-admin folder

10. 阻止指定IP的访问:
如果你想要阻止指定IP的访问,来防止其垃圾评论,那么你可以创建自己的Backlist黑名单。(替换xx.xx.xx.xx为指定的IP地址)

  1. <Limit GET POST>
  2. order allow,deny
  3. deny from xx.xx.xx.xx
  4. allow from all
  5. </Limit>

参考:The easiest way to ban a WordPress spammer

VunkySearch:PS和Gimp教程搜索

Posted in Tech, 学海无牙 2009-03-15 CommentsCommentComments,,,

Vunky Search是一个提供PhotoShopGimp两款图片处理软件相关教程的搜索引擎。Vunky Search
其收集了两款图片处理软件累计共300多个相关教程。用户可以浏览完成的图片效果预览,或者输入关键字搜索,也可以按照Tag来进行索引。每个教程都是来自其它网站,包含详细图片处理步骤或者视频教学。同时用户还可以提交自己发现的教程,或者订阅RSS输出。

如果你是PS或者Gimp等图片软件处理的爱好者,不妨通过Vunky Search学习一下其他高手的教程。

Gmail在德国正式关闭

Posted in Tech 2008-06-26 Comments16 CommentsComments,

习惯地在浏览器地址栏里输入gmail.com回车,结果返回了一个没有Logo,没有背景,白白的页面。上面显示:

We can’t provide service under the Gmail name in Germany; we’re called Google Mail here instead.

If you’re traveling in Germany, you can access your mail at http://mail.google.com.

Oh, and we’d like to link the URL above, but we’re not allowed to do that either. Bummer.

For general information about Google, please visit www.google.com or www.google.de.

CeBIT的一天

Posted in Tech 2008-03-11 Comments10 CommentsComments,

周六抽出一天的时间去参观了CeBIT大展。每年的这个时候不是在考试便是回国,这次一天的行程很仓促,但也一饱了眼福。从上午9点半到晚上18点,8个小时多的时间内只走马观花地看了20个展馆。

去之前研究了展馆布局,还制定了浏览顺序,自以为功课做得圆满,结果却忽视展厅内部的展位顺序。因为大公司可能会把几个展台合并到一起,打乱了原本的规则。所以像玩RPG游戏里走迷宫那种方法在这里根本不适用。而且27个展馆大得出奇,近50万平方米的室内占地面积让人们根本无法在一天内看完所有展位。所以错过一些东西是尽然的,怪不得CeBIT官网上还提供了可以安装在手机或者PDA上的软件,来方便参观者制定自己的浏览路线。

展示会上最让我郁闷的是一些中国和中东地区的展位,不允许拍摄照片,不提供产品宣传资料,而他们的产品无非是一些没有丝毫创新,连外形都是仿制的USB闪存和电子相框。这其中的原由恐怕根本不是技术保密。。。不过其中有一家国内公司生产的类似iDog的音箱,外形上应该是模仿的《口袋妖怪》中的皮卡丘,据他们说是因为申请的外形专利还没有落实所以不允许拍照。另外特地想去参观魅族炒作了一年的M8,也只看到了空空的展台。

没想到WCG 2008竟然也在CeBIT上设置了《魔兽争霸》赛场,所以22号游戏馆成了人最多,最热闹的展厅,看台上连站脚的地方都没有,周边的一些游戏产品展示和试玩也都爆满。

一些大的参展公司都有自己的演示专场,其中微软公司那个Office 2007的演示非常赞。不但介绍的生动精彩,而且在投影屏幕底部跟踪演讲人移动的控制条,以及对应的触摸操作也很吸引人。只可惜它开始得太晚了,没能够看完我便匆匆离开CeBIT。

CeBIT其实更注重商务洽谈和技术员合作,走进很多展台后都会有人主动来索要名片并且邀请坐下细谈。

对于我这样的看客其实也就是凑个热闹罢了。而且本来以为能够得到很多特殊的赠品,结果除了几百张照片,几公斤宣传资料外,只有一支上面印有任天堂NDS Lite的原子笔。

坐车离开的时候竟然发现停车场里很多欧洲其它国家车牌的大巴,看来我这种坐4个小时车来的游客算舒服的了,不过早已感觉到脚上磨出了几个水泡。

PS: 全新志上会有我拍摄的照片和相关产品咨讯报道。