V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  snail1988  ›  全部回复第 15 页 / 共 18 页
回复总数  347
1 ... 7  8  9  10  11  12  13  14  15  16 ... 18  
2014-12-15 14:12:49 +08:00
回复了 snail1988 创建的主题 问与答 Nginx 被别人用来做代理怎么破
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.so.com/?rands=_2510213733289952325356524 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://23.225.206.4/vs.php?rands=_1400492510623092681449488 HTTP/1.1" 404 579 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.baidu.com/?rands=_14004103394224869041620016 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://www.soso.com/?rands=_2922020291983713940733336 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
23.225.206.4 - - [15/Dec/2014:06:12:21 +0000] "GET http://218.59.238.92:8080/?rands=_2922022255724425120863444 HTTP/1.1" 200 114 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2;Windows NT 5.1;Windows NT 5.3; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
2014-12-15 14:02:40 +08:00
回复了 snail1988 创建的主题 问与答 Nginx 被别人用来做代理怎么破
@lzk800 恩,后面连接的php-fpm
web完全不熟,应该可以限制只代理我的域名吧?
2014-12-15 14:01:13 +08:00
回复了 snail1988 创建的主题 问与答 Nginx 被别人用来做代理怎么破
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

root /usr/share/nginx/html/yiitimeserver/frontend/web;
index index.php;

# Make site accessible from http://localhost/
server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$args;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}


location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
2014-12-06 18:17:42 +08:00
回复了 explon 创建的主题 分享发现 TinyPNG 的压缩 PNG 算法好厉害
@aaaa007cn 貌似真的是pngquant
2014-12-06 18:05:47 +08:00
回复了 explon 创建的主题 分享发现 TinyPNG 的压缩 PNG 算法好厉害
我以前用imageOptim压缩,感觉不错
和这个一比弱爆了
2014-12-03 17:22:14 +08:00
回复了 applelove 创建的主题 问与答 iPhone 6,选择哪家运营商呢?楼主在重庆
@applelove 说下我这的情况,中关村,联通4G完虐移动4G ,移动4G经常不能正常回落,导致iPhone无法接电话,(5s,6都有很严重的问题,室外进入室内,显示有信号但是不能接打电话)室外的话,移动4G也经常上不了网,可能和移动主干网不给力有关

对于覆盖的问题,铁塔公司马上接手了,以后覆盖大家都一样了

移动的优点,服务优秀,2G网覆盖给力

至于楼上说的信号,移动2G确实好,3G/4G只能呵呵了
2014-11-10 22:37:28 +08:00
回复了 xzz005 创建的主题 macOS 有和我一样看到通知中心的这两行很难受的吗?
10.10.1 beta 已经解决,等待更新就行了
2014-11-09 19:00:03 +08:00
回复了 snail1988 创建的主题 问与答 Python 3 的 open()函数比 Python 2 中的慢很多,有没有办法优化
看来Py3的IO确实是因为编码和处理变慢了,下面这篇文章不错
http://dabeaz.blogspot.com/2010/01/reexamining-python-3-text-io.html
2014-11-09 14:21:55 +08:00
回复了 snail1988 创建的主题 问与答 Python 3 的 open()函数比 Python 2 中的慢很多,有没有办法优化
@lxyu 我要对文件内容做处理在进行比对,然后做处理,之前用shell grep sed 这些做了个脚本,太慢了改成python快很多
2014-11-09 12:35:27 +08:00
回复了 snail1988 创建的主题 问与答 Python 3 的 open()函数比 Python 2 中的慢很多,有没有办法优化
@imn1
@ruoyu0088
谢谢两位,我以前没接触过python开发,这次是有些log要分析,所以使用 python处理下数据,开始是在Mac自带的py2环境处理,后来想试试py3会不会更快,结果比较意外

我这2000个文件一个异常也没有,我逐行搜索是因为我的log以行为单位,所以就用了read line,我试试全文搜索的效率
2014-11-09 11:59:03 +08:00
回复了 snail1988 创建的主题 问与答 Python 3 的 open()函数比 Python 2 中的慢很多,有没有办法优化
@ruoyu0088 每个文件大约2-3M,纯文本UTF8编码
2014-11-09 11:57:43 +08:00
回复了 snail1988 创建的主题 问与答 Python 3 的 open()函数比 Python 2 中的慢很多,有没有办法优化
OSX 10.10/10.9.5 / Ubuntn 14.04 LTS
Python 3.4.2/3.4 2.7.6/2.7.8

代码片段
def searchCrash(file):
try:
with open(file, 'r') as f:
global count
for line in f:
if 'StackTrace' in line:
count = count + 1
except Exception as e:
# raise e
pass
finally:
pass


def traverseFile(rootDir):
for lists in os.listdir(rootDir):
path = os.path.join(rootDir, lists)
if os.path.isfile(path):
searchCrash(path)


我在一个2000个文件 总计4GB的目录上调用 traverseFile方法
2014-11-06 16:40:52 +08:00
回复了 Kai 创建的主题 Dell 戴尔 5K 显示器 - UP2715K
这个是原生10bit面板 99% ARGB的色域 60Hz 专业级 比iMac那个好多了
2014-10-21 11:34:03 +08:00
回复了 older 创建的主题 问与答 21:9 那种超宽的显示器好用吗
分辨率应该是 2560X1080
2014-10-21 11:33:19 +08:00
回复了 older 创建的主题 问与答 21:9 那种超宽的显示器好用吗
2014-10-20 17:28:00 +08:00
回复了 Henrybsbhp 创建的主题 MacBook Pro 请问什么办法能让 MacBook Pro 进水后保修呢?
如果想享受 Apple 原厂的保修 估计不会比这个价钱低的
@zjuster 你做的软件如果要是收费的 这30%可以不要了
如果是特别大众的软件 免费的 或者内购的还是需要的

主要还是看你针对的人群
7 占70%
5 10%
6 %20

所以只支持7的话 有可能损失30%客户
2014-08-29 10:14:19 +08:00
回复了 Axurez 创建的主题 问与答 有文本编辑器能分栏吗?
@happywowwow 不是,可以设置group
1 ... 7  8  9  10  11  12  13  14  15  16 ... 18  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2474 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 03:40 · PVG 11:40 · LAX 20:40 · JFK 23:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.