text:
windows系统下一直没用起来~求助

你使用的 chinesesubfinder 是什么版本，什么环境？
windows server 2022

chinesesubfinder 版本: vx.x.x
版本是v0.43.1
环境: docker or Window or Linux or MAC
windows
在程序运行日志头部或者 Web UI 可以看到

你遇到什么问题了？

描述一下你遇到的问题

库扫不到东西，另外配置中心里 emby配置 检测怎么都不通过

你的问题弄重现嘛？

能够重新，不能够重现

能够重现
你期望的结果

描述以下你期望的结果

能用上就行
给出当前程序的配置文件

/volume1/docker/chinesesubfinder/config:/config 下，ChineseSubFinderSettings.json，记得把你的用户名、密码、Emby API 敏感信息删除
可以复制上面的配置，使用类似在线 json 格式化的工具进行一次处理，方便阅读，JSON 在线解析及格式化验证 - JSON.cn

{
"SpeedDevMode":false,
"user_info":{
"username":"xxxxxx",
"password":"xxxxx"
},
"common_settings":{
"interval_or_assign_or_custom":0,
"scan_interval":"@every 6h",
"threads":6,
"run_scan_at_start_up":false,
"movie_paths":[
"D:\media\电影"
],
"series_paths":[
"D:\media\电视"
],
"local_static_file_port":"19037"
},
"subtitle_sources":{
"assrt_settings":{
"enabled":false,
"token":""
}
},
"advanced_settings":{
"proxy_settings":{
"use_proxy":false,
"use_which_proxy_protocol":"http",
"local_http_proxy_server_port":"19036",
"input_proxy_address":"127.0.0.1",
"input_proxy_port":"10809",
"need_pwd":false,
"input_proxy_username":"",
"input_proxy_password":""
},
"tmdb_api_settings":{
"enable":false,
"api_key":""
},
"debug_mode":false,
"save_full_season_tmp_subtitles":false,
"sub_type_priority":0,
"sub_name_formatter":0,
"save_multi_sub":false,
"custom_video_exts":[
    ],
    "fix_time_line":false,
    "topic":1,
    "suppliers_settings":{
        "csf":{
            "name":"csf",
            "root_url":"haha",
            "search_url":"haha",
            "daily_download_limit":-1
        },
        "xunlei":{
            "name":"xunlei",
            "root_url":"http://sub.xmp.sandai.net:8000/subxl/%s.json",
            "search_url":"",
            "daily_download_limit":-1
        },
        "shooter":{
            "name":"shooter",
            "root_url":"https://www.shooter.cn/api/subapi.php",
            "search_url":"",
            "daily_download_limit":-1
        },
        "subhd":{
            "name":"subhd",
            "root_url":"https://subhd.tv/",
            "search_url":"/search/%s",
            "daily_download_limit":20
        },
        "zimuku":{
            "name":"zimuku",
            "root_url":"https://zimuku.org/",
            "search_url":"/search?q=%s",
            "daily_download_limit":20
        },
        "assrt":{
            "name":"assrt",
            "root_url":"https://api.assrt.net/v1",
            "search_url":"",
            "daily_download_limit":-1
        },
        "a4k":{
            "name":"a4k",
            "root_url":"https://www.a4k.net/",
            "search_url":"/search?term=",
            "daily_download_limit":-1
        }
    },
    "scan_logic":{
        "skip_chinese_movie":false,
        "skip_chinese_series":false
    },
    "task_queue":{
        "max_retry_times":3,
        "one_job_time_out":300,
        "interval":10,
        "expiration_time":90,
        "download_sub_during_x_days":7,
        "one_sub_download_interval":12,
        "check_pulic_ip_target_site":""
    },
    "download_file_cache":{
        "ttl":4320,
        "unit":"hour"
    }
},
"emby_settings":{
    "enable":true,
    "address_url":"http://127.0.0.1:8096/",
    "api_key":"865dabef58xxxxxxba325bf707a18e49 ",
    "max_request_video_number":3000,
    "skip_watched":true,
    "movie_paths_mapping":{
        "D:\\media\\电影":""
    },
    "series_paths_mapping":{
        "D:\\media\\电视\\欧美剧":"",
        "D:\\media\\电视\\欧美剧\\破产姐妹 (2011)":""
    },
    "auto_or_manual":true,
    "threads":6
},
"developer_settings":{
    "enable":false,
    "bark_server_address":""
},
"timeline_fixer_settings":{
    "max_offset_time":700,
    "min_offset":0.2
},
"experimental_function":{
    "auto_change_sub_encode":{
        "enable":false,
        "des_encode_type":0
    },
    "chs_cht_changer":{
        "enable":false,
        "des_chinese_language_type":0
    },
    "remote_chrome_settings":{
        "enable":false,
        "remote_docker_url":"",
        "remote_adblock_path":"",
        "remote_user_data_dir":""
    },
    "api_key_settings":{
        "enabled":false,
        "key":""
    },
    "local_chrome_settings":{
        "enabled":false,
        "local_chrome_exe_f_path":""
    },
    "share_sub_settings":{
        "share_sub_enabled":true
    },
    "extend_log":{
        "SysLog":{
            "enable":false,
            "network":"",
            "address":"",
            "priority":0,
            "tag":""
        }
    }
}

}
如果是使用 Docker，请给出对应的配置信息

比如 Docker-Compose 信息，如果是其他方式使用忽略

给出媒体文件夹的目录结构
电影结构目录如下

电视剧结构目录如下

首先你需要去看主页的部署教程，确认你目录结构是规范的，如果你觉得没问题，那么请除非目录结构截图

是否看过对应的目录结构要求文档？

电影的推荐目录结构
连续剧目录结构要求

请给出当次问题的完整日志

日志在程序的 Logs 目录下，如果你用的是 docker ，那么需要你映射出来。

/volume1/docker/chinesesubfinder/config:/config 下，Logs 中

目录结构不对，仔细看目录结构的要求文档的示例。


text:
Populate date fields with existing date if present

Simple change which sets the DateTimePicker defaultDate to show any existing date stored when editing date fields.

This looks like a good change. Is this project still being maintained?

source: gharchive/pull-request

authors: nodesocket stuhol

repo: allcount/allcountjs

license: mit

license_type: permissive

license_source: bigquery


text:
expanding artifact uniqueness comparison criteria

Hello,
In your current implementation of artifact feature, you are checking to see if the entire dataframe row is the same, and if even one column is different you'll mark these 2 rows as unique.
On my testing code, I am going over a CSV file that gives me annotations of videos, I sometime make a mistake and have 2 rows with the same video but with different annotation, it is very hard to avoid as this mistake.
I want to have a feature where comparing 2 rows can be done based on a single or multiple columns, IE, if first column called "name" is the same, but the rest are not (what I use for annotations) you'll indicate that these 2 rows are the same.
I want to be able to choose which columns to compare, or to just have the configuration as it is now (compare all columns).
It will be good to have this flexibility.
Thank you

Thanks for the suggestion @algguarding ,
Making sure I understand you correctly, you suggest to add a parameter to Task.register_artifact,
where you could select specific columns for the "uniqueness" and "overlap between artifacts" calculation?

Yes this was my meaning.
I think that by default, you can compare every column, and have a parameter that chooses which columns you're comparing.
If in 2 rows the columns it's comparing are the same, then we conclude these 2 rows are identical, regardless of other columns which can be different or the same, they are ignored in the comparison.
I want to be able to specify which columns will be compared.

Cool feature
I'll update here once it is added, shouldn't take too long ;)

Hi @algguarding  ,
Trains v0.13.0 was just released, with artifact uniqueness support.
$ pip install trains==0.13.0

source: gharchive/issue

authors: algguarding bmartinn

repo: allegroai/trains

license_source: github-api


text:
[Bug Fix] Fix step misalignment when resuming from a checkpoint

Note 1: completed_steps update as the optimizer steps, while step as the dataloader, so there is a scaling factor of gradient_accumulation_steps between them.
Note 2: step starts from 0, while completed_steps starts from 1, so we need to add 1 to step to decide whether to add 1 to completed_steps.
Otherwise, e.g. "step_300" , resume_step = 4800, args.gradient_accumulation_steps = 16,
completed_steps < 300 should be skipped, while completed_steps >= 300 should not;
0 <= step < 4800 should be skipped, while step >= 4800 should not be skipped.
When step = 4784 (0 = 0 * 16, ..., 4784 = 299 * 16) => completed_steps = 299;
after completed_steps += 1, completed_steps = 300;
then step = 4785, completed_steps = 300, and this step batch would not be skipped,
which is not what we expect.

Hi @tongyx361 thanks for the PR! The issue you pointed and changes you suggested look correct to me.
I noticed the huggingface official example also had a few new commits (https://github.com/huggingface/transformers/commit/b191d7db442fcd4ea794768363155c091e60b868, https://github.com/huggingface/transformers/commit/f7d80cb3d25e26cfae7fa5c91bc6fe8552ed68ea, https://github.com/huggingface/transformers/commit/656e17f6f7eded9df87ad59cbd064fdf5f44f708) for fixing this. So, we need to update this code anyway.
Would you like to update the PR by using the huggingface way to do this? That will be very much appreciated!

Hi @tongyx361 thanks for the PR! The issue you pointed and changes you suggested look correct to me.
I noticed the huggingface official example also had a few new commits (huggingface/transformers@b191d7d, huggingface/transformers@f7d80cb, huggingface/transformers@656e17f) for fixing this. So, we need to update this code anyway.
Would you like to update the PR by using the huggingface way to do this? That will be very much appreciated!

Thanks for your attention!
I've updated the PR by using the huggingface way to fix the resuming logics. (see 82cc80e9a97d3ee1bdad29755bfcdeec21283359)

Hi @tongyx361 thanks for the PR! The issue you pointed and changes you suggested look correct to me.
I noticed the huggingface official example also had a few new commits (huggingface/transformers@b191d7d, huggingface/transformers@f7d80cb, huggingface/transformers@656e17f) for fixing this. So, we need to update this code anyway.
Would you like to update the PR by using the huggingface way to do this? That will be very much appreciated!

I've refactored it in the HF Transformers example way and  with minimal revision. (see 1e9a885779c9d34d16e5c9c8da3b4dceee609b0c)

Lgtm. Thanks for the contribution! I merged it into the main branch.
Cc @hamishivi

repo: allenai/open-instruct


text:
Extract font information for tokens

As part of my work to improve the speed of symbol detection, I needed our equation processor to know:

Each letter / digit (i.e., token) that makes up a symbol. This is because the new symbol detector needs to find the position of each letter/digit/token in a symbol separately before merging these positions to find the position of the symbol that contains it (e.g., find both an 'x' and 'i' before trying to find the symbol 'x_i'.

What LaTeX fonts are applied to those tokens (e.g., \mathbf, \mathcal, etc.). As the new symbol detector is based on matching images of expected tokens against the document, it needs to know what fonts should be used to format each token when rendering it to an image.

The MathML for each of those tokens. This can be used as a unique key for tokens, allowing us to extract images for each token (i.e., each letter-font combination) only once.

A related PR is our change to the KaTeX code (see https://github.com/allenai/KaTeX/pull/5) which ensures that, most of the time, symbols are split into single letters and annotated with font informationwhen parsed by KaTeX.
Then, in this PR, the paper processing code was updated to process the output of KaTeX to extract tokens in such a way that tasks 1, 2, and 3 are satisfied. Most of the changes appear in the parse_equation.py file.
See proof that MathML and font information is being extracted for tokens from this clipping of the data/*-detected-equation-tokens/entities.csv file, generated by running python scripts/run_pipeline.py --entities symbols --extraction-only --arxiv-ids 1601.00978:

Kyle asks if, long term, we make sure there are not issues caused by KaTeX normalizing the macros used for styling (e.g., converting \tt to \texttt)

repo: allenai/scholarphi


text:
Kylel/semeval2017

just the NER portion

I have trained the model with the semeval2017 data and evaluated it afterwards with semeval2017 evaluation script. I'am confused why I get so different results:
"best_validation_f1-measure-overall": 0.5288376220052742
"test_f1-measure-overall": 0.4320540671010848,
Results reported by the semeval2017 evaluation script on test set:
precision   recall f1-score  support
Material     0.44     0.43     0.44      904
Process     0.41     0.36     0.38      954
Task     0.17     0.15     0.16      193
avg / total     0.40     0.37     0.39     2051
So F1 is 0.39.
Do you have maybe a reasonable explanation for this difference?

hey @arthurbra thanks for your interest!  i've been looking into this difference as well, and it looks like the task definitions are different between what we've implemented here & the original semeval2017 task.
specifically, the 3 tasks in semeval2017 are (1) entity identification, (2) entity type classification, and (3) relation extraction.  what we've implemented here combines both (1) and (2) into a single task (we're both extraction & tagging w/ the type at the same time).  this will affect how f1 scoring is performed.
instead of using the sequence tagging model we have here, my plan is to adapt an existing model made for the semeval2017 task, and substitute in the various bert variants to replace glove/w2v embeddings.

Hey @kyleclo thanks for your reply and explanation. I am really impressed by your results and want to learn more.
It is right, you perform entity identification and classification in one task. In my understanding this is task B in semeval 2017. In calculateMeasures of semeval2017 evaluation script you can pass the parameter remove_anno="rel" which should ignore relations during evaluation (as far as I understand the code). I already used this parameter in the evaluation of my prev. post. So I assume there should be an another explanation.
It would be great if you could apply the code of the semeval 2017 winner with BERT. Unfortunatelly I was not able to find it (AI2 system of Ammar et. al.).

Hi Kyle,
I think I have found the problem: in the prediction script model.eval() is not called, so that dropout is active during prediction.
Regards
Arthur

authors: arthurbra kyleclo

repo: allenai/scibert


text:
Detect CodeGen gaps by leveraging both server and client generation for TypeSpec-ToDo

Generate the server code for TypeSpec-ToDo with some basic implementation.
Generate client code for Java, Python, JS & .NET and try to run them against service code.

Please help to detect gap by scanning the code and run some manual testing.
Areas to verify:
a. The behavior of different error code handling.
b. Paging behavior.
c. Basic CRUD operation could work E2E.

cc @ArcturusZhang , could you help with server generation and work with language owner to verify the client code E2E

For dotnet generated library:

NoAuth is not working. This spec has @useAuth(NoAuth) on the Users namespace. But the generated Users subclient is actually not affected at all.
ApiKeyAuth<cache, "session-id"> is not quite working in the cache way.
The @visibility("none") property Validated is exposed in the client generated result (known issue for generator)
Pageable operations are not generated as pageable because pageable is not implemented for unbranded libraries.

Java

Only 1 Auth is supported for the whole service. So NoAuth does not work.
Error model is not generated.
Pageable operation is not generated as pageable. Design pending.

Python issues summary:  https://github.com/Azure/autorest.python/issues/2934

authors: ArcturusZhang lirenhe msyyc weidongxu-microsoft

license: MIT


text:
Error occured at: goaccess.c - main - 832

I have goaccess this version. And I have this log format
98.167.1.1 | [25/Jan/2016:06:25:03 +0300] | GET /funnel/?esub=PBZYWHpPZzxuCFpPemJsCB1KDmMMCQ8REDsIDW4WA01lW0lYel1P&isp=1 HTTP/1.1 | 200 | 0 | http://imp.com/rndr/MyJane/?esub=PBZIWHpVBFZ9HUAJbm94HFZZDWsVHU0fCHoZByc | Mozilla/5.0 (Linux; Android 4.4.2; RCT6573W23 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36 | 88.7.7.7:80 | 0.011 | 200 | - | imp.com

But when I try parsing log I got this error
GoAccess - version 0.8.3 - Aug 30 2014 07:43:50

Fatal error has occurred
Error occured at: goaccess.c - main - 832
Nothing valid to process.

You won't be able to fully parse the string since the user agent doesn't really look like it has a delimeter. Are you somehow escaping | within the user agent?
The following partially works for the log posted above:
log-format %h %^[%d:%t %^] | %m %U %H | %s | %b | %R | %^
date-format %d/%b/%Y
time-format %H:%M:%S

In version 0.8.3 time format not supported?

The time-format variable was added on v0.9

Closing this. Feel free to reopen it if needed.

authors: allinurl mikonoid

repo: allinurl/goaccess


text:
Topbar 导航条 优化

导航条在手机端am-topbar-right没用，还有能不能有个居中的样式呢？想自己布局个导航，左边logo，中间有个下拉菜单，右边也有个下拉菜单，样式不支持，能否写到框架里呢？谢谢

么人打理我

你说的和 http://amazeui.org/css/topbar 这上面的例子不是差不多吗？

差的多么，想把那个下拉放中间，好像没有居中的样式只有am-topbar-right和am-topbar-left，手机上的话am-topbar-right是不管用的

不想用手机端右边那个绿色的菜单

这个得自己写点 CSS 去实现了，不可能满足所有人的需求。

好吧，那手机端am-topbar-right也是个bug，能否解决一下呢，谢谢

你说的 bug 具体是什么情况？

640px以下的

http://bin.amazeui.org/tewalo/1/edit?html,output

        Amaze UI

          <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>其他 </button>

注册

随便看看

活学活用，学会变通。理解背后的实现方式，才能运用自如。

嗯，谢谢，你人真好

repo: allmobilize/amazeui


text:
Git tags should not be overwritten

Overwriting Git tags, also known as "re-tagging", is not the best idea.
This article has good explanation  - https://git-scm.com/docs/git-tag#_on_re_tagging
Please don't use tags like latest. If you need a moving label for master branch, this is what Git branches are for.

@vladupshot

It's been some time since I complained on the issue. Fortunately, since then we (Chorus One) have published a book on Open Source Engineering, where this particular problem is described.
It's a good read, and I can recommend it to all blockchain engineers
https://handbook.chorus.one/node-software/release-engineering.html#no-retagging

@okedeji @mgladson @kihahu
can one of you take a look at this? I don't think we're still doing this?
I don't have context to see if we can close this ticket or not

I think it's still relevant

I think we finally stopped doing this, we have new processes for releases if you'll look now, the last "latest" was three weeks ago
and on top of that I have now deleted it
➜  allora-chain git:(dev) git push --delete origin latest
To github:allora-network/allora-chain
 - [deleted]           latest

Thanks for flagging this

repo: allora-network/allora-chain


text:
Let zetajs return unwrapped ANY representations

...instead of wrapped ones, which should simplify client code that interacts with such ANY values (witness the corresponding simplifications made here throughout the examples/ and test/ trees).  For special situations where wrapped representations are asked for, a $precise property is invented through which wrapped ANY representations are returned.

@stbergmann Rebased the commit for you.
https://github.com/allotropia/zetajs/commits/34517f8e1a47bed4dc38c9e6aff0f0c36d0d5483/

@stbergmann Rebased the commit for you. https://github.com/allotropia/zetajs/commits/34517f8e1a47bed4dc38c9e6aff0f0c36d0d5483/

thanks, but I'd already done that locally, anyway

authors: kolAflash stbergmann

repo: allotropia/zetajs


text:
[Fix] Rename ManagedNonceLayer to NonceManagerLayer

Motivation

Closes #35
Solution

Updates to latest Alloy / Alloy Core commit, renames ManagedNonceLayer to NonceManagerLayer.
Adds small comment fix and enhance Clippy linting rules.
PR Checklist

[x] Added Documentation
[ ] Breaking changes

Merging as is, considering it is a simple upgrade to match latest version of Alloy

repo: alloy-rs/examples


text:
Make Fred a betting master 🎲🎲🎲

Resolves #20
This will allow for rolls in two formats.
DnD style rolling:
fred roll [3d]50

Where

3 would be the number of dice.
50 is the sides of the dice.

WoW style rolling:
fred roll [1] [100]

Where

1 would be the lower bound of the roll. Inclusive.

Optional. Default is 1.

100 would be the upper bound of the roll. Inclusive.

Optional. Default is 100. If only one value is provided, it will be the upper bound.

The most minimal version of the roll in WoW style is
fred roll

Since every other value is optional.
There are a few checks in place to make sure that the math is safe, and the regex make sure that the values provided are all valid numbers.
Thank you Adam for the regex!

I may have messed up in rebasing into origin/master. Closing this and reopening with new branch.

repo: allygator/fred-for-discord


text:
User story icon was not showing

There hasn't been any icon defined for a user story and so I've picked
the map marker icon (See here http://fontawesome.io/icon/map-marker/).
But I accidently used the wrong CSS name. This change uses the correct
CSS name.

Codecov Report

Merging #935 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #935   +/-   ##
=======================================
  Coverage   68.63%   68.63%
=======================================
  Files          93       93
  Lines        6957     6957
=======================================
  Hits         4775     4775
  Misses       1735     1735
  Partials      447      447

Impacted Files
Coverage Δ

migration/migration.go
45.65% <0%> (ø)
:white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 645ca0e...e1a0613. Read the comment docs.

authors: codecov-io kwk

repo: almighty/almighty-core


text:
Display "No filters available" message for a user who has not logged in or has not filters available (#526).

Display "No filters available" message for a user who has not logged in or has not filters available (#526).

Current coverage is 63.41% (diff: 100%)

Merging #534 into master will not change coverage

@@             master       #534   diff @@
==========================================
  Files            27         27
  Lines          1282       1282
  Methods         270        270
  Messages          0          0
  Branches        258        258
==========================================
  Hits            813        813
  Misses          469        469
  Partials          0          0

Powered by Codecov. Last update 10f262f...bffda17

authors: codecov-io nimishamukherjee

repo: almighty/almighty-ui


text:
Allow silencing of REPL output from Jupyter API

In some of the notebooks I've been working on, all relevant results are presented as html tables, plotly graphs, etc. This means that the REPL output (variable definitions, imports etc.) is not really adding any extra information, and tends to get in the way of the data. Reducing the defaultHeight in pprinter helps, but since there are still quite a lot of individual lines of code it still leaves a lot of unwanted output.
Looking through the code, there is a parameter silent in ammonite.interp.Interpreter.processLine, which is called from almond.Execute. Setting this to true seems to have the desired effect of removing REPL output, while preserving Display and println output. I've had a quick look in the ammonite code and it seems to do what you would expect :)
I'll put together a pull request to add a silent property to kernel, which can be used as follows:

I'm new to the Almond code (I'm really enjoying using it, thanks!), so I'm not sure that this is the right place to put the setting, or that the implementation is correct, but it does demonstrate how the feature would work :)

Implemented in #450

authors: sbrunk trepidacious

repo: almond-sh/almond


text:
CU-861n18gq5_add-id_Alok-Hom

id

Task linked: CU-861n18gq5 add id

repo: alokhom/flux


text:
encode recipes with msgpackr

netlify is using something around compression level 2 or 3:
$ curl 'https://craftingway.app/recipes.json' -H 'Accept-Encoding: gzip, deflate, br' -I
[...]
content-length: 183774

$ brotli -3vf public/recipes.json
Compressed [public/recipes.json]: 2.559 MiB -> 169.192 KiB

with msgpackr in records mode, I'm able to get something 41% smaller after brotli compression
$ brotli -3vf public/recipes.msgpack
Compressed [public/recipes.msgpack]: 480.569 KiB -> 118.525 KiB

there's also another 7 KiB of msgpackr JS
$ curl 'http://localhost:5173/node_modules/.vite/deps/msgpackr_unpack.js' -o m.js

$ brotli -3vf m.js
Compressed [m.js]: 31.917 KiB -> 7.470 KiB

Sweet. Apparently this is even faster than JSON.parse, too.

authors: alostsock raylu

repo: alostsock/craftingway


text:
[Bug Report] 在responsed 的 onSuccess 钩子函数内抛错无法被 onError 捕获

重现链接
https://codesandbox.io/p/sandbox/vigilant-grothendieck-lr4qxj?file=%2Fsrc%2Fapi.js&selection=[{"endColumn"%3A42%2C"endLineNumber"%3A18%2C"startColumn"%3A42%2C"startLineNumber"%3A18}]
alova 版本
2.1.0
描述一下你遇到的问题。
onSuccess内抛错无法被onError捕获
  responsed: {
    onSuccess: (response: any) => {
      console.log("onSuccess", response)
      throw new Error("onSuccess")
      // return (response as any).json()
    },
    onError: (response) => {
      console.log("onError", response)
      throw new Error("onError")
    }
  }

重现步骤

请求接口
onSuccess 钩子函数 throw new Error 抛出错误
未进入 onError 钩子函数

设备/浏览器/浏览器版本
Microsoft Edge 版本 112.0.1722.39 (正式版本) (64 位)

感谢你的反馈！！！🤞
这边其实是有意为之的，我们在设计的时候参考了axios的处理逻辑，onError只有在请求错误的时候才会被触发。

是不是有什么需求不好实现的，可以在这边提出来，一起解决。

好的  ,我看ts声明文件内有这个注释所以就试了试

应该是注释错了，我在后续更正这个注释

那这个错误会被usereq的 error拿到吗

那这个错误会被usereq的 error拿到吗

会的，在以下几种情况都可以在useRequest的error中获得：

在全局的responded抛出错
请求或传参导致的错误，又或者在meethod实例中的transformData抛出错误，但在全局的onError中未捕获
全局的onError中抛出了错误

authors: JOU-amjs day-xue hushed3

repo: alovajs/alova


text:
Building alpa/jaxlib for TPU

I'm currently trying to run some benchmark of alpa on TPUv2 and TPUv3. I ran into problem trying to install alpa on TPU.
First I tried following the guide for installation. Since it didn't mention TPU, I started by install tpu and google's tpulib first using the following command:
pip install jax[tpu]==0.3.22 -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
Then I installed alpa following the guide, using the prebuilt jaxlib wheels from https://alpa-projects.github.io/wheels.html (The original jaxlib was first uninstalled)
pip3 install jaxlib==0.3.22 --no-index -f https://alpa-projects.github.io/wheels.html
However, after installing jaxlib, TPU can no longer by detected as a backend. The error I got was:
RuntimeError: Unable to initialize backend 'tpu': module 'jaxlib.xla_extension' has no attribute 'get_tpu_client' (set JAX_PLATFORMS='' to automatically choose an available backend)
It seemed the prebuilt wheels do not support TPU, so I tried building jaxlib myself, following the instructions in Method 2: Install from Source (https://alpa.ai/install.html#method-2-install-from-source)
The only thing I changed was changing --enable_cuda to --enable_tpu. I tested on latest version and checking out v0.2.3 of alpa. Both failed. The error was:
ERROR: /home/user/.cache/bazel/_bazel_user/8f8b2d573666bb995d6273003c450110/external/org_tensorflow/tensorflow/compiler/xla/service/BUILD:7141:11: Compiling tensorflow/compiler/xla/service/pass_context.cc failed: (Exit 1): gcc failed: error executing command    (cd /home/user/.cache/bazel/_bazel_user/8f8b2d573666bb995d6273003c450110/execroot/__main__ && \   exec env - \     LD_LIBRARY_PATH=:/usr/local/lib \     PATH=/home/user/mambaforge/envs/a-p39/bin:/home/user/.local/bin:/home/user/mambaforge/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin \     PWD=/proc/self/cwd \   /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/compiler/xla/service/_objs/pass_context/pass_context.pic.d '-frandom-seed=bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/compiler/xla/service/_objs/pass_context/pass_context.pic.o' -fPIC -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' -DHAVE_SYS_UIO_H -DTF_USE_SNAPPY -iquote external/org_tensorflow -iquote bazel-out/k8-opt/bin/external/org_tensorflow -iquote external/eigen_archive -iquote bazel-out/k8-opt/bin/external/eigen_archive -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/k8-opt/bin/external/nsync -iquote external/double_conversion -iquote bazel-out/k8-opt/bin/external/double_conversion -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -iquote external/snappy -iquote bazel-out/k8-opt/bin/external/snappy -iquote external/com_googlesource_code_re2 -iquote bazel-out/k8-opt/bin/external/com_googlesource_code_re2 -iquote external/gif -iquote bazel-out/k8-opt/bin/external/gif -iquote external/libjpeg_turbo -iquote bazel-out/k8-opt/bin/external/libjpeg_turbo -iquote external/farmhash_archive -iquote bazel-out/k8-opt/bin/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/k8-opt/bin/external/fft2d -iquote external/highwayhash -iquote bazel-out/k8-opt/bin/external/highwayhash -iquote external/pybind11 -iquote bazel-out/k8-opt/bin/external/pybind11 -iquote external/local_config_python -iquote bazel-out/k8-opt/bin/external/local_config_python -Ibazel-out/k8-opt/bin/external/pybind11/_virtual_includes/pybind11 -isystem external/org_tensorflow/third_party/eigen3/mkl_include -isystem bazel-out/k8-opt/bin/external/org_tensorflow/third_party/eigen3/mkl_include -isystem external/eigen_archive -isystem bazel-out/k8-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/k8-opt/bin/external/nsync/public -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -isystem external/gif -isystem bazel-out/k8-opt/bin/external/gif -isystem external/farmhash_archive/src -isystem bazel-out/k8-opt/bin/external/farmhash_archive/src -isystem external/pybind11/include -isystem bazel-out/k8-opt/bin/external/pybind11/include -isystem external/local_config_python/python_include -isystem bazel-out/k8-opt/bin/external/local_config_python/python_include '-fvisibility=hidden' -Wno-sign-compare -Wno-unknown-warning-option -Wno-stringop-truncation -Wno-array-parameter '-DMLIR_PYTHON_PACKAGE_PREFIX=jaxlib.mlir.' -mavx '-std=c++17' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/org_tensorflow/tensorflow/compiler/xla/service/pass_context.cc -o bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/compiler/xla/service/_objs/pass_context/pass_context.pic.o)

The full build log is located here https://gist.github.com/Lime-Cakes/a3d738c4cd0ebff97a4b2348899ca01e

We've tested auto-sharding on TPU by building our own jaxlib(see the build from source section and replace --enable_cuda with --enable_tpu). However, in case the pjit.auto uses the same code as our auto-sharding, we encourage you to use that one instead. For the full 3d parallelism, we have no plan to support it. Please check https://github.com/alpa-projects/alpa/issues/433 for more detail.

authors: Lime-Cakes ZYHowell

repo: alpa-projects/alpa


text:
[WIP][Feature] Support TPU backend for ShardParallel

This PR:

Add has_cuda and backend in global_config
Add IS_CUDA in setup.py
Change the semantic of run_auto_sharding_pass and run_backend_compilation: the output of the run_auto_sharding_pass and input of run_backend_compilation is no longer the spmd-partitioned module, but instead the sharding annotated module. This is because TPU cannot compile an spmd-partitioned module with sharding configurations;
(WIP) write testcases specifically for TPUs. The pass that rewrites AllReduce to ReduceScatter and AllGather is after SPMD partitioner, so we cannot do it for the tpu backend.

One quick Q: how do we run TPU tests in CI?

One quick Q: how do we run TPU tests in CI?

Google provides free TPU access for several days, but I've already extended the time twice(in the first extension they gave me 90 days and the second has 180 days). Can we use that machine for CI?

@merrymercy hey, it seems all the tpu specific tests are being skipped (on mobile, will provide a link soon).
So it is not clear to me what is the current working TPU capabilities.

@merrymercy hey, it seems all the tpu specific tests are being skipped (on mobile, will provide a link soon). So it is not clear to me what is the current working TPU capabilities.

Currently we skip all tests other than those for ShardParallel/reduce-scatter optimization. You can see we rewrite only those tests, but not rewrite tests such as test_n_layer_mlp_data_parallel. For a full list of unit tests, please refer to the if __name__ == "__main__": part.

authors: OhadRubin ZYHowell zhisbug


text:
Upgrade Webmock 3.4.2 => 3.5.1

This will allow us to use Ruby 2.6

I've merged in https://github.com/alphagov/calculators/pull/510 - I think the tests were flakey.

authors: edwardkerry thomasleese

repo: alphagov/calculators


text:
Republish content items with republish update_type

When republishing all content from this application, we should be using the republish update_type. This semantically correct and will prevent email alerts from being sent. It also works around a thing in publishing-api where a bug occurs when trying to publish a redirect with update_type minor.
Includes a bunch of refactorings to make the flow more obvious. Best reviewed per-commit.

:+1:

authors: bishboria tijmenb

repo: alphagov/collections-publisher


text:
Overhaul the steps section

Trello card: https://trello.com/c/UlgsMO0Q/45-overhaul-the-steps-section-and-move-the-add-step-button-to-it-and-show-it-in-the-summary-component

Adds missing tests for 'Steps' section
Improves UX for "No steps have been added yet" scenario
Adds 'Steps' title (with 'Reorder' link where appropriate)
Hides 'View'/'Delete' links when step by step can't be edited
Moves 'Add step' and 'Check for broken links' buttons from sidebar to Steps section
Hides 'Check for broken links' button if there are no steps
Converts steps section from table to summary-list

Screenshots
When there are no steps yet:

While step by step is being edited:

When step by step is scheduled:

Thanks for the review. Agree with the comments and have addressed 👍

Should "Add step" be a link that sits next to "Reorder"?
When seen in the context of the page, the "Check for broken links" button looks a bit odd floating about by itself when the step by step can't be edited.

I'm following the design attached to the Trello card. Personally think the "Add step" button looks good where it is. Agreed "Check for broken links" looks a little odd when in scheduled state, but we need to be able to check for broken links at any time (which is itself a bit of an odd thing - you'd think a step by step that is approved and scheduled had been checked already. But I know this is because links that work today may not necessarily work tomorrow)


text:
Show pass/fail status of declaration answers to Sourcing admins

https://trello.com/c/3AIJtJTX/224-highlight-wrong-answers-in-the-admin-declaration-view

Adds a column showing 'Pass', 'Fail', 'Discretionary' or 'Not Applicable' for each declaration answer. 'Not Applicable' means the answer is not assessed (for example, a supplier can't 'fail' on their contact email address).
Annoyingly the columns don't line up between sections. This is a known issue with this pattern anyway. However the Sourcing team users are not too worried about layout..
The Modern Slavery section contains a single 'multiquestion' type question with several nested questions - only one of these is assessed, so I haven't been particularly strict on how multiple results would be displayed here. Suggestions on a less messy Jinja approach very welcome.

As far as the jinja stuff goes, yeah it's a bit weird having the logic in jinja and we should probably make dmcontent able to do this for us. But for now it will probably do.

authors: katstevens risicle


text:
genericize (for jenkins) notify_suppliers_of_new_fw_cq_answers into notify_fw_interested_suppliers

https://trello.com/c/RBJb5rfV
In an attempt to supply some "common context" for the templates this will be pointed at, I've included all of the available timestamps present on the framework in a number of different formats.
I've also gone a bit further and included a _timetoday format which will give you e.g. Today at 5pm, but have tried to make this foolproof by only emitting it for timestamps which are today, and if the timestamp is hour-exact. If you point it at a template that requires it and these conditions are not fulfilled, notify should throw an error and hopefully a user will be made aware of the issue.
Let's see how successful this is.

Just a reminder to all that the Jenkins job definition for this script will need to be updated before merging, as the script name has changed.

Yes and we'll need to enumerate the template ids too.

I also removed the ...UTC from the keys because it's misleading seeing as the formatted versions all localize the time.

After looking at the Jenkins updates that will be needed, I'm going to temporarily reinstate the old clarification questions script in addition to this new one. I want to be confident that our existing clarification questions job runs OK as it's currently in use.

Where would it be most useful to document what variables are now available to Notify templates?

I added the info in the script docstring - given it'll be a dev creating any new templates for this script I think that's enough?

repo: alphagov/digitalmarketplace-scripts


text:
Reinstate simplified report for content changes

https://trello.com/c/bKAemKqV/517-review-the-emails-that-users-have-received-for-driving-subscription-lists
Previously we had a report for content changes matched against each
subscriber list with its immediate subscribers, as a way to discover
the origin of email volume 1. Since then, we have begun reporting
email volume by publishing app and document type 2, and have done
migrations to increase the use of daily digest emails, to the extent
that immediate subscriber numbers are no longer meaningful as a way
to estimate volume, and are time consuming to include. This reinstates
a report of just the matched content changes, in the spirit of making
this data more easily available 3, and to support our research into
the behaviour of specific lists.

Also are we documenting these report tasks anywhere?

I was wondering about that. My original thought was that we're (now) intending to automate away all these ad-hoc tasks, so that developer-level access isn't necessary to get basic data out of the system. However, until that glorious moment, I agree it's worth writing it down. Perhaps the change will be larger than you were expecting, though ;-).

repo: alphagov/email-alert-api


text:
Remove govuk_frontend_toolkit from frontend

Removes the final traces of govuk_frontend_toolkit from frontend. Most of the legwork had already been done in previous PRs, this PR replaces a few variables with govuk-frontend variables, removes some unused code, and takes out the toolkit Gemfile dependency.

Should we be replacing the grid-row class in application.html.erb with govuk-grid-row? https://github.com/alphagov/frontend/blob/master/app/views/layouts/application.html.erb#L33

Does this flag still need to be set: $govuk-compatibility-govukfrontendtoolkit: true; ?

@vanitabarrett I've addressed those changes.

authors: andysellick vanitabarrett

repo: alphagov/frontend


text:
Serve an empty response direct from Fastly

This will be used to store logs of the requests from the tracking
Javascript.

It looks good to me

Thanks! Can you merge it and deploy it to staging for testing please?

repo: alphagov/govuk-cdn-config


text:
[DO NOT MERGE] Make merge test stricter in Jenkins build setup

Many Jenkins builds call the mergeMasterBranch() helper near the start of the build. This alerts us (and GitHub) to branches which cannot be cleanly merged with master. It uses the --no-commit flag to just check whether a merge would be valid, without actually performing the merge.
This works fine in the mainstream use-case, which is to test dev branches which have yet to be merged. However, it doesn't do the right thing for content schema tests, where we are running builds on the deployed-to-production branch. Unlike a dev branch, this branch is behind master. So the merge being tested in this case is a fast-forward merge. Git doesn't apply the --no-commit behaviour for fast-forward merges, so it actually performs the merge! This means that we end up building the master branch rather than deployed-to-production.
The consequence of this is that the content schema tests were not strict enough: they were unintentionally running against the master version of the downstream repos, not deployed-to-production, which is the branch that we really care about breaking.
The fix is to add another flag, --no-ff, to prevent fast-forward merges as well as regular merges.
Trello: https://trello.com/c/S4DZbsPa/285-jenkins-2-migration

Added [DO NOT MERGE] while I think about this some more - --no-ff doesn't do quite what I thought it did, so this isn't going to fix the issue.

I'm closing this PR because I don't think it will work after all: {{--no-ff}} won't commit the merge, but it will still pull in all the changes from master. I've suggested an uglier but hopefully correct solution here: alphagov/govuk-puppet#5369

repo: alphagov/govuk-puppet


text:
Cleanup branches

There's a number of branches that haven't been updated for 2+ years, including a branch called latest-release, which of course does not point to the latest release.

I've nuked all the stale branches apart from latest-release, thanks for raising :) 👍
Raised https://github.com/alphagov/govuk_frontend_toolkit/issues/314 to deal with latest-release


text:
Update feature tests to use examples from govuk-content-schemas

Trello: https://trello.com/c/uR7v1Rri
Related to:
https://github.com/alphagov/govuk-content-schemas/pull/892
https://github.com/alphagov/govuk-content-schemas/pull/891
Content item types, facet_groups, facets and facet_values were changed to be "base_path-less" in https://github.com/alphagov/govuk-content-schemas/pull/891.
We did this because, that's how they were already being treated in publishing-api and content-store, but we couldn't add re-usable test examples until this was explicitly stated in govuk-content-schemas.
However, this started causing the feature tests in this app to fail with errors like:
 Failure/Error:
       GovukSchemas::RandomExample.for_schema(frontend_schema: schema_name) do |random_item|
         random_item.merge(merge_with)
       end

     GovukSchemas::InvalidContentGenerated:
       The content item you are trying to generate is invalid against the schema.
       The item was valid before being customised.

and
         {
           "schema": "046a2c23-3e82-578d-86d3-8d23a5e24eb2#",
           "fragment": "#/links/taxons/1/links/facet_groups/2",
           "message": "The property '#/links/taxons/1/links/facet_groups/2' did not contain a required property of 'base_path' in schema 046a2c23-3e82-578d-86d3-8d23a5e24eb2#",
           "failed_attribute": "Required"
         },

The feature tests rely on govuk_schemas to create a random content item based on a schema, and then modify a part of it, e.g. the content item title. govuk_schemas validates the content item it creates twice. Once when the base content item is created, and again when the modifications are added, i.e. when the content item is "customised".
It's not entirely clear why the validation was failing. The content item was being created "correctly", but the links for facet_groups and facet_values were being validated against the wrong schema definition.
Also, the links being created were unnecessary. taxons and parent links etc, don't need to be tagged to a facet_group and it's extremely unlikely that they ever will be.
Rather than spending a lot of time trying to fix random content item generation here, the feature tests have been updated to read in already validated examples to generate the links hash.
Note: The tests won't pass until https://github.com/alphagov/govuk-content-schemas/pull/892 is deployed to production.

I suspect the problem arises from the facets relating to their facet group via the parent link https://github.com/alphagov/govuk-content-schemas/blob/master/formats/facet.jsonnet#L91 which is a recursive link type.

authors: leenagupte steventux


text:
Update InContentStoreValidator to validate on schema_name

I found that InContentStoreValidatorwas validating on format, however this has been deprecated in govuk_content_schemas (see https://github.com/alphagov/govuk-content-schemas/pull/620).  This meant that when attempting to redirect an HMRC manual section, the given section would be considered invalid as it has no format.  This updates InContentStoreValidator to validate against schema_name instead.  The formats initializer has also been removed as it has been replaced by a schema_name initializer.
TO DO:

[ ] Test redirecting an HMRC manual section on integration

https://trello.com/c/v2BJD3ER/1010-8-unpublish-sections-of-hmrc-manuals

Thanks @kevindew, your comments should be addressed now.

Great thanks @emmabeynon, one thing I wonder now we've got the 2 SCHEMA and DOCUMENT constants, I think rummager should accept DOCUMENT fields rather than schema - not 100% sure on this though as I know very little rummager

Great thanks @emmabeynon, one thing I wonder now we've got the 2 SCHEMA and DOCUMENT constants, I think rummager should accept DOCUMENT fields rather than schema - not 100% sure on this though as I know very little rummager

I think you're right, Rummager does reference document a lot, so I'll change that.

Tested redirecting an HMRC manual section on integration, which worked as expected 🚀

authors: emmabeynon kevindew

repo: alphagov/hmrc-manuals-api


text:
Correct spelling for smartanswers app

At a given time this app was called smart-answers but has been renamed
to smartanswers.
The aim was to correct the tests to reflect the current reality.
This was done as part of: https://trello.com/c/tZd23gW5/568-allow-tagging-in-content-tagger-for-apps-that-can-t-be-tagged-yet-s

This PR also removes a bunch of tests that didn't work after fixing the owning_app. Are we still testing that pages for unmigrated apps like specialist-publisher can still be tagged?

Would it be better to squash those two commits?

Excellent :+1:
Could you update the PR title/description to reflect what we're doing here now?

Bon bueno! :+1:

authors: Davidslv tijmenb

repo: alphagov/panopticon


text:
Phraselist and test cleanup for marriage abroad

I've extracted all the keys from marriage abroad yml and matched them with the ruby file. As expected, there where a bunch of unused phrases. Some of them where harder to find as keys are interpolated. I'm fairly confident I haven't removed anything that isn't used, but a pair of extra :eyes: would be helpful.
Also, I did this to increase confidence.
I've also noticed that some of the tests where not run. This is due to top-level context descriptions not being unique (only the last non-unique context is executed).

LGTM. I've only checked a subset of the phrase key changes, but they were all as expected. :+1:
I wonder whether it would be better to add explicit entries in the locale file for the interpolated keys. I worry slightly that after the introduction of #1614, we'll be inundated with missing key exceptions. By adding explicit keys we could trade-off some "duplication" against simpler behaviour (always expect key to be present) and increased explicitness.

I wonder whether it would be better to add explicit entries in the locale file for the interpolated keys.

I'm not sure I follow. Interpolated keys are in the locale file; they are interpolated in the ruby flow file. We could add comments to the ruby files of some interpolated variants to help with easier discovery using global search, but they will get out of sync quickly.
Are we talking about different things? Sorry if I didn't make it clear in the description :)

@tadast: Sorry. I did get the wrong end of the stick. Please ignore me.

authors: floehopper tadast

repo: alphagov/smart-answers


text:
Generate govspeak text output in regression tests instead of HTML

This is a non-spike version of #1794 which I will now close in favour of this one.
The changes in this PR mean that you can add .txt to the end of any outcome page URL in development/test and see a Govspeak version of the page. The title, body & next_steps are output in that order with a blank line between them.
We think that having the outputs stored in text form will make any diffs smaller and easier to understand.
One notable downside of this approach is that we would no longer have coverage of the previous question section of the HTML, but we've decided that we can live with that.
I've updated all the artefacts as part of the PR.

Manually merged in ac05978c64d2b57d64d8af361d110e95ce352bba.


text:
Add additional categories to residential decisions

Requested in Zendesk ticket:
https://govuk.zendesk.com/agent/tickets/5402655
Trello: https://trello.com/c/iLtAxG82/1510-update-residential-property-tribunal-decisions-finder-with-new-categories-and-sub-categories
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

We should test this on integration first but looks good to me!

authors: beccapearce ollietreend

repo: alphagov/specialist-publisher


text:
Accept last_reviewed_on field as a string input

What should change
Accept the use of last_reviewed_on field as a string input in any string variation; 2021/02/23, March 2027 23, January 13 2020, rather than a Date data type only. Whilst updating dependencies in the repositories listed in the next section I have found exceptions regarding the last_reviewed_on field as shown here. It appears that middleman expects the Date to be 2021/02/23 as highlighted on this page but the embedded ruby in this repository expects it to be 2021-02-23 as a Date object. As this field causes an exception it makes the title field fail causing the real error to be hidden by middleman asking for H1 tags when <%= current_page.data.title %> is used in the html file.
It currently fails here and the fix is to accept the string that is converted to a Date object:
def format_string_date(string_date)
   Date.parse(string_date)
end

User need
At MoJ we are using the tech-docs-gem in this repository to publish our template documents based on this template repository. We have many html pages that are utilising the tech-docs-gem to generate the html sites.
I have modified the tech-docs-gem ruby code and tested it works with both a string and a Date object.

Hi @laurahiles any idea how long it will take to implement the change? I can share the code and test if it helps

Thanks for raising this Nick. I've done a bit of digging, and to summarise the issue as I understand it:

In The Good Old Days, users of this gem had frontmatter like last_reviewed_on: 1970-01-01, which middleman loaded with load_file, resulting in {"last_reviewed_on" => #<Date: 1970-01-01...>}
ruby 3.1 switched to Psych 4.x by default, which changes the default for load_file from unsafe_load_file to safe_load_file, which means trying to parse last_reviewed_on: 1970-01-01 raises an exception (because Dates are not allowed)
If users of the gem instead try a different date format like last_reviewed_on: 1970/01/01 that parses as a string ({"last_reviewed_on" => "1970/01/01"}, but then this gem expects a Date so it blows up later
Given that middleman can't handle dates, and this gem can't handle strings, there's no way to construct frontmatter that works.

I have an untested hypothesis that this is fixed in middleman 4.4.3, because they switched to ::YAML.safe_load(..., permitted_classes: [Date, ...], ...) which should mean formats that parse as dates are allowed now (e.g. 1970-01-01).
You could still make a strong argument that this gem should support both strings and dates, since middleman's docs clearly suggest that weird stringy date formats are permitted.

@LeePorte reports that the issue is still present with middleman 4.4.3 however.

Hello @richardTowers thanks for having a look at this.
Your summary make perfect sense, I do remember the load_file to unsafe_load_file change causing an issue here.
The repo is using Middleman 4.4.2 at the moment, Gemfile.lock, so if it does get fixed in that dependency I can bump the version but we do have some other dependency issues in the Gemfile. The repo is using govuk_tech_docs (3.2.1). Due to these issues we paused updating the repo.
I do not have my branch with the fix anymore. Is it likely a fix will be applied?

It's at least on our radar now, I can't promise we'll get to it immediately though.

I've raised https://github.com/middleman/middleman/issues/2614 with middleman. We should still consider supporting strings, irrespective of whether they decide to fix this.

Ah, so has this broken building docs completely now?

You could still make a strong argument that this gem should support both strings and dates, since middleman's docs clearly suggest that weird stringy date formats are permitted.

Could you point me towards where this is documented?

Hi @lfdebrux  my notes on the topic are here. I am not sure where the documentation is for Middleman. There is this page that states: "If you want, you can specify a full date and time as a date entry in the front matter, to help with ordering multiple posts from the same day. " and has the date as date: 2011/10/18

Hi @lfdebrux my notes on the topic are here. I am not sure where the documentation is for Middleman. There is this page that states: "If you want, you can specify a full date and time as a date entry in the front matter, to help with ordering multiple posts from the same day. " and has the date as date: 2011/10/18

Cool, thanks for the added context. Apologies, when I first looked at this ticket I thought it was solely a feature request, I didn't realise that the issue was preventing the docs from building the site even if the date was formatted correctly.
My main concern in allowing a string for the last_reviewed_on field is that it might mean we get the whole issue with ambiguously written dates; Ruby's Date.parse seems a little too flexible [1], it's not clear to me whether the result of parsing say 04/02/2020 is guaranteed to always be 4th February 2020, or if it is locale dependent. I also noticed that it says that 'if string does not specify a valid date, the result is unpredictable', which is worrying!
I think it might be safer to use Date.strptime(string, '%Y-%m-%d') instead, restricting the kinds of dates accepted by last_reviewed_date; does that sound reasonable @NickWalt01 @richardTowers?

Hi @lfdebrux
Date.strptime("2022-08-22", '%Y-%m-%d') is accepted as a valid date, but Date.strptime("2022/08/22", '%Y-%m-%d') is not valid, so for me yes that is acceptable and I agree that it is better to restrict the date format that is used in the doc files to YYYY-MM-DD

I'd be fine with restricting dates to '%Y-%m-%d', but I think there's a tricky interaction here between ruby / yaml / middleman / tech docs gem.
The issue is that if you put a date in your frontmatter like:
---
date: 1970-01-01
---

MIddleman will parse this YAML using YAML.load, which will now error in ruby 3.x because of the switch to safe_load. That's a bug in middleman in my opinion. Users of middleman that don't use the tech docs gem can work around this by using any format which ruby doesn't interpret as a date, but the tech docs gem actually wants a date so our users are between a rock and a hard place.
I don't think the tech docs gem gets involved early enough in the loading of a template to fiddle with the YAML frontmatter before it's parsed (but maybe it does?).
I guess we could also consider monkey patching middleman while we wait for a release... 🙈

Looking at the Middleman commit history and the last tag release date, I can't see a new release soon, happy to wait for a new one as the docs work with the older version of Ruby, but 2.7 will be phased out soon:
Ruby 2.7
status: security maintenance
release date: 2019-12-25
Ruby 2.6
status: eol
release date: 2018-12-25
EOL date: 2022-04-12

Right, thanks for spelling it out for me @richardTowers.

There's now a release of Middleman with support for Ruby 3.1 - v4.5.0. In theory, this bug should be fixed on middleman 4.5.0, but I haven't tested it yet.

There's now a release of Middleman with support for Ruby 3.1 - v4.5.0. In theory, this bug should be fixed on middleman 4.5.0, but I haven't tested it yet.

I ran bundle update on design-system-team-docs and it seems to have fixed the problem using YYYY-MM-DD. I had to lock the contracts gem at 0.16.1 because 0.17 errored, but all seems present and correct. Relevant changes in this PR.

authors: NickWalt01 lfdebrux richardTowers stevenjmesser

repo: alphagov/tech-docs-gem


text:
Navigation menu issues when nesting pages

What should change
There are a couple of issues that are related:

Nested pages display every heading on every nested page in the navigation bar
If a page has nested pages beneath/within it, the headings for the top-level page do not appear in the navigation bar

1. Nested pages display every heading on every nested page in the navigation bar
At the moment, if you nest pages with multiple headings in the tech docs template, every heading for every page in the nest is visible from the navigation bar.
In this example, the API reference page has 10 pages nested beneath it. You can see two of these nested pages in the screenshot - Create a payment API reference and Get information about a single payment API reference:

This is a problem because, when you load one of the nested pages, the navigation bar jumps right to the bottom. If you're viewing one of the
It would be useful if it were possible to have a global (or per-page) setting to only display the headings for the current page. So the example above would instead look like this:

2. If a page has nested pages beneath/within it, the headings for the top-level page do not appear in the navigation bar
In this example, the top-level page API reference has headings that should be visible in the navigation bar, such as Endpoint. Instead, the navigation bars is only displaying the nested pages and the headings from the nested pages:

User need
As it stands, I haven't done any testing with users beyond the GOV.UK Pay team. Within the Pay team, however, everyone that went to use the API reference commented on the navigation bar and its impact on their use.
Issue 2 prevented them from easily jumping to the headings they needed on the top-level page.
Issue 1 caused general navigation issues, where the user would select, for example, nested page 1 but the navigation menu would jump to the bottom. The user needed to then scroll past 9 nested pages (and their headings) to re-orient themselves.

Yes please! This would make our documentation more readable e.g. https://user-guidance.services.alpha.mojanalytics.xyz/data-engineering-tools/

authors: NathanD-GDS SoumayaMauthoorMOJ

repo: alphagov/tech-docs-template


text:
Remove political checkbox for managing editors

Until the guidance exists on how to use the checkbox remove it from view
for managing editors. We will swap this back when the guidance is
published.

:+1:

authors: edds tekin

repo: alphagov/whitehall


text:
pwa please?

great work!
need a pwa example and will be perfect!

U want Progressive Web Application example?

No details about PWA.

authors: alpody hiqsociety


text:
format code with prettier.io

summary:

adds prettier formatter configuration
formats the entire repo using prettier, ignoring minified files (*.min.css) and  heavy generated html
changes extensions of all .html files to .liquid, which is more correct and necessary for prettier to work correctly
replaces "%-" and "-%" with just "%" — manual liquid formatting using minus signs is superfluous since we are compressing and minifying the code anyway
adds CI action for running prettier check on PR and pushes to master

@george-gca, just a heads up that I'm going to merge this PR to improve code formatting throughout the repo.

repo: alshedivat/al-folio


text:
Avoid fatal errors at import-time from koalas

For #541
This PR will prevent the call to koalas.set_option from crashing import.
This doesn't solve the root cause of #541, but it will hopefully prevent a crash at import-time resulting from that issue.

I've worked up an alternate solution to this issue in #543
I think both have merits, will discuss further and decide which path to take.

@dsherry thanks for your help and putting up a fix. We're going to go ahead with solution #543 because it avoids the unnecessary try/except.

authors: dsherry gsheni thehomebrewnerd

repo: alteryx/woodwork


text:
Add /interfaces endpoint

This endpoint retrieves the available network devices from the UCI config.

[ ] read out devices assigned to lan

[ ]  read out devices assigned to wan

[ ] read out devices assigned to mesh

[ ]  read out wireless devices assigned to lan

[ ]  read out wireless devices assigned to mesh

in progress here https://github.com/althea-mesh/althea_rs/pull/263


text:
Registered Steam Drivers are Cleared when using Restart SteamVR/launch SteamVR button

Description
When drivers are registered for SteamVR, (ALVR, Haritora). Restarting SteamVR using the "Restart SteamVR" appears to remove the other driver.
General Troubleshooting
1) Register ALVR driver
2) Register Haritora driver
3) Launch SteamVR from ALVR (Removes the haritora driver on startup)

1) Register Haritora driver
2) Register ALVR driver
3) Launch SteamVR from HaritoraConfigurator (Removes the ALVR driver on startup)

1) Launch ALVR
2) Install Haritora driver
3) Let SteamVR start
4) Steam is running haritora driver
5) ALVR dashboard is still open and showing SteamVR as not running
6) Register ALVR driver
7) Restart SteamVR (Both drivers appear to be running and working) Sometimes it crashes on startup, but once running its stable.

Environment
Hardware
CPU: AMD Ryzen 9 5900X 12-core processor
GPU: AMD Radeon RX 6600
GPU Driver Version: 23.9.3
Audio: VoiceMeeter & Steinberg UR44C
Installation
ALVR Version: 20.4.3
ALVR Settings File:
SteamVR Version: 1.27.5
Install Type:

[x] Packaged (`MSI)
[x] Portable (APK)

OS Name and Version (winver on Windows or grep PRETTY_NAME /etc/os-release on most Linux distributions):
Windows 11 Enterprise 22H2
22621.2428

If you want to use ALVR with external drivers, you need to set "Driver launch action" to "Unregister ALVR at shutdown". This will register/unregister the ALVR driver without touching other drivers.

repo: alvr-org/ALVR


text:
🛑 zhibao.itove.com is down

In 8702d08, zhibao.itove.com (https://zhibao.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: zhibao.itove.com is back up in a7a69a1.

repo: alzee/up


text:
Fix persistency flaw when loading

The persisted state is not used at the moment.
This means spinning up a new FSM with existing data will always have initial state *.
It is a 1-line fix. The rest is tests.

I ran mix format on my forked branch but the 3rd commit is not showing here. Blame Microsoft.

repo: am-kantox/finitomata


text:
ADO 25881: Lex V2 Integration

See: https://dev.azure.com/AMA-Ent/AMA-Ent/_workitems/edit/25881
We are now moving to supporting Lex V2, and dropping Lex V1 support. After conversation with AWS reps, they've indicated that they will no longer be adding features to Lex V1, and that Lex V2 has essentially superseded it.
Version 3.x.x and lower of this gem will still work with Lex V1. Version > 4.x.x will only support Lex V2.

New input and response formats.
Handle checkpoints using session, as checkpoints and recent intent summary views are no longer part of the Lex API
Removed all V1 code
Kept the interfaces as similar as we could in order to make migration easier, although some things such as multiple message support simply had to be changed

:book:

authors: jessedoyle mvandenbeuken

repo: amaabca/aws-lex-conversation


text:
Last refresh time, and time for the next refresh

Having a field in the website to show the last refresh time could give an idea of the advancements in reducing the loops and improving the rivers.
Also, provide the frequency of the refreshes is a good thing, is this option is available.

The last update is shown in the settings menu on the bottom. I assume this is what you are referring to?

As said, the last refresh time is in the settings. Three days should be updated every night (Germany time)
On So, 09 Jun 2024  1:16 +02:00, Andres Gomez Casanova @.***> wrote:

Having a field in the website to show the last refresh time could give
an idea of the advancements in reducing the loops and improving the
rivers.
Also, provide the frequency of the refreshes is a good thing, is this
option is available.
—
Reply to this email directly, view it on GitHub
https://github.com/amandasaurus/waterwaymap.org/issues/53, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAMC2OEVGCWYQT4RWC6BTZGOGFNAVCNFSM6AAAAABJALET76VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DCOJQGUYDINI.
You are receiving this because you are subscribed to this
thread.Message ID: @.***>

--
Amanda

*the data should be updated every night
On So, 09 Jun 2024  9:20 +02:00, Amanda @.***> wrote:

As said, the last refresh time is in the settings. Three days should be
updated every night (Germany time)
On So, 09 Jun 2024 1:16 +02:00, Andres Gomez Casanova @.***> wrote:

Having a field in the website to show the last refresh time could give
an idea of the advancements in reducing the loops and improving the
rivers.
Also, provide the frequency of the refreshes is a good thing, is this
option is available.
—
Reply to this email directly, view it on GitHub
https://github.com/amandasaurus/waterwaymap.org/issues/53, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAMC2OEVGCWYQT4RWC6BTZGOGFNAVCNFSM6AAAAABJALET76VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DCOJQGUYDINI.
You are receiving this because you are subscribed to this
thread.Message ID: @.***>

--
Amanda
—
Reply to this email directly, view it on GitHub
https://github.com/amandasaurus/waterwaymap.org/issues/53#issuecomment-2156362761,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAMCZHX4G3XM6X52TZRBLZGP62BAVCNFSM6AAAAABJALET76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3DENZWGE.
You are receiving this because you are subscribed to this
thread.Message ID:
@.***>

--
Amanda

authors: amandasaurus angoca mxdanger


text:
Typechecking changes prior to NaN

Application: when result and argument both have mode, but expected argument type
is pure, join the result and argument modes rather than requiring
equality.  New result is the result of join.
Remove Cons Hack for fold: this was prematurely committing to Definitely, when it shouldn't have.
Perform top-level constraint discharge before checking for leftover constraints. This finds constraints like a = PossibilityJoin b c and rewrites a = b = c. This is necessary because conversion to Core doesn't deal with polymorphic modes, so if one is a non-variable mode this will solve it.
Case: return single substitution, and apply substitution to preceding alternative. When you have two alternatives, you recurse into the first alternative, then the second. If you learn something from the second alternative, you need to go back and apply that to the first alternative.
Defaults: default to Unit, Pure or Definitely based on kind. Find all the types in the program and decompose them into temporality, possibility and data. Then find the free variables of the decomposed and choose a sensible default. Before, any type variable possibilities would have been substituted to Unit. (But this probably wasn't happening often because of the Cons Hack for folds would change make it concrete)
Function: don't "clean up" the constraints on function types. Nobody looks at the function types, so it doesn't matter if they're ugly. And the "cleaning up" was over-specific.
! @jystic @tranma
/jury approved @jystic

👍 seems legit
Would be good to test this changes out and make sure nothing breaks in production

Tested this change on real data, output was identical to master. So this one is OK to merge, but the nan one needs more work

authors: amosr jystic

repo: ambiata/icicle


text:
Refresh command doesn't always work as expected

After resizing a (urxvt or tmux-in-iterm2) window, PMS doesn't always want to redraw the columns to fill the space, even with ^L.
It seems that changing list back and forth has the necessary effect.
I've noticed the problem more frequently on the library view (which has a lot of very long song titles).
Can you see the same behaviour?

Yes, I can confirm this behavior. I guess two bugs should be fixed: the ^L behavior should re-calculate the column widths and window height, and resizing should do this automatically.

authors: ambientsound tremby

repo: ambientsound/pms


text:
GPIO port writing.

Hardware Environment
AMB82-MINI
Related technical area
GPIO port writing.
Is the feature request related to an un-fixed issue?
No.
Describe the ideal solution/reault/output.
I am trying to connect a TFT display with 8-bit parallel interface. It is working perfectly when I write with digitalWrite(). But the speed is slow. I found a function to write to a GPIO port. But I couldn't make it work. Can you please provide an instructions to use that function?
Additional remarks
No response
I have checked existing/closed list of issues and the Contributing Guide.

[X] I confirm I have checked existing/closed list of issues and the Contributing Guide.

Can you please be a little bit responsive?

Is it official repo or should we contact to someone else?

Hi @boburshokirov,
Sorry for the late reply, it may be true that the GPIO speed may not be able to send data fast enough to a TFT display. Can I check what TFT LCD are you using and is there an SPI interface where you can use instead?
Thank you.

Hi @Kyderio ,
Thanks for the reply. I already tried a couple of other TFT displays with SPI interface. But they are slower than TFT with GPIO. I tried 8-bit parallel writing into the port with other Microcontrollers and it works much faster. I can see micros to write into a port in your library. But I couldn't make it work. If you can provide a simple example of writing into a port, that would be great.
Thanks in advance.

Hi @boburshokirov,
You may refer to the file "wiring_digital.c". There is an API called digitalWrite(uint32_t ulPin, uint32_t ulVal). You may use this API to write into a port. There are many examples in the SDK that uses this API. You may refer to "GPIO->examples->MeasureDistance_HCSR04_Ultrasonic.ino" for reference on how to use this API to write into the port.
Hope this helps.
Thanks.

Hi @Kyderio ,
As I mentioned, I want to write into 8 pins at one time. Above example is for writing into 1 pin. digitalWrite(uint32_t ulPin, uint32_t ulVal) is for writing 1 pin, right? If not, can you please provide an example to write into 8 pins at one time.
Thanks

Hi @boburshokirov,
Unfortunately it is not possible at the moment for GPIO 8 bit parallel write. You may consider I2C interface or SPI interface. There will be a delay for writing 8 bits at once.
Hope this helps.
Thanks.

closed as no further discussion.

authors: Kyderio M-ichae-l boburshokirov


text:
ng build --prod

ng build runs fine, but with --prod the following error occur
ERROR in ./src/$$_gendir/app/app.component.ngfactory.ts
Module not found: Error: Can't resolve 'ng4-loading-spinner/ng4LoadingSpinner.component' in '<PROJECT_PATH>/src/$$_gendir/app'
resolve 'ng4-loading-spinner/ng4LoadingSpinner.component' in '<PROJECT_PATH>/src/$$_gendir/app'
Parsed request is a module
using description file: <PROJECT_PATH>/package.json (relative path: ./src/$$_gendir/app)
Field 'browser' doesn't contain a valid alias configuration
after using description file: <PROJECT_PATH>/package.json (relative path: ./src/$$_gendir/app)
resolve as module
<PROJECT_PATH>/src/$$_gendir/app/node_modules doesn't exist or is not a directory
<PROJECT_PATH>/src/node_modules doesn't exist or is not a directory
/opt/node_apps/node_modules doesn't exist or is not a directory
/opt/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in <PROJECT_PATH>/node_modules
using description file: <PROJECT_PATH>/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: <PROJECT_PATH>/package.json (relative path: ./node_modules)
using description file: <PROJECT_PATH>/node_modules/ng4-loading-spinner/package.json (relative path: ./ng4LoadingSpinner.component)
no extension
Field 'browser' doesn't contain a valid alias configuration
<PROJECT_PATH>/node_modules/ng4-loading-spinner/ng4LoadingSpinner.component doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
<PROJECT_PATH>/node_modules/ng4-loading-spinner/ng4LoadingSpinner.component.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
<PROJECT_PATH>/node_modules/ng4-loading-spinner/ng4LoadingSpinner.component.js doesn't exist
as directory
<PROJECT_PATH>/node_modules/ng4-loading-spinner/ng4LoadingSpinner.component doesn't exist

I am also getting the same issue, building with angular/cli --aot=true
(relative path: ./src/ng4-loading-spinner/ng4LoadingSpinner.service)
no extension
Field 'browser' doesn't contain a valid alias configuration
***\src\ng4-loading-spinner\ng4LoadingSpinner.service doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
***\src\ng4-loading-spinner\ng4LoadingSpinner.service.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
***\src\ng4-loading-spinner\ng4LoadingSpinner.service.js doesn't exist
as directory
***\src\ng4-loading-spinner\ng4LoadingSpinner.service doesn't exist
looking for modules in ***\src
using description file: ***\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: ***\package.json (relative path: ./src)
using description file: ***\package.json (relative path: ./src/ng4-loading-spinner/ng4LoadingSpinner.service)
no extension
Field 'browser' doesn't contain a valid alias configuration
***\src\ng4-loading-spinner\ng4LoadingSpinner.service doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration

Ya.. i believe that this issue is direct related whit aot... the flag --prod of ng build includes --aot during the build process... if i execute the build process "ng build --env=prod --output-hash none"  (ignoring --aot) every thing goes fine...

Hello @justogaiht  and @justogaiht ,
This is now fixed in the latest version 1.1.1.
Please reopen the issue if you still face the same. :+1:
Thank you.

authors: amitmahida92 justogaiht pdecembre


text:
Problem: Printiest doesn't work with modern Lean4

Solution:

Since getStdout is now BaseIO, we need to have a way to have a BaseIO function for FS-based stream pretty printing.
We also have updated toolchain specification to use modern spec files.
Explicitly import std in lakefile.lean.

Cosmetics:

Delete some trailing whitespaces.

PS
Feel free to merge or not, since here we're using November's Lean, which doesn't have many incompatibilities with the modern Lean, but eventually we'll bump all the way to Jan 10th release.

Thanks @cognivore. This was a very early Lean 4 experiment so some of this probably feels ancient. I'll be revisiting this library at some point since I have some new ideas, and I'll try to polish everything up when Lean 4 is stabilized, but I'm quite busy right now. I've added an old-ish but working lakefile, so this should now build as-is if someone decides to clone the repo.

Also revisiting at the code briefly, if you're planning on using this in the wild, consider using StateCpsT for Doc.measure and Doc.renderAux since they're not naturally tail recursive. You might also be able to give it some more gas by using an IORef/STRef for the state in Doc.renderAux.

Thank you for the context!
I'll share your response with my colleagues.
I'm using your awesome library just to make a cool demo.

authors: ammkrn cognivore

repo: ammkrn/printiest


text:
Use SUITE library scope

a minor thing.
TEST SUITE was the name of the library scope prior RF 3.2 (https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#library-scope)
From 3.2 onwards it is SUITE.
I also added Robot Framework to python package classifiers.

Thanks for your contribution, @Noordsestern!
I'm merging it.

authors: Noordsestern amochin

repo: amochin/robotframework-eggplant


text:
The release-executables crash on execution

Describe the bug
When I download the executable of a release and try to execute it, the application fails with the following error-message:

(node:23292) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use openid-doctor-win --trace-deprecation ... to show where the warning was created)
[Nest] 23292  - 2022-07-25 16:20:05     LOG [NestFactory] Starting Nest application...
[Nest] 23292  - 2022-07-25 16:20:05   ERROR [ExceptionHandler] ENOENT: no such file or directory, open 'settings/default.json'
Error: ENOENT: no such file or directory, open 'settings/default.json'
at Object.openSync (node:fs:585:3)
at Object.openSync (pkg/prelude/bootstrap.js:796:32)
at Object.readFileSync (node:fs:453:35)
at Object.readFileSync (pkg/prelude/bootstrap.js:1082:36)
at new SettingsService (C:\snapshot\amos2022ss08-openid-connect-doctor\bundle\index.js:125427:39)
at Injector.instantiateClass (C:\snapshot\amos2022ss08-openid-connect-doctor\bundle\index.js:9097:19)
at callback (C:\snapshot\amos2022ss08-openid-connect-doctor\bundle\index.js:8815:41)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:65:3)
at Function.runMain (pkg/prelude/bootstrap.js:1984:13)

To Reproduce
Steps to reproduce the behavior:

Download the latest release from https://github.com/amosproj/amos2022ss08-openid-connect-doctor/releases/tag/sprint-11-release-candidate
Start the executable via your terminal of choice

Expected behavior
The application starts and opens a browser tab displaying the first page of the openid-doctor-workflow.
Screenshots

Desktop (please complete the following information):

OS: Windows 10 Professional

I was missing the necessary files mentioned in the documentation. If I create the necessary files it is working as expected. So there is no need for a fix right now.


text:
[Component] Trend Identification

Linear Regression
ARIMA
...

Followup issue: #28

Another followup issue: #29
From now on each method will be it's own component and issue.

authors: luccalb sanalmert


text:
Invalid username using key

Hi all, i am trying to connect vía sftp to mi server. My configuration is:
{
    "type": "sftp",
    "host": "my.server.domain",
    "user": "merkaz",
    "port": 22,
    "remotePath": "/public_html/v1",
    "uploadOnSave": true,
    "sshKeyFile": "~/.ssh/id_rsa"
}

But i get the next message: Cannot established connection: invalid username.
I did try from terminal sftp merkaz@my.server.domain and works fine.
Any ideas ?

Change "user" to "username".

repo: amoussard/sftp-deployment


text:
Meta images

In my .html file, I have a meta tag like this:
<meta property="og:image" content="/img/screenshot.png">

When I build the file, that image does not get moved over to the build folder. I've also tried this, and it didn't work:
<meta property="og:image" content="<%= require('./assets/img/touch-icon-iphone.png') %>">

Any ideas how to achieve that the image gets moved to the build folder?

You could use the loader branch (2.0) of the plugin

authors: jantimon mxstbr

repo: ampedandwired/html-webpack-plugin


text:
Fix #8 - Make share output valid hexadecimal

Not 100% sure if this actually works, need some code review for sure.
Also I doubt that this is backwards compatible with previously generated secrets, so that's going to be a problem...

Please provide a small test (before / after).

authors: DanielRuf jgeewax


text:
Preserve order of Amp\Promise\all

…mp\Promise\all()

Please add an entry to CHANGELOG.md.

I've closed this PR in favor of a simpler commit, but thanks for the suggestion :-)

authors: brstgt bwoebi kelunik

repo: amphp/amp


text:
Question : Non blocking request

Hi,
I have a question regarding non blocking request. I wanted to send the request, but I don't care to wait for the response. Is there a way to achieve it ?
Say calling a url : http://example.com/post/hello?w=222 . Just a dummy one.
Thank you.

Hi harikt,
see the example in the readme:
https://github.com/amphp/artax#simple-uri-get
as long as you dont call $response = Amp\wait($promise); it doesnt block.

Thank you.
I will test it.

@harikt: Can we close this issue?

Basically the documentation seems wrong and I don't remember where I ended up.

authors: harikt kelunik staabm

repo: amphp/artax


text:
[TACHYON-1105] Added JSPC compiler to precompile JSP files

https://tachyon.atlassian.net/browse/TACHYON-1105
So that JSP errors can be found at compile time

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5700/Build result: FAILURE[...truncated 5105 lines...][JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/s3/target/tachyon-underfs-s3-0.8.0-SNAPSHOT-sources.jar to org.tachyonproject/tachyon-underfs-s3/0.8.0-SNAPSHOT/tachyon-underfs-s3-0.8.0-SNAPSHOT-sources.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/s3/target/tachyon-underfs-s3-0.8.0-SNAPSHOT-javadoc.jar to org.tachyonproject/tachyon-underfs-s3/0.8.0-SNAPSHOT/tachyon-underfs-s3-0.8.0-SNAPSHOT-javadoc.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/pom.xml to org.tachyonproject/tachyon-clients/0.8.0-SNAPSHOT/tachyon-clients-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/unshaded/pom.xml to org.tachyonproject/tachyon-client-unshaded/0.8.0-SNAPSHOT/tachyon-client-unshaded-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/unshaded/target/tachyon-client-unshaded-0.8.0-SNAPSHOT.jar to org.tachyonproject/tachyon-client-unshaded/0.8.0-SNAPSHOT/tachyon-client-unshaded-0.8.0-SNAPSHOT.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/unshaded/target/tachyon-client-unshaded-0.8.0-SNAPSHOT-sources.jar to org.tachyonproject/tachyon-client-unshaded/0.8.0-SNAPSHOT/tachyon-client-unshaded-0.8.0-SNAPSHOT-sources.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/unshaded/target/tachyon-client-unshaded-0.8.0-SNAPSHOT-javadoc.jar to org.tachyonproject/tachyon-client-unshaded/0.8.0-SNAPSHOT/tachyon-client-unshaded-0.8.0-SNAPSHOT-javadoc.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/servers/pom.xml to org.tachyonproject/tachyon-servers/0.8.0-SNAPSHOT/tachyon-servers-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/servers/target/tachyon-servers-0.8.0-SNAPSHOT.jar to org.tachyonproject/tachyon-servers/0.8.0-SNAPSHOT/tachyon-servers-0.8.0-SNAPSHOT.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/hdfs/pom.xml to org.tachyonproject/tachyon-underfs-hdfs/0.8.0-SNAPSHOT/tachyon-underfs-hdfs-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/hdfs/target/tachyon-underfs-hdfs-0.8.0-SNAPSHOT.jar to org.tachyonproject/tachyon-underfs-hdfs/0.8.0-SNAPSHOT/tachyon-underfs-hdfs-0.8.0-SNAPSHOT.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/hdfs/target/tachyon-underfs-hdfs-0.8.0-SNAPSHOT-sources.jar to org.tachyonproject/tachyon-underfs-hdfs/0.8.0-SNAPSHOT/tachyon-underfs-hdfs-0.8.0-SNAPSHOT-sources.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/hdfs/target/tachyon-underfs-hdfs-0.8.0-SNAPSHOT-javadoc.jar to org.tachyonproject/tachyon-underfs-hdfs/0.8.0-SNAPSHOT/tachyon-underfs-hdfs-0.8.0-SNAPSHOT-javadoc.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/pom.xml to org.tachyonproject/tachyon-parent/0.8.0-SNAPSHOT/tachyon-parent-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/client/dependency-reduced-pom.xml to org.tachyonproject/tachyon-client/0.8.0-SNAPSHOT/tachyon-client-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/client/target/tachyon-client-0.8.0-SNAPSHOT.jar to org.tachyonproject/tachyon-client/0.8.0-SNAPSHOT/tachyon-client-0.8.0-SNAPSHOT.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/client/target/tachyon-client-0.8.0-SNAPSHOT-sources.jar to org.tachyonproject/tachyon-client/0.8.0-SNAPSHOT/tachyon-client-0.8.0-SNAPSHOT-sources.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/clients/client/target/tachyon-client-0.8.0-SNAPSHOT-javadoc.jar to org.tachyonproject/tachyon-client/0.8.0-SNAPSHOT/tachyon-client-0.8.0-SNAPSHOT-javadoc.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/shell/pom.xml to org.tachyonproject/tachyon-shell/0.8.0-SNAPSHOT/tachyon-shell-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/glusterfs/pom.xml to org.tachyonproject/tachyon-underfs-glusterfs/0.8.0-SNAPSHOT/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT.pom[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/glusterfs/target/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT.jar to org.tachyonproject/tachyon-underfs-glusterfs/0.8.0-SNAPSHOT/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/glusterfs/target/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT-sources.jar to org.tachyonproject/tachyon-underfs-glusterfs/0.8.0-SNAPSHOT/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT-sources.jar[JENKINS] Archiving /home/jenkins/workspace/Tachyon-Pull-Request-Builder/underfs/glusterfs/target/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT-javadoc.jar to org.tachyonproject/tachyon-underfs-glusterfs/0.8.0-SNAPSHOT/tachyon-underfs-glusterfs-0.8.0-SNAPSHOT-javadoc.jarchannel stopped
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5713/
Test PASSed.

This sounds good. Is there any negative side effect with pre-compiling the jsp files?

For this one, I cannot think of any downside, because we just compile the jsp files for type checking without using its output.

LGTM

@yupeng9 I'm reverting this since its breaking the web ui.

authors: AmplabJenkins calvinjia gpang yupeng9

repo: amplab/tachyon


text:
[TACHYON-1468] Fix shell utils test on OSX

https://tachyon.atlassian.net/browse/TACHYON-1468

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7453/
Test PASSed.

LGTM

authors: AmplabJenkins aaudiber calvinjia


text:
[TACHYON-392] make hadoop version configurable in deploy module

https://tachyon.atlassian.net/browse/TACHYON-392
with this PR:
you can choose to deploy different version of apache hadoop,
you can also choose to deploy cloudera distribution of hadoop.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/3213/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/3215/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/3221/
Test PASSed.

+1 LGTM

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/3222/
Test PASSed.

authors: AmplabJenkins calvinjia uronce-cc


text:
setUserId doesn't work

Expected Behavior
User must be visible in Amplitude Dashboard. When i added setUserId events got disappear.
Current Behavior
It show show Amplitude Id and userId as null.
when i try to set user Id, then event itself not visible.
fun provideAmplitudeInstance(): Amplitude {
        val amplitude = Amplitude( Configuration(
            apiKey = "API Key",
            context = ApiInstance.appContext,
            plan = provideDefaultObservePlan(),
            trackingSessionEvents = false
        )).also { amplitude ->
            providePlugins().forEach { plugin ->
                amplitude.add(plugin)
            }
        }
        amplitude.setUserId("12345")

        return amplitude
    }

I am using this function like this : private val client: Amplitude by lazy(LazyThreadSafetyMode.NONE) {}

Unity Plugin Version:
Device: Android Emulator Pixel 4
Device OS and Version: Android 12
Amplitude version - amplitude-analytics-android/1.8.0

We met the same issue here with com.amplitude:analytics-android 1.11.0.
Is there any update for this issue?

We met the same issue here with com.amplitude:analytics-android 1.11.0. Is there any update for this issue?

check your user id length if its less than 5 then you will have this issue.
or else update 'minIdLength' in Configuration.

authors: JammyZ rahulTeladoc

repo: amplitude/Amplitude-Kotlin


text:
Use new favicon

@rowan-m @jmadler @sebastianbenz AMP icon has been updated, this would be the new favicon for ABE

Will also need updated preview for https://github.com/ampproject/amp-by-example/blob/master/src/img/abe_preview.png

Thanks, all done!

The lightning bolt should be white instead of transparent.

@sebastianbenz lightning bolt is now white. Thanks!

@sebastianbenz PTAL

Applied the remaining changes while merging.

authors: kul3r4 rowan-m sebastianbenz

repo: ampproject/amp-by-example


text:
Enable prettier for the amp-github-apps repo

For consistency, let's use the same .prettierrc as amphtml.

@rcebulko Reopening this since the code doesn't actually follow the format recommended by prettier. (You'd need to run eslint with --fix and change the prettier entry in .eslintrc from a warning to an error.)

@rsimha On the Prettier PR @erwinmombay suggested making it a warning rather than an error. I'll spin up a linted PR with the changes and loop you both in as reviewers.

authors: rcebulko rsimha

repo: ampproject/amp-github-apps


text:
Create release tagging bot

Something like this already coded in  https://github.com/ampproject/amphtml/blob/master/build-system/tasks/release-tagging.js, but it's not running consistently to my knowledge.
Here's how it'd work:

As soon as a release is created/change, a pull request appearing in the release's changelog gets tagged with the release number: via custom labels and/or comments. Ideally subscribers would get a notification "this pull request went into a release 12345".
When a release goes into canary or prod the associated pull requests get a label "in canary" or "in prod". Possibly also comments are added as well for notification.
The same tags/comments are extended to issues closed by an associated pull request. This is important, since most of people actually track issues and not pull requests.

/cc @rsimha

Thanks for the FR, @dvoytenko! We've talked about resurrecting the "in canary" / "in prod" labels in the past. It will definitely help solve problems like these:

https://github.com/ampproject/amphtml/issues/17829
https://github.com/ampproject/amphtml/issues/18551

Thanks for taking this on, @estherkim!

authors: dvoytenko rsimha


text:
Add support for feature testing without touching Mailchimp

I've been using Gibbon for many years and it's been great.
Recently I ran into an issue where my feature specs were failing while trying subscribe users. The failure was
bad URI(is not URI?): https://key.api.mailchimp.com/3.0/lists/fan list id from mailchimp/members @title=nil, @detail=nil, @body=nil, @raw_body=nil, @status_code=nil (Gibbon::MailChimpError)
      ./app/services/mail_chimp_service.rb:45:in `subscribe'

I have a service that wraps my interaction with Gibbon.  It looks roughly like
# frozen_string_literal: true
class MailChimpService
   ...
  def subscribe_and_welcome
    return unless @user.mailchimp_subscribed_at.nil?
    subscribe
    @user.update_attributes(mailchimp_subscribed_at: Time.zone.now)
  end

  ...
  def subscribe
    list.members.create( body: {  email_address: @user.email, ... } )
  end

  private
  def members_list
    Gibbon::Request.new(api_key: <api key>).lists(<list id>).members
  end
end

This works fine in all the specs except my cucumber suite.  Because in all the other specs, I can easily stub the Gibbon::Request object and responses etc.
I wonder if you've ever thought about a test mode that doesn't actually make the request but maybe always returns success.
As a fix for my code, I simply rewrite the class with mock methods and that works for testing.
# in features/support/gibbon.rb so only available to cucumber
module Gibbon
  class Request
    def lists(list_id)
      MockLists.new(list_id)
    end
  end

  class MockLists
    def initialize(id)
      @id = id
    end

    def members
      MockMembers.new
    end
  end

  class MockMembers
    def create(*args); end
  end
end

This is certainly not complete for all scenarios but it works for my limited set.
I wonder if it's worth building out?  Would providing a set of feature spec ready classes or helpers be something you'd want to ship with this gem?

@bunnymatic Hi. Thanks for the note. Yes, a test mode is a nice idea that would be something I'd accept a PR for. I'd want to avoid having to write code for every endpoint MC as part of their API though. Any thoughts on how this could be done without predefining response code? Would a test mode flag that suppressed requests be enough?

Agreed - filling out their entire API seems like it might be a bit ridiculous.  I hadn't thought it through too far.  As you can see, my little patch works, but is pretty stupid and doesn't cover any kind of investigation into the expected response etc.
It feels like suppressing the requests (and just acting like everythings good) is a first step.  In my case, i was able to test my service and with this mock code above, I was able to make an expectation that lists.members.create was called with the right arguments.  That's basically where I wanted to stop testing.  Then I'm trusting that the Gibbon code is properly tested so that whatever happens in create will work the way I expect.
It feels like a mock library (which might be something that could be done with a little bit of meta-programming) would at least allow folks to stub/expect on their usage of the Gibbon gem.
I may try to flesh something out.  If I do, I'll definitely send up a PR and you can see what you think.

authors: amro bunnymatic

repo: amro/gibbon


text:
Not Able To Set Current Date By Default in the Text Box Using Pickadate

Iam not able to set the current date by default in the textbox using pickadate..
Can anyone please explain how to do it.

Read the docs: http://amsul.ca/pickadate.js/date/#formats_prefill

let startDate = new Date();
let datepicker = $('.datepicker').pickadate({
format: 'mm-dd-yyyy',
highlight: startDate,
});