标签: external

android 如何使用我的应用程序打开外部文件

我制作了一个与 sqlite 数据库配合使用的应用程序,并且我在菜单中制作了一个工具,可以通过短信、邮件、whatsapp 等将数据库传递到其他手机。当我在其他移动设备上拥有数据库时,当我单击时,会出现一条消息:没有应用程序可以执行此任务。我想知道如何使用我的应用程序打开这个数据库,如果我必须在清单中放入一些内容来识别文件,或者知道在哪里可以找到有关此信息的一些想法。

android file external

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

如何使 swiper.js 图像可点击?

使用的滑块:http : //www.idangero.us/swiper/

我正在尝试的实时演示:http : //mhdtaki.com/lab/mobile/mobile.html

我已经实现了滑动图库,设置为仅通过媒体查询出现在移动大小的屏幕上。重点是在较小的视口上查看时将桌面网格库替换为 Coverflow 移动版本。调整演示页面的大小将显示成功显示的coverflow画廊,我想知道如何使图像可点击到外部链接,类似于较大的网格如何响应点击。我尝试用一​​个元素包装单个 div,但这只会破坏图库。

    <!--MOBILE GALLERY FOR VIEW -->
  <section id="mobilegallery">
                    <div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide" style="background-image:url(images/imperialthumb.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/lezem.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/pups.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/kanafani.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/unvield.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/baz.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/rana.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/chairs.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/brosh.jpg)"></div>
        <div class="swiper-slide" style="background-image:url(images/bros.jpg)"></div>
    </div>
    <!-- Add Pagination -->
</div>
    </section>
            <!--END MOBILE GALLERY FOR VIEW -->
Run Code Online (Sandbox Code Playgroud)

我尝试的示例:

 <div class="swiper-wrapper">
            <a href="www.google.com"><div class="swiper-slide" style="background-image:url(images/imperialthumb.jpg)"></div></a>
        </div>
Run Code Online (Sandbox Code Playgroud)

html external slider

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

(1) 处的外部函数“f”在 f2py 的子例程中没有隐式类型

我已经使用 Fortran 90 一段时间了,最​​近决定使用 f2py 封装一些模块,以使用 Python 作为前端来简化原型设计。

\n\n

但是,在尝试编译传递外部函数(来自 Python)的子例程时,我遇到了错误。这是复制错误的代码:

\n\n
! file: callback.f90\nsubroutine callback(f,x,y)\n  implicit none\n  ! - args -\n  ! in\n  external :: f\n  real(kind=kind(0.0d0)), intent(in) :: x\n  ! out\n  real(kind=kind(0.0d0)), intent(inout) :: y\n\n  y = f(x)\nend subroutine\n
Run Code Online (Sandbox Code Playgroud)\n\n

现在,如果我使用 f2py 生成签名文件 (.pyf),我将获得以下结果:

\n\n
!    -*- f90 -*- \n! Note: the context of this file is case sensitive.\npython module callback__user__routines \ninterface callback_user_interface \n    function f(x) result (y) ! in :callback:callback.f90\n        intent(inout) f\n        real(kind=kind(0.0d0)) intent(in) :: x\n        real(kind=kind(0.0d0)) …
Run Code Online (Sandbox Code Playgroud)

python fortran external callback f2py

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

svg 外部样式表不起作用

我是新的 svg 学习者,并尝试使用外部样式表为 svg 文件设置动画,但未能为我的对象“立方体”设置样式。

[index.html 文件]

      <head>
        <link rel="stylesheet" type="text/css" href="cube.css">
      </head>
      <body>
        <img src="cube-motion.svg" height="350px" />
        <div class="logo">
          <h1>SVG Cube Animation</h>
        </div>
Run Code Online (Sandbox Code Playgroud)

[cube-motion.svg 文件]

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="cube.css" ?>

<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
     viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">

<g>
    <polygon id="l1" class="st0" points="105.3,92.7 86.3,103.3 67.3,92.9 67.1,71.9 86,61.2 105.1,71.6   "/>
    <polyline id="l2" class="st1" points="67.1,71.9 86.2,82.5 86.3,103.3 67.1,93.1 66.9,71.9    "/>

    <animateTransform
        attributeName="transform"
        type="translate"
        from="0 0"
        to="0 75"
        begin="0s"
        dur="3s"
        repeatCount="indefinite" …
Run Code Online (Sandbox Code Playgroud)

html svg external stylesheet

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

使用 SSL 的 Kubernetes 上的 Kafka

我有一个在 K8S 上运行的 Kafka 集群。我正在使用融合的 kafka 图像,并且我有一个正在工作的外部侦听器。如何添加 SSL 加密?我应该使用入口吗?我在哪里可以找到好的文档?谢谢

ssl external apache-kafka kubernetes kubernetes-ingress

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

添加新游戏类型而无需重新编译程序?(C++)

我有一个游戏有不同的游戏类型,即计时赛,无限游戏等.

每种游戏类型都有不同的时间规则和潜在的碰撞规则.显然,在时间试验中,当时间耗尽时游戏结束.

我目前正在通过'硬编码'将它们添加到程序中来添加游戏类型,因此每次我想添加新游戏类型时我都必须重新编译整个程序.

基本上,为了使添加游戏类型更容易,我不想重新编译所有内容.因此,潜在的新游戏类型可以是可下载的内容,并且只需将新类型放入游戏文件夹即可.

怎么会这样做呢?我假设它是使用libs或dll或其他东西(我对此知之甚少,所以我可能完全不正确).

我希望一切都有道理,我希望你们可以帮助我,或者至少让我指向解释这种方法的书或文章的方向.

提前致谢.

c++ types external recompile

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

Zope使用zcml configure注册外部方法

是否可以使用configure.zcml文件或类似方法为Zope注册外部方法?我正在尝试注册外部Python脚本(类似于其他注册表项,如主题中的"jsregistry.xml"或"c​​ssregistry.xml")

methods zope external configure zcml

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

在Objective-C中获取公共IP?

在我的应用程序中,我需要获取一个NSString对象值等于用户公共/互联网IP地址的值.我试图解决这个问题,但两者都返回本地IP地址而不是公开.以下是我的两种方法.一个更精确,并始终返回数组中的正确项.另一个没有.(因为只选一个随机索引)...

- (NSString *)getPublicIP {   
    NSHost *publicIP = [[[NSHost currentHost] addresses] objectAtIndex:0];
    return publicIP;  
}
Run Code Online (Sandbox Code Playgroud)

其他更精确:(但不获得公共IP)

 //start get ip
- (NSString *)getIPWithNSHost { 

NSArray *addresses = [[NSHost currentHost] addresses];
NSString *stringAddress;
for (NSString *anAddress in addresses) {
    if (![anAddress hasPrefix:@"127"] && [[anAddress componentsSeparatedByString:@"."] count] == 4) {
    stringAddress = anAddress;
    break;
    }
    else {
    stringAddress = @"IPv4 address not available" ;

}
    //NSLog(stringAddress);
}
NSLog (@"getIPWithNSHost: stringAddress = %@ ",stringAddress); 
stringAddress = (@"getIPWithNSHost: stringAddress = %@ ",stringAddress);

return  stringAddress;

} …
Run Code Online (Sandbox Code Playgroud)

ip external objective-c ip-address

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

winforms .net c# - 外部程序

我有按钮的c#.net(winforms)程序.我还有另一个c ++控制台程序(它作为参数文本文件并更改它).我想要这样的东西:我按下按钮(在c#程序中存储到txt文件的路径),执行C++程序但用户没有看到它(我不想在新窗口中打开例如命令行).有可能做那样的事吗?

.net c# external winforms

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

添加外部库时,JAVA无法找到或加载主类

我的代码中有一些编码字符,所以我编译代码如下:

javac -cp cayenne-2.0.4.jar Twokenize.java
Run Code Online (Sandbox Code Playgroud)

没关系.但是当我运行程序时,它会返回一个错误:

java -cp cayenne-2.0.4.jar Twokenize test.txt
Run Code Online (Sandbox Code Playgroud)

这是一个错误:

Error: Could not find or load main class Twokenize
Run Code Online (Sandbox Code Playgroud)

但是当我跑步时:

java Twokenize test.txt
Run Code Online (Sandbox Code Playgroud)

程序(主方法)仍然运行顺利,它满足了需要外部库的代码.请帮我.非常感谢你.

java external

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