R Tutorial - How rich is SteemIt Wechat Group? R 语言教程 - STEEMIT微信群有多少钱?

There are current 211 members in the Steemit Wechat Group and I want to know how rich we are as a group. Last tutorial, we talked about how to connect to @arcange ‘s STEEMSQL via RODBC, and today, we are going to exercise this a little bit with a code example - How rich is SteemIt Wechat Group?

The STEEMSQL we are looking for is something like this:

select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name='justyy'

The values of these four fields are not pure numbers, instead, they come with the unit either SBD or STEEM. So it is sad that we cann’t do this in pure SQL via aggregate function sum But that is OK.

The members of the wechat group can be found via Github where you can submit a pull request if you believe you are not in the list.

https://raw.githubusercontent.com/DoctorLai/steemit-wechat-group/master/members.txt

Basically, it is a text file with each line containing the STEEMID. So in R, we can just use readLines to import the data into an array.

1
2
url = "https://raw.githubusercontent.com/DoctorLai/steemit-wechat-group/master/members.txt"
members = readLines(url)

Now, we can then construct the SQL to explicitly limit the account names to be within the group, namely,

1
sqlQuery(conn, str_c("select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('", paste(members, collapse = "','"), "')"))

So the SQL will become something like this:

1
select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('justyy', 'tumutanzi' ...)

It is better to save this in a R function:

1
2
3
4
5
6
getsbd = function(members) {
conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")
x <- sqlQuery(conn, str_c("select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('", paste(members, collapse = "','"), "')"))
close(conn)
return(x)
}

Then, arr <- getsbd(members) gets the data (four columns, i.e. > dim(arr) [1] 211 4) and we can process them individually.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sum_sbd = 0.0
sum_steem = 0.0
sum_sbd_saving = 0.0
sum_steem_saving = 0.0

for(money in arr[,4]) {
x = unlist(str_split(money, " "))[1]
sum_sbd = sum_sbd + as.numeric(x)
}

for(money in arr[,2]) {
x = unlist(str_split(money, " "))[1]
sum_sbd_saving = sum_sbd_saving + as.numeric(x)
}

for(money in arr[,3]) {
x = unlist(str_split(money, " "))[1]
sum_steem = sum_steem + as.numeric(x)
}

for(money in arr[,1]) {
x = unlist(str_split(money, " "))[1]
sum_steem_saving = sum_steem_saving + as.numeric(x)
}

str_split will split the string e.g. 1.00 SBD or 2.00 STEEM to vectors so that the value and unit are separated. And the final result is:

1
2
3
4
5
6
7
8
> print(paste("Total SBD = ", sum_sbd))
> print(paste("Total SBD Savings = ", sum_sbd_saving))
> print(paste("Total STEEM = ", sum_steem))
> print(paste("Total STEEM Savings = ", sum_steem_saving))
[1] "Total SBD = 31739.145"
[1] "Total SBD Savings = 597.972"
[1] "Total STEEM = 16067.426"
[1] "Total STEEM Savings = 0.01"

Similarly, you can sum up the Steem Power, however, it is a bit tricky to convert the VESTS to SP.

Image Credit: Pixabay.com

当前,微信群名单一共有211人(没有上榜的请火速联系 wexin@justyy.com 好处多多,你会懂的), 昨天,我们讲了怎么在R语言里通过RODBC连接STEEMSQL数据库,今天我们就来温故而知新,介绍一个实用的例子:STEEMIT中文微信群一共有多少钱?

查询 @justyy 的帐号很简单,STEEMSQL是:

select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name='justyy'

我们注意到了,这些字段并不是数值,因为还有单位,这就无法直接在STEEMSQL里直接用聚类函数 sum 把它们相加起来。

我们需要先把成员列表读进来,这个例表在 github 上,如果你还没在列表里,你也可以提交一个PR

https://raw.githubusercontent.com/DoctorLai/steemit-wechat-group/master/members.txt

这是一个文本文件,每一行就是一个STEEMIT 帐号ID,我们在R里可以用 readLines 把文本数据读成数组。

1
2
url = "https://raw.githubusercontent.com/DoctorLai/steemit-wechat-group/master/members.txt"
members = readLines(url)

然后,通过类似 join 之类的方法,来构造这个SQL

1
sqlQuery(conn, str_c("select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('", paste(members, collapse = "','"), "')"))

生成的SQL大概长这样……

1
select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('justyy', 'tumutanzi' ...)

把获取数据这块写成函数

1
2
3
4
5
6
getsbd = function(members) {
conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")
x <- sqlQuery(conn, str_c("select savings_balance, savings_sbd_balance, balance, sbd_balance from Accounts where name in ('", paste(members, collapse = "','"), "')"))
close(conn)
return(x)
}

然后, arr <- getsbd(members) 就会返回一个含有4个字段的数组 > dim(arr) [1] 211 4,接下来就好办了,遍历每个字段数组,然后相加。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
sum_sbd = 0.0
sum_steem = 0.0
sum_sbd_saving = 0.0
sum_steem_saving = 0.0

for(money in arr[,4]) {
x = unlist(str_split(money, " "))[1]
sum_sbd = sum_sbd + as.numeric(x)
}

for(money in arr[,2]) {
x = unlist(str_split(money, " "))[1]
sum_sbd_saving = sum_sbd_saving + as.numeric(x)
}

for(money in arr[,3]) {
x = unlist(str_split(money, " "))[1]
sum_steem = sum_steem + as.numeric(x)
}

for(money in arr[,1]) {
x = unlist(str_split(money, " "))[1]
sum_steem_saving = sum_steem_saving + as.numeric(x)
}

str_split 函数把数值和单位分开,方便累计。不多说了,直接上结果:

1
2
3
4
5
6
7
8
> print(paste("Total SBD = ", sum_sbd))
> print(paste("Total SBD Savings = ", sum_sbd_saving))
> print(paste("Total STEEM = ", sum_steem))
> print(paste("Total STEEM Savings = ", sum_steem_saving))
[1] "Total SBD = 31739.145"
[1] "Total SBD Savings = 597.972"
[1] "Total STEEM = 16067.426"
[1] "Total STEEM Savings = 0.01"

类似可以累计 VESTS 然后再计算SP,不过较麻烦,这里就不展开细节了。


> @justyy 是 https://justyy.com 的博主,在 @tumutanzi 大哥 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。

@justyy 也是CN 区的点赞机器人,对优质内容点赞,只要代理给 @justyy 每天收利息(年化率14.6%)并能获得一次至少2倍(VP 200%+)的点赞,大鱼 @htliao 都加入了这个计划(530 SP)表示支持。

  1. cn区最低保障系统 上线了!
  2. cn区低保计划(鼓励新人)真的适合你么?

R Tutorial – How rich is SteemIt Wechat Group?
R 语言教程 – STEEMIT微信群有多少钱?
R 教程之 怎么样连接到 STEEMSQL 数据库
R Tutorial – Connecting to STEEMSQL
Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: R Tutorial - How rich is SteemIt Wechat Group? R 语言教程 - STEEMIT微信群有多少钱?

Daily #CN Updates CN社区每日榜单【潜在收益排行榜】【优秀被错过的文章】【低保计划参与者】【优质内容点赞记录】(2017-10-15)

数据来源: steemsql.com (Thank you @arcange !)
生成时间: 2017-10-15 11:11:09 (UTC)
报告时间: 2017-10-11 11:11:09 (UTC) - 2017-10-12 11:11:09 (UTC)

2017-10-15 那些优秀可能被错过的文章


Image Credit: pixabay.com
| | 作者 Author| 文章 Post|
|———-|:————-:|:——|
| 1 | @travelgirl | StreetPhotography Contest - Vintage Bicycle @ Sydney, Australia - 街頭攝影比賽 - 懷舊單車 @ 悉尼, 澳洲 |
| 2 | @magicmonk | 你喜歡晚上游泳嗎 看這個漂亮的游泳池 Do you like swimming at night Look at this beautiful swimming pool. |
| 3 | @acactus1013 | Drawing Challenge # 7 : My Wedlock Wine/绘画挑战赛 #7 : 我的交杯酒 |
| 4 | @shenchensucc | 加拿大博士工作记#3 入职 Ph.D. working in Canada #3 |
| 5 | @jessie901220 | Hello Steemit, I owe you an introduction ~~ 很开心来到Steemit, 这是欠你的自我介绍 ~ |
| 6 | @karasui | 不断变化的角色 谷歌点名 #11 角色 |
| 7 | @tvb | 大学英语四级的心酸史 My sad history of CET4 |
| 8 | @wangwenjing | 我的书店情结 I Love Bookstore |
| 9 | @mrpointp | 大学时期你申请过助学金吗?Have you ever applied for education grants when in college? |
| 10 | @sunnyjolly | 养儿方知父母恩 “三个一”活动 |
| 11 | @hqy | 沉重的家书 隐忍的情怀 |

本列表支持黑名单用于过滤经常发水文的ID,欢迎 report@justyy.com 举报。

2017-10-15 Daily Top Authors in [CN] (Last 7 Days) 每日cn社区之 过去7天潜在收益排行榜

The following is the list of top 30 daily authors in [CN] in the last 7 days sorted by potential payout. See the SQL for more details.
这是根据这篇的SQL - 经少量修改和调整统计出过去7天作者的潜在收益排行。
| 排名 Rank| 作者 Author| 发贴数 Posts| 点赞数 Votes| 潜在收益 Pending Payout| 平均每贴收益 Average Pending Payout Per Post|
|–:|–:|–:|–:|—:|—:|
| 1| @oflyhigh | 8 | 2437 | 1373.49 |171.69 |
| 2| @rivalhw | 8 | 1218 | 998.66 |124.83 |
| 3| @deanliu | 6 | 1576 | 894.85 |149.14 |
| 4| @htliao | 7 | 1406 | 856.63 |122.38 |
| 5| @sweetsssj | 2 | 3379 | 837.95 |418.97 |
| 6| @tumutanzi | 7 | 1186 | 776.96 |110.99 |
| 7| @someone | 6 | 933 | 732.21 |122.04 |
| 8| @linuslee0216 | 7 | 1012 | 724.62 |103.52 |
| 9| @jubi | 9 | 646 | 542.52 |60.28 |
| 10| @blackbunny | 6 | 620 | 502.19 |83.70 |
| 11| @guyverckw | 12 | 1040 | 489.08 |40.76 |
| 12| @aaronli | 6 | 816 | 466.47 |77.75 |
| 13| @nicolemoker | 3 | 838 | 439.11 |146.37 |
| 14| @chinadaily | 14 | 770 | 438.07 |31.29 |
| 15| @justyy | 18 | 1051 | 431.49 |23.97 |
| 16| @joythewanderer | 5 | 726 | 406.64 |81.33 |
| 17| @bxt | 8 | 394 | 401.66 |50.21 |
| 18| @rea | 1 | 841 | 375.48 |375.48 |
| 19| @ace108 | 27 | 1804 | 365.74 |13.55 |
| 20| @stacee | 5 | 503 | 363.98 |72.80 |
| 21| @twinkledrop | 6 | 346 | 347.86 |57.98 |
| 22| @travelgirl | 14 | 801 | 324.63 |23.19 |
| 23| @helene | 3 | 593 | 311.88 |103.96 |
| 24| @goodboyphilip | 8 | 600 | 284.11 |35.51 |
| 25| @susanli3769 | 8 | 300 | 270.91 |33.86 |
| 26| @btsabc | 6 | 294 | 267.12 |44.52 |
| 27| @victorier | 5 | 449 | 262.01 |52.40 |
| 28| @hannahwu | 7 | 437 | 258.69 |36.96 |
| 29| @tvb | 8 | 389 | 253.09 |31.64 |
| 30| @czechglobalhosts | 7 | 371 | 248.44 |35.49 |

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 days sorted by potential payout

CN 区优质内容点赞机器人每天会为这30名作者点赞!
CN Good-Content-Body will upvote these authors every day!

近期机器人点赞记录 Recent Quality-Content-Upvote-Bot Upvoting History

这个机器人很善良,只想激励CN社区产生更多的优质内容。当然别忘记了,我本人人工也是会对未上榜的优质作者进行点赞的哟~

时间 Time 作者 Author 文章 Post 权重 Weighting % VP %
2017-10-15 00:59:13 @ace108 @ace108 31.00 53.07
2017-10-15 03:49:16 @guyverckw @guyverckw 36.60 54.72
2017-10-15 04:19:19 @nationalpark @nationalpark 24.19 54.84
2017-10-15 07:29:17 @travelgirl @travelgirl 26.86 56.78
2017-10-15 09:07:15 @rivalhw @rivalhw 31.25 57.69
2017-10-15 10:29:12 @goodboyphilip @goodboyphilip 27.17 57.59
2017-10-15 10:35:30 @oflyhigh @oflyhigh 31.20 57.59
2017-10-15 10:54:22 @czechglobalhosts @czechglobalhosts 25.34 58.11

这个报告的年龄为: 51天。
为什么要有这个报告?
欢迎 @justyy 如果您有好的建议或者想看哪些榜单却找不到。

@justyy 是 https://justyy.com 的博主,在大哥 @tumutanzi 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。@justyy 也是CN 区的点赞机器人,对优质内容进行点赞,只要代理给 @justyy 每天收利息(100 SP 每天0.04 SBD)并且能获得一次相应至少2倍的点赞,可以认为是VP 200%+。加入计划最低代理10SP。CN 区的大鱼 @htliao 也加入了计划(代理了 530 SP)。

  1. CN 区最低保障系统 上线了!
  2. CN 区低保计划(鼓励新人)真的适合你么?
  3. CN 区优质内容点赞机器人上线了!
  4. 点赞机器人每日点赞记录整合到每日报表中!
  5. 虽然不挣钱,但是CN区低保计划还会继续下去

CN 区低保计划当前39位参于者,感谢!

查询谁都参于了也可以用这个在线工具: Steemit 查看谁委派代理给你Steem Power?
|Delegator| Steem Power| Vests| DateTime|
|–:|–:|–:|–:|
|@eduter|660.09|1357975.69|2017-10-12 21:10:21|
|@htliao|530.32|1091019.80|2017-10-03 12:00:48|
|@bobdos|500.01|1028645.75|2017-10-15 05:45:30|
|@sunnyjolly|400.52|823973.51|2017-09-20 09:40:21|
|@mrpointp|400.35|823619.84|2017-09-28 14:09:36|
|@herlife|300.4|618006.65|2017-09-19 14:18:12|
|@zsilence|300.34|617872.78|2017-09-23 16:04:45|
|@mrspointm|300.26|617714.93|2017-09-28 14:07:18|
|@victory622|266.37|547985.69|2017-09-18 21:59:57|
|@coldhair|255.05|524713.00|2017-09-19 15:08:36|
|@luneknight|210.18|432399.70|2017-09-28 14:55:39|
|@berlin1997|200.19|411835.88|2017-09-27 08:55:06|
|@kangnajiang|117.04|240787.09|2017-10-08 10:12:12|
|@zhijun|100.55|206853.00|2017-09-19 03:18:57|
|@icedream|100.13|205996.82|2017-09-20 02:08:24|
|@yellowbird|100.13|205996.48|2017-09-20 02:52:51|
|@jessicameng|100.13|205993.57|2017-09-20 09:14:24|
|@fr3eze|100.1|205931.08|2017-09-26 03:17:24|
|@karasui|100.1|205926.99|2017-09-26 12:31:09|
|@jiangchen|100.08|205895.44|2017-09-29 11:36:09|
|@drunkevil|100.08|205885.32|2017-09-30 10:23:51|
|@catwomanteresa|100.08|205883.35|2017-09-30 14:50:03|
|@mumingduozi|60.24|123928.00|2017-09-19 00:25:12|
|@towardsthesun|50.06|102993.29|2017-09-21 00:33:18|
|@liumei|50.06|102983.93|2017-09-22 17:35:12|
|@tvb|50.04|102943.21|2017-09-30 07:54:27|
|@veronicazhu|50.02|102913.15|2017-10-06 00:26:30|
|@syh7758520|30.04|61802.26|2017-09-19 02:37:42|
|@raywang|30.03|61779.27|2017-09-26 03:40:09|
|@feng1925|20.03|41198.84|2017-09-20 07:52:30|
|@liangfengyouren|20.02|41192.83|2017-09-23 01:40:00|
|@mangoanddaddy|20.02|41189.47|2017-09-24 14:37:42|
|@speeding|20.02|41182.20|2017-09-28 00:34:57|
|@susanli3769|20.01|41176.13|2017-09-30 20:51:39|
|@jiba|15.65|32203.21|2017-09-19 01:04:06|
|@wangwenjing|10.01|20598.79|2017-09-20 21:35:18|
|@lixing|10.01|20596.48|2017-09-23 00:14:33|
|@willwangfeng|10.0|20576.13|2017-10-12 04:24:57|
|@keepup|6.0|12344.23|2017-10-14 11:06:12|

Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: Daily #CN Updates CN社区每日榜单【潜在收益排行榜】【优秀被错过的文章】【低保计划参与者】【优质内容点赞记录】(2017-10-15)

R Tutorial - Connecting to STEEMSQL - R 教程之 怎么样连接到 STEEMSQL 数据库

R is suitable for data analysis and we can use R to do machine learning after mining the data from STEEMSQL. The first step is to connect to STEEMSQL, and let’s do it.

Step 1 - Install the MS SQL package

@arcange ‘s STEEMSQL is a Microsoft SQL Server, thus we need R to be able to handle the MSSQL connection via the RODBC library. To install the connector in R, run the following command

install.packages("ROBDC")

Step 2 - Reference the RODBC library

After RODBC is installed, you first need to reference it e.g. in R script.

library(RODBC)

Step 3 - Connect via odbcDriverConnect method

Like other programming language, RODBC has a DB-connect method, i.e. odbcDriverConnect which needs to be customised to the following according to STEEMSQL:

conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")

Upon success, the connection is stored in conn

Step 4 - Run the query

This is easy to understand, first parameter is the db connection and the second parameter is the actual SQL statement!

sqlQuery(conn, str_c("select voting_power from Accounts where name='justyy'"))

Demo R Function - Get Current Voting Power

Let’s wrap this up!

1
2
3
4
5
6
7
8
9
library(RODBC)
library(stringr)

getvp = function(id) {
conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")
x <- sqlQuery(conn, str_c("select voting_power from Accounts where name='", id, "'"))
close(conn)
return(x)
}


R 语言非常适合做数据处理和大数据分析,比如我们可以很容易的通过 STEEMSQL 把数据抓下来再通过R脚本来做一些大数据分析和机器学习。那么首先就是要在R语言里连接数据库,STEEMSQL是基于MS SQL的,所以我们需要:

安装 RODBC

@arcange ‘s STEEMSQL 是 Microsoft SQL Server, 我们需要在R控制台上运行安装命令

install.packages("ROBDC")

引用 RODBC

在 RODBC包安装好后,需要在R脚本的开头引用RODBC

library(RODBC)

通过 odbcDriverConnect 建立数据库连接

和其它语言类似,在使用数据库前需要建立连接,在RODBC里,我们可以通过 odbcDriverConnect

conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")

数据库连接成功后,存于变量 conn

执行SQL

这一步容易理解,第一个参数就是数据库连接,第二个参数是SQL语句。

sqlQuery(conn, str_c("select voting_power from Accounts where name='justyy'"))

R示例,通过STEEMSQL查询 VP

把上面几个合起来!

1
2
3
4
5
6
7
8
9
library(RODBC)
library(stringr)

getvp = function(id) {
conn <- odbcDriverConnect("Driver=SQL Server Native Client 11.0;Server=sql.steemsql.com;Database=DBSteem;Uid=steemit;Pwd=steemit")
x <- sqlQuery(conn, str_c("select voting_power from Accounts where name='", id, "'"))
close(conn)
return(x)
}


> @justyy 是 https://justyy.com 的博主,在 @tumutanzi 大哥 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。

@justyy 也是CN 区的点赞机器人,对优质内容点赞,只要代理给 @justyy 每天收利息(年化率14.6%)并能获得一次至少2倍(VP 200%+)的点赞,大鱼 @htliao 都加入了这个计划(530 SP)表示支持。

  1. cn区最低保障系统 上线了!
  2. cn区低保计划(鼓励新人)真的适合你么?

R 教程之 怎么样连接到 STEEMSQL 数据库
R Tutorial – Connecting to STEEMSQL
Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: R Tutorial - Connecting to STEEMSQL - R 教程之 怎么样连接到 STEEMSQL 数据库

2年后再访 77号泰式餐厅 Number 77 Thai Kitchen

2年前刚搬到 Cambourne 的时候去吃了一次 77号泰国酒巴,回味无穷,但由于各种原因,一直没有再去,最近实在想念,于是我们又开车半小时顺着记忆找回熟悉的路。

英国的秋天下午5点天色就有点暗了,我们着急赶路只肚子饿得咕咕叫。

2017-10-14 18.37.39.jpg

穿过几条无人烟的街道,就看到了 乡间小路旁的泰国餐馆。(媳妇 @happyukgo )

2017-10-14 18.04.53_副本.jpg

餐厅内部和两年前没啥变化。

2017-10-14 16.56.49.jpg

菜单则变化较大。Menu has changed quite a lot compared to 2 years ago.

2017-10-14 16.57.15.jpg

泰式炒饭 Thai Egg Fried Rice
2017-10-14 18.37.10.jpg

泰式大虾,份量有点少,不过还是强烈推荐一下。Goong Pao (Grilled Shelled Tiger Prwans, Served with Chilli Sauce and Jasmine Rice)
2017-10-14 18.37.16.jpg

泰式炒面, 脆脆的干辣椒和花生真是点睛之笔。 Pad Thai, Rice noodles with eggs, seasonal vegetables, crushed roasted chilli and peanuts.
2017-10-14 18.37.22.jpg

每次吃泰国餐必点这个神奇的汤,吃得很上瘾,又酸又辣,欲罢不能。泰式冬阴汤(虾),Tom Yum Goong Soup with King Prawn
2017-10-14 18.37.28.jpg

再回首看两年前的照片,感叹时光飞逝。不过,在英国这么鸟不生蛋鸡不拉 sh*t 的地方,能吃个泰国餐就是一件很美好很享受的事情了。


> @justyy 是 https://justyy.com 的博主,在 @tumutanzi 大哥 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。

@justyy 也是CN 区的点赞机器人,对优质内容点赞,只要代理给 @justyy 每天收利息(年化率14.6%)并能获得一次至少2倍(VP 200%+)的点赞,大鱼 @htliao 都加入了这个计划(530 SP)表示支持。

  1. cn区最低保障系统 上线了!
  2. cn区低保计划(鼓励新人)真的适合你么?

Number 77
Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: 2年后再访 77号泰式餐厅 Number 77 Thai Kitchen

Daily #CN Updates CN社区每日榜单【潜在收益排行榜】【优秀被错过的文章】【低保计划参与者】【优质内容点赞记录】(2017-10-14)

数据来源: steemsql.com (Thank you @arcange !)
生成时间: 2017-10-14 11:11:08 (UTC)
报告时间: 2017-10-10 11:11:08 (UTC) - 2017-10-11 11:11:08 (UTC)

2017-10-14 那些优秀可能被错过的文章


Image Credit: pixabay.com
| | 作者 Author| 文章 Post|
|———-|:————-:|:——|
| 1 | @travelgirl | How To Travel By Not Spending Too Much - 怎樣可以很便宜去旅遊 (累積飛行里數篇 1) |
| 2 | @shenchensucc | 我想去火星我是认真的 谷哥点名#10 |
| 3 | @shieha | A Familiar Dog At A Familiar Location - 在熟悉的地方拍常見的狗 |
| 4 | @bring | 给“月旦评”的一点建议 |
| 5 | @tvb | 故事接龙比赛『一男,二女,三門票 - 第四回』– 第三組 |
| 6 | @ygern | 「你住哪?」「就在Minions那裡。」 |
| 9 | @drunkevil | 是时候来一篇正式的自我介绍了 introduceyourself |

本列表支持黑名单用于过滤经常发水文的ID,欢迎 report@justyy.com 举报。

2017-10-14 Daily Top Authors in [CN] (Last 7 Days) 每日cn社区之 过去7天潜在收益排行榜

The following is the list of top 30 daily authors in [CN] in the last 7 days sorted by potential payout. See the SQL for more details.
这是根据这篇的SQL - 经少量修改和调整统计出过去7天作者的潜在收益排行。
| 排名 Rank| 作者 Author| 发贴数 Posts| 点赞数 Votes| 潜在收益 Pending Payout| 平均每贴收益 Average Pending Payout Per Post|
|–:|–:|–:|–:|—:|—:|
| 1| @oflyhigh | 7 | 1849 | 1074.31 |153.47 |
| 2| @rivalhw | 8 | 1219 | 1039.37 |129.92 |
| 3| @deanliu | 6 | 1513 | 923.43 |153.91 |
| 4| @htliao | 7 | 1402 | 857.28 |122.47 |
| 5| @sweetsssj | 2 | 3011 | 824.03 |412.01 |
| 6| @someone | 6 | 943 | 742.49 |123.75 |
| 7| @tumutanzi | 7 | 1141 | 731.79 |104.54 |
| 8| @jubi | 10 | 691 | 590.40 |59.04 |
| 9| @linuslee0216 | 6 | 786 | 566.30 |94.38 |
| 10| @aaronli | 7 | 867 | 500.78 |71.54 |
| 11| @blackbunny | 6 | 585 | 478.59 |79.77 |
| 12| @guyverckw | 11 | 923 | 469.25 |42.66 |
| 13| @twinkledrop | 7 | 402 | 456.94 |65.28 |
| 14| @nicolemoker | 3 | 780 | 431.46 |143.82 |
| 15| @joythewanderer | 5 | 752 | 423.53 |84.71 |
| 16| @chinadaily | 14 | 653 | 373.87 |26.70 |
| 17| @rea | 1 | 765 | 369.78 |369.78 |
| 18| @ace108 | 28 | 1821 | 369.07 |13.18 |
| 19| @stacee | 5 | 496 | 363.30 |72.66 |
| 20| @justyy | 17 | 938 | 351.01 |20.65 |
| 21| @travelgirl | 14 | 715 | 340.80 |24.34 |
| 22| @bxt | 7 | 299 | 325.04 |46.43 |
| 23| @helene | 3 | 562 | 309.00 |103.00 |
| 24| @victorier | 6 | 523 | 304.37 |50.73 |
| 25| @lydiachan | 4 | 325 | 299.85 |74.96 |
| 26| @coldhair | 7 | 440 | 293.76 |41.97 |
| 27| @susanli3769 | 8 | 272 | 284.44 |35.55 |
| 28| @goodboyphilip | 7 | 554 | 275.20 |39.31 |
| 29| @mrspointm | 8 | 457 | 273.42 |34.18 |
| 30| @hannahwu | 8 | 434 | 246.91 |30.86 |

以上收益包括75%的作者收益(Author Rewards)和25%的点赞收益(Curation Rewards)。
@dailystats 提供过去7天全网潜在收益前30名的排名
check @dailystats for top 30 daily authors in the last 7 days sorted by potential payout

CN 区优质内容点赞机器人每天会为这30名作者点赞!
CN Good-Content-Body will upvote these authors every day!

近期机器人点赞记录 Recent Quality-Content-Upvote-Bot Upvoting History

这个机器人很善良,只想激励CN社区产生更多的优质内容。当然别忘记了,我本人人工也是会对未上榜的优质作者进行点赞的哟~

时间 Time 作者 Author 文章 Post 权重 Weighting % VP %
2017-10-14 00:24:15 @ace108 @ace108 30.27 51.57
2017-10-14 02:25:18 @aaronli @aaronli 35.23 52.34
2017-10-14 04:19:24 @hannahwu @hannahwu 23.76 53.60
2017-10-14 04:32:27 @nationalpark @nationalpark 23.75 53.58
2017-10-14 04:36:40 @bxt @bxt 25.49 53.21
2017-10-14 06:55:49 @oflyhigh @oflyhigh 29.75 54.39
2017-10-14 07:41:59 @travelgirl @travelgirl 31.74 54.57
2017-10-14 10:12:44 @goodboyphilip @goodboyphilip 24.42 55.50
2017-10-14 10:13:30 @czechglobalhosts @czechglobalhosts 24.42 55.50
2017-10-14 10:26:10 @deanliu @deanliu 30.25 55.50
2017-10-14 10:30:13 @twinkledrop @twinkledrop 37.05 55.50

这个报告的年龄为: 50天。
为什么要有这个报告?
欢迎 @justyy 如果您有好的建议或者想看哪些榜单却找不到。

@justyy 是 https://justyy.com 的博主,在大哥 @tumutanzi 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。@justyy 也是CN 区的点赞机器人,对优质内容进行点赞,只要代理给 @justyy 每天收利息(100 SP 每天0.04 SBD)并且能获得一次相应至少2倍的点赞,可以认为是VP 200%+。加入计划最低代理10SP。CN 区的大鱼 @htliao 也加入了计划(代理了 530 SP)。

  1. CN 区最低保障系统 上线了!
  2. CN 区低保计划(鼓励新人)真的适合你么?
  3. CN 区优质内容点赞机器人上线了!
  4. 点赞机器人每日点赞记录整合到每日报表中!
  5. 虽然不挣钱,但是CN区低保计划还会继续下去

CN 区低保计划当前37位参于者,感谢!

查询谁都参于了也可以用这个在线工具: Steemit 查看谁委派代理给你Steem Power?
|Delegator| Steem Power| Vests| DateTime|
|–:|–:|–:|–:|
|@eduter|660.05|1357975.69|2017-10-12 21:10:21|
|@htliao|530.3|1091019.80|2017-10-03 12:00:48|
|@sunnyjolly|400.5|823973.51|2017-09-20 09:40:21|
|@mrpointp|400.33|823619.84|2017-09-28 14:09:36|
|@herlife|300.39|618006.65|2017-09-19 14:18:12|
|@zsilence|300.32|617872.78|2017-09-23 16:04:45|
|@mrspointm|300.24|617714.93|2017-09-28 14:07:18|
|@victory622|266.35|547985.69|2017-09-18 21:59:57|
|@coldhair|255.04|524713.00|2017-09-19 15:08:36|
|@luneknight|210.17|432399.70|2017-09-28 14:55:39|
|@berlin1997|200.18|411835.88|2017-09-27 08:55:06|
|@kangnajiang|117.04|240787.09|2017-10-08 10:12:12|
|@zhijun|100.54|206853.00|2017-09-19 03:18:57|
|@icedream|100.13|205996.82|2017-09-20 02:08:24|
|@yellowbird|100.13|205996.48|2017-09-20 02:52:51|
|@jessicameng|100.12|205993.57|2017-09-20 09:14:24|
|@fr3eze|100.09|205931.08|2017-09-26 03:17:24|
|@karasui|100.09|205926.99|2017-09-26 12:31:09|
|@jiangchen|100.08|205895.44|2017-09-29 11:36:09|
|@drunkevil|100.07|205885.32|2017-09-30 10:23:51|
|@catwomanteresa|100.07|205883.35|2017-09-30 14:50:03|
|@mumingduozi|60.24|123928.00|2017-09-19 00:25:12|
|@towardsthesun|50.06|102993.29|2017-09-21 00:33:18|
|@liumei|50.06|102983.93|2017-09-22 17:35:12|
|@tvb|50.04|102943.21|2017-09-30 07:54:27|
|@veronicazhu|50.02|102913.15|2017-10-06 00:26:30|
|@syh7758520|30.04|61802.26|2017-09-19 02:37:42|
|@raywang|30.03|61779.27|2017-09-26 03:40:09|
|@feng1925|20.02|41198.84|2017-09-20 07:52:30|
|@liangfengyouren|20.02|41192.83|2017-09-23 01:40:00|
|@mangoanddaddy|20.02|41189.47|2017-09-24 14:37:42|
|@speeding|20.02|41182.20|2017-09-28 00:34:57|
|@susanli3769|20.01|41176.13|2017-09-30 20:51:39|
|@jiba|15.65|32203.21|2017-09-19 01:04:06|
|@wangwenjing|10.01|20598.79|2017-09-20 21:35:18|
|@lixing|10.01|20596.48|2017-09-23 00:14:33|
|@willwangfeng|10.0|20576.13|2017-10-12 04:24:57|

Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: Daily #CN Updates CN社区每日榜单【潜在收益排行榜】【优秀被错过的文章】【低保计划参与者】【优质内容点赞记录】(2017-10-14)

SteemIt: Javascript Function to Get Original Post from Comment's PermLink - 如何从评论的 PermLink 得到原文的链接?


Image Credit: Pixabay.com

@nationalpark suggests me add ‘original post URL’ in my tool: SteemIt Tool to Recover Deleted Comments/Posts , and here is the way that a permlink for a comment is organized.

For example,

re-tvb-re-justyy-re-tvb-45qr3w-20171011t144205534z

If we split the permlink string by ‘-‘, the last group is obviously the timestamp which we can discard. The rest are in the form of ‘re-author’ where the last group is the original author.

We can split the string and handle the logics straightforward, but the best way is to use the regular expression to match this pattern. The following is the Javascript script function that does the job.

1
2
3
4
5
6
7
8
9
10
var restore = function(url) {
var pat = /(re-\w+-)*((\w+\-)*)/g;
var my = pat.exec(url);
if (my[1] && my[2]) {
var author = my[1].split('-')[1];
var link = my[2].slice(0, -1);
return 'https://steemit.com/@' + author + '/' + link;
}
return null;
}

For example,

1
console.log("re-tvb-re-justyy-re-tvb-45qr3w-20171011t144205534z");

The original steemit post URL is given:
"https://steemit.com/@tvb/45qr3w"

Image Credit: Pixabay.com

昨天, @nationalpark 建议在我那工具: Steemit 查看被删除的评论 里加上原文的链接,并且告诉我如何从评论的 permlink 得到原文的链接,比如:

re-tvb-re-justyy-re-tvb-45qr3w-20171011t144205534z

如果把字符串以 连接符 - 分组,那么最后一个显示是时间 (timestamp), 评论会以 re-作者- 这种方式连接,而最后一组re-tvb 中表示 tvb 是作者, 然后 justyy 回复了,然后 tvb 又回复了。

我们可以写一个函数用 split 分组然后再依次处理,但是有点麻烦,最简单的方法就是按正则表达式,\w 匹配字母, () 取得分组, * 表示匹配0个或多个, + 匹配1个或多个.

Javascript 来写就是:

1
2
3
4
5
6
7
8
9
10
var restore = function(url) {
var pat = /(re-\w+-)*((\w+\-)*)/g;
var my = pat.exec(url);
if (my[1] && my[2]) {
var author = my[1].split('-')[1];
var link = my[2].slice(0, -1);
return 'https://steemit.com/@' + author + '/' + link;
}
return null;
}

比如:

1
console.log("re-tvb-re-justyy-re-tvb-45qr3w-20171011t144205534z");

输出STEEMIT原文链接:
"https://steemit.com/@tvb/45qr3w"

> @justyy 是 https://justyy.com 的博主,在 @tumutanzi 大哥 的介绍下加入 STEEMIT,写些帖子挣些小钱养家糊口。

@justyy 也是CN 区的点赞机器人,对优质内容点赞,只要代理给 @justyy 每天收利息(年化率14.6%)并能获得一次至少2倍(VP 200%+)的点赞,大鱼 @htliao 都加入了这个计划(530 SP)表示支持。

  1. cn区最低保障系统 上线了!
  2. cn区低保计划(鼓励新人)真的适合你么?

如何从评论的 PermLink 得到原文的链接(Javascript)?
Get Original Post from Comment’s PermLink
Steemit 在线工具和API接口
SteemIt Tools and APIs


This page is synchronized from the post: SteemIt: Javascript Function to Get Original Post from Comment’’s PermLink - 如何从评论的 PermLink 得到原文的链接?

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×