我在这方面很新,但我正在尝试推送到master我的存储库中的分支,而我想要推送的分支刚刚超过1GB.源树回来时出现以下错误:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (chunked)
error: unable to rewind rpc post data - try increasing http.postBuffer
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
Completed with errors, see above.
Run Code Online (Sandbox Code Playgroud)
我做错了什么,这意味着什么?
我的问题是捕获用户注销.我所拥有的代码是:
public function onAuthenticationFailure(Request $request, AuthenticationException $exception){
return new Response($this->translator->trans($exception->getMessage()));
}
public function logout(Request $request, Response $response, TokenInterface $token)
{
$empleado = $token->getUser();
$log = new Log();
$log->setFechalog(new \DateTime('now'));
$log->setTipo("Out");
$log->setEntidad("");
$log->setEmpleado($empleado);
$this->em->persist($log);
$this->em->flush();
}
public function onLogoutSuccess(Request $request) {
return new RedirectResponse($this->router->generate('login'));
}
Run Code Online (Sandbox Code Playgroud)
问题是,TokenInterface当您运行注销功能时,我无法访问用户令牌?
我想用Java GUI程序连接我的MS访问文件,但我有连接问题....
我有Windows 7 64b和ms office 2007.当我在控制面板中打开ODBC驱动程序管理器时,我没有找到任何Microsoft Access驱动程序(也许当我启动ODBC开始运行64位ODBC时,现在我认为正在运行32位ODBC.我读了这个,我做了:"jdbc-odbc连接窗口7 64位机器.. 1.右键单击数据源(ODBC)..转到属性更改下面的事情
目标[%SystemRoot%\ SysWOW64\odbcad32.exe]开始于:[%SystemRoot%\ System32]
按回车键继续作为管理源:源链接 ")现在,当我在conctrol pannel中启动ODBC时,我可以看到驱动程序的屏幕截图
我的程序代码(我试过两种方法,但我有同样的错误):
public void Connect() {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// String DatabaseFile = "D:java/Invertory.mdb";
// String DATABASE =
// "jdbc:odbc:Driver="
// + "{Microsoft Access Driver (*.mdb, *.accdb)};"
// + "DBQ=" + DatabaseFile;`enter code here`
String DATABASE ="jdbc:odbc:Driver= Microsoft Access Driver (*.mdb, *.accdb);DBQ=Invertory.mdb";
CONEX = DriverManager.getConnection(DATABASE);
} catch (Exception X) {
X.printStackTrace();
//JOptionPane.showMessageDialog(null,e);
}
}
Run Code Online (Sandbox Code Playgroud)
错误
java.sql.SQLException:[Microsoft] [ODBC驱动程序管理器]未找到数据源名称且未指定默认驱动程序
我目前正在测试Angular Alpha 45,特别是路由,并通过使用参数实现路由来解决问题.我已经为一个特定实体的详细视图创建了一个组件.
@Component({
templateUrl: 'app/components/projekt/projekt.detail.html',
directives: [FORM_DIRECTIVES]
})
export class ProjektDetailComponent {
id: string;
constructor(params: RouteParams){
this.id = params.get('id');
}
}
Run Code Online (Sandbox Code Playgroud)
模板看起来像这样,只显示参数"id":
<h1>Projekt Details: {{id}}</h1>
RouteConfig如下所示:
@RouteConfig([
{ path: '/', component: StartComponent, as:'Start'} ,
{ path: '/projekte', component: ProjektOverviewComponent, as:'Projekte'},
{ path: '/projekte/:id', component: ProjektDetailComponent, as:'ProjektDetail'},
{ path: '/projekte/neu', component: NeuesProjektComponent, as:'ProjektNeu'}
])
Run Code Online (Sandbox Code Playgroud)
上面显示的Link和RouteConfig与角度文档中的示例类似.
<a [router-link]="['/ProjektDetail', {'id': '1'}]" class="btn btn-default">Details</a>
因此,当我导航到详细视图(例如127.0.0.1:8080/src/#/projekte/1)时,我收到以下错误,该错误显示在浏览器的控制台中(我已经使用Edge,Firefox 42进行了测试, Chrome 46):
EXCEPTION: Cannot resolve all parameters for ProjektDetailComponent(?). Make sure they all have valid type or …Run Code Online (Sandbox Code Playgroud) 我正在尝试基于这篇文章创建一个服务总线中继
我收到一条错误消息Generic:InvalidSignature:令牌的签名无效.
static void Main(string[] args)
{
ServiceHost sh = new ServiceHost(typeof(ProblemSolver));
sh.AddServiceEndpoint(
typeof(IProblemSolver), new NetTcpBinding(),
"net.tcp://tjservicebus.servicebus.windows.net/solver");
Console.WriteLine("Add Binding End Point");
var key = "MYKEY";
sh.AddServiceEndpoint(
typeof(IProblemSolver), new NetTcpRelayBinding(),
ServiceBusEnvironment.CreateServiceUri("sb", "tjservicebus", "solver"))
.Behaviors.Add(new TransportClientEndpointBehavior
{
TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider("RootManageSharedAccessKey", key)
});
sh.Open();
Console.WriteLine("Press ENTER to close");
Console.ReadLine();
sh.Close();
}
Run Code Online (Sandbox Code Playgroud)
错误消息出现在sh.Open();
有人可以帮忙吗?
我已经阅读并开始意识到实体(数据对象 - 用于JPA或序列化)注入其中是一个坏主意.这是我目前的设计(所有适当的字段都有getter和setter,serialVersionUID为简洁起见我放弃了).
这是父对象,它是实体组合图的头部.这是我序列化的对象.
public class State implements Serializable {
List<AbstractCar> cars = new ArrayList<>();
List<AbstractPlane> planes = new ArrayList<>();
// other objects similar to AbstractPlane as shown below
}
Run Code Online (Sandbox Code Playgroud)
AbstractPlane 它的子类只是没有注入的简单类:
public abstract class AbstractPlane implements Serializable {
long serialNumber;
}
public class PropellorPlane extends AbstractPlane {
int propellors;
}
public class EnginePlane extends AbstractPlane {
List<Engine> engines = new ArrayList<>(); // Engine is another pojo
}
// etc.
Run Code Online (Sandbox Code Playgroud)
相比之下,每种具体类型的汽车都需要一个拥有某些行为的经理以及一些特定形式的数据:
public abstract class AbstractCar implements Serializable { …Run Code Online (Sandbox Code Playgroud) 我的游戏项目中有第三方依赖.该第三方库对slf4j实现具有最终依赖性(非直接).
我收到了slf4j的重复绑定错误.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:~/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/~/.ivy2/cache/com.orgname.platform/platform-logging-client/jars/platform-logging-client-2.5.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Run Code Online (Sandbox Code Playgroud)
我尝试了一些事情,但可以摆脱错误.
"com.orgname.platform" % "platform-metric-client" % "1.0.4" excludeAll(
ExclusionRule(organization = "org.slf4j"))
Run Code Online (Sandbox Code Playgroud)
我也试过以下排除
"com.orgname.platform" % "platform-metric-client" % "1.0.4" exclude("org.slf4j","slf4j-jdk14)
Run Code Online (Sandbox Code Playgroud)
还有这一个
"com.orgname.platform" % "platform-metric-client" % "1.0.4" exclude("org.slf4j","slf4j-log4j12)
Run Code Online (Sandbox Code Playgroud)
由于我无法从第三方依赖项中删除slf4j,所以厌倦了删除对slf4j的播放依赖,通过修改projcts/plugin.sbt
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6" exclude("org.slf4j", "slf4j-simple"))
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能摆脱这个警告.这个警告如何影响日志记录?Scala实现将使用哪种日志记录实现?
我使用Perfect Scrollbar,然后我开始使用Angular 2,但我找不到类似的添加.在Angular 2项目中实现完美滚动条的正确方法是什么?
我遵循了这个伟大的例子,但我很遗憾如何改变ngOnInit()
jQuery(this.elementRef.nativeElement).draggable({containment:'#draggable-parent'});
Run Code Online (Sandbox Code Playgroud)
对此=>
$(function() {
$('#Demo').perfectScrollbar();
Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个Angular应用程序,其中包含用户需要在几分钟不活动后注销的视频.
如果用户正常或全屏观看视频,则无需注销.
如果选项卡处于非活动状态且视频正在播放,我需要在不活动后将其注销.
我想访问ng-content的内容,首先来获取内容元素的数量,但稍后会有更多的精彩内容.
例如:
@Component({
selector: 'my-container',
template: `
<div class="my-container">
<div class="my-container-nav"><a class="my-container-previous"></a></div>
<div class="my-container-body">
<div class="my-container-items">
<ng-content></ng-content>
</div>
</div>
<div class="my-container-nav"><a class="my-container-next"></a></div>
</div>
`
})
export class MyContainer implements AfterContentInit {
@ContentChildren(???) containerItems : QueryList<???>;
ngAfterContentInit() {
console.log('after content init: ' + this.containerItems.length);
}
}
Run Code Online (Sandbox Code Playgroud)
我将什么作为内容儿童的类型?
它们可以是任何东西.我尝试过ElementRef,但这不起作用,总是给出一个零的数.
使用示例:
<my-container>
<div>some content here</div>
<another-component [title]="'another component there'"></another-component>
<div>there's lots of content everywhere</div>
<span>no assumptions would be fair</span>
</my-container>
Run Code Online (Sandbox Code Playgroud)
我希望看到"在内容init:4之后".