我想从我的Android中获取firebase数据库中添加的最后一个节点中的项目.您可以在下面的图片中看到我不知道如何获取特定节点,因为唯一键是由Firebase创建的.如何引用自动创建的节点和子进程?非常感谢
最后一个节点
当我尝试在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)
有人知道是什么问题?
我已按照此处的指示进行操作,以使antd与CRA正常工作。但是,从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”
我已经(长时间)被困在谷歌上很长时间了,对我们的任何帮助表示感谢。谢谢!
我一直在使用微软计算机视觉阅读收据,试图寻找替代艾比的OCR,因为价格差异很大.
我得到的结果总是按地区分组.这显然使得用它们的金额识别相应的字段变得更加困难.
有没有办法通过Microsoft Vision或者无论如何我可以实现与Abby相同的对齐输出?
这是包含结果和收据的图像
Ocr结果
我希望能够创建一个条形图,该条形图还显示每个组中条形的平均值。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 …
使用自定义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)