add com.janeluo.ikkanalyzer dependency to example model

When I run the code in the example to learn the database, I find that the class org/wltea/analyzer/core/IKSegmenter cannot be found. The scope of this class in the module core is provided, and the module example depends on the module core.

Yep, because it's under the GPL license which is not compatible with Apache License 2.0, so we have to set the scope to 'provided' and let users to download & config it by themselves
But we do lack the doc to tell the users (so as the mysql dependency - refer https://github.com/apache/incubator-hugegraph/issues/2175#issuecomment-1479049715) , could add some doc & comments in the config template

Yep, because it's under the GPL license which is not compatible with Apache License 2.0, so we have to set the scope to provided and let users to download & config it by themselves 😿
But we do lack the doc to tell the users (so as the mysql dependency - refer #2175 (comment)) , could add some doc & comments in the config template together
And maybe the example should also remove the dependency? @zyxxoo @javeme (also we should enhance the doc for example for new users/devs to start

Is it possible to provide a readme in the module example, explaining the dependencies

Is it possible to provide a readme in the module example, explaining the dependencies

Yep, should add the doc/comments in these spaces:

refer a doc link in the README.md for users to know this ⚠
add the details in the doc repo to tell users how to config the dependence (linke ikka/mysql)
add the comment in config template to remind users to view doc link configuration (could also add the comment in the relative code 👨🏻💻)

Same question, hi, @imbajin

Yep, because it's under the GPL license which is not compatible with Apache License 2.0, so we have to set the scope to provided and let users to download & config it by themselves 😿

The ik tokenizer we used seems to be this one: https://mvnrepository.com/artifact/com.janeluo/ikanalyzer/2012_u6 rather than https://github.com/blueshen/ik-analyzer
<dependency>
    <groupId>com.janeluo</groupId>
    <artifactId>ikanalyzer</artifactId>
    <version>${ikanalyzer.version}</version>
</dependency>

The license from mvn website, does it meet the requirements?

Also this one works fine by install local repository.

Same question, hi, @imbajin

Yep, because it's under the GPL license which is not compatible with Apache License 2.0, so we have to set the scope to provided and let users to download & config it by themselves 😿

The ik tokenizer we used seems to be this one: mvnrepository.com/artifact/com.janeluo/ikanalyzer/2012_u6 rather than blueshen/ik-analyzer
https://github.com/apache/incubator-hugegraph/blob/f23c648937c8c4601a9f721d688eabfec7a8cfb3/hugegraph-core/pom.xml#L198-L203
The license from mvn website, does it meet the requirements?

Also this one works fine by installing in local repository.

Thanks for the reminder
@javeme @zyxxoo Is it possible to adopt other options?  Consider replacing it

I think the ikanalyzer license is Apache compatible, but not sure the reason we removed ikanalyzer from https://github.com/apache/incubator-hugegraph/pull/2100

OK, It seems that we can now use this dependency.

OK, It seems that we can now use this dependency. @KeeProMise @liuxiaocs7

I think that since ikanalyzer can be used in the core module, it can also be used in the example module.

OK, It seems that we can now use this dependency. @KeeProMise @liuxiaocs7

I think that since ikanalyzer can be used in the core module, it can also be used in the example module.

yep, just fix the dependence check (refer here, then we could merge it back)

And we could also add the dependence doc in the PR template or Wiki? (for others to know it)

com.janeluo.ikkanalyze、lucene-queries-4.7.2.jar、lucene-queryparser-4.7.2.jar 、lucene-sandbox-4.7.2.jar is Apache 2.0, so I added the above-mentioned third-party dependencies in the known-dependencies.txt file, and added com.janeluo.ikkanalyze to the core module

Hi @KeeProMise ,
If we want to add a new third-party dependency we need to do the following things:

Find the third-party dependency repository, and put the dependency license file in [./hugegraph-dist/release-docs/licenses/](https://github.com/apache/incubator-hugegraph/tree/master/hugegraph -dist/release-docs/licenses) path.
Declare the dependency in ./hugegraph-dist/release-docs/LICENSE LICENSE information.
Find the NOTICE file in the repository and append it to [./hugegraph-dist/release-docs/NOTICE](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-dist/release-docs /NOTICE) (skip this step if there is no NOTICE file).
Execute script ./hugegraph-dist/scripts/dependency/regenerate_known_dependencies.sh to update dependency list known-dependencies.txt (or manually update).

The third-party dependency does not have a NOTICE file, so I took these three steps:

Find the third party dependency repository, and put the dependency license file in ./huggegraph-dist/release docs/licenses/ path

Declare the dependency in /Hugegraph-dist/release-docs/License License information

Execute script /Hugegraph-dist/scripts/dependency/regenerate_ Known_ Dependencies. sh to update dependency list knowledge dependencies. txt


Support some notion of "WIP"

Authors should be able to mark a PR as WIP and the bot shouldn't assign reviewers until the PR is out of the WIP state. I think we can reuse the existing "do not merge yet" label for this purpose.

WIP: work in progress

Remember that only people with write access can set labels, but that's probably good enough in this case.

This works after https://github.com/web-platform-tests/wpt-pr-bot/issues/69 was resolved.


Error messages not clear enough

Describe the problem
When using the flag --data-file to input answers, there may be a validation error. Since normally, the error would be raised directly after answering, it is clear which questions was at fault. But with the data file, the error raised does not contain the question name or the choice in case of using choices. Therefore it is hard to find the wrong value in the data-file.
Template
preset:
  type: str
  help: Which config preset do you want to use?
  choices:
    - IIoT
    - GPU
  default: IIoT

config_mode:
  type: str
  help: Which config mode do you want to use?
  choices:
    Basic: basic
    Advanced: advanced
  default: basic

box_environment:
  when: "{{config_mode == 'advanced'}}"
  type: str
  help: In which environment will the box run?
  choices:
    Production: prod
    Development: dev
  default: prod
  validator: "{% if config_mode != 'advanced' %}Requires advanced config mode{% endif %}"

To Reproduce
When using the following values.yaml:
preset: IIoT
config_mode: basic
box_environment: dev

and the command copier copy <src> <dst> --data-file values.yaml you would get the following error:
Traceback (most recent call last):
  File "/home/henning/.local/bin/copier", line 8, in <module>
    sys.exit(copier_app_run())
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/plumbum/cli/application.py", line 638, in run
    inst, retcode = subapp.run(argv, exit=False)
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/plumbum/cli/application.py", line 633, in run
    retcode = inst.main(*tailargs)
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/cli.py", line 72, in handle_exceptions
    return method(*args, **kwargs)
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/cli.py", line 265, in main
    with self._worker(
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/main.py", line 205, in __exit__
    raise value
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/cli.py", line 272, in main
    worker.run_copy()
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/main.py", line 744, in run_copy
    self._ask()
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/main.py", line 443, in _ask
    question.validate_answer(answer)
  File "/home/henning/.local/pipx/venvs/copier-dist/lib/python3.10/site-packages/copier/user_data.py", line 411, in validate_answer
    raise ValidationError(message=err_msg)
prompt_toolkit.validation.ValidationError: Requires advanced config mode

With this message, it isn't clear which question was answered wrong
Logs
No response
Expected behavior
Include nessessory names: question, choice or whatever is the most helpful.
What would be really nice, to validate similar to pydantic, where all validation errors are listed, but that would probably be too much, since it would only be useful when using --data-file
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
22.04
Copier version
9.1.0
Python version
3.10
Installation method
pipx+git
Additional context
No response

Hi, is there any update on this issue?

Yes, I would get to work on it. I just wanted to confirm.
Thank you.


FIX: record_ids fields

add RecordId object
add Transport enum
rewrite README.md for record_id
add type StrOrRecord
add backward compartibility for all methods with string for record_id
simplify UPSERT
connections now store transport, database and table shows it on str()
add tests
add examples
refactoring

#60


Migrate to Jason and Hackney

Depends on #44.

I would like to work on this one! 😄

Please go ahead!


2024 update?

Simply bumping appears to be enough, it seems to work fine so far on 2024.1. Greatly appreciate the plugin by the way, thank you for creating and maintaining it! :)
diff --git a/gradle.properties b/gradle.properties
index eadc4f9..ab75f55 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -8,7 +8,7 @@ pluginVersion = 0.7.0

 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
 pluginSinceBuild = 221
-pluginUntilBuild = 233.*
+pluginUntilBuild = 241.*

 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension
 platformType = IC

Oops, this has been on my to-do list for a while now, but been real busy. Thanks for pointing this out and apologies for getting behind the stable release. Will roll this out asap.


I believe that i have everything right, but it keeps saying that my bottom and left paddings aren't correct. I think there's a bug here.

.


Update microsoft-teams-rooms-premium.md

MTR-P was made Global Available on the 4/1, updated countries available

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@dstrome PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Closing this and will submit a new PR from the private repo with a "worldwide availability" statement


feature.sh does not generate .pkl or .tfrec file from T1019s2.seq

Hi,
I ran feature.sh with T1019s2.seq as input. It generated the files as follows:

But there wasn't T1019s2.pkl or T1019s2.tfrec.
Can you tell me how to correctly generate those files?
Thank you!

Hi,
I have the same issue on my own sequence. After plmDCA and the last python feature.py -s $TARGET_SEQ -f, no pkl nor tfrec file is generated.

Hi,
I have the same problem and output files. I don't understand if I need to merge these files and convert them to .npy (if this is the answer, I don't know what will happen to the text in the files). Probably, I suspect that this is our mistake. It seems that the code has been intended to produce only these files, and that is it. So is another step necessary? Do we need to copy the text from each file and paste it into another larger file or something? Is the code incomplete? I couldn't understand if the author of this code wrote it like this because he thinks it's obvious what to do next (something I don't see) if there is an explanation for this in the original alpha folding code (an element I don't see either), because he doesn't understand what do after these calculation steps to produce the final features or if we don't see something. In any case, I would be very congratulations if someone could help us. Perhaps with the help of the author, we can be helpful to each other.

I got it !! I added a line to the beginning of the feature.sh
OUTPUT = "${TARGET_DIR}/${TARGET} _out"
then replace line 20 and 30 with
python feature_2.py -s $TARGET_SEQ -f -o $OUTPUT
With this you get the final numpy that you can use as the network input, If you want it as tfrec or as pkl, just convert this file.

After a deeply study of the code i believe the line 164 of feature.py has to be change for a "continue", like this:
else:
aln, aln_id = read_aln(fas_file)
aln = aln[:, aln[0] != '-']
write_aln(aln, aln_id, aln_file)
continue
the "exit" produce problems and beacuse of this, in some cases, the code doesen't save a npy

After a deeply study of the code i believe the line 164 of feature.py has to be change for a "continue", like this:
else:
aln, aln_id = read_aln(fas_file)
aln = aln[:, aln[0] != '-']
write_aln(aln, aln_id, aln_file)
continue
the "exit" produce problems and beacuse of this, in some cases, the code doesen't save a npy

I have the same issue, and I can't figure it out yet. The things that nicolasfredesfranco said didn't work :(

I have the same issue, and I can't figure it out yet. The things that nicolasfredesfranco said didn't work :(

@nicolasfredesfranco  How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

@nicolasfredesfranco How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

You don't need the tfrec file, you can use the .npy, just rename the extension to .pkl to not change anything in the code and that's it.

@nicolasfredesfranco How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

You don't need the tfrec file, you can use the .npy, just rename the extension to .pkl to not change anything in the code and that's it.

So the generated feature file (as .npy) I can use it directly as an input of the original alpha-fold CASP-13  by just changing the extension to .pkl?

@nicolasfredesfranco How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

You don't need the tfrec file, you can use the .npy, just rename the extension to .pkl to not change anything in the code and that's it.

So the generated feature file (as .npy) I can use it directly as an input of the original alpha-fold CASP-13 by just changing the extension to .pkl?

Yeah, at least for me worked well, and then with the .rr file that you will get from the alphafold.sh script, you can getthe structure using 3DFuzz, a web server for structure prediction

@nicolasfredesfranco How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

You don't need the tfrec file, you can use the .npy, just rename the extension to .pkl to not change anything in the code and that's it.

So the generated feature file (as .npy) I can use it directly as an input of the original alpha-fold CASP-13 by just changing the extension to .pkl?

Yeah, at least for me worked well, and then with the .rr file that you will get from the alphafold.sh script, you can getthe structure using 3DFuzz, a web server for structure prediction

Thank you for your reply. What I wanted actually the generated feature from this project and use that https://github.com/deepmind/deepmind-research/tree/master/alphafold_casp13 in this project as the input. That's why I needed the .tfrec I guess

@nicolasfredesfranco How can I convert a .npy file to tfrec? I want to use the generated feature file with the alphafold-implementation. Thus I need to convert it to tfrec

You don't need the tfrec file, you can use the .npy, just rename the extension to .pkl to not change anything in the code and that's it.

So the generated feature file (as .npy) I can use it directly as an input of the original alpha-fold CASP-13 by just changing the extension to .pkl?

Yeah, at least for me worked well, and then with the .rr file that you will get from the alphafold.sh script, you can getthe structure using 3DFuzz, a web server for structure prediction

Thank you for your reply. What I wanted actually the generated feature from this project and use that https://github.com/deepmind/deepmind-research/tree/master/alphafold_casp13 in this project as the input. That's why I needed the .tfrec I guess

The problem with that project is that you can use it only for the structures used in CASP13, so I don't know how to work with it (I didn't try for that limitation)

@nicolasfredesfranco when running the alphafold.py script did you to change the input channels that was specific to your input data.
I have generated the .npy file, but when running alphafold.py I am getting the following error:
RuntimeError: Given groups=1, weight of size [240, 1878, 3, 3], expected input[1, 1880, 64, 64] to have 1878 channels, but got 1880 channels instead
I am not too familiar with Pytorch so I am not sure how to resolve it, do you have any suggestions?

I got it !! I added a line to the beginning of the feature.sh OUTPUT = "${TARGET_DIR}/${TARGET} _out" then replace line 20 and 30 with python feature.py -s $TARGET_SEQ -f -o $OUTPUT With this you get the final numpy that you can use as the network input, If you want it as tfrec or as pkl, just convert this file.

@nicolasfredesfranco  Hi, were you able to make pkl files for different proteins? I am currently implementing this model in Unity but I need some additional example pkl files. Do you have any pkl files for some small proteins that you would be prepared to share? Thanks!


Way to disable a predefined searches.

New to this plugin, and from customizations.md found two predefined searches:

@copycat_hash_search (default M-h) SHA-1 hash search
@copycat_ip_search (default M-i) IP address search

But I use prefix M-h to select left pane, is there a way to just disable @copycat_hash_search, and then let my binding works?
Or I have to set @copycat_hash_search to other binding not M-h.

Or I have to set @copycat_hash_search to other binding not M-h.

Yes, I think this should do the trick.

Or I have to set @copycat_hash_search to other binding not M-h.

Yes, I think this should do the trick.

So no setting to cancel/forbid that bind directly right now?

Hi, I've ask help with tmux member about this. What I want is use tmux hooks to make this, specificaly use session-created, it not work as copycat may bind key after create session.

You will need to ask the plugin developers how it works, I don't know, but if session-created works with a different key binding then it must be changing it after the session is created.

https://github.com/tmux/tmux/issues/2282


Extending a Gooey app

I'm considering Gooey for a few upcoming projects. It's a great way to get up and running, but I'm wondering whether I will hit a wall when I want to e.g. add a preview window during processing, or allow processing in stages, or really anything else that requires actually fiddling with wx code. Is there a way to take the GUI created by Gooey and modify/extend it?
Thanks for a great project!

Howdy!
Hmm.. no. Not really. There isn't a super good jumping off point for taking what Gooey builds and running with it. The processing in stages thing (if you mean the next input depends on the previous output) could prooobably be ham-fisted in with vanilla Gooey via the experimental Dynamic Values stuff. Or you could fork Gooey and use the entire thing as a jumping off point, but then you'd be subject to my terrible code ^_^

@chriskiehl that was a bit abrupt but fair enough! :joy:
Rather than forking I think I might just pick and choose useful bits of it. Suppose I want to make a decorator to a function that generates a pop-up GUI to pass parameters to the function. Where do you recommend I start in your code base? I specifically like your two-column layout and the header banner. Here's my only attempt at a GUI prior to this:
https://jni.github.io/skan/gui.html
Gets the job done, but it's not a pretty as what you do. =)


Space below Foundation on the reference page.

Actual Behaviour
An unnecessary h3 present below Foundation on the reference page.

Expected Behaviour
No space
Screenshots of the issue

Would you like to work on the issue?
Yes

You can go ahead with this fix. Thanks!

@limzykenneth I'm sorry but I'm unable to find the HTML linked with these reference elements. Is all of this being done with a js file. Please let me know!

You'll probably need to edit the reference here, possibly adding a submodule with the same name as the module, then have a preview after building it out there.

@limzykenneth Thanks! I will look into the file.

I no longer see this issue, I believe it's been resolved.


fix Optimize the logic for match_phrase function filter to avoid occasional core

Proposed changes
Optimize the logic for match_phrase function filter to avoid occasional core
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 50.81 seconds
stream load tsv:          502 seconds loaded<PHONE_NUMBER>9 Bytes, about 142 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size:<PHONE_NUMBER>4 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230711212718_clickbench_pr_176591.html

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.28 seconds
stream load tsv:          514 seconds loaded<PHONE_NUMBER>9 Bytes, about 138 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size:<PHONE_NUMBER>1 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230711212719_clickbench_pr_176586.html

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.52 seconds
stream load tsv:          450 seconds loaded<PHONE_NUMBER>9 Bytes, about 158 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          56 seconds loaded<PHONE_NUMBER> Bytes, about 18 MB/s
stream load parquet:          28 seconds loaded 861443392 Bytes, about 29 MB/s
insert into select:          26.4 seconds inserted 10000000 Rows, about 378K ops/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230711153829_clickbench_pr_176584.html

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.74 seconds
stream load tsv:          509 seconds loaded<PHONE_NUMBER>9 Bytes, about 140 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>2 Bytes


Sets base and home layer paths group-writable

Summary
Sets base and home layer paths group-writable to support running as non-default user with the Jammy stack
Fixes #238
Use Cases

Checklist

[ ] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[ ] I have reviewed the styleguide for guidance on my code quality.
[ ] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

Going with #248


Invalid hook call.

example/src/index.js was added to a freshly created reactjs app, resulting in the following:
"Invalid hook call. Hooks can only be called inside of the body of a function component"
https://reactjs.org/docs/error-decoder.html/?invariant=321
Uncaught Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
  at D (react.production.min.js:19:1)
  at exports.useState (react.production.min.js:25:1)
  at n (useIpfs.js:9:1)
  at l (OrbitProvider.js:9:1)
  at renderWithHooks (react-dom.development.js:16305:1)
  at mountIndeterminateComponent (react-dom.development.js:20074:1)
  at beginWork (react-dom.development.js:21587:1)
  at beginWork$1 (react-dom.development.js:27426:1)
  at performUnitOfWork (react-dom.development.js:26557:1)
  at workLoopSync (react-dom.development.js:26466:1)

"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-orbitdb": "^1.0.3",

P.S. great work.

Does this problem still occur with orbitdb v1? Also, I'm not aware of react-orbitdb. Closing for now but please re-open if your problems persist.


I need opencv-python-headless wheel with gstreamer set ON

Expected behaviour
I want to study gstreamer in python,
So I need opencv-python-headless wheel with gstreamer set ON
Who can send me one?

OpenCV team does not plan to release wheels with GStreamer support, but you can build it from source code by yourself. See OpenCV tutorial for details: https://docs.opencv.org/master/da/df6/tutorial_py_table_of_contents_setup.html

@stu-github build it yourself, use this snippet in ubuntu 20 image.
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev -y
sudo apt-get install build-essential cmake pkg-config -y
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer1.0-dev -y
sudo python3 -m pip install ninja
python3 -m pip install numpy

git clone https://github.com/opencv/opencv-python
cd opencv-python/
git checkout 56 #opencv 4.5.3
export CMAKE_ARGS="-DOPENCV_ENABLE_NONFREE=ON"
export ENABLE_CONTRIB=1
export ENABLE_HEADLESS=1

pip3 wheel . --verbose


Remove version: PeterBienstman.Mnemosyne version 2.11

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: Package still available.;


[fftwpp] Update to latest commit

Fixed a tab/space mix as well

Hi @Outurnate, can you please correct the Version field in the CONTROL file?

Pushed new commit with updated version string


[ASTPrinter] Remove the whitespace before colon.

[ASTPrinter] Remove the white space before colon. rdar://26633558
ASTPrinter used to print inheritance, conformances clauses with a colon that
either sides contain a whitespace, i.e. " : ". This differs from the styles
in docs and code examples. This patch fixes the style.

Resolved bug number: (SR-)

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test

Very good! Thanks! 👍


Query strings need trimming at the start

The code blocks for the query stringshave a space at the first character, so using the copy results in an error in Search Explorer:

"The request is invalid. Details: The parameter ' search' in the request payload is not a valid parameter for the operation 'search'."

Removing the space gives the expected result. Ideally the portal would TrimStart the query string, but is there a way to generate the static web page without the space at the start?
Affects:

Lab01

Search the Index

Lab02

Search the Index (pre-custom skill)
Search the Index (post-custom skill)

Great labs by the way!

This should now be fixed, thanks for reporting!


Unable to add multiple documents to an envelope.

Hello,
I am unable to add documents to an envelope.
Example:
Byte[] file1 = File.ReadAllBytes(documentPath);
Byte[] file2 = File.ReadAllBytes(documentPath);
envelope.AddDocument(file1,"File1.docx",1);
envelope.AddDocument(file2, "File2.docx",2);
I can only add a single document when I use the Create method.
Example:
result = envelope.Create(documentPath);
Note: I am using the example code you provided via GitHub to connect to DocuSign.

@GeekInterface
there are 4 overloads for Create(). One of the allow you to specific a list of documents. did you try it?

you can also do this in 2 calls like below, but note you haven't yet created the envelope, you can call Create() without any arguments just to create an empty one and then add each one like you did in your code snippet and it would work as well

@InbarGazit , Thanks for such a quick response. I did not expect that.
Here is what I am seeing.
When I call the following statement prior to adding documents as you suggested the method returns false, and I get the following error code "INVALID_CONTENT_TYPE".
result = envelope.Create();
// result is false prior to me adding documents.
        Byte[] file1 = File.ReadAllBytes(documentPath);
        Byte[] file2 = File.ReadAllBytes(documentPath);
        envelope.AddDocument(file1, "File1.docx", 1);
        envelope.AddDocument(file2, "File2.docx", 2);

In addition, when I use the overloaded method, the method still returns false, and I get this error "UNABLE_TO_LOAD_DOCUMENT".
        Byte[] file1 = File.ReadAllBytes(documentPath);
        Byte[] file2 = File.ReadAllBytes(documentPath);

        List<Byte[]> files = new List<byte[]>();
        files.Add(file1);
        files.Add(file2);

        List<string> fileNames = new List<string>();
        fileNames.Add("File 1");
        fileNames.Add("File 2");

        result = envelope.Create(files, fileNames);
        // result is false.

If this helps, I am using VS2013 on a windows 8.1 machine. In addition, I also used NuGet to get your package.
I look forward to hearing from you.

@GeekInterface , just so we can isolate the issue, can you try either a .doc, .pdf or even just a text file and see if result changes?

@GeekInterface , one other things. I don't see anywhere in your code that you assign the Envelope.Login property to a valid account object. I assume you had this elsewhere, but just checking. If you can provide full code of your example - I can try to debug it here

see examples in the unit tests that are part of the code

Here is the full function. I basically tweaked your example code.
//==========================================================================================
// *** Walkthrough #4 - Request Signature on Document
//==========================================================================================
private void SignatureRequestOnDocument()
{
//*****************************************************************
// ENTER VALUES FOR FOLLOWING VARIABLES!
//*****************************************************************
string AccountEmail = "xxxxxx";
string AccountPassword = "xxxxx";
string RecipientEmail = "xxxx";
string RecipientName = "xxxx";
string documentPath = @"C:\Users\xxxxx\Documents\testdoc.docx";
//*****************************************************************
        // user credentials
        Account account = new Account();
        account.Email = AccountEmail;
        account.Password = AccountPassword;

        // make the login call (retrieves your baseUrl and accountId)
        bool result = account.Login();
        if (!result)
        {
            Console.WriteLine("Login API call failed for user {0}.\nError Code:  {1}\nMessage:  {2}", account.Email, account.RestError.errorCode, account.RestError.message);
            return;
        }

        // create envelope object and assign login info
        Envelope envelope = new Envelope();
        envelope.Login = account;

        // add one signer to the envelope
        envelope.Recipients = new Recipients()
        {
            signers = new Signer[]
            {
                new Signer()
                {
                    email = RecipientEmail,
                    name = RecipientName,
                    routingOrder = "1",
                    recipientId = "1"
                }
            }
        };

        // send the envelope immediately (otherwise set to "created" to save as draft envelope)
        envelope.Status = "sent";

        // email subject is required
        envelope.EmailSubject = "DocuSign .NET Client - Signature Request on Document";

        // create envelope and send the signature request (since status is set to "sent")

        Byte[] file1 = File.ReadAllBytes(documentPath);
        Byte[] file2 = File.ReadAllBytes(documentPath);

        List<Byte[]> files = new List<byte[]>();
        files.Add(file1);
        files.Add(file2);

        List<string> fileNames = new List<string>();
        fileNames.Add("File 1");
        fileNames.Add("File 2");

        result = envelope.Create(files, fileNames);

        if (!result)
        {
            if (envelope.RestError != null)
            {
                Console.WriteLine("Error code:  {0}\nMessage:  {1}", envelope.RestError.errorCode, envelope.RestError.message);
                return;
            }
            else
            {
                Console.WriteLine("Error encountered while requesting signature from template, please review your envelope and recipient data.");
                return;
            }
        }
        else
        {
            Console.WriteLine("Signature request has been sent to {0}, envelopeId is {1}.", envelope.Recipients.signers[0].email, envelope.EnvelopeId);
        }
    }

I will try a pdf and a text file now.

Based on my tests, we can currently only add multiple PDFs to an envelope. When I tried Text files, I got the same issues as I did when I tried .docx files.

ok, here is the deal, there's a property on the Envelope class called MimeType. This is needed in order to have different other than pdf
you can find mime types in this link:
http://webdesign.about.com/od/multimedia/a/mime-types-by-file-extension.htm
note if you add 2 files that are not the same, better do it in 2 different calls and set the mime type between calls. We can probably improve this interface in later versions....

@GeekInterface , I also wanted to personally invite you to our very first developer conference to be held this coming March in San Francisco. this is exactly the opportunity to meet me and other developers in DocuSign and talk shop. And the cost is very low. See all the information here http://momentum.docusign.com/san-francisco/dev-con/?mc=devcon-github

Hey, would you mind if I write a helper class for this to simplify some of the functionality? I can post it on GitHub when I am done.

Hey, thanks for inviting me. It sounds very interesting, but it is a bit far from me. I live in Nashville,TN.
How many people do you have signed up already?

I wouldn't mind at all, and you can post it here and we'll take a look and merge it in if it looks ok.
Also, let me know if you got it to work with the .docx files using the mimeType

Closing this issue, please let me know if you still need assistance.

@GeekInterface ,we're looking for a developer who is using the library to share their experience in the coming conference (I know it's a short notice, it's 2 weeks from now). We can give you a free conference ticket if you can present. Is that something you might be interested in?

I have the same issue when trying to create an envelope with .docx document. pdf works just fine, but .docx not. I'm using EnvelopeDefinition object like in this Request a signature via email sample and I didn't find any mime-type on EnvelopeDefinition object.
Can you please help?

Ok, got it. May be helpful for someone:
This is NOT CORRECT:
Document doc = new Document();
doc.DocumentBase64 = System.Convert.ToBase64String(fileBytes);
doc.Name = "Test.docx";

This is CORRECT:
Document doc = new Document();
doc.DocumentBase64 = System.Convert.ToBase64String(fileBytes);
doc.FileExtension = "docx";
doc.Name = "Test";

I think you need either update documentation (because this is not clear, that you need to provide an extension separatly) or update a code to extract extension automatically. I'm using nuget 2.0.1 version.


Thanks

Not an issue, but a thanks.
While experienced in developing software, the area of web development is completely new to me.
I found meteor and have been going through the tutorials. I’m excited to tinker with it. I feel finding this template will really help me get up to speed fast knowing how to structure my project and make it look decent during its development (I’m no front end guy).
Thanks again!
P.S. I guess I have one quick question...  does your approach favor Blaze or React or is it completely abstracted from either top layer?

Thanks for the kind words.  If you're new to Meteor, you might find my four module series on Meteor (plus one on Mongo) that I use in my software engineering class to be of interest:
http://courses.ics.hawaii.edu/ics314f17/modules/
My approach uses Blaze.  I believe Blaze is much easier to learn than React and better suited to my pedagogy.  React has better modularity than Blaze and complex sharing of state between components is definitely easier. So they both have strengths and weaknesses.


Additional test tags to support SQLite adapter.

cc @fishcakez per our discussion earlier today

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:


Support dns_alt_names in migration process

Nick points out the current migration script make an assumption about --certdnsnames working.
The scripts need to be updated to look for a dns_alt_names configuration setting and use that if it's present.
My plan to tackle this is simply to parse puppet master --configprint all | grep dns_alt_names and use the option if that test succeeds.

Zach pointed out we're still using puppet cert generate --certdnsnames in step5.  I'm going to fix this now.


IS6. Forum of a message, does not terminate

Query IS 6 from the LDBC SNB Interactive workload does not terminate due to the replyOf edge. This edge is supposed to find the original post of a comment, which can be 0 or more steps from any message.
The Post node in this case is inherited from the Message node. It could be that this table is too large for the number of shortest paths to calculate. The SQL:1999 way would be to traverse the ParentMessageId until this value is NULL, in which case you have found the post. We do path-finding to all other Message nodes, only one of which is not NULL (the parent Post).

-FROM GRAPH_TABLE (snb_projected
    MATCH o = ANY SHORTEST (message:Message WHERE message.id =<PHONE_NUMBER>552)-[r:replyOf_Post]-> *(p:Post)<-[c:containerOf]-(forum:Forum)-[hm:hasModerator]->(moderator:Person)
    COLUMNS (forum.id, forum.title, moderator.id, moderator.firstName, moderator.lastName)
    ) tmp;

Seems not to be a concern in release mode, debug mode is very slow.
Likely due to a BLOCKWISE_NL_JOIN
is6-analyze.txt


Report: Local Stats game by game for week

Show the center games scoreboard for the current week.

Currently available in the summary page of the stats report


Debug port sometimes ignored

I work with a multi-root workspace with one Azure Functions projects (mp_frontend) and one Azure Durable Functions project (mp_backend). I start both azure function hosts manually with the > Run Task palette command, instead of using F5. To run them concurrently, in project mp_backend I changed the ports of the http listener and debug server from the default 7071 to 7072, and the default 9091 to 9092 respectively. This mostly works.
However, from time to time the debug task of project mp_backend fails to start with error RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted. Whenever this happens, I triple-check that the ports 7072 and 9092 are not in use and I can confirm that they are not in use.

The error seems to be caused during the language worker startup and I assume that the Azure Functions extensions has troubles picking up the remote debug listen port (which is set to 9092 for project mp_backend) and so the language worker is trying to start on 9091, which is already used by the other project mp_frontend.

Task logs
*  Executing task in folder mp_backend: .venv\Scripts\python -m pip install -r requirements.txt

Requirement already satisfied: azure-functions in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 5)) (1.15.0)
Requirement already satisfied: azure-functions-durable in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 6)) (1.2.4)
Requirement already satisfied: httpx in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 7)) (0.24.1)
Requirement already satisfied: pydantic[email] in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 8)) (2.1.1)
Requirement already satisfied: azure-identity in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 9)) (1.14.0)
Requirement already satisfied: msgraph-sdk in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from -r requirements.txt (line 10)) (1.0.0a14)
Requirement already satisfied: aiohttp>=3.6.2 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-functions-durable->-r requirements.txt (line 6)) (3.8.5)
Requirement already satisfied: requests==2.* in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-functions-durable->-r requirements.txt (line 6)) (2.31.0)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-functions-durable->-r requirements.txt (line 6)) (2.8.2)
Requirement already satisfied: furl>=2.1.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-functions-durable->-r requirements.txt (line 6)) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from requests==2.*->azure-functions-durable->-r requirements.txt (line 6)) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from requests==2.*->azure-functions-durable->-r requirements.txt (line 6)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from requests==2.*->azure-functions-durable->-r requirements.txt (line 6)) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from requests==2.*->azure-functions-durable->-r requirements.txt (line 6)) (2023.7.22)
Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from httpx->-r requirements.txt (line 7)) (0.17.3)
Requirement already satisfied: sniffio in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages
(from httpx->-r requirements.txt (line 7)) (1.3.0)
Requirement already satisfied: annotated-types>=0.4.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from pydantic[email]->-r requirements.txt (line 8)) (0.5.0)
Requirement already satisfied: pydantic-core==2.4.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from pydantic[email]->-r requirements.txt (line 8)) (2.4.0)
Requirement already satisfied: typing-extensions>=4.6.1 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from pydantic[email]->-r requirements.txt (line 8)) (4.7.1)
Requirement already satisfied: email-validator>=2.0.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from pydantic[email]->-r requirements.txt (line 8)) (2.0.0.post2)
Requirement already satisfied: azure-core<2.0.0,>=1.11.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-identity->-r requirements.txt (line 9)) (1.29.2)
Requirement already satisfied: cryptography>=2.5 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-identity->-r requirements.txt (line 9)) (41.0.3)
Requirement already satisfied: msal<2.0.0,>=1.20.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-identity->-r requirements.txt (line 9)) (1.23.0)
Requirement already satisfied: msal-extensions<2.0.0,>=0.3.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-identity->-r requirements.txt (line 9)) (1.0.0)
Requirement already satisfied: microsoft-kiota-abstractions<0.8,>=0.7 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (0.7.1)
Requirement already satisfied: microsoft-kiota-authentication-azure>=0.2 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (0.2.0)
Requirement already satisfied: microsoft-kiota-serialization-json<0.5,>=0.4 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (0.4.0)
Requirement already satisfied: microsoft-kiota-serialization-text>=0.2.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (0.2.1)
Requirement already satisfied: microsoft-kiota-http<0.6,>=0.5 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (0.5.0)
Requirement already satisfied: msgraph-core>=1.0.0a2 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msgraph-sdk->-r requirements.txt (line 10)) (1.0.0a4)
Requirement already satisfied: attrs>=17.3.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (23.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from aiohttp>=3.6.2->azure-functions-durable->-r requirements.txt (line 6)) (1.3.1)
Requirement already satisfied: six>=1.11.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from azure-core<2.0.0,>=1.11.0->azure-identity->-r requirements.txt (line 9)) (1.16.0)
Requirement already satisfied: cffi>=1.12 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from cryptography>=2.5->azure-identity->-r requirements.txt (line 9)) (1.15.1)
Requirement already satisfied: dnspython>=2.0.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from email-validator>=2.0.0->pydantic[email]->-r requirements.txt (line 8)) (2.4.1)
Requirement already satisfied: orderedmultidict>=1.0.1 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from furl>=2.1.0->azure-functions-durable->-r requirements.txt (line 6)) (1.0.1)
Requirement already satisfied: h11<0.15,>=0.13 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 7)) (0.14.0)
Requirement already satisfied: anyio<5.0,>=3.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 7)) (3.7.1)
Requirement already satisfied: uritemplate>=4.1.1 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from microsoft-kiota-abstractions<0.8,>=0.7->msgraph-sdk->-r requirements.txt (line 10)) (4.1.1)
Requirement already satisfied: PyJWT[crypto]<3,>=1.0.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msal<2.0.0,>=1.20.0->azure-identity->-r requirements.txt (line 9)) (2.8.0)
Requirement already satisfied: portalocker<3,>=1.6 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from msal-extensions<2.0.0,>=0.3.0->azure-identity->-r requirements.txt (line 9)) (2.7.0)
Requirement already satisfied: exceptiongroup in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx->-r requirements.txt (line 7)) (1.1.2)
Requirement already satisfied: pycparser in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from cffi>=1.12->cryptography>=2.5->azure-identity->-r requirements.txt (line 9)) (2.21)
Requirement already satisfied: h2<5,>=3 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from httpx->-r requirements.txt (line 7)) (4.1.0)
Requirement already satisfied: pywin32>=226 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from portalocker<3,>=1.6->msal-extensions<2.0.0,>=0.3.0->azure-identity->-r requirements.txt (line 9)) (306)
Requirement already satisfied: hyperframe<7,>=6.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from h2<5,>=3->httpx->-r requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: hpack<5,>=4.0 in c:\users\niccodan\source\repos\multipass\mp_backend\.venv\lib\site-packages (from h2<5,>=3->httpx->-r requirements.txt (line 7)) (4.0.0)
*  Terminal will be reused by tasks, press any key to close it.

*  Executing task in folder mp_backend: .venv\Scripts\activate ; func host start

Found Python version 3.10.11 (py).

Azure Functions Core Tools
Core Tools Version:       4.0.5198 Commit hash: N/A  (64-bit)
Function Runtime Version: <IP_ADDRESS>67

[2023-08-21T09:15:49.836Z] Language Worker Process exited. Pid=15036.
[2023-08-21T09:15:49.839Z] py exited with code 1 (0x1).     log.reraise_exception("{0}() failed:", func.__name__, level="info"),    raise RuntimeError(str(endpoints["error"])),RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
[2023-08-21T09:16:49.148Z] Starting worker process failed
[2023-08-21T09:16:49.150Z] Microsoft.Azure.WebJobs.Script.Grpc: The operation has timed out.
[2023-08-21T09:16:49.152Z] Failed to start language worker process for runtime: (null). workerId:61ccc680-7f3b-4af3-a289-89661b7cfac6
[2023-08-21T09:16:49.155Z] Removing errored webhost language worker channel for runtime: python workerId:61ccc680-7f3b-4af3-a289-89661b7cfac6
[2023-08-21T09:16:49.156Z] Microsoft.Azure.WebJobs.Script.Grpc: The operation has timed out.
[2023-08-21T09:16:50.131Z] Traceback (most recent call last):
[2023-08-21T09:16:50.134Z]   File "C:\Users\niccodan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
[2023-08-21T09:16:50.136Z]     return _run_code(code, main_globals, None,
[2023-08-21T09:16:50.137Z]   File "C:\Users\niccodan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
[2023-08-21T09:16:50.138Z]     exec(code, run_globals)
[2023-08-21T09:16:50.139Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy\__main__.py", line 39, in <module>
[2023-08-21T09:16:50.140Z]     cli.main()
[2023-08-21T09:16:50.141Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 430, in main
[2023-08-21T09:16:50.142Z]     run()
[2023-08-21T09:16:50.142Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 268, in run_file
[2023-08-21T09:16:50.144Z]     start_debugging(target)
[2023-08-21T09:16:50.145Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 256, in start_debugging
[2023-08-21T09:16:50.146Z]     debugpy.listen(options.address)
[2023-08-21T09:16:50.147Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\public_api.py", line 31, in wrapper
[2023-08-21T09:16:50.149Z]     return wrapped(*args, **kwargs)
[2023-08-21T09:16:50.150Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 143, in debug
[2023-08-21T09:16:50.152Z]     log.reraise_exception("{0}() failed:", func.__name__, level="info")
[2023-08-21T09:16:50.153Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 141, in debug
[2023-08-21T09:16:50.154Z]     return func(address, settrace_kwargs, **kwargs)
[2023-08-21T09:16:50.156Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 262, in listen
[2023-08-21T09:16:50.157Z]     raise RuntimeError(str(endpoints["error"]))
[2023-08-21T09:16:50.159Z] RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
[2023-08-21T09:16:51.092Z] Traceback (most recent call last):
[2023-08-21T09:16:51.094Z]   File "C:\Users\niccodan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
[2023-08-21T09:16:51.096Z]     return _run_code(code, main_globals, None,
[2023-08-21T09:16:51.097Z]   File "C:\Users\niccodan\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
[2023-08-21T09:16:51.098Z]     exec(code, run_globals)
[2023-08-21T09:16:51.099Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy\__main__.py", line 39, in <module>
[2023-08-21T09:16:51.100Z]     cli.main()
[2023-08-21T09:16:51.101Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 430, in main
[2023-08-21T09:16:51.103Z]     run()
[2023-08-21T09:16:51.104Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 268, in run_file
[2023-08-21T09:16:51.105Z]     start_debugging(target)
[2023-08-21T09:16:51.106Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 256, in start_debugging
[2023-08-21T09:16:51.108Z]     debugpy.listen(options.address)
[2023-08-21T09:16:51.109Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\public_api.py", line 31, in wrapper
[2023-08-21T09:16:51.110Z]     return wrapped(*args, **kwargs)
[2023-08-21T09:16:51.111Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 143, in debug
[2023-08-21T09:16:51.112Z]     log.reraise_exception("{0}() failed:", func.__name__, level="info")
[2023-08-21T09:16:51.113Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 141, in debug
[2023-08-21T09:16:51.115Z]     return func(address, settrace_kwargs, **kwargs)
[2023-08-21T09:16:51.116Z]   File "c:\Users\niccodan\.vscode\extensions\ms-python.python-2023.14.0\pythonFiles\lib\python\debugpy/..\debugpy\server\api.py", line 262, in listen
[2023-08-21T09:16:51.117Z]     raise RuntimeError(str(endpoints["error"]))
[2023-08-21T09:16:51.119Z] RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
[2023-08-21T09:16:51.130Z] Language Worker Process exited. Pid=25812.
[2023-08-21T09:16:51.132Z] py exited with code 1 (0x1).     log.reraise_exception("{0}() failed:", func.__name__, level="info"),    raise RuntimeError(str(endpoints["error"])),RuntimeError: Can't listen for client connections: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
[2023-08-21T09:16:51.141Z] Exceeded language worker restart retry count for runtime:python. Shutting down and proactively recycling the Functions Host to recover
[2023-08-21T09:17:50.200Z] Starting worker process failed
[2023-08-21T09:17:50.203Z] Microsoft.Azure.WebJobs.Script.Grpc: The operation has timed out.
[2023-08-21T09:17:50.204Z] Failed to start language worker process for runtime: (null). workerId:71e7699e-68b7-4e1f-99c3-365ba2dc801f
[2023-08-21T09:17:50.592Z] A host error has occurred during startup operation '968eb9f7-e015-42d4-aabd-f857725546c1'.
[2023-08-21T09:17:50.594Z] Microsoft.Azure.WebJobs.Script: Object reference not set to an instance of an object.
[2023-08-21T09:17:50.602Z] Failed to stop host instance 'ca441de7-d7af-4cee-9f94-a930b7fed513'.
[2023-08-21T09:17:50.604Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.
Value cannot be null. (Parameter 'provider')
[2023-08-21T09:17:50.613Z] Host startup operation has been canceled

The tasks.json in both projects are identical and left unchanged.

PROJECT_ROOT\.vscode\tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "func",
      "label": "func: host start",
      "command": "host start",
      "problemMatcher": "$func-python-watch",
      "isBackground": true,
      "dependsOn": "pip install (functions)"
    },
    {
      "label": "pip install (functions)",
      "type": "shell",
      "osx": {
        "command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
      },
      "windows": {
        "command": "${config:azureFunctions.pythonVenv}\\Scripts\\python -m pip install -r requirements.txt"
      },
      "linux": {
        "command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
      },
      "problemMatcher": []
    }
  ]
}

The launch.json in both projects are identical and left unchanged, except for mp_backend\.vscode\launch.json where I changed port from 9091 to 9092.

mp_backend\.vscode\tasks.json
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Attach to Python Functions",
      "type": "python",
      "request": "attach",
      "port": 9092,
      "preLaunchTask": "func: host start"
    }
  ]
}

The local.settings.json in both projects are identical, except for mp_backend\local.settings.json where I changed the LocalHttpPort from 7071 to 7072.

mp_backend\local.settings.json
{
  "IsEncrypted": false,
  "Values": {
  "FUNCTIONS_WORKER_RUNTIME": "python",
  "AzureWebJobsStorage": "UseDevelopmentStorage=true",
  "AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
  "AZURE_TENANT_ID": "3817f61a-40c0-428b-8591-37b24bf6ceeb",
  "AZURE_CLIENT_ID": "da27fd11-a79b-4eb1-9d03-d92ccaa82fcb",
  "AZURE_CLIENT_SECRET": "UO98Q~iogInhqExbligFj8uEhu6k8bicHbqoBcz0"

  },
  "Host": {
  "LocalHttpPort": 7072
  }
}

Thank you for the detailed issue report. It's very odd that this happens inconsistently.
Can you provide the task logs for when it doesn't fail?
Does it still happen if you wait for the frontend task to finish completely before starting the backend task?
Also, from the task logs, the func host start command is failing. Does this reproduce without using tasks at all and instead running the func host start commands manually in each place? If so, the issue might be in Azure Functions Core Tools and not in the VS Code extension.

Hi @alexweininger,
after more troubleshooting I finally found the reason why this happens. I was trying to change the port the Azure Functions Python Language Worker debug server listens to. As a workaround, @vrdmr suggested that the vscode-azurefunctions extension does some behind-the-scenes magic to pass the target port from launch.json to the language worker debug server listener.
The reason I had so many issues is that due to the facts that I use a multi-root environment together with the project-related launch.json files. And I cannot use F5 to to start both debuggers at the same time. Once the first debugger is launched, I must use the command palette to 1) manually launch the func host via Tasks: Run Task and 2) manually attach the debugger to the debug server. And not starting the debugging via F5, or the Debug: Start Debugging palette command does not trigger this extensions behind-the-scenes magic.
I'm still waiting for the language worker team to document how to explicitly change the listen port on the debug server, to skip the magic altogether. But may it be a good idea to do the same magic, too, when the task is run explicitly? I would open a feature request, if that makes sense.

Ok, that makes sense @danielniccoli. We can certainly make some changes to improve and fix the experience here. In the meantime I'm going to create a project that mimics the structure of your project and try to come up with some workarounds. I'll try my best to get back to you with my findings soon.

I've filed an issue on VS Code that once fixed should allow users to launch multiple debug configurations without having to create unique pre launch tasks.
https://github.com/microsoft/vscode/issues/191949

@danielniccoli, a fix for https://github.com/microsoft/vscode/issues/191949 has been released in the latest VS Code insiders bulid 1.83.0-insider.
This should allow you to launch both debug configurations at the same time without having to manually run any tasks. Please let me know if this works for you. I have it working locally, I'd be glad to help get it working for you.

I don't use the insider and I trashed the multi-root repository, because it caused so many issues in so many different places. Multi-root support in VS Code and its extension is a buggy mess. So I won't be able to confirm and will close the issue. Many thanks for your time and contributions!


How to get the depth value from color frame?

I used some image processing method to get the position in the color frame by D435i camera. However, how could I get the depth value from that?
I have already checked the example rs-align and rs-align-advanced in IntelRealSense SDK, but I have no idea to find it.

@qoo4202w hello,
In case you are looking for a limited number of points then the rs2_project_color_pixel_to_depth_pixel API call should suffice #2948, #4241
In case you need to extract depth data for multiple features/regions in RGB frame then you you're correct to use rs-align.

Align the depth frame to color, as elaborated in the demo.
The resulted frameset will include the aligned_depth and the original RGB frames.
For each RGB pixel [i,j] the corresponding depth value would be available at the similar [i,j] index of the aligned_depth frame

@ev-mp
Thanks for your help. I know how to get depth position from the position of color frame now.
However, the points given by rs2_project_color_pixel_to_depth_pixel are strange.

In the image, the object is only about 30 cm from the camera, but the depth of point is shown as 1.671 meter. It seems straightly sensor the ceiling but not the object.
By the way, I already use the extrinsics and intrinsics parameter from "https://github.com/IntelRealSense/librealsense/wiki/API-How-To".

Hi @qoo4202w
I am not sure, but can you please check the parameters given to rs2_project_color_pixel_to_depth_pixel. I was doing a similar experiment in ROS, and I provided wrong pixel values. More specifically, I used the aligned depth image, but the pixels were interchanged. Below is the correct way-
auto depth = mDepthImage.at<unsigned short>(static_cast<int>(pixel_y), static_cast<int>(pixel_x));

Link here

Hi @qoo4202w,
Did @ravijo's answer solve your issue?
Thank you!

@qoo4202w,
Do you still need help with this question?

Hello @qoo4202w
I don't know if you are going to see this, but I have a question for you.
Could you be so kind as to help me, I am trying to do a similar thing as you did over here.
But I'm having some issue using rs2_project_color_pixel_to_depth_pixel and getting the  extrinsics and intrinsics parameters.
Could you maybe provide me with information or a piece of your code?
Sorry if it is all a bit basic what im asking, i am new to opencv and realsense an im trying to learn.

Hi @BarRae
I didn't figure out the question in using rs2_project_color_pixel_to_depth_pixel.
However, I solve my problem by using the example "/rs-align-advanced".
https://dev.intelrealsense.com/docs/rs-align-advanced
I modify the example code, and this is my code.
#include
#include <opencv2/opencv.hpp>
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h> //Including for frame change
double get_depth_scale(rs2::device dev);
bool profile_changed(const std::vectorrs2::stream_profile& current, const std::vectorrs2::stream_profile& prev);
int main() try
{
// Helper to colorize depth images
rs2::colorizer color_map;
// Create a pipeline to easily configure and start the camera
rs2::pipeline pipe;
rs2::config pipe_config;

//adjust resolution for pipelines
pipe_config.enable_stream(rs2_stream::RS2_STREAM_DEPTH, 640, 480, rs2_format::RS2_FORMAT_Z16, 30);
pipe_config.enable_stream(rs2_stream::RS2_STREAM_COLOR, 640, 480, rs2_format::RS2_FORMAT_BGR8, 30);
rs2::pipeline_profile profile = pipe.start(pipe_config);

//color stream align to depth stream
rs2_stream align_to = RS2_STREAM_COLOR;
rs2::align align(align_to);
double depth_scale = get_depth_scale(profile.get_device());

//initial all stream
rs2::frameset camera_framest = pipe.wait_for_frames();
rs2::frame color = camera_framest.get_color_frame();
rs2::frame depth = camera_framest.get_depth_frame().apply_filter(color_map);
rs2::depth_frame frame_d = camera_framest.get_depth_frame();
rs2::frameset processed = align.process(camera_framest);
rs2::frame aligned_depth_frame = processed.get_depth_frame().apply_filter(color_map);
rs2::depth_frame frame_aligned_d = processed.get_depth_frame();

//get all stream parameter
const int w_d = depth.as<rs2::video_frame>().get_width();
const int h_d = depth.as<rs2::video_frame>().get_height();
const int w_c = color.as<rs2::video_frame>().get_width();
const int h_c = color.as<rs2::video_frame>().get_height();
const int depth_w = aligned_depth_frame.as<rs2::video_frame>().get_width();
const int depth_h = aligned_depth_frame.as<rs2::video_frame>().get_height();

cv::Mat data_aligned_depth(cv::Size(depth_w, depth_h), CV_16UC1);

while (cv::waitKey(1) < 0)
{
	//get frame
	camera_framest = pipe.wait_for_frames();
	color = camera_framest.get_color_frame();
	depth = camera_framest.get_depth_frame().apply_filter(color_map);
	frame_d = camera_framest.get_depth_frame();

	if (profile_changed(pipe.get_active_profile().get_streams(), profile.get_streams()))
	{
		//If the profile was changed, update the align object, and also get the new device's depth scale
		profile = pipe.get_active_profile();
		align = rs2::align(align_to);
		depth_scale = get_depth_scale(profile.get_device());
	}

	processed = align.process(camera_framest);
	aligned_depth_frame = processed.get_depth_frame().apply_filter(color_map);

	frame_aligned_d = processed.get_depth_frame();

	//frame to MAT
	cv::Mat aligned_depth_image(cv::Size(depth_w, depth_h), CV_8UC3, (void*)aligned_depth_frame.get_data(), cv::Mat::AUTO_STEP);
	cv::Mat img_color(cv::Size(w_c, h_c), CV_8UC3, (void*)color.get_data(), cv::Mat::AUTO_STEP);

	//write aligned depth image
	int nr = data_aligned_depth.rows; // number of rows
	int nc = data_aligned_depth.cols * data_aligned_depth.channels(); // total number of elements per line
	for (int j = 0; j < nr; j++) {
		ushort* data = data_aligned_depth.ptr<ushort>(j);
		for (int i = 0; i < nc; i++) {
			//distance*1000 save into ushort(0-65535)
			data[i] = frame_aligned_d.get_distance(i, j) * 1000;
		}
	}

	cv::Mat data_aligned_depth_show(cv::Size(w_d, h_d), CV_8UC1);

	data_aligned_depth.convertTo(data_aligned_depth_show, CV_8UC1, 1, 0);

	cv::imshow("Aligned Depth Frame", aligned_depth_image);
	cv::imshow("Aligned Depth Frame data", data_aligned_depth_show);
	cv::imshow("window_color", img_color);
}

return EXIT_SUCCESS;

}
catch (const rs2::error & e)
{
std::cerr << "RealSense error calling " <<
e.get_failed_function() << "(" <<
e.get_failed_args() << "):\n    " <<
e.what() << std::endl;
return EXIT_FAILURE;
}
catch (const std::exception & e)
{
std::cerr << e.what() << std::endl;
return EXIT_FAILURE;
}
double get_depth_scale(rs2::device dev)
{
// Go over the device's sensors
for (rs2::sensor& sensor : dev.query_sensors())
{
// Check if the sensor if a depth sensor
if (rs2::depth_sensor dpt = sensor.asrs2::depth_sensor())
{
return dpt.get_depth_scale();
}
}
throw std::runtime_error("Device does not have a depth sensor");
}
bool profile_changed(const std::vectorrs2::stream_profile& current, const std::vectorrs2::stream_profile& prev)
{
for (auto&& sp : prev)
{
//If previous profile is in current (maybe just added another)
auto itr = std::find_if(std::begin(current), std::end(current), [&sp](const rs2::stream_profile& current_sp) { return sp.unique_id() == current_sp.unique_id(); });
if (itr == std::end(current)) //If it previous stream wasn't found in current
{
return true;
}
}
return false;
}


[Feature Request]:  Improve the SEO of the home page

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
The current SEO (Search Engine Optmization ) is 35 that is not good but i will try to increase it minimum by 15 .
It can be done by taking help from the internet doing lot of research and using semantics tags like  (Section , Main , Article ) etc .
Use Case
This helps the website to rank on the Search Engine
Benefits
No response
Add ScreenShots

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@Ayushmaanagarwal1211 Good Contribution, go ahead


Parse and display 'backlinks'

I want to provide a 'web' of notebooks, where you can have 'forward links' (regular links) and 'backlinks' - where you list all notebooks that link to this notebook.

Are indieweb webmentions still a thing protocol wise?

oooh, interesting. We should definitely find a way to use as much of these kinds of protocols we can.


(1.18.2) Banning an item doesn't prevent getting it from trading

https://user-images.githubusercontent.com/89796563/179367465-a46cc1b6-341c-460e-841c-447327d55358.mp4

@pitbox46 I have dabbled with this in 1.16.5 which also has the bug, I've been seeing if there might be an overall global way to check for ANY banned items going to the player's inventory and if any of the banned items to go into a players inventory ever then it removes it "poof".
I figured if we can listen to the whole inventory then we wouldn't have to make small patches to specific events. "Less code?"
Currently no successes to share due to a distraction from another project of mine.
If I get more around to this before you do, I'll make sure to share with you!

@X-Niter When I first made this mod, it was kinda a quick fix. I might look into rewriting some of it so it works better overall.

Jolly! I do think that how all things start? specific to a target goal and then it becomes much more. haha.
I'm onbaord with what you're saying, I'll keep tabs and take what you said into count when testing things out.

Resolved in latest patch.
@X-Niter I figured out I can't really rewrite the code in the ways I would like to. I'll probably just leave it mostly as is since it works at the moment.

Resolved in latest patch.
@X-Niter I figured out I can't really rewrite the code in the ways I would like to. I'll probably just leave it mostly as is since it works at the moment.

Roger that chief, I understand completely, I was actually semi somewhere with the idea, but was coming to a few uh... Mind road blocks could we call it? I'll move over into your discord though sense I found it. :) Msg me when ever you feel like it.


SW-5228 Move planting site validation to model classes

Currently, PlantingSiteImporter does two kinds of validation: checking that the
shapefiles are correctly formed (correct attribute names, etc.) and checking
that the maps in the shapefile obeys our constraints on planting sites.
Move the constraint checks to PlantingSiteModel and PlantingZoneModel so we
can validate planting site maps that aren't in the form of shapefiles. This is
a step toward unifying shapefile-based and API-based detailed planting site
creation and updating, though for now, the validation is still only done during
shapefile import.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1904  👈
#1903
#1902
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite

Merge activity

Apr 30, 2:15 PM EDT: @sgrimm started a stack merge that includes this pull request via Graphite.


Improve detection and scheduling of CIREs

Note: this is still WIP though nearly ready (I have a regression to fix).
New features come equipped with tests

also approved offline, merging


nvim queries: Conform to commonly used highlight names

This updates:

Query
Highlight name
Like in...

Punctuation :, ,
punctuation.special
TOML, Bash, JSON, ...

Key fields in tables/records
variable.member
Go, Zig, V, TOML

Returns ->
punctuation.special
Rust

Variable $
punctuation.special
Bash, Awk

Variable identifier
variable
Bash, Awk, Perl, Fish

Shebang
keyword.directive
Bash, Awk

Built-in types
type
Zig et al[^1]

Numbers
number
Zig, Rust, Python, TOML, Bash, ...

Arguments
variable.parameter
Bash[^2]

Redirect operator
operator
Bash, Fish

Redirect destination
variable.parameter
Bash

[^1]: Note that for built-in types, languages like Rust, Python, Go differentiates highlights of built-in types and other types (such as structs), but there are no other types in Nu, I'll leave this up to debate, IMO a generic type will suffice here.
[^2]: Perl, Fish and Awk all leave these unhighlighted.
Also adds highlights for documentation comments for functions and parameters.
I've tried to put newly introduced highlight queries into the correct groups in the file, let me know if there are any other prevailing styles I should follow!

I'm willing to give this a try. I like this idea for sure!! Thanks

How do you control which highlights.scm file nvim uses for a particular language?

How do you control which highlights.scm file nvim uses for a particular language?

If the Lua plugin in this repo is used, the file will be in queries/nu/ in the runtime. And nvim-treesitter will see the filetype, nu, then fetch queries/<nu>/ in the runtime. If there are multiple, precendence is determined in a similar manner to $PATH, as listed in set rtp?.

That's very helpful. Thanks

It looks like the highlighting is a bit off now. This is from the toolkit.nu file in the root of the nushell repo.
Before

After

@hedyhli wondering about your thoughts on this broken highlighting?

@hedyhli will you have an opportunity to look at this issue?


langchain[patch]: feat(Gradient LLM Integration): Add fine-tuned adapter inference support

Original Gradient PR focused on inference with Gradient's base models. This PR adds support for inference with your own fine-tuned adapters.
Resolves #3007

Thank you!


Access to TextMate scope schema definitions

Is it possible to somehow get access to https://github.com/microsoft/vscode/blob/master/src/vs/workbench/services/themes/common/colorThemeSchema.ts#L13 as a schema definitions for extension configurations?
I rather have a value map to existing scopes than weakly typed strings.

This worked!
{
    "$ref": "vscode://schemas/textmate-colors#/items/properties/scope"
}


Release request

Could you please release a new version of kubeaudit?

@dani-santos-code , @genevieveluyt could you help with the release?

Hi, @Ser87ch ! Thank you for the reminder and the request. We'll need to test it a bit more and see exactly what will break with the changes to add to the summary of the release (changelog). We'll be dropping support for whoever is using the old seccomp annotations. We'll keep you posted once we have an update, likely by the end of next week.

Thanks for the update.

@Ser87ch starting the release process now

A new release has been made. See: https://github.com/Shopify/kubeaudit/releases/tag/v0.21.0
thank you ever so much for you amazing contributions @Ser87ch !!! We really appreciate it!! 👏 👏 👏 👏


-1 returned by get0/1 failed to unify

Following code do not work correctly in Trealla:
:- initialization(main).

main :-
        see('foo.data'),
        get0(C),
        C =:= -1,
        (
                C = -1
        ->
                write(true)
        ;
                write(false)
        ),
        nl, halt.

Fix confirmed, thanks.


compile only the open file

Hello,
is it possible that only the opened file is compiled?
I write character sheets in a fork of this repo and whenever I run the command liveSass.command.oneTimeCompileSass it wants to compile all files in the repo.

Ok I found it myself, who can read is clearly at an advantage.
Sorry
liveSass.command.compileCurrentSass | Compile Current Sass File

Glad you found the setting 👍. I knew it would be a handy addition

Yes I have only switched to your fork and before there was not this option.
thank you for your work that you continue to development.


Full documentation site is not working

This page is not opening
https://amrdeveloper.github.io/treeview/

Hello @hammadbawara,
The website url is https://amrdeveloper.github.io/TreeView/ TreeView is upper case because it's match the repository name
Thanks,
Amr Hesham


Do not highlight on current line

It would be nice if highlighting with JanitorHighlightAll only appeard once you entered a new line.
I think this would make sense as it's really annoying to see a red highlight every time you press space or tab while typing.
Hope this is doable!
Thanks.

Thanks for your feedback!
Due to I'm busy in this month, I'll investigate that in next month!

After investigation for this issue, I tried to implement this. But, the method would make hisearch failed. So, I tend to not implement this feature for now.


feat/add_ecHumanGEM

Add manually curated Kcat for top used enzyme
Checkout master branch in GECKO once that its new release is ready

I have recently moved the auto-run flavour of ecModels from Jenkins to GitHub Actions via a self-hosted runner that has Matlab. Most of the GEMs fail because of various reasons, but I am trying to focus on ecHumanGEM first.
Is it safe to migrate all the changes in this PR over there? My intention is to resolve an error in enhanceGEM.


避免nil指针访问

这个 PR 实现什么功能/修复什么问题:
避免nil指针访问
是否需要 backport 到之前的 release 分支:

release/2.9.0
release/2.8.0
release/2.7.0
release/2.6.0

/cc @swordqiu @yousong

/cherrypick release/2.9.0

/cherrypick release/2.8.0

/cherrypick release/2.7.0

/cherrypick release/2.6.0

Codecov Report

Merging #660 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #660      +/-   ##
=========================================
+ Coverage    7.41%   7.43%   +0.01%
=========================================
  Files         346     346
  Lines       54863   54865       +2
=========================================
+ Hits         4070    4079       +9
+ Misses      50413   50408       -5
+ Partials      380     378       -2

Flag
Coverage Δ

#aFlag
7.43% <0%> (+0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/compute/models/guest_actions.go
0% <0%> (ø)
:arrow_up:

pkg/util/rbacutils/rabc.go
71.96% <0%> (+3.4%)
:arrow_up:

Continue to review full report at Codecov.

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

/lgtm
/approve


rust-rocksdb 0.15 fails to compile in dev container

rust-rocksdb 0.17 uses librocksdb-sys = { path = "librocksdb-sys", version = "6.20.3" } and it should fail to compile because of the old clang. The problem is this happens although the lol 0.7.2 depends on 0.15 which uses 6.11. Why does it try to use 6.20.3?
Sooner or later we will switch to newer rocksdb, maybe it is time to use newer CentOS that installs clang 3.9 by default.
error: failed to run custom build command for `librocksdb-sys v6.20.3`

Caused by:
  process didn't exit successfully: `/lol-root/target/release/build/librocksdb-sys-92df1d9f70841902/build-script-build` (exit code: 101)
  --- stderr
  rocksdb/include/rocksdb/c.h:45:9: warning: #pragma once in main file, err: false
  thread 'main' panicked at '`libclang` function not loaded: `clang_Type_getNumTemplateArguments`. This crate requires that `libclang` 3.9 or later be installed on your system. For more information on how to accomplish this, see here: https://rust-lang.github.io/rust-bindgen/requirements.html#installing-clang-39', /home/akira.hayakawa/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.2.0/src/lib.rs:1682:1
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `kvs v0.1.0 (/lol-root/kvs)`, intermediate artifacts can be found at `/lol-root/target`

Caused by:
  build failed
make: *** [install] Error 101
[akira.hayakawa@b1e3050de32e lol-root]$ clang -v
clang version 3.4.2 (tags/RELEASE_34/dot2-final)

cargo-tree says rocksdb 0.15 depends on -sys 6.20.3. How?
│   │   ├── rocksdb v0.15.0
│   │   │   ├── libc v0.2.99
│   │   │   └── librocksdb-sys v6.20.3
│   │   │       └── libc v0.2.99

I see. the semver https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-cratesio
[dependencies]
libc = "0.2"
librocksdb-sys = { path = "librocksdb-sys", version = "6.11.4" }

this is interpreted as ^6.11.4 as we see it in crate.io.

This is why it tries to use 6.20.3.

If instead we had specified the version string as ^1.0, cargo should update to 1.1 if it is the latest 1.y release, but not 2.0.


mapStackTrace fails to sourcemap my coffeescript files in Chrome

Background: I'm using sourcemapped-stacktrace with jasmine 2.3.4 as suggested by https://gist.github.com/guncha/f45ceef6d483c384290a.  After getting this set up, I was surprised to see that my coffeescript source lines - which are the ones I really care about - weren't being mapped at all.  I wrote a simple example jasmine test to illustrate.
Here's a sample stack trace where i reproduced the problem:
"Error: Expected 5 to equal 4.
    at stack (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27)
    at buildExpectationResult (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1176:20)
    at Spec.expectationResultFactory (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:467:24)
    at Spec.addExpectationResult (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:261:38)
    at Expectation.addExpectationResult (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:428:29)
    at Expectation.toEqual (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1143:18)
    at https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/tests/jasmine_tests/example-vflDEVHASH.js:5:24
    at Object.arguments.(anonymous function) (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine-promises-vflDEVHASH.js:71:47)
    at attemptAsync (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:32)
    at QueueRunner.run (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17)"

In particular, the line     at https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/tests/jasmine_tests/example-vflDEVHASH.js:5:24 should be sourcemapped to a line in /static/coffee/tests/jasmine_tests/example.coffee.  After debugging, I found that the regex chosen for Chrome (https://github.com/novocaine/sourcemapped-stacktrace/blob/d29fa9826311fd99183edd2cde302fe7809a5919/sourcemapped-stacktrace.js#L42) does not match this stack line.
example.coffee:
define [], ->
  describe "example", ->
    it "tries to test something", ->
      expect(5).toEqual(4)

This repros for essentially all coffeescript files I've tried.  It's worth noting, for those unfamiliar with coffeescript, that coffeescript tends to only use anonymous functions - not sure if that has something to do with it or not.

Hi,
Sorry to hear that it is not working for you.
The smst demo includes coffeescript: http://novocaine.github.io/sourcemapped-stacktrace-demo/public_html/smst.html
I'm not sure the regex itself is the problem, as this works for me:
x = "    at stack (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27)"
regex = /^ +at.+\((.*):([0-9]+):([0-9]+)/;
x.match(regex)
["    at stack (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27", "https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js", "1201", "27"]

Perhaps you could try to work out what is working correctly in the demo's coffeescript processing that isn't working for you?

That particular stack line - for the coffeescript file - has no parentheses
in it.  I don't know how chrome decides to format it's stacks, but that's
what it gave me.
I guess I should check what version of chrome I'm using.
On Sat, Jul 9, 2016, 1:18 AM James Salter<EMAIL_ADDRESS>wrote:

Hi,
Sorry to hear that it is not working for you.
The smst demo includes coffeescript:
http://novocaine.github.io/sourcemapped-stacktrace-demo/public_html/smst.html
I'm not sure the regex itself is the problem, as this works for me:
x = "    at stack (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27)"
regex = /^ +at.+((.*):([0-9]+):([0-9]+)/;
x.match(regex)
["    at stack (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27", "https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js", "1201", "27"]
Perhaps you could try to work out what is working correctly in the demo's
coffeescript processing that isn't working for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/novocaine/sourcemapped-stacktrace/issues/16#issuecomment-231522721,
or mute the thread
https://github.com/notifications/unsubscribe/ABBnd3P5__kg616tN8A-_e8kr3oC4x2Xks5qT1lpgaJpZM4JIi3p
.

That's just my copy paste from the text in your op which does have
parentheses
Is it possible the gist doesn't scrape the data correctly?
On Saturday, 9 July 2016, David Goldstein<EMAIL_ADDRESS>wrote:

That particular stack line - for the coffeescript file - has no parentheses
in it. I don't know how chrome decides to format it's stacks, but that's
what it gave me.
I guess I should check what version of chrome I'm using.
On Sat, Jul 9, 2016, 1:18 AM James Salter<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Hi,
Sorry to hear that it is not working for you.
The smst demo includes coffeescript:

http://novocaine.github.io/sourcemapped-stacktrace-demo/public_html/smst.html

I'm not sure the regex itself is the problem, as this works for me:
x = " at stack (
https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27
)"
regex = /^ +at.+((.*):([0-9]+):([0-9]+)/;
x.match(regex)
[" at stack (
https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1201:27",
"
https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js",
"1201", "27"]
Perhaps you could try to work out what is working correctly in the demo's
coffeescript processing that isn't working for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/novocaine/sourcemapped-stacktrace/issues/16#issuecomment-231522721
,
or mute the thread
<
https://github.com/notifications/unsubscribe/ABBnd3P5__kg616tN8A-_e8kr3oC4x2Xks5qT1lpgaJpZM4JIi3p
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/novocaine/sourcemapped-stacktrace/issues/16#issuecomment-231557040,
or mute the thread
https://github.com/notifications/unsubscribe/AADgIZyM0ZsvDQ2BhZiDdkOyLCfC1j2oks5qUBN-gaJpZM4JIi3p
.

oh I see, your problem is with
at https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/tests/jasmine_tests/example-vfl
DEVHASH.js:5:24

but the other lines are fine. Okay, I guess we need to adjust the line parser.

Right
On Sun, Jul 10, 2016, 9:33 AM James Salter<EMAIL_ADDRESS>wrote:

oh I see, your problem is with
at https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/tests/jasmine_tests/example-vfl
DEVHASH.js:5:24
but the other lines are fine. Okay, I guess we need to adjust the line
parser.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/novocaine/sourcemapped-stacktrace/issues/16#issuecomment-231597854,
or mute the thread
https://github.com/notifications/unsubscribe/ABBnd8nsCJy2xnUZKANsW9UT74pGLmLJks5qUR7ggaJpZM4JIi3p
.

Hey, sorry but I can't effectively fix this until you post the js source or the trace in firefox.

I actually didn't keep that original test case around, so here's a new one that should repro it:
/static/coffee/modules/example.test.coffee:
define [], ->
  describe "example", ->
    it "fails", ->
      foo.bar

compiles to /static/javascript/compiled/modules/example.test.js:
// Generated by CoffeeScript 1.10.0
(function() {
  define([], function() {
    return describe("example", function() {
      return it("fails", function() {
        return foo.bar;
      });
    });
  });

}).call(this);

//# sourceMappingURL=example.test.js.map

sourcemap /static/javascript/compiled/modules/example.test.js.map:
{
  "version": 3,
  "file": "example.test.js",
  "sourceRoot": "../../../coffee",
  "sources": [
    "modules/example.test.coffee"
  ],
  "names": [],
  "mappings": ";AAAA;EAAA,MAAA,CAAO,EAAP,EAAW,SAAA;WACT,QAAA,CAAS,SAAT,EAAoB,SAAA;aAClB,EAAA,CAAG,OAAH,EAAY,SAAA;eACV,GAAG,CAAC;MADM,CAAZ;IADkB,CAApB;EADS,CAAX;AAAA"
}```

When I run this under jasmine in Chrome, I get this stack trace:

"    ReferenceError: foo is not defined
at https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/modules/example.test.js:6:16
at Object.arguments.(anonymous function) (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine-promises-vflDEVHASH.js:71:47)
at attemptAsync (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:32)
at QueueRunner.run (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17)
at QueueRunner.execute (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1449:14)
at Spec.queueRunnerFactory (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:504:41)
at Spec.execute (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:283:14)
at Object.fn (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1934:30)
at attemptAsync (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:32)
at QueueRunner.run (https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17)"

And with Firefox I end up with a much longer stack trace with weirder issues:

@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/modules/example.test.js:6:9
patchFunction/obj[slot]/arguments[fnArgIndex]@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine-promises-vflDEVHASH.js:71:47
attemptAsync@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:17
QueueRunner.prototype.run@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17
QueueRunner.prototype.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1449:9
Env/queueRunnerFactory@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:504:13
Spec.prototype.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:283:1
executeNode/<.fn@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1934:25
attemptAsync@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:17
QueueRunner.prototype.run@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17
QueueRunner.prototype.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1449:9
Env/queueRunnerFactory@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:504:13
executeNode/<.fn@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1918:1
attemptAsync@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1501:17
QueueRunner.prototype.run@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1456:17
QueueRunner.prototype.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1449:9
Env/queueRunnerFactory@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:504:13
TreeProcessor/this.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:1808:1
Env/this.execute@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/jasmine-vflDEVHASH.js:547:13
window.onload@https://cf-servervm2.dev.corp.dropboxstatic.com/static/javascript/compiled/external/jasmine/boot-vflDEVHASH.js:58:9
... (code loading from requirejs down this way, omitted for brevity)

in both cases the first line is not properly handled.


Testing auto exclusion feature

This issue is used to test the auto exclusion workflow.

auto exclude test jdk_awt

The test is successful. Closing this issue.


Selection stay active while text is scolling

If you select a text and then type 'ls' the selection stays active and at the same place.

I think @rhansby is already looking into this.