Category Archives: 教你一招

给照片加上泡泡对白

Bubblesnaps是个可以给照片加旁白效果的网站。注册以后,上传你的照片,利用一个在线的编辑工具插入你要的旁白,完成后,你就可以看到照片上你指定的位置会弹出一个气泡,上面写着你加入的文字,比较好玩。
周末不忙,就把这个功能的实现方式研究了一番,下面是我的Crack结果,供对此功能感兴趣的朋友参考。
这个网站主要的两个功能是给图片添加气泡,实现方法是通过:build.swf和服务器的PHP程序进行交互,保存用户加入的文字内容、位置和气泡形状;display.swf和服务器的get_snap.php程序进行交互,取得数据库保存的文字信息,并显示出来。shared.swf文件是在照片加载过程中显示载入中的提示。
前天晚上,自己写了个get_snap.php,用来跟display.swf交互,搞定了,看一下效果先:
点击这里查看
里面是张我们宿舍的照片,乱的不成样子,拖鞋也乱丢,哈哈,还可以看到我的书架。昨晚想解决中文显示的问题,研究了半天没搞出来。可以显示中文的时候,显示效果比较差。。。如果把字体嵌入到里面可以解决,但是生成的display.swf有3MB多,没法用。有Flash达人吗?帮忙解决一下这个问题,把这个东西做成WordPress插件,一定很有趣。
PS:盘古服务器最近比较慢,经常出现脚本执行超时问题,你可能访问我的博客时候会看到一个空白页面,没关系,再刷一两次就可以了。

plugoo


看到网页右边的“Jfish Live!”吗?这是http://www.plugoo.com提供的一个充满想象力的小程序,只要在网页中嵌入一段代码,然后,任何浏览这个网页的网友都可以直接和你设置好的MSN或者其他IM客户端进行即时交流!也就是说,只要Jfish Live那个“小盒子”显示Jfish在线,你就可以输入你的昵称和聊天内容,然后点击OK就可以发送消息给Jfish了,Jfish会在MSN里收到消息并立刻回复你,怎么样?是不是很酷呢?
注册服务后,plugoo会给你提供一段代码,如果直接使用的话,这个“小盒子”在firefox浏览器中是无法输入中文的,除非Ctrl+C Ctrl+V。昨天我向plugoo发送了反馈,晚上便收到了来自guillaume@plugoo.com的一封邮件,告诉我,只要去掉代码最后的<param name=”wmode” value=”transparent” />就可以了。没问题,现在很好用,呵呵,推荐给大家,可能不算是太实用,但这种功能还是很吸引人的:)
ps:今天收到微软的电话,一个MM打的,告诉我4月20号不能带数码设备,DV、DC、笔记本电脑都不可以,票只能本人使用,不能转让他人。我特地问了一下能不能拿手机,得到了肯定回答,看来我得找个拍照效果好的手机了……

plugoo 使用第一天:
遇到一个湖南人,在江西上学,大概从Baidu搜索引擎过来,读到我06年1月份的一篇帖子,开锁的方法,跟我讨论了一下开锁的问题,以为我跟他一样,对如何开锁有研究,还想传授开密码锁的方法给我,真是热心。这时候我才发现,在百度里面搜“开锁的方法”,第三个就是我的那篇帖子,晕!这篇帖子已经被读过1000次了,不知道有没有造成恶劣影响,以后写博得谨慎些,呵呵

MBTI


MBTI是何物?之前J并不知晓。上周的软件项目管理课上,贾老师提到了这个概念,于是回来研究了一番。
MBTI是Myers-Briggs Type Indicator的简称,一般称作MBTI人格理论,属于心理学范畴。在心理学中,人格是人们在生活、工作中独特的行为表现,比如思考方式、决策方式等等。MBTI是一种国际上比较流行的人格划分理论,将人格划分为四个维度,每个维度两个方向,分别为:
我们与世界相互作用的方式       外向E(Extraversion)—–内向N(Introversion)
我们获取信息的主要方式          感觉(Sensing)—–直觉(Intuition)
我们的决策方式                         思考(Thinking)—–情感(Feeling)
我们的做事方式                         判断(Judging)—–知觉(Perceiving)
四个维度,16种组合方式,将人格划分为16种性格类型,比如INFJ
要知道自己属于哪一种,可以填写下面这个英文的在线测验

http://www.humanmetrics.com/cgi-win/JTypes2.asp

还有其他两个中文测验,有兴趣可以试试,感觉这个英文测验稍准一些。

下面这个是一个心理学博客提供的测验,个人认为不是很成熟

http://www.psytopic.com/mag/post/820.html

这应该是个台湾的网站,每一行有5分按照倾向性进行分配,分析结果很全面,但是感觉此种测验随机性较强,可能回答三次,每次的分值分配都会有所出入,对最后的结果会有影响。

http://kllc5.xddddd.com/mbti/

昨晚跟室友还讨论过MBTI这种东西是否真的有用。室友觉得这些东西是不可信的,有心里暗示之类的东西在里面。我觉得这个对个人还是有一定参考价值的,如果觉得没有价值,那也是可以用此类东西娱乐一下的,呵呵

在英文的测试中,我的测验结果如下:

Continue reading MBTI

谁影响了我们的判断?


十月长假,要去哪里玩呢?你会花几十块钱看一部你可能喜欢,或者不喜欢的电影吗?你真的准备放弃这份感情吗?在考试前,再做份套题,看看笔记,会考的更好吗?我该不该换份工作,这工作干着太无聊了,没有前途……
我们生活在一个充满着不确定的世界,面对未来,只能猜测。过去所发生的一切,谁也不会有完整清晰的认识。所以,我们没有办法肯定自己是否作出了正确的判断。
你是否喜欢《夜宴》呢?为了回答这个问题,你可以填写一张有两列的表格,一列是“关于这部电影,我所喜欢的”,另一列是“关于这部电影,我所不喜欢的”,然后看看哪一列填写的更长。为了更精确一点,也许你应该根据重要性为每列中的条目赋予一定的权重。如果你按照此种方法完成这个程序,那么,你可能对自己的判断非常有信心。在现实生活中,你必须经常性的迅速做出一些判断,但是往往没有时间,也没有足够的信息来使用这样的方法。那通常我们是如何做出判断的呢?
心理学家认为,人们的判断依赖于启发法而不是正规的分析方法。启发法会提供一些非正式、简洁的经验法则,能帮助我们更容易的做出判断。所以,了解这里的“启发法”就可以避免某些类型的错误判断的发生。尽管这并不能防止你犯错,但是了解一些启发法还是很有帮助的,下面分别介绍三种启发法:可用性、代表性和锚定法(大概这些名词听起来有些古板,不过里面的内容倒蛮有趣的)。

可用性启发法

下面需要你做一个小小的判断。去找一篇英文短篇,大概四五百字的样子,你觉得在该篇里面是以“K”(如kilo)打头的单词更多?还是第三个字母位置是“K”(如duke)的单词更多呢?想想看:-)
你可能觉得以“K”打头的单词更多些。事实上,“K”出现在第三个位置的概率大约是前者的两倍!为何大多数人都会觉得“K”更可能出现在第一个位置呢?答案与来自记忆的可用性有关。与想起“K”出现在第三个位置的单词相比,想起“K”开头的单词要容易很多。这样,你的判断来自于对可用性启发法的使用:你让你的判断基于记忆中易于使用的信息。一般情况下,这些易于使用的信息会帮助你做出准确的判断,但也会出现麻烦。比如你的记忆中有一些偏向性的信息,或者记忆信息不怎么准确。另外心情也会影响记忆的可用性,如果你正在做一些关于自己未来的重要判断,就应当考虑到此种影响。你应该问问自己:“我现在的心情是否会影响来自记忆的某些信息?”与你心情一致的记忆信息往往更容易被提取出来,所以,在自己心情不够平稳的时候去做出判断更容易出问题。
试试看,给下面四个国家人口从多到少进行排序:
a.瑞典
b.印尼
c.以色列
d.尼日利亚
研究者证明,大体上,如果你对某个国家了解的越多,就会对这个国家人口的估计越高。(正确答案是:b,d,a,c)
做对了吗?呵呵,没有关系,引用这个例子只是想说明,在你做出判断之前,需要思考一下你的信息来源,那些信息是否可用、有效?我们平日了解这些国家都是通过报纸,电视,网络,这些媒体其实向你提供的信息是局部、不完整的,是不能直接拿来做此种判断的。

代表性启发法

用此种方法做判断时,你会假设,如果某个东西具有一个范畴成员的典型特点,它事实上是那个范畴的成员。这种利用过去的信息来对当前类似情形判断的思想我们并不陌生,归纳推理的本质便是如此。在大多情况下,只要你对匹配的特征和范畴没有偏见,沿着相似性的路线做出的判断将会比较合理。
举个例子,假设你要买彩票,彩票由三位数组成,各位可以是0-9之间的自然数。在下面的号码中,你更愿意在哪个数字上下注呢?
Continue reading 谁影响了我们的判断?

The Joshua tree epiphany

Joshua tree
前些日子读《The Non-Designer’s Design Book》的时候,书中第一章的一个小故事让我深有感触,以致于书中所教的那些基本的设计原理没有记住几个,倒是打开这本书首先会想这个故事。
摘录如下:
Many years ago I received a tree identification book for Christmas. I was at my parents’ home, and after all the gifts had been opened I decided to go out and identify the trees in the neighborhood. Before I went out, I read through part of the book. The first tress in the book was the Joshua tree because it only took two clues to identify it. Now the Joshua tress is a really weird-looking tree and I looked at that picture and said to myself, “Oh, we don’t have that kind of tree in Northern California. That is a weird-looking tree, and I’ve never seen one before.”
So I took my book and went outside. My parents lived in a cul-de-sac of six homes. Four of those homes had Joshua trees in the front yard. I had lived in that house for thirteen years, and I had never seen a Joshua tree. I took a walk around the block, and there must have been a sale at the nursery when everyone was landscaping their new homes-at least 80 percent of the homes had Joshua trees in the front yards. And I had never seen one before! Once I was conscious of the tree-once I could name it-I saw it everywhere. Which is exactly my point: Once you can name something, you’re conscious of it. You have power over it. You own it. You’re in control.
这有点象J几个月前不会弹吉他,看到别人弹只知道:哦,那家伙在弹吉他。现在,虽说弹的比较烂,但总会看看别人吉他的样子,弹奏的动作,音乐的节奏……
也许我们应该突破随着时间推移形成的生活圈圈,去了解、学习一些自己未曾留意过的东西,而不仅仅局限在自己的专业,喜欢的事物。这样,我们的生活才会更丰富,更快乐,你觉得呢?

系统必备维护软件之一-Hijackthis

在这个IE插件满天飞,流氓软件横行的时代,有一些工具软件是你不能没有的。在接下来的几天里,J会把自己所收藏的几件好用的系统维护工具介绍给大家,告诉大家基本的使用方法,以后遇到问题就不会束手无策了,不用求人,自己轻松搞定。
今天给大家介绍的是HijackThis,一款功能强大的系统维护工具。
为什么需要HijackThis?
相信不少人已经被现在乱七八糟的工具栏,间谍软件,莫明其妙的经常弹出广告窗口搞的没了脾气。我经常帮别人解决系统问题,几乎每次都会发现那些电脑里面都装着什么雅虎助手,Yahoo工具栏,XXX工具栏,我也每次都会问一下他们是否觉得那个东西真的有用。得到的结果都差不多,他们都不懂,也不知道什么时候就给装上了,自己从来没主动装过,根本没用过。后来觉得挺悲哀的,一个800×600分辨率的显示器,开一个IE浏览网页,本来可视范围就很小,还被装了两个工具栏,那可怎么浏览网页啊?今天老婆说她家机子无法浏览一个网站,我第一感觉就是肯定是机子里面装了雅虎助手之类,影响了浏览器正常工作。在我远程协助帮她关闭了雅虎助手之后,浏览就变的正常了。只是那些烦人的工具条还是出现,要解决,就得用HijackThis。
HijackThis除了可以帮助你去除这些烦人的流氓软件之外,对于IE首页被篡改,清理右键菜单,删除不必要的启动项,加速系统启动速度,发现潜在的恶意程序都很有用。如果你一直被此种问题困扰,那就继续往下看吧。
关于HijackThis
HijackThis是一名荷兰学生开发的,它主要是通过扫描恶意软件经常光顾的注册表的位置,其他文件的位置来生成一张详细的列表,用户可以对列表进行分析,直接去除一些无用或者可疑文件,达到清除目的。你可以去作者的网站下载,也可以直接从这里下载
注:如果看完此教程以后你并没有完全弄明白,请不要随意使用,以免弄出更加棘手的问题。
HijackThis概览
下载并运行HijackThis之后,你会看到如下界面:
此界面主要是为了帮助新用户快速找到自己所需要的功能。Do a system scan and save a logfile与Do a system scan only点击进入以后的界面是一致的,只是第一个进入以后除了自动开始扫描之外,会将LOG文件自动保存到HijackThis的同一个目录下。如果你是在WINRAR中直接运行此程序,最好解压出来,为其建立一个文件夹,这样它运行所产生的日志文件和备份文件都可以保存下来。假如你误删了某个启动项,就可以通过备份文件恢复到原先的状态。View the list of backups主要作用就是浏览你每次做操作以后软件自动备份的文件,帮助你在需要的时候恢复它。Open the Misc Tools section可以打开HijackThis附带小工具的列表,你可以从中选择需要的工具完成一些操作。如进程管理,Hosts文件管理等等。
Open online HijackThis QuickStart是个网页链接,点击以后打开一个英文的HijackThis的简单教程,帮助你快速上手。
None of the above, just start the program与Do a system scan only的区别在于点击进入后不会自动进行扫描,需要你手工的点击Scan才能开始。
下面我们进入Do a system scan and save a logfile。
点击进入后,我们会看到如下的界面:
Continue reading 系统必备维护软件之一-Hijackthis

有趣的理论:运动和恋爱不相容原理

在一个心理学博客的网站看到了一篇蛮有趣的理论:运动和恋爱不相容原理。这个理论大概的意思是说,人可以主动的通过运动和恋爱两种方式来调节自己体内激素的平衡,单身男女过多的投入运动,占据恋爱调节体内激素平衡的功效,就会减少对恋爱的渴望,从而错过寻找伴侣的好时机。
从这个理论来看,失恋的最好解决方式应该是运动,除了心理上的问题有待解决以外,失恋导致的体内激素失衡可以通过运动来调节,然后慢慢的逐步解决心理的问题。哈,自己瞎说呢,不知道对不对。如果哪位正在热恋呢,还是少带着自己的恋人出去运动为妙,按照此种理论,运动可能会暂时降低你对恋人的依赖感,从而影响你们的热度:)
好了,还是看原文吧:
据《健康时报》报道,”多流汗,少流泪。”一些瑜伽等室内健身俱乐部和户外运动俱乐部常常用这样的煽动性语言招揽客人,许多追求爱情和婚姻却屡屡碰壁的单 身女人常常通过参与运动,来消除郁闷、降低压力。但令人吃惊的是,一些白领丽人参与运动后,整个人仿佛脱胎换骨,从骨子里焕发朝气,精神面貌非常好,将恋 爱和婚姻中受到的挫败感丢到九霄云外,但她们在调整好身心状态后,却不急于寻找爱情,而变得越来越痴迷运动。尤其是当工作与运动冲突之后,短暂中止运动 后,人变得失魂落魄,似乎比失恋的打击更大。这是怎么回事?单身女性应不应该依赖运动呢?
和谐心理学专家解释,人主动调节体内激素平衡的行为是运动和恋爱。因为这两种行为不仅能平衡体内激素,更可以分泌有益于身心健康的愉快激素,比如内啡呔。 因为当代爱情不太容易常有,健身却可以常做,所以很多人,无论男女,都宁可选择健身,而不是去谈恋爱。相比之下,男人还有其他方法调节激素平衡,比如喝 酒、吃饭、聊天、卡拉OK到深夜,很少痴迷运动。女人的选择面比较小,逛街、和好友聊天的效果远远不如运动明显,所以健身成为很多单身女性调解体内激素平 衡的主要方法。但是,和谐心理学专家并不支持单身女性痴迷运动。由于运动可维持激素平衡,”占据”了恋爱调节激素平衡的功效,导致这些女性荒废了谈恋爱的 好时机,造成年龄越来越大,选择年龄相当的男性机会越来越少,对爱情变得越来越畏惧。还有的女人运动成瘾以后,私自增加运动强度和运动强度,造成肌肉慢性 疲劳损伤。
也许有的单身女性觉得和谐心理学理论过于绝对化,毕竟有的恋人是在健身和运动俱乐部里相识、相爱,结成百年好合。但这些人毕竟是少数,由于男人比女人更现 实,如果他想以结婚为目的寻找配偶,大多数情况下会比较直接地去到以恋爱为主的场所去。即便是热爱运动的男人,在健身俱乐部运动,也因为他的激素被运动这 个平衡的因素所制约,缺乏寻找爱情的动力。所以,对于单身女人,特别对大龄女青年而言,痴迷运动并非长久之计,要主动创造与单身异性交往的机会,大胆追求 爱情,及早回归家庭。要知道,幸福的家庭、体贴的爱人,才是女人最好的庇护所,也是维持健康的根本。

TIPS FOR USING SEARCH ENGINES

Search engines can help you find specific information on the Internet, but they also flood you with large amounts of irrelevant information. With a little bit of extra effort on your part, though, you can make sure that a search engine finds exactly what you want, as quickly as possible. The next time you use a search engine, try some of the following tips.
Search within categories
Many search engines, such as Yahoo!, display categories such as Computers & Internet or Business & Economy. If you click on a category and then use the search engine, you’ll have the option of searching the entire Internet or limiting your search to within the currently selected category. Obviously searching within a selected category will take less time and avoid a lot of irrelevant websites.
Still, you might like to search the entire Internet just for the surprise of seeing what the search engine might uncover that is not in your specific category.
Use specific words
If you want to find all websites that focus on birds, you could type the word “bird” into a search engine. Unfortunately, the search engine might return thousands of irrelevant websites that talk about badminton birdies or different ways to cook game birds. Instead of searching for general words, use more specific words such as “ornithology” (which is the branch of zoology dealing with birds). The more precise your search terms, the less likely the search engine will be to return irrelevant websites.
Use multiple words
You can also narrow your search by typing in multiple words. For example, if you wanted to find information about Miami, Florida, type in the two words “Miami” and “Florida.” If you just search for “Miami” or “Florida,” the search engine might bombard you with websites about the Miami Dolphins football team or the Florida Marlins baseball team. In general, the more words you search for, the more likely the search engine will find exactly what you want.
Use Boolean operators
Many search engines allow you to focus your search by using two different Boolean operators: AND and OR.
If you wanted to search for all websites that contain both the words “hot” and “dog,” you would simply type the following into the search field:
hot AND dog
This search would find websites devoted to hot dogs, but could also turn up websites that talk about ways to cool down a dog on a hot day.
If you wanted to search for all websites that contain either the word “hot” or “dog,” you would type the following into the search field:
hot OR dog
This could turn up websites that talk about hot dogs along with sites that mention dogs, different ways air conditioning can cool you down on a hot day, hot chili sauces, or dog food.
Be wary of what you find
The order that a search engine ranks websites can influence which ones people may visit, so to increase the odds that people will visit a specific website, some websites pay search engines to put them first (or at least near the top) of any list of related websites. The better search engines identify which websites paid for greater exposure, but other search engines may not be so honest.
Also, because search engines scan websites for keywords that people are most likely to search for, many websites hide multiple copies of the same keyword on their web pages. This tricks a search engine into thinking the website contains more information about a particular keyword than it really does.
As with reading newspapers, listening to the radio, or watching the news on television, always be wary of the source of your information. Search engines can find information for you, but they can’t verify the accuracy of the information. Anyone can put any information on a website.

SEARCH ENGINES

The key to finding anything on the Internet is to use a search engine, but if you ask different search engines to find the same information, each one will find a number of websites not found by the others. Rather than limiting yourself to the tunnel vision of a single search engine, experiment with some of the different search engines listed below, and you may uncover information that your favorite search engine missed.
Even better, you may find that one search engine is better at finding certain types of data or offers a unique perspective to searching for information. For example, the Teoma search engine tries to cluster search results into subjects. So if you search for “Mustang,” the Teoma search engine clusters the results according to “Ford Mustang” and “Mustang horses.” The following list includes some of the more powerful search engines:
About
http://about.com
AlltheWeb
http://www.alltheweb.com
AltaVista
http://www.altavista.com
AOL Search
http://search.aol.com/
Ask Jeeves
http://www.askjeeves.com
Google
http://www.google.com
Hotbot
http://www.hotbot.com
LookSmart
http://www.looksmart.com
MSN
http://www.msn.com
Open Directory Project
http://dmoz.org
Teoma
http://www.teoma.com
Yahoo!
http://www.yahoo.com
Meta-search engines
Rather than visit multiple search engines yourself, you can save time by using a meta-search engine, which simultaneously sends your query to two or more general-purpose search engines and eliminates duplicate results. Here are some popular meta-search engines:
DogPile
http://www.dogpile.com
Mamma
http://www.mamma.com
MetaCrawler
http://www.metacrawler.com
Search.com
http://www.search.com
Specialized search engines
Finally, don’t ignore specialized search engines designed to search only for websites pertaining to a particular topic. Specialized search engines often find obscure web-sites that the larger search engines might overlook. There are specialized search engines for everything from caring for fish to the latest crafting fads. Here are a few interesting ones:
AvatarSearch Finds occult information about witchcraft, vampires, pagan rituals, astrology, tarot cards, and other topics that often panic right-wing conservatives (http://www.avatarsearch.com).
Black Web Portal Finds websites of particular interest to blacks (http://www.blackwebportal.com).
Crime Spider Searches for websites providing information about various crime and law enforcement sites and organized by topics such as serial murder, urban legends, and cybercrime (http://www.crimespider.com).
Disinformation Conspiracy theory-laden search engine that helps you uncover websites offering the “real truth” behind the pyramids of Mars, the sightings of black helicopters over America, film footage of Bigfoot, and the government secrets hidden in Area 51 (http://www.disinfo.com).
Education World Finds websites that can help students, teachers, and parents learn more about education (http://www.education-world.com).
Federal Web Locator Lists many of the websites from various government agencies and organizations (except for the really cool ones like the CIA and FBI). Maybe you can use it to find out where all your hard-earned tax dollars are going (http://www.infoctr.edu/fwl).
GovSearch Collection of government search engines for finding information about the U.S. government: IRS documents, Customs Service, NTIS, U.S. law code, legislative information, OSHA regulations, and information from many other agencies and departments (http://www.nwbuildnet.com/nwbn/govbot.html).
CopSeek Directory and Police Search Engine Helps you find websites related to law enforcement so you can find a policeman when you need one (http://www.copseek.com).
NerdWorld Search engine dedicated to computer and technology fanatics (http://www.nerdworld.com).
Que Pasa! A bilingual search engine geared towards Hispanics and Latinos, available in both English and Spanish (http://www.quepasa.com).
Satanist Net Search engine geared to helping you find satanic information on the Internet (http://www.satanist.net).
Women.com and WWWomen Two search engines geared toward helping women find information and resources on the Internet (http://www.women.com and http://www.wwwomen.com).
Kid-safe search engines
If you leave your children unsupervised, it’s likely that they’ll eventually find bomb-making instructions and pornography on the Internet. While keeping children isolated from such information may be impossible, you can at least limit their searching to kid-safe search engines. Unlike general-purpose search engines, kid-safe search engines won’t accidentally display links to pornographic or bomb-making websites. Try one of the following:
Ask Jeeves for Kids
http://www.ajkids.com
CleanSearch
http://www.cleansearch.com
Go.com
http://www.go.com
Yahooligans
http://www.yahooligans.com
Multimedia search engines
Most search engines help you find text, but what if you want to find a song, a picture, or a video clip? Rather than waste your time using a general purpose search engine to find an MP3 file of your favorite band, try using a special multimedia search engine instead. These multimedia search engines specialize in searching only for specific audio, graphic, or video files.
Here are some of the more popular multimedia search engines:
Ditto
http://www.ditto.com (see Figure 1-1)
FAST Multimedia Search
http://multimedia.alltheweb.com
SpeechBot.net
http://speechbot.research.compaq.com
MIDI Explorer
http://www.musicrobot.com