浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 558 559 560 561 562 563 564 565 566 ··· 630 下一页

2010年11月26日

摘要: if num=~ /\d+/ buy_num=num.to_i else buy_num=1 end1down voteacceptYou forgot to include the class you were testing against: 阅读全文
posted @ 2010-11-26 11:39 lexus 阅读(172) 评论(0) 推荐(0)

摘要: Time.local(year) => timeTime.local(year, month) => timeTime.local(year, month, day) => timeTime.local(year, month, day, hour) => timeTime.local(year, month, day, hour, min) => timeTime.... 阅读全文
posted @ 2010-11-26 10:23 lexus 阅读(253) 评论(0) 推荐(0)

摘要: 首页新闻论坛问答博客招聘更多▼您还未登录 !我的应用登录注册徐构永久域名http://hooney.javaeye.comrails route|使用include中嵌Hash取出一个多层次的对象 ...2008-06-25ruby 日期关键字: ruby timeRuby代码difference=Time.now-timeseconds=difference%60difference=(diff... 阅读全文
posted @ 2010-11-26 08:58 lexus 阅读(303) 评论(0) 推荐(0)

摘要: 吃了碗面,全身暖和了,好逸恶劳有一段时间了,该虐一下自己了, 阅读全文
posted @ 2010-11-26 08:13 lexus 阅读(132) 评论(0) 推荐(0)

2010年11月25日

摘要: rake -D timerake time:zones:localin application.rb #lexus added at 20101125 config.active_record.default_timezone = :local config.active_record.time_zone_aware_attributes = false config.time_zone = ... 阅读全文
posted @ 2010-11-25 16:15 lexus 阅读(329) 评论(0) 推荐(0)

摘要: Ruby语言在实际应用中可以帮助我们轻松的完成许多功能需求。其内置的大量方法是我们实现功能的前提。下面我们为大家介绍其中Ruby时间方法的相关方法。Ruby代码管理经验分享Ruby创建构造器技巧分享Ruby异常处理结构特点介绍Ruby数学表达式中各种应用解析几种常见Ruby on Rails内置方法介绍Ruby时间方法:puts20.seconds#=>20 puts20.minutes#=... 阅读全文
posted @ 2010-11-25 16:07 lexus 阅读(278) 评论(0) 推荐(0)

摘要: ruby学习笔记(8)-"静态方法的4种写法"与"单例方法的2种写法"01#静态方法的4种写法02classTest03defTest.StaticMethod104puts"Test.StaticMethod1"05end0607defself.StaticMethod208puts"Test.StaticMethod2"09end1011class<< Test12defStati... 阅读全文
posted @ 2010-11-25 14:51 lexus 阅读(440) 评论(0) 推荐(0)

摘要: 当你将komodo新建的工程文件夹放在什么目录下,那么那个目录就是工程的根目录 阅读全文
posted @ 2010-11-25 14:33 lexus 阅读(167) 评论(0) 推荐(0)

摘要: 大家每天都有一个好心情 :)rails cascade 级联删除[ruby]用一次忘记一次,记下来。:dependent - if set to :destroy all the associated objects are destroyed alongside this object by calling their destroy method. If set to :delete_all ... 阅读全文
posted @ 2010-11-25 13:24 lexus 阅读(479) 评论(0) 推荐(0)

摘要: on 是mysql中的关键字,使用做为字段,请`on`type是rails中的关键词,使用kind 来代替做为mysql字段 阅读全文
posted @ 2010-11-25 11:35 lexus 阅读(207) 评论(0) 推荐(0)

摘要: ruby-1.9.2-p0 > Time.now=> 2010-11-25 10:34:20 +0800date2010年 11月 25日 星期四 10:29:48 CST因为使用的是正8区时间所以两个的对比效果如果是utc时间,time.now会显示+0000 阅读全文
posted @ 2010-11-25 10:36 lexus 阅读(188) 评论(0) 推荐(0)

摘要: 用户名: 密码: 登录 注册rails漫步追求,生活中不一而足的美丽,还有快乐; ...主页博客相册|个人档案 |好友查看文章acts_as_tree 插件应用2009-08-06 10:541.安装: 我在github上fork了这个插件,访问地址是:http://github.com/krongk/acts_as_tree/tree/master Give this clone URL t... 阅读全文
posted @ 2010-11-25 10:34 lexus 阅读(312) 评论(0) 推荐(0)

2010年11月24日

摘要: ModuleEnumerableIn: enum.c lib/set.rb lib/soap/property.rb ext/enumerator/enumerator.c The Enumerable mixin provides collection classes with several traversal and searching methods, and with the abil... 阅读全文
posted @ 2010-11-24 21:26 lexus 阅读(328) 评论(0) 推荐(0)

摘要: 大概是断电,暴风 隔两天来一次,这个太频繁了 阅读全文
posted @ 2010-11-24 18:57 lexus 阅读(174) 评论(0) 推荐(0)

摘要: Java交流学习教室copyBookmarkhttp://space.itpub.net/14734416博客图片商品下载收藏影音圈子好友论坛留言空间管理您的位置:ITPUB个人空间»Java交流学习教室»日志汇聚你我之力......jquery 新建的元素事件绑定问题(上)上一篇/下一篇2008-10-20 21:40:00 / 个人分类:jQuery查看( 1565 )... 阅读全文
posted @ 2010-11-24 17:44 lexus 阅读(501) 评论(0) 推荐(0)

摘要: 小小子Say you say me ,say we together~~首页哥学社围脖淘宝店唠呗小小子Links首页 > JS&HTML > jquery append()和appendTo()深入学习jquery append()和appendTo()深入学习2009年5月31日 simaopig跳到评论虽然之前写jQueryDOM操作——基于命令改变... 阅读全文
posted @ 2010-11-24 17:36 lexus 阅读(5905) 评论(0) 推荐(0)

摘要: Ruby RoolsAn Open-source Pure Ruby Rules-EngineIndexLicenseQuickstartDownloadDocumentationExamplesGlossaryDevdocRdocSourceBugsTo-doActivityMailing listsUsers groupDev groupCreditsRubyforgeGeoBlikiOpen... 阅读全文
posted @ 2010-11-24 14:24 lexus 阅读(508) 评论(0) 推荐(0)

摘要: 天天团购http://demo.meituancms.com/admin/index.phphttp://www.fanwe.com/以上有在线演示,还行最土的相关资讯做的不错,还有一个久动,两个都没看到在线演示, 阅读全文
posted @ 2010-11-24 12:30 lexus 阅读(420) 评论(0) 推荐(0)

摘要: 锐锋网-手机回收,返现,折价买新手机 猜礼包-创意类,操作有点烦,一般 geekpark,没有模式 摆摆书架,不错 10元网 尚街 和移动互联网,lbs,sns相关的我都不看好,一般的团队没有机会 我觉得这几个月,我对赚钱模式,有新的理解 比以前不幼稚一些 今天看了电视说的一句话有道理 大干小风险,小干大风险 意思是一件事,如果缩手缩脚的干,别人可能超过你 如果卯足劲,迅速占领市场,反尔有有... 阅读全文
posted @ 2010-11-24 02:23 lexus 阅读(196) 评论(0) 推荐(0)

2010年11月23日

摘要: Saturday, November 20, 2010Power outage in FremontSunday, November 21, 20105:45am (EST):The last of the damaged hosts has been hot-swapped and the remaining Linodes should have boot jobs in their queu... 阅读全文
posted @ 2010-11-23 20:21 lexus 阅读(319) 评论(0) 推荐(0)

上一页 1 ··· 558 559 560 561 562 563 564 565 566 ··· 630 下一页