V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  paulw54jrn  ›  全部回复第 4 页 / 共 11 页
回复总数  215
1  2  3  4  5  6  7  8  9  10 ... 11  
@MC
预防性 block
2016-05-19 19:07:44 +08:00
回复了 Specs 创建的主题 PHP 有哪些能够生成随机不重复字符串的算法或者函数?
uuid4
你开心就好
2016-03-13 08:16:38 +08:00
回复了 miyuki 创建的主题 翻译 Hack 这个单词如何用尽可能少的词做到信达雅的翻译
@manfay
莫名击中笑点 2333
有了 ncdu 就再也没用过 du 了
2.7.4..
2016-01-25 18:45:31 +08:00
回复了 wico77 创建的主题 Python python 如何把函数结果缓存到硬盘系统?
直接 Redis 解决?
2015-12-17 19:57:33 +08:00
回复了 moji2016 创建的主题 Python 生命苦短,我用 python,是瞎话吗
LZ 不好意思要预防性 Block 一下了.
2015-12-17 19:43:33 +08:00
回复了 JhOOOn 创建的主题 问与答 crontab 执行程序时错误, crontab 会不断的重新尝试?
这是一个可以验证 cron 语句的网站: http://crontab.guru/.

如果无法访问请备天梯.
2015-12-17 19:41:45 +08:00
回复了 JhOOOn 创建的主题 问与答 crontab 执行程序时错误, crontab 会不断的重新尝试?
@JhOOOn

* */1 * * * 并不是每小时执行一次. 它跟* * * * * 是一样的.
每小时执行一次应该是 0 * * * *. 准确来说是每小时的第 0 分钟执行.
2015-12-16 21:13:31 +08:00
回复了 JhOOOn 创建的主题 问与答 crontab 执行程序时错误, crontab 会不断的重新尝试?
@JhOOOn
如果你不想多个 cron job 同时执行(上一个没结束下一个就进来了), 这个可以用 lockfile 实现.

最简单的思路:
- 执行时去制定路径检查 pid 文件.
---- 如果 pid 文件不存在
--------- 把当前 pid 写入文件,继续执行
---- 若 pid 文件存在
--------- grep pid, 看进程是否还活着
-------------- 进程不存在, 写入 pid, 继续执行
-------------- 存在, exit 0;
2015-12-16 21:07:10 +08:00
回复了 JhOOOn 创建的主题 问与答 crontab 执行程序时错误, crontab 会不断的重新尝试?
2015-12-05 20:15:53 +08:00
回复了 paulw54jrn 创建的主题 Amazon 有人做过 Amazon HireVue 的面试题吗?
@bbx @e1eph4nt
感谢
之前用 ElasticCache 没找到内部实现主从切换(主写从读).. 随手写了下:
https://gist.github.com/PaulLiang1/b145c7219773916bc701
2015-10-01 19:47:27 +08:00
回复了 Livid 创建的主题 NGINX Nginx 未来版本里的 JavaScript 虚拟机
评论褒贬不一啊

```
You're using JS, which helps the expressivity issue a bit, but in exchange it's inheriting all the problems of JS, and squishing them into my web server, and with no apparent framework for making common and dangerous tasks simple and safe.

For example, the comment in your second says that unary + applied to a string will "convert upstream number to integer", but that's not true. It converts a String to a Number (including the "number" NaN). +"0.5" is the Number 0.5, which will send you to the server "my_upstream0.5". +"X" is NaN, which will send you to "my_upstreamNaN". Unary + supports scientific notation, too, so "1.2e-100" becomes "my_upstream1.2e-100". It supports hexadecimal integers, too, though that's less interesting when you clamp to [0,1].

These mis-routings are probably harmless in this case, but it's not hard to imagine similar situations where they're not.

If the authors of a feature can't use it safely in their trivial demo examples in the product announcement, what confidence do I have that I'm going to be able to make it work reliably and securely on an actual production website?

--JS Dude
```
2015-09-24 18:55:46 +08:00
回复了 cjyang1128 创建的主题 程序员 公司内部开发文档这些存放在哪里比较好
自建 Confluence
2015-09-12 13:56:38 +08:00
回复了 luolianhai 创建的主题 DevOps 运维工程师求职准备
自动化部署
Puppet / Chef / Ansible -> infrastructure as code
2015-08-08 13:08:05 +08:00
回复了 josephok 创建的主题 Linux 虚拟机里装个 windows 玩游戏合适不?
wine / Crossover
1  2  3  4  5  6  7  8  9  10 ... 11  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2291 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 00:42 · PVG 08:42 · LAX 17:42 · JFK 20:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.