Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Peter
@Peter
高级会员
第 1553 位会员 / 2012-03-23

长沙
107 篇帖子 / 1479 条回帖
39 关注者
0 正在关注
322 收藏
打赏作者
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • appfog 真给力呀 at 2012年08月14日

    @firsthym 如果我只改动一小段代码却要将整个网站重新上传一下,这实在是很笨的方法。

    没有实现永久存储是官方说的,所以永久存储的定义也是他们做的。可能是参考了 openshift 的定义吧,openshift 有个目录是有永久存储功能的,直接 ln -s 到网站目录下就可以存 attachments 之类的东西了。

    phpfog 就可以用 git, 不知道他们怎么想的。

  • appfog 真给力呀 at 2012年08月13日

    不支持 git, 不支持永久存储

  • 做了一个自动将字符转成 utf8 编码的 gem at 2012年08月13日

    这个不错,编码一直是个问题。

  • 为什么程序员不擅长评估开发时间? at 2012年08月10日

    @Jijin 哇,这么帅的 Markdown!赞!

  • 为什么程序员不擅长评估开发时间? at 2012年08月10日

    @Jijin 哇,这么帅的 Markdown!赞!

  • 为什么程序员不擅长评估开发时间? at 2012年08月10日

    @Jijin 哇,这么帅的 Markdown!赞!

  • 为什么程序员不擅长评估开发时间? at 2012年08月10日

    @Jijin 哇,这么帅的 Markdown!赞!

  • 为什么程序员不擅长评估开发时间? at 2012年08月10日

    @Jijin 表格的 Markdown 怎么写的,很漂亮。

  • TextMate 开源了 at 2012年08月10日

    30 Day Trial -> TextMate 1.5.11 (r1635) TextMate 2 at GitHub

    也就是说老的不变,新版本 2 开源,自己用随便,商用请联系作者

    把blog贴过来吧:

    Today I am happy to announce that you can find the source for TextMate 2 on GitHub.

    I’ve always wanted to allow end-users to tinker with their environment, my ability to do this is what got me excited about programming in the first place, and it is why I created the bundles concept, but there are limits to how much a bundle can do, and with the still growing user base, I think the best move forward is to open source the program.

    The choice of license is GPL 3. This is partly to avoid a closed source fork and partly because the hacker in me wants all software to be free (as in speech), so in a time where our platform vendor is taking steps to limit our freedom, this is my small attempt of countering such trend.

    I am also a pragmatist and realize that parts of the TextMate code base is useful for other (non-free) applications, so I may later move to a less restrictive license, as is currently the case with the bundles. For now, please get in touch with us if there are subsets of the code base you wish to use for non-free software, and we might be able to work something out.

    Anything related to the code base, including contributions, can be discussed at the textmate-dev list or ##textmate on freenode.net. Pull requests can be sent via GitHub but if you plan to make larger changes, it might be good to discuss them first if you want to ensure that we are interested in accepting a pull request for such change or simply want advice on how to go about it.

  • TextMate 开源了 at 2012年08月09日

    怎么主页没有变化,还是写着 30 天试用

  • Moutain Lion 下安装 Ruby 1.9.3 at 2012年08月08日

    JewelryBox + 1

  • Rails 下有什么比较好的博客框架嘛? at 2012年08月08日

    Otcopress + heroku = http://blog.neten.de

  • 各位 Vimer 你的 <Leader> 键映射成哪个了? at 2012年08月03日

    ;

  • 考虑把 ruby-china 改装成 mountable app at 2012年07月30日

    怎么没有继续了,github 上也是 四个月前

  • 一个 mongoid_tree 一个 mongoid-tree at 2012年07月30日

    mongoid-tree mongoid (~> 3.0)

    mongoid_tree I’m about to upgade mongoid_tree to support Mongoid 2.0.0.rc.1.

  • 新功能发布公告,同时收集 Ruby 开发小贴士 at 2012年07月29日

    mark, up, 顶,收藏,赞

  • 发布了 smart-time-ago,欢迎大家试用,提意见,贡献代码。:D at 2012年07月27日

    @yedingding ruby-china 的时间在 hover 的时候也可以看,我才知道,不过这样已经很好了。

  • 发布了 smart-time-ago,欢迎大家试用,提意见,贡献代码。:D at 2012年07月27日

    @poshboytl @yedingding @huacnlee 我喜欢加收藏了

    我有个小建议,这个功能虽然漂亮,但用户不一定都买帐。

    我本人作为一个程序员,有时候也很难体会用户细腻的小心思,心想这么贴心的功能我都实现了,多帅!

    有人却说,我就想知道那个人什么时候回的帖子,如果半夜二点还不睡觉,明天我就关心关心他,结果一看是 8 个小时前,或一天前,这些信息要么我还要算一下,要么对我根本没有用。

    我想想也有道理,能不能把时间做成一个锚点链接,默认是几分钟前,几天前,但如果点击一下可以显示年月日,时分秒,这样可能更帅!

  • 给此节点添点内容,以前画的插画 at 2012年07月27日

    赞!

  • 用了 ruby-china 的源码, 怎么跟着升级 at 2012年07月26日

    网上找了一下, def email=(val) 应该就是 setter 的作用,也就是说用户注册给 email 赋值的时候,这个函数会提前把email_md5先赋值了。

    我奇怪的是,为什么email_md5是空的,这个字段文件开头也是定义过了的。

  • 用了 ruby-china 的源码, 怎么跟着升级 at 2012年07月26日

    谢谢 @huacnlee 回复,我是把所有用户都删除了再注册新用户来试的,看 4 楼的链接,很明显是那个 md5 出了问题,我如果直接把生成 md5 的代码放在 users_helper.rb 里面,头像就能正常显示。

    请问这个函数是不是用户一登录就会调用啊?

    def email=(val)
    。。。
    end
    
  • 用了 ruby-china 的源码, 怎么跟着升级 at 2012年07月26日
    def email=(val)
      self.email_md5 = Digest::MD5.hexdigest(val || "")
      self[:email] = val
    end
    

    最后找到问题,似乎是 email_md5 没有值,上面那个函数在 app/models/user.rb 里面,我现在对这种跟 C++ 很大出入的函数还是有点头大,不知道 @huacnlee 能不能讲解一下,谢谢。

  • 用了 ruby-china 的源码, 怎么跟着升级 at 2012年07月26日

    @huacnlee 昨天按你的教程把代码版本跟上来了,但是个人资料页(http://localhost:3000/account/edit)的头像不能正常显示了,我看了一下图像的链接是: http://gravatar.com/avatar/.png?s=120&d=404

    请问这个问题我要怎么改正?谢谢

  • 新发现的 ruby-china 的 bug at 2012年07月23日

    还是人肉测试厉害,这个 bug 估计 Rspec 写不出来

  • 我擦,昨天和今天都无法注册 at 2012年07月23日

    @fsword 能把 ppt 发上来吗,我一直都是人肉测试的

  • 新手学习 Rails,看 Devise 代码无从下手 at 2012年07月20日

    习惯习惯就好了,虽然现在没看多少 devise 的代码,但能用能改了。

    目前在改 ruby-china 的代码,为了防注册机,加入社交元素,现已禁用注册,只允许用户通过 Omniauth( Google, Fackbook, weibo,douban, QQ) 注册。

    用户在 callback 的时候填写在本站的用户名和密码,如果像 weibo 那样的没有返回 email,还要让用户填写 email, 同时用 devise 发 comfirmation 的 email, 改动有点大,不过埋头看代码,过一段时间还是可以搞定的。

  • 有没有工具可以记录数据,最后生成报表 at 2012年07月20日

    我 php 下一直用这个,flash 的,效果相当好, http://teethgrinder.co.uk/open-flash-chart-2/

    回复了才看到原来不是要这个,那就给需要的人吧

  • 用了 ruby-china 的源码, 怎么跟着升级 at 2012年07月20日

    @huacnlee 不仅是勤劳的小蜜蜂,还是大好人啊,这么快就回复了,我一定紧紧跟着,谢谢

  • 上一页
  • 1
  • 2
  • …
  • 44
  • 45
  • 46
  • 47
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English