2010年6月23日星期三

这个网站,需要经常去看看

http://cve.mitre.org/about/documents.html

一个介绍软件安全漏洞的网站,很好,文档详细。


2010年6月14日星期一

密码学习的网站,先暂时记下,以后再看

来源:http://bbs.cisps.org/viewtopic.php?f=35&t=6373&sid=08b47d0209b0862ec2f7b476a39499aa

挺好的网站: 
大家看看 
http://maths.utime.cn:81 
不过有点慢的难受

http://www.smatrix.org/bbs/?u=404

the best one, I think is 
http://www.adastral.ucl.ac.uk/~helger/crypto/

http://www.keylength.com/index.php

http://www.cacr.math.uwaterloo.ca/hac/about/chap13.pdf

http://www.rsasecurity.com/ 

http://bbs.chinacissp.com/ 

http://groups.google.com/group/sci.crypt?hl=zh-CN

http://eprint.iacr.org/ 
密码学最新的进展都会发表在这里。

www.100code.com很不错,里面的版主人很好的。 
山东大学的数缘社区。我最喜欢的一个,里面的管理员特别特别好!学密码的同行一定要常去这两地方,受益匪浅的啊!!!

http://www.openssl.org/

http://www.mathmagic.cn
www.yantuo.com

http://www.team509.com/这网站的东西绝对精华,而且站点是美国的。很不错的。吸其精华,弃其糟粕,以强国人。

2010年6月8日星期二

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 解决方案

问题描述:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/local/apache/htdocs/filename.php' (include_path='.:/usr/local/php/lib/php') in Unknown on line 0

问题的原因是 : 你的 filename.php文件 在这个用户下不具有 可读的权限 通过 ls -l 查看 文件的权限 然后更改权限(添加读权限 chmod +r filename.php)就不会出现这个问题了...

vsftpd服务器出现553 Could not create file与 500 OOPS: cannot change directory错误

vsftpd服务器出现553 Could not create file与 500 OOPS: cannot change directory错误
题目够长呵呵
这两个是我在安装配置vsftpd、建的虚拟用户后上传时一直头疼的错误,所以都拿出来摆摆:
首先 553 Could not create file
 这个顾名思义  没有创建(写)文件的权限,
    write_enable=YES ,这个是主要的,
另外,更主要的(呵)是你要把这个安放文件的主目录下的文件夹权限改下,
例如:sudo chmod 775 /var/small2/

再一个:500 OOPS: cannot change directory错误(上传时遇到)
  我是把文件夹属主改了sudo chown small2 /var/small2/
  因为这个用户的建立是在另一个用户下sudo useradd加上的,其文件夹属主也随之了

以上是我遇到的问题及解决办法(前提是在其它设置都正常之下),
该错误诸君有则改之,无则加冕?呵~

vsftpd 553 Could not create file问题的解决方法

当需要用VSFTPD服务器,上传文件的时候出现:

vsftpd 553 Could not create file错误

解决方法:比如上传的文件目录是/var/www,而该目录的权限是root,你的用户是test,不具有改目录的权限。
则需要输入:chown test /var/www
然后再次上传文件,即可解决问题。

2010年6月7日星期一

Server sent unexpected return value (405 Method Not Allowed) in response to 问题的解决方法

 

I have never seen this error before. Can someone help me?

Solution

I managed to solve the problem:

  • Delete the parent's directory of the folder giving the problem.
  • Did SVN Update
  • A folder with the same name as the new one already existed in repository.
  • Delete this folder
  • SVN Commit
  • Copy the new folder, Schedule for addition and SVN Commit

 

源文档 <http://serverfault.com/questions/11996/subversion-error-405-method-not-allowed-in-response-to-mkcol>

 

 

What does Subversion "405 Method Not Allowed" mean?

The error message "Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL request for..." means that the commit to the Subversion repository failed. There are a few possible explanations and solutions.

  • You may have performed an svn move twice before attempting to commit. Either move once and commit, or, if you decide after the move that you need to move it elsewhere, use svn revert to revert the first move, then svn move to move it where you want, then commit.
  • Something in your working copy may have got confused. Run clean up on your working copy. If this option does not resolve the problem, try renaming the top-level folder of your working copy and check out a new copy.
  • The length of your pathname could be causing issues. Windows doesn't support relative paths with more than about 255 characters. To avoid this, use absolute paths everywhere. One solution might be to check out the working copy into a shorter path.
  • The size of your file could be causing timeout issues. This is more of an Apache issue, but it can cause svn errors.

 

源文档 <http://help.collab.net/topic/faq/405_method_not_allowed.html>




2010年6月4日星期五

如何安装xapian

Xapian 是一个搜索引擎库,GPL许可。 C++编写的,,支持在Perl、Python、PHP、Java、Tcl、C#和Ruby中使用。

  • 在Ubuntu中安装Xapian非常简单,http://www.xapian.org/download.php ,根据其中的介绍,设置好source.list后,直接apt-get即可。我是在软件包管理器中直接勾选按装的.

在windows上安装,就比较麻烦了.需要先下载源码,然后编译.

1.下载xapian-core-0.9.9,xapian-bindings-0.9.9和win32.zip

2.新键文件夹xapian, 将下载的文件解压后分别放在xapain目录下.结构是

  • xapian\xapian-core-0.9.9
    • xapian\xapian-core-0.9.9\win32
    xapian\xapian-bindings-0.9.9

3.编辑xiapian\xiapian-core-0.9.9\win32\config.mak

  • CPPFLAGS_EXTRA=/I..\include /I..\common /I"D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include" /I"D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include" LIBFLAGS=/LIBPATH:"D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib" /LIBPATH:"D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib"

4.到win32目录下执行putmakfiles 5.到xapian-core-0.9.9的每一个子目录下编辑win32.mak, 在LIB32_FLAGS的最后加上$(LIBFLAGS)

5.设置环境变量path,追加D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib

6.到win32目录下执行nmake win32.mak 7.到xapian-bindings-0.9.9\python目录下执行nmake win32.mak

大功告成~~~~~~~

来源:http://wiki.woodpecker.org.cn/moin/xapian001