Using the right name of the domain during the middleware provider's refresh

This fixes the name of the domain. Before, it used the name of the domain controller, now it parses the name of the domain from the feed id, where it's the second part after the '.' (dot)
feed_id ~ name-of-the-domain-controller.name-of-the-domain
Fixes #12356
@miq-bot add_label providers/hawkular, bug, euwe/yes

@mtho11 Could you please review?
@miq_bot assign @mtho11

@miq-bot assign @bronaghs

LGTM.

@Jiri-Kremser is there a BZ for this?

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1411332

Euwe backport details:
$ git log -1
commit aadb31955d8076658b4075b163b7ccd3cc71922e
Author: Chris Arcand<EMAIL_ADDRESS>Date:   Sun Nov 13 09:12:15 2016 -0500

    Merge pull request #12357 from Jiri-Kremser/12356

    Using the right name of the domain during the middleware provider's refresh
    (cherry picked from commit e950ef0e3fbe0c223bfa9dc6745b7d73ef9c20cb)

    https://bugzilla.redhat.com/show_bug.cgi?id=1411350


Ambiguous extension member access three or more should contain context messages

Even after https://github.com/dart-lang/sdk/issues/56269 was fixed if you have three or more extension types where two have the same name, you don't get the same details for where are the extensions defined.
Here is the CL for this https://dart-review.googlesource.com/c/sdk/+/396540

Fyi: @srawlins since you fixed the original issue.

Thanks for the follow up!


python3Packages.identify: 2.4.1 -> 2.4.2

Motivation for this change
Update to latest upstream release 2.4.2
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 153815 run on x86_64-linux 1

3 packages built:

pre-commit
python38Packages.identify
python39Packages.identify


2558: Upgrade to Xcode 16

Short description

This PR will hopefully upgrade Xcode on CircleCI. At the moment, I have only removed the workaround added in #2557 that was added because Mapbox and Xcode 15 weren't playing along. If I run this on my local Xcode 16, I can build the iOS app fine, and even open the Maps (thus fixing #2813), though I get a warning about a string ref named "source".
It would be cool if one or two more people can check on their Xcode 16 if this works, I'll then continue working on the actual upgrade.
Proposed changes

Side effects

Testing

Resolved issues

Fixes: #

Looks good so far with Xcode 16.0


Remove "storyName" from storybook files

Removed "storyName" from a few different storybook files, as this usage has been deprecated. As part of this work, I upgraded the files I touched to Storybook CSF3.
As part of this work, I have also upgraded Storybook.
Previews

Callout
Card
Footer
Hero banner
Main nav
Summary list

Checklist
Preflight

[x] Prefix the PR title with the slug of the package or component - e.g. accordion: Updated padding or docs: Updated header links
[x] Describe the changes clearly in the PR description
[x] Read and check your code before tagging someone for review

@nathsimpson no worries. I've made sure that wherever we were using storyName, that we're now using name (rather than deleting some instances).


Got some questions

Hello
I am very interested in this project
I have some questions
For starters, are there any links to a guide to getting it started?
Secondly, I would like to run this on the bladeRF, namely the fake radiation of some random signal from the DJI drone
That is, the point is that bladeRF would pretend to be some kind of DJI drone
I was interested in this project, because apparently it can be used to spoof signals on SDR
Waiting for an answer from you)

The logic in this repo doesn't know anything about the mechanism by which you go from digital to analog or vice versa.  There are known issues with the receive logic's ability to correct large frequency offsets caused by the cheaper SDRs.  Not sure if yours will fall into that category.
As for modulation, this code does allow for the generation of single bursts of DroneID.  I specifically did not make it crazy easy to use as it's not something I'm all that keen on giving the masses the ability to do.  But, have a look at the code in the repo and you'll probably be able to figure out how to create bursts.  From there it's up to the tools you have for your SDR as to how you get that burst on the air.
I also have no idea if the protocol has changed since this repo was created.  So I can't promise that it will work.  I do know that it worked when I wrote it.
Good luck!


writev only outputs first parameter on windows

Thanks for filing a bug report! Please fill out the TODOs below.
Test Case
https://github.com/expnkx/fast_io/blob/02cc01ceea5cba4a40e35dc4ae1fd64e68148e2d/include/fast_io_hosted/platforms/posix.h#L1512
#include<fast_io.h>

int main()
{
	print(fast_io::out(),"Hello World\n",fast_io::posix_clock_gettime(fast_io::posix_clock_id::realtime));
}

Expected Results
It should output all results.
Actual Results
It only outputs the first one
Versions and Environment
Wasmtime version or commit: main
Operating system: windows
Architecture: x86_64
Extra Info
-stdlib=libstdc++

As with POSIX writev, __wasi_fd_write may write fewer bytes than requested. It should return the number of bytes read, so that you can call it again with the unwritten portion of the buffer(s).

As with POSIX writev, __wasi_fd_write may write fewer bytes than requested. It should return the number of bytes read, so that you can call it again with the unwritten portion of the buffer(s).

The problem is that these approaches break the atomicity of syscalls. And it might in a situation it only writes zero-bytes example. Also it leads to binary bloat.
It requires a fix in wasmtime tbh.
https://github.com/expnkx/fast_io/blob/725695664091bc4e8fbb05df446aaad93642bbf5/include/fast_io_hosted/platforms/win32.h#L613
Here is my implementation on windows. Use LockFile to lock the file

What if part of the data could be written and then an error is returned? It would be incorrect to suggest that no data was written by returning an error. Returning only how many bytes werw actually written would still require the loop. The error could be EWOULDBLOCK for example which in case of async usage indicates that it will be possible in the future to write more data. In that case the application needs to know how many bytes were written and try again later. Moving thr write loop into the write/writev call also doesn't match the expectations of pretty much every unix application.

And it might in a situation it only writes zero-bytes example, the users have no idea how to deal with it.

I don't think that is possible. For read itbis possible though and indicates EOF.

And it might in a situation it only writes zero-bytes example, the users have no idea how to deal with it.

I don't think that is possible. For read itbis possible though and indicates EOF.

This is not readv or read. This is writev. It does not mean it is EOF.

The code bloat is a consequence of POSIX here; no implementation on a POSIX host can guarantee that it'll write all of all the buffers atomically without being interrupted. There has to be a loop somewhere, and if we follow POSIX, we can't put the loop in the WASI implementation because that would make it non-atomic.
WASI is working on some new I/O facilities which don't follow POSIX as closely, and when those are available we may have other options here. But right now, we have __wasi_fd_write and it does follow POSIX, and POSIX requires you to have a loop if you want all the buffers printed.

The code bloat is a consequence of POSIX here; no implementation on a POSIX host can guarantee that it'll write all of all the buffers atomically without being interrupted. There has to be a loop somewhere, and if we follow POSIX, we can't put the loop in the WASI implementation because that would make it non-atomic.
WASI is working on some new I/O facilities which don't follow POSIX as closely, and when those are available we may have other options here. But right now, we have __wasi_fd_write and it does follow POSIX, and POSIX requires you to have a loop if you want all the buffers printed.

this has nothing to do with the code works on Linux but not on windows. Windows can work as long as you lock the file.
It is absolutely the project's fault, not POSIX. POSIX never said you can provide a buggy implementation.

The implementation is not buggy on windows. It can behave in exactly the same way on linux too. You are just lucky that your the amount of text you are printing is smaller than the pipe buffer size (64k on linux) and that your terminal immediately empties the pipe as soon as data gets received. If you were to write more than 64k at once, you are guaranteed to only get a partial write and when your terminal is too slow, you may get a partial write. This is just the semantics of the write function as defined by POSIX.

And it might in a situation it only writes zero-bytes example

i also don't think this is possible - wasi-libc, wasmtime, and cap-std just pass the iovecs to Rust's stdlib. the default_write_vectored impl there selects the first nonempty iovec for writing. if write_vectored returns zero it's because the system returned zero; either the iovec selected for writing was zero-length (and all iovs were zero-length), or a non-empty vector was selected for writing and the OS itself wrote zero bytes.

And it might in a situation it only writes zero-bytes example

i also don't think this is possible - wasi-libc, wasmtime, and cap-std currently just pass the iovecs to Rust's stdlib. the default_write_vectored impl there selects the first nonempty iovec for writing. if write_vectored returns zero it's because the system returned zero; either the iovec selected for writing was zero-length (and all iovs were zero-length), or a non-empty vector was selected for writing and the OS itself wrote zero bytes.

wraps around rust's stdlib are not something that is supposed to work with wasm imo. WASI is to abstract OS interface, not to abstract language interface.

POSIX says "If write() is interrupted by a signal after it successfully writes some data, it shall return the number of bytes written". So even on Linux, where things may appear to work, they're not guaranteed to work in all cases. The system call could still be interrupted in some circumstances, and could perform an incomplete write in some circumstances. Consequently, Wasm code needs a loop if it wants all the buffers printed.
In theory, a __wasi_fd_write call could return zero. But this shouldn't be any different from it returning any other number less than the requested number. If the wasm code has a loop, the zero case isn't special.
WASI today is a synchronous API. It blocks. Many people are obviously interested in async I/O; various approaches are in development, but not available yet. So for now, it's a blocking API, and adding a loop around it doesn't introduce any new blocking.

POSIX says "If write() is interrupted by a signal after it successfully writes some data, it shall return the number of bytes written". So even on Linux, where things may appear to work, they're not guaranteed to work in all cases. The system call could still be interrupted in some circumstances, and could perform an incomplete write in some circumstances. Consequently, Wasm code needs a loop if it wants all the buffers printed.
In theory, a __wasi_fd_write call could return zero. But this shouldn't be any different from it returning any other number less than the requested number. If the wasm code has a loop, the zero case isn't special.
WASI today is a synchronous API. It blocks. Many people are obviously interested in async I/O; various approaches are in development, but not available yet. So for now, it's a blocking API, and adding a loop around it doesn't introduce any new blocking.

if the API keeps returning 0, you get a block.

if the API keeps returning 0, you get a block.

That is correct. The API itself can also block.


Uploading of files with names containing non-English characters is not supported

Sometimes when uploading files with names that contain non-English characters fails.
For example, uploading of file a "D:\2003.02.06 - (Открытый) Урок английского.jpg" fails and the server returns an HTML page

Error 400 (Bad Request)!!1

which eventually results in Newtonsoft.Json.JsonReaderException

Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

The reason for this is the HTTP standard that doesn't support non-ISO-8859-1 characters directly in an HTTP header. Thus characters should be encoded to be passed in the header.
Suggested fix: use HttpUtility.UrlPathEncode in GooglePhotosServiceBase.UploadMediaAsync:

headers.Add((X_Goog_Upload_File_Name, HttpUtility.UrlPathEncode(Path.GetFileName(path))));

Thanks for the alert+fix.
A little concerning that the docs for HttpUtility.UrlPathEncode say Do not use ...however it seems to work fine and I don't see any downside to implement this.
I hope to roll this fix out in the next couple of days as part of https://github.com/f2calv/CasCap.Apis.GooglePhotos/pull/112


draft-PR (1st Windows user)

Can open ZAP app on Windows system.
After clone original repo

npm install (in VSCode WSL)
npm run zap (in Powershell)
if meet tsc error, npm uninstall tsc, npm run zap again
If sqlite3 error pop out, npm uninstall sqlite3, npm install --save sqlite3, npm run zap again
Zap should work!

After open ZAP, npm run test, failed tests categorized into 3 types:

(Solved) \?\C:\Users\etzhou\Desktop\zap\node_modules\canvas\build\Release\canvas.node is not a valid Win32 application.
Solution: npm rebuild canvas
thrown: "Exceeded timeout of 10000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."
Solution: run multiple times, sometimes it disappears, maybe depend on performance of device.
various error about ZAP file, shown in screenshots
No Solution yet

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Train a friendly ship with imitation learning

(This might need splitting up.)
Feeling free to plenty of hints & feature engineering, can we get our friendly agent to learn something by copying?

Closing, although the performance is not satisfactory / seems hard to build gameplay from.


Wrong behaviour with min and empty array

This is probably related to: https://github.com/skaterdav85/validatorjs/issues/215
If you try to validate an empty array with the min rule, it passes instead of returning error. Doing some reverse eng. it seems the problem is inside isValidatable, like that issue above said. This is an example code:
      const validation = new Validator({
        images: []
      }, {
        'images': 'array|min:5'
      })
      console.log('Passes?', validation.passes()) // true
      console.log(validation.errors.all()) // {}

Probably partial related to https://github.com/skaterdav85/validatorjs/issues/242.
Adding a required in front of the rules solves this, but it's not the correct behaviour: for example, I want the min error, not the required, since the min includes, by logic, also the required one.
Another small issue: the default message for min with arrays is wrong: currently returns The images must be at least 5 characters. but of course it does not make sense.

I encountered a similar issue trying to create a custom validator to require a minimum length for an array field based on the state of another field. The docs don't really explain it but within the rules.js file in the source there are a set of rules that are in a set referred to as implicit rules. This set includes the various 'required' rules as well as 'accepted' and 'present'. Implicit here means implicitly required, i.e. the rule will fail if the field is not present rather than the standard behavior to pass.
To make the min rule validate empty arrays properly, you need to create an implicit custom validator. Mine looks like this:
Validator.registerImplicit(   'has_items',   function (value, req, attribute) {     req = this.getParameters();     if (       this.validator._objectPath(this.validator.input, req[0]) ===       (req[1] === 'true')     ) {       return value.length >= 1;     }     return true;   },   ':attribute must contain at least one item', );
Bear in mind that this function is to validate a minimum length of 1 based on another field being true, so a slightly more complex use case than what was originally asked in this issue.
this.getParameters and this._objectPath are both functions within the package's source that weren't mentioned in the docs. Again, I had to dig through the source manually to figure out how this thing actually works.

I think this is not an issue, maybe I'm not understanding it but the documentation states: "Validation rules do not have an implicit 'required'." Am I missing something?

I expected something like required|array|min:2|max:2 or required|array|size:2 to constrain the array size but it does not seem to have that effect.


Contributing?

Hey,
I've been following the progress of leanjs since the CityJS talk and wanted to ask if you were open to contributions?
I'm sure there is a long list of things to do and I'd love to be involved!
(Apologies if this isn't the right place to raise this)
Cheers

Hi @AlexTraher! Good to hear from you. Thanks a lot for your message and interest in helping out. Yes, we are open to contributions :D. I've sent you a Twitter DM to discuss further.


Incremental indexing (adding new content)

A number of users have asked how to add new content to an existing index without needing to re-run the entire process. This is a feature we are planning, and are in the design stages now to ensure we have an efficient approach.
As it stands, new content can be added to a GraphRAG index without requiring a complete re-index. This is because we rely heavily on a cache to avoid repeating the same calls to the model API. There are several stages within the pipeline for which this is very efficient - namely those stages that are atomic and do not have upstream dependencies. For example, if you add new documents to a folder, we will not re-chunk existing documents or perform entity and relationship extraction on the existing content; we will simply fetch the processed content from the cache and pass it on. The new documents will be processed and new entities and relationships extracted. Downstream of this, the graph construction process will need to recreate the graph to include the new nodes and edges, and communities will be recomputed - resulting in re-summarization, etc. You can get a sense of this process and what downstream steps may be re-processed by looking at the data flow diagram.
Describe the solution you'd like
An ideal solution would be to add a new command to GraphRAG such as update that can be run against new data and augment an existing index. Considerations here include things such as evaluating the new entities to determine if they can be added to an existing community, and when those communities have been altered enough to constitute a "drift" that needs recomputing. We could also perform analysis to determine which communities have been edited, such that we ignore summarization on those that haven't changed.
Additional context
We also need to consider the types of analysis incremental ingest can enable beyond just "updates". For example, daily ingest of news with thoughtful graph construction/annotation could allow for delta analysis such that questions like "what happened with person x in the last 24 hours" or "catch me up on the news themes this week".
Some desired types of editing users have described in other issues:

Adding new documents
Removing old documents
Editing the graph itself

Scope
For now we are going to limit the scope of this feature to just an incremental index update to append content, and not worry about removal, manual graph editing, or the metadata tagging that would be required to do delta-style queries.
Approach
Putting here a little more detail on the approach we've discussed. It largely echoes what I put above as ideas, but I'll repeat for clarity:

We will create a new graphrag.append command to run updates that add content. The reason for a new command is so that the original graphrag.index is predictable in its behavior, i.e., that users know that communities will always be recomputed so they don't have to worry about model drift.
The append command will try to minimize community recomputes so that summarization is not performed again. If certain thresholds are met, recompute may be required, so the worst case degrades to the same performance as a normal indexing.
The first efficiency optimization will be to attempt to place all new entities into an existing community rather than re-running Leiden and triggering updates for everything.
We will only run summarization on those communities whose membership has changed, i.e., their new entity inputs should trigger resummarization in order to account for the new content.
We will establish user-configurable thresholds to determine when Leiden must be re-run, such as the number of new entities that don't find an existing community, or possible a measure of the modularity change of the graph (TBD).

This is a popular request, so I'm going to pin it and route other issues here.

Related: removing existing content, e.g., #585

can we split index into graph build and community summary? Lots of fans ask me if we can modify the knowledge graph in manual?

If you modify the Ilm params in settings.yaml, all of cache will be invalid.

Additional use case: adding files of a different type: https://github.com/microsoft/graphrag/issues/784

Any ETA on this feature? Need this to assess whether I need to implement my own solution. @natoverse

I think it is more urgent to change the cache from file to milvus(or more vector DB). The bottleneck that affects the overall query timeliness of graphrag has a significant impact on IO in relatively large files.

there are two distinct scenarios for adding documents to your index, each requiring a different approach to community management and querying:
Scenario 1: Siloed Document Communities

Concept: Each new document creates its own independent community within the index. This is like having separate folders, each with its own set of files.
Community Management: Communities are created and maintained separately for each document. You'll need a mechanism to track which documents belong to which community.
Querying: Queries are directed at a specific document community. The query pipeline only searches within that community, ensuring results are exclusively from the selected document.

Scenario 2: Unified Document Collection

Concept: New documents are integrated into existing communities, enriching the existing knowledge base. This is like adding new files to a shared folder.
Community Management: You manage communities at a higher level than individual documents. New content is tagged or categorized to associate it with the appropriate community.
Querying: Queries search across all communities (or a subset you specify). Results may come from a mix of documents.

Hi, maybe checkout this repo, it supports incremental insert for entities and relationships. Also will compute the hash of the docs so only insert the new docs everytime you insert

@gusye1234 Hi, thank you for sharing your work. Could you please explain how you addressed the issue of integrating new entities into the community.

@gusye1234 Hi, thank you for sharing your work. Could you please explain how you addressed the issue of integrating new entities into the community.

Sure. nano-graphrag use the md5 hash of docs and chunks as their key. When inserting begins, the same docs and chunks will be ignored and only the new chunks will continue to insert.
nano-graphrag will automatically load the previous graph from the working dir, and the new entities and relationships will be added on the current graph.
However, everytime you insert, nano-graphrag will still re-compute the communities and generate new community reports. The incremental update of communities is not yet implemented.

The lack of this feature is also holding me back ( and probably many more ) from fully committing to using this repo as a solution in the gen ai space, Would love to see how you implement this.

Hi, maybe checkout this repo,

@gusye1234  If you changed this repo by deleting the branch specification, it would be accessible as the GitHub repo from within the GitHub mobile app, which I suppose would increase the number of stars by making it easier for mobile users. Because right now, it just opens the working directory instead.

I  really would like to be able to add documents to the index, as this is a key feature for a KG /KB.
In the original Blog Post it's often talked about the scalability of the Leiden Algorithm, but if the Framework is unable to provide efficient updating or fast reindexing, the scalability is useless.
It took 2.5 h to index 4 software manuals and costed around 300 $ (OpenAi, Gpt4o-mini). As this was only half my data and most cost are caused by the community summaries.Therefor the current approach makes the project useless, except for tiny experiments.
But even here it's limited. For example if I would like to test against truthfulQA (wikipedia only), it's still 395 wiki pages to index, what's properly killing all OpenAi rate limits.
Rereading the paper after testing:
"To combine the strengths of these contrasting methods, we propose a Graph RAG approach to question answering over private text corpora that scales with [..] the quantity of source text to be in- dexed." (From Local to Global, p1)
as the kids call it CAP

+1 to feature request. I'd need this feature to use graphrag as a solution to my problem space

+1 to feature request, it's a critical missing component.

+1 to feature request. It was quite expensive to index my graph. I have one more document that needs to be added to the graph. A bit annoying but I'll leave it until this feature is available so that I don't end up triggering an expensive re-indexing exercise.

I agree with everyone here. Incremental indexing is critical and important. Ideally also every time you query you can choose which of your indexed books/documents should be used, all of them or only a selection.

1

+1

+1

How can we handle cases where our data keeps changing over time? Not just added documents but changes being made to documents?

Are there any updates for when a solution for incremental indexing will be available in the official repo?

Folks,
In #1318 we merged our first version for Incremental indexing. I'm working on adding documentation, but those running from source are more than welcome to try it and report any issue.

Hi, it might be worth mentioning this repo too. We just open-sourced it and it supports incremental updates.

@AlonsoGuevara  The update command seems to be failing at creating the final documents. It takes the sweet time to index the new document(s) and update them to the existing graph and populates the delta folder but finally encounters a KeyError: "['title'] not in index" at :  /usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

@AlonsoGuevara The update command seems to be failing at creating the final documents. It takes the sweet time to index the new document(s) and update them to the existing graph and populates the delta folder but finally encounters a KeyError: "['title'] not in index" at : /usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

also getting a similar error, after updating to the newest version of graphrag

@AlonsoGuevara The update command seems to be failing at creating the final documents. It takes the sweet time to index the new document(s) and update them to the existing graph and populates the delta folder but finally encounters a KeyError: "['title'] not in index" at : /usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

also getting a similar error, after updating to the newest version of graphrag

when i just run the indexing process, with no existing files, it gets an error for a missing file ("ValueError: Could not find create_final_documents.parquet in storage!")
when i use an exsting indexng result as the storage (as basedir in the settings.yaml), it starts the indexer process, but fails with: "KeyError: "['title'] not in index"
also it seems to make no difference between using "graphrag index" and "graphrag update", but just start te indexing with the update process
so right now, with the newest version, i cant update the existing files and also cant create new files (indexer generally not working)

@AlonsoGuevara更新命令似乎无法创建最终文档。它花费了大量时间来索引新文档并将其更新到现有图表并填充文件delta夹，但最终遇到了KeyError: "['title'] not in index"：/usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

更新到最新版本的 graphrag 后，也出现了类似的错误

当我刚刚运行索引过程时，由于没有现有文件，它会因缺少文件而出现错误（“ValueError：在存储中找不到 create_final_documents.parquet！”）
当我使用现有的索引结果作为存储（作为 settings.yaml 中的 basedir）时，它会启动索引器进程，但会失败：“KeyError：“['title'] 不在索引中”
而且使用“graphrag index”和“graphrag update”似乎没有区别，只是从更新过程开始索引
所以现在，使用最新版本，我无法更新现有文件，也无法创建新文件（索引器通常不起作用）
更新： 为了使用于创建新文件的正常索引器正常工作，需要删除 settings.yaml 中的“update_index_storage：”条目。 然后，当想要更新现有 gaph 数据时，需要添加它，同时将“storage：”的 basedir 更改为已创建的索引器结果。 这样我就可以让它工作了

@AlonsoGuevara The update command seems to be failing at creating the final documents. It takes the sweet time to index the new document(s) and update them to the existing graph and populates the delta folder but finally encounters a KeyError: "['title'] not in index" at : /usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

also getting a similar error, after updating to the newest version of graphrag

when i just run the indexing process, with no existing files, it gets an error for a missing file ("ValueError: Could not find create_final_documents.parquet in storage!")
when i use an exsting indexng result as the storage (as basedir in the settings.yaml), it starts the indexer process, but fails with: "KeyError: "['title'] not in index"
also it seems to make no difference between using "graphrag index" and "graphrag update", but just start te indexing with the update process
so right now, with the newest version, i cant update the existing files and also cant create new files (indexer generally not working)
UPDATED: to make the normal indexer forcreaing new files work properly, the "update_index_storage:"-entry in the settings.yaml needs to be removed. then when wanting to update existing gaph data, it needs to be added with also changing the basedir of "storage:" to the alredy created indexer results. with this i get it to work

I solved the problem,u need to genarate a new settings.yaml，this error is related to the format and syntax errors of the configuration file.

@AlonsoGuevara The update command seems to be failing at creating the final documents. It takes the sweet time to index the new document(s) and update them to the existing graph and populates the delta folder but finally encounters a KeyError: "['title'] not in index" at : /usr/local/lib/python3.10/dist-packages/graphrag/index/update/incremental_index.py:281 in _update_entities

also getting a similar error, after updating to the newest version of graphrag

when i just run the indexing process, with no existing files, it gets an error for a missing file ("ValueError: Could not find create_final_documents.parquet in storage!")
when i use an exsting indexng result as the storage (as basedir in the settings.yaml), it starts the indexer process, but fails with: "KeyError: "['title'] not in index"
also it seems to make no difference between using "graphrag index" and "graphrag update", but just start te indexing with the update process
so right now, with the newest version, i cant update the existing files and also cant create new files (indexer generally not working)
UPDATED: to make the normal indexer forcreaing new files work properly, the "update_index_storage:"-entry in the settings.yaml needs to be removed. then when wanting to update existing gaph data, it needs to be added with also changing the basedir of "storage:" to the alredy created indexer results. with this i get it to work

I solved the problem,u need to genarate a new settings.yaml，this error is related to the format and syntax errors of the configuration file.

yes, for testing i just added and removed the part related to "update_index_storage:".
later i also created 2 seperate files for normal indexing and updating.

Since the scope for this issue is limited to adding documents, are there plans in the future to support updating the graph for documents that are removed? I see a lot of related issues got directed to this issue.


allow copy only on specific roles / role area (e.g. fulfillment)

Hi Jonas,
I use this app a lot for our staff who take on new responsibilities, to copy the roles from another staff member. However, often only a certain role area needs to be copied. or Would it be possible to allow only certain roles to be copied, e.g. only fulfillment-related roles? It would be great to pick only certain roles to be copied, rather than "all-or-nothing". Also, the app seems to update all roles (even existing ones), at least with a new status date. Is that intended / cannot be avoided?
Best regards, Kathrin

Hi @kathrin77
Thank you for bringing up this issue. After reviewing the API response, it appears that obtaining information about the role area, as displayed in the Alma UI, is not currently supported. The API response for a single role provides the following details:
{
  "status": {
    "value": "ACTIVE",
    "desc": "Active"
  },
  "scope": {
    "value": "HSG",
    "desc": "HSG"
  },
  "role_type": {
    "value": "215",
    "desc": "Fulfillment Services Manager"
  },
  "parameter": []
}

Unfortunately, there is no specific information about the role area.
Regarding the update of all roles, the API operates in a 'Swap All' mode, where existing fields are replaced with incoming information. This includes roles, and the documentation notes:

[...]
The update is done in a 'Swap All' mode: existing fields' information will be replaced with the incoming information. Incoming lists will replace existing lists.
Exception for this are the following fields:
roles - if the incoming list does not contain roles, existing roles will be kept.
[...]

To add new roles, I must retrieve the existing list of roles, append the new roles, and then save the entire list. This process, unfortunately, triggers an update for all roles and results in a new status date.
I will ask in the developer forum, if there is a more efficient way to update user roles.
Best regards,
Jonas

hi @d22 thanks for the info. "swap all" makes sense, and the status date is not very important. But it would still be nice to copy only certain roles, based on the role type description. Like a checkbox input type where I can select "all" (default) or just a few specific roles to be appended.
happy new year,
BR Kathrin

@d22 it is not urgent! 👍 Let's wait for role area inclusion in API.

Hi @kathrin77
A few days ago, in the developer forum, Ori provided a possible solution for the role area issue, using the current API. This way it was possible to implement this feature without waiting for an API adaption, so I just released a new beta version (v1.3.0-beta). It should already be deployed and ready to test.
Can you please have a look at this and tell me if this works as intended?
Thank you and best regards
Jonas

Hello @kathrin77
Have you had a chance to review the changes yet?
Thank you and regards,
Jonas

Hi @d22 sorry for the delay. I tried testing it in production with a real-live example and had the impression that it didn't work (or maybe it was a usability error on my side), but unfortunately was not documenting before/after correctly and was in a hurry :-(. I wanted to give it another try in our premium sandbox but haven't got round to it. I was planning to do it this week though as due to Sandbox reset this weekend, it would be the ideal time to mess around with staff accounts ;-).

hi @d22 I just tested in our Sandbox. I believe it works as intended, however, there are some usability issues that I found confusing. I will send you some screenshots by e-mail. br, Kathrin


MNT: Remove unused astropy config code

This is probably leftover from package template. This package does not use the astropy configuration system at all.
Also see astropy/astropy#11497

Thanks @pllim!


Sprint3 bug fixes.

When using the select tool to resize an image or shape, when selecting a corner, keep the aspect ratio when resizing.
In the eraser tool, the cursor is a select arrow, it should be a circle to look like an eraser.
Change the toolbar look and feel: icons, text, fonts...

Looks good to me, if no issues arise in validation I'll merge.


Not pulling metrics if any of the node in the cluster down.

Hi, I have tried the helm chart, we have Kubernetes Prometheus operator running outside proxmox. Proxmox have single cluster with 6 nodes.
Below is my values.yaml,
replicaCount: 1
image:
repository: ghcr.io/starttoaster/proxmox-exporter
pullPolicy: IfNotPresent
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
config:
log_level: 'debug'
port: '8080'
api_insecure: 'true'
endpoints: 'https://hw-pve-cn01.example.com:8006,https://hw-pve-cn02.example.com:8006,https://hw-pve-cn03.example.com:8006'
token: 'xxxxxx-xxxx-xxxx-xxx-xxxxxxxxxxx'
tokenID: 'xxxxxxxx@pam!exporter'
serviceMonitor:
enabled: true
additionalLabels:
release: 'dev-prom'
annotations: {}
namespaceSelector: {}
targetLabels: []
relabelings: []
metricRelabelings: []
prometheusRule:
enabled: true
serviceAccount:
create: true
annotations: {}
name: ""
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
service:
type: ClusterIP
port: 8080
ingress:
enabled: false
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80

Deployed and i am able to see metrics in browser if i port-forward the exporter service, also Prometheus target looks good.

So now i have shutdown one of the node in proxmox cluster, now below issues noticed,
Promethues proxmox Target is down
In browser metrics not loading anymore (if i port-forward as before)
Below is the only error logs available in  exporter pod (debug mode) (hw-pve-cn04  is the node that i shutdown)

time=2024-04-30T14:36:00.598Z level=ERROR msg="failed making request to get node storage" node=hw-pve-cn04 error="Get "https://hw-pve-cn04.example.com:8006/api2/json/nodes/hw-pve-cn04/storage\": dial tcp <IP_ADDRESS>:8006: connect: connection timed out"
time=2024-04-30T14:36:04.694Z level=ERROR msg="failed making request to get node LXCs" node=hw-pve-cn04 error="Get "https://hw-pve-cn04.example.com:8006/api2/json/nodes/hw-pve-cn04/lxc\": dial tcp <IP_ADDRESS>:8006: connect: connection timed out"
time=2024-04-29T10:13:14.451Z level=ERROR msg="failed making request to get node LXCs" node=hw-pve-cn04 error=""
time=2024-04-29T10:13:15.892Z level=ERROR msg="failed making request to get node LXCs" node=hw-pve-cn04 error=""
time=2024-04-29T10:13:18.178Z level=DEBUG msg="proxmox request was found in cache for GetNodeCertificatesInfo" node=hw-pve-cn05
time=2024-04-30T14:36:05.364Z level=ERROR msg="failed making request to get node VMs" node=hw-pve-cn04 error=""
time=2024-04-30T14:36:06.374Z level=ERROR msg="failed making request to get node storage" node=hw-pve-cn04 error=""
time=2024-04-30T14:36:07.314Z level=ERROR msg="failed making request to get node VMs" node=hw-pve-cn04 error=""
time=2024-04-30T14:36:08.436Z level=ERROR msg="failed making request to get node storage" node=hw-pve-cn04 error=""
I tried shutdown different nodes, also tried to add all 6 nodes as endpoints in chart, but same issue persist.
Again if i bring the node up, the issue is getting resolved. Any issue in my configuration?
Thanks

Thanks for the report! Last time I had tried turning off a Proxmox node the exporter still put out metrics for the remaining nodes, but I did add on concurrency for making those requests to PVE since then, so maybe something was broken there. I'll have more time to look into this a bit later, but I will try to reproduce and get a fix for that before the end of this weekend :)

Thanks again for reporting! It was very easy to reproduce with your detailed report.
While testing this exporter for node failures I usually disabled the pveproxy service on a node, and assumed that would simulate a node failure. I noted today that disabling the pveproxy service did not have the same effect as shutting down the whole node for the purposes of testing this :smile:
If you pull the newest version of the :latest image, or use the :v0.1.2 tag, they should contain the fix from the linked Pull Request.

Thanks a bunch for the fix!!
We tried v0.1.2 and noticed a lot more improvement. However, now the Prometheus target is intermittently failing.  After a few minutes, we observed that the target repeatedly goes offline and then comes back online. We tried curl the metrics path and noticed that curl takes more time intermittently to fetch the metrics. When all endpoints are up, curl is super-fast on all requests. Could this be because requests are still being sent to the endpoint that is down?

Hm, that is an interesting problem. I assume Prometheus is setting a short request timeout when reaching out to the exporter. When loading the metrics endpoint, the first API request that gets made to Proxmox is to list all nodes in the cluster, which also gets their current up/down status. I did also notice that this first request is slower when a node is down. I think I'll need to put that request in its own goroutine so that the metric server just gets it from cache if it's too slow to respond for Prometheus to scrape it. I'll see if I can get that fix in later this evening 🙂

@shagad65 I put out a new update that I believe addresses this. The problem with the exporter loading slowly when a node was down was actually caused by waiting for requests to time out against down Proxmox servers, which I was able to solve locally by implementing temporary "bans" on the clients when a request fails to a given Proxmox server.
I think the way this client ban is implemented here would mitigate the issue for you. On the first request to a down Proxmox server, the client would be temporarily "banned" and only unbanned after a goroutine loop is able to make a successful request to it. The first time that a client is discovered to potentially be down, Prometheus might still hit its scrape interval timeout of 10 seconds. But subsequent exporter requests should be significantly faster. So you might see a small metrics gap when a node goes down, and then the metrics should start coming back in again once the down client is banned.

Thank you @Starttoaster for the quick fix.
With this fix the intermittent target unstable issue is resolved and looks good. Only seeing a small gap (2-3 min) in metrics at the time of node down which can be ignorable I think.
One more quick question before i close this issue, is there any other Grafana dashboard available which we can see the node wise metrics? currently it is cluster wise.
Thanks again.

All the metrics this exporter currently exports gets displayed in the provided grafana dashboard. What would you like to see in a node-specific dashboard?

Thank you, will try node exporter.


Allow uploading documentation to hackage

This was mentioned here:
https://www.fpcomplete.com/blog/2015/04/announcing-stackage-upload#future-enhancements.
It would be really nice to have.

I'm unlikely to implement this myself, as I'm more than a little frustrated right now with Hackage's inability to display documentation correctly (expect a blog post on that soon). I'll be happy to merge in a PR though, although I think you'd want to send it to stackage-upload, not stackage-update.

Oh, yes, this is the wrong repo, sorry. Should I close this and open one in stackage-upload?
Is your frustration only about it often not building the docs or are there other problems?

Yeah, reopening in that repo makes sense.
You can see my frustration coming to life here: https://github.com/haskell/hackage-server/pull/356. I wrote a blog post with more information, but I'm debating whether it's worth facing the inevitable flame war by posting it.


release 1.27.1

What this PR does / why we need it:
Which issue this PR fixes(if applicable):
fixes #
Special notes for reviewers:

Release note:

NONE

cc @jichenjc

/lgtm
/approve

should monitor the new image/charts to see whether it works fine :)


Language Classification data

Linguist List, Rosetta Project, and SIL all have language classification data.  Can we obtain this data
and allow people to explore it programmatically, generate visualizations, etc?
Migrated from http://code.google.com/p/nltk/issues/detail?id=112

Unfortunately no resources to do this.


[yaml] package kafka_clients 3.1.2 in Kafka Provider jar

Patch fix to include kafka client 3.1.2 in JAR that contains Kafka provider (used by Beam YAML) in case #32486 does not pass tests in time for 2.60 cut.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @robertwb FYI - I am going a different direction and just packaging Kafka 3.1.2 in the provider JAR used by Beam YAML (the other PR keeps having new transitive issues and I don't think it will get in to 2.60)

R: @Abacn


Issue:Vm is failed

ji i launch one vm name : imayam but that vm is failed so kindly check and if i launch any vm only launch in 175 server based vm so kindly cheak and let me know
@indykish

just now lunch another vm
core:6
ram:4
hdd:400
thats also failed so kindly check and let me know
also assained private ip but not assaigned state so cheak it
@indykish

@indykish
any updates for that problem

ji any updates
@indykish

@indykish
ji any updates

Working on your issue, update you soon

VM 1
Name :New server1
Os :Windows 2012R2
Cpu :8
Ram :16
HD :400
Ip :private
VM 2
Name : New server2
Os :ubuntu
Cpu :8
Ram :16
HD :250
Ip :public
kindly create this 2 vm launch in 175 server
@vijaykanthm28

Both VM launched

Both VM launched

ubuntu vm working
but windows vm not working
kindly check it
if i open console in the windows vm black screen appered
@vijaykanthm28

@

check ur network connection is shows to me

kkk thank u ji @vijaykanthm28


Yammer misspelt

In the section "Where does content in the feed come from?"
https://docs.microsoft.com/en-us/viva/connections/faqs-viva-connections-feed#question-where-does-content-in-the-feed-come-from
Yammer is misspelt as "Yammar".

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d23114d5-dc01-a971-c612-67204069a677
Version Independent ID: d23114d5-dc01-a971-c612-67204069a677
Content: Frequently asked questions about the Feed for Viva Connections
Content Source: Viva/connections/faqs-viva-connections-feed.md
Service: viva
Sub-service: viva-connections
GitHub Login: @Holland-ODSP
Microsoft Alias: hokavian

@scanum this can be closed thank you.


Commercial - Public DNS zone forwarders Storage

Hi,
What is the correct 'Public DNS zone forwarder' for managed disk? In this doc it is set to privatelink.blob.core.windows.net which is the same as the 'Private DNS zone name' (regarding subresource 'disk')

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: a88af182-32aa-a8f3-359d-b92ae1cfb8c7
Version Independent ID: 01ce07fc-4bc2-def5-9ecd-a80330ad9488
Content: Azure Private Endpoint private DNS zone values
Content Source: articles/private-link/private-endpoint-dns.md
Service: private-link
GitHub Login: @asudbring
Microsoft Alias: allensu

@torgro
Thanks for your feedback! We will investigate and update as appropriate.


App crashes when vocab count is 0

Should not crash the app. Perhaps handle it with an alert ?

Thanks for the issue. This is intended as a safeguard for devs since we do not wish for empty lessons.


Add defaultLocale option

This adds the defaultLocale option.
If setted, this option allows to establish a default locale that will live in the root folder or have the default extension.

@h2non any thoughts on this and #31 ?

Will take a look asap.

Feature shipped in<EMAIL_ADDRESS>Feel free to update your dependency tree.

great!


Improvement for k8s.io/docs/concepts/services-networking/network-policies/

egress:

to:

namespaceSelector:
matchLabels:
namespace: default
podSelector:
matchLables:

You have typo here, one is written 'Labels' while the other is written 'Lables'
please fix it

/language en

@kabatz Nowhere found 'matchLables' in network-policies page. Please share the page url where you found it.

/triage needs-information

i literally copy-pasted the lines above from https://kubernetes.io/docs/concepts/services-networking/network-policies/
yet i cant find it anymore!
its just odd
thanks for your quick response, i no more see 'matchLables' in the page, feel free to close the incident

please close the issue. if you satisfied


limit number of installed kernel versions to 3

in yum.conf https://github.com/CSC-IT-Center-for-Science/ansible-role-yum/blob/master/templates/yum.conf.j2 we have "installonly_limit=5" - should we lower this to say 3?

https://github.com/CSC-IT-Center-for-Science/ansible-role-yum/commit/e460db98acb7a724eedba89816ad13086edb0549


Serve cache on transient errors

STSGetCallerIdentity, DescribeSecret and GetSecretValue requests may fail because of common network errors like Sdkerror::Timeout and server-side errors like Sdkerror::ServiceError<Box, HttpResponse>. This cr adds a new configurable parameter ignore_transient_errors. With that enabled, the agent will return the cached secret when running into common transient errors like the above.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report
Attention: Patch coverage is 84.10256% with 31 lines in your changes missing coverage. Please review.

Project coverage is 70.57%. Comparing base (c604b4b) to head (20e3468).

Files with missing lines
Patch %
Lines

aws_secretsmanager_caching/src/lib.rs
84.39%
27 Missing :warning:

aws_secretsmanager_agent/src/config.rs
80.00%
2 Missing :warning:

aws_secretsmanager_caching/src/error.rs
75.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
+ Coverage   68.80%   70.57%   +1.77%
==========================================
  Files          14       15       +1
  Lines        2885     2848      -37
  Branches       10        8       -2
==========================================
+ Hits         1985     2010      +25
+ Misses        900      838      -62

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Feature Description
Check and Remove the unused packages

"html-to-draftjs": "^1.5.0",

"html-to-image": "^1.11.11",

"html2pdf.js": "^0.10.1",

"intro.js": "^5.0.0",

"intro.js-react": "^0.5.0",

"jest": "^29.6.4",

"jose": "^4.3.7",

"js-datepicker": "^5.18.2",

"js-sha256": "^0.9.0",

"konva": "~8.1.4",

"lottie-react": "^2.3.1",

"mixpanel-browser": "^2.45.0",

Possible Implementation
Check and Remove the unused packages
Have you spent some time checking if this feature request has been raised before?

[X] I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to submit a PR?
Yes, I am willing to submit a PR!

Done - PR Link - https://github.com/juspay/hyperswitch-control-center/pull/143


redirect cause page render twice

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.4.2
Nitro Version:    2.3.3
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-zefysc?file=pages%2Findex.vue,pages%2Fabc.vue,app.vue
Describe the bug
when I use definePageMeta , use redirect in index.vue.
redirect to 'abc.vue'
but when I visit index page, which cause abc page render twice

that is a serious bug, which make my project render twice in all use redirect page.
Additional context
No response
Logs
No response

just render twice in server

Let's track in https://github.com/nuxt/nuxt/issues/20294.


[SD-Apps] Please add @kumaashi's M5StackSandbox

https://github.com/kumaashi/M5StackSandbox

The app has been scheduled for rebuild

Compilation of this package failed, it has been labeled as invalid until the source of the problem is identified and addressed


False-positive vulnerability thrown because of lodash.uniqby

Sonatype and other bots are flagging the latest release of auto-changelog as vulnerable to a __proto__ pollution attack because of lodash.uniqby (see CVE-2018-3721 and #310443).
The only methods concerned by this vulnerability are merge, mergeWith and defaultsDeep. lodash.uniqby doesn't use any of these.
I think we should leave this issue opened (or closed, doesn't matter) to warn that this is a false-positive.

I'll close this off as there's nothing actionable, but good to know.


ci is down

building '/nix/store/0ik1fl7brsa8frgkm3nrc9d2d556r7wq-beaker-0.1.8.drv'...
error (ignored): error: cannot unlink '/tmp/nix-build-hermes-v1.7.4.drv-0/source/target/x86_64-unknown-linux-gnu/release/deps': Directory not empty
error (ignored): error: cannot unlink '/tmp/nix-build-beaker-0.1.8.drv-0': Directory not empty
error: writing to file: No space left on device
Error: Process completed with exit code 1.

i suggest to use github big instances with magic nix cache. seems most husstle free setup

magix  nix cache with ubuntu m gh large instances work hasstle free for me.

this setup also works well for half year https://github.com/ComposableFi/env/blob/main/ci.md

I don't think magic cache is necessary, given we have a cache (although there are definitely a lot of improvements I could do to our existing cache)
We could definitely use beefier CI machines, at some point I may have to set up self hosted runners on AWS (that's where I have the cache hosted right now).
I don't know if Informal is open to paying for bigger GH hosted instances.

I think there is probably some work we could do to optimize our CI workflows. Right now CI builds the whole world everytime (although the cache mitigates builds, it doesn't mitigate the space used since cached artifacts are downloaded). We could theoretically just check new derivations and changed derivations, but this is pretty complicated to facilitate I think.

I''m not sure what you meant by Nix's cleanup options, I am not sure if we GC mid nix command. And our nix installer automatically sets auto-optimise-store https://github.com/DeterminateSystems/nix-installer-action?tab=readme-ov-file#installation-differences

works well for a while


Convert points attribute to volume

Hi, I have a problem that how can i convert points or particles attributes to a scalar/vector fields.
In Houdini have a sop node:vdb from particles,that can convert the attribute to a volume.
I can convert the particles to volume/sdf(density grid) that used the  "MyParticleList" , but how can extract the "v" vector attribute to a openvdb::Vec3s grid(velocity grid) and other typed attribute to their typed grid
thanks.

There's a number of ways you can achieve this. With generic point lists you can use openvdb::tools::ParticlesToLevelSet whose second template parameter can be a custom type of an additional attribute to rasterize:
https://github.com/AcademySoftwareFoundation/openvdb/blob/2561c253d052aa27c5405d7fef4fcec1b2923ba0/openvdb/openvdb/tools/ParticlesToLevelSet.h#L156-L159
See the testRasterizeSpheresAndId test as an example which additionally rasterizes an int32_t id attribute:
https://github.com/AcademySoftwareFoundation/openvdb/blob/2561c253d052aa27c5405d7fef4fcec1b2923ba0/openvdb/openvdb/unittest/TestParticlesToLevelSet.cc#L297
Alternatively, if you're using OpenVDB Points, you can use the new tools available in points/PointsRasterizeSDF.h:
https://github.com/AcademySoftwareFoundation/openvdb/blob/2561c253d052aa27c5405d7fef4fcec1b2923ba0/openvdb/openvdb/points/PointRasterizeSDF.h#L138-L150
A quickly typed example:
using TypesToTransfer = openvdb::TypeList<Vec3f>; // A single vec3f attribue

auto grids =
    rasterizeSpheres<decltype(pointDataGrid), TypesToTransfer>
          (pointDataGrid, /*radius=*/1.0,  /*attributes=*/{ "v" });

openvdb::FloatGrid::Ptr surface = openvdb::StaticPtrCast<FloatGrid>(grids[0]);
openvdb::Vec3fGrid::Ptr vel = openvdb::StaticPtrCast<Vec3fGrid>(grids[1]);


[Monitor OpenTelemetry Exporter] Fix Property Truncation

Packages impacted by this PR
@azure/monitor-opentelemetry-exporter
Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/30969
Describe the problem that is addressed by this PR
Enforces truncation on properties parsed from user telemetry.
Are there test cases added in this PR? (If not, why?)
Yes
Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[x] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.


GridView ItemContainerStyle not applied

First of all, thanks for providing ths library : -)
I recently stumbled across your package and replaced some "not-so-good-working" virtualizing panel with this package and things now are going much smoother.
I nevertheless stumbled across one problem. If I use the GridView - let's say in a simple WPF window - and set its ItemContainerStyle property (either by referencing a StaticResource or by defining it inline), everything works as expected. The ItemContainerStyle is applied.
If I define a style for the GridView and provide a Setter in this style that sets the ItemContainerStyle to the same StaticResource that I used before, the ItemContainerStyle is not applied. I actually don't have any clue why that fails. Can you sehd some light on this?

Hi, thanksfor using this project.
The problem is that the grid view applies a default style to the ItemContainerStyle property. This assignment has a higher priority than the item container style applied by your style.
I have fixed that by not setting the ItemContainerStyle directly. Instead, the default value of the dependency property is now overwritten.

Oh wow, cool. Thanks for your quick reply and the fix. Do you have any plans on when you are going to release an updated nuget package?

The nuget package has just been released: https://www.nuget.org/packages/VirtualizingWrapPanel/1.5.1

Thank you very much for taking care of this so fast. This is really awesome.


Add flexible registry type and byte query support

The windows-registry crate is currently pretty strict when it comes to mapping registry values and types. You cannot for example read the bytes from a registry value unless the type of that value is REG_BINARY. This makes it a little difficult to gracefully deal with invalid registry values.
This update adds the get_type methods and the resulting Type enum so that the actual type of a value can be queried directly. It also updates the get_bytes method to support returning the raw byte value even if the type isn't known to be bytes.
Related: #3119

Thanks, I'll work on OsStr support separately.


test-infra: uniform distribution for Seed

The arbitrary :: Int is not uniform; it favors values close to 0.
I'm not sure this diff ultimately matters, but this seems closer to our intentions.

Since we have time to be patient for this one, I'm running the nightlies on it: https://buildkite.com/input-output-hk/ouroboros-network-nightly/builds/162

bors r+


docs: Fix a typo in plugins.en.md

Checklist

[ ] npm test passes
[ ] tests and/or benchmarks are included
[ ] commit message follows commit guidelines

Description of change
Replace Chinese words to English in English version docs

Thanks for your PR!


Crudmaker do not create repository

Hi,
i have update crudmaker to the latest version and with this command:
php artisan crudmaker:new Product --schema="id:increments" --migration
All file are generated, but the repository is not (only the model).
After the update, i've noticed that Model.txt now is outside the Repository folder.
Searching in all project i see a reference to Model.txt in CrudGenerator.php but no reference to Repository.txt
I have miss something?

Hi,
Since 1.1.0 CrudMaker does no longer generate repositories, see https://github.com/YABhq/CrudMaker/blob/develop/changelog.md#v110---2016-09-06. If you need it, make sure to lock to an older version.

Mhhh i understand. But now when i generate a crud it create routes in Http\routes.php and not in routes\web.php folder.
More.. it not create me Repository and the service still depend to repository (that do not exists).
I have run composer update and php artisan vendor:publish --provider="Yab\CrudMaker\CrudMakerProvider"
I should run other commands to have "the updated version" ?

Yes is true, i have added this in my composer.json:
"yab/crudmaker": "1.0.8",
"yab/laracogs": "2.0.0",

And now i have successfully downgrade the version.


Update ProfServicesToolsLibrary.md

adding more to RM unapply

Docs Build status updates of commit 76478e1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/installation/ProfServicesToolsLibrary.md
:bulb:Suggestion
View
Details

dynamics-gp/installation/ProfServicesToolsLibrary.md

Line 59, Column 1: [Suggestion-code-block-indented] Indented code blocks aren't allowed. Use a Markdown code block surrounded by triple backticks (```). NOTE: This Suggestion will become a Warning on 1/29/21.
Line 102, Column 1: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 209, Column 9: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 223, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 241, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 318, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 334, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 392, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 407, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 478, Column 1: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 589, Column 1: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 756, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 967, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 1015, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 1067, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 1098, Column 5: [Suggestion-duplicate-alt-text] Alt text 'A screenshot' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.
Line 1256, Column 1: [Suggestion-duplicate-alt-text] Alt text 'A screenshot ' is duplicated. Within an article, alt text must be unique. NOTE: This Suggestion will become a Warning on 1/29/21.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 0188b27:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/installation/ProfServicesToolsLibrary.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 1599978:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

dynamics-gp/installation/ProfServicesToolsLibrary.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[WIP] stages:oscap.autotailor: add key/value overrides

This commit extends the current support for OpenSCAP tailoring by accepting an array of key/value overrides. Users will be able to specify override values for specific rules that will update the value when remediating the image.

Please take a look at the improvements we made to the autotailor script that about to hit the next release. No API changes, but there are new features. It might be useful for planing the stage future evolution path.
https://github.com/OpenSCAP/openscap/pull/2039

Please take a look at the improvements we made to the autotailor script that about to hit the next release. No API changes, but there are new features. It might be useful for planing the stage future evolution path.
OpenSCAP/openscap#2039

@evgenyz do we have an idea when this will get released? Maybe I could go ahead with this PR and then add the new functionality when it lands?

Please take a look at the improvements we made to the autotailor script that about to hit the next release. No API changes, but there are new features. It might be useful for planing the stage future evolution path.
OpenSCAP/openscap#2039

@evgenyz do we have an idea when this will get released? Maybe I could go ahead with this PR and then add the new functionality when it lands?

Yeah, that would make sense. We are kinda not sure yet about the release.


Use rabbbitmq hosts defined in an environment variable.

We now access these via different naming schemes in different environments
so accept the values provided by puppet rather than the hard coded
ones. CC /@kevindew
This a subset of the changes made here - https://github.com/alphagov/email-alert-service/pull/80/files#diff-64f27c9e1694187fb14d1429cd7d409fR21

This looks good to me. I am just wondering/investigating if we can strip this down to have an env_var of like:
production:
  url: <%= ENV['RABBITMQ_URL'] %>
  exchange: published_documents
  recover_from_connection_close: true

and an env var of: ampq://user:pass@rabbitmq-1:5672.backend,rabbitmq-2.backend:5672,rabbitmq-3.backend:5672/
Just to save us having extra env vars and making it more configurable for e2e tests (and other non puppet environments)

We could possibly change the format but it'd be nice to get this in to fix AWS and then roll the further change across all the apps in a batch.

@deanwilson yup sure, it doesn't support the multi-host name syntax anyway 😢 - have you already got the env vars in puppet? or should the definition be ENV.fetch('RABBITMQ_HOSTS'], 'rabbitmq-1.backend,rabbitmq-2.backend,rabbitmq-3.backend') ?

Can confirm we have the hosts in Puppet:
https://github.com/alphagov/govuk-puppet/blob/a863202a2af7169456cc4cc69da3b66be01c607a/hieradata/common.yaml#L479-L482
When we move to AWS, the way that we cluster RabbitMQ in an autoscaling group means that adding the host will be much nicer anyway:
https://github.com/alphagov/govuk-puppet/blob/a863202a2af7169456cc4cc69da3b66be01c607a/hieradata_aws/common.yaml#L484-L485


[oracle] Correct the naming error

[oracle] Correct the naming error
Oracle reads the redo log instead of the binlog.
fix #2404

@e-mhui There are some compile errors. Please rebase the master branch and fix the compile errors.

@e-mhui There are some compile errors. Please rebase the master branch and fix the compile errors.

Thanks, it has been done.

@e-mhui There are remain some in test.

Thanks, it has been fixed.


Add a "project" option to the tslint task

PR type ?
Feature
Did you add tests for your changes?
No
If relevant, did you update the documentation?
No (analog to the other parameters of the tslint task)
Summary
Does this PR introduce a breaking change?
No
Other information
Just another config option :-)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: klassm sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Tab close icon tooltip shows shortcut key that does not work

Describe the bug
The close tab icon has a hover tooltip that says Close this tab ^W, but no key combo including W will close the tab so that is confusing.  Also, use of ^ as a key modifier may not be commonly known to users of different OSes when running the client in a browser.  The ^W should probably be removed from that tooltip text.
Steps to reproduce the behavior

Go to Kui UI in a browser client
Open a second tab
Hover over the tab close icon on either of the two tabs
Observe the tooltip hover text

Expected behavior
Removal of the ^W if a keyboard shortcut does not really work in a browser client.
Screenshots

Code snippets
N/A
System

Kui version: 10.3.27
Operating system: MacOS in this case using Chrome browser

Probably a bug with the webpack browser shims for process.platform?


Driver does not support get/set network timeout for connections. (Method not supported)

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
I I updated Dolphin 3.1.6 and tested the Hive data source connection and found 5 more long links in the HiveServer2 service that did not close。
Dolphin：

hiveservice2：

api-log：

What you expected to happen
I expected hive datasource wiil be close
How to reproduce
you just test hive datasource
Anything else
No response
Version
3.1.x
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

hi @xuhui1231 we should remove the datasource connection for sql task, and create new connection for each sql task before execute the code

thx ， I will attention 3.1.8

pr is https://github.com/apache/dolphinscheduler/pull/14193


String to ObjectId automatic conversion - Mongodb

Describe the bug
I use mikro-orm as part of an event storage system, sometimes an event sends a Payload containing an ObjectId like a string from another system.
Mikro-orm automatically turns it into an ObjectId. This is a behavior that forces us to adapt our serialization.
To Reproduce
I use:
@Entity()
export class DataContainer extends BaseEntity {

  constructor(data: any) {
    super();
    this.data = data;
  }

  @Property()
  data: any; // typing used to have some edge cases
}

The test:
test('do not automatically convert string to ObjectId in the all cases', async () => {
    const dataContainer = new DataContainer({
      partnerIdFromAnotherSystem: '0000007b5c9c61c332380f78',
    });

    expect(dataContainer.data.partnerIdFromAnotherSystem).toBe('0000007b5c9c61c332380f78');

    await orm.em.persistAndFlush(dataContainer);

    expect(dataContainer.data.partnerIdFromAnotherSystem).not.toBeInstanceOf(ObjectId);

    // need to clear to lost the original typing 'string'
    orm.em.clear();

    const getDataContainer = await orm.em.findOne(DataContainer, { id: dataContainer.id });
    expect(getDataContainer!.data.partnerIdFromAnotherSystem).not.toBeInstanceOf(ObjectId);
});

Expected behavior
I don't know what would be the best solution for this case.
But it is an implicit behavior that cannot be customized.
Versions

Dependency
Version

node
12.13.0

typescript
3.6.5

mikro-orm
3.4.1

your-driver
mongodb

Hmm right, internally MongoConnection will convert everything that looks like an ObjectId to a real ObjectId, also for the insert/update payload. While this is fine/wanted for where conditions, we should convert only PK and FKs in the payload.

It still keeps happening for read payload! A simple findOne would reproduce the problem.

There is a test case for this issue and its passing so please provide a new reproduction if its still happening.

Here you can check this repository. I wonder how the test case is passing. Note: Use yarn start to test.

Ok I see, that is another issue. Your problem is with querying, where we still convert to object ids, the property is correctly stored as string in the db.

will be fixed in v3.6.12


feature request: progress of conversion

Dear devs,
it would be nice to have some kind of progress indication of the conversion progress (e.g. a log message or even a primitive progress bar).
Thanks for this useful tool!

How are you invoking nbsphinx?
Normally, Sphinx produces quite a few log messages on the terminal, at least one line for each source file (i.e. Jupyter notebook). How does your output look like?
Sphinx also has the option -v, which should increase its verbosity, have you tried that?
Could you please describe in a bit more detail what you have in mind?

I'm invoking with the following command:
LANG=C sphinx-build -b html -d build/doctrees  -j8 -v source build/html

which produces this output:
loading translations [en]... done
/srv/public/marscher/miniconda3/envs/pyemma_dev/lib/python3.6/site-packages/sphinx/events.py:103: RemovedInSphinx30Warning: autodoc_default_flags is now deprecated. Please use autodoc_default_options instead.
  results.append(callback(self.app, *args))
loading pickled environment... done
[autosummary] generating autosummary for: CHANGELOG.rst, Configuration.rst, DEVELOPMENT.rst, INSTALL.rst, api/coordinates.clustering.rst, api/coordinates.data.rst, api/coordinates.pipelines.rst, api/coordinates.transform.rst, api/generated/pyemma.coordinates.assign_to_centers.rst, api/generated/pyemma.coordinates.cluster_kmeans.rst, ..., tutorial.rst, tutorials/notebooks/00-pentapeptide-showcase.ipynb, tutorials/notebooks/01-data-io-and-featurization.ipynb, tutorials/notebooks/02-dimension-reduction-and-discretization.ipynb, tutorials/notebooks/03-msm-estimation-and-validation.ipynb, tutorials/notebooks/04-msm-analysis.ipynb, tutorials/notebooks/05-pcca-tpt.ipynb, tutorials/notebooks/06-expectations-and-observables.ipynb, tutorials/notebooks/07-hidden-markov-state-models.ipynb, tutorials/notebooks/08-common-problems.ipynb
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 125 added, 0 changed, 0 removed
reading sources... [  9%] CHANGELOG .. api/generated/pyemma.coordinates.cluster_regspace
reading sources... [ 18%] api/generated/pyemma.coordinates.cluster_uniform_time .. api/generated/pyemma.coordinates.data.FragmentedTrajectoryReader
reading sources... [ 27%] api/generated/pyemma.coordinates.data.MDFeaturizer .. api/generated/pyemma.coordinates.save_traj
reading sources... [ 36%] api/generated/pyemma.coordinates.save_trajs .. api/generated/pyemma.msm.ChapmanKolmogorovValidator
reading sources... [ 45%] api/generated/pyemma.msm.HMSM .. api/generated/pyemma.msm.bayesian_markov_model
reading sources... [ 54%] api/generated/pyemma.msm.estimate_hidden_markov_model .. api/generated/pyemma.plots.plot_flux
reading sources... [ 63%] api/generated/pyemma.plots.plot_free_energy .. api/generated/thermo-api/pyemma.thermo.wham
reading sources... [ 72%] api/generated/thermo-estimators/pyemma.thermo.DTRAM .. api/index_serialization
reading sources... [ 81%] api/index_thermo .. legacy-notebooks/methods/model_selection_validation/model_selection_validation
reading sources... [ 90%] legacy-notebooks/methods/msm_with_given_equilibrium/alanine/alanine .. tutorials/notebooks/03-msm-estimation-and-validation
reading sources... [100%] tutorials/notebooks/04-msm-analysis .. tutorials/notebooks/08-common-problems

waiting for workers...

which produces no output due to -v flag. I just see the "waiting for workers" line for ages until everything has been executed and output files are being written. Probably this is due to the parallel execution?
My notebooks take long (~45 minutes) to execute. So I would hook into the the execution processor and have a TQDM progress bar with all cells to be executed (no ETA, but just to see that something is being computed).

This is strange, because Sphinx is supposed to reach 100% when all computations are finished.
Are you using some kind of additional parallelization framework within your notebooks (apart from the Sphinx -j option)?
Could you please try to reproduce the problem in a minimal separate project containing dummy notebooks that only "sleep" for some time to simulate the processing?
This would make it easier to reproduce for me (and others) and hopefully to find the problem.


Shrink central shaft by 100um

As discussed, reduce central shaft hex flat-to-fat by 100um (50um each side).
Also chop off 1cm from the shaft so that it no longer enters Cam B.
Also also increase hex corner rad from 0.1 to 0.2mm.

Should test print and play with tol before merge.

I'll update to 125 before merge

lol should have updated the PR name before merging.


Consistency between CalcCellValue results and Excel calculations?

I would like to know if the results of CalcCellValue are exactly the same as those calculated by Excel. Is there any detailed documentation or data available that explains and substantiates this?

Currently, not all formula functions have been supported, and the supported formula functions were listed in the documentation of the CalcCellValue function. The aims for calculation function implementation are the same with Excel, but we can't exactly substantiate this. The library test each formula function, and the result of each formula are the same as those calculated by Excel. If you find any consistency issues, welcome to feedback.

Currently, not all formula functions have been supported, the formula engine still working in progress, and the supported formula functions were listed in the documentation of the CalcCellValue function. The aims for calculation function implementation are the same with Excel, but we can't exactly substantiate this. The library test each formula function, and the result of each formula are the same as those calculated by Excel. If you find any consistency issues, welcome to feedback.

I closed this issue, and merged this into #65 to continue to discuss this. If you have any question, please let me know, and reopen this anytime.


Meld cards don't have a "side" field

Meld cards should have a "side" field just like all other multi-part cards, with the top half being "a", bottom half being "b", and melded face being "c".

Alternatively, both front sides could be "a" and the melded side could be "b". I'm not sure which one makes more sense from a design perspective.

The docs say that the side field is "used on cards with multiple faces", which meld cards certainly qualify for. It seems strange to omit it.
After thinking about it a bit more, I think it makes the most sense to have "a", "b", and "c". The difference between the top half and the bottom half is relevant for applications that want to display card images. The top half is also always the one that has the ability to meld the cards. And philosophically, I think there is a difference between the two front halves- arguably more than the difference between two halves of a split card.

While being a very slight corner case, I definitely think meld cards need to follow the same standard as other multi-part cards. So no matter what I think the side field should be added.
I'm be inclined to say a is the front of the primary card, b is the front of the secondary card and c is the full face of the melded card. The half faces of the melded card aren't cards and shouldn't exist as such.


Error: 403 on pulling manifest

Hi,
Thanks very much for building this great project!
I would like to set up ollama in the internal Linux server of my office but it fails pulling pre-trained models as follows.
# installation
$ curl https://ollama.ai/install.sh | sh

# run
$ ollama run llama2
pulling manifest
Error: 403:

I've tested it before and it was fine in my home, but it only fails in the office internal server maybe due to security policy.
Could anyone please let me know where ollama downloads the pre-trained models? I need to know its URL to make a firewall exception.
Thanks.

Otherwise, is there any way manually download the models?
If possible, then I can put the models under /usr/share/ollama/.ollama/models manually.

I have the same problem (also trying to deploy in the office). We have a proxy installed. Does ollama use proxy settings when downloading a model?

Ollama uses your system proxy settings if they're set. See the FAQ for more details

Thanks for the reply but I haven't configured HTTP_PROXY nor HTTPS_PROXY.
My question is this. Where does ollama downloads pre-trained models?


import bgs  ImportError: DLL load failed: Dynamic Link Library (DLL) initialization routine failed

I have bgs.cp36-win_amd64.pyd and libbgslibrary_core.dll, and I've added them to environment variables, but when i import bgs to my project ,
ImportError: DLL load failed: Dynamic Link Library (DLL) initialization routine failed
System information
Desktop

OS: win10
Python version: 3.6.5
OpenCV version: 3.3.0

Hi @limeflavour ,
Thanks for reporting the issue.
Usually this issue is related to the Python Path that is not finding both bgs.cp36-win_amd64.pyd and libbgslibrary_core.dll as you can see here: https://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-so-it-finds-my-modules-packages
Another way is to do :
python setup.py install
or
pip install .

or:
# follow https://github.com/andrewssobral/bgslibrary/wiki/Wrapper:-Python
# by adding the following CMake parameters:
cmake -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON

PYTHONPATH is an environment variable which you can set to add additional directories that Python should add to the sys.path directory list. For most installations, you should not set these variables since they are not needed for Python to execute normal programs because Python knows where to find its standard library. PYTHONPATH is used to assist in import module lookup. So when you import modules in your Python scripts, PYTHONPATH is also looked into to check which directories might contain the imported module

Double click on bgslibrary.exe
It will show library name that could not be loaded.
Just load it from the python using ctypes.
cdll.LoadLirbary(full path to lib)
In my case it was opencv_world3418.dll
where 3418 is the version it could be different in your case.


Fetching dependencies fails with Python exception

When pushing a new version of my Go app to Heroku, the process fails with:
cd .; hg clone -U https://code.google.com/p/go-uuid /tmp/build_3bf11f97-2087-47a6-a45f-119ef80e1247/.heroku/g/src/code.google.com/p/go-uuid
Traceback (most recent call last):
File "/app/tmp/cache/venv/bin/hg", line 36, in
mercurial.util.setbinary(fp)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 102, in getattribute
self._load()
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 74, in _load
mod = _hgextimport(_import, head, globals, locals, None, level)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 43, in _hgextimport
return importfunc(name, globals, *args)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/util.py", line 16, in
from i18n import _
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 130, in _demandimport
mod = _hgextimport(_origimport, name, globals, locals)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 43, in _hgextimport
return importfunc(name, globals, *args)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/i18n.py", line 23, in
t = gettext.translation('hg', localedir, fallback=True)
File "/usr/local/lib/python2.7/gettext.py", line 465, in translation
mofiles = find(domain, localedir, languages, all=1)
File "/usr/local/lib/python2.7/gettext.py", line 437, in find
for nelang in _expand_lang(lang):
File "/usr/local/lib/python2.7/gettext.py", line 131, in _expand_lang
from locale import normalize
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 111, in _demandimport
return _hgextimport(_import, name, globals, locals, fromlist, level)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 43, in _hgextimport
return importfunc(name, globals, args)
File "/app/tmp/cache/venv/lib/python2.7/locale.py", line 182, in
_percent_re = re.compile(r'%(?:((?P.?)))?'
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 102, in getattribute
self._load()
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 74, in _load
mod = _hgextimport(_import, head, globals, locals, None, level)
File "/app/tmp/cache/venv/lib/python2.7/site-packages/mercurial/demandimport.py", line 43, in _hgextimport
return importfunc(name, globals, *args)
File "/app/tmp/cache/venv/lib/python2.7/re.py", line 222, in
_pattern_type = type(sre_compile.compile("", 0))
File "/app/tmp/cache/venv/lib/python2.7/sre_compile.py", line 502, in compile
code = _code(p, flags)
File "/app/tmp/cache/venv/lib/python2.7/sre_compile.py", line 484, in _code
_compile_info(code, p, flags)
File "/app/tmp/cache/venv/lib/python2.7/sre_compile.py", line 363, in _compile_info
lo, hi = pattern.getwidth()
File "/app/tmp/cache/venv/lib/python2.7/sre_parse.py", line 174, in getwidth
self.width = min(lo, MAXREPEAT - 1), min(hi, MAXREPEAT)
TypeError: unsupported operand type(s) for -: '_demandmod' and 'int'
Seems like an incompatible Python version?

I'm going to close this for now as I cannot duplicate.
Please re-open if this is still an issue.
Thanks!


Expose SyntaxHighlighter to scripts

Exposes SyntaxHighlighter as a Resource. Exposes a new set_syntax_highlighter method on TextEdit. Intended to be used for complex syntax highlighting support in TextEdit where add_keyword_color/add_color_region simply don't cut it. This PR does not remove those functions or change their functionality (no breaking changes).
Example usage (C#):
using System;
using Godot;
using Godot.Collections;

public class LuaHighlighter : SyntaxHighlighter {
    public override Godot.Collections.Array _GetSupportedLanguages() {
        return new Godot.Collections.Array { "Lua" };
    }

    public override Dictionary _GetLineSyntaxHighlighting(int pLine) {
        var dict = new Dictionary();
        dict[0] = new Color("#FF0000");

        dict[3] = new Color("#0000FF");
        return dict;
    }
}

TextEditNode.SetSyntaxHighlighter(new LuaHighlighter());

Fixed: GetTextEditor() would segfault. I forgot that I bound a test method to set_syntax_highlighter which didn't correctly set the editor. Removed the test method and renamed _set_syntax_highlighting to set_syntax_highlighter (_get_syntax_highlighting as well).

Updated: Exposed is_line_in_region on TextEdit, added new _line_edited virtual method to SyntaxHighlighter (I found it necessary to implement performant custom syntax highlighting).

Superseded by #38440, but thanks for the contribution nevertheless!


When there is an error in property mapping, can this property be ignored?

For example, in the following code, when objSource.Adapt<DestClass>() is executed, an exception will be thrown. Can we ignore this exception and set objDest.Id = default(int) to obtain objDest as {Id=0,Name="TestName"}?
var objSource = new SourceClass {Id="abc",Name="TestName"};
var objDest = objSource.Adapt<DestClass>();

public class SourceClass
{
    public string Id { get; set; }
    public string Name { get; set; }
}
public class DestClass
{
    public int Id { get; set; }
    public string Name { get; set; }
}

If you want non standard mapping just create a config for your types. Or use [AdaptIgnore] on 'Id' field if you can decorate your class with attributes.


Where is ZREVRANGEBYSCORE command

Returns all the elements in the sorted set at key with a score between max and min (including elements with score equal to max or min). In contrary to the default ordering of sorted sets, for this command the elements are considered to be ordered from high to low scores.
Sorry, I can't find it...

Added


improve phrasing

I'm not familiar with English.
So I wanna fix incorrect phrases at README and messages.
Please PR me😄

May I split the details to another file?
Such as the examples and CI-how-to section into EXAMPLES.md and
Checkpoint Detail section to CHECKPOINT.md file?

@KEINOS
OK! Thanks!

@KEINOS Thank you for helping me a lot!


[GOBBLIN-244] Need additional info for gobblin tracking hourly-deduped

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-244

Description

[x] Here are some details about my PR, including screenshots (if applicable):
Instead of using _recordcount file, using _state_file to save all kinds of meta data, like record count or number of executions.

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Tested MRCompactionTaskTest

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@htran1 Can you help review?


how about an app for delivery persons...?

should i add this one? tell me where

go for it

I have added the pull request. Kindly merge it under hacktoberfest label (I am not sure how to get it under hacktober fest label) I hope you'll consider my request.

After I merge it will automatically shows on your profile on hacktoberfest website


Feat/chart

What this PR does / why we need it?

splint markdown renderer for multi code canvas

Any background context you want to provide?
What are the relevant tickets?

Fixes #
Checklist

[ ] Added relevant tests or not required
[ ] Didn't break anything

@easylogic Is this PR ready to publish?


pkg/cli/tk/listbox_window.go: Fix divide by zero

Fix divide by zero when resizing terminal.
Steps to reproduce:

invoke completion menu
reduce height of terminal window

related https://github.com/elves/elvish/issues/1282

This does fix the crash, but it means that when the available height is 1 all that is visible is the scrollbar, which isn't ideal. Better to show one row of actual content instead. I'm preparing that fix.

I've implemented the fix I described so I'll close this PR. Thanks for the contribution.


Use resource service.name as zipkin service name

https://github.com/open-telemetry/opentelemetry-specification/pull/472
Right now we get the service name from the config. While we can probably keep this as a manual override of sorts, we should infer the service name where we can.

Hey, I'm willing to work on this. As far as I understand, we can detect the resource type and generate a Resource object. But I haven't seen any of the SERVICE_RESOURCE attributes (which includes service.name) being set in the code.
So is it right to detect the resource and set the zipkin service name to something like
this._serviceName = config.serviceName || resource.service.name?

The resource comes attached to the first span. I would do something like this:
class ZipkinExporter
  public serviceName?: string;
  constructor(options) {
    // user can configure a service name
    if (typeof options.serviceName === "string")
      this.serviceName = options.serviceName;
    }
  }

  public export(spans) {
    // if user has not configured service name, it comes from the first exported resource
    if (this.serviceName == null) {
      this.serviceName = spans[0].resource.labels["service.name"] ?? "Unnamed Service";
    }
    // ...
  }
}

Thanks for the help. I'll be working on it.

Is it okay to change the serviceName property of ZipkinExporter to public?
I'm trying to write some tests cases to check its value.

In tests you can access private variables like this
exporter["_privateProperty"]

@dyladan I'm doing my internship at Google and I have linked my google account to my github account. But I'm still getting error for not signing CLA in my PR.

Maybe @mayurkale22 can help here (he is a google employee)

@dyladan I'm doing my internship at Google and I have linked my google account to my github account. But I'm still getting error for not signing CLA in my PR.

Post a comment ("I signed it") to the PR to recheck the signed CLA.

@dyladan I'm doing my internship at Google and I have linked my google account to my github account. But I'm still getting error for not signing CLA in my PR.

Post a comment ("I signed it") to the PR to recheck the signed CLA.

seems like it didn't work.

seems like it didn't work.

Not sure what went wrong, did you sign up as an individual (https://identity.linuxfoundation.org/?destination=node/285/individual-signup)?

Do the interns sign up as individuals? I would assume they sign up as employees. @rezakrimi your manager should probably know.