传说中的安全感,生在新社会,长在红旗下,居然说不买房没有安全感
跟位置,排序相关的用 Array 非重复,有对应关系的用 Hash,另外不懂 New 是因为没有找过老婆,买过房,你找了老婆,买了房就明白为什么要写 New 了
没说多少钱
rackup -v
Rack 1.2 (Release: 1.5)
Database command 'dbStats' failed: (errmsg: 'no such cmd'; bad cmd: '{"dbStats"=>true}'; ok: '0.0').
get_response 怎么传 headers
这个远程比较合适
这是 ios 吗?
死机吗?
有没有好的练口语的论坛?
拿到手 2 月之后吧
varnish +nginx +rails ?
EventMachine
require "eventmachine"
class Echo < EventMachine::Connection
def receive_data(data)
send_data("Hello World")
close_connection_after_writing
end
end
EventMachine.run do
EventMachine.start_server('0.0.0.0', 10000, Echo)
end
nodejs
var http = require('http');
http.createServer(function (req, res) {
res.end('Hello World');
}).listen(10000, '127.0.0.1');
ab -n 6000 -n 66 http://localhost:10000/
EventMachine:261.55 rps nodejs : 254.77 rps
显示器并不是越大越好,人的视角是固定的,太大尺寸显示器写代码反而更加累
vagrant 安装好了,但是带的 ruby 是1.8 另外 eth0 是 inet addr:10.0.2.15 能上外网,但是本地也 vagrant 互相 pinig 不通,怎么让本地的浏览器可以访问 vagrant 里面的 web 服务?
gem install reloader --no-ri --no-rdoc Fetching: trollop-2.0.gem (100%) Successfully installed trollop-2.0 Fetching: sys-uname-0.9.2-universal-mingw32.gem (100%) Successfully installed sys-uname-0.9.2-universal-mingw32 Fetching: growl-1.0.3.gem (100%) Successfully installed growl-1.0.3 Fetching: ffi-1.9.0-x86-mingw32.gem (100%) Successfully installed ffi-1.9.0-x86-mingw32 Fetching: rb-inotify-0.9.1.gem (100%) Successfully installed rb-inotify-0.9.1 Fetching: libnotify-0.8.1.gem (100%) Successfully installed libnotify-0.8.1 Fetching: rspactor-0.7.0.beta.5.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed rspactor-0.7.0.beta.5 Fetching: eventmachine-1.0.3-x86-mingw32.gem (100%) Successfully installed eventmachine-1.0.3-x86-mingw32 Fetching: http_parser.rb-0.6.0.beta.2.gem (100%) Building native extensions. This could take a while... Successfully installed http_parser.rb-0.6.0.beta.2 Fetching: em-socksify-0.3.0.gem (100%) Successfully installed em-socksify-0.3.0 Fetching: cookiejar-0.3.0.gem (100%) Successfully installed cookiejar-0.3.0 Fetching: em-http-request-1.1.0.gem (100%) Successfully installed em-http-request-1.1.0 Fetching: daemons-1.1.9.gem (100%) Successfully installed daemons-1.1.9 Fetching: thin-1.2.7-x86-mingw32.gem (100%) Successfully installed thin-1.2.7-x86-mingw32 Fetching: faye-0.5.0.gem (100%) Successfully installed faye-0.5.0 Fetching: iobuffer-1.1.2.gem (100%) Building native extensions. This could take a while... Successfully installed iobuffer-1.1.2 Fetching: rev-0.3.2.gem (100%) Building native extensions. This could take a while... Successfully installed rev-0.3.2 Fetching: reloader-0.1.0.gem (100%) Successfully installed reloader-0.1.0 18 gems installed
装了这么多不知道装了些啥,后面仔细看下文档,原来应该是 sinatra-contrib
sinatra 有没有验证表单的组件?
生物的不是用 perl 的吗
这是 app 中代码中的日志 我说的服务器的 acess log
textpatten - - [18/Aug/2013:10:24:16 中国标准时间] "GET / HTTP/1.1" 200 11
控制台打印的这样的信息
soho 吧
:linkhandle 这种用法叫什么?
怎么写
异步代码不好维护
ruby 可以搞 erp oa 企业内部系统,做网站只能是非主流,拼不过主旋律
#4 楼 @dollar jd 发我邮箱 [email protected]