Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@liuhui998
VIP
NO. 780 / 2012-01-16

长沙
10 Topics / 309 Replies
4 Followers
1 Following
58 Favorites
一颗信心、始终拥有、伴我四海、随我九州
GitHub Public Repos
  • gitbook 294

    Git Community Book 中译本 Source

  • python-basic 54

    Python基础习题集

  • time-series-little-book 9

    一本时间序列小书(Python)

  • oceanfood 6

    用做 Rails 分享一个示例程序

  • pandas_exercises 3

    Practice your pandas skills!

  • bootstrap-generators 2

    Bootstrap-generators provides Twitter Bootstrap generators for Rails

  • oceanfood2 1

    用做 Rails 分享一个示例程序(第二季)

  • pe2 1

    Panadas习题集2 (PE2)

  • python-talk 0

    Peter 说

  • c2-recipe-app-api-2 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 看了一天电脑 大家眼睛疼吗 at July 19, 2012

    #27 楼 @hhuai 用 iphone 后确实很伤眼,因为看的多了

  • 看了一天电脑 大家眼睛疼吗 at July 19, 2012

    装一个 AntiRSI, 如果是 MacOSX

  • 俺们 42qu 的 vps 想做个推广,Rubyist 们给点意见吧~ at June 28, 2012

    #28 楼 @huobazi 为什么和 Linode 相比,没有大的竞争力呢 我用了 Linode,发现每个月的流量都用不完

    而且 Linode JP 现在的延时好高呀

  • 俺们 42qu 的 vps 想做个推广,Rubyist 们给点意见吧~ at June 12, 2012

    @clc3123 , 我今天上午 11 点给你们发了邮件,好像现在还没有回喔:)

  • 如何测试 rails 网站在高并发下的性能? at June 04, 2012

    new relic 确实不错, @richarddong 它有免费版

  • [又拍云存储] 意见征集 at June 01, 2012

    #21 楼 @Yousri 是这个吧: http://www.blogkid.net/archives/2782.html

    感觉和这个着不多 https://github.com/ashchan/ftpsync/pull/2

  • [又拍云存储] 意见征集 at June 01, 2012

    @ashchan 看看我的这个 pull request: https://github.com/ashchan/ftpsync/pull/2

  • [又拍云存储] 意见征集 at June 01, 2012

    #18 楼 @kevin__liu 用 ftp 下载下来就可以了

  • [又拍云存储] 意见征集 at June 01, 2012

    @upyun @ashchan upyun ftp 好像不支 MDTM 这条命令,所以每次都要把内容全部下载,不能增量备份

    Failed: 500 Unsupport command MDTM

  • [又拍云存储] 意见征集 at May 31, 2012

    我想问一下 upyun 里的数据备份,除了 ftp 还有什么好的方法没有 @upyun cc @ashchan @lgn21st

  • Railscasts-China 第一次收到他人贡献,感谢 @hhuai at May 30, 2012

    @poshboytl 我想问一下你之前的用的 video encoder 是的什么,能把 h264 压到那么小的码流呀

    http://railscasts-china.com/episodes/9-file-uploading-by-carrierwave

  • Ruby China 5 月 份在 UpYun 上面的流量情况,给大家一点参考 at May 26, 2012

    @huacnlee 最近我们也决定用 upyun, 为了想能给社区一点小回报;给 你发邮件找推荐码,但是你怎么不回呀:)

  • ruby.taobao.org 少一个 gem at May 22, 2012

    @huacnlee 谢谢:)

  • file.original_filename 上传文件,文件名中文乱码怎么解决的啊 at May 21, 2012

    @fsword

    https://github.com/jnicklas/carrierwave

    Filenames and unicode chars

    Another security issue you should care for is the file names (see Ruby On Rails Security Guide). By default, CarrierWave provides only English letters, arabic numerals and '-+_.' symbols as white-listed characters in the file name. If you want to support local scripts (Cyrillic letters, letters with diacritics and so on), you have to override sanitize_regexp method. It should return regular expression which would match all non-allowed symbols.

    With Ruby 1.9 and higher you can simply write (as it has Oniguruma built-in):

    CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:].-+]/

    With Ruby 1.8 you have to manually specify all character ranges. For example, for files which may contain Russian letters:

    CarrierWave::SanitizedFile.sanitize_regexp = /[^a-zA-Zа-яА-ЯёЁ0-9.-+_]/u

    Also make sure that allowing non-latin characters won't cause a compatibility issue with a third-party plugins or client-side software.

  • file.original_filename 上传文件,文件名中文乱码怎么解决的啊 at May 21, 2012

    加入这么一行就好了
    CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:].-+]/

  • 我想问一下各位学习 css 有什么好的办法 at May 19, 2012

    #17 楼 @tiseheaini

    以前要写 css 时都有人帮忙写好了,这一切会 css 的设计师刚好不在,所以必须自己走出这一步

  • 我想问一下各位学习 css 有什么好的办法 at May 19, 2012

    #9 楼 @gaicitadie

    “css 不难,把它写的结构化很难”

    同感

  • 我想问一下各位学习 css 有什么好的办法 at May 19, 2012

    谢谢大家:)

  • 我想问一下各位学习 css 有什么好的办法 at May 19, 2012

    @help5305fff @diudiutang 谢谢 平时也用 firebug 看看别人的 css, 但是要是自己全面的写起 css 来还是吃力。

  • [上海] 创业如旅行,等你一起上路 at May 09, 2012

    纯银的 blog 一直在看, @quakewang good lucky!

  • 有谁在工作或生活中实践 GTD at May 08, 2012

    #34 楼 @ery cc@zw963 我的 org-mode 脚本就是全部从 org-mode 教程里抄的,用了快一年了,至少到现在还每天还在用。

    真的就简单、合用就好,如果搞的很得复杂,GTD 坚持不下来的。

  • 有谁在工作或生活中实践 GTD at May 05, 2012

    @zw963 , 这是我的 org-mode 的相关配置

    ;; for org-mode (setq load-path (cons "~/3rd/org-mode/lisp" load-path)) (setq load-path (cons "~/3rd/org-mode/conrib/lisp" load-path))

    (require 'org-install) (require 'org-publish) (require 'org)

    (add-to-list 'auto-mode-alist '("\.\(org\|org_archive\|txt\)$" . org-mode)) (add-hook 'org-mode-hook 'turn-on-font-lock) (add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))

    (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (setq org-agenda-files (list "~/org/work.org" "~/org/home.org" "~/org/misc.org")) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-agenda-files (quote ("~/org/work.org" "~/org/home.org" "~/org/misc.org")))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )

    (setq org-log-done t)

  • 有谁在工作或生活中实践 GTD at May 04, 2012

    我现在每天在用 org-mode 来管理我的日常工作

    每天上班第一件事就是 开 emacs 再看 org-mode 里哪些事今天要办

  • rvm 下载加速 at May 03, 2012

    @jinleileiking 太棒了,真的合进去了

    https://github.com/wayneeseguin/rvm/commit/97bb964d4b22209f4cf4551003b8f8420de727d3

    当时我看到被拒了,所以就没有再观注了

  • rvm 下载加速 at May 03, 2012

    @jinleileiking 我之前 pull request 了,人家不要呀

    https://github.com/wayneeseguin/rvm/pull/672#issuecomment-3300784

  • 咨询一个开源软件服务公司群英汇 at May 02, 2012

    技术不错,他们的 boss 写过《Git 权威指南》 在 版本控件 这一块技术不错

  • 俺们这也应该搞个 reputation 这样的系统... at May 01, 2012

    分类是难的,所以会有 google

    分了子栏目后,人气会散很多

  • gitscore 来排名了 at May 01, 2012

    路过

    http://gitscore.com/user/liuhui998

  • 貌似用 octopress 的人越来越多了啊 at May 01, 2012

    我这几天也花时间把 blog 从 wordpress 移到了 octopress

    http://liuhui998.com

  • Grape 在 Nginx + Unicorn + rbenv 无法加载 at April 27, 2012

    刚才我抱着试试看的想法,把服务器重启了 问题解决了:)

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