HADOOP-18242. ABFS Rename Failure when tracking metadata is in an incomplete state

ABFS rename fails intermittently when the Storage-blob tracking
metadata is in an incomplete state. This surfaces as the error code
404 and an error message of "RenameDestinationParentPathNotFound"
To mitigate this issue, when a request fails with this response.
the ABFS client issues a HEAD call on the source file
and then retries the rename operation again
ABFS filesystem statistics track when this occurs with new counters
rename_recovery
metadata_incomplete_rename_failures
rename_path_attempts
This is very rare occurrence and appears to be triggered under certain
heavy load conditions, just as with HADOOP-18163.
Contributed by Mehakmeet Singh.

Description of PR
How was this patch tested?
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[x] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

Testing:
Region: US-West-2
 mvn -Dparallel-tests=abfs -DtestsThreadCount=8 -Dscale clean verify
All tests ran fine.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
6m 56s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 4 new or modified test files.

_ branch-3.3 Compile Tests _

-1 :x:
mvninstall
1m  2s
/branch-mvninstall-root.txt
root in branch-3.3 failed.

+1 :green_heart:
compile
5m 33s

branch-3.3 passed

+1 :green_heart:
checkstyle
0m 33s

branch-3.3 passed

+1 :green_heart:
mvnsite
1m 13s

branch-3.3 passed

+1 :green_heart:
javadoc
0m 44s

branch-3.3 passed

+1 :green_heart:
spotbugs
1m 14s

branch-3.3 passed

-1 :x:
shadedclient
1m 55s

branch has errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 49s

the patch passed

+1 :green_heart:
compile
0m 36s

the patch passed

+1 :green_heart:
javac
0m 36s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 26s

the patch passed

+1 :green_heart:
mvnsite
0m 40s

the patch passed

+1 :green_heart:
javadoc
0m 30s

the patch passed

+1 :green_heart:
spotbugs
1m 12s

the patch passed

-1 :x:
shadedclient
1m 54s

patch has errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
0m 21s
/patch-unit-hadoop-tools_hadoop-azure.txt
hadoop-azure in the patch failed.

+0 :ok:
asflicense
0m 23s

ASF License check generated no output?

26m 51s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4517

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 03ea3ff8121e 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
branch-3.3 / 7587a37b6e80d167dd3503bf63efcc6054262bd7

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~18.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/1/testReport/

Max. process+thread count
88 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/1/console

versions
git=2.17.1 maven=3.6.0 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Seems like some version mismatch in the pom.xml of hadoop-benchmark after vectored-IO backport, not entirely sure.
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.apache.hadoop:hadoop-benchmark:3.4.0-SNAPSHOT (/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-4517/src/hadoop-tools/hadoop-benchmark/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.apache.hadoop:hadoop-benchmark:3.4.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-project:pom:3.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 22, column 11 -> [Help 2]

CC: @mukund-thakur @steveloughran

Yeah even I saw this later while trying to backport internally. But how come local branch-3.3 build is successful.

Can you try now. Just add a dummy commit with one line addition somewhere. It should trigger Yetus.
I think it should be fixed by now https://issues.apache.org/jira/browse/HADOOP-18322

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
7m 22s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  1s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

+1 :green_heart:
test4tests
0m  0s

The patch appears to include 4 new or modified test files.

_ branch-3.3 Compile Tests _

+1 :green_heart:
mvninstall
38m  7s

branch-3.3 passed

+1 :green_heart:
compile
0m 51s

branch-3.3 passed

+1 :green_heart:
checkstyle
0m 46s

branch-3.3 passed

+1 :green_heart:
mvnsite
0m 55s

branch-3.3 passed

+1 :green_heart:
javadoc
0m 56s

branch-3.3 passed

+1 :green_heart:
spotbugs
1m 33s

branch-3.3 passed

+1 :green_heart:
shadedclient
27m 19s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 44s

the patch passed

+1 :green_heart:
compile
0m 36s

the patch passed

+1 :green_heart:
javac
0m 36s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 23s

the patch passed

+1 :green_heart:
mvnsite
0m 44s

the patch passed

+1 :green_heart:
javadoc
0m 28s

the patch passed

+1 :green_heart:
spotbugs
1m 14s

the patch passed

+1 :green_heart:
shadedclient
27m 37s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 31s

hadoop-azure in the patch passed.

+1 :green_heart:
asflicense
0m 49s

The patch does not generate ASF License warnings.

113m 42s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/4517

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux ac47305a59d1 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
branch-3.3 / 1ecb94909f30b094cc10d29053ada38b0d5ea65b

Default Java
Private Build-1.8.0_312-8u312-b07-0ubuntu1~18.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/2/testReport/

Max. process+thread count
552 (vs. ulimit of 5500)

modules
C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4517/2/console

versions
git=2.17.1 maven=3.6.0 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


Support block form usage of radioGroups

Hi folks!
Thanks for all your work on this package! It's lovely and usable.
I needed to use i18n-translated labels within radio groups. Instead of pre-translating them before creating the Options hash, I refactored the radio group to yield out for the label content of individual radios when used in block form.
This PR includes tests & some changes to the README to describe this usage.
Please let me know if you see spots for improvement, or if you have any questions? PS this is my work GitHub account, I'm at @jakemoves for other work.
Best regards,
Jacob

Hi @jacob-financeit!
Thank you for your awesome contribution! It looks really solid to me, and it's even well-tested :+1:
I just have one minor suggestion, which I'll add as a review - after I'm happy to merge this!

I just published v0.4.0 of this addon, which includes your PR and a minor bugfix (removing the hardcoded radio class). Thanks again!

Awesome, thanks! There may be a few more PRs en route in the next couple weeks :)

Awesome - looking forward to that! :+1:


NC | NSFS | Versioning | Put-Object request for folder is failing after second time

Environment info

NooBaa Version: VERSION
Platform: Kubernetes 1.14.1 | minikube 1.1.1 | OpenShift 4.1 | other: specify

Actual behavior

When trying to push the object into a folder key(a/b/c/), the first two times it works but the third time onwards request fails with an internal error.

Expected behavior

customer should be able to push data to the folder key multiple times without issues.

aws s3api put-object --bucket bucket-v --key /a/b/c/ --body test-version.txt
urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings

An error occurred (InternalError) when calling the PutObject operation (reached max retries: 2): We encountered an internal error. Please try again.

Steps to reproduce

create a bucket and enable versioning for that bucket

aws s3 mb s3://bucket-v
aws s3api put-bucket-versioning --bucket bucket-v --versioning-configuration Status=Enable

call put-object three times.

aws s3api put-object --bucket bucket-v --key /a/b/c/ --body test-data.txt

Third time request will fail
More information - Screenshots / Logs / Other output
Log :-
Oct-28 13:09:00.264 [Upgrade/43254]    [L0] core.endpoint.s3.ops.s3_put_object:: PUT OBJECT bucket-v /a/b/c/
Oct-28 13:09:00.291 [Upgrade/43254]  [WARN] core.sdk.namespace_fs:: NamespaceFS._move_to_dest_version error: retries=9 should_retry=true new_ver_tmp_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/.noobaa-nsfs_671794d6d016fb26836f2975/uploads/8c3fc61e-694b-4b03-a85a-d93f43b17407 latest_ver_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder [Error: File exists] { code: 'EEXIST', context: 'SafeLink _link_from.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder _link_to.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/.versions/c_null _link_expected_mtime=1730100293304699904 _link_expected_inode=19937570 ' }
Oct-28 13:09:00.369 [Upgrade/43254]  [WARN] core.sdk.namespace_fs:: NamespaceFS._move_to_dest_version error: retries=8 should_retry=true new_ver_tmp_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/.noobaa-nsfs_671794d6d016fb26836f2975/uploads/8c3fc61e-694b-4b03-a85a-d93f43b17407 latest_ver_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder [Error: File exists] { code: 'EEXIST', context: 'SafeLink _link_from.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder _link_to.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/.versions/c_null _link_expected_mtime=1730100293304699904 _link_expected_inode=19937570 ' }
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Oct-28 13:09:01.142 [Upgrade/43254]  [WARN] core.sdk.namespace_fs:: NamespaceFS._move_to_dest_version error: retries=0 should_retry=true new_ver_tmp_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/.noobaa-nsfs_671794d6d016fb26836f2975/uploads/8c3fc61e-694b-4b03-a85a-d93f43b17407 latest_ver_path=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder [Error: File exists] { code: 'EEXIST', context: 'SafeLink _link_from.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder _link_to.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/.versions/c_null _link_expected_mtime=1730100293304699904 _link_expected_inode=19937570 ' }
Oct-28 13:09:01.142 [Upgrade/43254] [EVENT]{"timestamp":"2024-10-28T07:39:01.142Z","host":"li-afa941cc-3474-11b2-a85c-fc0f61e15c5c.ibm.com","event":{"code":"noobaa_object_upload_failed","message":"Error while uploading object, value: /a/b/c/","description":"Upload object failed, error: Error: File exists","entity_type":"NODE","event_type":"ERROR","scope":"NODE","severity":"ERROR","state":"DEGRADED","arguments":{"bucket_path":"/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v","object_name":"/a/b/c/"},"pid":43254}}
Oct-28 13:09:01.143 [Upgrade/43254]  [WARN] core.sdk.namespace_fs:: NamespaceFS: upload_object buffer pool cleanup error [Error: File exists] { code: 'EEXIST', context: 'SafeLink _link_from.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder _link_to.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/.versions/c_null _link_expected_mtime=1730100293304699904 _link_expected_inode=19937570 ' }
Oct-28 13:09:01.144 [Upgrade/43254] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error>InternalError<Message>We encountered an internal error. Please try again.</Message><Resource>/bucket-v//a/b/c/</Resource><RequestId>m2spjrj8-eiucm6-szw</RequestId></Error> PUT /bucket-v//a/b/c/ {"host":"localhost:6443","accept-encoding":"identity","user-agent":"aws-cli/2.15.48 Python/3.11.8 Linux/6.10.12-200.fc40.x86_64 exe/x86_64.fedora.40 prompt/off command/s3api.put-object","content-md5":"ntZm8vMQAqkXZICFVsecuQ==","expect":"100-continue","x-amz-date":"20241028T073900Z","x-amz-content-sha256":"UNSIGNED-PAYLOAD","authorization":"AWS4-HMAC-SHA256 Credential=y4GJmmgB0PPNPvNeB2Hz/20241028/us-east-1/s3/aws4_request, SignedHeaders=content-md5;host;x-amz-content-sha256;x-amz-date, Signature=5af1dc624a46079968d145fd42e50345349c6069495b0c695027defb64bc188f","content-length":"57"} Error: File exists - context: SafeLink _link_from.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/c/.folder _link_to.c_str()=/home/naveenpaul/WS/standalon/nsfs_root/nested_key/bucket-v/a/b/.versions/c_null _link_expected_mtime=1730100293304699904 _link_expected_inode=19937570

@romayalon I tested manually and it was not concurrent calls I did the calls sequentially after getting a response from another.

thanks @naveenpaul1
@shirady is taking a look


Limit ncpus/threads?

Hi,
I'm trying to use your tool but the job on the university HPC keeps getting killed for what appears to be too many threads being spawned. For context, I am using a conda environment with python 3.6 and TF 1.7.0. The jobs get 1 node, 32 cpus, and 62GB of memory.
Here is the code python predict.py -I $DATA_DIR/Reference_Genome.fasta -O $OUT_DIR/${Chrom}_regulatory_regions.gff -C ${Chrom}
And here is the error:
2021-11-04 14:32:58.974553: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
=>> PBS: job killed: ncpus 142.68 exceeded limit 32 (sum)

Is there a way to limit the number of threads the predict.py script will spawn (assuming this is actually the issue)?
Thanks in advance for your time.
EDIT: I am having different issues with getting the GPU drivers working on the HPC, so as it currently stands I can only use the CPU version.

Another relevant question/answer:
https://stackoverflow.com/questions/49677913/keras-tensorflow-limit-number-of-cores-intra-op-parallelism-threads-not-wor

Thanks for the quick response. Limiting the number of threads on the lines you suggested seems to have worked and it is now running.


During minikube start there is an Error on Linux, should I worry or not?

After minikube start I experience this erorr, but everything works fine after this.
m/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml"😄  minikube v1.30.1 on Ubuntu 20.04 (amd64)
✨  Automatically selected the docker driver. Other choices: ssh, none
📌  Using Docker driver with root privileges
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔥  Creating docker container (CPUs=2, Memory=16000MB) ...| E0528 08:15:17.810888 3192134 network_create.go:102] failed to find free subnet for docker network minikube after 20 attempts: no free private network subnets found with given parameters (start: "<IP_ADDRESS>", step: 9, tries: 20)
❗  Unable to create dedicated network, this might result in cluster IP change after restart: un-retryable: no free private network subnets found with given parameters (start: "<IP_ADDRESS>", step: 9, tries: 20)
🐳  Preparing Kubernetes v1.26.3 on Docker 23.0.2 ...| E0528 08:15:28.094721 3192134 start.go:131] Unable to get host IP: network inspect: docker network inspect minikube --format "{"Name": "{{.Name}}","Driver": "{{.Driver}}","Subnet": "{{range .IPAM.Config}}{{.Subnet}}{{end}}","Gateway": "{{range .IPAM.Config}}{{.Gateway}}{{end}}","MTU": {{if (index .Options "com.docker.network.driver.mtu")}}{{(index .Options "com.docker.network.driver.mtu")}}{{else}}0{{end}}, "ContainerIPs": [{{range $k,$v := .Containers }}"{{$v.IPv4Address}}",{{end}}]}": exit status 1
stdout:
stderr:
Error response from daemon: network minikube not found

As far as I understood, this error happens because of the way that SURF works. It does not allow network access without extra plugins. It does not look like we need it, because everything else worked.


Parsing floating point numbers returns "Other" error

The following document fails to parse, with KdlErrorKind::Other:
example 1.0

Ok I've been looking into this. Seems to be the same issue as #9. I believe it's because:
fn number(input: &str) -> IResult<&str, KdlValue, KdlParseError<&str>> {
    alt((
        map(integer, KdlValue::Int),
        map(hexadecimal, KdlValue::Int),
        map(octal, KdlValue::Int),
        map(binary, KdlValue::Int),
        map(float, KdlValue::Float),
    ))(input)
}

Looks for integer first, which, if you think about it for floats/hex values they'll look like...
1.0, 0x3, etc. (i.e. starting with an integer, just with trailing data). So the integer parser succeeds, and no fall-through happens for hex/octal/binary/float.
I'll look into submitting a PR to fix this.


drt: fix interpretation of ndr vias

Fixes the coverage error.

@maliberty tidy and format actions were failing for unrelated reasons. It doesn't affect non-ndr designs

I thought we had tidy'ed all of drt.  Is that not true?

@maliberty Yes. The github actions were failing not the formatting. I restarted it and it worked the second time.


Skip validation in testing environment

Makes it possible to do:
	livewire(EditCustomer::class, ['record' => $customer->getKey()])
		->callPageAction(DeleteAction::class);

in tests.

Thanks


Runtime types do not match documentation

Describe the feature
Wasn't sure if this counts as a bug report or enhancement as it touches on both documentation and code.
https://github.com/sidebase/nuxt-auth/blob/9295d1fe4f27d42c879862a48202f5b215fc0048/src/runtime/types.ts#L84-L96
The signIn and signUp endpoints do not allow for a value of false to be provided, though the documentation implies that  it should be possible to do so (https://auth.sidebase.io/guide/local/quick-start#api-endpoints).
How would you implement this?
Update the runtime types mentioned to allow for a value of false.
Additional information

[ ] Would you be willing to help implement this feature?

Provider

[ ] AuthJS
[X] Local
[X] Refresh
[ ] New Provider

Hi @dc-shackle 👋
We resolved this issue in the rewrite of the documentation. Thank you very much for brining it up 😊


UnboundLocalError: local variable 'cal_color' referenced before assignment

Executing PYTHONPATH=/usr/local/gcalcli/lib/python2.7/site-packages PYTHONIOENCODING=utf_8 /usr/local/gcalcli/bin/gcalcli --calendar 'Dieter Deyke' agenda --tsv 2018-06-23 2018-10-05
results in
Traceback (most recent call last):
File "/usr/local/gcalcli/bin/gcalcli", line 11, in
load_entry_point('gcalcli==4.1.0', 'console_scripts', 'gcalcli')()
File "build/bdist.linux-x86_64/egg/gcalcli/gcalcli.py", line 1939, in main
File "build/bdist.linux-x86_64/egg/gcalcli/gcalcli.py", line 1647, in parse_cal_names
UnboundLocalError: local variable 'cal_color' referenced before assignment
This happens on Debian testing with git commit 63ce089b0ad3b02ae2ec516fce9d7d3751c16d70

Sorry, I found this with a test I was writing, I shouldn't have pushed the code without finishing the test.  Thanks for saying something!


python38Packages.babelfish: 0.5.5 -> 0.6.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.babelfish is: "A module to work with countries and languages"
meta.homepage for python38Packages.babelfish is: "https://pypi.python.org/pypi/babelfish"
meta.changelog for python38Packages.babelfish is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.6.0 with grep in /nix/store/2nvbn02hqb7vvn817nlnbvxfv75dqfi6-python3.8-babelfish-0.6.0

found 0.6.0 in filename of file in /nix/store/2nvbn02hqb7vvn817nlnbvxfv75dqfi6-python3.8-babelfish-0.6.0

directory tree listing: https://gist.github.com/1665b440c0fae22ed5f4d317c2a4b225

du listing: https://gist.github.com/1c88860c72916ec1dc88c131e0095861

Rebuild report (if merged into master) (click to expand)

32 total rebuild path(s)

8 package rebuild(s)

8 x86_64-linux rebuild(s)
8 i686-linux rebuild(s)
8 x86_64-darwin rebuild(s)
8 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
flexget
mnamer
python38Packages.babelfish
python38Packages.guessit
python38Packages.subliminal
python39Packages.babelfish
python39Packages.guessit
python39Packages.subliminal

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2nvbn02hqb7vvn817nlnbvxfv75dqfi6-python3.8-babelfish-0.6.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.babelfish https://github.com/r-ryantm/nixpkgs/archive/be3fca0d2a9ceda81c5276c16a6ea4316b9bc4c4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2nvbn02hqb7vvn817nlnbvxfv75dqfi6-python3.8-babelfish-0.6.0
ls -la /nix/store/2nvbn02hqb7vvn817nlnbvxfv75dqfi6-python3.8-babelfish-0.6.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings

Result of nixpkgs-review pr 133777 at be3fca0d run on aarch64-linux 1

1 package failed to build:

mnamer

7 packages built successfully:

flexget
python38Packages.babelfish
python38Packages.guessit
python38Packages.subliminal
python39Packages.babelfish
python39Packages.guessit
python39Packages.subliminal

2 suggestions:

warning: no-python-tests
Test runner could not discover any test cases: ‘Ran 0 tests in 0.000s’
Near pkgs/development/python-modules/babelfish/default.nix:16:0:
   |
16 |     description = "A module to work with countries and languages";
   | ^

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/development/python-modules/babelfish/default.nix:14:3:
   |
14 |   meta = with lib; {
   |   ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Only new failure on macos 10.15 & nixos x86_64:
builder for '/nix/store/s5rjyc7kqk4bx60dkf4qixiyiy253i1n-mnamer-2.5.3.drv' failed with exit code 4; last 10 log lines:
  pythonImportsCheckPhase
  Executing pythonImportsCheckPhase
  pytestCheckPhase
  Executing pytestCheckPhase
  ImportError while loading conftest '/build/source/tests/conftest.py'.
  tests/__init__.py:4: in <module>
      from mnamer.const import SUBTITLE_CONTAINERS
  mnamer/const.py:9: in <module>
      from babelfish import __version__ as babelfish_version
  E   ImportError: cannot import name '__version__' from 'babelfish' (/nix/store/2y6wxxzygndwm2riyhf6v4rcdbgja91s-python3.9-babelfish-0.6.0/lib/python3.9/site-packages/babelfish/__init__.py)


How to Create a WordPress Functionality Plugin

Article checklist
ATTENTION: In your PR - add the ISSUE (topic form) # that this PR corresponds to. You can do this by also adding a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.
This fixes  #2700.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
If you have not already please go over our Resources Page for more tips and tricks on how to improve our overall technical writing.
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines

This fixes #2700

@hectorkambow  Hello, Regarding the peer reviewing program, i wish to review this article.
@kayere can you please let me review this if you haven't started yet?  Thank you.

@kayere
If you have not started yet - if you could allow @M0nicah - to do a test run review on this PR - as she is interested in helping out.
Peter - if you could please lend Monica a helping hand - with any questions that may pop up 🚀  Thank you
Monica - Peter would be a great person to ask questions as well - as he has been a peer reviewer for some time now as well.

plagiarism check done

Noted @hectorkambow
@M0nicah, you can do the review. Ping me when you have any question or need any assistance.
I'll be happy to help.

Noted @hectorkambow
@M0nicah, you can do the review. Ping me when you have any question or need any assistance.
I'll be happy to help.

Thank you sir 👍
Please continue @M0nicah

@M0nicah, @kayere, I made changes, regards.

@essy258
Thank you for making the changes.👏
@kayere
I am done with the review part. What is the next step?

Good work @M0nicah. Now add front matter, and peer review attribution to get credit.

👀
Peter is doing a final review on this one.
Monica was doing a peer review (test run).
👍

Great tutorial, easy to follow 🚀 @essy258
Thank you for the review @M0nicah @kayere


Publish doc updates

Docs Build status updates of commit 6b5a7ff:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/make-office-add-in-compatible-with-existing-com-add-in.md
:white_check_mark:Succeeded

docs/excel/custom-functions-authentication.md
:white_check_mark:Succeeded

docs/excel/custom-functions-batching.md
:white_check_mark:Succeeded

docs/excel/custom-functions-debugging.md
:white_check_mark:Succeeded

docs/excel/custom-functions-dialog.md
:white_check_mark:Succeeded

docs/excel/custom-functions-errors.md
:white_check_mark:Succeeded

docs/excel/custom-functions-json-autogeneration.md
:white_check_mark:Succeeded

docs/excel/custom-functions-json.md
:white_check_mark:Succeeded

docs/excel/custom-functions-localize.md
:white_check_mark:Succeeded

docs/excel/custom-functions-naming.md
:white_check_mark:Succeeded

docs/excel/custom-functions-parameter-options.md
:white_check_mark:Succeeded

docs/excel/custom-functions-requirements.md
:white_check_mark:Succeeded

docs/excel/custom-functions-save-state.md
:white_check_mark:Succeeded

docs/excel/custom-functions-troubleshooting.md
:white_check_mark:Succeeded

docs/excel/custom-functions-volatile.md
:white_check_mark:Succeeded

docs/excel/make-custom-functions-compatible-with-xll-udf.md
:white_check_mark:Succeeded

docs/excel/xll-compatibility-requirements.md
:white_check_mark:Succeeded

docs/includes/excel-custom-functions-note.md
:white_check_mark:Succeeded

docs/quickstarts/excel-custom-functions-quickstart.md
:white_check_mark:Succeeded

docs/reference/manifest/equivalentaddin.md
:white_check_mark:Succeeded

docs/reference/manifest/progid.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

docs/tutorials/excel-tutorial-create-custom-functions.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


added ability for localhost

I already commented on an issue https://github.com/nhoizey/jekyll-cloudinary/issues/20
It's not perfect but it shows the local images if the environment is not production.


Helium Hotspot app is frozen

Describe the bug
When I login to the app , I can’t even click settings . Everything is frozen .
**

Open the app
Sometimes successfuly logged in and sometimes frozen .
I can’t reach to my wallet , settings, map, etc…
4

I contacted the bobcat 300 customer support and sent 2 emails . They said the miner is working perfect and your problem with the app , so you need to contact them .
Screenshots
Smartphone (please complete the following information):

Device: [iPhone Xsmax]
OS: [e.g. iOS 15.4.1]
App Version [latest one]
Device : Samsung j 7
OS: android up to date

Additional context
I feel that there is a problem with the miner

# Video 1 Video2

is this still a problem? you should be using the bobber app instead, to manage your hotspot.

closing for inactivity.

What do you mean?
On Fri, Jul 1, 2022 at 9:57 AM Coco Tang @.***> wrote:

closing for inactivity.
—
Reply to this email directly, view it on GitHub
https://github.com/helium/hotspot-app/issues/1298#issuecomment-1172486533,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY46NSK2JFRD566PP6EL5YDVR4INRANCNFSM5UNOMG6Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
[image: photo]
Anas Azzouz
Doctor of Computer Science
Senior Cybersecurity Consultant at Pinpoint Consulting
720-212-8590 | @.***

Yes , it is still a problem.
Bobber app doesn’t allow you to see the map and witness others .
On Tue, Jun 21, 2022 at 10:11 AM Coco Tang @.***> wrote:

is this still a problem? you should be using the bobber app instead, to
manage your hotspot.
—
Reply to this email directly, view it on GitHub
https://github.com/helium/hotspot-app/issues/1298#issuecomment-1161964832,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY46NSKKP3ZENITSPQJ5CYLVQHSR3ANCNFSM5UNOMG6Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
[image: photo]
Anas Azzouz
Doctor of Computer Science
Senior Cybersecurity Consultant at Pinpoint Consulting
720-212-8590 | @.***

Yes , it is still a problem. Bobber app doesn’t allow you to see the map and witness others .

If you have an issue with the Bobber app, you should open a support ticket with Bobcat: https://bobcatminer.zendesk.com/hc/en-us/requests/new


Feature Request - Workflows of Chained Requests

I love this product.  I'm familiar with the ability to chain requests, ie pull data from the response of one request and inject it into another request.  What I'd like to do is one step further:  have a way to run several chained requests with the click of a button in some kind of workflow.
For example, suppose I have three requests that I commonly do back-to-back-to-back:

create user
create loan information for that user
upload a file for that user

I would like to click on one button (or run one request) called "Create User and Loans and Upload File" which would then run those three individual chained requests.  Kind of like a script.
A simple approach would let me define a Workflow that runs arbitrary requests in a certain order.  It'd be really useful to configure template tags or environment variables per workflow, so I could define a "Create Borrower" workflow and a "Create Borrower With Bad Params" workflow that injects, say, an invalid phone number into the payload of one of the requests.
It's not necessary to have branching logic in such workflows, but that could be nice.  For example, if Request 1 returns a 422 then run Request 3 instead of Request 2.  Although in that case I would probably just define a new workflow that goes straight from Request 1 to Request 3.  I don't think Insomnia needs to be Turing Complete :).
What do you think?
Desmond

How about duplicating your standard chained request, change the parameters you want vary to Prompt, then you can try whatever you like.
Unless of course, you also want to fully automate all workflows, but that might be too much for a generic tool.

Hello, Did you see https://docs.insomnia.rest/insomnia/chaining-requests or https://insomnia.rest/product/automated-testing?

Hi @desmondmonster thanks for reporting this!
This is a bit in line with something myself and @marckong have discussed internally. Marking it as an improvement. We'll update you here if there's any changes.


Error when installing

Trying to install getting the following error:
> deno install -A --unstable https://deno.land/x/dev_server/mod.ts
Check https://deno.land/x/dev_server/mod.ts
error: TS2322 [ERROR]: Type '"esm"' is not assignable to type '"module" | "classic" | undefined'.
      bundle: "esm",
      ~~~~~~
    at https://deno.land/x/dev_server@v1.0.0-rc4/mod.ts:144:7

Here is my version:
> deno --version
deno 1.11.5 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.35
typescript 4.3.2

https://github.com/zhmushan/dev_server/blob/master/mod.ts#L144
In the latest Deno version we need to change esm to module, could you make a PR for this?

Can someone tag a new version with this update and Deno's Third Party Modules page (if some manual action is needed for that)?


#8

closes #8

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


dom0: remove core-image-thin-initramfs.bbappend

The recipe has just a declaration
IMAGE_INSTALL_append = " xen-tools-xenstat"
It is reasonable to move it into the prod-cockpit-rcar.yaml, this is the step to reduce the number of the recipes with variables declarations and without any business functionality.

Hi @iusyk,
Reviewed-by: Vladyslav Goncharuk<EMAIL_ADDRESS>Before the merge, please:

Squash all changes to one commit
Switch back to the non-forked branches in the moulin yaml ( I see 2 custom links there )


Permission denied for cfg files

I literally ran docker run -d -p 8081:8081 --name nexus sonatype/nexus3 from README and it didn't start properly as CURL failed and below is what I got from looking at the logs.
I'm using docker v 1.11.1
Any ideas?

@jchannon , why you closed this issue ?  I received the same message today. How to resolve this ?


affix.bs.affix didn't get triggered initially with offset top 0

The mentioned event should be triggered if setting offset.top to 0:
$('#element').affix({ offset: { top: 0 } }).on('affix.bs.affix', function () {
    console.log('affix.bs.affix triggered...');
});

Which currently doesn't happen.
As well as the class is still affix-top.

My mistake. Need to use scrollspy for my use-case.


Cookie Handling

Expose cookies to userland, including initRelayEnvironment and possibly React hooks.

Closed in https://github.com/XiNiHa/vilay/commit/2aff11a4c031017ff916f2c68dda4ee87ef215f1


Update prevent-data-loss.md

Supplement the required role to set the Default Group.

@ericregnier
Thanks for the contribution. Topic updated.


Fix things related to location packet type and stub generator

@glima it doesn't seem to have an use case yet, but at least it was fully supported. So at least it's working.
"location" was just allowed to be written (in schema + gen perspective), but nobody using such option type would compile...

@glima Actually iio/gyroscope uses direction-vector options, or did I misunderstood the remark?

Ok, @edersondisouza and @bdilly  :)


Redirect from API causing issues

The documentation mentions the API may redirect you and that the Bearer token in the header is stripped. What's the best way of tackling this?
Patterning after a Power BI sample I created a little TestConnection method that basically fires a test API call without auto redirects and then grabs the Location header and uses that for future API calls:
    public void TestConnection()
    {
        var fullUri = string.Format("https://api.azuredatacatalog.com/catalogs/{0}/search/search?searchTerms=tags:test&count=10&startPage=1&api-version=2015-06.0.1-Preview", CatalogName);

        // Check the connection for redirects
        HttpWebRequest request = System.Net.WebRequest.Create(fullUri) as System.Net.HttpWebRequest;
        request.KeepAlive = true;
        request.Method = "GET";
        request.ContentLength = 0;
        request.ContentType = "application/json";

        string authHeader = auth.CreateAuthorizationHeader();
        request.Headers.Add("Authorization", authHeader);

        request.AllowAutoRedirect = false;

        HttpWebResponse response = (HttpWebResponse)request.GetResponse();
        if (!string.IsNullOrEmpty(response.Headers["Location"]))
        {
            Uri uri = new Uri(response.Headers["Location"]);
            apiBaseURL = uri.Scheme + "://" + uri.Host;
        }

    }

If there's a better way, please do let us know.

This is a known issue that came as a result of the API endpoint changes we made recently.  The Azure Data Catalog team updated the other two samples but had not yet updated this one. We will get it updated to handle this case soon.


Fix compilation issue on CLITest

Motivation
#2182 is cherry-picked into branch 2.1. But some of integration test changes are not cherry-picked back.
So the compilation is broken
Changes
Fix the compilation issue on CLITest

run java8 tests


fix next error: replace 'http' with 'express'

PR Checklist

[x] Fix linting errors
[x] Label has been added

Change information
fix next error

resolve #74


VueX load state breaks if state contains an object with a getter

Version
5.3.3
Browser and OS info
Chrome 86 / macOS Catalina 10.15.6
Steps to reproduce
Try to use the "Load/Show state" function of the extension when your state contains a class instance with a getter (no setter).
What is expected?
The current Vuex state should be shown in the dev tools without any errors
What is actually happening?
An error is thrown:
backend.js:12461 Uncaught TypeError: Cannot set property thumbUrl of #<SomeClass> which has only a getter
    at getObjectCloneLoose (backend.js:12461)
    at handleCopy (backend.js:12745)
    at getObjectCloneLoose (backend.js:12461)
    at handleCopy (backend.js:12638)
    at getObjectCloneLoose (backend.js:12461)
    at handleCopy (backend.js:12638)
    at clone (backend.js:12748)
    at VuexBackend.replayMutations (backend.js:1242)
    at VuexBackend.onInspectState (backend.js:1016)
    at Bridge.emit (backend.js:3960)

This happens because in backend.js of this extension, specifically the getObjectCloneLoose() function, it tries to clone the state recursively and when it tries to clone the class instance, it runs this piece of code:
for (const key in object) {
    if (hasOwnProperty.call(object, key)) {
      clone[key] = handleCopy(object[key], cache)
    }
  }

So it iterates over all props of the object and tries to clone them. But a prop could easily be a read-only prop/getter, which cannot be written to. And this causes the error.

It isn't a very good idea to put complex objects in your state.

@Akryum Is this mentioned anyway in the Vue/Vuex docs? I can't find any such information


Conhost doesn't honour the codepage stored in shortcuts

Windows Terminal version
n/a
Windows build number
10.0.22621.1344
Other Software
cmd.exe
Steps to reproduce

make a shortcut to a CLI program that specifies a code page in it. Link to documentation regarding this
Or use this one I made:
cmd-869.zip, for the sake of example I picked code page 869 (Greek), but it can be any code page.

open the shortcut and type "chcp" to check current code page.

Expected Behavior
"chcp" returns the code page in the shortcut.
This is the behaviour if "legacy console mode" is on. (sorry I can't make the text bigger :D)

Actual Behavior
The default system code page is returned, the code page in the shortcut has no effect.
I tried setting the system code page to something other than 65001 and it still occurs, so utf-8 is not the issue here.

You know what? I think that this assignment (L168) is backwards! 😦
https://github.com/microsoft/terminal/blob/599b55081762af1594cd8419320e79b9be533944/src/propslib/ShortcutSerialization.cpp#L165-L170

Thanks for the report, and great find!

Hi can I help with this issue.

@ahmad2901 absolutely! It looks like it is a quick fix -- verifying the place where we load up the codepage -- and we'd love to review a pull request for it! Let us know if you need any specific help.
Since this is in the Windows Console Host, you will be focusing mostly on the "Host.EXE" project and the projects in the same folder in our solution tree.

Sure i will get started

hey @DHowett , I am unsure how to find this error can you give some guidelines?

I have a fix for this issue. It was, in fact, the wrong order of assignment, as pointed out by @DHowett

You know what? I think that this assignment (L168) is backwards! 😦
https://github.com/microsoft/terminal/blob/599b55081762af1594cd8419320e79b9be533944/src/propslib/ShortcutSerialization.cpp#L165-L170
The ones above it fill in pStateInfo. This one fills in the copy of ConsoleFEData it just loaded and is about to delete using garbage from pStateInfo.

I have run tests for release/debug and x86/x64, and there are no differences in test results between the main branch and this fix branch, although there seem to be no tests that reach this particular line of code. I tested manually with multiple .lnk files with different codepages, and the issue is gone on all my samples.
Is it OK if I take over this issue and submit a pull request?

Absolutely it is, @michalnpl. Thanks.
And, yeah... that is a real and true backward compat risk. It's been broken for pretty much ever (since 2016, and conhost v2), which means that it is practically canon at this point.
I don't have a good feel for what it's going to break to make it more correct¹, but we can absolutely merge it and try it!
¹ In Windows 2000, we added support for word delimiters... and messed up the implementation. 17 years later, we fixed the bug preventing it from working and good gosh we got a lot of phone calls about that!


Feat:Add the discord logo in the footer

Describe the feature
In the footer there is no discord logo and the all icons are in one color but instagram is not in same color
please assign me @pa
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Can you assign this to me? It would be great to contribute to your project!! I'm in GSSoC24

@Risheendra183 Hii can you assign this issue to me??


Ambiguous reference to member firstly(execute:)

PromiseKit version: 6.1.0
Xcode version: Xcode 9.3 beta 3

Example:
public func fetchAllAvailableRoutes() -> Promise<[Route]> {...}
firstly{
   self.fetchAllAvailableRoutes()
}

The example above always ends up in a compiler warning for me, saying

Ambiguous reference to member 'firstly(execute:)'
pointing to both implementations of firstly as a viable candidate.

fetchAllAvailableRoutes doesn't return a Guarantee though and omitting firstly and simply going to use fetchAllAvailableRoutes().then{...} works though

Can't be helped, you just have to keep typing or provide a return type like our troubleshooting guide says.

I found there were a lot of places where I had firstly{}.then where I wanted either firstly{}.done or firstly{}.map and the errors went away after that. Unfortunately swift has a hard time figuring out where to show the real error when it comes to closures.

Thanks, I have update the troubleshooting guide to suggest this scenario.

I also recently got this error from the following code:
firstly {
  aPromise()
}.then { value -> Promise<SomethingElse>
  return anotherPromise()
}

The issue was I was missing the "in" in the then clause. It's too bad swift won't show you the error on the .then clause, instead it bubbles up to the firstly event though that part is fine.

A missing in is covered in our Troubleshooting guide.

Can you point out where? Read the guide but not seeing it.

https://github.com/mxcl/PromiseKit/blob/master/Documentation/Troubleshooting.md#acknowledge-all-incoming-closure-parameters


Mapping string to integer

Valentin,
What is the best way to map a string to an integer for a slider?
For example, if I have a bedroom count slider:
 vm.bedroomSlider = {
      value: 1,
        options: {
            ceil: 10,
            floor: 1,
            id: 'bedroomSlider',
            onEnd: vm.bedroomChangeListener,
        }
    };

And I want to include "studio" apartments that a value of 'studio' and not an integer.  Is there a way to take advantage of the translate function to make this work?  Or perhaps I somehow use onEnd to include studio apartments in the results?

Hi Matthew,
I'm not sure to understand what you want to achieve... If you want to display a slider with discrete values like studioA, studioB, ... you can just use the stepsArray option like this:
vm.bedroomSlider = {
  value: 1,
  options: {
    stepsArray: ['studioA', 'studioB', 'studioC'],
    id: 'bedroomSlider',
    onEnd: vm.bedroomChangeListener,
  }
};

stepsArray is just a shortcut for translate so if you want more complex logic, then you can use translate.

Hi Valentin,
I want to have a slider (see attached) that is used for searching for housing.  Right now it allows for a user to select 1-10 bedrooms, but some places are studio apartments.
So, the data set is:
'studio', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
It works great for the integers, but the 'studio' is what I need to deal with.

Yes,  stepsArray then: http://jsfiddle.net/764vdhL8

Excellent.  Thanks for your time and help!


Issue with handleTaskDelete, handleTaskChange, and handleProgressChange methods

Hi, I am trying to use your package in a reactjs application.  I can see the gantt task on screen. However, few event handlers not triggering in Gantt chart component , method like onExpanderClick, onProgressChange, onDateChange and onDelete are not getting triggered.
I am bit confuse why few methods are working and few are not. Its also not raising any error in the console. Not sure, how to debug this. Any leads will be appreciated.
Note, onClick, onDoubleClick, onSelect is working expectedly.
Package:
"react": "^18.2.0",
"gantt-task-react": "^0.3.9".
Code:
`
import React, { useState } from 'react'
import { Gantt, ViewMode, Task, EventOption, StylingOption, DisplayOption } from 'gantt-task-react';
import "gantt-task-react/dist/index.css";
import './TaskGrantView.scss'
const TaskGrantView = () => {
let x = [
{
start: new Date(2020, 1, 1),
end: new Date(2020, 1, 15),
name: 'Test Project',
id: 'Task 5',
type: 'project',
progress: 60,
isDisabled: true,
styles: { progressColor: '#ffbb54', progressSelectedColor: '#ff9e0d' },
project: 'Test Project'
},
{
start: new Date(2020, 1, 1),
end: new Date(2020, 1, 2),
name: 'Idea',
id: 'Task 1',
type: 'task',
progress: 80,
isDisabled: true,
styles: { progressColor: '#ffbb54', progressSelectedColor: '#ff9e0d' },
}
];
const [tasks, setTasks] = useState(x);
const onClick = (task) => {
    console.log('Clicked on task:', task);
};
const onDblClick = (task) => {
    console.log('Double clicked on task:', task);
};

const handleSelect = (task, isSelected) => {
    console.log(task.name + " has " + (isSelected ? "selected" : "unselected"));
};

//Not Triggered
const handleExpanderClick = (task) => {
    console.log("On expander click Id:" + task.id);
};

//Not Triggered
const handleTaskDelete = (task) => {
    console.log('delete')
};

//Not Triggered
const handleTaskChange = (task) => {
    console.log("On date change Id:" + task.id);
};

//Not Triggered
const handleProgressChange = (task) => {
    console.log("On progress change Id:" + task.id);
};

return (
    <div style={{ display: 'flex' }}>
        <Gantt
            viewMode={ViewMode.Day}
            tasks={tasks}
            onClick={onClick}
            onDoubleClick={onDblClick}
            onSelect={handleSelect}

            onExpanderClick={handleExpanderClick}
            onProgressChange={handleProgressChange}
            onDelete={() => { alert('asldkfj') }}
            onDateChange={handleTaskChange}
        />
    </div>
)

}
export default TaskGrantView
`

@MaTeMaTuK : could you please help

The issue is in the initialization. isDisabled=true was the reason.  Solved!


Change Orientation of TFObjectDetector

I am relatively new to using TFObjectDetector and my team found it better for the phone to be laid on its side rather than upright. I have looked through the source code and can't seem to find anyway to change the orientation from portrait to landscape. Any help would be appreciated.

Nevermind, I was able to resolve my issue. The problem was that the phone will account for the orientation of the phone however you must start in the desired orientation. For me I was starting in portrait mode and then moving the phone to landscape mode. The problem was fixed if I started in landscape mode.


Add raigon44 to Contributors list

@raigon44, I'm quite elated about your first PR. I wanna evolve this project addresses various problems faced by first time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I accepted it?

@Roshanjossey , It is a good tutorial for beginners  . But i think still some improvements can be made .

@raigon44, Please suggest any improvements that you deem necessary. I'd be happy to discuss about it and add it. Send me a pull request with changes you see fit.


Update Swift Playground to use import MapLibre

This PR includes updates to the Swift Playground for MapLibre 6.0.0.  The Playground is distributed as part of the Swift Package and gives a simple demo of MapLibre as it would run in an iOS Simulator.
Examples below are a couple of quickly prototyped MapLibre styles running in the Playground.
Details

Swift Playground changes for https://github.com/maplibre/maplibre-native/pull/919

Awaiting

https://github.com/maplibre/maplibre-native/issues/1862
https://github.com/maplibre/maplibre-native/issues/1979

MapLibre Demo Style with logo & attribution

OSM Americana Demo Style with collisionBoxesMask, tileBoundariesMask, & tileInfoMask.

Terrain, centered around Innsbruck, Austria

Thanks!


Modbus Slave Stops Working (IDFGH-4100)

Environment

Development Kit:      ESP32-DevKitC
Kit version (for WroverKit/PicoKit/DevKitC): v4
Module or chip used:  ESP32-WROOM-32D
IDF version (run git describe --tags to find it): v4.3-dev-907-g6c17e3a64
Build System:         Make
Compiler version (run xtensa-esp32-elf-gcc --version to find it): esp-2020r1
// 1.22.0-80-g6c4433a
Operating System:     [Linux]
Using an IDE?: [VsCode]
Power Supply:         [USB]

Problem Description
Hello everyone,
I have been testing the Modbus software on my ESP32 and i have encountered an issue regarding the UART Communication.
I am running a modbus slave program (similiar to the slave example) for communicating with a raspberry pi 4b using a RS-232 protocol. I have connected all the pins straight to the RPI (Rx, Tx, RTS, CTS) and i was able to communicate over modbus RS-232 with the ESP32. However, after some time (varies depending on reading frequency, usually less than a day with 5s), seems that the ESP32 cannot handle the communication anymore and it constantly gives timeouts. When i try to read the logs when failing, NOTHING appears in the console of the esp32...no errors or anything.
I have checked the menuconfig variables (including log levels) and everything seems to be correct, am i missing something?
I firstly assumed it could be a rpi problem so i reset it and tried again, no success. Then, i tried connecting with a PC over FTDI using Modbus and nothing. The only solution that i could find was reseting the ESP32.
I read in #4182 that the issue with the RTS pin was solved, can that be my problem besides i am using the v4.3 and it should be fixed?
Can anyone help me understand this issue?
PD: I don't know know if it is relevant, but i am using ESP-BLE_MESH while using Modbus.
Thanks!
MrCurio
Expected Behavior
Stable Modbus RS-232 communication that can last days/months
Actual Behavior
Randomly stops working without advertising
Steps to reproduce

Get a rpi and a ESP32
Connect them using UART pins (Rx, Tx, RTS, CTS)
Flash ESP32 modbus serial slave example (i have a modified version of it, but should also fail)
Read from RPI using modbus RS-232 with a frequency of 5 seconds for hours
Wait until you can't keep on reading from rpi

Code to reproduce this issue
Modbus Serial Slave example.
I use a modified version that just use a Queue for receiving data and transfer it to the registers of Modbus.
Debug Logs
NONE
Other items if possible
Attached sdskconfig as Txt File:
sdkconfig.txt

Hello @MrCurio,
Thank you for your issue and sorry for delay with answer. The existing modbus example stops communication once the input value reach the alarm value but as I understand this is not your case. The #4182 was solving issue with UART driver however there is other issue in Modbus driver which may keep the RTS line in TX state in some conditions and prevent to receive other input packets. This is known issue and fix is ready but not merged yet. However let us try to check my guess of the reason. It usually happens when in your app you have other tasks (WiFi, BT) with higher priority than Modbus tasks.
The function uart_wait_tx_done() can disable the UART_TX_DONE_INT_ENA_M interrupt and the driver does not set the RTS line back in the interrupt.
BOOL xMBMasterPortSerialTxPoll(void)
{
    USHORT usCount = 0;
    BOOL bNeedPoll = TRUE;

    if( bTxStateEnabled ) {
        // Continue while all response bytes put in buffer or out of buffer
        while(bNeedPoll && (usCount++ < MB_SERIAL_BUF_SIZE)) {
            // Calls the modbus stack callback function to let it fill the UART transmit buffer.
            bNeedPoll = pxMBMasterFrameCBTransmitterEmpty( ); // callback to transmit FSM
        }
        ESP_LOGD(TAG, "MB_TX_buffer sent: (%d) bytes.", (uint16_t)(usCount - 1));
        // Waits while UART sending the packet
-       esp_err_t xTxStatus = uart_wait_tx_done(ucUartNumber, MB_SERIAL_TX_TOUT_TICKS);
+      esp_err_t xTxStatus = uart_wait_tx_idle_polling(ucUartNumber); // <<<<<<< change the function call
        vMBMasterPortSerialEnable( TRUE, FALSE );
        MB_PORT_CHECK((xTxStatus == ESP_OK), FALSE, "mb serial sent buffer failure.");
        return TRUE;
    }
    return FALSE;
}

The change above should help to solve the issue but since the Modbus driver uses polling approach you may need to configure the FMB_PORT_TASK_PRIO to be higher than max priority of your tasks.
Unfortunately I do not have your application and can not reproduce the issue directly.
Please try the above suggestions and let me know the result.
Thanks.

Hello @alisitsyn,
Thank you for answering!
I have deeply reviewed my code and I can ensure I have no other tasks with a higher priority than the Modbus Stack.
I will make the change you recommend me for solving the issue and i will continue testing my application. When i get the new results (may take one week or more) i will let you know.
I'm sorry, but I cannot share my application since it is not open source. However, if problems persists, I will prepare a modified example for this issue.
Is there any other bug in the Modbus Stack that i should be aware of? If so, may i get a temporary patch before merging?
Thanks.

Hello @MrCurio,

I'm sorry, but I cannot share my application since it is not open source. However, if problems persists, I will prepare a modified example for this issue.

Yes, if you still have an issue then send me some example to be able to reproduce the issue.
Also please try to disable the CONFIG_FMB_TIMER_PORT_ENABLED option in kconfig.
This patch fixes the event processing issue in modbus master:
fix_mbm_event_processing.zip
Please let me know the result. Thanks.

Hello @alisitsyn ,
I will continue testing the application.
Thank you for the patch and suggestions. I will continue updating this issue as i move forward.

MrCurio,
Ahh, I just observed that the changes related to CONFIG_FMB_TIMER_PORT_ENABLED in port serial are also not merged into master. Please apply the changes attached and check.
modbus_fix_portserial_issues.zip
Thanks.

Hi @alisitsyn ,
I will only apply the last patch you sent me to master because it seems it gathers all the previous patches. If I am wrong, please correct me.
Thank you!

@MrCurio,
The last patch has the fix of xMBMasterPortSerialTxPoll(), so the manual fix above should be reverted before apply. The fix_mbm_event_processing.diff can be applied to v4.3 together with modbus_fix_portserial_issues.diff.

Hello, its been a week i applied the patches you gave me and the problem seems to be resolved. I will close this issue and reopen if further problems appear.
Thanks!

Hello @MrCurio,
Yes, feel free to reopen issue if you have further problems.
Thanks.


Sphix GitHub action

@tankefugl @nepstad I get notifications when stuff happens here, so I thought I would just chime in a bit. You might already know it, but mention it anyway for reference. You can enable pre-commit (pre-commit install) hooks and use an rst linter to check linting for Sphinx. We do it like this (plenty of other config templates online if you want to check it out): https://github.com/aiida-vasp/aiida-vasp/blob/develop/.pre-commit-config.yaml. and https://github.com/aiidateam/aiida-core/blob/develop/.pre-commit-config.yaml You already check the linting in the GA, which is nice. In this way it would also be checked before you can finalize a commit.


parse-input? to control input parsing #82

Did add support for parse-input? as discussed in #82. Tested on AWS and it works, bad request as expected :)

Can we publish this as 0.3.6-SNAPSHOT?

Published
On Wed, May 24, 2017 at 9:53 AM, Robert Vojta<EMAIL_ADDRESS>wrote:

Can we publish this as 0.3.6-SNAPSHOT?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/nervous-systems/cljs-lambda/pull/83#issuecomment-303661066,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYuK9aN_TIPqzG2O14xmMpAtKtVDKjaks5r8_ANgaJpZM4NkqfI
.


Add instantiate permission to CodeInfoResponse

closes #829

yes I can't add the tests actually I already had one in draft will complete them and push the update.


docker URL when in corp set up

How to configure docker registry URL to a private docker registry? Provisioner look for a busybox image from dockerhub to create the folders? How to set up provisioner in air gaped env?

You can refer to https://github.com/rancher/local-path-provisioner/issues/22#issuecomment-490984554 to setup custom image for the busybox image.

hi @yasker
Can I give an alpine image instead busybox for helper image?  I can't use busybox image due to licensing issue
thanks and appreciate your reply on this


Changed description of lock object

Changed description of lock object
Summary
Corrects an inaccurate description of an example.
Fixes #3645
Suggested Reviewers
@mairaw, @alex-groshev

Wow. Thanks, @alex-groshev. I hadn't even noticed that the code was incorrect. I've corrected it.

Another thing that I've noticed is that this topic has big note about .NET Framework 4. Seems a bit misleading. Maybe it should be changed to say Starting with .NET Framework 4...

And this change might grant an updated ms.date 😄


code splitting doesn't work in child compilations

Feature request

What is the expected behavior?
Code splitting should work in child compilations without the need for additional configuration.
What is motivation or use case for adding/changing the behavior?
Without an intimate understanding of all of webpack's internal plugins and the hooks they use, it's unclear what functionality you get and don't get when when creating a child compiler. I found it surprising that a child compiler cannot, at minimum, build an app that uses code splitting given that code splitting is not a feature that you usually have to enable otherwise.
In my use case, I'd like to have a 2nd compilation that's almost identical to the parent compilation with the exception that a different optimization option is set. Since the input to both compilations are identical I'd like to reuse as much work as possible across compilations so that webpack doesn't perform 2x the work.
This appears to be the minimal amount of code required to create a compilation similar to the parent:
module.exports = class CopyCatCompilerPlugin {
  apply(mainCompiler) {
    mainCompiler.hooks.make.tapAsync(
      'ChildCompilerPlugin',
      (compilation, callback) => {
        const childCompiler = compilation.createChildCompiler(
          'child',
          mainCompiler.options.output,
          [
            new JsonpTemplatePlugin(), // required since `thisCompilation` taps are not copied
          ]
        );

        // required since `compile` taps are not copied by default
        childCompiler.hooks.compile.taps = mainCompiler.hooks.compile.taps.slice();

        // prevent errors like "Conflict: Multiple assets emit to the same filename 0.js"
        // since the child compilation will result is identically named split chunks
        childCompiler.options.output.chunkFilename = `child-${mainCompiler.options.output.chunkFilename}`;

        // filter out unwanted optimization plugins here

        // add identical entry with a different bundle name
        new SingleEntryPlugin(
          mainCompiler.context,
          './src/index.js',
          'main-2'
        ).apply(childCompiler);

        childCompiler.runAsChild(callback);
      }
    );
  }
};

In general, it seems like the pattern of running multiple almost-identical compilations is useful in cases where you want to compile to different targets while not duplicating work across compilation. Or when you want webpack to bundle a test runner bundle but not have the test bundle entry affect your code splits.
Is there a better approach to this problem so that it's easy to replicate the parent compilation with slightly different options while maintaining performance?
For context, I'm on webpack 4.27.1 but cannot migrate to webpack 5 since I have many custom plugins and loaders that will require work to make compatible with webpack 5.
How should this be implemented in your opinion?
Have Compiler.createChildCompiler ensure that the JsonpTempaltePlugin is applied.
Are you willing to work on this yourself?
yes

For context, I'm on webpack 4.27.1 but cannot migrate to webpack 5 since I have many custom plugins and loaders that will require work to make compatible with webpack 5.

Which?
You can apply plugin(s) on childCompiler, there is no bugs, like here https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js#L351

Thanks for the reply.

Which?

Which loaders/plugins? They're not open source.

You can apply plugin(s) on childCompiler, there is no bugs, not all plugins enabled by default for child compilations, like here https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js#L351

Yeah, I understand that after I create a child compiler I can do anything I want with it. But it's not obvious which plugins are enabled by default and which are not. For example, you have to know that createChildCompiler does not copy thisCompilation and you have to know that the SplitChunksPlugin uses thisCompilation. It just seemed surprisingly manual to create a child compiler that can replicate the parent compilation.
The docs say:

It copies all hooks and plugins from the parent (or top-level compiler) and creates a child Compiler instance.
https://webpack.js.org/api/compilation-object/#createchildcompiler

But that's not true since many hooks, including hooks for important features like code splitting, are not copied over default. It seems like what gets copied over by default is mostly coincidental. Maybe this is just a documentation issue.
I can close this issue if this is considered working as designed but I do have a couple of related questions if you don't mind answering:

Does a child compiler seem like the right solution to this problem? That is, creating a duplicate compilation of the same input but with different optimization options.
What are the benefits of using a child compiler instead of configuring a MultiCompiler for this use case?

I'm happy to submit a PR with better createChildCompiler documentation once I have a better understanding.
Thanks again.

Not all plugins are copied to the child compiler. e. g. target and environment specific plugins are not copied, as the child compilation bundle usually run in a different target/environment.
I'm not aware of any limitation that comes with code splitting and child compilers. They should be able to use code splitting as usual. Without example is different to see what kind of problem you are running into?

btw. for independent builds for client and tests you are better using multiple configurations instead of a child compiler. The child compiler is intended to be used when the child compiler output should be referenced in the main compilation.

Not all plugins are copied to the child compiler. e. g. target and environment specific plugins are not copied, as the child compilation bundle usually run in a different target/environment.

I'll submit a PR so that's more clear in the docs.

I'm not aware of any limitation that comes with code splitting and child compilers. They should be able to use code splitting as usual.

It's not a limitation with the child compiler. It was just a surprising design decision in the createChildCompiler API. Code splitting only works if you configure the child compiler with the JsonpTemplatePlugin.
Here is an example: https://github.com/gusvargas/webpack-child-compiler-code-splitting
I ran the build with yarn webpack --mode development --plugin ./ChildCompilerPlugin.js
The resulting split chunk looks like this: https://github.com/gusvargas/webpack-child-compiler-code-splitting/blob/master/dist/child-0.js
But I expect: https://github.com/gusvargas/webpack-child-compiler-code-splitting/blob/master/dist/0.js#L1
This line needs to be uncommented: https://github.com/gusvargas/webpack-child-compiler-code-splitting/blob/master/ChildCompilerPlugin.js#L13
@prateekbh Also wrote about this detail in his article

Step 4: Discover that the chunks are not being fetched.
https://medium.com/@prateekbh/my-experience-writing-a-webpacks-child-compiler-plugin-a1237c175947

Anyway, it's easy to work around by simply applying the JsonpTemplatePlugin plugin and the default behavior makes more sense now that you're saying that target and environment specific plugins are not copied as an explicit decision – since code splitting is a browser concern I understand why it doesn't work by default.

btw. for independent builds for client and tests you are better using multiple configurations instead of a child compiler.

Thank you for the suggestion. My concern with using multiple configurations is that it would dramatically increase by build time – my build time is currently several minutes long. Adding a separate build configuration for a test bundle, where a lot of the input source is the same as the client build, seems  wasteful since it would make webpack repeat a lot of work. With the child compiler, it looks like at minimum the inputFilesystem and resolveFactory are shared across compilers. Is there a recommended way of using multiple configurations while also sharing work/cache between them?

Do you try https://webpack.js.org/configuration/other-options/#cachetype? (filesystem)?

That's interesting but it doesn't look like it's supported in webpack 4: https://v4.webpack.js.org/configuration/other-options/#cache

Maybe it is worth to consider to migrate on webpack@5 (there are a lot of other improvements)...

That's something that we would love to do soon but I was curious what the best solution today would look like.
It sounds like our best bet might just be to run these builds in parallel so that build times don't suffer too much. I'll close this issue but I'm happy to hear any other thoughts if you have them.
I'll open a documentation PR soon to add more details about the createChildCompiler API.

@gusvargas for the future, maybe you can provide your profile file and we will look how we can improve perf

Thanks, @alexander-akait .


Feature/avatar list

Description
DESCRIPTION_HERE
🔗 Reference

Relevant links (e.g. issue, design, etc.)

LINK_NAME

📋 Acceptance Criteria

Checked off by PR Assignees

[ ] CRITERION_HERE

👩🔬 Test Instructions

Provided by PR Assignees

TEST_STEP_HERE

🔎 Reviewer Checklist

Checked off by PR Reviewers

[ ] Merge destination is correct
[ ] Code is correct as understood and conforms to quality standards
[ ] Tests have been added where appropriate (unit, visual, end-to-end)
[ ] Acceptance Criteria have been met

Roles & Responsibilities
👨💻 Assignee

Initiator of this PR (be sure to set in GitHub UI)
Addresses feedback and change requests
Merges PR once approved (usually deletes branch unless develop or release)

👩💻 Reviewer

Invited to review PR by Assignee (via GitHub UI)
Is expected to complete a review and address followup

@thispastwinter I think my main question here is that of organization. I think AvatarGroup could be located within the existing Avatar module folder and exported from there. These components are highly-related and it would allow for more natural sharing of styling between Avatar and the "count" element in AvatarGroup. Thoughts?


Working with retrolambda

Retrolambda perform the bytecode weaving after javaComplie task which will override hugo's weaving.
Change the timing of hugo's weaving task from javaComplie.dolast to dex.doFirst can solve this problem.
#77  #78

I can't tell what the change is because you reformatted a bunch of lines with four spaces instead of two. Can you reformat back to match the project style?

Hi Wharton,
I have modified the code format.
Thanks.

Hello Jake, might I ask when this pull request will be merged and release a new build? As for now, when I use retrolambda, I have always run into the issue that promeG mentioned. It will be highly appreciated if you are kind to do so in the near future.

Cleaned up and merged the first two commits. I'm not sure removing library project support is needed at this time.


Update bundler

part of #589

Coverage remained the same at 79.57% when pulling 8bd62de5c1bf1ddec56b5311b41a99eb999278d2 on 589-update-bundler into 7c240e85c28bf9207b382c4d48fef1d9ecc3958a on master.


How to extract text data from PDF?

I am using below command
pdfcpu extract -mode=content inputFile.pdf outputDir

But i don't know how to convert this PDF-Source into text data.
Can you through some light onto this?
Thanks

Hi!
The extract mode content only gives you the page content in PDF Syntax.
Text extraction will be available in one of the next releases.

Thank you.

Hi,
Even I'm excited about this. Waiting for the update.

This is postponed until further notice because of the complexity and amount of work involved.


Checklist & Markdown support

Hello Ali.
This app is great. I really loved it but if you could add markdown and checklist support it will be perfect.
Thank you

Markdown support will take Noto to the next level!

Markdown support is on the roadmap. Please consider checking #19 for any updates. Thank you!


Update compose file

Add indy-repository-service for local testing
Adjust some configuration files to accommodate with the indy-repo-service

Abandon this as it is not used now. Will use a separate branch to submit if it is useful later.


Changing order discounts

Sometimes a client may negotiate well and try to improve the discount. Let's allow it to happen.

I'll take it 😄

Looks done to me, thanks @ag4ta 👍


Allow variables to be declared for each .spec file & resolve Variables integrated in a path

It would be wonderful to be able to set variables for a specific test suite without having to create a one-line .csv-file for every Test-Suite. Furthermore, variables should still be resolved if they are combined with other information, e.g. in a file-path. Together, this would look something like this:
Spec
test_dir = c:\user\bob\test\
Test 1
*Create file in "<test_dir>\files"
*Create another file in "<test_dir>\other_files"

As an alternatve to the nesting of the variable within another variable could be that the argument for a step must be a (quoted or unquoted) string surrounded by whitespace.
For example the following could be considered as equivalent:
* Create file in <test_dir>\files\
* Create file in <test_dir>"\files\"
And should expand to c:\user\bob\test\\files\ when passed as argument to the step. In fact I think resolving a var within a string is a not so good idea because we would have to quote the < and > chars.
For example:
* Create file in "<test_dir>\files\"
Shoule expand to "<test_dir>\files\" when passed as argument to step. As explained at the beginning I'd suggest to use whitespace to separate arguments.
For example:
* The name of the victim is "Mr. John" "Doe"
* The name of the victim is "Mr. John" Doe
Should expand to two arguments Mr. John and Doe. But
* The name of the treating doctor is "Dr. "Dolittle
* The name of the treating doctor is "Dr. Dolittle"
should expand to only one argument Dr. Dolittle

Gauge won't be implementing this to keep the spec format simple.


Display column Y (notes) in detailed results.

This is the "transcriber's note column" - This was not intended to be shown, but more and more is put in Y that is of interest to researchers.

As noted in story 757 we have no such field
I am totally lost @PatReynolds we have no such fields as Y and W in individuals. The available fields are
field :sequence_in_household, type: Integer
field :individual_flag, type: String
field :surname, type: String
field :forenames, type: String
field :name_flag, type: String
field :relationship, type: String
field :marital_status, type: String
field :sex, type: String
field :age, type: String
field :age_unit, type: String
field :detail_flag, type: String
field :occupation, type: String
field :occupation_flag, type: String
field :birth_county, type: String
field :birth_place, type: String
field :verbatim_birth_county, type: String
field :verbatim_birth_place, type: String
field :birth_place_flag, type: String
field :disability, type: String
field :language, type: String
field :notes, type: String

Field Y is field :notes, type: String


docs: fixed typo in Update Interpretability - Explanation Dashboard.md

Related Issues/PRs
#1555

What changes are proposed in this pull request?
changed of model.transform to self.model.transform
How is this patch tested?

[x] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[x] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[x] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/versioned_docs/version-0.9.5/features/responsible_ai/Interpretability - Explanation Dashboard.md
74
100
80
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx

Acrolinx Scorecards
A minimum Acrolinx score of 80 is required.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology.

Article
Acrolinxscore
Word andPhrases Score
CorrectnessScore
Scorecard
Processed

website/versioned_docs/version-0.9.5/features/responsible_ai/Interpretability - Explanation Dashboard.md
74
100
80
link
:white_check_mark:

More information about Acrolinx

Install Acrolinx locally for VSCode
False positives or issues
Troubleshooting issues with Acrolinx


Unittest run all tests is extremely slow

Environment data

VS Code version: 1.60.0
Extension version (available under the Extensions sidebar): v2021.9.1191016588
OS and version: Windows 10.0.19041
Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.5 64-bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: unittest of python 3.9.5
Value of the python.languageServer setting:  Pylance v2021.9.0

Expected behaviour
When the Test: Run All Tests routine is started, either from the Command Palette or the testing sidebar, the tests should be finished in the same amount of time as running the python -m unittest command.
Actual behaviour
When the Test: Run All Tests routine is started, either from the Command Palette or the testing sidebar, it takes much longer as running the python -m unittest command. Running my particular test suite takes 1.2s while running the tests using the vscode extension takes at least several seconds. From the logs I cannot find a duration of running the tests from the extension. It is also difficult to time the tests since I'm experiencing also the #17282 bug.
From the log output I can see that running the tests from the extension triggers each test individually, so that the unittest module needs to be started for every test. This is probably what makes the execution much slower. See the Logs section below for the log output.
Steps to reproduce:

Create a test suite that consists of multiple tests.
Run the test suite using the python -m unittest command and note the time spent.
Run the tests from the tests sidebar or Test: Run All Tests routine
Compare duration of test execution

Logs

Output for Python Test Log in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python Test Log)

test_xxxx (test_xxxx.xx) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
test_xxxxxxx (test_xxxx.xxx) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
test_xxx (test_xxx.xxx) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

I want to add to the above that previously (before v1.60.0) the tests were running equally fast for both methods of running the tests. Also, the Python Test Log output showed that all tests were run in one go using the unittest module.

I tested the new build, which improves the speed by a bit. Now tests are performed per test python file. This could be still improved by testing the whole suite (all test files) at once.


Delayed global allocations

Hi @onqtam,
On one of my target platforms, I get crashes in doctest because of the global allocations. What would you think about changing them to dynamically allocate when used instead? This change fixes the problem for me:
diff --git a/doctest/doctest.h b/doctest/doctest.h
index c158b5b..835dde8 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3332,7 +3332,7 @@ namespace {
 } // namespace

 namespace detail {
-    DOCTEST_THREAD_LOCAL class
+    class Oss
     {
         std::vector<std::streampos> stack;
         std::stringstream           ss;
@@ -3353,14 +3353,18 @@ namespace detail {
             ss.rdbuf()->pubseekpos(pos, std::ios::in | std::ios::out);
             return String(ss, sz);
         }
-    } g_oss;
+    };
+    DOCTEST_THREAD_LOCAL std::unique_ptr<Oss> g_oss;

     std::ostream* tlssPush() {
-        return g_oss.push();
+        if(!g_oss) {
+            g_oss.reset(new Oss());
+        }
+        return g_oss->push();
     }

     String tlssPop() {
-        return g_oss.pop();
+        return g_oss->pop();
     }

 #ifndef DOCTEST_CONFIG_DISABLE
@@ -4575,10 +4579,13 @@ namespace detail {
             getExceptionTranslators().push_back(et);
     }

-    DOCTEST_THREAD_LOCAL std::vector<IContextScope*> g_infoContexts; // for logging with INFO()
+    DOCTEST_THREAD_LOCAL std::unique_ptr<std::vector<IContextScope*>> g_infoContexts; // for logging with INFO()

     ContextScopeBase::ContextScopeBase() {
-        g_infoContexts.push_back(this);
+        if(!g_infoContexts) {
+            g_infoContexts.reset(new std::vector<IContextScope*>());
+        }
+        g_infoContexts->push_back(this);
     }

     ContextScopeBase::ContextScopeBase(ContextScopeBase&& other) noexcept {
@@ -4586,7 +4593,7 @@ namespace detail {
             other.destroy();
         }
         other.need_to_destroy = false;
-        g_infoContexts.push_back(this);
+        g_infoContexts->push_back(this);
     }

     DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4996) // std::uncaught_exception is deprecated in C++17
@@ -4606,7 +4613,7 @@ namespace detail {
             this->stringify(&s);
             g_cs->stringifiedContexts.push_back(s.str().c_str());
         }
-        g_infoContexts.pop_back();
+        g_infoContexts->pop_back();
     }

     DOCTEST_CLANG_SUPPRESS_WARNING_POP
@@ -7042,9 +7049,9 @@ DOCTEST_MSVC_SUPPRESS_WARNING_POP

 DOCTEST_DEFINE_INTERFACE(IReporter)

-int IReporter::get_num_active_contexts() { return detail::g_infoContexts.size(); }
+int IReporter::get_num_active_contexts() { return detail::g_infoContexts->size(); }
 const IContextScope* const* IReporter::get_active_contexts() {
-    return get_num_active_contexts() ? &detail::g_infoContexts[0] : nullptr;
+    return get_num_active_contexts() ? (&(*detail::g_infoContexts)[0]) : nullptr;
 }

 int IReporter::get_num_stringified_contexts() { return detail::g_cs->stringifiedContexts.size(); }

Thanks,
Benbuck

Can you give a minimal standalone doctest example that crashes ?

It is better to have a config based switch because someone would just need static allocation instead of unique_ptr

Hi @navinp0304,
That's a good idea. What about something like this then?
Thanks,
Benbuck
diff.patch

@bnason-nf I think we need more info about your system. We cant add a feature for an unknown and untestable system.

Hi @cdeln, I don't remember a lot of the details at this point, but it was on UWP, so it should be testable.

@bnason-nf  Thanks for the info. As I see it, unless we can repro this in the CI there is no chance it will be maintainable.
Would you/your company like to set up CI for UWP for this project?
Could you also supply a link to the reference for heap usage / global initialization on UWP please? It sounds... flaky, to say the least, that the heap it uninitialized on program startup. But I have no experience with this platform so that is just for me to learn.

Hi @cdeln, I completely understand your point about maintainability. Unfortunately I've moved onto other things since originally posting this, so don't really have time to look it it any more. I would just point out that this part of my older comment seems pretty important: "in general we the order of global initializers is not defined". Having doctest rely on order of global initialization on any platform is a problem, and it seems likely that it's only through luck that it works on any device. So it's not that UWP (Microsoft Universal Windows Platform) is misbehaving, it's that it's exposing a problem in doctest.

I'm no expert, but I wouldn't think doctest would always qualify as a single translation unit since it is not typically compiled by itself. So if it's included in multiple source files in the project that uses it, that would end up being multiple translation units, right?

Nope, only in the TU that implements main.
This is controlled by the preprocessor, in non-main TUs most is ifdefed away.
All other translation units only have access to declarations and not definitions, just like when you include any API header.

I'm having a hard time seeing how main() is relevant? In our project we didn't use doctest in the TU that implemented main().

Re-reading my original description jogged something, I think the problem in that case was for debugging, we had overridden the global heap with our own, which also used a global constructor to initialize itself. Since the order of global constructors in this case isn't deterministic, doctest happened to go first, and then when it allocated memory it was trying to use a heap that hadn't been constructed yet.
In any case, I think this patch is still good for these reasons:

It makes the doctest initialization order explicit, without relying on global constructor order, which is generally a good practice.
I expect that it should work fine on every platform.
Because it's common code, it will get test coverage on every platform.

However, it's not a big deal if you decide not to take the change, we already made this change locally for all of our platforms that use doctest.

Interesting! Now we are getting closer to the core of the problem :) I want to try to reverse engineer your setup, I'll probe your mind with some examples and maybe we can work out together.
Hearing this information, I suspect that you did one of the following things

Wrote your own kernel code.
Wrote your own assembly code
Used non-standard C/C++ APIs for memory allocation
Used some UWP specific memory allocation APIs
Or you did something using standard C/C++

Assuming you did any of 1-4, then we are a bit out of luck (but I am still interested to learn!).
Let us assume you did 5) To simplify things, imagine TUs, one alloc.cpp with the heap implementation (I call it arena here), and another TU (which happens to be the TU with main to simplify things) that performs some global init with dynamic memory.  It supports dynamic memory up to 1KB with up to 100 individual allocations.
arena.cpp
#include <new>
#include <cstdlib>

#define ARENA_SIZE 1000
#define MAX_BLOCKS 100

unsigned char *arena = (unsigned char *)malloc(ARENA_SIZE);
size_t *block_sizes = (size_t *)malloc(MAX_BLOCKS);
size_t block_offset = 0;
size_t arena_offset = 0;

void *operator new(size_t n)
{
    void *memory = arena + arena_offset;
    *block_sizes = n;
    block_offset += 1;
    arena_offset += n;
    if (block_offset > MAX_BLOCKS) {
        throw std::bad_alloc();
    }
    if (arena_offset > ARENA_SIZE) {
        throw std::bad_alloc();
    }
    return memory;
}

void operator delete(void *)
{
    if (block_offset == 0) {
        return;
    }
    block_offset -= 1;
    size_t block_size = block_sizes[block_offset];
    arena_offset -= block_size;
}

main.cpp
#include <vector>

std::vector<int> g_xs(13);

int main() {
    std::vector<int> xs(13);
    std::vector<int> ys(37);
}

This example segfaults for me. It works fine without the global variable.
Do you remember if you did something like this?
BTW, if memory allocation were to be deferred to after global init phase, where would you put it? I don't see the actual init in your patch. I am also not convinced that just because the global variable types have members that will perform dynamic memory allocation, defining a variable of that type does not necessarily allocate any memory at global init time.

It was something this, plus some other glue code and whatnot:
//_Ret_notnull_ _Success_(return != NULL) _Post_writable_byte_size_(_Size) _VCRT_ALLOCATOR void * __CRTDECL operator
// new(size_t _Size) _THROW1(_STD bad_alloc)
_Ret_notnull_ _Post_writable_byte_size_(_Size)

_VCRT_ALLOCATOR void * __CRTDECL operator new(size_t _Size)
{
    return heapMalloc(_Size);
}

_Ret_maybenull_ _Success_(return != NULL) _Post_writable_byte_size_(_Size) _VCRT_ALLOCATOR void * __CRTDECL operator new(
    size_t _Size,
    const _STD nothrow_t &) _THROW0()
{
    return heapMalloc(_Size);
}

//_Ret_notnull_ _Success_(return != NULL) _Post_writable_byte_size_(_Size) _VCRT_ALLOCATOR void * __CRTDECL operator
// new[](size_t _Size) _THROW1(_STD bad_alloc)
_Ret_notnull_ _Post_writable_byte_size_(_Size)

_VCRT_ALLOCATOR void * __CRTDECL operator new[](size_t _Size)
{
    return heapMalloc(_Size);
}

_Ret_maybenull_ _Success_(return != NULL) _Post_writable_byte_size_(_Size) _VCRT_ALLOCATOR void * __CRTDECL operator new[](
    size_t _Size,
    const _STD nothrow_t &) _THROW0()
{
    return heapMalloc(_Size);
}

void __CRTDECL operator delete(void * _Block) _THROW0()
{
    heapFree(_Block);
}

void __CRTDECL operator delete(void * _Block, const _STD nothrow_t &) _THROW0()
{
    heapFree(_Block);
}

void __CRTDECL operator delete[](void * _Block) _THROW0()
{
    heapFree(_Block);
}

void __CRTDECL operator delete[](void * _Block, const _STD nothrow_t &) _THROW0()
{
    heapFree(_Block);
}

So yes I think your example probably is a good simple approximation.
If I understand your question about where the allocations move to, I think if you look for ".reset(new" in the patch, that's probably what you're looking for?

Ah now I see, lazy init in the ctors there.
Regarding your example code, how are heapMalloc and heapFree defined? So far I can see nothing wrong with those operator overloads.
I updated your comment to do C++ syntax highlighting.

The heapMalloc and family of functions are just wrappers around the dlmalloc allocator implementation. So it's probably not that interesting, except of course the heap does have to be initialized before almost anything else, so controlling the order of that global initialization is critical.
Anyway, I think your simplified test that reproduces the crash is probably a very good approximation of the problem.


Dispose LoggerFactoryAdapter

Which is the recommended was to dispose the resources of a LoggerFactoryAdapter ? The ILoggerFactoryAdapter does not define any Dispose() or Close() methods.

Typically Dispose(), Close(), IDisposable, and so on are necessary only when a managed object has unmanaged resources which need to be explicitly released (either for performance reasons or because the garbage collector is unable to properly free unmanaged resources when the it determines the managed object is no longer in scope/use).  This is why you see such approaches used with e.g., database connection wrappers.
Typically, ILoggerFactoryAdapter implementations don't fall into this category, and so the garbage collector is (typically) able to properly release their resources when these object go out of scope.  Are you seeing either a memory leak or undue memory pressure from uncollected ILoggerFactoryAdapter objects using a memory profiler or other such tools in your use-case?

For instance we have some special logger adapters which log over network (tcp/ip or wcf), and need a "gracious" way to close them (and the established network connections) when the application that uses it is shutting down.

Ok, that makes sense.
If this is in connection with your own custom ILoggerFactoryAdapter, would it be feasible for your own implementation to simply implement IDisposable as well (and for you to do your cleanup inside the Dispose() method when its called by the finalizer)?

This is probably what I will have to do, but this is not a very elegant solution, as the application can choose between several logger factory adapters which one to use. Some of them will be disposable, and some not (that means that the application will have to check if the logger factory adapter is disposable or not).

TBH this doesn't seem that inelegant to me (testing whether its safe to call a method before calling it).  Its really just a single line of code (a brief if statement) in whatever is responsible for managing the ILoggerFactoryAdapter instances in your architecture:
//somewhere earlier:
ILoggerFactoryAdapter adapter;

//when ready to release:
if (adapter is IDisposable)
    adapter.Dispose();

Unfortunately, as there wasn't an expectation that ILoggerFactoryAdapter implementations would take a dependency on unmanaged resources, there's no other viable alternative unless we were to add IDisposable to the ILoggerFactoryAdapter interface (a breaking change for existing clients).
Hope this helps, and sorry there's no viable alternative we can offer you here.  I'm going close this issue for now; feel free to re-open it should you discover that the recommended approach is insufficient for your needs.

Sorry, that won't (quite) work; it needs to be...
//somewhere earlier:
ILoggerFactoryAdapter adapter;

//when ready to release:
var disposableCandidate = adapter as IDisposable;

if (disposableCandidate != null)
    disposableCandidate.Dispose();

That's what I get for using a textbox as my IDE late at night when I should really be asleep already :)
Not quite a one-liner, but still not that inelegant!


[Feature Request] Support mistral-community/pixtral-12b-240910

Required prerequisites

[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

Motivation
https://huggingface.co/mistral-community/pixtral-12b-240910
Solution
No response
Alternatives
No response
Additional context
No response

We can add some examples telling users how to call it from ollama/vllm


Added social media buttons to home page

I added social media icons and links on the home page: Facebook, Twitter, YouTube, Microsoft forum (Is that last one right?)
I used this library for the icons: https://fontawesome.com/
The icons are just hanging out in a div at the top of the sidebar. There's probably a better place to put them?

Alt-text added, packages installed, and angular.json updated


Possible To Use As A Website Background?

Is it possible to use this code as a background/backdrop for a website?

sure you can use it

is there anything special I need to do in order to do so? or do I just add any of my website code into the index.html?

I think you'd have to delete analytics code (every ga function calls) and you could also delete gui if you want, just remove  startGUI function. You also need to have canvas tag in index.html

I made an Wallpaper Engine version of this project: https://github.com/Delivator/WebGL-Fluid-Simulation

I made ES module version of this project:
import WebglFluid from 'webgl-fluid'

WebglFluid(document.querySelector('canvas'))