小编mis*_*ing的帖子

退出Xcode Server CI Bot测试会话(-1)

尝试在XcodeServer上针对模拟器设备运行测试时出错.测试有时会传递给一个设备而另一个设备会失败,但是失败的设备并不总是相同的.这可以在单个会话中发生.

日志文件错误如下:

2015-03-23 10:44:11.029 Initializing test infrastructure.
2015-03-23 10:44:11.029 Writing testing status log to /Library/Developer/XcodeServer/Integrations/Integration-7e6e54f21a2fd25cddc9df0436cb3688/Session-2015-03-23_10:44:10-tH1BD4.log.
2015-03-23 10:44:28.676 Launch session started, setting a disallow-finish-token on the run operation.
2015-03-23 10:44:30.352 Adding console adaptor for test process.
2015-03-23 10:44:39.566 Creating the connection.
2015-03-23 10:44:39.567 Listening for proxy connection request from the test bundle (all platforms)
2015-03-23 10:44:39.567 Resuming the connection.
2015-03-23 10:44:39.567 Test connection requires daemon assistance.
2015-03-23 10:44:39.568 Checking test manager availability..., will wait up to 120s
2015-03-23 10:45:05.253 testmanagerd handled …
Run Code Online (Sandbox Code Playgroud)

continuous-integration bots ios xcode-server

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

Chrome中与Windows规模相关的拖放问题(125%)

我在Chrome上有拖放问题(v69.0.3497.100).具体来说,当Windows缩放不是100%时,一些拖放事件会被触发,即使它们不应该被触发.

查看stackblitz示例,并尝试在其自身上拖动"蓝色"矩形(只需拖动,向下移动一点并放下).如果Windows缩放设置为100%(浏览器缩放也是100%),则会dragEnter按预期触发一个事件()(检查控制台).但是,如果Windows缩放设置为125%(但浏览器缩放仍为100%),则会触发三个事件(两个dragEnter和一个dragLeave),并且我预计只有一个事件被触发,因为元素被拖放到自身上(如这是100%规模水平的情况).

可能是因为这是Windows缩放(而不是浏览器的缩放),左边("lightred")矩形比它看起来更大,并且它在右边的矩形下面,并且事件传播到它,尽管我无法证明因为检查员中的所有元素都具有正确的大小.

在最新的Firefox,IE或Edge中似乎没有发生这种情况.

有谁知道为什么会发生这种情况以及如何解决这个问题?

谢谢.

html javascript drag-and-drop google-chrome

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

使用 React 在 Material-UI 中的特定日期做一些标记

我试图在Material-UI 的文档中找到它,但我失败了。

所以我在问是否可以标记一些日期,比如使用 React 中的 Material-UI 标记 Google 日历中的事件。

[This is my code](https://pastebin.com/UKMYzKxY)
Run Code Online (Sandbox Code Playgroud)

我的完整代码中的日历:

这是我想做的:

reactjs material-ui

5
推荐指数
2
解决办法
4190
查看次数

有角。使子级宽度为弹性父级的 100%

我有一个 Angular 组件,带有一个主 flex divmain-container和一个 child box。我希望子级位于父级的中心,并且具有父级宽度的 100%。下面的代码片段显示我的代码正在运行,但在 Angular 中,宽度box是 80px(由填充制成)。

.main-container {
    width: 100%;
    min-height: 100vh;
    padding: 15px;
    background: linear-gradient(-135deg, #c850c0, #4158d0);
    display: flex;
    justify-content: center;
    align-items: center;
}
.box {
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}
Run Code Online (Sandbox Code Playgroud)
<div class="main-container">
  <div class="box">
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

这是我的 Angular 页面的样子的照片:

有问题的角度页面

非常感谢!

html css flexbox angular

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

CSS variable defined with !important flag disappears in angular production mode

I have an issue with CSS variable (defined using var() syntax) with !important flag disappearing when Angular project is build in production mode (using ng build --prod). Specifically, in my scss file I have something like this:

.all-borders {
  border: 3px solid var(--primary) !important;
  // in "development" build this is correctly compiled to:  "border:1px solid var(--primary)!important"
  // in "production" build this is incorrectly compiled to: "border:1px solid!important"
}

.window {
  height: 100px;
  width: 100px;
  background-color: cadetblue;
}
Run Code Online (Sandbox Code Playgroud)

and in …

css css-variables angular

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

显示STL数据时缺少面

我为ASCII STL格式编写了一个简单的解析器.当我尝试使用提供的法线渲染三角形时,生成的对象缺少许多面:

它应该是这样的:

我已经尝试过的:

  • 明确禁用背面剔除(虽然它之前不应该是活动的)
  • 确保启用深度缓冲区

这是一个重现错误的最小示例程序:

 #include <SDL2/SDL.h>
 #include <SDL2/SDL_main.h>
 #include <SDL2/SDL_render.h>
 #include <SDL2/SDL_opengl.h>

int main(int argc, char **argv) {
    SDL_Init(SDL_INIT_VIDEO);
    int screen_w=1280,screen_h=720;
    SDL_Window * win = SDL_CreateWindow("test", 20, 20, screen_w, screen_h,
            SDL_WINDOW_OPENGL);
    SDL_GLContext glcontext = SDL_GL_CreateContext(win);


    STLParser stlparser;
    std::ifstream file(".\\logo.stl");
    stlparser.parseAscii(file);
    const auto& ndata = stlparser.getNData();
    const auto& vdata = stlparser.getVData();
    std::cout << "number of facets: " << ndata.size() << std::endl;

    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);


    glMatrixMode(GL_PROJECTION | GL_MODELVIEW);
    glLoadIdentity();
    glScalef(1.f, -1.f, 1.f);
    glOrtho(0, screen_w, 0, screen_h, -screen_w, screen_w);

    glClearDepth(1.0f);
    glDepthFunc(GL_LEQUAL); …
Run Code Online (Sandbox Code Playgroud)

c++ opengl

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

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

在 Firebase 上部署 Angular 8 Universal (SSR) 应用程序

我最近将我的 Angular 8 应用程序升级为通用应用程序 (SSR)。在它成为 SSR 应用程序之前,我已将其部署到 Firebase,但后来我发现使用常规 Firebase 托管无法在 Firebase 上部署 SSR 应用程序。我做了一些研究,发现我必须使用Firebase Cloud Functions

我使用以下方法创建了一个 SSR 应用程序:

ng add @nguniversal/express-engine --clientProject PROJECT_NAME
Run Code Online (Sandbox Code Playgroud)

PROJECT_NAME可以在angular.json下面的文件中找到"projects"

谁能帮我这个?

firebase google-cloud-functions angular-universal angular

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

将 ASP.Net Core 2 标识与 Azure Ad 单租户身份验证结合使用

我想从社区获得帮助解决一个我不明白的问题。我创建了 asp.net core 2 web 应用程序,我想将应用程序配置为能够通过 aspnetuser 表或使用O365 公司帐户从应用程序登录。然后我遵循了 MSDN 网站上包含的网络上描述的多种技术。应用程序身份验证工作正常,但 Azure 添加返回:加载外部登录信息时出错。 我通过生成身份视图检查了代码内部,该应用程序失败:

 var info = await _signInManager.GetExternalLoginInfoAsync();
        if (info == null)
        {
            ErrorMessage = "Error loading external login information.";
            return RedirectToPage("./Login", new { ReturnUrl = returnUrl });
        }
Run Code Online (Sandbox Code Playgroud)

等待 _signInManager.GetExternalLoginInfoAsync(); 返回 null 并返回错误消息。

该应用程序在 azure AD 中正确配置,如果我从应用程序中删除身份验证,它可以从我的应用程序中运行。

我配置了我的应用程序中间件如下:

public void ConfigureServices(IServiceCollection services)
    {
        services.Configure<CookiePolicyOptions>(options =>
        {
            // This lambda determines whether user consent for non-essential cookies is needed for a given request.
            options.CheckConsentNeeded = …
Run Code Online (Sandbox Code Playgroud)

asp.net-identity azure-active-directory asp.net-core

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

颤振mainaxisAlignment.space甚至无法在多个flex(行和列)上使用

我正在创建类似Instagram个人资料的屏幕,但mainaxisAlignment.spaceEvenly无法正常工作。如果该行不在任何其他行或列内,则工作正常,但在这种情况下则没有。我该如何解决?请帮忙。

Container(
                margin: EdgeInsets.all(15.0),
                child: Column(
                  children: <Widget>[
                    Row(
                      children: <Widget>[
                        Container(
                          width: 100.0,
                          height: 100.0,
                          margin: EdgeInsets.only(
                            right: 10.0,
                          ),
                          decoration: new BoxDecoration(
                            shape: BoxShape.circle,
                            image: new DecorationImage(
                              fit: BoxFit.fill,
                              image: new CachedNetworkImageProvider(
                                profile.dp,
                                scale: 100.0,
                              ),
                            ),
                          ),
                        ),
                        Column(
                          children: <Widget>[
                            Row(
                              mainAxisAlignment:
                                  MainAxisAlignment.spaceEvenly,
                              children: <Widget>[
                                Column(
                                  children: <Widget>[
                                    Text(
                                      profile.postcount.toString(),
                                      style: TextStyle(
                                          fontWeight: FontWeight.bold),
                                    ),
                                    Text('posts'),
                                  ],
                                ),
                                Column(
                                  children: <Widget>[
                                    Text(
                                      profile.followers.toString(),
                                      style: TextStyle(
                                          fontWeight: FontWeight.bold),
                                    ),
                                    Text('followers'),
                                  ],
                                ),
                                Column(
                                  children: <Widget>[ …
Run Code Online (Sandbox Code Playgroud)

flutter

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

如何删除工具栏中的设置?

如何删除设置

我只想删除设置点而不影响工具栏中的其他属性。我在这里可以做什么是我的清单的一部分:

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/AppTheme.AppBarOverlay">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/AppTheme.AppBarOverlay" />

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main_met_calc" />
Run Code Online (Sandbox Code Playgroud)

settings android toolbar

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

Angular 6 分页与 ng-bootstrap 从 Api 获取的数据

有人可以帮我修复我的分页代码吗?

有一个服务:

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable ()

export class MovieRequestService {
  private moviesList = `https://yts.am/api/v2/list_movies.json`;
  private movieDetails = `https://yts.am/api/v2/movie_details.json`;
  constructor(private myHttp: HttpClient )  {

  }

  getListOfMovies(page: number, collectionSize: number): any {
    return this.myHttp.get(`${this.moviesList}?limit=${collectionSize}&page=${page}`);
  }
  getMovieDetails(id: number): any {
    return this.myHttp.get(`${this.movieDetails}?movie_id=${id}&with_images=true&with_cast=true`);
  }
}
Run Code Online (Sandbox Code Playgroud)

第二个文件是组件:

import { Component, OnInit } from '@angular/core';
import { MovieRequestService } from '../../shared/services/movie-request.service';
import { HttpClient} from '@angular/common/http';
import { ContentChild } from '@angular/core';
import { NgbPagination } …
Run Code Online (Sandbox Code Playgroud)

javascript angular

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