小编Seb*_*ian的帖子

检测是否已为angularjs指令指定了转录内容

我有一个指令(进度条),它应该有两种可能的状态,一种没有任何描述,一种在左侧有一个标签.简单地使用此标签的已转换内容会很酷.

有没有人知道我如何根据是否给出了一个转录内容来为我的指令添加一个类?

所以我想补充一下:

<div class="progress" ng-class="{withLabel: *CODE GOES HERE*}">
    <div class="label"><span ng-transclude></span>
    <div class="other">...</div>
</div>
Run Code Online (Sandbox Code Playgroud)

非常感谢!

angularjs angularjs-directive

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

授予对 github 上单个文件的访问权限

我只是在寻找一种可能性来授予另一位开发人员访问我的 git 存储库中的一个文件的权限。除了子模块/子树之外还有什么方法吗?

这只是应该由其他人翻译的本地化文件。

期待您的回复!

谢谢!

塞巴斯蒂安

git translation github git-submodules git-subtree

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

在1个端点,WCF,Mono中找不到客户端端点配置"*"

嘿伙计们,

我正在尝试使用Mono从我的Ubuntu主机访问托管在虚拟机(Windows 7)上的Web服务.

我可以导入wdsl文件并生成服务引用.我从正确访问webservice的其他工作客户端复制了App.config.

当我尝试使用System连接到webservice时;

namespace MonoTest
{
class MainClass
{
    public static void Main (string[] args)
    {
        Console.WriteLine ("Hello World!");
        TestServer.Service1Client client = new TestServer.Service1Client("Test");
        Console.WriteLine(client.GetData(12));
        Console.ReadLine();
    }
}
}
Run Code Online (Sandbox Code Playgroud)

我收到一个错误:

System.InvalidOperationException: Client endpoint configuration 'Test' was not found in 1 endpoints.
  at System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String endpointConfig) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ChannelFactory`1[MonoTest.TestServer.IService1]..ctor (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] in <filename unknown>:0 
  at System.ServiceModel.ClientBase`1[MonoTest.TestServer.IService1].Initialize (System.ServiceModel.InstanceContext instance, System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00000] …
Run Code Online (Sandbox Code Playgroud)

c# linux mono wcf wcf-endpoint

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

publish_checkins权限2013年7月中断更改

我收到了我的Facebook应用程序的开发人员提醒,我用它从手机间隙登录.它说

MyApp目前正在使用以下不推荐使用的功能:publish_checkins扩展权限.

但我没有使用这种许可!我只使用user_birthday,email,user_likes,user_location和publish_actions.

如何在不出现问题的情况下删除警报并迁移到2013年7月版?

谢谢你的帮助!

塞巴斯蒂安

facebook facebook-javascript-sdk cordova

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

边用 Graphviz 和 Dot 指向边

我想在graphviz使用该dot格式时将一条边指向另一条边。

到目前为止我得到了什么:

digraph G {
    Hello->dummy;
    dummy->World;
    dummy[shape=point width=0];
    Test->dummy;
}
Run Code Online (Sandbox Code Playgroud)

产生

当前状态

我想得到的是与此更相似的东西:

在此处输入图片说明

任何想法如何做到这一点?

graph dot graphviz

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

使用Jenkins,Stash和Artifactory构建CI/CD的管道

我不确定我是否可以在第一个问题中提供足够的信息,但我会尝试:

在我的公司,我们使用Stash.我的项目是一个多存储库项目(Client,Server,Common).我们使用Gitflow作为分支模型.模块本身都是Java,通过Ant构建,ivy用于依赖管理.到目前为止,我们"仅"使用我们的Jenkins实例来运行我们的测试并执行静态代码分析,因为我们的构建过程需要在专用环境中执行构建.因此,我们有一个Jenkins实例设置来从开发构建.公共项目是服务器和客户端项目之间的共享依赖项.因此,我们的Jenkins项目设置为common→{server,client}之间的下游依赖关系.公共项目包含一个构建后任务,用于在公司内部工件(JFrogg)中发布构建公共项目.然后在执行客户端和服务器jenkins项目(常春藤)期间使用它.

好的,我希望这能给出一个很好的概述.现在我的实际问题:

我们正在玩jenkins的Stash Pull请求插件,以便在我们为它们生成拉取请求时为我们的功能分支运行构建.但是,由于我们设置了依赖项,我想实现以下目标:

1)如果我们在Common和(Client或Server)中有相同票证的功能分支(Jira票号在分支中使用) - 首先构建公共 - 在附加jira票号的artifactory上发布common - 使用正确构建下游pull请求依赖(使用刚出版的构建对特定分支的artifactory)

2)如果我们只在公共项目中有一个功能分支 - 构建公共 - 在附加了jira票号的工件上发布公共 - 构建具有上述依赖性的下游开发分支(使用刚刚发布的具有特定分支的工件构建)

3)如果我们只在下游项目中有一个功能分支: - 使用已发表的工件的公共项目在服务器/客户端上构建功能分支.

使用默认设置(已经可以使用),我们实际上现在为所有构建做最后一个选项,一旦我们在客户端或服务器项目使用的公共项目中引入新功能,就会导致问题,因为功能分支将始终失败,直到我们合并功能分支并执行一次构建.

所以我想到了这样的解决方案:

  • 在公共构建上,使用附加的分支信息在artifactory上发布构建.
  • 在公共构建上,触发客户端和服务器构建为下游依赖项
  • 在下游项目中尝试使用相同功能分支中的Dependency for common,如果这不可用,则回退到开发版本.

有没有人知道这类问题的解决方案,或者可以指出我如何解决这个问题的方向?

非常感谢你的帮助,感谢抱歉.

最好,

塞巴斯蒂安

continuous-integration artifactory continuous-deployment jenkins bitbucket-server

5
推荐指数
0
解决办法
515
查看次数

如何在CLI生成的phonegap应用程序中使用plugman插件

我刚开始使用新的Phonegap应用程序和一些测试.我想使用MapKit -Plugin https://github.com/imhotep/MapKit.

我创建了一个新的应用程序phonegap create Test.

下一步:

cd Test
phonegap build ios
phonegap build android
plugman --platform android \
    --project . \
    --plugin https://github.com/imhotep/MapKit.git \
    --variable API_KEY="xxxxx"

Error: ENOENT, no such file or directory '/Users/User/Entwicklung/2.0/prototypes/Test/AndroidManifest.xml'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.openSync (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/node_modules/glob/node_modules/graceful-fs/graceful-fs.js:68:26)
at Object.fs.readFileSync (fs.js:284:15)
at Object.module.exports.parseElementtreeSync (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/util/xml-helpers.js:144:27)
at androidPackageName (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:131:28)
at handlePlugin (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:41:24)
at Object.module.exports.install (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:30:9)
at runInstall (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/install.js:110:13)
at /usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/install.js:28:17
at /usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/util/plugins.js:105:31
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

谢谢!

command-line-interface mapkit cordova

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

BufferedImage getScaledInstance改变图片的亮度

我使用这段代码将Image绘制到Graphics组件中.如果图像足够大,它应该将图像调整到可用的最大空间:

    // getWidth() = component width, image.getWidth() = image width
    double w = getWidth() * 1.0 / image.getWidth();
    double h = getHeight() * 1.0 / image.getHeight();
    if (w < 1 || h < 1) {
        double d = Math.min(Math.min(w, h), 1);
        g.drawImage(bi.getScaledInstance((int) (d * image.getWidth()), (int) (d * image.getHeight()), Image.SCALE_REPLICATE), 0, 0, null);
    } else {
        g.drawImage(bi, 0, 0, null);
    }
Run Code Online (Sandbox Code Playgroud)

代码工作,图像正确缩放.但不幸的是,当图像缩放时,图像的亮度也会在图形上发生变化!

有谁知道这可能来自哪里?我附加了屏幕的缩放(第一个)和未缩放版本.

我希望有人可以帮助我!

干杯! 塞巴斯蒂安

使用<code> getScaledInstance </ code>缩放图像 没有<code> getScaledInstance </ code>

java swing bufferedimage brightness

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

删除内核扩展,该扩展会在迁移到其他 Mac 后导致内核崩溃

我将 mac book pro 迁移到了 mac mini。现在我每次启动时都会出现内核恐慌。使用安全模式启动可以正常工作,我发现内核扩展com.eltima.eveusb.kext.controller导致了问题。它来自 Mac 版 USB Network Gate应用程序,不幸的是我安装了一次来测试它。

我已经在 中搜索了内核扩展/System/Library/Extensions,但找不到任何匹配的扩展。

我怎样才能删除这个扩展(如上所述,应用程序本身已经被卸载)。

下面我附上了内核恐慌报告的一些部分。

非常感谢你的帮助。

Kernel Extensions in backtrace:
     com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff7f8e2ba000->0xffffff7f8e2e2fff
     com.eltima.eveusb.kext.controller(2.0)[1C357F99-D355-3B55-890B-96E70B8231B1]@0xffffff7f8fa57000->0xffffff7f8fa74fff
        dependency: com.apple.iokit.IOUSBFamily(650.4.4)[972D3024-AF9C-3E09-A9EC-D9AB2A559B38]@0xffffff7f8e743000
        dependency: com.apple.iokit.IOPCIFamily(2.8)[447B4896-16FF-3616-95A2-1C516B2A1498]@0xffffff7f8e2ba000
        dependency: com.apple.iokit.IOUSBUserClient(650.4.4)[FC4B241E-C861-3821-B0D0-03DD648D8D9A]@0xffffff7f8e7c2000

...
System uptime in nanoseconds: 62692972204
last loaded kext at 62359499086: com.eltima.eveusb.kext.controller  2.0.0 (addr 0xffffff7f8fa57000, size 122880)
loaded kexts:
com.eltima.eveusb.kext.controller   2.0.0
com.eltima.eveusb.kext.arbiter  2.0.0
com.shapeservices.msm.driver.MSMFramebuffer 3.3.2
com.shapeservices.msm.driver.MSMVideoDevice 3.3.2
com.apple.driver.AudioAUUC  1.60
com.apple.driver.AppleHDAHardwareConfigDriver   2.5.3fc1
com.apple.driver.AppleMikeyHIDDriver    124
com.apple.driver.AGPM   100.14.11
com.apple.driver.ApplePlatformEnabler   2.0.9d1
com.apple.driver.X86PlatformShim    1.0.0
com.apple.driver.AppleHDA   2.5.3fc1
...
Run Code Online (Sandbox Code Playgroud)

macos kernel kernel-extension osx-mavericks macos-big-sur

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