~/src/go-statsd-client> echo $GOPATH
/Users/me/gopath
~/src/go-statsd-client> echo $GOROOT
/usr/local/Cellar/go/1.1.1\
~/src/go-statsd-client> go install
go install: no install location for directory /Users/me/src/go-statsd-client outside GOPATH
Run Code Online (Sandbox Code Playgroud)
无论项目采用何种结构,总是会失败并显示相同的消息.Go build非常有效.
这是我的 go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/me/gopath"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.1.1"
GOTOOLDIR="/usr/local/Cellar/go/1.1.1/pkg/tool/darwin_amd64"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-common"
CGO_ENABLED="1"
Run Code Online (Sandbox Code Playgroud)
这是在Mac OSX Mountain Lion上,并且安装了自制软件.
我已经知道真正的用户ID.它是系统中用户的唯一编号.在我的系统中,My uid是
$ echo $UID
1014
$
Run Code Online (Sandbox Code Playgroud)
另外两个ID代表什么?什么是有效用户ID和保存的用户ID的使用以及我们在系统中使用它的位置.
尝试在Android Studio上构建项目时出现以下错误:
错误:方法无签名:com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask()适用于参数类型:(java.lang.String)值:[DevDebug]
如何解决呢?
android build-error crashlytics-android build-variant android-studio-3.3
这个问题来自material2 github repo https://github.com/angular/material2/issues/4422#issuecomment-300309224
我仍然有问题来设置包装在自定义组件中的材质组件.
我有一个<logo>
包含的组件<md-icon svgIcon="logo"></md-icon>
加入
:host {
.mat-icon {
width: 100px;
height: 100px;
font-size: 56px;
}
}
Run Code Online (Sandbox Code Playgroud)
不适用于我的自定义组件中的材质组件
我正在尝试使用角度材料2创建一个导航栏,它在移动设备和平板电脑等小屏幕中折叠.我只能找到md-button而不是md-menu-bar,就像在角度材料中一样
我正在尝试通过新的"providedIn"属性提供解析服务.
这是我在受保护模块中使用的翻译解析器:
import { Injectable } from '@angular/core';
import { Observable , pipe } from 'rxjs';
import {map} from "rxjs/operators";
//This is causing: "WARNING in Circular dependency detected:"
import {ProtectedModule} from "../../../protected/protected.module";
import { HttpHandlerService } from '../../http/http-handler.service';
@Injectable({
providedIn: ProtectedModule //Over here (I need the import for this line)
})
export class TranslationsResolverService {
constructor(private _httpHandlerService : HttpHandlerService) { }
resolve(): any {
//Do Something...
}
}
Run Code Online (Sandbox Code Playgroud)
我在受保护的路由模块中声明了翻译解析器服务:
import { NgModule } from '@angular/core';
import {RouterModule, Routes} from '@angular/router'; …
Run Code Online (Sandbox Code Playgroud)我找到了几个关于这个问题的网页,但没有一个解决了我的问题.
即使我做了:
pip show
Run Code Online (Sandbox Code Playgroud)
我明白了:
/usr/local/lib/python2.7/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.9.1) or chardet (2.3.0) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2691, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2322, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2328, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
from pip.vcs import git, mercurial, subversion, …
Run Code Online (Sandbox Code Playgroud) 我有一个应用程序,它根据定义的边界在GoogleMaps中随机生成位置.所以我首先生成一个随机的LatLng,然后我验证这个点是否在我的边界内.如果是,它是有效的.
Builder builder = new LatLngBounds.Builder();
double antartica[] = {-62.5670958528642, -59.92767333984375, -62.584805850293485, -59.98260498046875, -62.61450963659083};
for (int i = 0; i < antartica.length; i++) {
builder.include(new LatLng(antartica[i],antartica[++i]));
}
pAntarctica = builder.build();
LatLng point = generateRandomPosition();
if(isWithinBoundaries(point))
return point;
else
return getValidPoint();
Run Code Online (Sandbox Code Playgroud)
所以在此之后,我最终得到了有效点.我的问题是,Google地图中的有效点在StreetView中不一定有效.可能会发生这个随机点在地球上的某个地方尚未映射到StreetView中.我也需要它在那里有效.
我知道您可以通过以下链接使用JavaScript API v3来完成此操作:https: //developers.google.com/maps/documentation/javascript/reference#StreetViewService
你会做这样的事情:
var latLng = new google.maps.LatLng(12.121221, 78.121212);
streetViewService.getPanoramaByLocation(latLng, STREETVIEW_MAX_DISTANCE, function (streetViewPanoramaData, status) {
if (status === google.maps.StreetViewStatus.OK) {
//ok
} else {
//no ok
}
});
Run Code Online (Sandbox Code Playgroud)
但我希望只使用Android来做到这一点.我顺便使用Google Play Services API,而不是 Google Maps …
daemon 和 service 和有什么不一样?(在 Windows 或 Linux 中)。
尝试运行YML文件时出现以下错误: -
Ansible版本:1.9.2
user @ ubuntuA:〜$ ansible-playbook -i hostfile setup.yml
错误:apt不是Ansible Play的合法参数
YML文件: -
user@ubuntuA:~$ ansible-playbook -i hostfile setup.yml
Run Code Online (Sandbox Code Playgroud)