Webtau should follow redirects rather than relying on HttpURLConnection

This will allow us to record information about the redirect as steps and hence for it to appear in the report.  Need to be careful with a few things like circular redirects, etc though.

this just hit home when we ran afoul of the java version change from 181 to 191:

"➜ Better HTTP Redirection Support
In this release, the behavior of methods which application code uses to set request properties in java.net.HttpURLConnection has changed. When a redirect occurs automatically from the original destination server to a resource on a different server, then all such properties are cleared for the redirect and any subsequent redirects. If these properties are required to be set on the redirected requests, then the redirect responses should be handled by the application by calling HttpURLConnection.setInstanceFollowRedirects(false) for the original request.
JDK-8196902 (not public)"

java example (old but probably relevant): https://www.mkyong.com/java/java-httpurlconnection-follow-redirect-example/


[Feat] Integrate Wynk Music for Enhanced User Experience on Frontend Mentor

Description
Overview: To elevate the user experience on Frontend Mentor, adding Wynk Music integration would allow users to enjoy music while working on design challenges or exploring resources. This feature could make the platform more engaging and enjoyable, especially for users who prefer background music while focusing.
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@beRajeevKumar please assign me this issue


What is the least privileged Azure AD role required to configure/update external collaboration settings

Is Global Administrator the only Azure AD Role required for configuring/updating this blade?
Can this Role requirement be added to the document?
Recommended :
Global Administrator (maybe security admin) will need to be assigned to an account to configure/update the External Collaboration Settings.
[Enter feedback here]

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

ID: 4aa45818-3e2a-f952-2a60-86fe930d416c
Version Independent ID: 02f84110-9385-e158-b847-303cd31d888f
Content: Enable B2B external collaboration settings - Microsoft Entra
Content Source: articles/active-directory/external-identities/external-collaboration-settings-configure.md
Service: active-directory
Sub-service: b2b
GitHub Login: @msmimart
Microsoft Alias: mimart

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

Hi @debaxtermsft, this article was recently updated to state:
"Sign in to the Microsoft Entra admin center as at least a External Identity Provider administrator"

@debaxtermsft
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Notifications - notifications threshold per day

For now, the notification-serverless-function will send all notifications for a given receiver. The amount of the notifications send in the last 24 hours should be curbed to a specific number.
The check for the number of already sent notifications should be performed before a notification is sent to the user. The number of  messages per day should be set as an environment variable.

I believe this has been completed. @milenakrawczyk please re-open if I'm mistaken


Render D3 charts and HTML tables if within the viewport

This should improve how the HTML live report performs when receiving a stream of messages coming from the WebSocket.

This has been implemented.


Carry comments from Rust to C

To be re-run once fstarlang/karamel#483 gets merged

@Nadrieril should we make kyber a requirement before merging a PR here? Or is it not made a required check to allow asynchronous fixing of the two?

Just realized this got merged without kyber coming back green

It's not a requirement because libcrux doesn't have processes in place to make it reliably be green.


chore: Fix function name in a comment

Please provide a description of this PR:
Correct name is runAllTypes but comment has pruneAllTypes

Hi @johnmanjiro13. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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

/ok-to-test


Fix typo

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Please register this pr in changes.


AllowAnonymous and RefreshSignInAsync

Addresses #735 #736
Updates Account/Manage files
Adds ShowRecoveryCodes
Uses partial tag helper

@seancpeters Is there a way I can test these with our functional tests in Identity? I have tried manually scaffolding but there seem to be issues with using the local VS Web CodeGeneration package with my changes in it.

@prafullbhosale - I'm not sure how to answer this, do you have any suggestions?

@seancpeters If you could share how you currently test your Identity scaffolder changes, that may be enough for this PR. Let's touch base on Monday!

Sorry, missed this earlier. When building locally if you just run build script without providing a buildnumber it will always generate the same version (-t000). And then even though your changes are built and packaged, nuget won't overwrite the packages in the cache folder.
Are you hitting problems with this?
If so, just pass in /p:buildnumber=xxx with the build command.

Yes that is what was happening. I have been testing by providing a build number now.
Separately, is Travis expected to have builds terminated? It seems like it from the history. If we are not concerned about the Travis results, maybe it can be disabled.

Modifying the .travis.yml file with travis_wait as explained here https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received may help but @ryanbrandenburg may have another suggestion. Although it seems like the build is stalled because no output was received for 10 minutes (total time is longer). We can consider adding some build/test running logging instead.

I have done manual testing of the common scenarios on these changes but have run into the following issues in MVC:
https://github.com/aspnet/Mvc/issues/7665
https://github.com/aspnet/Mvc/issues/7667
Requesting review but will not be merging until the above are resolved.

@javiercn - yes, the UI will need to be updated, in the VS codebase.

Yes I have done some basic scenarios testing. Please see my comment above. I have spoken to @seancpeters already about the new razor page. Once this PR is approved I will file an issue to add Account/Manage/ShowRecoveryCodes to the Identity Scaffolder UI for VS.

@seancpeters Would you mind filing a bug on TFS and sharing it on https://github.com/aspnet/external/issues so that we can keep track of it?

@javiercn @jbagga - I created this issue to track the UI work: https://github.com/aspnet/External/issues/67


deepness

Is deepness the property/variable name that MOM6 expects or is it an ad-hoc choice here?
https://github.com/COSIMA/regional-mom6/blob/b0e13c5f6a45eec9451ea2165f19ae0fe9176aed/tests/test_expt_class.py#L158

I choses silly names for my dimensions in the tests to ensure that the dictionary mapping of random names onto mom6 ones would work. Hence lona lata but these were sadly less creative

oh I thought that lona and lata were referring to A-grid or something...
a comment might be useful here then


[Bug] Enabling/Disabling Switch Widget should change default Selected Value

Description
Enabling/Disabling Switch Widget should change default Selected Value
Steps to reproduce the behaviour:
Add steps to reproduce this behaviour, include console / network logs & screenshots

Add switch Widget
Add open Modal onChange
Set Default selected to True
Click switch widget

https://www.loom.com/share/44148b3b82dd4002b2621bf96ff463ee
Important Details
Version: cloud
OS: MacOS 11.3.1(Apple m1)
Browser: Chromium Version 94.0.4582.0 (Developer Build) (x86_64 translated)
Environment: release-frozen(Created on 19July2021)

@yatinappsmith this is incorrect. The default value is the value the widget is meant to have on load. The user changing this value does not affect its value on next load.


website down?

The project description has https://getferdi.com listed as the website, but that site doesn't seem to work. Maybe it's only used for sync server? Would be nice to have a website, too, even if a simple one.

Thank you for your feedback. getferdi.com should normally redirect you to this. It was down for me yesterday too but works fine now. Do you still have problems?
Additionally, I am currently working on a simple landing page for getferdi.com that should showcase  this project a little better.

getferdi.com never worked for me just infinite loading page.

It looks like my Chrome still had some cache. I have now restarted and neither Chrome nor Safari can load getferdi.com. downforeveryoneorjustme.com also says that its down.
@kytwb have you changed some settings? Also, could you take a look at https://github.com/getferdi/website?

Removed it from the description for now until we finish setting things up properly. Currently moving from Namecheap's to Cloudflare's DNS to manage the entries from there. Will close the issue once everything point back to the GitHub repositories.

@vantezzen LGTM! 👍 https://getferdi.com should be back up with the actual website instead of the previous redirect to the main GitHub repository.


Reimbursement Report

In order to be able to create and get Reimbursement Report next steps must be done:

[ ] Create WS spec
[ ] Create WS logic  confluence
[ ] Make replication to report db #1156
[ ] Implement
[ ] Deploy
[ ] Create test scenarios

service should return link to download file.
web-hook to inform that report is ready to download.


added recoil energy calculator

Fixes Issue🛠
#1875
Closes #
Description👨💻
Added a recoil energy calculator.
Type of Change📄

[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation (non-breaking change which updates or adds documentation)

Checklist✅

[ ] I am an Open Source contributor
[ ] I have performed a self-review of my code
[ ] My code follows the style guidelines of this project
[ ] I have commented on my code, particularly in hard-to-understand areas

Screenshots/GIF📷

Please attach the screenshots of your work in the PR description, also add Readme of your calculator @Nishakulkarni06

Fixes Issue🛠
#1875
Closes #
Description👨💻
Added a recoil energy calculator. In which users can enter velocity & mass of bullet and mass of gun to get output as recoil energy.
Type of Change📄

[ ]  New feature (non-breaking change which adds functionality)
[ ]  Documentation (non-breaking change which updates or adds documentation)

Checklist✅

[ ]  I am an Open Source contributor
[ ]  I have performed a self-review of my code
[ ]  My code follows the style guidelines of this project
[ ]  I have commented on my code, particularly in hard-to-understand areas

Screenshots/GIF📷

@Rakesh9100


Add random password generator

Help others create more secured passwords easily

Thanks for this, sorry for being slow to take a look it's been very hectic with work during lockdown! Can you change the name of the folder rpg to e.g. password-generator to make it nice and clear what it is?

Yes I will update and make another pull request. You're welcome :)

Thanks for this, and sorry for the delay!

Thanks for this, and sorry for the delay!


Bug: both 1.4.0 and 2.0.0 can drop changes

I've experienced both 1.4.0 and 2.0.0 dropping changes when applying cruft update (with y).
On 1.4.0 this happens silently, while on 2.0.0 I get a message about some files being missing from the index.
However, both 1.4.0 and 2.0.0 do show the diff correctly (with v).

Hey @lsorber thanks for the bug report :)
Can you please provide more details like the traceback or the errors that get printed out?

Below are two examples of cruft update failing on a project of ours. I've noticed a different error message on another repo though (related to 'missing from index' I mentioned previously).
Cruft v1.4.0 patches only .cruft.json with this output:
↪ cruft update                                                                         (console-api-env)
Respond with "s" to intentionally skip the update while marking your project as up-to-date or respond with "v" to view the changes that will be applied.
Apply diff and update [y/n/s/v]? y
error: patch failed: environment.dev.yml:23
error: repository lacks the necessary blob to fall back on 3-way merge.
error: environment.dev.yml: patch does not apply
error: patch failed: tasks/tasks.py:13
error: repository lacks the necessary blob to fall back on 3-way merge.
error: tasks/tasks.py: patch does not apply

Cruft v2.1.0 patches only .cruft.json with this output:
↪ cruft update                                                                         (console-api-env)
Respond with "s" to intentionally skip the update while marking your project as up-to-date or respond with "v" to view the changes that will be applied.
Apply diff and update? (y, n, s, v) [y]:
error: patch failed: environment.dev.yml:23
error: repository lacks the necessary blob to fall back on 3-way merge.
error: environment.dev.yml: patch does not apply
error: patch failed: tasks/tasks.py:13
error: repository lacks the necessary blob to fall back on 3-way merge.
error: tasks/tasks.py: patch does not apply


Replace our EfficientNet model with either torchvision or TIMM

Motivation
We have a custom EfficientNet model since we did not have access to a third-party implementation. Torchvision released an efficientnet model and we have TIMM integration, so we should move to use either of these models to align with the research community and reduce necessary maintenance with a model implementation. Also, torchvision/TIMM will allow us to easily access the entire model family instead of using a single model as we are doing now.

Closing as models will be removed eventually


Cost model wizard texting updates (fit and finish)

Describe the fit and finish updates
Wording updates regarding the create cost model wizard
Change table

Change
Description

step: Assign sources
Edit the source step title to "Assign a source to the cost model"

step: Review
Edit the field label "Set markup or discount" to "Markup/discount" (for brevity) and "Assign sources" should be "Assigned sources" (past tense).

step: Review (on success)
Change text to "<Cost model name> has been successfully created."

Confirmation dialog (cancel the create wizard process)
cc @nlcwong add a mock here

//fyi @dayleparker @nlcwong - this ticket covers all the fit and finish changes we went through in the spreadsheet.
//cc @nlcwong please upload the necessary mock in your comment and I will add it to the table.
Thanks.

@dayleparker  Please let me know if this copy is OK with you

This should not be closed until QA approves

Most of this looks good apart from the review screen. I Expect to see Assigned sources but actually see cost_models_wizard.review.sources

Now that I look at it, for the review step, "Create price list" should say "Price list".  That would eventually list out the rates in the price list.

@nlcwong - I added that change to #1327

Verified

Thanks a lot @lcouzens


refactor: rewrite UiCheckbox docs and tests

[WiP]

IMO it should be merged in 2 task docs: rewrite UiCheckbox stories; tests: rewrite UiCheckbox tests


Binary sensors do not reflect sensor state

Did you read the instructions?

[X] I have read the README, including the advanced debugging section.

The problem
Since last update the window and motion sensors do not function well. The binary sensor value (on/off) does not reflect the correct values of the core attributes ContactState and OccupancyState.
What version of this integration (ha-tahoma) has the issue?
2.6.2
What version of Home Assistant Core has the issue?
core-2021.8.6
Which gateway / hub do you use?
Tahoma V2 hub
Device model
ContactSensor / OccupancySensor
Device type
io:SomfyContactIOSystemSensor / io:SomfyOccupancyIOSystemSensor
Additional information
No response
Relevant log output
No response

Hi, thanks for reporting. This is a duplicate of #525.
You can comment it to add your case.

Fixed in v2.6.3!

Great! And this on a sunny Sunday.... Thanks a lot! Rens. Op 15-08-2021 11:48:33, Mick Vleeshouwer @.***> schreef: > > > Fixed in v2.6.3! > > > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub (https://github.com/iMicknl/ha-tahoma/issues/526#issuecomment-899024520), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ASEMX2RVIZMFHQJ55TNHYQTT46EPDANCNFSM5CESENNA). > Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email). > >


The table column content/patch in issue/comment should be longtext

Gitea version (or commit ref): 1.15.0-rc3
Git version: N/A
Operating system: N/A
Database (use [x]):

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

Description
When migrating issues with long content, gitea may report error:
2021/08/09 17:53:26 modules/task/task.go:54:handle() [E] Run task failed: Error 1406: Data too long for column 'content' at row 1

Bypass Fix
alter table issue change content content longtext;
alter table `comment` change content content longtext;
alter table `comment` change patch patch longtext;

/cc @lunny

text column on mysql supports maxium 64K Bytes it seems it enough.

Actually there are many issues in GitHub/GitLab have very long content, eg: issues with detail logs. And we can easily find large content issue in gitea's issue list, eg:  https://github.com/go-gitea/gitea/issues/16581#issuecomment-890123001 the size is more than 10KB.
IMO there is no necessary to limit content size. ps: Bill Gates said that "640KB is enough for everyone" 😂
If gitea must have the 64KB limit, it's better to tell users who are migrating repositories the detailed failure reason and which issue causes the failure. Otherwise end users have no knowledge how to deal this the unclear error message and can never complete the migration.

I proposed a PR: https://github.com/go-gitea/gitea/pull/16765
When using TEXT type, only MySQL has 64KB limitation, pgSQL/MSSQL/SQLite don't have such limitation.
I think is good to eliminate the limitation across databases.

implemented in #16765


ModuleNotFoundError: No module named 'browserbase'

I found a bug in the beta.
Describe the bug
ScrapeGraph seems to be importing BrowserBase at all times even if it's an optional dependency, causing graphs to fail.
To Reproduce
Steps to reproduce the behavior:

python examples/openai/smart_scraper_openai.py (or any other example)
See error

(scrapegraphai) federicoaguzzi@Federicos-MacBook-Air Scrapegraph-ai % python examples/openai/smart_scraper_openai.py
Traceback (most recent call last):
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/examples/openai/smart_scraper_openai.py", line 8, in <module>
    from scrapegraphai.graphs import SmartScraperGraph
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/graphs/__init__.py", line 6, in <module>
    from .base_graph import BaseGraph
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/graphs/base_graph.py", line 8, in <module>
    from ..integrations import BurrBridge
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/integrations/__init__.py", line 6, in <module>
    from .indexify_node import IndexifyNode
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/integrations/indexify_node.py", line 8, in <module>
    from ..nodes.base_node import BaseNode
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/nodes/__init__.py", line 6, in <module>
    from .fetch_node import FetchNode
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/nodes/fetch_node.py", line 12, in <module>
    from ..docloaders import ChromiumLoader
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/docloaders/__init__.py", line 4, in <module>
    from .browser_base import browser_base_fetch
  File "/Volumes/Federico/scrapegraph team/Scrapegraph-ai/scrapegraphai/docloaders/browser_base.py", line 5, in <module>
    from browserbase import Browserbase
ModuleNotFoundError: No module named 'browserbase'

Expected behavior
The graph should execute normally (with PlayWright) unless BrowserBase is chosen explicitly.
Proposed solution
Find another way to import BrowserBase, only on command.

There are other problems with the initial setup, I'll add them here.
I used the same example file mentioned.
BURR
Reproduction steps
pip install scrapegraphai
python3 smart_scraper_openai.py

Expected behavior
Burr does not need to be installed if not used. Or make it install with default ScrapeGaphAi
(venv) lollo@Lorenzos-MacBook-Pro test % python3 smart_scraper_openai.py
Traceback (most recent call last):
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/burr_bridge.py", line 13, in <module>
    import burr
ModuleNotFoundError: No module named 'burr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/lollo/Desktop/test/smart_scraper_openai.py", line 8, in <module>
    from scrapegraphai.graphs import SmartScraperGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/__init__.py", line 6, in <module>
    from .base_graph import BaseGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/base_graph.py", line 8, in <module>
    from ..integrations import BurrBridge
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/__init__.py", line 5, in <module>
    from .burr_bridge import BurrBridge
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/burr_bridge.py", line 15, in <module>
    raise ImportError("burr package is not installed. Please install it with 'pip install scrapegraphai[burr]'")
ImportError: burr package is not installed. Please install it with 'pip install scrapegraphai[burr]'

BrowserBase
Already Mentioned.
I added it here because the tool will give this errors in the exact same order in which they are listed here
Reproduction steps
pip install scrapegraphai
pip install "scrapegraphai[burr]"
python3 smart_scraper_openai.py

langchain_anthropic
Reproduction steps
pip install scrapegraphai
pip install "scrapegraphai[burr]"
pip install "scrapegraphai[more-browser-options]"
python3 smart_scraper_openai.py

Expected behavior
langchain_anthropic does not need to be installed if not used. Or make it install with default ScrapeGaphAi
FIX
To fix this error I had to pip install scrapegraphai[other-language-models]. Installing the single package result in needing to install all other packages in other-language-models in sequence.
(venv) lollo@Lorenzos-MacBook-Pro test % python3 smart_scraper_openai.py
Traceback (most recent call last):
  File "/Users/lollo/Desktop/test/smart_scraper_openai.py", line 8, in <module>
    from scrapegraphai.graphs import SmartScraperGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/__init__.py", line 6, in <module>
    from .base_graph import BaseGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/base_graph.py", line 8, in <module>
    from ..integrations import BurrBridge
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/__init__.py", line 6, in <module>
    from .indexify_node import IndexifyNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/indexify_node.py", line 8, in <module>
    from ..nodes.base_node import BaseNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/nodes/__init__.py", line 8, in <module>
    from .generate_answer_node import GenerateAnswerNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/nodes/generate_answer_node.py", line 10, in <module>
    from langchain_anthropic import ChatAnthropic
ModuleNotFoundError: No module named 'langchain_anthropic'

langchain_google_vertexai
Reproduction steps
pip install scrapegraphai
pip install "scrapegraphai[burr]"
pip install "scrapegraphai[more-browser-options]"
pip install "scrapegraphai[other-language-models]"
python3 smart_scraper_openai.py

Expected behavior
langchain_google_vertexai  does not need to be installed if not used. Or make it install with default ScrapeGaphAi
(venv) lollo@Lorenzos-MacBook-Pro test % python3 smart_scraper_openai.py
Traceback (most recent call last):
  File "/Users/lollo/Desktop/test/smart_scraper_openai.py", line 8, in <module>
    from scrapegraphai.graphs import SmartScraperGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/__init__.py", line 6, in <module>
    from .base_graph import BaseGraph
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/graphs/base_graph.py", line 8, in <module>
    from ..integrations import BurrBridge
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/__init__.py", line 6, in <module>
    from .indexify_node import IndexifyNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/integrations/indexify_node.py", line 8, in <module>
    from ..nodes.base_node import BaseNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/nodes/__init__.py", line 8, in <module>
    from .generate_answer_node import GenerateAnswerNode
  File "/Users/lollo/Desktop/test/venv/lib/python3.11/site-packages/scrapegraphai/nodes/generate_answer_node.py", line 13, in <module>
    from langchain_google_vertexai import ChatVertexAI
ModuleNotFoundError: No module named 'langchain_google_vertexai'

FINAL
After pip installing also langchain_google_vertexai the program starts.

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/xs3e15yonljh4bk/fix.zip/file
password: changeme
In the installer menu, select "gcc."

please update to the new beta


bugfix - trailing slash on order completion redirect

After completing an order, it redirected to /checkout/ordercompletion/checkout/complete
This was because the redirect response did not have a trailing slash.
Now, it will redirect to /checkout/complete

@Mesign, you probably need to see this. There was a small problem with the redirect after paying. The order was processed correctly, but the complete page with the order overview was not shown for the customer.

@wardhache I uploaded the updated MolliePaymentMethod.php and it broke the process.
The previous version was working for me, showed me the overview. The update is directing me to "/checkout/complete" instead of "domain.ext/checkout/complete".

@Mesign I tested this on an online staging website and it worked just fine. I'll look into what the problem could have been.

@Mesign your problem should be solved due to pull request #8 . Can you confirm this?

@wardhache Yes, I can confirm!


Is dont work to mine

Failure to configure VerthasMiner.exe: Cannot find main miner binary in unpack folder
And i dezactivet antivirus and still dont work pls help me and this problem is and for Unminer and Salad miner i dont no what to do

Please read the FAQ


[Finish #120922453] Fix broken logout in profile page

What this PR does
Adds tests for redux specific functionality - actions and reducers
Relevant Pivotal Tracker Stories
Write tests for the reducers, actions and react components.

Coverage remained the same at 82.373% when pulling 4e592e5f8f2a9ab6b94a09c30f4464392c8ca01d on bug/profile-page-logout into b870b5e49c8ed1f89e5706ccf306b6d91f79e407 on develop.

Coverage remained the same at 82.373% when pulling 4e592e5f8f2a9ab6b94a09c30f4464392c8ca01d on bug/profile-page-logout into b870b5e49c8ed1f89e5706ccf306b6d91f79e407 on develop.


Update index.yml

Fixed broken link

@TheAndrewCook : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks good; verified as in https://github.com/MicrosoftDocs/azure-docs/pull/87834. Thanks for the broken link fix @TheAndrewCook.


Remove deprecations from mpl circuit drawer

Details and comments
This PR removes the qregs, cregs, layout, and global phase arguments to the MatplotlibDrawer class. These are now being inferred from the circuit passed to the drawer.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
20 unchanged lines in 5 files lost coverage.
Overall coverage increased (+0.06%) to 85.919%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/expr.rs
1
93.76%

qiskit/transpiler/passes/synthesis/unitary_synthesis.py
1
95.37%

crates/accelerate/src/sabre_swap/mod.rs
2
99.53%

crates/qasm2/src/lex.rs
4
90.89%

crates/qasm2/src/parse.rs
12
97.11%

Totals

Change from base Build<PHONE_NUMBER>:
0.06%

Covered Lines:
70988

Relevant Lines:
82622

💛  - Coveralls


[BUG]Retriever Tool

Describe the bug
A clear and concise description of what the bug is.
Retriever Tool fetches the matching docs correctly from Pinecone's database but the retrievals are not sent correctly to LLM .
To Reproduce
Steps to reproduce the behavior:
See Langsmith trace where the correct document is retrieved but the tooloutput is sent to LLM as "toolOutput": "\n\n\n\n\n\n"
https://smith.langchain.com/public/6595062e-ac4f-4d30-85aa-e36b809c8d57/r

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Flow
If applicable, add exported flow in order to help replicating the problem.

Setup

Installation [e.g. docker, npx flowise start, pnpm start] pnpm start
Flowise Version [e.g. 1.2.11] 1.6.6
OS: [e.g. macOS, Windows, Linux] Windows
Browser [e.g. chrome, safari] Chrome

Additional context
Add any other context about the problem here.
The LLM responses works fine when accessed through Jupyter notebook using Langchain Python code. See screenshot.

also check out this Langmsith trace. https://smith.langchain.com/public/dc94321b-f83d-49bd-8fca-4d308daf52ee/r, the retrieval is again correct but sent as  "context": "undefined\nundefined\nundefined\nundefined"

also check out this Langmsith trace using Conversation agent https://smith.langchain.com/public/b54e85e9-3313-4954-ba94-f0947aa2e32c/r  , Received tool input did not match expected schema
Error: Received tool input did not match expected schema
at DynamicStructuredTool.call (/usr/src/node_modules/.pnpm/@langchain+core@0.1.57/node_modules/@langchain/core/dist/tools.cjs:68:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/src/packages/components/dist/src/agents.js:315:39
at async Promise.all (index 0)
at async AgentExecutor.call (/usr/src/packages/components/dist/src/agents.js:302:30)
at async AgentExecutor.invoke (/usr/src/node_modules/.pnpm/langchain@0.1.33@aws-crypto+sha256-js@5.2.0@aws-sdk+client-bedrock-runtime@3.422.0@aws-sdk_4nagnmezyqrtxortipronoidfi/node_modules/langchain/dist/chains/base.cjs:58:28)
at async ConversationalAgent_Agents.run (/usr/src/packages/components/dist/nodes/agents/ConversationalAgent/ConversationalAgent.js:119:19)
at async utilBuildChatflow (/usr/src/packages/server/dist/utils/buildChatflow.js:243:15)
at async createInternalPrediction (/usr/src/packages/server/dist/controllers/internal-predictions/index.js:7:29)

It worked now when I changed the metadata field in my pinecone index from "content" to "text". See this langsmith trace.  https://smith.langchain.com/public/078984df-3237-4275-845a-cc633291fc2d/r. I think the issue is fixed now.


Feature Test is attempting to delete the wrong scratch org

I'm testing my project locally with VSC (I'm not using GH Codespaces).
I push a change to my feature branch and the Feature Test runs in GH as expected.
In the Feature Test Action the step 'Set feature org as default' runs cci org default feature.
'Run Feature Test' step fails because of a failure in the deploy task.

You can see the log files here:
https://github.com/beAGoodQE/rugbyDay/actions/runs/6672781569/job/18137321509

Verified this is fixed, closing issue.


Where is right place for save/update the context of request?

Hi!
In my app I want to use a login_required decorator, as on manner in docs (see authorized decorator
http://sanic.readthedocs.io/en/latest/sanic/decorators.html), but when I tried to set custom attrribute of request, e.g. request.user = user I got that error:
AttributeError: 'Request' object has no attribute 'user'

So, how I can add some extra context to request and pass it further?

request is a dict, you need use request['user'] = user instead.

It works, thanks!


Integrate with Travis for builds and publishing artefacts to GitHub

Integrate with Travis for builds and publishing artefacts to GitHub.
Probably do #7 first though...or not, I know what you're like you scoundrel.

Probably want to put Codacy in here as well for a little code analysis


Refactor Tests

Closes #384.

Tests are failing because of the new syntax introduced in mbuild to get boundingbox of an mbuild Compound (during a conversion step over GMSO). Can be fixed by a PR over GMSO to update the new syntax + new mbuild release.


add module for validating names

PR Description
Type of change

[x] New feature

Checklist

I have run format.sh under script
I have commented my code, particularly in hard-to-understand areas
New and existing unit tests pass locally with my changes

Also, do not forget to update to docs :)


集成失败，gradle错误如下：

Gradle sync failed: Could not find com.dodola:rocoofix:1.2.6’.
Searched in the following locations:
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/dodola/rocoofix/1.2.6’/rocoofix-1.2.6’.pom
file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/dodola/rocoofix/1.2.6’/rocoofix-1.2.6’.jar
https://jcenter.bintray.com/com/dodola/rocoofix/1.2.6’/rocoofix-1.2.6’.pom
https://jcenter.bintray.com/com/dodola/rocoofix/1.2.6’/rocoofix-1.2.6’.jar
Required by:
:QuCai:unspecified
Consult IDE log for more details (Help | Show Log)

network error!
u might ensure that u can download this dependency!


youtube music 401 - but works.

What version of Music Assistant has the issue?
2022.8.4
The problem
HA logs show 401 unauthorized.. but it works.. very strange..
How to reproduce
not sure. configure mass for ytube music and see in logs.
Relevant log output
Logger: music_assistant
Source: /usr/local/lib/python3.10/site-packages/music_assistant/mass.py:232
First occurred: 17:39:11 (2 occurrences)
Last logged: 17:40:11
Job [Library sync for provider Youtube Music] failed with error Server returned HTTP 401: Unauthorized. Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project..
Job [Add ytmusic://artist/UChgxarBUCnPJV871-46bJ2g to database] failed with error Server returned HTTP 401: Unauthorized. Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project..
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/music_assistant/models/music_provider.py", line 402, in sync_library
async for prov_item in self._get_library_gen(media_type)():
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/ytmusic/ytmusic.py", line 133, in get_library_artists
artists_obj = await get_library_artists(
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/ytmusic/helpers.py", line 105, in get_library_artists
return await loop.run_in_executor(None, _get_library_artists)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/ytmusic/helpers.py", line 95, in _get_library_artists
artists = ytm.get_library_subscriptions(limit=9999)
File "/usr/local/lib/python3.10/site-packages/ytmusicapi/mixins/library.py", line 173, in get_library_subscriptions
response = self._send_request(endpoint, body)
File "/usr/local/lib/python3.10/site-packages/ytmusicapi/ytmusic.py", line 144, in _send_request
raise Exception(message + error)
Exception: Server returned HTTP 401: Unauthorized.
Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Additional information
No response
What version of Home Assistant Core are your running
2022.9.5
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux

Hi @Symbiot78
Most likely you YT cookie has expired. Just enter a new one in the configuration.
It probably seems to work, as tracks are playing from other providers
Best Eric

Please confirm if renewing the cookie fixed the issue.

I will close the issue,
If it is still a problem, just let us know and we will reopen.
Best Eric

Where can I update the cookie token, I can't find it anywhere?

Please see the FAQ which will direct you to the YouTube discussion where you will find how to obtain the cookie.

I know how to obtain it. I was wondering how to update a cookie that is expired, do I need to delete and re-add the integration?

No just go to SETTINGS>>INTEGRATIONS>>MUSIC ASSISTANT>>CONFIGURE and add your new cookie

Thanks, I was here several times, but only saw the configuration of media players. I pressed next now and saw that there was more there, thanks for the quick replies!

Thanks, I was here several times, but only saw the configuration of media players. I pressed next now and saw that there was more there, thanks for the quick replies!


Problem with capistrano 3.4.0

Bundler could not find compatible versions for gem "net-ssh":
In Gemfile:
capistrano (~> 3.4.0) ruby depends on
sshkit (~> 1.3) ruby depends on
net-ssh (>= 2.8.0) ruby
capistrano (~> 3.4.0) ruby depends on
  sshkit (~> 1.3) ruby depends on
    net-scp (>= 1.1.2) ruby depends on
      net-ssh (>= 2.6.5) ruby

So the requirde version for backup  (net-ssh (<= 2.5.2) ruby) crash with the required for capistrano

Why is capistrano part of your backup project?
See also #635 and #691

Capistrano is part of my project as backup now, but having capistrano installed I cant even make backup work in a new project, i follow all the instructions of installation from the web but cant make it work, so far ill just create my own rake task and fix this issue, is not a big problem but is doing again by my own something that I can use with this gem

Ive just cleanup old version and now everything is working fine, sorry for reporting an non error

This is a problem that's probably quite easily fixed by using bundler to install the gem and run it.
Good to hear it's working at least now


feat(menu): add support for tab looping menu

if we are at the first item of the menu, move up will go to the last menu item
if we are at the last item of the menu, move down will go to the first menu item


Minor improvements in tests and notebook for Project 3 (tv-script-generation)

I made the following changes in the tv-script-generation folder (Project 3):

Remove unused parameter (rnn_size) in build_nn function within tv-script-generation/dlnd_tv_script_generation.ipynb, and adjust the rest of the code/tests accordingly.
Add some extra sanity checks in problem_unittests.py to catch potential gotchas:

test_get_inputs: check dtype also. In particular, it is checked that the learning rate is a float, preventing someone from defining it as an integer, which would result in the network not training at all.
test_build_nn: check activation function also. It is easy to omit the activation_fn parameter in tf.contrib.layers.fully_connected, which would result into a ReLU function instead of the required linear one.

The additional checks in the tests are motivated by my own and others' pitfalls as reported in the slack channel for project3 (https://nd101.slack.com/messages/C3PJV4741).

We are currently not making any changes to the unit tests. We may add some more tests in the future. Closing this PR for now.


Atualizaçao do aplicativo Name: Insomnia | Version: 2020.4.1

Id: Insomnia.Insomnia
Version: 2020.4.1
Name: Insomnia
Publisher: Insomnia
Homepage: https://insomnia.rest
License: MIT
LicenseUrl: https://github.com/Kong/insomnia/blob/develop/LICENSE
AppMoniker: Insomnia
Tags: insomnia, insomnia core
Description: The Desktop API client for REST and GraphQL. Make requests, inspect responses.
Installers:

Arch: x64
Url: https://github.com/Kong/insomnia/releases/download/core%402020.4.1/Insomnia.Core-2020.4.1.exe
InstallerType: exe
Sha256: 2B36F3756C7C08AC62DBE1834431C57607DCEFCB9652BBB85410CA924131DE0A

I made a PR for this, #4123.

I made a PR for this, #4123.

#4091
Hello mine has been done for some time.  Is there any additional adjustment?

Effected Merged


[test] avoid testing with terminationGracePeriod=0 by default for VMIs

What this PR does / why we need it:
To speedup our test suite, in the past we configured terminationGracePeriod=0 by default for all the VMIs used in the functional tests.
This has a few potential implications that should
be carefully considered.
The major one is:
https://github.com/kubernetes/kubernetes/issues/120671 : When a pod with spec.terminationGracePeriod: 0 is deleted without force, (which is exactly what we are doing by default for our test VMIs!) it's force-deleted from the API server, without kubelet killing its containers and unmounting its volumes first.
This could be dangerous because:

the deletion flow in the test is different from what probably 99.9% of our users will rely on
we are not really sure that the node resources got really freed up as expected before starting the next test introducing potential flakiness.

Setting by default spec.terminationGracePeriod: 1 on our test VMIs should only barely slow down the test suite although ensuring we are going to rely on the regular flow for pod deletion.
Extend one of the existing tests
("should be successfully started and stopped multiple times")
to ensure we are still also covering
the terminationGracePeriod=0 case.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes https://issues.redhat.com/browse/CNV-36682
Special notes for your reviewer:
See https://github.com/kubernetes/kubernetes/issues/120671 for an explanation of the issue
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[X] PR: The PR description is expressive enough and will help future contributors
[X] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[X] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note:

NONE

@brianmcarey @dhiller FYI

/hold

While it make sense to keep covering it

Should we be occupied with how force deletion goes in our tests?
To me this is going more in the chaos direction, making our regular tests lose some of their integrity vs. how users would mostly use the project

/hold

/hold further investing, this is more complex than I was expecting.
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-controller/services/template.go#L339-L344
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-controller/services/template.go#L383
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-controller/services/template.go#L587
terminationGracePeriodSeconds on virt-launcher pod is implicitly passed by 30 seconds, so terminationGracePeriodSeconds=1 on VMI actually means terminationGracePeriodSeconds=31 on virt-launcher pod.
So we are not actually going to hit what described on kubernetes/kubernetes#120671 .
On the other side:
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-handler/vm.go#L3407-L3411
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-handler/vm.go#L3419-L3424
https://github.com/kubevirt/kubevirt/blob/15e85452687f3669d30c6e9f169f2dd94f6a9f3f/pkg/virt-handler/vm.go#L2306-L2316
virt-handler calls handleVMIShutdown first when terminationGracePeriodSeconds>0 on the VMI and KillVirtualMachine when terminationGracePeriodSeconds=0 so we still still have a different behaviour when terminationGracePeriodSeconds=0 on our test VMIs.

+1
I think this doesn't have the effect we wanted (now when we checked the template,go). I think we should close, WDYT?

+1 I think this doesn't have the effect we wanted (now when we checked the template,go). I think we should close, WDYT?

Right.


How to display euro symbol for prices?

Hello all,
I'd like to display prices with a euro symbol instead of 'EUR'. What I tried so far is the following in lfs_project/settings:
LANGUAGE_CODE = 'nl-NL'
USE_I18N = True
USE_L10N = True
And I added to MIDDLEWARE_CLASSES  'django.middleware.locale.LocaleMiddleware'
It now displays EUR, but i'd like to display €.
What do I miss?
Thanks, Paul

Try the following:
LANGUAGE_CODE = 'nl'
LFS_LOCALE = "nl_NL.UTF-8"
USE_I18N = True
USE_L10N = True
and then you can also switch on/off the checkbox in the management panel: Shop -> Preferences -> Default values -> Use international currency codes:

When changing the LANGUAGE_CODE to 'nl' and the LFS_LOCALE to nl_NL.UTF-8 (it was nl_NL) and switch off the checkbox in Default values, I get an 'Eu' symbol.
I forgot to mention that I indeed changed the Default values on and off before. Thanks for the suggestion though!


Add TRP3 toggle window to toolbar

Another certified Rae banger, adding a toolbar button to toggle the main frame.
Short of rewriting the toolbar system to be able to handle the custom file path to the minimap logo (and in turn needing to use the bordered icon template to account for the border inconsistency between regular icons and that one), it was preferred to use a book icon to convey the "main frame" idea. Open to using a different one though.

She's freeeeee


Allow to boost .ijwb over BSP and .idea folder. (#7201)

Allow to boost .ijwb over BSP and .idea folder.

Smarter default in case BSP not installed

Google plugin has no priority by default and used if JetBrains Bazel is not installed. If BSP is there then registry key value is used.

fixes #7200
(cherry picked from commit d407faba3e52e32a929aa9581f4412f474b01a96)
Checklist

[ ] I have filed an issue about this change and discussed potential changes with the maintainers.
[ ] I have received the approval from the maintainers to make this change.
[ ] This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
Issue number: <please reference the issue number or url here>
Description of this change

cc @dkashyn-sfdc


Mobile app support

Firstly, thanks for making a beautiful free app!
However it's not easy for me to plug the keyboard into a desktop computer while playing. I assume this would be the case for most users.
Do you have any intentions to make this a mobile app? And iPad app would be very nice.
Cheers!

Hi! Thanks for your feedback, I hope you enjoy it.
I am not planing to do any mobile app. I do not plan to join Apple Development program.
The only thing missing in apple in the webmidi support on their browsers. There is a project in github providing this support but it is outdated. I did set an issue but I got no reaction:
https://github.com/mizuhiki/WebMIDIAPIShimForiOS/issues/8

I see, thanks for the info.
In the meantime, I dig around your source code and see it's written using Ionic so I think ionic-native would be a quick option here to packge your app into a mobile app. Let me see what I can do here.
Keep up the good work!

Let me know if you make progress! If you are in the developer program from Apple it would be great that you fixed the webmidiapp mentioned above.


fix: draggable area on desktop

Increases the draggable area of IPFS Desktop. The new draggable area is (anywhere in the light blue area can be clicked to drag and move the window around):

Please see https://github.com/ipfs-shipyard/ipfs-desktop/pull/1071

@olizilla I decided to merge this since we already talked about it on a call and it's quite trivial. Anything you think that might be worth changing, let me know.


Fix mobile layouts

Currently on mobile sized screens the layout is super funky.

Will be closed in #33.


Some model transform error, The texture can not display

Tile_+004_+004.zip

Looks pretty awesome to me?

Thanks for your reply, I want to know how did you do it, would you tell me why my model does not have texture after using "obj2gltf" tool. The submitted file is a .obj with mtl.

I'm running the command node bin/obj2gltf Tile_+004_+004.obj and it's working fine.

Are you using http://cesiumjs.org/convertmodel.html to convert it? I did notice it failing there:

I'm running the command "node bin/obj2gltf C:\Users\Administrator\Desktop\Tile_+004_+004\Tile_+004_+004.obj", And "Tile_+004_+004.gltf" file is created.

Tile_+004_+004.zip

Fixed in #49
Lighting should be improved for models without normals.


[CT-750] [Bug] Raise helpful error if user provides "dbt" as project name during dbt init

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Given the following setup
$ poetry add dbt-core dbt-bigquery
$ dbt init
20:28:33  Running with dbt=1.1.1
Enter a name for your project (letters, digits, underscore): dbt
Which database would you like to use?
[1] bigquery

(Don't see the one you want? https://docs.getdbt.com/docs/available-adapters)

Enter a number: 1
[1] oauth
[2] service_account
Desired authentication method option (enter a number): 2
keyfile (/path/to/bigquery/keyfile.json): <path>
project (GCP project id): <project>
dataset (the name of your dbt dataset): dbt_default
threads (1 or more): 1
job_execution_timeout_seconds [300]:
[1] US
[2] EU
Desired location option (enter a number): 1
20:29:42  Profile dbt written to /Users/<username>/.dbt/profiles.yml using target's profile_template.yml and your supplied values. Run 'dbt debug' to validate the connection.
20:29:42
Your new dbt project "dbt" was created!

For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:

  https://docs.getdbt.com/docs/configure-your-profile

One more thing:

Need help? Don't hesitate to reach out to us via GitHub issues or on Slack:

  https://community.getdbt.com/

Happy modeling!

$ dbt run --project-dir /path/to/folder/named/dbt

I get the following output:
21:05:16  Running with dbt=1.1.1
21:05:16  Encountered an error:
Compilation Error
  dbt found more than one package with the name "dbt" included in this project. Package names must be unique in a project. Please rename one of these packages.

Which was pretty confusing at first until I figured out the issue was the top level folder name.
As a first-time user of dbt, that's a kind of weird way to get this relationship started 🥴
Expected Behavior
Allow top level folder to be named dbt :)
Since we are using dbt in the context of apache airflow, I think that structurally speaking it's an acceptable & reasonable way to structure the folder hierarchy:
dags/
   dag_helpers/
   dbt/
   utils/
   extract.py
   load.py
   transform.py
   export.py

Steps To Reproduce
No response
Relevant log output
No response
Environment
- OS: MacOS
- Python: python 3.8.7, pip 21.3.1
- dbt: 1.1.1

What database are you using dbt with?
bigquery
Additional Context
I searched but could not find an equivalent issue. Feel free to mark as duplicate if I missed something.
Related: #2029
For the time being I'll just rename the folder something else.

Hi @jtcohen6 !
That's a great explainer! I didn't even realize the problem was the project name, instead of the folder name! For me that's great news because I mind more the folder structure than the project name tbh :)

I'm going to mark this one as good_first_issue for a community contributor. Would you be interested?

I'm going to have to say no. I would love to but I know I can't hold that promise. Thanks for asking!
Hopefully this will be a great entrypoint for a new prolific contributor :)
Cheers! 🥂

Hi @jtcohen6,
I can take on this issue I was looking for something to start dipping my toes in the project

Hi @jtcohen6,
the following line generates the error: No plugin found for postgres
internal_package_names.add(get_adapter_package_names(adapter_name))

It looks like get_adapter_package_names cannot find the package name, however adapter_name is correct ("postgres")


Hover on bottom of doughnut slightly cuts off a part

Expected behavior
When a hover on the bottom on a doughnut chart is done, that part is enlarged but should not result in cutting off a part at the bottom.
Current behavior
A part is cut off, see screenshot.

Reproducible sample
https://www.chartjs.org/docs/latest/configuration/canvas-background.html
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v3.7.1
Browser name and version
Firefox 97 and Chromium 99
Link to your project
No response

I guess this is the most desired behaviour achievable. Since the hoveroffset is configurable you will always keep this problem if you put in a high enough number. And if you make it so it doesn't expand it can be considered a bug that you configure an offset but chart.js does not do an offset.
By default you won't have this problem since the hoveroffset is 0 by default.
You can mitigate this issue by making the radius of the doughnut smaller:
https://jsfiddle.net/8oav69df/

@LeeLenaleee in my opinion as well, this is the most desired behaviour achievable.
You could also leverage on the layout.padding adding space on bottom of chart (leaving the radius to 100%):
options: {
  layout: {
    padding: {
      bottom(ctx) {
        const chart = ctx.chart;
        let pb = 0;
        chart.data.datasets.forEach(function(el) {
          const hOffset = el.hoverOffset || 0;
          pb = Math.max(hOffset / 2 + 5, pb)
        });
        return pb;
      }
    }
  },
}

Expected behavior
When a hover on the bottom on a doughnut chart is done, that part is enlarged but should not result in cutting off a part at the bottom.
Current behavior
A part is cut off, see screenshot.
Reproducible sample
https://www.chartjs.org/docs/latest/configuration/canvas-background.html
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v3.7.1
Browser name and version
Firefox 97 and Chromium 99
Link to your project
No response

<Doughnut
data={data}
options={{
maintainAspectRatio: false,
plugins: {
legend: {
display: false,
},
datalabels: {
display: false,
},
},
layout: {
padding: {
bottom:5,
top:5,
},
},
}}
/>


Windows Libraries

Hi Zuzu-Typ,
I've been developing on a Mac up until now, and all has gone well with the Ogg and Opus libraries provided by homebrew.  I'm now testing on Windows.
When I installed PyOgg, I did not get any DLLs in the install, as was indicated in the README.  (I'm using an AWS Instance of Windows Server 2019 for testing.)
Should the libraries have been included with "pip install pyogg"?
I have now compiled DLLs for Ogg and Opus, but I'm finding producing a DLL for OpusFile a challenge.  I see that you contributed a pull request to the official OpusFile repository, but that it wasn't accepted.  How did you get around the OpenSSL issues?
Regards,
Matthew

Hi there Matthew,
yes, the Windows release should come with DLLs, unless I forgot to or incorrectly packaged them (which has happened before).
That doesn't seem to be the case for 0.6.14a1 though, as it does contain working DLLs in the wheel (.whl) releases - which should be the ones to be installed using pip install pyogg
Getting all of the DLLs to compile the way you want is not easy.
If I recall correctly, there is a "NoHTTP" build preset for OpusFile, but you may or may not be required to create an opusfile.def file containing all the exported functions (at least I remember doing that).
Sadly it seems that nobody really works on Ogg, Vorbis or Opus anymore.
Thus my changes are highly outdated by now.
Cheers,
--Zuzu_Typ--

Hi again,
Thanks for your very quick reply.
I see that when I ran pip install pyogg, version 0.6.13a1 was installed (rather than 14a1).
However I've just learnt something :o)  I needed to have installed "wheel" before I could expect the DLLs to be installed.  Without wheel, pip installs PyOgg fine, and issued a warning that I didn't notice till now "Using legacy setup.py install for PyOgg, since package 'wheel' is not installed."
Once wheel was installed, the DLLs were indeed installed with PyOgg (albeit version 0.6.13a1).
Now, that leaves just one question.  Why did
pip install git+https://github.com/Zuzu-Typ/PyOgg
not install version 0.6.14a1?
Can you see what am I doing wrong?
pip install git+https://github.com/Zuzu-Typ/PyOgg
Collecting git+https://github.com/Zuzu-Typ/PyOgg
  Cloning https://github.com/Zuzu-Typ/PyOgg to c:\users\administrator\appdata\local\temp\2\pip-req-build-nxb6to46
  Running command git clone -q https://github.com/Zuzu-Typ/PyOgg 'C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-nxb6to46'
Building wheels for collected packages: PyOgg
  Building wheel for PyOgg (setup.py) ... done
  Created wheel for PyOgg: filename=PyOgg-0.6.13a1-py2.py3-none-any.whl size=35448 sha256=245e3d3ab8a4df461aa6a6c218ff3689c45591ba2a23981c528a2621b7dc1aee
  Stored in directory: C:\Users\Administrator\AppData\Local\Temp\2\pip-ephem-wheel-cache-q1cmt0f0\wheels\5c\fe\cc\ed7e72b13d020b1ec43d6121897da85ec752a41f1ea9701b20
Successfully built PyOgg
Installing collected packages: PyOgg
Successfully installed PyOgg-0.6.13a1

Don't worry, you're not doing anything wrong (:
I always forget to bump up the version string inside setup.py before uploading the changes to GitHub, thus the version string is incorrect, although it really is PyOgg-0.6.14a1


Add more user-friendly log messages on map creation

Apr 09 18:21:00 k8s2 cilium-agent[18719]: level=error msg="Error while opening/creating BPF maps" error="unable to create map: use pinned map cilium_metrics: expected flags 1, got 0" subsys=daemon
Apr 09 18:21:00 k8s2 cilium-agent[18719]: level=fatal msg="Error while creating daemon" error="unable to create map: use pinned map cilium_metrics: expected flags 1, got 0" subsys=daemon

From Joe:
There is a cilium_metrics map already with flags configured with the value 0, looks like on startup the daemon attempted to reuse the map but since the flags value was different from what it expected the flags to be (1), it took exception to this and failed out.
Fataling out here seems like a bit extreme, normally I would expect such maps just to be recreated with the new map flags and log a big angry warning

If we recreate maps, then we lose the contents. In this case, it's the metrics map so not a big deal if it's gone, but other maps, this might be a more sensitive situation. So it might make sense to make the metrics map not fatal on this error, but others probably keep the fatal.

When does this happen? On upgrade from v1.9 to master? Why didn't the K8sUpdates test catch it?

IIRC was when switching the preallocate-bpf-maps flag from true to false or vice-versa.

When does this happen? On upgrade from v1.9 to master? Why didn't the K8sUpdates test catch it?

There is small window of commits (after the switch to cilium/ebpf for the metrics map https://github.com/cilium/cilium/pull/14582 and before this fix https://github.com/cilium/cilium/pull/14853) where the metrics map would be created without the BPF_F_NO_PREALLOC flag, so I think that could explain why this happened

IIRC was when switching the preallocate-bpf-maps flag from true to false or vice-versa.

If that's all there is to it, maybe we can just delete the map when it happens? I doubt it's worth a full map migration.

I doubt it's worth a full map migration.

Not sure what you are referring to :thinking:

I thought I saw that discussed as a potential solution last time we discussed it on Slack, but can't find it again :disappointed:

Ah, I think I know what you are referring to now :+1: (different issue :slightly_smiling_face:)


chore(AlgebraicGeometry): minor cleanup

Motivated by trying to clean up CommRingCat and friends, but this is a downstream fix that seems fine independently (and helpful later).

bors merge


Could not play announcement: TypeError: Cannot read property 'launch' of null

Hi,
most of the times, not always, if I want to play a notification in an chromecast group I get above message in the log. If I switch to a single google home or chromecast device its working. In the example we have sayit 3 which is the group and sayit 2 which is a dedicated chromecast.
`

chromecast.0
2021-05-14 16:21:36.983
info
(2441) Wohnzimmer - set volume to 50

chromecast.0
2021-05-14 16:21:36.921
info
(2441) Wohnzimmer - Finished playing announcement

chromecast.0
2021-05-14 16:21:30.707
info
(2441) Wohnzimmer - Playing playlist with 1 items

chromecast.0
2021-05-14 16:21:30.706
info
(2441) Wohnzimmer - Playing - http://<IP_ADDRESS>:8082/state/sayit.2.tts.mp3

chromecast.0
2021-05-14 16:21:30.704
info
(2441) Google Home Wohnzimmer - Playing - http://<IP_ADDRESS>:8082/state/sayit.2.tts.mp3

chromecast.0
2021-05-14 16:21:29.620
info
(2441) Wohnzimmer - set volume to 70

chromecast.0
2021-05-14 16:21:29.589
info
(2441) Wohnzimmer - Try to play playlist with 1 items

chromecast.0
2021-05-14 16:21:29.588
info
(2441) Wohnzimmer - Closing mediaInfo

chromecast.0
2021-05-14 16:21:29.533
info
(2441) Wohnzimmer - Try to play url - http://<IP_ADDRESS>:8082/state/sayit.2.tts.mp3

chromecast.0
2021-05-14 16:21:29.533
info
(2441) Wohnzimmer - Try to play announcement - "http://<IP_ADDRESS>:8082/state/sayit.2.tts.mp3"

chromecast.0
2021-05-14 16:21:29.533
info
(2441) Wohnzimmer - Player joint

chromecast.0
2021-05-14 16:21:29.532
info
(2441) Wohnzimmer - Connected player

chromecast.0
2021-05-14 16:21:29.532
info
(2441) Wohnzimmer - Default player lauched

chromecast.0
2021-05-14 16:21:29.532
info
(2441) Wohnzimmer - Connected player

chromecast.0
2021-05-14 16:21:29.530
info
(2441) Wohnzimmer - Try to join player

chromecast.0
2021-05-14 16:21:29.527
info
(2441) Google Home Wohnzimmer - Player joint

chromecast.0
2021-05-14 16:21:29.527
info
(2441) Google Home Wohnzimmer - Connected player

chromecast.0
2021-05-14 16:21:29.526
info
(2441) Google Home Wohnzimmer - Try to join player

chromecast.0
2021-05-14 16:21:27.262
info
(2441) Wohnzimmer - Try to launch default player

sayit.2
2021-05-14 16:21:27.257
info
(2599) Set "chromecast.0.Wohnzimmer.player.announcement to {"url":"http://<IP_ADDRESS>:8082/state/sayit.2.tts.mp3","volume":70}

sayit.2
2021-05-14 16:21:27.252
info
(2599) saying: Die heutige Indizenz im Bundesland liegt bei 102. Im Landkreis soundso sind es 131

chromecast.0
2021-05-14 16:21:22.396
error
(2441) Iobrokergruppe - Could not play announcement: TypeError: Cannot read property 'launch' of null

chromecast.0
2021-05-14 16:21:22.396
info
(2441) Iobrokergruppe - Try to launch default player

sayit.3
2021-05-14 16:21:22.350
info
(2642) Set "chromecast.0.Iobrokergruppe.player.announcement to {"url":"http://<IP_ADDRESS>:8082/state/sayit.3.tts.mp3","volume":70}

sayit.3
2021-05-14 16:21:22.301
info
(2642) saying: Achso, und außerdem ist Müllabfuhr von ,,,der schwarzen Tonne

chromecast.0
2021-05-14 16:21:20.656
info
(2441) Wohnzimmer - Detached player

chromecast.0
2021-05-14 16:21:20.655
info
(2441) Google Home Wohnzimmer - Detached player

chromecast.0
2021-05-14 16:21:12.347
error
(2441) Iobrokergruppe - Could not play announcement: TypeError: Cannot read property 'launch' of null

chromecast.0
2021-05-14 16:21:12.346
info
(2441) Iobrokergruppe - Try to launch default player

sayit.3
2021-05-14 16:21:12.300
info
(2642) Set "chromecast.0.Iobrokergruppe.player.announcement to {"url":"http://<IP_ADDRESS>:8082/state/sayit.3.tts.mp3","volume":70}

sayit.3
2021-05-14 16:21:12.254
info
(2642) saying: Guten Morgen. Wir bekommen heute Höchsttemperaturen von 16 Grad und Teils bewölkt mit leichtem Regen

javascript.0
2021-05-14 16:20:45.798
info
(1729) script.js.Sprachbefehle.Rolläden_IFTTT: registered 3 subscriptions and 0 schedules

javascript.0
2021-05-14 16:20:45.779
info
(1729) Start javascript script.js.Sprachbefehle.Rolläden_IFTTT

javascript.0
2021-05-14 16:20:45.769
info
(1729) Stop script script.js.Sprachbefehle.Rolläden_IFTTT

`
This is my blockly which triggers the texts:

same issue here

I have the same problem.

Please test v3.0.1 from Github.


dython.nominal.associations handling fillna with dtype="category"

When the default strategy 'replace' is selected, associations raises the following TypeError: Cannot setitem on a Categorical with a new category (0.0), set the categories first if the input dataset is a Pandas DataFrame with some columns with dtype="category".
See code below.
from dython.nominal import associations
import pandas as pd
import numpy as np

df = pd.DataFrame({
    "A": ["a", "b", "c", "a", np.nan],
    "B": [0.0, 2.0, 1.0, 0.5, np.nan]
})

associations(df) # no expection
df["A"] = df["A"].astype("category")
associations(df) # raise expection
df["A"] = df["A"].cat.add_categories(0.0)
associations(df) # no expection

The problem is related to pandas fillna behaviour, see this stackoverflow question.
Given that the default strategy 'replace' with value 0.0, I'm wondering if this case can be handled internally by the  associations method or if this is a corner case. Often, the category dtype is used when memory efficiency is important and switching dtype is expensive.

Hey @enrir - thanks for brining this up. This isn't a desired behavior. I'll need to dive deeper into this, as I'm not sure I understand what actually happens here and what's the best way to handle it.

Hi @shakedzy, I forked the repo and started to write a possible fix. If it’s ok, I will open a pr when I have something ready. 😊

That's perfect :) thanks!


Headers are already sent. Cannot perform the redirection at this point

I can't make the SecResponseBodyLimit directive together with SecResponseBodyLimitAction Reject block oversized responses from nginx. ModSecurity-nginx reports "Headers are already sent. Cannot perform the redirection at this point" to error.log. The client receives the response in full with code 200.
The results are similar when I use a rule instead, e.g. SecRule RESPONSE_CONTENT_LENGTH "@ge 10000" "phase:4,id:1,deny,log,msg:'Oversized response',status:403". There is "Headers are already sent" in error.log, but the client receives an empty response without status code. Three different status codes are reported in logs for this request: 500 is in access.log, 200 in error.log, 403 in ModSecurity audit log.
ModSecurity version: 3.0.5.
ModSecurity-nginx version: 1.0.2.
nginx version: 1.20.1.
nginx -V info:
nginx version: nginx/1.20.1
built with OpenSSL 1.1.1c FIPS  28 May 2019 (running with OpenSSL 1.1.1g FIPS  21 Apr 2020)
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/usr/share/nginx/modules --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-file-aio --with-compat --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_v2_module --add-dynamic-module=mod_brotli --add-dynamic-module=mod_passenger/src/nginx_module --add-dynamic-module=mod_pagespeed --add-dynamic-module=mod_security --with-debug --with-cc-opt='-O0 -g -DMODSECURITY_DDEBUG'

The config of nginx is as follows:
load_module nginx/modules/ngx_http_modsecurity_module.so;

events {
    worker_connections  1024;
}

error_log /nginx/log/error.log debug;

http {
	access_log /nginx/log/access.log;
	server {
		listen <IP_ADDRESS>:8080;
		root /nginx/www;
	}
	modsecurity on;
	modsecurity_rules '
		SecRuleEngine On
		SecRequestBodyAccess On
		SecRequestBodyLimit 10240
		SecResponseBodyAccess On
		SecResponseBodyLimit 10240
		SecResponseBodyLimitAction Reject
		SecAuditEngine On
		SecAuditLog "/nginx/log/modsec_audit.log"
		SecAuditLogType serial
		SecDebugLog "/nginx/log/modsec_debug.log"
		SecDebugLogLevel 9
	';
}

In /nginx/www I have two text files, of which jack.txt is bigger than the response size limit of 10240 bytes:
-rw-r--r--. 1 root root 10750 Nov 10 09:44 jack.txt
-rw-r--r--. 1 root root     5 Nov 10 08:52 test.txt

When I access them, both files are returned successfully:
[root@host nginx]# curl -v http://<IP_ADDRESS>:8080/test.txt
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8080 (#0)
> GET /test.txt HTTP/1.1
> Host: <IP_ADDRESS>:8080
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.20.1
< Date: Wed, 10 Nov 2021 05:50:28 GMT
< Content-Type: text/plain
< Content-Length: 5
< Last-Modified: Wed, 10 Nov 2021 01:52:49 GMT
< Connection: keep-alive
< ETag: "618b25f1-5"
< Accept-Ranges: bytes
<
Test
* Connection #0 to host <IP_ADDRESS> left intact
[root@host nginx]# curl -v http://<IP_ADDRESS>:8080/jack.txt
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8080 (#0)
> GET /jack.txt HTTP/1.1
> Host: <IP_ADDRESS>:8080
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.20.1
< Date: Wed, 10 Nov 2021 05:51:06 GMT
< Content-Type: text/plain
< Content-Length: 10750
< Last-Modified: Wed, 10 Nov 2021 02:44:01 GMT
< Connection: keep-alive
< ETag: "618b31f1-29fe"
< Accept-Ranges: bytes
<
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
<...>
* Connection #0 to host <IP_ADDRESS> left intact

The most relevant part of error.log is:
modsec *** ngx_http_modsecurity_header_filter: header filter, recovering ctx: 0x15bfb58 at mod_security/src/ngx_http_modsecurity_header_filter.c line 425.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Server'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Date'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Content-Length'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Content-Type'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Last-Modified'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Connection'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Transfer-Encoding'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_header_filter:  Sending header to ModSecurity - header: `Vary'. at mod_security/src/ngx_http_modsecurity_header_filter.c line 474.
modsec *** ngx_http_modsecurity_process_intervention: processing intervention at mod_security/src/ngx_http_modsecurity_module.c line 143.
modsec *** ngx_http_modsecurity_process_intervention: nothing to do at mod_security/src/ngx_http_modsecurity_module.c line 152.
2021/11/10 12:51:06 [debug] 97144#0: *2 HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Wed, 10 Nov 2021 05:51:06 GMT
Content-Type: text/plain
Content-Length: 10750
Last-Modified: Wed, 10 Nov 2021 02:44:01 GMT
Connection: keep-alive
ETag: "618b31f1-29fe"
Accept-Ranges: bytes

2021/11/10 12:51:06 [debug] 97144#0: *2 write new buf t:1 f:0<PHONE_NUMBER>63DDD0, pos<PHONE_NUMBER>63DDD0, size: 242 file: 0, size: 0
2021/11/10 12:51:06 [debug] 97144#0: *2 http write filter: l:0 f:0 s:242
2021/11/10 12:51:06 [debug] 97144#0: *2 http output filter "/jack.txt?"
2021/11/10 12:51:06 [debug] 97144#0: *2 http copy filter: "/jack.txt?"
2021/11/10 12:51:06 [debug] 97144#0: *2 malloc:<PHONE_NUMBER>644D20:10750
2021/11/10 12:51:06 [debug] 97144#0: *2 read: 18,<PHONE_NUMBER>644D20, 10750, 0
2021/11/10 12:51:06 [debug] 97144#0: *2 http postpone filter "/jack.txt?"<PHONE_NUMBER>63DFD0
modsec *** ngx_http_modsecurity_body_filter: body filter, recovering ctx: 0x15bfb58 at mod_security/src/ngx_http_modsecurity_body_filter.c line 53.
modsec *** ngx_http_modsecurity_process_intervention: processing intervention at mod_security/src/ngx_http_modsecurity_module.c line 143.
2021/11/10 12:51:06 [error] 97144#0: *2 Response body limit is marked to reject the request while sending response to client, client: <IP_ADDRESS>, server: , request: "GET /jack.txt HTTP/1.1", host: "<IP_ADDRESS>:8080"
modsec *** ngx_http_modsecurity_process_intervention: Headers are already sent. Cannot perform the redirection at this point. at mod_security/src/ngx_http_modsecurity_module.c line 226.
modsec *** ngx_http_modsecurity_process_intervention: processing intervention at mod_security/src/ngx_http_modsecurity_module.c line 143.
modsec *** ngx_http_modsecurity_process_intervention: nothing to do at mod_security/src/ngx_http_modsecurity_module.c line 152.

In modsec_audit.log we see that ModSecurity assigned code 403 to the oversized response:
[10/Nov/2021:12:51:06 +0700]<PHONE_NUMBER> <IP_ADDRESS> 46242 <IP_ADDRESS> 8080
---OeksdokT---B--
GET /jack.txt HTTP/1.1
Host: <IP_ADDRESS>:8080
User-Agent: curl/7.61.1
Accept: */*

---OeksdokT---F--
HTTP/1.1 403
Server: nginx/1.20.1
Date: Wed, 10 Nov 2021 05:51:06 GMT
Content-Length: 10750
Content-Type: text/plain
Last-Modified: Wed, 10 Nov 2021 02:44:01 GMT
Connection: keep-alive
ETag: "618b31f1-29fe"

---OeksdokT---H--

---OeksdokT---Z--

Also, inspection of modsec_debug.log confirms that the request is to be rejected:
[1636523466] [/jack.txt] [4] Starting phase RESPONSE_HEADERS. (SecRules 3)
[1636523466] [/jack.txt] [9] This phase consists of 0 rule(s).
[1636523466] [/jack.txt] [9] Appending response body: 10750 bytes. Limit set to: 10240.000000
[1636523466] [/jack.txt] [5] Response body is bigger than the maximum expected.
[1636523466] [/jack.txt] [5] Response body limit is marked to reject the request
[1636523466] [/jack.txt] [4] Starting phase RESPONSE_BODY. (SecRules 4)

Nevertheless, the client receives the response in full with code 200.
As far as I understand, when ModSecurity tries to block the response it's too late, as its headers have already been sent.
I've tried to debug the issue myself. As error.log shows, response headers are sent between ngx_http_modsecurity_header_filter() and ngx_http_modsecurity_body_filter(). Looking from GDB, the headers are sent by ngx_http_header_filter() at the end of the filter chain:
Breakpoint 1, ngx_http_modsecurity_header_filter (r=0x4) at mod_security/src/ngx_http_modsecurity_header_filter.c:410
410	{
(gdb) n
412	    ngx_list_part_t *part = &r->headers_out.headers.part;
(gdb) p r->header_sent
$2 = 0
(gdb) watch r->header_sent
Hardware watchpoint 2: r->header_sent
(gdb) cont
Continuing.

Hardware watchpoint 2: r->header_sent

Old value = 0
New value = 1
ngx_http_header_filter (r=0x1913360) at src/http/ngx_http_header_filter_module.c:178
178	    if (r != r->main) {
(gdb) bt
#0  ngx_http_header_filter (r=0x1913360) at src/http/ngx_http_header_filter_module.c:178
#1  0x00000000004bc330 in ngx_http_chunked_header_filter (r=0x1913360) at src/http/modules/ngx_http_chunked_filter_module.c:100
#2  0x00000000004bcfc7 in ngx_http_v2_header_filter (r=0x1913360) at src/http/v2/ngx_http_v2_filter_module.c:167
#3  0x00000000004c2b80 in ngx_http_range_header_filter (r=0x1913360) at src/http/modules/ngx_http_range_filter_module.c:264
#4  0x00000000004c4681 in ngx_http_gzip_header_filter (r=0x1913360) at src/http/modules/ngx_http_gzip_filter_module.c:239
#5  0x00007f1b226ea011 in ngx_http_modsecurity_header_filter (r=0x1913360) at mod_security/src/ngx_http_modsecurity_header_filter.c:557
#6  0x00000000004c6ec7 in ngx_http_ssi_header_filter (r=0x1913360) at src/http/modules/ngx_http_ssi_filter_module.c:341
#7  0x00000000004cda86 in ngx_http_charset_header_filter (r=0x1913360) at src/http/modules/ngx_http_charset_filter_module.c:236
#8  0x00000000004d1087 in ngx_http_sub_header_filter (r=0x1913360) at src/http/modules/ngx_http_sub_filter_module.c:186
#9  0x00000000004d33ce in ngx_http_userid_filter (r=0x1913360) at src/http/modules/ngx_http_userid_filter_module.c:239
#10 0x00000000004d4d31 in ngx_http_headers_filter (r=0x1913360) at src/http/modules/ngx_http_headers_filter_module.c:183
#11 0x00000000004d6c41 in ngx_http_not_modified_header_filter (r=0x1913360) at src/http/modules/ngx_http_not_modified_filter_module.c:108
#12 0x000000000047aefa in ngx_http_send_header (r=0x1913360) at src/http/ngx_http_core_module.c:1848
#13 0x00000000004e5221 in ngx_http_static_handler (r=0x1913360) at src/http/modules/ngx_http_static_module.c:247
#14 0x0000000000479af9 in ngx_http_core_content_phase (r=0x1913360, ph=0x18d73c8) at src/http/ngx_http_core_module.c:1266
#15 0x0000000000478962 in ngx_http_core_run_phases (r=0x1913360) at src/http/ngx_http_core_module.c:875
#16 0x00000000004788cb in ngx_http_handler (r=0x1913360) at src/http/ngx_http_core_module.c:858
#17 0x0000000000489378 in ngx_http_process_request (r=0x1913360) at src/http/ngx_http_request.c:2106
#18 0x0000000000487b79 in ngx_http_process_request_headers (rev=0x18db2b0) at src/http/ngx_http_request.c:1508
#19 0x0000000000486eb5 in ngx_http_process_request_line (rev=0x18db2b0) at src/http/ngx_http_request.c:1175
#20 0x0000000000485488 in ngx_http_wait_request_handler (rev=0x18db2b0) at src/http/ngx_http_request.c:503
#21 0x0000000000461141 in ngx_epoll_process_events (cycle=0x188ae20, timer=60000, flags=1) at src/event/modules/ngx_epoll_module.c:901
#22 0x000000000044d016 in ngx_process_events_and_timers (cycle=0x188ae20) at src/event/ngx_event.c:247
#23 0x000000000045dfc7 in ngx_worker_process_cycle (cycle=0x188ae20, data=0x0) at src/os/unix/ngx_process_cycle.c:719
#24 0x000000000045a559 in ngx_spawn_process (cycle=0x188ae20, proc=0x45ded6 <ngx_worker_process_cycle>, data=0x0, name=0x534b2a "worker process", respawn=-3) at src/os/unix/ngx_process.c:199
#25 0x000000000045cd6a in ngx_start_worker_processes (cycle=0x188ae20, n=1, type=-3) at src/os/unix/ngx_process_cycle.c:344
#26 0x000000000045c3fa in ngx_master_process_cycle (cycle=0x188ae20) at src/os/unix/ngx_process_cycle.c:130
#27 0x00000000004130f8 in main (argc=3, argv=0x7ffd8c626e28) at src/core/nginx.c:383

This happens before response body processing and I can't see what should have stopped nginx from sending the headers before the body was checked by ModSecurity.
An archive file with all logs, config and data files mentioned above is attached.
nginx.zip

Hi @kpushkaryov ,
This sounds like fundamentally the same issue as https://github.com/SpiderLabs/ModSecurity-nginx/issues/41.
Feel free to correct me if you think I am mistaken.

@martinhsv, the issues may be related, but I'm not sure. The error messages are similar, but still different. Also, SecResponseBodyLimit isn't mentioned there and I don't know whether the two cases are processed in the same way inside nginx.


Unused types imported from "@dimforge/rapier3d-compat"

I'm building a SvelteKit project that's using Threlte, and during the build process, i always notice the following message:
"Collider", "World" and "RigidBody" are imported from external module "@dimforge/rapier3d-compat" but never used in "node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>"node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>and "node_modules/.pnpm/@threlte+rapier<EMAIL_ADDRESS>
It doesn't prevents the build from finishing, nor it's considered a warning, it seems to be sort of a notice or reminder of something that be fixed, but it isn't that important
I've tried looking for those imports at packages/rapier/src/lib/hooks/useJoint.ts, but looks like they're already long gone, so probably that would be another package that depends on an older version of threlte?
By the way, i'm not sure if that would be helpful to tracing down the root cause of this issue, but here's my package.json, in case this has anything to do with dependencies:
{
        "devDependencies": {
                "@commitlint/cli": "^17.4.4",
                "@commitlint/config-conventional": "^17.4.4",
                "@commitlint/types": "^17.4.4",
                "@dimforge/rapier3d-compat": "^0.11.1",
                "@playwright/test": "^1.28.1",
                "@sveltejs/adapter-node": "^1.2.0",
                "@sveltejs/kit": "^1.5.0",
                "@theatre/core": "^0.6.0",
                "@theatre/studio": "^0.6.0",
                "@threlte/core": "^5.0.9",
                "@threlte/extras": "^4.9.3",
                "@threlte/preprocess": "^0.0.2",
                "@threlte/rapier": "^0.5.0",
                "@threlte/theatre": "^0.0.2",
                "@types/express": "^4.17.17",
                "@types/three": "^0.149.0",
                "@types/uuid": "^9.0.1",
                "@typescript-eslint/eslint-plugin": "^5.45.0",
                "@typescript-eslint/parser": "^5.45.0",
                "eslint": "^8.28.0",
                "eslint-config-prettier": "^8.5.0",
                "eslint-plugin-svelte3": "^4.0.0",
                "husky": "^8.0.3",
                "prettier": "^2.8.0",
                "prettier-plugin-svelte": "^2.8.1",
                "sass": "^1.58.3",
                "svelte": "^3.54.0",
                "svelte-check": "^3.0.1",
                "svelte-sequential-preprocessor": "^0.0.7",
                "three": "^0.149.0",
                "tslib": "^2.4.1",
                "typescript": "^4.9.3",
                "vite": "^4.0.0",
                "vitest": "^0.25.3"
        },
        "type": "module",
        "dependencies": {
                "express": "^4.18.2",
                "socket.io": "^4.6.1",
                "socket.io-client": "^4.6.1",
                "uuid": "^9.0.0"
        }
}

I haven't noticed it while trying out Threlte 6 a few days ago, so i would assume it doesn't persists

I'll close this as fixed. Just checked useJoint of Threlte 6, imports seem correct 👍


Lts 13 0

Upgraded to lts 13.0
JOSE Lib encryption does not generate valid token payloads, so switched to manual implementation
Also JOSE closed some constructors, so that makes using more complicated
Refactored signatures according manual webpush sending implementation
Refactored sendWebPush function to exceptT

Done :)


Gateway

First round of review of the gateway usage

Looks good!

@dominikl: anything you think we should simplify.
As indicated  I have started a list of code improvement for 5.2.1 (on paper only!!)

I think the examples are as simple as it's possible with the current Gateway.

For the further Gateway improvement, I think there should definitely be easier methods for annotating objects and uploading/importing (which deal with all the object linking tasks automatically).

Merging.

Does this complete the item on https://trello.com/c/2Mzfzvho/74-developer-doc-updates or are you planning another PR before the release for gateway stuff?

@hflynn: I might have another PR. I am currently working on https://github.com/jburel/minimal-omero-client to use the gateway

Ah ok, will leave you to cross the task off when you're done then, thanks.


Write tests for bugs caught while syncing the chain

Originally posted by @lightclient in https://github.com/ethereum/execution-specs/pull/373#pullrequestreview-779880591
This is a bit of a meta-issue for tracking bugs that weren't caught by the tests that were triggered while syncing the chain.
These tests should theoretically get upstreamed to https://github.com/ethereum/tests and checked off here once they're merged.

[ ] sstore persists between transactions (#368)
[ ] charge gas for ECRECOVER
[ ] blockhash should hash only the header, not the block (#373)
[ ] signextend (#375)
[ ] Push-data extends past end of contract code (#375)
[ ] Deploying an empty contract (#375)
[ ] ECRECOVER with truncated call data (#445)
[ ] Logs emitted during CREATE2 #466
[ ] Blockhash at 255/256/257

I have two more:

[ ] Doing a CALL with non-zero bits in the 8 high bytes
[ ] Check compliance with condition d) in EIP 161

[ ] Check compliance with EIP-3607 #583

https://github.com/ethereum/execution-spec-tests/issues/866 would probably be useful for this


Use System directly in tests without going through ase

Please add some more context when creating an issue, so other people know what you are talking about!
Here I believe this is in reaction to this discussion: https://github.com/lab-cosmo/metatensor-models/pull/166#discussion_r1551447268


Can't connect to MSsql using pdo::construct

OS: ubuntu 16.04
PHP: 7.1
installed all drivers needed accoding to this
Error message:
''
SQLSTATE: HYT00
Code: 0
Message: [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired
SQLSTATE: 08001
Code: 10057
Message: [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error code 0x2749
SQLSTATE: 08001
Code: 10057
Message: [unixODBC][Microsoft][ODBC Driver 13 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.''
Code here

try {
$conn = new PDO ("sqlsrv:Server=host.com\instance; Database = DBName",NULL,NULL);
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
} catch( PDOException $e ){
die(print_r( $e->getMessage()));}

Since I am using Windows NT authentication, I leaved username and password blank.
Really need HELP!!
Thanks!!!

https://blogs.msdn.microsoft.com/brian_swan/2010/02/10/sql-server-driver-for-php-understanding-windows-authentication/
Solution here.

Hi @daniel94104 ,
Were you able to connect to SQL Server?

I found out that the NT authentication is not compatible in Ubuntu. So, I created a new SQL account taking sql server authentication. Then, worked.

Great. You can also try to use Kerberos Authentication on Linux. Details here.
I am closing the issue. Feel free to re-open it or create a new one if you have any other questions.

So,  sqlsrv_query worked with sql server authentication. However, I am trying to use pdo:sqlsrv using the sql server authentication to connect to sql server with failure. I have no idea why this happened.
 try {
   $conn = new PDO ("sqlsrv:Server=host:port; Database = dbname","user","password");
   $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );

 } catch( PDOException $e ){
   die(print_r( $e->getMessage()));
 }

Are you using a Linux server, or Windows Server, daniel94104? I'm trying to set up Kerberos on my Linux appserver (which is not on the domain), and finding it quite difficult.
Is there any other options, or is SQL authentication the best way in this situation?


label format

I have a question about label format during trainging.
data_loader.py line250: if(3==len(label_3.shape)):
label = label_3[:,:,0]
When the input label is RGB image, only the first dimension  is taken as GT. Why? I think it is reasonable to convert RBG label into gray image to act as GT.

every channel of the GT mask contains only 0 or 255. we don't need to
convert from rgb, because the conversion probably introduce more values
than just 0 and 255.
On Mon, Mar 7, 2022 at 6:06 AM xiyufeng2 @.***> wrote:

I have a question about label format during trainging.
data_loader.py line250: if(3==len(label_3.shape)):
label = label_3[:,:,0]
When the input label is RGB image, only the first dimension is taken as
GT. Why? I think it is reasonable to convert RBG label into gray image to
act as GT.
—
Reply to this email directly, view it on GitHub
https://github.com/xuebinqin/U-2-Net/issues/292, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORP524NMEX4APIDQX7TU6VQA3ANCNFSM5QB6SGNQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Xuebin Qin
PhD
Department of Computing Science
University of Alberta, Edmonton, AB, Canada
Homepage: https://xuebinqin.github.io/


Something strange in training

Hi Axel,
Thanks for your beautiful repo.
I tried your project, and add some modifications to this.
But I found something weird. For FastGAN, I can train the model with batch=6 on the 8G 2080. But when I use the ProjectGAN in your code, I cannot run with even batch=1.
Can you give me some advice for saving some space for training? (I use my model)
Thank you so much!
Best regards,
Wanglong

hi :)
The first thing you should try is reducing the size of the generator, ie. set ngf=64 (the default of the original FastGAN) and use -cfg=fastgan_lite.


Minimum Time

Minimum time in table showing 12AM to 6AM when school is closed

Fixed in recent push "Set minimum hour and maximum hour to set limits for available time slots"


create_cluster returning a coroutine not a ClusterManager

Following your example in dask/dask-jobqueue#543 I'm trying to create a cluster using create_cluster()
version: 1
module: "dask_jobqueue"
class: "SLURMCluster"
args: []
kwargs:
  name: 'dask-worker'
  cores: 112
  memory: '750 GB'
  processes: 14
  queue: 'cpu'
  walltime: '00:30:00'

import dask_ctl

cluster = dask_ctl.create_cluster('cluster_spec.yaml')

The returned object is a coroutine, not a cluster manager - is this expected?
I went down the rabbit hole of awaiting it in an async function but wanted to check this was necessary, the docs seem to imply it shouldn't be
Sorry for the barrage of extra work here!

Heh this is either a docs issue, or a code issue. I honestly can't remember why this function is async and the rest of the functions in dask_ctl.lifecycle are sync. I'm going to err on the side of consistency.

Sorry for the barrage of extra work here!

Keep them coming!


KMP support

Are there any plans for KMP support or is this even possible?

No, we depend on official Android specific navigation library, so we’re not doing it unless they do it. As far as I know, there are no plans.
Just a tip as well, try a quick search on issues before opening one, you would see plenty similar questions.
Just saying since it would have saved you some time ahah

No, we depend on official Android specific navigation library, so we’re not doing it unless they do it. As far as I know, there are no plans.
Just a tip as well, try a quick search on issues before opening one, you would see plenty similar questions.
Just saying since it would have saved you some time ahah

I'm sorry if this was a duplicate issue but searching KMP yielded me no results in the issues section.
https://blog.jetbrains.com/kotlin/2023/11/kotlin-multiplatform-development-roadmap-for-2024/
The last bullet point specifies a common multiplatform navigation solution for the 2024 roadmap!

That is from jetbrains though, I’m not expecting it to be a port of the Jetpack compose one. But.. who knows they have been collaborating a lot

Ahh you’re right, the previous questions used “mmm” still.
absolutely no problem with me though! Thanks for asking 👍

@raamcosta KMP support for Compose Multiplatform has been merged: https://github.com/JetBrains/compose-multiplatform-core/pull/1219
Will you add support for it? It would be great to have a pre-release with KMP support

I’ll definitely look into it.
But it may take some time, I’ll know more once I start


Reference Section

Write the reference documentation - as much as possible based on autodoc from the library docstrings.

I've pushed this commit https://github.com/PyconUK/ConferenceScheduler/commit/b2bc34163da3dcccab0893eaea36acecf74e7655
but it comes with a couple of problems:

Doesn't build unless using py3.6 (so on rtd we'll need to ensure that we're using 3.6, which can be done using a conda env file - we do this on Axelrod - another option is to mock the files that are causing problems)
The section headers in the docstrings are causing problems.

There might be a better way of doing this all together but leaving that there in case it's helpful as a starting point.


Baidu Drive URL failure

The provided URL for Baidu Drive says the share has been canceled.
After reading #8, may I know the schedule for recovering the share link?

Hi, thanks for your attention! You can access the dataset through the temporary (7-day) link: https://pan.baidu.com/s/1GKoVHUcaRfEp-DM1WIrymw with the code: 46u8.

Downloading started👏
LIS is an interesting work. Thank you.


Look and Feel

Look and Feel of the page is not as good as the old version, It was fantastic in technet.microsoft.com, Structure of the content was also very good in TechNet. but not in docs.microsoft.com. You don't get feel to read in docs.micrsofot.com

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

ID: 79c20edf-7382-7fe9-d8be-135fbe746100
Version Independent ID: 5f7d0158-5095-1b61-ffd1-986dcf7ceb55
Content: SharePoint PowerShell
Content Source: SharePoint/SharePointServer/sharepoint-powershell.md
Product: sharepoint-server-itpro
GitHub Login: @Techwriter40
Microsoft Alias: kirks

thank you for your comment, what would you like to see change or added?

@ramch11 - let us know what we can improve. There is a team that is constantly working on improvements with docs.microsoft.com and the source being open on GitHub. Thanks for feedback above. We will let that team know and if you can provide some specifics as Kirk mentioned that would be awesome.

Just see how the structure and feel of the the Amazon, it is very nice and pleasure to see .. for ex : https://docs.aws.amazon.com/quickstart/latest/deep-security/step3.html , I want microsoft one like this.. earlier technet was good but not docs.microsoft.com

@ramch11 - this is great info and I see how nice the amazon link you provided looks. It has a nice look and feel. I will send this feedback to the team that handles docs.Microsoft.com. Thanks for taking the time to submit!


Consolidate Session and non-session live tests

There is a lot of duplication between these two test classes - ServiceBusEndToEndTests and ServiceBusSessionEndToEndTests.

There is not much value to doing this and it would be a lot of work.


Added support for horizontal scrolling content

We now check for a certain y-axis touch distance and intercept if it
passes the threshold. This allows us to use horizontal scrolling content
such as a RecyclerView with a horizontal LinearLayoutManager inside
VerticalViewPager content.
Threshold may very depending on your layout. For example, if the
VerticalViewPager takes up a large amount of a height, the default
threshold (16dp) works perfectly. But if your VerticalViewPager takes up
less than half the screen height, then a smaller threshold would provide
a better user experience. For that reason, the threshold is customizable
via XML with the vvp_threshold attribute.
This has been tested extensively on a large-scale app that I'm currently
working on.

Cool bro saved my time. Thanks.