<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

BackgroundDRb service started, but MiddleMan.all_worker_info is empty.

2008年10月23日星期四

按这个指引安装了BackgrounDrb, 在启动BackgrounDrb服务时发生了错误,导致服务看起来已经启动成功,但没有worker. Google了一些页面,发现这个问题还很普遍,于是给BackgrounDRb的作者gethemant咨询问题,以下是问题解决过程(需要从下往上读):



Thank you very much for your quickly response, I installed the debian system 1 year ago, the ruby might be installed by manually. Gem also using tar.gz.



Best Regards,


Jesse Cai (蔡望勤)


Blog: http://www.caiwangqin.com


Email: 1@p1.cn


—–邮件原件—–


发件人: gethemant@gmail.com [mailto:gethemant@gmail.com]


发送时间: 2008年10月23日16:37


收件人: Jesse Cai


主题: Re: 答复: backgroundrb service can started, but MiddleMan.all_worker_info is empty.


Your rubygems setup looks weird, because if its set properly, it


should automatically add require “rubygems” on top, because if packet


is install through gem command, each executable will be wrapped in a


script.


Also, packet_worker_runner should be in path. Did you install rubygems


from debian repositories, rather than using tar.gz file? Thats known


to create problem for folks.


On 10/23/08, Jesse Cai <1@p1.cn> wrote:


> I have resolved this problem, the problem is the same as


> http://thr3ads.net/backgroundrb-devel/2008/09/372582-more-on-leopard-problem


> .


> To resolved this problem on Debian :


>


> 1. Add “require ‘rubygems’” to /var/lib/gems/1.8/gems/packet-0.1.


> 14/bin/packet_worker_runner, before require “packet”


>


> 2. ln -s


> /var/lib/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner /usr/bin/


>


> –


> Best Regards,


> Jesse Cai (蔡望勤)


> Blog: http://www.caiwangqin.com> Email: 1@p1.cn


> 发件人: Jesse Cai [mailto:1@p1.cn]


> 发送时间: 2008年10月23日11:47


> 收件人: ‘gethemant@gmail.com’


> 主题: backgroundrb service can started, but MiddleMan.all_worker_info is


> empty.


> Dear gethemant,


> I’m sorry to trouble you.> i’m trying backgroundrb 1.1, i can start backgroundrb service, but


> MiddleMan.all_worker_info is empty.


> i’m using packet (0.1.14),chronic (0.2.3)


> i have searched from google, and got many same error about : Invalid worker with name notice_worker and key


> /var/lib/gems/1.8/gems/packet-0.1.14/lib/packet/packet_connection.rb:52:in


> `ask_worker’


> Could I have any tips from you?> –


> Best Regards,


> Jesse Cai (蔡望勤)


> Blog: http://www.caiwangqin.com


> Email: 1@p1.cn



Let them talk of their oriental summer climes of everlasting


conservatories; give me the privilege of making my own summer with my


own coals.


http://gnufied.org


Technorati : ,

Del.icio.us : ,


标签:

posted by Caiwangqin, 09:10 | Permalink | 0 comments |

使用 OpenDNS 访问 github

很不幸github.com这个CODE HOSTING也被GWF了,当然Geek可以使用Tor来翻墙,但速度太慢,难以忍受。使用OpenDNS可以快速访问github.com,使用方法很简单:







Technorati : , ,


标签:

posted by Caiwangqin, 04:56 | Permalink | 0 comments |

ChinaonRails free ruby/rails books contributed by bd7lx

2008年10月22日星期三





























chinaonrails_free_ruby_rails_books - Upload a Document to Scribd

上周bd7lx决定将自己撰写《Web开发大全-ROR版》的稿费换成RUBY/RAILS新书赠送,我今天已经收到了电子工业出版社送来的41本书,详细书单请查阅上面的文档。促成这件事的人有在武汉的博文视点,电子工业出版社,非常感谢这些为Ruby/Rails在中国做出无私奉献的人。


现在书已经在我这里了,准备在以后的Ruby/Rails中文社区里的各项活动中赠送给Topic分享者和有贡献的朋友们,如果有什么分书的建议,欢迎与我取得联系。





Technorati : , ,


标签:

posted by Caiwangqin, 07:26 | Permalink | 0 comments |

vim for ruby on rails

2008年10月16日星期四







vim for ror, originally uploaded by caiwangqin.


plugins:

rails.vim

fuzzyfinder.vim

fuzzyfinder_textmate.vim

minibufexpl.vim

NERD_tree.vim


colorscheme vibrantink

http://www.vim.org/scripts/script.php?script_id=1794


mkdir ~/.vim/plugin

touch ~/.vim/plugin/mcfg.vim

vim ~/.vim/plugin/mcfg.vim


content for mcfg.vim

http://docs.google.com/Doc?id=dd76mrkf_184g3rp7gg6


标签:

posted by Caiwangqin, 11:32 | Permalink | 0 comments |

2008-10-10晚10点,新 P1.cn 发布!

2008年10月11日星期六


2008-10-10晚10点,我们发布了新版本的 P1.cn! 本次升级我们主要加强了 朋友管理Dating 、以及 活动管理 。这是一个新的里程碑。


另一个更新是,从这个 Release 开始,P1.cn 已经不再是单纯使用 Ruby on Rails 开发了,出于某些原因(非技术)考虑,在一些市场功能上,我们开始加入 PHP 作为开发语言。









Technorati : , ,
Del.icio.us :

标签: ,

posted by Caiwangqin, 07:11 | Permalink | 0 comments |