周公解囊
-
2009-12-10
gedit的代码折叠插件(code-folding for gedit) - [周公吐脯]
gedit是ubuntu默认的文本编辑器,配上一些插件,它可以成为一件称手而灵敏的轻量级编辑器
尽管关于如何配置插件的文章有不少,但仍有许多用户抱怨gedit缺少重要的代码折叠功能,因而宁可使用其他编辑器,
其实提供这一功能的插件半年前就有了,但网上鲜有提及,我想原因很简单:它是俄国人开发的,你很难在英语网站上找到它
以下是下载链接
folding.py , folding.gedit-plugin
安装:
将文件放在 ~/.gnome2/gedit/plugins/ 下,然后在gedit的 edit-preference-plugin中启动simple folding
使用:
点击任意一行
alt-z:自动折叠该行下的所有缩进行(例如一个for语块)
alt-x:展开折叠项
-
Mindflex--featuring a headset that reads your brain waves and a levitating foam ball--is the kind of game that must be seen to be believed. Recommended for players aged eight and older, the game begins when you strap on the headset so you can use your powers of concentration to move the ball around the game console and through a mind-bending obstacle course. A dial-in console lets you to keep the ball lifted on a cushion of air, but raising and lowering the ball must be accomplished by alternating concentrating and relaxing your mind.
At a Glance-
Ages: 8+
- 4 "C" and 3 "AAA" batteries (not included)
- Screwdriver for battery installation
Requires:
What We Think
Fun factor:
Durability:
Ease of assembly:
Educational factor:
Novelty factor:
The Good: Adults and kids guide a foam ball through obstacles using the power of their minds.
The Challenging: Players unable to perceive a relationship between their minds and the ball's height may grow impatient.
In a Nutshell: Foam ball really does rise and fall, and choice of games and obstacle courses provides hours of amusement.

Your telekinetic fantasies becomes a reality with the Mattel Mindflex. View larger.
The challenging obstacle course will hone your mental focus. View larger.
Headset Measures your Brain Waves
Tired of games that depend on the roll of a die or lucky draw? With the help of advanced technology, Mindflex introduces a whole new way to play--by using the power of your mind!You'll feel like a character in a science fiction movie as you strap on the headset, connect the clips to your ear lobes, and align the metal forehead sensor just above your left eyebrow. But even this strange accessory won't prepare you for the sight of a foam ball quivering five inches above the game console!
Move the Ball with the Power of your Mind
Skeptics will be quick to point out that the console's moveable fan nozzle holds the ball aloft on a cushion of air. However, as players learn to alternately focus and relax their minds, the ball will respond by rising and falling. An instruction manual provides various concentration and relaxation techniques to try such as math problems or visualization and practice exercises.Once you feel like you've mastered the art of telekinesis, you can test your mental acuity with five challenging games designed for groups of one to four players. Use the game console to select your game, set the difficulty level, and track your scores.
Design a Mind-Bending Obstacle Course
A variety of hoops, hurdles, funnels, and a teeter-totter can be positioned however you choose on the game console. Players use their minds to move the ball under, over, or through the obstacles. Several games test speed, while another challenges players to lift a ball up and through a funnel, shooting it across the game console to score points.While Mindflex's advanced technology is sure to intrigue, mastering the games may prove difficult for some. Because concentration techniques will vary from person to person, the game rewards patience and a willingness to experiment. Fans of mazes and brain teasers will appreciate the mental challenge, and creative types will like designing the obstacle courses.
Mindflex's game console requires four "C" batteries (not included), and the headset requires three "AAA" batteries (not included). The four foam balls should be handled with care to keep their ability to levitate. Fortunately, the game console features an inner compartment for safe ball storage.
What's in the Box
Game console, headset, four foam balls, and various obstacles. (Batteries not included.) -
我们经常会看到一些糟糕的设计,也时常被迫接受和使用这样的产品,这时就不由得要长嗟短叹。
其实,互联网上充斥优秀的设计作品,只是缺少归档和整理。
下面这个网站:
搜罗了许多互联网上的优秀设计,供用户参考。
点击导航栏上的collection,可以按控件/内容分类,如果明确自己的需求,就可以快速地找到干净的表单,简介的导航,漂亮的边框等等
用户可以直接查询这些设计的来源网站,所以你可以方便地用我在上一篇中提到的工具HTTrack直接把网站扒下来再利用
随便放几个例子:




-
正如传奇人物galaas常说的,会查询文献是一种重要的生存技能
尽管我们有型生活在一个网络时代,几乎什么内容都可以交给搜索引擎,然后总有一些不能接触网络的情形。比如当你身处一个冗长无聊的会议又想干点私活,需要查询一些API的时候;比如当你看到一个反动网站,却又不方便浏览的时候;比如当你看到一个创意设计,想要扒下来据为己用的时候。。。。
今天介绍一个galaas常用的软件:HTTrack
它自带一个spider,可以自动遍历网页,下载用户指定的网站,然而修改所有的链接和资源使之指向本地的文件,实现脱机浏览。
它的下载和浏览都是调用浏览器完成的,操作也很简单,网站上有详细的介绍,感兴趣的朋友可以自己去瞧瞧
另外firefox上有一个类似的插件:scrapbook, 如果不怕插件装太多影响性能也可以一试
-
2009-11-13
有之以有利,无之以为用 - [周公吐血]








