小编Fab*_*cio的帖子

resque-web出错:无法获取引用控制台的文件描述符

我正在尝试启动resque-web,但是会发生以下错误:

[Sun Mar 06 05:27:48 +0000 2011] Starting 'resque-web'...
[Sun Mar 06 05:27:48 +0000 2011] trying port 8281...
Couldn't get a file descriptor referring to the console

Ubuntu 10.04和10.10发生此错误.

Resque Web仅以-F选项开头(不要守护进程,在前台运行).因此,当进程被守护时,它必须是某种东西.

任何想法,我该如何解决?

问候,

file-descriptor resque

31
推荐指数
1
解决办法
9334
查看次数

使用MySQL中的对象数组查询JSON列

我有一个带有follow数组的json列:

[
  {
    "id": "24276e4b-de81-4c2c-84e7-eed9c3582a31",
    "key": "id",
    "type": "input",
  },
  {
    "id": "e0ca5aa1-359f-4460-80ad-70445be49644",
    "key": "name",
    "type": "textarea",
    }
]
Run Code Online (Sandbox Code Playgroud)

我尝试了以下查询来获取24276e4b-de81-4c2c-84e7-eed9c3582a31文档列中具有id的行,但它不返回结果:

select * from jobs WHERE document->'$[*].id' = "24276e4b-de81-4c2c-84e7-eed9c3582a31"
Run Code Online (Sandbox Code Playgroud)

有谁知道如何做正确的查询?

mysql mysql-json

12
推荐指数
4
解决办法
1万
查看次数

使用gmail gem跟踪一些电子邮件

我正在使用gmail gem发送电子邮件,我需要跟踪这些电子邮件.我怎样才能做到这一点?

我正在尝试使用message_id搜索电子邮件,但它会从我的收件箱中收集所有电子邮件,我只想要特定电子邮件的回复.

这是我的实际代码:

*使用message_id保存电子邮件*

mail = gmail.deliver(email)
Email.create(:message_id => mail.message_id, :from => user.email,
  :to => annotation.to, :body => annotation.content, :title => annotation.title,
  :annotation => annotation, :user => user)
Run Code Online (Sandbox Code Playgroud)

*使用message_id搜索邮件*

messages = gmail.inbox.mails(:message_id => email.message_id)
Run Code Online (Sandbox Code Playgroud)

问候,

FabrícioFerraride Campos

ruby gmail tracking

6
推荐指数
1
解决办法
1231
查看次数

标签 统计

file-descriptor ×1

gmail ×1

mysql ×1

mysql-json ×1

resque ×1

ruby ×1

tracking ×1