SteemIt Bug: Dragging any Texts into the Comments or Post TextBox Fails with `Image upload : Please insert only image files.`

Expected behavior

Dragging a piece of text into a textbox should insert the text to the textbox at the current cursor position

Actual behavior

The SteemIt.com will report error: Image upload : Please insert only image files.

How to reproduce

  1. Open any post
  2. Click Reply
  3. Select any text in the page (post)
  4. Drag the text onto the comment textbox.

Comment:
image.png

Post
image.png

  • Browser: Chrome v63
  • Operating system: Win 10 64 -bit

Please note that it happens for both comments and posts. Basically, anything dragging to the textbox will be considered as ‘images’.



Posted on Utopian.io - Rewarding Open Source Contributors


This page is synchronized from the post: SteemIt Bug: Dragging any Texts into the Comments or Post TextBox Fails with Image upload : Please insert only image files.

兄弟俩放学回家逗邻居的猫 - 还好英国没有狂犬病


这是邻居的猫,两孩子放学回家和猫在玩。有点后怕,怕猫咬伤孩子要是有狂犬病怎么办。后来查了一下,英国没有狂犬病,因为所有的阿猫阿狗都要经过严格的登记和注射狂犬疫苗。

2000年以来,英国仅有少数几例狂犬病,而且全都是到了国外旅游被咬伤没有及时处理回英国后发病的。


▶️ DTube
▶️ IPFS


通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理大于10 SP给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

猜您喜欢


This page is synchronized from the post: 兄弟俩放学回家逗邻居的猫 - 还好英国没有狂犬病

Adding `Image Download List` to the Popular `VideoDownloadHelper` Chrome Extension

The Chrome Extension: Simple Video Download Helper is available on Chrome Webstore. The number of current users exceeds 10000 (Hurrray!)
It is fully open source on Github: https://github.com/DoctorLai/VideoDownloadHelper

New Features

As suggested by my friend, I have added a function allowing users to extract a list of images in the current page.

This commits

For example, when users presses the image button, a list of image sources are listed.
image.png

Source


$("#pic").click(function() {
    let domain = pageurl.replace('http://','').replace('https://','').replace('www.','').split(/[/?#]/)[0];
    if (pageurl.startsWith("http://")) {
      domain = "http://" + domain;
    } else if (pageurl.startsWith("https://")) {
      domain = "https://" + domain;
    }
    $.ajax({
       type: "GET",
       url: pageurl,
       success: function(data) {
          var tmp = [];
          var re = /<img\s[^>]*?src\s*=\s*['\"]([^'\"]*?)['\"][^>]*?>/ig;
          var found = re.exec(data);
          while (found != null) {
              var tmp_url = found[1];
              if ((tmp_url != null) && (tmp_url.length > 0)) {
                if (tmp_url.startsWith("http://") || tmp_url.startsWith("https://")) {
                  tmp.push(tmp_url);
                } else {
                  if (tmp_url[0] == '/') {
                    tmp.push(domain + tmp_url);
                  } else {
                    tmp.push(domain + '/' + tmp_url);
                  }
                }
              }
              found = re.exec(data);
          }
          if (tmp.length > 0) {
            let s;
            if (document.getElementById("lang").selectedIndex == 0) {
              s = '<h3>Images List</h3>';
            } else {
              s = '<h3>图片列表</h3>';
            }
            s += "<ol>";
            for (let i = 0; i < tmp.length; ++ i) {
              s += "<li><a target=_blank href='" + tmp[i] + "'>" + tmp[i] + "</a>";
            }
            s += "</ol>";
            $('div#down').html(s);
          }    
       },
       error: function(request, status, error) {
       },
       complete: function(data) {                        
       }             
    });     
});

How to Contribute

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am ‘Add some feature’
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D



Posted on Utopian.io - Rewarding Open Source Contributors


This page is synchronized from the post: Adding Image Download List to the Popular VideoDownloadHelper Chrome Extension

【第 壹肆玖 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-01-21)

第 149 期日报 (No. 149 Daily Report)
数据来源: steemsql.com
Thank you @arcange for creating STEEMSQL!
生成时间: 2018-01-21 10:10:10 (UTC)
报告时间: 2018-01-17 10:10:10 (UTC) - 2018-01-18 10:10:10 (UTC)

2018-01-21 那些优秀可能被错过的文章


图片来源: 每日BING桌面壁纸 @superbing
| | 作者 Author| 文章 Post|
|———-|:————-:|:——|
| 1 | @happyukgo | 村里停电后 |
| 2 | @stabilowl | Water drops through a macro lens 微距水滴 |
| 3 | @shieha | Waiting - #StreetPhotography |
| 5 | @fr3eze | Aftermath of Bitconnect 骗局后的废墟 |
| 6 | @angelina6688 | 超激动!我设计的CNsteem网页LOGO终于上架啦!大小还在微调中! |
| 7 | @bring | 共建和谐中文社区︱月旦评 Building a Harmonious CN Community |
| 8 | @mrspointm | 我坐过的地铁 |
| 10 | @winniex | 儿子和搜索引挚 My boy and search engine |
| 11 | @bobdos | Sketch Art - CARDANO ICON 漫画涂鸦 - 卡尔达诺图标 |
| 12 | @wilkinshui | Gaomei Wetland in Taichung |

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

2018-01-21 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| @chinadaily | 32 | 1683 | 3058.31 |95.57 |
| 2| @oflyhigh | 14 | 2493 | 2726.49 |194.75 |
| 3| @deanliu | 12 | 1663 | 1698.96 |141.58 |
| 4| @rivalhw | 15 | 1330 | 1553.64 |103.58 |
| 5| @blackbunny | 7 | 561 | 928.10 |132.59 |
| 6| @leftbank | 8 | 400 | 848.04 |106.00 |
| 7| @sweetsssj | 1 | 1939 | 826.76 |826.76 |
| 8| @darksaint | 19 | 116 | 815.51 |42.92 |
| 9| @justyy | 20 | 1244 | 813.90 |40.70 |
| 10| @ace108 | 38 | 2461 | 769.83 |20.26 |
| 11| @breathewind | 5 | 407 | 750.98 |150.20 |
| 12| @rea | 3 | 618 | 730.98 |243.66 |
| 13| @stacee | 15 | 1000 | 662.04 |44.14 |
| 14| @magicmonk | 22 | 939 | 523.19 |23.78 |
| 15| @bxt | 16 | 572 | 495.25 |30.95 |
| 16| @helene | 3 | 440 | 492.87 |164.29 |
| 17| @joythewanderer | 9 | 826 | 482.06 |53.56 |
| 18| @jubi | 16 | 458 | 476.48 |29.78 |
| 19| @rosatravels | 14 | 271 | 467.29 |33.38 |
| 20| @vandadream | 10 | 361 | 465.97 |46.60 |
| 21| @catwomanteresa | 7 | 429 | 459.46 |65.64 |
| 22| @travelgirl | 14 | 864 | 420.20 |30.01 |
| 23| @victory622 | 9 | 351 | 418.81 |46.53 |
| 24| @htliao | 10 | 1106 | 400.59 |40.06 |
| 25| @twinkledrop | 7 | 271 | 399.98 |57.14 |
| 26| @serenawu | 6 | 62 | 293.27 |48.88 |
| 27| @mcw | 7 | 905 | 284.55 |40.65 |
| 28| @lawrenceho84 | 8 | 121 | 283.96 |35.50 |
| 29| @krischy | 4 | 512 | 279.67 |69.92 |
| 30| @leemikyung | 3 | 105 | 263.40 |87.80 |

以上收益包括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-Bot may upvote these authors every day!

2018-01-21 CN区成员谁在 POWER DOWN? (List of CN Members Power Down)

帐号 Account Vesting SP Start 开始时间 Week 第几周
1 @deanliu 18943971.25 9253.96 2017-12-26 05:02:21 3
2 @chinadaily 13353017.02 6522.83 2017-11-12 11:29:09 10
3 @breathewind 11428523.07 5582.73 2018-01-12 09:44:12 1
4 @justyy 10357061.87 5059.33 2018-01-05 22:38:36 2
5 @bxt 9902726.84 4837.39 2018-01-03 14:26:03 2
6 @jubi 7696519.49 3759.68 2017-12-12 15:03:12 5
7 @incrediblesnow 7389795.90 3609.85 2017-12-30 04:57:39 3
8 @skenan 7101819.16 3469.17 2018-01-18 18:09:18 0
9 @victory622 6611074.27 3229.45 2018-01-03 15:11:48 2
10 @catwomanteresa 4097815.27 2001.75 2018-01-03 17:28:45 2
11 @hannahwu 4026549.28 1966.93 2017-11-13 04:49:21 9
12 @mrspointm 3283640.31 1604.03 2018-01-01 01:52:39 2
13 @mrpointp 2983459.91 1457.39 2018-01-07 15:11:48 2
14 @ygern 2325698.66 1136.08 2018-01-15 01:45:42 0
15 @bring 1983823.59 969.08 2017-11-28 11:37:09 7
16 @herlife 1777878.45 868.48 2018-01-02 02:36:39 2
17 @wilkinshui 1627222.09 794.88 2018-01-19 23:18:15 0
18 @icedream 1383700.01 675.92 2017-10-27 01:34:06 12
19 @myfirst 1356870.42 662.82 2017-12-17 02:55:54 5
20 @maiyude 1113021.65 543.7 2018-01-17 06:34:57 0
21 @sunnyjolly 1026321.37 501.35 2017-11-28 08:39:03 7
22 @shengui 1009187.36 492.98 2017-10-28 05:16:27 12
23 @xiaoshancun 943496.12 460.89 2017-12-13 09:20:33 5
24 @cqf 896737.60 438.05 2018-01-02 16:20:48 2
25 @jessicameng 798339.90 389.98 2017-11-02 03:35:39 11
26 @luojia 732186.11 357.67 2018-01-01 03:02:39 2
27 @blacktranquility 497785.05 243.16 2018-01-03 07:20:06 2
28 @wnh518518 462830.27 226.09 2017-12-13 23:07:00 5
29 @karasui 433242.30 211.63 2017-10-25 01:47:33 12
30 @cornelia 410392.63 200.47 2017-12-09 01:19:21 6
31 @candiceji 290057.54 141.69 2017-10-25 01:41:51 12
32 @acactus1013 267616.92 130.73 2017-12-05 01:48:09 6
33 @sen821 260412.70 127.21 2017-11-18 00:22:00 9
34 @sweetcoin 257768.75 125.92 2017-11-25 01:15:39 8
35 @moobear 217682.76 106.34 2018-01-10 19:57:42 1
36 @winniex 205074.80 100.18 2017-12-24 16:37:27 4
37 @ernestine 145269.06 70.96 2017-11-28 08:35:39 7
38 @luneknight 102716.38 50.18 2017-12-20 17:10:30 4
39 @lymichale 102452.75 50.05 2018-01-02 06:04:39 2
40 @kanxsh 92014.73 44.95 2017-12-21 04:22:12 4
41 @cyres 74622.52 36.45 2018-01-03 09:45:27 2
42 @expatkai 73293.77 35.8 2017-12-11 09:16:27 5
43 @bobdos 41038.08 20.05 2017-12-05 10:16:18 6
44 @ceciliali 40398.16 19.73 2017-10-31 05:09:24 11
45 @kangnajiang 35821.54 17.5 2017-12-07 02:40:15 6
46 @lucyshow 31138.42 15.21 2017-11-16 09:11:51 9
47 @ety001 20472.92 10.0 2018-01-19 17:37:33 0
48 @daydayup 18443.12 9.01 2017-12-31 11:17:18 3
49 @cifer 2048.97 1.0 2018-01-03 02:42:57 2
50 @antone 1986.03 0.97 2018-01-15 01:13:36 0

一共正在DOWN的SP总量为:62641.65 Steem Power.

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

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

时间 Time 作者 Author 文章 Post 权重 Weighting % VP %
2018-01-21 00:59:58 @stacee @stacee 8.44 56.60
2018-01-21 01:01:42 @exyle @exyle 10.14 56.60
2018-01-21 01:22:27 @rivalhw @rivalhw 8.44 56.60
2018-01-21 01:35:47 @htliao @htliao 8.40 56.37
2018-01-21 01:35:39 @ace108 @ace108 8.40 56.37
2018-01-21 02:08:22 @happydolphin @happydolphin 8.44 56.61
2018-01-21 02:13:30 @ary.aceh @ary.aceh 8.44 56.61
2018-01-21 02:21:18 @rok-sivante @rok-sivante 9.71 56.61
2018-01-21 02:31:29 @rahdha @rahdha 8.44 56.61
2018-01-21 02:34:26 @bxt @bxt 8.44 56.61
2018-01-21 02:35:38 @breathewind @breathewind 8.44 56.61
2018-01-21 02:42:23 @traf @traf 8.44 56.61
2018-01-21 02:54:25 @ace108 @ace108 8.42 56.49
2018-01-21 03:03:29 @rahdha @rahdha 8.43 56.55
2018-01-21 03:23:33 @jubi @jubi 8.43 56.52
2018-01-21 03:41:37 @nicolemoker @nicolemoker 8.45 56.69
2018-01-21 03:41:57 @deanliu @deanliu 8.45 56.69
2018-01-21 04:00:30 @happydolphin @happydolphin 8.45 56.69
2018-01-21 05:09:25 @world-travel-pro @world-travel-pro 8.58 57.45
2018-01-21 06:05:19 @stacee @stacee 10.35 57.67
2018-01-21 06:15:29 @jubi @jubi 8.62 57.67
2018-01-21 06:22:15 @kinakomochi @kinakomochi 10.35 57.67
2018-01-21 06:29:44 @travelgirl @travelgirl 8.67 58.00
2018-01-21 06:36:28 @gringalicious @gringalicious 8.67 58.00
2018-01-21 06:55:29 @traf @traf 8.67 57.97
2018-01-21 07:01:30 @shogo @shogo 8.67 57.97
2018-01-21 07:15:47 @ace108 @ace108 8.68 58.04
2018-01-21 07:35:17 @ary.aceh @ary.aceh 8.64 57.83
2018-01-21 07:44:27 @stackin @stackin 8.64 57.83
2018-01-21 08:05:21 @babuplrk @babuplrk 8.67 58.03
2018-01-21 08:08:20 @livinguktaiwan @livinguktaiwan 9.57 58.14
2018-01-21 08:34:24 @jaynie @jaynie 8.68 58.06
2018-01-21 09:15:21 @akunstee @akunstee 8.75 58.49

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

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

  1. CN 区最低保障系统 上线了!
  2. CN 区低保计划(鼓励新人)真的适合你么?
  3. CN 区优质内容点赞机器人上线了!
  4. 点赞机器人每日点赞记录整合到每日报表中!
  5. 虽然不挣钱,但是CN区低保计划还会继续下去
  6. cnbuddy 和 YY 银行的区别,哪个更适合你?
  7. YY 银行明天加息到 年利率 8%,点赞比重增加
  8. YY 银行开启互抱大腿模式
  9. 大家好才是真的好,YY银行足球队,你还有啥理由不加入银行?

YY银行有 88位股东,一共股权总量为 17378.67 SP

查询谁都参于了也可以用这个在线工具: Steemit 查看谁委派代理给你Steem Power?
|Delegator| Steem Power| Vests| DateTime|
|:–|:–|:–|:–|
| @davidmendel |3007.25|6156208.05|2017-12-03 20:15:09|
| @bobdos |1000.85|2048851.33|2018-01-04 06:18:45|
| @eduter |926.54|1896743.76|2017-11-06 03:57:36|
| @susanli3769 |800.68|1639097.15|2018-01-04 01:32:00|
| @wongshiying |775.58|1587698.86|2017-12-18 08:45:33|
| @mrpointp |600.93|1230175.09|2017-12-21 01:18:39|
| @htliao |532.95|1091019.80|2017-10-03 12:00:48|
| @daydayup |502.42|1028505.54|2017-10-17 21:39:27|
| @fundurian |501.73|1027100.59|2017-11-13 12:19:12|
| @bigbigfish |500.8|1025193.45|2017-12-20 02:57:39|
| @magicmonk |500.71|1025010.00|2017-12-31 09:50:33|
| @zhouyagen |456.46|934435.22|2017-11-18 05:52:12|
| @timknip |350.71|717941.78|2017-12-11 14:38:21|
| @coolgbd |346.07|708446.66|2018-01-17 08:17:45|
| @zsilence |301.83|617872.78|2017-09-23 16:04:45|
| @mrspointm |301.75|617714.93|2017-09-28 14:07:18|
| @bonjovis |301.22|616635.52|2018-01-06 12:36:00|
| @luneknight |301.1|616380.50|2017-11-09 17:09:45|
| @shengjian |300.99|616162.83|2017-11-16 14:28:48|
| @oldman28 |300.89|615966.94|2017-11-22 19:46:18|
| @stabilowl |300.89|615948.17|2017-11-23 10:04:21|
| @jiayanglai |300.35|614842.63|2017-12-29 02:31:36|
| @znx |300.27|614680.62|2018-01-03 10:21:09|
| @vandadream |200.42|410292.30|2017-12-09 16:27:51|
| @windowglass |200.18|409802.07|2018-01-02 16:37:06|
| @jiangchen |200.14|409703.02|2018-01-07 14:15:54|
| @chenhs |120.06|245786.32|2018-01-10 12:43:45|
| @kangnajiang |117.62|240787.09|2017-10-08 10:12:12|
| @zhijun |101.05|206853.00|2017-09-19 03:18:57|
| @jessicameng |100.63|205993.57|2017-09-20 09:14:24|
| @fr3eze |100.6|205931.08|2017-09-26 03:17:24|
| @drunkevil |100.57|205885.32|2017-09-30 10:23:51|
| @joythewanderer |100.49|205714.60|2017-10-16 14:51:15|
| @shenchensucc |100.47|205666.15|2017-10-21 05:12:21|
| @nationalpark |100.37|205476.85|2017-11-08 03:15:06|
| @aaronli |100.36|205459.25|2017-11-09 19:14:57|
| @lixing |100.35|205422.08|2017-11-13 07:50:27|
| @heyeshuang |100.31|205345.07|2017-11-20 15:45:54|
| @kimzwarch |100.22|205157.12|2017-12-08 15:06:21|
| @lymichale |100.12|204957.31|2017-12-28 03:26:51|
| @ety001 |100.09|204901.79|2018-01-02 14:49:00|
| @towardsthesun |100.05|204806.36|2018-01-12 01:53:21|
| @rmb |80.15|164066.73|2017-12-15 18:27:39|
| @liangfengyouren |80.0|163779.93|2018-01-20 03:42:03|
| @redtea |70.23|143768.53|2017-11-16 23:37:12|
| @xyj |70.14|143588.38|2017-12-11 14:32:51|
| @monkeyplayfire |70.14|143587.76|2017-12-11 16:36:12|
| @melaleuca |70.05|143397.28|2018-01-07 10:07:03|
| @xiaoshancun |68.28|139787.01|2017-10-30 09:51:18|
| @mumingduozi |60.54|123928.00|2017-09-19 00:25:12|
| @yellowbird |60.07|122966.85|2017-12-29 09:07:00|
| @antone |60.03|122894.54|2018-01-10 07:14:27|
| @liumei |50.31|102983.93|2017-09-22 17:35:12|
| @tvb |50.29|102943.21|2017-09-30 07:54:27|
| @veronicazhu |50.27|102913.15|2017-10-06 00:26:30|
| @waiyee422 |50.06|102477.92|2017-12-28 06:55:36|
| @aafeng |50.04|102428.85|2018-01-06 23:32:54|
| @syh7758520 |50.03|102427.08|2018-01-07 07:58:21|
| @angelina6688 |50.01|102378.14|2018-01-17 01:23:00|
| @bigcat |42.14|86268.13|2017-11-15 09:29:03|
| @speeding |40.19|82280.25|2017-10-17 22:45:06|
| @liuboya |40.01|81905.39|2018-01-16 08:28:51|
| @raywang |30.18|61779.27|2017-09-26 03:40:09|
| @jychbetter |30.09|61598.33|2017-11-22 07:20:24|
| @renzhichu |30.05|61510.38|2017-12-20 12:31:12|
| @tranquilpoem |29.06|59492.92|2017-12-09 12:10:54|
| @al2ping |25.04|51257.35|2017-12-21 00:46:18|
| @hopsken |25.02|51223.74|2018-01-03 06:59:57|
| @chenhb1968 |24.0|49133.01|2018-01-20 13:16:30|
| @jiba |20.09|41120.90|2017-10-27 01:25:36|
| @techlee |20.08|41098.79|2017-11-06 12:28:48|
| @yanel |20.07|41080.66|2017-11-15 02:42:27|
| @pptx |20.03|41010.70|2017-12-18 16:21:21|
| @wlcpu |20.03|41005.90|2017-12-21 00:34:42|
| @acat |19.13|39160.91|2018-01-06 19:35:30|
| @lovemyson |18.02|36894.30|2017-12-27 01:26:24|
| @irenett |15.0|30710.94|2018-01-18 16:54:03|
| @daxiang |11.01|22532.46|2018-01-08 16:18:51|
| @wang-peilin |11.01|22532.03|2018-01-09 01:47:00|
| @nahaha |10.52|21528.04|2017-12-21 01:50:48|
| @wangwenjing |10.06|20598.79|2017-09-20 21:35:18|
| @willwangfeng |10.05|20576.13|2017-10-12 04:24:57|
| @winniex |10.04|20547.82|2017-11-08 00:07:12|
| @zizizhuji |10.03|20541.39|2017-11-14 02:23:18|
| @coindzs |10.02|20502.83|2017-12-21 03:19:33|
| @sphenix |10.01|20498.31|2017-12-25 14:37:48|
| @yuan0601 |10.01|20487.39|2018-01-05 09:01:57|
| @huayi |10.01|20485.68|2018-01-07 01:34:21|
一共 17378.67 SP, 35576252.58 VESTS。

通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理大于10 SP给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

SteemIt 教程、机器人、在线工具和API接口
SteemIt Tutorials, Robots, Tools and APIs
AD 一波,1 SBD 比 STEEM值钱,所以你把钱存在YY银行是很划算的,YY银行吃的是草(借的SP),挤的是奶啊(SBD利息),每日发 SBD利息,从不间断。祝股东们都在2018里赚大钱,实现财务自由啊!

加入公众号 justyyuk 即可以实时查询 BTC, SBD, STEEM, YOYOW, LTC, ETH 等虚拟货币的价格.


This page is synchronized from the post: 【第 壹肆玖 期】Daily #CN Updates CN社区【收益排行榜】【CN区谁在POWER DOWN?】【优秀被错过文章】【YY银行股东】(2018-01-21)

Adding Water Vapour Attenuation to NPM Library `AttenuationByAtmosphericGases`

Previously, in NPM Javascript to compute Attenuation By Atmospheric Gases ( ITU-R P.676-9), the Javascript Library is published on NPM that computes the attenuation (unit of dB loss per km) given the frequency, temperature and the atmospheric pressure (unit of hPa).

with the latest commits to the package AttenuationByAtmosphericGases version 2.0.0, the library allows also computing the attenuation for water vapour.

As referenced in Page 15 of ITU-R P.676-9, the water vapour attenuation regarding to frequency of the radiowave, temperature, atmospheric pressure (unit of hPa) and the water-vapour density (unit of g/m3) is given in the following formula:

image.png

The latest commits:

Example

1
2
3
4
5
6
var GetWaterAttenuation = require('attenuationbyatmosphericgases').GetWaterAttenuation;
let frequency = 10;
let temperature = 15;
let pressure = 1013; // hpa
let density = 7.5; // g/m3
console.log(GetWaterAttenuation(frequency, temperature, pressure, density));

Frequency ranges

This library supports from 0 to 350 GHz.

Technology Stack

The library is built on Javascript and made public on NPM: https://www.npmjs.com/package/attenuationbyatmosphericgases

Github

https://github.com/DoctorLai/AttenuationByAtmosphericGases
Contributions are welcome.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am ‘Add some feature’
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Unit Tests

Unit tests are built on mocha and chai the Javascript unit testing framework, and you can run tests via npm test

1
2
3
4
5
describe('water', function() {
it('water', function() {
GetWaterAttenuation(10, 15, 1013, 7.5).should.be.closeTo(0.28112047608612034, 1e-3);
});
});



Posted on Utopian.io - Rewarding Open Source Contributors


This page is synchronized from the post: Adding Water Vapour Attenuation to NPM Library AttenuationByAtmosphericGases

(老照片)英国女皇百年前造访剑桥 - Old Photography of Queen in 1918

公司的会议室墙上挂着两张老的黑白照片.

第一张,照片上写着 “Presented to Paproth 啥啥啥 剑桥” 和 “In commemoration of the Queen’s visit Oct 9/1918” 也就是说1918年10月9日,女皇访问剑桥,留影纪念。
2018-01-18 15.26.22.jpg

这个女皇不是现在在位的伊丽莎白二世,现在的女皇1926年生,1952年即位,已经超长待机65年。

照片中最中间的就是女皇,感觉100年前的英国人穿着和现在的英伦风没啥区别。不过话说回来,照片中没说哪个女皇,我查了一下维基,猜是 伊丽莎白王太后(Elizabeth Angela Marguerite Bowes-Lyon,1900年8月4日-2002年3月30日),比较有可能是她。

第二张黑白照片就没有说明,我有脸盲,分不清是不是同一个女皇。

2018-01-18 15.26.38.jpg

另:这次访问是发生于第一次世界大战即将结束的时候(1918年11月11月一战结束)。


通过 SP 代理工具 成为 YY银行股东,好处多多。只要代理大于10 SP给 @justyy 即可自动成为YY股东。用同样的工具输入0取消代理退出股东。来去自由,取消代理后系统需要7天才能将您代理的SP退回到您的帐号上。友情提示,不建议把所有SP都代理给银行,因为你需要留一些能量发贴。

猜您喜欢


This page is synchronized from the post: (老照片)英国女皇百年前造访剑桥 - Old Photography of Queen in 1918

Your browser is out-of-date!

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

×