- 博客(10)
- 收藏
- 关注
原创 Boks visual editor based on blueprint
有个很好的官方视频 http://www.vimeo.com/album/78535/format:thumbnail
2009-08-12 10:09:00
2787
转载 ruby on excel
skip to main | skip to sidebar Ruby on Windows On using the Ruby programming language on the Microsoft Windows platformShowing posts with label
2009-03-16 23:30:00
3169
转载 Ruby惯用法
Ruby有不少惯用法,这里略作一些介绍,也方便阅读他人代码: 迭代 一般写法: for i in (1..10) puts i end习惯写法:Java代码 (1..10).each{|i| puts i} 或 1.upto(10){|i| puts i} # from njmzhang (1..10).each{|i| puts i}或
2009-03-03 12:27:00
569
原创 Watir 将测试数据放到excel中
到下面连接中下载Xls.rb 然后就可以在你的Watir脚本当中方便的处理excel, 比如将数据文件放入excel中。http://wiki.openqa.org/display/WTR/Excel+interface+class 写一个读取文件的函数,例如def read_test_data_from_spreadsheet(range, sheet) begin xlFi
2009-02-04 15:25:00
725
原创 Watir 截图两种方式,保存截图到PPT里面
方法1Watir API 本身提供了截图函数ScreenCapture, 可以直接使用,调用时会打开mspaint然后自动保存到指定路径由于项目特殊要求,截图要直接保存到PPT当中,所以借用了ScreenCapture的一些代码, 再通过win32ole打开PPT, 并保存图片。 一些代码片断如下require win32olerequire watir d
2009-02-04 14:41:00
1785
原创 ActiveRecord: default_error_messages is deprecated since Rails2.2, below shows the new way.
short_message ||= I18n.translate(activerecord.errors.messages.too_short, :count => range.first)long_message ||= I18n.translate(activerecord.errors.messages.too_long, :count => range.last)
2009-01-15 22:07:00
460
原创 gem install mysql 安装问题
Rails 2.2之后 原来的mysql driver要被移除,所以通过gem install mysql 重新安装,安装过程中显示gem成功安装,但是安装Rdoc出现了问题,忽略之。gem install mysql Successfully installed mysql-2.7.3-x86-mswin32 1 gem installed Installing ri documenta
2009-01-15 14:34:00
2144
转载 Rails Migration Cheat Sheet
转自http://garrettsnider.backpackit.com/pub/367902Make sure you view the (short) screencast by DHHVERIFY: To enable full use of ruby schema support, uncomment ‘config.active_record.schema_format = :ruby
2008-11-20 01:25:00
996
转载 The IE Doubled Float-Margin Bug
转载自:http://fvzone.com/blog/the-ie-doubled-float-margin-bug.fv对高度的解析IE:将根据内容的高度变化,包括未定义高度的图片内容,即使定义了高度,当内容超过高度时,将使用实际高度Firefox:没有定义高度时,如果内容中包括了图片内容,MF的高度解析是根据印刷标准,这样就会造成和实际内容高度不符合的情况;当定义了高度,但是内容超过高度时,内
2008-11-20 01:12:00
581
转载 TextMate 破解
网上google来两个方法,如下: (目的还只是个人学习只用,如果今后用于商业目的,一定支持正版)方法1:关于TextMate的注册这个号称The Missing Editor for Mac OS X的编辑器我就不介绍了,我就说说如何注册吧。第一种方法:花39欧元第二种方法:Uninstall first and Instal again, just open the TextMate unix
2008-11-17 23:05:00
13466
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人