V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  jimmyye  ›  全部回复第 4 页 / 共 7 页
回复总数  134
1  2  3  4  5  6  7  
去年在京东买的 LG 4k 显示器(质保 3 年)+plus 会员,几个月后四个角有不同程度显示异常,拖到一年零一天后续了 plus,然后报修,全程电话联系,上门收件,到修好送回来大概 10 天,不扯皮,态度好。所以以后还是选京东,尽管听说有这样那样的问题。
第一次听说。
2017-06-12 11:54:27 +08:00
回复了 liuxu 创建的主题 全球工单系统 为啥 V2EX 总是 502 bad gateway
6 月出现好几次了,没有代理
2017-06-09 18:37:49 +08:00
回复了 SimbaPeng 创建的主题 Python Python3 里的 dict 是有序的吧?
https://docs.python.org/3.6/whatsnew/3.6.html#new-dict-implementation
> The order-preserving aspect of this new implementation is considered an implementation detail and should not be relied upon (this may change in the future, but it is desired to have this new dict implementation in the language for a few releases before changing the language spec to mandate order-preserving semantics for all current and future Python implementations; this also helps preserve backwards-compatibility with older versions of the language where random iteration order is still in effect, e.g. Python 3.5).
2017-05-30 22:39:07 +08:00
回复了 callmexiaoliu 创建的主题 Android react native 只支持 api>16?没有办法了吗?
今年的 react 大会有说到,Facebook 官方 APP 有部分用到了 react native
因为异常导致赋值没有进行,在 except 里给它们赋值 None 就行了
2017-04-12 14:05:53 +08:00
回复了 fanne 创建的主题 Django django 定时任务选用哪种方式?
2017-04-09 00:57:53 +08:00
回复了 cpublic 创建的主题 VPS 求救呀, Let’s Encrypt 证书续期碰到"No module named virtualenv"问题?
也许是账号原因?我的步骤里面有设置 Email ,官方的好像没有仔细讲:

Install
wget -O - https://get.acme.sh | sh
# relogin or source .bashrc

Setup
# ACCOUNT_EMAIL:
vim .acme.sh/account.conf

# webroot:
sudo mkdir /srv/www/acme && chown jimmyye:jimmyye /srv/www/acme

sudo vim /etc/nginx/acme-challenge.conf
```
location /.well-known/acme-challenge/ {
root /srv/www/acme/;
try_files $uri =404;
access_log off;
}
```

# change /etc/nginx/site-enabled/domain.com.conf
```
server {
listen 80;
server_name domain.com www.domain.com;

include acme-challenge.conf;

location / {
return 301 https://domain.com$request_uri;
}
}
```

Issue certs
acme.sh --issue --days 60 -w /srv/www/acme -d domain.com -d www.domain.com

Install certs

**** Permissions ****
sudo chown jimmyye:www-data /etc/nginx/ssl
sudo vim /etc/sudoers.d/nginx_reload
```
# Cmnd alias specification
# Nginx reload
Cmnd_Alias NGINX_RELOAD = /usr/sbin/service nginx reload

# No-Password Commands
jimmyye ALL=NOPASSWD: NGINX_RELOAD

```

acme.sh --installcert -d domain.com --fullchainpath /etc/nginx/ssl/domain.com-chained.crt --keypath /etc/nginx/ssl/domain.com.key --reloadcmd "sudo service nginx reload"

另外测试的时候使用 --staging 或 --test 使用测试服务器,以免超出次数限制:
https://github.com/Neilpang/acme.sh/wiki/Options-and-Params
2017-04-08 19:07:38 +08:00
回复了 cpublic 创建的主题 VPS 求救呀, Let’s Encrypt 证书续期碰到"No module named virtualenv"问题?
https://github.com/Neilpang/acme.sh 吧,没有依赖,就一脚本
2017-04-08 11:11:09 +08:00
回复了 xuhaotian 创建的主题 程序员 心机队友拿我的代码当自己的去上交,还举报我做得少。
commit log 是根据本地时间,但是 Github 有各种 event 记录用户事件(至少 public repo 是有的),其中 PushEvent 记录了某些 push 信息(创建时间、 sha 等), Github 官方或者第三方 Github archive 都有此类事件存档
2017-02-16 14:16:38 +08:00
回复了 Tony2ee 创建的主题 问与答 相比京东,亚马逊好在哪里?
为什么楼上都说京东的是塑料袋?我收到的好像全是箱子的。
2017-02-03 11:44:55 +08:00
回复了 yangxg 创建的主题 Python 有没有类似于 Fabric 但支持 Py3 的自动部署工具?
@dcoder 官方还没有支持 Python3 : https://github.com/fabric/fabric
那里的 py3k 版本也只是一个 fork : https://github.com/mathiasertl/fabric
参考这里: https://github.com/elastic/elasticsearch-py/issues/297
1.试试用 generator 改写,
2.因为 bulk 调用 streaming_bulk ,试试调整 chunk_size 、 max_chunk_bytes : http://elasticsearch-py.readthedocs.io/en/master/helpers.html#elasticsearch.helpers.streaming_bulk
2016-12-03 13:57:12 +08:00
回复了 yangxg 创建的主题 Python 有没有类似于 Fabric 但支持 Py3 的自动部署工具?
有几个 fork ,之前用过
https://github.com/akaariai/fabric/tree/py34 好像没有什么问题,更新的 branch
https://github.com/akaariai/fabric/tree/py34_1.10 没有用过。还有更新的 fork 也没有用过
https://github.com/rane-hs/fabric-py3
这种商家的产品坚决不用,完全看不懂!与之类似的:之前注册过微林想进去看看具体的服务,然后隔了一段时间想用的时候发现账号没了,这不是把潜在用户往外赶吗?
2016-11-26 13:55:05 +08:00
回复了 mrlawrence 创建的主题 iPhone 苹果被黄牛搞崩溃, iPhone 中国区返修率竟大于销售量
这有什么问题?每卖 1 万新机就有 1.1 万旧机要换,这 1 万跟 1.1 万机器又没有关系。
如果最近没发 iPhone7 ,说不定每卖 1 千新机就有 1.1 万旧机要换呢。
2016-11-16 17:30:46 +08:00
回复了 realpg 创建的主题 全球工单系统 白特么夸二手东售后好了。哔了狗了。
售后还行吧,昨天送的一箱维他黑豆奶破了一盒,然后网上申请换新,昨晚就重发一箱过来了,虽然还没收到。以前有一次有问题的东西换新也是直接就重发的。
2016-10-31 11:22:10 +08:00
回复了 lovebeyondalways 创建的主题 Python django migrate 报错
@lovebeyondalways 每次修改 /增加 Model 后,都要先`python manage.py makemigrations`生成 migration 文件,然后`python manage.py migrate`应用到数据库。
1  2  3  4  5  6  7  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3609 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 04:49 · PVG 12:49 · LAX 21:49 · JFK 00:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.