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

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

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

2010年11月19日

摘要: 2010-01-18Ruby -- Hash方法汇总文章分类:Ruby编程一。给Hash添加默认值 :Ruby代码h={1,2,3,4}#=>{1=>2,3=>4}h.default=7h[1]#=>2h[3]#=>4h[4]#=>7h[5]#=>7二。给Hash添加key-value对:Ruby代码h={}#=>{}h.store("a",1)#=... 阅读全文
posted @ 2010-11-19 09:50 lexus 阅读(498) 评论(0) 推荐(0)

摘要: 您还未登录 !我的应用登录注册论坛首页→Ruby编程版→ruby→Ruby和Python的语法差别全部rubyrails甘特图、网络图、日历图、项目管理中间件« 上一页1234下一页 »浏览 29248 次锁定老贴子主题:Ruby和Python的语法差别该帖已经被评为精华帖作者正文cookoo等级:性别:文章: 817积分: 1951来自: M... 阅读全文
posted @ 2010-11-19 09:43 lexus 阅读(551) 评论(0) 推荐(0)

摘要: Ruby有不少惯用法,这里略作一些介绍,也方便阅读他人代码:迭代一般写法:for i in (1..10)puts iend习惯写法:Java代码(1..10).each{|i|putsi}或1.upto(10){|i|putsi}#fromnjmzhang||=赋值一般写法:Java代码number=1ifnumber.nil?number=1unlessnumber习惯写法:Java代码num... 阅读全文
posted @ 2010-11-19 09:37 lexus 阅读(183) 评论(0) 推荐(0)

摘要: ruby学习系列--Hash类函数作者:赵献良来源:博客园发布时间:2008-08-28 12:06阅读:385 次原文链接[收藏]函数名称说明示例==判断两个Hash是否相等h1 = {"a" => 1, "c" => 2}h2 = { "a" => 1, "c" => 2, 7 => 35 }h1 == h2»false[ ]返回指定键值对应的对象h ... 阅读全文
posted @ 2010-11-19 09:21 lexus 阅读(283) 评论(0) 推荐(0)

2010年11月17日

摘要: [shanghaionrails] 招兵买马啦InboxXReplymartin.xus@gmail.comtoShanghaishow detailsNov 16 (1 day ago)地点:上海,南京要求嘛,这个东西千篇一律没啥意义,简单点:0:好学,好动,乐于分享/交流1:爱折腾,有追求,有想法,更有梦想以下参考加分项:2:工作3年以上的优先考虑3:工作的主要语言为 ruby/python,... 阅读全文
posted @ 2010-11-17 18:21 lexus 阅读(185) 评论(0) 推荐(0)

2010年11月16日

摘要: p, li { white-space: pre-wrap; }sudo /etc/init.d/vboxdrvsetupit will take about 3 mins ,what a long time~in recent month i took the battery of the macbook out use the battery adapter directly,many tim... 阅读全文
posted @ 2010-11-16 11:30 lexus 阅读(178) 评论(0) 推荐(0)

摘要: C# WEB开发基地博客园首页新闻新随笔联系管理订阅 随笔- 11 文章- 78 评论- 78javascript计算小数保留两位小数,多位小数的方法<SCRIPTLANGUAGE="JavaScript"><!--functionformatFloat(src,pos){returnMath.round(src*Math.pow(10,pos))/Math.pow(10,po... 阅读全文
posted @ 2010-11-16 11:25 lexus 阅读(290) 评论(0) 推荐(0)

摘要: 两个都不是好鸟 阅读全文
posted @ 2010-11-16 01:07 lexus 阅读(155) 评论(0) 推荐(0)

2010年11月15日

摘要: 您现在是在 : 最近的话题 » Using jQuery » Checking if certain Radiobutton is checkedChecking if certain Radiobutton is checked作者:dschinkel在 03-Feb-2010 03:46 PM.在Using jQueryI've got the following co... 阅读全文
posted @ 2010-11-15 21:30 lexus 阅读(452) 评论(0) 推荐(0)

摘要: Converting Strings to Numbers Table of ContentsQuestion: How do I convert strings to numbers in JavaScript?Answer: To convert a string to a number, use the JavaScript function parseFloat (for conversi... 阅读全文
posted @ 2010-11-15 20:19 lexus 阅读(833) 评论(0) 推荐(0)

摘要: Rails Tip: Precision and scale for decimalsFor when you need that little bit of extra accuracy, specifying precision and scale for a decimal column in your Ruby on Rails migration is pretty simple. Th... 阅读全文
posted @ 2010-11-15 20:19 lexus 阅读(397) 评论(0) 推荐(0)

摘要: WEDNESDAY, JUNE 23Ruby on Rails: Request Url<%= request.request_uri %> / <%= request.path%>- display current url without base urleg: /goldberg/auth/login<%= request.referer %>- displ... 阅读全文
posted @ 2010-11-15 19:14 lexus 阅读(448) 评论(0) 推荐(0)

摘要: except firebug & live http header, hope this will make ff quicker 阅读全文
posted @ 2010-11-15 14:39 lexus 阅读(154) 评论(0) 推荐(0)

摘要: sudo /etc/init.d/mysql startCould not connect to host 'localhost'.MySQL Error Nr. 2002Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'http://ubuntuforums.org/archive/in... 阅读全文
posted @ 2010-11-15 14:15 lexus 阅读(264) 评论(0) 推荐(0)

摘要: http://gjjl.cenn.cn/info/nid_40717.html http://www.williamlong.info/archives/2076.html 阅读全文
posted @ 2010-11-15 04:42 lexus 阅读(100) 评论(0) 推荐(0)

摘要: 一来是省点钱,但确实也没省多少,二来本人属于离经不叛道,特例不独行这人, 看起来有感觉 上图 阅读全文
posted @ 2010-11-15 04:41 lexus 阅读(199) 评论(0) 推荐(0)

2010年11月14日

摘要: has_many :bugs, :through => :railsActive Record Query Interface 3.0126Posted bypratikon Friday, January 22I’ve been working on revamping the Active Record query interface for the last few wee... 阅读全文
posted @ 2010-11-14 19:37 lexus 阅读(791) 评论(0) 推荐(0)

摘要: 010-02-26Rails 3中的Active Record的查询变化文章分类:Ruby编程202: Active Record Queries in Rails 3译者: 夜鸣猪(http://hlee.rubyeye.com/) 校对: 哇牛在上两集的Railscast里我们演示了如何配置Rails 3的配置环境和创建新的Rails 3应用程序。在这一集里我们将开始演示Rails 3的一些新... 阅读全文
posted @ 2010-11-14 18:21 lexus 阅读(556) 评论(0) 推荐(0)

摘要: http://edgerails.info/vhttp://asciicasts.com/episodes/215-advanced-queries-in-rails-3 阅读全文
posted @ 2010-11-14 17:49 lexus 阅读(159) 评论(0) 推荐(0)

摘要: Rails 3 ambiguous column names and multiple order scopesno comments yet, post one nowAfter updating a few apps to Rails 3 I came across some issues with the new scoping syntax.Ambiguous Column NamesIn... 阅读全文
posted @ 2010-11-14 17:49 lexus 阅读(404) 评论(0) 推荐(0)

上一页 1 ··· 560 561 562 563 564 565 566 567 568 ··· 630 下一页