[C++] Array::Equals incorrectly returns true when comparing sized buffer with buffer of size 0

Describe the bug, including details regarding any error messages, version, and platform.
From https://github.com/apache/arrow/issues/34634, which produces an invalid BooleanArray with a data buffer of size 0, when doing checking if this array is equal to another one, this incorrectly returns True:
>>> arr1 = pa.array([True, True])
>>> arr2 = pc.replace_with_mask(pa.chunked_array([arr1]), [False, False], False).chunk(0)
>>> arr1
<pyarrow.lib.BooleanArray object at 0x7f8c8522f700>
[
  true,
  true
]

>>> arr2
<pyarrow.lib.BooleanArray object at 0x7f8c843ce560>
<Invalid array: Buffer #1 too small in array of type bool and length 2: expected at least 1 byte(s), got 0
/home/joris/scipy/repos/arrow/cpp/src/arrow/array/validate.cc:116  ValidateLayout(*data.type)>

>>> arr1.equals(arr2)
True

It seems it only gives true when it actually matches what the invalid array should be (so maybe we were just writing anyway to (and reading from) non-properly allocated memory?)
>>> pa.array([True, True]).equals(arr2)
True
>>> pa.array([True, False]).equals(arr2)
False

While we should of course fix the root cause of producing such an invalid array (https://github.com/apache/arrow/issues/34634), it also doesn't help that if you for some reason have such invalid array, it's possible to have equals work.
Component(s)
C++

I'm pretty certain, in this case, we are comparing values from the left array with garbage memory and getting lucky it doesn't trigger a segmentation fault.

I'm not sure we should fix this.  We could probably add more checks that would check this but those checks would be redundant and it's a slippery slope to try and handle all combinations of invalid arrays.

I think we might actually also write into the memory (so not just garbage, which makes the test pass consistently for the example), but that's of course just as bad, and indeed when using larger data that gives a segfault at clean-up.
It's true that it is a slippery slope and that you can't start with ensuring the validity of the arrays on any operation. At some point you need to assume you have valid data.
I suppose a more appropriate solution here would be to have better testing utilities, like an assert_equals-like helper, and then in such a function we could first call validate() on the arrays and then equals, to avoid such issues.


How to set Start Date and Target Date

The page says
For work items that span one or more iterations, you can define the Start Date and Target Date. The plan displays cards that start and end according to the dates you set as shown in the following image.

But is nowhere to be seen how to do that. How am I supposed to set a Start Date and Target Date if such fields do not appear anywehre at all?

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

ID: 9ef517e1-f614-a2e5-d968-e32bdaac6183
Version Independent ID: babf6a50-0147-74bb-0e20-b1939de397af
Content: Review team delivery plans - Azure Boards
Content Source: docs/boards/plans/review-team-plans.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@JoseFMP - Thank you for your inquiry. First note that this feature is ONLY available with Azure DevOps Services, the cloud platform. If the Start and Target Dates are missing from a work item type, Feature, Epic, or custom, you can add them to the work item type by following the instructions given here:  https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/customize-process-field?view=azure-devops#add-an-existing-field-to-another-wit.

@JoseFMP - Thank you for your inquiry. First note that this feature is ONLY available with Azure DevOps Services, the cloud platform. If the Start and Target Dates are missing from a work item type, Feature, Epic, or custom, you can add them to the work item type by following the instructions given here:  https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/customize-process-field?view=azure-devops#add-an-existing-field-to-another-wit.


No support for Custom reporters

Hi I am using ReportPortal and I can't see the results when running from the extension.
Do you support for it?
Do you plan to support it?
Thanks!

Sorry, wrong configuration


Completion ordering for library imports is very incorrect

(was https://github.com/dart-lang/atom-dartlang-experimental/issues/94)
import 'dart:io' as io;
io.

I don't think that 'BytesBuilders' is the most commonly used class from the static list, or is the right lexical ordering.
I think the problem is that we're not lexically sorting for items of the same level of priority from Analysis Server

@lukechurch, we're sorting the returned completions first by relevance, and then by case-insensitive lexical order on the completion text.


[STORM-1372] Merging design and usage documents for distcache

Minor nit picks, +1 after the changes.

+1

Done with my first pass through the doc.  Most things look good.  A few minor issues.

+1

@revan2 @rfarivar @jerrypeng @unsleepy22  Addressed your concerns

LGTM +1

+1

LGTM +1
A minor suggestion, is it better to quote blob commands in Configuration section like the above parts in order to keep consistent? but it's up to you.

+1

+1

+1


Inequality bugfix 2

Fix energy calculation when the lower bound (lb) equals the upper bound (lb) in add_linear_equality_constraint.
This will resolve issue #914

Codecov Report

Merging #915 (1e59c30) into main (42c8106) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #915   +/-   ##
=======================================
  Coverage   82.90%   82.90%
=======================================
  Files          80       80
  Lines        6698     6698
=======================================
  Hits         5553     5553
  Misses       1145     1145

Impacted Files
Coverage Δ

dimod/binary/binary_quadratic_model.py
91.01% <0.00%> (ø)

dimod/discrete/discrete_quadratic_model.py
95.45% <ø> (ø)

Continue to review full report at Codecov.

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

Can we add a test?

Can we add a test?

Agree, a regression test will be great.

yes, I'll add a test later today.


[TW#15693] Promiscuous/Passive scan + TCP esp_wifi_internal_tx gives Out Of Memory after a few minutes

Edit: I suspected promiscuous mode is used internally when performing a passive scan. I have reproduced the same issue while sending data over TCP to an esp32 while doing a passive scan every ~2 seconds or so. Also based on the tcp_performance example. This example also reproduces the issue much faster than the one below. The project can be downloaded here: tcp_perf_passive_scan.zip
use it together with the esp-idf and according to the README I linked below in (Project download).
What we do is to listen for packets for 200ms every 2s on the different channels. This is roughly how we do it:
1. esp_wifi_set_channel(promiscuousChannel)
2. esp_wifi_set_promiscuous(TRUE)
3. esp_wifi_set_promiscuous(FALSE) after 200ms
4. esp_wifi_set_channel(connectedAPChannel) // Change back to ap channel, otherwise we lose connection
5. promiscuousChannel++
6. After 2000ms go to 1.

While doing the above we send data over TCP to the esp32.
This works great, except that after a few minutes esp_wifi_internal_tx starts to give error code -1 (Out Of Memory). It could be fine that the tx_buffer is full, however it doesn't recover. After one error, no new packets can be send. Meaning the connection stops, since we can't ACK the received TCP packets.
I have managed to reproduce a minimal example, based on the example performance\tcp_perf.
The only difference between this reproduce and our application is that the error occurs faster for us, maybe 1 minute instead of ~5-8 minutes.
The whole esp-idf is included since I changed TCP_MSS to 536 (since it speeds up the time until error) in lwipopts.h And added a log in lwip/port/netif/wlanif.c you should be able to do a git diff in the lwip component to see the difference. Our sdkconfig is included, it has our memory configuration and such, which is needed to reproduce.
The necessary information to run and reproduce is found on the top of the README.
Project download
The code, Wireshark logs and debug logs can be found in the folder tcp_perf_promiscuous
ESP-IDF: release/v2.1
If anything is unclear, just comment.

HI @jakkra we will investigate this issue

@jack0c I met the same issue, i can't find the API esp_wifi_goto_home_channel@idf 3.1.

Did you implement esp_wifi_goto_home_channel@idf 3.1? We had the same issue...

We recorded this issue and plan to process it later.

Hi @pierocavalcanti , We optimized the  esp_wifi_set_channel() API.
When esp_wifi_set_channel() is used, it will be called to esp_wifi_set_home_channel().
Please verify that the API solve your issue？
esp_err_t esp_wifi_set_home_channel(uint8_t primary, wifi_second_chan_t second);

Thanks for reporting and sorry for the very slow turnaround, the fix is available at https://github.com/espressif/esp-idf/commit/c378bd210c1b79857509beb8807fca2440ed82ef. Feel free to reopen if the issue still happens.


Robyn Output Error - One or both dimensions exceed the maximum (50000px)

Project Robyn
Describe issue
When I tried to run the model using conversion (CPA) metric, it was successfully executed, but when I run robyn_output it returned me this error message
>>> Calculating clusters for model selection using Pareto fronts...
>> Auto selected k = 6 (clusters) based on minimum WSS variance of 5%
Error : One or both dimensions exceed the maximum (50000px).
- Use `options(ragg.max_dim = ...)` to change the max
  Warning: May cause the R session to crash
In addition: There were 36 warnings (use warnings() to see them)
Error in clusterCollect$data : $ operator is invalid for atomic vectors

Provide reproducible example
Issues are often related to custom input data that is difficult to debug without. If necessary, please modify your data to mask real values and share a dataset that is able to reproduce the issue. Please also share your model configuration and exported JSON files if available.

the configuration that I used was the same like demo.R in the repo just different dataset

Environment & Robyn version
Make sure you're using the latest Robyn version before you post an issue.

Robyn version : <IP_ADDRESS>07
R version 4.2.3 (2023-03-15)
MacOS Sonoma

you opened and closed the same issue yesterday, right? Have you seen this who has the same problem?

@gufengzhou @nikomataaa
After updating to latest dev version which is ‘<IP_ADDRESS>09’, I had the same issue.
I'm running into the following error when I build initial model and refresh both.
Did you find something to solve the problem?

Hi there,
I am encountering this issue as well when modeling for conversions.  Is there any update here?
Thank you!

@gufengzhou Recently I have been encountering the same error that too when modeling for Revenue (which is what I have been modeling since last year. I did set export = FALSE and error message went away and I can get the desired solID's onepagers, but I use the alldecomp_matrix and pareto_aggregated CSVs as well, but none of those have been generated with export = FALSE.
Is there a more permanent solution to this?
R version is 4.2.2 and Robyn version 3.10.5 is installed on my end.

@gufengzhou @laresbernardo Sorry for following up here on this issue. Is there a permanent solution? If not, could you please guide how do I save the pareto_aggregated and pareto_alldecomp_matrix CSV files after setting export = FALSE?

@gufengzhou @laresbernardo I am sorry for following up again, but this issue has reduced been bothering me since last 2 weeks and has immensely slowed me down. I have to run model twice to get to all one_pager PNGs and pareto CSVs. You see when I run the model with export = FALSE, the directory Robyn_date_init doesn't get created which then given me error when trying to run one_pager() as looks for that directory and it's not available. So, then I run model first with export = TRUE (this ends in error and hence doesn't generate Inputcollect and Outputcollect) and then run model with export = FALSE.
So, if you could please provide a permanent solution to this "dimensions exceed the maximum" error, that would be a huge help!

Hi @CJ2407 @jstrome-lmp @ghltk
Not sure if you are aware but, even though I am actively collaborating and improving Robyn's code, I am not working at Meta anymore, so I don't have an active agenda to solve issues; all the changes I've submitted are for the sake of open-source, because I need it for my current projects, and for the love I still have for Robyn as an amazing MMM solution.
That said, I've found this same issue while running the code on my end and I've just created a branch that I think could fix it for you too. I would love for you to test it and see if it gets solved. Please, update Robyn by running Robyn::robyn_update(ref = "fix874"), refresh your R session, and retry to run your code. Do let me know how it goes and I'll merge it with main if it's fixed for you too.

Thank you @laresbernardo for letting me know. I was honestly not aware that you are not working at Meta now. Apologies for reaching out so incessantly. Let me try this update and let you know.

Thank you @laresbernardo. I tested the update you suggested and it worked. That error I have been getting is gone and the model run finished successfully and generated all the one_pagers and pareto CSVs. Thanks so much!

Fantastic! Thanks for confirming. Will land in main branch once @gufengzhou approves the PR #939


feat(general): privacy consent prompt invalid users

This is not really what I wanted to achieve, but Github decided that it had to happen like this. In this way, it is easier to check with me what is going wrong with storing that the user has agreed to the privacy policy.

I can make it into a proper branch if you want to

I can make it into a proper branch if you want to

I think it might be better to just merge this with #700 saves us some troubles with versioning now that saveUser() might not work as expected
@LeonVreling can you maybe move it back?

I can make it into a proper branch if you want to

I think it might be better to just merge this with #700 saves us some troubles with versioning now that saveUser() might not work as expected
@LeonVreling can you maybe move it back?

Uhm so you mean merge this, since it is a PR to merge my commits into prompt-for-invalid-users, which is the branch of the other PR

I can also merge my PR, and then we can change the base branch for this one to master, should work as expected. But what you've suggested can also work.

Yes I guess that merging your PR first would also be fine, as long as we don't deploy anything until all the validation checks are in there.
But what about the saveUser() function that might be broken, that was also already there in your PR


ubuntu 20.04 support

this worked on ubuntu 20.04
closes #107
todo maybe update the readme for 20.04 as well, cuz now u can just apt install python3.9 python3-pip. also python3.9-dev and python3.9-distutils don't seem to be needed
o btw instead of git submodule init && git submodule update just git clone --recursive.
o and gulag builds oppai for u so that part can be omitted too

todo maybe update the readme for 20.04 as well, cuz now u can just apt install python3.9 python3-pip. also python3.9-dev and python3.9-distutils don't seem to be needed

Hmm, I agree it's kinda ugly to add a ppa when it's not required on 20.04 but this would cause a bigger issue on other distros where it's not available since it would actually be a roadblock for less experienced people.. Perhaps leaving the add-apt-repository line there but commented out with a little "you may have to use this if your distro doesn't have python3.9 available" comment would be okay.

o btw instead of git submodule init && git submodule update just git clone --recursive.

Oh this is dope, didn't know about that ty.

As for the actual commit though, do you mind explaining why you picked these ciphers? I'm not too familiar with this cryptography stuff lol.
Does this force osu! to use a newer version, or force the server to use an older version? What do osu! & the server normally agree to use if this isn't enforced?

I don't know anything about this cipher stuff, I just copied it from here and found it to be the only solution that enabled TLSv1.0. We know that osu uses TLS 1.0 and nginx on ubuntu 20.04 only supports TLS 1.2 and 1.3. Adding this line enables TLS 1.0, 1.1, 1.2, and 1.3 on ubuntu 20.04. And by placing it inside the server blocks, only these vhosts are affected. It could be placed outside as well, but it would affect all vhosts.
I assume that having TLS 1.0 available means osu will be able to connect, but I have not tested it; we should test it to be sure before implementing this

Tested and working with osu


Feature Request: Dark Mode

I'd love to see a "Dark Mode" feature implemented. I find myself browsing this site at night on my phone, and I think having the option to toggle a dark theme would greatly improve the experience for certain scenarios like night time browsing.
Although there are many ways to implement this, I found a straightforward approach via this implementation example - https://flaviocopes.com/dark-mode/.
Looking forward to seeing if anyone else is interested.

Hey @cartersteinhoff 👋
"Dark Mode" feature is definitely something we're planning to implement very soon. It was on our radar for some time now and I agree with you that this is something many people look forward to!
Expect a fresh dark mode as soon as we figure out the color palette. I'll keep you updated as well!

@atomiks do you perhaps have any ideas on this one? If you have an idea of the color palette used for dark mode I can probably code it next weekend or so.


Refactor to use export groups

This PR refactors the monitor_overlay to use export annotations instead of the property list hack.

Thanks for the PR
The only thing that bothers me with it is you removed all the setters that forced the UI to regenerate when a variable changes.

Thanks for the PR The only thing that bothers me with it is you removed all the setters that forced the UI to regenerate when a variable changes.

Ah, sorry. I messed up the branch creation. I'm going to fix it right away

Thank you!


Update README.md

Adding Hakiri badge to highlight potential dependency security warnings.

Good to be able to actually check if vulnerabilities have been detected, although I'm not too keen to display "security: 100%" on this project's README. It provides a false sense of security and everyone using open source software should apply a minimum due diligence and ensure the code is safe for them to use.


chore(ssa refactor): Fix loading from mutable parameters

Related issue(s)

Resolves #
Description
Summary of changes
Fixes a couple bugs with mutable parameters:

Mutable parameters were not being Instruction::Load'ed from automatically because they were not wrapped in Value::Mutable. This lead to a later panic in mutate_load_into_store.
Because we evaluate lhs before rhs in lhs = rhs; we generate a load from lhs before we evaluate rhs and store to it. To create the store however, we replaced the load with a store previously, which would then create a store instruction storing rhs before rhs was even evaluated. So the IR would resemble store v3 at v1; v3 = .... Since the store should be after everything else, I've replaced mutate_load_into_store with a new function to instead remove the old load and insert a new store at the end of the current block.
Fixed a small issue where store instructions were being printed backwards.

This PR depends on the previous fixes PR which is in the process of being merged. Until then this PR will show those changes as well.
Dependency additions / changes

Test additions / changes

Checklist

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt with default settings.
[x] I have linked this PR to the issue(s) that it resolves.
[x] I have reviewed the changes on GitHub, line by line.
[x] I have ensured all changes are covered in the description.

Documentation needs

[ ] This PR requires documentation updates when merged.

Additional context

Update: Fixed storing to mutable arrays as well. Previously the code

Would result in the IR:
fn main f0 {
  b0():
    v3 = alloc 2 fields
    store Field 1 at v3
    v5 = add v3, Field 1
    store Field 2 at v5
    v6 = alloc 1 fields
    store v3 at v6
    v9 = load v6
    v12 = mul Field 1, Field 1
    store Field 3 at v9
    return unit 0
}

Note the final v12 that is never used and that we're storing to v9 (the start of the array) rather than (start + 1).
After the newest commit we'll produce the following fixed code. With the correct v13 instruction to get the offset of the array before storing to it.
fn main f0 {
  b0():
    v3 = alloc 2 fields
    store Field 1 at v3
    v5 = add v3, Field 1
    store Field 2 at v5
    v6 = alloc 1 fields
    store v3 at v6
    v9 = load v6
    v12 = mul Field 1, Field 1
    v13 = add v9, v12
    store Field 3 at v13
    return unit 0
}

For the curious the v12 1 * 1 instruction that looks useless is used to calculate type offsets if the element type of the array is larger than 1 field.

After some more testing I've determined this is the final bugfix PR needed for the new ssa gen pass 🎉. It likely still has bugs but none that I can find by running any of our examples and looking at the output manually.
Note that this is except for one known failure: The first-class-functions test fails completely when we attempt to use a value from another function without importing it as a parameter first. This is by design, but fixing it means we need to do proper closure conversion. Proper closure conversion was needed previously due to a known bug when using closures but for the most part the old SSA ir was fine with using these values without importing them so it worked for the most part. I've opened an appropriate issue for this.

After some more testing I've determined this is the final bugfix PR needed for the new ssa gen pass 🎉. It likely still has bugs but none that I can find by running any of our examples and looking at the output manually.
Note that this is except for one known failure: The first-class-functions test fails completely when we attempt to use a value from another function without importing it as a parameter first. This is by design, but fixing it means we need to do proper closure conversion. Proper closure conversion was needed previously due to a known bug when using closures but for the most part the old SSA ir was fine with using these values without importing them so it worked for the most part. I've opened an appropriate issue for this.

Yay :D Great work on getting the ssa gen pass complete!
Can you link the issue for poper closure conversion?


Update version number

Any chance we can get the version number updated in response to the PR #116 merge? This would help dependent applications ensure they have the right version.

Plotly as the default for MATLAB based Jupyter notebooks is perfect.
I hope this collaboration will work.

closing - addressed in #122


Nested List Items

While trying to replicate my resume into this simple format, one of my items of experience consists of listing the sections of my responsibility.  For example,

Responsible for managing the below items:

Item 1
Item 2
Item 3

I would love to have one level of nested bullets in the template in the 'points' template style.  At this time, no combination of bullet styles is available more than a single level of depth.  I've tried using '+', indenting the YAML clauses to another level lower, adding a subordinate 'points' container, using '*', and more.  Each attempt causes Hugo's development server to refuse to process due to a YAML parsing error, requiring me to restart the Hugo development server prior to continuing development.

Hi, I found this SO thread for how to write YAML with nested lists.
This will stop Hugo's server from crashing, but the template will not render the way you'd want it to. This is the line where the points are read into the theme, so additional logic would need to be added to support lists with sublists. There may need to be additional styling added here depending on how the sublist looks once it is supported.
If you want to try making a Pull Request with updates to support sublists, that would be awesome and I'd be happy to help where needed. Otherwise, I can try to add the functionality for this sometime soon.

I went and added support for one level of sublists. I tried doing more levels, but it got increasingly complex, so only one sublevel is supported now.
See this commit for the changes and example for how to make a sublist


Update signature for script

This scripts signature expired last year. Any chance it can be renewed?
https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/General Functions/Get-UserRights.ps1

This scripts signature expired last year. Any chance it can be renewed?
https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/General Functions/Get-UserRights.ps1

Working on it, thank you for letting me know! 🙂

The digital signatures have been renewed https://github.com/blakedrumm/SCOM-Scripts-and-SQL/commit/cfaafdf356c3c69db0e63fc1d95b2d54b3456169


Change "Type" color for "Quote" to black

In Netbox light mode the 'Quote" document type looks invisible.
See:

Provided with the pull request, if this is released: https://github.com/jasonyates/netbox-documents/pull/16
bg_brown does not exist or no longer exists in the NetBox CSS.
@jasonyates I ask for your release.

This was released in 0.4.4
Thanks for reporting.


test/recipes/80-test_tsa.t: Don't trust 'OPENSSL_CONF'

There's a case when the environment variable OPENSSL_CONF is
useless...  when cross compiling for mingw and your wine environment
has an environment variable OPENSSL_CONF.  The latter will override
anything that's given when starting wine and there make the use of
that environment variable useless in our tests.
Therefore, we should not trust it, and use explicit '-config' options
instead.

Merged.
master: 83e0d090b196f70a9f25ff505d5813745585ef85
1.1.0: 9433f9f5d945cd413b3f23f05f6681373f601a4a


Add data source for Hong Kong

Summary:

Adds new data source for Hong Kong from ArcGIS
Includes only columns where data is in English

Testing:

Ran npm run download which downloads the geojson file to data/raw
Ran npm run convert which saves file to data/geojson
Ran npm run normalize which saves the file to data/normalized

Confirmed the file(s) populate in each of the directories above.

Unfortunately, no common and scientific fields.  For reference, below are the fields in English. Only a subset mapped back to our crosswalk fields.
X
Y
OBJECTID
Species
District
Responsible_Department
Location
Last_Inspection_Date
BRR
TR_no_
Department_Ref__No_
OVTNo
XCoordinate
YCoordinate
Type
Condition
MitigationMeasure

@zoobot To clarify, would you want to map the dataset's Species column to both our common and scientific fields?
Below is a screenshot from researching some of the fields. Green columns reflect data from the original dataset. Yellow columns are my research.
Observations:

We definitely have Species in English but Species1 (and Species2 which appears to be a duplicate column) is in Chinese.
If we use Google Translate, it doesn't necessarily mean we will get the expect common names. In the last example, we have Pushu as the tree name. Though it was able to find matching values for the other rows (granted, I only searched these rows)


[QUESTION]:scini driver is not running

OCP - CSM - scini driver is not running
OCP VER 4.16.3
rmmod: ERROR: Module scini is not currently loaded
Error (1) unloading module binary /bin/emc/scaleio/scini.ko
[FAILED]
[32mINFO:    Starting scini service
Loading the best matching scini driver for your kernel...
The running kernel version is 5.14.0-427.26.1.el9_4.x86_64
Didn't find a perfect match in /bin/emc/scaleio/scini_sync/driver_cache.
Attempting to find a best match...
Attempting to load /bin/emc/scaleio/scini_sync/driver_cache/RHEL9/4.5.2100.105/5.14.0-362.8.1.el9_3.x86_64/scini.ko (version: 5.14.0-362.8.1.el9_3.x86_64)...
insmod: ERROR: could not insert module /bin/emc/scaleio/scini_sync/driver_cache/RHEL9/4.5.2100.105/5.14.0-362.8.1.el9_3.x86_64/scini.ko: Invalid module format
Running driver_sync to fetch a matching driver...
Calling driver_sync "retrieve_blob_tar" with path RHEL416/4.5.2100.105/5.14.0-427.26.1.el9_4.x86_64
driver_sync.sh START - Fri Aug  9 21:06:10 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Calling driver_sync "retrieve_blob_tar" with path RH/4.5.2100.105/5.14.0-427.26.1.el9_4.x86_64
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
No match after driver_sync fetch attempt.
Attempting to build the scini driver...
scini builder tarball is not available.
insmod: ERROR: could not load module iniLoadedVersion=67438644: No such file or directory
Failed to load the scini driver after it was built.
Will attempt to fetch the latest scini builder tarball...
Calling driver_sync "retrieve_file" with path RHEL416/4.5.2100.105/Dell-PowerFlex-scini_builder-4.5.2100.105.x86_64.tgz
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Calling driver_sync "retrieve_file" with path RH/4.5.2100.105/Dell-PowerFlex-scini_builder-4.5.2100.105.x86_64.tgz
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Failed fetching the builder tarball. Please check driver_sync.log
Failed to load driver scini.
Error (1) loading module binary /bin/emc/scaleio/scini.ko
rmmod: ERROR: Module scini is not currently loaded
Error (1) unloading module binary /bin/emc/scaleio/scini.ko
[32mINFO:    Starting scini service
Loading the best matching scini driver for your kernel...
The running kernel version is 5.14.0-427.26.1.el9_4.x86_64
Didn't find a perfect match in /bin/emc/scaleio/scini_sync/driver_cache.
Attempting to find a best match...
Attempting to load /bin/emc/scaleio/scini_sync/driver_cache/RHEL9/4.5.2100.105/5.14.0-362.8.1.el9_3.x86_64/scini.ko (version: 5.14.0-362.8.1.el9_3.x86_64)...
insmod: ERROR: could not insert module /bin/emc/scaleio/scini_sync/driver_cache/RHEL9/4.5.2100.105/5.14.0-362.8.1.el9_3.x86_64/scini.ko: Invalid module format
Running driver_sync to fetch a matching driver...
Calling driver_sync "retrieve_blob_tar" with path RHEL416/4.5.2100.105/5.14.0-427.26.1.el9_4.x86_64
driver_sync.sh START - Fri Aug  9 21:06:10 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Calling driver_sync "retrieve_blob_tar" with path RH/4.5.2100.105/5.14.0-427.26.1.el9_4.x86_64
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
No match after driver_sync fetch attempt.
Attempting to build the scini driver...
scini builder tarball is not available.
insmod: ERROR: could not load module iniLoadedVersion=67438644: No such file or directory
Failed to load the scini driver after it was built.
Will attempt to fetch the latest scini builder tarball...
Calling driver_sync "retrieve_file" with path RHEL416/4.5.2100.105/Dell-PowerFlex-scini_builder-4.5.2100.105.x86_64.tgz
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Calling driver_sync "retrieve_file" with path RH/4.5.2100.105/Dell-PowerFlex-scini_builder-4.5.2100.105.x86_64.tgz
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync failed! Please check driver_sync.log
Failed fetching the builder tarball. Please check driver_sync.log
Failed to load driver scini.
Error (1) loading module binary /bin/emc/scaleio/scini.ko
rmmod: ERROR: Module scini is not currently loaded
Error (1) unloading module binary /bin/emc/scaleio/scini.ko
[FAILED]
ERROR:   *****************************
ERROR:   ** Dumping driver_sync.log
ERROR:   *****************************
driver_sync.sh START - Fri Aug  9 21:06:10 UTC 2024
/bin/wget
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
/bin/wget
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
/bin/wget
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
driver_sync.sh START - Fri Aug  9 21:06:11 UTC 2024
/bin/wget
Error (gpg): File /config/emc_public_gpg_key must exist.
driver_sync.sh END - Fri Aug  9 21:06:11 UTC 2024
ERROR:   *****************************
ERROR:   Failed to start scini driver

@PalanirajR It looks like PowerFlex SDC <IP_ADDRESS> is not compatible with kernel versions for OCP 4.16.3. This needs to be worked with the Powerflex engg team to see if they will add support for it or leverage the self-compile SDC enhancement within our CSI driver to build an SDC compatible with this specific kernel version.

It was working fine and working in other 2 nodes just fine but we had issues with OSD going down and we were trying to replace with new one and stopped working after removing OSD1 and removing local pflex storage from the node. Not sure anything OSD cleanup did acting up like this.


Add rocket fetch functionality

In this feature I added the functionality to fetch rockets from the SpaceX API.

Hello @alvp01 thanks for your outstanding work!
Everything works as intended and the codebase is still very readable and organized.
There is nothing else to say other than, is time to merge it!

Thank you for the review!


fetch failing with "Network Request Failed" error from insecure HTTPS request

I'm running into a "Network Request Failed" error while trying to hit a RESTful API. I'm running a service on localhost that uses self-signing certs (shows the "Not Secure" message in browser). I can hit the endpoint from postman, browser, console, etc. but it fails in RN.
https://localhost:8993/services
I have been through existing related issues threads including #5222 and #8118. The common fix seems to be allowing arbitrary loads in the info.plist and changing localhost into my local IP. Have tried both with no luck; error is very vague. Almost positive it is because of the self-signing certs but not sure how to enable them.

Edit: Fixed this by editing RCTNetwork's RCTHTTPRequestHandler.
Fix from SO.

Closing this issue, but also wondering if there's an easier fix. There's not really a clean fix to get this working on Android.
From the answerer on the above SO thread.

I do have an idea on how to do it, It's just a painstakingly cumbersome process, Basically, you need to build RN from source facebook.github.io/react-native/releases/next/docs/… in that source you need to find if they are using HttpsURLConnection or HttpClient. After that, I could tell you what code to insert to trust all certificates

Try to add this on your ios/{projectName}/Info.plist, it works to me!
  <key>NSExceptionDomains</key>
  <dict>
    <key>myhttpdomain.com</key>
    <dict>
      <key>NSIncludesSubdomains</key>
      <true/>
      <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
      <true/>
      <key>NSTemporaryExceptionMinimumTLSVersion</key>
      <string>TLSv1.1</string>
    </dict>
  </dict>
  <key>NSAppTransportSecurity</key>
  <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
  </dict>

@bsilva0x87  this way just effect for ios, not with android

@bsilva0x87 how to solve the problem in android

how to do it in android ?


Admin Panel of "Payload Website Template" is not loading after fresh installation

Link to reproduction
No response
Describe the Bug
I've created a fresh installation using the website template:
npx create-payload-app@latest my-project -t website
Then switched to the "my-project" folder and started Docker containers, after that successfully seeded the MongoDB inside of container.
Frontend is working without issues under http://localhost:3000/
But as soon as I try to open an admin panel under http://localhost:3000/admin - the page appears blank and following errors are shown in console:

react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

react.development.js:1618 Uncaught TypeError: Cannot read properties of null (reading 'useContext')
at useContext (react.development.js:1618:1)
at useLocation (react-router.js:907:1)
at AuthProvider (index.js:81:24)
at renderWithHooks (react-dom.development.js:16305:1)
at mountIndeterminateComponent (react-dom.development.js:20074:1)
at beginWork (react-dom.development.js:21587:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
at beginWork$1 (react-dom.development.js:27451:1)

react-dom.development.js:18687 The above error occurred in the  component:
at AuthProvider (http://localhost:3000/admin/main.js:143998:25)
at ModalProvider (http://localhost:3000/admin/main.js:169822:29)
at Router (http://localhost:3000/admin/main.js:322446:30)
at BrowserRouter (http://localhost:3000/admin/main.js:321426:35)
at ScrollInfoProvider (http://localhost:3000/admin/main.js:205141:26)
at WindowInfoProvider (http://localhost:3000/admin/main.js:205418:29)
at ConfigProvider (http://localhost:3000/admin/main.js:144352:27)
at Root (http://localhost:3000/admin/main.js:119215:25)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

I've tried to update packages by running yarn upgrade - it didn't help.
Also tried to run the app without Docker, but directly from my machine - same result, frontend works, but admin not.
Found this ticket https://github.com/payloadcms/payload/issues/707, added
"resolutions": {
"react": "18.2.0"
},

to the package.json and run yarn upgrade again, but result was unfortunately the same.
Do you have an idea how to fix the issue?
To Reproduce
Fresh installation: npx create-payload-app@latest my-project -t website and yarn seed
Payload Version
2.14.1
Adapters and Plugins
No response

I also observed same issue with 2.14.1

Also on the "e-commerce" template

Released v2.14.2 with a fix. Let me know if you still see the issue.

I see this error on console. this  new error.
Just follow
npx create-payload-app@latest my-project -t website

I created a brand new project and 2.14.2 admin console works file.

The brand new project works fine.
But when I upgrade my existing app,
I am getting this error
Here are my dependencies
"dependencies": {
"@payloadcms/bundler-webpack": "^1.0.0",
"@payloadcms/db-postgres": "^0.x",
"@payloadcms/plugin-cloud": "^3.0.0",
"@payloadcms/plugin-nested-docs": "^1.0.8",
"@payloadcms/plugin-redirects": "^1.0.0",
"@payloadcms/plugin-seo": "^1.0.10",
"@payloadcms/richtext-slate": "^1.0.0",
"cross-env": "^7.0.3",
"dotenv": "^8.2.0",
"escape-html": "^1.0.3",
"express": "^4.19.2",
"next": "13.5.2",
"payload-admin-bar": "^1.0.6",
"qs": "6.11.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "7.45.4",
"react-router-dom": "5.3.4",
"@payloadcms/plugin-cloud-storage": "^1.1.2",
"@payloadcms/plugin-stripe": "^0.0.19",
"@stripe/react-stripe-js": "^1.16.3",
"@stripe/stripe-js": "^1.46.0",
"fast-xml-parser": "^4.3.5",
"jsonwebtoken": "^9.0.2",
"nodemailer-sendgrid": "^1.0.3",
"payload": "2.14.2",
"stream": "^0.0.2",
"stripe": "^10.2.0",
"util": "^0.12.5"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.1.6",
"@payloadcms/eslint-config": "^0.0.1",
"@swc/core": "1.3.76",
"@types/escape-html": "^1.0.2",
"@types/express": "^4.17.9",
"@types/node": "18.11.3",
"@types/qs": "^6.9.8",
"@types/react": "18.0.21",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"copyfiles": "^2.4.1",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"nodemon": "^2.0.6",
"prettier": "^2.7.1",
"slate": "0.91.4",
"ts-node": "10.9.1",
"typescript": "^4.8.4"
}
}

we have dependabot in place for our project and even the latest 2.14.2 version triggers the above useContext error.
Now I added the react and react-dom resolutions to 18.2.0 and works as expected.

I'm experiencing the same issue with react and react-dom deps at 18.2.0.
Any workarounds ?

Please correct this issue before marking it as closed.

Not able to recreate this as is. We can continue with your issues on #6313

I've tried everything I can find and still cannot resolve this.


Importing nodes?

I know this isn't a bug but couldn't find anywhere else to ask.
as for the question, I was wondering if it was possible to import nodes from modules without having to define or create them from scratch?

Hi,
do you mean automatically creating nodes from python modules (like random)? If so, it's not quite the main idea in Ryven. If you take a look at the existing nodes, you will see that most of them do much more than representing one single command. The idea isn't to replace textual coding but to enhance it by the visual representation in a level of abstraction that focuses of what's important for the script. For example, instead of writing a huge visual script to fetch some emails for further processing, you may want to put all that into very few nodes. Also, you could not automate the process of creating intuitive GUI.
There certainly are a lot of python modules with functionality that, at least as a start, would be useful to be accessible through automatically generated nodes. But adding some kind of dynamics would really make things complicated. And if it's just about simple function calls from modules (like random()), creating nodes for them takes seconds once you got some routine.
Does that address your question?

Was thinking of something more like import so functions from a module like NumPy could automatically be converted into nodes without having to reverse engineer the code to make it from scratch (which would be impossible for someone of my skill) in the node creator.

Isn't this exactly what I just suggested? Or am I barking up the wrong tree? As can be read on the website: Ryven is not a tool to learn how to program or to generally program in Python. I don't suggest using Ryven to create visual scripts if you don't know what they do. That would be the approach to completely hide the source code level and replace it with the visual representation, which is not the idea in Ryven. I've found, that this only works if you create a whole ecosystem of software supporting your process of scripting (basically an IDE) which is far beyond the bounds of possibility for me, so I've set a different focus. Blueprints in UnrealEngine are an excellent example of the opposite approach, but they actually did create a whole IDE for programming visually there.

Ok thanks for the clarification.


NavigationIntents not working

https://github.com/docker/extensions-sdk/issues/182 was closed prematurely and I can't re-open, so new issue :)
There was an issue with docs (now fixed), however using await ddClient.desktopUI.navigate.viewContainer(id) doesn't work either, I get the error in devtools -> Error: Error invoking remote method 'navigate-to-container': Error: not found.
I noticed that this repo is on release 0.2.4, but npm is on 0.2.3, is there perhaps some mismatch? Or something didn't get pushed to npm properly?

Hi @johnharris85, are you using the full container id as per the documentation?
The full container id, e.g. 46b57e400d801762e9e115734bf902a2450d89669d85881058a46136520aca28. You can use the --no-trunc flag as part of the docker ps command to display the full container id.

Hi @johnharris85 do you still have the issue?
Can you share with us a reproduction?
Thank you 🙏

@benja-M-1 I had a meeting with @johnharris85 and IIRC the issue was that he programmatically created a container and when trying to navigate to it, the container was not created yet. I think the workaround was to "sleep" a few milliseconds just before navigating to it.

Yep was a race condition as @felipecruz91 says above. I guess the programmatic creation case will be a fairly common one? So maybe a note in the docs around this, or an auto-retry built into some of the backend calls?

Alright, you could use docker events as well for this kind of use cases, listen for containers creation events.
Anyway, I changed the labels, maybe adding this kind of feature in the examples may make sens. cc @gtardif

We have now included a retry in the SDK (with Docker Desktop 4.12, release last week) , so that should avoid race condition when navigating to a container that has just been created. Please feel free to re-open if you still encounter the issue


CodeCov and License badges.

Added code coverage and license badges. This will show up on the home page and clicking the badges will take you to an external code coverage report and the attached license page respectively.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@62510a9). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #255   +/-   ##
=========================================
  Coverage          ?   96.28%
=========================================
  Files             ?      380
  Lines             ?    15714
  Branches          ?     1907
=========================================
  Hits              ?    15131
  Misses            ?      405
  Partials          ?      178

Continue to review full report at Codecov.

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


Use double quotes by default

This is an entirely mechanically generated (rubocop -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
cc @chef/client-maintainers

:+1:  for the record...

The diff crashes my browser, so I'll trust that you haven't snuck in any sneak codes :+1:

http://gifsec.com/wp-content/uploads/GIF/2014/04/Mr.-Trololo-Guy-GIF.gif?gs=a
:+1:

Using git diff master~17..head --word-diff=porcelain --no-color -U0 on this branch and some truly horrible command line munging, I'm pretty confident our friend @thommay isn't trying to backdoor us. :D :+1:


[Web] - Support /@{userName}/{id}-{slug}-{mediaHash}

and update the Share Dialog to include a textarea with:
{title} by @{authorName}
https://matters.news/@{userName}/{id}-{slug}-{mediaHash}

design

figma


Wrong link to bluesky

Link went to bluesky.app instead of bsky.app, which is some other company

Wow, thank you very much! It slipped from my attention completely, I glimpsed the logo on that website and thought it was some of the previous versions of the social media Bluesky logo.


provide detailed capacity report

general capacity report: total capacity, available resources (for active nodes only) and histogram of available resources
dedicated nodes for each type: total capacity, available resources & histogram of available resources
nondedicated nodes: total capacity, available resources & histogram of available resources

closed by https://github.com/aurora-scheduler/australis/pull/33


Passing 0 as the port will give ERR_ADDRESS_INVALID

For people that want to dynamically assign the port (which is a great idea for this project as the port doesn't have much influence) would set port to 0 like:
eel.start('main.html', options={'port' : 0})

Since the browser is opened on line 100 in __init__.py and the server is then started after on line 109, there is no way that the Chrome window can know what the dynamically assigned port is.
So you'll need to start the server first and then call the Chrome window based on the port the server now has, I am not quite sure how to get the port once the server has started though.

@brentvollebregt Good point, port should probably be dynamic by default. I will look into making this change when I get a chance. We will probably have to do something like this https://stackoverflow.com/questions/5085656/how-to-get-the-current-port-number-in-flask or just a normal retry loop with try/catch that picks random ports itself.
Thanks for checking out the project.

Oh wow, that method is a lot cleaner than what I resorted to; I definitely feel the stackoverflow idea is the best approach. I'm currently using the retry loop with try/catch method but felt that something internal would make it a lot better.
The project is awesome by the way; was exactly what I needed.

Thanks, PR accepted


Fix ServiceScaleFormModal textbox

This PR fixes the width of the input field in the ServiceScaleFormModal. The column-2 class was constraining the width of the element which was already inside a column-12 element.
Before:

After:

:shipit: once tests pass


Clarify the 'Eviction' attribute in the Advanced Feature

https://hwameistor.io/docs/quick_start/advanced_features/volume_eviction
Could I clarify the 'Eviction' attribute in the Advanced Feature above:  after I went through the description and steps, what the hwameistor is doing is just a data volume migration, while the node/pod evictions are kubernetes native?

yes, you are right! Node-pressure eviction is the process by which the kubelet proactively terminates pods to reclaim resources on nodes, however, HwameiStor can sense the eviction and automatically migrate them to other avaliable nodes.


Fix: vela addon upgrade missing the history args

Signed-off-by: StevenLeiZhang<EMAIL_ADDRESS>Description of your changes

Fixes #4311
How to fix it:
Merge legacy parameters and new input parameters.

if legacy parameters do not exist, use new parameters
if legacy parameters exists, merge them and new parameter overwrite the legacy one

I have:

[ ] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

Great, please let the user know that the arguments will be merged in the command help text.

Great, please let the user know that the arguments will be merged in the command help text.

Done


Can't get token

Hello, I have a problem about using  Oauth to get token. My project use upper-cased application ID, and I also use lowercased application ID in AndroidManifest.xml to get token. It worked. But, on Android 11, it seems has some trouble. I can't get token, when I login my google account, it don't return to app.

See https://github.com/Elringus/UnityGoogleDrive#my-application-id-andriodios-is-mixed-cased-and-i-cant-change-it

I have already tried out the method in the link but still cannot work out.
I am not sure if this situation depends on the device.
I tried on SONY, Samsung, and Nokia, and it worked well, but not for Redmi and Google(Only Google is Android 11, others are 9-10)

Try updating the native auth library and check their repo for similar issues.


renamed sht_git_version files have not uploaded

Unable to make release due to "no rule to make target 'sht_git_version.c'. It appears the files are missing since the rename.
I will download the older version and rename, however thought you would want to know.

Hi @nzwiztek many thanks for the report. This only happens when you call make from the driver directory. You first need to build at project level to build this dependency that is common to all SHT drivers.
cd embedded-sht
make   # needed to generate the file
cd sht3x
make   # must now succeed

This is expected to fail. Can you verify, that this is indeed your issue:
cd embedded-sht
make clean
cd sht3x
make    # must fail due to the missing dependency

Many thanks @abrauchli this did fix my issue. What confused me is when I went one build back in history the missing files were present in source control.
Again, Thanks

great, thanks for double-checking @nzwiztek


Number splitter field does not recognise alpha numeric units

Enter 1A/10
Should create Unit 1A, Base 10.
Individual components not populated.
Other combinations seem to work.

Fixed as to split above example.
It is expected however some edge cases may not be split and the user will need to populated the individual components by hand
Please test in 0.8.13

Tested 0.8.16. Passed.


Missing react-import in latest release

In the latest release the import of React in NativeButtons.js was removed.
It is still needed for the JSX-tags, so right now render crashes with
"React is not defined"

Will there be a new release soon for this fix or should I use a previous version?

I apologize, I think my PR broke it.
I'd like to add some tests to be sure anyone can work on this repo without breaking it.


🐛 [firebase_ml_vision] Label detector only detecting "metal" and "pattern"

Bug report
Describe the bug
The example app only recognizes the labels "metal" and "pattern" for any input given from the camera preview screen.
Steps to reproduce
Steps to reproduce the behavior:

Install firebase_ml_vision example app
Tap CameraPreviewScanner
Tap tripple dot menu, select "Detect Label"
Only the two labels "metal" and "pattern" are assigned, independent of input. Example:

Expected behavior
The labels detected in 3 should change according to camera preview content.
Additional context
Same behavior also in my custom app.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.3, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[!] IntelliJ IDEA Community Edition (version 15)
    ✗ This install is older than the minimum recommended version of 2017.1.0.
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.12.2
Flutter SDK 2.0.3
firebase_ml_vision_example 0.0.0

dependencies:
- camera 0.5.8+17 [flutter]
- cupertino_icons 0.1.3
- firebase_core 1.0.2 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_ml_vision 0.11.0 [flutter]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- image_picker 0.6.5+3 [flutter flutter_plugin_android_lifecycle]

dev dependencies:
- e2e 0.6.3 [flutter flutter_driver flutter_test path]
- flutter_driver 0.0.0 [file meta path vm_service webdriver flutter flutter_test fuchsia_remote_debug_protocol archive args async boolean_selector characters charcode clock collect
ion convert crypto fake_async matcher platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel s
tring_scanner term_glyph typed_data]
- path 1.8.0
- path_provider 2.0.1 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- pedantic 1.11.0
- test 1.16.5 [analyzer async boolean_selector coverage http_multi_server io js node_preamble package_config path pedantic pool shelf shelf_packages_handler shelf_static shelf_web_
socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core]

dependency overrides:
- firebase_core 1.0.2 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface]
- firebase_core_web 1.0.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]

transitive dependencies:
- _fe_analyzer_shared 14.0.0 [meta]
- analyzer 0.41.2 [_fe_analyzer_shared args cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 2.0.13 [crypto args path]
- args 1.6.0
- async 2.5.0 [collection]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.2.0
- cli_util 0.3.0 [meta path]
- clock 1.1.0
- collection 1.15.0
- convert 2.1.1 [charcode typed_data]
- coverage 0.15.2 [args logging package_config path source_maps stack_trace vm_service]
- crypto 2.1.5 [collection convert typed_data]
- fake_async 1.2.0 [clock collection]
- ffi 1.0.0
- file 6.0.0 [meta path]
- flutter_plugin_android_lifecycle 1.0.11 [flutter]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform]
- glob 2.0.1 [async collection file path pedantic string_scanner]
- http_multi_server 3.0.0 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- io 1.0.0 [meta path string_scanner]
- js 0.6.3
- logging 1.0.1
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- mime 1.0.0
- node_preamble 1.4.13
- package_config 1.9.3 [path charcode]
- path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 2.0.0 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.0 [path_provider_platform_interface meta path flutter ffi win32]
- platform 3.0.0
- plugin_platform_interface 2.0.0 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.0.0 [file path platform]
- pub_semver 2.0.0 [collection]
- shelf 1.1.0 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 2.0.1 [path shelf shelf_static]
- shelf_static 0.2.9+2 [convert http_parser mime path shelf]
- shelf_web_socket 0.2.4+1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_map_stack_trace 2.1.0 [path stack_trace source_maps]
- source_maps 0.10.10 [source_span]
- source_span 1.8.0 [charcode collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- sync_http 0.2.0
- term_glyph 1.2.0
- test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- test_core 0.3.15 [analyzer async args boolean_selector collection coverage glob io meta package_config path pedantic pool source_map_stack_trace source_maps source_span stack_tra
ce stream_channel vm_service yaml matcher test_api]
- typed_data 1.3.0 [collection]
- vector_math 2.1.0
- vm_service 5.5.0 [meta]
- watcher 1.0.0 [async path pedantic]
- web_socket_channel 1.2.0 [async crypto stream_channel]
- webdriver 2.1.2 [archive matcher path stack_trace sync_http]
- webkit_inspection_protocol 1.0.0 [logging]
- win32 2.0.5 [ffi]
- xdg_directories 0.2.0 [meta path process]
- yaml 3.1.0 [collection source_span string_scanner]

Same behavior on the two phones I have available: A Pixel 3a and a Pixel 3

Seems to be related to https://github.com/FirebaseExtended/flutterfire/issues/1518. Things started working once I started using preset high.

Was not able to reproduce this with my SM G950F using the official example with
  firebase_ml_vision: ^0.11.0
  camera: ^0.8.1

flutter doctor -v
[√] Flutter (Channel master, 2.1.0-13.0.pre.323, on Microsoft Windows [Version 10.0.19041.867], locale et-EE)
    • Flutter version 2.1.0-13.0.pre.323 at C:\Development\flutter_master
    • Framework revision 2cdd51900c (3 hours ago), 2021-03-30 10:16:05 +0200
    • Engine revision dbcbf69a57
    • Dart version 2.13.0 (build 2.13.0-175.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30621.155
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119
    • Flutter plugin version 54.1.1
    • Dart plugin version 201.9335
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.7717.56
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (4 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.867]
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 89.0.774.57

• No issues found!

Labeling this based on the report.

Thanks for taking a look!
Since opening the issue, I also did some more analysis on this. The workaround mentioned in https://github.com/FirebaseExtended/flutterfire/issues/1518#issuecomment-614684648 does resolve my issue. So it seems that this is more an issue with the camera plugin, which provides a camera stream with black padding on some phones.
Are you aware of any open issues on the camera plugin side?

There is already an issue regarding the current example using an outdated version of camera https://github.com/FirebaseExtended/flutterfire/issues/5117

The issue persists with the camera plugin 0.8.1. Nonetheless I sent PR https://github.com/FirebaseExtended/flutterfire/pull/5520 which bumps the camera plugin version.

On the camera plugin side, I found https://github.com/flutter/flutter/issues/78247. If that is fixed, I think this as well as https://github.com/FirebaseExtended/flutterfire/issues/1518 would be resolved.
I'd love to keep this issue open until a potential fix to the camera plugin is backported to the example here.


⚠ API - Lens has degraded performance

In ade750f, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 502
Response time: 313 ms

Resolved: API - Lens performance has improved in 36d60d3 after 9 minutes.


Spaces around colon

I think detekt lacks rules about allowed spaces around colon.
According to official coding conventions:

Put a space before : in the following cases:
– when it's used to separate a type and a supertype;
– when delegating to a superclass constructor or a different constructor of the same class;
after the object keyword.
– Don't put a space before : when it separates a declaration and its type.
Always put a space after :.

Should be implemented in ktlint.

There is also no reason why you couldn't or shouldn't do this in detekt with custom rules.

I still don't think this should be included by default. There was a statement somewhere that detekt will not focus on styling and hence this should be implemented in ktlint.
Now that I'm looking at it this rule again it's already implemented with autocorrection which is vastly superior to what Detekt can do.

@vanniktech true
I explicitly stated with custom rules in detekt if someone doesn't want to use ktlint for whatever reason.

Soon we will have the ktlint wrapper ready and will have such rules ^_^


SC-1319 - Stronger rules for passwords

SC-1319 - Stronger rules for passwords

@ArjunKhetia-NIIT resolve the conflicts as well


Add typing to dependencies

After installing this module (version 0.5.0) from PyPI on Debian Stretch, I got the following error:
>>> import greenstalk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/programming/queue-test/venv/lib/python3.4/site-packages/greenstalk.py", line 2, in <module>
    from typing import Any, BinaryIO, Dict, Iterable, List, Optional, Tuple, Union
ImportError: No module named 'typing'

After installing the typing module (at version 3.6.1) it worked fine.

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines         161    161
=====================================
  Hits          161    161

Continue to review full report at Codecov.

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

Oops, I was running Debian Jessie with Python 3.4.2...


38 add 'verifysignature' to the account class

closes #38

@Elli610 @Ben-Rey Why do we need a verify signature ?

This is a features I worked on several weeks ago. Maybe it was complementary to the signing function ¯\_ʘ‿ʘ_/¯


FancyZone setup lost while connected with Remote Desktop

Microsoft PowerToys version
0.77.0
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce
The custom set layout for FancyZone does not apply at first when Sing-in into Win11 via Remote Desktop. It is needed to launch FancyZone Editor and reselect the custom layout. Something else is related or not too, see the error logged in event viewer:
Faulting application name: PowerToys.Settings.exe, version: <IP_ADDRESS>, time stamp: 0x65410000
Faulting module name: Microsoft.ui.xaml.dll, version: <IP_ADDRESS>, time stamp: 0x49d9bb27
Exception code: 0xc000027b
Fault offset: 0x00000000003b78a4
Faulting process id: 0x0x7EA0
Faulting application start time: 0x0x1DA5377983C6709
Faulting application path: C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe
Faulting module path: C:\Program Files\PowerToys\WinUI3Apps\Microsoft.ui.xaml.dll
Report Id: fab5ffb9-4e4c-4a3d-bb8e-4f279d54e1b8
Faulting package full name:
Faulting package-relative application ID:
✔ Expected Behavior
Flawless integration when Sing-in via Remote Desktop.
❌ Actual Behavior
Selected custom layout not kept between windows sessions via Remote Desktop.
Other Software
Remote Desktop

PowerToysReport_2024-02-01-06-43-29.zip
IMPORTANT NOTE: This morning there was an update to v0.78.0. I tried the feature, and the layout was preserved between sessions even after restart.

@guypayeur Sounds like this issue may have been solved then with 0.78. If not feel free to reopen this issue.


Async Redis Queue worker not compatitable with Laravel Horizon

The Redis Async 2.0 queues don't seem to be fully compatitable with laravel horizon
artisan queue:work runs no problems but horizon complains about
local.ERROR: Call to undefined method BeyondCode\LaravelWebSockets\Queue\AsyncRedisQueue::readyNow() {"exception":"[object] (Error(code: 0): Call to undefined method BeyondCode\\LaravelWebSockets\\Queue\\AsyncRedisQueue::readyNow() at /var/www/html/vendor/laravel/horizon/src/AutoScaler.php:80

local.ERROR: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Trying to access array offset on value of type null at /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/QueueManager.php:156)

Which Laravel & Horizon versions are you running?

Laravel 8 and horizon 5.4

I think it caused by recent Horizon update with new feature.
I encountered the same problem, and adding 'defaults' section (see link, changed files, config/horizon.php) to config/horizon.php worked for me.

@sergotail now I get  Undefined index: connection did you add empty default section?

@deantheiceman could you please provide a config/queue.php, section where you specified default queue connection and all redis connections? Also, please, provide a config/horizon.php config. There is a lot of confusion in these configurations that are not well-documented. I suspect that some parameters that you specified may be messed up.

@sergotail
queue.php
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Queue Connection Name
    |--------------------------------------------------------------------------
    |
    | Laravel's queue API supports an assortment of back-ends via a single
    | API, giving you convenient access to each back-end using the same
    | syntax for every one. Here you may define a default connection.
    |
    */

    'default' => env('QUEUE_CONNECTION', 'async-redis'),

    /*
    |--------------------------------------------------------------------------
    | Queue Connections
    |--------------------------------------------------------------------------
    |
    | Here you may configure the connection information for each server that
    | is used by your application. A default configuration has been added
    | for each back-end shipped with Laravel. You are free to add more.
    |
    | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
    |
    */

    'connections' => [
        /*
        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => env('REDIS_QUEUE', 'redis'),
            'retry_after' => 90,
            'block_for' => null,
        ],
        */

        'async-redis' => [
            'driver' => 'async-redis',
            'connection' => 'default',
            'queue' => 'default',
            'retry_after' => 90,
            'block_for' => null,
        ],

        'async-redis-long' => [
            'driver' => 'async-redis',
            'connection' => 'default',
            'queue' => 'async-default-long',
            'retry_after' => 1200, // Run for max 20 minutes
            'block_for' => null,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Failed Queue Jobs
    |--------------------------------------------------------------------------
    |
    | These options configure the behavior of failed queue job logging so you
    | can control which database and table are used to store the jobs that
    | have failed. You may change them to any database / table you wish.
    |
    */

    'failed' => [
        'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
        'database' => env('DB_CONNECTION', 'mysql'),
        'table' => 'failed_jobs',
    ],

];

horizon.php
<?php

use Illuminate\Support\Str;

return [

    /*
    |--------------------------------------------------------------------------
    | Horizon Domain
    |--------------------------------------------------------------------------
    |
    | This is the subdomain where Horizon will be accessible from. If this
    | setting is null, Horizon will reside under the same domain as the
    | application. Otherwise, this value will serve as the subdomain.
    |
    */

    'domain' => null,

    /*
    |--------------------------------------------------------------------------
    | Horizon Path
    |--------------------------------------------------------------------------
    |
    | This is the URI path where Horizon will be accessible from. Feel free
    | to change this path to anything you like. Note that the URI will not
    | affect the paths of its internal API that aren't exposed to users.
    |
    */

    'path' => 'horizon',

    /*
    |--------------------------------------------------------------------------
    | Horizon Redis Connection
    |--------------------------------------------------------------------------
    |
    | This is the name of the Redis connection where Horizon will store the
    | meta information required for it to function. It includes the list
    | of supervisors, failed jobs, job metrics, and other information.
    |
    */

    'use' => 'default',

    /*
    |--------------------------------------------------------------------------
    | Horizon Redis Prefix
    |--------------------------------------------------------------------------
    |
    | This prefix will be used when storing all Horizon data in Redis. You
    | may modify the prefix when you are running multiple installations
    | of Horizon on the same server so that they don't have problems.
    |
    */

    'prefix' => env(
        'HORIZON_PREFIX',
        Str::slug(env('APP_NAME', 'laravel'), '_').'_horizon:'
    ),

    /*
    |--------------------------------------------------------------------------
    | Horizon Route Middleware
    |--------------------------------------------------------------------------
    |
    | These middleware will get attached onto each Horizon route, giving you
    | the chance to add your own middleware to this list or change any of
    | the existing middleware. Or, you can simply stick with this list.
    |
    */

    'middleware' => ['web'],

    /*
    |--------------------------------------------------------------------------
    | Queue Wait Time Thresholds
    |--------------------------------------------------------------------------
    |
    | This option allows you to configure when the LongWaitDetected event
    | will be fired. Every connection / queue combination may have its
    | own, unique threshold (in seconds) before this event is fired.
    |
    */

    'waits' => [
        'redis:default' => 60,
    ],

    /*
    |--------------------------------------------------------------------------
    | Job Trimming Times
    |--------------------------------------------------------------------------
    |
    | Here you can configure for how long (in minutes) you desire Horizon to
    | persist the recent and failed jobs. Typically, recent jobs are kept
    | for one hour while all failed jobs are stored for an entire week.
    |
    */

    'trim' => [
        'recent' => 60,
        'pending' => 60,
        'completed' => 60,
        'recent_failed' => 10080,
        'failed' => 10080,
        'monitored' => 10080,
    ],

    /*
    |--------------------------------------------------------------------------
    | Metrics
    |--------------------------------------------------------------------------
    |
    | Here you can configure how many snapshots should be kept to display in
    | the metrics graph. This will get used in combination with Horizon's
    | `horizon:snapshot` schedule to define how long to retain metrics.
    |
    */

    'metrics' => [
        'trim_snapshots' => [
            'job' => 24,
            'queue' => 24,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Fast Termination
    |--------------------------------------------------------------------------
    |
    | When this option is enabled, Horizon's "terminate" command will not
    | wait on all of the workers to terminate unless the --wait option
    | is provided. Fast termination can shorten deployment delay by
    | allowing a new instance of Horizon to start while the last
    | instance will continue to terminate each of its workers.
    |
    */

    'fast_termination' => false,

    /*
    |--------------------------------------------------------------------------
    | Memory Limit (MB)
    |--------------------------------------------------------------------------
    |
    | This value describes the maximum amount of memory the Horizon master
    | supervisor may consume before it is terminated and restarted. For
    | configuring these limits on your workers, see the next section.
    |
    */

    'memory_limit' => 128,

    /*
    |--------------------------------------------------------------------------
    | Queue Worker Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may define the queue worker settings used by your application
    | in all environments. These supervisors and settings handle all your
    | queued jobs and will be provisioned by Horizon during deployment.
    |
    */

    'defaults' => [
        'supervisor' => [
            'connection' => 'default',
            'queue' => ['async-redis'],
            'balance' => 'auto',
            'maxProcesses' => 1,
            'memory' => 256,
            'tries' => 3,
            'nice' => 0,
            'timeout' => 60 // Timeout after 60 seconds
        ],

        'supervisor-long-running' => [
            'connection' => 'default',
            'queue' => ['async-redis-long'],
            'balance' => 'auto',
            'maxProcesses' => 1,
            'memory' => 256,
            'tries' => 3,
            'nice' => 0,
            'timeout' => 900 // Timeout after 15 minutes
        ],
    ],

    'environments' => [
        'production' => [
            'supervisor' => [
                'maxProcesses' => 10,
                'balanceMaxShift' => 1,
                'balanceCooldown' => 3,
            ],
        ],

        'local' => [
            'supervisor' => [
                'maxProcesses' => 3,
            ],
        ],
    ],
];

@deantheiceman
As i suspected, there are a lot of mess with queue config parameters, thanks to poor documentation for this.
driver should be one of supported drivers: Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
You specified the wrong driver for some connections: 'driver' => 'async-redis',.
connection is a name of queue connection, which estabilishes with some of the systems (see supported drivers). There are may be several queues within one connection, but queue.php config is very confusing, because it seems there is no opportunity to specify more than one queue per connection explicitly in config. This can be done through specifying worker queues in their order (to prioritize).
So you can try configs like this:
queue.php
<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Queue Connection Name
    |--------------------------------------------------------------------------
    |
    | Laravel's queue API supports an assortment of back-ends via a single
    | API, giving you convenient access to each back-end using the same
    | syntax for every one. Here you may define a default connection.
    |
    */

    'default' => env('QUEUE_CONNECTION', 'async-redis'),

    /*
    |--------------------------------------------------------------------------
    | Queue Connections
    |--------------------------------------------------------------------------
    |
    | Here you may configure the connection information for each server that
    | is used by your application. A default configuration has been added
    | for each back-end shipped with Laravel. You are free to add more.
    |
    | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
    |
    */

    'connections' => [
        /*
        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => env('REDIS_QUEUE', 'redis'),
            'retry_after' => 90,
            'block_for' => null,
        ],
        */

        'async-redis' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => 'default',
            'retry_after' => 90,
            'block_for' => null,
        ],

        'async-redis-long' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => 'async-default-long',
            'retry_after' => 1200, // Run for max 20 minutes
            'block_for' => null,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Failed Queue Jobs
    |--------------------------------------------------------------------------
    |
    | These options configure the behavior of failed queue job logging so you
    | can control which database and table are used to store the jobs that
    | have failed. You may change them to any database / table you wish.
    |
    */

    'failed' => [
        'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
        'database' => env('DB_CONNECTION', 'mysql'),
        'table' => 'failed_jobs',
    ],

];

horizon.php
<?php

use Illuminate\Support\Str;

return [

    /*
    |--------------------------------------------------------------------------
    | Horizon Domain
    |--------------------------------------------------------------------------
    |
    | This is the subdomain where Horizon will be accessible from. If this
    | setting is null, Horizon will reside under the same domain as the
    | application. Otherwise, this value will serve as the subdomain.
    |
    */

    'domain' => null,

    /*
    |--------------------------------------------------------------------------
    | Horizon Path
    |--------------------------------------------------------------------------
    |
    | This is the URI path where Horizon will be accessible from. Feel free
    | to change this path to anything you like. Note that the URI will not
    | affect the paths of its internal API that aren't exposed to users.
    |
    */

    'path' => 'horizon',

    /*
    |--------------------------------------------------------------------------
    | Horizon Redis Connection
    |--------------------------------------------------------------------------
    |
    | This is the name of the Redis connection where Horizon will store the
    | meta information required for it to function. It includes the list
    | of supervisors, failed jobs, job metrics, and other information.
    |
    */

    'use' => 'default',

    /*
    |--------------------------------------------------------------------------
    | Horizon Redis Prefix
    |--------------------------------------------------------------------------
    |
    | This prefix will be used when storing all Horizon data in Redis. You
    | may modify the prefix when you are running multiple installations
    | of Horizon on the same server so that they don't have problems.
    |
    */

    'prefix' => env(
        'HORIZON_PREFIX',
        Str::slug(env('APP_NAME', 'laravel'), '_').'_horizon:'
    ),

    /*
    |--------------------------------------------------------------------------
    | Horizon Route Middleware
    |--------------------------------------------------------------------------
    |
    | These middleware will get attached onto each Horizon route, giving you
    | the chance to add your own middleware to this list or change any of
    | the existing middleware. Or, you can simply stick with this list.
    |
    */

    'middleware' => ['web'],

    /*
    |--------------------------------------------------------------------------
    | Queue Wait Time Thresholds
    |--------------------------------------------------------------------------
    |
    | This option allows you to configure when the LongWaitDetected event
    | will be fired. Every connection / queue combination may have its
    | own, unique threshold (in seconds) before this event is fired.
    |
    */

    'waits' => [
        'redis:default' => 60,
    ],

    /*
    |--------------------------------------------------------------------------
    | Job Trimming Times
    |--------------------------------------------------------------------------
    |
    | Here you can configure for how long (in minutes) you desire Horizon to
    | persist the recent and failed jobs. Typically, recent jobs are kept
    | for one hour while all failed jobs are stored for an entire week.
    |
    */

    'trim' => [
        'recent' => 60,
        'pending' => 60,
        'completed' => 60,
        'recent_failed' => 10080,
        'failed' => 10080,
        'monitored' => 10080,
    ],

    /*
    |--------------------------------------------------------------------------
    | Metrics
    |--------------------------------------------------------------------------
    |
    | Here you can configure how many snapshots should be kept to display in
    | the metrics graph. This will get used in combination with Horizon's
    | `horizon:snapshot` schedule to define how long to retain metrics.
    |
    */

    'metrics' => [
        'trim_snapshots' => [
            'job' => 24,
            'queue' => 24,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Fast Termination
    |--------------------------------------------------------------------------
    |
    | When this option is enabled, Horizon's "terminate" command will not
    | wait on all of the workers to terminate unless the --wait option
    | is provided. Fast termination can shorten deployment delay by
    | allowing a new instance of Horizon to start while the last
    | instance will continue to terminate each of its workers.
    |
    */

    'fast_termination' => false,

    /*
    |--------------------------------------------------------------------------
    | Memory Limit (MB)
    |--------------------------------------------------------------------------
    |
    | This value describes the maximum amount of memory the Horizon master
    | supervisor may consume before it is terminated and restarted. For
    | configuring these limits on your workers, see the next section.
    |
    */

    'memory_limit' => 128,

    /*
    |--------------------------------------------------------------------------
    | Queue Worker Configuration
    |--------------------------------------------------------------------------
    |
    | Here you may define the queue worker settings used by your application
    | in all environments. These supervisors and settings handle all your
    | queued jobs and will be provisioned by Horizon during deployment.
    |
    */

    'defaults' => [
        'supervisor' => [
            'connection' => 'async-redis',
            'queue' => ['default'],
            'balance' => 'auto',
            'maxProcesses' => 1,
            'memory' => 256,
            'tries' => 3,
            'nice' => 0,
            'timeout' => 60 // Timeout after 60 seconds
        ],

        'supervisor-long-running' => [
            'connection' => 'async-redis-long',
            'queue' => ['async-default-long'],
            'balance' => 'auto',
            'maxProcesses' => 1,
            'memory' => 256,
            'tries' => 3,
            'nice' => 0,
            'timeout' => 900 // Timeout after 15 minutes
        ],
    ],

    'environments' => [
        'production' => [
            'supervisor' => [
                'maxProcesses' => 10,
                'balanceMaxShift' => 1,
                'balanceCooldown' => 3,
            ],
        ],

        'local' => [
            'supervisor' => [
                'maxProcesses' => 3,
            ],
        ],
    ],
];

Don't forget to check running supervisor processes via htop, for example. You should see as much processes per each connection as you specified, plus supervisor processes for each supervisor specified in horizon.php.

Thanks so much! The documentation about async-redis had me confused, it's working now. Appreciate the help.


WIP: Add calico enterprise logo

Deploy preview for calico ready!
Built with commit f21a639757e0ca6a009c9cef22f2934b246f9b37
https://deploy-preview-3069--calico.netlify.com

@ozdanborne Please review then squash and merge!

@ozdanborne Actually, please hold off. I did this in a rush and have a better way of doing it.  I'll update today.

@ozdanborne Ready for review and squash merge, thanks!


Add ImJoy interactive docs

This PR add interactive docs for Kaibu, available at https://kaibu.org/docs
Support dropdown in the control widget

:heart:

:heart:


Centos8 support

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: VictorLowther:x: Carl PerryCarl Perry 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.


Interactive no-drop cursor based on result of handleDragEnd

Is your feature request related to a problem? Please describe.
It would be great if the result of onDragEnd could change the cursor to no-drop if it returns false.
Describe the solution you'd like
I am pretty sure this is doable with react-dnd. I did something similar before, it might just need some tinkering.
Describe alternatives you've considered
No other way to do this in my mind. It has to hook in react-dnd and do the work. It shouldn't be too difficult.

Nice! Could you code it?

Pay attention to this - https://github.com/rcdexta/react-trello/pull/286

Yeah I think so, but I can barely work without TS anymore :D So I'd rather leave this after we clear up #285

Yep, #286 is on my radar.


chore: Remove unused auth code

Reviewers
Functional: @ebezzi
Readability: @danieljhegeman

Changes

remove unused auth code and related unit tests.

I didn't even catch that this code wasn't used 😅


IFU-main-2022-09-15

Pulling in changes from upstream to sync-up

Wheel build job succeeded: http://rocmhead.amd.com:8080/job/pytorch/job/manylinux_rocm_wheels/91
Libtorch build job succeeded: http://rocmhead.amd.com:8080/job/pytorch/job/manylinux_rocm_wheels/90


Use new TextField UI Control on the team page

Feature Request
Change to using the new UI Control as defined in the styleguide. It is way more tidy and easier to use, plus it has correct css styling.
Demo
Check the styleguide page.

@Druage @Crouchsnap Verified working as expected in DEV

The changes related to this issue have been migrated to PROD.


training time

Great work!
I use the same training setting as yours (4 NVIDIA TianXP GPU, batchsize 40) , and the training time is about 4 days.
What do you think that causes my training is so slow?
The details are shown below:

I'm also interested in SOT, especially long-term SOT, could you please add me on WeChat. My WeChat ID is<PHONE_NUMBER>7.
Thanks!


Clarify how NRK designers can contribute

@eirikbacker I don't have access to the FontAwesome docs. Could you post it here?

@mariuslundgard Since the contribution-guide of font awesome is behind paywall, I'll rather not post it here. I have tried making some guidelines on..

Contributing: https://static.nrk.no/core-styleguide/latest/#contributing
Getting stated: https://static.nrk.no/core-styleguide/latest/?icons
Getting stated template: https://static.nrk.no/core-styleguide/latest/#start
Install and committing: https://github.com/nrkno/core-icons/blob/master/README.md
I am a bit unsure what level to put information on, so please provide more context if you feel we are missing somethign :)

I'll close this until there is any further comments on how to improve :)


Enable SSL with dedicated profile

https://github.com/agrirouter-middleware/agrirouter-middleware/blob/e288eeaae45a40d4715b22d491bd60b2b055a96d/agrirouter-middleware-application/src/main/resources/application.yml#L3

See #244


Relese on npm

Need @cabreraalex for this.

My bad, I'll add ya'll - @Sparkier do you have an NPM account?

Add me and we can set up auto deployments from ci. I'm domoritz.

Added!

Thanks. I set up #17

I will make a release once #20 and #4 are resolved.

Done: https://www.npmjs.com/package/svelte-vega


Release notes 4.3 RTM

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Release-Notes/Index.md
:white_check_mark:Succeeded

docs/Release-Notes/NuGet-4.3-RTM.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Release-Notes/Index.md
:white_check_mark:Succeeded

docs/Release-Notes/NuGet-4.3-RTM.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Regarding performance of different read dataset methods

I use make_petastorm_dataset API (make_petastorm_dataset(reader)) to scan the dataset, I found that it is much worse than reader loop method (for sample in reader), do you have any ideas about the make_petastorm_dataset API

Can you please provide a little bit more information about your setup?
Are you using make_reader or make_batch_reader functions to create your reader?
Can you show a code snippet that represents how do you do the scanning?

 with make_reader(dataset_url, num_epochs=FLAGS.num_epochs, cache_properties=cache_properties, workers_count=FLAGS.workers_count) as train_reader:     i = 0     start = time.time()     for schema_view in train_reader:       cur_image = schema_view.image       for image in cur_image:         i += 1         if i % FLAGS.record_num == 0:           end = time.time()           print("time is " + str(end - start))           start = end     print("Finish! the number is " + str(i))
` with make_reader(dataset_url, num_epochs=FLAGS.num_epochs, cache_properties=cache_properties, workers_count=FLAGS.workers_count) as train_reader:
train_dataset = make_dataset(train_reader)
.apply(tf.data.experimental.unbatch())
train_dataset = train_dataset.shuffle(buffer_size=3 * FLAGS.batch_size)

# train_dataset = train_dataset.repeat(FLAGS.num_epochs)

train_dataset = train_dataset.apply(tf.data.experimental.map_and_batch(parse_record,
                                                                       num_parallel_calls=FLAGS.workers_count,
                                                                       batch_size=FLAGS.batch_size))

train_iterator = train_dataset.make_one_shot_iterator()

train_tensor = train_iterator.get_next()

i = 0
with tf.Session() as sess:
  sess.run([
    tf.local_variables_initializer(),
    tf.global_variables_initializer(),
  ])

  start = time.time()
  try:
    while True:
      cur_image, cur_label = sess.run(train_tensor)

      for image in cur_image:
        i += 1
        if i % FLAGS.record_num == 0:
          end = time.time()
          print("time is " + str(end - start))
          start = end

  except tf.errors.OutOfRangeError:
    print("Finish! the number is " + str(i))`

one is just using for-loop to scan the dataset, the other is using dataset to scan dataset, (imageNet dataset is 24GB ), and run 2 epochs.
for-loop takes 36s, 20s,
dataset takes 58s, 57s,
tfrecords,takes 41s, 19s
you see that second epoch of dataset take 57s, larger than for-loop and tfrecords


launch the lit tutorial catalog

DO NOT MERGE
seeking approvals for launch day
fixes #788

I believe we had decided earlier to redirect anybody who had old links to the new tutorials catalog to not shoehorn people into the old tutorial but rather the larger pool.
Arthur and I have also decided to always pin the intro-to-lit tutorial to the "featured tutorials" section so I hope that helps people specifically looking for that tutorial

Have to regenerate the goldens


How can I use a custom dataset?

I want to use a custom dataset other than the coco dataset.
How do I change the path?

Hi~
Our code is based on Detectron2, the way of using custom dataset is the same as detectron2, I guess you could refer to Use Custom Dataset.

Thank you for your answer.
But not all problems have been solved. Through the detectron2 tutorial, I learned how to use customized datasets. However, I couldn't figure out how to use the model you created while using the custom data set. I can only use the model supported by detectron 2 through the code below.
cfg.merge_from_file(model_zoo.get_config_file("COCO-InstanceSegmentation/mask_rcn_R_50_FPN_3x.yaml")
How can I use your model?
Also, what I'm worried about is that I didn't use the head you made because I followed the detectron 2 tutorial.