V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  toctan  ›  全部回复第 4 页 / 共 12 页
回复总数  224
1  2  3  4  5  6  7  8  9  10 ... 12  
2013-08-27 09:29:47 +08:00
回复了 Livid 创建的主题 git 每次 git commit 的 message(英文)的末尾是否需要英文的句号呢?
@Keyes 更加适当的格式:

Capitalized, short (50 chars or less) summary

More detailed explanatory text, if necessary. Wrap it to about 72
characters or so. In some contexts, the first line is treated as the
subject of an email and the rest of the text as the body. The blank
line separating the summary from the body is critical (unless you omit
the body entirely); tools like rebase can get confused if you run the
two together.

Write your commit message in the imperative: "Fix bug" and not "Fixed bug"
or "Fixes bug." This convention matches up with commit messages generated
by commands like git merge and git revert.

Further paragraphs come after blank lines.

- Bullet points are okay, too

- Typically a hyphen or asterisk is used for the bullet, preceded by a
single space, with blank lines in between, but conventions vary here

- Use a hanging indent

http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
2013-08-27 09:17:43 +08:00
回复了 Livid 创建的主题 git 每次 git commit 的 message(英文)的末尾是否需要英文的句号呢?
DO

- Write the summary line and description of what you have done in the imperative mode, that is as if you were commanding someone. Write “fix”, “add”, “change” instead of “fixed”, “added”, “changed”.
- Always leave the second line blank.
- Line break the commit message (to make the commit message readable without having to scroll horizontally in gitk).

DON’T

- Don’t end the summary line with a period.

https://github.com/erlang/otp/wiki/Writing-good-commit-messages
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
2013-08-23 18:38:49 +08:00
回复了 Livid 创建的主题 RQ 关于 RQ 的任务重试机制
@muxi a
珍爱生命,远离易购。
2013-08-14 00:38:57 +08:00
回复了 Windweller 创建的主题 程序员 JavaScript有关Let的用法
@livid 贴的 gist 为什么上下这么多空行?
2013-08-14 00:32:19 +08:00
回复了 Windweller 创建的主题 程序员 JavaScript有关Let的用法
@Windweller 不是不该把 item.onclick 的事件注册放到循环中去,而是不应该在循环中制造 closures
参见 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Closures Creating closures in loops: A common mistake 一节
https://gist.github.com/toctan/6222729
主流的 Linux 发行版应该都装了 python 吧
2013-08-08 20:19:52 +08:00
回复了 flydream 创建的主题 分享发现 codeschool hall pass全部课程免费体验
2013-06-29 21:33:54 +08:00
回复了 kava 创建的主题 Kindle 买了几本书,对亚马逊中国太失望了
亚马逊.cn 的电子书是做得很渣,客户端,排版,购书体验都基本上是最烂的。多看也好不到哪去,个人极讨厌。

@gorsky 不知道你的英文 mobi 是在哪找的,我在 kindle 上看过的数十本 mobi, 没有一本排版像你说的那样。
2013-06-25 23:39:08 +08:00
回复了 carlhan 创建的主题 Linux Why Arch Linux ?
1. Rolling release
所有的软件在上游发布之后很短时间内都可以升级到最新版,相比之下,ubuntu 的软件只能升级到特定的版本。系统永远保持最新,从 12.04 到 13.04 这样的迁移是完全没有必要的。

2. Arch Build System
将软件源码编译,打包的 ports-like system. 在大多数情况下,我们对使用的软件的编译参数是没有特别要求的,这样的情况下通过 pacman/apt-get 这样的包管理器直接下载二进制包是很方便的。但是偶尔我们需要自定义这些编译参数,在 ports-like system 下,只需在某个文件 (PKGBUILD) 更改这些参数就能达到这样的目地。而在没有提供 ports-like system 的发行版,比如 ubuntu, 就没这么方便,你需要自己去下载源码,解压,改参数,make, make install 等重头再来,而且这样安装的软件是不在包管理器里的,这意味着以后的卸载和升级是件麻烦事。

https://wiki.archlinux.org/index.php/Arch_Build_System
http://linuxtoy.org/archives/archlinux-pkgbuild-aur-and-abs.html

3. AUR
每装一个软件都添加一个 ppa 是一件及其蛋碎的事情,而且 ppa 会影响 apt-get update 的速度。Fuck ppa! AUR 配合 yaourt 感觉太完美了。

4. Wiki
Arch Linux 的 wiki 是我见过最好的 wiki, 没有之一。
https://www.archlinux.org/

5. Minimalist
Arch 默认安装带的软件极少,从最基本的系统到能日常使用这个过程,如果你以前只使用过 "newbie distros", 你会学到很多东西。还有像我这样不想系统有任何多余东西的洁癖患者,极简主义能够满足你的强迫症。

6. Philosophy: The Arch Way
https://wiki.archlinux.org/index.php/The_Arch_Way

最后,很多人说 Arch 升级容易挂,我想说真没那么夸张。只要 pacman -Syu 的时候不要 --force 系统是很难挂的,只是有时候 pacman -Syu 会报错升级不成功,这时候翻翻官网的 Latest News 就能轻轻松松解决。
2013-06-22 23:42:30 +08:00
回复了 chuangbo 创建的主题 Reddit 我刚刚翻译了那个泄洪把人活活淹死的新闻,发到 reddit 了
Oh, shit, 算了,图片里的十句有八句语法错误。
2013-06-22 23:39:28 +08:00
回复了 chuangbo 创建的主题 Reddit 我刚刚翻译了那个泄洪把人活活淹死的新闻,发到 reddit 了
When modifying a person with his or her age, the compounded phrase is hyphenated: my six-year-old son. And the year should be in the singular.
2013-06-06 22:54:14 +08:00
回复了 cheyo 创建的主题 字体排印 这个是什么字体?很漂亮。
2013-06-05 23:45:12 +08:00
回复了 jjlovegrape 创建的主题 问与答 现在的GMAIL真心不好用了,有同感的同学吗
今天用 Gmail 发现的两功能蛮贴心的
http://ww4.sinaimg.cn/large/8b6397c4jw1e5dov1giykj20au024glp.jpg
注册网站不用打开邮件也能确认了

另一个是将一封邮件标记为垃圾邮件同时弹出对话框询问是否向该邮件服务器发出退订请求
@skywalker 如果只是几行代码,注意缩进可读性就很好了,长一点的代码就直接 gist 吧。发帖如果需要贴代码很多情况是在编辑器里已经写好了,如果是较长的代码,相信不会有人在浏览器里写。与其从编辑器里复制出来,不如直接从编辑器里创建 gist, emacs, sublime, vim 等主流编辑器通过插件对 gist 支持都蛮好的。


不太希望加上 markdown 或者富文本编辑器,现在这样简单挺好。
2013-05-16 21:34:07 +08:00
回复了 kfc315 创建的主题 音乐 大家有推荐的 podcast 吗?(不仅限于音乐)
2013-05-16 15:27:27 +08:00
回复了 pyKun 创建的主题 Linux copy完整一个系统或硬盘
@pyKun 用 rsync 也行,上次我是把整个系统拷到一个U盘里,新电脑上分区挂载把文件拷回去,改改 /etc/fstab,装好 grub 就行了。

https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
2013-05-16 11:26:18 +08:00
回复了 ayanamist 创建的主题 求职 应届毕业生求职Python程序员
啊,System Administrator, Network Center of HUST, 前段时间 mentohust 在 HUST 不能用什么情况?
1  2  3  4  5  6  7  8  9  10 ... 12  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   6049 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 42ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
Developed with CodeLauncher
♥ Do have faith in what you're doing.