MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

windows下的安装要点
1,下载EasyPHP5.2.10和dotproject_2.1.3
2,安装EasyPHP5.2.10,把dotproject解压到www下
3,访问http://localhost/dotproject,系统会有提示
4,访问http://127.0.0.1/home/mysql,使用phpmyadmin创建数据库dotproject和用户
5,再次访问http://localhost/dotproject,点击安装
6,把conf_files\php.ini的972行session.save_path = "/tmp" 左边的分号去掉,同时可把/tmp改为c:/tmp
  另外session.auto_start = 0改为1的话起什么作用
7,默认的系统管理员是admin/passwd
8,到网上找到dotproject-zh-pack-2.1.1-by-hutuworm2.tar.gz,解压到locales目录
  在系统管理设置语言为zh,然后退出重登
9,甘特图不能显示,在\lib\jpgraph\src的jpg-config.inc文件里加一行DEFINE("CATCH_PHPERRMSG",false);
  出处:http://jpgraph.intellit.nl/index.php?topic=3341.msg9248#msg9248

网上资源:
1,有一个几十页的"dotproject使用说明.pdf"
2,台湾一所大学的几个研究生出了一份研究报告,比较详细
3,有一本电子书Packt.Publishing.Project.Management.with.dotProject.pdf
4,项目管理利器-DotProject应用指南

如果要使用EasyPHP的phpmyadmin访问其他mysql,可在phpmyadmin目录下的config.inc.php里配置
$cfg['Servers'][$i]['host'] = '192.168.1.29:2366';
$cfg['Servers'][$i]['user'] = 'test';
$cfg['Servers'][$i]['password'] = '123456';

posted @ 2010-10-29 00:47 leekiang 阅读(621) | 评论 (0)编辑 收藏

http://www.mongodb.org/display/DOCS/MongoDB+Data+Modeling+and+Rails
视觉中国的NoSQL之路:从MySQL到MongoDB

posted @ 2010-10-28 22:12 leekiang 阅读(218) | 评论 (0)编辑 收藏

负载均衡软件:Nginx、LVS、HAProxy

HAProxy: The Reliable, High Performance TCP/HTTP Load Balancer,好像是用c语言写的


posted @ 2010-10-27 23:21 leekiang 阅读(362) | 评论 (0)编辑 收藏

用的版本1.2.1
必须跑在ruby1.8.7和rails2.3.8,否则出各种问题
要执行rake db:schema:load,把schema.rb里设定的数据表结构同步到数据库

http://www.soft4fun.net/website-recommand/%E7%B6%B2%E7%AB%99%E6%8E%A8%E8%96%A6-%E8%B6%85%E4%BE%BF%E5%88%A9%E7%B6%B2%E8%B7%AF%E8%A8%98%E4%BA%8B%E7%B3%BB%E7%B5%B1-clockingit%EF%BC%88%E5%A4%9A%E7%94%A8%E6%88%B6%E4%BD%BF%E7%94%A8%E7%AF%87.htm
http://www.soft4fun.net/website-recommand/%E7%B6%B2%E7%AB%99%E6%8E%A8%E8%96%A6-%E8%B6%85%E4%BE%BF%E5%88%A9%E7%B6%B2%E8%B7%AF%E8%A8%98%E4%BA%8B%E7%B3%BB%E7%B5%B1%EF%BC%8C%E5%B9%AB%E4%BD%A0%E8%A8%98%E4%B8%8B%E6%89%80%E6%9C%89%E7%94%9F.htm

posted @ 2010-10-21 00:08 leekiang 阅读(288) | 评论 (0)编辑 收藏



2,安装mysql(包括mysql的gem,还有那个libmySQL.dll要拷入到ruby/bin下)并建立名为"redmine"的schema
mysql> create database redmine character set utf8;
mysql> create user 'redmine'@'localhost' identified by 'redmine';
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';

3,生成session密钥,执行数据迁移并载入Redmine默认配置
set RAILS_ENV=production
rake config/initializers/session_store.rb
rake db:migrate
rake redmine:load_default_data
注:1)lib\tasks\initializers.rake里定义了,rank generate_session_store等价于rake config/initializers/session_store.rb
   2)rake  redmine:load_default_data RAILS_ENV="production"
     可导入角色、权限、跟踪类型、问题状态、工作流程、枚举值的默认数据,见loader.rb

5,项目有一个"是否公开"属性

6,工作台可以自定义

7,群英汇翻译的用户手册http://www.oschina.net/bbs/thread/9314,管理员手册http://www.oschina.net/bbs/thread/9437
  http://www.ossxp.com/doc/redmine/user_guide/user_guide.html
  http://www.ossxp.com/doc/redmine/admin_guide/admin_guide.html
  群英汇的统一认证平台http://www.ossxp.com/HelpCenter/10000_Jigsaw
 
  Techcon ezWORK团队任务管理系统也是基于redmine开发的,http://ezwork.techcon.thtf.com.cn/
 
8,插件列表http://www.redmine.org/wiki/redmine/Plugin_List
  http://www.ossxp.com/doc/redmine-plugins/下有几个插件的使用手册
  http://www.javaeye.com/topic/224772
  http://github.com/zouchaoqun/ezfaq/tree/master/app/
 
9,redmine权限设置心得
http://www.cnblogs.com/treeman/archive/2010/08/30/1812692.html

10,组使用的表也是users表

11,ticket分组插件
    http://www.redmine.org/boards/3/topics/4701,http://github.com/Ubik/redmine_issues_group
    另外一个http://www.redmine.org/issues/443
12,redmine高版本已经支持任务的无限嵌套,但界面没有体现

20,bitnami提供的傻瓜安装包,见http://bitnami.org/stack/redmine

posted @ 2010-10-15 16:34 leekiang 阅读(676) | 评论 (0)编辑 收藏

1,Rails系统重构:从单一复杂系统到多个小应用集群http://www.infoq.com/cn/articles/rails-app-refactoring
2,http://www.smashingmagazine.com/2010/10/26/successful-freelancing-with-ruby-on-rails-workflow-techniques-and-tools/
3,http://www.rubyinside.com/11-tips-on-hiring-a-rails-developer-662.html
4,http://www.rubyinside.com/how-to-get-a-job-at-a-top-ruby-shop-1618.html
5,http://www.matthewpaulmoore.com/ruby-on-rails-code-quality-checklist
6,Ruby on Rails性能问题解决之道

posted @ 2010-10-15 16:33 leekiang 阅读(256) | 评论 (0)编辑 收藏

1,gem install railroad 装的版本是0.5.0
2, 安装graphviz-2.26.3.msi
3, 在应用目录下railroad -M | dot -Tsvg > models.svg,报错:
C:/Ruby186/lib/ruby/gems/1.8/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:
in `reopen': No such file or directory - /dev/null (Errno::ENOENT)
   搜到篇文章说把c:/Ruby186/lib\ruby\gems\1.8\gems\railroad-0.5.5\lib\railroad下的app_diagram.rb的54行改为STDOUT.reopen('NUL:')
把controllers_diagram.rb的39行改为require "app/controllers/application_controller.rb"
按要求修改后在应用下执行railroad -a -i -M | dot -Tpng > models.png,又报:
D:/netbeansWorkSpace/redmine/vendor/rails/activesupport/lib/active_support/w
hiny_nil.rb:52:in `method_missing': undefined method `klass' for nil:NilClass (N
oMethodError)

注:ruby为1.8.6,rails为2.3.5
参考:
http://www.javaeye.com/topic/88700
http://blog.brzezinka.eu/webmaster-tips/ruby/ror-railroad-plugin-with-rails-2-3-5-on-windows-error


该文章后面讲了如何使用rake自动生成,copy如下:
To automate the process of creating schemes, you can create Rails task. In your rails_project_dir/Libs/tasks create diagrams.rake and copy the text:
namespace :doc do
  namespace 
:diagram do
    task 
:models do
      sh 
"railroad -a -i -M | dot -Tpng > doc/models.png"
      sh 
"railroad -i -l -a -m -M | dot -Tsvg doc/models.svg"
    end

    task 
:controllers do
      sh 
"railroad -i -l -C | neato -Tsvg > doc/controllers.svg"
    end
  end

  task 
:diagrams => %w(diagram:models diagram:controllers)

end

Now you can run the task by typing in console: rake doc:diagrams to generate all diagrams (for models an controllers) or rake doc:diagram:models to generate diagram for models only.

Due to the information on RailsRoad Docs, there is a bug in Graphvis while crating svg graphic. There is a simple way to correct it (citation from RailsRoad Docs):

Important: There is a bug in Graphviz tools when generatingSVG files that cause a text overflow. You can solve this problem editing (with a text editor, not a graphical SVG editor) the file and replacing around line 12 „font-size:14.00;” by „font-size:11.00;„, or by issuing the following command (see „man sed„):

sed -i 's/font-size:14.00/font-size:11.00/g' file.svg

Note: For viewing and editing SVG there is an excellent opensource tool called Inkscape (similar to Adobe Illustrator.) For DOTprocessing you can also use Omnigraffle (on Mac OS X).



posted @ 2010-10-14 18:56 leekiang 阅读(329) | 评论 (0)编辑 收藏

有两种含义:
1,开源性能测试ApacheBench
   http://jackei.cnblogs.com/archive/2006/07/18/454144.html
2,互联网营销人员的优化手段

posted @ 2010-10-14 12:49 leekiang 阅读(282) | 评论 (0)编辑 收藏

1,安装ruby1.8.6-p398,把添加环境变量那一项打勾
2,安装rails
  gem install rails -v=2.3.5
3,安装rdoc,版本为rdoc-2.5.11.gem
http://rubyforge.org/frs/?group_id=627
没有安装rdoc-data-2.5.3.gem,不知道有没有问题
4,在Mysql安装目录的bin 目录下,找到 ibmySQL.dll ,将该文件Copy到 Ruby安装目录的 bin目录中。
到http://rubyforge.org/projects/mysql-win下载安装mysql-2.8.1-x86-mswin32.gem
5,乱码的问题参见http://www.javaeye.com/topic/66347
  修改MySQL的配置文件C:\Program Files\MySQL\MySQL Server 5.0\my.ini,改其中的两处default-character-set=utf8,改完后重启MySQL,schema也要重建.
  mysql的编码有没有改过来以字段的编码为准。
  我发现经netbeans6.9编辑过的erb文件的编码为utf-8无BOM
6,在项目路径下执行rake gems:install,会自动安装environment.rb里标明的gem
  如果rake gems:install RAILS_ENV=test,那么会自动安装config\environments\test.rb里标明的gem
  这些gem都会安装到C:\ruby\lib\ruby\gems\1.8\gems下。如果同一个gem在多个项目中版本不一样如何处理
7,rake rails:update是对旧rails版本的项目进行升级吗?
8,使用sqlite3
  gem install sqlite3-ruby
  下载http://www.sqlite.org/sqlitedll-3_6_23_1.zip,解压放到ruby\bin下。
  test:
  adapter: sqlite3
  database: db/test.sqlite3
  pool: 5
  timeout: 5000

posted @ 2010-10-13 17:13 leekiang 阅读(553) | 评论 (0)编辑 收藏

1. 介绍

Web开发框架安全杂谈


2. web安全检测工具paros

2.1. 步骤

  1. 设置IE代理为localhost:8080
  2. 在IE里访问链接
  3. 扫描Analyse->scan
  4. Report->Last scan report 生成Report

2.2. 参考

  1. http://www.51testing.com/html/37/n-111337.html
  2. http://www.webcastellum.org
  3. http://searchsoftwarequality.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid92_gci1218180,00.html
  4. http://weblogs.java.net/blog/caroljmcdonald/archive/2009/09/29/top-10-web-application-security-vulnerabilities-starting-xss

3. Google发布的Web应用安全检测工具skipfish

http://code.google.com/p/skipfish
Google的自动Web安全扫描程序Skipfish下载及使用方法


4.WATOBO是一个Web应用程序工具箱,它是一个旨在帮助专业安全人员执行高效率的(半自动)Web应用程序安全审计的工具。它类似于一个本地代理,在运行中分析网络通信寻找有用的信息和漏洞。它还具备自动扫描功能。能扫描SQL注入,跨站脚本和更多安全问题。
http://sourceforge.net/projects/watobo/

posted @ 2010-09-21 14:48 leekiang 阅读(521) | 评论 (0)编辑 收藏

仅列出标题
共54页: First 上一页 9 10 11 12 13 14 15 16 17 下一页 Last