Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
ian
@doitian
VIP
NO. 186 / 2011-11-23

皮匠科技
杭州
22 Topics / 849 Replies
42 Followers
1 Following
13 Favorites
GitHub Public Repos
  • live2dviewer 76

    Live2D 模型批量查看器

  • dotfiles-public 14

    My configurations

  • knowledge-base 5

  • ckb-sdk-python 2

  • readwise-scripts 2

  • zotero-actions-tags-sc... 2

    Scripts for the Zotero plugin windingwind/zotero-actions-tags

  • lnd-grpc-tonic-client 2

    Rust lnd client using tonic and tonic-openssl.

  • http-inspector 1

  • dotfiles 1

    dotfiles managed using saltstack

  • userstyles 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 类继承时,类变量、validation 和 Scope 是否会继承? 是否可被覆盖? at April 10, 2012

    ActiveModel? 看文档 + 自己实验

  • 新人请教一个比较奇怪的问题 at April 10, 2012

    #2 楼 @jiffies 匹配到 (.:format) 去了

  • 怎么开始写前台的代码? at April 09, 2012

    compass css3 mixin 还是很方便的,建议是用 scss 然后只 import compass reset 和 css3。这样又可以学到东西又不会被各种浏览器的差异搞到蛋疼。然后多临摹,看到好设计就 inspect 看看

  • assets:precompile 在 i5 上面用了 87s at April 09, 2012

    不就 deploy 的时候在服务器上跑一次吗?慢点也没关系吧

  • pry 代替 Rails console 的 irb,不用加进 Gemfile at April 09, 2012

    #3 楼 @AlphaLiu 更新到 0.0.5 了

  • 小型团队 2-5 人即时沟通的工具 at April 09, 2012

    自己建个 irc + znc 再加上个 log bot 应该能满足需求,就是要自己折腾 log bot 可以查看 http://serverfault.com/questions/36886/how-to-offer-searchable-irc-logs

  • pry 代替 Rails console 的 irb,不用加进 Gemfile at April 09, 2012

    #1 楼 @AlphaLiu 手动编辑下 /Users/alpha/.rvm/gems/ruby-1.9.3-head/gems/rails-console-pry-0.0.4/bin/rails-console-pry:37

    在 37 行之前插入这一行看能解决吗?

    $:.push File.join(pry_rails_path.full_gem_path, 'lib')

  • ruby 所谓方法和消息怎么理解呢? at April 09, 2012

    a.b 就是给 receiver a 发送消息 b,至于消息怎么处理再涉及到 eigen class 的方法查找,找到方法后 receiver a 被绑定到 self 并调用方法。可以理解为方法是消息的 handler

  • 怎么动态地为类添加实例方法? at April 09, 2012

    可以用 Module, 名字冲突建议用 alias chain

    module AExt
      def m
      end
    end
    
    # for all A's instance
    A.send :include AExt
    
    # only for a1 and a2
    a1.extend AExt
    a2.extend AExt
    
    
  • 大家好哇! 我的 Emacs 脚本终于发布到 github 了. at April 09, 2012

    我写的 emacs-dwim for Linux 和 emacs-dwim.mac 会自动启动 daemon,编辑完成后会切换到之前的窗口。mac 版本还可以通过 Automator 创建个 Emacs Client.app,可以放到 Accounts Login Items 里自动启动,可以作为 File open handler,放在 Dock 上可以把文件拖放到 Emacs Client.app 的 icon 上就会在 Emacs 里打开。

  • 初学者连载系列之十二:安装和测试 Node.js at April 07, 2012

    #1 楼 @lidashuang 装了 node 就有 execjs 环境了,有些服务像 juggernaut (基于 redis 的 pubsub 服务) 也依赖 node。另外想把 coffeescript 编译成 js 或者想在编辑器里检查 coffeescript 语法错误,也需要安装 node

  • 大家觉得有必要为节点增加 slug 功能吗? at April 07, 2012

    可以 hack model 的 to_param http://stackoverflow.com/a/10009785/667158

  • bundle install --deployment at April 06, 2012

    http会重写向到https,容易只证书产生问题,可以设置下 url 替换,在 git 的 remote 地址是http://github.com的时候,替换成git://github.com

    git config --global 'url.git://github.com.insteadOf' 'http://github.com'

  • rails c 问题求解 at April 06, 2012

    Ubuntu 的库更新不够快,Arch 装新版一点压力都没有

  • ubuntu 安装 ruby1.9.3 出现 Error running 'autoreconf -is --force' at April 06, 2012

    本地 m4 宏不全的不要顺便玩autoreconf,用./configure不就行了吗?

  • ubuntu 安装 ruby1.9.3 出现 Error running 'autoreconf -is --force' at April 06, 2012

    #6 楼 @superbatironmans5 AC_EILSEQ应该是libiconv的 m4 宏

  • ubuntu 安装 ruby1.9.3 出现 Error running 'autoreconf -is --force' at April 06, 2012

    你的 autoconf 版本和开发者使用的版本不兼容

  • 这里有多少人用机械键盘? at April 05, 2012

    #7 楼 @camel 不用微软 4000 吗,不过就是空格太硬

  • 推荐一个 multi select 多选框插件吧 at April 03, 2012

    #5 楼 @camel https://github.com/harvesthq/chosen/issues/517 可以跟踪下这个 issue

  • 推荐一个 multi select 多选框插件吧 at April 03, 2012

    #5 楼 @camel chosen 就是无法插入新的内容,至少我在用的时候是不行。

  • XMonad Starter Kit 平铺窗口管理器配置分享 at April 03, 2012

    #1 楼 @jinleileiking 就是 ghc 太庞大了,安装完以后 700 多 M

  • 有没有好用的 Vim 括号自动补全插件 at April 03, 2012

    在写 lisp 吗?老敲括号

  • 推荐一个 multi select 多选框插件吧 at April 03, 2012

    btw,你发帖的时候没有发现那个 chosen 单选框吗?

  • 推荐一个 multi select 多选框插件吧 at April 03, 2012

    #1 楼 @Rei #2 楼 @camel chosen 只能选已有的,不能新建,不适合像添加联系人,tags 的场景,也可能是有 API 我没有发现。后来用的 tag-it 加些 CSS 弄得和 chosen 样式一样

  • XMonad Starter Kit 平铺窗口管理器配置分享 at April 03, 2012

    #2 楼 @jinleileiking 这个主要是效率,除了个黑黑的 panel 什么都没有,没什么好看的吧 http://www.yupoo.com/photos/doitian/84987916/zoom/original/

  • Linuxer 们,都用什么发行版 /WM/DE 啊。扯扯淡 at April 03, 2012

    #35 楼 @jinleileiking 我喜欢创建一堆的 workspaces,然后名字根据这个 workspaces 的主题来确定。常用的可以先设置好,比如 emacs,其它就按需创建,比如 ruby china,然后需要单独在浏览器里看结果,就再建个 ruby china chrome 等等。然后通过 prompt 切换。多显主要是要在当前显示器显示信息,而不是在主显示器上显示。

  • Linuxer 们,都用什么发行版 /WM/DE 啊。扯扯淡 at April 02, 2012

    #31 楼 @jinleileiking 好处是可以把配置文件贴出来装 B

  • Linuxer 们,都用什么发行版 /WM/DE 啊。扯扯淡 at April 02, 2012

    #31 楼 @jinleileiking xmonad 不带 panel 和 tray,不像 awesome wm 内置的。多显下 awesome 的操作方式不喜欢,内置的 panel 在多显下使用也不顺手。几次尝试配置那个动态创建 tag 的插件 Shifty 都不工作,我最需要的就是这个功能。

  • Prev
  • 1
  • 2
  • …
  • 21
  • 22
  • 23
  • 24
  • 25
  • …
  • 28
  • 29
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English