Add the ability to provide an arbitrary array of values to Prompt::Slider

Add the ability to provide an arbitrary array of values to Prompt::Slider, overriding the automatic min,max,step calculation.
Example
require 'tty-prompt'

p = TTY::Prompt.new

apertures = ["f/2.8", "f/3.2", "f/3.5", "f/4", "f/4.5", "f/5", "f/5.6", "f/6.3", "f/7.1", "f/8", "f/9", "f/10", "f/11", "f/13", "f/14", "f/16", "f/18", "f/20", "f/22", "f/25", "f/29", "f/32"]

ans = p.slider( "Select an aperature value.", values: apertures ) do |sl|
  sl.default "f/4"
end

puts ans

class TestObj

  def initialize( name, value )
    @name = name
    @value = value
  end

  attr_reader :name
  attr_reader :value

  def to_s
    @name
  end

end

objs = [ TestObj.new( 'A', 'a' ), TestObj.new( 'B', 'b' ), TestObj.new( 'C', 'c' ) ]

ans = p.slider( "Select an aperature value.", values: objs )

puts ans.value

Select an aperature value. ───●────────────────── f/4
(Use ←/→ arrow keys, press Enter to select)
Select an aperature value. f/4
f/4
Select an aperature value. ─●─ B
(Use ←/→ arrow keys, press Enter to select)
Select an aperature value. B
b

Describe the change
Allows giving arbitrary/pre-calculated, and String data to a Slider, to be slid through.
Why are we doing this?
I had a specific need - selecting aperture and shutter speed values - that both included non-numeric values, and were irregularly spaced (so no valid step even if I remove the /).
Benefits
I don't see any benefit to limiting Slider to numbers. This adds more capability to the library by supporting arbitrary data, including Objects that define #to_s!
Drawbacks
The only backwards-compatibility issue I can think of would be changing the global FORMAT variable to use a string substitution instead of int/digit - but generally, ints translate to strings fine, so it should be okay. If one uses :min, :max, :step, it will still return an Integer.
Requirements
Put an X between brackets on each line if you have done the item:
[x] Tests written & passing locally?
[x] Code style checked?
[x] Rebased with master branch?
[x] Documentation updated?

Coverage decreased (-0.04%) to 97.533% when pulling 69e7da7bf0d51535c12b60300fb819ac6e503bbf on slowbro:slider-arbitrary-values into dbae90bbe2725d37982d8453f39a0b67e6e6f9dd on piotrmurach:master.

Ah, I like that idea - you're right, it's much more consistent. I'll refactor that and get back to you!
--
The thing I'm making is a little control script/app using GPhoto2 for my DSLR which I'm using as my webcam for WFH: https://github.com/slowbro/camera-capture
Nothing super special, but it is nice to be able to adjust focus, aperture, etc without having to fiddle with the thing!

Committed. I ended up using Choices for the numbers (min, max, step) as well. It should still be backwards-compatible! In this configuration, if you provide choices (either in prompt#slider, or via DSL) it will override any min/max/step you set (or the default).
I also made it possible to select the default by name or order (default: 'f/2.8', or default: 1), as by default it seems to be by-index.. at least in most places. This would be nice behavior elsewhere (i.e. select) - if you agree, I can make a separate PR to implement that.

A pleasure to review and merge! Thank you❤
I like your idea of extending default to accept both index and value - that would certainly improve the experience.

I had a quick look at the camera-capture and I really like the idea - it looks super useful! I have Cannon as well and will give the script a try. Currently I'm learning photography but was thinking of using my camera for streaming as well. Have you thought about packaging the script and releasing it as a Ruby gem?

Thanks for checking it out! I've actually never packaged my own gem before, but I plan on it! It would definitely be nice for dependency & putting the binary in one's PATH. I'm going to flesh out some of the core functionality around configurations before I do that, but it's definitely on the horizon!

I often start by fleshing things out in a script with a corresponding test file. When things look promising, then I move my script code over to a gem.
Once you have a minute you could consider using tty and the teletype for generating gem layout. Currently it piggy-backs on the Bundler gem but in the near future I want to generate things entirely from scratch. The tty master branch is the lastest unreleased implementation which I would appreciate help with. Your gem could be a good test bed. As for configuration tty-config is quite handy.
I will definietly add your gem to the projects section on ttytoolkit.org. I plan to change the current design so it doesn't require any project logos and try to add more projects so people can find repositories to learn/get inspired from.

Ah, that's great! I will check out teletype and see how it works.


Doc example for ndimage.minimum_position

Reference to: https://github.com/scipy/scipy/issues/7168

(Your commits from gh-8467 appear to have gotten mixed up in here, which you don't want.)


Fix for issues when using FFImageLoading control in an Intune managed…

… Android Xamarin app. Context from Android.App.Application.Context.ApplicationContext is not fully loaded, most of the properties throws an JavaNullPointerException, causing the images to be empty on Android.
When using new Android.Content.ContextWrapper(Android.App.Application.Context) it works again.

That's a nice find! Thanks!


How to add multiple images of different annotations ?

as if we have to set annotations on the basis of different data from array

hey there,
i found a solution, if you don't set the override methode of mkannotationview in mapviewplus, and pass a generic image variable, then you can have multiple types of annotations

Then I assume this issue is closed.


Add TracingRwLockUpgradableReadGuard wrapper for parking_lot

parking lot RwLock allows to get upgradable read locks.

Done. Thanks.


Extend motivation/reasoning for "why decorrelate trees"

also: add "extremely randomized trees"?

perhaps in a deep dive on bagging principle

we did that -- minus extra tress


Add "Read button" to attest that the user has read this page

Describe the feature you'd like
On all pages, add a button that all readers can click to attest to the reading
Describe the benefits this would bring to existing BookStack users
We us BookStack like an internal Wiki for my company.
When an user read one page, we doesn't know if he has really reading
Can the goal of this request already be achieved via other means?
With the comment but it is not practical
Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?
6 months to 1 year
Additional context
No response

Thanks for the suggestion @maxime-robin-mis, but this really comes across as a business specific process so I'm not really sure on the value of such as feature within BookStack itself, other than being a convenient location for your business process.
Even if we added this, you would still not know if the user has read the page, only that they say they have.

Due to the above, and since there's been no further discussion, I'm going to go ahead and close this off.


increase the pull distance that triggers pull to refresh

Pull to refresh is very sensitive because it is triggered when the page is pull down for 44 pixel. This patch increase the pull distance to 1/4 of the screen.

after testing on device, 1/5 seems better. Will submit another pull request.


chore: split CI into separate chunks

This is a change request
Problem
nwaku depends on some of our CI steps and the first solution was to use workflow_call. This is not ideal because now they have all of the steps from js-waku CI and not to run all of them we had to clutter code a bit with extra conditions.
Proposed Solutions
Split ci.yml into chunks so that they can be consumed or research other options (clone js-waku & inject nwaku through process.env e.g).
Notes
Original PR - https://github.com/waku-org/js-waku/pull/1541

cc @fbarbu15 @vpavlin

Added this PR for the splitting of the CI: https://github.com/waku-org/js-waku/pull/1566

Applied changes to a forked nwaku repo: https://github.com/nwaku-test-org/nwaku/actions/runs/6170532712
PR: https://github.com/nwaku-test-org/nwaku/pull/18


Fix for incorrect mean AP

What does this PR do?
Fixes #1184
Adds a fix for incorrect mean AP when there are no GT bboxes for a class, but there are predicted boxes. This can happen in the following cases:

When all GT boxes are to be ignored.
When there are no GT boxes.

Solution: Make Precision for that class 0.
Note: I am yet to write tests. I tried running them at tests/unittests/detection/test_map.py but faced a FileNotFoundError exception because of the following missing file: _SAMPLE_DETECTION_SEGMENTATION = os.path.join(_PATH_ROOT, "_data", "detection", "instance_segmentation_inputs.json")
Please check the code inside the issue and check the before vs. after outputs below.
Before
{'map': tensor(1.),
 'map_50': tensor(1.),
 'map_75': tensor(-1),
 'map_large': tensor(-1.),
 'map_medium': tensor(-1.),
 'map_per_class': tensor([ 1.,  1., -1., -1.]),
 'map_small': tensor(1.),
 'mar_1': tensor(1.),
 'mar_10': tensor(1.),
 'mar_100': tensor(1.),
 'mar_100_per_class': tensor([ 1.,  1., -1., -1.]),
 'mar_large': tensor(-1.),
 'mar_medium': tensor(-1.),
 'mar_small': tensor(1.)}

After
{'map': tensor(0.5000),
 'map_50': tensor(0.5000),
 'map_75': tensor(-1),
 'map_large': tensor(0.),
 'map_medium': tensor(0.),
 'map_per_class': tensor([1., 1., 0., 0.]),
 'map_small': tensor(0.5000),
 'mar_1': tensor(1.),
 'mar_10': tensor(1.),
 'mar_100': tensor(1.),
 'mar_100_per_class': tensor([ 1.,  1., -1., -1.]),
 'mar_large': tensor(-1.),
 'mar_medium': tensor(-1.),
 'mar_small': tensor(1.)}

Other changes:

Moved up the code for checking gtignore to early-return from the function. This will save computation.

Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Open a request in the original repo instead: https://github.com/Lightning-AI/metrics/pull/1330


Added separate car class for 2017 honda accord hybrid

Description [Added a separate car class for the 2017 honda accord hybrid. Updated fingerprint 1.0, 2.0, and honda files to support the hybrid.]
Verification [Tested on a 2017 honda accord hybrid touring.]

Hold on, I have a typo in this from a quick merge. I'll re-do a pull request though.


HADOOP-18202. create-release fails fatal: unsafe repository

Since CVE-2022-24765 in April 2022, git refuses to work in directories
whose owner != the current user, unless explicitly told to trust it.
This patches the create-release script to trust the /build/source
dir mounted from the hosting OS, whose userid is inevitably different
from that of the account in the container running git.
Description of PR
How was this patch tested?
going to test the PR on my build machine (a different laptop)
For code changes:

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

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 54s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
shelldocs
0m  0s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

_ trunk Compile Tests _

+0 :ok:
mvndep
15m 51s

Maven dependency ordering for branch

+1 :green_heart:
shadedclient
21m 17s

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

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 28s

Maven dependency ordering for patch

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
shellcheck
0m  1s

No new issues.

+1 :green_heart:
shadedclient
18m 48s

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

_ Other Tests _

+1 :green_heart:
asflicense
0m 36s

The patch does not generate ASF License warnings.

59m 49s

Subsystem
Report/Notes

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

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

Optional Tests
dupname asflicense codespell shellcheck shelldocs

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

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / de82c31a7b8a4474e8c44e6817e16fb054f3c8ec

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

modules
C:  U:

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

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

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

This message was automatically generated.

thx. my full test of this pr (run the script) is still going on and appears to have uploaded snapshot 3.4.0 artifacts.


The release title is wrong! Version mismatch

Bug description

expect a version 0.12.2, but get 0.12.1, just the release title is wrong!

To Reproduce
Steps to reproduce the behavior:

...
...
...
...

Expected behavior

Screenshots

Environment

OS: [e.g. Ubuntu 20.04]
espup version: [e.g. 0.1.0]

Additional context

Hi! Thanks for reporting the issue, should now be fixed


Code simplify

How to simpify the following code to use Someelement{"message"} instead of Someelement{value:"message"}?
#[component]
pub fn Someelement(value:String)->Element{
rsx!{{value}}
}
#[component]
pub fn App()->Element{
rsx!{
Someelement{value:"message"}
}
}
fn main() {
launch(App);
}
Thanks for any response.

Maybe the below snippet might be helpful, i did it this way
#[component] pub fn Row(children: Element) -> Element {     rsx! {         div { class: "flex flex-row w-full h-full items-center", {children} }     } }
And i pass the childrens like
Row {             h1 { "Welcome to Dioxus!" }             Expanded { class: "p-10".to_string(), h1 { "Welcome to Dioxus!" } }         }


[BugFix] increase stack size limit

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #6621
Problem Summary(Required) ：

I can reproduce this case in my local env, and by increasing stack size limit to 32M(16M does not work) the failed cases got passed. However I don't know the real reason why that happened.

Don't merge it yet. I've to test if script works.

Can it be reproduced stably when using 16MB?

Why does it need so big stack size?

@dirtysalt Could you reproduce it with ASAN and post the ASAN report?

Can it be reproduced stably when using 16MB?

Yes, setting to 16MB can reproduce this case.

Why does it need so big stack size?

To be honest, I don't know why. It's just a try-and-true way.

@dirtysalt Could you reproduce it with ASAN and post the ASAN report?

Yes, there is nothing in ASAN report.

Sure.

@dirtysalt can you paste a full stack
I think it may be it was caused by call JNI in bthread

Why does it need so big stack size?

To be honest, I don't know why. It's just a try-and-true way.

I think we need to know why.

Sorry, right now I can not reproduce it.

@MergifyIO backport branch-2.1

@Mergifyio backport branch-2.2


Fixes exception when passing incorrect bytes to decode

An uncaught exception was thrown and python interpreter was killed because of that.
Closes #189
Signed-off-by: ncordon<EMAIL_ADDRESS>

This change is

bblfsh/pyuast.cc, line 1060 at r1 (raw file):
Previously, creachadair (M. J. Fromberger) wrote…
In this case we haven't released buf. Should we fall through as you did in the case below?

I think buf would be released after the try-catch, or am I missing something?

bblfsh/pyuast.cc, line 1060 at r1 (raw file):
Previously, creachadair (M. J. Fromberger) wrote…
I don't see how—if we return nullptr at this point control exits the function and that code never runs, right?

Oh yes I missed that, my bad. Fixing it

bblfsh/pyuast.cc, line 5 at r2 (raw file):
Previously, dennwc (Denys Smirnov) wrote…
I was also wondering why it's there, but forgot to ask :)

I erased it


Make Keyhandler hotkeysEvent parameter optional

From the docs I take that actually both of the arguments passed to the handler are optional, but to get this library to work properly with other libraries/applications written in TypeScript it would be preferable to actually make this second event parameter optional.
Please close at will if I'm wrong!

@julianrubisch The second parameter must be there

So if I use it with JavaScript it's optional but when using with TypeScript not?

@julianrubisch I do not understand. It can be used on typescript.

My question is: in all the examples in the docs the parameters appear to be optional, and that's also how they appear to be widely used. In my own code, I sometimes use no event parameter at all when defining the handler
However if I use typescript I have to do weird type coercions when no second parameter is used.
But I'm not too Typescript savvy so I'm probably all wrong 🤷♂

@julianrubisch
hotkeys('ctrl+a,ctrl+b,r,f', function (event, handler){
 // No need to judge the existence of `handler`
 handleFunction(event)
});

// `handler` optional
function handleFunction(event: KeyboardEvent) {
}

hotkeys('ctrl+a,ctrl+b,r,f', handleFunction);
// `handler` required
function handleFunction(event: KeyboardEvent, handler: HotkeysEvent) {
}

Thanks!


Reject in command routing

This PR adds a test of correct processing of a command which is rejected in a command routing function.
Also an ability to get a command status by command instance was introduced.

@armiol, PTAL.


fix mimetype ontology mapper test not running

[x] joeferner
[x] mwizeman joeybrk372 jharwig sfeng88

Points of Regression: mime type ontology mapper
NO CHANGELOG

LGTM


allows to set join type and allows more than one join on the same table

It wasn't posible to connect / join / include one table with more than one field. this code will change that.
Table Example:
TgbJob.owner_id => foreign key => TgbUser.id
TgbJob.worker_id => foreign key => TgbUser.id
Config Example:
  var $has_many = array(
    'TgbJobOwner' => array(
      'name' => 'TgbJob',
      'class' => 'TgbJob',
      'foreign_key' => 'owner_id'
    ),
    'TgbJobWorker' => array(
      'name' => 'TgbJob',
      'class' => 'TgbJob',
      'foreign_key' => 'worker_id'
    )
  );

also added the missing part to set the join type.
Config Example:
  $this->params['joins'] = array(
    'TgbJobOwner' => array(
      'class' => 'TgbJob',
      'type' => 'LEFT JOIN',
    ),
    'TgbJobWorker' => array(
      'class' => 'TgbJob',
      'type' => 'LEFT JOIN',
    ),
  );

Thanks for supporting wp-mvc!


keep consistent error code for response and exception

unify the response code at common_pb.proto and ErrorCodeEnum.java, I prefer suggenting using java enum. because it's more flexible.

Yeah, I also think so.


Test should support multiple schemas

Right now the data model assumes 1:1 relation between test and schemas. I was told this is one pain-point of PerfRepo as the schema needs to evolve over time, still being able to do the same comparison between tests with old schema and new one (as long as the evolution is compatible).

@rvansa I discussed with @willr3 to have versioned tests, so that we captured a history of schema changes for a test.  We still need to store the historic schemas to validate older test results, or to ensure any tooling that uses the schema still has access to the correct schema. We will need to implement versioning

@rvansa Do you an example of the schema evolution that was painful with PerfRepo?
@johnaohara When would we need to validate older runs? I think I am missing a use case. Are you talking about the test changes (e.g. specjEnterprise2010 v 2018) and we want to store it as a single specjEnterprise test definition allow runs from both benchmarks to be uploaded?
I think of the test's schema as a garbage filter preventing json uploads that do not contain the expected data. The json-schema does not prevent additional data and is only there to make sure the next upload contains the required information (someone could make a strict json-schema that rejects additional data but that would be limiting). Schema changes would set requirements for the next run upload but not alter previous uploads.
Previous runs are still accessible to the usual jsonb_query_* functions in psql so all runs can be queried and anything missing the data would just return an empty value (e.g. select id,start,stop,jsonb_path_query_first(data,'$.this.is.missing') from run where testid = 1)
I can imagine a scenario where data moves, e.g. dstat moves from $.benchserver4.dstat to $.dstat.benchserver4 and tracking old schemas would make it easier to discover when exploring a tests data without having to fetch all the runs for that test.
In this case, would it be better to have all the old json-schema versions or track a merged json structure that represents all the potential data in from runs for the test?

@willr3 The problem is that with PerfRepo all the metrics are set in the test definition; reportedly you couldn't add another metric to a test and let new runs use that as well, you had to create another test. And runs from different tests could not be compared.
I have a different view of schemas: while it works as a garbage filter, I see that as a single-URI string that describes the structure of the JSON. Schema should be limiting (additionalProperties: false everywhere) and describe the contents completely.
It does not limit the users of repo, except for the need to cover the changes in a new schema that would be marked as valid for that test.

Using a limiting schema (additionalProperties: false) would theoretically make the data in each run more reliable but would absolutely make it more difficult to use horreum. Each test creator has the option to define the schema how they see fit, why take away the option? Anyone who agrees with your view would add additionalProperites: false and anyone who was not ready to write a complete json-schema would not.

Sure, there's nothing forcing you to use additionalProperties: false. As you say, test creators have that option and I intend to keep it.
The 'should' above is just describing my view how things should be organized. And Horreum implementation should support such strict workflow (and it does in current implementation).

I am closing this for now since it has been implemented, feel free to comment further and/or reopen.


Fix for FileUtil vulnerability in UIMA 2.*?

Reposting UIMA-6486 (JIRA is no longer used)

Hi,
we distribute a custom annotator built on UIMA v2, which is affected by https://nvd.nist.gov/vuln/detail/CVE-2022-32287. We do not have any near-term bandwidth to upgrade our library to v3, and more critically some of our customers have other pipelines still running on v2 that they may not be able to migrate to v3 any time soon.
Are there any plans to deliver a new v2.11 bugfix release that addresses this vulnerability?
Thanks!

It appears to have been addressed for the main v3 branch through PRs #209 and #211
@reckart already responded v2 is no longer maintained. While I think I should be able to pick up the required changes and move them to main-v2, but not sure how much further I'd be able to take that.

I'll be happy to vote on a release, but I do not have the spare resources to run another release of the v2 branch.
So if anybody wants to do that and take over responsibility for the v2 branch, I'll be happy to support the person getting the necessary committer status to do releases.

are there any UIMA committers that also work on / with Apache cTAKES? cTAKES still uses UIMA v2 and I imagine converting all of that to use UIMA v3 would be a very significant project.
Again, we're happy to contribute to the actual bugfix, but don't have the experience for driving a full release, I'm afraid....

are there any UIMA committers that also work on / with Apache cTAKES?

Not that I am aware of. Personally, I do occasionally have a look at cTAKES and try providing helpful advices (@seanfinan), but I do not contribute code.
Also, cTAKES might currently be blocked from going to v3 because I believe they use ClearTK which is not yet available for v3. Once I am done with the UIMA/uimaFIT 3.4.0 releases, I plan to do a ClearTK release against v3 (the code on the main branch has already been updated).

I imagine converting all of that to use UIMA v3 would be a very significant project.

Actually, converting a project from v2 to v3 shouldn't be too much effort. The main effort is re-generating any JCas classes for type systems. Upgrading uimaFIT from v2 to v3 is slightly more effort, in particular if the code uses the ExternalResourceFactory as some methods have been renamed here - but otherwise that should also be pretty straightforward.

Again, we're happy to contribute to the actual bugfix, but don't have the experience for driving a full release, I'm afraid....

The fix is trivial, but the v2 release would cost me probably at least a day of work.

This issue contains the release checklist for UIMA 2.11.0 in case you are interested: https://issues.apache.org/jira/browse/UIMA-6328?jql=project %3D UIMA AND text ~ release

Also, there might be a few additional issues to be backported in case somebody wants to resurrect v2, e.g.

https://github.com/apache/uima-uimaj/issues/267
https://github.com/apache/uima-uimaj/issues/266 (not sure if v2 is affected by this)

Perhaps a little crude, but the easy way out for v2 is now in PR #294

UIMA Log4jLogger_impl not compatible with log4j 2.18.0+ #267

This isn't applicable as UIMA v2 is still on log4j 1.*, afaics. That migration would be a sizeable project all in itself.

Unable to install UIMA 3.3.1 Eclipse Plugins in Eclipse 2022-09 #266

I wonder if this one would be worth it (however innocent it looks). It probably feels like I'm dodging work, but my intent is not to promote people to continue developing in UIMA v2, but rather to unblock a customer that's stuck there with an existing application.
I can take a shot at that release checklist if the PR for this FileUtil change is considered viable


[New Extension] VSCode UI5: API Reference

Maybe add extension VSCode UI5: API Reference.
Can be a good upgrade.
EDIT: Check if available in BAS or try to make it compatible with BAS (With author agreement on clone or with PR)

Doesn't work with SAPUI5 but only with OPENUI5

[ ] Upgrade to also use SAPUI5
[ ] Upgrade to also work on Eclipse (BAS)
[ ] Deploy to BAS
[ ] Deploy to VSCode


Added Course schema, controller, module and service

Description
I have added a course schema for mongo and also added module, service, and controller for it.
Functioning:

Related Issue

issue goes here

Fixes #30

[x] Code
[x] New Feature
[x] Testing

Checklist

[x] My code follows the code style of this project.
[x] All new and existing tests passed.
[x] My changes generate no new warnings
[x] The title of my pull request is a short description of the requested changes.

@Abhishek-kumar09 please review this.

@Abhishek-kumar09 @ritvij14 Please add Postman tests also and the changes made in database(if connected locally)  else the controllers might give an error or conflict at a  later stage

@Abhishek-kumar09 I have added pic for running on postman as well.

Sure, I will check that out by tomorrow @ritvij14

@Abhishek-kumar09 I have made the corrections.
@Devesh21700Kumar I think we can let them stay, for now, once we add a dedicated folder for tests, we can move them and then add proper unit tests for the API

Thanks @ritvij14 for your patience, sorry got delayed due to some other commitments


Debian 11: "stream is not active"

Hey, this is a great project, and I have the ability to re-watch a show I'd like to save, I followed your directions, setup the API key where it should be, and everything went fine until I ran yarn start when I get an error "stream is not active". I've tried this many times with new API keys/tokens, but it hasn't worked. If you have any ideas on how to fix, I'd love to get it working! Thanks
Debian 11
Node v19.3.0
npm 9.2.0
yarn 3.1.1
phil@slim:~/mandolin-rip$ yarn start
ℹ starting thread                                                                                4061d9ba-8f61-400b-8887-93b7b2be612c:thread-0 19:55:52
ℹ starting thread                                                                                fb967cfb-9a9c-436a-8c27-1a9c23f20a22:thread-1 19:55:52
ℹ starting thread                                                                                d8cd5355-7bf4-480c-abc2-64d95f18296a:thread-2 19:55:52
ℹ starting thread                                                                                7f8e1ec8-ec05-4077-937a-dfc9349d19c3:thread-3 19:55:52

 WARN  stream is not active                                                                                4061d9ba-8f61-400b-8887-93b7b2be612c:thread-0 19:55:53

 WARN  stream is not active                                                                                fb967cfb-9a9c-436a-8c27-1a9c23f20a22:thread-1 19:55:53

 WARN  stream is not active                                                                                d8cd5355-7bf4-480c-abc2-64d95f18296a:thread-2 19:55:53

 WARN  stream is not active                                                                                7f8e1ec8-ec05-4077-937a-dfc9349d19c3:thread-3 19:55:53

 ERROR  Response code 412 (Precondition Failed)                                                                         7f8e1ec8-ec05-4077-937a-dfc9349d19c3:thread-3 19:55:53

  at Request.<anonymous> (node_modules/got/dist/source/as-promise/index.js:117:42)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

 ERROR  Response code 412 (Precondition Failed)                                                                         4061d9ba-8f61-400b-8887-93b7b2be612c:thread-0 19:55:53

  at Request.<anonymous> (node_modules/got/dist/source/as-promise/index.js:117:42)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

 ERROR  Response code 412 (Precondition Failed)                                                                         fb967cfb-9a9c-436a-8c27-1a9c23f20a22:thread-1 19:55:53

  at Request.<anonymous> (node_modules/got/dist/source/as-promise/index.js:117:42)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

 ERROR  Response code 412 (Precondition Failed)                                                                         d8cd5355-7bf4-480c-abc2-64d95f18296a:thread-2 19:55:53

  at Request.<anonymous> (node_modules/got/dist/source/as-promise/index.js:117:42)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Unfortunately the tool only supports downloading streams as they occur live, it's not compatible with the recorded versions.


[config] Allow waypoint to be read from a file

To get public fullnodes running in the k8s testnet I need to get the
waypoint from a configmap at runtime. I could do some hacky runtime
interpolation of the config file, but it seems nicer to just support
reading the waypoint from a file.
Test Plan: Tested in testnet.

so both the genesis and the waypoint will be coded in the config map?

For public fullnodes yes. For validators and validator fullnodes the waypoint will still be retrieved from Vault.

/land


Added ollama4j-web-ui to the list of community developed user interfaces

Added ollama4j-web-ui to the list of community developed user interfaces.

In the hopes of offloading some of the PR time for the devs here, another active discord member and I are making an "awesome ollama" list, I took the liberty of adding this project as well! (it will not affect the PR here, just letting you know)
https://github.com/endo9000/Awesome-Ollama?tab=readme-ov-file#web--desktop-uis


import('xxxx') do not works as expect

write like this~

output:

the code do not be splited~ they are all in one file~
no separate chunks generated
mode: 'production',
  optimization: {
    splitChunks: {
      chunks: 'async',
      minSize: 10,
      minChunks: 1,
      maxAsyncRequests: 5,
      maxInitialRequests: 3,
      automaticNameDelimiter: '~',
      name: true,
      cacheGroups: {
        vendors: {
          test: /[\\/]node_modules[\\/]/,
          priority: -10
        },
        default: {
          minChunks: 2,
          priority: -20,
          reuseExistingChunk: true
        }
      }
    }
  },

babel.config.js
module.exports = {
  'presets': [
    ['@babel/preset-env', {
      'targets': {
        'browsers': ['android >= 4.4']
      },
      'modules': 'commonjs',
      'useBuiltIns': 'usage'
    }]
  ],
  'plugins': ['transform-vue-jsx', '@babel/plugin-syntax-dynamic-import'],
  sourceMaps: true
};

### when I use require.ensure it`s work ~
no way~

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please either update the issue with the template and reopen, or open a new issue.
Use enforce if you always want to create chunk. https://webpack.js.org/plugins/split-chunks-plugin/#splitchunkscachegroupscachegroupenforce

'modules': 'commonjs',

set false or 'auto'


Set up GitHub Pages

Set up GitHub Pages (from the main branch), update repository description with the proper website link.

Set up GitHub Pages

Comment to issue


Proxy-Authentication does not work with HTTPS sites

Steps to reproduce the problem:

mitmdump --nonanonymous
curl -x localhost:8080 -k -U foo:bar http://example.com (works)
curl -x localhost:8080 -k -U foo:bar https://example.com (doesn't)

Any other comments? What have you tried so far?
The problem is an invalid handling of http_authenticated. I can fix that, but I don't want to interfere with #1720 right now.

This is still an issue after the latest changes.

Just to note that we have experienced exactly the same issue with MITMProxy 0.18.2, but not with 0.17.1. The problem seems to be the use of "transparent mode" in the low-level http interaction between the proxy and the upstream server; even when non-transparent mode is selected.
For example:
# MITMProxy 0.17.1

$ mitmdump --version
mitmdump 0.17.1
$ mitmdump --cadir ~/path/to/certificates --nonanonymous

(another terminal) $ curl -x "http://foo:bar@<IP_ADDRESS>:8080" "https://www.google.co.uk/"

<IP_ADDRESS>:45260: clientconnect
<IP_ADDRESS> GET https://www.google.co.uk/
 << 200 OK 10.1kB
<IP_ADDRESS>:45260: clientdisconnect

Compared with:
$ mitmdump --version
mitmdump 0.18.2
$ mitmdump --cadir ~/path/to/certificates --nonanonymous
Proxy server listening at http://<IP_ADDRESS>:8080

(another terminal) $ curl -x "http://foo:bar@<IP_ADDRESS>:8080" "https://www.google.co.uk/"
        <html>
            <head>
                <title>401 Unauthorized</title>
            </head>
            <body>Authentication Required</body>
        </html>Zippy:~ martyn$

<IP_ADDRESS>:45262: clientconnect
<IP_ADDRESS>:45262: clientdisconnect


[Snyk] Upgrade applicationinsights from 2.9.5 to 3.2.0

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade applicationinsights from 2.9.5 to 3.2.0.
: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.

⚠ Warning: This PR contains major version upgrade(s), and may be a breaking change.

The recommended version is 17 versions ahead of your current version.

The recommended version was released on 21 days ago.

[!IMPORTANT]

Warning: This PR contains a major version upgrade, and may be a breaking change.
Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

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
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

no, snyk, we’ve already talked about this before ;)
#310


autograd.Function is silently incorrect on functorch transforms

We should fix it. Not quite sure how though.
https://gist.github.com/zou3519/73a6189e21561f6ef5b42874e8a4826f

Here's a writeup of what the problem is: https://docs.google.com/document/d/1sPRJyP_vkZEY3RbNBcy2hLmXxnvZlV7cB6_-uxyVMAE/edit?usp=sharing

Hi @zou3519, I was just wondering if there's been any update on adding custom autograd Function support to FuncTorch? Thank you! :)

We're still thinking about how it would look like. It probably won't happen in the next couple of weeks though :( but we'll keep you updated!

Currently functorch gives the following error when it encounters autograd.Function:
functorch functions (vmap, grad, vjp, etc.) currently do not support the use of autograd.Function. Please rewrite your function to not use autograd.Function while we work on fixing this

Are there any examples for how one can rewrite a function to not use autograd.Function if we need to define a custom backward/vjp?

@rejuvyesh the title was a bit misleading, it turns out autograd.Function can have silently incorrect behavior on all of our transforms.

Are there any examples for how one can rewrite a function to not use autograd.Function if we need to define a custom backward/vjp?

Not yet, but this is pretty top of mind for us

Just to confirm, does this mean that we can't use functorch to compute jacobians for anything that relies on a custom backward function? Pretty unfortunate considering the state of https://pytorch.org/docs/stable/generated/torch.autograd.functional.jacobian.html and how it points to functorch. Are there any updates on the horizon?

@hturki yes, that's unfortunately correct. This is still top of mind for us, but it is a bit difficult to implement. We've planned to implement it sometime in the next couple of months.

@hturki is there an example of a custom backward function you want to use with functorch?

Thanks for the update. I'd actually like to hook up a third-party library (tiny-cuda-nn: https://github.com/NVlabs/tiny-cuda-nn/blob/master/bindings/torch/tinycudann/modules.py#L41) which has pytorch bindings. It just currently happens to integrate with torch via the custom autograd tooling - if there ends up being a workaround that directly integrates with functorch that would be nice as well

Thanks for the example. There are two types of autograd.Function:

ones that are written using PyTorch operations
ones that call into custom written CUDA kernels (or other custom code that bypasses PyTorch).

That example looks like the latter. We don't support it yet, but, in the future, if someone wants to vmap over an autograd.Function whose forward and backward pass are both custom CUDA kernels, then they will need to write a custom batching rule so that vmap knows how to work with it.

For me, integration with vmap is less important. However, functorch's explicit interface is much nicer to generally integrate with other autodiff systems like those in say Julia. I use it in PyCallChainRules.jl so that users can integrate their differentiable pytorch functions in Julia. Biggest use cases is actually wrapping large cuda kernels which usually have a pytorch interface and dispatch performance is usually not that big of a concern. However, as @hturki found, it won't work with tiny-cuda-nn for example.

For me, integration with vmap is less important. However, functorch's explicit interface is much nicer to generally integrate with other autodiff systems like those in say Julia. I use it in PyCallChainRules.jl so that users can integrate their differentiable pytorch functions in Julia

Thanks for the feedback

@hturki (and @rejuvyesh if you have thoughts) - for hooking up a third-party library like tiny-cuda-nn: https://github.com/NVlabs/tiny-cuda-nn/blob/master/bindings/torch/tinycudann/modules.py#L41, there is a caveat for jacobian computation (and integration with vmap).
My understanding is that third-party libraries may define cuda kernels for the forward pass and backward pass that are stitched together via autograd.Function.
In order to compute its jacobian, we would need to be able to vmap over the backward pass. So functorch would provide a mechanism to add a vmap (batching) rule for the backward pass (like how autograd.Function allows you to define a custom gradient rule) and the user would have to add the batching rule. The batching rule would either be something naive (like running the backward pass in a for-loop) or, if the user really wanted something optimized, a new cuda kernel.
I just wanted to check - would something like this be helpful? I imagine writing a new cuda kernel would be a lot of work, but just the naive approach (running the backward pass in a for-loop) could still let you use the vmap API (and get speedups from other parts of the model)

Hello， I've recently encountered a similar problem too, where I want to use functorch to compute gradient pass a customised torch.autograd.Function. But in my case, all operations in this customized Function, includeing the forward and backward pass are all implemented with pytorch operations. Is there any method that can make the functorch work in these circumstances?

Hi @zou3519,
I have one small example if you are interested :
class ReLUAlphaFunction(torch.autograd.Function):
@staticmethod
def forward(ctx, input, alpha):
    ctx.save_for_backward(input)
    ctx.alpha = alpha
    return input.clamp(min=0)

@staticmethod
def backward(ctx, grad_output):
    input, = ctx.saved_tensors
    grad_input = grad_output.clone()
    grad_input[input < 0] = 0
    grad_input[input == 0] = ctx.alpha

    return grad_input, None

class ReLUAlpha(nn.Module):
def __init__(self, alpha):
    super(ReLUAlpha, self).__init__()
    self.alpha = alpha

def forward(self, input):
    return ReLUAlphaFunction.apply(input, self.alpha)

relu_10 = lambda:  ReLUAlpha(10)
input = torch.ones(1, 1, 4, 4)
jacobian_fwd = grad(ReLUAlpha(10))(input)
input = torch.ones(1, 1, 4, 4)
gradient = grad(ReLUAlpha(10))(input)

RuntimeError: functorch functions (vmap, grad, vjp, etc.) currently do not support the use of autograd.Function. Please rewrite your function to not use autograd.Function while we work on fixing this
Thanks for your help.

@ryanboustany if you're feeling ambitious, we're testing out the feature on the PyTorch master branch and would love early feedback. It's gated behind a feature flag and you'll have to download the latest PyTorch nightly binary to try it out. Here's what your script would look like with it (https://gist.github.com/zou3519/6e67fa31a8ebedfd1f198dc21e5d5993); nightly binary installation instructions over at https://pytorch.org/

@ryanboustany if you're feeling ambitious, we're testing out the feature on the PyTorch master branch and would love early feedback. It's gated behind a feature flag and you'll have to download the latest PyTorch nightly binary to try it out. Here's what your script would look like with it (https://gist.github.com/zou3519/6e67fa31a8ebedfd1f198dc21e5d5993); nightly binary installation instructions over at https://pytorch.org/

Thank you for your helpful answer.
1- I have tested with ReLU custom gradient. Functions Grad and Jacrev from Jax work very well. However, for jacfwd, it blocks : ''NotImplementedError: You must implement the jvp function for custom autograd.Function to use it with forward mode AD.''
I wonder what the syntax is to be able to use jacfwd and code the custom gradient for forward AD. It would be interesting to compare what happens in forward AD vs reverse AD for custom gradients. Note that grad, jacrev, jacfwd works well if you use torch.nn.ReLU instead of the custom gradient.
2-  I tested with a custom gradient of MaxPooling.

class MyMaxPool(torch.autograd.Function):
generate_vmap_rule=True
@staticmethod
def forward(input, kernel_size):
N, C, H, W = input.size()
return torch.amax(torch.amax(input.reshape(N, C, H //kernel_size , kernel_size, W // kernel_size, kernel_size),3),4)
@staticmethod
def setup_context(ctx, inputs, output):
    input, kernel_size = inputs
    ctx.save_for_backward(input)
    ctx.kernel_size = kernel_size

@staticmethod
def backward(ctx, grad_output):

    input, = ctx.saved_tensors
    N, C, H, W = input.size()

    x_reshaped = input.reshape(N, C, H // ctx.kernel_size, ctx.kernel_size, W // ctx.kernel_size, ctx.kernel_size)
    out = torch.amax(torch.amax(x_reshaped,3),4)

    dx_reshaped = torch.zeros(x_reshaped.size())
    out_newaxis = out[:, :, :, None, :, None]
    mask = (x_reshaped == out_newaxis)
    dout_newaxis = grad_output[:, :, :, None, :, None]
    dout_broadcast = torch.broadcast_to(dout_newaxis, dx_reshaped.size())
    dx_reshaped[mask] = dout_broadcast[mask]
    grad_x = dx_reshaped.reshape(input.size())

    return grad_x, None, None

class MaxPoolings(nn.Module):
def __init__(self, kernel_size):
    super(MaxPoolings, self).__init__()
    self.kernel_size = kernel_size
def forward(self, input):
    return MyMaxPool.apply(input, self.kernel_size)

Initialize the custom MaxPooling layer
input = torch.randn(1, 1, 4, 4)
maxpool = MaxPoolings(2)
gradient = jacrev(lambda x: maxpool(x).sum())(input)
RuntimeError: vmap: index_put_(self, *extra_args) is not possible because there exists a Tensor other in extra_args that has more elements than self. This happened due to other being vmapped over but self not being vmapped over in a vmap. Please try to use out-of-place operators instead of index_put_. If said operator is being called inside the PyTorch framework, please file a bug report instead.

I don't understand why this is blocking. Note that the grad function works well! Moreover, I wonder what I have to do to make jacfwd work too...
Thanks again. I hope this can help you.

1- I have tested with ReLU custom gradient. Functions Grad and Jacrev from Jax work very well. However, for jacfwd, it blocks : ''NotImplementedError: You must implement the jvp function for custom autograd.Function to use it with forward mode AD.''

See https://pytorch.org/docs/stable/notes/extending.html#forward-mode-ad for context. The TL;DR is that you'd need to add a jvp staticmethod that defines what the forward-mode AD gradient should be.
That being said, support for jacfwd is actually still a WIP (you'll need to wait until after https://github.com/pytorch/pytorch/pull/91211/ is merged, will likely be later today/tomorrow), there is an example here for how to write a jvp staticmethod.

2- I tested with a custom gradient of MaxPooling.

Change dx_reshaped = torch.zeros(x_reshaped.size()) to dx_reshaped = grad_output.new_zeros(x_reshaped.size()). A longer explanation is over at https://pytorch.org/functorch/stable/ux_limitations.html#mutation-in-place-pytorch-operations, but this is a vmap limitation: we need to construct a new Tensor using the original tensor as a base

A new potential use case #1093 ? @zou3519

I tried to add a jvp method. But it doesn't seem to give the desired result. Do you have an idea? Do you know what the output of the jvp method returns? Here it doesn't return my output_tangent matrix.
Thank you.
import torch
import torch.nn as nn
from torch.func import grad, jacrev, jacfwd

torch._C._set_autograd_function_extension_enabled(True)

class ReLUAlphaFunction(torch.autograd.Function):
    generate_vmap_rule=True
    @staticmethod
    def forward(input, alpha):
        return input.clamp(min=0)

    @staticmethod
    def setup_context(ctx, inputs, output):
        input, alpha = inputs
        ctx.save_for_backward(input)
        ctx.save_for_forward(input)
        ctx.alpha = alpha

    @staticmethod
    def backward(ctx, grad_output):
        input, = ctx.saved_tensors
        grad_input = grad_output.clone()
        grad_input[input < 0] = 0
        grad_input[input == 0] = ctx.alpha

        return grad_input, None

    @staticmethod
    def jvp(ctx, *tangents):
        input, = ctx.saved_tensors
        output_tangent = input.clone()
        output_tangent[input < 0] = 0
        output_tangent[input > 0] = 1
        output_tangent[input == 0] = ctx.alpha
        return output_tangent

class ReLUAlpha(nn.Module):

    def __init__(self, alpha):
        super(ReLUAlpha, self).__init__()
        self.alpha = alpha

    def forward(self, input):
        return ReLUAlphaFunction.apply(input, self.alpha)

input = torch.tensor([[0.0,2.0, 3.0],[1.0,2.0, 3.0]])
relu_10 = ReLUAlpha(10)
print(jacfwd(lambda x: relu_10(x).sum())(input))
print(jacrev(lambda x: relu_10(x).sum())(input))

Output :
tensor([[15., 15., 15.],
[15., 15., 15.]])
tensor([[10.,  1.,  1.],
[ 1.,  1.,  1.]])

@ryanboustany the jvp method should look like this: https://gist.github.com/zou3519/89790dc3e94e3c3fde313886143c06fa (you cloned the wrong tensor).
That being said, the result from jacfwd is different from the result of jacrev. I think this is expected because the autograd.Function isn't computing mathematically correct gradients.
For some more context, the jvp method is supposed to compute the jacobian-vector product. That's the jacobian of the Function evaluated at the input matrix-multiplied with the tangent (the "vector"). Underneath vmap, jacfwd(relu_10)(input) essentially does a vmap over the jvp in such a way that the output of autograd.Function.jvp is the full jacobian

@zou3519 Indeed, your code does what I want to do. For me, jacrev and jacfwd are supposed to compute the same thing (modulo the numerical precision - 32 bits or 64 bits). In fact, they compute the same thing in theory but do not do the same numerical operations. Here is an example:
class ReLUAlphaFunction(torch.autograd.Function):
    generate_vmap_rule=True
    @staticmethod
    def forward(input, alpha):
        return input.clamp(min=0)

    @staticmethod
    def setup_context(ctx, inputs, output):
        input, alpha = inputs
        ctx.save_for_backward(input)
        ctx.save_for_forward(input)
        ctx.alpha = alpha

    @staticmethod
    def backward(ctx, grad_output):
        input, = ctx.saved_tensors
        grad_input = grad_output.clone()
        grad_input[input < 0] = 0
        grad_input = torch.where((input == 0) * (grad_input != 0), ctx.alpha, grad_input)
        return grad_input, None

    @staticmethod
    def jvp(ctx, *tangents):
        input, = ctx.saved_tensors
        tangent, _ = tangents
        output_tangent = tangent.clone()
        output_tangent[input < 0] = 0
        output_tangent = torch.where((input == 0) * (output_tangent != 0), ctx.alpha, output_tangent)
        #import pdb; pdb.set_trace()
        return output_tangent

class ReLUAlpha(nn.Module):

    def __init__(self, alpha):
        super(ReLUAlpha, self).__init__()
        self.alpha = alpha

    def forward(self, input):
        return ReLUAlphaFunction.apply(input, self.alpha)

relu_10 = ReLUAlpha(10)

model = torch.nn.Sequential(
          nn.Linear(10, 10, bias=False),
          relu_10,
          nn.Linear(10,2, bias=False))

def f(x):
    return model(x).sum()

x = torch.randn(1,1,10,10)
x[0][0][0][0] = 0.0
x.requires_grad_()

loss = f(x)
loss.backward()

jacobian_fwd = jacfwd(f)(x)
jacobian_bwd = jacrev(f)(x)
jacobian_grad = grad(f)(x)

print(torch.linalg.norm(x.grad - jacobian_fwd))
print(torch.linalg.norm(jacobian_bwd  - jacobian_fwd))
print(torch.linalg.norm(jacobian_grad  - jacobian_fwd))

Output :
tensor(1.1031e-07, grad_fn=)
tensor(1.1031e-07, grad_fn=)
tensor(1.1031e-07, grad_fn=)

Anyway, customizing gradient and using jacrev/jacfwd  works very well! Thanks a lot!
Last thing, we should succeed in calculating jacrev and jacfwd with respect to the training parameters of the model and not only with respect to the input. Something that would make this functionality :
grad_neural1 = [param.grad for param in model.parameters()].

I don't have the solution yet.
grad_neural1_fwd = [jacfwd(f1)(param) for param in net1.parameters()]

Seem doesn't work. It considers param to be an input and not a weight.

@ryanboustany one needs to write a function that accepts parameters in order to compute jacobians for those parameters. The API to do that in functorch is make_functional: https://pytorch.org/functorch/stable/generated/functorch.make_functional.html?highlight=make_functional#functorch.make_functional

To everyone else in this thread:
autograd.Function now works with functorch! The functionality is now in the PyTorch nightly binaries. The TL;DR is that you'll have to refactor existing autograd.Functions in order to use them.
Please see https://pytorch.org/docs/master/notes/extending.func.html for more details. We'd love to get some more feedback on this, so please open more issues if you run into problems.


Tissue Type: "adult human peripheral blood" ->? "blood"

"Adult" needs to be moved to "donor_life_stage" column; "peripheral" not part of Uberon

this was not found and must have been addressed already


Add hasNoSlots() Method to RedisClusterNode

Feature Request

Is your feature request related to a problem? Please describe
In bug report #2769, an issue was identified when handling Redis Cluster topology refreshes during node reconfigurations where nodes temporarily had no assigned slots. The maintainer suggested subclassing RedisClusterClient and overriding determinePartitions to address the issue. I followed the suggestion and initially used redisClusterNode.getSlots().isEmpty() to identify this case. However, I found that getSlots() is quite time-consuming, increasing the overhead of topology refreshes.
Describe the solution you'd like
To improve efficiency, I propose adding a method hasNoSlots() toRedisClusterNode. This method has much better performance than getSlots().isEmpty()
Proposed Method:
/**
     * Checks if the node has no slots assigned.
     *
     * @return {@code true} if the slots field is null or empty, {@code false} otherwise.
     */
    public boolean hasNoSlots() {
        return slots == null || slots.isEmpty();
    }

Describe alternatives you've considered
Currently, the alternative is to use getSlots().isEmpty() to determine if a node has no slots assigned. However, this approach is inefficient because it involves generating a new list object, which adds overhead during topology refreshes.
Teachability, Documentation, Adoption, Migration Strategy
This feature request aims to improve the efficiency and readability of RedisClusterNode's API, particularly in scenarios involving cluster scaling and topology adjustments. I appreciate your consideration and am happy to make any additional changes or provide further details if needed.

I think this change makes sense.


Fully interactable floaty window mode

Currently clicking on floaty window maximizes the window and click + drag moves it. Scrolling is broken in pdfs and some websites.
Adding some drag handle like a title bar would allow for clicks & scrolls to be sent to the web page normally. This would allow full webpage navigation in floaty window mode.

Added in upcoming 1.0.7 release.


As a new user, the heatmap does not render until you have submitted the first commit.

Gitea version (or commit ref): 2ce72d4
Git version: 2.15.2
Operating system: Linux
Database (use [x]):

[ ] PostgreSQL
[x ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes - Create a new user to see bug
[ ] No
[ ] Not relevant

Log gist:

Description
As a new user, the heatmap does not render until you have submitted the first commit.  Until that happens, it is perpetually displaying the "heatmap.loading" icon.
Screenshots

Originally posted by @tonysgi in https://github.com/go-gitea/gitea/pull/5131#issuecomment-432329383

Normally it shouldn't show "heatmap.loading", there should be a text.
I think it doesn't load because the API returns null if the user has no actions yet, which the js library then fails to parse. I'll submit a patch tomorrow

@kolaente allready propose a fix. It is because the array is not init (in the api reply) and the json representation is null not [].

@sapk Great! Thanks!


feat(SSO):add LDAP integrate

What type of PR is this?
add LDAP integrate

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:

 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.ungreat seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


feat: post-processing

Details

New feature about post-processing Bloom effect. I tried to put at least 4 post-processing docs and then send PR,  have a lot of work to do that. above all i don't know that i working be right.
I hope to you join to my long journey through code review. :)
Additional TODO as follows :

Add bloom test code
Add post-processing (SSAO, DoF, SSR) with detail.
Anti-aliasing
Perfomance and qulity test with various models.
Add playground for integration post-processing test.

There seems to be a lot of modifications.
Which do you like that i close PR and send again or continue?

@RudyBlack
As you want :)

I have few questions about docs. 🤔
Where should i put Post Processing Effects into docs?  I think Effects is not options menu to docs and Events menu even more so too.
If you have plan that add various effects by custom shader, Like rain effect, snow effect, wind effect, and etc..
How about create new section as name to Effects?
It would be fun just thinking about it :)

@RudyBlack
Effects looks good I think, you can add a new menu via docusaurus.config.js and use that.
While making that, please add a tutorial on how to use effects.

Thank you for your reply :)
I think this PR is unclear. I'll make again another PR after work.


xpk Cluster Queue resource group "cpu" resource quota incorrect for a CPU-only cluster

We have a CPU-only cluster -- n2-standard-32-1024 that has 1024 of n2-standard-32 nodes. There, we technically should have a rough 1024 * 32 CPU resources but I'm seeing 1024 nominated quota  from kubectl describe clusterqueue cluster-queue:
Name:         cluster-queue
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  kueue.x-k8s.io/v1beta1
Kind:         ClusterQueue
Metadata:
  Creation Timestamp:  2024-07-02T17:34:06Z
  Finalizers:
    kueue.x-k8s.io/resource-in-use
  Generation:        2
  Resource Version:  116469727
  UID:               2db06149-9a17-45a2-bae0-5ada11705b68
Spec:
  Flavor Fungibility:
    When Can Borrow:   Borrow
    When Can Preempt:  TryNextFlavor
  Namespace Selector:
  Preemption:
    Borrow Within Cohort:
      Policy:               Never
    Reclaim Within Cohort:  Never
    Within Cluster Queue:   LowerPriority
  Queueing Strategy:        BestEffortFIFO
  Resource Groups:
    Covered Resources:
      cpu
    Flavors:
      Name:  1xn2-standard-32-1024
      Resources:
        Name:           cpu
        Nominal Quota:  1024
  Stop Policy:          None
Status:
  Admitted Workloads:  0
  Conditions:
    Last Transition Time:  2024-07-02T17:34:06Z
    Message:               Can admit new workloads
    Reason:                Ready
    Status:                True
    Type:                  Active
  Flavors Reservation:
    Name:  1xn2-standard-32-1024
    Resources:
      Borrowed:  0
      Name:      cpu
      Total:     0
  Flavors Usage:
    Name:  1xn2-standard-32-1024
    Resources:
      Borrowed:         0
      Name:             cpu
      Total:            0
  Pending Workloads:    0
  Reserving Workloads:  0
Events:                 <none>

@RoshaniN curious if you can confirm my understanding?
Does nominal quota here represent the number of vms/GKE nodes which in this case = 1024 or should it equal the number of CPU (chips/cores?)? From my understanding, Kueue would want the number of vms/ GKE nodes (1024) value in order to schedule workloads right? Or should Kueue be getting the 1024 *32 value?

Per https://kueue.sigs.k8s.io/docs/concepts/cluster_queue/, I would think it's the CPU resources with that resource group so it should roughly 1024*32.
It seeks that XPK assigns it here. It is probably true when the resource type is tpu or gpu where the number of chips represent the resources but for CPU it is different?

I believe this implementation for CPUs is working as intended. Based on the examples mentioned in https://kueue.sigs.k8s.io/docs/concepts/cluster_queue/#resources , for CPUs, this amounts to number of CPUs (or number of VMs).
There is no correlation between the type of the CPUs (n2-standard-32 (32 vCPUs) or e2-standard-4 (4 vCPUs)) and the nominal quota.
TPUs and GPUs have physical chips and the resources can be more granularly partitioned, if required.
Is there a problem that we are seeing or is the kueue accepting and queueing CPU requests as intended?

Shouldn't "number of CPUs" equal to the number of VMs * the CPUs of each VM?

Is there a problem that we are seeing or is the kueue accepting and queueing CPU requests as intended?
Correct, taking a n2-standard-32-1024 as an example, resource request of

resources:
  requests:
    cpu: 20000m

fails to get accepted which it should, because each pod is asking for 20 CPU resources and can fit on a single node.

Also https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.

I found this - https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu

yep, thanks @RoshaniN ! So it should be equal to number of VMs * the virtual CPUs of each CPU machine in the nominalquota.
I guess I was also sure about it because submitting the job with
resources:
  requests:
    cpu: 20000m

through the queue fails but without the queue it schedules successfully ;)

Thanks @bernardhan33 for checking that it fails with cpu: 20000m, could you check if this passes/fails with cpu: 20 ? Trying to understand if the notions / quantities are different.

yeah 20 fails too. 20000m == 20 so it will be evaluated to equivalent resource.

btw I'm not blocked on this -- I can kubectl edit the cluster configuration. But this ticket is for future usage of the CPU-only cluster spun up by xpk ;)

yeah 20 fails too. 20000m == 20 so it will be evaluated to equivalent resource.

Yes, wanted to be sure of that. Thanks @bernardhan33


1.2 typehash directory cleanup

Codecov Report
Base: 66.16% // Head: 99.91% // Increases project coverage by +33.75% :tada:

Coverage data is based on head (c8fce03) compared to base (c822dfa).
 Consider uploading reports for the commit be8b5fe to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##              1.2     #799       +/-   ##
===========================================
+ Coverage   66.16%   99.91%   +33.75%
===========================================
  Files         100       21       -79
  Lines        4167     1188     -2979
  Branches      544      210      -334
===========================================
- Hits         2757     1187     -1570
+ Misses       1390        0     -1390
+ Partials       20        1       -19

Flag
Coverage Δ

foundry
?

production
?

reference
99.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

reference/ReferenceConsideration.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceOrderCombiner.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceOrderFulfiller.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceOrderValidator.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceZoneInteraction.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceCriteriaResolution.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceFulfillmentApplier.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceGettersAndDerivers.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceBasicOrderFulfiller.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceSignatureVerification.sol
100.00% <0.00%> (ø)

... and 79 more

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Slideshow from multiple folders

My use case is a digital photoframe.
(Similar to apps like dayframe of fotoo.)
It would be nice to be able to select multiple folders.

I like this idea
Implementation:

Add check boxes along side each folder / image in the list view
Add a Play FAB button
When clicked send a list of checked items to the ImageActivity

@jcos1 If you enable the "Play from here" button you can start a slideshow using all sub folders. Might help you while I find time to add this feature


Building a brand rules interactive site

Discussed in https://github.com/Bixal/rapid-response-team/discussions/114

Originally posted by karenrobersn November 18, 2021
Problem
The raw idea, a use case, or something we’ve seen that motivates us to work on this
It's difficult to communicate, use, and maintain our brand because the elements are in different places, in various levels of refinement, and not entirely accessible to the people who need to use them.
Some of the specific problems include:

Our "brand book," the primary source of truth, is a large PDF document sitting somewhere in Google Drive. It contains helpful narrative and background, but is lacking in practical usage guidelines. Not everyone has access to the Google Drive so some can't find it or don't even try.
Some details about the brand — like copy, colors, imagery — are not easily available for reuse.
In some cases, there are inconsistencies, errors, or lack of information about the details.
There is no clear way for people to ask questions or give feedback on brand elements and usage.
There is not enough information about how to use brand elements in ways that follow accessibility guidelines.

Appetite
How much time we want to spend and how that constrains the solution
We should have a releasable product by the end of the calendar year, which practically means by about December 17th.
Solution
The core elements we came up with, presented in a form that’s easy for people to immediately understand
The basic idea is to create a publicly available website that will organize information about the brand in a clear, accessible, and useful way so various stakeholders can find what they need and get guidance on how to use it.
These are the primary audiences and use cases to consider:

Designers who are working on the brand itself (maintaining source files, creating templates, updating guidance, etc.)
Designers who are working with the brand, working with internal stakeholders to create unique expressions of the brand for various marketing and communications purposes.
Non-designers who are working with the brand, primarily using templates and other provided collateral for various marketing and communications purposes that do not require a designer to be directly involved.

High-level mockup:

Rabbit Holes
Details about the solution worth calling out to avoid problems
Authenticated access to files
Although the site will be publicly accessible, some of the files we link to will be on authenticated sites, like Sharepoint or Google Drive. Permission settings for Sharepoint can be confusing and not everyone has access to Google Drive. So we may have to dig into this or consider how we provide clear information about what to do if someone can't access something they need.
Collaboration with other practices
Although the Design Team has a lot of engagement with the brand, we are not the sole keepers of the brand. There are other stakeholders that will need to be involved, or at least have some awareness, of what we're doing. This includes Comms, Senior Leadership, and others. We should probably set up a RACI chart to get aligned on this.
No-Gos
Anything specifically excluded from the concept: functionality or use cases we intentionally aren’t covering to fit the appetite or make the problem tractable

We don't need to recreate the whole brand book. We should focus instead on surfacing the most practical information to make it easier for everyone at Bixal to represent the brand well.

Refer to the brand-guide repo for updates.


Lazy load integration test targets for perf

Before and after:
$ BUILD_WITH_CONTAINER=0 time make help
real 0.94
user 1.95
sys 0.46
$ BUILD_WITH_CONTAINER=0 time make help
real 0.30
user 0.12
sys 0.07

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-multicluster-k8s-tests_istio
a780c79c565e53d6c2be350a8bda5da8e63ca488
link
/test integ-multicluster-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-multicluster-k8s-tests_istio
a780c79c565e53d6c2be350a8bda5da8e63ca488
link
/test integ-multicluster-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Publish to maven central

json-logic-kotlin is published only to jcenter. Please consider publishing it also to mavenCentral, as jcenter is shutting down in May.

jCenter() has now shutdown, and since this lib isn't yet in mavenCentral() is causing builds to fail.
Of course we can just build from source ourselves ( OSS fwd 👍  ), though if the library author has time to re-publish it in mavenCentral() it'd be nice :)


Add support for supplying access token

While this should work, I'm not sure it'll meet the specific needs I have since I want to do app->app OBO and I'm getting errors in AAD when I try that.

Still handy if an consumer of this already has a token.


Script not encrypted properly

Hello and thank you for this awesome tool. It seems that i have stuck somewhere or i am doing something wrong. I have been trying to encrypt this auto generated macro script
VBA_original.txt
by preparing it like this.
VBA_prepared.txt
However despite the success,

the resulted script looks like this
VBA_result.txt
with a compiling error.

So what am i missing here or doing wrong?

Hi,
Sorry for the response delay ;)
The problem is in the "trigger_function_name" which seems not be correctly set in your const.py, you should set it to "ahaa" that the script could understand this is the function it has to auto trigger.
In your VBA_result.txt, the VBA tries to autotrigger the function vLPLaMYjKLyKtLD which do not exist (as you probably forgot to mention it in your const.py), the error is legitimate from a VBA point of view.
Also, you can remove
Sub AutoOpen()   ahaa End Sub Sub Workbook_Open()   ahaa End  Sub
Not usefull as it is directly dealed by Vbad.
Hope it helped.


DEPRECATION WARNING

DEPRECATION WARNING: input method now accepts a `wrapper_options` argument. The method definition without the argument is deprecated and will be removed in the next Simple Form version. Change your code from:

    def input

to

    def input(wrapper_options)

See https://github.com/plataformatec/simple_form/pull/997 for more information.

This sounds like something that needs to be addressed for SimpleForm.  Personally, I have not used SimpleForm before, but instead I use Formtastic.  A pull request for this would be gladly accepted though.  The code relating to this issues is in lib/rails3-jquery-autocomplete/simple_form_plugin.rb


TypeError: Cannot read property 'appearances' of undefined

TypeError: Cannot read property 'appearances' of undefined
This error is located at:
in Wrapper (created by Layout)
in Layout (at CarRescueScreen.js:22)
in RCTView (at View.js:34)
in View (created by ViewPager)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:165)
in AnimatedComponent (at createAnimatedComponent.js:215)
in ForwardRef(AnimatedComponentWrapper) (created by ViewPager)
in ViewPager (created by TabView)
in RCTView (at View.js:34)
in View (created by TabView)
in TabView (at CarRescueScreen.js:13)
in CarRescueScreen (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (at View.js:34)
in View (created by CardContainer)
in RCTView (at View.js:34)
in View (created by CardContainer)
in RCTView (at View.js:34)
in View (created by ForwardRef(CardSheet))
in ForwardRef(CardSheet) (created by Card)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:165)
in AnimatedComponent (at createAnimatedComponent.js:215)
in ForwardRef(AnimatedComponentWrapper) (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (at View.js:34)
in View (at createAnimatedComponent.js:165)
in AnimatedComponent (at createAnimatedComponent.js:215)
in ForwardRef(AnimatedComponentWrapper) (created by Card)
in RCTView (at View.js:34)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by Context.Consumer)
in RCTView (at View.js:34)
in View (created by MaybeScreen)
in MaybeScreen (created by Context.Consumer)
in RCTView (at View.js:34)
in View (created by MaybeScreenContainer)
in MaybeScreenContainer (created by Context.Consumer)
in CardStack (created by KeyboardManager)
in KeyboardManager (created by Context.Consumer)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:74)
in SafeAreaProvider (created by Context.Consumer)
in SafeAreaProviderCompat (created by StackView)
in GestureHandlerRootView (at GestureHandlerRootView.android.js:31)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackView)
in StackView
in Unknown (created by Navigator)
in Navigator (created by SceneView)
in SceneView (created by SwitchView)
in SwitchView (created by Navigator)
in Navigator (created by NavigationContainer)
in NavigationContainer (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)

Facing the same issue when running your get started example (button) with expo

seems like we forgot to follow https://akveo.github.io/react-native-ui-kitten/docs/guides/getting-started#manual-installation

@Sanjay1416 is the issue still open?

@Sanjay1416 is the issue still open?

@malashkevich we can close it. This error may only occur in case there is no ApplicationProvider in the root.
For anyone else who faces this, please check the doc.

@malashkevich we can close it. This error may only occur in case there is no ApplicationProvider in the root.
For anyone else who faces this, please check the doc.

Also happens if you have outdated node modules from npm or yarn updates, don't forget to delete and reinstall 👍


Code review and documentation

Code Review
This entails going through the code base and refactoring chunks of code to clean it up. A few shortcuts were taken in the development, and due diligence wasn't always followed to do clean architecture.
Documentation
While this isn't exactly an educational tool, some documenting and highlighting could still go a long way to helping people learn from it.

I'll do a first review pass now

For get nodes, you can't use type inference. Below, the type of both vars is Node:
onready var tween := $Tween
onready var fadeout := $FadeOut

Auto-complete seems to pick up that it's a tween, because it shows interpolate_property/callback/method and start.

Ah, so they might have fixed that. Good to know!


CAS3-396: create new schemas for persisting & returning a new cas3 pr…

Defining the schema for a new cas3 premises

I think it would be good if this was more generic, and we had some way of differentiating between the type of premises (so a type field or similar). I feel a bit uneasy about adding new endpoints that are specifically for a given service.

Fair point yeah. I'll leave this here for discussion as James wants to chat about it tomorrow also

I expect the shape of a premise resource to stay broadly the same. There may be some data changes and/or divergent behaviour in the future. One way we could control those is as Stu says with a new piece of state like type.
As a general principle of our collaboration on the API I think we'd do well to take a default stance of sharing over separation. When we find that to be too hard then we still have the option to separate. This situation is a good example, CAS3 need the POST Premise endpoint now but we know that CAS1 have that same feature on their roadmap.
It would be good to understand any concerns that drive this separation as we might be able to factor those in to the work we need to do to support this.

We could add that to the CAS1 database diagram at https://dbdiagram.io/d/6200fa0285022f4ee54d7569 probably?

This link is from Discovery I think but it's not actually reflective of the current state of the schema (e.g. one notable discrepency is that schema has individual beds modelled whereas due to us deciding to go for mini-manage first we just have a bed count on the premises table.)
For reference, here's an entity-relation diagram of the current state of the schema generated by DBeaver:

I agree that in general we should keep the same endpoints unless we have to split.

Is there an overview of the MVP requirements for CAS3 somewhere?  If we're going to share the repo it's going to be pertinent that both teams are aware of the requirements for the other team when adding/changing anything so I'm just wondering what this would look like from a process perspective?

what kind of information do you plan to represent in CAS3Premises.type?
And might that be better suited to some other (join) table e.g. cas3_premises_types or more generally something like premises_properties? -- but then we really are jumping with 2 feet into a general purpose design...

I suggest we try to make this work on the existing premises table and see what impact this has on our code...

From what I understand, Ian forked off, we got some more input from Joe and Ed and we got this work running locally. Our next steps are to get this work back into this repository in our temporary-accommodation-main branch.
I suspect this can probably be closed?


Bot Crashing when bumping

When I bump the bot it wont push the ad and the ad is short and has no emojis! How do I fix this? It also will show an error in the console

We removed emojis in latest patch because it was causing issues as for the ad not pushing I'm not sure, I don't know what could go wrong.


Coins on stealth address can't be moved...

Context
I did made a new wallet with several address inside, some of them are stealth address, i send 10 coins to regular address and 20 coins to stealth address from another wallet, after that i try move the 30 coins outside wallet and was imposible, so i begin to try make smaller transactions and i was able to getout 10 coins, but 20 coins can't be moved, think are the 20 coins in stealth address, tried several things, wallet is encripted, so i did unlock and try again without success,
After that i tried get private key for stealth address but can't neither.
Prerequisites

[x ] Are you running the latest version?

yes
User Story:

"I'm submitting a ... "

[x] bug report

I am using windows 10 64bits and Wallet-qt version: v<IP_ADDRESS>-794660a-funky-beta
Expected Behavior
Coin get transfered to another wallet
and / or
Get private key from stealth address for try make a new wallet in Electrum
Current Behavior
The Wallet-qt program show me this message when try make the transaction:
" Error. Fallo en la creacion de la transaccion."
and / or
When ask for private key on console program fail in give it.
Screenshots

Possible Solution
Upgrade the wallet program for fix some minor bugs.
Steps to Reproduce (for bugs)

Steps :

Create new wallet
Create 2 regular address and 2 stealth address
Send coins to new regular address and new stealth address
Try send coins outside the wallet to another wallet
Try recover private key from stealth address

Your Environment
Verge Wallet: Windows Qt Version: v<IP_ADDRESS>-794660a-funky-beta
Windows 10 64bits
i7 4700HQ 2.40 Ghz
32mb Ram
GPU: Nvidia 770m

Justin will probably need to help, but couple more follow-up questions that might help him:

Did you create all 5 of those addresses in the verge-qt wallet?
1A)  Did you create them by the 'receive address icon on the left' and clicking the "New Address" button?  Or did you create them through the console?
Can you get private keys for ANY of the 5 addresses?

What is the output of "listaddressgroupings" from the console ?

Did you create all 5 of those addresses in the verge-qt wallet?
Yes, i did, but can't remember if was last version 4 or a older one version 4.

Can you get private keys for ANY of the 5 addresses?
Yes, i can get private keys from at least 1 regular address, i didn't try the other one, and the other stealth one never got funds so seems to be don't have a normal address related to it for try retrieve private key.

What is the output of "listaddressgroupings" from the console ?

I just test get private key from both regular address, both worked, just can't from stealth related one.

Yesterday i was trying some different stuff, so i use a different computer, download blockchain from 29th January, download last qt version 4 wallet, and install all, copy the wallet.dat to the Verge directory and wait for everything got updated.
Try 2 more things, use -debug and use -resync, after finish all, still can't transfer or get private key from stealth address, hope this help you with the troubleshooting.
Greets.

Sorry i didn't answered it yet:
1A) Did you create them by the 'receive address icon on the left' and clicking the "New Address" button? Or did you create them through the console?
I create all addres from "New Address" button from icon on the left, just when i make stealth ones i click the stealth box and get checked.

Btw, after delete Verge folder, and download blockchain again and let wallet make everything again, my Qt wallet don't eat all my resources when transaction fail, now have a normal behavior.
I have at least 4 different verge wallets working on same computer, just alternate it inside Verge folder for use. the other 3 are working well but none of this have stealth address inside. Just FYI.

stealth doesnt dump a private key, because stealth is actually sent to a random pubkey. whichever coins came in from your stealth, came in from a public address, that you can definitely retrieve the key to. the only thing is, if you receive coins to that stealth addr again, it will be a different public address, and so on.

also, any wallet other than the current one, is no longer compatible with the current blockchain, and will not allow the data directory you use, to function on the new chain, as you will be at a different height when using the new wallet.

Question: if i did stealth address with old wallets will not longer work even if i use last Windows-QT wallet version?

Another Question: There is another way for recover the coins inside this wallet?

I'm pretty sure you can 'recover' funds on a stealth address that was created with old Windows-QT.
I've noticed people use the terminology 'wallets' and 'qt app' in a way that can be confusing.
A) Your wallet with your addresses/funds is your wallet.dat.
B) Your QT-wallet UI is essentially just a UI to access your wallet (A)
Justin was saying that the last QT UI (B) is not compatible and you will definitely have issues sending / receiving.
If you created (A) in the old version of (B), you should still be fine.  (A) can be copied from (B) to (B) to (B).
If you are using new (B), your (A), regardless of what (B) you created it in, should still be fine.
Is that not the case?  I noticed in your screenshots you have 20XVG.  Can you not send those 20 XVG somewhere else?

but actually I might see your dilemma ...
Your address has 20 XVG in it:
https://verge-blockchain.info/address/DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj
but even though it's showing in your wallet.. you can't seem to be able to dump the private key for DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj .. which is odd and I have no explanation for that.
But can you send your 20 coins... (19.9 with the .1 fee) to another address?  Do you get an error?

Hi, thanks to Jrsikors and Justin for follow the thread, i know can be confusing, sorry, english is not my first language, forgive me any errors or misleading.
Thanks for last clarification.
I am using last (B) UI, but can't remember in wich version i did create the stealth address.
Quote:
"but even though it's showing in your wallet.. you can't seem to be able to dump the private key for DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj .. which is odd and I have no explanation for that.
But can you send your 20 coins... (19.9 with the .1 fee) to another address? Do you get an error?"
Indeed, i can't dump the private and can't sent coins to another address, is the source of my issue, if you check screenshots in first post, you can see the error the UI give me: "Fallo en la creacion de la transaccion" in English is something like: "Failed making the transaction" or similar.
Thanks in advance for all help and support, i am sure this will be fixed, just matter of time and some patience.

Well luckily you are smart enough not to send hundreds or thousand of dollars worth of coins without testing it... but in all honesty I think you might have lost those 20 coins.
It sounds like the coins are on:
DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj
and you can't get the private key for it... and you can't send coins from it... so it really does sound like your verge-QT doesn't think you really own the address.  Usually when that happens you are out of luck :(
Maybe @justinvforvendetta has some other ideas, but

also this is interesting too --
I can't find DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj on the new verge blockchain explorer
vergechain.org

I know vergechain.org is new, so maybe there are some bugs, but that's pretty weird IMO:
https://vergechain.org/address/DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj
https://verge-blockchain.info/address/DMCvDCyCsuwX4p6WCtuQWEmXfaq4A4ujjj

I think vergechain is accurate in this instance

got me curious now @justinvforvendetta  ... not arguing at all, you are the king, but why would verge-blockchain.info be inaccurate?  It using outdated code referencing the 'old chain' ?

my guess would be the explorer db needs to be resynced, because the daemon under it seems to be running the latest version.

block 0b0a57c7c367194c16133c9fb32ef1fa210cc32483380a654177d61f95a65f82 is different across the 2... where his transaction supposedly happened.
https://vergechain.org/block/0b0a57c7c367194c16133c9fb32ef1fa210cc32483380a654177d61f95a65f82
https://verge-blockchain.info/block/0b0a57c7c367194c16133c9fb32ef1fa210cc32483380a654177d61f95a65f82

but yeah -- more of the same.  the 2nd screenshot , i highlighted in purple-ish the ones that match across the chains.  The yellow highlighted one is Jose's transaction.
The non highlighted ones don't show on vergechain.org either.

You are getting closer, thanks for all time you are investing on this Jrsikors. Don't worry about the 20 coins, but hope this thread lead on get this kind issue fixed.
Thanks Justin for help too, if you want try something else, let me know.

Vergechain.org has issues, transactions on there that weren't confirmed and it seems missing ones as well.  From the console you can getblock 0b0a57c7c367194c16133c9fb32ef1fa210cc32483380a654177d61f95a65f82 and see that his transaction was included.  gettransaction d4bc4ae9d435f718250787b2148245bfe084d94ba872b54a00225495acaf51f4
for more on it.  Issues seem to have come about after the hardfork.  Vergechain needs to be reset and rebuilt.

I was able to spend the amount in the stealth address without any problem. However, I did notice a weird behavior:
Wallet Status:

Public Address: 2 coins
Stealth Address: 3 coins.

If I transfer 5 coins to another address both public/stealth address appear as input addresses for the transaction at verge-blockchain.info.
This could possibly mean that a stealth address can be tied to a public address.
Wondering if we should have a checkbox/dropdown while sending coins so that

Users can choose to send coins from both public/stealth addresses in the wallet
Users can choose to send coins only from public addresses in the wallet
Users can choose to send coins only from stealth addresses in the wallet

think this will give more flexibility for the users. @justinvforvendetta thoughts ?

yes coin control will be added

Both are true


asphalt 9

before, we could change asphalt 9 fps to any fps we want by editing local_profile on root or use dual space apps. like this video: https://youtu.be/1z-p-zktMes?si=x9g7zzZcwjyoq8GG
and on new update we can't.
when we edit the file, it returns to the previous state.
if you can please find a way to fix it. because the game is laggy and not smooth and enjoyable as before even if we spoof to any device.

test with this
Game Unlocker.zip


Unable to run inference in GUI

Hi,
Thanks for the tool. Unfortunately I don't seem to be able to make it work when trying your example:
python DetVisGUI_test.py configs/faster_rcnn_r50_fpn_1x_coco.py ./faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth data/test_images
Results in:
Traceback (most recent call last):
  File "DetVisGUI_test.py", line 910, in <module>
    vis_tool().run()
  File "DetVisGUI_test.py", line 884, in run
    self.clear_add_listBox_img()
  File "DetVisGUI_test.py", line 754, in clear_add_listBox_img
    self.change_img()
  File "DetVisGUI_test.py", line 450, in change_img
    result = inference_detector(self.model, img)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/apis/inference.py", line 147, in inference_detector
    results = model(return_loss=False, rescale=True, **data)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmcv/runner/fp16_utils.py", line 97, in new_func
    return old_func(*args, **kwargs)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/detectors/base.py", line 173, in forward
    return self.forward_test(img, img_metas, **kwargs)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/detectors/base.py", line 146, in forward_test
    return self.simple_test(imgs[0], img_metas[0], **kwargs)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/detectors/two_stage.py", line 177, in simple_test
    proposal_list = self.rpn_head.simple_test_rpn(x, img_metas)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/dense_heads/dense_test_mixins.py", line 124, in simple_test_rpn
    proposal_list = self.get_bboxes(*rpn_outs, img_metas)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmcv/runner/fp16_utils.py", line 184, in new_func
    return old_func(*args, **kwargs)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/dense_heads/rpn_head.py", line 128, in get_bboxes
    proposals = self._get_bboxes_single(cls_score_list, bbox_pred_list,
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmdet/models/dense_heads/rpn_head.py", line 220, in _get_bboxes_single
    dets, keep = batched_nms(proposals, scores, ids, cfg.nms)
  File "/Users/a_s/anaconda3/lib/python3.8/site-packages/mmcv/utils/config.py", line 47, in __getattr__
    raise ex
AttributeError: 'ConfigDict' object has no attribute 'nms'

Any ideas on what might be wrong?
Thanks

I have the same problem. Have you solved it?


feat: remove shipping cost from requestBody

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

10.1.0
GitHub release

Your semantic-release bot :package::rocket:


Allow to provide custom activity bar Icons

In my opinion, the activity bar icons are too big and it becomes a distraction because they consume too much visual weight.
I'd like the ability to theme the icons, and customize their size, padding, color, etc.

For example, I'd like to do something like this...

//cc @misolori

Honestly, being able to change all icons in VSCode (not just the file icons) would be fantastic.

Duplicate of...?

Duplicate of #79130

Is it though? I am referring to the navigation icons to the left #79130 is talking about the expand/collapse icons.

@austincondiff it's titled "Allow configuration of product icons" so any issues asking to provide custom icons are being pointed there. If you also read the comments people are asking for the same thing.


typo: exit_lenstra -> exit

Fixes: https://github.com/intel/QAT_Engine/issues/251
Looking at qat_rsa_priv_dec I think this may be a typo, unless DISABLE_QAT_HW_LENSTRA_PROTECTION should be checked? Please advise.

Thanks for the PR. It looks like it should be "exit" only instead of "exit lenstra" We will check internally and merge it after testing.

I have a slightly modified version to fix the compilation error as we need to fallback to OpenSSL_SW from the code in exit_lenstra.  Do you mind if I fix  and include it in upcoming release instead of accepting this PR  ?

Do you mind if I fix and include it in upcoming release instead of accepting this PR ?

Yes, no problem, thanks!

Thank you for the contribution. The changes is now part of v1.3.0 release


feat(action): support optional error field

Allow prepareAction to return an optional error field as per the Flux specification
https://github.com/redux-utilities/flux-standard-action#actions

Y'know, that's a good point.
It's frankly the least-used part of the FSA spec (most folks just dispatch SOME_ACTION_ERROR instead), but this would be a reasonable thing to include.
Can you add some types tests for this functionality as well?
@phryneas , any thoughts here?

Looks good to me, but this still need type-tests.
@tvanier : take a look over here : https://github.com/reduxjs/redux-starter-kit/blob/master/type-tests/files/createAction.typetest.ts
Some additional tests that if prepareAction returns an error, it is also defined on the created Action with the same type. And additionally, just add some // expect-error cases to existing tests, meaning that if no error is returned from prepareAction, no error property is present on the returned action.

If we can get this in in the next day or two, we can get this into 1.0.  Otherwise, we'll just add it afterwards (1.0.1 or something).

Sorry for having missed some tests, I am not too familiar with type-testing, just added some as suggested by @phryneas , let me know what you think. And please do not block the 1.0 release if this PR is not ready! (although supporting error would help our project)

Thanks @phryneas .
@markerikson It would be great if this could be merged before releasing 1.0, I am adding the starter kit to a project where action.error is used already.

Cool.  Awright, in it goes!

Great, thanks @markerikson and @phryneas !
Do we have an ETA for 1.0, or 0.10 maybe?

Coming Soon (TM) :)


Narrow Message Types being passed into SubmitCallback or GetCallback

Discord Thread: https://discord.com/channels/937858703112155166/949067728709369856/1204494465541210162
JS PR: https://github.com/TBD54566975/tbdex-js/pull/156/files#diff-fe3b59c637fcb3e6e3b01742b42b35cb58e2160f60310da6d9fc1085ba5a4be3R21
Right now it isn't smooth to convert from a Message to one of its subtypes like Rfq from a dev standpoint. If for example you're writing your SubmitCallback and pass through your message, in the callback you'll need to write something similar to this:
val message: Rfq?

  try {
    message = Message.parse(call.receiveText()) as Rfq
  } catch (e: Exception) {
    val errorDetail = ErrorDetail(detail = "Parsing of TBDex message failed: ${e.message}")
    val errorResponse = ErrorResponse(listOf(errorDetail))
    call.respond(HttpStatusCode.BadRequest, errorResponse)
    return
  }

Ideally I think it'd be a better dev experience to have a convenience method that removes the optionality and looks something like:
val rfq = Rfq.from(message = message)

If that method could handle the optionality internally to avoid exposing any of that to devs I think it'd make for a better user experience.

hey @chris-tbd
so sorry i completely blanked on this. it's on my todo list to include in our tbdex 1.0 release, so it should get done this week.


[AutoDiff] Make differential operators able to take a non-escaping function

Passing a non-escaping function to a differential operator like #gradient should be allowed, just like type(of:)

@swift-ci please test tensorflow