import PyPlot fails

Hi,
I have problems importing PyPlot on different CentOS 7 and Fedora 20 machines:
julia> import PyPlot
Warning: error initializing module PyPlot:
PyCall.PyError(msg=":PyImport_ImportModule", T=PyCall.PyObject(o=0x0000000001d86520), val=PyCall.PyObject(o=0x000000000a5b1e18), traceback=PyCall.PyObject(o=0x0000000000000000))

Importing PyCall (only) works fine:
julia> import PyCall
julia> PyCall.pyinitialize()

Any idea how to fix the problem?
Regards,
Josef

What happens if you manually do:
import PyCall
@pyimport matplotlib.pyplot as plt

?

Here is the result:
julia> import PyCall
julia> @PyCall.pyimport matplotlib.pyplot as plt
ERROR: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named matplotlib.pyplot',)

 in pyerr_check at /usr/local/lib/julia/v0.3/PyCall/src/exception.jl:58
 in pyimport at /usr/local/lib/julia/v0.3/PyCall/src/PyCall.jl:91

My mistake; the default Python interpreter did not have matplotlib installed - sorry.
I corrected the path, but now I get an import error for the module 'site':
ImportError: No module named site

Importing 'site' in Python works fine.

Are you using Enthought Canopy?  If so, this is due to stevengj/PyCall.jl#42 ... I would recommend Anacona Python.

I am using our "own" Python distribution, because we have much more packages installed than provided by Canopy or Anaconda. But, Anaconda is also installed on all of our desktops and it works. Nevertheless, I want to find out why the site package cannot be found (with our Python distribution) ...

Basically, that error means that some kind of path is not being set up correctly (when we initialize python via libpython) that is set when you run the python executable....


skeleton: both support protobuf version 2 and version 3

skeleton: remove aesm.pb-c.c and aesm.pb-c.h out of the source codes
skeleton: both support protobuf version 2 and version 3

Fixes: alibaba#878
Signed-off-by: Yilin Li<EMAIL_ADDRESS>

I suspect the alinux2 compilation testing error is because the path of SGX_SDK in the shelter Makefile is unmodifiable.

Depends on #886 . so it needs to reopen a new pr.


Add desmod.pool.Pool for modeling pool of resources

Pool offers a similar behavior to simpy.Container with some
additional events:

Pool.when_any() when the pool is non-empty
Pool.when_new() when items are inserted in pool
Pool.when_full() when the pool is full

Pool is to simpy.Container what Queue is to simpy.Store

Coverage decreased (-1.03%) to 94.854% when pulling 555f5315f57cdcbd4db95aadb5edf61e4fbb1604 on vagvaz:master into 06e9edb731888a9f7fa7abc14d6b15adc8b662a4 on SanDisk-Open-Source:master.

Thanks @vagvaz!


Update to fix vulnerability.

This change is

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.04%. Comparing base (a9058ce) to head (53bbcae).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #186   +/-   ##
=======================================
  Coverage   67.04%   67.04%
=======================================
  Files         441      441
  Lines       34831    34831
  Branches     4670     4670
=======================================
  Hits        23351    23351
  Misses      10387    10387
  Partials     1093     1093

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Having a parameter of number of bytes to use from source buffer

Hi,
It would be nice to have a parameters of number of bytes to use from source to compute the CRC.
Ex :
var buffer = new Buffer(256);
for (var i = 0; i < 10; ++i) {
buffer[i] = i;
}
var theCRC = crc.crc16modbus(buffer, 10);
This way, we don't have to call buffer.slice to compute a CRC of the first 10 bytes of this buffer and also it allow us to operate only on a subset of the buffer.
Or better, two optional parameters from/to
crc.crc16modbus(buffer, 5, 10);
Best regards,
By the way thank you for your excellent work on this library.

Would you like to submit a PR?


Include Media RSS namespace for Atom feeds + fix tests

I am impatient and wanted #1531 to get merged asap so I picked his commit and fixed the tests.
Closes #1531
Fixes #1511
Fixes #1499

Thanks for this. I'll close #1531 in favour of this.

Merged, thanks !


[OHSS-14855] Accomodate inline policies in new upgrade roles flow

Related issue: https://issues.redhat.com/browse/OHSS-14855
What
Generates a new policy name/ARN when there are only inline policies, later in the flow the inline policies get removed from the role and the new policy is attached.
Why
Older versions of CLI set inline policies which needs to be taken into account
Before changes
rosa upgrade roles -c inline-test --mode=auto --cluster-version=4.10.43 --yes
I: Ensuring account role/policies compatibility for upgrade
I: Starting to upgrade the policies
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-Support-Role-Policy' to version '4.11'
E: Error upgrading the account role polices: arn: invalid prefix

After changes
rosa upgrade roles -c inline-test --mode=auto --cluster-version=4.10.43 --yes
I: Ensuring account role/policies compatibility for upgrade
I: Starting to upgrade the policies
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-ControlPlane-Role-Policy' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-Worker-Role-Policy' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-Support-Role-Policy' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-Installer-Role-Policy' to version '4.11'
I: Ensuring operator role/policies compatibility for upgrade
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-image-registry-installer-cloud-credentials' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-ingress-operator-cloud-credentials' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-cluster-csi-drivers-ebs-cloud-credentials' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-cloud-network-config-controller-cloud-credenti' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-machine-api-aws-cloud-credentials' to version '4.11'
I: Upgraded policy with ARN 'arn:aws:iam::xxx:policy/test-49-openshift-cloud-credential-operator-cloud-credential-ope' to version '4.11'
I: Created role 'inline-test-n8y2-openshift-cloud-network-config-controller-cloud' with ARN 'arn:aws:iam::xxx:role/inline-test-n8y2-openshift-cloud-network-config-controller-cloud'
I: Waiting for operator roles to reconcile

/lgtm


Maven.blade.sb.web

It works well in liferay 7 m7

Just started reviewing :) :octocat: Sent from GH.

@AndyWu2015  Good job getting it to work!


Example code for TradingAgents

Hi, I saw your presentation on the youtube, and am interested in learning more about your packages. Could you please guide me to some example code that demonstrates how to use these packages (TradingAgents and Brokerage).

Hey! Thanks for checking out the presentation. I've been meaning to add a proper example/tutorial to the repo but got caught up doing other things. I'll put one together in the coming days and update you here.

@RenuSolanki just updated the README of both packages to include examples. Hope this helps!


Change HelloWorld to CostReports

Create a cost reports lambda to periodically analyze cost
and usage reports to generate a report with costs broken
down by program.
The example JSON event generated with the command
sam local generate-event config periodic-rule.
Two tests have been added, one that generates a report from
fixture data, and another that attempts to download the latest
cost and usage data from S3.
Update pipenv versions, and run sam validate in travis.
PR Checklist:
[x] Clearly explain your change with a descriptive commit message
[x] Setup pre-commit and run the validators (info in README.md)
To validate files run: pre-commit run --all-files

For future reference:  If you name the Git branch according to its Jira issue, e.g. ,IT-1532 then the PR will be linked automatically to the Jira issue.  We'll be able to navigate from the Jira isse to all the constituent PRs.


Request Times out while creating huge zip files.

While creating huge zip files like 'BE Sem 6' request times out.
There is a 55 second window but creating zip takes more then that.

Few of the solutions are pre-making all the zip and store them.
Change the backend to aws.

Solved! now using custom domain and aws ec2 instance as backend server


use voidpointer for function pointers

It seems that c2ffi doesn't save function-pointer signatures. I changed this to a void pointer in code (which isnt the correct type, but it works without changing the generated code, using casts)
I also reported this as issue, the correct fp-signatures by default are beneficial.
Maybe it would also be useful, if the default type is a function type (maybe (p (fn void (void))))

this is closed now, see #170


Add Gamecube icons for future dolphin core.

Looks good! And this will work with https://github.com/robloach/libretro-dolphin-launcher .

@RobLoach Nice repo. I would love to use it but o have Lakka T-T


[Improvement] Change the package name to paimon

change the package name from flink-table-store to paimon

@JingsongLi Has this task been assigned? if not i can get it done.

Has been done.


Sticking Capsule Fade Opacity

Looks like the fade is staying on the capsule tag when scrolling on the project card?
@colin-johnston would you like to take this task?

@cat-liu I can't reproduce this in Chrome, Safari, Edge, or Firefox (all latest) on MacOS.
Can you please visit https://mybrowser.fyi and send me the report link? Thanks!

@colin-johnston it was actually on mobile on safari. I have iphone 11, I am actually not sure about desktop, not sure how to scroll the tags. I can test it though.
https://mybrowser.fyi/report/5ea3a1e29db8470015f82ce6


Prometheus can ingest bad metrics name via recording rules

The following recording rule:
groups:
  - name: test
    evaluation_interval: 1s
    rules:
      - record: "a1"
        expr: vector(1)
        labels:
          __name__: -1

Creates a metric named -1. You can also create 1a, 1m, etc.
Tested on prometheus 2.20.

hi, i'd like to work on this


NCDA - notify of newly issued rebate.

This does part of the NCDA work, where we tell them about a newly issued rebate from our system.
In another PR to come - check status redeemed. This technically doesn't need to be done for first release since it's only really important if the rebate expires which will be a year from now.

@kuanfandevops there will be new environment variables: I'll send you the list on teams.


Script as Select

It would be really great to have a Script as SELECT option. Most other SQL tools have this. I know there is Select top 1000, but there are many times I want to generate the query without actually executing anything. TIA!

Added SELECT option in 0.5.0 version


request: a method to return differences between duplicates and the original string

it'd be useful to have such a method. see this for more details: https://stackoverflow.com/a/9396733/14997609

Yes, I second this.  difflib does not return easily usable results


DBZ-4204 Allow ORA-04030 exceptions to be retried

Backport of https://issues.redhat.com/browse/DBZ-4204 for 1.7.2

To be merged after the release, @jpechane.


Can't setup cross-compiler

I follow all the instructions (I even tried the updated ones) and I get this:
checking build system type... i386-apple-darwin16.0.0
checking host system type... i386-apple-darwin16.0.0
checking target system type... i386-pc-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... /usr/local/bin/gcc-6.3.0_1
checking for C compiler default output file name...
configure: error: in `/tmp/src/binutils-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.

How do I fix this?

Could you attach the config.log file?

Also, useful tutorial
http://wiki.osdev.org/GCC_Cross-Compiler

Sorry, technical feedback for installing the C compiler is out of the scope of this tutorial. Thanks for your interest, I hope you got your problem solved!

Adding sudo solves this


Mosaddeq107 patch 1 description

Hy @Mosaddeq107 that was just trial file where we practiced. We now have the final documentation file and I believe there is no such errors now.


coprocessor: Implement ConvertTo/CAST as Duration for evaluable types

Signed-off-by: Lonng<EMAIL_ADDRESS>
What have you changed? (mandatory)
Implement ConvertTo/CAST as Duration for evaluable types
What are the type of the changes? (mandatory)
The currently defined types are listed below, please pick one of the types for this PR by removing the others:

New feature (change which adds functionality)

How has this PR been tested? (mandatory)
Existing unit tests

/run-all-tests

/test

/run-all-tests


Move KerasTuner tab higher up

The page linked here is great!  But it is very low down - below even Contributing to Keras!  We should move this, KerasCV, and KerasNLP higher.

@LukeWood I also think that KerasTuner - KerasNLP - KerasCV should be enough higher. Currently, it somewhat looks less important or not highly recommended.


fix: correct browser tooling not running in test mode

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[x] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description

This PR is supposedly fixing the end to and tests not running in CI but actually just the install.
Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[ ] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

closing in favour of #421


Catechesis(Hellknight Signifier)

Hello Vek! Great job you're doing! Signifier's missing quite a lot by not having Catechesis implemented in the base game, so what do you think about it? If you don't know what Catechesis is, here's a link: https://www.d20pfsrd.com/classes/prestige-classes/other-paizo/e-h/hellknight-signifer/ . I just don't know whether it should also advance Channel Energy...probably should be an option. Oh and about Improved Channel, there should probably an option so you can pick that multiple times too...DCs for Channel are entirely too low come late game.
What do you think about it and can you implement it?

I'm also in need of Catechesis. It's a necessary feature for the Inquisitor/Hellknight Signifer (Yes, it's Signifer, not Signifier. Look closely.) Aeon that the game basically tries to force you into if you want to take full advantage of the Aeon path. Without Catechesis, divine spellcasters have no reason to take levels in Signifer.

+1 Would be nice to see.


Enable running validator client service in separate process

The basic architecture is now in place, but there's a few things to do to make this ready for real world deployment:

[x] Switch to standard REST API

[x] Implement head update event (published whenever beacon chain advances it's head - either on a new head block importing or after running fork choice 1/3rd through a slot, effectively selecting the skipped slot)
[x] Handle clients that are slow to read from events stream to ensure we continue to publish to faster clients quickly and don't build up a huge number of pending events in memory
[x] Allow attestation and production duties, plus block creation and publishing to be performed one slot in advance (ie when the block for the last slot of epoch 1 is selected, we can calculate block production for epoch 2 and attestation duties for epoch 2 & 3 even if the start time of the first slot for epoch 2 hasn't been reached)
[x] Implement the remaining REST APIs from the validator required set (separate tickets for those - they map pretty closely to our existing APIs)

[x] Create/find java client to read event streams
[x] Switch validator client to be driven off of it's own clock and the head events
[x] Reset scheduled duties when the event stream is disconnected (we might have missed a reorg event while reconnecting)
[x] Review CLI options and prepare them to be fully supported APIs (particularly adapting to not needing to explicitly enable remote validator APIs)

[x] Support loading options from a config file

[ ] Don't run in-process validator service if there are no validators specified
[x] Complete separation of validator duties to attestation and block production duties.
[x] Default to different log file for validator client
[x] Move slashing protection directory out of data path

@ajsutton - moving this epic over to you in case you still want/need it.  Otherwise, close away :-)

Calling this one done.  External validator now works well and is using only standard REST APIs.


refactor(Opposite): Opposite.mk -> Opposite.op

It was observed on Zulip that we should really have op as the custom name for the Opposite constructor as long as it remains a structure.

!bench

!bench

It is strange that the CI build succeeds even though there is still a sorry!

Oh yeah. That doesn't seem good

!bench

bors merge


Easier inserts

I've added a feature that allows you to insert values from a dictionary, using the keys as the column names. This addresses #533. I've also added a feature that allows you to update all the given values when there is a duplicate key.

I noticed that bytes values don't get formatted correctly. I've fixed this and added it to this pull request.

I probably should have put these in separate pull requests. Sorry.


configure_server_settings loses integer values

Print the value's class before and after setting it (for clarity)
If STDIN strings are really integers, convert them

Although, we do special handling of "100.megabytes" strings, etc. later
when consuming the settings such as in worker_settings using
to_i_with_method, it makes sense to check for integers here at the point
in which the user provides them so we can store them "correctly".
Note, one could argue we should handle floats or other datatypes but
99.9% of our settings are strings or integers.
http://talk.manageiq.org/t/tune-workers-via-cli/3107/4452dd84
Before the fix
$ ./tools/configure_server_settings.rb -s 1 -p workers/worker_base/queue_worker_base/generic_worker/count -v 3
...
{:dry_run=>false, :serverid=>1, :path=>"workers/worker_base/queue_worker_base/generic_worker/count", :value=>"3", :help=>false, :serverid_given=>true, :path_given=>true, :value_given=>true}
Setting [workers/worker_base/queue_worker_base/generic_worker/count], old value: [2] (Integer), new value: [3](String)
Done

After
$ ./tools/configure_server_settings.rb -s 1 -p workers/worker_base/queue_worker_base/generic_worker/count -v 1
...
{:dry_run=>false, :serverid=>1, :path=>"workers/worker_base/queue_worker_base/generic_worker/count", :value=>"1", :help=>false, :serverid_given=>true, :path_given=>true, :value_given=>true}
Setting [workers/worker_base/queue_worker_base/generic_worker/count], old value: [3](Integer), new value: [1](Integer)
Done

Alternative found in #17039

Closing since #17039 looks to be going in the right direction to solve this more generically without adding too much code.


The "All" node refreshes way too often when expanding child nodes

Issue Type: Bug
I am working on the vscode-go repo and have the "All" node expanded. Every other time I expand a PR under it, the "All" node refreshes.
This seems unnecessary at best and annoying at worst when one of the remotes dont exist anymore.
Then you keep getting the warning "Fetching pull requests for remote ... failed, please check if the url..."
Extension version: 0.1.2
VS Code version: Code - Insiders 1.28.0-insider<PHONE_NUMBER>1424c07b28ba84b82b75a88b8455cb, 2018-09-10T05:18:57.119Z)
OS version: Windows_NT x64 10.0.17134

Closing, as this no longer reproduces. The tree should refresh infrequently now


Investigate kured https://github.com/weaveworks/kured

Ref:
https://github.com/weaveworks/kured

The following PRs have been accepted by kured:

https://github.com/weaveworks/kured/pull/294
https://github.com/weaveworks/kured/pull/296
https://github.com/weaveworks/kured/pull/318
https://github.com/weaveworks/kured/pull/342

These form the basis of changes that we are testing kamino against. When 1.7.0 of kured is released, we can integrate that version into our testing, add documentation to kamino, and move towards a 1.0 kamino release.


Do not merge: feedback on code

Couldn't think of a better way of leaving some code feedback.

latest commits should take care of this feedback, with the exception of handling successive calls to announce/lookup, so made an issue for that: https://github.com/digidem/mdns-sd-discovery/issues/2


[hotfix] WIP: Remove redundant scala suffix

What is the purpose of the change
After flink-runtime becomes scala free. It seems several other modules can get rid of scala suffix. Trying to verify it.
Brief change log

Remove flink-scala dep from flink-streaming-java which seems not into use.
Remove scala suffix for

flink-streaming-java
flink-client
flink-test-util
flink-kubernetes

Verifying this change
If and only if codebase compiled and all existing tests passed.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

@flinkbot run azure

@flinkbot run azure

I'm already looking into this topic as part of FLINK-23986. I will close the PR because I have already solved all these problems.
Overall you were on a good track. I'd argue that using reflection against Scala classes isn't really clean. It makes the code hard to write, maintain and extend. Instead there should be a form of FieldAccessFactory extension in the Scala API modules that is instead loaded via reflection.
Furthermore, we can also remove the Scala dependency from flink-cep.
Finally, the removal of suffixes cascades into way more modules than shown here.

@zentol thanks! Let me try to catch up FLINK-23986.


Fix inline edit request method in Naja

changed ajax call argument for inline edit from "method" to "type"

@dakorpar Could you please verify that this update works? I know only that you are using Naja. Thanks a lot!

@paveljanda works in both cases for me, but from code this PR looks correct, not sure why is working correct for me even now, it sends post request with this code and current release.
IMHO this should be merged

@dakorpar Thanks for the info!
@Darneus Could you please provide some context why this does not work? Some documentation link or something.. Thanks

@paveljanda it does not work because naja implementation dataGridRegisterAjaxCall maps param "type" to "method" or use "GET" by default, but inline editing provided a "method". It's on line 46 in datagrid.js

@paveljanda this is same as commit you've merged already:
https://github.com/contributte/datagrid/commit/8c99c500c10bae05ea0d6a834b4fac72fae111bd
so you can close this

Cool, thanks both!


Document Swift interface

Temporary PR to compare seg-swift-docs against mr-swift. Will force push to seg-swift-docs once mr-swift is merged into al-swift.

mr-swift is not ready to be merged. Closing this in favor of merging seg-swift-docs as the next step in this Swiftventure.


To work with stable states of entity arrays, permit VM arrays to have keys

When the values within an array are entity types then we will need an identity (key) function. This will mean that mutating functions and/or replacement operations may be "key-aware" so to speak. For example:
myVm.anArray.replaceWith([
  { id: 1, name: 'Jane' },
  { id: 2, name: 'Bob' },
]);

myVm.anArray.replaceWith([
  { id: 1, name: 'Jane' },
  { id: 3, name: 'Fred' },
]);

In the second assignment, we want to leave the 'Jane' item in the array untouched, because it has the same identity/key as the existing Jane object. We are not replacing Jane with another object that has the same name, we are preserving it. We are in fact deleting Bob and adding Fred.

In fact, actually we don't want to do this. For regular replacement this should work as it looks.
Keys are only valid for mapping.


LexError no span information

If I run code bellow via cargo run, it prints:
err: LexError, at 1:0 - 1:0

As you see the location information is wrong, it should be line 3, not 1.
According to code of syn, this is because of LexError have no
method like fn span(&sefl) -> Span, so syn just call Span::call_site,
and this method provides meaningless span for usage inside build.rs / main.rs
#Cargo.toml
[package]
name = "foo"
version = "0.1.0"
authors = ["Rust Example<EMAIL_ADDRESS>edition = "2018"

[dependencies]
syn = { version = "*", features = ["full", "extra-traits", "visit-mut", "visit"] }
proc-macro2 = { version = "*", features = ["span-locations"] }

//main.rs
fn main() {
    if let Err(err) = syn::parse_file(
        r#"
//comment
macro_call!(};
"#,
    ) {
        println!(
            "err: {}, at {}:{} - {}:{}",
            err,
            err.span().start().line,
            err.span().start().column,
            err.span().end().line,
            err.span().end().column
        );
    }
}

Added https://docs.rs/proc-macro2/1.0.26/proc_macro2/struct.LexError.html#method.span in proc-macro2 1.0.26.


How to run lint-staged and shell script together in precommit?

I have written a shell script which will run eslint on the staged file which I want to use in the precommit hook, but I also want to run lint-staged during precommit. How can I do that. My package.json looks something like this :
 "scripts": {
    "precommit": "chmod +x tools/eslintscript.sh | ./tools/eslintscript.sh"
  },
  "lint-staged": {
    "*.js": [
      "prettier --write",
      "git add"
    ]
  },

I tried using
"scripts": {
    "precommit": "npm-run-all --parallel --continue-on-error chmod +x tools/eslintscript.sh | ./tools/eslintscript.sh"

},

You have to add lint-staged to the precommit task somehow. Simplest way would be to just && lint-staged probably or use & if you want to run in parallel.
Please refer to the package documentation you're using for setting and managing git hooks.


add hint for sparse indexes to UI

Scope & Purpose
Backport of https://github.com/arangodb/arangodb/pull/16838
List the downsides of sparse indexes, so that end users are aware of them.
This PR only changes a help text in the web interface.

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[ ] Tests

[ ] Regression tests
[ ] C++ Unit tests
[ ] integration tests
[ ] resilience tests

[ ] :book: CHANGELOG entry made
[ ] :books: documentation written (release notes, API changes, ...)
[ ] Backports

[ ] Backport for 3.10: (Please link PR)
[ ] Backport for 3.9: (Please link PR)
[ ] Backport for 3.8: (Please link PR)

Related Information

[ ] Docs PR:
[ ] Enterprise PR:
[ ] GitHub issue / Jira ticket:
[ ] Design document:

Jenkins PR run: https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/23414/


bug-fix: update go-mysql to fix mariadb panic

What problem does this PR solve?

Issue Number: close #7969 ref https://github.com/go-mysql-org/go-mysql/pull/760
What is changed and how it works?

update go-mysql dependency

Check List
Tests

manually test(replace upstream with mariadb)
chaos test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/run-all-tests

/run-verify

/run-verify-ci

/merge


Slow connection to Cloud Spanner (over 800 ms) even with cache pool

Hello,
my company is thinking about migrating our databases to cloud spanner within a multi-tenant architecture, however after the first tests we have done, we are afraid of not getting the performance we expect.
  $cache = new SysVCacheItemPool();
  $sessionPool = new CacheSessionPool(
      $cache, [
          'minSessions' => 10,
          'maxSessions' => 10
      ]
  );
  $client = new SpannerClient([
      'projectId' => 'XXX',
      'keyFilePath' => __DIR__ . '/../config/CloudSpanner/XXX.json',
      'authCache' => $cache
  ]);
  $instance = $client->instance('XXX');
  $database = $instance->database('XXX', [ 'sessionPool' => $sessionPool ]);
  $results = $database->execute('SELECT "Hello World" as test')

  foreach ($results as $row) {
    print($row['test'] . PHP_EOL);
  }

What's wrong with this example? is that anything that we cloud do to improve the response time?
Benchmark results:
~ ab -n 400 -c 12 -H 'X-CONTENTS-WEBSITE-ID: 1' https://contents-api.docker.test/health
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Document Path:          /health
Document Length:        91 bytes

Concurrency Level:      12
Time taken for tests:   32.229 seconds
Complete requests:      400
Failed requests:        0
Total transferred:      146400 bytes
HTML transferred:       36400 bytes
Requests per second:    12.41 [#/sec] (mean)
Time per request:       966.880 [ms] (mean)
Time per request:       80.573 [ms] (mean, across all concurrent requests)
Transfer rate:          4.44 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        5   11  11.4      8     156
Processing:   458  934 207.5    902    1746
Waiting:      457  933 207.0    902    1746
Total:        497  945 209.6    913    1755

Percentage of the requests served within a certain time (ms)
  50%    913
  66%    978
  75%   1052
  80%   1088
  90%   1233
  95%   1362
  98%   1521
  99%   1560
 100%   1755 (longest request)

The spanner instance is on europe-west4, FYI, i am testing it from Portugal.

Have you enabled both the gRPC and protobuf extensions? If so, would you be able to share the versions?

Have you enabled both the gRPC and protobuf extensions? If so, would you be able to share the versions?

Yes, grpc version 1.37.0 , protobuf version 3.13.0.

Hi there,
I noticed a couple things from your code snippet:

The same cache seems to be used for both authentication and the session pool. I believe these should be separate caches.
The session pool configuration means there will be exactly 10 sessions which means there can be a maximum of 10 concurrent transactions.

However, neither of these would explain the performance issues you're seeing.
I am not very familiar with ApacheBench so please correct me if I am wrong but I believe it is running the code from scratch for each iteration. This would mean the session pool is not persisted and is being created each time which could explain the performance issues; it is having to create new sessions for each run.
I think this is the issue as using the following code I was able to get similar timings:
for ($i = 0; $i < 400; $i++) {
  $cache = new SysVCacheItemPool();
  $sessionPool = new CacheSessionPool(
      $cache, [
          'minSessions' => 10,
          'maxSessions' => 10
      ]
  );
  $client = new SpannerClient([
      'projectId' => 'XXX',
      'keyFilePath' => __DIR__ . '/../config/CloudSpanner/XXX.json',
      'authCache' => $cache
  ]);
  $instance = $client->instance('XXX');
  $database = $instance->database('XXX', [ 'sessionPool' => $sessionPool ]);
  $results = $database->execute('SELECT "Hello World" as test')

  foreach ($results as $row) {
    print($row['test'] . PHP_EOL);
  }
}

To get the expected performance, I would suggest persisting the caches and client so the benchmarking looks more like:
$cache = new SysVCacheItemPool();
$sessionPool = new CacheSessionPool(
    $cache, [
        'minSessions' => 10,
        'maxSessions' => 10
    ]
);
$client = new SpannerClient([
    'projectId' => 'XXX',
    'keyFilePath' => __DIR__ . '/../config/CloudSpanner/XXX.json',
    'authCache' => $cache
]);
for ($i = 0; $i < 400; $i++) {
  $instance = $client->instance('XXX');
  $database = $instance->database('XXX', [ 'sessionPool' => $sessionPool ]);
  $results = $database->execute('SELECT "Hello World" as test')

  foreach ($results as $row) {
    print($row['test'] . PHP_EOL);
  }
}

Hi there,
I noticed a couple things from your code snippet:

The same cache seems to be used for both authentication and the session pool. I believe these should be separate caches.
The session pool configuration means there will be exactly 10 sessions which means there can be a maximum of 10 concurrent transactions.

However, neither of these would explain the performance issues you're seeing.
I am not very familiar with ApacheBench so please correct me if I am wrong but I believe it is running the code from scratch for each iteration. This would mean the session pool is not persisted and is being created each time which could explain the performance issues; it is having to create new sessions for each run.
I think this is the issue as using the following code I was able to get similar timings:
for ($i = 0; $i < 400; $i++) {
  $cache = new SysVCacheItemPool();
  $sessionPool = new CacheSessionPool(
      $cache, [
          'minSessions' => 10,
          'maxSessions' => 10
      ]
  );
  $client = new SpannerClient([
      'projectId' => 'XXX',
      'keyFilePath' => __DIR__ . '/../config/CloudSpanner/XXX.json',
      'authCache' => $cache
  ]);
  $instance = $client->instance('XXX');
  $database = $instance->database('XXX', [ 'sessionPool' => $sessionPool ]);
  $results = $database->execute('SELECT "Hello World" as test')

  foreach ($results as $row) {
    print($row['test'] . PHP_EOL);
  }
}

To get the expected performance, I would suggest persisting the caches and client so the benchmarking looks more like:
$cache = new SysVCacheItemPool();
$sessionPool = new CacheSessionPool(
    $cache, [
        'minSessions' => 10,
        'maxSessions' => 10
    ]
);
$client = new SpannerClient([
    'projectId' => 'XXX',
    'keyFilePath' => __DIR__ . '/../config/CloudSpanner/XXX.json',
    'authCache' => $cache
]);
for ($i = 0; $i < 400; $i++) {
  $instance = $client->instance('XXX');
  $database = $instance->database('XXX', [ 'sessionPool' => $sessionPool ]);
  $results = $database->execute('SELECT "Hello World" as test')

  foreach ($results as $row) {
    print($row['test'] . PHP_EOL);
  }
}

Hi, the session pool is being persisted i noticed that because the first request would takes around 1500 ms, the next ones will decrease to around 700/900 ms, i tested it out from a US server connected to an US instance of CS and the results were fine, i am thinking there's some problem with my region? I am from portugal and i am connecting to the Belgium instance which is the server with the lowest latency i get.

I am going to close this issue due to lack of response. Feel free to reopen if you have further questions :+1:


Fix event listener leaking

This PR closes #1142
Fixed the memory leaking. The event listener was not remove correctly from the useEffect as they have give name of the constant instead of the function and I think window.addEventListenere doesn't return anything. So, the constant become undefined.

This PR closes #1142 Fixed the memory leaking. The event listener was not remove correctly from the useEffect as they have give name of the constant instead of the function and I think window.addEventListenere doesn't return anything. So, the constant become undefined.

yup my fault ;-;


Add command-line option to control crash-on-fail mode

Coverage decreased (-0.03%) to 99.803% when pulling e4f02120ce540098b8af706c61f580f27b6d1555 on CiderMan:crash-on-fail-cmd-line into bc78d784167bf17ec2d7d6a38473838f5432ab67 on cpputest:master.

Yup easier, now the CppUMock changes, right?


[BUG] Set Backup Target has an incorrect example manifest

Running this on K8s v1.18.2
The minio-secret example manifest has the wrong ket used which will result in the values not being read by longhorn.
Current:
apiVersion: v1
kind: Secret
metadata:
  name: minio-secret
  namespace: longhorn-system
type: Opaque
data:
  AWS_ACCESS_KEY_ID: bG9uZ2hvcm4tdGVzdC1hY2Nlc3Mta2V5 # longhorn-test-access-key
  AWS_SECRET_ACCESS_KEY: bG9uZ2hvcm4tdGVzdC1zZWNyZXQta2V5 # longhorn-test-secret-key
  AWS_ENDPOINTS: aHR0cDovL21pbmlvLXNlcnZpY2UuZGVmYXVsdDo5MDAw # http://minio-service.default:9000

Changing the key from data to stringData allowed longhorn to read the values and successfully read and create backups.

It always worked for us. Maybe something changed in Kubernetes v1.18.

I was able to create and restore a backup using  backupstore manifest file without issues.
using K3S  v1.18.2+k3s1
Reproduce steps:

Deploy 3 node cluster with k3s v1.18.2  (1 master, 3 wroker nodes)
Install Longhorn master
Deploy Backupstore using: backupstore manifest
Set Longhorn backup settings
Create a volume, attach it to a node, write some data, compute it's checksum
Create a backup
Restore the backup to a new volume, attach it to a node, and compute data checksum

@Mercwri I'll close this ticket for now, if you have similar behavior again, please don't hesitate to file a new issues. Thanks.


[Rename step] :: error if newname corresponds to an existing column name

Return an error if trying to rename a column with an already used column name.
Closes https://github.com/ToucanToco/vue-query-builder/issues/162

Codecov Report

Merging #166 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #166      +/-   ##
==========================================
+ Coverage   85.79%   85.85%   +0.06%
==========================================
  Files          29       29
  Lines         690      693       +3
  Branches       79       80       +1
==========================================
+ Hits          592      595       +3
  Misses         85       85
  Partials       13       13

Impacted Files
Coverage Δ

src/components/FormRenameStep.vue
100% <100%> (ø)
:arrow_up:

src/mixins/FormMixin.vue
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM but that means that all forms have to implement that validation, can't we directly overload Ajv validator ?

@Dalanir not all forms (only those that will add a column). But we should for sure think about another approach, maybe in a refactoring PR when the code base will have matured a bit on this topic ?


Table View Data browser design/roadmap

Write a design document for the data browser to bring clarity on:

what it exactly is
dev roadmap

Feature request: a toggle for viewing each component either as raw arrow data or using the DataUi for it (if any)

Might be worth considering if it should be a Tree Table rather than a table

Closing this one in favour of this tracking issue: https://github.com/rerun-io/rerun/issues/4466


Change explorer grid selection upon char key press

When there is a selected item in the explorer grid, and a letter key is pressed (like 's') - cycle through all items that start with that letter

PreviewTextInput can be used to get exact char


Make wildcard description clearer in README

TLDR - Add the following in the API section of README.md:

The event name can contain multiple wildcards. For example:
"a.*.b.*" // this would match for example, "a.x.b.y"

Reason:
The README has the following section about wildcards:

An event name passed to any event emitter method can contain a wild card (the * character). If the event name is a string, a wildcard may appear as foo.. If the event name is an array, the wildcard may appear as ['foo', '']`.
If either of the above described events were passed to the on method, subsequent emits such as the following would be observed...
emitter.emit('foo.bazz');
emitter.emit(['foo', 'bar']);

The wording is a bit confusing here as wildcard is described singularly:

any event emitter method can contain a wild card
the wildcard may appear as ['foo', '*'].

Which makes it sound as if only one wildcard is allowed per event name. The only way to find out otherwise is to test it yourself, which isn't that hard, but still annoying.

A PR to improve this would be very much appreciated!


Linker options in dyaml.pc not correct?

The libgtkd-3-dev package on Debian Sid installs  /usr/lib/x86_64-linux-gnu/pkgconfig/gtkd-3.pc:
Name: GtkD
Description: A D binding and OO wrapper for GTK+.
Version: 3.8.2
Libs: -L-L/usr/lib/x86_64-linux-gnu/ -L-lgtkd-3 -L-ldl
Cflags: -I/usr/include/d/gtkd-3/

which works for dmd and ldc2, I suspect perhaps not for gdc. D-YAML creates:
prefix=/home/users/russel/Built
libdir=${prefix}/lib
includedir=${prefix}/include

Name: dyaml
Description: YAML parser and emitter for the D programming language.
Version: 0.6.5
Requires.private: tinyendian
Libs: -L${libdir} -ldyaml
Cflags: -I${includedir}/d/yaml

Which doesn't work fordmd or ldc2 without adding a -L in front of the Libs options. So who has it right GtkD or D-YAML?

Both, actually, although GtkD is probably a bit more correct.
Since D has no ABI stability and you can't use any library compiled with one D compiler with code compiled with another D compiler, the libraries and therefore the .pc files are generally tied to the respective compiler and compiler version that the code was originally compiled with.
In pkg-config files, we generally expect GCC/Clang compatible compiler flags, which makes the dyaml case correct. At the same time though, ldc and dmd are not fully compatible to GCC/Clang's arguments, therefore GtkD could be correct.
What actually happens though is that at least when using Meson, Meson will transparently convert the flags to whatever the currently used D compiler is comfortable with, and AFAIK dub will do the same.

OK. I am stuck with Dub and SCons for build since Meson cannot build Unit-Threaded stuff because there is no unitary build. (I just do a small hack for the SCons build which is irritating but I can cope.)

Meson supports unity builds, but the D support likely doesn't. Implementing this should be easy though.
DMD and LDC not following GCC/Clang flags is an incredible nuisance, so much so that we actually ship a script in Debian as part of the dlang debhelper support to work around this issue.
Dub should actually already deal with pkg-config flags correctly, if not this should be fixed. For SCons, you might find the code we ship in Debian as part of our packaging helpers useful: https://salsa.debian.org/d-team/dh-dlang/blob/master/gcc-to-ldc-flags.py (it's a hack, but the best we got at time to work around the compiler flag differences).


GOSW20- Loading the data from database to the events page.

Features to work on:

Fetch all details about coming events and display it on the events page.

Always note this:

Use comments for better explanation of your code.
Try to resolve conflicts in the package.json files before submitting the PR.

Kindly assign me @nanda-mik .

@sachinsom93 work on this


Tests are fragile due to image comparison

I am trying to run locally the test suite but it fails due to existing delta of 0.05
=== RUN   TestAPIShapes
api_test.go:61: testdata/api_shapes.png: images compare different
--- FAIL: TestAPIShapes (0.08s)
Increasing delta to 0.06 make test green.
Is there any other more robust way to implement tests avoiding image comparison completely? Is there a way to compare the state that produces the images instead of the images themselves?

I don't know of another, better, way.
the magical value of 0.5 is just that: a magical value, which can be increased by experimentation.
that said, it's possible the discrepancy is coming from the Gio version being used.
I haven't updated Gio (nor the reference files) in a somewhat long time and Gio has seen a few updates in the path/strokes department.
let me update the Gio stack.

I don't know of another, better, way.
the magical value of 0.5 is just that: a magical value, which can be increased by experimentation.
that said, it's possible the discrepancy is coming from the Gio version being used.
I haven't updated Gio (nor the reference files) in a somewhat long time and Gio has seen a few updates in the path/strokes department.
let me update the Gio stack.

see https://github.com/go-p5/p5/pull/18.
do the reference files work better for you?
(what platform/os are you working with, btw?)

see https://github.com/go-p5/p5/pull/18.
do the reference files work better for you?
(what platform/os are you working with, btw?)

BTW, I've created this little program to see differences (and the min/max of those) between 2 images:

https://github.com/sbinet/img-diff

BTW, I've created this little program to see differences (and the min/max of those) between 2 images:

https://github.com/sbinet/img-diff

now it is fine, thanks 👍

now it is fine, thanks 👍


add BGAN, GAN-VFS, MGGAN, PGAN, SS-GAN, GAN-sep, VIGAN

This PR fixes a few small issues in plot range and appearance;  moreover, it adds 7 GANs.
New GANs:

Binary GAN (BGAN)
Generative Adversarial Network-based Visible Face Synthesis (GAN-VFS)
Multi-Generators GANs (MGGAN)
Probabilistic Generative Adversarial Network (PGAN)
semi-supervised GAN (SS-GAN)
separable GAN (GAN-sep)
View Imputation GAN (VIGAN)

@hindupuravinash @Banus: the arxiv link for BGAN points to the github repository. Moreover, the github repository does not refer to any paper.

Thanks for pointing out @pwaller! The code repo was pointed in the arxiv paper itself. So, should be good I suppose, I fixed the link.


UI enhancement needed

As a user if I want to use the website I cant see the thing I have to hover then it is visible for very less time, which is not good in my opinion

Assign this issue to me I'll fix this

can i work on this issue? @akshitjain2004

Please assign this issue to me @TeeWrath


Tree element in content.xml raise an error

Importing a Full Content Swap Package with a content.xml containing a tree element of type topic raise an error.
Step to reproduce:

Take any working Full Content Swap Package.
Add the following lines in the content.xml, generated by the migration tools add-on (https://github.com/concrete5/addon_migration_tool):

<trees>
   <tree type="topic" default="1">
      <topic name="abc"/>
    </tree>
</trees>

3)Install the package via the web interface
4)Choose : Yes. Reset site content with the content found in this package
Actual outcome:
You obtain the following error:
Call to a member function getRootTreeNodeObject() on null
in the function:
    public static function import(\SimpleXMLElement $sx)
    {
        $type = TreeType::getByHandle((string) $sx['type']);
        $class = $type->getTreeTypeClass();
        $tree = call_user_func_array(array($class, 'importDetails'), array($sx));
        $parent = $tree->getRootTreeNodeObject();
        $parent->importChildren($sx);
    }

Desired outcome:
A topic tree containing one element named abc should be created.
Debugging
The problem is that call_user_func_array(array($class, 'importDetails'), array($sx)); returns null.
$class refers to \Concrete\Core\Tree\Type\Topic and the importDetails in Topic.php is called:
public static function importDetails(\SimpleXMLElement $sx)
    {
        $isDefault = (string) $sx['default'];
        if ($isDefault) {
            return static::getDefault();
        } else {
            $name = (string) $sx['name'];
            $tree = static::getByName($name);
            if (is_object($tree)) {
                // We already have a tree. But we know we're going to have sub-nodes of this tree in the import, so let's keep the same
                // tree so that pointers to attributes work, but let's clear it out.
                $root = $tree->getRootTreeNodeObject();
                $root->populateChildren();
                $children = $root->getChildNodes();
                foreach ($children as $child) {
                    $child->delete();
                }

                return static::getByName($name);
            } else {
                return static::add($name);
            }
        }
    }

$isDefault is evaluated to 1 and static::getDefault(); is called:
   public static function getDefault()
    {
        $db = Database::connection();
        $treeID = $db->GetOne('select treeID from TopicTrees order by treeID asc');

        return Tree::getByID($treeID);
    }

but the table TopicTrees is empty.

I think the problem  comes from the migration tools addon wich generate:
<trees>
   <tree type="topic" default="1">
      <topic name="abc"/>
    </tree>
</trees>

and should generate
<trees>
   <tree type="topic" name="xyz">
      <topic name="abc"/>
    </tree>
</trees>

In some cases, there is no error with <tree type="topic" default="1">. This issue need more investigations. I close it until I can obtain a more detailed scenario.


Int fom mysql database is returned as String

First thank you so much for the lib.
I am receiving all the int on my database are being returned as String from. Can you check please?

Thank you so much!!!


How to make it generate more output?

More documents than the default 4 can generate more. I think more history can do it, and possibly setting max_tokens but not necessarily. Technically max_tokens should do it yet I don't see that always, it depends again on if you asked for something big enough. Possibly upping the temperature? not sure.
From what I can tell it is mainly the more documents or else the question + document data returned and how much it could build from it + history somewhat.


Stop matching

I'm working in a web app that calls match when the mouse moves inside a div, my question is:
How can I stop matching before I call match again?
Thanks

Thanks to PR #143 you can now call halt even when using .match....so you should be able to call session.halt() to stop execution, however you should still wait until the .match promise resolves to be sure that the execution is done.
Please reopen if you still have issues
-Doug

I hadn't seen session.halt(). Thanks for all your work!!


Why did you use sigmoid in classification head?

I think sigmoid is not an appropriate choice to use in case of multiple classes in classification branch

In the paper, authors have said that they use sigmoid function to do the classification. They have tried softmax, but sigmoid is better probably.


enableWhenExpression follow up PR for maintaining CodeHealth

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1345
Description
Remove questionnaireResponseItemRetriever and instead implement the functionality of finding the questionnaire response item from linkId inside of the enablement package.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Code health
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[ ] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

@joiskash please take a look at this. We spoke about this before. This is a really important refactoring.

These changes look good, but I am unable to figure out one part:
In questionnaireResponseItemChangedCallback the linkIdToQuestionnaireResponseItemMap is modified. Is this map equivalent to the map that you get after createLinkIdToQuestionnaireResponseItemMap with the updated questionnaireResponse ?
@RaaziaTarique @jingtang10

Yes, as I have moved createLinkIdToQuestionnaireResponseItemMap to MoreQuestionnaireItemComponent so, I modified it as per  EnablementEvaluator.
@joiskash   CC: @jingtang10

@f-odhiambo are you aware if this PR is ready for review by Google?

@f-odhiambo are you aware if this PR is ready for review by Google?

This PR is ready for review @Tarun-Bhardwaj

i'll raise a separate pr


Making the cache optional (i.e. by default no cache)

Is it possible to provide a cache-adapter, but make the requests non-cachable unless you choose to?
So in effect, I want
mport axios from 'axios'
import { setupCache } from 'axios-cache-adapter'

const cache = setupCache({
  maxAge: 15 * 60 * 1000
})

const api = axios.create({
  adapter: cache.adapter
})

// but now this should not be cached
api.get('...')

// but this should be cached, by passing some option
api.get('...', { useCache: enable })

Yes, this is possible. Check how to pass custom settings to each request here:
https://github.com/RasCarlito/axios-cache-adapter#per-request-options
The available options you can pass are documented here:
https://github.com/RasCarlito/axios-cache-adapter#options
Your example is almost working, except you should use the ignoreCache option:
api.get('...', { ignoreCache: true })

@AndrewCraswell but that's the opposite I want; in your example, caching is enabled by default, and you can choose to ignore it per request. I want the exact opposite. Caching is disabled by default, and you can choose to enable it per request.
I'm going to be adding this to an existing project, and I don't want all GET requests to suddenly be cached without us deliberately wanting them to be cached. So I want to add the caching as an optional parameter per request that we can choose to opt it.

So when you execute setupCache shouldn't you set maxAge to 0 to effectively disable, then override it when you make requests?

@ktalebian
Did you find any solution for that? I also don't want to handle all my GET requests on localstorage, just a few specific ones.

Sorted out.
The solution is to use the filter method of the library itself so that you can choose which endpoint will be cached.

please make mode with disabled cache by default(
Example I want make request with cache when:
api.get('...', { withCache: true })

@AndrewCraswell that would work, but that now means I need to set the maxAge in each endpoint that I want cached. Would be nice if a withCache option was available where you just enable the cache per endpoint and let the global cache setting be applied.

I set it up like this:
export const client = setup({
  baseURL: API_BASE,
  withCredentials: false,
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  cache: {
    maxAge: DEFAULT_MAX_AGE,
    store: forageStore,
    ignoreCache: true,
  },
})

// If `useCache` is set in request options, add a max-age age so caching is enabled
client.interceptors.request.use((config) =>   {
  if (config.useCache) {
    config.cache = { ignoreCache: false }
  }

  return config
})

I use an auxiliary function to define what I want to be in the cache or not
`
// Function helper
const URL_CACHED = [/users/]; // regex of the route that I WANT to stay in the cache, 'users' will be cached.
export function getURLCached(req) {
const { url } = req;
const urlMapped = URL_CACHED.map(pattern => {
const patternRegexp = new RegExp(pattern);
return patternRegexp.test(url);
});
const shouldCached = urlMapped.includes(true);
return !shouldCached;
}
// End Function helper
// api.js
const api = setup({
baseURL: 'myApiURL',
cache: {
maxAge: 2 * 60 * 1000, // 2 minutes
exclude: {
filter: req => getURLCached(req), // if true does not cache, false caches
query: false,
},
},
});
// end  api.js
`
That way I only worry about passing the routes that I want to be cached in my 'URL_CACHED' array
I hope it helps someone!


no option to control minimum tls version

This is autogenerated. Please review and update as needed.
Describe the bug
there appears to be no way to set the minimum TLS version with az cli. it's not in configuration properties.  but it's exposed in portal

and it's visible in the resource properties itself when reviewing the json for the mysql db.
Command Name
az mysql server update
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az mysql server update -h

Expected Behavior
Environment Summary
macOS-10.15.5-x86_64-i386-64bit
Python 3.8.3
Installer: HOMEBREW

azure-cli 2.7.0

Extensions:
db-up 0.1.14

Additional Context

mysql

We are working on enabling this CLI support in upcoming releases. Currently we only support portal workflow.

#please-close


x265: 2.9 -> 3.0

Motivation for this change
Update to 3.0
Also, since version 2.6, x265 it's using nasm instead of yasm, see https://bitbucket.org/multicoreware/x265/src/feec4bdf98663ac4a2561b63e1ccec423c7d26a4/build/README.txt#lines-37
That means that the x265 version from nix, wasn't using any of the CPU optimizations
I also compiled with NUMA support by default. Not 100% sure, but it seems that NUMA systems will get a big performance win, while for non NUMA systems this change should be un-noticeable. For more info see:
https://bitbucket.org/multicoreware/x265/commits/62b8fe990df5e560834e9b567a913238d8dd398e
https://bitbucket.org/multicoreware/x265/issues/108/numa-pools
I compressed a short video (~1 minute) with the same options, and the performance change was huge, it went down from 22 to 8 minutes
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Note: Original PR was #61103

@c0bw3b I addressed your feedback from #61103 here. Thanks for looking into it, and sorry for my mistake and all the noise.

Changelog for the record:
https://x265.readthedocs.io/en/latest/releasenotes.html#version-3-0
Let's check Darwin build too:
@GrahamcOfBorg build x265


fix: Move assertions in a setup node

Description

Currently when we run e2e tests of any suite, it fails with the message Failed: Please set the required Stage Variables for user because related code was placed within the Container node rather than a subject/setup node.
This PR moves that code within a Setup node instead by moving the current code within rhtap-demo test suite within a new Describe node.

Issue ticket number and link
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
I tested locally by running the integration-service's E2E tests before and after these changes and can now confirm that I can run the tests.
Checklist:

[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/lgtm
/approve


Fix Security error during accessing session storage when cookies are disabled

Thanks, @okovpashko!

is it possible to release this?

@salzhrani This is released as v3.3.0, afaict.

I think it is not
<EMAIL_ADDRESS>

@salzhrani Ah, you're right! I just just looked at release date... In that case +1. Would be much appreciated. :)

@mjackson friendly reminder

Hi @mjackson, thanks for merging this (and thanks @okovpashko for the patch)! Consider this another friendly reminder to push another v3 release for this fix. Here's an issue that opened up as well to request this: https://github.com/ReactTraining/history/issues/462. This would help immensely!

@mjackson please elaborate and release this fix.
Recently we ended up creating the same bug in our issue tracker again. My colleague started fixing it and stumbled upon this PR.
Even I forgot that I fixed it about a year and a half ago.


How to disable User Deprecated: Since shopware/core messages?

How to disable Shopware's user deprecated ErrorException completely?
I tried a couple of things related to Symfony, Monolog and PHP but nothing worked.
Especially when using commands, it's really hard to properly read output when you constantly get blocks of deprecated.

APP_DEBUG=0

I already tried that without success.

@Zerotask I'm currently using this monolog config to hide these messages. It's displaying the output of the command and errors as far as i tried but i don't know if it hides something important, so use with care.
monolog:   handlers:     main:       type: stream       path: "%kernel.logs_dir%/%kernel.environment%.log"       level: error       channels: ["!event","!doctrine"]     console:       type:   console       process_psr_3_messages: false       level: error       channels: ["!event", "!doctrine", "!console", "!php", "!messenger"]
Just mount it to /var/www/html/config/packages/dev/monolog.yaml

As it is not related to this docker image I will close this


Update build.func to display the Proxmox Hostname

🛠 Note:
We are meticulous about merging code into the main branch, so please understand that pull requests not meeting the project's standards may be rejected. It's never personal!
🎮 Note for game-related scripts: These have a lower likelihood of being merged.

✍ Description
Provide a summary of the changes made and/or reference the issue being addressed.
Added the function to Display the name of the Proxmox Host during CT creation.
This is probably just a me Problem with my 5 Hosts, but sometimes when you work on more then one Host at a time it would be nice to see the Host you are working on.

You can test it against my dev branch: bash -c "$(wget -qLO - https://raw.githubusercontent.com/michelroegl-brunner/ProxmoxVE/refs/heads/DEV/ct/zammad.sh)"
🛠 Type of Change
Please check the relevant options:

[ ] Bug fix (non-breaking change that resolves an issue)
[X] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change unexpectedly)
[ ] New script (a fully functional and thoroughly tested script or set of scripts)

✅ Prerequisites
The following steps must be completed for the pull request to be considered:

[X] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
[X] Testing performed (I have thoroughly tested my changes and verified expected functionality.)
[ ] Documentation updated (I have updated any relevant documentation)

📋 Additional Information (optional)

idk if a new line needed.
Using default settings @PVEHOST_Name ?
Using advanced settings @PVEHOST_Name ?
or
Using default settings on node PVEHOST_Name ?
Using advanced settings on node PVEHOST_Name ?

Yeah, good idea. I like the second version more. I will change it,

Yes, update and post an new Screenshot. Disucssion & Decision needed by other @community-scripts/contributor

I have made the suggested changes, see the Scrennshots below:


Revert Cell.hash fix

🚀 Pull Request
Description
This PR reverts the fix targeting the change in behaviour of Cell.__hash__ when dealing with NaNs due to the performance regression that it introduces.
This fix is only applicable to a change in behaviour for py310.
See:

#4840
#4852

Reference:

https://bugs.python.org/issue43475
https://github.com/numpy/numpy/issues/18833
https://github.com/numpy/numpy/pull/18908
https://github.com/numpy/numpy/issues/21210

Closes #4843

Consult Iris pull request check list

Ping @stephenworsley
After discussion with @stephenworsley we decided that it makes sense to revert #4701 as that was introduced to allow a user to merge cubes with NaN scalar coords, but due to changes in Python 3.10 this fix would no longer work after Python 3.9.x. Until we can find a fix that doesn't cause such a performance degradation (see #4843) we plan to keep the old behaviour.
So in summary, the history of this issue is as follows:
#4701 made changes to coords.py to include nan equality and added some testing
#4840 added support for Python 3.10 and this included editing Cell.hash coords.py
#4852 attempted to fix the performance degradation introduced at #4840
In the first 3 commits of this PR, authored by @bjlittle, it reverts the relevant changes from #4852 and #4840 but adds a couple of changes (edits a tes introduced in #4701 and adds a whats new entry)
In the 4th commit authored by me I revert the extra changes in the previous 3 commits and revert all the changes from #4701


Your Gemfile lists the gem plainwhite (>= 0) more than once.

I'm absolute new about Ruby, I haven't tried Ruby before.
I want to install Development Environment.
When I run bundle install and terminal show that:

Installing eventmachine 1.2.7 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/bundler20190929-23721-1xm06yxeventmachine-1.2.7/gems/eventmachine-1.2.7/ext
/usr/bin/ruby2.5 -r ./siteconf20190929-23721-xuohki.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in
/tmp/bundler20190929-23721-1xm06yxeventmachine-1.2.7/gems/eventmachine-1.2.7 for
inspection.
Results logged to
/tmp/bundler20190929-23721-1xm06yxeventmachine-1.2.7/extensions/x86_64-linux/2.5.0/eventmachine-1.2.7/gem_make.out
An error occurred while installing eventmachine (1.2.7), and Bundler
cannot continue.
Make sure that gem install eventmachine -v '1.2.7' succeeds before
bundling.
In Gemfile:
plainwhite was resolved to 0.7, which depends on
jekyll-seo-tag was resolved to 2.1.0, which depends on
jekyll was resolved to 3.7.4, which depends on
em-websocket was resolved to 0.5.1, which depends on
eventmachine

Install dependencies


Article is Inaccurate - Needs Corrections and Disclaimers

Hello,
I think this article should be updated and corrected due to customer questions I have received on it, support cases, and failed attempts to implement its proposed steps.
Noting the below in the article would help a lot:

This method of querying AAD is in beta (note the url endpoint is https://graph.microsoft.com/beta/), which means it is not supported. The article should note that.
This is ONLY available in Azure Commercial, it will not work in any of the sovereign clouds. For example, it is not available for Azure US Gov Cloud customers.
The article states that "You can access this property in all editions of Azure AD." That is not correct and in conflict with our AAD documentation here https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-beta, see signInActivity Note: Details for this property require an Azure AD Premium P1/P2 license.
[Enter feedback here]

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

ID: 3e0a0671-953a-7797-6e0c-6616420f4c3b
Version Independent ID: a2de95d1-67b2-bcc6-402f-f5d23c53d13a
Content: How to manage inactive user accounts in Azure AD
Content Source: articles/active-directory/reports-monitoring/howto-manage-inactive-user-accounts.md
Service: active-directory
Sub-service: report-monitor
GitHub Login: @MarkusVi
Microsoft Alias: markvi

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

@timomta
Thanks for your doc enhancement suggestions! I have assigned this issue to the author who will investigate and update as appropriate.

Raised a PR to resolve comment 1. Comment 2, 3 had already been resolved.
#please-close


Structure in filter is unexpectedly changed when there are two views in some cases

1.17.8, 1.17.11
chem 1.8.7, 1.8.10
Steps to reproduce:

Open SPGI
Add the 2nd view
Open filters in the 2nd view
Draw some structure in structure filter >>> table is filtered
Go to the 1st view >>> table is filtered
Open filters panel >>> structure filter is the same as in the 2nd view
Close filters panel
Return to the 2nd view and change structure in filters
Go to the 1st view and open filters panel again

Expected results: filtering does not change. Structure in filters panel is the same as in the 2nd view.
Actual results: filtering is changed, structure is reset to one set on step 4.

DG 1.17.13


Option to select from brand colors when creating custom colors schemes

Currently, when setting the color for a custom color scheme for charts you have to put in the hex codes. It would be faster to allow the user to create color schemes by selecting from their brand colors.

@KinyaElGrande This will be resolved in the same way as #1501


[SYSTEMML-1572] Enable native BLAS on remote executors

@mboehm7 can you please review this PR ?
@bertholdreinwald

I'll try to have a look next week. In the meantime, you might want to revisit the integration approach - the large number of files you had to modify is already an indicator that this is probably not a good approach.
It should be fairly simply: create a single static call which dispatches between matrix block (which should not call libnative at all) and libnative, initialize once, and call it for each matrix multiplication.

@mboehm7 This approach allows the matrix multiplication on remote executor to respect the configuration flag native.blas. Since the configuration is not sent to the executor, not sure how single static call will enable that. But, we can discuss this next week after you have had chance to look at it :)

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/1435/

Not working as despite    <native.blas>true</native.blas> in SystemML-config.xml, another env var disables it.
17/05/03 09:07:33 WARN utils.NativeHelper: Using internal Java BLAS as native BLAS support is disabled by the environment variable 'SYSTEMML_BLAS='.

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/1438/


IPv6

Hi ultravideo developers,
Do you have any plans to support IPv6 option for the internet layer protocol?
Best,
Burak

Hi again,
yes, IPv6 support would be preferred. I actually ran into problems with this last week, so there is a need to support this on our end as well. I haven't gotten around to what this would take yet, since there is much other work around uvgRTP that needs doing.
Also, I got your email, I will respond to it probably at the start of next week.
BR, Joni

Hi Joni,
We have implemented this featue and a PR will be made.
Best,
Burak

@bcizmeci That sounds great! I don't think any of us have had the time to implement this, and I also have need for this feature down the line.
BR, Joni

@bcizmeci is your PR available?

Unfortunately, it is not ready. One of my students created it but it needs some more work to be a proper PR.

Hi @bcizmeci
Do you have any time estimate on when the PR would be ready? I've been making uvgRTP ready for 2.1.0 release and IPv6 support would be very nice feature for this release.
BR, Joni

Hi @jrsnen Joni,
I didn't have time on it but one of my colleagues is going to start working on it again in November. If you want to have a look, I can put it on a branch.
BR,
Burak

@bcizmeci thanks for the info.
Thanks for the info! I'm not in a terrible hurry. We'll release 2.1.0 without IPv6 support, and then IPv6 support can be released in 2.2.0 or later.
BR, Joni

@devenvexe @bcizmeci Good news. We have implemented IPv6 support, and it will be part of uvgRTP soon with the next release.

Implemented by release 2.3.0


Remove minimum count in open-all-notifications.js

The "open all unread notifications in tabs" feature is very convenient, as it requires a single click to be triggered.
When there's only one notification for a given repository, the icon is not shown, which is understandable, but that forces the same action to be done via a Ctrl+click, or a right click to show the context menu and then "Open in a new tab".
Both options are less convenient than the button provided by this feature, so this change simply removes the minimum of two notifications to show the "open in new tabs" icon. As a side effect, it also makes the notifications page more consistent, since all notification blocks now have the same set of icons. Contrast with the current behavior where some blocks have two icons at the top right, and others have only one:

Thanks for the quick review, @bfred-it. I've squashed the commits together and fixed the extended commit message to apply the edit I made to the opening comment, and to wrap the long lines.

Thanks for the quick PR! We can spend hours discussing it but sometimes it's just better to send a PR and let it be a one-click thing


Recursive download

Simplest possible recursive download. No tests yet, because I intend to test it with recursive upload which is my next step. Once both are working, I can look at performance and optimizing for different use cases.
! @nhibberd @olorin @jystic
/jury approved @olorin

The new version I have just pushed uses getSymbolicLinkStatus as suggested by @olorin and downloadWithMode (to match the way I've done upload) instead of downloadSingle.

The new version I have just pushed uses getSymbolicLinkStatus as suggested by @olorin

I think getFileStatus will give you the behaviour you want unless I'm misreading (https://github.com/ambiata/mismi/pull/376#discussion_r144148399)

👍

Yes, you are right. Just tested it and getFileStatus is what I need.

I think this should have an individual test regardless of upload, just to ensure structure is kept etc. The sync/download tests are a good example

Ack. WIll see what I can come up with

@nhibberd Have added simple once only test to show that the directory structure is preserved.

@nhibberd You happy with this?

:+1: Assuming we are going to come back and update it to not be only sequential

Yes, we are.


Added Shivana

metadata.json

Only add your server

Only add your server

it's mine, my discord: leoporcheron


feat: add default client configurations

Description of changes

See https://github.com/smithy-lang/smithy-swift/pull/650 for context on client configurations
Added AWS specific default client configurations
AWSClientConfigDefaultsProvider.swift provides all the default values for client config properties
Code generate AWS clients configurations (align with Smithy SRA runtime-plugins design)

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/test


Fix/remove accessory

:tada: This PR is included in version 0.12.0-main-ci-test.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix default fields of the PageManager into last tab

The default fields of the page manager (Template, Page name, etc) were present at the end of the last tab. With this fix, fields that have no tab property, will stay over the tabs.

@magicred7 - apart from there being just 1 commit, is this different to the new closed https://github.com/Laravel-Backpack/CRUD/pull/706?
@tabacitu  @OwenMelbz - this might be a breaking change if there's no option to turn it off by default (i.e. someone may see a tab[s] they don't expect). On the other hand it is somewhat the behaviour I'd expect.
If it is a breaking change I wonder if it would be worth logging this at debug although this could make the logs a little too chatty.

About the recent closed PR #706 , sorry, it was my mistake.
This change only occurs if the tabs are enabled (in some field) but there are fields that are not in any tab. This caused an error in the PageManager header fields.
But if you have a soluction more efficient, its ok. :)

I do not think it's correct, put fields without the tab property at the end of the last tab.
But maybe you have done it for some particular reason.

Damn... @magicred7 - I think you're right, this is the way it should have been from the start. No, there's no reason for them to figure in a certain tab - I just failed to see that this was the expected behaviour.
I think we can fit it into v3.3, as it's a breaking change, as @lloy0076 mentioned.
I'll be back when I test and merge it. Thanks a lot for the PR.
Cheers!

Again @magicred7  - thanks a lot for this. Merged it into the upgrade branch, so that it will soon be available to everyone. 3.3 is so near, people!! :-)


[api-minor] Change PageViewport to throw when the rotation is not a multiple of 90 degrees

As evident from the code, PageViewport only supports[1] rotation values which are a multiple of 90 degrees. Besides it being somewhat difficult to imagine meaningful use-cases for a non-multiple of 90 degrees rotation, the code also becomes both simpler and more efficient by not having to consider arbitrary rotation values.
However, any invalid rotation will silently fallback to assume zero rotation which probably isn't great for e.g. PDFPageProxy.getViewport in the API. Hence this patch, which will now enforce that only valid rotation values are accepted.

[1] As far as I can tell, from looking through the history, nothing else has ever been supported either.

/botio lint

/botio test

Makes sense; thank you!


'MM_VSSM is not in the mmseg::model registry.‘

When running segmentation, an error occurred stating that the model is not registered. Could you provide some solutions to this problem?
KeyError: 'MM_VSSM is not in the mmseg::model registry. Please check whether the value of MM_VSSM is correct or it was registered as expected.

您是否在项目中导入了 model.py？

hello, I also encounter the same error, when I delete this sentence "import model" in segmentation/tool/train.py.  However, when I keep this sentence, it will display “No module named 'model'”. And the file 'model.py' is located in 'segmentation'. Could you tell me how to solve this problem?

This question is related to how import or importlib works.
In this situation, the import would find the files in PYTHONPATH, and the current directory is in PYTHONPATH. So, you can open the folder segmentation, ignore the warning by your editor, and run "bash ./tools/dist_test.sh ...". That should work.

Thank you very much for your answer.
I imported model.py later and reported another error.
Finally, it is found that my environment has two cuda versions, and the torch version does not correctly correspond to the specified cuda version.
With the environment issues resolved and all necessary packages installed, it is ready to run successfully.
I see ~  https://blog.csdn.net/qq_39735236/article/details/128306258
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: Liu Yue @.>
发送时间: Saturday, March 23, 2024 9:08:45 PM
收件人: MzeroMiko/VMamba @.>
抄送: yanliyue @.>; Author @.>
主题: Re: [MzeroMiko/VMamba] 'MM_VSSM is not in the mmseg::model registry.‘ (Issue #81)
This question is related to how import or importlib works.
In this situation, the import would find the files in PYTHONPATH, and the current directory is in PYTHONPATH. So, you can open the folder segmentation, ignore the warning by your editor, and run "bash ./tools/dist_test.sh ...". That should work.
―
Reply to this email directly, view it on GitHubhttps://github.com/MzeroMiko/VMamba/issues/81#issuecomment-2016490768, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6ZAPLRXGNX652UF6LPHJLYZV5F3AVCNFSM6AAAAABERPRXTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGQ4TANZWHA.
You are receiving this because you authored the thread.Message ID: @.***>

This question is related to how import or importlib works.
In this situation, the import would find the files in PYTHONPATH, and the current directory is in PYTHONPATH. So, you can open the folder segmentation, ignore the warning by your editor, and run "bash ./tools/dist_test.sh ...". That should work.

Hello, I try to train on Windows, and I downloaded Git to run the bash commands. However, a new error occurred as shown below. Additionally, I only have one GPU, and I'm not sure if this could be one of the reasons for the error.

Hello, if there is only one GPU, then you may need to change the number 8 at the end of the run command to 1.
The error "No module named 'model'" may be because the custom model was not successfully registered. In fact, the code is properly registered, so it is still a problem that the environment is not configured correctly.
A slower but effective solution is to configure the mmsegmentation environment first, and then configure the packages required by VMamba in this environment after the mmsegmentation environment is run through.
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: csgo312 @.>
发送时间: Tuesday, March 26, 2024 4:18:27 PM
收件人: MzeroMiko/VMamba @.>
抄送: yanliyue @.>; Author @.>
主题: Re: [MzeroMiko/VMamba] 'MM_VSSM is not in the mmseg::model registry.‘ (Issue #81)
This question is related to how import or importlib works.
In this situation, the import would find the files in PYTHONPATH, and the current directory is in PYTHONPATH. So, you can open the folder segmentation, ignore the warning by your editor, and run "bash ./tools/dist_test.sh ...". That should work.
Hello, I try to train on Windows, and I downloaded Git to run the bash commands. However, a new error occurred as shown below. Additionally, I only have one GPU, and I'm not sure if this could be one of the reasons for the error.
_20240326161324.png (view on web)https://github.com/MzeroMiko/VMamba/assets/90898160/06c8b1de-8c7e-4b8b-adc9-b445c2fc140a
―
Reply to this email directly, view it on GitHubhttps://github.com/MzeroMiko/VMamba/issues/81#issuecomment-2019790575, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC6ZAPMZK7YCROZNAVAJSQLY2EVNHAVCNFSM6AAAAABERPRXTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJZG44TANJXGU.
You are receiving this because you authored the thread.Message ID: @.***>

I found my mmsegmentaion environment may be correct by testing. And I finally solve the error by adding import sys sys.path.append('D:\Code\VMamba\segmentation') in train.py. However, thank you so much for your kind advice.


CLI exits with timeout error when booting iOS 8.1 on macOS 10.12

If you try to start iOS 8.1 device e.g. iPhone 4s on macOS 10.12 Siera. fbsimctl will successfully start the simulator, and then will hang for some time (about a couple of minutes) and will exit with the following error:
Error Domain=com.facebook.FBSimulatorControl Code=0 "Timed out waiting for all required services [com.apple.SpringBoard, com.apple.medialibraryd, com.apple.backboardd, com.apple.mobile.installd, com.apple.SimulatorBridge] to start" UserInfo={NSLocalizedDescription=Timed out waiting for all required services [com.apple.SpringBoard, com.apple.medialibraryd, com.apple.backboardd, com.apple.mobile.installd, com.apple.SimulatorBridge] to start}

Is this because some of those services don't exist on iOS < 9?
This seems to imply that 'com.apple.backboardd' and 'com.apple.medialibraryd' are missing:
https://github.com/plu/simctl/blob/master/lib/simctl/device.rb#L260

To be precise, com.apple.medialibraryd don't run on iOS 8.1, com.apple.backboardd is okay.

if that's the case it should be pretty easy to adjust the list of required services to verify a sim is booted, based on the OS Version. This should be a simple PR, if anyone wants to put one up.

The underlying issue looks to be fixed with the PR. Considering this closed. Reopen if there are any further issues.


ci: Add GitHub Actions to build OpenXR-CTS for Android

Looks like the PR that adds GitHub Workflow firstly will not run.

Looks good, I presume it's based on my workflow for hello_xr. Just one little tweak and we can get this merged. Thanks so much!

Yep :). I copied from OpenXR-SDK-Source, and changed something for OpenXR-CTS.

Thanks.

Thank you!


popup pushed too far up

I'm having an issue where the popup moves up twice when the keyboard comes up. The first movement it goes to the correct place, but the second time it ends up like this:

I've just got through and updated ionic (v1.0.0rc to v1.2.4) and this plugin (v1.03 to v2). It was working fine prior to that. Any ideas?

Possibly related to #168


Javascript error in Admin interface running 'SHOW CONTINUOUS QUERIES'

When you run SHOW CONTINUOUS QUERIES you get a js error Uncaught TypeError: Cannot read property 'map' of undefined https://github.com/influxdb/influxdb/blob/master/shared/admin/js/admin.js#L312
Looking at the JSON response from the server the queries are returned but js error prevents them from being displayed.
version 0.9.3

It looks like in build <IP_ADDRESS> this is still an issue.  When I search for SHOW CONTINUOUS QUERIES I get the response Query returned no results!,  however when I view the response I see the continuous query was returned as json.
{
  "results": [
    {
      "series": [
        {
          "name": "_internal",
          "columns": [
            "name",
            "query"
          ]
        },
        {
          "name": "mod_stats",
          "columns": [
            "name",
            "query"
          ],
          "values": [
            [
              "gobal_request_counts",
              "CREATE CONTINUOUS QUERY gobal_request_counts ON mod_stats BEGIN SELECT count(value) INTO \"mod_stats\".\"default\".\"global.1m\" FROM \"mod_stats\".\"default\".atlas_response_global GROUP BY time(1m) END"
            ]
          ]
        }
      ]
    }
  ]
}

Confirmed that <IP_ADDRESS> Admin UI appears to do nothing when submitting SHOW CONTINUOUS QUERIES but the result is indeed returned, just never displayed.

I have the same problem using the nightly build: "0.9.5-nightly-ace0e03"
A call to the api works
curl -G http://<IP_ADDRESS>:8086/query --data-urlencode “db=db" --data-urlencode "q=show continuous queries”

This is fixed as part of https://github.com/influxdb/influxdb/pull/4375
A few show queries would return a row with no values and caused a js error. A check is now in place.

Fixed by #4375


Check out eGenix PyRun

What do you think about this?

eGenix PyRun™ is our open source, one file, no installation version of Python, making the distribution of a Python interpreter to run Python based scripts and applications to Unix based systems simple and efficient.
eGenix PyRun's executable only needs 11MB for Python 2 and 13MB for Python 3, but still supports most Python applications and scripts - and it can be compressed to just 3-4MB using upx, if needed.
(...)
Easy Installation: Simply drop the executable into a directory and start using it. No installers, no packagers and only a minimal set of dependencies needs to be provided.
Fully Relocatable: eGenix PyRun uses relative search paths, so you can easily move the installation around.
Compatible with setuptools, easy_install, pip: Great care was taken to make sure that PyRun can be used with setuptools et al. Please note that these tools are not designed to be relocatable.

https://www.egenix.com/products/python/PyRun/
I was able to bundle a PyQt5 app as an AppImage using it in no time:
https://github.com/esa/gr-opssat/pull/5/files#diff-354f30a63fb0907d4ad57269548329e3

Hello @probonopd . This looks interesting indeed. I wanted to test it, but unfortunately it doesn't seem to work on my side. Running the install script (on Debian 9) I get:
Downloading eGenix PyRun ...
Installing eGenix PyRun ...
Installing latest setuptools from PyPI ...
Found latest version 45.0.0
unzip -o setuptools-45.0.0.zip >> /dev/null 2>&1
Failed to install setuptools

In principle we could do similar things using the Python AppImages produced by this repo. E.g. extract an image, pip install some extra modules and re-package it, as discussed in this issue. But its a bit hacky for now.

@probonopd  I am closing this as well. This doesn't seem to be maintained anymore. The install script still fails on Debian and Python versions is stuck at 3.5. In addition it is actually quite easy to extract the latest Python runtimes from the manylinux Docker images as done in the new python-appimage project.

That is seriously cool. Did you consider to upstream those manylinux Python builds to the Python project?

@probonopd I just notified people from the manylinux project, right now. This might be of interest to them indeed and since I am using their builds it seems fair.
I am not really in touch with the Python community.  I am somehow lost. It must mean that I am too old school now :P I'll have a look tonight.


A little love...

Hi @keno. This package could use a little love. Here are some things that seem reasonable

polyfit function: issue #19
Common polynomials: issue #33 pull request #18
add docstrings (basically take from the Readme)
change / to div
devectorise (Pull request #17)

I can add/merge these if they seem like good additions. Some are outside the current scope of the package, but all seem reasonable, to me.

Hi @jverzani,
please go ahead and do whatever you think is reasonable. You should already have commit access I think. I'd also be happy to transfer the package to you if you want.

Hi @jverzani,
please go ahead and do whatever you think is reasonable. You should already have commit access I think. I'd also be happy to transfer the package to you if you want.

Thanks @keno. I pushed all but the one on common polynomials to master with f796a8c. That last one seems like it can be done easily enough by using the FastGaussQuadrature package, which generates the zeros of many families of orthogonal polynomials. Maybe best to leave as an example. As for transferring the package, I don't mind, but I really don't have much in mind to add to this, save maybe writing a notebook of example usage. Whatever works for you. I know you have bigger fish to fry.


feat: add metadata for IBC tokens

Description

Fixes: #14181
See: https://github.com/cosmos/cosmos-sdk/pull/14894
Commit Message / Changelog Entry
type: commit message

see the guidelines for commit messages. (view raw markdown for examples)

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md).
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/).
[ ] Added relevant godoc comments.
[ ] Provide a commit message to be used for the changelog entry in the PR description for review.
[ ] Re-reviewed Files changed in the Github PR explorer.
[ ] Review Codecov Report in the comment section below once CI passes.

Codecov Report

Merging #3104 (d0c2b83) into main (b69b827) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #3104      +/-   ##
==========================================
+ Coverage   78.44%   78.57%   +0.12%
==========================================
  Files         178      179       +1
  Lines       12351    12455     +104
==========================================
+ Hits         9689     9786      +97
- Misses       2237     2243       +6
- Partials      425      426       +1

Impacted Files
Coverage Δ

modules/apps/transfer/keeper/relay.go
91.25% <100.00%> (+0.62%)
:arrow_up:

...ules/apps/transfer/types/transfer_authorization.go
91.25% <0.00%> (ø)

modules/apps/transfer/types/codec.go
87.50% <0.00%> (+2.31%)
:arrow_up:

Sounds good. We can set MetaData in the initgenesis here after SetDenomTrace.

Yes, true, we should also do it in InitGenesis!
But wouldn't we also need a migration handler for chain upgrades? We could run this as an automatic migration handler by bumping the consensus version of transfer.

@colin-axner @crodriguezvega If there are any additional changes required please let me know. Else fell free to take up this task in a different PR and close this one if necesssary.

@colin-axner @crodriguezvega If there are any additional changes required please let me know. Else fell free to take up this task in a different PR and close this one if necesssary.

Thank you for all the work on this one, @0xmuralik. Yes, if there's any more changes we need, we can let you know or take over. We should also be able to push changes directly to your branch.

Thanks for the reviews, @colin-axner, @damiannolan and @chatton.