摘要:
磊 阅读全文
posted @ 2010-12-23 10:55
lexus
阅读(294)
评论(0)
推荐(0)
|
摘要:
使用keepalived构建高可用mysql-HA 作者:陆文举 2010-11-28关于mysql-HA,目前有多种解决方案,比如heartbeat、drbd、mmm、共享存储,但是它们各有优缺点。heartbeat、drbd配置较为复杂,需要自己写脚本才能实现mysql自动切换,对于不会脚本语言的人来说,这无疑是一种脑裂问题;对于mmm,生产环境中很少有人用,且mmm管理端需要单独运行一台服... 阅读全文
posted @ 2010-12-23 10:38
lexus
阅读(336)
评论(0)
推荐(0)
摘要:
最近有一个状况,搜索信息经常到繁体网页上去, 所以就有了这个设想,有点标题党的嫌疑, 不过也慢慢的认识了一些台湾的朋友在网络上 阅读全文
posted @ 2010-12-23 01:48
lexus
阅读(177)
评论(0)
推荐(0)
摘要:
http://www.snowgiraffe.com/tech/599/health-monitor/ great article http://www.alfajango.com/blog/how-to-monitor-your-railspassenger-app-with-munin/ rails部署的完整文档,很值得一看 http://codeshooter.wordpress.com/... 阅读全文
posted @ 2010-12-23 01:08
lexus
阅读(371)
评论(1)
推荐(1)
摘要:
http://evolution.voxeo.com/wiki/kb:swloadbalancingfailover 此文是关于nginx lvs 的高可用的详尽文章,需要仔细阅读 nginx命令行参数配置 http://wiki.nginx.org/NginxCommandLine#Example nginx+keepalived 双机备份 http://sunqi.javaeye.com/b... 阅读全文
posted @ 2010-12-22 22:54
lexus
阅读(607)
评论(0)
推荐(0)
摘要:
nginx+passenger下504 Gateway-Timeout问题的解决办法关键字: passenger nginx apache gateway timeout ubuntu9.04下,nginx+passenger+rails2.2.2环境中,当在production环境下运行时,总是提示 504 Gateway-Timeout的错误,但在development下正常运行,查了N久,... 阅读全文
posted @ 2010-12-22 21:35
lexus
阅读(526)
评论(0)
推荐(0)
摘要:
本来是打算,晒个太阳,边工作,很久没晒了,结果,电脑在阳光下反光,根本没法工作,结果就玩起了乒乓球来, 阅读全文
posted @ 2010-12-22 20:10
lexus
阅读(276)
评论(0)
推荐(0)
摘要:
邮件数据导入delete from subscriptionsLOAD DATA INFILE '/tmp/alluses.txt'INTO TABLE subscriptionsFIELDS TERMINATED BY ','ENCLOSED BY '"'ESCAPED BY '\\'LINES TERMINATED BY '\n'(`email`)select count(*) from su... 阅读全文
posted @ 2010-12-22 13:51
lexus
阅读(221)
评论(0)
推荐(0)
摘要:
一直用着Firefox的No Script扩展且默认阻止加载脚本,近期浏览网页的时候No Script提示一直存在,且浏览所有网页都有一个来自superfish.com的脚本被拦截。实在是奇怪,像网页被挂马了一样,但想想像百度、谷歌这样的站被挂马可能性还是微乎其微的;加上也不可能有所网站都被黑了,这更不现实。Firefox IE Tab Plus扩展内置superfish.com上superfis... 阅读全文
posted @ 2010-12-22 13:20
lexus
阅读(354)
评论(0)
推荐(0)
摘要:
一直用着Firefox的No Script扩展且默认阻止加载脚本,近期浏览网页的时候No Script提示一直存在,且浏览所有网页都有一个来自superfish.com的脚本被拦截。实在是奇怪,像网页被挂马了一样,但想想像百度、谷歌这样的站被挂马可能性还是微乎其微的;加上也不可能有所网站都被黑了,这更不现实。Firefox IE Tab Plus扩展内置superfish.com上superfis... 阅读全文
posted @ 2010-12-22 13:18
lexus
阅读(594)
评论(1)
推荐(0)
摘要:
Rails.root "+" Rails3 中 RAILS_ROOT RAILS_ENV 这些常量已经消失,转变为比较美观的 Rails.root 和 Rails.env 这样的形式。 不过 Rails.root 不再是个字符串,而是个 Pathname 的对象,大部分情况下和字符串没有区别,比如可以像原来那样拼接: ? 1 "#{Rails.root}/public/images" 但是用相加(... 阅读全文
posted @ 2010-12-22 02:36
lexus
阅读(236)
评论(0)
推荐(0)
摘要:
iconv -c -f latin1 -t utf-8 doc/ddd.txt doc/new.txthttp://www.javaeye.com/topic/240133http://www.javaeye.com/topic/565606ruby也有utf-8编码问题http://www.javaeye.com/topic/369753用ruby实现简体中文和繁体中文的相互转化2009-0... 阅读全文
posted @ 2010-12-22 01:11
lexus
阅读(888)
评论(0)
推荐(0)
摘要:
有a.indexa.count两种方式需要谨慎选择 阅读全文
posted @ 2010-12-22 00:52
lexus
阅读(1321)
评论(0)
推荐(0)
摘要:
RequiringThere are essentially two ways to require activerecord-import:Using Bundler (default Rails 3 app uses this)Not using BundlerThese instructions only work for activerecord-import 0.2.0 or highe... 阅读全文
posted @ 2010-12-21 22:59
lexus
阅读(893)
评论(0)
推荐(0)
摘要:
Ubuntu Nginx 开机自启动2 次投票yuren分享于 18 天 前,4 条回复,132 次浏览Share|update-rc.d命令,是用来自动的升级System V类型初始化脚本,简单的讲就是,哪些东西是你想要系统在引导初始化的时候运行的,哪些是希望在关机或重启时停止的,可以用它来帮你设置。首先 我们需要在 /etc/init.d/目录下创建一个nginx的脚本文件,命令 vi ngi... 阅读全文
posted @ 2010-12-21 20:37
lexus
阅读(4251)
评论(0)
推荐(0)
摘要:
config.action_controller.asset_host = "http://assets.example.com"http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.htmlUsing asset hostsBy default, Rails links to these assets on th... 阅读全文
posted @ 2010-12-21 20:01
lexus
阅读(448)
评论(0)
推荐(0)
摘要:
2010-08-02Rails gem 打包css javascript 提升网站性能 jammit 简介文章分类:Ruby编程推荐一个gem jammit 官方hub 安装 Ruby代码 geminstalljammitRuby代码 #environment.rbconfig.gem"jammit"Rails2 需要修改config/routes.rb添加路径,Rails 可不用 Ruby代码... 阅读全文
posted @ 2010-12-21 19:33
lexus
阅读(532)
评论(0)
推荐(0)
|