乱弹@2004/11/26
Google Scholar
下面是Google自己对这个东东的解释:
Google Scholar enables you to search specifically for scholarly literature, including peer-reviewed papers, theses, books, preprints, abstracts and technical reports from all broad areas of research. Use Google Scholar to find articles from a wide variety of academic publishers, professional societies, preprint repositories and universities, as well as scholarly articles available across the web.
就像是一个图书资料查询器了。不过现在内容好少啊,要是以后把论文、期刊全部放进来就好了……
ASP.NET的两个小技巧
匿名状态下获得用户名:
当然,你得把匿名和Windows整合认证全部都选上。
<%@ Page language="c#"%>
<%
if (User.Identity.Name == "")
{
Response.Status = "401 Unauthorized";
Response.End();
}
Response.Write(User.Identity.Name);
// now do your stuff
%>
判断客户端和服务器是不是在一台机器上:
bool IsLocal(HttpRequest request) {
String remoteAddress = request.UserHostAddress;
if (remoteAddress == null || remoteAddress.Length == 0)
return false;
if (remoteAddress == "127.0.0.1" || remoteAddress == "::1")
return true;
if (remoteAddress == request.LocalAddress)
return true;
return false;
}