- 博客(42)
- 收藏
- 关注
rails web server deploy guide
web server:install ubuntu 64bit server editionthen:################################1.install necessary software:################################sudo apt-get install gcc g++ makes...
2009-05-19 00:47:36 151
原创 校内代码 xiaonei代码 xiaonei黑色非主流代码
校内代码 xiaonei代码 xiaonei黑色非主流代码http://xioonei.cn
2008-07-10 00:44:00 719
原创 你写代码注释吗?
据统计,每个程序开发人员的工作时间中,只有不到一半的时间是花在写代码上,其它的时间一部分是在阅读别人或者自己以前写的代码,另一部分则是花在代码的导航定位上。就拿使用eclipse的开发人员来说,你可能只有一部分的时间是集中在编辑器中写代码,而很多时间你会花在其它的像Package Explorer,Open Type,等视图上。Eclipse的Open Type和Search等功能可以方便我们很快
2008-06-10 11:26:00 895
原创 你写多少代码注释?
据统计,每个程序开发人员的工作时间中,只有不到一半的时间是花在写代码上,其它的时间一部分是在阅读别人或者自己以前写的代码,另一部分则是花在代码的导航定位上。 就拿使用eclipse的开发人员来说,你可能只有一部分的时间是集中在编辑器中写代码,而很多时间你会花在其它的像Package Explorer,Open Type,等视图上。 Eclipse的Open Type和Search等功能可以方便我们
2008-06-06 10:24:00 920
你写注释吗?
据统计,每个程序开发人员的工作时间中,只有不到一半的时间是花在写代码上,其它的时间一部分是在阅读别人或者自己以前写的代码,另一部分则是花在代码的导航定位上。就拿使用eclipse的开发人员来说,你可能只有一部分的时间是集中在编辑器中写代码,而很多时间你会花在其它的像Package Explorer,Open Type,等视图上。Eclipse的Open Type和Search等功能可以方便...
2008-06-04 18:30:52 165
关于程序员注释习惯的调查
关于程序员注释习惯的调查小弟最近在做注释相关的功课,最近要做一个调查,主要是调查大家使用eclipse等开发工具时的注释习惯,像注释风格,以及一些相关的东西,如使用eclipse tasks这些功能 的情况等,调查结果到时会在http://www.iteye.com公布,希望得到大家的支持,感激不尽[url=http://www.surveymonkey.com/s.aspx?sm=a...
2008-06-02 11:57:54 115
原创 RAILS实现多张照片同时上传(模仿 GMAIL)
可以看看这里http://www.easyyou.com/photo/upload 由于 上传文件不能用AJAX 为了实现页面不刷新,可以采用一个 隐藏的IFRAME ,通过respond_to_parent 插件 将响应传回到页面。
2007-06-18 15:07:00 1269
终于基本搞定上传多张图片
出现了好多问题:一起上传多张图片,放入队列等待一个页面下多个text_field_with_auto_complete没想到搞这个还挺麻烦的...
2007-06-13 16:58:00 460
原创 关注RAILS下的server的push技术
最近想做种这个东西,有兴趣的一起交流http://ajaxian.com/archives/juggernaut-comet-for-rails
2007-06-07 23:07:00 794
SQL问题
select distinct g.*from groups g inner join topics t on (t.group_id = g.id)order by t.created_at desclimit 0,6为什么结果不对?相对于select g.*from groups g inner join topics t on (t.group_id = g.id)o...
2007-05-31 14:16:37 111
原创 apache+mongrel+rails+linux轻松架设服务器
1.首先在服务器上搭建RAILS环境并装mongrel 和apachelinux下ROR的配置 (ubuntu) http://blog.csdn.net/kevinye/archive/2006/11/30/1423003.aspx #install rubyapt-get install irb libdbm-ruby1.8 libgdbm-ruby1.8 libmysql-ruby1.
2007-05-26 13:55:00 2049 2
关于后缀的问题
.htm .html这些后缀应该是对SEO有好处的,RAILS里面怎么才能方便的实现这点呢,我的感觉是要改很多东西url_for,link_to 这些,还要改routes.rb是不是太麻烦了
2007-05-25 21:22:39 179
片段缓存的问题
sweeper 可以指定当更新时失效 after_save这些 比如 post里面如果记录了查看次数 ,那如果我想让只是访问次数发生变化时不要使缓存失效 ,那应该怎么做呢...
2007-04-19 16:15:08 139
发现一好玩的
http://www.iteye.com/blog/57826http://robbin.iteye.com/blog/57826呵呵 下面这个http://kevinye.iteye.com/blog/57826
2007-03-19 12:17:34 119
升级rails小记
以前装的是1.8.4 的ruby和1.1.6的rails换了几个apt源都没有1.8.6的ruby包,只好下源码自己编译了步骤如下wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gztar zxf ruby-1.8.6.tar.gzcd ruby-1.8.6./configuremakemake install ins...
2007-03-17 10:01:51 117
migration的一个问题
migration 似乎有这样的问题 def self.up add_column "post","title",:String print Post.find(:first).title endadd_column之后 马上访问这个column还不行,似乎得搞个reload之类的操作哪位指点一下?...
2007-01-31 11:00:00 126
AjaxScaffold的一个小问题
ajax_scaffold_plugin.rb中 有这样几句:def #{prefix}table_setup update_params :default_scaffold_id => "#{singular_name}", :default_sort => nil, :default_sort_direction => ...
2006-12-07 20:10:33 107
原创 Guide: Things You Shouldn't Be Doing In Rails
Guide: Things You Shouldnt Be Doing In Railshttp://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails
2006-12-04 10:07:00 893
Guide: Things You Shouldn't Be Doing In Rails
Guide: Things You Shouldn't Be Doing In Railshttp://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails
2006-12-04 10:07:00 86
原创 linux下ROR的配置 (ubuntu)
#install rubyapt-get install irb libdbm-ruby1.8 libgdbm-ruby1.8 libmysql-ruby1.8 libmysqlclient14 libopenssl-ruby1.8 libruby1.8-dbg mysql-common ri ri1.8 ruby1.8-dev#install rubygem#http://rubyforge.o
2006-11-30 20:14:00 2146
linux下ROR的配置 (ubuntu)
#install rubyapt-get install irb libdbm-ruby1.8 libgdbm-ruby1.8 libmysql-ruby1.8 libmysqlclient14 libopenssl-ruby1.8 libruby1.8-dbg mysql-common ri ri1.8 ruby1.8-dev#install rubygem#http://rubyforge.o...
2006-11-30 20:14:00 97
原创 用Ruby On Rails构建 Web2.0 网站
你会发现 ROR有多么的神奇记住下面的几个文件,用javascript_include_tag "prototype"来使用 prototype.js 用javascript_include_tag "effects" 来使用 effects.js
2006-09-15 12:51:00 1625 1
用Ruby On Rails构建 Web2.0 网站
你会发现 ROR有多么的神奇记住下面的几个文件,用javascript_include_tag "prototype"来使用 prototype.js 用javascript_include_tag "effects" 来使用 effects.js
2006-09-15 12:51:00 182
原创 scaffold
create table products (id int not null auto_increment,title varchar(100) not null,description text not null,image_url varchar(200) not null,price decimal(10,2) not null,date_available datetime not n
2006-09-01 09:57:00 2138
scaffold
create table products (id int not null auto_increment,title varchar(100) not null,description text not null,image_url varchar(200) not null,price decimal(10,2) not null,date_available datetime not n...
2006-09-01 09:57:00 159
原创 Create a simple application with ROR
>rails demo >cd demo>ruby script/server http://localhost:3000 further more,create a controllerdemo> ruby script/generate controller SayYou’ll find it in the file app/contro
2006-08-27 10:43:00 1010
Create a simple application with ROR
>rails demo >cd demo>ruby script/server http://localhost:3000 further more,create a controllerdemo> ruby script/generate controller SayYou’ll find it in the file app/controller...
2006-08-27 10:43:00 79
原创 MVC
Rails is a Model-View-Controller framework. Rails accepts incomingrequests from a browser, decodes the request to find a controller, andcalls an action method in that controller. The controller then
2006-08-27 10:38:00 998
MVC
Rails is a Model-View-Controller framework. Rails accepts incomingrequests from a browser, decodes the request to find a controller, andcalls an action method in that controller. The controller then ...
2006-08-27 10:38:00 79
原创 Tips
The value returned by a Rubymethod is the value of the last expression evaluated, so we can get rid ofthe temporary variable and the return statement altogether.Prefixing a method name with self. (a
2006-08-27 10:37:00 928
Tips
The value returned by a Rubymethod is the value of the last expression evaluated, so we can get rid ofthe temporary variable and the return statement altogether.Prefixing a method name with self. (as ...
2006-08-27 10:37:00 76
转载 symbol
A symbol looks like a variable symbolsname, but it’s prefixed with a colon. Examples of symbols include :action,:line_items, and :id. You can think of symbols as string literals that aremagically made
2006-08-27 10:35:00 1004
symbol
A symbol looks like a variable symbolsname, but it’s prefixed with a colon. Examples of symbols include :action,:line_items, and :id. You can think of symbols as string literals that aremagically made...
2006-08-27 10:35:00 75
转载 Why Ruby?
from http://rubycn.ce-lab.net/面向对象的脚本语言RubyRuby是何方神圣?Ruby是一种功能强大的面向对象的脚本语言,她可以使您方便快捷地进行面向对象编程.Ruby使文本处理和系统管理变得简单,与Perl非常相似.一句话:简单明了,扩展性强,移植性好.Ruby的几大亮点: 语法简单 垃圾回收 可移植性
2006-08-27 10:33:00 1254
Why Ruby?
from http://rubycn.ce-lab.net/面向对象的脚本语言RubyRuby是何方神圣?Ruby是一种功能强大的面向对象的脚本语言,她可以使您方便快捷地进行面向对象编程.Ruby使文本处理和系统管理变得简单,与Perl非常相似.一句话:简单明了,扩展性强,移植性好.Ruby的几大亮点: 语法简单 垃圾回收 可移植性 动态载入 完全免费 ...
2006-08-27 10:33:00 97
原创 SIP协议概述
SIP协议概述 转自:动态网站制作指南 | www.knowsky.com 中国电信集团北京研究院 强磊 摘要:SIP协议是NGN中的重要协议,越来越得到业界的重视。本文通过SIP协议的背景、功能、网络元
2006-08-18 23:04:00 1223
原创 点对点(P2P)多线程断点续传的实现
http://www.ppcn.net/n1318c2.aspx 作者: 赵明 | 日期: 2004-06-21 | 已阅: 13487次 P2P中国下载源代码: upload/2004_06/04062118573143.zip 在如今的网络应用中,文件的传送是重要的功能之一,也是共享的基础。一些重要的协议像HTTP,FTP等都支持文件的传送。尤其是FTP,它的全称就是“文件传送协议” ,当 初
2006-08-18 14:44:00 1443
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人