小编Oyb*_*bek的帖子

Visual Studio 2012 Pro Power Tools类/方法名称悬停工具提示

我为Visual Studio 2012安装了Productivity Power Tools,我想一个功能要么丢失要么关闭了.我的意思是在对类名和方法名称进行操作时出现的工具提示.这是我的意思的屏幕.这是来自VS 2010.

名称悬停 扩展

如何在Visual Studio 2012中打开相同的功能,或者只是从此版本的IDE中删除它?

visual-studio productivity-power-tools visual-studio-2012

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

在这种情况下无法获得响应

我有问题.本地一切正常,但在生产服务器中,它总是抛出异常'响应在此上下文中不可用'.可能是什么问题?我注意到由于global.asax的一些变化,很多人都遇到了这个问题.这是global.asax的代码,与应用程序启动相关的部分.

    protected void Application_Start() {
        AreaRegistration.RegisterAllAreas();
        RegisterRoutes(RouteTable.Routes);
        Application["SystemUser"] = TUser.GetUserByIdentifier("system").UID;
        InitializeSolrInstances();
        SearchIndexer.DoIndex();
        StartRatingTimer();
        SolrManager.RecalculateMostRequested();
    }

    private static void InitializeSolrInstances() {
        SolrConfigurationManager.InitSolrConnection<OfferItemPresenter>(Resources.ApplicationResources.SolrServiceURL + "/offer");
        SolrConfigurationManager.InitSolrConnection<SavedQueryItemPresenter>(Resources.ApplicationResources.SolrServiceURL + "/savedquery");
        SolrConfigurationManager.InitSolrConnection<TopProductsPresenter>(Resources.ApplicationResources.SolrServiceURL + "/topproducts");
        SolrConfigurationManager.InitSolrConnection<TopSellersPresenter>(Resources.ApplicationResources.SolrServiceURL + "/topsellers");
        SolrConfigurationManager.InitSolrConnection<MostRequestedItemPresenter>(Resources.ApplicationResources.SolrServiceURL + "/mostrequested");
        SolrConfigurationManager.InitSolrConnection<MostRequestedQuery>(Resources.ApplicationResources.SolrServiceURL + "/requestedquery");
    }

    private void StartRatingTimer() {
        _LastRatingRenewedTime = DateTime.Now;
        DateTime CurrentTime = DateTime.Now;
        DateTime StartTime = new DateTime(2011, 1, 1);
        GlobalSettings.ReIndexMainSolrCores(StartTime, CurrentTime);
        Timer OfferAndUserRatingRenewerTimer = new Timer() {
            /*Timer interval for 24 hours*/
            Interval = 24 * 60 * 60 * 1000, Enabled …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net-mvc solrnet

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

openfire获得在线用户

我在客户端上使用OpenFire服务器进行即时消息传递和JSJaC JavaScript库.我是XMPP技术的新手.
我想要的是加载我想发送一个用户列表并接收每个用户的状态.就像是

$(function(){
    var UserList = ["Isis", "Jackob", "Oybek"];
    con.send(UserList, OnComplete);
});


function OnComplete(myList){
    for (el in myList)
        if (el.IsOnline) {
            // Do DOM Stuff
        }
}
Run Code Online (Sandbox Code Playgroud)

可能吗?
我一直在寻找文档,示例和其他类似的响应,但没有找到任何.

xmpp openfire

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

地理坐标转换器

我想要一个可以将一个系统转换为另一个系统的类.

我在python中找到了一个源代码,并尝试将其移植到C#中.

这是python源码.从这里

import math

class GlobalMercator(object):

    def __init__(self, tileSize=256):
        "Initialize the TMS Global Mercator pyramid"
        self.tileSize = tileSize
        self.initialResolution = 2 * math.pi * 6378137 / self.tileSize
        # 156543.03392804062 for tileSize 256 pixels
        self.originShift = 2 * math.pi * 6378137 / 2.0
        # 20037508.342789244

    def LatLonToMeters(self, lat, lon ):
        "Converts given lat/lon in WGS84 Datum to XY in Spherical Mercator EPSG:900913"

        mx = lon * self.originShift / 180.0
        my = math.log( math.tan((90 + lat) * math.pi / 360.0 …
Run Code Online (Sandbox Code Playgroud)

c# python gis

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

通过ExitActions中的动画恢复到初始状态

我为选项卡控件制作了一个模板.它的作用是在鼠标悬停时采用边框和动画的背景.

当鼠标离开时,它应该从Background属性中读取当前值并相应地设置它们.

<MultiTrigger>
    <MultiTrigger.Conditions>
        <Condition Property="IsSelected" Value="false"/>
        <Condition Property="IsMouseOver" Value="true"/>
    </MultiTrigger.Conditions>
    <MultiTrigger.EnterActions>
        <BeginStoryboard>
            <Storyboard>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[0].Color" To="#003372" 
                                Duration="0:0:0.2"/>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[1].Color" To="#025092" 
                                Duration="0:0:0.2"/>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[2].Color" To="#003372" 
                                Duration="0:0:0.2"/>
            </Storyboard>
        </BeginStoryboard>
    </MultiTrigger.EnterActions>
    <MultiTrigger.ExitActions>
        <BeginStoryboard>
            <Storyboard>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[0].Color" To="{TemplateBinding Background.GradientStops[0].Color}" 
                                Duration="0:0:0.2"/>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[1].Color" To="{TemplateBinding Background.GradientStops[1].Color}" 
                                Duration="0:0:0.2"/>
                <ColorAnimation Storyboard.TargetName="Bd" 
                                Storyboard.TargetProperty="Background.GradientStops[2].Color" To="{TemplateBinding Background.GradientStops[2].Color}" 
                                Duration="0:0:0.2"/>
            </Storyboard>
        </BeginStoryboard>
    </MultiTrigger.ExitActions>
</MultiTrigger>
Run Code Online (Sandbox Code Playgroud)

问题是

To="{TemplateBinding Background.GradientStops[0].Color}"部分不起作用.我应该在那里写什么?

wpf animation templatebinding

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

通过远程桌面更改Windows Azure Web角色不会传播

我在Windows Azure上部署了一个Web角色.它仅在一个实例上运行.我设置了远程桌面来访问它.

目前我需要在网站的JavaScript文件中只更改两行.

我连接到实例然后......

  1. 导航到E:\ approot\Scripts
  2. 打开目标文件,编辑它

变化没有传播.(我下载旧内容)

然后我试着

  1. 在Web角色中停止IIS
  2. 编辑文件
  3. 再次启动IIS

更改没有传播(当我在RD中打开文件时,我看到了我的新内容,但是当通过http打开我看到旧内容时)

然后我试了一下

  1. 打开RD
  2. 导航到该文件并进行编辑
  3. 通过Windows Azure控制面板重新启动实例
  4. 再次连接到RD

我仍然看到远程服务器中的旧内容

我的问题是,为了在不重新部署整个包的情况下只更改一个文件,我该怎么做?

deployment azure azure-web-roles

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