#33 楼 @whitecrow 好样的!
我最剧烈的运动是刷牙
#18 楼 @chinakr http://www.discuz.net/thread-991139-1-1.html http://www.discuz.net/thread-2279854-1-1.html 我刚才看了一下 .net 和 asp 的代码,好像比我想像的简单,其实就是把参数加密,以 post 的方式通知 ucenter。
重要的加密函数也有人做好了: https://github.com/eoecn/ucenter_authcode
同步也不是很难。比如 discuz 登录后,通知 ucenter,ucenter 再把参数以 get 的方式通知 rails 应用,这个链接可以自己定义,比如 http://www.domain.com/api/uc.rbget到的是action加参数,比如action=login&username=chinakr,这个链接,rails 就要实现这个 action,比如说设置 cookie,让用户登录。
rails 一般路由把 action=login&username=chinakr 换成目录方式了 http://www.domain.com/api/uc/login/chinakr, 而不是http://www.domain.com/api/uc.rb?action=login&username=chinakr 我水平不行,不知道这块怎么实现。
我现在没这个需求,以后可能有。真希望你们能做出来,放 github 上,造福大家,谢谢!
目前想到的解决方案是美国做写服务器,中国,德国只读,读写分离,
美国作主服务器,中国,德国做从服务器,
这样中国德国读的速度会非常快,写的时候, 中国德国分别连美国,速度也有保证了。
好吧,7 楼成功删除了,有一分钟延时,现在 9 楼我删除了,多次刷新依然存在
设计师要是不懂一点前端的东西,那还是不好的,比如设计一些漂亮的导航按钮,五角星啦,菱形啦,前端就会痛苦死。原来网速不快的时候,设计师再来一张漂亮的背景图,上面再层叠很多元素,那前端可以去跳河了。。
RULES FOR THE VIEW
Our markup should have meaning. We write templates using semantic HTML.
Our style sheets should handle presentation. We don’t use markup to style or use images when CSS will do.
Our templates should be free of client-side code. We unobtrusively attach behavior from our JavaScript files.
Our templates should be easy to read. We consistently indent correctly using spaces instead of tabs, type lines no longer than eighty characters, and extract complex logic to helpers and presenters.
Our templates should be easy to find. We use standard naming conventions and place them in the directory for the related resource (or the layout).
Our markup should be easy for the entire team to modify. We prefer rendering partials over generating markup from Ruby code.
Our technology choices should help, not hinder, the team. We use the templating language and tools that work best for all of us.
Our designs for the Web should work on a variety of devices and browsers. We build for the simplest interactions first and support progressive enhancement.
Our designs for email must work for a wide range of providers. We use HTML tables and images as necessary and always provide a plain-text alternative.
Our application should perform as well as it needs to, when it needs to. We implement the most elegant approach first, then we optimize when necessary.
楼下翻译? :
#9 楼 @hpviewer 他们当时在郊区,高速不系估计生还的可能性很小。一般不管速度多少,上车第一件事,所有的人都系上安全带。
德国高速大多数地方都不限速,一不小心就能开到 160,如果在左车道超个车,不一会儿速度 200+ 的好车就会带着杀气从后视镜里面逼近,你刚让道,他就平平稳稳的快速在你眼前消失了。在高速上你如果让别人踩刹车,就是一种不礼貌的行为。
驾校从第一节课开始就是在路上,教练有离合和刹车,新手第一节课只掌方向盘。高速课一定是有的,我当时开的 180,大概是第 5 节课左右吧,不太记得了,现在想起来还后怕。
司机素质高不代表没车祸,只是少一点,昨天高速还看到一对追尾的,直接冲出去了。
几年前做的一个 PHP RBAC, 用controller#action做权限控制,希望能在思路上帮到你: https://code.google.com/p/fleastart/
有视频,不用管 PHP,看思路就可以 https://code.google.com/p/fleastart/downloads/list
linux 1 核 1G, 20G 系统盘,10Mbps 带宽,一年是 (0.19+0.88) * 24 * 365 = 9373.2 是不是半夜把带宽降到 5M 会省点钱?
请高人用 sed,一句正则就可以把不是那张表的内容删除
SSH 要改端口号吧?
fail2ban 也要设置免 Ban IP 吧?ssh 改了端口后,fail2ban 要改监视端口吧
建议加上 portsentry 防止端口扫瞄
其实只是服务器做安全了也没用,装的开源程序有漏洞,立马变肉鸡
我用了很久了,还算是很好用的
mac 免费版基本够用,每天 20 还是 30 张,多了就上传到网站处理。
如果要和网站结合,在用户上传的时候就用减肥,估计这个费用不便宜,可能挂个大硬盘更划算
@blacktulip 你在看哪本书?javascript 我的状态一直是要用的时候 google 一下,it works 就满意了,从来没有系统学过。