小编Bjø*_*ten的帖子

如何在我的手机上拨打来电,触发我的电脑上的操作

我有一个特定的场景,但我会问这个:

有没有办法让我的手机触发我的电脑上的动作?我认为使用智能手机必须能够将手机和个人电脑与蓝牙连接起来,并在我的电脑上运行某种小程序,以便在手机上收听来电.当有人给我打电话时,我希望我的手机只需将来电者的电话号码提交给个人电脑,然后个人电脑就会从那里开始做.然后,我想像往常一样在手机上处理电话.

编辑:

更新了这个问题!我目前正在使用HTC Hero,希望Android SDK能够让这更容易实现.

我的具体情况是:

当我的手机(诺基亚N82)拨打电话时,我想将呼叫者提交phonenumber到搜索小程序/应用程序,该小程序/应用程序将查询Microsoft Dynamics CRM并查看联系人或公司是否具有该功能phonenumber,如果有,则显示相应的人员或公司我的屏幕上的信息.我首选的开发平台是.NET Framework.

.net mobile android bluetooth phone-call

17
推荐指数
2
解决办法
4469
查看次数

如何在cshtml视图中使用WebGrid?

我可以在任何控制器中使用WebGrid,例如:

var grid = new WebGrid(emailsFetched, columnNames);

我必须在我的ASP.NET MVC项目中添加一个引用System.Web.Helpers.

但是当我尝试直接在视图中使用这个网格时(为了避免控制器中的实例化和其他设置),它说:The type or namespace 'WebGrid' cannot be found.好的,我也尝试在这里添加一个引用:

@using System.Web.Helpers 但这引发了另一个问题:

There is no build provider registered for the extension '.cshtml'. You can register one in the <compilation><buildProviders> section in the machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.

这很奇怪......我在网上看到了足够的例子,它们正在使用WebGrid并且不必在cshtml视图中声明任何内容......

你能告诉我怎么解决这个问题吗?或者为什么我遇到这个非常丑陋的问题?

asp.net-mvc webgrid razor

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

Visual Studio 2013社区版缺少哪些功能?

微软最近宣布发布Visual Studio 2013社区版,他们声称这是一个全功能的IDE.

实际上,他们提到了附加支持(例如ReSharper)等功能,这些功能是Express Edition中的主要功能差距.

他们不清楚Community Edition没有的功能.VS版本有一个比较,但它似乎不包括Community Edition.

Community Edition没有哪些功能,至少还有一个其他Visual Studio 2013版本?

ide visual-studio-2013

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

我可以在PHP会话变量中安全地存储用户名和密码吗?

我想在REST api之上创建一个轻量级的webapp,用户应该只对其进行一次身份验证,从那时起,所有针对web api的请求都希望通过以某种方式保持用户名和密码来完成.

我已经创建了一个工作原型,如果对REST api的第一个请求成功,我将用户名和密码存储在会话变量中,从那时起,每个请求都是从会话变量中获取的auth信息.到现在为止还挺好.

通过这种方法,我意识到有权访问服务器的人将能够读取密码.PHP中是否有某种方法可以使用适当的安全性来遵循我的方法?

更新一些更多细节:

这里的预期目标是基于使用不同的数据查询而不是让用户为每次尝试输入他的用户名和密码来对从API检索的数据进行可视化.所以API完全是无状态的,但是带有gui的web应用程序应该是statefull.

在这种情况下,我无法控制Rest API,因此每个请求都将始终要求使用基本身份验证发送API用户名和密码,没有其他方案,如API密钥,会话令牌或类似的东西.这就是为什么我必须在用户会话持续时保留用户名和密码,并且我想知道将它们存储在会话变量中的方法是否可以被认为是安全的.

php security rest

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

在Gitlab实例之间迁移回购

由于我的旧安装Gitlab太难升级(Thread on TKL支持论坛:http://www.turnkeylinux.org/forum/support/20120913/upgrading-gitlab),我已经下载了当前的TKL Gitlab发行版,并且遵循Gitlabs标准升级路径,这样我现在可以使用TKLBAM运行完全升级的Gitlab 6.1安装以及所有好东西.到现在为止还挺好.

但是,事实证明我们旧版本的gitlab没有提供HTTP url到repos,所以这意味着我不能在Gitlab 6.1中使用"导入现有存储库"功能

我知道我可以简单地将旧的Git存储库从旧VM复制到新VM,但是如何在新VM上的Gitlab中显示这些存储库?

linux migration git repository gitlab

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

Java客户端到WCF服务互操作与相互证书 - 无法解析KeyInfo以验证签名

异常:MessageSecurityException:无法解析用于验证签名的KeyInfo:KeyInfo'SecurityKeyIdentifier

我必须设置一个WCF服务来接收来自Java客户端的SOAP调用,该客户端使用以下标头发送签名内容:

<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
  <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-2">
    <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
      <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
      <ds:Reference URI="#id-3" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
          <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
        <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">…</ds:DigestValue>
      </ds:Reference>
      <ds:Reference URI="#Timestamp-1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
          <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
        </ds:Transforms>
        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
        <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">…</ds:DigestValue>
      </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      …
    </ds:SignatureValue>
    <ds:KeyInfo Id="KeyId-66FC0491F2BB65AFF813274134607712" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
      <wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="...." xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
          <ds:X509IssuerSerial xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
            <ds:X509IssuerName xmlns:ds="http://www.w3.org/2000/09/xmldsig#">CN=XXXXXXXX</ds:X509IssuerName>
            <ds:X509SerialNumber xmlns:ds="http://www.w3.org/2000/09/xmldsig#">111122222</ds:X509SerialNumber>
          </ds:X509IssuerSerial>
        </ds:X509Data>
      </wsse:SecurityTokenReference>
    </ds:KeyInfo>
  </ds:Signature>
  <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1">
    <wsu:Created>xxxxx</wsu:Created>
    <wsu:Expires>xxxx</wsu:Expires>
  </wsu:Timestamp></wsse:Security></soap:Header>
Run Code Online (Sandbox Code Playgroud)

我尝试过设置以下绑定和行为:

      <customBinding> …
Run Code Online (Sandbox Code Playgroud)

java wcf interop x509certificate x509

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

在dev pc上最小化安装SQL Server 2012

我的新开发电脑明天到货,我正在组装我将要安装的软件套件.

遗憾的是SQL服务器仍然是一个要求,我正在安装Sql 2012 Standard,因为Developer Version是Sql Server Enterprise的一个特殊版本,在某些情况下它可能是不兼容的.

所以问题是:如何在开发的PC上安装SQL Server,在计算机上留下最小的占用空间,同时仍然提供一个完全可用的开发环境?

sql-server development-environment

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

在 Team City 上构建时,命名空间“System.Data.Entity”中不存在“Validation”

我有一个在我的计算机上运行良好的项目,但是当我尝试在 Team City 上构建它时,我收到以下源文件的构建错误

using System.Data.Entity;    
using System.Data.Entity.Validation;


CS0234: The type or namespace name 'Validation' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?)
Run Code Online (Sandbox Code Playgroud)

我是否需要在运行 Team City 的服务器上手动安装 Entity Framework 才能使其正常工作?

激活 Nuget 还原后更新:

这一定是某种配置问题。

我可以在构建日志中看到构建过程正在复制 .dll:

[Copy] Copying file from "D:\TeamCity\agent1\work\541c9f462afc285d\packages\EntityFramework.5.0.0\lib\net45\EntityFr    amework.dll" to "bin\Release\EntityFramework.dll".
[16:51:55][Copy] Copying file from "D:\TeamCity\agent1\work\541c9f462afc285d\packages\EntityFramework.5.0.0\lib\net45\EntityFramework.xml" to "bin\Release\EntityFramework.xml".
Run Code Online (Sandbox Code Playgroud)

但不久之后,它正在考虑一堆不同的位置,但不包括 bin\Release\EntityFramework.dll”文件夹。

更新 2:

手动将 .dll 复制到我的类库的 bin/release 文件夹有助于构建通过,但显然这不是可行的解决方案,因此需要继续找出如何正确配置它。

更新 3:

从来没有找到这样的令人满意的解决方案,我痛心地说,这样就可以解决这个问题是非常欢迎任何天才。:)

c# teamcity continuous-integration entity-framework assembly-references

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