小编Iva*_*yev的帖子

获取Firebase数据库Android中的最后一个节点

我想从我的Android中获取firebase数据库中添加的最后一个节点中的项目.您可以在下面的图片中看到我不知道如何获取特定节点,因为唯一键是由Firebase创建的.如何引用自动创建的节点和子进程?非常感谢

最后一个节点

在此输入图像描述

android firebase firebase-realtime-database

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

错误MSB3073:该命令退出代码3

当我尝试在Visual Studio 2015中构建在Visual Studio 2013中创建的解决方案时,

我收到了以下错误:

"18> C:\ Program Files(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1250,5):错误MSB3073:命令""%CommonProgramFiles(x86)%\ microsoft shared\TextTemplating\12.0\TextTransform.exe"-a !! build!true"C:\ Users\b3bi\Documents\Visual Studio 2015\Projects\SKNL\trunk\GDP\My Project\AssemblyInfo.tt""退出代码3."

此错误中显示的文件是:

<PropertyGroup>
    <PreBuildEventDependsOn></PreBuildEventDependsOn>
  </PropertyGroup>
  <Target
      Name="PreBuildEvent"
      Condition="'$(PreBuildEvent)'!=''"
      DependsOnTargets="$(PreBuildEventDependsOn)">

    **<Exec WorkingDirectory="$(OutDir)" Command="$(PreBuildEvent)" />**

  </Target>
Run Code Online (Sandbox Code Playgroud)

有人知道是什么问题?

visual-studio-2015

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

如何通过更改工具栏和通知栏的颜色,在选项卡上单击播放商店获得Ripple效果?

我是android.i中的新手我试图在选项卡上点击咔嗒声效果工具栏的颜色变化和播放商店的通知栏.如何做到这一点?请帮助

在此输入图像描述

android

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

故事书不了解对antd组件的按需导入

我已按照此处的指示进行操作,以使antdCRA正常工作。但是,从Storybook中使用它时,出现以下错误

生成失败,原因是未启用混入消息,并显示消息内联JavaScript。是否在您的选项中设置了?

我已经解决了我在这里提出的一个问题之后的建议。

现在,故事书可以理解antd, 但不能按需导入组件。必须为故事书单独配置babel吗?

1。在使用import { Button } from "antd"; 我得到这个:

图片

2。使用时

import Button from "antd/lib/button";
import "antd/lib/button/style";
Run Code Online (Sandbox Code Playgroud)

我得到:

图片

故事书版本:“ @ storybook / react”:“ ^ 3.4.8”

依赖项:“ antd”:“ ^ 3.7.3”

我已经(长时间)被困在谷歌上很长时间了,对我们的任何帮助表示感谢。谢谢!

reactjs create-react-app antd storybook

7
推荐指数
2
解决办法
1180
查看次数

Microsoft Computer Vision OCR:禁用按区域分组文本

我一直在使用微软计算机视觉阅读收据,试图寻找替代艾比的OCR,因为价格差异很大.

我得到的结果总是按地区分组.这显然使得用它们的金额识别相应的字段变得更加困难.

有没有办法通过Microsoft Vision或者无论如何我可以实现与Abby相同的对齐输出?

这是包含结果和收据的图像

Ocr结果

在此输入图像描述

c# ocr service microsoft-cognitive

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

将组均值线添加到geom_bar图并包括在图例中

我希望能够创建一个条形图,该条形图还显示每个组中条形的平均值。AND显示图例中的平均值条。

我已经能够使用下面的代码来获得带有条形图的图表,这很好,但是我希望能够看到图例中的均线。

在此处输入图片说明

##The data to be graphed is the proportion of persons receiving a treatment
## (num=numerator) in each population (denom=demoninator). The population is 
##grouped by two age groups and (Age) and further divided by a categorical 
##variable V1

###SET UP DATAFRAME###
require(ggplot2)    
df <- data.frame(V1 = c(rep(c("S1","S2","S3","S4","S5"),2)), 
               Age= c(rep(70,5),rep(80,5)), 
               num=c(5280,6570,5307,4894,4119,3377,4244,2999,2971,2322),
               denom=c(9984,12600,9425,8206,7227,7290,8808,6386,6206,5227))

df$prop<-df$num/df$denom*100

PopMean<-sum(df$num)/sum(df$denom)*100

df70<-df[df$Age==70,]
group70mean<-sum(df70$num)/sum(df70$denom)*100

df80<-df[df$Age==80,]
group80mean<-sum(df80$num)/sum(df80$denom)*100

df$PopMean<-c(rep(PopMean,10))
df$groupmeans<-c(rep(group70mean,5),rep(group80mean,5))
Run Code Online (Sandbox Code Playgroud)

我希望该图看起来像这样,但也希望图例中的线条被标记为“组均值”或类似的值。

 #basic plot
 P<-ggplot(df, aes(x=factor(Age), y=prop, fill=factor(V1))) +
   geom_bar(position=position_dodge(), colour='black',stat="identity")    

 P
####add mean lines    
P+geom_errorbar(aes(y=df$groupmeans, ymax=df$groupmeans, 
ymin=df$groupmeans), col="red", lwd=2)
Run Code Online (Sandbox Code Playgroud)

添加show.legend …

r ggplot2 geom-bar

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

swift 3错误:不符合协议'UITableViewDataSource'

使用自定义swift类(不是主ViewController)

码:

import Foundation

class Myclass: UIViewController, UITableViewDelegate, UITableViewDataSource {

    @IBOutlet var tableView: UITableView!

    var items: [String] = ["Item1", "Item2", "Item3"]

    override func viewDidLoad() {
        self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "td")
    }

     func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return self.items.count;
    }

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell:UITableViewCell = self.tableView.dequeueReusableCell(withIdentifier: "td")! as UITableViewCell
        cell.textLabel?.text = self.items[indexPath.row]
        return cell
    }

    func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) {
        print("You selected cell #\(indexPath.row)!")
    }
}
Run Code Online (Sandbox Code Playgroud)

uitableview

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