装一个 AntiRSI, 如果是 MacOSX
@clc3123 , 我今天上午 11 点给你们发了邮件,好像现在还没有回喔:)
new relic 确实不错, @richarddong 它有免费版
@ashchan 看看我的这个 pull request: https://github.com/ashchan/ftpsync/pull/2
#18 楼 @kevin__liu 用 ftp 下载下来就可以了
@poshboytl 我想问一下你之前的用的 video encoder 是的什么,能把 h264 压到那么小的码流呀
http://railscasts-china.com/episodes/9-file-uploading-by-carrierwave
@huacnlee 最近我们也决定用 upyun, 为了想能给社区一点小回报;给 你发邮件找推荐码,但是你怎么不回呀:)
@huacnlee 谢谢:)
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.
加入这么一行就好了
CarrierWave::SanitizedFile.sanitize_regexp = /[^[:word:].-+]/
以前要写 css 时都有人帮忙写好了,这一切会 css 的设计师刚好不在,所以必须自己走出这一步
谢谢大家:)
@help5305fff @diudiutang 谢谢 平时也用 firebug 看看别人的 css, 但是要是自己全面的写起 css 来还是吃力。
纯银的 blog 一直在看, @quakewang good lucky!
@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)
我现在每天在用 org-mode 来管理我的日常工作
每天上班第一件事就是 开 emacs 再看 org-mode 里哪些事今天要办
@jinleileiking 太棒了,真的合进去了
https://github.com/wayneeseguin/rvm/commit/97bb964d4b22209f4cf4551003b8f8420de727d3
当时我看到被拒了,所以就没有再观注了
@jinleileiking 我之前 pull request 了,人家不要呀
https://github.com/wayneeseguin/rvm/pull/672#issuecomment-3300784
技术不错,他们的 boss 写过《Git 权威指南》 在 版本控件 这一块技术不错
分类是难的,所以会有 google
分了子栏目后,人气会散很多
我这几天也花时间把 blog 从 wordpress 移到了 octopress
刚才我抱着试试看的想法,把服务器重启了 问题解决了:)