Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 匹配中文的正则表达片段 at 2012年09月21日

    #2 楼 @bhuztez 是的

  • 匹配中文的正则表达片段 at 2012年09月21日
    ("一".."龥").to_a.size
    => 20902
    
    
  • 关于学习 Ruby 的一些问题 at 2012年09月21日

    @bhuztez

    所以,开发的时候,你不得把相关的代码给注释掉,不然加了个column,还得去改model部分代码。得发布了又得把新增的column名补上。现在,还有谁敢拿着里面还有select *的代码去发布啊,现在都找不到多少PHP代码里面到处都是select *了吧。
    

    你举 PHP 的例子要说明什么?PHP 程序员都是最勤劳、最不怕干脏活儿、累活的同志啊。这一点大家都知道。

    可以新开一个贴讨论一下 select *和外键约束问题..这贴太乱了。

  • Rails 4 会带来什么 at 2012年09月21日

    很期待这里的:https://speakerdeck.com/u/j3/p/adventures-on-the-golden-path

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #61 楼 @xiaolai 也可以字体颜色变浅...

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #49 楼 @bhuztez 用不用 select * 和静态文件要不要打包到一个文件这种问题还有讨论的必要么。

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #50 楼 @bhuztez

    命名问题只能算是小问题了。
    

    你是同意了的啦。

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #38 楼 @bhuztez 既想拼错单词,又想自动生成内容。。

  • 关于学习 Ruby 的一些问题 at 2012年09月20日
    而那个ActiveRecord Query Interface,默认生成的SQL可是select *啊,开发的时候的确不碍事,但总不能就这样发布了,还得把所有用到的column名字都补回去,下次改到这里再注释掉。要不就不用ActiveRecord Query Interface。
    

    小白才去挨个加 column 名字... 小白才不用 ActiveRecord Query Interface。

  • 关于学习 Ruby 的一些问题 at 2012年09月20日
    比如开发的时候要改schema,很可能改错了又要改回来,所以你不会去生成migration文件,而是直接去数据库里改
    

    小白才直接去数据库里改..

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #20 楼 @gaicitadie 什么大小写不能错?和起名字没关系好不好。都是自动生成的,你愿意起什么名字就起什么名字:

    rails g migration migration_name_here
    
  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #34 楼 @bhuztez 版本控制是干什么的

  • 关于学习 Ruby 的一些问题 at 2012年09月20日

    #31 楼 @bhuztez 谁去看 migration 文件啊?都是看 schema.rb 的...

  • 大家能不能分享一下自己在 github 上关注的项目和用户呢? at 2012年09月19日

    前几天发现的一个用控制台做 slide 的工具:https://github.com/fxn/tkn

  • 如何知道 Enumerator 的当前内部指针位置和前一个元素? at 2012年09月19日

    #2 楼 @ailms 要记录上一个位置就必须存储遍历的顺序了。比如增加开销啊

  • mini_magick 连续生成两张图片怎么操作 at 2012年09月19日

    #2 楼 @metal 你到底想问什么啊。。

  • mini_magick 连续生成两张图片怎么操作 at 2012年09月19日

    image = MiniMagick::Image.new('./1.jpg') image.resize("400x400") image.write ... image.resize("300x300") image.write ...

  • update_attributes 老是更新不成功,也没错误提示。 at 2012年09月19日

    #2 楼 @lin_style who knowns

  • update_attributes 老是更新不成功,也没错误提示。 at 2012年09月19日

    把@user.errors打印出来啊

  • 上传文件,用什么做为文件名好 at 2012年09月18日

    用数据库的自增 id 啊

  • exec 和 system at 2012年09月18日

    #2 楼 @southwolf 可以用后台执行的:http://hooopo.iteye.com/blog/1140196

  • 请教一下关于生成订单号 at 2012年09月18日

    #7 楼 @huacnlee 隔一段时间设置一个起始值就不连贯了

  • 全局变量 $ 系列茴香豆 at 2012年09月18日

    #4 楼 @nevill 不觉得放在一起很乱么,写一些单个文件的项目还挺好。

  • 全局变量 $ 系列茴香豆 at 2012年09月18日

    #2 楼 @nevill Python 党喜欢这么写吧

  • 请教一下关于生成订单号 at 2012年09月17日

    #3 楼 @ywencn 很容易啊:http://stackoverflow.com/questions/3579829/how-to-set-an-auto-increment-field-with-to-start-with-the-value-6000-in-mysql

  • 请教一下关于生成订单号 at 2012年09月17日

    #1 楼 @ywencn 用 id 好啊 按你这个说法还能欺骗竞争对手呢 偷偷把 id 加 1w

  • second_level_cache 简介 at 2012年09月17日

    #5 楼 @caryl :-)

  • second_level_cache 简介 at 2012年09月17日

    #3 楼 @quakewang 第一个很少人会这么写,好像实现起来也比较复杂,一般都是 scope.find(id)。 第二种很好,现在是把 eager loading 改成 N + 1 Query,但不知到 memcached 批量读和 N 次 read 性能差异有多大。 刚才发现 dalli 的 multi read 还有这个问题:https://github.com/mperham/dalli/issues/106

  • 绝大多数人都是有其他 web 开发背景的吧,感觉之前没有经验学习 Rails 特吃力 at 2012年09月17日

    我算是非科班、没有任何 web 开发经验就直接学 Ruby/Rails 的吧:-) 基础差,数据结构、算法、操作系统之类的都不懂。四级没过。 刚学 Rails 的时候用了一个月都没把 depot 搭建起来。

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