V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  vivisidea  ›  全部回复第 27 页 / 共 31 页
回复总数  611
1 ... 19  20  21  22  23  24  25  26  27  28 ... 31  
2015-07-30 13:34:14 +08:00
回复了 awang 创建的主题 问与答 想买一个扫地机器人,大伙给点意见
前段时间买了 iRobot 880 美亚买的, 599$

* 效果比较满意,吸力强劲,
* 家里地上东西不能太多(会影响寻路导致有些地方扫不到),特别不能有绳子之类的,会卷进去卡住
* 每隔几天要清理一次 HEPA 滤芯,可能我家灰尘大。。已经换过一个滤芯了
* 可以设置定时自动扫,很方便,扫完自己归位充电
* 有灰尘感应,感应到比较脏的区域会来回加强清扫
* 配有两个灯塔/虚拟墙,小户型不怎么用的上
* 噪声挺大的,人在的话听着会觉得烦躁,设定上班出门之后开扫。。

其他品牌没用过,推荐 iRobot
擦地的机器人要另外买,没用过
2015-07-30 13:20:14 +08:00
回复了 meteor2013 创建的主题 问与答 大家说说跑 5000 米大概多少时间
跑步机上跑过,大概25分钟的样子。。时速开始设置7-8慢跑,热身之后设置12+
2015-07-20 19:03:22 +08:00
回复了 yanwen 创建的主题 分享发现 淘宝网现在全站都 https 了???
部分资源没有https导致IE访问会有安全警告,体验不好。。应该要全站https之后再放出来比较合适把

一个亲戚想通过淘宝进余额宝操作,看到安全警告吓尿了好嘛。。
2015-07-17 09:31:38 +08:00
回复了 OneAPM 创建的主题 程序员 除非万不得已,别 Catch!
@hitsmaxft 赞同这个说法,Controller 还往页面上 throw exception 是作死
2015-07-14 18:50:28 +08:00
回复了 gkiwi 创建的主题 程序员 <宅男最后的 120 小时>大家结果如何?
妹子挺萌的
2015-07-14 13:06:03 +08:00
回复了 yangguang31466 创建的主题 分享发现 这款插件到底有多少人用?
2015-07-14 12:59:46 +08:00
回复了 RichardZhiming 创建的主题 程序员 作为应届生,你曾经的租房经历是怎样的?
@frozenshadow

这个也算是行业潜规则了。。先把人忽悠到店里再说,给你推荐别的房子
2015-07-13 18:35:48 +08:00
回复了 smilingsun 创建的主题 程序员 在公司里真的敢用机械键盘?求推荐
工友你好

我用 cherry 青轴啊,把同事吵醒是因为中午本来就不应该码代码啊,刷刷手机,鼠标点点网页刷刷v2就好了阿

午休时间本来就不长
2015-07-07 09:52:11 +08:00
回复了 phx13ye 创建的主题 Java MyBatis,求正确使用姿势?
有很多非常类似的SQL,应该怎么抽象处理,每一句都要自己写吗?
比如selectByXXX, deleteByXXX

--
我们项目是用 freemarker 自己写模板文件生成的代码
顺便还能把基本的dao和service文件(基本的CRUD,其他业务逻辑当然要手写了)也一并生成了
2015-07-03 12:58:15 +08:00
回复了 li24361 创建的主题 投资 V 站没有炒股的童鞋么,说说你们怎么样了吧
交了学费,1w进去练手,剩6.5k
2015-06-28 00:23:48 +08:00
回复了 dullwit 创建的主题 问与答 造什么轮子能快速掌握“第二编程语言”的语法糖和 API?
爬虫?
3天就能撸出来。。给力的
2015-06-23 11:57:04 +08:00
回复了 univert 创建的主题 宽带症候群 基本可以肯定丢包问题是 电信有意为之了
@buddha

貌似是不能直接以 mtr 显示 xx% lost 作为直接的丢包判定

root@localhost:~# mtr --report www.google.com
HOST: example Loss% Snt Last Avg Best Wrst StDev
1. 63.247.74.43 0.0% 10 0.3 0.6 0.3 1.2 0.3
2. 63.247.64.157 50.0% 10 0.4 1.0 0.4 6.1 1.8
3. 209.51.130.213 0.0% 10 0.8 2.7 0.8 19.0 5.7
4. aix.pr1.atl.google.com 0.0% 10 6.7 6.8 6.7 6.9 0.1
5. 72.14.233.56 0.0% 10 7.2 8.3 7.1 16.4 2.9
6. 209.85.254.247 0.0% 10 39.1 39.4 39.1 39.7 0.2
7. 64.233.174.46 0.0% 10 39.6 40.4 39.4 46.9 2.3
8. gw-in-f147.1e100.net 0.0% 10 39.6 40.5 39.5 46.7 2.2

比如这个 report,其实是第2个节点限制了 icmp 协议包,并没有丢包

这篇文章说的很详细
https://www.linode.com/docs/networking/diagnostics/diagnosing-network-issues-with-mtr

However, it is common practice among some service providers to rate limit the ICMP traffic that MTR uses. This can give the illusion of packet loss when there is in fact no loss. To determine if the loss you’re seeing is real or due to rate limiting, take a look at the subsequent hop. If that hop shows a loss of 0.0%, then you can be pretty sure that you’re seeing ICMP rate limiting and not actual loss.

真正丢包的模式是类似这样的
root@localhost:~# mtr --report www.google.com
HOST: localhost Loss% Snt Last Avg Best Wrst StDev
1. 63.247.74.43 0.0% 10 0.3 0.6 0.3 1.2 0.3
2. 63.247.64.157 0.0% 10 0.4 1.0 0.4 6.1 1.8
3. 209.51.130.213 60.0% 10 0.8 2.7 0.8 19.0 5.7
4. aix.pr1.atl.google.com 60.0% 10 6.7 6.8 6.7 6.9 0.1
5. 72.14.233.56 50.0% 10 7.2 8.3 7.1 16.4 2.9
6. 209.85.254.247 40.0% 10 39.1 39.4 39.1 39.7 0.2
7. 64.233.174.46 40.0% 10 39.6 40.4 39.4 46.9 2.3
8. gw-in-f147.1e100.net 40.0% 10 39.6 40.5 39.5 46.7 2.2

In this case, you see 60% loss between hops 2 and 3 as well as between hops 3 and 4. You can assume that the third and fourth hop is likely losing some amount of traffic because no subsequent host reports zero loss. However, some of the loss is due to rate limiting as several of the final hops are only experiencing 40% loss. When different amounts of loss are reported, always trust the reports from later hops.
2015-06-18 13:12:28 +08:00
回复了 mozartgho 创建的主题 程序员 LastPass 服务器遭到了黑客入侵
那些密码要就拿去好了。。
2015-04-28 22:51:17 +08:00
回复了 dbfox 创建的主题 职场话题 工作上比较蛋疼的一些地方 —— 组员之间的工作对接
@dbfox

就这个需求来说,个人觉得确实是web这边做比较合适的,理由就一个,灵活

如果下回产品说改个排序规则什么的,在客户端做的话就要重新发布客户端
在web这边实现只要改下输出逻辑就行了
2015-04-26 21:03:29 +08:00
回复了 bitinn 创建的主题 Node.js XSS 过滤在什么时候做?
在显示的时候做,谁显示谁负责~

XSS 过滤逻辑可能没 cover 到所有 case(或者后来可能会出现一些新的case)
这时候如果在存储之前做过滤,后来发现有些 case 没过滤掉咋办?回去数据库找没 cover 到的数据改掉?

如果在显示的时候做,只要改下显示逻辑即可,相对改数据库来说,简单很多吧
2015-03-31 13:40:59 +08:00
回复了 Lamian 创建的主题 数据库 讨论一下 cache 的用法
个人更倾向于 DB commit 后 更新/清空 cache 对应的 key 的做法

设置一个很短的过期时间,多短的时间算是“很短”呢?
长了数据不一致问题会比较明显,短了 cache hit rate 降低,cache 就没啥意义了
2015-03-12 13:31:35 +08:00
回复了 Septembers 创建的主题 Python 如何重置 Ubuntu 14.04 的 Python 环境?
@vivisidea
尝试了下似乎不是很靠谱,会 remove 掉一堆相关的东西,试试 --reinstall 看是不是想要的效果。。

xxx:$ sudo apt-get --reinstall install python

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-ubuntuoneui-3.0 gir1.2-unique-3.0 gambas3-gb-form-stock libubuntuoneui-3.0-1 libkms1 pastebinit
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 154 not upgraded.
Need to get 168 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrors.sohu.com/ubuntu/ precise-updates/main python amd64 2.7.3-0ubuntu2.2 [168 kB]
Fetched 168 kB in 0s (335 kB/s)
(Reading database ... 255759 files and directories currently installed.)
Preparing to replace python 2.7.3-0ubuntu2.2 (using .../python_2.7.3-0ubuntu2.2_amd64.deb) ...
Unpacking replacement python ...
Processing triggers for doc-base ...
Processing 1 changed doc-base file...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up python (2.7.3-0ubuntu2.2) ..
1 ... 19  20  21  22  23  24  25  26  27  28 ... 31  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1021 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 40ms · UTC 18:46 · PVG 02:46 · LAX 11:46 · JFK 14:46
Developed with CodeLauncher
♥ Do have faith in what you're doing.