Approach for replicating releases of providers (especially Official providers)

Thank you for reporting an issue.
What is the approach that OpenTofu is taking for how new releases of the Official Terraform providers will be replicated to the OpenTofu registry? Will OpenTofu set up some kind of automation pointing at the GitHub repos for those providers that upon the publishing of a new official release to the HashiCorp registry will then replicate the relevant artifacts from GitHub (if they exist - if not might need to build the relevant artifacts from the source code then upload them) to the OpenTofu registry within X time frame? I'm presuming here that due to the HashiCorp registry TOS change, OpenTofu will be unable to simply replicate the built artifacts from the HashiCorp registry directly to the OpenTofu registry.
For the partner and community providers, will OpenTofu take the same approach or will partner and community providers be encouraged to modify their existing release processes to publish directly to the OpenTofu registry as part of their release process? I'm also presuming that HashiCorp would not allow the official providers which they control to publish directly to OpenTofu registry as part of their release processes (although who knows since I know Google employees - not HashiCorp - are the maintainers of the Official Google provider so unclear how much control HashiCorp really has over all of the Official providers).
Will OpenTofu have its own provider docs site (eg https://registry.terraform.io/browse/providers with documentation on each provider) or should people continue to use the main Terraform registry for that documentation viewing?
Please flesh out the Does OpenTofu work with all the providers Terraform works with? question on https://opentofu.org/faq/, https://opentofu.org/registry/, and the documentation in this repo with these kinds of details.
OpenTofu Version
N/A

OpenTofu Configuration Files
N/A

Hi @joe-a-t ! Thanks for raising this, hopefully I can answer all of these questions here for you now.

What is the approach that OpenTofu is taking for how new releases of the Official Terraform providers will be replicated to the OpenTofu registry?

Opentofu has forked all of the official terraform providers, solely with the purpose of using the repo to build the artifacts. Hashicorp does not currently expose the artifacts as github releases.
This process is fully automated and has been working for a few months now. You can see an example of this here: https://github.com/opentofu/terraform-provider-aws
Our registry implementation then understands that any of the hashicorp/* providers, are redirected to those built by us (but still the same source code as what's deployed by hashicorp).

Will OpenTofu set up some kind of automation pointing at the GitHub repos for those providers that upon the publishing of a new official release to the HashiCorp registry will then replicate the relevant artifacts from GitHub (if they exist - if not might need to build the relevant artifacts from the source code then upload them) to the OpenTofu registry within X time frame?

Yes, we currently have these repos staying in sync with github actions. This is the one single change that we make to each provider repository and you can see what we're running by looking at the commits. For example: https://github.com/hashicorp/terraform-provider-aws/commit/3b706eb736bcd921ee43f12599b80187980408af
For an overview: We are syncing hourly.

For the partner and community providers, will OpenTofu take the same approach or will partner and community providers be encouraged to modify their existing release processes to publish directly to the OpenTofu registry as part of their release process?

Right now, we have scoured github for all publically available providers and modules, and populated our registry with the details of those. The metadata that powers our registry can be found at https://github.com/opentofu/registry . It is also here where any new providers, modules or gpg keys can be uploaded.
Because we did not want to require every provider and module author to re-add their providers in 2 locations, we did this initial population a little while back and ask people only to add their new providers and modules to the registry. There is more information about how people can do this in the README of the repo, and we shall be updating the website with more information soon too!

Will OpenTofu have its own provider docs site

This is currently planned and on our roadmap, but due to limited resources right we've chosen to focus on other areas first as the documentation that is availble online and in each repository can be consumed very well right now.

Please flesh out the Does OpenTofu work with all the providers Terraform works with? question on https://opentofu.org/faq/, https://opentofu.org/registry/, and the documentation in this repo with these kinds of details.

I fully agree that our documentation and messaging here should be much more easily discoverable, and I'll ensure that we get things done as soon as possible for this.
Hopefully this answers all your questions, and if you have any more please feel free to add them here, or reach out to us on slack.

Great, thank you very much. That all makes sense and sounds good. It looks like you've even got the google and google-beta unique use case handled. Feel free to tag me for review on any of the documentation updates, I will leave this issue open until those changes have been made but feel free to close this with a link to the new issue(s) if you want to track those elsewhere.


Move reading of Clipper env variables out of user code into RPC system code

This removes code duplication and makes it a little simpler to write your own Clipper model container.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1534/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1536/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1547/
Test PASSed.


Bullhorn Branded Career Portal

We have just gone into Bullhorn and configured our branded career portal to have an extra division within our company take only the IT jobs that are posted by our recruiters. Unfortunately, all jobs are posted to the main site. In our app.json file, we have added additionaljobcriteria, field, value, and sort fields, however, we cannot bypass the issue of all of our jobs posting to ONLY one site and not both. Do we need to wait for a recruiter to post a job or will this happen simultaneously with the addition of another division in the branded career portal?

The additional job criteria filters down which jobs appear on a portal.  Removing the filters or making the filters inclusive of more options will allow the jobs to appear.
Please let me know if you have any additional questions about htis

Charles,
Thank you, would this still be applicable where we have three branded portals? We have three websites, right now all of our jobs are going to our parent company's portal and each own, respective portal (on a website). We are figuring out what the best way to configure our filters and fields to ensure that jobs are only going to their appropriate website and not also going to the parent company site

Yes, this applies applies to as many career portals as you can host.
For example, lets say you have 3 Portals for different purposes: Healthcare, ITstaffing, and Nursing.  In Bullhorn you can configure your filter field (such as customText2) to be a multi select field.  Then you select which division that you want to post to.   You can then add those separate divisions to the app.json file for all 3 career portal sites to ensure they are receiving only the correct jobs.
Please let me know if you have any more questions.

Charles,
Would our jobs continue to post to the correct WEBSITE (only have one career portal) by creating this multi-select field? We have one portal, three websites, and want jobs to funnel to only their respective website. Our issue is, we are not sure how to do this without having three individual career portals.

Hello,
The portal pulls from Bullhorn.  Bullhorn does not push to a portal.   So unless the portals are configured to pull different jobs, they will all be similar.  You can do this with the same portal, but it will require custom coding to make the links to the different portals differ with a URL parameter or something similar.

Where would I add custom code so that the portal pulls those jobs and sends them to the correct website? Moreover, what portion of my career portal (one for three sites and different jobs) would need to be modified?

Assuming you link to each of your job boards separately, if you add a URL param that the portal can use to determine which jobs to pull, you will want to modify search.service, the app module file, and possibly settings service.
So basically what you may want to do is have is:
recruitingwebsite.com/careers?site=uno
recruitingwebsite.com/careers?site=dos
and have code to manage the different parameter values.
Please let me know if you have any additional questions.

The path to set a URL param does not exist for me in Siteground (career-portal, src, app, services, search). I do not have a src folder that leads to the app folder. Is there anything we can do to get that folder and modify it to set additional URL parameters for our jobs?

Hello,
A good place to start will probably be taking a look at our customizing page.  this will require closing the career portal repository, making changes to the code in the repository, then transpile the portal, and upload it

Hi I am also trying to send different jobs to two different websites.  Please can you help me with this?  A very basic overview would be appreciated as I have limited coding experience.  Thank you!


What does it mean?

It would be really nice if there were an explanation of how one might interpret the results of this method.

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

ID: 853fc221-061c-6388-afd2-7d8b7a9b31d8
Version Independent ID: 757fd3a3-1621-19ee-abd5-994968986b35
Content: LinearPredictor.GetFeatureWeights(VBuffer<Single>) Method (Microsoft.ML.Runtime.Learners)
Content Source: dotnet/xml/Microsoft.ML.Runtime.Learners/LinearPredictor.xml
Product: dotnet-ml-api
GitHub Login: @sfilipi
Microsoft Alias: johalex

This page no longer exists. Closing.


Getting "Could not find jsdoc executable" even if jsdoc exists

Currently, we are finding the jsdoc manually inside the node_modules directory inside the lib:
function getJSDocCommand() {
  var inchjs_dir = Path.join(__dirname, '..', '..');
  var finder = "find "+inchjs_dir+" -type l -name jsdoc";
  var out = sh.exec(finder, {silent: true}).output;
  var found = out.split("\n")[0].trim();
  if( found == "" ) {
    throw("Could not find jsdoc executable");
  } else {
    return found;
  }
}

But with the new version of npm we have flat dependencies, so jsdoc will be installed in the root node_modules directory
So we need to update it and just check if jsdoc exists or not
function getJSDocCommand() {
  try {
    return require('jsdoc/package.json');
  } catch () {
    throw("Could not find jsdoc executable");
  }
}

I'm working on fixing this issue currently, and I'll create a PR soon


Release/1.8.0

Release 1.8.0 to develop

Pushes the Changelog, see CHANGELOG.md
Move develop 1.9.0 from now on.

Please also check the last generated documentation for any mistake, typo, missing info, bug, ...

I don't think we need a separate PR to bump the version in develop, if people think it really is needed, then I can split this PR in two.

There's also a bug with the mirroring as the branch name detection currently breaks on /. Using the improved github.ref_name variable should fix the issue, see: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

Yes, of course for master the PR will not use the commit that bumps to 1.9.0, you'll see it if I fail to remove it anyway.


Error when running example

Hi,
First of all thanks for open-sourcing such a fantastic library for ABSA.

When  running examples-v2/aspec_polarity_classification/train_apc.py I came across the following error:
RuntimeError                              Traceback (most recent call last)
Cell In [8], line 38
     35 config.lsa = True
     36 config.seed = [random.randint(0, 10000) for _ in range(3)]
---> 38 APC.APCTrainer(config=config,
     39                dataset=dataset,
     40                from_checkpoint='english',
     41                checkpoint_save_mode=ModelSaveOption.SAVE_MODEL_STATE_DICT,
     42                auto_device=DeviceTypeOption.CPU,
     43                ).destroy()

File ~/workplace/uni/thesis/venv/lib/python3.10/site-packages/pyabsa-2.0.5-py3.10.egg/pyabsa/tasks/AspectPolarityClassification/trainer/apc_trainer.py:54, in APCTrainer.__init__(self, config, dataset, from_checkpoint, checkpoint_save_mode, auto_device, path_to_save, load_aug)
     51 self.config.task_code = TaskCodeOption.Aspect_Polarity_Classification
     52 self.config.task_name = TaskNameOption().get(TaskCodeOption.Aspect_Polarity_Classification)
---> 54 self._run()

File ~/workplace/uni/thesis/venv/lib/python3.10/site-packages/pyabsa-2.0.5-py3.10.egg/pyabsa/framework/trainer_class/trainer_template.py:180, in Trainer._run(self)
    178 self.config.seed = s
    179 if self.config.checkpoint_save_mode:
--> 180     model_path.append(self.training_instructor(self.config).run())
    181 else:
    182     # always return the last trained model if you don't save trained model
    183     model = self.inference_model_class(checkpoint=self.training_instructor(self.config).run())
...
    170                        'to map your storages to the CPU.')
    171 device_count = torch.cuda.device_count()
    172 if device >= device_count:

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

I've updated the framework/instructor_class/instructor_template.py as suggested:
...
if torch.cuda.device_count() > 1 and self.config.device == DeviceTypeOption.ALL_CUDA:
    self.model.module.load_state_dict(torch.load(state_dict_path[0]))
else:
    self.model.load_state_dict(torch.load(state_dict_path[0], map_location=torch.device('cpu')))
self.model.config = self.config
...

Now the training seems to work. It'd be nice to apply this fix. I'm also happy to write a PR if you're willing to.

Yes, thanks for your help.

I just commit an update to set the map_location=self.config.device. can you help me to test if it works?

Setting map_location=self.config.device seems to resolve the issue. Thanks for the quick fix!


[Feature] 线图大数据量下的tooltip性能优化

What problem does this feature solve?
大数据量展示：测试例子
What does the proposed API look like?
当前如果系列过多（demo中是300个系列）的时候，
即使是添加了hoverLayerThreshold配置，tooltip触发依旧存在明显的性能问题，期望可以优化性能

Usually, even 30 line series are hard to read in a chart, but 300 (!?) - impressive tapestry...

Totoally agreed.
But I do have data with a large amount of series need to render in single line chart.
Most time, the chart tells the trend of data and helps targeting series that have outliers. In the long run, it should be automaticly identified by intelligent algorithms.
tooltip.triggerOn set to 'click' could help to improve the performance, cause we don't need to trigger tooltip everytime the mouse cursor over the chart

Usually, even 30 line series are hard to read in a chart, but 300 (!?) - impressive tapestry...


Error: Getting "Requires authentication" error while exporting content.

Hello Team,
I am getting “Requires authentication” error while exporting content. I have checked looker.ini file in that all credentials and base_url’s are correct and working. Earlier it was working fine. I am getting this error since last week.  Are there any changes/modifications done in the code or do I need to add anything in my export command ? Could you please help me with this it is a  bit urgent. Also I have attached logs for your reference:
File "/usr/local/lib/python3.7/site-packages/looker_sdk/rtl/auth_session.py",line87,in_get_token self._login(transport_options)
File "/usr/local/lib/python3.7/site-packages/looker_sdk/rtl/auth_session.py", line 153, in _login
transport_options=transport_options,
File "/us/local/lib/python3.7/site-packages/looker_sdk/rtl/auth_session.py",line248,in _ok raise error.SDKError(response.value)
looker_sdk.error.SDKError: b'{"message": "Requires
authentication.", "documentation_url":"https://cloud.google.com/looker/docs/"}'

I'm also receiving the same error, with the latest release of ldeploy. Last time I was successfully able to use the feature was probably a couple months ago. @vaibhavyadnik were you able to find a solution?

Basically this is because the access_token obtained at the start ends up expiring before the process if finished and hence gets 401 unauthorised.
A smart thing the project could do is be wary of the expiration time, and if that time is passed obtain a new token so operations can continue before proceeding.
I had this issue exporting content from a giant looker instance and instead you need to export folder-by-folder to ensure the export completes before the access_token expires. From my testing it appears to expire after 1 hour.

Scratch that - it appears instead it's a problem with how gazer is handling this and does not attempt to refresh expired tokens in-process.

As a workaround, you can use a bash script to export smaller subsets in a repeated fashion to avoid issues with access_token expiring - i.e.
SOURCE="dev"
declare -a FOLDERS=("1479" "1090" "276")

# iterate over the folder IDs, as gazer ends up expiring the access token for massive exports
for i in "${FOLDERS[@]}"
do
    # export all content - dashboards, folders etc
    ldeploy content export --env $SOURCE --folders $i --local-target "./${SOURCE}"

done

Fill in the list of folder IDs you want exporting and have at it. It might take a good 6 hours or so, but it will eventually get it done.


Minecraft 1.16.5 server crashed because of productive bees

api.mclo.gs_1_raw_IUfqcFU.pdf
log
ive tried to get a different version of forge and of productive bees but it still wont work

Issues in this repository or for issues with mclo.gs, not your Minecraft server. You can get help for that with the relevant Minecraft host's discord server.


Review of model registry

I think it would be useful for someone with appropriate expertise to review how the model registry is currently implemented. (I think the user interface is basically fine .) This is part of the code that was written very early when there were many competing priorities and I feel there is room for improvement.
The main complaints I have are:

tedious to update. For example, when adding a new model-providing package, one must artificially force precompilation of MLJModels (see https://github.com/alan-turing-institute/MLJModels.jl/issues/74). And with so many packages, this takes a long while, although this is not too big a deal, at least for now.

A bit fragile: In principle anyone can follow the instructions but in practice small issues arise, which I can fix but which a newcomer might scratch their head over. The process would be hard to automate (using CI, for example) without some improvements.

lacking some flexibility in terms of the kind of metadata that can be serialised. Currently we basically do our own serialization into a toml file, which has worked so far, but for maintenance and extra generality, it might make better sense to use an external package or julia serialiaztion for this. Maybe.

Some other feedback about the system: https://github.com/alan-turing-institute/MLJModels.jl/issues/169
I believe @vollmersj had the very good idea to borrow the approach used in the julia package registry. I did not and still do not have enough familiarity with this system to take this approach but could indeed be best approach. In any case, someone with experience with that code base would presumably be in a very good position to propose a better design.
Maybe Pkg Artifacts could play a role??

Other issues:

all packages have to be loadable at the same time; so if one is behind in a compat update, this can preclude updating some other package's metadata

currently models are found by looking for subtypes of Model. In the future, this will be a trait ismodel and this approach won't work.


Release v0.3.2 (Patch)

The following 1 GitHub releases will be created once this pull request got merged.
Release v0.3.2 with changes since v0.3.1

Release v0.3.2 (Patch) 10cd8b7
Bump axios from 1.6.1 to 1.7.4 d4f29e8
Bump braces from 3.0.2 to 3.0.3 be3627b
Bump ws from 7.5.9 to 7.5.10 ad3ada7
Bump ejs from 3.1.9 to 3.1.10 70ef010
[ci] prevent triggering release-related jobs on forks 9f93170


It sometimes happen that the cli is looking for an empty dataset name when running a job

During the break-a-nerd session the following was experienced, but this still needs to be reproduced:
Infralex: nerd job run is suddenly no longer working for me:
C:\Users\overv>nerd job run --name=large-co2-calc15 nerdalize/co2-calculator 30
error: datasets.stable.nerdalize.com "nlz-nerd" not found

Turned out to be an invalid bug report, this is fixed in the latest version.


Adding https to a bunch of files

adding https where supported + remove suchflex image

this encompasses many changes to many files, but there should be no cosmetic changes beyond the removal of suchflex from the footer and https links for projects that support SSL.

"https://download.gridcoin.us/download/downloadstake/signed/snapshot.zip" doesn't work: https://github.com/gridcoin/Gridcoin-Research/issues/194

Why removing the gem lock file? It appears to have more contents than the normal gem file, does the website still serve/build without it?

Resolved gemfile lock

@grctest resolved snapshot url to http for now


this.$refs.theModal is undefined

In the example there is a ref pointing to a non existing method.

@nise hi, can you tell me how you open the example? Did you clone the  project and open index.html?


Add present? in uploader/file

Coverage decreased (-0.005%) to 83.962% when pulling f5b517af61c902527a61df4b437232e123d87050 on ShinjiTanimoto:invalid-ext into 52610475ee1cfae4f5e1fa6aecde249511956010 on shirasagi:master.


Add thefuck module

Fell free to take the file to another repo if u dont want to merge this on core, i'm fine.

@lucianomagrao This has been inactive for a while. Is it OK with you if I create a PR in contrib repo?

@LeoJWeda sure, go ahead and do it 😁

I think we'd like to keep this out of prezto-core (I'm trying to move as much functionality out of core as possible), but it would be a good candidate for the contrib repo. I'd be happy to accept it there if you want to resubmit it.

Added to contrib repo, close this please


Recalculate the remaining timeout millis correctly while throwing an InterupptedException in SocketIOWithTimeout.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
2092
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

+1
test4tests
0
The patch appears to include 1 new or modified test files.

_ trunk Compile Tests _

+1
mvninstall
1251
trunk passed

+1
compile
1075
trunk passed

+1
checkstyle
45
trunk passed

+1
mvnsite
81
trunk passed

+1
shadedclient
983
branch has no errors when building and testing our client artifacts.

+1
javadoc
82
trunk passed

0
spotbugs
142
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
140
trunk passed

_ Patch Compile Tests _

+1
mvninstall
50
the patch passed

+1
compile
1077
the patch passed

+1
javac
1076
the patch passed

+1
checkstyle
45
the patch passed

+1
mvnsite
78
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
856
patch has no errors when building and testing our client artifacts.

+1
javadoc
91
the patch passed

+1
findbugs
141
the patch passed

_ Other Tests _

+1
unit
588
hadoop-common in the patch passed.

+1
asflicense
46
The patch does not generate ASF License warnings.

8810

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1686/1/artifact/out/Dockerfile

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

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 94b88169ccf6 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / e6137d0

Default Java
1.8.0_222

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1686/1/testReport/

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

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1686/1/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


[rfc] Support for writing kernels as methods of a class

Summary
Allow writing kernels as methods of a class.
class TestClass {
    __qpu__ void test_kernel(qreg a, qreg b) { .. }
    __qpu__ virtual void test_abstract_kernel(qreg a);
}

Example: Implementing Grover oracles
Grover's algorithm requires an oracle to perform its iterations. However, each oracle varies in the number of inputs it needs. This means that we would need to implement a grover function for each oracle that varies in its kernel signature.
For example, consider the following two oracle signatures:
using Oracle1 = KernelSignature<qreg>;
using Oracle2 = KernelSignature<qreg, qreg>;

We cannot write trivially write a generic grover kernel that works on both of these kernels using only functions. We would need separate grover kernels for each oracle.
__qpu__ void grover_1(qreg input, Oracle1 oracle) { .. }
__qpu__ void grover_2(qreg input1, qreg input2, Oracle2 oracle) { .. }

This leads to duplication of code. The problem exacerbates if grover uses any internal functions (for modularity and separation of concerns sake), because we will need to have separate implementations of those functions two.
We could use variadic function arguments to implement it. However, we lose some of the guarantees that typechecking offers.
C++ classes, however, provide the right abstraction for the task. We can have a Oracle abstract base class. Concrete oracles with extend and implement its interface.
class Oracle {
  __qpu__ virtual void apply(qreg register, qubit target);
}

class VertexColoringOracle : Oracle {
private:
  // oracle-specific internal state
  qreg color_assignments;
  qreg edge_conflict_qubits;
  vector<tuple<int, int>> starting_colors;

public:
  VertexColoringOracle(qreg color_assignments, qreg edge_conflict_qubits,
                       vector<tuple<int, int>> starting_colors)
      : color_assignments(color_assignments),
        edge_conflict_qubits(edge_conflict_qubits),
        starting_colors(starting_colors) {}

public:
  __qpu__ void apply(qreg register, qubit target) {
    // oracle logic
  }
}

__qpu__ void grover(qreg register, qubit target, Oracle oracle) {
  // grover implementation
  // can invoke oracle.apply(register, target) to apply the oracle
}

Note how here we can define a grover kernel that can work with any oracle that satisfies the Oracle interface

First off - I've been thinking about this for a long time, and have wanted to incorporate custom class definitions with qpu kernel methods. I think this is a great idea, thank you for adding this Issue tracker for it. There are many reasons one would want to do this.
One question I have about your reason for bringing this up for grover - you mention that for different grover oracles (with different signatures) you have to create a new KernelSignature, and therefore a new grover function call taking that new KernelSignature. This is certainly correct, but I see the same issue if you elevate the oracle to a class too. For each oracle you would need to define a new class with a different qpu method signature, so you are sort of in the same place you started. Of course you pick up the ability to operate on internal data members, but you would still require a grover library call for each Oracle superclass type. Am I misunderstanding anything here?
You could of course define an Oracle supertype with a very simple apply with no arguments, and then provide the argument data at Oracle subtype construction (stored as internal members). Then you could have a general grover that took the superclass pointer, and operate on it that way.

To just add on to my thinking on this - we could define like a qclass macro that is treated like a keyword in the language extension. This macro could rewrite the class definition to be inside the function body of a qpu kernel, and we could define a token collector that parses it, extracts the qpu methods and writes them as standard functions declared before the class definition, and rewrites the entire class definition as the same class but with qpu kernel methods replaced to call the newly created kernel functions.

qclass TestClass {
public:
  __qpu__ void qmethod(qreg q) { ...}
};

macro rewrites to
__qpu__ void TestClass(qreg q) {
  class TestClass {
    ...
  };
}

TokenCollector rewrites to
__qpu__ internal_qmethod(qreg q) {
 ...
}
class TestClass {
public:
  void qmethod(qreg q) {
    internal_qmethod(q);
  }
};

We will need to autogen the qpu declared internal_qmethod manually since the SyntaxHandler will have already run (maybe we could forward declare it and it will be picked up immediately after...).

Adding to Alex's comments above, I think in general a Grover oracle can be represented as a KernelSignature<qreg>.
In case we want to reuse an existing kernel with a different signature, a simple unpack would be sufficient:
__qpu__ void oracle_wrapper(qreg input) {
	auto qreg1 = input.extract_range(..);
	auto qreg2 = input.extract_range(..);
	oracle(qreg1, qreg2);
}

In case there are extra variables that we want to provide to the oracle, the oracle's KernelSignature could be constructed as a qpu_lambda as well.


Could not find a package configuration file provided by "google_cloud_cpp_rest_internal"

Does this issue affect the google-cloud-cpp project?
vcpkg @ a5d6d1
What component of google-cloud-cpp is this related to?
"dependencies": [
    {
      "name": "google-cloud-cpp",
      "default-features": true,
      "features": [
        "storage"
      ]
    }
  ]

Describe the bug
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package):
  By not providing "Findgoogle_cloud_cpp_rest_internal.cmake" in
  CMAKE_MODULE_PATH this project has asked CMake to find a package
  configuration file provided by "google_cloud_cpp_rest_internal", but CMake
  did not find one.

  Could not find a package configuration file provided by
  "google_cloud_cpp_rest_internal" with any of the following names:

    google_cloud_cpp_rest_internalConfig.cmake
    google_cloud_cpp_rest_internal-config.cmake

  Add the installation prefix of "google_cloud_cpp_rest_internal" to
  CMAKE_PREFIX_PATH or set "google_cloud_cpp_rest_internal_DIR" to a
  directory containing one of the above files.  If
  "google_cloud_cpp_rest_internal" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.23.1/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  cmake-build-debug/vcpkg_installed/x64-osx/share/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake:16 (find_dependency)
  vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
  google_cloud_bucket_c/CMakeLists.txt:29 (find_package)

-- Configuring incomplete, errors occurred!
See also "google-cloud-bucket-c/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "google-cloud-bucket-c/cmake-build-debug/CMakeFiles/CMakeError.log".

To Reproduce
Steps to reproduce the behavior:

git clone --depth=1 https://github.com/offscale/google-cloud-bucket-c
mkdir google-cloud-bucket-c/build && cd "$_"
cmake -DCMAKE_TOOLCHAIN_FILE='[root]/vcpkg/scripts/buildsystems/vcpkg.cmake' -DCMAKE_BUILD_TYPE='Debug' ..
cmake --build .
See error

Or if you don't want to use my package, then use the aforementioned vcpkg.json with:
find_package(google_cloud_cpp_storage CONFIG REQUIRED)
target_link_libraries(
        "${LIBRARY_NAME}"
        PRIVATE
        "CURL::libcurl" "google-cloud-cpp::storage" "google-cloud-cpp::experimental-storage-grpc"
)

Expected behavior
No error
Operating system:
macOS 12.2.1 (21D62)
What compiler and version are you using?
Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)
Target: x86_64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

What version of google-cloud-cpp are you using?
1.40.1
Additional context
This was working previously

Reproduced using:
FROM debian:buster

RUN apt-get update && \
    apt-get --no-install-recommends install -y apt-transport-https apt-utils \
        automake build-essential ca-certificates ccache cmake curl git \
        gcc g++ libc-ares-dev libc-ares2 libcurl4-openssl-dev libre2-dev \
        libssl-dev m4 make ninja-build pkg-config tar wget zlib1g-dev

RUN apt-get update && apt-get --no-install-recommends install -y zip unzip tar cmake ninja-build

WORKDIR /var/tmp/build/vcpkg
#              https://github.com/microsoft/vcpkg/archive/refs/heads/master.zip
RUN curl -sSL https://github.com/microsoft/vcpkg/archive/40a4e68a4f177c1569aca69bfe1ba59b8153a8a1.tar.gz | \
     tar -xzf - --strip-components=1

RUN ./bootstrap-vcpkg.sh
RUN ./vcpkg install google-cloud-cpp[core,iot]

WORKDIR /var/tmp/build/google-cloud-cpp
RUN curl -sSL https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/v1.40.1.tar.gz | \
     tar -xzf - --strip-components=1

WORKDIR /var/tmp/build/google-cloud-cpp/google/cloud/iot/quickstart
RUN cmake -H. -B.build -DCMAKE_TOOLCHAIN_FILE=/var/tmp/build/vcpkg/scripts/buildsystems/vcpkg.cmake
RUN cmake --build .build

Aside: this is unrelated to this bug, some suggestions for improvement:

Your vcpkg.json has "default-features": true, consider false so you can avoid compiling libraries you do not use (bigtable, spanner, pubsub, etc.) and their dependencies (protobuf and  gRPC).
I am not sure why vcpkg recommends google-cloud-cpp::experimental-storage-grpc for target_link_libraries().  You can safely remove that unless you really want to use the gRPC plugin for GCS, but keep in mind that (1) it is not GA, as the name implies, (2) the service itself is not GA and only available if you are on an allow-list, (3) only workloads with extreme throughput needs (and I mean extreme) benefit from it.

Thanks for addressing this + making a self-contained replica
On the aside:

yeah I think originally I had an error when I had "default-features": false and because of the slow build times I didn't investigate to fix
actually I would benefit from extreme workloads, my client actually is expecting huge throughput (video files, that are then processed through ML). Should apply for being added to that list [know anyone? :P]

The vcpkg folks just merged my patch, closing.


Errors raised inside onError cause infinite loading

Describe the bug
If there's an error raised inside the onError function, the state of the query will be stuck on isLoading.
I think it should be considered as any other query error so the user doesn't see an infinite loading screen.
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/admiring-fog-9q7y43
Steps to reproduce

Add an onError function to any query
Throw an error inside the error function
Print the isLoading and isError variables

Expected behavior
I expect isLoading to be false and isError to be true, but instead isLoading is true and isError is false
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform

OS: macOS 14.0
Browser: Arc 1.15.1

Tanstack Query adapter
react-query
TanStack Query version
v4.7.1
TypeScript version
No response
Additional context
No response

the callbacks on useQuery are deprecated and have been removed in v5, so we're not going to look into this, sorry.

https://github.com/TanStack/query/discussions/5279


Make properties pane resizable

Resource Viewer properties sometimes contain long fields that are not easy to read. To address that, Properties pane is now resizable. By default, it takes  25% of parent width and can be resized to contain anything from 20% - 70%.
https://user-images.githubusercontent.com/34245594/120484547-6d27a400-c370-11eb-8a53-bfb57d3dfaa7.mov
Also tweaked css parameters to address minor cosmetic issues.
Signed-off-by: Milan Klanjsek<EMAIL_ADDRESS>

@xtreme-vikram-yadav PTAL


Get the demo working against a public network

Choose one of {Scroll Sepolia, Polygon mainnet, Mantle} /

A first step could be to get some funded EOAs on these chains (stash keys in notion / .env.local file)

Entrypoint on Polygon testnet:
https://mumbai.polygonscan.com/address/0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789#code


Checking for new documentation is failing

> C:\Programs\Accessories\CiscoEndpointDocumentationReleaseIssueCreator.exe --github-access-token ghp_xxx
Checking version of latest documented release...
Unhandled exception. System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
   at IssueCreator.IssueCreator.findLatestDocumentation()
   at IssueCreator.IssueCreator.CreateIssueIfMissing()
   at IssueCreator.IssueCreator.Main(String[] args)
   at IssueCreator.IssueCreator.<Main>(String[] args)

This was caused by the User-Agent request header value causing a 403 error. Changed header value to get 200.


Changing branding: Adding a "Save changes" button to let the user know they have made the change successfully

As a user, I want to know that the selection I have made, has been successfully changed to my form since I cannot preview it until I publish.
Users currently cannot see their branding selection in the preview (something we could change, larger lift). For now, I was thinking we can add a "Save changes" button similar to the other pages under /Settings.

For now, I was thinking we can add a "Save changes" button similar to the other pages under /Settings

Yes I agree this the first step to make


Consul election causing app instance failures

This is related to an issue we already raised: https://github.com/cloudfoundry/diego-release/issues/177.
The cells maintain a presence via a lock in consul. If they loose the presence, the app instances on the cell are killed and redeployed to other cells.
The cell may loose the lock when there is no consul leader. It may happen when the consul leader VM is updated. Normally the election happens in a few seconds.
The workaround to solve the issue above was to add a 5s timeout to the cell to cover the election case. However, we have observed that sometime the election takes 5-6 seconds, which is enough to trigger the whole killing process again.
We could increase the timeout again to cover that. But maybe we should think of a more permanent solution. For example, if the instances on the missing cell were killed after being redeployed to other cells, we wouldn't see those errors.

Thanks for the report, @saliceti. In order for us to understand the full extent of the behavior you describe, can you provide logs from the BBS and the cell reps that illustrate the exact timing of these events during the consul unavailability and subsequent recovery? If the cell presences are gone, the BBS by definition can't actively kill instances (as it can't find their hosts), but if replacement instances are being scheduled and claimed by cells as they re-establish their cell presences, that could produce significant instance churn and potentially downtime as the system reconciles itself. The re-scheduling process itself may also result in the routes for these instances being unregistered, as networking information will be removed from the BBS's ActualLRP records, even if the instances themselves remain running.
Thanks,
Eric

Closing due to inactivity. If you see this behavior again and can provide adequate logs, we'll look into it. We're also considering other refinements to handling suspect cell registrations, but nothing definite scheduled in the Diego tracker yet.
Thanks,
Eric

Sorry I missed your message, and now I don't have access to these logs anymore. The important bits were the same as in https://github.com/cloudfoundry/diego-release/issues/177
If the error happens again, I will gather more logs.


[Subgraph] Update Subgraph Mappings for new contracts

Overview
New contract version requires several mapping updates.

Shares token is now it's own contract just like the loot token
Proposal submission requires a gas estimate for the action execution
Some events have changed and need to be updated around share tracking on members. We will now use the loot and share token transfer events

To do

[x] Add shares token address field
[x] Add proposal action gas estimate field
[x] Add loot and share token templates
[x] Baal Factory mapping: Adjust event to capture shares token field
[x] Baal Factory mapping: Register the share and loot token as templates in the mapping
[x] Baal mapping: Update proposal submission event to capture baalGas
[x] New Share and Loot token mappings: track members balances - need to adjust logic in Ball mappings and rework the mint and burn events

blocked by https://github.com/HausDAO/daohaus-monorepo/issues/203


Update @nx/workspace to 19.6.4

Update Nx from 19.6.3 to 19.6.4

Auto-generated by create-pull-request

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.63%. Comparing base (960d754) to head (645a462).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #159   +/-   ##
=======================================
  Coverage   97.63%   97.63%
=======================================
  Files          17       17
  Lines         211      211
  Branches       30       30
=======================================
  Hits          206      206
  Misses          5        5

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


additional path on activation

i like to add a path to my pipenv shell/run on activation.
inside a project with a requirements.txt and setup.py i run pipenv --python 2.7 install
after that i have setuptools and zc.buildout installed, as its an requirement
now i run pipenv shell and my virtualenv has the buildout command.
then i install additional stuff via buildout which are placed inside /bin.
things like i18ndude, zope instance and such.
all those i can't access directly (which worked using virtualenv on its own).
is there a way to add ./bin - which is next to pipfile and piplock - on activation via pipenv shell?
as i run multiple project that way, it would be handy.
thanks for any advice in advanced :)
$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/usr/local/Cellar/pipenv/2018.11.26_4/libexec/lib/python3.8/site-packages/pipenv'
Python location: '/usr/local/Cellar/pipenv/2018.11.26_4/libexec/bin/python3.8'
Python installations found:

3.7.7: /Users/iham/.pyenv/versions/3.7.7/bin/python3
3.7.7: /Users/iham/.pyenv/versions/3.7.7/bin/python3.7m
3.7.3: /usr/bin/python3
2.7.17: /Users/iham/.local/share/virtualenvs/akbild.deploy-vd4Dj4UK/bin/python
2.7.17: /Users/iham/.pyenv/versions/2.7.17/bin/python
2.7.16: /usr/bin/python
2.7.16: /usr/bin/pythonw

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.8.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '19.4.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST '
                     '2020; root:xnu-6153.101.6~15/RELEASE_X86_64',
 'python_full_version': '3.8.2',
 'python_version': '3.8',
 'sys_platform': 'darwin'}

System environment variables:

PATH
LDFLAGS
MANPATH
TERM_PROGRAM
NVM_CD_FLAGS
PIP_PYTHON_PATH
SHELL
TERM
TMPDIR
CPPFLAGS
NVM_PATH
TERM_PROGRAM_VERSION
ZSH
USER
NVM_DIR
COMMAND_MODE
SSH_AUTH_SOCK
__CF_USER_TEXT_ENCODING
VIRTUAL_ENV
PAGER
LSCOLORS
PIPENV_ACTIVE
_
NVM_NODEJS_ORG_MIRROR
PWD
P9K_SSH
LANG
P9K_TTY
XPC_FLAGS
PYTHONDONTWRITEBYTECODE
XPC_SERVICE_NAME
HOME
PYENV_SHELL
SHLVL
LOGNAME
LESS
PIP_DISABLE_PIP_VERSION_CHECK
NVM_BIN
PKG_CONFIG_PATH
NVM_IOJS_ORG_MIRROR
COLORTERM
PIP_SHIMS_BASE_MODULE
PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

PIPENV_ACTIVE: 1

Debug–specific environment variables:

PATH: /usr/local/Cellar/pipenv/2018.11.26_4/libexec/tools:/Users/iham/.local/share/virtualenvs/akbild.deploy-vd4Dj4UK/bin:/usr/local/opt/openssl@1.1/bin:/Users/iham/.nvm/versions/node/v13.13.0/bin:/usr/local/sbin:/Users/iham/.pyenv/shims:/usr/local/Cellar/pipenv/2018.11.26_4/libexec/tools:/usr/local/opt/openssl@1.1/bin:/usr/local/sbin:/Users/iham/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/openssl@1.1/bin:/usr/local/sbin:/Users/iham/.pyenv/shims
SHELL: /bin/zsh
LANG: en_GB.UTF-8
PWD: /Users/iham/SandBox/AkBild/akbild.deploy
VIRTUAL_ENV: /Users/iham/.local/share/virtualenvs/akbild.deploy-vd4Dj4UK

Contents of Pipfile ('/Users/iham/SandBox/AkBild/akbild.deploy/Pipfile'):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
"zc.buildout" = "*"

[requires]
python_version = "2.7"

Contents of Pipfile.lock ('/Users/iham/SandBox/AkBild/akbild.deploy/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "9eb333ed5fd32e6d71234dbc38797c81a5eec4c948c207159e0defa7e44f52d6"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "2.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "zc.buildout": {
            "hashes": [
                "sha256:0880f131cd5f3c5f6a5e1d17add9d6bead079a4236056c3f896609ebd680c8c1",
                "sha256:d6691a864a7f14b3302ed9a9ab5790f2efc883375033371c1c959fedc72bccb7"
            ],
            "index": "pypi",
            "version": "==2.13.3"
        }
    },
    "develop": {}
}

Hey there, thanks for filing this issue and opening this discussion!
This is an interesting proposal, I did not know that virtualenv implicitly added ./bin to the path at runtime!
I'm not sure what could make sense here, but we have a few options:

We could implicitly add ./bin as virtualenv does;
We could provide some mechanism in Pipfile (or some other config file) for specifying additional paths to include when using pipenv run or pipenv shell;
We could encourage people to use sitecustomize.py and/or provide some mechanism for helping to achieve that;
We could encourage users to set this in .env, e.g. PATH="${PWD}/bin:${PATH}" which actually already works fine (I just tested this)

Any substantial changes to how pipenv works will require a PEEP or a pipenv enhancement proposal, submitted as a pull request to the peeps directory as a markdown document -- so if the first or second option seems right, you should describe how the behavior should work in a short markdown document like one of the existing documents and make a pull request.
If the later options work ok, feel free to close this issue and let us know which one worked for you. Thanks!

thank you for your quick reply! i rly appreciate that.

"This is an interesting proposal, I did not know that virtualenv implicitly added ./bin to the path at runtime!"

i might have formulated that a bit "wrong"
when creating a virtualenv i usually do virtualenv -p mypython . inside my project folder.
that creates the virtualenv there (as i used "." as the target) and includes everything inside. so ./bin is included implicit not explicit.
as pipenv creates virtualenvs in some other place (in the users home), it does not included the current project path on activation.
thats my "problem" i'd like to solve.
or maybe i was plainly to stupid to try that .env approach you mentioned in 4. shame on me.
(any thoughts about dockers usage of the same .env file?)
i will give it a try in a few hours and close the ticket if that works.

it is!

thank you @techalchemy - this works like a charm and as i am used to work with virtualenv!
awesome :)
i'll close the issue.


📈 Figure captions on Jupyter Outputs

✍🏼  outputs are editable

@rowanc1 shouldn't versionToDTO be explicitly providing title, description (and now caption) as these also live on the version as well as the block...?
https://github.com/curvenote/blocks/blob/main/src/blocks/index.ts#L139

I took it off the dto so there was no confusion as to where the app should look for title description.
I think that might be good for now? Esp as app doesn't really make use of that. Might be different for the caption though?


[MRG] array2hist and hist2array

[x] implement array2hist and hist2array functions with docstrings
[x] maintain 100% test coverage

>>> from root_numpy import array2hist, hist2array
>>> import numpy as np
>>> from rootpy.plotting import Hist2D
>>> hist = Hist2D(5, 0, 1, 3, 0, 1, type='F')
>>> array = np.random.randint(0, 10, size=(7, 5))
>>> array
array([[6, 7, 8, 3, 4],
       [8, 9, 7, 6, 2],
       [2, 3, 4, 5, 2],
       [7, 6, 5, 7, 3],
       [2, 0, 5, 6, 8],
       [0, 0, 6, 5, 2],
       [2, 2, 1, 5, 4]])
>>> array2hist(array, hist)
>>> hist2array(hist) # dtype matches histogram type (D, F, I, S, C)
array([[ 9.,  7.,  6.],
       [ 3.,  4.,  5.],
       [ 6.,  5.,  7.],
       [ 0.,  5.,  6.],
       [ 0.,  6.,  5.]], dtype=float32)
>>> hist2array(hist, include_overflow=True) # overflow is excluded by default
array([[ 6.,  7.,  8.,  3.,  4.],
       [ 8.,  9.,  7.,  6.,  2.],
       [ 2.,  3.,  4.,  5.,  2.],
       [ 7.,  6.,  5.,  7.,  3.],
       [ 2.,  0.,  5.,  6.,  8.],
       [ 0.,  0.,  6.,  5.,  2.],
       [ 2.,  2.,  1.,  5.,  4.]], dtype=float32)
>>> array2 = hist2array(hist, include_overflow=True, copy=False)
>>> hist[2, 2] = -10
>>> array2 # views the same memory as hist because copy=False
array([[  6.,   7.,   8.,   3.,   4.],
       [  8.,   9.,   7.,   6.,   2.],
       [  2.,   3., -10.,   5.,   2.],
       [  7.,   6.,   5.,   7.,   3.],
       [  2.,   0.,   5.,   6.,   8.],
       [  0.,   0.,   6.,   5.,   2.],
       [  2.,   2.,   1.,   5.,   4.]], dtype=float32)
>>> hist[2, 3] = -10 # x, y, z axes correspond to axes 0, 1, 2 in numpy
>>> array2
array([[  6.,   7.,   8.,   3.,   4.],
       [  8.,   9.,   7.,   6.,   2.],
       [  2.,   3., -10., -10.,   2.],
       [  7.,   6.,   5.,   7.,   3.],
       [  2.,   0.,   5.,   6.,   8.],
       [  0.,   0.,   6.,   5.,   2.],
       [  2.,   2.,   1.,   5.,   4.]], dtype=float32)

@ndawe - How does this handle errors stored in bins? What if someone used TH1F::Sumw2() and wanted to extract all information from the histogram in the form of numpy arrays?

That will be added later. The default call will only return the bin contents but the yet to be implemented return_errors option will return the bin errors as a second return value. This way the function call isn't doing more than what is needed if only the bin contents are required. I'll also be adding a return_edges argument to return the bin edges.

Awesome, few more questions if you don't mind (still learning cython and you seem magical)

why do you need hist.GetNBinsX() + 2? This seems like a strange counting error. Does this include the outer two bins?
why do you only write code for array_hNc()?
are the other helper functions for things like h1d_array just setting the pointer for root_hist to point at array or is it copying values over?

hist.GetNBinsX() + 2 includes the underflow and overflow bins. I needed to write the array_hNc() functions because GetArray() on the TArrayC returns a python string (PyROOT's pythonization) since the return type is char*, but the other TArray types give you a buffer object that numpy.array is happy with. So TArrayC needed to be handled on the Cython size. The array->hist direction requires copying but hist->array doesn't need to copy. For array->hist I could not reliably have the ROOT histogram view the same memory as the numpy array (by simply pointing hist.fArray at the memory) since the numpy array owns that memory and deleting the history results in a double-delete eventually. I could hack the numpy array to release ownership but still numpy uses malloc and the ROOT histogram uses delete instead of free. I concluded there was no reliable way to have the histogram view the same memory as the numpy array for array->hist and a copy is always done.

Hello,
I just started to use numpy for my THn multidimensional histograms. Currently, I am copying my content from the histogram to the numpy array in pure python which is very slow. I took a look at your implementations of hist2array and figure that the problem with THn is that it uses TNDArray, is it not? I just wanted to ask for your opinion and experience with this before diving into this further. I suppose that in the case of THn one has no other option than to loop over the TNDArray elements and to write them into a new buffer with which numpy is happy, or am I mistaken here? Do you see other complications for extending hist2array to n dimensions? Thank you very much (for this an for all your other amazing work)!
Cheers,
Christian

Yeah we will need to write specific converters for TNDArrays that will loop over the bins. It won't be as easy as TH1/2/3 but I imagine the cythonized loops will be much faster than python. Could you share your python code that does the same thing? This could really help porting it to cython in root_numpy.

Thanks for your quick reply! Here is the code I am using right now.
def my_hist2array(hist, dtype, default_value=None):
    out = np.full([hist.GetAxis(i).GetNbins() for i in range(hist.GetNdimensions())], default_value, dtype=dtype)
    coord = np.array(range(hist.GetNdimensions()), dtype=np.int32)
    overflow_coords = np.array([hist.GetAxis(i).GetNbins() for i in range(hist.GetNdimensions())], dtype=np.int32)
    for ibin in xrange(hist.GetNbins()):
        cont = hist.GetBinContent(ibin, coord)
        if cont and np.all(coord) and np.all(coord - overflow_coords <= 0):
            out[tuple(coord-1)] = cont
    return out

As you can see, this is really just a quick hack for my needs but I hope it is still helpful!

Thanks @cbourjau! This really helps. I should be able to get this into root_numpy for a new release really soon.

Fantastic! Thanks again!

To be consistent with TH1/2/3 I'm going to have empty bins translate to 0 elements instead of NaN. That's the only fundamental change I'm making to your code. This can always be changed by the user with something like a[a==0] = np.nan

@cbourjau see the new PR #237

@cbourjau comments are welcome on #237. I'll leave the PR open for a day or so before merging and making a release.

@ndawe Works splendidly and gives me a nice speed-up by 2 orders of magnitude! Thanks so much!

Sweet. That's good to hear. 4.4.1 is now released.


Error occured when trying to display WMV video

Detail:
When trying to use Dplayer to display a WMV video(src refers to a wmv file), the video can display in Chrome 96.0.4664.45 but an error that video control panel load failure will occur.
In the console, the error message is:

Environment: Chrome 96.0.4664.45
Dplayer version:  v1.26.0 63275c8

As a result, the progress bar is failed to work properly.


fix changes to choices not having any effect

Changes to the choices prop currently don't have any effect because choicesMerged is not declared as a reactive variable.
In our case this was causing issues when we wanted to update labels and descriptions of the choices when the user changes the site language.
This PR changes choicesMerged to a reactive variable to ensure the dialog respects the updated choices.

Nice spot - thanks!

Released as v7 with updated deps / security fixes / lint / working demo. thanks :)


Add transaction name support

This uses the current route name (when possible) as the transaction name.

This change is

I'm considering that we might want to split on \ for some things as showing full class paths isn't overly useful here.

This is now available in 0.4.0


Make URL box longer for very long URLs so I can see the whole string

what happens
When I paste a very long string in the URL box, it does not fit in the box.

what I would like to happen
I would like to see the whole string without interference

strange, the text shouldnt cover the enter button anymore.
but nevertheless, yea, could tranform it to dyanmic height text field to show full text.


Consider adding a bottom-border modifier for breadcrumbs

Related component

Breadcrumbs

Context
Some usages of the breadcrumbs component include a bottom border to visually separate the breadcrumbs from subsequent content. This is most notable on product pages, where a colour inverted version of the breadcrumbs is often used as one part of a larger hero area.
Examples
The (former) PaaS product page

GOV.UK Notify product page

GOV.UK Pay product page

Alternatives
This is currently achieved by using custom CSS on top of the Design System. It may also be achieved in a limited fashion using section breaks.

I wonder if this is unique to this product page ‘Masthead’ component, and in which case the modification could/should sit there?
Now, if we were to introduce such a component into the Design System, that would be a very fine thing indeed. 😄


IntelliSense not working in razor views in different output folders than "bin"

I have many projects in my solution, and to improve the build performance, I changed all output projects to a folder that I created. However, the IntelliSense from razor views stopped to work. I spent many hours to discovery the issue, and is because the IntelliSense only work with the output project setting to the "bin" folder. I would like to know if it a bug or if exists something to do in this case.
I'm using VS 2015.

@renatoleite which version of ASP.NET are you using? ASP.NET Core is supported only in VS2017, and ASP.NET Core 2.0 requires VS2017 Update 3. VS2015 is not supported at all for ASP.NET Core.

.NET 4.6.2

@renatoleite ah ok this repo is specifically for ASP.NET Core. For issues with previous versions of Razor please file a Visual Studio Feedback item using VS's built-in feedback system and it will get routed to the appropriate group.


operationLocation is null

Hello,
The line below gives a compilation error on readInStreamWithServiceResponseAsync method.
ReadInStreamHeaders responseHeader =
vision.readInStreamWithServiceResponseAsync(localImageBytes, null, null)
.toBlocking()
.single()
.headers();
However, I tried the code below and it was working, but now operationLocation is returned as null. I haven't changed anything on the code, I'm using the same samples I used before.
ReadInStreamOptionalParameter rss = new ReadInStreamOptionalParameter();
ReadInStreamHeaders responseHeader =
vision.readInStreamWithServiceResponseAsync(image, rss).toBlocking().single().headers();

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

ID: afd2df6e-4c2e-eaf8-1fe2-9bae807f5680
Version Independent ID: d1fb5a5b-a555-4cd0-0330-855681654a38
Content: Quickstart: Read client library or REST API - Azure Cognitive Services
Content Source: articles/cognitive-services/Computer-vision/quickstarts-sdk/client-library.md
Service: cognitive-services
Sub-service: computer-vision
GitHub Login: @PatrickFarley
Microsoft Alias: pafarley

I have the exact same problem that started on 8/19. Interested to know the resolution.

@MoAGitHub Thanks for the question. We are investigating the issue and will update you shortly.

Thanks for the update @kevin-titantech. We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

The error of no operation  location being passed back has surfaced again today. We have made no code changes since the original occurrence which cleared itself up last week. I wonder if this is either a subscription issue, or OCR service backend issue, or some other Azure environmental issue. Please re-open this ticket.

@kevin-titantech Thanks for the details. The product team debugging further on this, will update once the issue fixed.

@ram-msft @PatrickFarley I created new endpoint and subscription key to solve this issue, but it started happening again in the new one as well. Any updates on this issue?

Please raise an issue in the Quick-start code https://github.com/Azure-Samples/cognitive-services-quickstart-code/issues.

I have the same problem where the operationLocation = null.
// Read in remote image and response header
ReadInStreamHeaders responseHeader =
vision.readInStreamWithServiceResponseAsync(image, null).toBlocking().single().headers();


Omit the value attribute from select options with no value

In HTML, if you omit the value attribute from an <option> the value defaults to the text contained inside the element.
However if you omit the value from an option when using the govukSelect macro, we currently include an empty value attribute on the <option> element. This would mean that when submitting a form using a select with options with no value set, the value submitted would be the empty string.
Instead, omit the value attribute if no value option has been provided. We then mimic the default HTML behaviour, as the option value will then naturally fall back to the text content.
We still need to ensure that the value attribute is included when the value option is passed but has a falsey value (like an empty string, 0, or boolean false).
Also allow the top-level value option on a govukSelect to work with options that have no explicit value set by comparing it to the text content instead.
Fixes #3440.

@36degrees Do we need a CHANGELOG entry for this should anyone rely on the old behaviour?

Do we need a CHANGELOG entry for this should anyone rely on the old behaviour?

D'oh! I'd added it but not pushed. Have applied your suggestion and updated.


Create a rule to add a specific format to file headers

Add a file headers format like swiftformat (the other one does), but we can improve it, by adding a way to insert variables and, using the created date .year not from the file, but from the git.

Synced to Apple’s issue tracker as rdar://129247437

You might want to support the REUSE header format:
https://reuse.software/faq/#why-reuse
// SPDX-FileCopyrightText: 2024 Jane Doe<EMAIL_ADDRESS>//
// SPDX-License-Identifier: BSD-3-Clause-No-Military-License

/*
 * SPDX-FileCopyrightText: 2020-2024 John Doe<EMAIL_ADDRESS> *
 * SPDX-License-Identifier: Apache-2.0 OR MIT
 */


Draft changelog for Backbone 1.2.0

Still needs:

[x] document #3039
[x] bump Underscore version if #3307 is merged
[x] update copyright year in LICENSE

@jashkenas where are we at with this?

I dunno about the status of this particular ticket, but it would be lovely to push out a new release.

Yeah I don't particularly care if you use this change log or roll your own
but I think it's time.

It's long, long past time, my friend.

So what's the game plan?
On Fri Feb 13 2015 at 4:37:29 PM Jeremy Ashkenas<EMAIL_ADDRESS>wrote:

It's long, long past time, my friend.
—
Reply to this email directly or view it on GitHub
https://github.com/jashkenas/backbone/pull/3285#issuecomment-74331259.

Can we make a list of issues to close pre-1.2

There's only one game plan: Do it.
But I'm afraid I don't have time this afternoon...

Nah for sure. I just don't want this to fall off the radar like it has for
the past 8 months.
Happy to help triage some issues and fixup the changelog if it means we're
actually going to launch something.
On Fri Feb 13 2015 at 4:46:26 PM Jeremy Ashkenas<EMAIL_ADDRESS>wrote:

There's only one game plan: Do it.
But I'm afraid I don't have time this afternoon...
—
Reply to this email directly or view it on GitHub
https://github.com/jashkenas/backbone/pull/3285#issuecomment-74332559.

Absolutely, and it's appreciated. If you want to whip things into shape — then simply going through and reviewing the open tickets, and the draft changelog, and the edits to the documentation ... is the bulk of it. If you do that, and send me a note that says — hey Jeremy, I reviewed the current status of master, and I'm telling you that it's ready to cut for release — I can give it a glance-over and push one out on your good word ;)

Alright @megawac, let's do this :)
Probably not today or tomorrow but I'll take a look Sunday or Monday. Last
I checked there wasn't a ton added since August (
https://github.com/jashkenas/backbone/compare/1.1.2...master)
On Fri Feb 13 2015 at 4:56:25 PM Jeremy Ashkenas<EMAIL_ADDRESS>wrote:

Absolutely, and it's appreciated. If you want to whip things into shape —
then simply going through and reviewing the open tickets, and the draft
changelog, and the edits to the documentation ... is the bulk of it. If you
do that, and send me a note that says — hey Jeremy, I reviewed the current
status of master, and I'm telling you that it's ready to cut for release —
I can give it a glance-over and push one out on your good word ;)
—
Reply to this email directly or view it on GitHub
https://github.com/jashkenas/backbone/pull/3285#issuecomment-74333991.

It might be worthwhile to prune a couple of the major dependents before you publish

[ ] Marionette: 2 router tests are failing (otherwise looks fine)
[x] Epoxy pass
[x] Relational pass
[ ] Associations crash
[ ] VirtualCollection fails
- previousAttributes regression?

ETC.

There's a bunch of open PRs that I'd personally love to see make it in for a new release (last one was a year ago)

@EnzoMartin any in particular?

@akre54
Actually a bunch of them got merged recently, woot
There's still #3395 and some "Quality of Life" stuff for the documentation: #3338 #3419

@EnzoMartin merged the first two. I'll let Jeremy decide on the last one though I don't see why not (and it also shouldn't block this release regardless)

Need:

[ ] https://github.com/jashkenas/backbone/pull/3489
[ ] https://github.com/jashkenas/backbone/pull/3434 OR https://github.com/jashkenas/backbone/pull/3506
[ ] https://github.com/jashkenas/backbone/pull/3330

Possibly:

[ ] https://github.com/jashkenas/backbone/pull/3421

Any ideas on target release date?

I'd like to see us figure out the deal with #3421, #3038 et al before release, but otherwise I think we're good to go. @jridgewell @megawac anything else from you guys?

Hmm, just want to run the test suites of dependents on the new version - did anyone ever look into the VirtualCollection issue I mentioned

No but maybe @p3drosola could chime in. What's busted specifically?

There you go — I closed those two tickets.

Hey @megawac @akre54, I just got the mention. Happy to take a look at it. Gimme a minute.

What about #3528

VirtualCollection is now passing properly. thanks for the heads up :tophat:

Thanks @p3drosola I think this is almost good to go

One lass need: https://github.com/jashkenas/backbone/pull/3529

So close now \o/

@jashkenas can we get a resolution on

[ ] #3553 - use _.create in extend
[ ] #3528 - use global jQuery when available
[ ] #3207/#3243 - binary search for adding models to Collection
[ ] #2816 - add set event to Collection
[ ] #3397 / #3396 - late-binding event handlers from string names
[ ] #3476 - implement events as a linked list
[ ] #3512 - API change: remove returns the list of removed models
[ ] #3135 - add Model#when

Updated #3207 in order to use a local version of comparator, so wouldn't need to wait for underscore.js update (could implement a patch in future if that method becomes available). Could consider renaming to binarySearch or sortedIndex, but that is probably not a huge issue.

Ping @akre54: Mind including #3577 in the notes as well?

Will do once it gets merged. In the meantime want to open a pull against my
fork with the changelog addition?
On Thu, Apr 23, 2015 at 2:17 PM, Justin Ridgewell<EMAIL_ADDRESS>wrote:

Ping @akre54 https://github.com/akre54: Mind including #3577
https://github.com/jashkenas/backbone/pull/3577 in the notes as well?
—
Reply to this email directly or view it on GitHub
https://github.com/jashkenas/backbone/pull/3285#issuecomment-95675725.

We haven't had any major activity in weeks, I think this is good to go. @jashkenas

Cool. Today's the day then.

Can we merge #3577 in as well?

Hallelujah!


⚠ Bofrost.fr has degraded performance

In 1dab724, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 909 ms

Resolved: Bofrost.fr performance has improved in df4c420.


docs: replace hardhat/solidity-docgen with forge doc

Since we mostly use forge over hardhat in this repo and since forge has a feature to parse docs from natspec (https://github.com/foundry-rs/foundry/issues/1675), we should revisit our solidity doc generation pipeline and potentially replace solidity-docgen (which requires a hardhat setup) with forge doc

done in https://github.com/latticexyz/mud/pull/1762


Activates widget avg/max/min within the editor

Fixes https://github.com/CartoDB/deep-insights.js/issues/415
@xavijam @piensaenpixel

This will only work in the first iteration, but if a new widget is added it will not work. In my opinion this should not be there, should be in the widget creation.

This is already working. 💋


Scroll image request threshold

Hello!
Is it possible to delay the request to get the image tiles after scrolling? I would like to apply some kind of "debounce" to wait some time before firing the request to get the zoomed tile, so my server could save some resources.
The imageLoaderLimit property kinda does this job, but I would like to know if it's possible to make max concurrent calls while still waiting some time to fire them.
Example:

User scrolls to max zoom
After some delta time (eg 200ms), OSD makes the request only to the zoomed tile

Best regards

We don't have a mechanism like that (that I can think of). You might try experimenting with replacing OpenSeadragon.ImageLoader.addJob with a debounced version. It would skip all but the last requested tile, so I don't know if that would cause any confusion. Worth a try, though!

Thanks for answering @iangilman! I'll try to implement what you described.


Added entry for debug usage and set code block parser

What does this fix or implement?
Added documentation entry for debug usage.
Checklist

[x] Documentation updated
[x] Changelog updated and version incremented
[ ] Tests added or updated
[ ] Github Issue linked if any

@dreamblack86 , thank you for your contribution. This pr will be published in our next release - v5.2.11.


luau-analyze should support loading in type definition files through a command line switch

Currently luau-analyze does not support loading in a type definition file.
Type definitions are supported and work well with f.ex. the luau-lsp VSCode extension.  Alas, should a user want to perform the same static type checking at the command line (f.ex to easily integrate this into build scripts), the same seems to be impossible with luau-analyze.
I propose that luau-analyze is extended with a --definitions=<typedef_file> CLI flag, that will load type definitions into the global scope before type checking.
Why are type definition files useful?  For example, in a sitation where a game engine integrates Luau, the engine may expose its own functions, types and classes into the Lua global namespace that the game scripts then.  Any Luau scripts written against this engine could then be static type checked on the command line with luau-analyze to ensure that the engine's types are correctly used in scripts.
(Note: I happened to also author a PR that implements the --definitions flag but noticed in the contributor guidelines that I should file an issue first.  So here's the issue!)

PR for the above: https://github.com/luau-lang/luau/pull/1139

should a user want to perform the same static type checking at the command line (f.ex to easily integrate this into build scripts), the same seems to be impossible with luau-analyze.

FYI in case you weren't aware, luau-lsp releases a binary that you can use like luau-analyze as well, with --definitions= support: luau-lsp analyze --definitions=path (https://github.com/JohnnyMorganz/luau-lsp?tab=readme-ov-file#standalone). Just in case your PR doesn't work out :)
But still +1 for first class support in the Luau CLI tool. Although I think definitions file syntax is currently not formalised so that may prevent this from being supported until then

Thanks!

Although I think definitions file syntax is currently not formalised so that may prevent this from being supported until then

Yeah, I kind of gathered that from various github issues but thought to file a PR anyway as it a) makes forward progress on exposing extremely useful functionality, and b) it doesn't touch the Luau core so it doesn't feel like the risk of breaking anything is high.
Thanks for @JohnnyMorganz for the luau-lsp btw, it's great.  The ability to declare these type files is one of the main reasons why I'm gravitating towards Luau instead of Lua, the experience in VSCode is just so much better with types.

If we were to add this, it should work through a .luaurc file so that any tool can be aware of the dependency: https://github.com/luau-lang/luau/issues/418

Looks like .luaurc PR got dropped in #418.  Would you be willing to accept a PR for that updates my PR to input definitions from .luaurc instead of command line arguments?


Compare full trace

I noticed that we weren't comparing all RVFI fields, this should fix it.
Needs https://github.com/riscv/sail-riscv/pull/208 to compare QEMU vs sail.

The subset of fields compared has come about from various different interpretations of the spec between implementations. That said, many of them might have since moved on, and it's probably best to start insisting the implementations adhere to the spec, rather than relaxing the comparison, so happy for this to go through.

do you like it like this? I had a bit of time so figured I'd just push the suggestion to avoid wasting your time. if you are happy with it I click merge @arichardson

do you like it like this? I had a bit of time so figured I'd just push the suggestion to avoid wasting your time. if you are happy with it I click merge @arichardson

Thanks, that looks better :)


Added Auth and Session backends

I've added Redis backed Auth and Session backends.
Implemented the recommendations you made from the previous pull request.
Feel free to make a bunch more recommendations if you see further changes you would like.
Cheers,
Aaron.

@AshyIsMe Are you still interested in merging this?

@imalsogreg I haven't used (or tested) this in a long time so it's up to you if you want to take on the maintenance burden, otherwise feel free to close it.

Moving to #13


add upickle-pprint

test run: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/1150/consoleFull (404 til Jenkins develops sensory organs that can feel the texture of clouds)

green in local test (on 2.12.1)

fyi @lihaoyi


:seedling: Rename variables

Some variable names are same like reserved words. This should be avoided

Summary
Related issue(s)
Fixes #
Release Notes

NONE

/ok-to-test

/retest


Document: ImageView should use https

From this issue,
it looks like <Image /> is now working only https by default.
So, it's better to correct the document.

By analyzing the blame information on this pull request, we identified @JoelMarcey and @charpeni to be potential reviewers.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@chaintan17 Hi. Thanks for this pull request. However, this has already been fixed in master as shown here: https://github.com/facebook/react-native/blob/master/Libraries/Image/Image.ios.js#L53

So this will be available in the next release. I don't think it is urgent enough to cherry-pick it into the current release. I will close this PR.


Will espresso support jetpack compose?

Will espresso support jetpack compose UI once it became production ready?
Problems facing in compose and espresso integration now:
We are using view id and content description in espresso testing. unable to set id and content description in Jetpack compose
And the view hierarchy itself changed, unable to see child views of AndroidComposeView in layout inspector

Got answer:
https://github.com/android/compose-samples/commit/a6907c5dc236e9c18f062c44453b1c15359962cf

Will espresso support jetpack compose UI once it became production ready?
Problems facing in compose and espresso integration now:
We are using view id and content description in espresso testing. unable to set id and content description in Jetpack compose
And the view hierarchy itself changed, unable to see child views of AndroidComposeView in layout inspector

Will espresso support jetpack compose UI once it became production ready?
Problems facing in compose and espresso integration now:
We are using view id and content description in espresso testing. unable to set id and content description in Jetpack compose
And the view hierarchy itself changed, unable to see child views of AndroidComposeView in layout inspector

Same Problem if anyone find any solution then please let me know by replaying this comment


musescore: none of the panels that dock appear when I try to toggle it (like Timeline, Mixer, etc)

Describe the bug
In both versions 4.4.1 and 4.4.2, none of the panels that dock appear when trying to toggle them.
This bug was found by 3 people in this issue: https://github.com/NixOS/nixpkgs/pull/342291#issuecomment-2353039367
Steps To Reproduce
Steps to reproduce the behavior:

Install musescore versions 4.4.1 or 4.4.2 and
Open musescore normally
Open any score
Toggle Mixer or Timeline or any other docking panel.

Expected behavior
The docking panels should show and hide after each toggle.
Screenshots

Additional context

I have muse-sounds-manager installed and downloaded all the default sounds (though I am not sure if muse-sounds-manager is part of the problem. I tried removing ~/.local/share/MuseSampler and running musescore and it was still broken.

Seems like it might be incompatibility with our version of Qt.

Notify maintainers
@orivej @doronbehar @vandenoever

Metadata
  - system: `"x86_64-linux"`
 - host os: `Linux 6.11.0, NixOS, 24.05 (Uakari), 24.05.5169.dbebdd67a600`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"home-manager-24.05.tar.gz, nixos-24.05, nixpkgs, unstable"`
 - channels(adam): `"nixos-23.05-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

I've investigated this problem with the docks on Qt 6.7.2 - they do not open once the last tab is closed -  and it turned out that KDDockWidgets 1 (including the latest 1.7) are designed to restore them incompatibly with the way Qt 6.5+ works.
When MuseScore calls setVisible(true) in DockBase::open to show a previously closed dock widget those panel was also closed, the expected call chain to recreate the panel (frame) is this:
muse::dock::DockWindowActionsController::toggleOpened
muse::dock::DockWindow::toggleDock
muse::dock::DockBase::open
KDDockWidgets::QWidgetAdapter::show
QQuickItem::setVisible(true)
QQuickItemPrivate::setVisible(true)
QQuickItemPrivate::setEffectiveVisibleRecur(calcEffectiveVisible()/*=true*/)
QQuickItemPrivate::itemChange
KDDockWidgets::QWidgetAdapter::itemChange
KDDockWidgets::DockWidgetQuick::event
KDDockWidgets::DockWidgetBase::onShown
KDDockWidgets::DockWidgetBase::Private::maybeRestoreToPreviousPosition
KDDockWidgets::DockWidgetBase::Private::restoreToPreviousPosition
KDDockWidgets::LayoutWidget::restorePlaceholder
KDDockWidgets::DefaultWidgetFactory::createFrame

However, in Qt 6.5 and later the chain ends at QQuickItemPrivate::setEffectiveVisibleRecur since after https://github.com/qt/qtdeclarative/commit/d1b9a4cacfb966cf0a37983d8f8044f3aedf5de3 calcEffectiveVisible() returns false for an item without a parent (and a dock without a panel has none).
KDDockWidgets have redesigned this in https://github.com/KDAB/KDDockWidgets/commit/764385de9f9dd88c2685e42ef65e1daaaca3d679 which went into the 2.0.0 release. Updating to the latest KDDockWidgets (it still supportts Qt 6.2+) seems to be the best way forward.

If I revert https://github.com/qt/qtdeclarative/commit/d1b9a4cacfb966cf0a37983d8f8044f3aedf5de3, the closed docks are opened back again, and the only remaining issues that I see:

The mixer dock is almost blank (only channel strip separators are visible) until I switch to a different dock in the same panel and back (e.g. by pressing 'p' twice to open and close piano keyboard).

The navigator dock is a white rectangle the first time it is opened (as long as it was closed when the MuseScore has opened the score) until it is redrawn, e.g. until I pan the view of the score or resize the window.

Thanks! I've reported this with my findings upstream: https://github.com/musescore/MuseScore/issues/24866

Another upstream issue that shows the same bug: musescore/MuseScore#17438.

Since the upstream fix seems to be taking a while, does anyone have a workaround to make it work? I can get the mixer showing in the version from nixos-23.11, but that refuses to open the document I'm working on because it was saved with a newer version. Would overriding the qtdeclarative dependency to set it to an older one be enough?

Since the upstream fix seems to be taking a while,

Have you seen a patch applied upstream? Or are you referring to the still open upstream issue:

https://github.com/musescore/MuseScore/issues/24866

?

Note also the 4.4.4 update at:

https://github.com/NixOS/nixpkgs/pull/364424

Hm, I might have misunderstood things. I thought that issue was for fixing this?
I tested 4.4.4 from nixpkgs-unstable now, and I still get the same empty panels:

Or did I misread what this issue is referring to when they say the panels don't open? They technically open for me, but they are all blank.

I didn't intend to suggest that 4.4.4 should necessarily fix this upstream issue. Because you did not reply to my previous comment, I thought that perhaps there's a chance that 4.4.4 would fixes the issue, but I guess not. Thanks anyway for commenting and updating that the issue is still not fixed in 4.4.4.


gpg-agent: add sshcontrol configuration

This lets gpg-agent serve specific keys with authentication capability as SSH keys. Note null is different from an empty list for this option - null means the sshcontrol file is manually controlled, [] means all SSH keys are disabled.

Thanks for the submission @kwohlfahrt and the review @kalbasit 🙂


DetectionLab not working on Mac OS Ventura

Operating System Version: Mac OS 13
Deploying via: VirtualBox
Vagrant Version: 2.3.2

Unable to start DetectionLab network on Mac OS Ventura
If I see this correctly, there are problems with the configuration of the network in VirtualBox or Vagrant with the new Mac OS version.
Are there any plans yet to make the necessary modifications?
I usually use Parallels for virtualization and unfortunately don't know anything about VirtualBox and Vagrant ...
Thank you very much!
Lasse

Are there any logs you can provide? From my knowledge, new Apple Silicone cannot run Virtualbox. @LasseKrache

Which logs can I support?
And no: it is a MacBook with Intel processor and VirtualBox itself is running without problems.

The terminal output when you run vagrant up would help. @LasseKrache

I know this sounds strange, but when trying today everything works without problems!
Unfortunately, I had not copied the error message last time, so I can no longer say what the error was - except that it had something to do with vagrant.
Thank you very much for your feedback and the next time I have a problem I'll add the output immediately.

I'm pretty sure that last time the error occurred much earlier than today - but I hadn't copied that one. Today I see the following:
==> dc: Running provisioner: shell...
    dc: Running: scripts/install-velociraptor.ps1 as C:\tmp\vagrant-shell.ps1
    dc: [07:29] Adding logger to the hosts file
    dc: [07:29] Determining latest release of Velociraptor...
    dc: [07:29] Downloading Velociraptor...
    dc: [07:29] Installing Velociraptor...
    dc: powershell.exe : Restart-Service : Cannot find any service with service name 'Velociraptor'.
    dc:     + CategoryInfo          : NotSpecified: (Restart-Service...'Velociraptor'.:String) [], RemoteException
    dc:     + FullyQualifiedErrorId : NativeCommandError
    dc: At C:\tmp\vagrant-shell.ps1:33 char:3
    dc: +   Restart-Service Velociraptor
    dc: +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    dc:     + CategoryInfo          : ObjectNotFound: (Velociraptor:String) [Restart-Service], ServiceCom
    dc:    mandException
    dc:     + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.RestartSer
    dc:    viceCommand
    dc:
    dc: [07:29] Velociraptor successfully installed!
    dc: Get-Service : Cannot find any service with service name 'Velociraptor'.
    dc: At C:\tmp\vagrant-shell.ps1:38 char:6
    dc: + If ((Get-Service -name Velociraptor).Status -ne "Running")
    dc: +      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    dc:     + CategoryInfo          : ObjectNotFound: (Velociraptor:String) [Get-Service], ServiceCommand
    dc:    Exception
    dc:     + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetService
    dc:    Command
    dc:
    dc: Velociraptor service is not running
    dc: At C:\tmp\vagrant-shell.ps1:40 char:3
    dc: +   Throw "Velociraptor service is not running"
    dc: +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    dc:     + CategoryInfo          : OperationStopped: (Velociraptor service is not running:String) [],
    dc:    RuntimeException
    dc:     + FullyQualifiedErrorId : Velociraptor service is not running
    dc:
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

powershell -ExecutionPolicy Bypass -OutputFormat Text -file "C:\tmp\vagrant-shell.ps1"

Stdout from the command:

[07:29] Adding logger to the hosts file
[07:29] Determining latest release of Velociraptor...
[07:29] Downloading Velociraptor...
[07:29] Installing Velociraptor...
[07:29] Velociraptor successfully installed!

Stderr from the command:

powershell.exe : Restart-Service : Cannot find any service with service name 'Velociraptor'.
    + CategoryInfo          : NotSpecified: (Restart-Service...'Velociraptor'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
At C:\tmp\vagrant-shell.ps1:33 char:3
+   Restart-Service Velociraptor
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Velociraptor:String) [Restart-Service], ServiceCom
   mandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.RestartSer
   viceCommand

Get-Service : Cannot find any service with service name 'Velociraptor'.
At C:\tmp\vagrant-shell.ps1:38 char:6
+ If ((Get-Service -name Velociraptor).Status -ne "Running")
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Velociraptor:String) [Get-Service], ServiceCommand
   Exception
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetService
   Command

Velociraptor service is not running
At C:\tmp\vagrant-shell.ps1:40 char:3
+   Throw "Velociraptor service is not running"
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Velociraptor service is not running:String) [],
   RuntimeException
    + FullyQualifiedErrorId : Velociraptor service is not running

To me it looks like at least the vagrant environment itself is not causing any problems (last time the error came much earlier!) and now there is an error inside the virtual machine.

Looks like the same problem as mentioned here:
https://github.com/clong/DetectionLab/issues/869

I tried to "manually" install velociraptor via
msiexec /i velociraptor.msi
and receive the error:
This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows installation package.
So I guess this could be the reason for the problem?!


Project64 v2.3.2

[ ] Package approval (https://chocolatey.org/packages/project64/2.3.2)

Whoops sorry, wrong repo!


Do you plan to support angular 2

At the moment, in angular 2 there is no alternatives fancybox. Do you plan to support angular 2

I'm not familiar with angular 2.x yet, so I would not know if it would require much effort.
We do have angular 1.x support via:
https://github.com/igorlino/angular-fancybox-plus


ci: bors

test bors

bors try

@bors r+

@bors merge

@bors ping

@bors ping

@bors ping

@bors ping

@bors ping

@bors merge

@bors ping


CircuitEditor Visualizer

Some inspiration can be drawn from circuitlab to create a visualizer for creating and editing circuits. This will also be helpful for generating schematic from the netlist.

https://www.circuitlab.com/editor/

This will require the following:

Creating a custom JointJs Library of ElectricCircuits.
Writing a Visualizer based on that.
Creating and editing circuits based on the visualizer.

Closed by #58.


Update

See https://github.com/ajdawson/windspharm/releases/tag/v1.5.0

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Add select method

[x] Running yarn lint does not trigger any linter errors
[x] You have written a new skeleton method for someone else to work on!
[x] You have written tests to accompany your skeleton method

@mtso Thanks so much for your contributions! Could you open an issue for the new skeleton method you created? It would be really helpful (i'm gonna copy/paste this to your other PR's too...heh :neckbeard:

Whoops noticed you did that already... sorry

No worries :) @ktilcu nice signature over at your site btw~


Bumped moment version to resolve dependabot alert.

Signed-off-by: AWSHurneyt<EMAIL_ADDRESS>Description
Bumped moment version to resolve this dependabot alert.
Issues Resolved
[List any issues this PR will resolve]
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #230 (5d75486) into main (8cc7431) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #230   +/-   ##
=======================================
  Coverage   51.55%   51.55%
=======================================
  Files         183      183
  Lines        5804     5804
  Branches      888      888
=======================================
  Hits         2992     2992
  Misses       2591     2591
  Partials      221      221

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


An question about groupby type SQL query

How to convert a group by into SQL Query. for example:
{
  "queryType": "groupBy",
  "dataSource": "send_101",
  "granularity": "day",
  "dimensions": ["company_id"],
  "limitSpec": { "type": "default", "limit": 5000, "columns": ["company_id"] },
  "aggregations":[
      {
          "type":"longSum",
          "name":"sendCount",
          "fieldName":"drop_send_count",
          "expression":null
      }
  ],
  "intervals":{
      "type":"intervals",
      "intervals":[
          "2019-05-01T00:00:00.000Z/2019-05-06T00:00:00.001Z"
      ]
  }
}

convert to sql query, is like this?
SELECT
    FLOOR(__time TO DAY) AS DayTime,
    "company_id",
	SUM(drop_send_count) AS DropSendCount
FROM
	send_101
WHERE
	"__time" BETWEEN TIMESTAMP '2019-05-01 00:00:00'
AND TIMESTAMP '2019-05-06 00:00:00'
GROUP BY
	FLOOR(__time TO DAY), "company_id"

but, this sql is grouped by two dims。
EXPLAIN PLAN FOR above the sql，i found the granularity always "all"，
so how to specify granularity in my groupby type SQL query

It looks that when translating sql to GroupByQuery, granularities is always set as ALL.
Is this a bug or specifically setted? @gianm @clintropolis @justinborromeo

I can't find the issue number right now, but essentially the reason for this is that 'granularity' for groupBy does not work the way that you would expect for a SQL GROUP BY when there's an ORDER BY or a LIMIT clause, so it cannot be used by the SQL planner. I think the issue was that dimension ordering is applied within each granular bucket for groupBy, rather than across all buckets as you would expect with SQL.
However, I would like to optimize the execution of FLOOR(__time TO DAY) enough that this is not an issue perf-wise. That seems like a good direction to me.

I can't find the issue number right now, but essentially the reason for this is that 'granularity' for groupBy does not work the way that you would expect for a SQL GROUP BY when there's an ORDER BY or a LIMIT clause, so it cannot be used by the SQL planner. I think the issue was that dimension ordering is applied within each granular bucket for groupBy, rather than across all buckets as you would expect with SQL.
However, I would like to optimize the execution of FLOOR(__time TO DAY) enough that this is not an issue perf-wise. That seems like a good direction to me.

I can't find the issue number right now, but essentially the reason for this is that 'granularity' for groupBy does not work the way that you would expect for a SQL GROUP BY when there's an ORDER BY or a LIMIT clause, so it cannot be used by the SQL planner. I think the issue was that dimension ordering is applied within each granular bucket for groupBy, rather than across all buckets as you would expect with SQL.
However, I would like to optimize the execution of FLOOR(__time TO DAY) enough that this is not an issue perf-wise. That seems like a good direction to me.

I am not using order by or limit clause in my SQL. It still uses the all granularity. Will we fix this?
select
    TIME_FLOOR(__time, 'PT1H', TIME_PARSE('2020-03-01T04:00+12:00'), 'Pacific/Kwajalein') as __timestamp,
    app, metric_name,
    count(*) as __count,
    sum(metric_value) as __sum
from viaops_metric_specguide
where
    (
        (__time >= TIME_PARSE('2020-02-23T04:00+12:00') and __time < TIME_PARSE('2020-03-01T04:00+12:00')) or
        (__time >= TIME_PARSE('2020-02-16T04:00+12:00') and __time < TIME_PARSE('2020-02-23T04:00+12:00')) or
        (__time >= TIME_PARSE('2020-02-09T04:00+12:00') and __time < TIME_PARSE('2020-02-16T04:00+12:00')) or
        (__time >= TIME_PARSE('2020-02-02T04:00+12:00') and __time < TIME_PARSE('2020-02-09T04:00+12:00')) or
        (__time >= TIME_PARSE('2020-01-26T04:00+12:00') and __time < TIME_PARSE('2020-02-02T04:00+12:00'))
    )
    and metric_name = 'Successful API Attempt'
    and app = 'Quantum'
    and api in (
          '',
          'stbDeviceEdgeRefresh',
          'deviceEdgeDevices',
          'avappsTermsAndConditions',
          'viewingHistoryEdgeViewingHistory',
          'loginEdgeSessionInfo',
          'searchEdgeSavedSearchRecent',
          'searchEdgeUnfiltered',
          'networkSettingsEdgeSettings',
          'viewingHistoryEdgeCollated',
          'watchListEdgeWatchList',
          'lrmEdgeEntitlements',
          'companionDevicesEdgeHandoff',
          'searchedgeV1CatalogUnfiltered',
          'loginEdgeLogin',
          'savedSearchEdgeSavedSearch'
    )
group by 1, 2, 3