V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  pubby  ›  全部回复第 38 页 / 共 87 页
回复总数  1733
1 ... 34  35  36  37  38  39  40  41  42  43 ... 87  
2016-08-15 16:35:53 +08:00
回复了 aias 创建的主题 问与答 win10 更新以后网易云音乐客户端的字体变得好难受= =
我是 win10 更新后 chrome 字体瘫痪了,重装 chrome 解决,两台电脑都这样
Vary: User-agent
?
2016-08-14 00:28:19 +08:00
回复了 oscarzhao 创建的主题 程序员 Go 语言并发模型:像 Unix Pipe 那样使用 channel
写错了,跟 switch 搞混了 -_-
2016-08-14 00:25:23 +08:00
回复了 oscarzhao 创建的主题 程序员 Go 语言并发模型:像 Unix Pipe 那样使用 channel
翻译得不错

感觉 merge 应该再改造一下

output := func(c <-chan int) {
defer wg.Done()
for { // 不依赖上游 chan
select {
case <-done: // 放第一个,尽早退出
return
case n,ok:=<- c:
if !ok { // inbound closed
return
}
out <- n
}
}
}
2016-08-13 23:06:46 +08:00
回复了 qcloud 创建的主题 问与答 Nginx 添加 Content-Security-Policy
虽然删你这个 header 几率不大,但是没有 https 始终治标不治本

可能对方插入的 js 就是用你允许的域名,比如 src=http://you.allowed.com/xxx.js

然后再劫持 http://you.allowed.com/xxx.js
或者干脆不用外部资源,直接把所有东西塞入页面代码里面
2016-08-13 22:30:52 +08:00
回复了 qcloud 创建的主题 问与答 Nginx 添加 Content-Security-Policy
开 https 啊
2016-08-13 21:59:20 +08:00
回复了 qcloud 创建的主题 问与答 Nginx 添加 Content-Security-Policy
既然能修改你页面数据,那么删掉你的 Content-Security-Policy 头也不是难事
2016-08-13 20:25:58 +08:00
回复了 ivmm 创建的主题 问与答 MacBook Air 字体发虚,你们是怎么解决的?
难道不是 非 R 屏都是这德行的吗?
2016-08-13 18:34:13 +08:00
回复了 uyhyygyug1234 创建的主题 支付宝 有感于最近一次支付宝 9.9 改版
支付宝想提高日活很简单啊

人家抓精灵 go ,你支付宝打开能捡钱 go 就行了。
2016-08-13 12:32:30 +08:00
回复了 miyuki 创建的主题 Linux Linux 设备 TCP 连接曝高危漏洞:只要接入网络就可能被攻击
这种技术可以把 qiang 空投到任何国家内部?
2016-08-13 10:55:36 +08:00
回复了 MyFaith 创建的主题 问与答 只有我自己 BUG 了吗?
一样,好几天了
@czheo 这不错
2016-08-12 16:54:34 +08:00
回复了 cstj0505 创建的主题 数据库 mysql, pgsql 默认配置情况下吹一波 postgresql 了
楼主在测默认配置的 全表扫描,怎么楼上都开始讲索引了?
2016-08-12 00:56:12 +08:00
回复了 mengjue 创建的主题 问与答 内网要如何架设 postfix 邮局?
@guoxu1231 我这里可以

Aug 12 00:01:00 dev postfix/pickup[50246]: 773471B822: uid=1001 from=<pubby>
Aug 12 00:01:00 dev postfix/cleanup[53100]: 773471B822: message-id=<[email protected]>
Aug 12 00:01:00 dev postfix/qmgr[64627]: 773471B822: from=<[email protected]>, size=354, nrcpt=1 (queue active)
Aug 12 00:01:01 dev postfix/smtp[53104]: Verified TLS connection established to smtpdm.aliyun.com[110.75.48.181]:465: TLSv1 with cipher AES256-SHA (256/256 bits)
Aug 12 00:01:01 dev postfix/smtp[53104]: 773471B822: to=<[email protected]>, relay=smtpdm.aliyun.com[110.75.48.181]:465, delay=1.2, delays=0.33/0.26/0.53/0.08, dsn=2.0.0, status=sent (250 Data Ok: queued as freedom ###envid=82880264085)
Aug 12 00:01:01 dev postfix/qmgr[64627]: 773471B822: removed


你要么再加上 sender 重写规则,把所有邮件发信人改写成你的阿里云邮件推送的发信地址

main.cf 里加上:
sender_canonical_maps = pcre:/usr/local/etc/postfix/sender_canonical_map

sender_canonical_map 内容:
/.*/ [email protected]

# 所有发件人都改写成 [email protected]
# 同样需要 postmap sender_canonical_map 预处理一下这个文件


我这边确是也有这样的设置
2016-08-11 23:12:17 +08:00
回复了 sweetcode 创建的主题 macOS macOS 还要刷几个版本才会默认 APFS 呢...
直接支持 zfs 么好了
2016-08-11 20:50:13 +08:00
回复了 XhstormR 创建的主题 问与答 请问我这是被运营商劫持了吗?
@XhstormR 1 楼很经典的 squid 错误页面
2016-08-11 20:09:20 +08:00
回复了 lzt163 创建的主题 问与答 第一次接私活 帮忙看看能报多少价格行不
@lzt163 界面可以简陋,功能需求还是挺多的
退款,改订单状态,添加发货信息
查询,统计,报表之类

之前做了一套,功能比你的多点,还有会员分销系统。整个做下来要处理的东西还是很多的。
2016-08-11 20:01:04 +08:00
回复了 lzt163 创建的主题 问与答 第一次接私活 帮忙看看能报多少价格行不
不可能没有商品后台,订单后台吧

低于 5w 就不要考虑了
2016-08-11 17:01:16 +08:00
回复了 18875042796 创建的主题 程序员 微信开发新手 大神我来膜拜了
建议用 $postArr = file_get_contents('php://input');
如果你想和后续 php 版本兼容的话
2016-08-11 16:40:42 +08:00
回复了 mengjue 创建的主题 问与答 内网要如何架设 postfix 邮局?
@guoxu1231 确保阿里云>邮件推送>发信地址 SMTP 密码设置之类的都 OK

main.cf:

relayhost = [smtpdm.aliyun.com]:465
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/sasl_passwd
smtp_sasl_mechanism_filter = plain, login
smtp_tls_loglevel = 1
smtp_use_tls = yes
smtp_enforce_tls = yes
# CA 文件如果没有的话,从另外的包安装一下
smtp_tls_CAfile = /usr/local/share/certs/ca-root-nss.crt
smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymous
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt


sasl_passwd 文件:
[smtpdm.aliyun.com]:465 [email protected]:阿里云 SMTP 设的密码
# 这个文件需要 postmap sasl_passwd 处理一下才能使用


# 测试
echo "test" |mail -s "test title" [email protected]

如果有问题的话,看 postfix 的日志,一般都能找到问题
1 ... 34  35  36  37  38  39  40  41  42  43 ... 87  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1233 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.