浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 550 551 552 553 554 555 556 557 558 ··· 630 下一页

2010年12月23日

摘要: http://www.gaojinbo.com/%E9%80%9A%E8%BF%87haproxy%E6%9E%84%E5%BB%BA%E5%BC%80%E6%BA%90%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%E6%9E%B6%E6%9E%84%E5%B9%B3%E5%8F%B0.html http://www.javaeye.com/topic/443080 h... 阅读全文
posted @ 2010-12-23 13:01 lexus 阅读(1739) 评论(0) 推荐(0)

摘要: 磊 阅读全文
posted @ 2010-12-23 10:55 lexus 阅读(292) 评论(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 阅读(335) 评论(0) 推荐(0)

摘要: 最近有一个状况,搜索信息经常到繁体网页上去, 所以就有了这个设想,有点标题党的嫌疑, 不过也慢慢的认识了一些台湾的朋友在网络上 阅读全文
posted @ 2010-12-23 01:48 lexus 阅读(176) 评论(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 阅读(368) 评论(1) 推荐(1)

2010年12月22日

摘要: 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 阅读(604) 评论(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 阅读(524) 评论(0) 推荐(0)

摘要: 本来是打算,晒个太阳,边工作,很久没晒了,结果,电脑在阳光下反光,根本没法工作,结果就玩起了乒乓球来, 阅读全文
posted @ 2010-12-22 20:10 lexus 阅读(275) 评论(0) 推荐(0)

摘要: so far so good 阅读全文
posted @ 2010-12-22 16:14 lexus 阅读(6819) 评论(1) 推荐(0)

摘要: 有内涵和哲理,收录之 阅读全文
posted @ 2010-12-22 14:06 lexus 阅读(226) 评论(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 阅读(353) 评论(0) 推荐(0)

摘要: 一直用着Firefox的No Script扩展且默认阻止加载脚本,近期浏览网页的时候No Script提示一直存在,且浏览所有网页都有一个来自superfish.com的脚本被拦截。实在是奇怪,像网页被挂马了一样,但想想像百度、谷歌这样的站被挂马可能性还是微乎其微的;加上也不可能有所网站都被黑了,这更不现实。Firefox IE Tab Plus扩展内置superfish.com上superfis... 阅读全文
posted @ 2010-12-22 13:18 lexus 阅读(590) 评论(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 阅读(886) 评论(0) 推荐(0)

摘要: 有a.indexa.count两种方式需要谨慎选择 阅读全文
posted @ 2010-12-22 00:52 lexus 阅读(1319) 评论(0) 推荐(0)

2010年12月21日

摘要: 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)

摘要: 今天是冬至,在京几年一直没有去,这回好容易在家,要去拜拜 阅读全文
posted @ 2010-12-21 22:20 lexus 阅读(253) 评论(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 阅读(4241) 评论(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 阅读(446) 评论(0) 推荐(0)

上一页 1 ··· 550 551 552 553 554 555 556 557 558 ··· 630 下一页