- 浏览: 619657 次
- 性别:
- 来自: 杭州
最新评论
-
koreajapan03:
楼主啊,好人啊,帮我解决了问题,谢谢
自定义过滤器时,不能再使用<sec:authorize url="">问题 -
snailprince:
请问有同一页面,多个上传实例的例子吗
webuploader用java实现上传 -
wutao8818:
姚小呵 写道如何接收server返回的参数呢?例如你返回的是“ ...
webuploader用java实现上传 -
姚小呵:
如何接收server返回的参数呢?例如你返回的是“1”,上传的 ...
webuploader用java实现上传 -
zycjf2009:
你好,我想用jplayer做一个简单的播放器,但是因为对js不 ...
jplayer 实战
文章列表
I got around to setting up Ruby on our new Centos 5 server today and ran into a snag. I ran:
yum install ruby
And went on to installing rubygems. However in installing rubygems I got an error that rdoc was not installed. Now I don’t remember ever having to install RDoc on my mac so I did a quick go ...
- 2008-04-21 16:46
- 浏览 2701
- 评论(0)
准备用ror写点东西,首先得找个舒服的IDE。netbeans6.0竟然装不上我的ubuntu.报错。
听说Textmate不错,可惜是Mac下面的编辑器。突然看到有一篇文章介绍linux下gedit也可以达到类似的效果。先看看吧。
Textmate-like Gedit in few steps
UPDATE: A !! new version !! of this guide is avalaible.
感觉还不错。下面还有很多插件哦。
具体请看http://grigio.org/textmate_gedit_few_steps
Snippets: it permits ...
- 2008-04-18 23:42
- 浏览 2535
- 评论(1)
1.首先一个区别
script\generate scaffold product title:string description:text image_url:string
在书中
只需要添加scaffold :product到AdminController到即可实现基本的操作。2.0中删除了动态scaffold方式。
这个问题在另一篇文章里已经写了。更准确的介绍可以查看
http://wiki.rubyonrails.org/rails/pages/ScaffoldGenerator
http://wiki.rubyonrails.org/rails/pages/Tutorial
...
- 2008-04-10 21:19
- 浏览 1449
- 评论(0)
3.7 索引调优
有2组参数可以设置。
在数据库触发索引操作的时候
• hibernate.search.[default|<indexname>].transaction.merge_factor
控制片段合并频率及大小
• hibernate.search.[default|<indexname>].transaction.max_merge_docs
定义一个片段中最大文档数
• hibernate.search.[default|<indexname>].transaction.max_buffered_docs
定义在创建索引 ...
- 2008-03-31 17:55
- 浏览 3004
- 评论(0)
Apache Lucene has a 概念 of Directory to store the index files
这个目录实现可以自定义。但是Lucene绑定文件系统FSDirectoryProvider 内存模式memory(RAMDirectoryProvider)2种实现。Hibernate Search 提供DirectoryProvider 概念处理Lucene目录问题。内建Directory Provide ...
- 2008-03-31 17:26
- 浏览 2727
- 评论(1)
开始为系统加入全文检索功能。考虑使用Hibernate Search 实现。
2.4节 Reader strategy 顺便翻译一些
当之行一个查询,Hibernate Search将通过一种读策略与lucene索引文件交互。选择哪种读策略取决于应用的属性(例如更新频率,主要以读为主,异步索引更新等)。可以参考3.5节读策略配置。
1.Shared
使用此策略。Hibernate Search 将使用相同的IndexReader,访问多个查询,and threads provided that the IndexReader is still up-to-date,If the Inde ...
- 2008-03-31 15:46
- 浏览 1565
- 评论(0)
今天在看Agile.Web.Development.with.Rails.2nd.Edition照着书写 Chapter 6 的代码class AdminController < ApplicationController scoffold Product;end运行报错。undefined method `scoffold' for AdminController:Class运行 gem list 查看当前版本rails (2.0.2, 1.2.6)查了网上的信息, 说是rails2.0把动态的scaffold去掉了。书写的内容比当前运行的2.0.2rails早。真郁闷。
怎么办。有一 ...
- 2008-03-30 21:17
- 浏览 4427
- 评论(6)
来源:http://webddj.sys-con.com/read/295396.htm 相关链接:http://flex.org/ruby/http://flexonrails.net/http://webddj.sys-con.com/ With the release of Flex 2, Adobe has introduced a tool that makes building rich user interfaces for the Web easier than ever; of course, as anyone remotely plugged in to the Web ...
- 2008-03-21 20:37
- 浏览 3068
- 评论(0)
来源:http://www.flex888.com/2007/09/20/10-flex-and-ruby-on-rails-integration-examples.html I love RIA technologies and Ruby on Rails. I always think combination of the these two could be greatest system framework. I’m glad Adobe recognizes that too, so do a few great guys. Here are the examples:Integr ...
- 2008-03-21 17:42
- 浏览 1651
- 评论(0)
A former student asked me a few days ago how I learned Ruby on Rails. The answer was that I simply read alot of great tutorials. So in the spirit of sharing, here are the 12 tutorials that I found most useful:
Rolling with Ruby on Rails - Curtis Hibbs of ONLamp.com offers his first excellent introdu ...
- 2008-02-22 11:01
- 浏览 1427
- 评论(0)
What is a Queue
Let’s examine how events in a queue occur: For a programmer a queue is an Array with events that are stacked on each other to be handled one by one. For example, a user hovers over a button with his cursor and then after half a second leaves the button area again. Two events have take ...
- 2008-01-26 19:43
- 浏览 1523
- 评论(0)
Effect.Drop Out
Makes the element drop and fade out at the same time.
让元素掉下去一样的消失的效果!
Examples
Effect.DropOut('id_of_element');
http://wiki.script.aculo.us/scriptaculous/show/Effect.DropOut
==============================
Effect.Shake
Moves the element slightly to the left, then to the right ...
- 2008-01-26 19:23
- 浏览 1443
- 评论(0)
Gives the illusion of the element puffing away (like a in a cloud of smoke).
让元素像烟一样消失的效果!
Examples
Effect.Puff('id_of_element');
// with options
Effect.Puff('id_of_element', {duration:3});
Options
Items in bold are default values.
duration: 1.0 (in seconds)
from: 0.0-1.0 (percent of ...
- 2008-01-26 19:02
- 浏览 1206
- 评论(0)
Makes an element fade away and takes it out of the document flow at the end of the effect by setting the CSS display property to none. Opposite of Effect.Appear
元素消失效果!
Examples
Effect.Fade('id_of_element');
Effect.Fade('id_of_element',
{ transition: Effect.Transitions.wobble })
Option ...
- 2008-01-26 18:59
- 浏览 1529
- 评论(0)
Examples
Effect.Appear('id_of_element');
Effect.Appear('id_of_element', { duration: 3.0 });
Options
duration:1.0 (in seconds)
from:0.0-1.0 (percent of opacity to start)
to:0.0-1.0 (percent of opacity to end)
Notes:
Works safely with most HTML elements, except table rows, table bodies and ...
- 2008-01-26 18:56
- 浏览 1504
- 评论(0)