经常降价的: http://appshopper.com/mac/developer-tools/livereload
不过这个价格可以收了
我大脑中的 PHP 很强悍,有 rails 进来时,直接攻击,现在有什么事,还是 php 第一时间告诉我该怎么做,ruby 多优雅与我无关,php 的笨方法告诉我,php 一定可以的。
本来想用 rails 在业余时间把一个 PHP 写的网站所有的代码重新用 Rails 写一遍,但现在内部决定为了节省开发时间直接上 discuz,好了,我又回去折腾顺手的 php 了。
现在国内用户对 discuz 的接受度相当高,是有点审美疲劳,但至少用户习惯了,很多功能不用开发了。UCenter 一站式搞定用户系统,比 OAuth 还是好用,现在钓鱼这么多,大家不太愿意在一个网站上用 qq, sina, facebook 登录。
#29 楼 @blacktulip 我看帖子标题就想到了你,可惜不在 UK,你还有前世小情人要照顾,不方便出远门吧。。
#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