小编use*_*946的帖子

PhoneGap:在默认浏览器中打开外部链接(在应用程序外部)

我正试图通过PhoneGap应用程序在Safari(在iPhone上)打开链接.我正在使用PhoneGap 3.1.0版,并使用PhoneGap Build来构建应用程序.

我在页面上有两个链接(如下面的www/index.html所示).两个链接都在PhoneGap应用程序内打开.我可以看到PhoneGap已正确加载,因为警报('设备就绪!'); 被触发了.

我需要更改什么,在默认浏览器中打开链接(在应用程序外部)?

WWW/config.xml的文件看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>

<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.company.appname" version="0.0.3">
  <name>AppName</name>
  <description>description</description>
  <author href="http://www.example.com/" email="hello@example.com">
    Company
  </author>
  <preference name="phonegap-version" value="3.1.0" />
  <preference name="orientation" value="portrait" />
  <preference name="stay-in-webview" value="false" />

  <gap:plugin name="org.apache.cordova.inappbrowser" version="0.2.3" />
  <gap:plugin name="org.apache.cordova.dialogs" version="0.2.2" />
  <gap:plugin name="com.phonegap.plugins.pushplugin" version="2.0.5" />

  <plugins>
    <plugin name="InAppBrowser" value="CDVInAppBrowser" />
  </plugins>

  <feature name="InAppBrowser">
    <param name="ios-package" value="CDVInAppBrowser" />
  </feature>
  <access origin="*" />
</widget>
Run Code Online (Sandbox Code Playgroud)

WWW/index.html的文件看起来像这样:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, …
Run Code Online (Sandbox Code Playgroud)

phonegap-plugins cordova phonegap-build inappbrowser

26
推荐指数
4
解决办法
7万
查看次数

Orientdb版本有什么区别?

我一直在阅读有关OrientDB的文章,我对该软件的"版本"感到有些困惑.

主要版本听起来就像是文档存储,但互联网上的东西让它听起来像是文档和图形数据库.http://nosql.mypopescu.com/post/1254869909/correction-orientdb-is-a-document-and-graph-store

它和图表版本有什么区别?图表版本是仅使用节点和边缘进行图形化,还是文档图形数据库?

更新:关键值商店版本是什么?它有何不同?你能和其他版本一起使用吗?

nosql graph-databases orientdb

14
推荐指数
1
解决办法
2542
查看次数

hibernate异常将空值赋给基本类型setter的属性

Hibernate 3.6.9遇到了令人沮丧的问题.MS SQL Server 2008.请注意异常和奇数列索引引用.

HQL查询本身:

Select r from DataStoreReference r join fetch r.container c where r.hash=:hash and r.state=0
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪:

2012-05-16 00:01:22,184 [BackgroundDeletionThread] ERROR org.hibernate.util.JDBCExceptionReporter - The value supplied cannot be converted to BIGINT.  
2012-05-16 00:01:22,186 [BackgroundDeletionThread] ERROR org.hibernate.util.JDBCExceptionReporter - The value supplied cannot be converted to BIGINT.  
2012-05-16 00:01:22,188 [BackgroundDeletionThread] ERROR org.hibernate.util.JDBCExceptionReporter - Invalid column index 14.  
2012-05-16 00:01:22,190 [BackgroundDeletionThread] ERROR org.hibernate.util.JDBCExceptionReporter - The value supplied cannot be converted to BIGINT.  
2012-05-16 00:01:22,193 [BackgroundDeletionThread] ERROR org.hibernate.util.JDBCExceptionReporter - The value …
Run Code Online (Sandbox Code Playgroud)

java sql persistence hibernate

12
推荐指数
3
解决办法
5万
查看次数

Hibernate选择表的所有行(使用.*)连接多个表,给出Exception

可以用Hibernate做这个吗?

select A.something, B.something, C.something, D.something , E.*  
      from  A  
      LEFT OUTER JOIN B on A.id = B.id_fk  
      LEFT OUTER JOIN C ON B.id = C.id_fk  
      LEFT OUTER JOIN D ON C.id = D.id_fk  
      LEFT OUTER JOIN E ON A.abc = E.abc;  
Run Code Online (Sandbox Code Playgroud)

这个查询在SQL中运行正常,但在Hibernate中给出了以下Exception:

org.hibernate.hql.ast.QuerySyntaxException: expecting IDENT, found '*' near line 1
Run Code Online (Sandbox Code Playgroud)

hibernate join

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

node.js只吐出三个点

我在Windows机器上安装了node.js并打开了命令提示符.当我尝试"Hello World"示例时,我得到的唯一输出是三个点:

node hello.js
...
Run Code Online (Sandbox Code Playgroud)

我做错了吗?

node.js

8
推荐指数
2
解决办法
3594
查看次数

Cassandra timeuuid在Datastax C#驱动程序中

什么C#类型相当于Datastax Cassandra C#驱动程序中的timeuuid?

我正在编写一个简单的用户跟踪服务,并希望访问最新的用户历史记录.我正在尝试创建一个与此create语句等效的表:

CREATE TABLE IF NOT EXISTS user_history (
    user_id text,
    event_type text,
    create_date timeuuid,
    item_id text,
    PRIMARY KEY ((user_id, event_type), create_date)
);
Run Code Online (Sandbox Code Playgroud)

我做了以下课程:

[AllowFiltering]
[Table("user_history")]
public class UserHistory
{
    [PartitionKey(1)]
    [Column("user_id")]
    public string UserID;

    [PartitionKey(2)]
    [Column("event_type")]
    public string EventType;

    [ClusteringKey(1)]
    [Column("create_date")]
    public DateTime CreateDate { get; set; }

    [Column("item_id")] 
    public string ItemID;
}
Run Code Online (Sandbox Code Playgroud)

我正在使用此语句在Cassandra中创建表:

var table = Session.GetTable<UserHistory>();
table.CreateIfNotExists();
Run Code Online (Sandbox Code Playgroud)

但是这给了我下面的表格:

CREATE TABLE user_history (
  user_id text,
  event_type text,
  create_date timestamp,
  item_id text,
  PRIMARY KEY ((user_id, event_type), create_date) …
Run Code Online (Sandbox Code Playgroud)

c# driver cassandra datastax

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