Support for getting a Future completed by dom.setTimeout()

Since SJS has no Thread.sleep(), it would be nice to have an easy way to get a Future that completes after x milliseconds, so you don't need to mix in dom.setTimeout() inside a Future chain.
Here is a proposed solution:
  def delayedFuture[T](millis: Double, param: T = Unit): Future[T] = {
    val p = Promise[T]()

    dom.setTimeout( () => p.success(param), millis)
    p.future
  }

Maybe it should be placed at Future, like
Future.delayed(millis: Double, param: T = Unit): Future[T]

What I wanted to use this for was in recoverWith() after an Ajax request to add a delay before a retry. It seems like the result of delayedFuture then must be applied to flatMap, but I fail to get that to compile...

Hmm.  Would the jsext library's withTimeout suffice?  In general, I'm not sure this problem is common enough to need to be in the SJS core...

Ah, haven't looked at that library yet. withTimeout is the opposite really, but you may add my function(s) above to RichFuture yes.
It is probably a bad idea to add it into Future if it isn't supported on the JVM. There you might not see so many requests for this since you have Thread.sleep().

Pull requests are welcomed -- since you've got an idea of what you're looking for, I'd recommend that you submit a PR for that on RichFuture...

As discussed above, I don't think this should be part of the Scala.js standard library.
So I'll close this here. We can reconsider if many people want to push such a sugar to the std lib.

Okay, I know it's closed...
But for future reference of anyone else discovering this ticket, I've found that AsyncScheduler from scala.rx solves this rather neatly.

I'm happy to see Thread.sleep implemented in scala.js as a representation of delay/setTimeout in javascript

@cuzfrog Thread.sleep cannot be implemented in Scala.js, because it's a blocking API, and JavaScript doesn't do blocking.

Blocking is generous disastrous. However blocking has some debug/dev value. Or it can be a shorthand in such:
Future{
   Thread.sleep(?)
   //setTimeout to execute.
}

It's impossible to implement Thread.sleep. Besides, even if you could, nothing would happen in the elapsed time: handlers are not executed, events are not triggered, other futures waiting to run don't get to run. So it doesn't have debug value either.
This is impossible.

A naive implementation of Thread.sleep is possible, but pretty much useless since it blocks everything, including the browser UI 😜
def sleep(ms: Long): Unit = {
  val expTime = System.nanoTime + ms*1000000
  while(System.nanoTime < expTime) {}
}

I'm very happy and honored to discuss with you guys here.

Web Workers provide a simple means for web content to run scripts in background threads.

Js + its env together is literally multi-threaded. Thread as a concept is able to be used in js context. When Thread blocks in "js main thread", compiler should yield an error or at least warning. For other threads, sleep actually represents setTimeout, but may be used in scala code more conveniently. Because setTimeout belongs to dom in js, using it directly in scala code is sort of awkward. In these senses, it has some degree of debug/dev value, though little.
May later version of javascript bring this concept to the table and provide native block or delay(prefered) function in background threads.
Btw, while(System.nanoTime < expTime) {} is not acceptable, it consumes CPU power.

Webworkers has been discussed before and does not correspond to a java Thread. I think the issue is that they can't share data.

For other threads, sleep actually represents setTimeout, but may be used in scala code more conveniently.

You can't implement that. There is no way to implement sleep on top of setTimeout, even in Web Workers. I challenge you to give it a try.

@sjrd Your challenging encourages and honors me. I uses a timer, to partially make it into action:
js-block-toy-implementation

@cuzfrog Ah but you cheated. You didn't implement the Thread.sleep API nor its contract. Your experiment there is not enough to show that Thread.sleep can be implemented.
In fact, your implementation is still asynchronous and non-blocking, as you demonstrate yourself with the "broken" message.

I know it is pretty hackish and specific,  but Akka. Js testkit implement Thread.sleep on top of a custom event loop.


Compare to React ?

Manuel,
I've started using ReactJS a bit, and notice how it shares a pretty close philosophy to ViewModel (which of course comes from MVVM). Could you maybe point out a few differences between Viewmodel and React?
Similar

You have an object representing the state of your view
You have the option for enhancing that with computed properties
The UI is thought to be 'a function of' the view object
The UI reactively updates per changes to the data elements (aka props)

Different

data-bind tags are code-like command appearing in your markup, whereas JSX has markup appearing in your code.
React can server-side render

One thing that I don't see a corresponding piece for in viewmodel is the abilty to, say, repeat
 for every item in a collection/list.

IMHO the most important similarities are:

Small API footprint (there isn't that much to learn)
Encouragement to create your apps with small components.

The biggest difference I see is that ViewModel is declarative and React is imperative. With ViewModel you use or create bindings that encapsulate the functionality you want. The functionality can be anything from changing the element, wrapping it, adding/removing attributes, etc. While you can do the same with React, it wouldn't be in the spirit of the library.
And of course with ViewModel you need less lines of code to accomplish the same tasks =)
Regarding the
: that's because you have to use Blaze's #each. ViewModel sits on top of Blaze so it doesn't try to reinvent the wheel:

  {{#each people}}

{{name}}

  {{/each}}

It does have the disadvantage that it gets a little verbose for small things like:
<template name="people">

    {{#each people}}
      {{> person}}
    {{/each}}

</template>

Template.people.viewmodel({
  selected: null
  people: function() {
    return People.find();
  }
}, 'people');

<template name="person">

</template>

Template.person.viewmodel({
  select: function() {
    this.parent().selected(this._id());
  }
});

I'm working overtime on ViewModel v2 which will simplify things:
<template name="people">

    {{#each people}}

    {{/each}}

</template>

Template.people.viewmodel({
  selected: null,
  people: function() {
    return People.find();
  }
});

I'm trying to get the best of React and Angular (avoiding $scope hell of course).
Another thing I'm working on is simplifying the way you share state and functions between templates/components. I'll give you the option of sharing a vm property with all descendants, the instances of the same template, and even between non related view models.
The best use case for the last one is a search box on the heading. You will be able to define a set of properties (in our example it would only be 'searchText') and name them (say "search"). Then when you define the heading view model you would tell it to use the shared properties of "search". The same wherever else you have a list that depends on the search box. You would tell that view model to use the shared properties of "search". That way both view models are sharing the same property. No coupling, no spaghetti.
On the horizon I plan to create a time travel debugging tool for ViewModel. The hardest part here is to create a decent UI for it because the core functionality is actually pretty trivial when you use view models. All it has are properties/state and methods/actions, that's it. To create the time travel, all I need to do is throw the state and actions into an array of immutable objects.
Another thing on the horizon is a nicer view model explorer.
That was a lot so let me know if you have questions :)

I love the idea of state and actions in an array of immutables. I think you are on track to have something that is of practical convenience than either big framework, even if it seems not to have the 'brand recognition', but I swear by ViewModels, I've been doing them for years, and the syntax is to me much better for yours compared to React and all its chicanery.

Yeah, with view models people either swear by them or are like "meh, whatever".
btw, nice interview on OK Grow's podcast. I liked it very much.

RE time travel - if you're thinking of recording mutations - do you think prior to that viewmodel could allow for mutating several fields at a time ? Then each mutation (even if against multiple fields at once) can go into history as all of its new values. I don't know if that exists, but I think it would be neat.
A slider is an interesting metaphor for position along a timeline - if people could drag left/right ?

Ha, an old presentation i made on viewmodels 3 1/2 years ago ! https://docs.google.com/presentation/d/1mbwMZbqYdQCxfVih1Rry7iPl8waDEmsrR4z6Z5UrK14/edit?usp=sharing

Are there any production projects you can say you've used this on ? Even if anonymous - anything about them you could share for what level of scale you've gotten to with viewmodels alone ?

I've already done something like it (recording and playback with a slider).
Check out https://www.meteorcasts.net/ep/6
I'll check out your presentation ...
On Oct 10, 2015 11:39 PM, "Dean Radcliffe"<EMAIL_ADDRESS>wrote:

Ha, an old presentation i made on viewmodels 3 1/2 years ago !
https://docs.google.com/presentation/d/1mbwMZbqYdQCxfVih1Rry7iPl8waDEmsrR4z6Z5UrK14/edit?usp=sharing
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/118#issuecomment-147160200
.

People don't mention what they're working on. The only one i know of is
https://abesea.com/ and only because I keep in touch with the main dev of
that site.
On Oct 10, 2015 11:45 PM, "Manuel De Leon"<EMAIL_ADDRESS>wrote:

I've already done something like it (recording and playback with a
slider). Check out https://www.meteorcasts.net/ep/6
I'll check out your presentation ...
On Oct 10, 2015 11:39 PM, "Dean Radcliffe"<EMAIL_ADDRESS>wrote:

Ha, an old presentation i made on viewmodels 3 1/2 years ago !
https://docs.google.com/presentation/d/1mbwMZbqYdQCxfVih1Rry7iPl8waDEmsrR4z6Z5UrK14/edit?usp=sharing
—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/118#issuecomment-147160200
.

@deanius  Check out v2: https://viewmodelv2.meteor.com/docs/
The library is pretty much finished but I still need to add a few things to the documentation. I also want to redo the phone book example (if I don't burn out by then).
Here are a few things you might find interesting:
https://viewmodelv2.meteor.com/docs/viewmodels#share
https://viewmodelv2.meteor.com/docs/viewmodels#mixin
https://viewmodelv2.meteor.com/docs/misc#controls
https://viewmodelv2.meteor.com/docs/misc#hotcodepush
https://viewmodelv2.meteor.com/docs/misc#stateonurl

Thanks for the update - I'll check it out !

There is no site deployed at this address.

meteor deployed sites are down. I'll see if I can put it somewhere else.

And of course they come back up as soon as I posted that. Try again :)

Thanks - just sang your praises on the meteor forums. Closing issue for now.

—
Reply to this email directly or view it on GitHub
https://github.com/ManuelDeLeon/viewmodel/issues/118#event-468727403.

Just curious what you're doing now that free meteor hosting is gone?
Also, I'm working in React now, and this is my fave React/Redux forms impl at the moment: http://redux-form.com/4.2.0/#/examples/synchronous-validation?_k=7v8sbx

https://viewmodel.org/ep/7

Hey Dean, good to see you.
I'm just hosting the documentation on an Azure VM (https://viewmodel.org). It's a (very) low traffic site so I can get by with the bare minimum. I added a paid/donate videos section that I use to pay for the hosting (and have a beer once in a while).
Can you do me a favor and make a working repo out of that synchronous validation example in redux-form? I want to see it in action, not just the "cleaned up for clarity" version. I couldn't find it on their GitHub repo. Let's console.log the form's data on submit.
ViewModel for react is coming along quite nicely. I'm very happy with the API (syntactic sugar mostly):
./Person.jsx
Person({
  name: '',
  greeting() {
    console.log( "Hello " + this.name() );
  },
  render() {

      <input b="value: name" />

  }
})

./index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { Person } from './Person.jsx';

ReactDOM.render(<Person />, document.getElementById('root'));


Faraday is deprecated

As per https://github.com/lostisland/faraday/issues/454 Faraday development is winding down, so Film Buff 1.0 should move to something else.
I am thinking about going to either Hurley, which is Faraday's successor, or http.rb, which might be more stable, avoiding future changes. Any thoughts?

Using http.rb for now. Caching and logging will probably be easier to do with Hurley but it doesn't seem ready for use yet.


The start and end in PageRange Struct should be int64

The start and end of a page range are int32, with a maximum value of<PHONE_NUMBER>. This limits a page offset at only ~2.14 GB.  Instead they should be int64.
https://github.com/Azure/azure-storage-blob-go/blob/38ca054dbe15000254766ebc6d91d5497cadaf2b/2016-05-31/azblob/zz_generated_models.go#L2500

Yes, this is a bug in our swagger file. We have fixed it there but we need to run it through autorest to generate a new models files. I think we’ll push the fix next week.

Jeffrey Richter (watch Architecting Distributed Cloud Appshttps://aka.ms/RichterCloudApps on YouTubehttps://aka.ms/RichterCloudApps or edXhttps://aka.ms/edx-devops200_9x-about)

From: Jesus Aguilar<EMAIL_ADDRESS>Sent: Wednesday, February 14, 2018 9:44 AM
To: Azure/azure-storage-blob-go<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [Azure/azure-storage-blob-go] The start and end in PageRange Struct should be int64 (#29)
The start and end of a page range are int32, with a maximum value of<PHONE_NUMBER>. This limits a page offset at only ~2.14 GB. Instead they should be int64.
https://github.com/Azure/azure-storage-blob-go/blob/38ca054dbe15000254766ebc6d91d5497cadaf2b/2016-05-31/azblob/zz_generated_models.go#L2500
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-storage-blob-go/issues/29, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACK0vz4FttRkVN310dwVi2FpWNZLHpPsks5tUxtYgaJpZM4SFtU6.

This issue has been resolved.


Adding the split_statevector_simulator to the available backends.

Summary
Adds a new backend, inheriting from the statevector_simulator allowing to run a circuit and get the binary tree containing the statevectors at each measurement point, as described in issue #2550.
The basic logic of the split_statevector_simulator algorithm is as follows:
The class SplitStatevectorSimulatorPy has attributes _substates and _substate_probabilities, both of which are lists
On measurement operations, Two copies of the current statevector are inserted into _substates. These states are then collapsed into measurement results 0 and 1, and the probabilities for these outcomes are inserted into _substate_probabilities.
At this point the for loop going over the operations is stopped for the initial statevector and is called to continue from the next measurement operation for both substates.
Details and comments
The changes include 2 new files: qiskit\providers\basicaer\split_statevector_simulator.py, and qiskit\test\python\basicaer\test_split_statevector_simulator.py
In the qasm_simulator most changes are superficial involving a refactoring of existing functions. One notable change is the handling of the "memory" and "measure_sample_ops" variables in the qasm_simulator method "run_experiment", which were slightly moved around to accommodate the python value semantics.
This pull request solves #2550

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

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

Just a note - for some reason the "make" file in the qiskit-terra repo that I cloned doesn't have the "make style" option, so I resorted to using the Travis CI check to fix style issues. Just letting you know in case this is something you weren't aware of.

Ok sounds good, I'll close this here then and we can continue in Aer.


equalTo function for input missing single quote in unobtrusive version.

When using ASP.NET MVC 3 with a model that is nested, the missing single quote prevents the getModelPrefix value from properly validating.
This answer (http://stackoverflow.com/a/9523596/30505) on StackOverflow describes the problem.  Ignore the part about remote validation.

As far as I can tell, that's not part of this plugin's codebase. I'm not maintaing that unobtrusive version.

Apologies - I'll try to follow up with the ASP.NET team as it shows up in ASP.NET MVC 3.


ButterKnife @FindView throws java.lang.NullPointerException

Used in my project you making up the latest code, FindView out of control to be empty.
textview.setText("xxx"); throws NullPointerException.
tks.

Did you forget to call ButterKnife.bind()?

Has been added, ButterKnife.bind(this); not, use  6.1.0 ButterKnife.inject(this); is ok.

When packing jar a file is missing.
META-INF/services/java.javax.annotation.processing.Processor


Live site 502 error

The live site hosted at https://wpdirectory.net/ is currently inaccessible and giving 502 Bad Gateway error

The service is up and running again, so closing this issue

The issue is back again, so re-opening this issue

Been seeing this a few times again today.

Unfortunately, I have seen this on all my attempts in the last days.

@carstingaxion Unfortunately the service is now crashing with fatal error: runtime: out of memory, however the VPS it runs on has just been upgraded from 32GB to 64GB and it still happens. So it is possibly something internal related to memory allocation.
I will try to fix it as soon as I can, but it might take me a while to troubleshoot and fix this.
Sorry for any inconvenience.

I believe that some stability has been achieved. It has been running for over 24 hours now.
I made some OS level tweaks, like setting /proc/sys/vm/overcommit_memory to 1, and increased ther VPS resources. However, I am not certain what the problem was and why it is (seemingly) now resolved.
Please let me know if you notice any more problems!

Thanks @PeterBooker 🙂
Closing the issue as the site is now up again.


Issue-2: add MAINTAINERS file

Signed-off-by: Adam-Ayan<EMAIL_ADDRESS>

@joewxboy It's worked! DCO check is satisfied now, thank you. Could you merge this pull request?


Regenerate with latest gir

The build failures in gdk are gone once the gdk PR is merged, they can be ignored

@sdroege Thanks, 👍

Nice for the auto generation of DateTime!


support of Django 1.9

When including billing into installed apps, I get the following error when using manage.py
from django.utils.importlib import import_module
ImportError: No module named importlib

Something like this may fix it.
try:
    # Django versions >= 1.9
    from django.utils.module_loading import import_module
except ImportError:
    # Django versions < 1.9
    from django.utils.importlib import import_module

I fixed this and other compatibility issues in a forked repo.
Feel free to use it.
https://github.com/Sshuichi/merchant


How do I convert dnn result to a dlib::rectangle?

Hello, I have seen that dlib has a DNN face detector. I am writing a program that just passing to it which detector to use, it chooses among the available detectors.
In the example, it puts
        for (auto&& d : dets)
            win.add_overlay(d);

How can I convert these "dets" to a std::vectordlib::rectangle"?

Version: 19.8.99
Where did you get dlib: github repo
Platform: Linux 4.14.11-200.fc26.x86_64
Compiler: gcc version 7.2.1 20170915

The documentation for the loss_mmod layer tells you the output.  So dets is a std::vector<dlib::mmod_rect>.

   vector<dlib::rectangle> v1
    for (auto&& d : dets)
    {
        v1.push_back(d.rect)
     }


Require some more error handling, and show error messages while sign up.

Hey @adrianhajdin,
Thank you for amazing and awasome tutorials like these and sharing the source code.
I was facing some issues in signup, hence i cloned the repo and debugged it.
If user enters some invalid details for date of birth, postal code, SSN or some other fields, it is resulting into errors
**Error message : **
Creating a Dwolla Customer Failed:  Error: {"code":"ValidationError","message":"Validation error(s) present. See embedded errors list for more details.","_embedded":{"errors":[{"code":"NotAllowed","message":"DateOfBirth value not allowed.","path":"/dateOfBirth","_links":{}},{"code":"InvalidFormat","message":"Ssn invalid.","path":"/ssn","_links":{}}]}}
Another thing, user would have enterd proper email, and we would have created the appwrite account/user and user tries to enter proper details later , appwrite is giving already account exists.  I think we have to delete the appwrite user if  _ Creation of Dwolla Customer Failed_.
Thank You

same problem, can anyone help with solution?

Same problem ? please help out.

https://www.ssn-check.org/generate :  use this site to generate a dummy SSN and give the rest of the details  as in thescreenshot it will work. and you will be able to signup

Thank you @othegagan , it worked

first of all, the date of birth is not correct. dwell requires yyyy-mm-dd, and the ssn says last 4 digits

Hello, I faced with the same error and here is the solution:
Checking dwolla docs we can see the required format:

In my case I was sending the correct format (YYYY-MM-DD) but not over 18 years.
https://developers.dwolla.com/docs/balance/api-reference/customers/create#verified-personal-customer---request-parameters

thanks @sbetav

I had the same error with dwolla and solved it by just inputing the date of bith with dashes between  ex: 1111-22-33


Add ruby3.3 to CI

As a follow on to not noticing, I subsequently renamed/moved this file, so this isn't really applicable. I realized that I had my "watching" set to mentions/direct instead of all, so I've fixed that and should see this sort of stuff moving forward, sorry again I missed it.


CoderWithMean mode may have bugs.

ACO achieves better compression ratio on qualtiy than all the other tested algorithms, but when I try to run the codec with CoderWithMean mode, it often turns out to be coredump . Is it possible that the codec contains bugs in this mode?  The result is as follows:
./code -m 1 -c ~/NA12878_0.R2.fastq ~/a.data
Compute max and min value of ~/NA12878_0.R2.fastq
Now start to compress:
1.4%|=                                                                              |0.0op/s|00:00:00|03:14:07Floating point exception (core dumped)

ACO 在质量上实现了比所有其他测试算法更好的压缩率，但是当我尝试使用 CoderWithMean 模式运行编解码器时，结果通常是 coredump 。在这种模式下，编解码器是否可能包含错误？结果如下：
./code -m 1 -c ~/NA12878_0.R2.fastq ~/a.data
计算 ~/NA12878_0.R2.fastq 的最大值和最小值
现在开始压缩：
1.4%|= |0.0op/s|00:00:00|03:14:07 浮点异常（核心转储）
Duplicate of #

Thank you for your questions about testing. Can you provide the download link of test data (NA12878_0.R2.fastq). We will test again with the same data and give a reply.

We download the data from this URL: https://www.garvan.org.au/research/kinghorn-centre-for-clinical-genomics/sequencing-services/ref-data-tables
and cut about 300MB (4*n reads) fastq format data for tests.
Heres are instructions and related result:
~/tmp/code-master/build$ ./code -m 0 -c ~/tmp/NA12878_2_R2.fastq ~/tmp/a.data
Compute max and min value of /home/liuzb/tmp/NA12878_2_R2.fastq
Now start to compress:
99.3%|===============================================================================|6507862.5op/s|00:00:12|00:00:000

origin size                   after size                    percentage                    time
148898496                     30066567                      0.2019                        14.426139

run successfully..........
~/tmp/code-master/build$ ./code -m 1 -c ~/tmp/NA12878_2_R2.fastq ~/tmp/a.data
Compute max and min value of /home/-/tmp/NA12878_2_R2.fastq
Now start to compress:
Segmentation fault (core dumped)

Thank you for your attention and feedback. Now we have uploaded a new version（v1.0.2）, which basically solves problems you found.


[Snyk] Upgrade @apollo/client from 3.7.16 to 3.7.17

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @apollo/client from 3.7.16 to 3.7.17.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released a month ago, on 2023-07-05.

Release notes

Package name: @apollo/client

3.7.17 - 2023-07-05Patch Changes

#10631 b93388d75 Thanks @ phryneas! - ObservableQuery.getCurrentResult: skip the cache if the running query should not access the cache

3.7.16 - 2023-06-20Patch Changes

#10806 cb1540504 Thanks @ phryneas! - Fix a bug in PersistedQueryLink that would cause it to permanently skip persisted queries after a 400 or 500 status code.

#10807 b32369592 Thanks @ phryneas! - PersistedQueryLink will now also check for error codes in extensions.

#10982 b9be7a814 Thanks @ sdeleur-sc! - Update relayStylePagination to avoid populating startCursor when only a single cursor is present under the edges field. Use that cursor only as the endCursor.

#10962 772cfa3cb Thanks @ jerelmiller! - Remove useGETForQueries option in BatchHttpLink.Options type since it is not supported.

Potentially breaking change in PersistedQueryLink
Previously, if the PersistedQueryLink encountered a single 400 or 500 error, it would stop sending any persisted queries in the future. This allowed you to use the link even if a server had no support for persisted queries.
We have decided to change this behavior, so now the PersistedQueryLink will only stop trying to send query hashes if the server responds with a PERSISTED_QUERY_NOT_SUPPORTED error code as it was unclear whether a 400 or 500 status code was in fact because the server did not support persisted queries.
If you relied on the previous behaviour, maybe because you were communicating with a server that might or might not support persisted queries, but would return with a different kind of error, you can use the disable option callback to override this behavior like this:
createPersistedQueryLink({
  // ... other options ...
  disable({ operation }){
    const { response } = operation.getContext();
    return (
      response &&
      response.status &&
      (response.status === 400 || response.status === 500)
    );
  }
})
Alternatively, consider removing the link entirely when your server does not support persisted queries.
New Contributors

@ sdeleur-sc made their first contribution in #10982

    from @apollo/client GitHub release notes

Commit messages

Package name: @apollo/client

69563f1 Version Packages (#11006)
5a6a3c1 Update warning message when discarding unmergeable cache (#10998)
fea2bab Wrap bug template description in double quotes
3bf6c9b Add Replay instructions to bug template (#10955)
89140e8 chore(deps): update all devdependencies (#10987)
fc79f7f Update cache-configuration.mdx (#10858)
c8168f7 chore: update experimental hooks docs for useBackgroundQuery (#11021)
8c0e20c chore: ignore rollup deps for now in renovate config (#11017)
72c625d chore(deps): update all dependencies - patch updates (#11011)
debcd8c Update queries.mdx (#11007)
b93388d ObservableQuery.getCurrentResult: skip the cache (#10631)
6875b62 chore(deps): update all dependencies - patch updates (#10986)
5cfb33f Bump ROADMAP.md timestamp
5b65690 chore: update subscriptions docs to include multipart over HTTP (#10663)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Addressed in #351


On secureli init, create default .secureli.yaml

User Story
As a developer, after I run secureli init, I want have a file already created for me which allows me to override secureli defaults.
Acceptance Criteria

When running secureli init on a repo that has not yet been initiatlized

If a .secureli.yaml file already exists, no changes are made to that file
If no .secureli.yaml file already exists in the root of the repo

.secureli.yaml file is created
The newly created file contains the following content

TBD

Default file to contain telemetry settings. Probably a better way to pull version of secureli, so may leave that out.


[Enhancement] Support combined txn log for more loads

Why I'm doing:
In order to be able to reduce reads and writes to the object store, we added COMBINED TXN LOG in #42542, i.e., only one txn log file is written per partition instead of one per Tablet. However, in #42542, only stream load and routine load support combined txn log, the common insert into and broker load can not use combined txn log.
What I'm doing:

Support combined txn log for insert and broker load.
Avoid sending invalid txn log deletion requests when combined txn log and batch publish are turned on at the same time

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@wyb @kevincai PTAL


Dot before dash rule

Currently the statements of operations are getting added from left to rigth without the Dot before dash rule.
We would need to implement that rule so the Java compiler orders the statements of the equalization in correct order so the VM can execute them in the correct order.
View under Parser the whenEqual method

Updated: since i refactored the compiler you will need to check the 'equalTree()' method in the Trees class under teh core package


encoding questions

<ab type="invocation" xml:lang="san-Latn"><pb ed="#L" n="1"/><pb ed="#K" n="1v"/>//0// avighnam astu //0//</ab>
<!-- argr: do we need a div around this ab? in Marine's Rsisasana, she has it -->

If I remember correctly  we needed a <div> to structure the trailing <ab> at the end of her edition. Since the stucture was based on <div> elements the parser could comprehend the sudden change of element and marked it as wrong. So we added a <div>to validate it and to keep it independent form the previous <div> element. For constancy sake, we also added one for the heading element <ab>.


Characteristic.TargetHeaterCoolerState state 3=OFF is not mapped

Hi,
The HeaterCooler accessory uses the Characteristic.TargetHeaterCoolerState, as I understand there should be 4 values:
AUTO=0
HEAT=1
COOL=2
OFF=3
Looking into the code it looks like OFF=3 is not mapped, any reason behind it? I'm trying to disabled the OFF button in HomeKit but couldn't find a way. It looks to me like if I allow value 0=AUTO, then OFF is also displayed. If I only allow HEAT=1 and COOL=2, then OFF is hidden. Could the missing mapping cause this?
Characteristic.call(this, 'Target Heater Cooler State', '000000B2-0000-1000-8000-0026BB765291');
this.setProps({
format: Characteristic.Formats.UINT8,
maxValue: 2,
minValue: 0,
validValues: [0,1,2],
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY]
});
this.value = this.getDefaultValue();
};
inherits(Characteristic.TargetHeaterCoolerState, Characteristic);
Characteristic.TargetHeaterCoolerState.UUID = '000000B2-0000-1000-8000-0026BB765291';
// The value property of TargetHeaterCoolerState must be one of the following:
Characteristic.TargetHeaterCoolerState.AUTO = 0;
Characteristic.TargetHeaterCoolerState.HEAT = 1;
Characteristic.TargetHeaterCoolerState.COOL = 2;

OFF is not part of TargetHeaterCoolerState.
Although it is shown in the Home App, or is internally linked to Characteristic.Active.
You can verify this behavior exactly with the Apple Homekit Accessory Simulator...
see: https://github.com/nfarina/homebridge/issues/2239

His is the same for some other newer Services like Fanv2, Valve, AirPurifier, ...
You should not make people nervous as long as your other issue is clarified.

His is the same for some other newer Services like Fanv2, Valve, AirPurifier, ...
You should not make people nervous as long as your other issue is clarified.

I think you're right, I can only disallow OFF by the following but I cannot hide the switch, it works differently from Thermostat which I can hide the OFF button completely:
primaryService.getCharacteristic(this.Characteristic.Active).setProps({
maxValue: 1,
minValue: 1,
validValues: [1]
});


main.py issue

keeps crashing

sorry to hear that, but there is no error with this code. please double check.


Improvements for bulgarian

Fixes #8
Proposed Changes

Fix order of letters for easier reading by natives
Fix transliteration for 'ж'
Remove wrong and unneeded transliteration for 'ия'

Thank you for the fixes. :+1:

Remove wrong and unneeded transliteration for 'ия'

Doesn't this contradict the changes that were suggested on twitter?

@GrahamCampbell I think it's still valid, 'ь' -> '' | 'ьо' -> 'yo' | 'йо' -> 'yo'
"'ь' on it's own does not make sense." ... "Both 'ьо' and 'йо' are pronounced 'уо' as in 'Yo, dude'. The difference is 'ьо' goes after a consonant and 'йо' goes after vowels and in the beginning of words." - https://twitter.com/bgphp/status/1170814730199605249
current code:
// Bulgarian
    'bg' => [
        'ьо' => 'уо',
        'А'  => 'A',
        'Б'  => 'B',
        'В'  => 'V',
        'Г'  => 'G',
        'Д'  => 'D',
        'Е'  => 'E',
        'Ж'  => 'Zh',
        'З'  => 'Z',
        'И'  => 'I',
        'Й'  => 'Y',
        'К'  => 'K',
        'Л'  => 'L',
        'М'  => 'M',
        'Н'  => 'N',
        'О'  => 'O',
        'П'  => 'P',
        'Р'  => 'R',
        'С'  => 'S',
        'Т'  => 'T',
        'У'  => 'U',
        'Ф'  => 'F',
        'Х'  => 'H',
        'Ц'  => 'C',
        'Ч'  => 'Ch',
        'Ш'  => 'Sh',
        'Щ'  => 'Sht',
        'Ъ'  => 'A',
        'Ь'  => '',
        'Ю'  => 'Yu',
        'Я'  => 'Ya',
        'а'  => 'a',
        'б'  => 'b',
        'в'  => 'v',
        'г'  => 'g',
        'д'  => 'd',
        'е'  => 'e',
        'ж'  => 'zh',
        'з'  => 'z',
        'и'  => 'i',
        'й'  => 'y',
        'к'  => 'k',
        'л'  => 'l',
        'м'  => 'm',
        'н'  => 'n',
        'о'  => 'o',
        'п'  => 'p',
        'р'  => 'r',
        'с'  => 's',
        'т'  => 't',
        'у'  => 'u',
        'ф'  => 'f',
        'х'  => 'h',
        'ц'  => 'c',
        'ч'  => 'ch',
        'ш'  => 'sh',
        'щ'  => 'sht',
        'ъ'  => 'a',
        'ь'  => '',
        'ю'  => 'yu',
        'я'  => 'ya',
    ],


Unexpected keyword argument - l2_norm_output

/DALLE2-pytorch-main/dalle2_pytorch/dalle2_pytorch.py", line 660, in init
self.causal_transformer = CausalTransformer(dim = dim, **kwargs)
TypeError: init() got an unexpected keyword argument 'l2norm_output'
I've pulled the latest code from this repo - did some fix break the code?

@krish240574 oh my bad! that has been removed when accounting for Katherine's suggestion about scaling the image embed. fixed in the latest! https://github.com/lucidrains/DALLE2-pytorch/commit/63029f7388a0b95e632181a274f8d99c2245ce4c

@lucidrains thank you !


Perfect Dark does not detect expansion pak

Using NTSC USA 8.7 final ROM. Perfect Dark does not detect the expansion pak, and thus the single-player campaign is missing.
This is a known bug.

I started digging into what different games use for expansion pak detection. This problem seems unique to PD. It might be a difference of reading global osMemSize vs. using osGetMemSize() which allegedly performs additional checks by writing to the extended memory. I'll keep digging through PD code to see which method it uses.

At least a dozen other titles successfully detect the presence of an expansion pak under cen64 (build 30ce1c9)

I have identified the root cause of PD thinking the expansions pak isn't present, but am currently unsure how to fix it. The issue seems to be that IPL3 thinks the cold reset is an NMI and the game's code takes a different logic path based on this.
There is some code early on in the game around 0x700016C8 (TLB mapped, unsure where this is in physical RAM or ROM) that looks like:
if (reset_type == NMI) { // *0x80000308 == 1
  mem_size = saved_mem_size; // *0x8008dcb4 = *0x803f50b8;
} else { // cold reset
  mem_size = ipl3_mem_size; // *0x8008dcb4 = *0x80000318;
}

Unfortunately, under cen64, reset_type is identified by IPL3 as NMI during a cold reset, so the game tries to use its saved value of mem_size from 803f50b8, which is 0. It compares this mem_size 0x400001: if less than sets a "is_4mb" byte flag at 0x80090af0 = 1, else sets 0.
I've checked other games under cen64 and the word at 0x80000308 always appears to be 1 (reset_type = NMI) at the game entry point.

Interesting. I am not sure why this would be. I verified that Status.SR = 0 at CPU boot.

As you indicated, I see Status.SR (bit 20) = 0 at boot, but when the reset type is handed off to IPL3 through S5, it is 1 (reset_type = NMI). To verify this, I added the following code to vr4300_ex_stage() in vr4300/pipeline.c:

  if (rfex_latch->common.pc == 0xffffffffa4000040) { // IPL3
    debug("S3 = %08X\nS4 = %08X\nS5 = %08X\n",
      vr4300->regs[VR4300_REGISTER_S3],
      vr4300->regs[VR4300_REGISTER_S4],
      vr4300->regs[VR4300_REGISTER_S5]);
  }

Output:
S3 = 00000000
S4 = 00000001
S5 = 00000001

I don't yet know enough to understand how the data is propagated from the CP0 Status register into S5, but it looks like IPL2 is expecting the PIF to set magic bits set in PIF RAM offset 0x24 (bfc007e4/1fc007e4): S5 = ((*0xbfc007e4) >> 17) & 1. For Perfect Dark, the word loaded from 0xbfc007e4 is 0x2913F which is the CIC_SEED_NUS_6105. Is this seed value supposed to be stored here? Is the PIF supposed to overwrite it with something else at some point?
To increase my confidence that this is the issue with PD, I set a breakpoint on the debug() line above and merely change vr4300->regs[VR4300_REGISTER_S5] = 0 and the expansion pak detection in PD worked as expected:

I asked for clarification over on #n64dev and got a lot of good information. Long description below, but the problem is that the word in PIF RAM offset 0x24 contains status bits in addition to the CIC seed values. Specifically, bit 17 is the reset type (1 = NMI, 0 = cold reset).
bits     | reg | description
00080000 | S3  | osRomType (0=GamePack, 1=DD)
00040000 | S7  | osVersion
00020000 | S5  | osResetType (1 = NMI, 0 = cold reset)
0000FF00 | S6  | CIC IPL3 seed value
000000FF | --  | CIC IPL2 seed value

Therefore, I think the CIC seeds in si/cic.c should be updated as below and if NMI needs to be generated, 0x00020000 should be set.
#define CIC_SEED_NUS_5101 0x0000AC00U
#define CIC_SEED_NUS_6101 0x00043F3FU
#define CIC_SEED_NUS_6102 0x00003F3FU
#define CIC_SEED_NUS_6103 0x0000783FU
#define CIC_SEED_NUS_6105 0x0000913FU
#define CIC_SEED_NUS_6106 0x0000853FU
#define CIC_SEED_NUS_8303 0x0000DD00U

For completeness, here is a summary of the N64 boot.

Looks good, and thanks for the info. Free free to make a PR... you've done all the hard work!


Add LVK survey page and data listings

Closes #59

Add LVK to Data Listings page.
Add LVK page to Surveys section.

@hernandezc1 please review. I'm going to merge this now so I can publish it but take a look when you can and let me know if it needs changes.

@troyraen this looks great. Thanks for updating


distribute a 3G zip file to 1300+ nodes， massive back to source occered

version： 2.1.36
distribute a 3G zip file to 1300+ nodes, course a massive backtosource
here is the log
manager:
[root@docker-whlkg-10 /]# grep<PHONE_NUMBER>3309 /data/log/dragonfly/manager/*
/data/log/dragonfly/manager/core-2024-04-25T17-09-12.714.log:{"level":"info","ts":"2024-04-25 16:39:15.347","caller":"job/preheat.go:154","msg":"create preheat group group_79acd565-09e2-4ba7-addd-23c8c61e8731 in queues [scheduler_1_docker-whbd-<IP_ADDRESS>], tasks: []tasks.Signature{tasks.Signature{UUID:"task_703ebda5-7096-4a1d-8057-ba55eb9dacdc", Name:"preheat", RoutingKey:"scheduler_1_docker-whbd-<IP_ADDRESS>", ETA:, GroupUUID:"group_79acd565-09e2-4ba7-addd-23c8c61e8731", GroupTaskCount:1, Args:[]tasks.Arg{tasks.Arg{Name:"", Type:"string", Value:"{\"url\":\"http://qx-rtsp-bizdata.qiyi.domain:8080/files_cache/business_mmap/20240425163309/20240425163309.tar.gz\\\",\\\"tag\\\":\\\"\\\",\\\"digest\\\":\\\"\\\",\\\"filteredQueryParams\\\":\\\"\\\",\\\"headers\\\":null,\\\"application\\\":\\\"\\\",\\\"priority\\\":0}\"}}, Headers:tasks.Headers(nil), Priority:0x0, Immutable:false, RetryCount:0, RetryTimeout:0, OnSuccess:[]*tasks.Signature(nil), OnError:[]*tasks.Signature(nil), ChordCallback:(*tasks.Signature)(nil), BrokerMessageGroupId:"", SQSReceiptHandle:"", StopTaskDeletionOnError:false, IgnoreWhenTaskNotRegistered:false}}"}
/data/log/dragonfly/manager/core-2024-04-25T17-09-12.714.log:{"level":"debug","ts":"2024-04-25 16:39:15.526","caller":"gin@v1.9.1/context.go:174","msg":"trace","elapsed":0.093622044,"rows":1,"sql":"INSERT INTO job (is_del,task_id,bio,type,state,args,result,user_id) VALUES ('0','group_79acd565-09e2-4ba7-addd-23c8c61e8731','','preheat','PENDING','{"filteredQueryParams":"","headers":null,"password":"","platform":"","tag":"","type":"file","url":"http://qx-rtsp-bizdata.qiyi.domain:8080/files_cache/business_mmap/20240425163309/20240425163309.tar.gz\",\"username\":\"\"}',NULL,0)"}
scheduler:
scheduler2.txt
seed-peer:
Uploading seed-peer1.txt…

{"level":"error","ts":"2024-04-25 19:03:54.292","caller":"peer/peertask_piecetask_synchronizer.go:407","msg":"synchronizer receives with error: rpc error: code = Internal desc = peer task failed: peer task failed: 4000/digest not set","targetPeerID":"<IP_ADDRESS>-628-a68fc0c3-0a6d-4c2c-9581-36cb41d39ee7","peer":"<IP_ADDRESS>-568-9c4cce34-0993-4e54-9cb8-fe435f9beda5","task":"4a3dcdade0092c15dfdd78146ae83c707baffc12c50397def00c589322e0b669","component":"PeerTask","trace":"7ac392c3aa4d468eadd0a7756511a5a7","stacktrace":"d7y.io/dragonfly/v2/client/daemon/peer.(*pieceTaskSynchronizer).receive\n\t/home/runner/work/Dragonfly2/Dragonfly2/client/daemon/peer/peertask_piecetask_synchronizer.go:407\nd7y.io/dragonfly/v2/client/daemon/peer.(*pieceTaskSynchronizer).start\n\t/home/runner/work/Dragonfly2/Dragonfly2/client/daemon/peer/peertask_piecetask_synchronizer.go:297"}
`digest not set

@kuafu-run Can you upload seed peer logs ?

I changed the config:
job:
Scheduler enable job service.
enable: true
Number of workers in global queue.
globalWorkerNum: 500
Number of workers in scheduler queue.
schedulerWorkerNum: 500
Number of workers in local queue.
localWorkerNum: 1000
in scheduler,  clean the dynconfig in cache, restart 3 schedulers
AND changed config:
disableAutoBackSource: true
calculateDigest: false
in BOTH seed-peer and peer, clean the dynconfig in cache, restart all seed-peers, and peers
and start the 3G zip file distritution to 1300+ nodes  in every 5 minutes.
Initially,  things went well,
hours later , massive back to source occered, and their was no traffic in seed-peer
here 's a log from a peer, with a 5006 error code
peer.<IP_ADDRESS>-5006-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7.txt
and log from scheduler grep by taskid
scheduler-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7.txt

@kuafu-run Please upload daemon logs.

@kuafu-run Please upload daemon logs.

Uploading peer-<IP_ADDRESS>-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7-2.txt…

@kuafu-run Please upload daemon logs.

Uploading peer-<IP_ADDRESS>-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7-2.txt…

The link is invalid.

@kuafu-run Please upload daemon logs.

Uploading peer-<IP_ADDRESS>-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7-2.txt…

The link is invalid.

peer-<IP_ADDRESS>-7052d9180c3e7109941aab53673546a3204fc3cd3463de20ac5c04597b07d7f7-2.txt


FOR-15 fix approx_cmp in msg_chain.rs

Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)

Closes
Other information and links

I just merge main for ya. @creativcoder If there's no objections from you before CI finishes, I'll go ahead and squash and merge this for ya to get it out of the way.

This closes #1147, correct?


"circular require considered harmful" warning in Rollbar >= 2.19.3

As of Rollbar 2.20, Rollbar generates this warning:

warning: loading in progress, circular require considered harmful - …/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/rollbar-2.20.0/lib/rollbar/notifier.rb

Version 2.19.0:
# Rollbar 2.19.0
gem install rollbar -v 2.19.0
ruby -w -e 'gem("rollbar", "2.19.0"); require "rollbar"'

Does not produce a warning.
Version 2.20.0 (and any version since then):
# Rollbar 2.20.0
gem install rollbar -v 2.20.0
ruby -w -e 'gem("rollbar", "2.20.0"); require "rollbar"'

Produces this warning:

…/ruby/2.5.7/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59: warning: loading in progress, circular require considered harmful - …/ruby/2.5.7/lib/ruby/gems/2.5.0/gems/rollbar-2.20.0/lib/rollbar/notifier.rb
from -e:1:in  `<main>'
…

I'm on Ruby 2.5.7p206.
It looks like https://github.com/rollbar/rollbar-gem/pull/773 fixed a similar issue back in 2018, after a report in https://github.com/rollbar/rollbar-gem/issues/544.

@jordan-brough Thank you for the report. I'll take a look.

@waltjones FYI I looked a bit more today and noticed that for both Ruby 2.5.7 and Ruby 2.6.5, the issue happens between v2.19.2 and v2.19.3.
Specifically in commit 66ff7b9, where Rollbar::Item::Locals was added with require 'rollbar/notifier here.
This makes the dependency chain go like this:
rollbar -> notifier -> item -> item/backtrace -> item/frame -> item/locals -> notifier
and Ruby complains when it hits the second require 'rollbar/notifier' in rollbar/items/locals.

I also noticed that Ruby 2.7.0 has more "circular require considered harmful" complaints, even in v2.19.2 https://gist.github.com/jordan-brough/2d7a550be3a52feb49e5fa0e412edafc. I haven't looked much at that, might be something to leave for another issue.

@jordan-brough Thank you for the analysis.

I also experienced this in some of my projects, I investigated the issue and pushed a fix for it on: #1005. Hope it helps.

Released in v3.1.2.


Startproject zipfile.BadZipfile: File is not a zip file

Hi
When I use the command django-admin.py startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env example to start a new project which name is example under Python2.7.6, encounter a error: zipfile.BadZipfile: File is not a zip file.
Following is all my verbose error information:
django-admin.py startproject --template=https://github.com/arocks/edge/archive/master.zip --extension=py,md,html,env example
Traceback (most recent call last):
File "/usr/local/bin/django-admin.py", line 5, in
management.execute_from_command_line()
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 385, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **options.dict)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 338, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.7/site-packages/django/core/management/commands/startproject.py", line 31, in handle
super(Command, self).handle('project', project_name, target, **options)
File "/Library/Python/2.7/site-packages/django/core/management/templates.py", line 122, in handle
base_subdir)
File "/Library/Python/2.7/site-packages/django/core/management/templates.py", line 205, in handle_template
return self.extract(absolute_path)
File "/Library/Python/2.7/site-packages/django/core/management/templates.py", line 299, in extract
archive.extract(filename, tempdir)
File "/Library/Python/2.7/site-packages/django/utils/archive.py", line 49, in extract
with Archive(path) as archive:
File "/Library/Python/2.7/site-packages/django/utils/archive.py", line 58, in init
self._archive = self._archive_cls(file)(file)
File "/Library/Python/2.7/site-packages/django/utils/archive.py", line 181, in init
self._archive = zipfile.ZipFile(file)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 766, in init
self._RealGetContents()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 807, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
I have installed a django with version 1.7.6 in an virtualenv.

Hi @rayzl0523minibear ,
There could be several reasons for the file getting corrupted such as being behind a proxy. If that's the case then could you try downloading the zip file from your browser? Download edge-master.zip (right-click and save the link) and run this command wherever you saved the file:
django-admin.py startproject --template=edge-master.zip --extension=py,md,html,env example

If it worked, then you can delete the zip file.

Yeah, it works. But I don't have any idea about the error when using a .zip template. Anyway, I can use the edge is OK. Thank you.


Integrate Podman Desktop Playwright e2e tests into workflow testing Podman Installation using GOAX on windows

Not sure about the recent commits

yeah, not sure why the podman-desktop-e2e is in there...would not that break your execution? , also In my mind you  do not build podman-desktop within the target testing host but only run your playwright script.
So not really sure where the runner image of code is coming from I was checking your repo but it seems to be empty

@benoitf @adrianriobo

Not sure about the recent commits 5ff16fb and afbfd6a also from comment :

hi, what's the difference with https://github.com/containers/podman-desktop-e2e/blob/main/.github/workflows/windows.yaml ?

shouldn't it be merged in the same launch ?

I believe that we have two various workflows here:
Test that installs podman through podman desktop and then

Run podman desktop e2e (Playwright) tests with use of already installed podman
Run Podman e2e tests against podman installed by podman desktop

but could we not run PlayWright tests on the same Windows machine ?
We don't need another run. I think once we have the machine, we should execute all the tests from there.
Also maybe PlayWright tests can be executed just after podman has been installed by the goax tests.

but could we not run PlayWright tests on the same Windows machine ? We don't need another run. I think once we have the machine, we should execute all the tests from there.

We might consider that. I would be for doing this when we have both workflows stable.

Also maybe PlayWright tests can be executed just after podman has been installed by the goax tests.

That is what is happening, right?Ifyou have in mind reusing the same instance of podman desktop, then we need to first solve some issues with playwright and electron -> https://github.com/containers/podman-desktop/issues/4127


Add MaterialTag.has_eye property

Adds a MaterialTag property that controls whether end portal frames have an ender eye.

Is there any reason this is its own property and not just bulked into switched?

Is there any reason this is its own property and not just bulked into switched?

Added into MaterialTag.switched


Show number of filtered debug console items

Testing https://github.com/microsoft/vscode/issues/105185
Just another feature request. It would be useful to see how many debug console items are filtered out. Especially if I see this number going up, then I know I am missing new messages.

Yeah great idea. I think this could be shown in the filter area.
This could be a shared experience also in the Problems view @sandy081
I am opening this up for PRs.

@isidorn FYI, problems view already show this like below

Great! Then we should just copy what Problems is doing
https://github.com/microsoft/vscode/blob/00754e4babebc9ee5aa881234bc16366c4f32aa9/src/vs/workbench/contrib/markers/browser/markersViewActions.ts#L393
Assigning to September so I tackle then if no PR's arrive

Hi @isidorn
I can take a look into this if no one else is assigned.

@pfongkye sounds great. We should just have the exact same functionality as the Problems view, so checking how it is done there is a good start.

@pfongkye friendly ping regarding this, since if you are not looking into it I might take a look next week...

@pfongkye friendly ping regarding this, since if you are not looking into it I might take a look next week...

Hi @isidorn sorry, I didn't have time last week. I've just started looking into the issue. I hope to have something ready for next week if it's ok with you. I'll keep you updated. Thanks.

@pfongkye great thanks. Since you are already on this I will remove the help wanted label

Thanks to @pfongkye we now have this.
Adding verification needed so we get this verified:

Start debugging and verify when using the debug filter that the filter shows what is the number of hidden items


[RFC] Implemented SteamVR overlay support

This implements SteamVR overlay support \o/
It allows displaying an overlay over other VR games. The contents of the overlay will be the contents of the Godot Viewport that has ARVR turned on.
Features:

Absolute / relative tracking of the overlay
Sets texture from Godot viewport
Allows configuring tracking universe (seated/standing/raw)

I've added an OpenVRConfig class for setting states, and a OpenVROverlay class for creating and manipulating the overlay (I will need to make some documentation for this once this is merged). For now, I have a project using this here: https://github.com/relamptk/vr-streaming-overlay
What's missing?
Basically we have no high quality overlay support - this could be added but from what I understand is discouraged to use by Valve (it has some limitations like only one high quality overlay being able to be active and today's HMD's overlays are high quality already).
I also did not add the function to create an overlay via an image file, I feel this is more for quick scripts displaying a static image as overlay, rather than a game engine like Godot, which can already load images if desired.
Overlay mouse input is also missing, if someone needs this I guess we can see how to add it and integrate this with Godot's input system.
Last thing that is missing is dashboard overlay support, we would basically need two different textures, one for the "icon" on the dashboard, and one for the overlay. Not sure how we could do that in Godot, so I left his out.
Request for comments
So I'd like to get some feedback from people about the API I used, specially about the enums in the OpenVRConfig class - it would have been cool to be able to export enums to the editor from GDNative, but from what I saw this isn't possible.
How to use
First, use the OpenVRConfig class to set the application to overlay mode, and set the tracking universe:

OpenVRConfig = preload("res://addons/godot-openvr/OpenVRConfig.gdns").new()
OpenVRConfig.set_application_type(2) # Set to OVERLAY MODE = 2, NORMAL MODE = 1
OpenVRConfig.set_tracking_universe(1) # Set to SEATED MODE = 0, STANDING MODE = 1, RAW MODE = 2

Next, create your ARVR interface as usual (setting the config first is crucial!):
var arvr_interface : ARVRInterface = ARVRServer.find_interface("OpenVR")
if arvr_interface and arvr_interface.initialize():
    ....

Once that is done, you can create an overlay and show it:
OpenVROverlay = preload("res://addons/godot-openvr/OpenVROverlay.gdns").new()
OpenVROverlay.create_overlay("beniwtv.vr-streaming.overlay","VR Streaming Overlay") # Unique key and friendly name
OpenVROverlay.set_overlay_width_in_meters(1.5)
OpenVROverlay.show_overlay()

And set it's position via a transform (important, or it will be right on the HMD and not visible):
var transform : Transform = Transform(Basis(Vector3(0, 0, 0)), Vector3(position_x, position_y, position_z))
transform.basis = transform.basis.rotated(Vector3(1, 0, 0), rotation_x)
transform.basis = transform.basis.rotated(Vector3(0, 1, 0), rotation_y)
transform.basis = transform.basis.rotated(Vector3(0, 0, 1), rotation_z)

transform = transform.orthonormalized()

OpenVROverlay.overlay_position_absolute(transform)

Or OpenVR can also track it automatically relative to a controller / tracker:
# Quick n' dirty code to get a tracker ID as illustration
var tracker = ARVRServer.get_tracker(0)
var name_parts = tracker.get_name().split("_")
trackingId = name_parts[name_parts.size() - 1]

OpenVROverlay.track_relative_to_device(trackingId, transform)

:)

Looks good to me man, I'm for merging this and looking at some of the enhancements/missing bits you talk about once i get through the restructure to godot-cpp. That will effect some of your classes to (will make some of the code cleaner too)

Sure, let's do it then :)


Fix user secrets doc display issues

Fix display issues in the Safe storage of app secrets during development doc which make it difficult to read.

@scottaddie,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@scottaddie  Thanks. See this


FGPU2 unit tests

#102 is potentially relevant

Closed as open ended. We can review test coverage in the future.


Added Animation Args

allows for much simpler abstraction. Meaning the same animation can be used for multiple different things. Supports all text boxes in condition and actions.
I still don't get pull requests but this  should have all the files properly chaged

what? i didn't. i made a separate pull request?

i don't get github

Not very good, will remake when a better idea is conceptualised


fix pre-commit

The creation of the pre-commit file is not standard, so it cannot be executed on Windows.
Stylelint was upgraded from 13 to 15 before, but no corresponding adaptation was made, resulting in an error during execution.

@Keith-CY Previously, I mixed the code automatically fixed by stylelint with the code I manually fixed in the same commit. Now, I have separated the manually fixed code into a separate commit https://github.com/Magickbase/ckb-explorer-frontend/pull/26/commits/eb4e1711cb8b891a16bda3ea2c850171db445fce for review, as it may cause unexpected changes in page layout.


train

how to train ip-adapter-faceid-portrait_sd15.bin

https://github.com/tencent-ailab/IP-Adapter/issues/314

Thank you very much


[CI] [Java] Crossbow verify-rc-source-java-macos-amd64 fails with a format error in configs

Describe the bug, including details regarding any error messages, version, and platform.
A workflow file format issue has been found in https://github.com/ursacomputing/crossbow/actions/runs/8606378683/workflow while running Java crossbows.
Component(s)
Java

This is caused in #40537 by me...

I was wrong. #40949 broke this.

Issue resolved by pull request 41091
https://github.com/apache/arrow/pull/41091


Capturing Hono exceptions with the Cloudflare Pages Sentry Plugin

Hi there, i'd like to be able to use the Cloudflare Pages Sentry Plugin (https://developers.cloudflare.com/pages/platform/functions/plugins/sentry) to capture exceptions from my Hono API. I've got the following 2 files:
functions/hello.ts
import { Hono } from 'hono'
import { handle } from 'hono/cloudflare-pages'

const app = new Hono()

app.get('/hello', (c) => {
  throw new Error('Capture this error in Sentry!')
})

export const onRequest = handle(app, '/api')

functions/_middleware.ts
import sentryPlugin from "@cloudflare/pages-plugin-sentry";

export const onRequest: PagesFunction = sentryPlugin({
  dsn: "https://sentry.io/welcome/xyz",
});

When I trigger the error from the hello.ts function.. it doesn't see to be properly capturing it in the Sentry Pages Plugin. I'd like to use the Sentry Pages Plugin so I can capture all my exceptions (not just from my Hono API's).
Any idea's how I could get the exception to properly trigger the Sentry Pages Plugin? Thanks!

Hi @iliketowritecode !
I did not try it with Pages, but how about rethrow the Error in onError:
app.onError((e, c) => {
  throw e
})

Hi @iliketowritecode !
I did not try it with Pages, but how about rethrow the Error in onError:
app.onError((e, c) => {
  throw e
})

Tried this as well.. but unfortunately did not work either :( I just get a Internal Server Error message in the browser and no error is forward to Sentry.

@iliketowritecode
I have found the cause of this problem. It may be fixed in the next version. Please wait for a little.

@iliketowritecode
I have found the cause of this problem. It may be fixed in the next version. Please wait for a little.

Thank you so much. I appreciate your time! :) And sounds great!

Hi @iliketowritecode !
We've released v3.0.3. Install it and try the following code:
import { Hono } from 'hono'
import { handle } from 'hono/cloudflare-pages'

const app = new Hono().route('/api')

app.get('/hello', (c) => {
  throw new Error('Capture this error in Sentry!')
})

export const onRequest = handle(app)

This may work well:)


ASAN crashed - Caused by nanomq-ci

AddressSanitizer:DEADLYSIGNAL
==1394288==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fc1e650b05d bp 0x7fc1e09f5950 sp 0x7fc1e09f5108 T9)
==1394288==The signal is caused by a READ memory access.
==1394288==Hint: address points to the zero page.
==1394288==WARNING: invalid path to external symbolizer!
==1394288==WARNING: Failed to use and restart external symbolizer!
#0 0x7fc1e650b05d  (/lib/x86_64-linux-gnu/libc.so.6+0x19c05d)
#1 0x4476d8  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x4476d8)
#2 0x61f109  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x61f109)
#3 0x60ae8c  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x60ae8c)
#4 0x53a0f2  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x53a0f2)
#5 0x55ca5d  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x55ca5d)
#6 0x559f5b  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x559f5b)
#7 0x5b4485  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5b4485)
#8 0x5b5add  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5b5add)
#9 0x5bed7d  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5bed7d)
#10 0x7fc1e6403946  (/lib/x86_64-linux-gnu/libc.so.6+0x94946)
#11 0x7fc1e6493a43  (/lib/x86_64-linux-gnu/libc.so.6+0x124a43)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x19c05d)
Thread T9 created by T0 here:
#0 0x49a5dc  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x49a5dc)
#1 0x5bebb6  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5bebb6)
#2 0x5b5820  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5b5820)
#3 0x5b418c  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5b418c)
#4 0x5b5303  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5b5303)
#5 0x59bc1c  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x59bc1c)
#6 0x5bf236  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5bf236)
#7 0x59bc02  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x59bc02)
#8 0x5ef06f  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5ef06f)
#9 0x5e3858  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5e3858)
#10 0x55ddae  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x55ddae)
#11 0x562381  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x562381)
#12 0x5393b2  (/home/jaylin/projects/EdgeComputing/nanomq/build/nanomq/nanomq+0x5393b2)
#13 0x7fc1e6398fcf  (/lib/x86_64-linux-gnu/libc.so.6+0x29fcf)
==1394288==ABORTING

probably a bug from ASAN itself , but I am not sure

after topic alias:
Session expiry interval test passed!
User property test passed!
Shared subscription test passed!
Topic alias test failed!
Error: Connection refused
Error: Connection refused
Error: Connection refused
Retain As Published test failed!

Testing with nnc_testv5.py or nnc_test.py?

The source file information in backtrace seems lost ... Maybe you should provide more other stuff.


Python version

Hi,
Can you tell me what python version you use in this project?
Thank you very much for your project.

Hello, we use Python=3.8.13

Hello, we use Python=3.8.13

Thanks!


Add Status conditions for Claim and Composite

Description of your changes
Adds the ability to publish status to the Claim or the Composite.  Depends on PR #144
apiVersion: meta.gotemplating.fn.crossplane.io/v1alpha1
kind: ClaimConditions
conditions:
# Guide to ClaimConditions fields:
# Type of the condition, e.g. DatabaseReady.
# 'Healthy', 'Ready' and 'Synced' are reserved for use by Crossplane and this apiVersion: meta.gotemplating.fn.crossplane.io/v1alpha1
kind: ClaimConditions
conditions:
# Guide to ClaimConditions fields:
# Type of the condition, e.g. DatabaseReady.
# 'Healthy', 'Ready' and 'Synced' are reserved for use by Crossplane and this function will raise an error if used
# - type:
# Status of the condition. String of "True"/"False"/"Unknown"
#   status:
# Machine-readable PascalCase reason, for example "ErrorProvisioning"
#   reason:
# Optional Target. Publish Condition only to the Composite, or the Composite and the Claim (CompositeAndClaim).
# Defaults to Composite
#   target:
# Optional message:
#   message:
- type: TestCondition
  status: "False"
  reason: InstallFail
  message: "failed to install"
  target: CompositeAndClaim
- type: ConditionTrue
  status: "True"
  reason: TrueCondition
  message: we are true
  target: Composite
- type: DatabaseReady
  status: "True"
  reason: Ready
  message: Database is ready
  target: CompositeAndClaim

Fixes #131
I have:

[x] Read and followed Crossplane's contribution process.
[x] Added or updated unit tests for my change.

go test -cover claimconditions.go claimconditions_test.go
ok      command-line-arguments  0.355s  coverage: 96.3% of statements

Tested in the Composition:
     - type: RDSInstance
            status: {{ (getResourceCondition "Ready" .observed.resources.rdsinstance).Status | toString | quote }}
            reason: {{ (getResourceCondition "Ready" .observed.resources.rdsinstance).Reason }}
            message: {{ (getResourceCondition "Ready" .observed.resources.rdsinstance).Message }}
            target: CompositeAndClaim

Produces the following status in an XR:
    - lastTransitionTime: "2024-11-25T18:06:32Z"
      reason: Available
      status: "True"
      type: RDSInstance


CSV formatting has changed.

The CSV download for this document has been updated in the last couple of days. There is a formatting error resulting in the  "Product_Display_Name" column being prepended with "???" when ingested with PowerShell. This is a new issue and seems likely to be caused by an erroneous export or formatting bug.

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

ID: 7c245452-161d-89a1-c026-99a0721cf071
Version Independent ID: 16dec59a-eb83-1837-4efd-4645e7aeaed2
Content: Product names and service plan identifiers for licensing - Microsoft Entra ID
Content Source: docs/identity/users/licensing-service-plan-reference.md
Service: entra-id
Sub-service: users
GitHub Login: @Nicholak-MS
Microsoft Alias: nicholak

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

@Nicholak-MS
Can you please check and add your comments on this doc update request as applicable.

Yes, I have a member of my team looking into this.
Thanks.

Sorry, I should have added reproducibility steps.
This is the shortcut on the site to pull down the file:

This is the cmdlet I am using to pull down the file:
$licenseTable = (Invoke-WebRequest -Uri 'https://download.microsoft.com/download/e/3/e/e3e9faf2-f28b-490a-9ada-c6089a1fc5b0/Product%20names%20and%20service%20plan%20identifiers%20for%20licensing.csv' -UseBasicParsing).ToString() | ConvertFrom-Csv
Expected result is:
Product_Display_Name               : Dynamics 365 for Team Members Enterprise Edition for Government
String_Id                             : DYN365_ENTERPRISE_TEAM_MEMBERS_GOV
GUID                                  : ba05762f-32ff-4fac-a096-55309b3700a3
Service_Plan_Name                     : FLOW_DYN_TEAM_GOV
Service_Plan_Id                       : 47bdde6a-959f-4c7f-8d59-3243e34f1cb3

What I am seeing is:
???Product_Display_Name               : Dynamics 365 for Team Members Enterprise Edition for Government
String_Id                             : DYN365_ENTERPRISE_TEAM_MEMBERS_GOV
GUID                                  : ba05762f-32ff-4fac-a096-55309b3700a3
Service_Plan_Name                     : FLOW_DYN_TEAM_GOV
Service_Plan_Id                       : 47bdde6a-959f-4c7f-8d59-3243e34f1cb3

This only changed in this month. Prior to this it has worked for about 18 months.

@sofbkeller I was unable to repro this with the latest version of the PS module. If you are still seeing this issue can you confirm your PS module version number.

No additional response and no repro. Closing this issue.


Vulnerabilities

Creating a template according to provided instructions (after Install rollpkg and typescript) gives the following message:
15 vulnerabilities (2 low, 5 moderate, 8 high)

The same output you can get with npm audit.
Are there any plans to fix this?
Otherwise, I like this tool and the approaches used in it and would like to use it

Looks like all of the vulnerabilities are coming from package-build-stats for the BundlePhobia usage.

I don’t believe any of these can be exploited when used in a non-server context where the user controls the input.
Are there any specific vulnerabilities that you’re worried about?
Also, I’d suggest opening an issue with the package-build-stats library as this is an upstream issue.

Agree. Then you can close this issue


python311Packages.tensordict: 0.2.1 -> 0.3.0, python311Packages.torchrl: 0.2.1 -> 0.3.0

Description of changes
Changelog tensordict: https://github.com/pytorch/tensordict/releases/tag/v0.3.0
Changelog torchrl: https://github.com/pytorch/rl/releases/tag/v0.3.0

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Hmmm the tests seem to be very flaky.
I can build the package just fine from the checked out branch.
However, on the exact same machine, nixpkgs-preview is frozen (for several hours) at the beginning of tests:
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/source
configfile: pytest.ini
testpaths: test
plugins: rerunfailures-13.0
collected 15422 items / 432 deselected / 14990 selected

test/smoke_test.py .                                                     [  0%]
test/test_actors.py .................................................... [  0%]
 .........................s                                                            [  0%]

Any idea why this happens @vmoens ?

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

4 packages built:

python311Packages.tensordict
python311Packages.tensordict.dist
python311Packages.torchrl
python311Packages.torchrl.dist

diff lgtm, happy to merge with a clean nixpkgs-review

All good now :)


Feature request: Provide managed dependencies for referencing projects

In issue https://github.com/gradle/gradle/issues/4979 there was already a longer discussion about the feature preview improved_pom_support and differences between maven and gradle.
Without mavens nearest first and exclude concept i dont see a gradle way to provide managed dependencies (versions and excludes) to referencing projects.
Instead of solving this ourselves like in https://github.com/melix/bubble-bom (here are no excludes covered, imho it only works for versions) i would highly appreciate an official gradle way solve this.

Enforced platforms should do what you need.


[test] and [test_invocation] need N/A option

I'm not sure what kind of testsuite can a plain documentation project have. And, under circumstances when there's no testsuite around (the test criterion is unment or N/A), a question about test invocation is irrelevant.

We have had some discussions about this before within the team, and concluded that even documentation projects could have some test suite enabled, mainly a style checker of some sort.  But you raise a good point, perhaps we should reconsider.  @david-a-wheeler, thoughts?

As noted by @jdossett even documentation-only projects can and should have testsuites. E.g., link checkers, style checkers, spelling checkers, and grammar checkers.  In addition, in many situations we care about there are usually "code examples" or "equation examples" that can (and should) be executed to ensure that they actually work.  So I don't think we want to allow N/A - tests really are applicable to documentation projects.


did Anyone Migrate from React-Native-Router-Flux to React Navigation?

maybe it better using  react-navigation to navigate.

react-navigation is not production ready yet.
Though react-native-router-flux v4 is using react-navigation under the hood but it is whats called react-navigation "on steroids" with bunch of features that make react-navigation easier to use, and also some critical issues are solved in RNRF v4.
So I would suggest to check it out


Bug: A typo in the step iv of phase estimation

Where does the issue happen?
https://learn.qiskit.org/course/ch-algorithms/quantum-phase-estimation
What is the content issue?
I think the inverse fourier transform is |2^n \theta\rangle \otimes |\psi\rangle. Do I misunderstand anything?
Screenshots

Additional information
No response

This repository is no longer maintained. It has been superseded by IBM Quantum Learning.


Fix incremental make on OSX when lib files change

@danvk noticed that when you changed the lib files and than ran make (without a make clean) that the resulting binary would still use the old libraries. I looked into it and found an issue with incremental make on OSX.
Long story short, we want ocamlbuild to re-link the binary when the lib files change, since on OSX we rely on ocamlbuild to embed the lib files in the binary (objcopy is not available). However ocamlbuild doesn't understand that it needs to relink when non-ocaml dependencies change.

LGTM

@facebook-github-bot shipit


error for forecasting-with-panel-datasets example

I got error for forecasting-with-panel-datasets example
https://microsoft.github.io/FLAML/docs/Examples/AutoML-Time series forecast#forecasting-with-panel-datasets
I have windows 11
FLAML   1.2.4

builtins.FileNotFoundError: Could not find module 'C:\my_py_environments\py310_env_apr2023\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

error in line
data, special_days = get_stalliion_data()

ok
i created new enviroment only for flaml and this error gone
but now there is another error
builtins.TypeError: Trainer.init() got an unexpected keyword argument 'gpus'

I have encountered the same problem, in fact, it is caused by the pytorch-lightning version, which can be solved by reducing the version, but I still encounter a new environmental problem. Finally through the develop history I find the environment requirements, you can just run:
pip install pytorch-forecasting==0.9.0 pytorch-lightning==1.5.10

yes thank you for the comment, we are experiencing issues with the new pytorch-lightning version (as discussed in the discord group)


Maybe a typo in the NCE loss in page. 3 in the paper?

Dear Jianren and Sudeep,
Hello!
Thanks for your inspiring work! When I read about the NCE loss in the paper, I think there is a $-$ missing before the RHS because we want to maximize the similarity between $F(i_{t},a_t)$ and $i_g$ instead of minimizing it?
Are my thoughts right and if not, is there something wrong about my thoughts?
I am looking forward to your reply.
Regards,
Dongjie

Thanks for your interest in the paper! You're right that we want to maximize the similarity. I think the double negative in the definition for L_d may be accidental.
It may be helpful for you to see the implementation in code. We calculate cosine similarities here, and can efficiently compute the contrastive term using CrossEntropyLoss.


Prevent sync attempt when push is from Dependabot

Dependabot doesn't have access to our secrets.

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


Add the posibility to return the game region from DB

From now the database only returns the title. Add the posibility of to return the region:

Add the columnt into the DB
Create a new function in the plugin class
Create the new C function in the plugin
Handle the function from the PluginHandler

The plugin is able to return the game title, region and language.


x/tools/cmd/goimports: doc lists out-of-date go-mode.el configuration

https://godoc.org/golang.org/x/tools/cmd/goimports
It says to add the following to .emacs:
(setq gofmt-command "goimports")
(add-to-list 'load-path "/home/you/somewhere/emacs/")
(require 'go-mode-autoloads)
(add-hook 'before-save-hook 'gofmt-before-save)

go-mode-autoloads is no longer used by go-mode (see dominikh/go-mode.el#222), and this line will probably produce an error. That line should be removed.
Also, I found the add-to-list line confusing, because it's not clear from context whether this is optional or required. Might be good to remove that, and then say something like "This searches load-path for goimports, so you may need to add the goimports location to load-path." (Sorry for this separate issue. Feel free to tell me to break it out to a separate issue if it's too large or controversial.)

Really, the only line that is necessary is the first one. Emacs users will already have done all of the other necessary steps to get go-mode working.

This was fixed in golang/tools@1c3d964395ce8f04f3b03b30aaed0b096c08c3c6, so I'm closing this issue.


bundle install error

there are many errors happened when I use "bundle install" ,it looks like the source of
git://github.com/peatio/mina-slack.git
doesnot exist?

Fetching gem metadata from https://rubygems.org/.......
Fetching git://github.com/peatio/mina-slack.git
fatal: remote error:
Repository not found.

i can help you
Skype: amin_1375.kr


ocamlPackages.findlib: don't wait configurePhase to set OCAMLFIND_DESTDIR

this fixes ocamlfind printconf destdir inside nix-shell
fixes #152028
the regression was introduced by a3ab43d3a45338f845a0f8a12ed34e84c8b79dae which was meant to fix building ocamlPackages.ocamlbuild with strictDeps. This commit keeps ocamlbuild building.

Motivation for this change
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Bisect says this change broke ocamlPackages.ocaml_libvirt in staging:
$ nix build -f. ocamlPackages.ocaml_libvirt -L
...
ocaml-libvirt> ocamlfind: Bad configuration: Cannot mkdir /nix/store/iw3q68k4il2zqch2z17ifxygqcs5sjgd-ocaml-libvirt-<IP_ADDRESS>/lib/ocaml/4.12.0/site-lib/libvirt because a path component does not exist or is not a directory
ocaml-libvirt> make[1]: *** [Makefile:134: install-opt] Error 2
ocaml-libvirt> make[1]: Leaving directory '/build/source/libvirt'
ocaml-libvirt> make: *** [Makefile:31: install-opt] Error 1

Probably because ocamlPackages.ocaml_libvirt overrides pre/post hooks with phase overrides:
  buildPhase = "make all opt CPPFLAGS=-Wno-error";
  installPhase = "make install-opt";

Proposed fix as https://github.com/NixOS/nixpkgs/pull/156825


[AutoPR storage/resource-manager] Adds canFailover boolean flag under storage account's GeoReplicationS…

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4532

Build output:

dist/com.microsoft.azure.storage.v2018_07_01/azure-mgmt-storage-1.0.0-beta.pom
dist/com.microsoft.azure.storage.v2018_07_01/azure-mgmt-storage-1.0.0-beta-sources.jar
dist/com.microsoft.azure.storage.v2018_07_01/azure-mgmt-storage-1.0.0-beta-javadoc.jar
dist/com.microsoft.azure.storage.v2018_07_01/azure-mgmt-storage-1.0.0-beta.jar

This PR has been merged into https://github.com/Azure/azure-sdk-for-java/pull/2479


Changing the .css style format from login page

Is there a way of changing the style (css) of the web pages in shinyproxy – specially login and application pages?

@wrprates not yet, but we will provide a mechanism and include it for the next release

See release v1.1.1


Proposal: Generate go file with table and columns name to help during dynamic queries

It will be helpful to have table and column names during dynamic queries
Example
generated meta.go from query.sql

Thank you so much for taking the time to put together this PR. I'm not going to be merging this right now. Dynamic queries are something that I want to support, but I'd like for sqlc to offer a comprehensive solution to the problem. This PR only gets us a bit closer to a solution.
I am working on a plugin system so that you could augment the output of sqlc with this metadata without having to make changes to sqlc itself. It's a few months out, but should provide the necessary functionality.


Setup Slack channel for developers and maintainers

Slack seems to be the collaboration app to use right now. It'll great if someone can set up a channel as a common place for flow collaboration.

I just set up a channel! Give me an email and I'll send you an invite.


Add Pull Request Approval to API

Gitea version (or commit ref): 1.13.0
Operating system: all

Description
Currently, one of the major downsides of Gitea is that Pull Requests cannot be approved using the API.
As far as I have seen, this is because there is no pull request approval hook in the API.
This limits the usability of Gitea from outside, for example from within an app, by a lot because that is in my opinion the main point of using the API at all.
Changes to be implemented

Add Approve Pull Request hook in the API
Add Request Changes hook in the API

Hmm, If I understood, They are exist now

https://gitea.com/api/swagger#/repository/repoCreatePullReview
https://gitea.com/api/swagger#/repository/repoCreatePullReviewRequests

see https://github.com/go-gitea/gitea/blob/master/integrations/api_pull_review_test.go for how to use them. Thanks :)

as @a1012112796 says these exist already. They may be in an unreleased version. Please re-open if these APIs do not do what you want.

Well, while they do exist, they are poorly documented.
The question is: Should this issue be reopened by stating to add documentation for it?

As far as I can see they are as documented as the rest of the API. If you would like to improve API documentation I would suggest either adding a page to docs/content/doc/advanced and/or improving the documentation in that is in code. Feel free to open another PR or issue with suggested documentation though.


Code Feature: When there is a hard error crash let the user gracefully enter back to the beginning of the main dialog loop

Is your feature request related to a problem? Please describe.
when the user enters a bug and there is a hard error a message comes to the user that the bot is broken.  The problem with this is that if the user types anything else beyond that they will not receive any response -- albeit until they type something again or reenter into the bot as a member
Describe the solution you'd like
await bot.run(context);
The above code snippet allows the error to occur with a message to user that something is wrong with the dialog path they went down.  However, at this point the user is placed back to the beginning of the dialog flow and they simply can start over.  Perhaps a more complex scenario would leave them in certain dialogs depending on the error.
This is a much more graceful way to handle the error and leaves the client in the position to ask type something again and immediately get a response because they have started the dialog over again.
The above code snippet is placed directly at the end of the on turn error in the index.js file.
I can do a pull request if thoughts and feedback agree with the sentiment.
Describe alternatives you've considered
Leaving it as is.
Additional context
Add any other context or screenshots about the feature request here.
[enhancement]

Hey @xtianus79,
Thanks for opening up an issue.
First, a clarifying question: Is this a specific comment with our samples (this is our samples repo) or more of a feature request for the SDK? It seems like what you're asking for is the pattern.
Second, assuming this is more of a pattern thing, you do have a lot of control over error handling. You can wrap every await call and handle the errors in as graceful a fashion as you'd like. The further down the stack you catch an error, the harder it will be to keep the context, etc, but it is fully in your control. We don't show it a lot in samples, but it is fully possible.
For example, here: https://github.com/microsoft/BotBuilder-Samples/blob/master/samples/javascript_nodejs/05.multi-turn-prompt/dialogs/userProfileDialog.js#L88
If that sendActivity call were to fail, you can catch it and retry it without losing any dialog state at all.
Does that clarify anything for you?

@christopheranderson yes I believe this is more of a pattern thing.  Yes, I see what you're that in a dialog that is further down the flow you may now want to bring them back to the beginning of the main dialog... That's a good point and validation and your explanation above is well noted to handle errors down into dialog task flows.
For many use cases that don't have a dialog flow and more of a request response nature if the error occurs then what I am describing above happens and is not a good ui experience.  Meaning, the end of those dialogs brings them back to the beginning anyway so error handling in that sense would probably not be appropriate.
I think a mixture of both would cover all cases quit well.  thanks for the feedback that answers the question.


Can add minutes in daily view

I want to make split times like (13:10 13:20  etch ) ?

@cengizhanas Unfortunately, We only support a range of hours.


Vue3: SAML SLO support - feature is broken

Setup

Rancher version: 2.10
Rancher UI Extensions: n/a
Browser type & version: all

Describe the bug

SAML SLO support feature in Rancher Dashboard is broken in several places. Needs fixing.
To Reproduce

Setup a SAML auth provider that supports SLO and check that the feature is broken in master due to Vue3 migration
Result
Feature not working
Expected Result

Feature should work
Screenshots

Additional context

Based on the work done in https://github.com/rancher/dashboard/pull/11182

Testing will be tracked in https://github.com/rancher/dashboard/issues/11766


Showing EKPopUpMessageView close EKFormMessageView

First of all amazing goodlooking library!!!
I am showing a EKFormMessageView and pressing the button I validate the values of the textFields. And if one is worng I want to show EKPopUpMessageView like a Warning. But this action closes the FormMessageView. Why? Is there any chnace to keep the EKFormMessageView until all textfields are ok?
Thanks in advance.

Hi @iguron,
Could you please denote SwiftEntryKit version you are using? Besides -
Can you attach the relevant code? Mostly EKFormMessageView creation?
EKFormMessageView's designated initializer receives an EKProperty.ButtonContent instance as a parameter, which defines the action which supposes to take place on touchUpInside event.
It should not close the form unless you use SwiftEntryKit.dismiss() in one of the buttons' actions as in the example project.

Hi @iguron,
Sorry, I think I understand now what you are actually saying..
SwiftEntryKit does not currently support simultaneous entry display. It manages only a single entry at a time. I think that it might be worth to consider building a customized form and display your relevant warning below each text field (UX-wise).

Thanks for the quick Answer!!!

I’m considering this issue as a won’t fix. Please let me know if you think otherwise.


Option to not change the theme

Is your feature request related to a problem? Please describe.
With 2 instances, I keep one theme on dark and the other on the light theme to easily differentiate which one I'm looking at.
Describe the solution you'd like*
I would like an option to not sync the theme between the 2 devices.
Describe alternatives you've considered
I tried disabling the General sync, but that does not include the theme.
Anything else?
No response

The next release will have a feature flag: FEATURES_THEME the if set to false disabled the theme sync

Released in v0.6.13

Released in v0.6.13

Just tested and confirmed working. Thank you for the quick implementation!


Verify nightly build

Should run at midnight

Seems good: https://github.com/mortenfyhn/coffee-scales/actions/runs/340797031
Midnight UTC I guess.


Title False For SSL View

The title was before: View Ticket #XXXXXX, now it is: View SSL #XXXXX

I though I fixed that before, apparently not. Good catch.