python310Packages.google-cloud-iam: 2.5.1 -> 2.6.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.google-cloud-iam is: "IAM Service Account Credentials API client library"
meta.homepage for python310Packages.google-cloud-iam is: "https://github.com/googleapis/python-iam"
meta.changelog for python310Packages.google-cloud-iam is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
Warning: a test defined in passthru.tests did not pass
Warning: no invocation of /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0/bin/.fixup_iam_credentials_v1_keywords.py-wrapped had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0/bin/fixup_iam_credentials_v1_keywords.py had a zero exit code or showed the expected version
0 of 2 passed binary check by having a zero exit code.
0 of 2 passed binary check by having the new version present in output.
found 2.6.0 with grep in /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0
found 2.6.0 in filename of file in /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0

Rebuild report (if merged into master) (click to expand)

46 total rebuild path(s)

23 package rebuild(s)

23 x86_64-linux rebuild(s)
23 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
dvc-with-remotes
python310Packages.gcsfs
python310Packages.gensim
python310Packages.google-cloud-automl
python310Packages.google-cloud-bigquery
python310Packages.google-cloud-iam
python310Packages.google-cloud-storage
python310Packages.pathy
python310Packages.smart-open
python310Packages.spacy
python310Packages.textacy
python39Packages.gcsfs
python39Packages.gensim
python39Packages.google-cloud-automl
python39Packages.google-cloud-bigquery
python39Packages.google-cloud-iam
python39Packages.google-cloud-storage
python39Packages.pathy
python39Packages.smart-open
python39Packages.spacy
python39Packages.spacy-transformers
python39Packages.textacy
snakemake

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.google-cloud-iam https://github.com/r-ryantm/nixpkgs/archive/48e0fd436e172e19a1c1db602c573acbf2e1c580.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0
ls -la /nix/store/gymmb0mlx997xci6sbrwd1hnngqa915b-python3.10-google-cloud-iam-2.6.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

dvc-with-remotes

22 packages built:

python310Packages.gcsfs
python310Packages.gensim
python310Packages.google-cloud-automl
python310Packages.google-cloud-bigquery
python310Packages.google-cloud-iam
python310Packages.google-cloud-storage
python310Packages.pathy
python310Packages.smart-open
python310Packages.spacy
python310Packages.textacy
python39Packages.gcsfs
python39Packages.gensim
python39Packages.google-cloud-automl
python39Packages.google-cloud-bigquery
python39Packages.google-cloud-iam
python39Packages.google-cloud-storage
python39Packages.pathy
python39Packages.smart-open
python39Packages.spacy
python39Packages.spacy-transformers
python39Packages.textacy
snakemake

Maintainer pings
cc @austinbutler @SuperSandro2000 for testing.

Result of nixpkgs-review pr 162306 run on x86_64-linux 1

1 package failed to build:

dvc-with-remotes

22 packages built:

python310Packages.gcsfs
python310Packages.gensim
python310Packages.google-cloud-automl
python310Packages.google-cloud-bigquery
python310Packages.google-cloud-iam
python310Packages.google-cloud-storage
python310Packages.pathy
python310Packages.smart-open
python310Packages.spacy
python310Packages.textacy
python39Packages.gcsfs
python39Packages.gensim
python39Packages.google-cloud-automl
python39Packages.google-cloud-bigquery
python39Packages.google-cloud-iam
python39Packages.google-cloud-storage
python39Packages.pathy
python39Packages.smart-open
python39Packages.spacy
python39Packages.spacy-transformers
python39Packages.textacy
snakemake


Container healthcheck not working

The container exits every few seconds / minutes. The log shows the following:
2022-03-05 02:02:10,796 INFO stopped: pruneflips (terminated by SIGTERM)
2022/03/05 02:02:10 [notice] 17#17: signal 15 (SIGTERM) received from 1, exiting
2022/03/05 02:02:10 [notice] 24#24: exiting
2022/03/05 02:02:10 [notice] 24#24: exit
2022/03/05 02:02:10 [notice] 17#17: signal 17 (SIGCHLD) received from 24
2022/03/05 02:02:10 [notice] 17#17: worker process 24 exited with code 0
2022/03/05 02:02:10 [notice] 17#17: exit
2022-03-05 02:02:10,806 INFO stopped: nginx (exit status 0)
[2022-03-05 02:02:10 +0000] [16] [INFO] Handling signal: term
[2022-03-05 02:02:10 +0000] [28] [INFO] Worker exiting (pid: 28)
[2022-03-05 02:02:11 +0000] [16] [INFO] Shutting down: Master
2022-03-05 02:02:11,155 INFO stopped: gunicorn (exit status 0)
exited with code 0

I am using the tag v1.25.0

I found out that the reason for this is, that the HEALTHCHECK, which is defined in the Dockerfile does not work.
I have configured my host to automatically restart containers when they get unhealthy.

You can verify this using docker ps. The healthchecks container always stays at (health: starting).

@P4sca1 I'm unable to reproduce the issue with the container being unhealthy.
f1eee63e1072   ghcr.io/galexrt/healthchecks:main   "/entrypoint.sh app:…"   48 seconds ago   Up 47 seconds (healthy)   2525/tcp, <IP_ADDRESS>:8000->8000/tcp, :::8000->8000/tcp   container-healthchecks-hc-1

Could you please try increasing the --tries= flag for the HEALTHCHECK wget command in a custom built version of the image?

I tried running the healthcheck command manually inside the container and this is the output:
healthchecks@78819edc6725:/data$ wget --tries=1 --spider http://localhost:8000 || echo "failed"
Spider mode enabled. Check if remote file exists.
--2022-03-09 12:02:41--  http://localhost:8000/
Resolving localhost (localhost)... <IP_ADDRESS>, ::1
Connecting to localhost (localhost)|<IP_ADDRESS>|:8000... connected.
HTTP request sent, awaiting response... 400 Bad Request
Remote file does not exist -- broken link!!!

failed

Does the Web UI work?
Can you show us your docker-compose.yml?

400 Bad Request

This looks like a problem with healtchecks itself.

Yes, the WebUI works. I am running it behind a Nginx proxy. Here's my docker-compose.yml:
healthchecks:
    image: ghcr.io/galexrt/healthchecks:v1.25.0
    restart: unless-stopped
    environment:
      ALLOWED_HOSTS: hc.my-domain.com
      DB: mysql
      DB_HOST: ***
      DB_NAME: ***
      DB_PASSWORD: ***
      DB_PORT: 3306
      DB_USER: ***
      DEBUG: "False"
      DEFAULT_FROM_EMAIL<EMAIL_ADDRESS>      DISCORD_CLIENT_ID: ***
      DISCORD_CLIENT_SECRET: ***
      EMAIL_HOST: ***
      EMAIL_HOST_PASSWORD: ***
      EMAIL_HOST_USER: ***
      EMAIL_PORT: 587
      SECRET_KEY: ***
      SITE_NAME: Healthchecks | My Name
      SITE_ROOT: https://my-domain.com
    ports:
       - 8000:8000/tcp

Removing ALLOWED_HOSTS fixes the issue. I am currently trying to find out, what needs to be added to the list in order to allow connections from inside the container.

ALLOWED_HOSTS must include localhost, see: https://github.com/galexrt/container-healthchecks#environment-configuration-variables

Thank you, I missed that one in the README. After adding localhost to ALLOWED_HOSTS, the healthcheck is working.


remove duplicate handleSubmit wrapper

the onSubmit function was wrapped two withhandleSubmit  times in the typescript example

aha. thank you ❤


LoadingHandler not implemented

Hi,
I'm trying to get your examples running, but for some reason it seems like the macros doesnt get applied and extends my types. Perhaps you see directly what I'm doing wrong/missing?
The only thing I have done different from your example is to break apart the content in different files/modules. But the have correct (what I think) imports etc between them.
Tried putting everything in the same file but still got the same error...
The error
error[E0277]: the trait bound `person::model::Person: wundergraph::query_builder::selection::LoadingHandler<_, _>` is not satisfied
  --> src\main.rs:45:18
   |
45 |     let schema = Schema::new(query, mutation);
   |                  ^^^^^^^^^^^ the trait `wundergraph::query_builder::selection::LoadingHandler<_, _>` is not implemented for `person::model::Person`
   |
   = note: required because of the requirements on the impl of `juniper::types::base::GraphQLType<wundergraph::scalar::WundergraphScalarValue>` for `graphql::query::Query<_>`
   = note: required by `juniper::schema::model::RootNode````

My type implementation
use diesel_derive_enum::DbEnum;
use serde::Serialize;
use wundergraph::prelude::*;
use crate::address::model::Address;
use crate::db::schema::*;

#[derive(Clone, Debug, Identifiable, Queryable, WundergraphEntity)]
pub struct Person {
    pub id: i32,
    pub firstname: String,
    pub lastname: Option<String>,
    pub year_of_birth: Option<i32>,
    pub address: HasOne<i32, Address>,
}

My diesel type
table! {
    persons (id) {
        id -> Int4,
        firstname -> Varchar,
        lastname -> Nullable<Varchar>,
        year_of_birth -> Nullable<Int4>,
        address_id -> Nullable<Int4>,
    }
}

QueryModifier
impl<T, C, DB> QueryModifier<T, DB> for MyContext<C>
where
    C: Connection<Backend = DB>,
    DB: Backend + ApplyOffset + 'static,
    T: LoadingHandler<DB, Self>,
    Self: WundergraphContext,
    Self::Connection: Connection<Backend = DB>,
{
    fn modify_query<'a>(
        &self,
        _select: &LookAheadSelection<'_, WundergraphScalarValue>,
        query: BoxedQuery<'a, T, DB, Self>,
    ) -> Result<BoxedQuery<'a, T, DB, Self>> {
        match T::TYPE_NAME {
            _ => Ok(query),
        }
    }
}

Query object
use crate::person::model::Person;
use crate::event::model::Event;
use crate::address::model::Address;

wundergraph::query_object!{
    Query {
       Person,
       Event,
       Address
   }
}

Can you provide a full example that fails to compile, not only parts of the project? I cannot reproduce this issue with the information given here.

Here the full project in its current state, please do not publish (link expires after 1 download).
Thank you so much for your time.

I hand some time to investigate why this happens. Turns out the reason is quite simple 🙈 :.
WundergraphEntity generates backend specific code (because of type system reasons…). That means depending on what backend is enabled for wundergraph the correct impl is generated. In your example there was no backend enabled, so no impl was generated. Enabling at least the postgres backend does fix the problem described in this issue. You need to change wundergraph = "0.1.2" to wundergraph = { version = "0.1.2", features = ["postgres", "chrono"]} (I've also added the chrono feature, because you use chrono in your entities :wink:.
There were also other issues with your code, here is a full patch to make it compile.
Closed as this is expected behaviour, though I should maybe add better documentation somewhere.

Thank you so much, I suspected it was something trivial I was missing! Have a nice weekend!


AL0190 Constant value '2359T' is outside the range for a Time

Describe the bug
When using CreateDateTime the compiler doesn't accept any other value than 0T if I'm trying to specify the "Time" value explicitly
To Reproduce

Create the following function

procedure GetMaxDateTime(): DateTime
  begin
    exit(CreateDateTime(DMY2Date(31, 12, 9999), 2359T))
  end;

You'll get an Error:

Constant value '2359T' is outside the range for a Time

Change "2359T" to "0T" and the error disappears

Now change "0T" to "1130T" for example. The same error appears

Expected behavior
Let me enter any valid Time value
Screenshots

5. Versions:

AL Language:  v5.0.288712

Business Central: 16.0.12630.12758

Did you try using 235900T instead?
The documentation does not suggest using 2359T only.
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/time/time-data-type

Did you try using 235900T instead?
The documentation does not suggest using 2359T only.
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/time/time-data-type

Hi Natalie,
It works w/ 235900T, thanks!
The error message is still a bit misleading though... 😞
Thank you for your help again.
Marton


HTTPS/MQTT Selection: Data is not prefilled with previous configuration

The radio button must be switched to the other option and back to show the configured settings.

Fixed in #25


Auto select relevant debug configuration based on files in project

If user has flask/django specific files then pre-select the corresponding debug configuration.
Note: Not sure we can pre-select it, but we can most certainly add the corresponding debug configuration as the first item on the list (mimic default config item).
@brettcannon @qubitron
I'm assuming these enhancement would be useful when releasing the experimental debugger.
Let me know, and I'll adjust the milestone (currently I'm assuming that's the case).

@DonJayamanne this seems like a good enhancement to the debugger in general, I'm not sure why this is specific to the experimental debugger. Can it wait until after the stable release, or is there a reason this helps with testing the experimental version?

We're both in agreement, my suggestion is to implement this for experimental debugger (i.e. when it becomes stable).

Closing this issue because the automatic detection of Flask and Django has already been implemented.


Protobuf 3.15.3 issues

eCAL seems to have issues with Protobuf 3.15.3.
The issue was brought up by the macOS Build. When the build machines used Protobuf 3.14.0 everything was fine, but when Homebrew updated to Protobuf 3.15.3 eCAL failed to build on macOS.
Build log: https://github.com/continental/ecal/runs/2029358598?check_suite_focus=true
I have confirmed that the same issue occurs on Windows, when updating the protobuf submodule to 3.15.3.

To use package name pb seems to be problematic in the newer version. Like in this protobuf definition
package pb.People;

message Person
{
  enum SType
  {
    MALE   = 0;
    FEMALE = 1;
  }

  int32  id               = 1;
  string name             = 2;
  SType  stype            = 3;
  string email            = 4;

  Animal.Dog        dog   = 5;
  Environment.House house = 6;
}

Fixed in master. eCAL 5.8 and 5.7 will stay on the old sample (and old protobuf). When not building the samples, eCAL 5.7 / 5.8 can even be built with Protobuf 3.15.


TS Seg Faulting on HTTP_EVENT_TUNNEL_CLOSE

There is a problem in closing the Http Tunnel if there is lock contention.
Without lock contention: HttpSM.cc:2589 default_handler is tunnel_handler and it is given HTTP_TUNNEL_EVENT_CLOSE, kill_this() (HttpSM.cc:2602) eventually calls state_api_callout(0, nullptr). Plugin lock is acquired in HttpSM.cc:1443 does some stuff and exits function. Continues correctly.
With lock contention: HttpSM.cc:2589 default_handler is tunnel_handler and it is given HTTP_TUNNEL_EVENT_CLOSE, kill_this() (HttpSM.cc:2602) eventually calls state_api_callout(0, nullptr). In line HttpSM:1441, the default handler is set to state_api_callout. It is rescheduled in HttpSM.cc:1443. Now, when it renters the SM, the event code HTTP_EVENT_TUNNEL_CLOSE is given to state_api_callout rather than state_api_callout(0, nullptr). This causes it to enter a different switch case and eventually messes up.
Test to produce bug: https://github.com/apache/trafficserver/pull/3047 (openclose_h2.test.py)
Potential Fix (kinda hacky): https://github.com/xf6wang/trafficserver/commit/58fa79e3ef27d65990d0ccaedf5d3bb9f6d4ac27

fixed. closing.


KCL: More flexible ranges

Background
Right now, KCL ranges are always two (signed) integers, e.g. [-4..10]. Ranges always increment the start by 1 until it reaches the end.
Problem
We should support:

Descending iteration (e.g. start at 10 and decrement until you reach 3)
Custom step (e.g. from 0 to 10, but increasing by 2 each time)

Descending iteration would simplify Nick B's involute gear example, which calculates the left edge from 0..10 and the right edge from 10..0
Solution
Allow ranges like [start:end:step] -- where step is a signed integer. If start > end then step must be negative, otherwise it'll be an error.
Other solutions or suggestions are very welcome!

LTGM. Just wondering why not open it up to reals immediately

Really sorry for any hopes up; after reading Jon's comment it made me think other aspects of this feature and I need to revoke the LGTM.
This proposal only covers a small slice of mathematical usage; specifically counting up and down monotonically. We need to support all kinds, such as by 2s, 3s, exponentially, etc.
Python or Haskell's list comprehensions / constructors are superior for this sort of thing. We really need to adopt those in some form. If this proposal can be shown to be extended to support them then it's LGTM :p


Research: ColumnDataHolder/primitive arrays

Fixes https://github.com/Kotlin/dataframe/issues/30, one of our oldest issues.
I introduced ColumnDataHolder to replace the List in DataColumnImpl. This interface can define how the data of columns is stored.
ColumnDataHolderImpl was created as default implementation and it defaults to store data in primitive arrays whenever possible. Other implementations might be possible in the future as well (to make DF act on top of an existing DB for instance).
Things to be done:

[ ] Let data sources create ColumnDataHolders directly wherever possible instead of Lists.
[ ] Fix cases where DataColumnImpl.type mismatches DataColumnImpl.values: https://github.com/Kotlin/dataframe/issues/713
[ ] Test performance/memory differences
[ ] Improve API

Very intersting idea and performance step forward, I suggest to start with a synteticly generated DataFrame with 1-10 columns with Ints, Longs, or something (better with the same type) and measure the average time/memory footprint of some performant operations before deep implementation.
I see how we could economy on memory, but not sure about speed on operations.
Also interesting to compare some non-default implementations as Multik or DirectByteBuffers

I've been doing some small performance/size tests here and I've come to the following results:
⌌-------------------------------------------------------------------⌍
|  |                  type|   creation|  processing|            size|
|--|----------------------|-----------|------------|----------------|
| 0| BOXED_ARRAY_WITH_NULL| 1.668690ms| 40.072489ms| 14500481.813333|
| 1|        LIST_WITH_NULL| 9.142612ms| 41.064332ms| 14509001.813333|
| 2|                  LIST| 2.710987ms| 42.268814ms| 11496455.760000|
| 3|           BOXED_ARRAY| 2.415740ms| 42.270087ms| 11502541.520000|
| 4|          DOUBLE_ARRAY| 1.840757ms| 42.354001ms| 11499172.666667|
⌎-------------------------------------------------------------------⌏

In terms of creation, the two fastest are Array<Double?> and DoubleArray.
It makes sense Array<Double> and List<Double> are slower in this setup, as they're converted to DoubleArray in the ColumnDataHolder. Why List<Double?> is thát much slower, I honestly don't know, it's not converted to anything, just another list.
Processing speed is interesting, the arrays are the slowest of the bunch. I assume this is because they are stored as primitive arrays and need to box all their values before being able to calculate anything with them. This can also be seen in the null-containing columns, which are processed the quickest.
In terms of size, however, the world is flipped. All dataframes contain 3 columns of 50k rows. The ones that use primitive arrays to store their doubles hover around 11.5MB for the entire dataframe, while the others use about 14.5MB. This difference will likely increase when having more rows.
I'll run the same test on the master-branch in a minute...

I've updated ColumnDataHolder in such a way that it can store a collection/array of nullable primitives:

nulls are filled with 0 (or the zero-equivalent of that type)
indices of where the nulls were are stored in an IntArray
the null-filled data is stored in a primitive array
ColumnDataHolder implements List and the right values are returned at the correct indices (needs some more tests)

10M rows
⌌-------------------------------------------------------------------⌍
|  |                  type|     creation|    processing|        size|
|--|----------------------|-------------|--------------|------------|
| 0|          DOUBLE_ARRAY| 452.407441ms| 10.661419664s| 250,303,579.2|
| 1| BOXED_ARRAY_WITH_NULL| 1.246602198s| 10.876937912s| 250,303,867.2|
| 2|                  LIST| 1.075708642s| 10.987466189s| 250,303,651.2|
| 3|           BOXED_ARRAY| 1.109656324s| 11.206449292s| 250,308,171.2|
| 4|        LIST_WITH_NULL| 1.878721075s| 11.211828024s| 250,294,786.4|
⌎-------------------------------------------------------------------⌏

The previous tests only contained a single null value, which seems a bit wrong. I now have tests where half of the values are null in the BOXED_ARRAY_WITH_NULL and LIST_WITH_NULL tests.
I also experimented using a boolean array to store null-indices instead of int arrays. The results are the following:
10M rows, lots of nulls, boolean array
⌌-------------------------------------------------------------------⌍
|  |                  type|     creation|    processing|        size|
|--|----------------------|-------------|--------------|------------|
| 0|        LIST_WITH_NULL| 1.896135155s| 12.906753380s| 280,393,248.0|
| 1| BOXED_ARRAY_WITH_NULL| 1.622306469s| 13.093053168s| 280,320,763.2|
| 2|          DOUBLE_ARRAY| 535.327248ms| 13.494416201s| 280,330,497.6|
| 3|                  LIST| 1.395451763s| 13.647339781s| 280,372,962.4|
| 4|           BOXED_ARRAY| 1.240805238s| 14.096025326s| 280,339,035.2|
⌎-------------------------------------------------------------------⌏

10M rows, lots of nulls, int array
⌌-------------------------------------------------------------------⌍
|  |                  type|     creation|    processing|        size|
|--|----------------------|-------------|--------------|------------|
| 0|          DOUBLE_ARRAY| 472.084569ms| 13.341951593s| 250,313,040.0|
| 1|                  LIST| 1.395223809s| 13.447386786s| 250,312,961.6|
| 2| BOXED_ARRAY_WITH_NULL| 1.672050297s| 13.528234068s| 310,318,894.4|
| 3|           BOXED_ARRAY| 1.379209011s| 13.646054496s| 250,312,883.2|
| 4|        LIST_WITH_NULL| 2.950703003s| 14.230182141s| 310,293,660.8|
⌎-------------------------------------------------------------------⌏

As we can see, the performance differences are negligible but the difference in size is not.
Using boolean arrays results in the same size for every case, using int arrays has the size dependent on the number of nulls. While the number of nulls in every day cases is quite low, I think we should prefer the latter.

I've furthered my investigations. I wanted to see whether it would make a difference if the ColumnDataHolder could also be used to collect data that will make up new columns (so what (Typed)ColumnDataCollector does).
This required migrating to the primitive ArrayLists of fastutil:
I made a wrapper around all primitive arraylists (which, yes (un)boxes the values it works with, but stores them primitively at least) that can be used as a normal mutable list. If given no type, the first element entered will dictate it. Null values are not allowed.
ColumnDataHolderImpl now takes this PrimitiveArrayList wrapper as its base list, but it can fall back to a normal ArrayList/MutableList when needed. The strictTypes argument can be set to true to prevent this fallback to happen, but usually it's allowed.
If the primitive arraylist is in use, nullIndices keeps track of the null values in the data and zeroValue will be put in the primitive arraylist instead.
ColumnDataCollector now uses ColumnDataHolder to collect its values. When the result of this is turned into a column, no conversion is necessary, since it's a ColumnDataHolder already :).
And now for the test results:
5M rows, mutable ColumnDataHolder, also in Column Data Collector
⌌-------------------------------------------------------------------⌍
|  |                  type|     creation|    processing|        size|
|--|----------------------|-------------|--------------|------------|
| 0|             COLLECTOR| 5.811827943s|  2.642763677s| 379,996,177|
| 1|        LIST_WITH_NULL| 3.856582576s|  3.515039598s| 372,159,419|
| 2| BOXED_ARRAY_WITH_NULL| 4.368591388s|  4.029615844s| 372,119,758|
| 3|         NON_PRIMITIVE| 4.674218094s|  4.254802090s| 492,129,366|
| 4|                  LIST| 1.026079164s|  9.910889437s| 132,255,918|
| 5|          DOUBLE_ARRAY| 393.596507ms| 10.135781208s| 132,201,040|
| 6|           BOXED_ARRAY| 652.903191ms| 10.343283330s| 132,197,921|
⌎-------------------------------------------------------------------⌏

and on master:
⌌-----------------------------------------------------------⌍
|  |           type|     creation|   processing|        size|
|--|---------------|-------------|-------------|------------|
| 0| LIST_WITH_NULL| 907.783588ms| 1.995115957s| 250,323,646|
| 1|      COLLECTOR| 2.318079639s| 2.004851234s| 254,182,020|
| 2|  NON_PRIMITIVE| 620.808474ms| 3.236005222s| 250,482,091|
| 3|           LIST| 645.147782ms| 8.784381588s| 430,039,760|
⌎-----------------------------------------------------------⌏

Let's look at the sizes first, as that result is the easier to explain. Using CDH, we get the smallest sizes for non-null values: 132MB versus 250MB up-to 430MB. This does come with a performance hit
WIP.... TODO...


Sky Visually Bugs When Auto Exposure Very High

Godot version
4.0 Stable
System information
Windows 11, Nvidia RTX4070ti, AMD Ryzen7700x
Issue description
Procedural and Physical sky environments will show visual bugs when set to a low exposure (around 1000 nits) and Camera Attributes Physical/Practical Auto Exposure is turned on. This does not occur when using the ISO expsoure slider to bring the exposure up to a similar level.

Steps to reproduce

Add a physical/procedural sky
Set the exposure very low in physical units (1000 nits or so)
Set Camera Attributes Practical/Physical to Auto Exposure and attach this resource to the World Environment

Scene with all appropriate values already provided in the MPR.
Minimal reproduction project
SkyExposureBug.zip

Turn off Debanding in the Sky Shaders, the Sky Shader Debanding isn't taking Exposure into account (aside from maybe the static value given) afaik.

Ah yeah, turning debanding off does the trick. Of course you then have pulsating banding artifacts as the exposure changes, but nice to have a fallback option in the meantime. Thanks!

Duplicate of https://github.com/godotengine/godot/issues/74140.


OpenAI API available in the opentrons-ai-server

Overview
This PR introduces a structured pattern for handling requests and responses within the lambda. It demonstrates actual communication with OpenAI, starting from the lambda and extending back to the client. Additionally, the endpoint is secured, requiring a JWT bearer token for access.

Details:

Client for Testing: Established a dedicated live client to facilitate testing.
Testing: Developed tests that exercise the client and all endpoints.

Status

[x] Deployed to dev and live tested make build deploy test-live ENV=dev AWS_PROFILE=the-profile
[x] Deployed to sandbox  and live tested make build deploy test-live ENV=sandbox AWS_PROFILE=the-profile
[x] make live-client with fake=false works on sandbox
[x] make live client with fake=false works on dev

[!NOTE]
to exercise the client reach out to @y3rsh for the test.env you need

Latest commit is deployed on sandbox and dev.  All live tests pass including the new ones on both environments.
Addressed all feedback and made the frozen data class conversion.
Merging once CI finishes.


Converter.convert works exactly twice

I have an api, that just passes an html string, which is then passed to this

        static public byte[] HtmlToPdf(string html)
        {
            var converter = new BasicConverter(new PdfTools());
            var doc = new HtmlToPdfDocument()
            {
                GlobalSettings = {
                    ColorMode = ColorMode.Color,
                    Orientation = Orientation.Portrait,
                    PaperSize = PaperKind.A4Plus
                },
                Objects = {
                    new ObjectSettings()
                    {
                        PagesCount = true,
                        HtmlContent = html,
                        WebSettings = {DefaultEncoding = "utf-8"}
                    }
                }
            };
            return converter.Convert(doc); // <--- hangs here on 3rd time called
        }

This call only works twice though?? After the second time this method has been invoked it will just hangs on the converter.Convert() call. Any idea's? Thanks.

You must declare it as singleton. That way native library is loaded you once.

@rdvojmoc Thank you


[teleMelody] English Lyrics' Syllables in Inference

Hi, I noticed that in the inference part, syllable-level lyrics are required. So how could we get the syntax of the correct syllables? Thanks.

You can get  syllables with the help of phonemizer (backend: festival)

Hi, I was using phonemizer to get syllable-level lyrics. I got difference between my output and syllable example.
Could you please provide the settings of phone , word and syllable?
Here is the code I use:
phn = phonemize(
    text,
    language='en-us',
    backend='festival',
    separator=Separator(phone='_', word=' ', syllable='@'),
    strip=True,
    preserve_punctuation=True,
    njobs=4
)

@plusoneee
separator=Separator(phone='_', word=' ', syllable=' @@'),

@BILLXZY1215 can we generate Lyrics to song from it?


Incorrect token location in 'Rebuild tokens article'

Hi,
https://docs.microsoft.com/en-us/troubleshoot/windows-server/deployment/rebuild-tokens-dotdat-file
Windows Server 2012 and Windows Server 2012 R2 locations are incorrect,
Correct ones are,
Windows Server 2012,
"%Systemdrive%\Windows\System32\spp\store\tokens.dat"
Windows Server 2012 R2,
"%Systemdrive%\Windows\System32\spp\store\2.0\tokens.dat"

Please fix it. Thanks.

@WindowsAddict We are still investigating this. Thank you for your feedback.

It is now updated. Thanks for the feedback.


[LIBCLOUD-813] create record and update record was not working

Create record and update record issues were fixed
Description
Link to the bug report: https://issues.apache.org/jira/browse/LIBCLOUD-813
Following changes were required to get those working:

Priority entry exists only at MX and SRV records
Content type of submitted data had to be application/json
Data parameter of connection request has to be string
Only MX and SRV records have pririoty. Cotent-type for data has to be json.  data param of connection request must be string, changed that.

Status

done, ready for review

Checklist (tick everything that applies)

[X ] Code linting (required, can be done after the PR checks)
[NA ] Documentation
[X] Tests - executed
[ NA] ICLA (required for bigger changes)

Thanks, the changes look good to me.
If you get a chance it would also be good to add some tests which verify that the payload is indeed correct (you would need to assert this into the MockHttp class methods).

Actually all tests should be re-done because they didn't notice any critical bugs. Unfortunately I don't have time for that at the moment. LIBCLOUD-811 and -813 delayed me too much with my work.

LGTM

@teemuvesala Yeah, I agree.
I recently also enabled pylint so this should also help with catching at least part of the similar issues in the future.


Missing references in example

Hi, I just installed this via Twinpack and tried to run the example code, but I am missing some references or libraries maybe?
MAX_STRINGLENGTH
Constants.FifoOverhead
LogLevels.Debug
All of these are red and not recognized by Twincat. Is there something I am missing?

Update: I guess MAX_STRING_LENGTH is the correct use, but I am still stuck with the other two errors.

Hi, thanks for reaching out!
I'm on holiday this week and have limited access to the repo. I'll check it in detail next week.
I guess you're right with MAX-STRING_LENGHT. I'll update the documentation.
I'm not sure about the other two references. They are included in the project und should be in the library on Twinpack as well.
Could you clone the repo and build the library? The version here on Github is newer than the one one Twinpack.

Cloning the repo from GitHub fixed the issue, thanks for your fast reply!
One lib had version 0.2.2 and the other <IP_ADDRESS> so I thought they were the same at first.

I'm only updating the version when I'm creating a new release, that's why they are the same. The version on Github is still work-in-progess since I'm currently adopting the Zeugwerk naming conventions. Once I'm finished (soon) I'll create a new release and push it to Twinpack.
The versions <IP_ADDRESS> and 0.2.2 should be the same - either Beckhoff or Twinpack required the additional digit, I don't remember which it was. Generally, I stick to semantic versioning and just add the additional .0 if neccessary.
I'm glad the issue could be resolved! Feel free to reach out if there are any questions regarding the library 😊


Create DNS entries for infra things like GitHub validation

TODO:

Tests

Superseded by https://github.com/quakeservices/master/pull/60


What is the difference between requestclosure and endpointclosure?

What is the difference between requestclosure and endpointclosure?  Are they technically the same thing? They look very similar.
What are the different circumstances in which on would utilize them?
Can they both be used together on the same provider?
The definition I'm getting from the following is that requestclosures sort of wrap around the endpoint? I'm trying to find a more concrete definition to distinguish the two. Thanks!
The next optional initializer parameter is requestClosure, which resolves an Endpoint to an actual NSURLRequest. Again, check out the Endpoints documentation for how and why you'd do this

Is there some sort of precedence that request closures follows after endpoint closures, or vice versa?

Hey there! I'll do my best to help you distinguish them 😉
EndpointClosure defines how to map TargetType to Endpoint. RequestClosure on the other hand, resolves Endpoint into NSURLRequest (or Error if the request shouldn't be performed). You can use both on the same provider, there is EndpointClosure and after RequestClosure. More specifically:
In the EndpointClosure you can customize endpoint's parameterEncoding, headers or additional parameters and more if you want. There you can setup things your API needs in the headers or parameters, that should go globally. You can also stub the statusCode so it returns errors instead of 200 for testing purposes.
Then, when you have the Endpoint created, there is that RequestClosure. You are moments before the request. Here you can change things that you want in NSURLRequest, but also you can perform asynchronous token fetch, and if it fails you can stop the request as well (and this is the place for it).
There is also great documentation about the topic here. If you find something hard to understand, you are more than welcome to make an issue or pull request if you know how to fix it.
Hope it helps! If you have more questions, let us know! 🐼

Great answer, @sunshinejr. @rlam3 let us know what else we can clarify, we're always looking for ways to improve our documentation!

@ashfurrow Would love to see more on authentication documentation using OAuth/JWT and how to store and mange tokens to be integrated with Moya.
Because checking if a token is expired and updating the token prior to firing off an authenticated request is a synchronous task. I would like to see a proper way for authenticated requests to be organized with the use of keychain libraries like Locksmith.swift to manage tokens.
Thanks!

Hi @rlam3, thanks for opening the issue. We actually have some auth-specific documentation here I wanted to make sure you were aware of; the request closure has been specifically designed with OAuth and other forms of asynchronous authentication in mind. If you have any suggestions on ways to improve our documentation, please send a pull request and we can take it from there.

@ashfurrow thanks for the pointers to the authentication/oauth posts. I'm still a bit stuck on the point on how to actually allow moya refresh an access token prior to firing off another authenticated request.
I've been poking around the following code from eidolon and ello...
https://github.com/artsy/eidolon/blob/master/Kiosk/App/Networking/Networking.swift
https://github.com/ello/ello-ios/blob/master/Sources/Networking/ElloProvider.swift
I see some similarities but also many diffferences. For instance, they are using a state machine to deal with authenticated requests. But how is eidolon checking if the token is expired and updating the access_token on the client side?
I saw the following piece of code, but this doesn't require the user credentials to return the token...
https://github.com/artsy/eidolon/blob/master/Kiosk/App/Networking/Networking.swift#L51-L83
How is the access_token refreshed? Many Thanks!

You found the code that does the refreshing, further down that file you'll see the code that calls the fetching code: https://github.com/artsy/eidolon/blob/a7bb061c89cd4bed44d956b1376909ca0e72060b/Kiosk/App/Networking/Networking.swift#L87-L94
Basically, the XAppTokenRequest function's Observable always returns a valid token (whether it was a cached valid token, or a newly fetched token). Then we use flatMap to turn that Observable into one that represents the actual network call we want to make. Does that make sense?

Hey @ashfurrow. I like that approach! I was thinking of something similar myself. I had a few of questions for you:
I assume you are using NSUserDefaults for persistence between app launches. That being said, I don't see a .synchronize() call anywhere, so are you just relying on the periodic automatic synchronization? It also looks like AppDelegate clears out the token values from user defaults at launch. If that is the case, then is using the defaults system as a on-disk cache useful at all? Is it just being used as an in-memory cache? If so, wouldn't you get the same effect by giving the XAppToken a static var to store an in-memory version of the current token? As much as I hate that sort of global state, it doesn't seem worse and is as testable as NSUserDefaults. Sorry if I am completely misunderstand the intention here. 😬
Also, could you point me to where in the code you inject the tokens into the requests? I'm really interested in using a similar pattern, but this is my first go around with Moya and that's one of the last pieces of the puzzle for me. Thanks!

Yup, don't need to worry about synchronizing NSUserDefaults manually, it does it for you. And worst case, it looses the token and just fetches a new one. We clear them out just for consistency's sake. NSUserDefaults is just a convenient place to put them. We inject the token here: https://github.com/artsy/eidolon/blob/a7bb061c89cd4bed44d956b1376909ca0e72060b/Kiosk/App/Networking/Networking.swift#L132

@ashfurrow Is XAppTokenRequest different from a normal acess_token? I'm a bit confused here. Or is XAppTokenRequest supposed to request back a new JWT?

We don't use a JWT in that app, but the principle is the same. That's where you would add any tokens as HTTP headers, or sign the request using Heimdall or whatever for OAuth.

@ashfurrow This may not be the right thread to ask but I'm a little confused on how to retrieve the auth token from the response headers and was hoping you'd be able to help me understand how to access it?

Good question; the response object contains the URLResponse which has the headers you can access.

Awww thank you! My problem was I had to cast response.response as? NSHTTPURLResponse before it allowed me to use the .allHeaderFields["..."] function on it

Cool! Sounds like your issue was resolved, so I'm going to close this. Please feel free to re-open if that's not the case, thanks again!


Viewer does not work with some valid json data

Found several examples of valid json that are not displayed in the viewer. One example is with the EBI-9008283 complex. The json provided to the viewer can be found: http://wwwdev.ebi.ac.uk/intact/complex-ws/export/EBI-9008283

Found several examples of valid json that are not displayed in the viewer.

OK, pass on links to json files that aren't working and I'll try to fix
the problems.

One example is with the EBI-9008283 complex. The json provided to the
viewer can be found:
http://wwwdev.ebi.ac.uk/intact/complex-ws/export/EBI-9008283

OK - thanks. This one should be working now. The problem was that the
viewer had never encountered the "otherFeatures" attribute before. It
now reads this attribute.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Sorry - I should have said that this is fixed in the master branch of
the colin-combe/interaction-viewer repository. It hasn't been pulled
into MICommunity repo yet. I will make a pull request.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

Closing? I think this is what we said in meeting - we can reopen when we find other json's that aren't working (at the moment I don't know of any).


GH-35266: [CI][GLib][Parquet] Omit gparquet_column_chunk_metadata_equal() test

Rationale for this change
Because it's not stable on macOS.
What changes are included in this PR?
We omit the test for now like GH-20207.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

Closes: #35266

+1


ARTEMIS-522 fix AMQP ANON advert

This looks to still be somewhat incorrect as the order of SASL mechanism is meant to be given from most to least secure which looks to be the opposite of what will be done here.


Edge occassionally shows a "set up/signin" modal after startup, causing testcafe to fail

What is your Scenario?
Using Edge with native automation enabled.
What is the Current behavior?
Occassionally [1] immediately after testcafe starts Edge, a modal appears regarding some profile setup/signin (see screenshot).
This subsequently fails the testrun, as not even the http://localhost:4300/browser/connect/* url is loaded, due to the modal blocking the browser.
[1] sometimes as frequent as every second run, other times as rarely as every ~20th run
What is the Expected behavior?
I expect no modal to appear and that Edge loads the page I want to test.
 So for testing purposes using any page is fine, i.e. https://testcafe.io
What is your TestCafe test code?
fixture('test');
test('edge', async (tc) => {
  await tc.navigateTo('https://testcafe.io');
  await tc.expect(true).ok();
});

Your complete configuration file
// no specific configuration needed, fails with defaults

Your complete test report
Live mode is enabled.
TestCafe now watches source files and reruns
the tests once the changes are saved.

You can use the following keys in the terminal:
'Ctrl+S' - stops the test run;
'Ctrl+R' - restarts the test run;
'Ctrl+W' - enables/disables watching files;
'Ctrl+C' - quits live mode and closes the browsers.

Watching the following files:
  .\edge.test.js

Stopping TestCafe live mode...

Make changes to the source files or press Ctrl+R to restart the test run.
ERROR Unable to open the "edge:" browser due to the following error:

TypeError: Cannot read properties of undefined (reading 'Fetch')
    at NativeAutomationRequestPipeline.start (.\node_modules\testcafe\src\native-automation\request-pipeline\index.ts:387:28)
    at NativeAutomation.start (.\node_modules\testcafe\src\native-automation\index.ts:46:29)
    at BrowserProviderPluginHost._setupNativeAutomation (.\node_modules\testcafe\src\browser\provider\built-in\dedicated\chrome\index.js:63:32)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at BrowserProviderPluginHost.openBrowser (.\node_modules\testcafe\src\browser\provider\built-in\dedicated\chrome\index.js:109:13)
    at BrowserProvider.openBrowser (.\node_modules\testcafe\src\browser\provider\index.ts:326:9)
    at BrowserConnection._runBrowser (.\node_modules\testcafe\src\browser\connection\index.ts:279:13)

Type "testcafe -h" for help.

Screenshots

Steps to Reproduce

run testcafe edge edge.test.js -L
observe the modal interfering with test execution

TestCafe version
3.2.0
Node.js version
18.12.0
Command-line arguments
testcafe edge edge.test.js
Browser name(s) and version(s)
Edge 122.0.2365.52
Platform(s) and version(s)
Windows 11 23H2
Other
No response

Hello @christian-fischer,
We can't reproduce the issue on our machines ( windows 10-11 / nodeJS 18-20 / Edge 122.0.2365.52-59 / testcafe 3.2 - 3.5).
Could you please try to reproduce the issue on other machines?
Perhaps, you can specify details that can help us reproduce the problematic behavior.

Hi @PavelMor25
when I tried reproducing this, it only happened occasionally - so I had to execute the command several times to get one failing run due to the described issue.
I'm not sure how edge determines when to show this modal dialog or not - maybe there are pre-requisites regarding the windows-account?
As testcafe controls the profile in native automation, maybe it's possible to set some edge policy? The HideFirstRunExperience` policy sounds promising in this regard to suppress this modal dialog.


Some neat picks

This PR adds two modifications:

Add NaiveDateTime to Value conversion
Use local dependencies of dao and codegen. This is important because currently rustorm depends on crate.io distributed dao & codegen. This makes depending on the git branch impossible. Thus generally considered as anti-pattern.

By the way, [replace] is not used when rustorm is introduced as a lib dependency. So it's also removed.

My setup is rustorm is a part of another bigger project diwata hence the replace is working on my end. This change would make rustorm be used independently.
Thank you for the PRs

@ivanceras hey, after the new release I realized that codegen is also using hard-coded version of dao. A PR is too heavy for this. Maybe you could change that too, thanks

@ivanceras also please release a new version of rustorm-dao, thanks


New Term request and coordination

I'm working on an ontology of core ecological terms (ecocore). I need a "food resource" class that would be a subclass of resource in SDGIO. Any preferences for how I do this?
https://github.com/EcologicalSemantics/ecocore

Is there a way to include an axiom in FOODON food material to say that it has role some 'resource role' (SDGIO_00010017)?

I'm happy to accommodate, but curious what adding that role accomplishes. There's discussion on OBI at moment about what roles do (https://github.com/obi-ontology/obi/issues/890) and actually how to avoid them in the future. On a philosophical note, I've grudgingly accepted roles due to the momentum of their usage.  My own take is that naming that something has a role (visa vis something else, implicitly) is a shorthand for saying that something has such and such a functional capability. So I've been friendly to defining that a material / class of material has some capability (functionality), e.g. to provide nourishment (to object classes XYZ?), instead. (The other use of "role" is more human-centric - the granting by some authoritative agency the right to offer some service, like being a doctor; that too also entails the capability of performing some functionality (and malpractice insurance!) ).

@diatomsRcool any update on this needed?

@Public-Health-Bioinformatics either way is fine I think, as long as it's aligned to environmental material

@diatomsRcool @Public-Health-Bioinformatics.
Functions and roles are distinct, but both are realisable entities.
Roles are more externally grounded. Functions are the result of evolution or design. It feels a bit strange to say that the providing food is a function of an organism (one would evolve away from that in most cases, unless being eaten is adaptive) . It's also a bit odd to say that foodness is a role.
In SDGIO, I think role makes sense for resources, as humans assign resourceness to things for economic reasons. There's nothing about materials like bauxite that inherently disposes them to aluminum production.
In ecology, this seems more like a disposition (more internally grounded) . Organisms realise there disposition to nourish other organisms when consumed. This doesn't hold for some things considered "food" in the vocabs FOODON works with, which could be nutritionless but which have been assigned a food role by humans.
Perhaps we need "disposition to provide nourishment to an organism " and related classes under disposition to satisfy raw (hehe) ecology semantics. We would also have "food role " for things that wouldn't be food in the biological sense, but are in the regulatory sense.
But the question is, what do we need it for in ECOCORE? I can imagine these realisables being useful for inference. Chris often suggests to focus on the process semantics (inputs outputs etc; e.g. heterotrophy has_input some "organic material") first. Those axioms often provide enough to build equivalence axioms for inference without resorting to realisables. Would that be reasonable @diatomsRcool ?

Thanks Pier for the distinction between externally grounded roles and functions as result of evolution/design, that helps. (Humans do intervene in evolution to promote food production in organisms, even to the point where such orgs. can't reproduce naturally, but lets skirt that for now.)
I like that idea of focusing on process semantics, then possibly finding abstractions. If I grok, it allows us to avoid the problematic combination bomb of A 'has food role with respect to' B by instead focusing on:

what processes can be applied to A (material separation - milking, picking fruit, harvesting, cutting, preserving, fermenting, external storage, external digestion) to output material entities of certain kinds. (A "preprocessing" of food where it isn't consumed directly?)
what processes (functions) can B invoke (mastication, osmosis, internal storage, digestion ...) for consuming (taking as input) food materials of certain kinds (fats, carbohydrates, nutrients, ... ). These could be organized by trophic consumer type?! (any biologists out there know way more than I do about this!)

OK. Makes sense. I think.


Fix broken link for Ansible install

The Ansible role we're pointing to was updated, the URL has changed.

"Pull requests that don’t have one approved review, with no changes requested can’t be merged on a phone" Any way to change this?


Sortable not working inside iframe in safari

When sortable library is used inside a iframe in safari, the draggable element is not working as expected as in other browsers. Is there any workaround.
Open this in safari browser.
The element which is dragged is far away from the cursor pointer
Demo URL:
http://jsbin.com/cagujugido/edit?html,js,output

Just encountered the same issue myself. I believe this is a bug with Safari, you can test it by not running Sortable and instead just setting draggable="true" on an element - it will still show the same behaviour.

Just to update this, the bug was fixed in Safari some time ago so the issue can be closed now.


Revert "Binary patching of build prefixes"

Reverts Homebrew/brew#12534

Review period skipped due to critical label.


s3_auth_v4: update default region map

Update the default region mapping based on the latest changes in AWS Regions and Endpoints docs
May be if one day AWS naming/mapping becomes 100% consistent we could just extract / calculate the right region from hostname.
The default region mapping can be overridden by using --v4-region-map parameter (more info in the s3 plugin docs).

[approve ci clang-analyzer]


fix(rpc): set effective gas price

ref #2457
set effective gas price
@Rjected I'm not sure this is correct:
https://github.com/paradigmxyz/reth/blob/412b46d39a15551ef65e4ad19ac9830b64f4f3bf/crates/primitives/src/transaction/mod.rs#L372-L384
this is currently used in fee_history, which perhaps requires this that way, but this is not what geth calls effectiveGasPrice:
https://github.com/ethereum/go-ethereum/blob/8f373227ac481685148019b21ef9e1478d3ba609/core/types/tx_dynamic_fee.go#L101-L110

yep, tracked separetly in #2571


Ignore 'LoadBalancerNotFound' errors when getting ELB tags

Fixes https://github.com/capitalone/cloud-custodian/issues/247

close, not quite though, we should filter the resource out of the collection if it no longer exists, this just let's some other filter/action bomb later.. where as what we want is non existant resources refs to get dropped.

Closing - See discussion in https://github.com/capitalone/cloud-custodian/issues/247.


Linux server crash on start in swarm mode

command to start the service:
docker service create --name test_sql_server --env ACCEPT_EULA=Y -e 'SA_PASSWORD=yourStrong(!)Password' --publish 1433:1433 microsoft/mssql-server-linux

docker logs:
This is an evaluation version.  There are [127] days left in the evaluation period.
This program has encountered a fatal error and cannot continue running.
The following diagnostic information is available:

       Reason: 0x00000003
      Message: processorId < static_cast<int>(GetProcessorCount())
   Stacktrace: 000055bb23c8be16 000055bb23c8bf5e 000055bb23c80b6a
               000055bb23ca4497 000055bb23c77f8f 00007f0483f33830
               000055bb23c763f9
      Process: 9 - sqlservr
       Thread: 9
  Instance Id: 461a5431-77dc-4b3c-8808-0a5c2dd4a7ee
     Crash Id: 46e079a6-3230-4ccf-b957-54b4b8f64ab8
  Build stamp: 0a7fe2a13669acfb48c31a17e752ad495ef645f7e730a69404f903f749c677d0

Capturing core dump and information...
/opt/mssql/bin/crash-support-functions.sh: line 337: hash: lsof: not found
No journal files were found.
No journal files were found.
Attempting to capture a dump with paldumper
WARNING: Capture attempt failure detected
Attempting to capture a filtered dump with paldumper
WARNING: Attempt to capture dump failed.  Reference /var/opt/mssql/log/core.sqlservr.9.temp/log/paldumper-debug.log for details
Attempting to capture a dump with gdb
Core dump and information are being compressed in the background. When complete,
they can be found in the following location:
  /var/opt/mssql/log/core.sqlservr.07_06_2017_14_53_48.9.tbz2

I'm not able to pull the file because the container does not exist after crash.
Enviorment:
$ uname -a
Linux docker0102 4.10.0-21-generic #23-Ubuntu SMP Fri Apr 28 16:14:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 17.04
Release:	17.04
Codename:	zesty

Do you have remote NFS storage for your swarm hosts?

No only local drives

This also happens when running in classic docker mode. I have two hosts and it works with only one.
Exception says something about processor, and they do differ in CPU installed...
Working
$ uname -a
Linux <somehost> 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux

$ docker version
Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)

$ cat /proc/cpuinfo
model name	: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz

Not-Working
$ uname -a
Linux <otherhost> 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux

$ docker version
Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)

$ cat /proc/cpuinfo
model name	: Intel(R) Xeon(R) CPU           X5672  @ 3.20GHz

@SPodjasek for research, did the same on my machine and server.
And looks like the sql server has issues with he X5600 CPU generation.


Add extension point to allow developers to provide custom logic when validating User Data

This PR adds an extension point to FormsAuthenticationService that allows module developers to place custom values into User Data and then provide custom logic to be able to ensure that this User Data value is still valid during the GetAuthenticatedUser method.
The logic to ensure that auth cookies are tenant aware has been abstracted into one of these providers.
Example use cases would be where auth implementation has been switched out to a system with a token that needs to be validated during GetAuthenticatedUser.

@paynecrl97, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, DNFBOT;

I don't think this class needs more extensibility. You can already replace IAuthenticationService by your own implementation which would contain the logic. You are adding a way to provide some variance to an implementation detail, i.e. the fact that the cookie contains custom values.
I would suggest that you create a custom service containing the tenant logic.


prometheus_scraping flag is set to false by default in the osm-config configmap

Bug description:
The flag prometheus_scraping is set to false by default in the osm-config configmap. Because of this Azmon agent is unable to scrape the endpoints unless it is set to true and the deployments are recreated.
Affected area (please mark with X where applicable):

Install                    [ ]
SMI Traffic Access Policy  [ ]
SMI Traffic Specs Policy   [ ]
SMI Traffic Split Policy   [ ]
Permissive Traffic Policy  [ ]
Ingress                    [ ]
Egress                     [ ]
Envoy Control Plane        [ ]
CLI Tool                   [ ]
Metrics                    [ ]
Certificate Management     [ ]
Sidecar Injection          [ ]
Logging                    [ ]
Debugging                  [ ]
Tests                      [ ]
Demo                       [ ]
CI System                  [ ]

Expected behavior:
prometheus_scraping should be set to true (https://github.com/openservicemesh/osm/blob/main/docs/content/docs/tasks_usage/metrics.md#list-of-prerequisites-for-byo-prometheus)
Steps to reproduce the bug (as precisely as possible):
How was OSM installed?:
AKS Addon
Environment:

OSM version (use osm version): 0.8.2
Kubernetes version (use kubectl version):1.18.14
Size of cluster (number of worker nodes in the cluster):5 , 3-linux and 2 windows

Hey @rashmichandrashekar , I see prometheus_scraping set to true by default:
https://github.com/openservicemesh/osm/blob/60b1a9282ceb35ff55cc21b82ac7bd192c5b9d7a/charts/osm/values.yaml#L69-L70
https://github.com/openservicemesh/osm/blob/60b1a9282ceb35ff55cc21b82ac7bd192c5b9d7a/charts/osm/templates/osm-configmap.yaml#L12
It's likely this has been set to false in your environment.

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to https://github.com/openservicemesh/osm/issues/3062#issuecomment-812007007 for more details.
We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to #3062 (comment) for more details.
We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

This is a bug with the AKS OSM addon. I will follow up with an internal tracking bug. Thanks Shashank.

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to #3062 (comment) for more details.
We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

This is a bug with the AKS OSM addon. I will follow up with an internal tracking bug. Thanks Shashank.

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to #3062 (comment) for more details.
We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

> > This is a bug with the AKS OSM addon. I will follow up with an internal tracking bug. Thanks Shashank.

Discussed with @rashmichandrashekar , the scraping option was set to false by default in their environment, but this is not a bug. Refer to #3062 (comment) for more details.
We have figured out the cause for this - the scraping was disabled by default in the Azmon test environment.

 This is a bug with the AKS OSM addon. I will follow up with an internal tracking bug. Thanks Shashank.


Add new FAIL_*_PROPERTY macros

When unit testing drivers, I've noticed that I need a lot of procedural code to describe my expectations on what the result of driving an item is. Procedural code is clunky for describing temporal behavior; SVAs are a much better fit.
One could use the 'expect' construct to "assert" that a certain property holds:
property some_property;
// business code
endpropery
`SVTEST(some_test)
// set up test
expect (some_property)
else
FAIL_IF(1) SVTEST_END
The 'expect(...)' stuff could be encapsulated in a `FAIL_UNLESS_PROPERTY(...) macro.
I'm not sure about support for 'expect' across EDA vendors. All it takes is a single one that doesn't support it and the code won't compile anymore.
I'll blog about this on my site and come up with a proof of concept.

yes please. I think this would be a good idea. I know Srinivasan Venkataramanan is working on the svunit+sva now for dvcon india. he might be a good guy (at the right time) to team up with on something like this.
as an aside, think about doing this as a plugin. I'm not married to the existing asserts so if you come up with wildly different, simple and way better, I'm good with that.

Extra clarification: This isn't about verifying SVAs (what Srini is doing I think). It's about writing unit test expectations as SVAs

yup. got it. just thought there may be potential for 2 good ideas to somehow come together. maybe/maybe not.


feat: Add logging with tracing

This PR adds the setup for logging using the tracing module.
After init_logging is called, a log file will be created in one of these locations (per XDG standard):

or in a folder in the environment variable JULIAUP_DATA_HOME or in the current directory.
tracing::info! or tracing::debug! can be used to log into the log file.
Additionally, RUST_LOG environment variable can be used to control the logs for the various modules or dependencies.

If we were to use those locations, then on Windows it should go into the AppData\Local not AppData\Roaming folder.
BUT, given that Julia generally has not adopted XDG at this point and has a standard log file location of .julia/logs we should just also put them there (ideally by checking the value of JULIAUP_DEPOT_PATH).
The other question I have is how does this handle concurrency? Generally, we need a solution where multiple processes all write logs at the same time. This here doesn't seem to handle that scenario?
And finally, this only adds the infrastructure, but never actually calls the init stuff, right? I think in general we probably want no logging by default but only opt into it via some configuration or something like that?

I can't say I really see a downside of on-by-default logging, it could be nice to have a record of what versions are installed/uninstalled.
How I wish Julia itself actually paid attention to platform standards instead of fighting them...

Well, the really Windows native solution would be to use the platform logic infrastructure instead of log files. I'm pretty sure tracing has support for that. But at the end of the day I think it is easier if we just stick with the Julia convention here.


[IOS] when camera disappear, my other screen will auto closed, just leave the root screen.

Hi, my problem is When I open the camera, it automatically closes all my screens except the root screen. But i remember the old version[1.4.0] is working fine.
Compose Version: 1.5.0-rc01
Kotlin Version: 1.9.0
Gradle Version: 8.1.1
Precompose Version: 1.5.0-rc01
This is the Repository https://github.com/NakiriYuuzu/DebugKmm

Hello, how did you fix this. I'm having the same issue


Add Python 3.6 support

Closes #29

Coverage remained the same at 47.145% when pulling 5682dc1b18cffc4b34a09048d46546e729e2fb54 on scls19fr:py36 into 4f63fae2bf2b28974102191635a5d9b263748f69 on python-constraint:master.


can't run ee on debian stretch

I installed ee on debian jessie, then upgraded to debian stretch (testint). now ee won't run.
Please attach the output of following command when open a new support request.

[ ] lsb_release -a

No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.0 (stretch)
Release:	9.0
Codename:	stretch

[ ] ee -v
Traceback (most recent call last):
File "/usr/local/bin/ee", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3019, in
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3032, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 655, in _build_master
ws.require(requires)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 963, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ee==3.7.4' distribution was not found and is required by the application
[ ] ee info
[ ] wp --allow-root --info

Also unable to install it on debian testing: Executing apt-get update, please wait...
EasyEngine (ee) only support Ubuntu 12.04/14.04 and Debian 7.x/8.x
I realise that it's debian testing, however stretch is now in full freeze.

@jasonblewis EasyEngine (ee) only support Ubuntu 12.04/14.04 and Debian 7.x/8.x

@MiteshShah yes, I realise that. What I was trying to say is that supporting 9.x would be good as it's already in hard freeze and will be released soon (by some definition of soon)

@jasonblewis Nice idea, I was misunderstood here :(

Closing this issue for now. We'll soon release an update for supporting Debian 9.


Yes.
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
cargo xtest
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)

@bors-libra r+

:pushpin: Commit 54998c6 has been approved by wqfish

:hourglass: Testing commit 54998c64aedcef38b5b7ce0a95bc035aabbd2654 with merge f28a49e7d28be0d4ddd4468ba68e2f2243b52e3c...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: wqfish
Pushing f28a49e7d28be0d4ddd4468ba68e2f2243b52e3c to master...


Gemfile: restrict activesupport version range

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

This is mostly to prevent Dependabot picking 7.0 since that requires Ruby 2.7.

Review period skipped due to critical label.


Black bar when hillshading is active

When hillshading is active, a black bar (perhaps the white sausage equator known from legends?) always appears in my region:

It also appears on the hikeandbike.org map, from which the hillshading originates, i.e. it is not really a brouter issue. However, it is not beautiful and it is surprising that no one has noticed it. I'll try to contact the makers of the hikeandbike.org map, maybe they can fix the bug. If it concerns someone, the best solution is to choose a map that already offers hillshading, e.g. CyclOSM.

The hikeandbike hillshading layer is not available anymore (#475), so we switched to a different one recently.


Search bar

add search bar with auto updated tags from selected service,
auto completion is nice to have

added simple search bar in [d525c8c]
currently working on search bar with suggestions/auto completion

done


external-ca-example: Correct example swarmd command

Update this to reflect current --external-ca CLI option.
Also remove unnecessary overrides of defaults.

Current coverage is 55.15% (diff: 100%)

Merging #1824 into master will decrease coverage by 0.02%

@@             master      #1824   diff @@
==========================================
  Files           102        102
  Lines         17014      17014
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           9388       9384     -4
- Misses         6465       6472     +7
+ Partials       1161       1158     -3

Powered by Codecov. Last update 58197ab...ad35884

I think there may also be a reference to the same command in cmd/external-example/README.md.
Also, this is not related to your change, but it looks like the join command in that file is also outdated, since it requires a join token now and the messaging is different.  When I try to join as a worker, I get:
$  swarmd --log-level debug --listen-remote-api localhost:4343 --join-addr <IP_ADDRESS>:4242 --join-token SWMTKN-1-1wb6nfc2qvrmoto0reouman5fdy3141mq8deqrjb80p8zz6fv8-dlr7v1wnyvmh228ea93wc8cis
DEBU[0000] retrieved remote CA certificate: swarmkitstate/certificates/swarm-root-ca.crt  module=node
DEBU[0000] downloaded CA certificate                     module=node
DEBU[0000] no node credentials found in: swarmkitstate/certificates/swarm-node.crt  error="open node3/certificates/swarm-node.key: no such file or directory" module=node
DEBU[0000] new node credentials generated: swarmkitstate/certificates/swarm-node.crt  module="node/tls" node.id=bsetbn4854x3jaabfsl4rnm55 node.role=swarm-worker

Otherwise, LGTM!

I realized the -d . and --listen-control-api ./swarmd.sock options were intentional. These were there so swarmd would pick up the certificates generated by external-ca-example. I've readded these, and also updated the readme.
I think the reason you are seeing different messages from swarmd is because you are passing --log-level debug.

@aaronlehmann True, but without the log-level debug, I didn't see any certificate info, just
INFO[0000] node is ready

Previously I think it was logged at the Info level, and now it seems to be logged at the debug level.

I've removed the rest of the output from the readme.

Test failure will probably be fixed by #1823. Rebuilding.


Some Images do not load on Android - Tried to get ReactApplicationContext even though NativeModule wasn't instantiated with one

Some Images do not get displayed on Android, but React native does not show any errors. On iOS everything works as expected. When looking at the Android Studio logs, the following shows up:
Load failed for [http://<IP_ADDRESS>:8081/assets/?unstable_path=.%2Fsrc%2Fexpertcontent%2Fassets%2Fcare%2F10.jpg&platform=android&hash=86fbaa9c8104f6d9213ff18b59a5a15a] with dimensions [240x240]class
com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 root cause:java.lang.AssertionError(Tried to get ReactApplicationContext even though NativeModule wasn't instantiated with one)

Might be related to [https://github.com/dream-sports-labs/react-native-fast-image/issues/21] ?

@InkAndSteel Can you provide a reproducer.

@InkAndSteel Can you try the nightly build @d11/react-native-fast-image@nightly

Yayy, that fixed it! Thank you <3

Yayy, that fixed it! Thank you <3

Thanks for confirming
Will be publishing new release by tomorrow


Update privacy policies with a side-by-side TL;DR

People don't seem to reason that the only info that we collect on matrix.org HS is to deliver the service itself. or because we store HTTP logs.

Done as per https://github.com/vector-im/riot-meta/issues/132#issuecomment-392186296


re-LICENSE to GPLv3 and attribution

As stated in our MAS, all contributions from this project shal be licensed under GPLv3. We need to migrate this fork and file headers of changed files.
When doing this, attribution shall be for both PolkaDEX and Supercomputing Systems

// This file is part of Polkadex.
// Copyright (C) 2020-2021 Polkadex oü and Supercomputing Systems AG
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see https://www.gnu.org/licenses/.


switch cameras with button

i'm working to do a multiple camera setup for videos, the current way i'm doing it is by setting 4 cameras, and putting them in 1/4 of the screen, then capturing the image in obs and then switching to scenes wich are displaying the image in fullscreen, the only problem is that the resolution of the image is bad.
my idea is that u can switch cameras by binding a key on the controller or maybe by a fixed or random ammount of time

You can already do these - It just works slightly differently:
If you want to switch to a different camera manually, the indended way to do that is to use Custom Scenes. With that you can bind a specific set of Cameras to a keyboard key: https://github.com/kinsi55/CS_BeatSaber_Camera2/wiki/Scenes#custom-scenes
If you want to switch to a different camera automatically / randomly, what you are meant to do is not actually switch to a different camera, but to use a "Movement Script". You can specifc specific positions / rotations and FOV for a Camera to have at a specific point in time if it happens to use that Movement Script - To accomplish the randomness factor, you can use multiple scripts with different set of positions and rotations: https://github.com/kinsi55/CS_BeatSaber_Camera2/wiki/Movement-Scripts

ty so much ^•^, with the help of autohotkey pressing the keys in a sequence i actually managed to do that, ty really so much i was trying for ages QwQ https://youtu.be/EF25z3nUtEQ

You're welcome, however I would definitely advise you to look into movement scripts, it offers much more flexibility and is (once you get it) much easier 👍


Python 3.x support

I recently tried to make cython modules, yet the python scripts for setup are based on Python 2.7. Please could this added to the ReadMe.
Additionally, will this be moved over to Python 3 soon? For something which is using TensorFlow, a cutting edge framework, I believe we should be attempting to use the latest Python which at the moment is 3.6 ( Where TensorFlow has binaries for 3.6 ).

Note: I used Python 2to3 on setup.py and make then completes successfully. Whether this is accurate and correct, I'm not sure. I will test further, and maybe PR back.

I've used 2to3 on the whole project (setup.py was not enough), it does compile properly, but then I get an error in the demo:

Loaded network models/VGGnet_fast_rcnn_iter_70000.ckpt
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this message)
Traceback (most recent call last):
  File "/home/gdelaboulaye/pypano/venv/lib/python3.4/site-packages/tensorflow/python/ops/script_ops.py", line 82, in __call__
    ret = func(*args)
  File "/home/gdelaboulaye/faster-rcnn/Faster-RCNN_TF/tools/../lib/rpn_msr/proposal_layer_tf.py", line 48, in proposal_layer
    pre_nms_topN  = cfg[cfg_key].RPN_PRE_NMS_TOP_N
KeyError: b'TEST'
W tensorflow/core/framework/op_kernel.cc:993] Internal: Failed to run py callback pyfunc_0: see error log.
Traceback (most recent call last):
  File "/home/gdelaboulaye/pypano/venv/lib/python3.4/site-packages/tensorflow/python/client/session.py", line 1022, in _do_call
    return fn(*args)
  File "/home/gdelaboulaye/pypano/venv/lib/python3.4/site-packages/tensorflow/python/client/session.py", line 1004, in _run_fn
    status, run_metadata)
  File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__
    next(self.gen)
  File "/home/gdelaboulaye/pypano/venv/lib/python3.4/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InternalError: Failed to run py callback pyfunc_0: see error log.
	 [[Node: PyFunc = PyFunc[Tin=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_STRING, DT_INT32, DT_INT32], Tout=[DT_FLOAT], token="pyfunc_0", _device="/job:localhost/replica:0/task:0/cpu:0"](rpn_cls_prob_reshape/_99, rpn_bbox_pred/rpn_bbox_pred/_101, _recv_Placeholder_1_0, PyFunc/input_3, PyFunc/input_4, PyFunc/input_5)]]
	 [[Node: PyFunc/_103 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_228_PyFunc", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]()]]

which seems to be related to python 2.7 / python 3: see this link
Have yo got the same problem, or how did you solve it ?

Yes, same problem.

I got the same error, solved it with cfg_key = cfg_key.decode('utf-8') just before  pre_nms_topN  = cfg[cfg_key].RPN_PRE_NMS_TOP_N in ```
lib/rpn_msr/proposal_layer_tf.py", line 48, in proposal_layer
pre_nms_topN

@gdelab  while testing,I have a problem about 'pickle'. so ,i change it to open files in byte as you put it,however, another question occured"Ran out of input": File "./faster_rcnn/../lib/datasets/voc_eval.py", line 123, in voc_eval
with open(cachefile, 'rb') as f:
recs = pickle.load(f,encoding='bytes')
EOFError: Ran out of input
Have you meet this question?Thankyou very much!

No I've never seen that, sorry !

Additionally, I've just come back to this project. If 2to3 works on the entire project, why is it simply not in Python3.x as default.
I believe 2.x is obsolete and most things should be 3.x moving forwards. Is this something worth putting in a PR for?

@sheirving I have a same problem. Did you solve it?


Update his-update-center.md

Docs Build status updates of commit b0df12d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

his/his-update-center.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit dc65fa6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

his/his-update-center.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 044b6aa:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

his/his-update-center.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Handle errors more elegantly

Currently there are a number of spots where errors go unhandled when they should be.
Fetching the weather can throw an error and isn't handled.
There seems to be error when interacting with the Discord API here and there, we may want to handle that as well.
A full test on all commands should also be done to potentially find more spots.
Maybe even just look over all the code.  This could probably be done when #39 is being taken care of since we'll have to look over all the code for that anyway.

This issue has been somewhat taken care of by the upgrade to v13, but is still something that should be actively taken care of if any issues arise.


Try to fix Travis build

Fix Travis build and sh: 0: Can't open /etc/init.d/xvfb error

To maintainer: Please clear Travis cache

Thank you contributing, it seems this PR isn't necessary anymore.


Update Cocoapod to v5.1

As we prepare a public release for the first time using Realm Swift, we're having the the same threading issues that are fixed in v5.1.0. The pod is still reporting 5.0.3, can this be updated to v5.1.0? Thanks!

Apologies, looks like the team already did this, thanks!


Xmake does not produce shared.lib for windows shared library

Xmake Version
2.9.6
Operating System Version and Architecture
Windows 11 version 23H2
Describe Bug
I'm not very familiar with building for Windows, but from my understanding, when building a shared library on windows, the output should be a .dll file, and another .lib file is generated which contains symbols from the library?
From the output of the build command, the build dir contains:
+---.deps
|   +---shared
|   |   \---windows
|   |       \---x64
|   |           \---debug
|   |               |   shared.dll.d
|   |               |
|   |               \---sample_shared
|   |                       shared.cpp.obj.d
|   |
|   +---shared_main
|   |   \---windows
|   |       \---x64
|   |           \---debug
|   |               \---sample_shared
|   |                       main.cpp.obj.d
|
+---.gens
|   \---rules
|           plugin.compile_commands.autoupdate.d
|           plugin.compile_commands.autoupdate.lock
|
+---.objs
|   +---shared
|   |   \---windows
|   |       \---x64
|   |           \---debug
|   |               \---sample_shared
|   |                       shared.cpp.obj
|   |
|   +---shared_main
|   |   \---windows
|   |       \---x64
|   |           \---debug
|   |               \---sample_shared
|   |                       main.cpp.obj
|
\---windows
    \---x64
        \---debug
                shared.dll
                shared.ilk
                shared.pdb

And ahen I build shared_main, the link command looks like this:
[ 87%]: linking.debug shared_main.exe
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -libpath:build\windows\x64\debug -debug -pdb:build\windows\x64\debug\shared_main.pdb shared.lib -out:build\windows\x64\debug\shared_main.exe build\.objs\shared_main\windows\x64\debug\sample_shared\main.cpp.obj

It's looking for something called shared.lib, which obviously doesn't exist.
Expected Behavior
The build command for the shared lib should generate a .lib file?
Project Configuration
target ("shared")
    set_kind("shared")
    add_files("shared.cpp")

target ("shared_main")
    add_files("main.cpp")
    add_deps("shared")

Additional Information and Error Logs
shared.hpp
#pragma once

namespace foo {
  void foo();
}

shared.cpp
#include "shared.hpp"
#include <iostream>

namespace foo {
  void foo() {
    std::clog << "foobar" << std::endl;
  }
}

main.cpp
#include "shared.hpp"

auto main() -> int {
  foo::foo();
  return 0;
}

Build command used: xmake build -v shared_main

You're not actually exporting/importing (__declspec(dllexport/dllimport)) anything from the shared library, so the compiler doesn't generate a lib file.

@qudix thank you!
Like I said, I'm a total noob when it comes to Windows


Chrome request

Hello, thank you very much for putting this project together.
If it is possible would you or one of your supporters be able to get the Chrome extension/addon working? I have tried using Firefox but I frequently have delayed input issues while using Firefox specifically.
I would be willing to put up a bounty if anyone was willing to help with this, I was thinking around $20 (could also transfer tibia coins), which I hope isn't undervaluing anyone's time.
If this isn't the appropriate forum for such requests my apologies I'm new to Github.
Thelates - Amera

I added Chrome Flash Client support to the latest beta release, which you can download here. No need for any donations, I don't really like taking people's money because it makes me feel obligated to help resolve their issues even more than I already do.
I recommend enabling "Skip Duplicate Loot" and "Skip Duplicate Commands" in the "Settings" tab to avoid duplicate messages causing too many issues. It's not great, and for the best Tibialyzer experience I still recommend using the standalone client, but it should work reasonably well.

Thank you very much, it works like a champ on Chrome.


Adding a valid SIP address emits error

Trying to create a connection using this library this way
this.janusClient = new Janus.Client('sip:my-domain.com:5060');
    this.janusClient.createConnection('some_identity')
      .then(connection => {
        console.log(connection);
      })
      .catch(err => {
        console.log(err);
      });

and i get this error:
DOMException: Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'sip' is not allowed.
Error: Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. 'sip' is not allowed.
    at new W3CWebSocket (http://localhost:4300/vendor.js:291648:21)
    at http://localhost:4300/vendor.js:193132:21
    at Promise._execute (http://localhost:4300/vendor.js:160083:9)
    at Promise._resolveFromExecutor (http://localhost:4300/vendor.js:162224:18)
    at new Promise (http://localhost:4300/vendor.js:161820:10)
    at WebsocketConnection.open (http://localhost:4300/vendor.js:193131:10)
    at Connection.open (http://localhost:4300/vendor.js:190443:36)
    at Client.createConnection (http://localhost:4300/vendor.js:190333:21)
    at JanusService.push../src/app/soft-phone/shared/communication/janus.service.ts.JanusService.initialize (http://localhost:4300/main.js:89817:26)
    at CommunicationResolverService.push../src/app/soft-phone/shared/communication/communication-resolver.service.ts.CommunicationResolverService.initialize (http://localhost:4300/main.js:89665:35)
    at SafeSubscriber._next (http://localhost:4300/main.js:92714:40)
    at SafeSubscriber.__tryOrUnsub (http://localhost:4300/vendor.js:263956:16)
    at SafeSubscriber.next (http://localhost:4300/vendor.js:263894:22)
    at Subscriber._next (http://localhost:4300/vendor.js:263838:26)
    at Subscriber.next (http://localhost:4300/vendor.js:263815:18)
    at MapSubscriber._next (http://localhost:4300/vendor.js:269103:26)

Any help would be appreciated.

Hi there,
I have clarified the basic usage example in the README.

Make sure to have a Janus server running - including WebSocket support (see https://github.com/meetecho/janus-gateway/blob/master/README.md)
Connect to your janus instance, e.g.:

var janus = new Janus.Client('ws://localhost:8188', {
  token: 'token',
  apisecret: 'apisecret',
  keepalive: 'true'
});


Throw Error When PhotoDNA Response is Not 3000

PhotoDNA returns a HTTP 200 even when there's an error processing a request.  It returns its own status code in the response:

3000: OK
3002: Invalid or missing request parameter(s)
3004: Unknown scenario or unhandled error occurred while processing request
3206: The given file could not be verified as an image
3208: Image size in pixels is not within allowed range (minimum size is 160x160 pixels; maximum size is 4MB)

(Copied from teh docs)
We should throw an error when the PhotoDNA status code is not 3000.

I agree that the consumers should be notified of the PhotoDNA errors.  (It's especially relevant if it's the 4MB limit.)  The most important thing is that the consumers do not receive a false negative, which is the current behavior.

Hmm, still not sure what to do here... maybe add an isError: true to the callback request if the response !== 3000?


Error importing moment-timezone with ember-auto-import 2.6.2

After upgrading ember-auto-import from 2.6.1 to 2.6.2, the app has a runtime failure importing moment-timezone:
caught (in promise) Error: Could not find module `moment-timezone` imported from `ember-moment/services/moment.js`
    at missingModule (loader.js:247:1)
    at findModule (loader.js:258:1)
    at Module.findDeps (loader.js:168:1)
    at findModule (loader.js:262:1)
    at Module.findDeps (loader.js:168:1)
    at findModule (loader.js:262:1)
    at requireModule (loader.js:24:1)
    at ModuleRegistry.get (index.js:30:1)
    at Class._extractDefaultExport (index.js:464:1)
    at Class.resolveOther (index.js:126:1)

The app does not have a dependency on moment-timezone.

Are you using yarn or npm? Is it possible that the devDeps of ember-moment got installed, or some other dependency has brought in moment-timezone, and dependency hoisting my the package manager has caused an incorrect node_modules, making ember-moment think moment-timezone is there?
yarn why moment-timezone
npm ls moment-timezone

Other than that, a reproduction repo would be most helpful


Changing playback speed on Android causes MediaPlayer to unexpectedly start

This bug report applies to using the media player on Android.
If the audio player is currently paused, it appears that a call to the AudioPlayer SetSpeed method causes the audio player to unexpectedly start playing again. Stepping through the code, a couple of things stood out to me.
First, it looks like the line of code that starts the player playing is:

player.PlaybackParams = parms;

I don't see a parameter in the PlaybackParms class that would control the media player starting up. I guess maybe that's just the default when the MediaPlayer.PlaybackParams gets changed.
Second, it looks like there is an attempt later in the method to restart the media player if it was playing prior to changing the speed. That is kind of opposite to the problem I'm having.
		player.SeekTo((int)previousPosition);
		if (wasPlaying)
		{
			isPlaying = true;
			stopwatch.Start();
			player.Start();
		}

It is unclear if the above code is even effective because I believe none of the media player commands work until after the media player is prepared. So, at best it might or might not work depending on a race condition.
I would be interested if someone has more insight on this issue. Otherwise, my plan is to try a fix using the Prepared event in the android player to set the desired run state after the media player is prepared to accept commands. If my fix works, I'll issue a pull request and someone else can review the change to see if it makes sense.
Cheers.

So, this is the code that I wound up adding to the AutioPlayer[.android].SetSpeed method:

                // * Existing code *
  	// because we had to reset, we now restore the previous state of the audio player
  	player.SeekTo((int)previousPosition);
  	if (wasPlaying)
  	{
  		isPlaying = true;
  		stopwatch.Start();
  		player.Start();
  	}
                // * New code starts here *
  	else
  	{
  		player.Pause();
  	}

As a side note, it seems like the wasPlaying flag could be eliminated if the isPlaying flag is simply used to indicate the desired player state instead of setting it to false earlier in the method. However, there could be a reason it is coded the way it is, so I didn't mess with it.
Also, I was wrong thinking that this code should be run in a new method after the prepared event is fired as it seems to work just fine in the SetSpeed method.
Anyway, I'm not really an expert on this stuff, this is just what worked for me. Hopefully it will serve as a starting point if someone wants to make an official change to the library and close the bug report.


Add the option to auto generate 00-multus.conf

When --multus-conf-file=auto is used, 00-multus.conf will be
automatically generated from the CNI configuration file of the master
plugin (the first file in lexicographical order in cni-conf-dir).

Pull Request Test Coverage Report for Build 401

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 46.565%

Totals

Change from base Build 400:
0.0%

Covered Lines:
366

Relevant Lines:
786

💛  - Coveralls


Code-behind assignment of SelectedItem or SelectedIndex does not update selection in ListBox control.

Would it be possible to create a unit test that demonstrates this problem?

Since it's been nearly 2 years since this issue was opened without a repro, I'm going to close this issue.


API Down

Hello. I'm just checking in. It appears that https://some-random-api.ml/ is down. Is this temporary or is this a permanent thing? Thank you.

Its .com now due to issues with the old domain provider