本来觉得orca.io这个免费的cdn还是不错的,用了一个月也确实觉得还行。结果。。。怎么这么快就被墙了呢?我晕啊。。
Submitted by SubZero on 2012, December 10, 7:38 PM
本来觉得orca.io这个免费的cdn还是不错的,用了一个月也确实觉得还行。结果。。。怎么这么快就被墙了呢?我晕啊。。
Submitted by SubZero on 2012, December 10, 6:22 PM
其实这篇文章的中文翻译真的好理解,所以我就不翻了啦。懒得翻译的人,可以直接看google translate页面:http://translate.google.com.hk/translate?act=url&hl=en&ie=UTF8&prev=_t&sl=auto&tl=zh-CN&u=http://pydanny.com/developer-time.html
This blog post got started with a tweet.
That tweet got retweeted a lot by developers. And system administrators. And database administrators. And any creative type.
As of December 7th, 2012, it had been retweeted over 500 times, a personal best. Obviously I struck a chord that resonated with a lot of people.
Developers should have 4-6 hours of uninterrupted activity each day. Each 3-5 minute interruption costs more than you can imagine.
— Daniel Greenfeld (@pydanny) December 3, 2012
What I said in that tweet was not new - dozens if not hundreds of others have tweeted similar thoughts before and gotten many retweets. Heck, it's been written about in blogs and articles for years, either as a huge rant or often as an effort to politely educate others on how to set up a developer/operations/creative shop.
I think this is because developers/engineers/creatives (and good managers) know that even a tiny distraction to someone "in the zone" takes more than just the 3-5 minutes it takes for you to finish a question and get an answer. Plus, because you are trying to remember the pieces in your head, you won't be able to give this issue your full attention. Which causes a whole other set of issues.
We know this. Good managers know this. Good companies live off of it.
And yet this remains a huge problem for many of us because the distractions keep happening. Maybe it's because your manager doesn't understand this issue, or you have a team mate who can switch in-and-out of the zone with impunity. Or because you foolishly leave the chat/IRC/phone on and you get pinged.
We can't.
I know this sounds depressing, but I'm being realistic. Here's some reasons that apply:
Doesn't matter how frequently you ask the the question (or rant about it), I don't believe this problem can be really solved. However, here are some possible mitigations:
1. Maker's Day
My friend, Craig Kerstiens describes how Heroku gives engineers a full day each week (Thursday) to focus on getting stuff done. No meetings, no standup, just 100% uninterrupted quiet time to focus on making stuff.
Suggest this at your company and see how it goes!
2. Blocks of Time
As of 2010, Eldarion broke up their work day into at least two sizable chunks of uninterrupted activity. Between the chunks you communicated with co-workers. The advantage of this approach is if you went down the wrong path or someone had a critical question, the period between chunks addressed this issue.
In theory this is how a lot of places work (lunch being the break). The reality is that the distractions often still pile in. For Eldarion it worked because everyone was remote.
3. New Desk Location
If working at an office, asked to be moved to a place with less foot traffic. The downside to this is you can end up in noisy, cold, dark places.
4. New Job
Switch to a new job that promises less distractions.
I'm more than happy to be proven wrong.
Maybe there is a way to get 4-6 hours a day of uninterrupted maker's time every work day.
If you've got any ideas, let me know!
-------
没有什么正确的东西,无非就是你自己怎么选择。和你自己是怎么看待被打断的。
Submitted by SubZero on 2012, December 10, 9:21 AM
想不到,我的http://xiaocaipu.com还没有上线,我的微信功能却已经正常在运作了。
Submitted by SubZero on 2012, December 8, 2:32 PM
pcntl在很久很久之前就听过了,但是一直没有尝试着真正要用它。这不,遇到socket问题了,看socket,遇到pcntl了,再看看吧。
Submitted by SubZero on 2012, December 6, 11:16 PM
其实本来不想定这个标题的。只是做了几个小小的测试
我用php实现了socket server,然后在命令行下做了点测试。在命令行下访问soap,并将返回值 给了客户端。
测试了一下。网速比较卡的情况下,基本在0.8秒左右
然后我直接访问soap,打印出来的时候都差不多比命令行返回结果多了0.2秒。
这只是测试了soap请求一次。后来,我请求了两次。发现速度又快了0.1秒。
总计快了0.3秒。在命令行下用socket server返回数据好象快了一点。
-----------
文章只是我的一次记录,没有什么特别的意义。虽然不太科学,但对我来说,有三四台服务器的情况下,利用这个来交换数据还是有点用的。目前我的socket server只能用PHP实现,因为 部分代码都是靠PHP来获取数据的。本来想用go或者python来实现的,但目前没有时间。先用PHP了