小编Hit*_*sal的帖子

你如何全文搜索亚马逊s3桶?

我在S3上有一个桶,我有大量的文本文件.

我想在文本文件中搜索一些文本.它仅包含原始数据.每个文本文件都有不同的名称.

例如,我有一个桶名称:

ABC/MyFolder文件/ abac.txt

XYX/myfolder1/axc.txt

我想在上面的文本文件中搜索"我是人"这样的文字.

怎么做到这一点?它甚至可能吗?

php amazon-s3 amazon-web-services

24
推荐指数
2
解决办法
7467
查看次数

在Ionic中接收ios的URL

我正在使用离子框架.我正在尝试设置一种方法来接收来自其他应用的网址.比如,您在浏览器中,单击共享,并将链接发送到另一个应用程序(我的应用程序).我找到了这个cordova插件,并将其集成到我的应用程序中.但这是Android的普及.我在IOS中需要相同的功能.

我知道哪个插件需要用于ios

我为Android采取的步骤

1)cordova插件添加git://github.com/Initsogar/cordova-webintent.git 2)检查config.xml文件并找到webintent的代码

<intent-filter>
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/plain" />
</intent-filter>
Run Code Online (Sandbox Code Playgroud)

和app.js代码

if (window.plugins && window.plugins.webintent) {
  window.plugins.webintent.getUri(function(url) {
    alert("getUri url:"+url);
  });
}
Run Code Online (Sandbox Code Playgroud)

在ios中对功能相同的任何建议?

谢谢

ios phonegap-plugins cordova ionic-framework ionic

23
推荐指数
2
解决办法
5459
查看次数

AWS S3通过代理获取图像 - PHP

我在S3上有一个桶,我已经上传了图像.现在我使用AWS-SDK获取图像.现在我想通过代理绕过图像

$client = new Aws\S3\S3Client([
            'version'     => 'latest',
            'region'      => 'us-east-1',
            'debug'       => TRUE, // enable debug info
            'stats'       => TRUE, // enable stats
            '@http'  => [
            'proxy' => 'http://192.168.16.1:10'
            ],
            'credentials' => [
                'key'    => base64_decode(KEY),
                'secret' => base64_decode(SECRET)
            ]
        ]);
Run Code Online (Sandbox Code Playgroud)

这是我的存储桶设置,当我执行wireshark时,它仍然在请求中显示AWS IP地址.

任何人都可以告诉我如何使用代理绕过S3图像.

php amazon-s3 aws-php-sdk aws-sdk

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

如何在群集模式下使用pm2启动node.js应用程序?

我们正试图在ubuntu 14.04上使用octa core proccessor以pm2 0.12.8开始我们的应用程序.git hub上的read me有一个非常直接的命令,用于在集群模式下运行节点应用程序.

#群集模式

$ pm2 start app.js -i 0        **# Will start maximum processes with LB depending on available CPUs**
$ pm2 start app.js -i max      **# Same as above, but deprecated yet.**
Run Code Online (Sandbox Code Playgroud)

但上述命令对我们不起作用.当我们尝试运行这些命令时,pm2只列出了一个实例.

为什么?任何建议

谢谢

ubuntu cluster-computing node.js pm2

13
推荐指数
3
解决办法
1万
查看次数

离子中的标签不显示内容

我想展示内容.我在自定义模板文件上手动添加了自定义代码.

  <ion-content>


<ion-tabs class="tabs-positive tabs-icon-only">

  <ion-tab title="Home" icon-on="ion-ios-filing" icon-off="ion-ios-filing-outline">
    My Content here 
  </ion-tab>

  <ion-tab title="About" icon-on="ion-ios-clock" icon-off="ion-ios-clock-outline">
     My Content here 1
  </ion-tab>

  <ion-tab title="Settings" icon-on="ion-ios-gear" icon-off="ion-ios-gear-outline">
    My Content here 3
  </ion-tab>

</ion-tabs>
  </ion-content>
</ion-view>
Run Code Online (Sandbox Code Playgroud)

我从这里拿了示例代码

http://ionicframework.com/docs/api/directive/ionTabs/

我能够看到标签,但不能看到内容.是的,如果我按照离子的示例应用程序选项卡我能够做到这一点.但我需要一个以上.

我们可以在这里展示内容.

angularjs ionic-framework ionic

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

CFBundleDocumentType在myproject-Info.plist文件中不起作用

我正在尝试在离子框架中构建一个应用程序.

我正在尝试构建此功能,就像我点击图库中的照片并点击共享一个共享平台将打开.我想在这里展示我的应用程序.

我在plist文件中做了一些修改

这是我的plist文件的代码

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleDocumentTypes</key>
    <array>
      <dict>
        <key>CFBundleTypeName</key>
        <string>public.jpeg</string>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
          <string>public.jpeg</string>
        </array>
      </dict>
    </array>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIconFile</key>
    <string>icon.png</string>
    <key>CFBundleIcons</key>
    <dict>
      <key>CFBundlePrimaryIcon</key>
      <dict>
        <key>CFBundleIconFiles</key>
        <array>
          <string>icon-40</string>
          <string>icon-small</string>
          <string>icon-60</string>
          <string>icon.png</string>
          <string>icon@2x</string>
          <string>icon-72</string>
          <string>icon-72@2x</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <false/>
      </dict>
    </dict>
    <key>CFBundleIcons~ipad</key>
    <dict>
      <key>CFBundlePrimaryIcon</key>
      <dict>
        <key>CFBundleIconFiles</key>
        <array>
          <string>icon-small</string>
          <string>icon-40</string>
          <string>icon-50</string>
          <string>icon-76</string>
          <string>icon-60</string>
          <string>icon</string>
          <string>icon@2x</string>
          <string>icon-72</string>
          <string>icon-72@2x</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <false/>
      </dict>
    </dict>
    <key>CFBundleIdentifier</key>
    <string>com.ionicframework.hitutest948556</string> …
Run Code Online (Sandbox Code Playgroud)

objective-c ios cordova ionic

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

如何修复nodejs中丢失的中间/链证书

我在我的服务器上安装了nodejs和ssl

和我的app.js代码

var sslOptions = {
  key: fs.readFileSync('/etc/ssl/private/private.key'),
  cert: fs.readFileSync('/etc/ssl/certs/cert.com.crt'),
  requestCert: true,
  ca: fs.readFileSync('/etc/ssl/certs/ca.crt'),
  rejectUnauthorized: false 
};

var secureServer = https.createServer(sslOptions,app).listen(443, function(){
   console.log("Express server listening on port ");

});
Run Code Online (Sandbox Code Playgroud)

现在,当我检查

https://www.sslshopper.com/

它给了我错误

所有Web浏览器都不信任该证书.您可能需要安装中间/链证书才能将其链接到受信任的根证书.详细了解此错误.您可以通过遵循服务器平台的Comodo证书安装说明来解决此问题(使用InstantSSL的这些说明).注意有关中级证书的部分.

任何的想法 ?

如何解决这个问题

ssl node.js

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

找不到模块'internal/util/types'

我正在尝试在我的窗口上设置现有的nodejs项目

Npm -v :- 6.0.1
node -v :- v8.11.1
Run Code Online (Sandbox Code Playgroud)

当我运行节点app.js时,我收到以下错误

include-all尝试要求(C:\ xampp\htdocs\sails\backend\api\services\FileUploadService.js)`,但发生错误::详细信息:错误:无法在函数中找到模块'internal/util/types'位于Module.require(module.js:596:17)的Function.Module._load(module.js:474:25)处的.Module._resolveFilename(module.js:547:15)at require(internal/module.js: 11:18)在evalmachine.:31:26在对象.(C:\ xampp\htdocs\sails\backend \node_modules\s3 \node_modules\graceful-fs\fs.js:11:1)位于Object.Module._extensions的Module._compile(module.js:652:30). Module.load(module.js:565:32)的.js(module.js:663:10)在tryModuleLoad(module.js:505:12)的Function.Module._load(module.js:497:3)在Module.require(module.js:596:17)at at object(internal/module.js:11:18).(C:\ xampp\htdocs\sails\backend \node_modules\s3 \node_modules\graceful-fs\graceful-fs.js:3:27)在Object.Module的Module._compile(module.js:652:30)处.位于Module.load(module.js:565:32)的_extensions..js(module.js:663:10)位于tryModuleLoad(module.js:505:12)的Function.Module._load(module.js:497: 3)在Module.require(module.js:596:17)at的require(internal/module.js:11:18).(C:\ XAMPP\htdocs中\帆\后端\node_modules\S3\lib中\ index.js:3:10)

任何的想法?我错过了什么

node.js node-modules sails.js

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

错误ITMS-90362 - 共享扩展Xcode ios

我正在尝试建立共享扩展,但在上传过程中我遇到了这个错误

错误ITMS -90362"info.plist值无效.捆绑myapp.app/Plugins/myapp.appex中密钥'NSExtensionActivationRule'的值无效

objective-c ios ionic-framework xcode6

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

TypeError:在nodejs中将循环结构转换为JSON

我正在使用nodejs的请求包

我在这里使用此代码

 var formData = ({first_name:firstname,last_name:lastname,user_name:username, email:email,password:password});

  request.post({url:'http://localhost:8081/register', JSON: formData}, function(err, connection, body) {
Run Code Online (Sandbox Code Playgroud)

exports.Register = function(req, res) {
    res.header("Access-Control-Allow-Origin", "*");
    console.log("Request data " +JSON.stringify(req));
Run Code Online (Sandbox Code Playgroud)

这里我得到这个错误TypeError:将循环结构转换为JSON

任何人都可以告诉我这是什么问题

谢谢

javascript json node.js

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