- 博客(24)
- 资源 (1)
- 收藏
- 关注
C#混合IronRuby编程
C#编程中,业务部分由IronRuby来实现是一个不错的选择。 1. IDE: SharpDevelop http://www.icsharpcode.net/opensource/sd/2. IronRuby: http://ironruby.codeplex.com/releases下载 IronRuby 1.1.1 Binaries 即可 3....
2011-01-26 20:36:16 247
Netbean 集成 CppUnit 问题
当使用Netbean搭配C++插件开发时,如果使用CppUnit进行测试,每添加一个测试有一定概率会破坏Makefile文件,导致找不到CppUnit: /home/programmer/workspace/InterviewTest/CppInterview/tests/SortClass.cpp:38: undefined reference to `CppUnit::SourceLi...
2010-12-21 11:41:01 146
Rails3利用whenever gem调度发送邮件
1. Install$ gem install wheneverOr with Bundler in your Gemfile.gem 'whenever', :require => false2. Getting Started$ cd /my/rails/app$ wheneverize .This will create an ini...
2010-12-01 10:42:53 213
Rails3集成测试插件Rails-Carrot(二)
本篇简要介绍使用JRuby + RSpec + Rails-Carrot + Celerity 进行rails3项目的集成测试。 1. Install jruby> rvm install jruby2. Rails Gemfileif defined?(JRUBY_VERSION) gem 'activerecord-jdbc-ad...
2010-11-03 11:59:28 109
Rails3集成测试插件Rails-Carrot(一)
Rails-Carrot部分参考Capybara,支持原生的测试Gem驱动,主要是供喜欢用Celerity或者原生浏览器测试Driver。 支持远程,本地,本地外部ruby运行服务器 进行集成测试。 插件地址: http://github.com/sloanwu/carrot 简要介绍,以集成Celerity(需要使用JRuby)为例You can us...
2010-11-03 11:40:54 199
Nginx + Passenger -- RVM
Nginx + Passenger -- RVM You should install RVM. 1. > gem install passenger 2. > rvm wrapper 1.9.2 passenger#1.9.2 is the ruby version in RVM, you can use ree or other.. If ...
2010-10-25 09:16:19 140
Make Ruby Gem
How to make gem 1. Install echoe gem$ gem install echoe2. make gem$ mkdir hello_world$ vi hello_world/Rakefilerequire 'rubygems'require 'rake'require 'echoe'Echoe.new('...
2010-09-09 21:41:12 229
OpenId Authentication For Rails3
[align=center][size=xx-large]OpenId Authentication For Rails3[/size][/align][b]1. Add Gem[/b]GemFile[code="java"]gem 'ruby-openid'gem 'rack-openid', '>=0.2.1', :require => 'rack/openid'[...
2010-09-01 22:00:17 84
Ruby1.9.2 On Rails3.0.0
Ruby1.9.2 On Rails3.0.0Required:sudo aptitude install bisonsudo aptitude install libmysqlclient-devsudo aptitude install libxml2-dev libxslt-devsudo aptitude install build-essential li...
2010-08-31 17:16:54 109
CKEditor And Box window Note
CKEditor And Box window Note1. open a new pageif(CKEDITOR.instances[element_id])# it will delete the CKEDITOR old instance from cache but it won't remove the CKEDITOR DOM ...
2010-08-29 14:59:15 96
Install Apache & Passenger
How to Install Apache & Passenger1. Install Apachesudo apt-get install apache22. Install Passengersudo gem install passenger3. Install Apache Passenger Module...
2010-08-14 16:45:26 123
Rails3RC Note
Rails3RC Notes1. ruby script/COMMAND.... rails <command> Usage: rails COMMAND [ARGS]The most common rails commands are: generate Generate new code (short-cut alias:...
2010-08-14 16:36:25 105
原创 Ruby1.9.2RC On Rails3RC -- RVM
[size=x-large][b]Ruby1.9.2RC On Rails3RC -- RVM [/b][/size]1. Install ruby 1.9.2RC and rails3RC -- In rvmYou should install the git or ruby && gem1) Install rvm with Git[code="java"]> ...
2010-08-14 16:33:20 131
原创 Active Scaffold and JRails/jQuery
To use Active with scaffold with JRails you have to use a different JQUERY_VAR than $In our controllers1. set [code="java"]ActionView::Helpers::PrototypeHelper::JQUERY_VAR = ‘jQuery’...
2010-07-29 19:58:43 108
原创 Rails plugin Markdown
1. RDiscounthttp://github.com/rtomayko/rdiscount[code="java"]> sudo gem install rdiscount[/code][b]Usage[/b]RDiscount implements the basic protocol popularized by RedCloth and adopted ...
2010-07-28 21:47:48 110
原创 Active Scaffold Note -- Rails Plugin
1. Install[code="java"]./script/plugin install git://github.com/activescaffold/active_scaffold.git -r rails-2.3[/code]Rails 2.3.x needs the plugin render_component for nested scaffolds[cod...
2010-07-23 21:48:37 122
Mac OS X (Intel) 上安装 Oracle 10g
[size=medium]首[/size]先到 Oracle官方 [url=http://www.oracle.com/technology/tech/macos/index.html]http://www.oracle.com/technology/tech/macos/index.html[/url]下载 Oracle Database 10g Rel 2 for Ma...
2009-10-19 14:05:12 208
Spring Hibernate SessionFactory packagesToScan Bug
2009年4月20日[code="java"] org.hibernate.dialect.MySQL5Dialect ${hibernat...
2009-10-18 13:53:14 231
Spring MVC 注解及XML双重配置
[size=medium]平[/size]常使用Spring 导出 WebService时,为了能在Spring MVC中既能使用注解进行Controller配置及用XML配置,如下: [code="java"] [/code] 另外还要加入DefaultAnnotationHandlerMapping,不然会被 XML的映射覆盖! ...
2009-10-18 13:42:03 156
Spring MVC 注解配置
1、配置Web.xml[code="java"] springmvc org.springframework.web.servlet.DispatcherServlet 2 springmvc *.do [/code]2、配置Appli...
2009-10-18 13:35:31 91
JBPM 错误集锦
[color=darkblue][b]1、问题:org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#1][/b][/color]连接Mysql5时,jBPM4运行到 End结点时的错误,把 hibernate.dial...
2009-10-18 13:26:37 101
Spring 2.5 + ActiveMQ 5.2.0 Embedded Broker实现
[size=medium]主[/size]要的代码实现在上一篇文章,而本篇文章重点是说明 ActiveMQ 5.2.0 Embedded Broker实现。 另外,打开 activemq-all-5.2.0.jar 修改 spring.schemas文件,在文件最后添加\://activemq.apache.org/schema/core/activemq-core-5.2...
2009-10-18 13:17:17 147
Spring + ActiveMQ 实现
站内消息模块在多数OA系统中是不可缺少的一部分。 一般来说,是消息是存储在数据库中的,但最关键的是消息发送及接收处理的环节。如果直接用一个Action方法处理,然后调用Service来存储消息,那样也是可以的,问题是等待的时间较长,而且耗费服务器的资源。这种方法相当于同步处理。 因此,采用另一外种方法:异步处理。说到这里,想到twitter的系统,虽然它是采用Rub...
2009-10-18 00:56:46 80
Hibernate Annotation 笔记
1、 Hibernation 默认值 1) 字段(没有尝试过) [code="java"] @Column(columnDefinition = "tinyint default 0")[/code] 2) 在 类 上加 [code="java"] @org.hibernate.annotations.Entity(dynamicUpdate=true,dynami...
2009-04-09 10:36:06 106
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人