本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- xiangjie88
- zysnba
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- arpenker
- tanling8334
- gaojingsong
- kaizi1992
- xpenxpen
- 龙儿筝
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- lemonhandsome
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
- kingwell.leng
最新文章列表
undefined local variable or method `version_requirements'
undefined local variable or method `version_requirements' for #<Rails::GemDependency:0x1022cc1c8> (NameError)
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
$ gem ins ...
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
[~/projects/agideo/chaoda_eip] (master) 216h30m $ ruby script/server
/home/hp/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:55: uninitialized constant Acti ...
EventMachine实现简单的服务器和客户端
EventMachine是一个为ruby提供的事件驱动模型网络编程库, 就像Twisted和Python一样. 可以很容易的实现一个服务器和客户端通信的例子.
1. 首先安装eventmachine
gem install eventmachine
2. 创建一个服务器
#!/usr/bin/env ruby
require ‘rubygems’
require ‘ ...
memcached安装使用
安装
wget http://cloud.github.com/downloads/saberma/saberma.github.com/memcached-1.4.4.tar.gz
tar vxf memcached*.tar.gz
cd memcached*
#这一步有问题看下一节内容
sudo ./configure
s ...
rails_yaml错误导致到mysql连接问题
错误: in `load': syntax error on line 37, col 2: ` socket: /var/run/mysqld/mysqld.sock' (ArgumentError)
Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/usr/local/l ...
ubuntu 11.04 安装ruby on rails + mysql and netbean
ubuntu 11.04 安装 ruby on rails + mysql and netbean
One:
sudo apt-get install ruby
ruby -v
显示版本号(成功安装ruby)
Two:
sudo apt-get install rubygems
gem -v
three:
sudo gem install rails
rai ...
windows下Ruby 安装eventmachine报错解决方法
系统环境:Windows XP
Ruby 版本:1.9.1-p0
在windows上安装 eventmachine 总是报错:
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to buil ...
gtranslate-two
# https://github.com/marcinwyszynski/gtranslate-two
require 'rubygems'
require 'gtranslate-two'
GTranslator.key = 'AIzaSyBZqoFfZUVLlMs7--YWOEJR_ylC8gCNtDM'
GTranslator.detect_language('測試')
oracle on rails
Oracle on Rails
#如果生产环境使用Oracle,则需要以下操作
cd ~
#instance client必须
wget http://cloud.github.com/downloads/saberma/saberma.github.com/oracle-instantclient-basic_10.2.0.3-2_i386.deb
sudo dpkg -i oracle-inst ...