论坛: 菜鸟乐园 标题: 【吐血推荐】一个菜鸟要成为高手的必修基础【菜鸟乐园必读之贴】 复制本贴地址    
作者: abctm [abctm]    版主   登录
提问的智慧-How To Ask Questions The Smart Way

Copyright (C) 2001 by Eric S. Raymond
中文版Copyleft 2001 by D.H.Grand(nOBODY/Ginux)

英文版:http://www.tuxedo.org/~esr/faqs/smart-questions.html
感谢Eric的耐心指点和同意,本文才得以完成并发布,本指南英文版版权为Eric Steven Raymond所有,中文版版权由D.H.Grand[nOBODY/Ginux]所有。

目录

简介
提问之前
怎样提问
谨慎选择论坛
尽量使用邮件列表
用辞贴切,语法正确,拼写无误
用易读格式发送问题
使用含义丰富,描述准确的标题
精确描述,信息量大
话不在多
只说症状,不说猜想
按时间顺序列出症状
别要求私下答复
明白你想问什么
别问应该自己解决的问题
去除无意义的疑问
谦逊绝没有害处,而且常帮大忙
问题解决后,加个简短说明
如何理解答案
RTFM和STFW:别烦我啦
还是不懂
面对无礼
决不要象个失败者
三思而后问
好问题,坏问题
找不到答案怎么办

====
简介
====

在黑客世界里,当提出一个技术问题时,你能得到怎样的回答?这取决于挖出答案的难度,同样取决于你提问的方法。本指南旨在帮助你提高发问技巧,以获取你最想要的答案。

首先你必须明白,黑客们只偏爱艰巨的任务,或者能激发他们思维的好问题。如若不然,我们还来干吗?如果你有值得我们反复咀嚼玩味的好问题,我们自会对你感激不尽。好问题是激励,是厚礼,可以提高我们的理解力,而且通常会暴露我们以前从没意识到或者思考过的问题。对黑客而言,“问得好!”是发自内心的大力称赞。

尽管黑客们有蔑视简单问题和不友善的坏名声,有时看起来似乎我们对新手,对知识贫乏者怀有敌意,但其实不是那样的。

我们不想掩饰对这样一些人的蔑视--他们不愿思考,或者在发问前不去完成他们应该做的事。这种人只会谋杀时间--他们只愿索取,从不付出,无端消耗我们的时间,而我们本可以把时间用在更有趣的问题或者更值得回答的人身上。我们称这样的人为“失败者”(由于历史原因,我们有时把它拼作“lusers”)。

我们也知道,很多人只想使用我们编写的软件,对技术细节没什么兴趣。对多数人们而言,计算机不过是一个工具,一种达到目的的手段;他们有更重要的事情要做,有更重要的生活要过。我们明白这点,也并不奢望每个人都对另我们痴狂的技术问题有兴致。然而,我们回答问题的风格是针对这样一群人--他们有兴趣,并且愿意积极参与问题的解决。这点不会改变,也不应该改变;如果变了,我们将失去我们引以为傲的效率。

我们在很大程度上属于志愿者,从繁忙的生活中抽出时间来解惑答疑,而且时常被提问淹没。所以我们无情的滤掉一些话题,特别是抛弃那些看起来象失败者的家伙,以便更高效的利用时间来回答胜利者的问题。

如果你觉得我们过于傲慢的态度让你不爽,让你委屈,不妨设身处地想想。我们并没有要求你向我们屈服--事实上,我们中的大多数人最喜欢公平交易不过了,只要你付出小小努力来满足最起码的要求,我们就会欢迎你加入到我们的文化中来。但让我们帮助那些不愿意帮助自己的人是没有意义的。如果你不能接受这种“歧视”,我们建议你花点钱找家商业公司签个技术支持协议得了,别向黑客乞求帮助。

如果你决定向我们求助,当然不希望被视为失败者,更不愿成为失败者中的一员。立刻得到有效答案的最好方法,就是象胜利者那样提问--聪明、自信、有解决问题的思路,只是偶尔在特定的问题上需要获得一点帮助。

(欢迎对本指南提出改进意见。任何建议请E-mail至esr@thyrsus.com,然而请注意,本文并非网络礼节的通用指南,我通常会拒绝无助于在技术论坛得到有用答案的建议。)
(当然,如果你写中文,最好还是寄到DHGrand@hotmail.com;-)



========
提问之前
========



在通过电邮、新闻组或者聊天室提出技术问题前,检查你有没有做到:
1. 通读手册,试着自己找答案。
2. 在FAQ里找答案(一份维护得好的FAQ可以包罗万象:)。
3. 在网上搜索(个人推荐google~~~)。
4. 向你身边精于此道的朋友打听。

当你提出问题的时候,首先要说明在此之前你干了些什么;这将有助于树立你的形象:你不是一个妄图不劳而获的乞讨者,不愿浪费别人的时间。能说明你从这些操作中学到了什么就更好了。如果提问者能从答案中学到东西,我们更乐于回答他的问题。

周全的思考,准备好你的问题,草率的发问只能得到草率的回答,或者根本得不到任何答案。越表现出在寻求帮助前为解决问题付出的努力,你越能得到实质性的帮助。

小心别问错了问题。如果你的问题基于错误的假设,普通黑客(J. Random Hacker)通常会用无意义的字面解释来答复你,心里想着“蠢问题...”,希望着你会从问题的回答(而非你想得到的答案)中汲取教训。

决不要自以为够资格得到答案,你没这种资格。毕竟你没有为这种服务支付任何报酬。你要自己去“挣”回一个答案,靠提出一个有内涵的,有趣的,有思维激励作用的问题--一个对社区的经验有潜在贡献的问题,而不仅仅是被动的从他人处索要知识--去挣到这个答案。

另一方面,表明你愿意在找答案的过程中做点什么,是一个非常好的开端。“谁能给点提示?”、“我这个例子里缺了什么?”以及“我应该检查什么地方?”比“请把确切的过程贴出来”更容易得到答复。因为你显得只要有人指点正确的方向,你就有完成它的能力和决心。



========
怎样提问
========



------------
谨慎选择论坛
------------

小心选择提问的场合。如果象下面描述的那样,你很可能被忽略掉或者被看作失败者:
1. 在风马牛不相及的论坛贴出你的问题
2. 在探讨高级技巧的论坛张贴非常初级的问题;反之亦然
3. 在太多的不同新闻组交叉张贴

黑客们通常砍掉问错地方的问题,以保护自己的社区不被大量无关帖子淹没。你不会希望自己的帖子被这样砍掉吧。

总的说来,问题发到精心挑选的公众论坛,比发到封闭的小圈子更容易得到有用的答案。这一现象有多种原因,其中之一是公众论坛有更多潜在的问题回答者;另一个原因是公众论坛有更多的听众。黑客们更愿意让尽量多的人--而非有限的一两个--从回答中受益。



------------
尽量使用邮件列表
----------------

如果某项目有自己的开发邮件列表,要把问题发到这个邮件列表而不是某个开发者,即使你很清楚谁最能回答你的问题。仔细查看项目文档和项目主页,找到这个项目的邮件列表地址,这样做的理由有四:
1. 任何值得问某位开发者的好问题,都值得向整个开发团体提出。反之,若你认为这个问题不值得在邮件列表中提起,就没有理由用它来骚扰任何一位开发者。
2. 在邮件列表提问可以分担开发者的工作量。某位开发者(尤其当他是项目负责人的情况下),可能忙得没时间回答你的问题。
3. 大多数邮件列表都有历史存档,而且都能在搜索引擎中检索到。人们可以从中找到你的问题和答案,不用一遍又一遍在列表中发问。
4. 如果某个问题经常被提出,开发者可以据此改进文档或改进软件,以减少用户的困惑。而如果问题总在私下提出,就不会有人对此有整体上的把握了。

如果你找不到项目的邮件列表地址,只能看到项目维护者的,那就写给维护者吧。在这种情况下,也别以为邮件列表并不存在。在你的信中写明你已尽力寻找,仍无法找到邮件列表。另外表明你不介意将此消息转给他人。(大多数人认为私信就应该是私下的,即使并没有什么可保密的内容。允许你的消息被转寄给他人,给了收信者一种处理你邮件的选择。)



----------------------------
用辞贴切,语法正确,拼写无误
----------------------------


我们从经验中发现,粗心的写作者通常也是马虎的思考者(我敢打包票)。回答粗心大意者的问题很不值得,我们宁愿把时间耗在别处。

因此,明确充分表述你的问题非常重要。如果你嫌这样做麻烦,我们也会懒得搭理你。注意推敲你的用辞,不一定要用呆板正式的语言--事实上,黑客文化的价值观是不拘小节。准确的运用俚语和富有幽默感的语言,但别乱用;一定要能表明你在思考,在关注。

正确的拼写,标点符号和大小写很重要。别把“its”和“it's”或者“loose”和“lose”搞混淆了。别用全部大写的形式,这被视为粗鲁的大声叫嚷(全都用小写也好不到哪儿去,因为这会给阅读带来困难。Alan Cox可以用全部小写,但你不行)。

更一般的说,如果你的提问写得象个半文盲,你很有可能被忽视。如果写得象一个窥客(破解爱好者)或者灰客(只会用现成工具的捣乱者)绝对是自己找死,保证你除了无情的抵制什么也得不到(或者,最好的结局是得到一大堆挖苦嘲笑的“帮助”)。

如果你在使用非母语的论坛提问,你可以犯点拼写和语法上的小错--但决不能在思考上马虎(没错,我们能弄清两者的分别)。另外,除非你确切知道你的回答者会使用什么语言,否则请用英文。匆匆忙忙的黑客往往简单的跳过他们看不懂的问题,而英文是网络上的工作语言。用英文可以降低你的问题未被阅读即遭抛弃的风险。



------------------
用易读格式发送问题
------------------


如果人为造成你的提问难以阅读和理解,将会更容易被人忽略。因此你要:
1. 使用纯文本邮件,不要使用HTML(关掉HTML并不难)。
2. 通常可以附加MIME附件,但一定要有真正的内容(例如附加的源文件或者补丁),而不仅仅是你的邮件客户端产生的文件模板(例如你邮件的一份拷贝)。
3. 不要把所有问题放在不停换行的一整段中。(这将让答复的人难于回答其中一部分问题,即使能回答所有问题,我也更希望条理清楚的一个一个来:)。很可能收件人只能在80个字符宽度的文本显示器上读信,因此要相应的把行环绕模式设在80字符以内。
4. 不要在英文论坛使用MIME Quoted-Printable编码发送;这种编码格式对ASCII码不能表达的语言来说是非常必要的,但很多邮件代理不支持它,这时,满篇的“=20”符号把文字分割开,既难看,又分散注意力。
5. 永远不要指望黑客会乐于阅读封闭所有权的文件格式,例如萎软的Word格式。多数黑客对此的反应就象你在门口的阶梯上堆满热烘烘的猪粪(意即谁也不会踏进你的门--译者注)。
6. 如果你通过一台安装Windows的电脑发送邮件,关闭萎软愚蠢的“智能引用”功能。这能使你免于在邮件中夹带垃圾字符。



----------------------------
使用含义丰富,描述准确的标题
----------------------------

在邮件列表或者新闻组中,大约50字以内的主题标题是抓住资深专家注意力的黄金时机。别用喋喋不休的“帮帮忙”(更别说“救命啊!!!!!”这样让人反感的话)来浪费这个机会。不要妄想用你的痛苦程度来打动我们,别用空格代替问题的描述,哪怕是极其简短的描述。

蠢问题:
救命啊!我的膝上机不能正常显示了!

聪明问题:
XFree86 4.1下鼠标光标变形,Fooware MV1005的显示芯片。

如果你在回复中提出问题,记得要修改内容标题,表明里面有一个问题。一个看起来象“Re:测试”或者“Re:新bug”的问题很难引起足够重视。另外,引用并删减前文的内容,给新来的读者留下线索。



------------------
精确描述,信息量大
------------------


1. 谨慎明确的描述症状。
2. 提供问题发生的环境(机器配置、操作系统、应用程序以及别的什么)。
3. 说明你在提问前是怎样去研究和理解这个问题的。
4. 说明你在提问前采取了什么步骤去解决它。
5. 罗列最近做过什么可能有影响的硬件、软件变更。

尽量想象一个黑客会怎样反问你,在提问的时候预先给他答案。

Simon Tatham写过一篇名为《如何有效的报告Bug》的出色短文。强力推荐你也读一读。



--------
话不在多
--------

你需要提供精确有效的信息。这并不是要求你简单的把成吨的出错代码或者数据完全转储摘录到你的提问中。如果你有庞大而复杂的测试条件,尽量把它剪裁得越小越好。

这样做的用处至少有三点。第一,表现出你为简化问题付出了努力,这可以使你得到回答的机会增加;第二,简化问题使你得到有用答案的机会增加;第三,在提炼你的bug报告的过程中,也许你自己就能找出问题所在或作出更正。



------------------
只说症状,不说猜想
------------------


告诉黑客们你认为问题是怎样引起的没什么帮助。(如果你的推断如此有效,还用向别人求助吗?),因此要确信你原原本本告诉了他们问题的症状,不要加进你自己的理解和推论。让黑客们来诊断吧。

蠢问题:
我在内核编译中一次又一次遇到SIG11错误,我怀疑某条飞线搭在主板的走线上了,这种情况应该怎样检查最好?

聪明问题:
我自制的一套K6/233系统,主板是FIC-PA2007 (VIA Apollo VP2芯片组),256MB Corsair PC133 SDRAM,在内核编译中频频产生SIG11错误,从开机20分钟以后就有这种情况,开机前20分钟内从没发生过。重启也没有用,但是关机一晚上就又能工作20分钟。所有内存都换过了,没有效果。相关部分的典型编译记录如下...。



------------------
按时间顺序列出症状
------------------


对找出问题最有帮助的线索,往往就是问题发生前的一系列操作,因此,你的说明应该包含操作步骤,以及电脑的反应,直到问题产生。在命令行操作的情况下,保存一个操作记录(例如使用脚本工具),并且引用相关的大约20条命令会大有帮助。

如果崩溃的程序有诊断选项(例如用-v转到详尽模式),试着仔细考虑选择选项以在操作记录中增加有用的调试信息。

如果你的说明很长(超过四个段落),在开头简述问题会有所帮助,接下来按时间顺序详述。这样黑客们就知道该在你的说明中找什么。



--------------
别要求私下答复
--------------


黑客们认为解决问题应该有公开、透明的流程。只要任何更有见地的人注意到答案的不完善或者不正确,这个最初的答案就可以和应该得到纠正。同时,通过能力和知识被大家注意,被大家接受,回答问题者得到了应有的奖励。

如果你要求对方私下回答你,这既破坏了整个流程,也破坏了奖励制度。别提这要求,这是回答者的权利,由他来选择是否私下答复--如果他选择这样做,通常是因为他认为这个答案过于显而易见或者有不良的公开影响,别人不会感兴趣。

只有一种有限的例外:如果你预计将收到大量雷同的答复,你可以说:“把答案寄给我,由我来汇总吧。”将邮件列表或者新闻组从大量重复的帖子中打救出来是很有君子之风的--但请记住,履行自己关于汇总的承诺。



--------------
明白你想问什么
--------------


漫无边际的提问近乎无休无止的时间黑洞。最能给你有用答案的人也正是最忙的人(他们忙是因为要亲自完成大部分工作)。这样的人对无节制的时间黑洞不太感冒,因此也可以说他们对漫无边际的提问不大感冒。

如果你明确表述需要回答者做什么(提供建议,发送一段代码,检查你的补丁或是别的),就最有可能得到有用的答案。这会定出一个时间和精力的上限,便于回答者集中精力来帮你,这很凑效。

要理解专家们生活的世界,要把专业技能想象为充裕的资源,而回复的时间则是贫乏的资源。解决你的问题需要的时间越少,越能从忙碌的专家口中掏出答案。

因此,优化问题的结构,尽量减少专家们解决它所需要的时间,会有很大的帮助--这通常和简化问题有所区别。因此,问“我想更好的理解X,能给点提示吗?”通常比问“你能解释一下X吗?”更好。如果你的代码不能工作,问问它有什么地方不对,比要求别人替你修改要明智得多。



------------------------
别问应该自己解决的问题
------------------------


黑客们总是善于分辨哪些问题应该由你自己解决;因为我们中的大多数都曾自己解决这类问题。同样,这些问题得由你来搞定,你会从中学到东西。你可以要求给点提示,但别要求得到完整的解决方案。



----------------
去除无意义的疑问
----------------


别用无意义的话结束提问,例如“有人能帮我吗?”或者“有答案吗?”。首先:如果你对问题的描述不很合适,这样问更是画蛇添足。其次:由于这样问是画蛇添足,黑客们会很厌烦你--而且通常会用逻辑上正确的回答来表示他们的蔑视,例如:“没错,有人能帮你”或者“不,没答案”。



----------------------------
谦逊绝没有害处,而且常帮大忙
----------------------------


彬彬有礼,多用“请”和“先道个谢了”。让大家都知道你对他们花费时间义务提供帮助心存感激。

实话实说,虽然这不象合乎语法、清楚准确的描述,避免私有格式等等那么重要(也不能用来替代它们);黑客一般更喜欢直接了当然而技术上敏锐的bug报告,而不是彬彬有礼的废话(如果这让你迷惑不解,请记住,我们衡量一个问题价值的标准是:它能让我们学会多少)。

然而,如果你有很多问题无法解决,礼貌将会增加你得到有用答案的机会。

(我们注意到,自从本指南发布后,从资深黑客处得到的唯一严重缺陷反馈,就是对预先道谢这一条。一些黑客觉得“先谢了”的言外之意是过后就不会再感谢任何人了。我们的建议是:都道谢。)



------------------------
问题解决后,加个简短说明
------------------------


问题解决后,向所有帮助过你的人发个说明,让他们知道问题是怎样解决的,并再一次向他们表示感谢。如果问题在新闻组或者邮件列表中引起了广泛关注,应该在那里贴一个补充说明。

补充说明不必很长或是很深入;简单的一句“你好,原来是网线出了问题!谢谢大家--Bill”比什么也不说要强。事实上,除非结论真的很有技术含量,否则简短可爱的小结比长篇学术论文更好。说明问题是怎样解决的,但大可不必将解决问题的过程复述一遍。

除了表示礼貌和反馈信息以外,这种补充有助于他人在邮件列表/新闻组/论坛中搜索对你有过帮助的完整解决方案,这可能对他们也很有用。

最后(至少?),这种补充有助于所有提供过帮助的人从中得到满足感。如果你自己不是老手或者黑客,那就相信我们,这种感觉对于那些你向他们求助的导师或者专家而言,是非常重要的。问题久拖未决会让人灰心;黑客们渴望看到问题被解决。好人有好报,满足他们的渴望,你会在下次贴出新问题时尝到甜头。




============
如何理解答案
============





--------------------
RTFM和STFW:别烦我啦
--------------------


有一个古老而神圣的传统:如果你收到“RTFM (Read The ****ing Manual)”的回复,回答者认为你应该去读TMD手册。当然,基本上他是对的,你应该读一读。

RTFM有一个年轻的亲戚。如果答案是“STFW (Search The ****ing Web)”,回答者认为你应该到TMD的网上去搜索。基本上,他也是对的,你就去找吧。

通常,用这两句之一回答你的人会给你一份包含你需要内容的手册或者一个网址,而且他们打这些字的时候正在阅读着。这些答复意味着回答者认为(1). 你需要的信息非常容易获得;(2). 你自己去搜索这些信息比灌给你能让你学到更多。

别为这个而不爽;依照黑客的标准,他没有对你的要求视而不见,已经能大致能表示对你的关注。你应该对他祖母般的慈祥表示感谢。



----------
还是不懂
----------


如果你不是很理解答案,别立刻要求对方解释。象你以前试着自己解决问题时那样(利用手册,FAQ,网络,身边的高手),去理解它。如果你真的需要对方解释,记得表现出你已经学到了点什么。

比方说,如果我回答你:“看来似乎是zEntry被阻塞了;你应该先清除它。”,然后:

一个很糟的后续问题:“zEntry是什么?”

聪明的问法应该是这样:“哦~~~我看过帮助了但是只有-z和-p两个参数中提到了zEntry而且还都没有清楚的解释:<你是指这两个中的哪一个吗?还是我看漏了什么?”



--------
面对无礼
--------


黑客圈子里很多貌似粗鲁的言行并非有意冒犯。更恰当的说,这是直率、不说废话的沟通方式的产物,这种沟通方式源于人们关注问题的解决--多过让人感受温暖亲情然而却依旧糊里糊涂--的天性。

如果你觉得受到粗鲁的对待,请保持冷静。如果真有人表现粗野,通常会有列表/新闻组/论坛的长辈找他谈心,如果没有这样,而你又大发脾气,则很可能对方的言行是黑客社区行为规范许可内,而你被认为是有过错的。这会不利于你得到信息或者帮助。

另一方面,你偶尔也会无缘无故有粗野的言行和心态。上述现象的另一面是,人们允许狠狠打击真正的冒犯者,用尖刻的言语剖析他们的不当言行。如果你真决定这样做,先仔细又仔细的掂量一下你自己的分量。合理的粗鲁与发动一场无意义的论战之间只隔了一条细细的线,冒冒失失撞上去的黑客不在少数;如果你是新手或者门外汉,不犯这种错的机会是很渺茫的。如果你想得到信息而不是来胡闹,别冒险回复,最好把手从键盘上拿开。

(有些人声称多数黑客有孤僻症或者社交障碍综合征的轻度症状,而且确实缺少部分有助“常人”进行社交行为的脑组织结构。这也许是真的,也许不是。如果你自己不是黑客,那么,把我们想象成脑部有缺陷的人有助你面对我们的古怪。有话直说,我们无所谓;我们乐于按自己的想法生活,而且总是对医学概念持相当怀疑的态度。)

在下一节里,我们将谈论另一个话题;当你行差踏错时可能遇到的“无礼”。



================
决不要象个失败者
================



很有可能,你在黑客社区的论坛会受到很多公开的攻击--用本文提到的各种方式或类似的方法,而且很可能会有各式各样的旁敲侧击来告诉你你有多讨厌。

如果噩梦成真,你能做的最糟的事就是为此发牢骚,抱怨受到人身攻击,要求对方道歉,尖叫,屏住呼吸,威胁要控诉对方,向他老板告状,不掀起马桶座圈,等等等等。然而,你应该这样:

由它去吧,这没什么大不了的。实际上这么做是恰当的和有益的(主要是有利身心健康:)。

社区的规范不靠社区,而是靠积极推行它们的人们来维护,这种维护是公开的,显而易见的。别抱怨说一切批评都应该通过私信传送,它本来就不该那样。当别人指出你的话有错误,或者他有不同观点的时候,坚持认为他在羞辱你是没有用的。这些都是失败者的态度。

有那么一些黑客论坛,出于对高度自谦的误解,禁止参与者张贴专给人找茬的帖子,而且被告知“如果不愿帮助用户,那就闭嘴。”,他们认为,引开参与者的话题,只会使得他们陶醉在毫无意义的喋喋不休中,从而失去了技术论坛的意义。

夸张的“友善”(以那种方式)还是有用的帮助:你自己选择吧。

记住:当黑客说你很烦人,(无论用多么粗暴的语言)警告你别再那样做了,他的本意并非是针对(1)你,以及(2)他的社区。他本来可以轻易的忽略你,把你从他的视线中抹去。如果你无法接受要向他表示感激,至少应该表现出你的气度,别抱怨,别期望只因为你是新人,你有戏剧般的敏感脆弱的神经和自封的权利,而受到易碎玩偶般的特别对待。



==========
三思而后问
==========



以下是几个经典蠢问题,以及黑客在拒绝回答时的心中所想:

问题:我能在哪找到X程序?
问题:我的程序/配置/SQL申明没有用
问题:我的Windows有问题,你能帮我吗?
问题:我在安装Linux(或者X)时有问题,你能帮我吗?
问题:我怎么才能破解root帐号/窃取OP特权/读别人的邮件呢?

提问:我能在哪找到X程序?
回答:就在我找到它的地方啊蠢货--搜索引擎的那一头。天呐!还有人不会用Google吗?

提问:我的程序(配置、SQL申明)没有用
回答:这不算是问题吧,我对找出你的真正问题没兴趣--如果要我问你二十个问题才找得出来的话--我有更有意思的事要做呢。在看到这类问题的时候,我的反应通常不外如下三种:
1. 你还有什么要补充的吗?
2. 真糟糕,希望你能搞定。
3. 这跟我有什么鸟相关?

提问:我的Windows有问题,你能帮我吗?
回答:能啊,扔掉萎软的垃圾,换Linux吧。

提问:我在安装Linux(或者X)时有问题,你能帮我吗?
回答:不能,我只有亲自在你的电脑上动手才能找到毛病。还是去找你当地的Linux用户组寻求手把手的指导吧(你能在这儿找到用户组的清单)。

提问:我怎么才能破解root帐号/窃取OP特权/读别人的邮件呢?
回答:想要这样做,说明你是个卑鄙小人;想找个黑客帮你,说明你是个白痴!



==============
好问题,坏问题
==============



最后,我举一些例子来说明,怎样聪明的提问;同一个问题的两种问法被放在一起,一种是愚蠢的,另一种才是明智的。

蠢问题:我可以在哪儿找到关于Foonly Flurbamatic的资料?
这种问法无非想得到“STFW”这样的回答。

聪明问题:我用Google搜索过“Foonly Flurbamatic 2600”,但是没找到有用的结果。谁知道上哪儿去找对这种设备编程的资料?
这个问题已经STFW过了,看起来他真的遇到了麻烦。

蠢问题:我从FOO项目找来的源码没法编译。它怎么这么烂?
他觉得都是别人的错,这个傲慢自大的家伙

聪明问题:FOO项目代码在Nulix 6.2版下无法编译通过。我读过了FAQ,但里面没有提到跟Nulix有关的问题。这是我编译过程的记录,我有什么做得不对的地方吗?
他讲明了环境,也读过了FAQ,还指明了错误,并且他没有把问题的责任推到别人头上,这个家伙值得留意。

蠢问题:我的主板有问题了,谁来帮我?
普通黑客对这类问题的回答通常是:“好的,还要帮你拍拍背和换尿布吗?” ,然后按下删除键。

聪明问题:我在S2464主板上试过了X、Y和Z,但没什么作用,我又试了A、B和C。请注意当我尝试C时的奇怪现象。显然边带传输中出现了收缩,但结果出人意料。在多处理器主板上引起边带泄漏的通常原因是什么?谁有好主意接下来我该做些什么测试才能找出问题?
这个家伙,从另一个角度来看,值得去回答他。他表现出了解决问题的能力,而不是坐等天上掉答案。

在最后一个问题中,注意“告诉我答案”和“给我启示,指出我还应该做什么诊断工作”之间微妙而又重要的区别。

事实上,后一个问题源自于2001年8月在Linux内核邮件列表上的一个真实的提问。我(Eric)就是那个提出问题的人。我在Tyan S2464主板上观察到了这种无法解释的锁定现象,列表成员们提供了解决那一问题的重要信息。

通过我的提问方法,我给了大家值得玩味的东西;我让人们很容易参与并且被吸引进来。我显示了自己具备和他们同等的能力,邀请他们与我共同探讨。我告诉他们我所走过的弯路,以避免他们再浪费时间,这是一种对他人时间价值的尊重。

后来,当我向每个人表示感谢,并且赞赏这套程序(指邮件列表中的讨论--译者注)运作得非常出色的时候,一个Linux内核邮件列表(lkml)成员表示,问题得到解决并非由于我是这个列表中的“名人”,而是因为我用了正确的方式来提问。

我们黑客从某种角度来说是拥有丰富知识但缺乏人情味的家伙;我相信他是对的,如果我象个乞讨者那样提问,不论我是谁,一定会惹恼某些人或者被他们忽视。他建议我记下这件事,给编写这个指南的人一些指导。



================
找不到答案怎么办
================


如果仍得不到答案,请不要以为我们觉得无法帮助你。有时只是看到你问题的人不知道答案罢了。没有回应不代表你被忽视,虽然不可否认这种差别很难区分。

总的说来,简单的重复张贴问题是个很糟的想法。这将被视为无意义的喧闹。

你可以通过其它渠道获得帮助,这些渠道通常更适合初学者的需要。

有许多网上的以及本地的用户组,由狂热的软件爱好者(即使他们可能从没亲自写过任何软件)组成。通常人们组建这样的团体来互相帮助并帮助新手。

另外,你可以向很多商业公司寻求帮助,不论公司大还是小(Red Hat和LinuxCare就是两个最常见的例子)。别为要付费才能获得帮助而感到沮丧!毕竟,假使你的汽车发动机汽缸密封圈爆掉了--完全可能如此--你还得把它送到修车铺,并且为维修付费。就算软件没花费你一分钱,你也不能强求技术支持总是免费的。

对大众化的软件,就象Linux之类而言,每个开发者至少会有上万名用户。根本不可能由一个人来处理来自上万名用户的求助电话。要知道,即使你要为帮助付费,同你必须购买同类软件相比,你所付出的也是微不足道的(通常封闭源代码软件的技术支持费用比开放源代码软件要高得多,而且内容也不那么丰富)。


[此贴被 日月双星(abctm) 在 08月03日19时04分 编辑过]


[此贴被 日月双星(abctm) 在 08月03日23时47分 编辑过]


[此贴被 NetDemon(netdemon) 在 08月13日18时06分 编辑过]

地主 发表时间: 04-07-13 22:11

回复: abctm [abctm]   版主   登录
对新来论坛很重要建议一读

B1层 发表时间: 04-07-13 22:12

回复: Achieve [achieve]   版主   登录
还能顶上来阿

[此贴被 Achieve(achieve) 在 08月02日00时46分 编辑过]

B2层 发表时间: 04-08-02 00:45

回复: xuwudi2004 [xuwudi2004]   论坛用户   登录
题目是不是写错了?
HowToAskQuestionsTheSmartWay

-->HowToAskQuestionsInTheSmartWay



B3层 发表时间: 04-08-03 09:47

回复: lqfrla [lqfrla]   论坛用户   登录
那有那时间读啊

B4层 发表时间: 04-08-04 07:42

回复: homlay [homlay]   论坛用户   登录
还好意思发这个帖子!【吐学推荐】,就开始这点,就有问题!这个应该是语法错误,还是错别字?

B5层 发表时间: 04-08-06 11:06

回复: zqh [zqh]   论坛用户   登录
好复杂啊,打印起来当教材读

B6层 发表时间: 04-08-08 19:36

回复: crackz [crackz]   论坛用户   登录
辛苦了。
可我不能完全看懂哦。

B7层 发表时间: 04-08-09 16:53

回复: niba [niba]   论坛用户   登录
这样的书可真不少,不过读过之后给人的感觉是,写得不错,就是没什么用

B8层 发表时间: 04-08-10 21:08

回复: nick [jiangxiao]   论坛用户   登录
嗯 谢谢 版主

B9层 发表时间: 04-08-11 13:48

回复: nickxd [nickxd]   论坛用户   登录
我是绝对的菜!多多指教!谢谢:)

B10层 发表时间: 04-08-11 14:54

回复: gt_ghost [gt_ghost]   论坛用户   登录
读了之后却是感觉有不少地方值得我注意~~~~~
我想它对我会有用处的!~~

B11层 发表时间: 04-08-12 11:06

回复: gt_ghost [gt_ghost]   论坛用户   登录
小弟在此谢谢了  真的蛮有用的~!

B12层 发表时间: 04-08-12 11:10

回复: lp8835085 [lp8835085]   论坛用户   登录
  我很菜,简直看不懂

B13层 发表时间: 04-08-13 10:18

回复: windows2004 [t8535550]   论坛用户   登录
偶也看不懂哦。 呵呵
看来我也太菜了哦。
呵呵
  还是写点简单 容易记得的东西吧
  呵呵


B14层 发表时间: 04-08-14 13:14

回复: yunxing8 [yunxing8]   论坛用户   登录
我也看不懂啊,有没人教我啊


B15层 发表时间: 04-08-15 05:58

回复: crs502 [crs502]   论坛用户   登录
太长太臭的东西太难记了~~

B16层 发表时间: 04-08-16 14:57

回复: wjj2000 [wjj2000]   论坛用户   登录
谢谢斑竹
我知道了

B17层 发表时间: 04-08-21 22:51

回复: jokebox [jokebox]   论坛用户   登录
好久没有来了!变化不小啊!连人都了啊!

B18层 发表时间: 04-08-26 12:55

回复: shanren110 [shanren110]   论坛用户   登录

��不�f不明�o�舨稽c不亮�u

B19层 发表时间: 04-08-27 13:22

回复: shanren110 [shanren110]   论坛用户   登录

��不�f不明�o�舨稽c不亮�u

B20层 发表时间: 04-08-27 13:22

回复: legioncmdr [legioncmdr]   论坛用户   登录
遵命就是

B21层 发表时间: 04-08-27 21:12

回复: xiaoht [xiaoht]   论坛用户   登录
眼睛好累  心好痛

B22层 发表时间: 04-08-30 20:11

回复: Kulr [kulr]   论坛用户   登录
看的头疼

B23层 发表时间: 04-08-30 20:20

回复: groney [groney]   论坛用户   登录
做为一个新手,这一点是必须要记住的,也是要学会灵活应用的。一个好的提问,会带来好的结果。或许就是一要的结果。粗心提问,一看就知道是一个不懂的,乱问。当然没有人给解决了

B24层 发表时间: 04-09-01 06:06

回复: qjgblmq [qjgblmq]   论坛用户   登录
我顶


B25层 发表时间: 04-09-02 15:34

回复: chinawl [chinawl]   论坛用户   登录
    我顶!!!给大家一个网站,http://www.allwhois.com/    只要是1999年以前注册的。都能查到很多信息。

B26层 发表时间: 04-09-04 15:17

回复: q1w2wxy [q1w2wxy]   论坛用户   登录
看过之后,感觉莫测高深,黑客真是厉害

B27层 发表时间: 04-09-04 19:22

回复: g6xli [g6xli]   论坛用户   登录
太长了,看都看不过来


B28层 发表时间: 04-09-05 13:48

回复: gwyc [gwyc]   论坛用户   登录
笔者写文笔不错呀,可惜少点什么,就是没有穿透力!也就是我们全不明白, 要不就是我太笨1

B29层 发表时间: 04-09-16 08:44

回复: PKingBack [pkingback]   论坛用户   登录
英文版的,我有点儿弄不懂了!~

B30层 发表时间: 04-09-16 17:11

回复: eagle [victor324]   论坛用户   登录
要得!!!!!!!

B31层 发表时间: 04-09-19 19:51

回复: ice300 [ice300]   论坛用户   登录
好 ,,

B32层 发表时间: 04-09-20 21:50

回复: ice300 [ice300]   论坛用户   登录
好 ,,先顶后看

B33层 发表时间: 04-09-20 21:51

回复: ywpps [ywpps]   论坛用户   登录
又多认识几个汉字了

B34层 发表时间: 04-09-24 13:43

回复: fancyher [fancyher]   论坛用户   登录
顶!

B35层 发表时间: 04-09-25 13:47

回复: liuyu2004 [liuyu2004]   论坛用户   登录
要是简单,明了点就好了!

B36层 发表时间: 04-09-26 19:23

回复: wqtxiqr7 [wqtxiqr7]   论坛用户   登录
不知道他说什么

B37层 发表时间: 04-10-07 18:20

回复: iokaaa [iokaaa]   论坛用户   登录
这么多啊!!!

B38层 发表时间: 04-10-08 16:54

回复: combook [combook]   论坛用户   登录
这是啥东东哟???

B39层 发表时间: 04-10-08 20:05

回复: makehacker [makehacker]   论坛用户   登录
                           

B40层 发表时间: 04-10-10 00:38

回复: langzi0478 [langzi0478]   论坛用户   登录
太多了吧!

哪有时间都看完!

开玩笑

B41层 发表时间: 04-11-04 17:45

回复: vc_java [vc_java]   论坛用户   登录
明白了!

B42层 发表时间: 04-12-01 20:21

回复: javeeliu [javeeliu]   论坛用户   登录
不错,,对我一个菜鸟来说,,我一定要看完,,谢谢,,我是新人,,请以后多多指教~~

B43层 发表时间: 04-12-07 22:52

回复: wilson [skjsky]   论坛用户   登录
你看就是在论坛中成长起来的兄弟,谢谢你给大家这么多的建议,希望以后有好的心得一定要和大家分享呀。

B44层 发表时间: 04-12-10 12:11

回复: chuizi [chuizi]   论坛用户   登录
太长了,一口气读不完

B45层 发表时间: 04-12-12 00:47

回复: kert_t8 [kert_t8]   论坛用户   登录
NB,我当时看这篇文章看了一半头就疼了,居然有人把他翻译出来,佩服佩服

这个英文版的,锻炼锻炼中国未来的黑客们与世界接轨的能力
引用:

Introduction

In the world of hackers, the kind of answers you get to your technical questions depends as much on the way you ask the questions as on the difficulty of developing the answer. This guide will teach you how to ask questions in a way that is likely to get you a satisfactory answer.

The first thing to understand is that hackers actually like hard problems and good, thought-provoking questions about them. If we didn't, we wouldn't be here. If you give us an interesting question to chew on we'll be grateful to you; good questions are a stimulus and a gift. Good questions help us develop our understanding, and often reveal problems we might not have noticed or thought about otherwise. Among hackers, "Good question!" is a strong and sincere compliment.

Despite this, hackers have a reputation for meeting simple questions with what looks like hostility or arrogance. It sometimes looks like we're reflexively rude to newbies and the ignorant. But this isn't really true.

What we are, unapologetically, is hostile to people who seem to be unwilling to think or do their own homework before asking questions. People like that are time sinks ― they take without giving back, they waste time we could have spent on another question more interesting and another person more worthy of an answer. We call people like this "losers" (and for historical reasons we sometimes spell it "lusers").

We realize that there are many people who just want to use the software we write, and have no interest in learning technical details. For most people, a computer is merely a tool, a means to an end; they have more important things to do and lives to live. We acknowledge that, and don't expect everyone to take an interest in the technical matters that fascinate us. Nevertheless, our style of answering questions is tuned for people who do take such an interest and are willing to be active participants in problem-solving. That's not going to change. Nor should it; if it did, we would become less effective at the things we do best.

We're (largely) volunteers. We take time out of busy lives to answer questions, and at times we're overwhelmed with them. So we filter ruthlessly. In particular, we throw away questions from people who appear to be losers in order to spend our question-answering time more efficiently, on winners.

If you find this attitude obnoxious, condescending, or arrogant, check your assumptions. We're not asking you to genuflect to us ― in fact, most of us would love nothing more than to deal with you as an equal and welcome you into our culture, if you put in the effort required to make that possible. But it's simply not efficient for us to try to help people who are not willing to help themselves. If you can't live with this sort of discrimination, we suggest you pay somebody for a commercial support contract instead of asking hackers to personally donate help to you.

If you decide to come to us for help, you don't want to be one of the losers. You don't want to seem like one, either. The best way to get a rapid and responsive answer is to ask it like a winner ― to ask it like a person with smarts, confidence, and clues who just happens to need help on one particular problem.

(Improvements to this guide are welcome. You can mail suggestions to esr-at-thyrsus.com. Note however that this document is not intended to be a general guide to netiquette, and I will generally reject suggestions that are not specifically related to eliciting useful answers in a technical forum.)


--------------------------------------------------------------------------------

Before You Ask

Before asking a technical question by email, or in a newsgroup, or on a website chat board, do the following:

Try to find an answer by reading the manual.

Try to find an answer by reading a FAQ.

Try to find an answer by searching the Web.

Try to find an answer by asking a skilled friend.

When you ask your question, display the fact that you have done these things first; this will help establish that you're not being a lazy sponge and wasting people's time. Better yet, display what you have learned from doing these things. We like answering questions for people who have demonstrated that they can learn from the answers.

Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. The more you do to demonstrate that you have put thought and effort into solving your problem before asking for help, the more likely you are to actually get help.

Beware of asking the wrong question. If you ask one that is based on faulty assumptions, J. Random Hacker is quite likely to reply with a uselessly literal answer while thinking "Stupid question...", and hoping that the experience of getting what you asked for rather than what you needed will teach you a lesson.

Never assume you are entitled to an answer. You are not; you aren't, after all, paying for the service. You will earn an answer, if you earn it, by asking a question that is substantial, interesting, and thought-provoking ― one that implicitly contributes to the experience of the community rather than merely passively demanding knowledge from others.

On the other hand, making it clear that you are able and willing to help in the process of developing the solution is a very good start. "Can someone provide a pointer?", "What is my example missing?" and "Is there a site I should have checked?" are more likely to get answered than "Please post the exact procedure I should use." because you're making it clear that you're truly willing to complete the process if someone can simply point you in the right direction.


--------------------------------------------------------------------------------

When You Ask

Choose your forum carefully
Be sensitive in choosing where you ask your question. You are likely to be ignored, or written off as a loser, if you:

post your question to a forum where it is off topic

post a very elementary question to a forum where advanced technical questions are expected, or vice-versa

cross-post to too many different newsgroups

>post a personal email to somebody who is neither an acquaintance of yours nor personally responsible for solving your problem

Hackers blow off questions that are inappropriately targeted in order to try to protect their communications channels from being drowned in irrelevance. You don't want this to happen to you.

Shooting off an email to a person or forum which you are not familiar with is risky at best. For example, do not assume that the author of an informative web page wants to be your free consultant. Do not make optimistic guesses about whether your question will be welcome -- if you are unsure, send it elsewhere, or refrain from sending it at all.

When selecting a newsgroup or mailing list, don't trust the name by itself too far; look for a FAQ or charter to verify that your question is on-topic. Read some of the back traffic before posting so you'll get a feel for how things are done there.

Know what your topic is! One of the classic mistakes is asking questions about the Unix or Windows programming interface in a forum devoted to a language or library or tool that is portable across both. If you don't understand why this is a blunder, you'd be best off not asking any questions at all until you get it.

In general, questions to a well-selected public forum are more likely to get useful answers than equivalent questions to a private one. There are multiple reasons for this. One is simply the size of the pool of potential respondents. Another is the size of the audience; hackers would rather answer questions that educate a lot of people than questions which only serve a few.

Understandably, skilled hackers and authors of popular software are already receiving more than their fair share of mistargeted messages. By adding to the flood, you could in extreme cases even be the straw which breaks the camel's back -- quite a few times, contributors to popular projects have withdrawn their support because the collateral damage in the form of useless email traffic to their personal accounts became unbearable.


--------------------------------------------------------------------------------

Whenever possible, use project mailing lists

When a project has a development mailing list, write to the mailing list, not to individual developers, even if you believe that you know who can answer your question best. Check the documentation of the project and its homepage for the address of a project mailing list, and use it. There are several good reasons for this policy:

Any question that's good enough to be asked of one developer will also be of value to the whole group. Contrariwise, if you think that your question is too dumb for a mailing list, it's not an excuse to harass individual developers.

Asking questions on the list distributes load between developers. The individual developer (especially if he's the project leader) may be too busy to answer your questions.

Most mailing lists are archived and the archives are indexed by search engines. Somebody could find your question and the answer on the web instead of asking it again in the list.

If certain questions are seen to be asked often, the developers can use that information to improve the documentation or the software itself to be less confusing. But if those questions are asked in private, nobody has the complete picture of what questions are asked most often.

If you cannot find a project's mailing list address, but only see the address of the maintainer of the project, go ahead and write to the maintainer. But even in that case, don't assume that the mailing list doesn't exist. State in your e-mail that you tried and could not find the appropriate mailing list. Also mention that you don't object to having your message forwarded to other people. (Many people believe that private e-mail should remain private, even if there is nothing secret in it. By allowing your message to be forwarded you give your correspondent a choice about how to handle your e-mail.)


--------------------------------------------------------------------------------

Write in clear, grammatical, correctly-spelled language

We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.

So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ― in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.

Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's" or "loose" with "lose". Don't TYPE IN ALL CAPS, this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)

More generally, if you write like a semi-literate boob you will very likely be ignored. Writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.

If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors ― but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.


--------------------------------------------------------------------------------

Send questions in formats that are easy to understand

If you make your question artificially hard to read, it is more likely to be passed over in favor of one that isn't. So:


Send plain text mail, not HTML. (It's not hard to turn off HTML.)

MIME attachments are usually OK, but only if they are real content (such as an attached source file or patch), and not merely boilerplate generated by your mail client (such as another copy of your message).

Don't send mail in which entire paragraphs are single multiply-wrapped lines. (This makes it too difficult to reply to just part of the message.) Assume that your respondents will be reading mail on 80-character-wide text displays and set your line wrap accordingly, to something less than 80.

However, do not wrap data (such as log file dumps or session transcripts) at any fixed column width. Data should be included as-is, so respondents can have confidence that they are seeing what you saw.

Don't send MIME Quoted-Printable encoding to an English-language forum. This encoding can be necessary when you're posting in a language ASCII doesn't cover, but a lot of mail agents don't support it. When they break, all those =20 glyphs scattered through the text are ugly and distracting.

Never, ever expect hackers to be able to read closed proprietary document formats like Microsoft Word. Most hackers react to these about as well as you would to having a pile of steaming pig manure dumped on your doorstep.

If you're sending mail from a Windows machine, turn off Microsoft's stupid "Smart Quotes" feature. This is so you avoid sprinkling garbage characters through your mail.

If you're using a graphical-user-interface mail client, (such as Netscape Messenger, MS Outlook, or their ilk) beware that it may violate these rules when used with its default settings. Most such clients have a menu-based "View Source" command. Use this on something in your sent-mail folder to check that you are sending plain text without unnecessary attached crud.


--------------------------------------------------------------------------------

Use meaningful, specific subject headers

On mailing lists or newsgroups, the subject header is your golden opportunity to attract qualified experts' attention in around 50 characters or fewer. Don't waste it on babble like "Please help me" (let alone "PLEASE HELP ME!!!!"; messages with subjects like that get discarded by reflex). Don't try to impress us with the depth of your anguish; use the space for a super-concise problem description instead.

A good convention for subject headers, used by many tech support organizations, is "object - deviation". The "object" part specifies what thing or group of things is having a problem, and the "deviation" part describes the deviation from expected behavior.


Stupid:
HELP! Video doesn't work properly on my laptop!

Smart:
XFree86 4.1 misshapen mouse cursor, Fooware MV1005 vid. chipset

Smarter:
XFree86 4.1 mouse cursor on Fooware MV1005 vid. chipset - is misshapen

The process of writing an "object-deviation" description will help you organize your thinking about the problem in more detail. What is affected? Just the mouse cursor or other graphics too? Is this specific to XFree86? To version 4.1? Is this specific to Fooware video chipsets? To model MV1005? A hacker who sees the result can immediately understand what it is that you are having a problem with and the problem you are having, at a glance.

If you ask a question in a reply, be sure to change the subject line to indicate that you are asking a question. A Subject line that looks like "Re: test" or "Re: new bug" is less likely to attract useful amounts of attention. Also, pare quotes of previous messages to the minimum consistent with cluing in new readers.


--------------------------------------------------------------------------------

Be precise and informative about your problem

Describe the symptoms of your problem or bug carefully and clearly.

Describe the environment in which it occurs (machine, OS, application, whatever).

Describe the research you did to try and understand the problem before you asked the question.

Describe the diagnostic steps you took to try and pin down the problem yourself before you asked the question.

Describe any recent changes in your computer or software configuration that might be relevant.

Do the best you can to anticipate the questions a hacker will ask, and to answer them in advance in your request for help.

Simon Tatham has written an excellent essay entitled How to Report Bugs Effectively. I strongly recommend that you read it.


--------------------------------------------------------------------------------

Volume is not precision

You need to be precise and informative. This end is not served by simply dumping huge volumes of code or data into a help request. If you have a large, complicated test case that is breaking a program, try to trim it and make it as small as possible.

This is useful for at least three reasons. One: being seen to invest effort in simplifying the question makes it more likely that you'll get an answer, Two: simplifying the question makes it more likely you'll get a useful answer. Three: In the process of refining your bug report, you may develop a fix or workaround yourself.


--------------------------------------------------------------------------------

Describe the problem's symptoms, not your guesses

It's not useful to tell hackers what you think is causing your problem. (If your diagnostic theories were such hot stuff, would you be consulting others for help?) So, make sure you're telling them the raw symptoms of what goes wrong, rather than your interpretations and theories. Let them do the interpretation and diagnosis.


Stupid:
I'm getting back-to-back SIG11 errors on kernel compiles, and suspect a hairline crack on one of the motherboard traces. What's the best way to check for those?

Smart:
My home-built K6/233 on an FIC-PA2007 motherboard (VIA Apollo VP2 chipset) with 256MB Corsair PC133 SDRAM starts getting frequent SIG11 errors about 20 minutes after power-on during the course of kernel compiles, but never in the first 20 minutes. Rebooting doesn't restart the clock, but powering down overnight does. Swapping out all RAM didn't help. The relevant part of a typical compile session log follows.


--------------------------------------------------------------------------------

Describe your problem's symptoms in chronological order

The most useful clues in figuring out something that went wrong often lie in the events immediately prior. So, your account should describe precisely what you did, and what the machine did, leading up to the blowup. In the case of command-line processes, having a session log (e.g., using the script utility) and quoting the relevant twenty or so lines is very useful.

If the program that blew up on you has diagnostic options (such as -v for verbose), try to think carefully about selecting options that will add useful debugging information to the transcript.

If your account ends up being long (more than about four paragraphs), it might be useful to succinctly state the problem up top, then follow with the chronological tale. That way, hackers will know what to watch for in reading your account.


--------------------------------------------------------------------------------

Don't ask people to reply by private email

Hackers believe solving problems should be a public, transparent process during which a first try at an answer can and should be corrected if someone more knowledgeable notices that it is incomplete or incorrect. Also, they get some of their reward for being respondents from being seen to be competent and knowledgeable by their peers.

When you ask for a private reply, you are disrupting both the process and the reward. Don't do this. It's the respondent's choice whether to reply privately ― and if he does, it's usually because he thinks the question is too ill-formed or obvious to be interesting to others.

There is one limited exception to this rule. If you think the question is such that you are likely to get a lot of answers that are all pretty similar, then the magic words are "email me and I'll summarize the answers for the group". It is courteous to try and save the mailing list or newsgroup a flood of substantially identical postings ― but you have to keep the promise to summarize.


--------------------------------------------------------------------------------

Be explicit about the question you have

Open-ended questions tend to be perceived as open-ended time sinks. The people most likely to be able to give you a useful answer are also the busiest people (if only because they take on the most work themselves). People like that are allergic to open-ended time sinks, thus they tend to be allergic to open-ended questions.

You are more likely to get a useful response if you are explicit about what you want respondents to do (provide pointers, send code, check your patch, whatever). This will focus their effort and implicitly put an upper bound on the time and energy a respondent has to put in to helping you. This is good.

To understand the world the experts live in, think of expertise as an abundant resource and time to respond as a scarce one. The less of a time commitment you implicitly ask for, the more likely you are to get an answer from someone really good and really busy.

So it is useful to frame your question to minimize the time commitment required for an expert to field it ― but this is often not the same thing as simplifying the question. Thus, for example, "Can you give me a pointer to a good explanation of X?" is usually a smarter question than "Would you explain X, please?". If you have some code that isn't working, it is usually smarter to ask for someone to explain what's wrong with it than it is to ask someone to fix it.


--------------------------------------------------------------------------------

Don't post homework questions

Hackers are good at spotting homework questions; most of us have done them ourselves. Those questions are for you to work out, so that you will learn from the experience. It is OK to ask for hints, but not for entire solutions.


--------------------------------------------------------------------------------

Prune pointless queries

Resist the temptation to close your request for help with semantically-null questions like "Can anyone help me?" or "Is there an answer?" First: if you've written your problem description halfway competently, such tacked-on questions are at best superfluous. Second: because they are superfluous, hackers find them annoying ― and are likely to return logically impeccable but dismissive answers like "Yes, you can be helped" and "No, there is no help for you."


--------------------------------------------------------------------------------

Don't flag your question as "Urgent", even if it is for you.

That's your problem, not ours. Claiming urgency is very likely to be counter-productive: most hackers will simply delete such messages as rude and selfish attempts to elicit immediate and special attention.


--------------------------------------------------------------------------------

Courtesy never hurts, and sometimes helps

Be courteous. Use "Please" and "Thanks in advance". Make it clear that you appreciate the time people spend helping you for free.

To be honest, this isn't as important as (and cannot substitute for) being grammatical, clear, precise and descriptive, avoiding proprietary formats etc.; hackers in general would rather get somewhat brusque but technically sharp bug reports than polite vagueness. (If this puzzles you, remember that we value a question by what it teaches us.)

However, if you've got your technical ducks in a row, politeness does increase your chances of getting a useful answer.

(We must note that the only serious objection we have received to this how-to from veteran hackers is to the recommendation to use "Thanks in advance". Some hackers feel this connotes an intention not to thank anybody afterwards. Our recommendation is to do both.)


--------------------------------------------------------------------------------

Follow up with a brief note on the solution

Send a note after the problem has been solved to all who helped you; let them know how it came out and thank them again for their help. If the problem attracted general interest in a mailing list or newsgroup, it's appropriate to post the followup there.

Your followup doesn't have to be long and involved; a simple "Howdy - it was a failed network cable! Thanks, everyone. - Bill" would be better than nothing. In fact, a short and sweet summary is better than a long dissertation unless the solution has real technical depth. Say what action solved the problem, but you need not replay the whole troubleshooting sequence.

Besides being courteous and informative, this sort of followup will help others searching the archive of the mailing-list/newsgroup/forum to know exactly which solution helped you and thus may also help them.

Last, and not least, this sort of followup helps everybody who assisted feel a satisfying sense of closure about the problem. If you are not a techie or hacker yourself, trust us that this feeling is very important to the gurus and experts you tapped for help. Problem narratives that trail off into unresolved nothingness are frustrating things; hackers itch to see them resolved. The good karma that scratching that itch earns you will be very, very helpful to you next time you need to pose a question.


--------------------------------------------------------------------------------

How To Interpret Answers

RTFM and STFW: How To Tell You've Seriously Screwed Up
There is an ancient and hallowed tradition: if you get a reply that reads "RTFM", the person who sent it thinks you should have Read The f**k Manual. He is almost certainly right. Go read it.

RTFM has a younger relative. If you get a reply that reads "STFW", the person who sent it thinks you should have Searched The f**k Web. He is almost certainly right. Go search it.

Often, the person sending either of these replies has the manual or the web page with the information you need open, and is looking at it as he types. These replies mean that he thinks (a) the information you need is easy to find, and (b) you will learn more if you seek out the information than if you have it spoon-fed to you.

You shouldn't be offended by this; by hacker standards, he is showing you a rough kind of respect simply by not ignoring you. You should instead thank him for his grandmotherly kindness.


--------------------------------------------------------------------------------

If you don't understand...

If you don't understand the answer, do not immediately bounce back a demand for clarification. Use the same tools that you used to try and answer your original question (manuals, FAQs, the Web, skilled friends) to understand the answer. Then, if you still need to ask for clarification, exhibit what you have learned.

For example, suppose I tell you: "It sounds like you've got a stuck zentry; you'll need to clear it." Then:

Here's a bad followup question: "What's a zentry?"

Here's a good followup question: "OK, I read the man page and zentries are only mentioned under the -z and -p switches. Neither of them says anything about clearing zentries. Is it one of these or am I missing something here?"


--------------------------------------------------------------------------------

Dealing with rudeness

Much of what looks like rudeness in hacker circles is not intended to give offence. Rather, it's the product of the direct, cut-through-the-bulls**t communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy.

When you perceive rudeness, try to react calmly. If someone is really acting out, it is very likely that a senior person on the list or newsgroup or forum will call him or her on it. If that doesn't happen and you lose your temper, it is likely that the person you lose it at was behaving within the hacker community's norms and you will be considered at fault. This will hurt your chances of getting the information or help you want.

On the other hand, you will occasionally run across rudeness and posturing that is quite gratuitous. The flip-side of the above is that it is acceptable form to slam real offenders quite hard, dissecting their misbehavior with a sharp verbal scalpel. Be very, very sure of your ground before you try this, however. The line between correcting an incivility and starting a pointless flamewar is thin enough that hackers themselves not infrequently blunder across it; if you are a newbie or an outsider, your chances of avoiding such a blunder are low. If you're after information rather than entertainment, it's better to keep your fingers off the keyboard than to risk this.

(Some people assert that many hackers have a mild form of autism or Asperger's Syndrome, and are actually missing some of the brain circuitry that lubricates `normal' human social interaction. This may or may not be true. If you are not a hacker yourself, it may help you cope with our eccentricities if you think of us as being brain-damaged. Go right ahead. We won't care; we like being whatever it is we are, and generally have a healthy skepticism about clinical labels.)

In the next section, we'll talk about a different issue; the kind of `rudeness' you'll see when you misbehave.


--------------------------------------------------------------------------------

On Not Reacting Like A Loser

Odds are you'll screw up a few times on hacker community forums ― in ways detailed in this article, or similar. And you'll be told exactly how you screwed up, possibly with colourful asides. In public.

When this happens, the worst thing you can do is whine about the experience, claim to have been verbally assaulted, demand apologies, scream, hold your breath, threaten lawsuits, complain to people's employers, leave the toilet seat up, etc. Instead, here's what you do:

Get over it. It's normal. In fact, it's healthy and appropriate.

Community standards do not maintain themselves: They're maintained by people actively applying them, visibly, in public. Don't whine that all criticism should have been conveyed via private mail: That's not how it works. Nor is it useful to insist you've been personally insulted when someone comments that one of your claims was wrong, or that his views differ. Those are loser attitudes.

There have been hacker forums where, out of some misguided sense of hyper-courtesy, participants are banned from posting any fault-finding with another's posts, and told "Don't say anything if you're unwilling to help the user." The resulting departure of clueful participants to elsewhere causes them to descend into meaningless babble and become useless as technical forums.

Exaggeratedly "friendly" (in that fashion) or useful: Pick one.

Remember: When that hacker tells you that you've screwed up, and (no matter how gruffly) tells you not to do it again, he's acting out of concern for (1) you and (2) his community. It would be much easier for him to ignore you and filter you out of his life. If you can't manage to be grateful, at least have a little dignity, don't whine, and don't expect to be treated like a fragile doll just because you're a newcomer with a theatrically hypersensitive soul and delusions of entitlement.


--------------------------------------------------------------------------------

Questions Not To Ask

Here are some classic stupid questions, and what hackers are thinking when they don't answer them.

Q: Where can I find program X?
Q: My {program, configuration, SQL statement} doesn't work
Q: I'm having problems with my Windows machine. Can you help?
Q: I'm having problems installing Linux or X. Can you help?
Q: How can I crack root/steal channel-ops privileges/read someone's email?
Q: Where can I find program X?

A: The same place I'd find it, fool ― at the other end of a web search. Ghod, doesn't everybody know how to use Google yet?

Q: My {program, configuration, SQL statement} doesn't work

A: This is not a question, and I'm not interested in playing Twenty Questions to pry your actual question out of you ― I have better things to do. On seeing something like this, my reaction is normally of one of the following:


do you have anything else to add to that?

oh, that's too bad, I hope you get it fixed.

and this has exactly what to do with me?

Q: I'm having problems with my Windows machine. Can you help?

A: Yes. Throw out that Microsoft trash and install an open-source operating system like Linux or BSD.

Q: I'm having problems installing Linux or X. Can you help?

A: No. I'd need hands-on access to your machine to troubleshoot this. Go ask your local Linux user group for hands-on help. (You can find a list of user groups here.)

Q: How can I crack root/steal channel-ops privileges/read someone's email?

A: You're a lowlife for wanting to do such things and a moron for asking a hacker to help you.


--------------------------------------------------------------------------------

Good and Bad Questions

Finally, I'm going to illustrate how to ask questions in a smart way by example; pairs of questions about the same problem, one asked in a stupid way and one in a smart way.


Stupid: Where can I find out stuff about the Foonly Flurbamatic?
This question just begs for "STFW" as a reply.

Smart: I used Google to try to find "Foonly Flurbamatic 2600" on the Web, but I got no useful hits. Does anyone know where I can find programming information on this device?
This one has already STFWed, and sounds like he might have a real problem.


Stupid: I can't get the code from project foo to compile. Why is it broken?
He assumes that somebody else screwed up. Arrogant of him.

Smart: The code from project foo doesn't compile under Nulix version 6.2. I've read the FAQ, but it doesn't have anything in it about Nulix-related problems. Here's a transcript of my compilation attempt; is it something I did?
He's specified the environment, he's read the FAQ, he's showing the error, and and he's not assuming his problems are someone else's fault. This guy might be worth some attention.


Stupid: I'm having problems with my motherboard. Can anybody help?
J. Random Hacker's response to this is likely to be "Right. Do you need burping and diapering, too?" followed by a punch of the delete key.

Smart: I tried X, Y, and Z on the S2464 motherboard. When that didn't work, I tried A, B, and C. Note the curious symptom when I tried C. Obviously the florbish is grommicking, but the results aren't what one might expect. What are the usual causes of grommicking on Athlon MP motherboards? Anybody got ideas for more tests I can run to pin down the problem?
This person, on the other hand, seems worthy of an answer. He has exhibited problem-solving intelligence rather than passively waiting for an answer to drop from on high.

In the last question, notice the subtle but important difference between demanding "Give me an answer" and "Please help me figure out what additional diagnostics I can run to achieve enlightenment."

In fact, the form of that last question is closely based on a real incident that happened in August 2001 on the linux-kernel mailing list. I (Eric) was the one asking the question that time. I was seeing mysterious lockups on a Tyan S2464 motherboard. The listmembers supplied the critical information I needed to solve them.

By asking the question in the way I did, I gave people something to chew on; I made it easy and attractive for them to get involved. I demonstrated respect for my peers' ability and invited them to consult with me as a peer. I also demonstrated respect for the value of their time by telling them the blind alleys I had already run down.

Afterwards, when I thanked everyone and remarked how well the process had worked, an lkml member observed that he thought it had worked not because I'm a "name" on that list, but because I asked the question in the proper form.

Hackers are in some ways a very ruthless meritocracy; I'm certain he was right, and that if I had behaved like a sponge I would have been flamed or ignored no matter who I was. His suggestion that I write up the whole incident as instruction to others led directly to the composition of this guide.


--------------------------------------------------------------------------------

If You Can't Get An Answer

If you can't get an answer, please don't take it personally that we don't feel we can help you. Sometimes the members of the asked group may simply not know the answer. No response is not the same as being ignored, though admittedly it's hard to spot the difference from outside.

In general, simply re-posting your question is a bad idea. This will be seen as pointlessly annoying.

There are other sources of help you can go to, often sources better adapted to a novice's needs.

There are many online and local user groups who are enthusiasts about the software, even though they may never have written any software themselves. These groups often form so that people can help each other and help new users.

There are also plenty of commercial companies you can contract with for help, both large and small (Red Hat and Linuxcare are two of the best known; there are many others). Don't be dismayed at the idea of having to pay for a bit of help! After all, if your car engine blows a head gasket, chances are you would take it to a repair shop and pay to get it fixed. Even if the software didn't cost you anything, you can't expect that support will always come for free.

For popular software like Linux, there are are at least 10,000 users per developer. It's just not possible for one person to handle the support calls from over 10,000 users. Remember that even if you have to pay for support, you are still paying much less than if you had to buy the software as well (and support for closed-source software is usually more expensive and less competent than support for open-source software).



B46层 发表时间: 04-12-12 04:41

回复: marsky [marsky]   论坛用户   登录
我不想当笨蛋。

B47层 发表时间: 04-12-14 12:43

回复: asd484 [asd484]   论坛用户   登录
看不懂,再看一遍吧!

B48层 发表时间: 04-12-14 15:12

回复: huangqian [huangqian]   论坛用户   登录
我看了还是懂不到啊???怎么办啊????我好郁闷哦

B49层 发表时间: 04-12-17 20:10

回复: incornet [incornet]   论坛用户   登录
喔喔~~


B50层 发表时间: 04-12-17 16:26

回复: f8986 [f8986]   论坛用户   登录
hao !!!

B51层 发表时间: 04-12-17 23:59

回复: hht_810865 [hht_810865]   论坛用户   登录
初次来本网站浏览
发现有用的东西太多了
读了这些有很多不懂的地方
有得学习

B52层 发表时间: 05-01-02 11:56

回复: China_Boy [china_boy]   论坛用户   登录
斑竹我认为你看了之后一定会删我的贴的但是我还是忍不住要说
你说的
第一:没有几个人会看    太罗嗦
第二:你说的东西说跟没说一样
很抱歉我这么跟您说话      但是希望你能好好想想我说的对不对

B53层 发表时间: 05-01-03 19:44

回复: yanhuacike [yanhuacike]   论坛用户   登录
我要拜师父  哪个愿意叫我这个菜鸟就回

B54层 发表时间: 05-01-10 05:30

回复: johnyooze [johnyooze]   论坛用户   登录
呵呵,你搞的大家都不敢回复了,这里是菜鸟乐园啊,大家都彼此彼此,既然你提出了,我就叫你一声:"菜鸟".好了,满足你的要求了吗?

B55层 发表时间: 05-01-10 11:08

回复: slota [slota]   论坛用户   登录
我能看懂!很复杂哟!

B56层 发表时间: 05-01-10 13:52

回复: toumings3 [toumings3]   论坛用户   登录


B57层 发表时间: 05-02-10 20:43

论坛: 菜鸟乐园

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号