- 浏览: 434945 次
- 性别:
- 来自: 上海
-
最新评论
-
w156445045:
博主我用的是1.6的版本,我没找到conf/crawl-url ...
Nutch 笔记(一):Quick Start -
hz_qiuyuanxin:
楼主,正则表达式写错了,是 /.*\./
Rails中文件上传 -
lijun4186255:
rails 中文乱码的问题 -
luopeng_tr:
楼主你好, 看了帖子我做了一下测试。 出来一个问题,希望指教n ...
在rails中使用UUIDTools -
404714:
提供一大堆tag是不错,有没有想过如何把数据库字段映射成tag ...
Haml&Radius 不错
文章列表
看《Agile Web Development with Rails》中的布局只是草草的一带而过,只说了个
<%=@content_for_layout%>
可是如果不仅仅是一个laytou怎么办?
譬如上面是广告、Tasks,下面是Workspaces,并且广告、Task会因不同的工作区域而改变。
对于多个,我们可以这样来做
<%=@content_for_ads%>
...
...
<%=@content_for_tasks%>
...
...
<%=@content_for_workspaces%>
....
....
...
- 2006-10-08 20:15
- 浏览 1423
- 评论(0)
跨越边界: Rails 迁移
http://www-128.ibm.com/developerworks/cn/java/j-cb08156.html
- 2006-09-27 13:02
- 浏览 1428
- 评论(1)
http://sas.sparklingstudios.com/articles/2006/08/31/exception-notifier-ruby-on-rails-plugin
以下是原文:
引用
Yesterday I came over Exception Notifier.
I found it really useful because it is really easy to install and you can instantly react to Application Errors. Your customers don’t have to notify you be ...
- 2006-09-21 18:56
- 浏览 1629
- 评论(0)
今天遇到一件很头疼的事情,安装jedit失败,然后不管安装其他什么软件都报错
dpkg (子进程):无法运行 新的 post-removal 脚本: No such file or directory
dpkg:处理 jedit_4.3pre6_all.deb (--install)时出错:子进程·新的 post-removal 脚本·返回了错误号·2
dpkg (子进程):无法执行新的 post-removal script: No such file or directory
dpkg: 作下列清理工作时发生错误:子进程·post-removal script·返回了错误号·2
...
- 2006-09-15 20:08
- 浏览 1846
- 评论(0)
My nb is acer Travelmate 3210Z and the screen is 1280*800,but the ubuntu default is 1024*768.
sudo apt-get install 915resolution
sudo vi /etc/default/915resolution
eidt the following three lines
MODE=54
XRESO=1280
YRESO=800
restart gdm and will be ok:)
- 2006-09-15 12:56
- 浏览 1240
- 评论(0)
sudo vi /etc/apt/sources.list
add the following two lines at the end of sources.list
deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe
update
apt-get update
apt-get dist-upgrade
install ruby
apt-get install ruby rdo ...
- 2006-09-15 12:10
- 浏览 1855
- 评论(0)
以前习惯了用webwork,都好久没有过问过文件如何具体上传的了,只是拿cos来用一下,要不是今天需要处理rails文件上传都快忘记了
目标:
将文件保存到指定的文件夹中,对它重命名,保存重命名后的文件名称
为了能使任何controller都能使用文件上传的功能,变将代码放置在application.rb中
# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available f ...
- 2006-09-13 15:49
- 浏览 9025
- 评论(3)
无意间发现一UUID生成器UUIDTools:http://rubyforge.org/projects/uuidtools/,可以从这里下载http://rubyforge.org/frs/?group_id=914。它本身就是个plugin,所以并不需要我们做什么额外的事情,只需要放到vendorpluginsuuidtools下,然后在需要用的地方require进来就可以了
ex:
def getFileName(filename)
if !filename.nil?
require 'uuidtools'
filename.sub(/. ...
- 2006-09-13 14:09
- 浏览 6629
- 评论(3)
FFmpeg:http://en.wikipedia.org/wiki/FFmpeghttp://videotranscoding.wikispaces.com/http://soenkerohde.com/tutorials/ffmpeghttp://klaus.geekserver.net/flash/streaming.html
- 2006-06-29 09:56
- 浏览 1098
- 评论(0)
用Ruby 创建领域特定语言(DSL) http://uncutstone.blogdriver.com/uncutstone/1196082.htmlRails本地化 http://blogsite.3322.org/jspwiki/pages/viewblog?id=2540
- 2006-06-28 22:53
- 浏览 1123
- 评论(0)
Announcing the Release Candidate for Ubuntu 6.06 LTShttps://lists.ubuntu.com/archives/ubuntu-announce/2006-May/000081.html2006-05-25, Matt Zimmerman writes:The Ubuntu team is proud to announce the Releases Candidate of Ubuntu, Kubuntu and Edubuntu 6.06 LTS - codenamed "Dapper Drake" ...
- 2006-05-29 20:49
- 浏览 1389
- 评论(0)