小编Nic*_*s R的帖子

PhoneGap和Titanium4j Mobile之间的区别

对于基于GWT的iOS和Android应用程序开发,我遇到了两个选择:

  • Cordova/PhoneGap + mgwt
  • Titanuim4j手机+ Touch4j

有人成功整合了其中一个或两个吗?你知道什么是利弊吗?

谢谢.

[编辑]

例如:Touch4j不支持Firefox,因此如果您在Windows中使用GWT进行开发,则无法以开发模式查看应用程序(Safari或Chrome for Windows没有GWT插件)

iphone gwt android cordova

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

PhoneGap 3,iOS7和CDVBarcodeScanner.o

我正在使用Phonegap 3.0和XCode 5,并试图在我的iOS7应用程序中使用条形码扫描器

https://github.com/wildabeast/BarcodeScanner
Run Code Online (Sandbox Code Playgroud)

我通过从github下载项目的zip并安装via来添加到项目中

phonegap local plugin add /dev/BarcodeScanner-master
Run Code Online (Sandbox Code Playgroud)

但是当我试图从XCode 5运行时,我得到了

Undefined symbols for architecture armv7s:
  "_OBJC_CLASS_$_CATransaction", referenced from:
      objc-class-ref in CDVBarcodeScanner.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)

这个错误似乎与armv7s架构有关,但显然我无法将其关闭,因为我正在构建iOS7.

有人设法让这个(或任何其他)条形码阅读器与Phonegap 3和iOS7一起使用吗?

感谢:D

barcode cordova ios7 xcode5

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

如何使用直接API将聊天机器人显示为实时聊天?

<!DOCTYPE html>
<html>
  <head>
    <link href="https://cdn.botframework.com/botframework-webchat/latest/botchat.css" rel="stylesheet" />
  </head>
  <body>
    <div id="bot"/>
    <script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script>
    <script>
      BotChat.App({
        directLine: { secret: direct_line_secret },
        user: { id: 'userid' },
        bot: { id: 'botid' },
        resize: 'detect'
      }, document.getElementById("bot"));
    </script>
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

我有这样的代码嵌入机器人的使用直接行API,而不是通常的iframe实时聊天,但是当我把我的directline私有密钥,机器人占据整个网页.我需要它显示在网页的右下角,当用户点击它时弹出为生活聊天.请有人指导我实现这一目标.谢谢

botframework direct-line-botframework

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

适用于iPhone/iOS的PhoneGap/Cordova Barcodescanner插件

我在iPhone上为Phonegap集成了一个barcodescanner-plugin时遇到了麻烦.我从这个github存储库获取了我的插件:

https://github.com/phonegap/phonegap-plugins/

我按照说明中的所有步骤操作,包括将所有相关源添加到项目的构建路径的步骤.我也关闭了自动引用计数.我认为每个文件都在正确的位置,但无论如何我遇到了这个错误:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
  objc-class-ref in CDVBarcodeScanner.o
  "_CVPixelBufferGetBytesPerRow", referenced from:
  -[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
  -[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
  "_CVPixelBufferUnlockBaseAddress", referenced from:
  -[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
  -[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
  "_CVPixelBufferGetHeight", referenced from:
  -[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
  -[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
  "_kCVPixelBufferPixelFormatTypeKey", referenced from:
  -[CDVbcsProcessor setUpCaptureSession] in CDVBarcodeScanner.o
  "_CVPixelBufferGetBaseAddress", referenced from:
  -[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
  -[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
  "_CVPixelBufferLockBaseAddress", referenced from:
  -[CDVbcsProcessor getLuminanceSourceFromSample:imageBytes:] in CDVBarcodeScanner.o
  -[CDVbcsProcessor getImageFromSample:] in CDVBarcodeScanner.o
  "_CVPixelBufferGetWidth", referenced from:
  -[CDVbcsProcessor …
Run Code Online (Sandbox Code Playgroud)

barcode ios phonegap-plugins cordova

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

使用LinQ从列表中获取不同的列表对象

我有物品清单.

class Item{
      public int Year { get; set; }
      public int QuarterIndex { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

如何将List转换为不同的List?

资源:

List<Item> items = new List<Item>(){
 new Item(){ Year = 2013, QuarterIndex = 1},
 new Item(){ Year = 2013, QuarterIndex = 2},
 new Item(){ Year = 2013, QuarterIndex = 3},
 new Item(){ Year = 2013, QuarterIndex = 1}
};
Run Code Online (Sandbox Code Playgroud)

结果:

target = new List<Item>(){
 new Item(){ Year = 2013, QuarterIndex = 1},
 new Item(){ Year = 2013, QuarterIndex = 2},
 new …
Run Code Online (Sandbox Code Playgroud)

c# linq list

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

总结时javascript返回NaN

我正在尝试用javascript做额外的总和,以便在他们的货物和运输加在一起时计算出用户的总成本,但是我得到的全部是NaN为什么?这是我的代码的小提琴

从小提琴移植的代码:

 $("#country").change(function() {
    var shipping_cost = parseFloat($("#shipping").text().replace(pattern, ''));
    var total      = parseFloat($("#goods").text().replace(pattern, ''));
    var pattern = /[^0-9.-]+/g;
    var result = total + shipping_cost;
    console.log(result);

       if($(this).val() == "17") {
           $("#shipping").text("£0.00");
           $("#full_price").text("£"+result);
       } else {
           $("#shipping").text("£5.00");
           $("#full_price").text("£"+result);
       }
 });?
Run Code Online (Sandbox Code Playgroud)

标记:

<select id="country">
    <option value=17>Option 1</option>
    <option value=18>Option 2</option>
    <option value=19>Option 3</option>
</select>

<p id=goods>£5.00</p>

<p id=shipping>£0.00<p>
Run Code Online (Sandbox Code Playgroud)

javascript math

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

在平板电脑上运行wp8应用程序

我创建了一个Windows手机应用程序(适用于WP 8和8.1),并将该应用程序发布到Windows手机商店进行beta测试.我尝试在我的Windows平板电脑上下载并安装应用程序,即戴尔Windows 8平板电脑http://www.flipkart.com/dell-venue-8-pro-tablet/p/itmdutftjdkcec3x?pid=TABDUTFZW4XKAYPS 它说应用程序设备不支持.因此可以在平板电脑上运行应用程序(移动应用程序).我可以直接在平板电脑上部署xap文件吗?如果是这样的话?或者还有其他方法可以让它在平板电脑上运行吗?

deployment windows-phone-8

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

来自json文件的LUIS导入应用程序抛出BadArgument版本ID不能为空错误

我从github下载了bot应用程序示例,并通过visualstudio打开了luis应用程序,并尝试导入json文件在luis.ai门户中创建一个新的应用程序,但它抛出了错误

"BadArgument:版本ID不能为null或为空."

artificial-intelligence microsoft-cognitive botframework azure-language-understanding

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