小编S.I*_*.I.的帖子

运行scala时获取"cat:/ release:没有这样的文件或目录"

我尝试Scala 2.12.1通过Homebrew在我的Mac(El Capitan)上安装,也可以从https://www.scala-lang.org/download/下载二进制文件.

在这两种情况下,每当我运行scala(或者scalac,scaladoc等),我得到这个打印屏幕:

cat: /release: No such file or directory
Run Code Online (Sandbox Code Playgroud)

但行动是成功的.例如,scala myscript.scala工作得很好,但错误信息被首先打印.

有没有人知道为什么会这样?

macos scala osx-elcapitan

36
推荐指数
2
解决办法
9410
查看次数

如何在 Flutter 中创建圆形 CheckBox?或者更改 CheckBox 的样式,例如 Flutter 中的选定图像?

我想创建一个像这样的圆形 CheckBox

在此处输入图片说明

我已经尝试了多种变体,但它们似乎都不起作用。包括我尝试使用 ClipRRect 。

因为代码比较多,这里只选取一部分展示。

new Row(
      children: <Widget>[
        //new ClipRRect(
        // borderRadius: BorderRadius.all(Radius.circular(90.0)),
        //  child:
          new Checkbox(
              tristate: true,
              value: true,
              onChanged: (bool newValue){
                setState(() {

                });
              },
            activeColor: Color(0xff06bbfb),
          ),
       // ),

        new Expanded(
            child: new Text('???????QQ????????????',
              style: new TextStyle(
                  color: Color(0xff797979)
              ),
            )
        ),

      ],
    ),
Run Code Online (Sandbox Code Playgroud)

我是 Flutter 的新手。提前致谢。

checkbox flutter

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

将出生日期添加到数据库

我正在尝试在注册表单中添加日,月和年的字段,并将其添加到数据库中的用户记录.所以我说这是形式:

<div class="form-group"> 
   <div class="form-inline">
      <div class="form-group pull-right">
         <select name="year" id="year" class="form-control">
            <option value="--" selected>Year</option>                       
            <?php
                for($i=date('Y'); $i>1899; $i--) {
                    $birthdayYear = '';
                    $selected = '';
                    if ($birthdayYear == $i) $selected = ' selected="selected"';
                    print('<option value="'.$i.'"'.$selected.'>'.$i.'</option>'."\n");
                }
            ?>                          
          </select>     
      </div>                    
      <div class="form-group pull-right">
        <select name="month" id="month" onchange="" class="form-control" size="1">
            <option value="--" selected>Month</option>
            <option value="01">Jan</option>
               ...
            <option value="12">Dec</option>
        </select>            
      </div>                                             
      <div class="form-group pull-right">
        <select name="day" id="day" onchange="" class="form-control" size="1">
        <option value="--" selected>Day</option>
        <option value="01">01</option>
                ...
        <option value="31">31</option>
      </select>
    </div>                                              
</div>
</div> …
Run Code Online (Sandbox Code Playgroud)

php mysql

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

[错误]进程“appcmd.exe”退出,代码为“87”

我是新手tfs-2018,我正在尝试在我的一台服务器上进行部署,但日志中出现以下错误。我能够在其他 2 个系统上进行部署,但一个系统出现以下错误。任何帮助将不胜感激

日志:

2018-01-29T06:55:20.8002862Z ##[section]开始:IIS Web App 管理 2018-01-29T06:55:20.8484384Z ================== ================================================== ==========

2018-01-29T06:55:20.8484384Z 任务:IIS Web 应用程序管理 2018-01-29T06:55:20.8484384Z 说明:创建或更新网站、Web 应用程序、虚拟目录和应用程序池 2018-01-2559 :20.8484384Z 版本 : 0.4.4 2018-01-29T06:55:20.8484384Z 作者 : Microsoft Corporation 2018-01-29T06:55:20.8484384Z 帮助 :更多信息 2018-01-29T06:55:20.8484384Z ================================================== ========================

以代码“87”退出。2018-01-29T06:55:25.3169881Z ##[section]整理:IIS Web App 管理

下面附上配置细节。

在此处输入图片说明

在此处输入图片说明

deployment

6
推荐指数
2
解决办法
4650
查看次数

html lang 属性的 html 验证错误

我收到此错误消息:

该文档似乎是 Lorem ipsum 文本,但 html 开始标记具有 lang="en"。考虑使用 lang="zxx" (或变体)代替。

从第 5 行第 32 列开始;到第 5 行,第 47 列

html lang="zh"

如需进一步指导,请参阅无语言标记文本、声明页面的整体语言和选择语言标记。

如果 HTML 检查器错误地识别了此文档的语言,请提交问题报告或发送电子邮件报告问题。

对于 html lang = "en" 属性

我现在该怎么办?

html validation attributes lang

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

appium - 如何获取本机 Android 应用程序中元素的背景颜色

我正在尝试使用自动化应用程序appium。如何获取 Android 应用程序中元素的背景颜色。

我尝试使用

element.getCssValue("background-color")
Run Code Online (Sandbox Code Playgroud)

但我面临以下异常:

java.lang.ClassCastException:com.google.common.collect.Maps$TransformedEntriesMap 无法在 io.appium 的 org.openqa.selenium.remote.RemoteWebElement.getCssValue(RemoteWebElement.java:167) 处转换​​为 java.lang.String。 java_client.DefaultGenericMobileElement.getCssValue(DefaultGenericMobileElement.java:177) 在 io.appium.java_client.MobileElement.getCssValue(MobileElement.java:1) 在 io.appium.java_client.android.AndroidElement.getCssValue(AndroidElement.java:1) 在 com .mahindracomviva.digibanktest.tests.corecontrollers.DynamicControlsTest.validateThemeColor(DynamicControlsTest.java:130) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(未知来源) 在sun.reflect.DelegatingMethodAccessorImpl。在 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) 处的 java.lang.reflect.Method.invoke(未知来源) 处调用(未知来源) org.junit.internal.runners.model 处。 ReflectiveCallable.run(ReflectiveCallable.java:12) 在 org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) 在 org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)在 org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) 在 org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) 在 org.junit.runners.ParentRunner .runLeaf(ParentRunner.java:325) 在 org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) 在 org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) 在 org.junit.runners。 ParentRunner$3.run(ParentRunner.java:290) 在 org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) 在 org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) 在 org.junit .runners.ParentRunner.access$000(ParentRunner.java:58) 在 org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) 在 org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java :26)在org.junit.runners.ParentRunner.run(ParentRunner.java:363)在org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)在org.eclipse.jdt。 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) 在 org.eclipse.jdt.internal.junit 处的internal.junit.runner.TestExecution.run(TestExecution.java:38)。 runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) 在 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) 在 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner。主要(RemoteTestRunner.java:206)

appium appium-android

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

使用准备好的语句在数据库中插入日期时间 NOW()

我试图在用户注册时插入日期但不起作用。当我添加NOW()到查询时它没有插入任何内容。如果我删除它,用户将被添加到数据库中。

这是正常查询

$stmt = $pdo->prepare('INSERT INTO users (username,password,email,active) VALUES (:username, :password, :email, :active');
$stmt->execute(array(
    ':username' => $_POST['username'],
    ':password' => $hashedpassword,
    ':email' => $_POST['email'],
    ':active' => $activasion
));
Run Code Online (Sandbox Code Playgroud)

我已经阅读了其他线程并尝试了这个

$stmt = $pdo->prepare('INSERT INTO users (username,password,email,created,active) VALUES (:username, :password, :email, NOW(), :active');
$stmt->execute(array(
    ':username' => $_POST['username'],
    ':password' => $hashedpassword,
    ':email' => $_POST['email'],
    ':active' => $activasion
));
Run Code Online (Sandbox Code Playgroud)

刚刚添加createdNOW()到查询,但没有将任何东西。

可能是什么问题?

php mysql

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

node -bash:/ usr/sbin/node:没有这样的文件或目录

我对节点有这个错误.运行Debian 7(Wheezy)一个VPS.

我有这个错误,例如我运行此命令(在.js的目录中)

node sell.js
Run Code Online (Sandbox Code Playgroud)

要么

screen node sell.js
Run Code Online (Sandbox Code Playgroud)

它们都不起作用,因为我收到此错误:

-bash:/ usr/sbin/node:没有这样的文件或目录

有人能帮助我吗?

linux node.js

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

用 Laravel 和两个 WHERE 条件查询两个表

我有桌子orders和桌子payments。我想查询 table orders,join tablepayments并显示订单已支付,哪些不是。

这是订单模型

class Order extends Eloquent {
     protected $table = 'orders';
     protected $primaryKey = 'order_id';

     public function paidorders() {
         return $this->hasMany('payments', 'processed');
     }
}
Run Code Online (Sandbox Code Playgroud)

这是付款模式

class Payment extends Eloquent {
     protected $table = 'payments';
     protected $primaryKey = 'paymentID';

     public function orders()
     {
         return $this->hasMany('Order', 'user_id');
     }
}
Run Code Online (Sandbox Code Playgroud)

和用户模型

public function orders() {
    return $this->hasMany('Order', 'user_id');
}
Run Code Online (Sandbox Code Playgroud)

这就是我只显示当前订单而没有支付/未支付状态的方式。

  $orders = self::$user->orders()->get();
     return View::make('site.users.orders', [
        'orders' => $orders
     ]);
Run Code Online (Sandbox Code Playgroud)

这是查询,但我不知道如何在 Laravel 中实现它 …

php mysql laravel laravel-4

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

如何利用 TCL 8.0 版中的“&amp;”命令使 proc 或 exec 命令在后台运行,即在 Windows 7 上并行运行?

我正在开发一个用于FFMPEG捕获视频的项目。命令FFMPEG是:

ffmpeg -f dshow  -t 00:00:10 -i "video=Integrated Webcam" -b 5000k -s 1280x720 c:/test/sample.avi
Run Code Online (Sandbox Code Playgroud)

链接: https: //www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html使用命令:

exec myprog &
Run Code Online (Sandbox Code Playgroud)

这里他们没有具体说明是什么myprog

链接:在后台运行 shell 命令,在 tcl proc 中使用命令:

 eval exec [linsert $args 0 exec] >> $tempFile &
Run Code Online (Sandbox Code Playgroud)

这里的命令不被接受为eval一个exec接一个,所以它作为exec一个变量。

TCL version 8.0帮助我,使用 write right 命令,该命令可用于使用和来在后台捕获我的视频Windows 7

windows video ffmpeg tcl video-streaming

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