Use nobody

For kubernetes clusters which do not allow running images as root user this is required.
For all others it does not hurt though.

The StatefulSet that the Prometheus Operator generates currently uses a securityContext to set this:
  securityContext:
    fsGroup: 2000
    runAsNonRoot: true
    runAsUser: 1000

This also includes this container as far as I  can see.

It's the sidecar that creates the problem, not prometheus itself.
  prometheus-config-reloader:
    Container ID:
    Image:         quay.io/coreos/prometheus-config-reloader:v0.26.0
    Image ID:
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/prometheus-config-reloader
    Args:
      --log-format=logfmt
      --reload-url=http://localhost:9090/-/reload
      --config-file=/etc/prometheus/config/prometheus.yaml
      --config-envsubst-file=/etc/prometheus/config_out/prometheus.env.yaml
    State:          Waiting
      Reason:       CreateContainerConfigError
    Ready:          False
    Restart Count:  0
    Limits:
      cpu:     50m
      memory:  50Mi
    Requests:
      cpu:     50m
      memory:  50Mi
    Environment:
      POD_NAME:  prometheus-lxos-dev-prometheus-0 (v1:metadata.name)
    Mounts:
      /etc/prometheus/config from config (rw)
      /etc/prometheus/config_out from config-out (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from admin-token-2msh2 (ro)

Error:
Warning  Failed     5m6s (x5 over 5m32s)  kubelet, hostname  Error: container has runAsNonRoot and image will run as root
  Warning  Failed     5m6s (x5 over 5m34s)  kubelet, hostname  Error: container has runAsNonRoot and image has non-numeric user (nobody), cannot verify user is non-root

I just double checked, the securityContext also sets the user id for the sidecars.
But I'm fine with running prometheus-config-reloader as nobody by default, in case somebody doesn't have the context set.

I'm still running into this issue: https://github.com/helm/charts/issues/20793


6 Chrome Browser Opened for each Session

Hello Team,
I'm running the api on a server and I noticed for each session the api opens 6 chrome browsers which is huge when we have multiple sessions opened and consume a lot of ressource on server , is there any way to reduce number of chrome browsers opened ?
thanks

And open one browser per session.
What may be happening in your environment and old session that is without devices connected wanting to start the browser.
I recommend deleting old connections.

thanks for clarification, can you explain please how to get session without devices using wppconnect api.


Convert Script: helpers_add_interventions.py

File: https://github.com/InstituteforDiseaseModeling/emodpy-snt/blob/main/snt/helpers_add_interventions.py

Implemented and tested.


Provenance test Failure - Bug

Provenance test cases are failing in the latest version of Inferno. As per inferno agent and target values are missing in Provenance resources ... but all these values are available in the response
Note : All these test were passing in the previous version of inferno
Examples
Case 1 : For  Provenance/1000000000048701015  , i got  the following error message
Error :Provenance/1000000000048701015: Provenance: Provenance.agent: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance)
But agent value is available in the response .... Screen shot is attached

Case 2 :  For  Provenance/10000449003 i got the following error message
Error:Provenance/10000449003: Provenance: Provenance.target: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-provenance)
But agent value is available in the response .... Screen shot is attached

@Jammjammjamm if you can help us in this regard.
There are many scenarios that are failing in the new version and it was working fine in the previous one.

Thank you for raising this issue.
To further investigate this issue, could you provide the url to your test session? You can send to my email<EMAIL_ADDRESS>

@yunwwang
test session id : 4f686ea8-bfc9-45df-a985-b06ec150670d

@sidraperveen
I forgot to ask. Did you use locally installed Inferno? If so, I could not access your testing session.

Another question, is it onc-certification-g10-test-kit, or us-core-311-test-kit?

it is onc-certification-g10-test-kit

@yunwwang every time when we run a test we get different responses either failed or successful. The test cases which were in the green state in the previous test are failing in the current run test.
For example, screenshots are attached.
The missing alert which is given by this tool, against the references object is already there in the responses but still getting RED flags.

recent one

Previous ONE

@yunwwang we are witing for your response :)

@MTBC-GO-SQ23 This one is hard to figure out. Since you mentioned that "every time when we run a test we get different responses either failed or successful", I kindly suspect this is either an installation issue or a testing environment issue. Please check if all components are running correctly, especially the validators because this is the component validate resources.

@yunwwang  , there is no issue in installation . all resources are working fine .. apart from provenance ..
For example : for resource  Provenance/1000000000048701015
The below error is thrown by inferno , but the response already has agent
Provenance/1000000000048701015: Provenance: Provenance.agent: minimum required = 1, but only found 0

Please help us in this regard we got stuck

We are having trouble replicating your issue. Could you first check to make sure that the Validator Service that your system is talking to is set to v2.1.0?

@arscan  Please find attached

Thanks!
Could you send a full copy of a resource that is providing errors to<EMAIL_ADDRESS>assuming there is nothing sensitive in there (or mock up a minimal resource without anything sensitive in there that causes the error)?  Unfortunately I cannot debug this remotely without the full content of the resource to try to replicate it on our side.

Also, in addition to the above, could you please confirm that you just ran this simply by running this by doing setup.sh and run.sh, without altering the docker-compose.yml or .env?

@arscan  i have altered the .env .  (add Api key there)

Great, thanks -- but you did not modify this line, correct?
G10_VALIDATOR_URL=http://validator_service:4567

@arscan , yes correct
we didn't modify

Is there a chance that you are providing different content from when Provenance resources are sent back in the Patient _revIncludes search (test 4.2.07), vs. content sent back in the Provenance read test (test 4.30.02)?  You are showing the content sent back from the Provenance read test (test 4.30.02) but perhaps the Provenance resources sent from the various _revIncludes searches have less content?

@arscan everything is the same I don't think that's the issue though we checked that, but we can double-check.

@arscan
is the following can create a problem?
The right browser image is of 4.2.07 and the left one is of 4.3.01

You need to send back the full provenance resources in the Patient query with the _revInclude parameter (the right image) also -- not just the ID, type, and recorded date.  That resource doesn't contain agent or target elements, as indicated in the error messages.

@arscan let us made the changes. Will update you, after that.
Thanks for the help :)


Resolves #927 No Exception passed when no Internet connection with Threaded requests

When making a threaded Yfinance request without an Internet connection, an exception is not passed and locks up the running script.

#920 already resolved.


78 rebase

@fblundun - the release badge on the README is out of date

@alexanderdean I have updated the release badge.

Alright! Let's wait for the build to go green, then hopefully we are good to go

Got a red build, can we try again


Data transformation with LINQ

Proposed title of article
Data transformation with LINQ
Introduction paragraph (2-3 paragraphs):
LINQ (Language-Integrated Query) isn't just for retrieving data. It's also a useful tool for data transformation. You can utilize a source sequence as input and modify it in a variety of ways to create a new output sequence by using a LINQ query. Sorting and grouping can be used to change the sequence without changing the items.
The ability to generate new types is possibly the most powerful feature of LINQ queries. The select clause is used to accomplish this. You can, for example, do the following tasks:

Multiple input sequences are combined into a single output sequence with a new type.
Creating output sequences using only one or a few attributes from each element in the source sequence as the elements.
Creating output sequences with the outcomes of operations on the source data as their elements.
In the same query, these changes can be coupled in a variety of ways. A query's output sequence can also be utilized as the input sequence for another query.

Key takeaways:

Selecting a Subset of each Source Element
Joining Multiple Inputs into One Output Sequence
Transforming in-Memory Objects into XML.

References:
N/A

@miriam015
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

Great topic 🚀 , make sure it matches the following:

Adds value beyond what is in the official docs and what is covered in other blog sites.
To avoid potential article closure, it should not overlap with existing EngEd articles or incoming topic suggestions.

Please reference any relevant EngEd articles in yours and build a unique project - Approved. @miriam015

@miriam015
Just and FYI I will be closing this topic form just to help clear up the queue where possible - can be REOPENED at anytime when ready. 👍


Update dependency array on setPage

Changes:
Add the onChange function to the dependency array of the setPage callback to ensure it always reflects the latest state.
Impact:
This fix ensures that the pagination component accurately reflects the current state when triggering onChange.

Closes #
📝 Description
This fixes an issue where search parameters were not updated correctly when changing pages in the pagination component. The root cause was the missing onChange dependency in the setPage callback function, which prevented the correct state from being passed on page changes.
⛳ Current behavior (updates)
Currently, state is memoized during onChange after page changes, meaning that writing onChange handlers do not always contain current state. This was causing issues with hooks such as useSearchParams, where the search params would not be fully up-to-date
🚀 New behavior
Adding onChange to the callback dependencies ensures state is refreshed.
💣 Is this a breaking change (Yes/No):
Should not break anything.
📝 Additional Information

Summary by CodeRabbit

Refactor

Improved the responsiveness of the pagination feature by ensuring changes are effectively tracked and updated.

Fix to this open bug issue: https://github.com/nextui-org/nextui/issues/2417

why not onChangeActivePage?

I supposed they are equivalent in this context, one calls the other anyway - I have tested and that works as well.

@jesuzon setPage doesn't depend on onChange. I could set the active page without triggering onChange.

@jesuzon setPage doesn't depend on onChange. I could set the active page without triggering onChange.

Changing the active page the intended documented way (using setPage rather than changing the internal state directly using setActivePage which you technically can’t do directly I think) triggers an onChange by calling onChangeActivePage:
const onChangeActivePage = (newPage: number) => {     setActivePage(newPage);     onChange && onChange(newPage);   };
Do you want me to make a different commit adding onChangeActivePage instead of onChange? Either way, it should fix the issue I tagged above

Any updates on this merge?

Do you want me to make a different commit adding onChangeActivePage instead of onChange? Either way, it should fix the issue I tagged above

Yes please.

Closing - no longer applicable


Integrate bundle analyzer and update acorn dependencies

PR-Codex overview
This PR updates package versions, refactors imports for better organization, adjusts classNames in components, and optimizes page loading in a Next.js project.
Detailed summary

Updated package versions for acorn and acorn-walk
Refactored imports in DashboardHeader.tsx
Adjusted classNames in components for responsive design
Optimized page loading by removing Suspense and Spinner usage

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#2630  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jnsdls and the rest of your teammates on  Graphite


Search wasm-opt in PATH before trying to download the prebuilt binary

Fixes #869.

I made an alternative PR for the same issue - https://github.com/rustwasm/wasm-pack/pull/876 - which, I believe, is slightly better because it's a more generic fix that would help future tooling as well.

I made an alternative PR for the same issue - #876 - which, I believe, is slightly better because it's a more generic fix that would help future tooling as well.

Yes, it's better, so I'll close this PR. I'm looking forward to #876.


Expo Support

• Adds conditional initialization of the native event emitter
• Adds checks on public functions to make sure that the native bridge exists before attempting to call native methods
• This change makes it so that if the SDK is being used in an Expo project, the SDK will not initialize fully and any calls to OneSignal methods will go unused. Unfortunately, because of how Expo works in development, it is not possible to support Expo until the project has been detached. But until that point, adding OneSignal as a dependency to your project will no longer cause a crash

Hi @Nightsd01 . Just wondering why you try to add onesignal library on an Expo project in the first place
This is curiosity, because I do this too, and found a solution in userland to do that: https://expo.canny.io/feature-requests/p/ability-to-work-in-expo-client-after-detaching


Reference values

You can currently refer to another object, such as an Author, by entering its JSONPath: #/authors/0, or a string as #/strings/hello_world.
These references are formed in objects in the following format:
"points": {
        "login_welcome_header": {
            "$ref": "#/strings/hello"
        }
}

I am not sure if we should follow JSON-Schema format by requiring another object with $ref key, while we can simply do this:
"points": {
        "login_welcome_header": "#/strings/hello"
}

Closed. Following JSON-Schema format for wider implementation.


Performance issue

Recently, I used entitas_ff to play with flame, and I found out that It's expensive to use entitas_ff. According to the observatory, It seems to use too many cpu resource on single get. Is there any way to reduce cpu consumption?

abstract class Component {}
class AComp extends Component{}
class BComp extends Component{}
class CComp extends Component{}
class DComp extends Component{}
class EComp extends Component{}
class FComp extends Component{}
class GComp extends Component{}
class HComp extends Component{}
class IComp extends Component{}
class JComp extends Component{}

class MeasurementUtil {
  static final Map<String, DateTime> timemap = {};

  static void start(String timeName) {
    timemap[timeName] = DateTime.now();
  }

  static void end(String timeName) {
    if(timemap.containsKey(timeName)) {
      print("$timeName: ${DateTime.now().difference(timemap[timeName]).inMilliseconds} ms");
      timemap.remove(timeName);
    }
  }
}

void main() {
  Map<int, int> value = {
    0: 0,
    1: 1,
    2: 2,
    3: 3,
    4: 4,
    5: 5,
    6: 6,
    7: 7,
    8: 8,
    9: 9,
  };

  Map<String, int> sValue = {
    "0": 0,
    "1": 1,
    "2": 2,
    "3": 3,
    "4": 4,
    "5": 5,
    "6": 6,
    "7": 7,
    "8": 8,
    "9": 9,
  };
  Map<Type, int> tvalue = {
    AComp: 0,
    BComp: 1,
    CComp: 2,
    DComp: 3,
    EComp: 4,
    FComp: 5,
    GComp: 6,
    HComp: 7,
    IComp: 8,
    JComp: 9,
  };
  MeasurementUtil.start("int");
  for(int i = 0; i < 1000000;i++) {
    int c = value[0];
  }
  MeasurementUtil.end("int");

  MeasurementUtil.start("string");
  for(int i = 0; i < 1000000;i++) {
    int c = sValue[0];
  }
  MeasurementUtil.end("string");

  MeasurementUtil.start("type");
  for(int i = 0; i < 1000000;i++) {
    int c = tvalue[GComp];
  }
  MeasurementUtil.end("type");
}

int: 12 ms
string: 9 ms
type: 59 ms

I'm not sure how to optimze, but seems this is the issue of using Type as key.


UnicodeEncodeError when using non-ascii characters in speech response

If you use Alexa with the German language, not all responses will be in ASCII.
statement(u"Was kann ich für dich tun?")
This will fail with a UnicodeEncodeError.
Traceback (most recent call last):
File "/home/joerg/py/env/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/joerg/py/env/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/joerg/py/env/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/joerg/py/env/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/joerg/py/env/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/joerg/py/env/src/flask-ask/flask_ask/core.py", line 597, in _flask_view_func
result = self._launch_view_func()
File "alexa.py", line 11, in launch
return statement(u"Hallo, ich bin die Pustel. Was kann ich für dich tun?")
File "/home/joerg/py/env/src/flask-ask/flask_ask/models.py", line 115, in init
super(statement, self).init(speech)
File "/home/joerg/py/env/src/flask-ask/flask_ask/models.py", line 54, in init
'outputSpeech': _output_speech(speech)
File "/home/joerg/py/env/src/flask-ask/flask_ask/models.py", line 254, in _output_speech
xmldoc = ElementTree.fromstring(speech)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1651, in feed
self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 41: ordinal not in range(128)
The error happens when flask-ask tries to check if it is XML with etree. We need to catch UnicodeEncodeError here as well!
I have attached a patch that fixes the problem
flask-ask-unicode.patch.txt
.
Thanks,
Jörg

Thanks, @joerg86. I'll test the patch and confirm it works across Python versions.


No Modbus slave station non-stop reset

BUG REPORTS - No Modbus slave station non-stop reset
ModbusMaster version
[2.0.1]
Arduino IDE version
[1.8.9]
Arduino Hardware
[wemos D1R1 (ESP8266)]
Platform Details
[VSCODE +PlatformIO]
The solution:
Add yield() after line 747 of the modbusmaster.cpp file;

I have the same problem same IDE and Version  , [wemos D1R1 (ESP8266)] just restarts after the first pooling .
I'm using the Hardware serial and have tried your solution " Add yield() after line 747 of the modbusmaster.cpp file;" but not fixed the problem .
Can you be more explicit where the " yield();  " needs to be inserted please .
Thank you .


Feature Request

Could this be updated to allow snippets to be organized as multiple notes inside of a particular directory?
i.e.
Snippets/
Snippets1.md (one or more snippets)
Snippets2.md (one or more snippets)
If someone has a lot of snippets, keeping everything in a single file is kind of counter to the idea of Obsidian.
In any case, great work!  Love the plugin!

@rendalu Thanks for the suggestion.
Feature has been added in v1.0.1. Update and check it out.


Experiment with conditional notrace logic

I'm playing around with how we can make trace-dropping logic conditional on the trace type. The main change here is in tracer.py:primitive.
We could tweak this implementation a bit to get back the drop-parent-on-zero-vjp behavior: basically in primitive we could filter the parents/argnums lists according to some trace-type-specific side information (like the current notrace_primitives[node_constructor] set), then only create a new box if the parents list is nonempty.
There are a couple unrelated changes here in builtins.py to do with adding methods to those Box types.
I ran asv continuous dev-1.2 experiment-conditional-notrace and didn't see any significant changes. (I ran it twice and each time there were a couple of minor changes, but they were different across the two runs, so I suspect there's just some variance in those benchmarks.)
Any thoughts on the implementation? Should I try out the argnum-filtering version?

This implementation looks good to me, I can't see why there should be any significant hit to performance. Re: filtering, is the purpose of that to support functions which have zero derivatives with respect to some, but not all, of their arguments? Do you think it's possible to do it without hitting performance?
Most zero derivative arguments to multi-argument functions seem to be used as switches of some kind, like the first argument to np.where. For np.where you could workaround by calling say np.nonzero on the arg before passing it to where, which would save the potential global performance hit caused by filtering. As a last resort you could call getval, though I know we're trying to avoid that.

Re: filtering, yes that's exactly the idea. We actually have that behavior in master as you may know. It's a nice little optimization but I'm not sure how relevant it is in practice. It may be the sort of optimization that adds some overhead if implemented in Python, but if we push this logic down into C then the overhead could disappear.
Good point about having user-level ways to get around it! That makes the feature seem even more optional to me, since if there's a case where it's important a user can just make a minor change to their code.
Thanks for the review. I'm going to merge this, and let's punt on the filtering version until it seems important.


Put correct nix-env command in README.md

Hi, I stumbled with this yesterday when trying this project out, thankfully @turboMaCk helped me out to install it correctly and also reminded me that a new version with the uglify-js fix needs to be published, thanks for this project! 😉

@domenkozar if you want I can update nixpkgs to point to master but it might be better to release new version including the tag in git etc.

Thank you!
How come that existing the instructions don't work?

There are two ways to install stuff via nix-env

Install by derivation name:

nix-env -i elm2nix

This will work becuse name is elm2nix

Install by attribute

nix-env -iA nixos.elm2nix

or
nix-env -iA nixpkgs.elm2nix

This also works becaus there is elm2nix attribute in nixos/nixpkgs.
However
nix-env -iA elm2nix

will fail because there is no channel named elm2nix.
error: attribute 'elm2nix' in selection path 'elm2nix' not found

I've forgot how channels work :)

Frankly I made same mistake several times this year as I'm pushing folks to try nix. I myself use quite simple & quite monolithic approach of putting almost everything into my nixos config so I rarely use nix-env. So I knew right away what's up only because I made the same mistake myself. Maybe this can can make a list of special cases for improved error messages? If we would look that no commonly used name is present in attribute path we can print nicer message like "are you sure you don't forget to prefix by channel" type of message.

I agree, I'm gathering evidence why channels should be avoided in https://github.com/nix-dot-dev/nix.dev/issues/16#issuecomment-713701415


Fix withdrawalsRoot

Description:
This PR fix the withdrawalsRoot value setting it to 0x0000000000000000000000000000000000000000000000000000000000000000.
That parameter is not a QUANTITY but a DATA of 32 Bytes, so it cannot be 0x0 or some libraries, i.e., ethers-rs fail to parse the JSON result of operations related to blocks, like eth_getBlockByNumber, eth_getBlockByHash, etc.
Related issue(s):
N/A
Notes for reviewer:
I discovered the problem while playing with ethers-rs. This is an example of the error, fixed after updating the withdrawalsRoot parameter:
Error: MiddlewareError { e: MiddlewareError(JsonRpcClientError(SerdeJson { err: Error("invalid length 1, expected a (both 0x-prefixed or not) hex string or byte array containing 32 bytes", line: 1, column: 1266), text: "{\"timestamp\":\"0x651f66ec\",\"difficulty\":\"0x0\",\"extraData\":\"0x\",\"gasLimit\":\"0xe4e1c0\",\"baseFeePerGas\":\"0x19e70448800\",\"gasUsed\":\"0x0\",\"logsBloom\":\"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\"miner\":\"0x0000000000000000000000000000000000000000\",\"mixHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"nonce\":\"0x0000000000000000\",\"receiptsRoot\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"sha3Uncles\":\"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347\",\"size\":\"0x637\",\"stateRoot\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"totalDifficulty\":\"0x0\",\"transactions\":[],\"transactionsRoot\":\"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\",\"uncles\":[],\"withdrawals\":[],\"withdrawalsRoot\":\"0x0\",\"number\":\"0x2cef22\",\"hash\":\"0x236a96bc5e845a17460c67623336f39608074119acc4b80ea15a0e021ecd36c4\",\"parentHash\":\"0x07a4fa76a187fa28f86a521eb567ea41110290079989c931d0cb675cad38300f\"}" })) }

Checklist

[x] Documented (Code comments, README, etc.)
[x] Tested (unit, integration, etc.)

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

Comparison is base (1b44c75) 76.71% compared to head (c85fefb) 76.71%.

:exclamation: Current head c85fefb differs from pull request most recent head 37f9907. Consider uploading reports for the commit 37f9907 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1797   +/-   ##
=======================================
  Coverage   76.71%   76.71%
=======================================
  Files          39       39
  Lines        2933     2933
  Branches      584      584
=======================================
  Hits         2250     2250
  Misses        504      504
  Partials      179      179

Files
Coverage Δ

packages/relay/src/lib/model.ts
83.67% <100.00%> (ø)

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

Thank you for the contribution, I believe you are correct, withdrawalsRoot needs to be 32bytes and is actualy DATA :)


FaaS - claim/harvest tokens when adding

If you have an existing stake and are earning rewards, make sure to harvest those rewards if a user adds to his/her stake.

MTGYFaasToken Contract has been updated


ResolverFully doesn't resolve arrays recursively

The logic in ResolverFully seems to be flawed:
https://github.com/swagger-api/swagger-parser/blob/a4a06670d805997f8f8b7e51b6104729118ae697/modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util/ResolverFully.java#L301-L305
If array's items schema is a reference, it's resolved. If it isn't, then nothing is done (we're getting items from the array, then setting them back. Hmm…)
But the case when array's items schema is an array, object or a composed schema, which contain references, is unhandled; those references are never resolved.
I propose removing this check and replacing it with arrayModel.setItems(resolveSchema(arrayModel.getItems())), which will take care of resolving the references.

Hi, @exlevan can you please send us a PR with a test case where you show us how resolverFully it's failing now, and how it can be improved? Thanks.


Exposed the imageView

Enables neat things like animating the image like this:
@weakify(content1);
content1.viewWillAppearBlock = ^{
    @strongify(content1);
    content1.imageView.animationImages = @[[UIImage imageNamed:@"1"], [UIImage imageNamed:@"2"], [UIImage imageNamed:@"3"]];
    content1.imageView.animationDuration = 0.3f;
    [content1.imageView startAnimating];
};

Very cool - any chance you want to revise this to also expose the other components, the action button, labels, etc? I think some cool stuff could be done like that.

Looks like this was lost in the shuffle and now has some conflicts. I'd still be willing to merge it if you resolved them and updated the PR.

Feel free to reopen this if you get around to fixing the conflicts.


How to use multi bots ?

I'm going to use multi bots but it doesn't work.
...

$c=1;
while (true) {

 $bot = new Soroush\Client( $tokens[$c] );

 $messages = $bot->getMessages();

 foreach ($messages as $message) {

 $data = $message->getData();

...

It stops at $tokens[1] and doesn't go to the next number.
I really need this multi mode bots.
So how can I run it correctly ?

:-D
$c=$c+1

because c variable is 1 forever? (at least in above code!) and also you must check c be less-equal than tokens max index try this:
$c=0
while ($c<count($tokens)) {
$c=$c+1
// whatever

But notice I don't know any thing about php language. I'm a C# and python programmer.

Thank you
But the solution is not like that in this framework
However I didn't look for the solution anymore


Enable ruff line too long check

It is disabled by default because ruff-format makes a best effort attempt to satisfy it and may fail otherwise.
It should fine to enable it as it was with flake8 (the default is 88).
See https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules for more information.

@sbidoul
Do you think this change can be solve this log on this PR https://github.com/Tecnativa/doodba-copier-template/pull/425


Unable to start a stand-alone EXASOL container

Docker command:
docker run --name exasoldb -p <IP_ADDRESS>:8899:8888 --detach --privileged --stop-timeout 120  exasol/docker-db:latest
Following the documentation I get the following error
[2018-05-30 07:21:30] stage3: Run service databases Traceback (most recent call last):   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/libexec/exainit.py", line 79, in <module>     main(sys.argv)   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/libexec/exainit.py", line 71, in main     run(args[1])   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/libexec/exainit.py", line 45, in run     serv.run_result = serv.run()   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/exainit/tasks/database.py", line 167, in run     self.start(db)   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/exainit/tasks/database.py", line 80, in <lambda>     return lambda db, *a, **kw: self._wrappercall(getattr(db, name), *a, **kw)   File "/usr/opt/EXASuite-6/EXAClusterOS-6.0.8/exainit/tasks/database.py", line 86, in _wrappercall     raise RuntimeError("Could not call function %s(*%s, **%s): %s,%s" % (repr(func), repr(args), repr(kw), repr(ret), repr(val))) RuntimeError: Could not call function <built-in method start of libDWAd_py.exa_db object at 0x7ff240208378>(*(), **{}): 1,'Could not start database: system does not have enough active nodes or DWAd was not able to create startup parameters for system' [2018-05-30 07:21:31] root child 33 returned with state 1.

Hi!
Please provide logfiles as described in the README section "Reporting bugs". We can't analyze this issue without them.

I have the same issue. I've just tried to start brand new version of Exasol in container:
docker run --name exasoldb -p <IP_ADDRESS>:8899:8888 --detach --privileged --stop-timeout 120  exasol/docker-db:6.0.10-d1
.. and starting Exasol in the container was failed with Could not start database: system does not have enough active nodes or DWAd was not able to create startup parameters for system
Please find my system details bellow:
11:19 $ docker version
Client:
 Version:      18.03.1-ce
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   9ee9f40
 Built:        Thu Apr 26 07:13:02 2018
 OS/Arch:      darwin/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.03.1-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.5
  Git commit:   9ee9f40
  Built:        Thu Apr 26 07:22:38 2018
  OS/Arch:      linux/amd64
  Experimental: true

docker-inspect.txt
exa-etc-logs.zip
exasol.log

Sorry guys, but we currently can't reproduce this issue :-( We executed your command on multiple machines with multiple Docker versions and it worked as expected... Can you provide some more information about your host systems? Do you use VMs or AWS instances? How many cores and RAM do they have (use cat /proc/meminfo /proc/cpuinfo to get this information)?
Also, did you try to use our exadt tool?

In my case I did a reset for Docker for Mac and didn't figured out that it was also changed memory settings. There was only 2Gb allocated for the VM.
I use Docker for Mac which is using on MacBook Pro which in it turn uses hyperkit based VM under the hood.
After changing memory settings back to 7Gb I was able to start container with Exasol

That's good news @an2deg :+1:  2 GiB are indeed not enough for an EXASOL container because that's already the min. requirement for the DB instance in the container. We recommend to reserve at least 4 GiB for each EXASOL container.
We will improve the error handling / message for this case in the future. Thanks for your report!
@marconae : did you also solve your issue by increasing mem size?


Save should not count when it still results in a goal

This happens when a keeper saves a shot but it still goes in. It will count as a save and also shown in the replay.  The simple solution is just that it should not count as a save if the ball still goes in.
This leads that in the replay it will almost show both of the same moments. But I post that in another ticket because it's not only for this problem.

Closing this since it doesn't happen anymore. Also almost same issue as in #220.


.emacs.d/bin/doom: line 7: [: : integer expression expected

What actually happened?
execute doom sync
.emacs.d/bin/doom: line 7: [: : integer expression expected
System information:

((system
  (type . darwin)
  (config . "x86_64-apple-darwin19.6.0")
  (shell . "/bin/zsh")
  (uname . "Darwin 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64")
  (path "/usr/local/opt/coreutils/libexec/gnubin" "/usr/local/opt/gawk/libexec/gnubin" "/usr/local/opt/findutils/libexec/gnubin" "/usr/local/opt/gnu-sed/libexec/gnubin" "/usr/local/opt/gnu-tar/libexec/gnubin" "/usr/local/opt/gnu-indent/libexec/gnubin" "/usr/local/opt/openssl/bin" "~/.go/bin" "~/.nvm/versions/node/v14.3.0/bin" "~/.cargo/bin" "~/.jenv/shims" "~/.jenv/bin" "~/.emacs.d/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Library/TeX/texbin" "/Library/Apple/usr/bin" "~/.antigen/bundles/robbyrussell/oh-my-zsh/lib" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/encode64" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/urltools" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/fzf" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/brew" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/osx" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/cargo" "~/.antigen/bundles/djui/alias-tips" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/sbt" "~/.antigen/bundles/zdharma/fast-syntax-highlighting" "~/.antigen/bundles/zsh-users/zsh-autosuggestions" "~/.antigen/bundles/hlissner/zsh-autopair" "~/.antigen/bundles/romkatv/powerlevel10k" "/usr/local/Cellar/emacs-plus@28/28.0.50/libexec/emacs/28.0.50/x86_64-apple-darwin19.6.0"))
 (emacs
  (dir . "~/.emacs.d/")
  (version . "28.0.50")
  (build . "Aug 24, 2020")
  (buildopts . "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp<EMAIL_ADDRESS><EMAIL_ADDRESS>--with-xml2 --with-gnutls --without-dbus --without-imagemagick --with-json --with-modules --with-rsvg --with-xwidgets --with-ns --disable-ns-self-contained")
  (features . "JPEG TIFF PNG RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS XWIDGETS JSON PDUMPER LCMS2")
  (traits batch server-running))
 (doom
  (dir . "~/.doom.d/")
  (version . "2.0.9")
  (build . "HEAD -> develop, origin/develop ce2cabf07 2020-08-25 06:07:47 -0400")
  (elc-files . 0)
  (modules :completion (company +childframe) (ivy +prescient +fuzzy +childframe +icons) :ui doom doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter window-select workspaces :editor file-templates fold format multiple-cursors snippets word-wrap :emacs dired electric (ibuffer +icons) undo vc :term vterm :checkers (syntax +childframe) (spell +aspell) :tools (debugger +lsp) docker editorconfig (eval +overlay) lookup (lsp +peek) magit make pdf :os macos :lang data emacs-lisp (go +lsp) json (java +lsp) (javascript +lsp) (markdown +grip) (org +dragndrop +hugo +pandoc +present +pomodoro +journal +pretty) plantuml rest (scala +lsp) sh (web +lsp) yaml :config (default +bindings +smartparens) :my (&user chinese +childframe) (&user ui) (&user editor) (&user calendar) (&user dired) (&user magit) (&user translate +childframe) (&user tools) (&user debugger) (&user lsp) (&user markdown) (&user plantuml) (&user protobuf) (&user go) (&user java +google-java-format) (&user scala) (&user sql) (&user keybindings))
  (packages "n/a")
  (unpin
   (:ui doom modeline)
   (:tools debugger lsp magit)
   (:lang java))
  (elpa "n/a")))

If you could grab a backtrace with doom -d sync that could be helpful.

This looks like a duplicate of #3831.

This error was introduced by the 63a03848a3e026498c2e25348b2288ccca2f7ad8 commit.
Lines:
:; $EMACS --no-site-file --script "$0" -- "$@" || __DOOMCODE=$?             # replaced ; with ||
:; [ "$__DOOMCODE" -eq 128 ] && { "$__DOOMPOST" "$0" "$@"; __DOOMCODE=$?; }

__DOOMCODE stays undefined if doom script returned 0. Not sure why ; was switched with ||.
Revert it, or use ${__DOOMCODE:-0}?

Duplicate of #3831. Fixed in 239516a.

__DOOMCODE stays undefined if doom script returned 0. Not sure why ; was switched with ||.

It was switched because /bin/sh implies set -e on most posix systems. So if $EMACS --no-site-file --script "$0" -- "$@" returns a non-zero exit code, the script is aborted, causing issues like #3746.


Does AWSSDK support multiple regions using SDK without having to pass credentials directly to client?

Does the SDK support the ability to connect to multiple regions in .NET CORE without having to create a client and explicitly pass an access key and secret key?
Expected Behavior

To connect to one region by specifying the profile name in the appsettings.json but also ad hock use the same credentials to connect to a different region connect to resources using the SDK without having to pass the access key and secret key in the code.
Current Behavior

As far as I'm aware I have to create a new client and pass the credentials to it explicitly.
Possible Solution

To automatically use the credentials that area already configured in the Startup.cs from the profile set in my appsettings.json file without but connect to a different region.
Steps to Reproduce (for bugs)

I can see from the documentation that I can easily get a service (such as the AmazonSimpleEmailService) by registering it in my ConfigureServices() as shown in the documentation. The documentation also suggests that you can create your own client and pass in a region, this is what I am currently trying to do:
appsettings.json:
"AWS": {
    "Profile": "development",
    "Region": "us-east-1"
}

My implementation:
public class SendEmailService
{
    public async Task SendEmail()
    {
            // Set the email destination options
            var destination = new Destination
            {
                ToAddresses = new List<string> {<EMAIL_ADDRESS>}
            };

            // Set the email subject
            var mailSubject = new Content("Email subject");

            // Set the email body
            var mailContent = new Content("Email body");
            var mailBody = new Body();

            // Set HTML body of the email
            mailBody.Html = "
Hello
;

            var mailMessage = new Message(mailSubject, mailBody);

            // Get an instance of the AWS SES client for sending emails
            var client = new AmazonSimpleEmailServiceClient(RegionEndpoint.EUWest1);

            // Attempt to send the email
            await client.SendEmailAsync(emailRequest);
    }
}

Context

Code that talks to us-east-1 appears to work just fine. For instance I can execute lambda expressions using the injected versions of the clients (IAmazonLambda) and preform other actions absolutely fine. However, when I try to send an email using this implementation where I new up a client that points to a different region it fails with the following exception:
> System.OperationCanceledException: **The operation was canceled.**
>    at System.Net.Http.HttpClient.HandleFinishSendAsyncError(Exception e, CancellationTokenSource cts)
>    at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
>    at System.Net.Http.HttpClient.GetStringAsyncCore(Task`1 getTask)
>    at Amazon.Runtime.Internal.Util.AsyncHelpers.<>c__DisplayClass1_1`1.<<RunSync>b__0>d.MoveNext() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Internal\Util\_mobile\AsyncHelpers.cs:line 74
> --- End of stack trace from previous location where exception was thrown ---
>    at Amazon.Runtime.Internal.Util.AsyncHelpers.ExclusiveSynchronizationContext.BeginMessageLoop() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Internal\Util\_mobile\AsyncHelpers.cs:line 139
>    at Amazon.Runtime.Internal.Util.AsyncHelpers.RunSync[T](Func`1 task) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Internal\Util\_mobile\AsyncHelpers.cs:line 87
>    at Amazon.Util.AWSSDKUtils.DownloadStringContent(Uri uri, TimeSpan timeout, IWebProxy proxy) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Util\AWSSDKUtils.cs:line 1008
>    at Amazon.Util.EC2InstanceMetadata.GetItems(String relativeOrAbsolutePath, Int32 tries, Boolean slurp) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Util\_bcl+netstandard\EC2InstanceMetadata.cs:line 517
>    at Amazon.Util.EC2InstanceMetadata.GetItems(String path) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Util\_bcl+netstandard\EC2InstanceMetadata.cs:line 443
>    at Amazon.Util.EC2InstanceMetadata.get_IAMSecurityCredentials() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Util\_bcl+netstandard\EC2InstanceMetadata.cs:line 311
>    at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.FetchCredentials() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\_bcl+netstandard\DefaultInstanceProfileAWSCredentials.cs:line 142
>    at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.GetCredentials() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\_bcl+netstandard\DefaultInstanceProfileAWSCredentials.cs:line 88
>    at Amazon.Runtime.DefaultInstanceProfileAWSCredentials.GetCredentialsAsync() in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Credentials\_bcl+netstandard\DefaultInstanceProfileAWSCredentials.cs:line 106
>    at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\CredentialsRetriever.cs:line 92
>    at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\RetryHandler\RetryHandler.cs:line 122
>    at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\RetryHandler\RetryHandler.cs:line 138
>    at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:line 61
>    at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:line 61
>    at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\ErrorCallbackHandler.cs:line 53
>    at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext) in D:\JenkinsWorkspaces\trebuchet-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\MetricsHandler.cs:line 65
>    at Core.Services.SendEmailService.SendEmail(String emailFrom, String emailTo, String emailSubject, String emailBody, Boolean htmlEmail, String replyToAddress) in E:\*******\www\*********\Services\SendEmailService.cs:line 78

The documentation implies, because it shows the use of a client and a region, that it would still use the same credentials. I have found a few people with the same problem and their answer is along the lines of "The client wasn't receiving their credentials". So I can change my code to the following to make it work:
var client = new AmazonSimpleEmailServiceClient(new BasicAWSCredentials("AQSADLKFJASDLKAFSDLDSK", "lkasdflfdlkjLKjlkjLKJLKJHHGGHK+khjgff"), RegionEndpoint.EUWest1); // not real credentials
But this doesn't seem right. I shouldn't have to put my real credentials into my project to make it work. I expected that creating a new client in the context of my project would use the same credentials that I already use successfully throughout my application, but that it would just communicate with another AWS region. Is this what it is supposed to do as the constructor has an overload for just region and no need for AWSCredentials?
Your Environment

AWSSDK.Core version used:
None as far as I'm aware...
Service assembly and version used:
Operating System and version:
Windows 10
Visual Studio version:
Rider (not VS)
Targeted .NET platform:
.NET Core 2.2

.NET Core Info

.NET Core version used for development:
AWSSDK.SimpleEmail - v<IP_ADDRESS>
AWSSDK.Lambda - v<IP_ADDRESS>
AWSSDK.Extensions.NETCore.Setup - v<IP_ADDRESS>
.NET Core version installed in the environment where application runs:
Microsoft.NETCore.App v2.2.0
Output of dotnet --info:

.NET Core SDK (reflecting any global.json):
 Version:   2.2.103
 Commit:    8edbc2570a

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.2.103\

Host (useful for support):
  Version: 2.2.1
  Commit:  878dd11e62

.NET Core SDKs installed:
  2.1.503 [C:\Program Files\dotnet\sdk]
  2.1.504 [C:\Program Files\dotnet\sdk]
  2.2.103 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Contents of project.json/project.csproj:

I've just installed Fiddler hoping that I would be able to work out a request that is failing as a result of my attempt to send email using Amazon SES.
It looks like the code is attempting to make a call to the EC2 instance meta data end point:
GET http://<IP_ADDRESS>/latest/meta-data/iam/security-credentials HTTP/1.1
User-Agent: aws-sdk-dotnet-coreclr/ aws-sdk-dotnet-core/<IP_ADDRESS> .NET_Core/4.6.27207.03 OS/Microsoft_Windows_10.0.17763
Host: <IP_ADDRESS>
This is resulting in a 502 Bad Gateway... which it would do, because I'm not running it on EC2, I'm running it on my local machine.
Why would the SDK be trying to access the EC2 metadata end point?  Is it simply because I'm not passing AWSCredentials to the client?

Hi @coultonluke, if you haven't done so already, please try following a set of the steps in this setting up credentials documentation.  In your appsettings.json, you specify that you are referring to a profile named 'development' in your .aws/credentials file, so you will need to verify that you have a matching valid profile there.  You should be able to override the region.  Let me know if your code continues to not work for you after you have verified that your credential profiles are set up.

@klaytaybai Thanks for taking the time to get back to me on this.
I have a credentials file with a section called 'development' with my app key and secret in there. I used the AWS Windows cli (aws configure) to set these values. I know that these settings are being picked up correctly because it works for any calls where I use IoC to resolve a service as per the documentation but not when I create my own AmazonSimpleEmailServiceClient and pass in a different region.
For instance, if I resolve IAmazonSimpleEmailService I can see the locals window the _credentials property has my app key and secret as shown in the credentials file.

It's definitely working for the services that are injected into the services of my application. I can see the credentials in the resolved client as shown in this screenshot:

So this works:
public void ConfigureServices(IServiceCollection services)
{
    // AWS Config
    services.AddDefaultAWSOptions(Configuration.GetAWSOptions());
    services.AddAWSService<IAmazonLambda>();
    services.AddAWSService<IAmazonS3>();
    services.AddAWSService<IAmazonSimpleEmailService>();
}

// Attempt to send the email
await this.amazonSimpleEmailService.SendEmailAsync(emailRequest);

But this doesn't in the same method...
// Get an instance of the AWS SES client for sending emails
var client = new AmazonSimpleEmailServiceClient(RegionEndpoint.EUWest1);

// Attempt to send the email
await client.SendEmailAsync(emailRequest);

Hi @coultonluke, I think your best solution would be to either set a default profile and use those credentials in place of your "development" profile or to set the AWS_PROFILE environment variable to "development".  If you do either of those options, you should be able to get your code to work as is.
If you have configured other options other than the region and credentials, you should try to reuse your existing config.  The easiest way to do this is to reuse your old client but modify the configuration to use the new RegionEndpoint.
           ((AmazonSimpleEmailServiceConfig)this.amazonSimpleEmailService.Config).RegionEndpoint = RegionEndpoint.EUWest1;


Revert "Remove 1.23 prowjobs (#526)"

This reverts commit 90d5f88ee7f1e2ec5940a3b4ae1cac1991cab845.
Description of changes:
Revert https://github.com/aws/eks-distro-prow-jobs/pull/526
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/lgtm


Replace Criterion testing framework with GoogleTest

GoogleTest is a C++ native unit testing library that is battle-hardened and stable
It offers much features over criterion, such as easy cross-platform support.
Documentation at https://google.github.io/googletest/reference/testing.html
Resolves #22

@AndreasLrx Do you know how to fix it?

@MisterPeModder  Not for the moment, I will look into it later.

LGTM, blocking the PR until windows is fixed, ping me and i'll approve it when needed

Or maybe @ZQUEMA should block the pr instead


Convert manage CheckIn controller to API only mode

This controller can be removed as all RSVP functionality lives within the questionnaire controller.


removed mico files

@sjavdani already ported these files over to adapy, so I will merge this once Travis is happy.


URL shortened when --flow-detail 1

Problem Description
mitmdump --help reads:
  --flow-detail LEVEL   The display detail level for flows in mitmdump: 0 (almost quiet) to 3 (very verbose). 0: shortened request URL, response status code, WebSocket
                        and TCP message notifications. 1: full request URL with response status code 2: 1 + HTTP headers 3: 2 + truncated response content, content of
                        WebSocket and TCP messages 4: 3 + nothing is truncated

However, the request URLs are shortened like https://firebaselogging-pa.googleapis.com/v1/firelog/le… when specifying --flow-detail 1.
Steps to reproduce the behavior:

Dump flows with w command in mitmproxy
mitmdump --no-server --flow-detail 1 -r mitmproxy-flows.dump

System Information
Mitmproxy: 7.0.4
Python:    3.9.7
OpenSSL:   OpenSSL 1.1.1l  24 Aug 2021
Platform:  macOS-11.6-x86_64-i386-64bit

Good catch, thanks! Option description and implementation are clearly out of sync here, which we should fix. If anyone wants to tackle this, the relevant code is at https://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/addons/dumper.py 😃
Somewhat related, -q sets flow_detail=0 and -v sets flow_detail=2 unless overridden. :)
https://github.com/mitmproxy/mitmproxy/blob/7dbd171887ffd1f5eb2f73033133c0b0370ad984/mitmproxy/tools/main.py#L35-L42

I am new to open source I would like to contribute. Can you tell me what's the issue?

Proposed PR: https://github.com/mitmproxy/mitmproxy/pull/4837

hey @aoyama-val, would you mind assigning the issue to me?
Also, can you add Hacktoberfest to the project topic or hacktoberfest-accepted to the PR label
else this won't be counted in hacktobefest.
Thanks!


Error training model

Good day!
I am trying to run cell2location using the integrated pipeline with scvi. When I reached the step to train the model on the ST data (cell2location.models.Cell2location), I get the error below:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/scratch/11488722/ipykernel_67679/1717331508.py in <module>
      1 # create and train the model
----> 2 mod = cell2location.models.Cell2location(
      3     adata_vis, cell_state_df=inf_aver,
      4     # the expected average cell abundance: tissue-dependent
      5     # hyper-prior which can be estimated from paired histology:

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/cell2location/models/_cell2location_model.py in __init__(self, adata, cell_state_df, model_class, detection_mean_per_sample, detection_mean_correction, **model_kwargs)
    115         )
    116         self._model_summary_string = f'cell2location model with the following params: \nn_factors: {self.n_factors_} \nn_batch: {self.summary_stats["n_batch"]} '
--> 117         self.init_params_ = self._get_init_params(deepcopy(locals()))
    118
    119     def train(

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    151             copier = getattr(x, "__deepcopy__", None)
    152             if copier is not None:
--> 153                 y = copier(memo)
    154             else:
    155                 reductor = dispatch_table.get(cls)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/anndata/_core/views.py in __deepcopy__(self, memo)
     55     # TODO: This makes `deepcopy(obj)` return `obj._view_args.parent._adata_ref`, fix it
     56     def __deepcopy__(self, memo):
---> 57         parent, attrname, keys = self._view_args
     58         return deepcopy(getattr(parent._adata_ref, attrname))
     59

TypeError: cannot unpack non-iterable NoneType object

What do you think the problem might be?
Thanks in advance!

Could you please show which arguments you are providing to cell2location.models.Cell2location and how you setup anndata?

Hello @vitkl,
I used the following code:
mod = cell2location.models.Cell2location(
    adata_vis, cell_state_df=inf_aver,
    N_cells_per_location=30,
    detection_alpha=200
)

For setting up anndata I used scvi.data.setup_anndata(adata=adata_vis, batch_key="in_tissue"). The output of scvi.data.view_anndata_setup(adata_vis) looks like

:
Hope this helps to find the source of the issue. Thanks!

Hi Cristian
Unfortunately this doesn't help. I think the error means that there's an
issue with copying some part of the anndata object. Could you please try
deepcopy.deepcopy(adata) on your anndata object?
On Sun, 19 Sep 2021, 09:43 Cristian, @.***> wrote:

Hello @vitkl https://github.com/vitkl,
I used the following code:
mod = cell2location.models.Cell2location(
adata_vis, cell_state_df=inf_aver,
N_cells_per_location=30,
detection_alpha=200
)
For setting up anndata I used scvi.data.setup_anndata(adata=adata_vis,
batch_key="in_tissue"). The output of
scvi.data.view_anndata_setup(adata_vis) looks like
[image: Screenshot 2021-09-19 at 10 42 41]
https://user-images.githubusercontent.com/37718031/133921143-a6ae8c8a-4144-4ec9-9d37-d08906c5f2e6.png
:
Hope this helps to find the source of the issue. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BayraktarLab/cell2location/issues/66#issuecomment-922437897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFMFTV2ZI7XUIZMXBFEQW3TUCWPDHANCNFSM5ECXUKYA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

And figure out how to change the object to make the copying work.
The issue could also be in pandas version. Is your version different to the
tutorial?
Are you using a fresh conda environment as described in readme?
On Sun, 19 Sep 2021, 12:26 Vitalii Kleshchevnikov, @.***>
wrote:

Hi Cristian
Unfortunately this doesn't help. I think the error means that there's an
issue with copying some part of the anndata object. Could you please try
deepcopy.deepcopy(adata) on your anndata object?
On Sun, 19 Sep 2021, 09:43 Cristian, @.***> wrote:

Hello @vitkl https://github.com/vitkl,
I used the following code:
mod = cell2location.models.Cell2location(
adata_vis, cell_state_df=inf_aver,
N_cells_per_location=30,
detection_alpha=200
)
For setting up anndata I used scvi.data.setup_anndata(adata=adata_vis,
batch_key="in_tissue"). The output of
scvi.data.view_anndata_setup(adata_vis) looks like
[image: Screenshot 2021-09-19 at 10 42 41]
https://user-images.githubusercontent.com/37718031/133921143-a6ae8c8a-4144-4ec9-9d37-d08906c5f2e6.png
:
Hope this helps to find the source of the issue. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BayraktarLab/cell2location/issues/66#issuecomment-922437897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFMFTV2ZI7XUIZMXBFEQW3TUCWPDHANCNFSM5ECXUKYA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@ccruizm did you manage to solve the issue?
I think it is an issue with copying anndata objects and compatible pandas versions - rather than an issue with the cell2location package.

As a potential solution, I would suggest deleting all unnecessary data from the anndata object, leaving .obs['sample'], .uns['spatial'], .obsm['spatial'] slots.

Good day!
I have tried import copy copy.deepcopy(adata_vis) and get a similar error
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/scratch/216023/ipykernel_118883/1954573082.py in <module>
      1 import copy
----> 2 copy.deepcopy(adata_vis)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    151             copier = getattr(x, "__deepcopy__", None)
    152             if copier is not None:
--> 153                 y = copier(memo)
    154             else:
    155                 reductor = dispatch_table.get(cls)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/anndata/_core/views.py in __deepcopy__(self, memo)
     55     # TODO: This makes `deepcopy(obj)` return `obj._view_args.parent._adata_ref`, fix it
     56     def __deepcopy__(self, memo):
---> 57         parent, attrname, keys = self._view_args
     58         return deepcopy(getattr(parent._adata_ref, attrname))
     59

TypeError: cannot unpack non-iterable NoneType object
adata_vis

I have installed the branch you recommended but still get the same error
/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/scvi/model/base/_base_model.py:149: UserWarning: Make sure the registered X field in anndata contains unnormalized count data.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/scratch/216023/ipykernel_118883/1557678947.py in <module>
      1 # create and train the model
----> 2 mod = cell2location.models.Cell2location(
      3     adata_vis, cell_state_df=inf_aver,
      4     # the expected average cell abundance: tissue-dependent
      5     # hyper-prior which can be estimated from paired histology:

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/cell2location/models/_cell2location_model.py in __init__(self, adata, cell_state_df, model_class, detection_mean_per_sample, detection_mean_correction, **model_kwargs)
    115         )
    116         self._model_summary_string = f'cell2location model with the following params: \nn_factors: {self.n_factors_} \nn_batch: {self.summary_stats["n_batch"]} '
--> 117         self.init_params_ = self._get_init_params(deepcopy(locals()))
    118
    119     def train(

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    170                     y = x
    171                 else:
--> 172                     y = _reconstruct(x, memo, *rv)
    173
    174     # If is its own copy, don't memoize.

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
    268     if state is not None:
    269         if deep:
--> 270             state = deepcopy(state, memo)
    271         if hasattr(y, '__setstate__'):
    272             y.__setstate__(state)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    144     copier = _deepcopy_dispatch.get(cls)
    145     if copier is not None:
--> 146         y = copier(x, memo)
    147     else:
    148         if issubclass(cls, type):

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in _deepcopy_dict(x, memo, deepcopy)
    228     memo[id(x)] = y
    229     for key, value in x.items():
--> 230         y[deepcopy(key, memo)] = deepcopy(value, memo)
    231     return y
    232 d[dict] = _deepcopy_dict

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/copy.py in deepcopy(x, memo, _nil)
    151             copier = getattr(x, "__deepcopy__", None)
    152             if copier is not None:
--> 153                 y = copier(memo)
    154             else:
    155                 reductor = dispatch_table.get(cls)

/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/anndata/_core/views.py in __deepcopy__(self, memo)
     55     # TODO: This makes `deepcopy(obj)` return `obj._view_args.parent._adata_ref`, fix it
     56     def __deepcopy__(self, memo):
---> 57         parent, attrname, keys = self._view_args
     58         return deepcopy(getattr(parent._adata_ref, attrname))
     59

TypeError: cannot unpack non-iterable NoneType object

Even after deleting almost all fields in the anndata object
AnnData object with n_obs × n_vars = 3449 × 16267
    obs: 'in_tissue', '_scvi_batch', '_scvi_labels', '_scvi_local_l_mean', '_scvi_local_l_var', '_indices'
    var: 'SYMBOL'
    uns: 'spatial', '_scvi'
    obsm: 'spatial'
    varm: 'PCs'
    obsp: 'connectivities', 'distances'

What else should I try or am I doing something wrong?
Thanks in advance

Hi @ccruizm
This confirms the issue with deepcopy and some of the data formats in your anndata.
Use of deepcopy in that part of the code is not essential but I would like to confirm that removing it solves your issue. Could I ask you to make sure that you install the version from the deepcopy_issue branch and make use it is loaded?
Cell2location might not be loading correctly (installed into the wrong conda environment?) because after installing the code from that branch you should no longer see this:
/hpc/pmc_stunnenberg/cruiz/miniconda3/envs/cell2loc_env/lib/python3.9/site-packages/cell2location/models/_cell2location_model.py in __init__(self, adata, cell_state_df, model_class, detection_mean_per_sample, detection_mean_correction, **model_kwargs)
    115         )
    116         self._model_summary_string = f'cell2location model with the following params: \nn_factors: {self.n_factors_} \nn_batch: {self.summary_stats["n_batch"]} '
--> 117         self.init_params_ = self._get_init_params(deepcopy(locals()))
    118
    119     def train(

because line 117 looks like this:
self.init_params_ = self._get_init_params(deepcopy(locals()))

Hello @vitkl
You were right, indeed the installation wasn't done properly. I reinstalled it and now it works even without deleting any data from the anndata object! thank you so much for your help!

Merged https://github.com/BayraktarLab/cell2location/pull/85 with a fix for this issue


The default configuration of the arrowParens rule does not match the documentation description

https://github.com/eslint-stylistic/eslint-stylistic/blob/3db4870f56b5f999439987eb904361488e764cc6/packages/eslint-plugin/configs/customize.ts#L19
https://github.com/eslint-stylistic/eslint-stylistic/blob/3db4870f56b5f999439987eb904361488e764cc6/packages/eslint-plugin/configs/customize.ts#L34
Document location: https://eslint.style/rules/default/arrow-parens#options

customize is just a factory function.
The default config you mentioned is just the default value for that function.
The defualt option of the rule (arrow-parens) is here:
https://github.com/eslint-stylistic/eslint-stylistic/blob/main/packages/eslint-plugin/rules/arrow-parens/arrow-parens._js_.ts#L59

I see that the shared configuration recommended-flat is created by this customize factory function, and by default the arrow-parens rule for this configuration is as-needed, but the default value written in the documentation is always, so I'm not sure if this is correct?

I think that is correct. The default option in the document is the default option of the rule but not the factory function.

Ok, thank you for your explanation, I will close this issue


Retry JVM tests on failure

This issue encompasses adding the functionality of https://github.com/gradle/test-retry-gradle-plugin to the core Test task.

We don't see any technical blockers for doing this, but we'll revisit this later.


As a Craft developer I want Doxygen documentation for World.c so that future developers can more easily understand the code.

accidentally reverted changes


Problem with query while ScanIndexForward is false

Querying a hash backwards results in
com.amazonaws.AmazonClientException: Unable to execute HTTP request: Read timed out
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:471) ~[aws-java-sdk-core-1.9.14.jar:na]
I tracked the code to this line:
https://github.com/mhart/dynalite/blob/master/actions/query.js#L108
Does that mean at a certain point a table is too big to support query with backward scanning?

I have no idea – how big is the table in question? Can you just adjust the timeout on the SDK side?

@chook any word on this?

Hi @mhart - you specifically say that reverse scanning is not optimized so we just stopped using it :) any thoughts when you might come back and implement it?

It's not something particularly high on the TODO list – it should function correctly which is the main priority for a mock DB – if you can find a specific set of params that break it, then file another issue.
If it was a performance issue, then I'm guessing the table in question must have been really large? Basically it just falls back to a full table scan in these cases – so it shouldn't be any slower than a normal Scan – it's just not going to be as fast as a Query.
Going to close this, but if you can find a reproducible test case I'll look into it. Thanks!

thanks for commenting @mhart - is it possible to have a quick chat with you privately? you can find me at chook (dot) harel at gmail - highly appreciated.

Queries now use proper LevelDB ranges as of v1.0.0


[FLINK-14494][docs] Add ConfigOption type to the documentation generator

What is the purpose of the change
It adds generating type column to ConfigOptionsDocGenerator
Verifying this change

Added org.apache.flink.docs.configuration.ConfigOptionsDocGeneratorTest#testCreatingTypes
All previous tests should run

Does this pull request potentially affect one of the following parts:

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

Documentation

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

I would appreciate if you had a look @zentol @kl0u

Thank you @zentol for your review. Here is a screenshot of an enum option:

The problem with String in most of the rows is that the value of this column is based on the functionality introduced in https://issues.apache.org/jira/browse/FLINK-14493, where we should provide the type explicitly. So far all the memory, duration options were actually of type string and the parsing happened in place where the option was accessed. I can not see a way to change the type automatically without changing the corresponding ConfigOption and all the places it is accessed. A workaround I can see is to enable this column manually only for groups that have all the ConfigOptions updated. Do you think this would be a better approach?

Could you have another look @zentol when you have some time? What do you think about my answers to the remaining questions.

Ok, so must duration/memorysize options are still based on Strings.
In that case I would suggest to still add in the hooks for displaying the type, and sticking with String for the time being, and file follow-up tickets for updating these options to not be based on Strings.


I need help training Tesseract 4.0

Hi there,
I am ready to test Tesseract 4.0 to make sure that the Arabic Language is not forgotten, but I am facing alot of problems in the training process, I know that Ray has done a great job in this version by documenting everything, but still i need some help.
Can somebody list the commands, line-by-line, from creating a tif+box from the text that i've attached, to creating an "ara.traineddata" assuming the font is timesnewroman.
My text is only 22 words, Download the text:  arabic1.txt
Do not , I repeat, Don't direct me to the documentation page, I need line-by-line help
Thank you

Please use tesseract user forum for asking support

See https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00---Finetune

@Shreeshrii
Thanks, your an amazing contributor


[Discussion] Protected Branches

Hey Moya Contributors (moyers?)
I believe only admins like @ashfurrow have access to the repo settings, so I aplogize in advance if it's already enabled as i'm unable to tell, BUT I wanted to field opinions on protected branches/status checks.
Here is the gist:

By making master a "protected branch", we can enforce that no one can force push to it, preventing a potential flurry of git surgery/issues (which is what prompted me to do it on my own repo)
More importantly, we can enforce that any pull request to Moya must be passing certain status checks (CI + Unit Tests passing, either one, or all) before the pull request can be merged.

One of the big questions I would want to pose to the community is Would we ever want master to be in a failing state?. My personal opinion is no, because if master is failing, and others begin branching and contributing back, now we all have broken tests :open_mouth:
I have been using this on a private org repository with 6 other developers, and it has been working great! Pasting some screenshots from my private repo for reference:
Thanks! :tada:

Disabling force pushes: probably good.
Requiring status checks: probably good, but there are instances where discretion is required.
Then again, that discretion can be exercised by temporarily disabling the protection setting.

Thanks for the great idea @SRandazzo! I turned on protection for master when we made Moya an organization, and even clarify(ish) this in the contributor guidelines. Great minds :)
As far as CI passing, that's a trickier one. Sometimes we'll merge in broken tests because getting a PR merged is more important than getting the submitter to fix the tests (they're a first-time contributor and it's easier for me or someone to fix it after it's been merged). Also, we have intermittently-failing CI (see #259 ).
I think @swizzlr's "discretion"-based model is :+1:, and I want to give all the contributors a chance to use their own discretion.
That's just my ¢2, if the community wants this then of course we'll enable it. Thanks again for the great suggestion!

Glad to hear master is already ⚠protected⚠!!!
Sorry to hear about the intermittent CI failures, those are always fun :grimacing:
You have a great point that getting a PR merged may be more important than passing tests. I'm coming from an app-based repository mindset with bi-weekly releases, so pretty different :fish: here.
I think that with the right kind of friendly community (which Moya has!) either approach can work, and barring the intermittent failure issue, it could get people more involved and focused on testing, with other contributors pitching in to help people out with tests!
If it weren't for those intermittent failures, I would propose an experiment to try it out, but we should figure those failures out first! I'll do a little bit of researching on that issue
Thanks again @swizzlr @ashfurrow :tada:

If it weren't for those intermittent failures, I would propose an experiment to try it out

Agreed! Definitely worth a shot. Do you think it's worthwhile to keep this issue open for more discussion? Let me know if I can help answer questions about CI :boat:

Awesome, possible fix for the failures is merged!
We should probably wait a couple days, see if they resolve, then pick back up here. If we do want to try this idea out, we could use this issue as a tracker/retro on how we think the process went, and if we want to revert the change or not! Good way to keep track of on an on-going experiment :hammer:
Maybe like a 1 month trial run of it, open to suggestions!

We're still pretty consistently getting CI failures, which sucks. I heard a rumour Circle might have a feature soon to restart builds failed with the infamous "Error 65", we'll see.
In any case, we now have Danger on the repo's pull requests, and sometimes we do need to override. I really liked the discussion here, but I think we've settled into a groove with the somewhat protected branches. Thanks again for sparking a good discussion!


Replaced _VF formats with copy flags.

Do not encode vertical flip in color format (screws up if copied twice)
Extend freerdp_image_copy with copy flipped flag (currently only vertical source implemented)
Adjust nsc_process_message to accept flip argument
Fixes #3552

Pure code review looks good. So we now only support:

vFlip on src image
Src image with vFlip should always have nYSrc = 0

I just tested with /nsc, but the screen somehow still corrupted.

@akallabeth I forgot to restart my shadow server with new code. It works perfectly


test: upgrade tests should not pick rc versions as starting point

Partially closes #5331
Split from #5297

/ok-to-merge


Clarify formula for emission color

Following the discussion of https://github.com/AcademySoftwareFoundation/OpenPBR/issues/85, I propose to add the wording:

@anderslanglands Would appreciate your thoughts on whether this change makes sense.

Makes sense to me

@portsmouth It looks like this change is still written for the main branch, and you'll need to retarget it to the dev_1.1 branch before we can merge it.


Rename ZooKeeperStorageEnvelope

This class is not ZooKeeper specific. Let's call it StorageEnvelope.

Why are there so many commits on this?

@jsancio Why are there so many commits on this?

This was based of a "feature" branch and I didn't want to rebase and git push -f (I have accidentally git push -f to the wrong branch before). When we merge to master GitHub is going to squash all of those commits for us.


Update README (DOI + install)

The DOI was pointing to the latest release, not specifically to v0.7
add wget to download the latest environment file for conda should help the list of commands exhaustive

if you know a way to download specifically the one corresponding to the lastest conda release that would be awesome
alternatively we could specify conda install ctapipe=0.8 and wget https://github.com/kosack/ctapipe/blob/dc87de54bee11c91f613628df778f29fc2889ff7/environment.yml

I think you can use the "raw" data links from GitHub, and that way the release is in the link:
   wget https://raw.githubusercontent.com/cta-observatory/ctapipe/v0.8.0/environment.yml

So you could even do:
VER=v0.8.0
wget https://raw.githubusercontent.com/cta-observatory/ctapipe/$VER/environment.yml

I made changes following @kosack good suggestion.


Shapes aren't that fun to write.

Shapes enable the generic data structures and APIs of Punchcard, but their type signatures can be excessive spaghetti.
E.g.
const table: DynamoDB.Table<"id", undefined, {
  id: StringShape;
  count: IntegerShape;
  name: StringShape;
  array: ArrayShape<StringShape>;
  struct: StructShape<...>;
  any: DynamicShape<...>;
}>

Perhaps we should look into generating Shapes from another representation, e.g. Smithy (https://github.com/awslabs/smithy) or GraphQL (https://graphql.org/, https://github.com/punchcard/punchcard/issues/86)?
The generated code could generate boilerplate interfaces instead of computing types with RuntimeShape<S>, resulting in more helpful (well documented) hints from the compiler/IDE toolchain. Developer experience would be just as "nice", except there would now be a new file format.

Interesting code-first approach for GraphQL: https://github.com/MichalLytek/type-graphql


Ads showing while app used in USA

I am using your library in my application and Its working great.
However When users from USA using player, they see ads for first 2 to 3 videos. Its not happening any other location.
Can you help me with this?
How can I overcome this issue or I have to use something from your library?
Currently I am using YouTubePlayerView with enableAutomaticInitialization to false
Please help me out of this @PierfrancescoSoffritti

YouTube decides when to show ads, there's nothing we can do about it unfortunately.


jmeter hangs when open a jmx with a Big JSON  request param

Expected behavior
open the file immedidately
Actual behavior
open the file used 10 minute or longer
Steps to reproduce the problem
report_jmx.zip
in the jmx, i have a httpsample , and it`s request param is a big json ,about 600k, when load the file ,the jmeter hangs up.
how to solve the problem.
the jmx is in report_jmx.zip.
the jvm are as follow

JMeter Version
5.6.3
Java Version
1.8
OS Version
windows

I have the same question。

in jmeter.properties, set jsyntaxtextarea.linewrap=false

We might automatically disable line wrap in jmeter if the body contains long lines.

When a request with a long payload is sent (for example with a base64 file code), when I click on this request on the View Result Tree crashes and I am forced to terminate jmeter.
I've tried with this in jmeter.properties, set jsyntaxtextarea.linewrap=false
No changes