Search results for [ %s ] - 79 hit
[转载]平民 RAID 架设与评测
本文是截取自 PC ADV 电脑王第 49 期 (2008年8月) 的 “平民 RAID 架设与评测” 文章,这是一本不错的杂志,完整的内容建议大家可以去买来阅读。
Read more
本站推荐的 Thunderbird 扩充套件 (Addons)
好用的
- Compact Headers: 可以展开/收合邮件的档头。
- Folder Pane View Switcher: 切换邮件资料夹窗格的检视类型,找回旧版 Thunderbird 的“进阶资料夹检视”。
- Toggle Quotes: 可以展开/收合邮件中的引言。
- Confirm-Address: 让你寄出邮件前,确认邮件收件者 E-Mail 是否为相同网域,或收件者的 E-Mail 是否正确。
- DKIM Verifier: 检查寄件者的 DKIM 邮件签章。
- Web Translate: 翻译你选取的文字,你可以选择 Deepl、Google、Bing... 等翻译服务来帮你翻译。
其他
- Clippings: 让你储存常用的文字资料,方便贴上邮件内容。
- XNote++: 邮件的便利贴,方便你编写邮件的备注事项。
- Display Mail User Agent T: 以图示显示寄件者的邮件软件或邮件系统。
- HTML Source Editor: 编辑邮件原始码。
- Manually sort folders: 可以将帐号或邮件匣手动排序。
- Mail Merge: 这套件让你做到像电子报发信机一样的客制化栏立功能。
- Provider for Google Calendar: 新版的 Thunderbird 已经整合 Google 日历了,只需在新增行事历时,选择“存放于互联网”,然后在“使用者名称”输入你的 Gmail 帐号,即可连结 Google 日历。但 Thunderbird 只能连结 Gmail 帐号拥有人的日历,不能存取别人共用给你的日历,也不能存取 Google Tasks! 安装本套件可让你连结别人共用的日历与 Google Tasks。
- Darko: Thunderbird 虽提供暗色的布景主题,但套用暗色的布景主题之后,邮件的内容仍是白底的! 安装此套件可将邮件的内容处理成暗色系,并优化邮件的文字内容 (但不到很完美)。
附件问题
ThunderBird 有时会有一些附件的问题,这些问题通常来自 MS Outlook 使用非标准的格式所导致:
- 当你收到的附件变成“winmail.dat”,请安装 LookOut 这个外挂程式。
- 当你收到的附件变成“ATTxxxxxx”,则请进入 ThunderBird 的“设定编辑器”,将“mail.strictly_mime.parm_folding”参数设为 0 或 1。
参考网页
正规表示式 (Regular Expression) 语法整理
正规表示式 (Regular Expression, 简写 regex、regexp 或 RE) 是用于字串比对的小型语言,又称正则表达式、正规表示法、规则运算式、常规表示法 (Wiki)。
很多程式语言和软件都会附加“正规表示式”这项功能。在字串的处理上,针对大量、重复、有固定逻辑的文字,正规表示式是非常强而有力的工具! 即便不是程式设计师,在可以在运用到正规表示式的场合 (例如: 文字编辑器),能帮你节省许多文字处理的时间。但是不同的软件所附加的正规表示式可能略有差异,这部份就要稍加留意。
不过在初学者的眼中,正规表示式却又像是天书一样的难以理解。以下文章针对正规表示式的相关语法做解说,你可到线上测试工具,以实际的例子去做测试。
在 Blogger 中使用 dp.SyntaxHighlighter 显示程式码
db.SyntaxHighlighter 是一支不错的程式码高亮度显示程式,特点为:
- 显示行号
- 支援12种程式语言
- 模组化加载需要的程式语言
- 支援 “<pre>” 及 “<textarea>” 区块
- 纯文字检视
- 复制到剪贴簿
- 直接打印程式码
缺点就是加载速度较慢。
安装步骤
- 修改 blogger 样板,搜寻 “</body>”,在 “上方” 加入(你可以选择你要的语言加载即可):
<script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shCore.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushPhp.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushJScript.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushSql.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushXml.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushDelphi.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushPython.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushRuby.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushCss.js'></script> <script class='javascript' src='http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/shBrushCpp.js'></script> <script class='javascript'> dp.SyntaxHighlighter.ClipboardSwf = 'http://syntaxhighlighter.googlecode.com/svn/tags/1.5.0/Scripts/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); </script>
(因为 “偷吃步” 的关系,程式直接连到 dp.SyntaxHighlighter 的 SVN 上,你可以视情况下载回来放到自己的服务器)
- dp.SyntaxHighlighter 原本已经有一个 CSS 档了,但如果将这个 CSS 档以 “Link” 的方式加载,却无法正常显示。所以,请自行增加下列 CSS 到 blogger 样板的 CSS 区段:
/*dp.highlighter*/ .dp-highlighter { font-family: "Consolas", "Courier New", Courier, mono; font-size: 12px; background-color: #E7E5DC; width: 99%; overflow: auto; margin: 18px 0px 18px 0px; padding-top: 1px; /* adds a little border on top when controls are hidden */ border:1px inset; max-height:200px; } .dp-highlighter .bar { padding-left: 45px; } .dp-highlighter.collapsed .bar, .dp-highlighter.nogutter .bar { padding-left: 0px; } .dp-highlighter ol { list-style: decimal; /* for ie */ list-style: decimal-leading-zero; /* better look for others */ background-color: #fff; margin: 0px 0px 1px 45px; /* 1px bottom margin seems to fix occasional Firefox scrolling */ padding: 0px; color: #5C5C5C; } .dp-highlighter.nogutter ol { list-style-type: none !important; margin-left: 0px; } .dp-highlighter ol li, .dp-highlighter .columns div { border-left: 3px solid #6CE26C; background-color: #f8f8f8; padding-left: 10px; line-height: 14px; } .dp-highlighter.nogutter ol li, .dp-highlighter.nogutter .columns div { border: 0; } .dp-highlighter .columns { color: gray; overflow: hidden; width: 100%; } .dp-highlighter .columns div { padding-bottom: 5px; } .dp-highlighter ol li.alt { background-color: #fff; } .dp-highlighter ol li span { color: Black; } /* Adjust some properties when collapsed */ .dp-highlighter.collapsed ol { margin: 0px; } .dp-highlighter.collapsed ol li { display: none; } /* Additional modifications when in print-view */ .dp-highlighter.printing { border: none; } .dp-highlighter.printing .tools { display: none !important; } .dp-highlighter.printing li { display: list-item !important; } /* Styles for the tools */ .dp-highlighter .tools { padding: 3px 8px 3px 10px; font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: #f8f8f8; text-align1: right; padding-bottom: 10px; border-left: 3px solid #6CE26C; } .dp-highlighter.nogutter .tools { border-left: 0; } .dp-highlighter.collapsed .tools { border-bottom: 0; } .dp-highlighter .tools a { font-size: 9px; color: #a0a0a0; text-decoration: none; margin-right: 10px; } .dp-highlighter .tools a:hover { color: red; text-decoration: underline; } /* About dialog styles */ .dp-about { background-color: #fff; margin: 0px; padding: 0px; } .dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; } .dp-about td { padding: 10px; vertical-align: top; } .dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; } .dp-about .title { color: red; font-weight: bold; } .dp-about .para { margin: 0 0 4px 0; } .dp-about .footer { background-color: #ECEADB; border-top: 1px solid #fff; text-align: right; } .dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; width: 60px; height: 22px; } /* Language specific styles */ .dp-highlighter .comment, .dp-highlighter .comments { color: #008200; } .dp-highlighter .string { color: blue; } .dp-highlighter .keyword { color: #069; font-weight: bold; } .dp-highlighter .preprocessor { color: gray; }
- 储存即可
使用方法
- 方法一 - 使用 “<textarea>” 区块,需将 “&” 转换为 “&”:
<textarea name="code" class="程式语言"> 程式码 </textarea>
- 方法二 - 使用 “<pre>” 区块,需将 “&” 转换为 “&”、”<” 转换为 “<”、”>” 转换为 “>”:
<pre name="code" class="程式语言"> 程式码 </pre>
参考网页
[Perl]CGI 模组常用语法
加载 CGI 模组
use CGI qw/:standard/; my $CGI = CGI->new();
取得所有输入的参数名称
@param_name = $CGI->param();
取得特定参数的内容
$value = $CGI->param( "param_name" );
取得所有参数的名称及内容
%param = $CGI->Vars;
转换 $url 为 url 可接受的字串
$url_escape = $CGI->escape( $url )
取得目前网页的编码
$charset = $CGI->charset();
指定网页的编码,并送出网页表头
print $CGI->header( -charset=>"utf-8", -expires=>"-1d" );
[转载]利用 google 半秒破 500 网
转载自: 黑客基地
其实 google 搜寻器变了骇客工具也不是新闻,老手早亦用到,新手的也可来试试。
只要将以下字串作搜寻的话,你都得到很多密码,当然若要得心应手便需要更多研究及借助其他软件,但初步先懂得去找。
inurl
“inurl”是骇客重要的搜寻方法,可搜到网址包括的关键字,例如输入“allinurl:login password”作搜寻,便会很易找到有 login 和 password 的网页。
filetype
“filetype”是骇客专用语法,例如想找 mdb 的数据库档案,可用“password filetype:mdb”作搜寻,便会找到密码文件,进阶用法可配合 inurl: 使用,例如 girl filetype:jpg site:com 便可搜到所有 .com 网站,而档案为 girl.jpg 或网页内容有 girl 字串的网页。
Index of /admin
“Index of /admin”搜到的结果大多数是容许使用 index browsing 的网站,随便按下一个连结便看到网站的资料夹和档案分布。
INFORMATION
我们解决了什么问题?我们创造了什么价值?
近期回响