Industry approaches

https://github.com/AxonIQ/axon-server-plugin-api/blob/master/LICENSE
The AxonIQ Open Source License Agreement v1.0 provides detailed terms under which AxonIQ’s software is licensed to users. Here’s a summary of what is allowed and disallowed under this agreement:
Allowed:

Use of Software: You're granted a limited, non-exclusive, non-transferable license to install and use the AxonIQ Software in Object Code for your internal business operations, including allowing your contractors and Affiliates to use the Software, provided such use benefits you or your Affiliates and you remain responsible for their compliance with this Agreement.

Derivative Works: You're allowed to prepare Derivative Works of the Commercial Software in Source Code format for testing purposes, provided you adhere to specific restrictions outlined in the agreement (e.g., not to hack the licensing mechanism).

Open Source Components: The Software may include open source components with their specific license terms, which take precedence over this Agreement for those components.

Disallowed:

Reverse Engineering: You cannot reverse engineer, decompile, or disassemble the AxonIQ Software provided in Object Code to Source Code, except as permitted by law.

Unauthorized Use: Creating derivative works, modifying, copying, or using the Software in ways not expressly permitted by the Agreement is prohibited.

Transfer or Redistribution: You cannot transfer, sell, rent, lease, distribute, sublicense, or loan the Software to any third party without explicit permission from AxonIQ.

Prohibited SaaS Offering: Using the Software for SaaS offerings where access to the Software's features is a primary reason for the service is not allowed without AxonIQ's permission.

Circumvention of License Limitations: You must not bypass any limitations imposed by License Keys or alter/remove any Marks and Notices.

Commercial Exploitation: You're restricted from using a Derivative Work of the Commercial Software outside of a Non-production Environment or making the Commercial Software Source Code available to third parties.

High-Risk Use: The Software must not be used in any situation where its failure could lead to death, serious bodily injury, or severe physical/environmental damage without prior written consent from AxonIQ.

General Terms:

Confidentiality: You must maintain the confidentiality of AxonIQ’s Confidential Information during and after the term of the agreement.
Liability: AxonIQ disclaims all warranties to the maximum extent permitted by law and limits its liability for damages.
Audit: AxonIQ reserves the right to verify your compliance with the Agreement through audits.
Amendments and Assignment: The Agreement may be amended by AxonIQ with notice, and you may not assign it without AxonIQ's consent.

This summary highlights the primary permissions and restrictions within the AxonIQ Open Source License Agreement. It’s crucial to read the entire agreement carefully to understand all the terms and conditions of using AxonIQ’s software.

Redis Labs
Redis Labs changes its open-source license — again
https://techcrunch.com/2019/02/21/redis-labs-changes-its-open-source-license-again/
https://itassetmanagement.net/2018/10/24/open-source-databases-to-cloud-vendors-get-forked/
Redis Labs, the open source database company, have changed the licensing of several of their modules – moving from the AGPL (Affero General Public License) to Apache V2 with Commons Clause license.

Hashicorp
2023

That is why today we are announcing that HashiCorp is changing its source code license from Mozilla Public License v2.0 (MPL 2.0) to the Business Source License (BSL, also known as BUSL) v1.1 on all future releases of HashiCorp products. HashiCorp APIs, SDKs, and almost all other libraries will remain MPL 2.0.
BSL 1.1 is a source-available license that allows copying, modification, redistribution, non-commercial use, and commercial use under specific conditions. With this change we are following a path similar to other companies in recent years. These companies include Couchbase, Cockroach Labs, Sentry, and MariaDB, which developed this license in 2013. Companies including Confluent, MongoDB, Elastic, Redis Labs, and others have also adopted alternative licenses that include restrictions on commercial usage. In all these cases, the license enables the commercial sponsor to have more control around commercialization.
https://www.hashicorp.com/blog/hashicorp-adopts-business-source-license

MariaDB
Projects using BSL 1.1:

Licensed Work: MariaDB MaxScale™ v.2.0 (until v.2.0.4 as BSL 1.0) and MariaDB MaxScale™ v.2.1. The Licensed Work is © 2023 MariaDB
Additional Use Grant:  You may use the Licensed Work when your application uses the Licensed Work with a total of less than three server instances in production.
Change Date:  For MaxScale versions 2.4.3 and above, change date is four years from release date.
Change License: Version 2 or later of the GNU General Public License as published by the Free Software Foundation.

Cocroach DB
Links

https://github.com/cockroachdb/cockroach/blob/master/licenses/BSL.txt
https://www.cockroachlabs.com/blog/oss-relicensing-cockroachdb/
https://www.cockroachlabs.com/docs/stable/licensing-faqs#set-a-license


Spanish translations setup draw

Added a Spanish translated version of the setup() function. I also made sure that "Structure" module and submodule is referred to as "Structure" In other Spanish translations on the website

@lauradowell You will still need to pull the changes to this PR and make the changes Juan suggested. Let me know if you need help completing that.

Hi @limzykenneth I have added @Juan31416 's changes. I had some formatting issues so It took me a few attempts to fix these, but Juan's suggestions are incorporated


Tokenizer

Great job on the branch chaining!
PR descriptions will usually include a short description of a feature added, bug fix, changes and link to some work item ticket.  Just FYI


"either corrupted API or lockfile dependencies" warning message results in error

I know, that this gem is kinda old and not popular. I've managed to make it work by editing Gemfile.lock, but that is not great at all. Any help is appreciated.
$ bundle -v
Bundler version 1.16.1
$ bundle
...
affiliate-window-0.2.1.pre1 from rubygems remote at https://rubygems.org/ has either corrupted API or lockfile dependencies (was expecting ["hashie (>= 0)", "savon (>= 0.9.7)", "savon_model (>= 0)"], but the real spec has ["savon (>= 0.9.7)", "savon_model (>= 0.0.0)", "hashie (>= 0.0.0)"])
...
Downloading affiliate-window-0.2.1.pre1 revealed dependencies not in the API or the lockfile (savon_model (>= 0.0.0), hashie (>= 0.0.0)).
Either installing with `--full-index` or running `bundle update affiliate-window` should fix the problem.

UPDATE: bundle command succeeds with version 1.14.0 of bundler.
$ bundle env
Bundler       1.16.1
  Platforms   ruby, x86_64-darwin-16
Ruby          2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
  Full Path   /Users/sk/.rbenv/versions/2.5.0/bin/ruby
  Config Dir  /Users/sk/.rbenv/versions/2.5.0/etc
RubyGems      2.7.3
  Gem Home    /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2
  Gem Path    /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2:/Users/sk/.rbenv/versions/2.5.0/gemsets/global:/Users/sk/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0
  User Path   /Users/sk/.gem/ruby/2.5.0
  Bin Dir     /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2/bin
Tools
  Git         2.14.3 (Apple Git-98)
  RVM         not installed
  rbenv       rbenv 1.1.1

What's the output of bundle env and what happens if you run --full-index?

ping @

ping @K-S-A

Sorry for late response.
bundle install --full-index results in exactly the same problem.
bundle env
Bundler       1.16.1
  Platforms   ruby, x86_64-darwin-16
Ruby          2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
  Full Path   /Users/sk/.rbenv/versions/2.5.0/bin/ruby
  Config Dir  /Users/sk/.rbenv/versions/2.5.0/etc
RubyGems      2.7.6
  Gem Home    /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2
  Gem Path    /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2:/Users/sk/.rbenv/versions/2.5.0/gemsets/global:/Users/sk/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0
  User Path   /Users/sk/.gem/ruby/2.5.0
  Bin Dir     /Users/sk/.rbenv/versions/2.5.0/gemsets/termscorp-web2/bin
Tools
  Git         2.14.3 (Apple Git-98)
  RVM         not installed
  rbenv       rbenv 1.1.1

  chruby      not installed

Bundler Build Metadata
Built At          2018-03-01
Git SHA
Released Version  false

Bundler settings
github.https
  Set for the current user (/Users/sk/.bundle/config): "true"
gem.test
  Set for the current user (/Users/sk/.bundle/config): "minitest"
gem.mit
  Set for the current user (/Users/sk/.bundle/config): true
gem.coc
  Set for the current user (/Users/sk/.bundle/config): true
jobs
  Set for the current user (/Users/sk/.bundle/config): "4"
build.puma
  Set for the current user (/Users/sk/.bundle/config): "--with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib"

Gemfile
Gemfile
source 'https://rubygems.org'
ruby `cat .ruby-version`.strip

...

gem 'affiliate-window'

...

Gemfile.lock
...

GEM
  remote: https://rubygems.org/
  specs:
    ...
    affiliate-window (0.2.1.pre1)
      hashie
      savon (>= 0.9.7)
      savon_model
    ...

PLATFORMS
  ruby

DEPENDENCIES
  ...
  affiliate-window
  ...

RUBY VERSION
   ruby 2.5.0p0

BUNDLED WITH
   1.16.1

With --verbose flag it outputs this lines:
...
affiliate-window-0.2.1.pre1 from rubygems remote at https://rubygems.org/ has either corrupted API or lockfile dependencies (was expecting ["hashie (>= 0)", "savon (>= 0.9.7)", "savon_model (>= 0)"], but the real spec has ["savon (>= 0.9.7)", "savon_model (>= 0.0.0)", "hashie (>= 0.0.0)"])
...

Sounds like a regression, thanks for this report!

Looked into this a bit, and it's due to the fact that bundler is treating the dependencies in the lockfile as >= 0, rather than the >= 0.0.0 which is returned from the server

Looks like a bug in Gem::Requirement! PR to RubyGems incoming

I think https://github.com/rubygems/rubygems/pull/2230 should fix this!


⚠ Samsung has degraded performance

In e9f6c9a, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2958 ms

Resolved: Samsung performance has improved in d63cfe2.


Proposal for Polaris service powered by Quarkus

Quarkus is an open source framework for Java (https://quarkus.io/) with a great ecosystem (e.g. extensions) and high performances (with a focus on build time resolution).
It's a good framework for cloud deployment, especially on Kubernetes.
I will open a proposal PR (draft first) providing polaris-service-quarkus as a proposal to use Quarkus instead of Dropwizard.

As shared on the mailing list, the branch is here: https://github.com/jbonofre/polaris/tree/QUARKUS
As reminder, the purpose of Quarkus (for Polaris):

CDI model powered by annotations
More friendly pluggable mechanism
Extensions ecosystem
Performance boost

Proposal document: https://docs.google.com/document/d/1C7E0ma6OvHGvWMJlZVkQHBsvPg8Pe9aroDtQ_79SIXY/edit?usp=sharing


"Algorithm container has no name, and there are too many" error lacks the line number

See https://github.com/gpuweb/gpuweb/pull/2162/checks?check_run_id=3805693853

Algorithm container has no name, and there are too many s to choose which to infer a name from.

It's expected for each error to at least point to the place of code where it happens.

Aside, might be worth adding the repo to https://github.com/tabatkins/bikeshed/blob/main/.github/workflows/update-tests/specs.data


CC Apps API should return typed results instead of http.Response

The CC Apps API "Get App", "List Apps" method only returns the raw http.Response and not an Application object. This requires consumers to create their own Application structs and unmarshal the raw JSON response.

This is fixed in https://github.com/sailpoint-oss/golang-sdk/commit/2f6c956cb8b9cfc13634c55d63a503951f673669 and released in https://github.com/sailpoint-oss/golang-sdk/releases/tag/v1.0.3


Variable Explorer stops working after restarting the kernel

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[x] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
The Variable Explorer seems to stop working after restarting the kernel.
What steps reproduce the problem?

Open a new console, and define some variables
Restart the kernel of this console

What is the expected output? What do you see instead?
The Variable Explorer should be updated. However, it never changes after restarting the kernel. It still lists the old variables.
(If I happen to define new variables with the names showing in the "freezed" variable explorer, I may see it by double-cliking it; otherwise, it will tell me that the kernel is dead or raises KeyError.)
 It seems to be related to something in the system or the software, somehow triggered by certain operations in Spyder. Maybe I need more time until I get an idea...
Just for reference: the Variable Explorer returns normal hours ago, but I don't know why. The problem occurs again after I instantiated an object of class defined in a custom package in the PYTHONPATH (but not installed in the enviromnent; by the way, this means that the Variable Explorer cannot view this object). I have not found a minimal example of reproducing the problem, because now the issue I reported presents, and trying it in the new environment, restarting Spyder and rebooting my system don't help.

Ok, no problem. I'll let this issue open for a week in case you find a way to reproduce the bug again.

Closing since no additional failures have been mentioned so far.


enhance: remove useless mark in LogicalAggregate

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildp0

run buildall

run buildall

run buildall

run buildall


feat: Remove entrypoint collection

Attempt at removing the horrifying EntrypointCollection class. This allows us to remove the { sender: address } option when sending a tx, and instead just rely on the Wallet attached to the Contract instance to decide which sender to use. In other words, there is now only one way to choose which account sends a tx, following ethers conventions, rather than web3js. It also allows us to clean up some utils that are no longer necessary.

So the CI is failing to build due to an error on a file that was deleted on this PR:
18:37:59| Step 4/6 : RUN yarn build && yarn formatting && yarn test
18:38:00| ---> Running in 5dae2e9d77ea
18:38:07| ../aztec.js/src/account/entrypoint/entrypoint_collection.ts(5,10): error TS2305: Module '"./index.js"' has no exported member 'CreateTxRequestOpts'.
18:38:07| ../aztec.js/src/account/entrypoint/entrypoint_collection.ts(49,54): error TS2554: Expected 1 arguments, but got 2.
The command '/bin/sh -c yarn build && yarn formatting && yarn test' returned a non-zero code: 2

Does this seem like a rebuild issue?

I guess given our current setup, this should really be all ts files
  "yarn-project-base": {
    "buildDir": "yarn-project",
    "dockerfile": "yarn-project-base/Dockerfile",
    "rebuildPatterns": [
      "^circuits/.*\\.(cpp|cc|cxx|c\\+\\+|h|hpp|hxx|h\\+\\+|c|h|inl|inc|ipp|tpp|cmake)$|^circuits/.*CMakeLists\\.txt$",
      "^l1-contracts/",
      "^yarn-project/l1-artifacts/",
      "^yarn-project/noir-contracts/",
      "^yarn-project/noir-libs/",
      "^yarn-project/noir-compiler/",
      "^yarn-project/yarn-project-base/",
      "^yarn-project/yarn.lock"
    ],

See https://github.com/AztecProtocol/aztec-packages/pull/2151

Yup, looks like this line copies the entire yarn-project on yarn-project-base:
https://github.com/AztecProtocol/aztec-packages/blob/27d5c76ac49e2d1c737ec81bee396ca4ffc27c45/yarn-project/yarn-project-base/Dockerfile#L117
I wouldn't go as far as setting all ts files as a rebuild pattern for yarn-project-base, or that would cause everything to rebuild every time. Maybe we can remove that line from the project base dockerfile?

Will take this up Monday alright


I got a error saying : An error has occurred: xdelta3: target window checksum mismatch: XD3_INVALID_INPUT

idk how to fix it i just got the error and cant fix

idk how to fix it i just got the error and cant fix

Are you using the itch.io version or a pirated version of the game?

Also, possible duplicate of https://github.com/AGO061/BuckshotRouletteModLoader/issues/1

If you downloaded from itch.io try re-downloading it

I'll close this for now as it's probably a duplicate, feel free to open a new issue if it persists

I'm getting this error also, but I'm using the Steam version.

@Apollucas Are you using the BRML_setup.exe installer or the brml2.xdelta file? Could you check to make sure you have the latest version installed (1.2.2) and are using the latest files from GitHub?

@MSLaFaver I'm using the brml2_linux.xdelta file, and I'm running the latest Linux version (should've clarified that earlier, sorry), which is also 1.2.2. I've also done a fresh pull on the GitHub repo to try again, to no avail.

@Apollucas Thanks for letting me know! Steam pushed out Hotfix 4 and didn't tell anyone. The installer and xdelta patches are working now!

@MSLaFaver You're welcome, glad to be of help! :)

I have the exact same problem and circumstances as @Apollucas and it's not working for me. This is the error I have:
xdelta3: target window checksum mismatch: XD3_INVALID_INPUT
xdelta3: normally this indicates that the source file is incorrect
xdelta3: please verify the source file with sha1sum or equivalent

I'm using Fedora Silverblue 39.


New version: PovertyAndInequalityMeasures v1.0.5

Registering package: PovertyAndInequalityMeasures
Repository: https://github.com/grahamstark/PovertyAndInequalityMeasures.jl
Created by: @grahamstark
Version: v1.0.5
Commit: fa3a083b100096f6950b5d16c6843fa6f4c4ec8c
Git reference: HEAD
Release notes:

Project file updates dataframes to 1.0

@grahamstark did you skip a version on purpose?

@grahamstark did you skip a version on purpose?

Hi Giordano: I'm honestly not sure what's happened here. I made a 1.0.4 on 23 Jan and I thought I'd submitted it to you: should have checked, sorry. Would anything break at your end if I just went from 1.0.3->1.0.5? I'm sure it's my mistake, though.  Many thanks for all the work you do on this, Graham

No, nothing breaks, just checking that you're ok to skip the version in the registry and we can merge manually

Ok, I went ahead and merged this to avoid further delays :slightly_smiling_face:

thanks! Will do better next time :)


Column Names are not being read properly

Great package! But when I use CSV or XLSX, the tool is not able to use the actual column names in the file.
Is there something I should do?

Not a robust solution, however you can specify the filename and associated columns in the prompt/user_msg and it works.


Planning:Add unit test and fix minor typos

The build failure is due to lint.
Will run the lint check locally to verify.

The lint error has been fixed.


Fix most deprecation warnings in our builds

Together with the latest round of Renovate updates most of the errors mentioned below should be fixed.
There is still audit-check and clippy-check for which we need an alternative but I wanted something out of the door and work on the others later.
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af, actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505. For more information see:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

I'm about to merge a bit of stuff into the operators anyway, if this is ready to go I could include it?

Yes please, I've just been waiting for a review.

I'm afraid I cannot really comment on most of the changes, would require a bit of research on my part ..
@fhennig  you reviewed this before, can you take another look?

I didn't really review it, I just had a glance and noticed something. there is still a yamllint error, and on the same line (41) it looks like the indentation isn't correct.
Other than that it looks fine to me, and I can't really test it locally or anthing, so I could stamp my approval on it :laughing:

I'll fix the YAML lint, sorry, I thought I already did
If we don't get this in all our builds will start failing at the end of April so I'd like to not let this PR rot too long

@soenkeliebau @fhennig Ready to "review" again. I suggest we just try merging this and I will only merge a single PR (e.g. NiFi) to test

Well....most deprecation warnings are gone (I know about the remaining ones) but there were at least two mistakes in there anyway so I'll clean up the PRs and will create a follow-up


fix(iv): avoid crash with OpenGL + multi-channel images

For image with more than 4 channels, we were misallocating the OpenGL buffer by using the total channels instead of the 4 we wanted to create the texture out of. Also, make sure the calculation usees wide types to avoid possible integer overflow.

No objections + fixes a crash = merge


removing setTimeout and adding onBlur event on the cell grid

Cell value changed to new value entered, unless used "Esc" key
now this behaviour is working fine
Please Review @origami-z

Thanks for the contribution Amey! I need to talk to our designer in case this functionality was intentional. Even if it was, we can still change it if enough people complain. Out of curiosity, are you using the salt data grid in production? (Feel free to reach out to me directly on Symphony)

Sorry is there any open slack or is symphoney an internal tool ?

Thanks @ZarkoPernar Sure . if possible can you please give the link for cla ?

@AmeyDagaria007 See contribution guide here.


RACK box install script should build RACK CLI

To support cross-platform builds of the RACK box, the install script should build the RACK CLI on the Docker Linux box.

I suspect that if we modify the rack-box install script to clone the RACK repo, build the RACK CLI, and create the RACK tar files and documentation, we will need to install additional Ubuntu, Python, and npm packages in the rack-box which would make the rack-box image's size even larger.
The CI workflow already downloads and prepares all the necessary files on a separate Linux runner and then caches these files before building the rack-box image.  Given these files are already built and cached by the CI workflow, I could modify the CI workflow to upload the rack-box tarballs, documentation.html, and index.html as build artifacts in each run so you could go to the most recent workflow run and download these artifacts instead of building them yourself.  Note that the CI workflow gets a speedup from caching the rack-box/files directory's contents between jobs / runs which don't change anything.  We would lose the benefit of that caching if we move those steps into the packer build command itself by calling those steps in the rack-box script.  Would uploading these files as build artifacts which you can download yourself be enough?
If you still want to automate as many steps as possible to make it easier to build a rack-box image on another architecture, I suggest you write a separate script (not modify the rack-box install script) which you run yourself.  You can use a separate Docker image (a Python builder image or a specially created builder image) and a docker run command / script which bind mounts the directory above your RACK and RACK.wiki checkouts and then executes the necessary build steps to download files and place tarballs and documentation files into your RACK/rack-box/files directory.  To avoid divergence between your script and our CI workflow, we would modify our CI workflow to call your script instead of running those steps itself.


Add files to all package.jsons

From @castastrophe, we should add a files property to every component's package.json in order to white-list the files to be published to npm.  We currently have files that are being published but are not ever meant to be consumed independently.  See pfe-icon-set.js in prerelease.25.  These files typically live in src and are imported by the "main" component module.  Rollup embeds them in the bundle, but they are also copied into the component's root dir, and come along for the ride when publishing.  It would be good to clean them up.
The generator could lay down a good default using the component's tag name.  An example for pfe-navigation:
"files": [
    "pfe-navigation.*js{.map}"
],

Components with a need to include files that don't match that pattern (PFElement's pfelement.css for example) can have those files added to the files array.

I think we've got this covered now


Supabase.initialize() blocks when access token has expired

Describe the bug
There are a couple of issues with session management that effectively prevents users from using a Supabase/Flutter-based app while offline, even if all the required data is cached in the app.

When launching the app with an expired access token, Supabase.initialize() blocks until the session is refreshed. In the best case, this adds a delay to the app startup. If the user is offline, the app hangs completely while launching.
The above assuming the default of calling await Supabase.initialize() from main(). We can't just remove the await - there is no way to check whether or not the user is already logged in until that completes.
~If the user is offline for a while in the app, the access token refresh will fail and is retried every 5 minutes or so. If the user comes online again, the user has to wait for that automatic retry, and all other calls will fail with a 401 error until it completes.~ There is no way to explicitly trigger a retry.

To Reproduce
Steps to reproduce the behavior:

Set JWT expiry limit to 90 seconds (unrealistically short, but makes this issue easier to reproduce).
Place the device in offline mode.
Wait 2 minutes.
Kill and restart the app.

Expected behavior

Supabase.initialize() should not block on any network calls. At most, Supabase.initialize() should block until the session could be loaded from local storage, even if the access token has expired.
~Calls to Postgrest should automatically refresh the access token if required, instead of waiting for the automatic retry (also see https://github.com/supabase/supabase-flutter/issues/452#issuecomment-1584661212).~
An API to explicitly refresh the access token if expired should be added.

Version (please complete the following information):
└── supabase_flutter 1.10.16
    ├── supabase 1.11.3
    │   ├── functions_client 1.3.2
    │   ├── gotrue 1.12.1
    │   ├── postgrest 1.5.0
    │   ├── realtime_client 1.2.1
    │   ├── storage_client 1.5.2

Workaroud
As a workaround, setting the JWT expiry limit to the max (1 week) reduces the impact of this issue (limits the occurrence to once a week). But that is quite bad for security - there is then effectively no way to sign users out remotely.
Ideally I'd like to use 5 minute expiry limits, but even with the default of 1 hour this issue comes up quite often.

Calls to Postgrest should automatically refresh the access token if required, instead of waiting for the automatic retry

that should already be the case since supabase v1.9.8.

An API to explicitly refresh the access token if expired should be added.

Use Supabase.instance.client.auth.refreshSession();

that should already be the case since supabase v1.9.8.

Thanks, I missed that that part is already implemented, calling refreshSession() automatically. I'll see if I can still reproduce the 401 errors I saw before, but either way it would still be affected by issues with refreshSession() below:

Use Supabase.instance.client.auth.refreshSession();

The issue with refreshSession() is that it does not initiate a new call if there was already an existing one - it waits for the existing call to complete, which includes waiting for retries with exponential back-off.
So what happens is that the user was offline, and now _callRefreshToken() is only attempted around once every 5 minutes. So even though the user is online again, it could take up to 5 minutes before the token is actually refreshed, and every call to refreshSession() waits for that. I could not find any way to trigger it immediately.

@rkistner
The supabase_flutter client should fetch an new access token if needed on every request that is sent out, so we might not need to refresh the session in the Supabase.initialize() method. However, I feel like we might run into some race conditions on the realtime side. Will investigate and see what we could do.

The issue with refreshSession() is that it does not initiate a new call if there was already an existing one - it waits for the existing call to complete, which includes waiting for retries with exponential back-off.
So what happens is that the user was offline, and now _callRefreshToken() is only attempted around once every 5 minutes. So even though the user is online again, it could take up to 5 minutes before the token is actually refreshed, and every call to refreshSession() waits for that. I could not find any way to trigger it immediately.

That is a good point. We could probably modify the library to immediately attempt to refresh the token when refreshSession() is called.

Thanks for the quick response! I'll test out the refreshSession() fix - that should only leave the Supabase.initialize() issue.

Closing this issue as with supabase_flutter v2, Supabase.initialize() no longer needs network connection to complete.

Hello, I'm using next auth access token in the Supabase.initialize() like this
await Supabase.initialize(
   url: Constants.supabaseUrl,
   anonKey: Constants.supabaseAnonKey,
   headers: {
     'Authorization': 'Bearer $accessToken',
   },
);

But if the user is not authenticated at the application's startup, the access token is null, so how do I update my supabase client when the user will sign-in?

@gyannickange This issue is already closed for 6 months and is not really related to your issue. Please open a new issue next time.
I think the recommended way is to update headers via the client.headers setter.

@gyannickange This issue is already closed for 6 months and is not really related to your issue. Please open a new issue next time. I think the recommended way is to update headers via the client.headers setter.

Thanks. This solution works for me.


feat: audio provider interface and implementation

changes:

Audio provider interface added
Audio provider implementation
factory added

closes #172


Update README.md

Hi there,
Thanks for this awesome tool, it is really awsm. Just want to Pull one small change in:
The previous code was:
gau [host] -subs | cut -d"?" -f1 | grep -E "\.js(?:onp?)?$" | tee urls.txt
I changed to:
gau -subs [host] | cut -d"?" -f1 | grep -E "\.js(?:onp?)?$" | tee urls.txt
Issue with previous snippet:
It's not fetching with subdomain if you add host first then after -subs args. It's only working fine when you use this: gau -subs [host]
Thanks & Regards,
Jinay(0_0eth0).

Hi there,
Thanks for the Labelling, you can merge my pull request if you found this as useful.
Best Regards,
Jinay(0_0eth0)

Hi @0-0eth0,
After I tried this command, damn you right! I'm not thorough, thanks for remind me. PR merged.

Anytime, mate!
Thanks for merging anyways. Hope it helps.
Regards,
Jinay(0_0eth0)


Interactable object

This PR respond at issue some trapdors should be openable
but with more interactible object (door, fence ...)

Actually for now #444 vanilla behavior is enough, let's not have this PR


feat: Add DynamoDB provider to parameters module

Issue #, if available:
#1083
Description of changes:
Adds a DynamoDbProvider to the parameters module. Follows the style of the existing parameters provider and the schema used in the python powertools.
Checklist

[x] Meet tenets criteria
[x] Update tests
[x] Update docs
[x] PR title follows conventional commit semantics

Breaking change checklist
N/A - new functionality
RFC issue #:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jeromevdl I think that should be it! I've cleaned up the exceptions too.

@jeromevdl anything else to polish? 👼


Add workflow for building GEOS and populate relevant tasks

Description
Add tasks for clone, build (by linking) and build GEOS.
Add workflow for building GEOS. First part of having a workflow for making a forecast with GEOS.

@mathomp4 would appreciate if you have a chance to check over the clone_geos.py  and build_geos.py tasks to make sure I haven't done something incorrect.

The GEOS build worked for me. Only issue (not related to this PR) I had was the long wait time for the compute node.


The difference is unclear to me between Ghidra direct and indirect references

Discussed in https://github.com/NationalSecurityAgency/ghidra/discussions/4642
(I thought I had submitted a "question" issue last week on this topic (how to understand what an indirect reference type means in Ghidra). But searching open and closed issues that I submitted doesn't turn anything up, so perhaps I was wrong. Is there some chance that I did create an issue but that it is somehow invisible?)

Originally posted by gtackett October  6, 2022
Ghidra has a number of indirect reference types, but I'm not sure I know how to interpret "indirect" in the context of a Ghidra reference. The built-in help doesn't clarify this.
In the context of an instruction set architecture, I understand indirect reads and writes as using the value in a register or a memory location, as a pointer to the memory location to be read or written. The destination address of an indirect call is determined similarly.
But is this also how a Ghidra indirect reference is to be used?
I ask, because Ghidra's analyzers, for the several ISAs I'm familiar with, appear always to create simple read or write references (READ or WRITE) where one might expect indirect references with the _INDIRECT suffix on the reference type. Also, I believe that indirect references don't show up in the XREF column in the disassembly--that was true, anyway, several major versions back.

The INDIRECT reference type is an odd duck but is used in certain situations to reflect an indirect flow of a computed call or jump through a pointer.  The INDIRECT reference implies a READ of a pointer in memory which will be used as an instruction's flow destination.  The from instruction's FlowType must be queried to clarrify the relavent instruction flow type (Listing.getInstructionAt(ref.getFromAddress()).getFlowType()).  In some analysis situations INDIRECT references can simply be treated like a READ since they do not refer to a destination instruction.  Other analysis may lay down computed jump/call flow references on the same instruction which do refer to the destination instruction(s).

Thanks, @ghidra1 . Your response makes it clear how the reference type INDIRECTION specifically is intended for use where flow destination is based on dereferencing a pointer.
But it's not so clear how (or if)  that applies to the indirect data reference types that I'm most puzzled about:  (DATA_|READ_|WRITE_|READ_WRITE_)IND.

There is no reference type that reflects an indirect memory read/write since such a reference would in most cases be via a register value and would simply be considered a simple memory read or write.   Data flow analysis would be required to determine the origin of a memory read/write pointer.  In some cases it would be an encoded constant from an instruction (aboslute or relative) and in other cases the pointer may be computed or read from another memory location.  We do not attempt to produce different data reference types that reflect these distinctions.

@ghidra1 do you have any information about the indirect data reference types I asked about in my last comment?

Where the built-in help names the indirect data reference types, it does not mention that Ghidra itself makes no use of  them. That's partly why I've been scratching my head over their meaning.
You (Ghidra team) probably have many issues you want to address regarding the built-in help. Perhaps this lack of information is one that you might add to the list?


Cluster recs: support "first" query parameter

The patch enables the usage of the "first" query parameter with the rule id as a valid value. If given, the list will show the requested rule as the first in hitting recommendations for this cluster.

[x] Single cluster page: accept the first query parameters
[x] Single recommendation page: change the link to each of the clusters

@Fewwy, PTAL 👁🗨

@gkarat LGTM


Generic *sqlx.DB or *sqlx.Tx?

Hi, is there a way I could accept a parameter which is either sqlx.DB or sqlx.Tx?
I have this function wherein I have to pass *sqlx.DB:
func GetUser(db *sqlx.DB, username string) ...

There's no problem with this, until I create a new Transaction and inside that transaction, I need to call GetUser. So I ended up implementing 2 functions to provide the same result...
func GetUser2(tx *sqlx.Tx, username string) ...

Is there a way I can make this into 1 function? I tried this:
func GetUser(db *sqlx.DB, tx *sqlx.Tx, username string) (*User, error) {
  if tx != nil {
    // use tx
  } else {
    // use db
  }
  ...
}

but is this okay? I wish there is something like this:
func GetUser(db *sqlx.DBorTxSomething, ...

:)

@mewben This is consistent with *sql.Tx and *sql.DB in the standard library.
Over in golang-nuts, @davecheney suggests defining your own interface.
See: https://groups.google.com/forum/#!topic/golang-nuts/yLg6IWbwPPw

I've achieved this by creating an interface that covers the sqlx methods I need and then creating two implementations that wrap sqlx.DB and sqlx.Tx respectively.  Then your GetUser method can accept that interface instead of the concrete types.

Hey, you need to create a common interface that is used by both *sqlx.DB and *sqlx.Tx.
Example:
type DB interface {
	Querier
	Begin() (Tx, error)
	Close() error
}

type Tx interface {
	Querier
	Commit() error
	Rollback() error
}

type Querier interface {
	QueryRow(query string, args ...interface{}) Row
	Select(dest interface{}, query string, args ...interface{}) error
	NamedQuery(query string, arg interface{}) (Rows, error)
	NamedExec(query string, arg interface{}) (sql.Result, error)
}

func GetUser(q *Querier, username string) {}

Ahhh.. I get it now.. Thank you all...

Maybe it's just me but I'd still love to see this, bit of a pain to need yet-another layer

Hey, you need to create a common interface that is used by both *sqlx.DB and *sqlx.Tx.
Example:
type DB interface {
	Querier
	Begin() (Tx, error)
	Close() error
}

type Tx interface {
	Querier
	Commit() error
	Rollback() error
}

type Querier interface {
	QueryRow(query string, args ...interface{}) Row
	Select(dest interface{}, query string, args ...interface{}) error
	NamedQuery(query string, arg interface{}) (Rows, error)
	NamedExec(query string, arg interface{}) (sql.Result, error)
}

func GetUser(q *Querier, username string) {}

But of course, it requires you to wrap sqlx :)

Thank you for your advice. I written a wrapper of *sqlx.DB and *sqlx.Tx in my open source microservice framework go-doudou. Here is the link: https://github.com/unionj-cloud/go-doudou/blob/main/ddl/wrapper.go. Hope to help others.


Closes #400

For some reason, I'm unable to link issues in the title, but it's here: #400
I've created a very basic and standard unit file for now. If there are any additions or changes to the unit file, let me know.
The user has the possibility to specify the path of where the unit file gets created, and/or options to go with the built binary inside the unit file. Otherwise it defaults to no args and the default /etc/systemd/system/ folder

Ok, I will close this PR and will continue discussion in the issue until we reach the desired outcome


you should add some margin left and right to the datesheet

Assign me this issue, so that I can fix it

Alright I just assigned you

you can close this issue now @brycehadl


all_ems_in_zone is not a scope yet, so we can't chain 'where'

Fixes a bug introduced in:
https://github.com/ManageIQ/manageiq/pull/14675
We'll do our condition checks on arrays for now, until we can properly
use scopes.  The scopes will require us to change callers to expect
scopes, which is why we're fixing this bug for now.

It's ok @miq-bot, I disagree.  It's not worth appeasing you this time.  Sorry.


Resolver Metadata

The resolver compiler shall gather data about the resolver like what services it is using and so forth and store those with the field that owns the resolver. This will allow the query engine to optimize resolver execution.

#1486


Added str.rfind(), str.rindex(), str.rpartition()

Hope that my test cases for str.rpartition() which differs from str.partition() is acceptable!

@contraultra Thanks for an excellent contribution! :+1:


Invariant Violation: Native component for "VRTText" does not exists

I encountered this problem when I was trying to add an ARscene in my application(which is a simple mobile application). I just copied the helloworldscene sample from viroreact page and npm installed react-viro. Did anyone also encounter this?

See this issue as someone else ran into this previously and was able to resolve it -> https://github.com/viromedia/viro/issues/177

I have this same error, but I'm on a mac trying to build on ios.
I created a new project with viro-react version v2.7.0, opened the project in xCode and built to my iphone. I didn't change any files.
I got to the screen where it asks to choose AR or VR, and once I choose one I get the error above.

I was able to solve it. Thank you.


Add metrics for EH

https://cloud.spring.io/spring-cloud-stream-binder-kafka/spring-cloud-stream-binder-kafka.html#kafka-metrics

Closing this issue for we have another issue to track for it.


removing node should not result in Karpenter panicing

Version
Karpenter: v0.9.0-rc0
Kubernetes: Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.9-eks-0d102a7", GitCommit:"eb09fc479c1b2bfcc35c47416efb36f1b9052d58", GitTreeState:"clean", BuildDate:"2022-02-17T16:36:28Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Expected Behavior
removing a node should result in Karpenter dying via panic
Actual Behavior
2022-04-19T23:30:04.651Z	ERROR	controller	unable to find node for bound pod, with node name %!c(string=ip-10-41-150-171.us-west-2.compute.internal)	{"commit": "c9b3eb3"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x13f923e]

goroutine 2173 [running]:
github.com/aws/karpenter/pkg/controllers/state.(*Cluster).ForPodsWithAntiAffinity.func1({0xc00292f8d8, 0x3c160f8}, {0x2348e00, 0xc000b47400})
	github.com/aws/karpenter/pkg/controllers/state/state.go:92 +0x23e
sync.(*Map).Range(0xc001187970, 0xc00292f958)
	sync/map.go:346 +0x2aa
github.com/aws/karpenter/pkg/controllers/state.(*Cluster).ForPodsWithAntiAffinity(0x21604e0, 0x1fc9ba0)
	github.com/aws/karpenter/pkg/controllers/state/state.go:80 +0x49
github.com/aws/karpenter/pkg/controllers/provisioning/scheduling.(*Topology).updateInverseAffinities(0xc002c3f1d0, {0x27fda30, 0xc002895e00})
	github.com/aws/karpenter/pkg/controllers/provisioning/scheduling/topology.go:184 +0xb7
github.com/aws/karpenter/pkg/controllers/provisioning/scheduling.NewTopology({0x27fda30, 0xc002895e00}, {0x283e058, 0xc00036e5f0}, 0xc0033df9d0, {0xc002bd5ac0, 0x7, 0xa})
	github.com/aws/karpenter/pkg/controllers/provisioning/scheduling/topology.go:68 +0x209
github.com/aws/karpenter/pkg/controllers/provisioning/scheduling.(*Scheduler).Solve(0xc003c60f00, {0x27fda30, 0xc002895e00}, 0xc0033df998, {0xc002b8e000, 0x19a, 0x200}, {0xc0027f0618, 0x1, 0x1})
	github.com/aws/karpenter/pkg/controllers/provisioning/scheduling/scheduler.go:100 +0x5a8
github.com/aws/karpenter/pkg/controllers/provisioning.(*Provisioner).provision(0xc000a23a90, {0x27fda30, 0xc002895e00})
	github.com/aws/karpenter/pkg/controllers/provisioning/provisioner.go:108 +0x346
github.com/aws/karpenter/pkg/controllers/provisioning.NewProvisioner.func1()
	github.com/aws/karpenter/pkg/controllers/provisioning/provisioner.go:52 +0x70
created by github.com/aws/karpenter/pkg/controllers/provisioning.NewProvisioner
	github.com/aws/karpenter/pkg/controllers/provisioning/provisioner.go:50 +0x2dd

Steps to Reproduce the Problem

Resource Specs and Logs

I realize this is a pretty slim bug report.  I wanted to get something filed in case some one else noticed this.  I'll try to add more details/steps if/when I get an accurate reproduction.

@BryanStenson-okta  I think this is from the experimental branch that you are running, still a good bug report but I don't think this is from the RC as that cluster state tracking code isn't in v0.9.0-rc.0.

Thanks for this, I wrote up a test and fixed it in #1698 .  This is a preliminary PR that starts to add support for maintaining cluster state as we move towards in-flight node awareness and potentially not-binding.

Cluster state with fixes was merged.


bdd-spring-1559580180 to 0.0.1

Promote bdd-spring-1559580180 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Unable to run example

Installation of deps: cd/example && npm install

And on running npm run start

Try installing a newer version of webpack, that is at least version 2.1.0-beta.26, since that's the peer dependency that the webpack-dev-server seems to need.
It might be necessary for us to update some dependencies and configs there, @alex3165.

Fixed with this commit : https://github.com/alex3165/react-mapbox-gl/commit/63d5a0c5f4fe8a22e7587cbd9a91923a4621dfcb


Add french translation

Sorry for the previous PR, I fucked up between my accounts.
This commit adds French translation to the app.
I'm prone to do grammatical mistakes so a complete review by another French speaker would be appreciated.
I also don't know how to translate “Panic Trigger” in a short sentence.

Thank you for the translation! 👍
I just pushed two new commits which add one new string for the next release, it would be nice if you could add it as well. Also you don't need to include the strings marked translatable="false" in your files.

I translated “Panic Trigger” to « Bouton d’urgence », but I don't know if it's really clear in French.
A friend of mine reviewed my translation and was ok with it.

Thank you for merging this PR and for your work on this app !

Thank you for merging this PR and for your work on this app.


[Feature] Import more chat_modes

Would you consider providing an easy approach to import more chat modes to the bot?
For example, the following GitHub project includes prompts to ask ChatGPT to act as some useful roles:
https://github.com/f/awesome-chatgpt-prompts#act-as-an-english-translator-and-improver

Please also have a look at PR which allows adding modes via config file: https://github.com/karfly/chatgpt_telegram_bot/pull/76

@kagwind @fedosov
Next, I'm planning to add DALLE-2 support. Then I'll transfer modes from code to configs (I'll use @fedosov's code) and then add new cool modes. Maybe I'll even make some challenge for best created modes 🥇

I made separate config file for Chat Modes (15e4ec513a3fc336e75b2e84a603982ffac47356)
@fedosov @kagwind
Guys, it'd be great, if you tested it!

Thanks for the update. It works great!
Now it is easy to add more interesting modes to the bot.
But I wonder is there a typo on Line 26 in chat_modes.yml (an extra ")?

@kagwind thank you, fixed: 2248a2bd92fec8a3d504efbd83c69071375464dc


Doc Updates Request - Adding JSitor as supported tool for trying ReactJS online

Issue -
https://github.com/reactjs/reactjs.org/issues/2548

Please review.

Any update guys? This is a very short PR.

Can it be merged?

We generally have waited for services like this to become established before linking to them. See previous commits for Codesandbox, Glitch.

Agree that JSitor isn't currently popular enough (to my knowledge) that we should list it here. Whenever possible, we want to link to community-standard tools that are well-maintained.


Print to stderr instead of stdout

This means that you can pipe output from bazelisk query and it will be parseable.

Thanks! :)
I verified that @achew22 signed Google's CLA.


$_FILES is empty

Hi.
My Setup is working so far, but $_FILES is empty in the call to upload.php.
{"success":true,"files":[],"get":{"flowChunkNumber":"1","flowChunkSize":"1048576","flowCurrentChunkSize":"102109","flowTotalSize":"102109","flowIdentifier":"102109-testjpg","flowFilename":"test.jpg","flowRelativePath":"test.jpg","flowTotalChunks":"1"},"post":[],"flowTotalSize":"102109","flowIdentifier":"102109-testjpg","flowFilename":"test.jpg","flowRelativePath":"test.jpg"}
HTML:
<div class="avatar img-circle" ng-class="class"
    flow-init="{singleFile:true, target: '/upload.php'}"
    flow-drag-enter="class = 'drop-highlight'"
    flow-drag-leave="class = ''"
    flow-file-added="!!{jpg:1,jpeg:1}[$file.getExtension()]"
    flow-files-submitted="$flow.upload()"
    flow-file-success="avatar.fileSuccess($file, $message, $flow)"
    flow-complete="avatar.uploadComplete()"
    flow-attrs="{accept:'image/jpeg'}"
    flow-drop>
    [...]
</div>

upload.php
echo json_encode([
    'success' => true,
    'files' => $_FILES,
    'get' => $_GET,
    'post' => $_POST,
    //optional
    'flowTotalSize' => isset($_FILES['file']) ? $_FILES['file']['size'] : $_GET['flowTotalSize'],
    'flowIdentifier' => isset($_FILES['file']) ? $_FILES['file']['name'] . '-' . $_FILES['file']['size']
        : $_GET['flowIdentifier'],
    'flowFilename' => isset($_FILES['file']) ? $_FILES['file']['name'] : $_GET['flowFilename'],
    'flowRelativePath' => isset($_FILES['file']) ? $_FILES['file']['tmp_name'] : $_GET['flowRelativePath']
]);

After some debugging I discoverd that I have to set testChunks: false in init.


Dat://DatProject.org / No DNS Record found

Operation System: Mac OS X
Beaker version: Beaker v0.8.0-prerelease.6 is up-to-date
Screenshots: https://i.imgur.com/WIYTCB0.png

Oop, thats on me =). Forgot to publish a new well-known file when I moved the site. Will update and set a DNS record.

Still doesn't work

Oop forgot, just added a txt record. The dat is at dat://60c525b5589a5099aa3610a8ee550dcd454c3e118f7ac93b7d41b6b850272330.

Also pushed a well-known file for backup.


Add Animation Code

We skipped adding animations as we built components for multiple reasons. One being, finding the Modus specs for them is really difficult. The other is that it's time consuming. Create a list of components that require animations along with the animation specs.

hey, @coliff does this issue sound familiar to you?

yes, I think we'll add animation CSS with the specs/guidance from the Tiger Team. I'm fine if you close this issue - we can/will add new specific ones once decided exactly what needs to be done.


Tensorflow consumes much more memory than expected

My model has four CPU variables:
[500M, 3] tf.int32
[500M] tf.float32
[500M] tf.float32 (FTRL accumulate slot)
[500M] tf.float32 (FTRL linear slot)
expected memory consumption should be (500M * 6) * 4 = 12G, however tensorflow used 20G memory.
When I increased 500M to 1B, total memory usage is 40G, seems tensorflow do allocate much more memory than needed, any idea? By the way I am not using any tcmalloc stuff.
I also used timeline show_memory to print allocated tensor size, everything is consistent with my calculating.

I traced it using strace and found two mmap called by different two threads, so actually memory consumption is 2x than needed.
Here is the code:
import tensorflow as tf
import time

bucket_size =<PHONE_NUMBER>

a = tf.get_variable("W", [bucket_size], initializer=tf.zeros_initializer, dtype=tf.float32, trainable=False)

with tf.Session() as sess:
    print("start to initialize variable")
    time.sleep(10)
    sess.run(a.initializer)
    print("initialize variable done")

time.sleep(10)

Here is the strace output
[pid 25768] write(1, "start to initialize variable\n", 29start to initialize variable
 <unfinished ...>
[pid 25817] futex(0x26c92e4, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 25768] <... write resumed> )       = 29
[pid 25768] select(0, NULL, NULL, NULL, {10, 0}) = 0 (Timeout)
[pid 25768] mmap(NULL,<PHONE_NUMBER>, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f2ec8000000
[pid 25768] futex(0x26c92e4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x26c92e0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
[pid 25817] <... futex resumed> )       = 0
[pid 25768] futex(0x7ffdfa482a9c, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 25817] futex(0x26c92b8, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 25817] futex(0x26c9264, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x26c9260, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
[pid 25816] <... futex resumed> )       = 0
[pid 25817] mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...>
[pid 25816] futex(0x26c9238, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 25817] <... mmap resumed> )        = 0x7f307f9ff000
[pid 25816] <... futex resumed> )       = 0
[pid 25817] munmap(0x7f307f9ff000, 2097152 <unfinished ...>
[pid 25816] futex(0x26c9264, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 25817] <... munmap resumed> )      = 0
[pid 25817] mmap(NULL, 4190208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f307f800000
[pid 25817] munmap(0x7f307fa00000, 2093056) = 0
[pid 25817] mmap(NULL,<PHONE_NUMBER>, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f2dc8000000
[pid 25817] futex(0x26c9264, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x26c9260, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
[pid 25816] <... futex resumed> )       = 0
[pid 25817] futex(0x7ffdfa482a9c, FUTEX_CMP_REQUEUE_PRIVATE, 1,<PHONE_NUMBER>, 0x7ffdfa482a70, 2) = 1
[pid 25816] futex(0x26c9238, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 25817] futex(0x26c92e4, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 25816] <... futex resumed> )       = 0
[pid 25768] <... futex resumed> )       = 0
[pid 25816] futex(0x26c9264, FUTEX_WAIT_PRIVATE, 5, NULL <unfinished ...>
[pid 25768] futex(0x7ffdfa482a70, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 25768] write(1, "initialize variable done\n", 25initialize variable done

Both 25768 25817 called mmap to allocate 4G memory. Why?

I seems that this code actually initialized two variables, one is zero const with 4G, the other is W variable, then assign zero const to W. I will check the python code to see what I can do to avoid it.

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/variables.py#L276 If initializer is provided and callable, how about passing variable to initializer instead of initialize and then assign it?
Codebase now has one zero initializer operator to initialize variables, https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/framework/kernels/zero_initializer_op.h, we need to add more.
Any idea?

You can already do this, but, I'm not sure that will avoid a copy. There's this ZeroInitialize to adress this use-case -- https://github.com/tensorflow/tensorflow/commit/f38886ba307314cc0ae5b15279f5693f39c92f21

BTW, easier way than strace is to look at tensor allocation/deallocation messages with https://github.com/yaroslavvb/memory_util

@benoitsteiner Would it be feasible to add a graph rewriting optimization to do in-place assignment for simple cases?

It's on our to-do list, we just lacked a good reason to prioritize this ahead of other rewrites.

@benoitsteiner  I am training super sparse model, no memory left due to this 2x memory issue. This is very general case, I don't want to spend effort to fix it for my own, and  several weeks after my own fix you guys fix and commit it, what if I make the change and send pull request?

Cc @rmlarsen too, since you're name is on comments in AssignOp that buffer forwarding rarely triggers.  Looks like @fesun is offering to submit a PR; can we direct him to the right change to make?

@rmlarsen ping...

@girving @rmlarsen @benoitsteiner  Could you guys make some decision? It's our blocking issue, long time no response.

Sorry for not noticing this thread earlier. Let me take a look.

@rmlarsen any update? If you guys don't have resource now, I can make the change, but we need to talk and agree the design.

Since googler didn't response for very long time, I made one minimal change on my codebase to solve this, and post my solution here in case others are also confused by this:

Tensorflow provides ones_initializer/zeros_initializer for initializing variables to 1/0, what tensorflow actually does is creating one const tensor and then assign it to variable, however constant operator holds tensor as its instance member, so its memory will not be freed unless the operator instance is deleted. Tensorflow AssignOp intent to try it's best to avoid memory copy(https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/assign_op.h#L47), this happens only when input tensor refcount is 1, while const tensor refcount is always greater than 1.
Solution: write custom operator to create normal 0/1 tensor
As AssignOp comments said, conservative constraints make buffer forwarding unlikely to happen very often, my model doesn't leverage GPU and any other advanced communication tech, so I set both gpu and nic compatible to false.
patch desired optimizer to use custom 0/1 initializer(slot creation)

@fesun Good job figuring this out. My apologies for not getting back to you. I think we can probably implement a more general solution by doing a graph analysis and strip off the buffer constraints when they are not needed, or perhaps propagate them to dependencies, so the bufferes are compatible, perhaps similar to
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/common_runtime/executor.cc#L718

It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Nagging Awaiting TensorFlower: It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Nagging Awaiting TensorFlower: It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Nagging Awaiting TensorFlower: It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Nagging TensorFlower: It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

@fesun Do you happen to have a github link handy to that custom operator?

Nagging Assignee @tatianashp: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @tatianashp: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@rmlarsen Was the general solution that you mentioned ever implemented?

@tatianashp Yes, this was implemented about a month ago:
The graph pass is here:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/grappler/optimizers/memory_optimizer.cc#L1226
And the code using the result here:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/assign_op.h#L58

Great. Thank you!
I am closing the issue.


Add server address to .msi package

My Setup:

Operating System: Windows 10 20H2
App Version: rocketchat-setup-3.1.1.msi
Installation type: run .msi via GPO
In our organization we are planning to deploy Rocket.Chat via GPO. For now I can't find a way to add server address to .msi package for the user to be prompted to type in login/password only during the first launch. I used Orca to review .msi with no result.
Is there any way to add server address? Directly to .msi or starting .msi via CLI with additional parameters.

Our solution is to deploy a basic config.json to AppData, missing sections are automatically added on first start. While that's not the most convenient solution, it works for now. I would like to have a few installer options too!

This is unlikely to be fixed any time soon unless electron-builder provides the option to do this.  This is a limitation of the way electron-builder uses wix... Unless there is a way to use the "additionalWixArgs" parameter in electron-builder.json to write properties supplied to the MSI to an ini file.  But if you are using GPO software deployment, you would have to customize a transform file anyway to apply the property.  So all this gets you is a minor convenience over the workarounds listed above.
Much easier to set "perMachine" in the electron-builder.json's MSI section so that the MSI file gets installed system wide by default.  This is a reasonable default for an MSI since the consumer of MSIs are organizations hosting their own server.  With that setting, all you would have to do is deploy a servers.json and update.json file to the expected install directory.
Personally, rocketchat could benefit from a full enterprise customization option that does things like hide the developer tools, removes the server list and menu options for selecting the server and a few other things to lock the app down to just one enterprise.
See:
https://github.com/electron-userland/electron-builder/blob/4a5132f25f64e1d0907e77e6fc309edf01d1b04b/packages/app-builder-lib/src/options/MsiOptions.ts
https://github.com/electron-userland/electron-builder/blob/28cb86bdcb6dd0b10e75a69ccd34ece6cca1d204/packages/app-builder-lib/templates/msi/template.xml
https://stackoverflow.com/questions/55460379/how-to-parameterize-msi-file-from-electron-builder
Electron builder has its own set of MSI Properties it defines in the template that are controlled by options passed to the config file.   If there is a solution as-is it might be with "additionalWixArgs"  Assuming the command line api is powerfull enough to configure setting INI file lines as explained in the stackoverflow article.  Some minor changes to the import of servers.json and update.json files could accommodate that as ini files should be trivial to import.

https://github.com/RocketChat/Rocket.Chat.Electron#default-servers


Downgrading SyncThing in SyncTrayzor

I would like to know if its possible to downgrade the SyncThing version in SyncTrayzor.
The reason is that I didn't knew and didn't see a warning that syncthing 0.12 cant sync to syncthing 0.11, and I cant unfortunally upgrade the syncthing on my endpoint at this moment.
The reason I ask is because syncthing is actually the way I'm doing my primary backup as close to real time as posible

Resolved on IRC.
For anyone else seeing this, read https://github.com/canton7/SyncTrayzor#using-syncthing-beta-releases (I know you don't want to use a beta release, but the approach is the same).


support for 9news

I want to download video from 9news link "http://www.9news.com/news/local/father-worries-about-immigration-status/408808900"
i tried youtube-dl.
% youtube-dl -v -F "http://www.9news.com/news/local/father-worries-about-immigration-status/408808900"                                            :(
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-F', 'http://www.9news.com/news/local/father-worries-about-immigration-status/408808900']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.12.22
[debug] Python version 3.5.1 - Linux-4.6.2-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.0.2, ffprobe 3.0.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 408808900: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 408808900: Downloading webpage
[generic] 408808900: Extracting information
ERROR: Unsupported URL: http://www.9news.com/news/local/father-worries-about-immigration-status/408808900
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 358, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/generic.py", line 2453, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.9news.com/news/local/father-worries-about-immigration-status/408808900

Hi @yan12125 May I try this?
As this issue, with URL (http://www.9news.com/news/local/father-worries-about-immigration-status/408808900) I found that the video of 9news stores the URL in http://interactive.tegna-media.com/.
The real video URL is http://interactive.tegna-media.com/video/embed/embed.html?id=2512310&type=video&title=Father worries about immigration status&site=73&playerid=6918249996581&dfpid=32805352&dfpposition=Video_prestream_external§ion=home
So should I create a file as youtube_dl/extractor/9news.py or youtube_dl/extractor/interactive.py?
Thank you.

Apparently there's already a proposal. (#12172) It requires fixes while the author has not responded. You may want to pick that PR and fix it.

Sorry about this.
I didn't notice the author opened sent the PR.
I'll search another issue try to send a PR of this repo.

What's the status of this? FYI:
$ youtube-dl -U
youtube-dl is up-to-date (2019.04.17)
(SopelPython3)ant@ANTian:~/Downloads/videos$ clear ; youtube-dl -v "https://www.9news.com/video/weather/weather-colorado/ranch-animals-nearly-buried-in-colorado-blizzard/73-1d313d05-79b8-4df9-a7b4-425cc06fd242"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.9news.com/video/weather/weather-colorado/ranch-animals-nearly-buried-in-colorado-blizzard/73-1d313d05-79b8-4df9-a7b4-425cc06fd242']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.04.17
[debug] Python version 3.4.2 (CPython) - Linux-3.16.0-8-amd64-x86_64-with-debian-8.11
[debug] exe versions: ffmpeg 3.2.10-1, ffprobe 3.2.10-1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 73-1d313d05-79b8-4df9-a7b4-425cc06fd242: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 73-1d313d05-79b8-4df9-a7b4-425cc06fd242: Downloading webpage
[generic] 73-1d313d05-79b8-4df9-a7b4-425cc06fd242: Extracting information
ERROR: Unsupported URL: https://www.9news.com/video/weather/weather-colorado/ranch-animals-nearly-buried-in-colorado-blizzard/73-1d313d05-79b8-4df9-a7b4-425cc06fd242
Traceback (most recent call last):
File "/home/ant/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 796, in extract_info
ie_result = ie.extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/common.py", line 529, in extract
ie_result = self._real_extract(url)
File "/home/ant/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3320, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.9news.com/video/weather/weather-colorado/ranch-animals-nearly-buried-in-colorado-blizzard/73-1d313d05-79b8-4df9-a7b4-425cc06fd242


[Funding][Database] Add views to test database

Funding_Summary_VW

Add Total_Discretionary_Funding money field to Project_MAIN

Update stored procedure sp_UpdateProjectFunding to include Total_Discretionary_Funding money field

Add Regional_Discretionary_Funding_LU table to DB

Update Project_Main_VW_Unchanged to include Total_Discretionary_Funding field


Fixes #488

Fixes the bug where you could not insert a new line at the end of the line in Safari, when using inline-mode.

Closing this as I've accidentally included another fix on the branch.


Migrate from st-pages to native Streamlit

This is just a placeholder issue for myself

See https://github.com/blackary/st_pages?tab=readme-ov-file#why-st-pages, specifically part on v1.0.0.


Feature request: more layout types

Feature request: more layout types, possibly some more network-analysis like.

Adding this in: One that lets you take a relationship property as a weight for a force-based layout would be extremly hepful (or does it exist and I just dont know?).

Great idea @kixxalot :pray:

Like for example supporting orgChart :grey_question:


add command to bust the global editor cache

Maybe part of the "clean" command?

I think the bug is now fixed, so no need for clean


Adição do visualizador de panoramas 360°

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


OpenWRT/MIPS support

is it possible to compile this for OpenWRT/MIPS

It should, and you're welcomed to try. Don't try to cross-compile from your x86 machine, as we use C libraries. You'll have to compile Go on the OpenWRT/MIPS device, then compile the connector. Steps here (see the footnote at the bottom about compiling Go):
https://github.com/google/cups-connector/wiki/Build-from-source


Double click on mobile

Forum - http://angulargrid.com/forum/showthread.php?tid=2813
Any chance of modifying cellDoubleClicked event to work on mobile devices?
does not seem to be working out of the box: http://tinyurl.com/qfsmrcf
full plnkr: http://plnkr.co/edit/r0hj1QDmbLODzuNdgNXj?p=preview
i need to be able to highlight the row to enable certain actions upon it and on double click, it should open a modal for additional detail... works fine on desktop but no dice on ios and android

what's the fix for mobile?

no movement in over a year, closing.


Problem resolving Ilog in a windows service

Hi, im using unity to resolve some dependencies in my windows service.
The win service starts 1 quartz job (https://github.com/quartznet/quartznet).
To resolve the job dependencies im using this extension https://github.com/hbiarge/Quartz.Unity
For some reason, the ilog dependency in the job gets resolved using the wrong logger. Instead of giving me the logger for SendByEmailJob it gives me the one used in the main service
public class SendByEmailJob : IJob
{
    private readonly ILog _logger;
    private readonly IDistributionLogRepository _distRepo;

    public SendByEmailJob(ILog log, IDistributionLogRepository distRepo)
    {
        _logger = log;
        _distRepo = distRepo;
    }

    public async Task Execute(IJobExecutionContext context)
    {
        _logger.Info("Starting job");
        var emailDist = await _distRepo.GetAll(DeliveryType.Email, DistributionStatusType.Ready);
        var dist = await _distRepo.Get(100);
        foreach (var item in emailDist)
        {
            System.Diagnostics.Debug.WriteLine($"DistributionId = {item.Id}");
        }
        _logger.Info("Job completed");
    }
}

So checking the Log4NetExtension class, i notice that changing the following method:
    public ResolveDelegate<BuilderContext> GetResolver(ref BuilderContext context)
    {
        Type declaringType = context.DeclaringType;

        return (ref BuilderContext c) => LogManager.GetLogger(declaringType);
    }

To this:
    public ResolveDelegate<BuilderContext> GetResolver(ref BuilderContext context)
    {
        return (ref BuilderContext c) => {
            return LogManager.GetLogger(c.DeclaringType);
        };
    }

Solves the problem and the loggers gets correctly resolved

Why don’t you send a pull request and solve it for others as well?

Why don’t you send a pull request and solve it for others as well?

done

Well Done!


sharded-slab error in cargo checking

Shared-slab
i got this error earlier suddenly by cargo check:
2024-12-01T20:46:36.560557004+03:30 ERROR notification handler failed handler=textDocument/didSave error=file not found: /home/mob/projects/rusts/ELearning/Cargo.toml
2024-12-01T20:46:43.814055115+03:30 ERROR notification handler failed handler=textDocument/didSave error=file not found: /home/mob/projects/rusts/ELearning/Cargo.toml
2024-12-01T20:48:15.381038592+03:30 ERROR FetchBuildDataError: error[E0195]: lifetime parameters or bounds on type `Target` do not match the trait declaration
  --> /home/mob/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sharded-slab-0.1.7/src/tid.rs:32:1
   |
32 | / lazy_static! {
33 | |     static ref REGISTRY: Registry = Registry {
34 | |         next: AtomicUsize::new(0),
35 | |         free: Mutex::new(VecDeque::new()),
36 | |     };
37 | | }
   | |_^ lifetimes do not match type in trait
   |
   = note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0609]: no field `free` on type `REGISTRY`
   --> /home/mob/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sharded-slab-0.1.7/src/tid.rs:150:14
    |
150 |             .free
    |              ^^^^ unknown field
    |
    = note: available field is: `__private_field`

error[E0609]: no field `next` on type `REGISTRY`
   --> /home/mob/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sharded-slab-0.1.7/src/tid.rs:161:35
    |
161 |                 let id = REGISTRY.next.fetch_add(1, Ordering::AcqRel);
    |                                   ^^^^ unknown field
    |
    = note: available field is: `__private_field`

error[E0609]: no field `free` on type `REGISTRY`
   --> /home/mob/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sharded-slab-0.1.7/src/tid.rs:191:42
    |
191 |             let mut free_list = REGISTRY.free.lock().unwrap_or_else(PoisonError::into_inner);
    |                                          ^^^^ unknown field
    |
    = note: available field is: `__private_field`

Some errors have detailed explanations: E0195, E0609.

For more information about an error, try `rustc --explain E0195`.

error: could not compile `sharded-slab` (lib) due to 4 previous errors

My Cargo.toml:
[package]
name = "elearning-ui"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { version = "0.5.0", features = ["desktop", "router", "hooks"] }
base64 = "0.13"
manganis = "0.2.2"
gloo = { version = "0.11.0", features = ["timers", "events", "console", "futures"] }
serde = { version = "1.0.213", features = ["derive"] }
serde_json = "1.0.132"
rand = "0.8.5"
emojis = "0.6.4"
indexmap = "2.6.0"
wasm-bindgen = "0.2.95"
js-sys = "0.3.72"
web-sys = { version = "0.3.72", features = ["CanvasRenderingContext2d", "HtmlCanvasElement"] }
tokio = { version = "1.40.0", default-features = false, features = ["sync", "io-util", "rt", "time"] }
tao = "0.30.5"
wry = "0.46.3"
wgpu = "23.0.0"
winit="0.30.5"
pollster = "0.4.0"
glyphon = "0.7.0"
bytemuck = { version = "1.19.0" , features = ["derive"]}

[workspace]
members = ["src-tauri"]

[profile.dev]
opt-level=0

[profile.release]
opt-level=0

Environment:
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

rust version
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/mob/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-2024-02-04-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
1.76.0-x86_64-unknown-linux-gnu
solana

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-pc-windows-gnu
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.83.0 (90b35a623 2024-11-26)

Found issue it is not related to this project . other projects has lazy_static problem .
It so weird but I resolved it by add lazy_static to my project and use patch.crates-io to reference this and unexpectedly resolved.


Check that test env is properly resolved when cross-compiling

Looks like we might use the build-platform when resolving the test environment.
We should use the target-platform when resolving (https://github.com/conda-forge/matplotlib-feedstock/pull/311)

Looks like an "upstream conda-build problem": https://github.com/conda-forge/matplotlib-feedstock/pull/311#issuecomment-971916792
and https://github.com/conda/conda-build/blob/0a6efdcfa02484954e7a3fdf5c2ec4bb3cb6682e/conda_build/build.py#L2849-L2855


[Java] Improve creation of constant tensors

Allow simple creation of scalar values using the Constant operator. ex: ops.constant(0.0f);
Also, added a new operator Zeros that allows the creation of constant tensors initialized to zero w.r.t. its type and shape. ex: ops.zeros(Float.class, Shape.make(10, 10));

@asimshankar : updated

@asimshankar : updated, sorry, completely forgot about the notices


401 Status Error after executing a Sell order.

Issue Description
After executing a sell order using PlaceOrder end point using the major attribute as request the end point returns a HTTP 401 Error raising an exception into the library.
For some "WEIRD" reason the sell order is successfully executed but the library throws an error.
Verify why is that "weird" behavior is happening and if something is wrongly requested  in the signing module.

Solved in version 5.0.0


within conflicts with RSpec 3

Use this self-contained gist to recreate the issue:
https://gist.github.com/bilus/7213a2914a8bb33cefb7
Dependencies:
ruby 2.1.2
capybara 2.4.4
rspec 3.2.0
sinatra 1.4.6
Problem: It doesn't fill in email and name, find doesn't work as well.
To make it pass, comment out include RSpec::Matchers in line 38.

Duplicate of https://github.com/jnicklas/capybara/issues/1361

#1361 has been closed and the problem is a real one (as is the all issue). It cost me several hours to narrow down the issue and figure out what is wrong after upgrading gems in a large project.
As far as I can tell, the docs don't reflect it while declaring compatibility with RSpec. I think adding at least a note to Readme would be in order, perhaps a warning. If there's support for that, I'd be more than happy to submit a PR with a Readme update.

Happy to review a PR for the Readme, but theres really not much we can do about this -- we can't stop other includes from overriding methods.

I guess we could override include on the class Capybara::DSL is included to and then check if RSpec::Matchers is included after and issue a warning.   Something like
def self.included(base)
  base.instance_eval do
    def include(*modules)
      orig_modules = included_modules
      super
      new_modules = included_modules - orig_modules
      if new_modules.any? { |mod| mod.to_s == 'RSpec::Matchers' }
        warn "RSpec::Matchers included after Capybara::DSL will shadow #within and #all - Use page.within and page.all instead to access Capybara functionality"
      end
    end
  end

  warn "including Capybara::DSL in the global scope is not recommended!" if base == Object
  super
end

Not sure if thats a good idea or not

@bilus looks like RSpec::Matchers works differently when using in minitest and rspec. There is no issue with RSpec+Capybara and within matcher. In RSpec it's be_within and it works fine without affecting Capybara within.
You can switch to RSpec instead of minitest. Here is your example pass without collision:
require 'sinatra'

get '/' do
  <<HTML
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title></title>

Title

<form id="main-form" action="/" method="post">
    <input type="text" name="email">

    <input type="text" name="name">

    <input type="submit" value="submit">
</form>

HTML
end

post '/' do
  'Congratulations'
end

require 'capybara'
require 'rspec'
require 'capybara/rspec'

Capybara.app = Sinatra::Application

feature 'cool test' do
  scenario 'title exists' do
    visit '/'
    within('#main-form') do
      fill_in 'email', with<EMAIL_ADDRESS>      fill_in 'name', with: 'Joe Public'
      click_button 'submit'
    end
    expect(page).to have_content('Congratulations')
  end
end

In production I'm using Cucumber not minitest. I've used minitest to
recreate this issue only.
On Thu, Jun 4, 2015 at 12:23 AM, Sergii Boiko<EMAIL_ADDRESS>wrote:

@bilus https://github.com/bilus looks like RSpec::Matchers works
differently when using in minitest and rspec. There is no issue with
RSpec+Capybara and within matcher. In RSpec it's be_within and it works
fine without affecting Capybara within.
You can switch to RSpec instead of minitest. Here is your example pass
without collision:
require 'sinatra'
get '/' do
<<HTML

Title

HTML
end
post '/' do
'Congratulations'
end
require 'capybara'
require 'rspec'
require 'capybara/rspec'
Capybara.app = Sinatra::Application
feature 'cool test' do
scenario 'title exists' do
visit '/'
within('#main-form') do
fill_in 'email', with<EMAIL_ADDRESS>fill_in 'name', with: 'Joe Public'
click_button 'submit'
end
expect(page).to have_content('Congratulations')
end
end
—
Reply to this email directly or view it on GitHub
https://github.com/jnicklas/capybara/issues/1526#issuecomment-108631602.

@bilus
For this simple app, to make test pass, you need only to swap includes:
class TestApp < MiniTest::Unit::TestCase
  include RSpec::Matchers
  include Capybara::DSL

  def test_title_exists
    visit '/'
    within('#main-form') do
      fill_in 'email', with<EMAIL_ADDRESS>      fill_in 'name', with: 'Joe Public'
      click_button 'submit'
    end
    assert has_content?('Congratulations')
  end
end

In this way Capybara::DSL overwrites within from RSpec::Matchers and test pass. I don't know, how you setup your Cucumber configuration. But try to change the way you include module or require library. So RSpec should go before Capybara.

@bilus
Also, as an option, you can remove within method: RSpec::Matchers.send :remove_method, :within before including RSpec::Matchers:
Capybara.app = Sinatra::Application
RSpec::Matchers.send :remove_method, :within

class TestApp < MiniTest::Unit::TestCase
  include Capybara::DSL
  include RSpec::Matchers

  def test_title_exists
    visit '/'
    within('#main-form') do
      fill_in 'email', with<EMAIL_ADDRESS>      fill_in 'name', with: 'Joe Public'
      click_button 'submit'
    end
    assert has_content?('Congratulations')
  end
end

Thanks! I think the easiest way might be to just use page.within
consistently in all tests. That's what I've actually done in the original
project.
On Thu, Jun 4, 2015 at 8:03 PM, Sergii Boiko<EMAIL_ADDRESS>wrote:

@bilus https://github.com/bilus
Also, as an option, you can remove within method: RSpec::Matchers.send
:remove_method, :within before including RSpec::Matchers:
Capybara.app = Sinatra::Application
RSpec::Matchers.send :remove_method, :within
class TestApp < MiniTest::Unit::TestCase
include Capybara::DSL
include RSpec::Matchers
def test_title_exists
visit '/'
within('#main-form') do
fill_in 'email', with<EMAIL_ADDRESS>fill_in 'name', with: 'Joe Public'
click_button 'submit'
end
assert has_content?('Congratulations')
end
end
—
Reply to this email directly or view it on GitHub
https://github.com/jnicklas/capybara/issues/1526#issuecomment-108993566.

Good tip on remove_method! I took out the method for Capybara due to name conflict with the geokit-rails gem: Capybara::DSL.send :remove_method, :within

@bjornlinder RSpec and Capybara make sense to be included into the same scope - but why would geokit-rails include a #within method into test cases ? It would seem it should only be included into the models that are declared acts_as_mappable. (or why are you including Capybara::DSL into models, if thats what you're doing)

I'm not including Capybara into models - the geokit #within method gets called as part of the integration tests. Capybara is available in the model because the query is running in the test environment.

@bjornlinder The geokit-rails gem only includes the #within method into ActiveRecord::Base derived classes correct? And Capybaras DSL methods should only be included into whatever feature/integration test class is being used (definitely not into ActiveRecord::Base derived classes - so it shouldn't be available in any models) - so I'm not fully understanding how there would ever be a conflict.

Why Capybara is available from models when running tests, I don't know either. Not getting any errors about Capybara being in the global scope.

search for "include Capybara::DSL"  in your code and see if maybe you're including it somewhere it shouldn't be -  including it into models could cause all sorts of weird issues during testing - and none of Capybaras files do that - you can also check Object.included_modules and Object.ancestors to see what has been included into the global object, and the same on things like ActiveRecord::Base to see there too


ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

I am using pytorch 1.2 to run your model, but when it comes to nms, this bug will appear, I would like to ask, how I modify the nms program, this error will disappear? thanks. by the way, this is the whole bug message:
Traceback (most recent call last):   File "main.py", line 6, in <module>     from lib.config import Config   File "/home/xiongpan/code/LaneATT/lib/config.py", line 3, in <module>     import lib.models as models   File "/home/xiongpan/code/LaneATT/lib/models/__init__.py", line 1, in <module>     from .laneatt import LaneATT   File "/home/xiongpan/code/LaneATT/lib/models/laneatt.py", line 10, in <module>     from nms import nms   File "/home/xiongpan/code/LaneATT/lib/nms/src/nms/__init__.py", line 29, in <module>     from . import details ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

I can't use 1.5 or higher version of pytorch, because after I train my model, I need to quantify it, but the tool need torch is lower than 1.2, so, I met this embarrassed situation, if you are willing to help me, I will very thank you!

Are you sure you compiled the NMS module using PyTorch 1.2? Try removing the files generated in the build process (i.e., rm build dist -rf inside the nms directory) and then compile it again. The PyTorch version you used to compile the module has to be the same you're going to it with. Also, does your machine have a GPU and has CUDA set up correctly?

My cuda and GPU seems setup correctly, I have tried input import torch in command line, and there has no error. And your advice is useful!!! Thanks a lot!

I'm closing the issue since I assume the problem has been solved.


Update labels that appear in macro edits based on feedback from Debbie

Part of cfpb/hmda-pilot#263
Reflects changes made to the macro edit labels by Debbie here: https://drive.google.com/open?id=1cnF4uD7CqMVJfzMoL5IvMyR81mPz95h-7Pj7gmuumQ8&authuser=0

Coverage remained the same at 98.27% when pulling 3ac985cc2fe4ff6814db78453c0933817dbb8661 on poorgeek:update-macro-labels into 5b63f957cf7fab2cd02e4ba50b749a2bde04663a on cfpb:milestone9.


expanding function implementation

Duplicate of #1215

Closing in favor of #1215 because the series and dataframe implementations should be nearly the same.


Cleanup go module entries

What this PR does / why we need it:
Cleanup go module entries
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 #

no change in an source code files, have run unit test just to be sure
➜  ~/oke/src/github.com/oracle/cluster-api-provider-oci git:(tidy_go_modules) ✗ make test
/Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/bin/controller-gen "crd" \
		rbac:roleName=manager-role webhook \
		paths="./api/..." \
		paths="./exp/api/..." \
		output:crd:artifacts:config=config/crd/bases
/Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./api/..." paths="./exp/api/..."
go fmt ./...
go vet ./...
mkdir -p /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin
test -f /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin/setup-envtest.sh || curl -sSLo /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.8.3/hack/setup-envtest.sh
source /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin/setup-envtest.sh; fetch_envtest_tools /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin; setup_envtest_env /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin; go test ./... -coverprofile cover.out && go tool cover -html=cover.out -o cover.html
Using cached envtest tools from /Users/shyaradh/oke/src/github.com/oracle/cluster-api-provider-oci/testbin
setting up env vars
?   	github.com/oracle/cluster-api-provider-oci	[no test files]
ok  	github.com/oracle/cluster-api-provider-oci/api/v1beta1	0.902s	coverage: 18.7% of statements
?   	github.com/oracle/cluster-api-provider-oci/cloud/config	[no test files]
ok  	github.com/oracle/cluster-api-provider-oci/cloud/ociutil	0.629s	coverage: 25.0% of statements
ok  	github.com/oracle/cluster-api-provider-oci/cloud/scope	177.384s	coverage: 73.5% of statements
?   	github.com/oracle/cluster-api-provider-oci/cloud/scope/mocks	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/compute	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/compute/mock_compute	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/computemanagement	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/identity	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/identity/mock_identity	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/networkloadbalancer/mock_nlb	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/vcn	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/cloud/services/vcn/mock_vcn	[no test files]
ok  	github.com/oracle/cluster-api-provider-oci/controllers	27.962s	coverage: 71.0% of statements
?   	github.com/oracle/cluster-api-provider-oci/exp/api/v1beta1	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/exp/controllers	[no test files]
?   	github.com/oracle/cluster-api-provider-oci/feature	[no test files]


VMs on ZFS pools unbootable on hosts running kernel >=5.17.

Every VM drops into grub shell, unable to detect partitions.
grub> ls
(proc) (hd0)

Tested on Arch, openSUSE Tumbleweed, Fedora 36, all with ZFS 2.1.4. Both native (where available) and snaps versions 4.24/5/5.1.
Same VMs boot as expected if the host is rebooted with kernel <=5.16.20.

This will most likely need to move to https://github.com/zfsonlinux/zfs as LXD isn't doing anything special on this kernel release.
Is there anything useful in lxc info --show-log NAME?
My gut feeling is that something changed in Linux 5.17 with regard to io_uring which is tickling ZFS zvol the wrong way.
@brauner I believe you recently mentioned something related to io_uring and newer kernels breaking, could it be related?

Hm, io_uring changes shouldn't cause this so not sure...

We're rolling out QEMU 7.0 with LXD 5.2 so maybe that will help, who knows.

Is there anything useful in lxc info --show-log NAME?

Nope, you can zfs clone its zvol and boot it with qemu/libvirt 6.2/7. It does not affect btrfs/lvm pools.

@adamcstephens that's pretty weird but also likely quite a different issue. In your case you appear to be using LVM?

@dmtrbm any chance you could retry the snap as we now have LXD 5.2 in there which comes with QEMU 7.0 so maybe that helped somehow?

@adamcstephens that's pretty weird but also likely quite a different issue. In your case you appear to be using LVM?

No, I'm using ZFS. I'll downgrade the kernel and test again to see if it still occurs.

@adamcstephens that's pretty weird but also likely quite a different issue. In your case you appear to be using LVM?

No, I'm using ZFS. I'll downgrade the kernel and test again to see if it still occurs.

Oh, sorry, the /dev/XYZ path looked like an LVM pattern. I'm used to /dev/zvol/XYZ for the ZFS ones :)

@adamcstephens a zfs get all DATASET during and after would be interesting too to see what size property may have changed.

@adamcstephens a zfs get all DATASET during and after would be interesting too to see what size property may have changed.

The zfs dataset doesn't change, before or after, and still shows the correct data size.
NAME                                        PROPERTY              VALUE                  SOURCE
fast/lxd-snap/virtual-machines/nixos.block  type                  volume                 -
fast/lxd-snap/virtual-machines/nixos.block  creation              Tue May 31 17:56 2022  -
fast/lxd-snap/virtual-machines/nixos.block  used                  2.93G                  -
fast/lxd-snap/virtual-machines/nixos.block  available             307G                   -
fast/lxd-snap/virtual-machines/nixos.block  referenced            2.93G                  -
fast/lxd-snap/virtual-machines/nixos.block  compressratio         2.31x                  -
fast/lxd-snap/virtual-machines/nixos.block  reservation           none                   default
fast/lxd-snap/virtual-machines/nixos.block  volsize               74.5G                  local
...

I rebooted to jammy 5.15.0-33.34 and everything works correctly. I'm able to start and use the volume, even the one that I provisioned while on 5.17.
Rebooting into 5.17.9-051709 and the problem occurs again. The correct disk is actually mounted, as the bootloader does start, but since the VM cannot access the entire disk the boot fails. This is consistent with @dmtrbm as you can see they are getting into grub.
I tried to test 5.18.0-051800 but zfs-dkms fails to compile for this newer kernel.

That's pretty weird as you're seeing this through fdisk outside of LXD... Does the same VM behave properly after booting back on 5.15?
Trying to figure out if it's an issue that's modifying/damaging the zvol or if it's some kind of odd read issue.

@stgraber yes, everything works properly when reverting to 5.15. There appears to be no data loss and the VM behaves properly.
It seems when the zvol dev is created on VM start it has the wrong configuration.

not sure exactly when this was fixed, but I can now create VMs again with linux kernel 5.18.11-arch1-1

Okay, so that seems to confirm what I suspected, it must have been a kernel io_uring regression which has now been addressed.


Remove some unused variables

@fishcakez, I think I've incorporated both bits of your feedback. I still see the occasional test failure, so I'm not sure if the assert_receive timeout should be increased or if there's something incorrect in the code itself.

Haven't had a chance to look at this deeply, but sometimes sporadic failures with async code like this can be caused by side effects of previous tests.  Do you get sporadic failures if you run just the flakey test?

@jparise oh this doesn't use ranch, it uses a custom acceptor pool: https://github.com/apache/thrift/blob/ae971ce917bf9b60ee8ae83b834dad1eb149a82f/lib/erl/src/thrift_socket_server.erl#L276. It seems that stop is a cast, so it can return before the server has stopped. The library has not been kept up to date to use :gen_server.stop (synchronous and guarantees process has exited). There is a stop_server/1 call that will do the equivalent (it does mod.stop + monitor) defined early in the test module. However this would also be equivalent to monitor + Process.exit(pid, :normal).

@fishcakez / @scohen, how does this look now?

@jparise it looks good. Does this resolve the race condition? I think we could also use that in the setup on_exit call?
We should also remove all of the unlink calls. We shouldn't be unlinking because a crash will orphan the unlinked child, instead trap exits if need to handle abnormal exit - it seems like trapping is already happening.

@fishcakez, I wasn't sure about using stop_server/1 in on_exit because it contain an assert, but it seems to work well, and it cleans up the code a bit more.
I've also removed the unlink calls.
I haven't seen a test failure with these latest changes, but it wasn't happening very frequently before, so we may need to wait and see.