小编rkb*_*rkb的帖子

JIRA SOAP API文档?

我正在构建一些自定义工具来对抗JIRA安装,并且暴露的SOAP API很棒,除了没有命名参数.

例如,getIssue的原型是:

RemoteIssue getIssue (string in0, string in1);
Run Code Online (Sandbox Code Playgroud)

所有SOAP RPC方法都遵循这个约定,所以没有文档我很难理解要传递的内容很多.

有谁知道最终的API文档指南?

automation soap jira

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

如何防止孩子影响父母

如何防止CHILD元素影响PARENT元素?

jQuery的:

$("#parent").click(function() {
    alert('parent clicked');
});
$("#child").click(function() {
    alert('child clicked');
});
Run Code Online (Sandbox Code Playgroud)

HTML:

<div id="parent">
    click me - parent
    <div id="child">click me - child</div>
</div>
Run Code Online (Sandbox Code Playgroud)

如果您单击该子项,则父项也会被激活,我们会有2个警报.

那么如何防止孩子影响父母呢?

jquery parent-child javascript-events

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

CodeIgniter GROUP_CONCAT并加入

我试图找到一种方法将这两个表连接在一起,我能够做到,但如果找到多个匹配的值,它会再次显示产品表中的所有内容.现在我试图将MySQL group_concat一起使用,以便能够在数组中的一个字段中列出所有tName但是我一直在使用MySQL收到错误:

错误号码:1064

您的SQL语法有错误; 检查与MySQL服务器版本对应的手册,以便在第2行的'FROM(sp_product)LEFT OUTER JOIN sp_product_typeON sp_product_type.`tCat' 附近使用正确的语法

选择sp_product.name,sp_product.price,sp_product.perm_name,sp_product.description,GROUP_CONCAT(product_type.tName SEPARATOR FROM(sp_product)LEFT OUTER JOIN sp_product_typeON sp_product_type.tCategory= sp_product.typeWHERE perm_name='bacon'

$this->db->select('product.name, product.price, product.perm_name, product.description, GROUP_CONCAT(product_type.tName SEPARATOR ',') as product_type.tName'); 
$this->db->from('product');
$this->db->where('perm_name', $this->uri->segment(2));
$this->db->join('product_type', 'product_type.tCategory = product.type', 'LEFT OUTER');
$query = $this->db->get(); 
Run Code Online (Sandbox Code Playgroud)

我有什么想法我做错了吗?

php mysql codeigniter

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

如何让Unicorn在开发日志中显示帖子参数?

我刚开始尝试使用Unicorn(超薄),到目前为止,我确实喜欢输出的格式,除了它似乎没有显示各种请求的post参数.我真的很喜欢这个功能来帮助调试表单等....

独角兽:

20:26:14 web.1     | 127.0.0.1 - - [17/Jan/2012 20:26:14] "POST /basic_simulations HTTP/1.1" 422 24259 0.4838
Run Code Online (Sandbox Code Playgroud)

我想要的......(这是来自webrick):

Started POST "/basic_simulations" for 127.0.0.1 at 2012-01-17 20:27:22 -0700
Processing by BasicSimulationsController#create as HTML
Parameters: {"utf8"=>"?",
"authenticity_token"=>"xxxxx", "basic_simulation"=>{"x1706"=>"1"}, "commit"=>"Submit my answers"}
Run Code Online (Sandbox Code Playgroud)

是否有一些配置选项或类似的东西我可以打开此功能?谢谢!

ruby logging webserver ruby-on-rails unicorn

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

在谷歌浏览器扩展中获取网页的选定文本

我正在开发 Google Chrome 扩展程序。单击弹出窗口时,我希望 popup.html 文件中的输入框包含当前网页的选定文本。

示例文本框:

<input id="searchBox" type="text" />
Run Code Online (Sandbox Code Playgroud)

在网页中选择文本时,文本框应包含选定的单词。我试过,chrome.extension.getBackgroundPage().getSelection()但它不起作用。

javascript clipboard google-chrome selection google-chrome-extension

3
推荐指数
3
解决办法
9419
查看次数

Windows机器上的Rails和JavaScript运行时出现问题

我目前正在使用Web开发类,我们正在使用Ruby on Rails.

我使用的是Ruby v1.9.2和Rails v3.1.1.

当我尝试执行'rails server'时,我的初始问题就出现了.

我会收到以下错误:

C:\Sites\rorProjects\basicRoRProject>rails server   
C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime.   
See https://github.com/sstephenson/execjs for a list of available runtimes.(ExecJS::RuntimeUnavailable)
Run Code Online (Sandbox Code Playgroud)

我做了一些阅读,普遍的共识是安装宝石'execjs'和'therubyracer'.'execjs'安装得很好,但是当我尝试安装'therubyracer'时,我收到以下错误:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing therubyracer: ERROR: Failed to build gem native extension.
        C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
*** extconf.rb failed ***  
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  
Check the mkmf.log file for more …
Run Code Online (Sandbox Code Playgroud)

javascript ruby windows gem install

2
推荐指数
1
解决办法
1172
查看次数

Eclipse中的Android'create table if not exists'错误

我正在创建一个应用程序,用于将EditText中的输入字符串值输入到SQLite数据库中.通过模拟器运行应用程序时,最初创建数据库时会收到logcat错误消息.logcat错误消息如下.

01-23 16:47:39.613:E /数据库(1386):0x1392b8上的失败1(接近"existinfoTable":语法错误)准备'如果不存在则创建表infoinfo(_idinterger主键,sNametext不为空,wUrltext不为null, uNametext not null,pWordtext not null);'.

它所指的OnCreate方法如下.我不确定导致问题的语法错误.任何帮助,将不胜感激.

public void onCreate(SQLiteDatabase db) {
    String sqlDataStore = "create table if not exist" +
        TABLE_NAME_INFOTABLE + "("+ BaseColumns._ID + "interger primary key autoincrement,"
        + COLUMN_NAME_SITE + "text not null,"
        + COLUMN_NAME_ADDRESS + "text not null,"
        + COLUMN_NAME_USERNAME + "text not null,"
        + COLUMN_NAME_PASSWORD + "text not null),";
    db.execSQL(sqlDataStore);
}
Run Code Online (Sandbox Code Playgroud)

java eclipse sqlite android

0
推荐指数
1
解决办法
7041
查看次数