Is there a API that can san the all signal channels and report the channel with the least APs? (IDFGH-12340)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Please see the title for my issue.
I want to change the signal channel when the current selected channel is traffic due to many APs existed. If ESP-IDF is not provide this API, Is there any other way to achieve this goal.

ESP-IDF provide wifi scanning function. For an example, use https://github.com/espressif/esp-idf/tree/master/examples/wifi/scan

Hi @anmnmnly
What's the WiFi mode(STA/AP/STA+AP/Sniffer) your board working on?

STA Mode

Using full channel scan methods, that you can get all channels Router count, but the STA channel is depended on Router's channel, only Router change channel that STA can follow.

AP only Mode

AP Mode can not scan the channel, if you want to do this, please using AP+STA mode or AP+Sniffer mode

AP+STA Mode

using STA scan get all channel info, and then setting the AP channel.

AP+Sniffer

Sniffer mode also can do these, but it not easy to use, which also need some basic knowledge about WiFi frame format.

Thanks.

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates.
Thanks for using our Espressif product!


Supporting FCP and TTFB

The web-vitals package also supports FCP and TTFB and it would be great to get these into GTM/Google Analytics. I see in the template it's not supported yet, and it doesn't look like I can edit the template or customise it myself.. although I could be missing something there.
So does the library plan to support these other functions? Perhaps as part of a configuration setting in the Tag Configuration panel?

Fixed here: 87251ca43e4fb664a051c8f447f78549dba63c86
Also added INP


createWithFrame should tolerate a nil response

Use case
Writing up as a feature request but may be a bug. I cannot tell because the FlutterPlatformView documentation isn't specific about what to do if there is a problem or internal error and a view cannot be returned by createWithFrame. Experimentally, I am seeing a crash when that happens (see below). The use case here is that sometimes we try to do something that may fail (e.g., load a resource, or the user of our library did something unexpected and we're in a bad state). In these cases we simply want to log an error and return nil because there's not much we can do. However, if we return nil from this method, we see a crash.
Proposal
createWithFrame (and the equivalent on Android) should allow a nil (or null) response, or have some other way to deal with error handling if a view cannot be created. In this case, the PlatformView is not created, and the problem should be logged, or at least handled gracefully in Flutter by providing an error on the PlatformView creation, and not a crash.
Crash Stack
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010be096fb __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x000000010b3adac5 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010bd57ddc _CFThrowFormattedException + 194
	3   CoreFoundation                      0x000000010bde386d -[__NSPlaceholderArray initWithObjects:count:] + 237
	4   CoreFoundation                      0x000000010bdf82a4 +[NSArray arrayWithObjects:count:] + 52
	5   Flutter                             0x00000001089d07fa -[FlutterPlatformViewSemanticsContainer initWithSemanticsObject:] + 405
	6   Flutter                             0x00000001089d16dc _ZN7flutter19AccessibilityBridge15UpdateSemanticsENSt3__113unordered_mapIiNS_13SemanticsNodeENS1_4hashIiEENS1_8equal_toIiEENS1_9al<…>

FlutterPlatformViewSemanticsContainer has been reworked and this should no longer be an issue.


⚠ Bofrost.fr has degraded performance

In 87a17b3, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1482 ms

Resolved: Bofrost.fr performance has improved in 20b2703 after 12 minutes.


feature: support for external $ref

As discussed in https://github.com/seriousme/openapi-schema-validator/issues/34

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 20 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
146

Relevant Lines:
146

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

20 of 20 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
146

Relevant Lines:
146

💛  - Coveralls


docs: make ZenStack vs. Other Tools separate pages for SEO

make each comparison in ZenStack vs. Other Tools separate pages so they can rank for SEO and make a few extra bullet points (e.g. pros and cons) for each :)

make each comparison in ZenStack vs. Other Tools separate pages so they can rank for SEO and make a few extra bullet points (e.g. pros and cons) for each :)

Thanks! Yes, makes very good sense!


UTOPIA-1483: Week 2 Minor/Patch Dependency Updates (Backend)

🎯 Summary

UTOPIA-1483
Dependency Updates Report

Didn't update @types/pug as we may remove that functionality soon.
Didn't update dotenv as we are waiting on updates in nest/core related to dotenv

🔰 Checklist

[x] I have read and agree with the following checklist and am following the guidelines in our Code of Conduct document.

I have performed a self-review of my code.
I have commented my code, particularly in hard-to-understand areas.
I have made corresponding changes to the documentation where required.
I have tested my changes to the best of my ability.
I have consulted with the team if introducing a new dependency.
My changes generate no new warnings.

do you want to add a carrot sign to make it use the latest sub versions? Thoughts?

I avoid the caret symbol because I don't like it using untested versions.


Keyboard shortcuts incompatibility

Microsoft PowerToys version
0.70.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
General
Steps to reproduce
Can´t use traditional shortcuts in other Apps (Illustrator, Acrobat).
CTRL + Space to zoom in, for instance.
After Exiting Power Toys, all ok again.
I then realised Registry Preview and Text Extractor were "on" (without me turning them on - and I didn't want them on).
I've turned them off and restarted the other Apps and they worked as expected.
So, I was working with these on:

Ruler
Color Picker
Registry Preview
Text Extractor

I'm now working with the first two and all seems ok.
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

@ridesirat check what is mapped as the activation for Peek. Its default is CTRL + space. That was what was causing my issues.

/dup https://github.com/microsoft/PowerToys/issues/26150


Update behavior of gen-coco-sal with one-hot encoded dets

Replace "objectness" with score and one-hot encode scores when only one score is returned.
No note in pending_release.rst because gen_coco_sal() is already listed.

I realized that we are only looking for the "score" key when reading the serialized detections. Therefore there will always only be one score for the reference detections. Going to work on this some more.

Added logic for the prob annotation field which is a list of class probabilities. If this key is present in the serialized detection, the class scores are encoded normally. If the score key is only present, then it is one-hot encoded with the objectness replaced by the score.

Just had another thought- I think at one point, we had also discussed adding something to the DRISEScoring saliency map generation docstring describing how to use the algorithm in the case where the detection model only outputs a single class and confidence (i.e. using confidence as objectness and one-hot encoding class scores), instead of using the full set of class probabilities. Could we add that as part of this PR too?

Just had another thought- I think at one point, we had also discussed adding something to the DRISEScoring docstring describing how to use the algorithm in the case where the detection model only outputs a single class prediction and confidence (i.e. using confidence as objectness and one-hot encoding class scores), instead of using the full set of class probabilities. Could we add that as part of this PR too?

Is that advice is generation method agnostic? E.g. would that advice more pertain to the xaitk_saliency.utils.detection.format_detection function?

@Purg LGTM, I have already approved the PR. Feel free to merge (but will have to bypass the ghostflow check). Thanks!


virtcontainers: fix share file not be ignore

share file should be ignored after copy to guest successfully, or it
still mount to host
Fixes: #1786
Signed-off-by: Ace-Tang<EMAIL_ADDRESS>

From the logic, I think the fix is right, but not sure, please help to review it :smile:

From the logic, I think the fix is right, but not sure, please help to review it 😄

Even the files are copied to guest, I think we still cannot ignore them, since those files are copied into a shared guest dir, and they are still needed to be mounted into container  dir  in guest. If you ignored them, kata-agent will not do the mount and you cannot access them in container.

@lifupan ， Actually, I want to ignore them since they have copied to the guest, and copy to the directory under rootfs, so kata-agent not need to mount again. But now I am not sure my test is right, I will check it again.

Oh, I test was wrong


Does the Llamafied Qwen support Flash attention, and do I need to train the model after llama fication

I want to llamafy Qwen-14B after llamafication will it support flash attention? And after llama fixation do I need to train the model?
Like suppose I change the Qwen Modelling.py file to resemble exact llama architecture and load the model using that will I need train the model a little on that arch.... Like about 6b tokens?

There should not exist any modeling_xxx.py after llamafication.

There should not exist any modeling_xxx.py after llamafication.

I wanted to know suppose I have qwen model and i change the modeling.py file to resemble llama architecture, then will i need to train the model a little over it?

Flash attention only supports the llamafied qwen model with a model directory that is exactly the same as the llama models.

btw, https://github.com/hiyouga/LLaMA-Factory/blob/main/tests/llamafy_qwen.py is all you need

btw, https://github.com/hiyouga/LLaMA-Factory/blob/main/tests/llamafy_qwen.py is all you need

No my point is I want to know does that it works?

And more thank you for your work and replies, can you teach me how does the llamafy_qwen.py works?

Do you have discord?

You could enable FA2 for llamafied qwen model using --flash_attn argument.


HA bridge port 80 and google home not working

spend a lot of time trying to get things to work.
port 80 is default forwarded to 5000 on synology so i was trying to solve this problem.
i could not gret goofle home/assistant to recognize the habridge because it kept on sending be to the hue landing page.
now it turns out that this is caused by the latest google home version.
is there any way to get ha bridge to work with google home/assistant or is this functionality killed forever?
ISSUE: Google Home now seems to not support local connection to Philips Hue Hubs and requires that it connect to meethue.com. Since the ha-bridge only emulates the local API, and is not associated with Philips, this method will not work. If you have an older Google Home application, this may still work. YMMV.

Google home is dead for ha-bridge. Other systems may have support such as OpenHAB which built a cloud connector.

thanks. did not know that


Add public Cilium performance dashboard

This PR

adds/changes/removes etc
screenshots before:
screenshots after:

Checklist

[x] Update changelog in CHANGELOG.md in an end-user friendly language.

Do you think the endpoint sections could be split into 2 lines?

As you wish


feat(containers): add support for privileged mode in container instances

User description
This pull request introduces the capability to manage privileged mode for containers. The changes include new methods and properties to handle privileged mode, as well as corresponding tests to ensure the functionality works as expected.
New Features:

Privileged Mode Management:

Added a method getPrivilegedMode to the ContainerInstance interface to retrieve the privileged mode status of a container. (src/Containers/ContainerInstance.php)
Introduced properties and methods in GenericContainer to set and retrieve privileged mode, including a new method withPrivilegedMode to configure the container's privileged mode. (src/Containers/GenericContainer.php) [1] [2] [3]
Updated the start method to include the privileged mode in the container definition. (src/Containers/GenericContainer.php) [1] [2]
Implemented the getPrivilegedMode method in GenericContainerInstance to return the privileged status from the container definition. (src/Containers/GenericContainerInstance.php)

Tests:

Unit Tests for Privileged Mode:

Added a test testGetPrivilegedMode to verify the retrieval of privileged mode in GenericContainerInstanceTest. (tests/Unit/Containers/GenericContainerInstanceTest.php)
Added a test testWithPrivilegedMode to ensure the GenericContainer can be configured with privileged mode and that it starts correctly with this configuration. (tests/Unit/Containers/GenericContainerTest.php)
Imported LogMessageWaitStrategy in GenericContainerTest to support the new tests. (tests/Unit/Containers/GenericContainerTest.php)

PR Type
Enhancement, Tests

Description

Introduced support for managing privileged mode in container instances, allowing containers to run with elevated privileges.
Added getPrivilegedMode method to ContainerInstance and GenericContainerInstance for retrieving privileged mode status.
Implemented withPrivilegedMode method in GenericContainer to configure privileged mode.
Updated start method in GenericContainer to include privileged mode in the container definition.
Added unit tests for getPrivilegedMode and withPrivilegedMode methods to ensure functionality.

Changes walkthrough 📝
Relevant filesEnhancement

ContainerInstance.phpAdd method to get container privileged mode status

src/Containers/ContainerInstance.php
Added getPrivilegedMode method to retrieve container's privileged mode status.

+7/-0

GenericContainer.phpImplement privileged mode management in GenericContainer

src/Containers/GenericContainer.php
Introduced privileged property and methods to manage privileged mode.  Updated start method to include privileged mode in container definition.

+36/-1

GenericContainerInstance.phpImplement privileged mode retrieval in GenericContainerInstance

src/Containers/GenericContainerInstance.php
Implemented getPrivilegedMode to return privileged status from container definition.

+8/-0

Tests

GenericContainerInstanceTest.phpAdd unit test for privileged mode retrieval

tests/Unit/Containers/GenericContainerInstanceTest.php

Added unit test for getPrivilegedMode method.

+9/-0

GenericContainerTest.phpAdd unit test for setting privileged mode

tests/Unit/Containers/GenericContainerTest.php

Added unit test for withPrivilegedMode method.

+11/-0

💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

@CodiumAI-Agent /describe
--pr_description.publish_labels=true
--pr_description.publish_description_as_comment=true
--pr_description.final_update_message=true

/analyze

/add_docs
--pr_add_docs.docs_style="sphinx"


segmentarion fault(core dumped)

when i try to "import tensorflow", it often occurs that "segmentarion fault(core dumped)" and quits. It does not happen all the time. Maybe it can function well sometimes. I dont know why.

Please post this with more detailed information on stackoverflow. Thanks.


[Bug]: [3.41.1] Cannot deploy Theme extension

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
App, Extension
Expected behavior
Create an extension in a new project or use an existing project and push a theme extension to Shopify.
Actual behavior
The extension shows up in the Partner Dashboard for versioning.
Stack trace
No response
Reproduction steps

Create a new Shopify app and generate a new theme extension
Add a liquid file to the blocks folder
Push to Shopify

Met with error on both existing and new app projects:

Operating System
macOS 13.2 / M1
Shopify CLI version (check your project's package.json if you're not sure)
3.41.1
Shell
zsh
Node version (run node -v if you're not sure)
19.6.0
What language and version are you using in your application?
Node 19.6.0

hey @kinngh, thanks for the report. Our team is working on a fix! As a workaround can you try prefixing your command with SHOPIFY_CLI_NO_THEME_BUNDLING=1?

Working as expected with SHOPIFY_CLI_NO_THEME_BUNDLING=1!

What does this mean - Working as expected with SHOPIFY_CLI_NO_THEME_BUNDLING=1! where is that value or how is it changed?

@jfisher727 could you take a look at this issue? 🙏


Use SHA1 hash for kernel cache key to support Linux in FIPS-compliant mode

Closes #5959.
I chose SHA1 based on the quick micro benchmark:
>>> a = ('*' * 4096).encode()
>>> timeit('hashlib.md5(a).hexdigest()', globals=globals())
6.068204950541258
>>> timeit('hashlib.sha1(a).hexdigest()', globals=globals())
4.463794406503439
>>> timeit('hashlib.sha256(a).hexdigest()', globals=globals())
9.106148925609887

Under Python 3.6.8 on CentOS 8 stream with FIPS-compilant mode enabled:
>>> hashlib.md5(b"foo").hexdigest()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS

>>> hashlib.md5(b"foo", usedforsecurity=False).hexdigest()
'acbd18db4cc2f85cedef654fccc4a4d8'

>>> hashlib.sha1(b"foo").hexdigest()
'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'

>>> hashlib.sha1(b"foo", usedforsecurity=False).hexdigest()
'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'

(seems usedforsecurity is available in any versions of Python installed via RHEL/CentOS 7/8 RPM)

For some reason I can't get consistent timing with different ways of launching timeit...but looks like sha1 is a good choice
In [8]: %timeit hashlib.md5(a).hexdigest()
5.15 µs ± 1.85 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [9]: %timeit hashlib.sha256(a).hexdigest()
2.29 µs ± 1.05 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [10]: %timeit hashlib.sha1(a).hexdigest()
2.15 µs ± 0.303 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [11]: timeit('hashlib.md5(a).hexdigest()')
4.6 ns ± 0.0011 ns per loop (mean ± std. dev. of 7 runs, 100000000 loops each)

In [12]: timeit('hashlib.sha1(a).hexdigest()')
4.61 ns ± 0.0055 ns per loop (mean ± std. dev. of 7 runs, 100000000 loops each)

In [13]: timeit('hashlib.sha256(a).hexdigest()')
4.79 ns ± 0.396 ns per loop (mean ± std. dev. of 7 runs, 100000000 loops each)

Jenkins CI test (for commit a3cf5d6dc9888c9762d7b7f62302da673a1c31e2, target branch master) failed with status FAILURE.

All test failures are timeout, I believe they're harmless.

Jenkins, test this please

Jenkins CI test (for commit a3cf5d6dc9888c9762d7b7f62302da673a1c31e2, target branch master) succeeded!

Test failure are timeout and known one (#5678).

Merging as this is review approved and test failures are unrelated to this PR.

@kmaehashi Looks like there is a bug in this. sha1 has a 40 character hash instead of 32 characters with md5.
That means the hashes and cubin / binary are corrupted in these lines:
  hash = data[:32]
  cubin = data[32:]

  hash_value = data[:32]
  binary = data[32:]

@jch1996 Those were fixed in #6023.


Boolean fields edit only works with True values

using<EMAIL_ADDRESS>Hello in AdminBro 2.2.4 when you edit boolean fields with the default edit it only update in the DB when the boolean is set to True  .
When the boolean is set to False  then the fields set to False disappears from the request

hi - please try out 2.2.6

fixed that in the latest release. Please update admin-bro to: 2.4.3


1351 - Count Negative Numbers in a Sorted Matrix

Description of the Problem
Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise.
Return the number of negative numbers in grid.
Example 1:
Input: grid = [[4,3,2,-1],[3,2,1,-1],[1,1,-1,-2],[-1,-1,-2,-3]]
Output: 8
Explanation: There are 8 negatives number in the matrix.
Example 2:
Input: grid = [[3,2],[1,0]]
Output: 0
Example 3:
Input: grid = [[1,-1],[-1,-1]]
Output: 3
Example 4:
Input: grid = [[-1]]
Output: 1
Constraints:
m == grid.length
n == grid[i].length
1 <= m, n <= 100
-100 <= grid[i][j] <= 100
Code
class Solution:
    def countNegatives(self, grid: List[List[int]]) -> int:

Link To The LeetCode Problem
LeetCode

I would like to be assigned to this !


This Commit fixes #170 opened issue

Complete the following REQUIRED checkboxes:

[x] I have thoroughly read and understand The Odin Project Contributing Guide
[x] The title of this PR follows the location of change: brief description of change format, e.g. 01-flex-center: Update self check

Complete the following checkbox ONLY IF it is applicable to your PR. You can complete it later if it is not currently applicable:

[x] I have ensured that the TOP solution files match the Desired Outcome image

1. Because:
This PR closes an open issue. Closes #170.
https://github.com/TheOdinProject/css-exercises/issues/170
3. Additional Information:

As Requested i Have done separate PR For this issue

@acb123web Just so you know, there is currently a convo regarding this PR in the original issue. It hasn't been forgotten about.

Yes, Thank you.


Can not initialize the project

Environment
OS: Windows 10
node: v16.17.0
Reproduction
It does not make sense upload empty folder
Describe the bug
"Hostname/IP does not match certificate's altnames" this kind of error on initializing via npx nuxi init  (also try npx nuxi@latest init  but doesn't work)
Additional context
No response
Logs
request to https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/v3 failed, reason: Hostname/IP does not match certificate's altnames: Host: codeload.github.com. is not in the cert's altnames: DNS:dns.google, DNS:dns.google.com, DNS:*.dns.google.com, DNS:8888.google, DNS:dns64.dns.google, IP Address:<IP_ADDRESS>, IP Address:<IP_ADDRESS>, IP Address:################, IP Address::################, IP Address::################, IP Address::################

  at ClientRequest.<anonymous> (/C:/Users/Admin/AppData/Local/npm-cache/_npx/a95e0f536cf9a537/node_modules/nuxi/dist/chunks/init.mjs:11912:11)
  at ClientRequest.emit (node:events:513:28)
  at TLSSocket.socketErrorListener (node:_http_client:481:9)
  at TLSSocket.emit (node:events:513:28)
  at emitErrorNT (node:internal/streams/destroy:157:8)
  at emitErrorCloseNT (node:internal/streams/destroy:122:3)
  at processTicksAndRejections (node:internal/process/task_queues:83:21)

Hey! No reproduction was provided for a month. I'll close this issue here.
If it issue persists, feel free to add a reproduction and ping again ☺


Incompatibility with corslite.js

After a mighty journey starting from ember-mapbox-cli, heading through to ember-mirage-cli I finally ended up here. Hurray!
So, it looks like the fake XMLHttpRequest object that gets created by Pretender doesn't include the property withCredentials, which corslite.js uses to detect whether we're on IE or not. Problem occurs here: https://github.com/mapbox/corslite/blob/master/corslite.js#L20
It then proceeds to call x = new window.XDomainRequest();, which breaks because we're not actually on IE.

Hi, corslite maintainer here. A withCredentials check is the widely accepted means of feature-detecting CORS support. I would strongly encourage a fix in Pretender here; corslite is probably far from the only affected library or code.

this should have been fixed by https://github.com/pretenderjs/FakeXMLHttpRequest/pull/12

@kturney thanks, I believe you are correct.
Closing, but if the issue persists please provide a re-production and we can reopen.

I think this is happening to me with fake_xml_http_request (see my detailed issue here https://github.com/samselikoff/ember-cli-mirage/issues/1320). cc @jfirebaugh; not sure where the problem is coming from. I'm upgraded to pretenderjs 2.0 from 1.6, same issue applies.


Use pitch and not removed apis

Tilt is deprecated

+1 from me.

Thanks for the review @elemoine.


Catch 404s on reload

On provisionable models as well as operations, the reload can fail if
the model has been deleted on the backend. This commit catches this
and just stops the reloading of the model.
cc @sandersonet @gib

Thanks for this!  Out of curiosity--why do we have to check for a 404 differently.  Do we not always return a 404 status code?

We do, but the promise returned is different for operations. I believe it's due to findQuery returning a jQuery ajax promise for operations, while the promise returned for provisionables is something that Ember data returns. I'm not 100% sure myself though.

:+1:


Add optional data type to supported types

Have optional to be part of vat variant, where T can be int32_t, uin32_t, int64_t, uint64_t or std::string.
Example code using this feature:
auto input_a = std::optional<int>{ };
auto input_b = std::optional<std::string>{ };

const auto options = {
    { { "a" }, input_a, "Input a"},
    { { "b" }, input_b, "input_b"}
};

argz::parse(about, opts, argc, argv);

if (input_a) foo(input_a.value());
if (input_b) bar(input_b.value());

Notice that T can not be bool due to ambiguous meaning in the following example:
auto bool_opt = std::optional<bool>{ };

const auto options = {
    { { "a" }, bool_opt, "Input a"}
};

argz::parse(about, opts, argc, argv);

// Now if command line is: "./prog -a"
// should input_a be empty or contain true?

if (input_a) foo(input_a.value());

If optional would contain integer or string input_a would be empty optional.

Force push was to remove redundant construction of std::reference_wrapper which got implicitly converted to normal reference immediately.

@stephenberry
I realized one complication about this. Templated/generic lambdas were added in c++20 and CMakeLists.txt at the moment has target_compile_features(argz_argz INTERFACE cxx_std_17)
This was not apparent when I was testing this because CMake somehow selects c++20 automatically for me.

@MiroPalmu
Ah, thanks for pointing this out. I'm fine moving to a C++20 requirement. All my other projects are moving to this requirement and I find C++20 to be widely available now. I'll update accordingly.


Added additional owners and reviewers

duplicate of https://github.com/openshift/aws-account-operator/pull/67


[tool_crash] ProcessException: The system cannot find the file specified. Command: C:\src\flutter\bin\flutter.BAT, OS error code: 2

Command
flutter upgrade

Steps to Reproduce

...
...
...

Logs
ProcessException: The system cannot find the file specified.
Command: C:\src\flutter\bin\flutter.BAT, OS error code: 2

[✓] Flutter (Channel stable, 1.22.2, on Microsoft Windows [Version 10.0.18362.1139], locale en-IN)
    • Flutter version 1.22.2 at C:\src\flutter
    • Framework revision 84f3d28555 (2 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.2

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\LENOVO\AppData\Local\Android\sdk
    • Platform android-29, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Flutter Application Metadata
No pubspec in working directory.

Hello @darshanhk18
Please update your flutter path and run your cmd as an administrator.
Thanks.

Hi @darshanhk18
Can you add please  %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ to your Path variable
You might also need to add C:\Windows\System32 if it's not there in the path variable.

Thank you

This is a duplicate of https://github.com/flutter/flutter/issues/60776.
Cc @jonahwilliams

As @hamdikahloun commented, your problem is that Windows cannot find Powershell (see the message in your screenshot). Closing this issue.


formatDocumentRangesWithProvider: cts.dispose is called multiple times

This looks fishy:
https://github.com/microsoft/vscode/blob/94c9ea46838a9a619aeafb7e8afd1170c967bb55/src/vs/editor/contrib/format/format.ts#L189
I guess the try finally should be moved to the outside?
Also, await provider.provideDocumentRangeFormattingEdits(...) could be called in parallel.

Yeah, nice one. The try-finally should be around the whole loop

Verified in code review


Breaks native-instruments.com

Sites:

https://www.native-instruments.com/
https://www.native-instruments.com/en/catalog/traktor/

Re-submitted site using the in-app form.


ADT support

This looks similar but it ends up treating enums specially.
Personally I like ADTs better, more generic but this'll probably cover 90% of use cases too.
Here's something I'd try:
Product type: implicit, existing 'fields' construct takes care of that,
fields": [
{ "name": "base", "type": "action_event_base" },
{ "name": "look_id", "type": "long" },
...............
]
That effectively is a type constructor that requires a union of all fields.
Even 'required' stuff is fine, we represent it as an optional type, so it doesn't break type sig.
So, the missing part is the 'sum' type, to support it I'd try something like
"foo": {
description: ...
fields: [....]
}
"bar": {
description: ....
fields: [....]
}
foos: {
description: ....
sum: [ "foo", "bar" ]
}

Now, imagine we are taking care of the simplest possible case (foo and bar are just 'constants', have no fields as such.
All we need to do to support that is to make 'fields' part optional.
E.g. Sean's example might look like:
"RECEIPT": {
"description": "Used when an inventory adjustment is related to receipt of inventory"
},
"ADJUSTMENT": {
"description": "Used when inventory is incremented/decremented for some reason, for example indicating Lost/Found inventory"
},
.......................
event_type: {
description: ...........
sum: [ "RECEIPT", "ADJUSTMENT" ]
}
Scala equivalent:
sealed trait EventType
case object Receipt extends EventType
case object Adjustment extends EventType
object EventType {
def all: Seq[EventType] ....
... other convenience methods we've discussed for this pattern (and IIRC mreed already implemented elsewhere)
}
Corresponding Haskell code would be:)
data EventType = Receipt | Adjustment
One other small but practical issue here is name spaces.
This is not only tied to enums but perhaps we might run into it faster trying to define enums, their names tend to be shorter, conflict is more likely.
Currently everything is globally scoped in a particular api.json.
Maybe for 'microservice' architecture it's fine, scopes will be small.
OTOH maybe we want to follow what's been done elsewhere and figure out scoping rules, so that you can have 'RECEIPT' and 'ADJUSTEMENT' types in different 'enums' in a different context.
Remember when we talked about it a while ago I compared this to ORM frameworks? :) This is one of them corner cases that may affect design. I'm sure there's many more.
Overall this is a rather nuanced problem, overlaps a lot with programming language design.

union type merged to master - will be released shortly


Contact.setTaxable(false) is ignored when creating a Contact

When creating a Contact through the API, I set contact.setTaxable(false). But when I look at the resulting Contact in the Zoho UI, the Tax Preference field is set to Taxable. The value passed to setTaxable() seems to be ignored.

Hi Dlevis, we have cleared the issue now.. Can you check once again and update here...

Now works as expected. Thank you.


Fixing warnings related to Instance locality

Looks reasonable, but perhaps @traiansf could comment on whether we want #[export] for some of these classes, or something more restrictive like #[local] is enough.


AUTH_HEADER_TYPES configuration

I noticed this in the authentication_backend docs :

Configure django-rest-framework-simplejwt to use the
Authorization: JWT <access_token> header:
SIMPLE_JWT = {
   'AUTH_HEADER_TYPES': ('JWT',),
}

This make it seems like a needed configuration step, but in reality JWT authentication works correctly even without adding this settings, it just use the default Bearer   authorization header as per the django-rest-framework-simplejwt documentation. This settings is completely independent from djoser and has no impact on its functionality so maybe this instruction should just be removed ?

If this step can be ommited, the docs should be decluttered :wink:

patch merged


500 Internal Server Error after collecting few events from pubsublite subscription

Environment details

OS type and version: Tried with both Windows 10 & CentOS
Python version: 3.7.10
pip version: 21.1.3
google-cloud-pubsublite version: 0.5.0
Number of partition in Topic: 1

Steps to reproduce

Install the latest google-cloud-pubsublite in any OS with python version >= 3.6
Download & run "Receive Message" example with/without flow controll settings - Link
After starting data collection, it will work for around 5 min, after that, it will stop suddenly and will throw "503 - Internal server error shown in below traceback. And it will continuously try to generate a new token every 5 min and eventually fails with 503 status code error.

from google.cloud.pubsublite.cloudpubsub import SubscriberClient
from google.cloud.pubsublite.types import (
    CloudRegion,
    CloudZone,
    SubscriptionPath,
    DISABLED_FLOW_CONTROL,
)

project_number =<PHONE_NUMBER>
cloud_region = "us-central1"
zone_id = "a"
subscription_id = "your-subscription-id"

location = CloudZone(CloudRegion(cloud_region), zone_id)
subscription_path = SubscriptionPath(project_number, location, subscription_id)

with SubscriberClient() as subscriber_client:
    streaming_pull_future = subscriber_client.subscribe(
        subscription_path,
        callback=callback,
        per_partition_flow_control_settings=DISABLED_FLOW_CONTROL,
    )

    streaming_pull_future.result()

Stack trace
google.api_core.exceptions.InternalServerError: 500 Internal error encountered.
ERROR pid=30765 tid=Thread-14 file=base_events.py:default_exception_handler:1619 | Task exception was never retrieved
future: <Task finished coro=<_StreamRequestMixin._consume_request_iterator() done, defined at /root/workspace/MyApp/MyApp/bin/lib/grpc/aio/_call.py:396> exception=InternalServerError('Internal error encountered.')>
Traceback (most recent call last):
  File "/root/workspace/MyApp/MyApp/bin/lib/google/api_core/grpc_helpers_async.py", line 108, in _wrapped_aiter
    async for response in self._call:  # pragma: no branch
  File "/root/workspace/MyApp/MyApp/bin/lib/grpc/aio/_call.py", line 321, in _fetch_stream_responses
    await self._raise_for_status()
  File "/root/workspace/MyApp/MyApp/bin/lib/grpc/aio/_call.py", line 232, in _raise_for_status
    self._cython_call.status())
grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
    status = StatusCode.INTERNAL
    details = "Internal error encountered."
    debug_error_string = "{"created":"@1624279060.222179353","description":"Error received from peer ipv4:<IP_ADDRESS>:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Internal error encountered.","grpc_status":13}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/workspace/MyApp/MyApp/bin/lib/google/cloud/pubsublite/internal/wire/retrying_connection.py", line 100, in _run_loop
    await self._loop_connection(connection)
  File "/root/workspace/MyApp/MyApp/bin/lib/google/cloud/pubsublite/internal/wire/retrying_connection.py", line 133, in _loop_connection
    await self._read_queue.put(await read_task)
  File
  File "/root/workspace/MyApp/MyApp/bin/lib/google/api_core/grpc_helpers_async.py", line 111, in _wrapped_aiter
    raise exceptions.from_grpc_error(rpc_error) from rpc_error
google.api_core.exceptions.InternalServerError: 500 Internal error encountered.

Note: I have tried with different network connections (to isolate firewall/proxy-related issues), but it is still getting reproduced each time.

Hello,
Apologies that you're having this issue. My guess is this is some other error being improperly masked to INTERNAL by our backend. Can you send an email to<EMAIL_ADDRESS>(our support queue) with your actual project number so I can investigate further?
-Daniel

Already triaged. Moving to P3 and closing, lack of user response means it cannot be diagnosed.


Update sbt-dotty to 0.5.2

Updates ch.epfl.lamp:sbt-dotty from 0.5.0 to 0.5.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.epfl.lamp", artifactId = "sbt-dotty" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #173.


Failure of 'Python Testing Suite - Legacy' Test Cases When Executed Alongside 'Python Testing Suite' Cases

Describe the bug
Test cases in the "Python Testing Suite - Legacy" fail when executed alongside test cases from both the "Python Testing Suite" and "Python Testing Suite - Legacy." However, there are no issues when multiple test cases are executed within their respective suites, either "Python Testing Suite" or "Python Testing Suite - Legacy."
Steps to reproduce the behavior

Select one test case from Python Testing Suite.
Select one test case from Python Testing Suite - Legacy.
Run the test case.

For example :

Expected behavior
The test case should execute without any issues irrespective of the suite from which it is selected.
Log files
UI_Test_Run_2024_03_06_16_07_41.log
Screenshots

Environment
Version: 2.10-beta3+spring2024
Sha: 1fd1429

Hi @Survensa, I performed the execution of TC-ACL-2.2 along TC-SM-1.1 it worked fine.

Regarding the execution of  TC-ACE-1.2, when I performed the test execution, it is always failing even running alone. I'm still investigating the reason.

Tested again with v2.11+fall2024 and it worked.

Closing since it seems it is working. The origination may file a new issue it is now working properly.


TypeScript errors terminate watch mode

Describe the bug
When working in watch mode, if the plugin encounters a TypeScript error, it terminates the build process immediately.
Reproduction
In any existing Vite + TypeScript project that is configured to use vite-plugin-checker:

Run vite build --watch.
Modify a TypeScript file in such a way that tsc would report an error.

Expected behavior
While in watch mode, it'd be helpful for the build process to continue running even after encountering an error.
System Info
System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 12.43 GB / 31.95 GB
  Binaries:
    Node: 16.15.0 - ~\scoop\apps\nodejs-lts\current\node.EXE
    npm: 8.5.5 - ~\scoop\apps\nodejs-lts\current\npm.CMD
  Browsers:
    Chrome: 101.0.4951.67
    Edge: Spartan (44.19041.1266.0), Chromium (101.0.1210.39)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    vite-plugin-checker: ^0.4.6 => 0.4.6

Additional context
The following patch seems to help with the issue. Even if I just remove process.exit, though, the build process does seem to exit, just not necessarily with the same exit code as the child process. I also have no idea if this is actually a reliable way to detect watch mode.
diff --git a/packages/vite-plugin-checker/src/main.ts b/packages/vite-plugin-checker/src/main.ts
index 8e70a76..9cc5327 100644
--- a/packages/vite-plugin-checker/src/main.ts
+++ b/packages/vite-plugin-checker/src/main.ts
@@ -144,7 +144,7 @@ export default function Plugin(userConfig: UserPluginConfig): Plugin {
         ]
       }
     },
-    buildStart: () => {
+    buildStart: function() {
       // for build mode
       // run a bin command in a separated process
       if (viteMode !== 'build') return
@@ -164,7 +164,9 @@ export default function Plugin(userConfig: UserPluginConfig): Plugin {
           checkers.map((checker) => spawnChecker(checker, userConfig, localEnv))
         )
         const exitCode = exitCodes.find((code) => code !== 0) ?? 0
-        if (exitCode !== 0) process.exit(exitCode)
+        if (exitCode !== 0 && this.getWatchFiles().length === 0) {
+          process.exit(exitCode)
+        }
       })()
     },
     configureServer(server) {

Validations

[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

😅 I don't know Vite has a watch mode for build command before. Thanks for letting me know. I do like to adopt the behavior as described.


i want to use javascript as plugin

Hi every one
I try to insert a chart in video player ( as picture :arrow_down:  )

I used  Chart.js LineChart as my chart.

section 1 and 2 are for chart and section 3 is for Clappr.
I want to make plugin , so how can i do it ?
How can add this -JS- to Clapper ???

You can look at some plugins to have a source of knowledge. https://github.com/clappr/clappr/blob/master/doc/EXTERNAL_PLUGINS.md For instance https://github.com/lucasrodcosta/clappr-nerd-stats is easy to learn and replicate.


Can't get push to work; not receiving test messages

I used the latest push.cpp version and installed it with the znc-buildmod tool.
Then I configured telegram first, that didn't seem to work so I tried slack.
For some reason I don't receive any push notifications when I use the send tool or when I get mentioned in my network.
I used the following commands to set things up (webhooks, etc modified with 1 digit for security reasons, same format kept)
set service telegram
set secret 364561415:AAE-2auAWabb8hA9RBGSzE-4CcU7uoFWWsA
set target 330058746
send test
set service slack
set secret T4DP6D16G/B4DQURW68/0sNVpqxVUhbKBdQMCcKgAWHN
set username ZNC BOT
set target znc
send test
ZNC version: ZNC 1.6.4
ZNC server OS: Ubuntu 14.04.5 LTS (GNU/Linux 2.6.32-042stab116.2 x86_64)
I get no error messages but I just don't receive any messages on both platforms....
Does anyone know how to solve this issue?

Try doing set debug on and see what output you get when sending a test message.  It's possible that Slack or Telegram changed their API, or that ZNC's SSL library doesn't work well with their services, and I don't generally use or test anything beyond the Pushover integration myself.  The last option is to rebuild using the makefile with make curl=yes, which will use the libcurl network stack instead of ZNC's own sockets, which could also solve this issue.

I just tried configuring push with pushover, but that doesn't seem to work either. The debug indicated everything was going okay:
[10:29:44]  <*push>	service: pushover
[10:29:44]  <*push>	service_host: api.pushover.net
[10:29:44]  <*push>	service_url: /1/messages.json
[10:29:44]  <*push>	service_auth:
[10:29:44]  <*push>	use_port: 443
[10:29:44]  <*push>	use_ssl: 1
[10:29:44]  <*push>	use_post: 1
[10:29:44]  <*push>	NOT using libcurl
[10:29:44]  <*push>	Building notification to api.pushover.net/1/messages.json...
[10:29:44]  <*push>	User-Agent: ZNC Push/dev
[10:29:44]  <*push>	Query string: device=PhoneSE&message=test&priority=0&title=New+Message&token=ai4zt8fgn9c6iz46sucuwxtghvduxv&user=u7iurnv8ztws5inx2hh17zk5fhnsp7
[10:29:44]  <*push>	Request sending
[10:29:44]  <*push>	Ok
[10:29:44]  <*push>	Disconnected.
However, still not receiving the message on pushover

Does every thing sending to the same user + key work fine? Does running the query string listed above work fine if you do it with cURL? Also, probably want to remove your secrets from the above ^

I don't know how cURLs work exactly and how I can test them. The secrets posted above are slightly edited and are not my real 'secrets'. I'm pretty sure the users and keys are correct since I literally copied and pasted them into my IRC client.

Ah, cool @lpessers - just didn't want to assume, as I know people sometimes will post such things without realising :) As for command line, I'd suggest trying the same user secret + token with cURL as documented here:
https://pushover.net/faq#library-shell
I.e., for your example, you could do:
curl -s \
  --form-string "device=PhoneSE" \
  --form-string "token=ai4zt8fgn9c6iz46sucuwxtghvduxv" \
  --form-string "user=u7iurnv8ztws5inx2hh17zk5fhnsp7" \
  --form-string "message=hello world" \
  https://api.pushover.net/1/messages.json

If that doesn't work, remove the entire "device" line and test again :)

That worked perfectly fine, received the notification, used the same details as I used for push on my znc network. Weird why it doesn't work when it goes through push on my znc server

Very weird indeed! Running the same cURL command on your ZNC that you successfully used to test locally also works?
Noticed [10:29:44] <*push> NOT using libcurl - is libcurl installed on the ZNC machine?

No, libcurl is not installed and I have no clue how to install it to be honest

Try this out:
sudo apt-get install -y libcurl3 libcurl-dev libcurl3-gnutls libcurl3-gnutls-dev```

You'll probably want to rebuild the push module after that, put it in debug again, and try once more for us :)

This is what I got when I tried that:
root@sv1:~# apt-get install -y libcurl{3,-dev,3-gnutls,3-gnutls-dev}
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libcurl4-gnutls-dev' instead of 'libcurl3-gnutls-dev'
Package libcurl-dev is a virtual package provided by:
  libcurl4-openssl-dev 7.35.0-1ubuntu2.10
  libcurl4-nss-dev 7.35.0-1ubuntu2.10
  libcurl4-gnutls-dev 7.35.0-1ubuntu2.10
You should explicitly select one to install.

E: Package 'libcurl-dev' has no installation candidate

I am now able to receive notifications! I think it works! Thanks!

One more thing, how do I get push to notify me when someone private messages me or when I'm mentioned in a channel?

I believe both PM + mentions are included by default, but if not, you can manually set highlights:
/msg *push set highlight _SPECIFICWHOLEWORD *startswiththis

That'd match highlights of only "SPECIFICWHOLEWORD", and also anything that starts with "startswiththis" - for example, it'd match both "startswiththisword" and "startswiththisphrase".
For more info, see:
https://github.com/jreese/znc-push/tree/python#conditions
https://github.com/jreese/znc-push/tree/python#commands

Okay, thanks

I am now able to receive notifications! I think it works! Thanks!

After installation of libcurl did you rebuild push?? Because there are no chances after libcurl installation for me


Is this licensed for use?

I see no license in this project.  Is it just well-hidden?  Did you forget to include a license?  Do you just want to make it illegal for others to use this?  Your licensing intentions are not clear.

Ignore that.  I somehow missed the license at the bottom of the README.  I'll submit a pull request for a LICENSE file and gemspec update.

Hi @apotheon
Thanks. Just make sure to use licence (noun) and license (verb) and I'll accept it :-)
Regards,
yb66

I've updated the name of the LICENCE file.  Nothing else in the actual commit contains "license", unless it's legal text (which I don't typically mess with when copying a specific legal document) or a configuration property (which I'd expect to break the gem).  Do you want me to delete the branch and start over so the commit log contains only Britishisms?


Default Content for Lists and Implicit Collection-based Child Element Support via XmlElementAttribute

This has popped up now several times with #229 and #239 and is becoming a bit of a headache as it is not an easy fix.  Essentially, we differ from the classic serializer when the XmlElement is applied to a property.  The problem is that we do not have any easy way of establishing a property context when an unexpected property name is encountered.
Well, actually, the real problem is that I have a very difficult time working with XmlReader and XmlWriter (while keeping everything performant), so it takes me a while to wrangle my emotions around these suckers. 😂
I will have to give this some thought, but the last time I looked into this it was going to be disruptive.

Gah, this is such a brutal item.  I've been taking a look around this one for the past several days -- what feels like a week 😆 -- and still have no idea of the best way to tackle it.  The work done on #192 is actually a good blueprint.  Maybe I will be able to work with it.
I hate that this is really the only item that we haven't been able to resolve.  So, time to resolve it. :P

Hah... actually, it's kinda funny as I just now realized that the EnableXmlText (#192) does pretty much everything required to make this work.  I can't believe I didn't see this earlier.  I really checked out of this issue. 😆
I should have this addressed sometime today or tomorrow. 👍  Let's see how I do. :P

Egads, what a mess.
I was able to get this working somewhat.  If the object being serialized contains the list being serialized/deserialized, and that those list items are the last elements in the document, then this works.
Example:
https://github.com/wojtpl2/ExtendedXmlSerializer/blob/3b3288983b511ff20d5ed3306ffb2d06e3471cf1/test/ExtendedXmlSerializer.Tests/ReportedIssues/Issue240Tests.cs#L27-L41
However, if the object is contained within another object, then it doesn't.  Example:
https://github.com/wojtpl2/ExtendedXmlSerializer/blob/3b3288983b511ff20d5ed3306ffb2d06e3471cf1/test/ExtendedXmlSerializer.Tests/ReportedIssues/Issue240Tests.cs#L43-L59
Based on the current infrastructure (and the sheer amount of time I have spent), I am marking this scenario as not-possible/won't-fix for v2.  The best we can do is point future developers who would like this functionality and see if the above works for them.  The other (only) way to fix this is a complete rewrite of the functionality, which is what I am already doing with v3.
Sorry all.  I tried. :(


[Task] fetchValidatorConfig function in Account manager uses JS SDK

Task
Contributors are able to complete this task and earn thenewboston coins.  Check out the labels to learn how much you can earn for contributing by completing this task.  Please make sure to be honest if you wish to contribute by saying you can't finish this and we can just un-assign you with no harm done!  There is no point in delaying tasks from being completed for miscommunication!

Overview
fetchValidatorConfig function in Account manager uses JS SDK

All missing functionalities that hinder the implementation are reported and resolved on the SDK side
Use the SDK documentation
Undocumented processes and wrong information in doc should be corrected
Resolves https://github.com/thenewboston-developers/Account-Manager/issues/585

Behavior
Account manager uses js sdk installed from NPM https://www.npmjs.com/package/thenewboston
fetchValidatorConfig function in Account manager uses JS SDK
/* code examples are awesome */

Please ask for this task to be assigned to you and earn and its sweet reward 😉
Remember to include your account number in your PR description for us to pay you 💰
** Pull Requests **
All Pull Request should be made to development branch, read contributors guild for more information about contributing

closed by https://github.com/thenewboston-developers/Account-Manager/pull/614


Cleanup & Fix GHA

Cleanup code via yapf and update codecov GHA

Codecov Report

Merging #246 (abff03c) into master (981ba9e) will decrease coverage by 0.01%.
The diff coverage is 66.66%.


Rip out filesystem management & replace with Luigi or other all-in-one pipeline manager

Luigi has everything we need and is set up for pipelines

s3 data management
local data management
built for pipelining python functions
dependency management
extensive support for distributed computing

Other options to evalutate:

(Apache airflow)[https://airflow.incubator.apache.org/tutorial.html]
(Yelp MrJob)[https://pythonhosted.org/mrjob/]
(Pinterest Pinball)[https://github.com/pinterest/pinball]

I should note (just for the sake of both of our mental health) two things:

I don't think this invalidates the work we've done -- the Manager is super useful and I think we should keep most aspects of the package, just replace the data handling backend. data_file.py is definitely the worst part of the package and I don't think we'd lose anything by dropping our pyfilesystem dependency.

This could be done while maintaining backwards compatibility. Everything in a manager table is necessary to maintain if we switch out the backend, and users don't really have to experience any changes. Hopefully, they'll just see an increase in features and performance.

This doesn't seem as useful as I thought. I'm recommending we close this one if it's ok with you, @jgerardsimcock

Going to close this for now. The long-term solution may be to expose lower-level features (such as direct access to fs interface (boto streaming objects, file handlers, etc.) for compute module.


Question about sending BLE broadcast to trigger visibility

I have read the FAQ and it states that it's not possible because Apple doesn't allow it. I'm wondering why it's not possible to bypass it and I have a couple of questions. Keep in mind I have not much of a clue about Bluetooth, I'm just trying to understand this better. If you don't have time/don't want to answer, feel free to close this issue.

I assume it's denied in CoreBluetooth? I couldn't find anything about this, but this post suggests sending broadcasts is possible.
What about IOBluetooth? According to this guy, it apparently doesn't support BLE, but he suggests it can do very low level discovery. Perhaps it could be enough to send broadcasts?

This could be bypassed by sending push notifications to a device that has a companion app installed, but I assume this isn't planned? If so, I can help with that part, but since you say you're and Android developer, I'm sure you know how to do this stuff and probably just decided it's not worth the hassle.

I tried using different APIs, public and private. Both CoreBluetooth and IOBluetooth. I found an example that purportedly sends raw HCI commands to the Bluetooth controller using private APIs, but it didn't work on macOS Ventura. I even disassembled IOBluetooth but most of the private functions this thing was calling were no-op (just the ret instruction) and the one that wasn't was returning an error. It might have worked on previous system versions but yeah it's Apple, if you use a private API and your program breaks, you get to keep both parts.

This could be bypassed by sending push notifications to a device that has a companion app installed, but I assume this isn't planned?

This would require a second device and an app to be installed on it. The whole point of NearDrop is that it's a self-sufficient implementation of Nearby Share for macOS.

Thanks for the quick and detailed response!
 I definitely get the point though.


Create Plugin/Desktop Helper Sample

Overview
Adds a sample that uses an Electron desktop helper app (React) to communicate with a Photoshop plugin (webpack/vanilla js).
Functionality
The Electron helper app uses an embedded websocket server (Socket.io) to communicate to and from the UXP helper app. The websockets have the functionality to automatically connect and reconnect with each other. As well, if one of the clients close, the other is notified of the disconnection.
To put a use case into practice, users can send strings to and from the UXP and Electron helper apps. Sent strings are received and displayed in their corresponding places on the UI.
Closes Issue #13

I can get both running, but neither seem to see each other. Maybe let's go through how you're running them in case I'm missing a step.

Awesome! I just created a video of launching and connecting the UXP plugin/Electron helper. As addressed in the video, the only steps I didn't show was actually cloning the repo and running a quick yarn install to grab each of the folder's dependencies.
There's a bit of a cut three minutes in, but I just added that because my computer took around 20 seconds to boot up the electron bundle. Nothing else changed.
Let me know what happens!
YouTube Link


Migrate Personalizer, Purview, Quantum, and Remote Rending to new Checkstyle and Spotbugs pattern

Description
Migrates the Personalizer, Purview, Quantum, and Remote Rendering libraries to new Checkstyle and Spotbugs pattern where each library maintains its own suppression files.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

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


Getting "Error: Cannot find module 'seamless-immutable'" in version 7.1.0 but not 7.0.1

My package that depends on this one suffers the following error when browserifying this module:
Error: Cannot find module 'seamless-immutable'
This occurs in the version 7.1.0 but not 7.0.1.
Shrinkwrapping solves this problem for now.
Is this caused by the changes to the package.json "browser" or "main" fields?

I've made a PR that should fix the problem: https://github.com/rtfeldman/seamless-immutable/pull/205

@LukeusMaximus should be fixed in 7.1.1

Yup, all fixed.


Increase verbosity of some errors

The "ciphertext too short" comes up all the time. The other used to come up for me and I have had that change stored locally for a long time. Cannot hurt to add it.

@nhynes what's the status of the failing tests? When I try to run them locally, an actual browser window pops up, and the test fails.
I see circleCI is also failing at master. Linting was also in a broken state. I can look into those more but I'd like you to have a look first because it's most likely all caused by your direct pushes to master. LMK. Thanks!

Nick says oasis.js sucks, let's ignore the tests.


Fix build for gradle 7

Old method of expanding fabric.mod.json's project.version property broke with gradle 7. Switching to using filesMatching("fabric.mod.json") fixes this.

Thanks!


Don't submit answers to skipped questions

If someone selects a value or an intensity that value is automatically added to the response array, even if they click the skip button. This can result in a database error if someone clicks an intensity but no answer.

i did something similar here where you would be able to null out the answer but the dispatcher doesn't fire, maybe i went down the wrong path on this.
                if (action.type === SELECT_SURVEY_QUESTION_RESPONSE_INTENSITY) {
                  response.intensity == action.intensity ? response.intensity = undefined : response.intensity = action.intensity
                }
                else if (action.type === SELECT_SURVEY_QUESTION_RESPONSE) {
                 response.answerId == action.intensity ? response.answerId = undefined: response.answerId = action.answer.id
                }

The fast way to solve this problem is to run a filter on responses before they are posted to the backend.  This could be done in the action generator that makes the API call at https://github.com/Code4HR/okcandidate/blob/master/assets/js/redux/survey/survey-actions.js#L150
Psedocode looks like:
responses.filter(response => {
  return response.answerId && response.intensity
})

Except that you have to "Skip" every answer. I assume under the hood you
mean something like "unanswered and not rated"?
On Thursday, April 7, 2016, W. Blaine Price<EMAIL_ADDRESS>wrote:

The fast way to solve this problem is to run a filter on responses before
they are posted to the backend. This could be done in the action generator
that makes the API call at
https://github.com/Code4HR/okcandidate/blob/master/assets/js/redux/survey/survey-actions.js#L150
Psedocode looks like:
responses.filter(response => {
return response.answerId && response.intensity
})
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Code4HR/okcandidate/issues/72#issuecomment-206916630

--
Kevin Curry
Virginia Beach, VA
https://comparityins.com

The original issue is that right now you can select an answer and/or an intensity and then click the "Skip" button. That answer will still be submitted to the survey. You can also partially answer a question by either selecting an answer with no intensity or an intensity with no answer.

resolved by #82

I should probably reference the issue in these pull requests, eh?
On 7 April 2016 22:36:06 GMT-04:00, Stanley Zheng<EMAIL_ADDRESS>wrote:

resolved by #82

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/Code4HR/okcandidate/issues/72#issuecomment-207181435

--
Ryan Y.
Software Design Engineer
Alion Science and Technology Corporation
GnuPG Key: 0x358CD775
VoIP (ZRTP-encrypted<EMAIL_ADDRESS>IM (OTR encryption<EMAIL_ADDRESS>


CLI: Add -raintegration to the list

Sorry for not checking this repo, PR looks good! i'll merge it once the CI is finished.


cdc/sink: Kafka support user set configuration

What problem does this PR solve?

Issue Number: close #4385
What is changed and how it works?
Check List
Tests

Unit test

Code changes
Side effects
Related changes

Need to cherry-pick to the release branch
Need to update the documentation

Release note
allow user set the configuration of Kafka producer dial/write/read timeout

/run-all-tests

/run-all-tests

Please add release note in PR description.

/run-all-tests

/merge

/run-dm-integration-test
/run-kafka-integration-test

Codecov Report

Merging #4512 (08bea11) into master (9607554) will increase coverage by 0.0065%.
The diff coverage is 60.7204%.

Flag
Coverage Δ

cdc
60.3843% <67.0418%> (+0.4621%)
:arrow_up:

dm
51.6295% <53.4926%> (-0.3994%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #4512        +/-   ##
================================================
+ Coverage   55.6402%   55.6467%   +0.0065%
================================================
  Files           494        501         +7
  Lines         61283      62257       +974
================================================
+ Hits          34098      34644       +546
- Misses        23750      24156       +406
- Partials       3435       3457        +22

/run-dm-integration-test
/run-kafka-integration-test
/run-dm-compatibility-test
/run-integration-test

/run-all-tests


⚠ Bofrost.be has degraded performance

In e5b5119, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1235 ms

Resolved: Bofrost.be performance has improved in 85c7a36 after 8 minutes.


Cannot make Mingle Livewire Components Lazy

Getting these errors when trying to make a mingle component lazy.
<livewire:component-name :lazy="true"/>

I encountered this issue before, but since I didn't have much time to spend on it I realized that making my component lazy wasn’t necessary. Since Mingle boots the React component, I could “lazy load” the data by simply calling the desired method from React using props.wire.method();

Hello @andruu and @mrfelipemartins
Yeah, the Lazy part of not delaying the load can be solved by getting data from $wire.
Something algo good to have is a "placeholder" while the component is loading...
In this gif, you can see me refreshing the page (cmd+r), and I get a temporary component - like in Livewire

[!WARNING]
I've done this just in local code. Still not published. I now need to clean things and next few day's I'll ship it!


Avoid convert special link characters

In some languages, such as Persian and Arabic, the "json_encode" function converts links with special characters into unintelligible characters. Google identifies these links incompletely and registers as a 404 error for them in Google search console

Questions
Answers

Description?
I just add one argument to json_encode function

Type?
bug fix / SEO critical

BC breaks?
no

Deprecations?
no

Fixed ticket?
no

How to test?

Upload an image with Arabic or Persian name for a product
Goto above product page on FO
Inspect page and see image link in Js variables (in the script tag)

| Possible impacts? | No. after some time, you can see them on Google search console as a 404 pages (eg: "http://domain.com/1012-large_default")

Hi @nitronco thanks for telling us that! Do you think you could create a bug report about this https://github.com/PrestaShop/PrestaShop/issues/new?assignees=&labels=Bug%2CNew&template=1_bug_report.yml ?
This would help us track and monitor such issues in the future, and help us validate the PR

Hi @matks
Done
https://github.com/PrestaShop/PrestaShop/issues/29814

@nitronco thanks 😄
QA Team tried to reproduce your issue but could not, I'll wait for you and them to find how to exactly reproduce the problem

Unfortunately we were not able to reproduce the usecase, so we cannot validate a PR :( - we cannot validate PR A fixes bug B if we can't reproduce bug B
Since we had no news from you for more than 30 days, I will follow our guidelines and I'll close this pull request as it seems stale.
If we can find a way to reproduce https://github.com/PrestaShop/PrestaShop/issues/29814 we can reopen the PR.
Thank you for your time, and sorry it could not lead to something merged


chore: remove noise in cypress-tests

i needed to adapt a system-test for the first time and think it took me way longer to grok the details than it should have, because there are a lot of things going on that look significant - but are not. this is a first try to make those tests look nicer.

.should("exist") is the default assertion. let's make use of that to clean
stuff up.

timeouts were way to screamy for me to concentrate on what's actually
going on. so i set a new default in cypress.json:

-  "defaultCommandTimeout": 60000,
+  "defaultCommandTimeout": 180000,

that's the whole trick. setting a default of 3 minutes for any default operation seems like a lot, but was needed in the past for apps be "RUNNING" on CI.
yes, we're not distiguishing between things we anticipate to take longer and
things like a normal button click, but i think it's well worth the tradeoff of
having CI fail 2 minutes later if something is off.
given that we might change back to having a one minute timeout once jenkins is
fast enough again to get an app "RUNNING" within one minute, i see no obvious
drawbacks.
Testing
You might want to convince yourself that tests are failing if we get or contains for something that is not present.
Regarding the timeouts it should be sensible to make sure CI does not fail.

:tada: This PR is included in version 2.144.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix some issues

In this pull request, I added SAMPLE IF TRUE function. Issue #217. Also, I uncommented the sample if true test in the vensim integration file.
I added subscript numeric range support and a test to check it. Issue #251. So I make another pull request in test models repository to add a test model for subscript numeric range.
I changed the way to split arguments in visit_call function in expression grammar (line 961). In this way it is possible to define a function as a parameter of another. Solving issue #250. This way of splitting arguments had been done in julienmalard#1 but, I do not why, it was not finally added to PySD.

Coverage decreased (-1.0%) to 93.037% when pulling ce36612b8eaeff8f812a8d3d6f92e8f0d736e649 on marrobl:master into 3a87339e27d603a1d621a79b3f0b6fdf2c1dcb89 on JamesPHoughton:master.

Hi,
I have seen that continuous integration from Travis is falling. You may need to pull the last commit from the test-model repo and update it in the PySD branch.
There is also a loss of almost 1% of the coverage. Could you check if the new lines you added are tested? You can generate a report in HTML by running
nosetests --nologcapture --with-coverage --cover-package=pysd --cover-erase --cover-html

or
pytest --cov=pysd --cov-report html --cov-report term *.py


Decorators: Invalid or unexpected token

For example, try pasting this in:
import {reactive, signal} from 'classy-solid'
import {createEffect, batch} from 'solid-js'

@reactive
class MyClass {
  @signal foo = 1
  @signal bar = 2
}

const o = new MyClass()

createEffect(() => {
  console.log(o.foo, o.bar) // initially logs "1 2"
})

batch(() => {
  o.foo++
  o.bar++
})
// logs "2 3"

The current demo has
babelTransform({
  plugins: [['proposal-decorators', { version: '2023-11' }]],
  presets<EMAIL_ADDRESS>})

as its babel-transform configuration.
With this applied the following code works as expected:
import {reactive, signal} from 'classy-solid'
import {createEffect, batch} from<EMAIL_ADDRESS>
@reactive
class MyClass {
  @signal foo = 1
  @signal bar = 2
}

const o = new MyClass()

createEffect(() => {
  console.log(o.foo, o.bar) // initially logs "1 2"
})

batch(() => {
  o.foo++
  o.bar++
})
// logs "2 3"

Notice that I currently had to hard set both babel-preset-solid and solid-js to 1.8.22, otherwise the decorators got compiled but it wasn't reactive, possibly due to a version mismatch? The latest version of babel-preset-solid also causes issues when importing from esm.sh, but that is a separate issue.


Serve PitCrew UI

Relates to #50.

[ ] Serve PitCrew UI from server

Root for WebSocket endpoint, /ui for the Web interface
Configuration option to disable Web interface

[ ] Publish page from main instead of gh-pages branch

Publish to PitCrew
Add root index page

[ ] Update docs with both GitHub page and standalone serving

NetCoreServer is very limited and too low level for this. Switching to ASP.NET might be a better choice.
Docs: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-6.0


Bump k8s 1.16.2 and openshift/*

Rebase k8s to 1.16.2
Bump openshift/* to pull in k8s 1.16-related changes.

/assign @soltysh

/retest
infra flake

/assign @gabemontero


Update Ode.java

It's more friendly to display username instead of email

@GodUseVPN I don't believe this change will work. Unless the Gallery is enabled (which it is only on our public instance) we do not know the user name, so we don't have anything to display. The standalone code does not implement the Gallery (and will require significant work to include it).
-Jeff

Well,I have partially implemented GAE API used by the public instance, and I use QQ OAuth as authenticate module.The name field is used to display the QQ nickname,email is filled with uuid.So the name field is userfull for me,but it may be useless for others...

@GodUseVPN Are you adding support so that people can use their QQ account to login to App Inventor? If so, can you submit a PR to add that authentication code to App Inventor?

Not adding,I just replace the locale auth (login.jsp) with QQ auth.It may be useless outside China.
POC implement: http://app.wxbit.com/

@GodUseVPN Works fine here. I signed up for a QQ account, downloaded the App to my phone and was able to login to your site. Is your site based on the stand alone code, or something else. I noticed that you had the Gallery present, and we don't yet have it working in the stand alone code...

It's another stand alone implementation.I think implementing the GAE API used by AI is a better way then developing a stand alone branch.But the GAE Implementation like AppScale is too complicated.So, I check out the master branch and partially implement the GAE API for AI.Now, I have implemented the objectify and gcs api,not memcache, images and search api yet.

Very interesting. When I wrote the stand alone code, most of the work was replacing the ObjectifyStorageIo module with an equivalent (LocalStorageIo) that also implemented the StorageIo interface.
I have a new version I am working on that is horizontally scaleable, you can add more server to handle more users. It uses a key/value store which is also redundant and scaleable. It became feature complete over the weekend.

My implementation based on MySQL,almost make no change to the master code,except some "bugs" fixed,I'm not sure if they are bugs.

We believe this has been taken care of.


A "supported-releases" page to give a support timeline

As discussed in this morning's standup, here is a proposition for a new page that would live at https://cert-manager.io/docs/installation/supported-releases

🔰 https://deploy-preview-452--cert-manager.netlify.app/docs/installation/supported-releases/ 🔰

The page is inspired by Istio's https://istio.io/latest/about/supported-releases.
I also propose to have a "live" timeline where we can quickly edit the dates at the top of the biweekly dev meeting notes.

I also added links to this timeline table inside the "Supported releases" page:

Related:

https://kubernetes.io/docs/reference/using-api/deprecation-guide/

We'll also need to add a section to https://cert-manager.io/docs/contributing/release-process/ reminding us to update the supported releases page when there's a new major release

Documenting the state of the world today first may be beneficial, so that changes to the way we release can then be easily seen in a future PR? (aka "is this PR attempting to change how we support releases, or simply document it for now?)

I do not really know what is the "current" release support at the moment 😅

I'll move the "release branch" to a "For maintainers" paragraph at the very bottom to avoid confusing users. Would that be OK?

To me that makes sense 😄

Ready for a (hopefull last) review!! 🔥  @SgtCoDFish

Looks good now :+1:  my only concern is that we have 56 commits for a single page, which seems like a lot and will make it harder to browse the commit history. Would it be worth squashing the commits into 1 locally?

I squashed the whole thing into one nice commit!

/lgtm

/lgtm


Typescript not finding basic javascript methods

code-server version: 1.939
OS Version: OSX 10.13.6, Ubuntu 18.04

Description
When loading an react application with typescript, code-server throws error on:
Object => cannot find name 'Object'
Function => cannot find name 'Function'
document => cannot find name 'document', even thought dom is included in the lib of tsconfig
bind => bind does not exist on type ( id: string )=>void, is not recognizing that functions have the bind prototype
filter => filter does not exist on type {} event thought the variable is initialize as an array and type as an string[]
For context, the application is a react application created using create-react-app
tsconfig is the one that came prebuild:
This was tested on both Mac OSX 10.13.6 and Ubuntu 18.04 with 2 different react apps.
Note that it still compiles as expected, but the intellisense highlighter is reporting it as an error
One the desktop visual studio code, it will compile and  intellisense will not highlight these items
{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve"
  },
  "include": [
    "src"
  ]
}

Steps to Reproduce

run create-react-app to generate a react app with typescript

npx create-react-app bugs --typescript

create a interface or variable with type Object or Function

export interface iProps{
  test: Object;
  onChange: Function;
}

create a function, then call it with bind

const foo = ( echo:string ):string => echo;
foo.bind( this )( 'no' );

create an array and use the filter method

const foo: string[] = [ 'yes', 'no', 'maybe' ];
const yes = foo.filter( ( answer: string ):boolean => answer === 'yes' );

Can confirm the issue, as it affects me as well.     Windows 10 WSL (sshcode) ->  Ubuntu back end on an Angular/typescript project

Bumping down the typescript version to 3.3.3333  work around the issue for me.    However there still may be an issue with the code-server language files as I have 3.4.3 and 3.3.3333  installed by VSCode.
for reference how to workaround this see
https://stackoverflow.com/questions/53275853/visual-studio-code-showing-error-cant-find-name-date

@josephRice Thanks! bumping it down to 3.3.3333 and 3.1.1 worked, just had to also manually switch the version on the vs code bottom toolbar , since 3.4.3 still gets provided by vs code even if a new version is installed in the node module.

At the right bottom you can select the TypeScript version to use. Default the version of Code-Server is being used, which indeed gives this issue. Select 'Use Workspace Version' to use the TypeScript version used by your project

In the bottom right corner of the vscode, try to pick different version of the typescript.

Oh never mind, it was answered :) I guess this issue can be closed?


RFC: Introduce pipeline templates

Context and problem
The recent experiment with the d2d pipeline show that we face pipeline growth issues:

the pipeline grew big with many interdependent steps
it will be hard to add support for new tech stacks beyond Java and JS in such a long pipeline

Separetely some users are also confused about which (of the many) pipeline to use (for instance, should they use "scan codebase" or "scan package" or "scan codebase package"?) or some run all the pipelines instead to be "safe".
Therefore, we need to think about how we could evolve the architecture to be more modular and easier to evolve but also how the pipelines could be presented in a way that is easier for users.
Solution elements

To make it easier for end users we should provide fewer pipelines with better documentation and guidance.
To make pipelines more modular we should provide more smaller pipelines that we can easily compose.

The two approaches seem to conflict.
A possible simple initial implementation could be called "analysis templates" and may reconcile these:

Each template would have a name, description/help and a simple list of pipelines.
The UI would allow to select a template. Selecting a template would copy its pipelines to the project. Nothing else.
The rest of processing would be unchanged.
This could be a simple hardcoded list at first and could evolve in a Web UI configurable list stored in the DB and provided with defaults.

An example of such analysis template could be:

"Java web app": analyze a Java/JS web application source and binaries for package origins and licenses
With these pipelines:

"Extract inputs and create resources, apply ignores and ABOUT files"
"Map deployed Java binary files to their sources, scan deployed sources"
"Map deployed JavaScript files to their sources, scan deployed sources"
"Match code to the PurlDB"
"Lookup curated package data in reference DB"
"Perform housekeeping and tag problematic resources and packages"

Here the pipelines would be new smaller modular and composable pipelines, either extracted from existing ones, or created as new.
Note that in the future that some pipelines may be run in // like here with the map and match pipelines that are independent
Also another approach could be to provide ways to compose steps in the UI rather than only in code as we do today and leave pipelines as they are, just make it easier to create them. But this looks much more involved as this would be some meta programming of sorts.
Another example of such analysis template could be:

"Package vulnerabilities": Scan code for packages and lookup for their vulnerabilities
With these pipelines:

"Extract inputs and create resources, apply ignores and ABOUT files"
"Scan code for Package-URLs (ignoring licensing)"
"Lookup Package-URLs in VulnerableCode for vulnerabilities"
"Perform housekeeping and tag problematic packages"

Here some the pipelines are reused, and some are new.

thanks for providing the useful details here @pombredanne
I think that your "simple initial implementation of analysis templates" makes a lot of sense and is a good idea.


Get list of validators that couldn't run because of a parsing problem

Describe the problem
Currently this tool logs all validators that didn't run. We want to log a list of validators that couldn't run (because of a parsing problem, or any other problem.
In order to achieve https://github.com/MobilityData/gtfs-validator/issues/1536 and then https://github.com/MobilityData/gtfs-validator/issues/1485
Proposed solution
To do!
Alternatives you've considered
No response
Additional context
No response

@isabelle-dr @emmambd Just ask for clarification, does this tool only log the name of the validators that couldn't run due to parsing problem which generates a CsvParsingFailedNotice?

Hey @qcdyx! I'd recommend looking through the closed issues in the parsing errors label for more context. Particularly the PR @cka-y created here: https://github.com/MobilityData/gtfs-validator/pull/1526/files

Hey @isabelle-dr @emmambd could you provide some datasets that present the problem?

In which category would the validator generating route_color_contrast go for the two following use cases?
the data has routes.txt but no route_color
the data has routes.txt with route_color, although it’s not formatted properly
I suppose the feasibility depends on if we've been able to parse the components at all before the validation breaks...if we haven't, the user is essentially stuck with the full list to troubleshoot. (In this case, we could try to organize the error message into components so the user at least knows which validators to care about). Not sure how this works technically.
We have a route colors component, so
in scenario #1 - if we're able to evaluate that route colors component doesn't exist = route_color_contrast is in category #2.
in scenario #2, - if we're able to evaluate the route color does exist = route_color_contrast is in category #1

https://docs.google.com/spreadsheets/d/1iqvzJV_YWmFyYGtpbO2dqGMbf4XEjvar3rt9SxHU-xY/edit#gid=0
If GTFS component is not included, validation report should not be present to the users.

@qcdyx I'm not sure I understand your proposal here.  Based on your comment and what I also heard from Emma + Isabel, is your proposal to calculate the set of validators that did or did not run to compute a separate GTFS feed, validate that, and then compare the outputs?  This does not seem like a viable option to me.  I'm not sure why it's not more straightforward just to instrument the code to track what actually ran and what didn't for a single feed?

@qcdyx I'm not sure I understand your proposal here. Based on your comment and what I also heard from Emma + Isabel, is your proposal to calculate the set of validators that did or did not run to compute a separate GTFS feed, validate that, and then compare the outputs? This does not seem like a viable option to me. I'm not sure why it's not more straightforward just to instrument the code to track what actually ran and what didn't for a single feed?

Hello @bdferris-v2 I go ahead with your proposal and added singleFileValidatorsWithParsingErrors and singleEntityValidatorsWithParsingErrors. The console output is changed to "Some validators were skipped because the GTFS files they rely on could not be parsed" and displays Multi-file validators, Single-file validators and Single-entity validators with parsing errors


js controller 3.3 compatibility - State type issues

After updating from js-controller 3.2.16 to 3.3.8, the adapter still reporting State type issues like other adapter which are mostly fixed.
`

synology.0
2021-05-11 07:10:11.995
info
(1333) State value to set for "synology.0.SurveillanceStation.HomeMode.geo_lng" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.960
info
(1333) State value to set for "synology.0.SurveillanceStation.HomeMode.geo_lat" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.886
info
(1333) State value to set for "synology.0.SurveillanceStation.HomeMode.onetime_enable_on" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.884
info
(1333) State value to set for "synology.0.SurveillanceStation.HomeMode.onetime_disable_on" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.863
info
(1333) State value to set for "synology.0.SurveillanceStation.HomeMode.notify_on" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.862
info
(1333) State value to set for "synology.0.SurveillanceStation.cameras.IN-9020-01.port" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.861
info
(1333) State value to set for "synology.0.SurveillanceStation.cameras.IN-9020-01.id" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.859
info
(1333) State value to set for "synology.0.SurveillanceStation.info.remindQuickconnectTunnel" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.859
info
(1333) State value to set for "synology.0.SurveillanceStation.info.enableVideoRelay" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.858
info
(1333) State value to set for "synology.0.SurveillanceStation.info.maxCameraSupport" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.857
info
(1333) State value to set for "synology.0.SurveillanceStation.info.liscenseNumber" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.856
info
(1333) State value to set for "synology.0.SurveillanceStation.info.isLicenseEnough" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.855
info
(1333) State value to set for "synology.0.SurveillanceStation.info.cameraNumber" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.854
info
(1333) State value to set for "synology.0.FileStation.info.uid" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.852
info
(1333) State value to set for "synology.0.FileStation.info.support_virtual.enable_remote_mount" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.852
info
(1333) State value to set for "synology.0.FileStation.info.support_virtual.enable_iso_mount" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.851
info
(1333) State value to set for "synology.0.FileStation.info.support_vfs" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.850
info
(1333) State value to set for "synology.0.FileStation.info.support_sharing" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.849
info
(1333) State value to set for "synology.0.FileStation.info.support_file_request" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.848
info
(1333) State value to set for "synology.0.FileStation.info.items.2" has to be type "string" but received type "object"

synology.0
2021-05-11 07:10:11.847
info
(1333) State value to set for "synology.0.FileStation.info.items.1" has to be type "string" but received type "object"

synology.0
2021-05-11 07:10:11.846
info
(1333) State value to set for "synology.0.FileStation.info.items.0" has to be type "string" but received type "object"

synology.0
2021-05-11 07:10:11.846
info
(1333) State value to set for "synology.0.FileStation.info.is_manager" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.844
info
(1333) State value to set for "synology.0.FileStation.info.enable_list_usergrp" has to be type "string" but received type "boolean"

synology.0
2021-05-11 07:10:11.843
info
(1333) State value to set for "synology.0.DiskStationManager.info.serviceVolSize" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.841
info
(1333) State value to set for "synology.0.DiskStationManager.info.uptime" has to be type "string" but received type "number"

synology.0
2021-05-11 07:10:11.840
info
(1333) State value to set for "synology.0.DiskStationManager.info.temperature_warn" has to be type "string" but received type "boolean"

`

I have the same problem, see this.
The supposedly modified version is not available.


Centering of elements with odd pixel width / height looks off

http://share-elm.com/sprout/53fe3a0ee4b0d19703e96be3
I expect this code to generate a white square with a 1 pixel black border, as I'm adding an extra two pixels to the width and height and placing a white spacer in the center:
import Window

main =
  let inner = color white (spacer 30 30)
      bordered = container (widthOf inner + 2) (heightOf inner + 2) middle inner
              |> color black
      layout (w,h) = container w h middle bordered
  in layout <~ Window.dimensions

Instead, I get, on Chrome:

This is latest Chrome build 36.0.1985.143. This is a Macbook Air with a non-retina display. Specs.
On Safari, there seems to be a similar issue, but it's not noticeable unless I zoom in:

And in Firefox, it looks like what I expect, even on zoom:

Not sure if this is still relevant, but I am trying to make all the issues here directly about elm-compiler. If you can reproduce this please open an issue or PR on elm-lang/core
Mentioning elm-lang/core#332 so folks can find this more easily.


Use selected time range for metaqueries in DE

Closes #12779
Closes #11535

Connect https://github.com/influxdata/flux/issues/1071


Why are not all android actions supported?

Hi @darryncampbell,
Thanks for the great work. This plugin worked but we needed to send an implicit intent to another app using action FLAG_ACTIVITY_NEW_TASK  or ACTION_MAIN, but could not find these actions.
Please let us know if there is any specific reason why these are not supported?
Or if we fork your plugin and add these actions would they work?
Thanks a lot,
SK

FLAG_ACTIVITY_NEW_TASK is a flag, not an action... you can specify flags but I can't find a sample...  but you should be able to define an int array of flags that will be processed by https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/blob/master/src/android/IntentShim.java#L521 e.g. for flag_activity_new_task put flags: [268435456] in your JSON object.
The action is just a string so you can specify android.intent.action.MAIN for ACTION_MAIN

Thanks a lot @darryncampbell  we will try and update, but its good to hear that you think its possible.


Training advise with swin_transformer - initialization with GELU, etc.

Hi,
I've been setting up with swin_transformer but having a hard time getting it to actually train.
I figured one immediate issue is the lack of init, so I'm using the truncated init setup from rwightman/pytorch he used in ViT impl since that also uses GELU.
But regardless, I'm not able to get it to learn atm even after testing out a range of lr.
Thus wondering if anyone has found some starting hyperparams and/or init method, to get it up and training?

After some fiddling, I've finally got one up and training!  (lr = 3e-3, ViT style weight init, AdamW optimizer).
Whether this is optimal is hard to say but compared to the earlier flatlines, this is a big improvement.

Cool! Would be great to keep us posted on whether you could replicate the results!

I overlooked this (that they add a global average pooling layer) so that's a key difference and that they had published their params (AdamW, 3e-1 learning rate, etc).  Will add and test:

nvm, global avg pooling is already in the impl now with this line:

I tested with both gradient clipping as in the paper and with adaptive gradient clipping.
Results were nearly identical in terms of validation loss (technically hard clipping at 1.0 as in the paper was the winner, but since I only ran 1x it seems within random range of each other).
As a final test, I'm running with the new FB AI MADGRAD optimizer which seems to outperform on transformers.

Hi, I want to use swin transformer to replace feature pyramid net, what should I do to modify the code?

so madgrad blew away all my previous results, nearly an 18% improvement for the same limited run time (22 epochs).
my friend also tested on tabular data and had similar results, with madgrad blowing away his previous benchmarks...
their weight decay is not implemented adamw style though, so I've adjusted and testing that now to see if that helps at all.

Exciting! Thanks for keeping us posted ...

Running madgrad with AdamW style decay and using similar decay as for AdamW so far has been the best results (slightly better accuracy and loss vs no weight decay or minor weight decay).

Thanks for sharing the experiments. I also tried a simple classification but couldn't work. I would appreciate if you can have some advices:
model_ft = swin_l(hidden_dim=192, layers=(2, 2, 18, 2), heads=(6, 12, 24, 48),
channels=3, num_classes=2,
head_dim=32, window_size=7,
downscaling_factors=(4, 2, 2, 2),
relative_pos_embedding=True)
nn.CrossEntropyLoss()
optim.AdamW(model_ft.parameters(), lr=3e-3)

Hi @yueming-zhang,
Did you use any type of lr warmup and schedule?  I did use a linear one as did the swin authors per their paper and then a cosine type decay.  That might dampen the wild swings you are showing in the first 15 epochs there.
Also, if you go more than say 10 epochs with a flat val loss, you should stop training and save your gpu time :) It's unlikely to get better so faster to stop and reset params.
Secondly, I would recommend trying madgrad instead of AdamW - I just posted madgrad with adamW style decay here:
https://github.com/lessw2020/Best-Deep-Learning-Optimizers/tree/master/madgrad
but you could test with weight_decay=0 to start to keep it simple.  Just see if that helps.
Anyway, that would be my first two recommendations:
1 - do a warmup and then either a cosine or step decay for the lr.  Just running flat rate lr probably won't go well.
2 - maybe try madgrad, mostly b/c my val accuracy jumped 18%+ just from that change alone.

appreciate your response @lessw2020 , I tested AdamW with my custom scheduler and yield following result. (note the very small LR). Seems there is a negative correlation between LR and Accu. I briefly tested the madgrad, but the result is not ideal.

@lessw2020 Could you share how do you implement the above discussion in the code?

@yueming-zhang I met the same situation as above, could you tell me how do you solve that and do you use any pre-trained weight?

Hi jm-R512,
All I did was use cosine LR schedule and started with a very low rate. I didn't use the pre-trained weight.

Thank you @lessw2020 AdamW optimizer has very good affect on training, do you've any further suggestions for improvements.