自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (1)
  • 收藏
  • 关注

原创 利用 jQuery 及 Firebug 來 debug web

在開發的網頁中使用 jQuery ,為 jQuery 增加一個 log function:jQuery.fn.log = function (msg) { console.log("%s: %o", msg, this); return this;};這樣只需要對 $(...) 這樣的 jQuery object 呼叫 .log("Debug message") 就可以在 f...

2008-08-31 18:43:08 83

原创 Run a RoR application with JRuby and OC4J 10.1.3

I’m currently preparing the deployment of our RoR application (a kind of portal for our enterprise) in Oracle App Server 10g.Our application is currently deployed under Litespeed Web Server,running ...

2008-08-31 17:32:42 164

原创 JRubyWorks: J2EE on Rails

(NOTE: JRubyWorks keeps moving forward and this article may not be up to date.)How to run your Rails application with J2EE web servers (such as Jetty and Tomcat)? Here’s a solution:1. Set JRUBY...

2008-08-31 17:22:05 74

原创 jRails

Rails 內置 Prototype 和 scriptaculous  。 jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers.== ResourcesInstall* .script/plugin install http://ennerchi.googlec...

2008-08-31 10:08:03 97

原创 jQuery中文学习参考资料

jQuery 中文社区 jQuery 中文社区官方论坛 《精通JavaScript+jQuery》视频教程(共16讲) - 来自:前沿视频教室 jQuery 1.2 中文参考文档 Visual jQuery1.1文档 - 中文版(按功能排序) jQuery中文入门指南,翻译加实例,jQuery的起点教程 jQuery技巧总结 jQuery 學習心得 小试牛刀—...

2008-08-30 23:08:55 220

原创 使用rails生成ajax动态装载树型组件

 当你需要采用动态树型视图的时候,你会自然的使用xloadtree(主页:http://webfx.eae.net/dhtml/xloadtree/xloadtree.html),那么在rails中如何使用xloadtree呢,我这里有一些经过测试的步骤,提供给大家参考:1.下载xtree2下载地址:http://webfx.eae.net/dhtml/xtree2b/下载文件:js/xtree2...

2008-08-23 11:03:25 95

原创 PL/Vision安装和使用

Quest公司提供的免费PLSQL代码库,提供了不少增强型功能,如果是做Oracle数据库开发的人,可以拿来学习或者直接使用。一、说明The PL/Vision Code Library provides over 1,000 PL/SQL functions and procedures that extend the capabilities of the PL/SQL language.PL...

2008-08-22 09:48:21 390

原创 取代DBMS_OUTPUT的PACKAGE

CREATE OR REPLACE PACKAGE p-- Adapted from PL/Vision library copyright 2002 Quest Software Inc.IS c_linelen CONSTANT PLS_INTEGER := 80; -- Set line length before wrap PROCEDURE set_linel...

2008-08-22 09:07:35 102

原创 使用Rails关联创建多对多关系

原E文地址:http://blog.hasmanythrough.com/2006/04/20/many-to-many-dance-off 我已注意到使用 Rails 关联在创建多对多关系的两种方式上有些混乱。出现混乱是可以理解的,因为has_many :through 还有些新,写它的文章并不多。Has_and_belongs_to_many 出现的较早,确定的角色与资料超出了你为什么使用...

2008-08-21 15:45:39 595

原创 注意==、eql?()、equal?()的區別

 ==判断的是值;eql?()判断的是值以及类型;equal?()判断的是地址。irb> 0==0=> trueirb> 0==0.0=> trueirb> "0"=="0"=> trueirb> 0.eql?(0)=> trueirb> 0.eql?(0.0)=> falseirb> &qu

2008-08-18 15:53:37 402

原创 判断一文本字串的编码类型

rchardet,是python-chardet的port. 而python-chardet, 是mozilla browser的encoding auto-detection实现的port.关于细节, 可以看这里: http://nextlib.lifegoo.com/user/sishen/article/2605 : A composite approach to language/enco...

2008-08-12 17:09:31 93

原创 用plsql做金額中文数字和阿拉伯数字之间的互相转换

CREATE OR REPLACE FUNCTION num2rmb(je NUMBER) RETURN VARCHAR2 ISresult varchar2(100);i pls_integer;snum varchar2(20) := ltrim(replace(to_char(abs(je), '9999999999999990.99'), '.'));len pls_integer...

2008-08-10 09:19:44 855

原创 一些Ruby小函数

#does ruby guy notice about this pain?#翻转斜杠def reverse_slash(str) str.gsub(/\//) { |x| "\\" }end#加上双引号#double-quote strdef dquote(str) "\"#{str}\""end#execute and wait for each line...

2008-08-07 15:21:27 196

原创 用Ruby做中文数字和阿拉伯数字之间的互相转换

 #比如: 138 <=> 一百三十八$KCODE = 'u'require 'jcode'require 'iconv'$cn_nums = %w{零 一 二 三 四 五 六 七 八 九}$cn_decs = %w{十 百 千 万 十 百 千 亿}$conv = Iconv.new('gbk', 'utf-8')$cn_nums_map = { '〇' ...

2008-08-07 15:10:50 559

原创 rails 2.0文件上传

1. 表单:<% form_for([:admin, @album], :html => {:multipart => true}) do |f| %>;文件上传控件: <%= file_field :file, :album_img%>.曾试过将文件控件也写出与Model相关联的方式: <%= f.file_field :album_img%>,...

2008-08-07 12:08:07 88

原创 acts_as_nested_set Administration

I'm very very new to ruby and i'm trying to use acts_as_nested_set to create a database driver DHTML menu eg Home Code |-- Ruby     | -- Rails About us The problem comes because I cant find any tut...

2008-08-07 00:47:40 111

原创 rails2.1與Oracle 連結所需gem

ruby-oci8http://rubyforge.org/frs/download.php/39148/ruby-oci8-1.0.2-i386-mswin32.gemruby-plsql:http://rubyforge.org/frs/download.php/40169/ruby-plsql-0.2.1.gem用於執行pl/sql procedureconn = OC...

2008-08-05 09:23:50 76

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除