`
crowson
  • 浏览: 9857 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
<!-- ======================================================== --> <!-- Function: BooleanOR(<value1>,<value2>) => number --> <!-- Parameters:- --> <!-- <value1> - the first number to be ORed --> <!-- <value2> - the second numb ...
[转载] Apache 防盗链的第一种实现方法,可以用 rewrite 实现。首先要确认 Apache 的 rewrite module 可用:能够控制 Apache httpd.conf 文件的,打开 httpd.conf,确保有这么一行配置: LoadModule rewrite_module modules/mod_rewrite.so   然后在找到自己网站对应的 配置的地方,加入下列代码: ServerName xiaohui.com # 防盗链配置 RewriteEngine On RewriteCond %{HTTP_REFERER} !^http: ...
用ldap方式访问AD域的的错误一般会如下格式:LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 52e, vece其中红字部分的意思如下:525 - 用户没有找到52e - 证书不正确530 - not permitted to logon at this time532 - 密码期满533 - 帐户不可用701 - 账户期满773 - 用户必须重设密码
<meta name="robots" content="noarchive"> 以上的一段代码限制了所有的搜索引擎建立你的网页快照。如果我们需要仅仅限制一个搜索引擎建立快照的话,就可以像如下这样去写 <meta name="Baiduspider" content="noarchive"> 需要注意的是,这样的标记仅仅是禁止搜索引擎为你的网站建立快照,如果你要禁止搜索引擎索引你的这个页面的话,请参照后面的办法。   第二种情况:禁止搜索引擎抓取本页面。 在SEO中,禁止搜索引擎抓 ...
import java.util.Enumeration; import java.util.Hashtable; import javax.naming.Context; import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.Attribute; import javax.naming.directory.Attributes; import javax.naming.directory.BasicAttribute; ...
HashMap按key排序  HashMap   map   =   new   HashMap();            map.put("0201",   "0201");            map.put("01",   "01");            map.put("0304",   "0304");            map.pu ...
在MyEclipse中新建一个JSP页面后,为了让页面显示中文,我们总要做将page指令中的pageEncoding="UTF-8"或 pageEncoding="GBK"之类的动作,每新建一个页面就要更改一次,很麻烦吧,现在告诉大家一个方法,可以再也不用做这无聊而又麻烦的动作 了。 先找到MyEclipse 6.5的安装目录, 再找到\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.5.0.zmyeclipse650200806\templates\jsp (com.genuitec.ec ...
从别人那整理得来的图片(jpg)处理类  效果还不错         import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOExceptio ...
Global site tag (gtag.js) - Google Analytics