Firebase通过Firebase远程配置提供拆分测试功能,但是缺乏在具有用户属性的群组部分中过滤保留的能力(实际上具有任何属性).
为了解决这个问题,我正在寻找BigQuery,因为Firebase Analytics提供了将数据导出到此服务的可用方法.
但我坚持许多问题,谷歌没有答案或例子可能指向我正确的方向.
一般的问题:
作为第一步,我需要聚合代表相同数据firebase队列的数据,所以我可以确定我的计算是正确的:
下一步应该只是对查询应用约束,因此它们匹配自定义用户属性.
到目前为止我得到的是:
主要问题 - 用户计算的巨大差异.有时大约有100个用户,但有时接近1000个用户.
这是我使用的方法:
# 1
# Count users with `user_dim.first_open_timestamp_micros`
# in specified period (w0 – week 1)
# this is the way firebase group users to cohorts
# (who started app on the same day or during the same week)
# https://support.google.com/firebase/answer/6317510
SELECT
COUNT(DISTINCT user_dim.app_info.app_instance_id) as count
FROM
(
TABLE_DATE_RANGE
(
[admob-app-id-xx:xx_IOS.app_events_],
TIMESTAMP('2016-11-20'),
TIMESTAMP('2016-11-26')
)
)
WHERE
STRFTIME_UTC_USEC(user_dim.first_open_timestamp_micros, '%Y-%m-%d')
BETWEEN '2016-11-20' AND '2016-11-26'
# 2
# For each next period …Run Code Online (Sandbox Code Playgroud) 我需要initialScrollIndex在FlatList上设置为1,因此第二行在初始加载时将可见.这取决于getItemLayout.我的FlatList单元格包含不同长度的文本,这导致每个单元格的高度不同,这导致我无法返回固定值getItemLayout.我的策略是:
问题是 - 在将视图装入DOM层次结构之前,我找不到如何计算视图高度的方法.我读了很多关于onLayout prop的内容,但看起来View应该首先渲染才能让它工作.
那么,当列表单元格对于每一行不相同时,您使用什么来实现在react-native中滚动到指定行?
我使用示例页面中的代码创建水平条形图:
选项backgroundColor适用于其他图表类型,例如this和that.
有没有办法改变Bars图表的背景颜色?
google.load('visualization', '1.1', {packages:['bar']});
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.arrayToDataTable([
['Opening Move', 'Percentage'],
["King's pawn (e4)", 44],
["Queen's pawn (d4)", 31],
["Knight to King 3 (Nf3)", 12],
["Queen's bishop pawn (c4)", 10],
['Other', 3]
]);
var options = {
backgroundColor: { fill: '#000' },//this is not working
title: 'Chess opening moves',
width: 900,
legend: { position: 'none' },
chart: { title: 'Chess opening …Run Code Online (Sandbox Code Playgroud)经常找到这样的自定义setter sintaxis:
- (void)setParentCatalog:(Catalog *)parentCatalog {
if (_parentCatalog != parentCatalog) { //???
_parentCatalog = parentCatalog;
[self refresh];
}
}
Run Code Online (Sandbox Code Playgroud)
我为什么要检查?
if (_parentCatalog != parentCatalog)
Run Code Online (Sandbox Code Playgroud) 我试着保存
desc += 'SUBJECT: '
desc += '\n'
desc += 'MESSAGE: '
Teme.desc = desc
Teme.save
Run Code Online (Sandbox Code Playgroud)
但在数据库中我有
> Teme.find 190
... desc: "SUBJECT: \\nMESSAGE:
Run Code Online (Sandbox Code Playgroud)
然后我的textarea显示\n而不是新行
如何安全地将新行符号存储在数据库中?