Neo tests fail with NumPy 1.15.0's assert_array_equal

I'm finding that several tests are failing on Travis CI, depending on the version of NumPy installed on the test server. The problem is isolated to the latest NumPy, version 1.15.0. When the version of NumPy is not forced, it varies depending on the Python version. All of the tests that fail rely on NumPy's assert_array_equal.
I ran several tests to demo my findings. From master, I added stderr print statements so that Travis CI build logs would display the version of NumPy installed (search for "@@@@@" to find them quickly). I then tried building with and without forcing the version of NumPy.
NumPy version NOT forced:

Commit demoing behavior: 940c449
Travis CI report: https://travis-ci.com/jpgill86/python-neo/builds/82022219
Result: Python 2.7, 3.4, 3.6 pass because they install NumPy 1.12.1 (Py 3.4) or 1.13.3 (Py 2.7, 3.6) by default, whereas Python 3.5 fails because it installs NumPy 1.15.0 by default.

NumPy version forced to 1.15.0:

Commit demoing behavior: dd54a60
Travis CI report: https://travis-ci.com/jpgill86/python-neo/builds/82022633
Result: All Python versions fail in the same way

NumPy version forced to 1.14.5:

Commit demoing behavior: 6f25856
Travis CI report: https://travis-ci.com/jpgill86/python-neo/builds/82023437
Result: All Python versions pass without errors

I don't think this was a problem only a few days ago (see latest master branch Travis CI report here). My guess is that in the last few days the default NumPy version for Python 3.5 changed from something older to 1.15.0. I'm not sure who controls that (PyPI? Travis CI?). When this happens for other Python versions, more builds will fail.

I just noticed another difference between the failing Python 3.5 build on Travis CI and the others (see first report here). The Python 3.5 build currently uses pip version 18.0, whereas the others use pip version 9.0.1.
This was not the case in the latest master branch report from a week ago, where the report shows that pip version 9.0.1 was used for all builds.
So, within the last week, the version of pip used for Python 3.5 builds on Travis CI changed from 9.0.1 to 18.0, and with it the default choice of NumPy changed from older versions to the latest, 1.15.0, which breaks Neo's tests that use NumPy's assert_array_equal.
Regardless of the cause of the discrepancies in build defaults, the bug needs to be tracked down. I haven't looked at the relevant code, but my guess is that Neo has some code that NumPy's assert_array_equal uses for determining whether two arrays are the same or not. For whatever reason, this code works correctly with NumPy < 1.15.0 but not with NumPy == 1.15.0.

I've tracked this issue further.
(By the way, NumPy 1.15.1 was released yesterday, and the problem persists with that version.)
As of version 1.15.0, NumPy's assert_array_equal calls a special subroutine on its arguments to check for infinities in the arrays. This new subroutine is called func_assert_same_pos.
(This new subroutine is part of a major reorganization/rewrite of test functions that occurred when NumPy's test suite switched from Nose to PyTest.)
When called by assert_array_equal, the subroutine func_assert_same_pos essentially executes x == numpy.inf and y == numpy.inf, where x and y are the arguments to assert_array_equal. What's going on here is that an array is being compared element-wise to a scalar, and the expected output is an array of booleans that indicate where the comparison is true or false.
From what I can tell, assert_array_equal is designed to work on numpy.ndarray objects generically. Subclasses of ndarray are expected to properly implement comparisons of the array to scalars, which should result in an array of booleans. I think that maybe this has always been the case (i.e., it's not a new constraint added in 1.15.0). It's just that, in some cases, subclasses of ndarray got by without meeting this expectation in the past.
neo.AnalogSignal (actually neo.BaseSignal) inherits from numpy.ndarray (via quantities.Quantity), but it does not meet this expectation. The use of == on an AnalogSignal invokes its __eq__ method, which assumes the two things being compared are both AnalogSignals because it first compares the arguments' t_start values. If an AnalogSignal is compared to a scalar, the error that is the cause of this issue arises.
Here's a simple example that does not depend on the version of NumPy and which causes this error:
import neo
import numpy as np
import quantities as pq

sig = neo.AnalogSignal([0.1, 0.1, 0.1], sampling_rate=1*pq.ms, units=pq.uA)

sig == 0.1

Here is the error:
Traceback (most recent call last):
  File "neo_array_equals.py", line 7, in <module>
    sig == 0.1
  File "c:\users\jeffrey\documents\python-dev\neo\git-repo\python-neo\neo\core\analogsignal.py", line 416, in __eq__
    if (self.t_start != other.t_start or
AttributeError: 'float' object has no attribute 't_start'

I think that the solution to this issue is to change __eq__ to first check the type of the two objects being compared, so that it can handle comparisons of AnalogSignals both to scalars and to other AnalogSignals. I'll take a crack at implementing this.

Take a look at #557.
Since this issue relates to the use of == between signals and scalars, I first added some tests for those comparisons (2bebe4d), which of course failed initially. While I was at it, I also added tests for the use of == between two signals.
In my second commit (16340f0), I attempted to fix the problem by adding checks within the __eq__ methods of AnalogSignal and IrregularlySampledSignal for the types of the objects being compared. Time parameters (e.g., t_start) are only checked for equality if the types are compatible. These changes allow my new tests to pass, but only in NumPy < 1.15.0. New problems with version 1.15.0 were unmasked by this change.
Aside: The changes in 16340f0 to IrregularlySampledSignal.__eq__() do more than just check type. They will also change the result for a comparison with == between two IrregularlySampledSignals. Comparison between numpy.ndarrays normally returns an array of booleans. In this case, that array was collapsed down to a single True or False through the use of all(). Since this result is inconsistent with the result of a similar comparison between two AnalogSignals (which returns an array of booleans as expected), I changed the behavior for IrregularlySampledSignals. My new tests check that the result is an array of booleans, and no other tests were broken by this change.
The new problem with NumPy 1.15.0 that was unmasked by these changes to __eq__ still pertains to assert_array_equal. Later on in the execution of the function, the new 1.15.0 implementation attempts to index into the signals using the boolean arrays obtained via __eq__. Again, I think this is something that ndarrays are supposed to be capable of in general, but this functionality does not exist for Neo signals.
Here's a simple example:
import neo
import numpy as np
import quantities as pq

sig = neo.AnalogSignal([0.1, 0.2, 0.3], sampling_rate=1*pq.Hz, units=pq.uA)

# this works after the fix in 16340f0
print(sig == 0.2)
# result: [[False]
#          [ True]
#          [False]]

# this does not work and raises an IndexError, and
# this functionality is needed for assert_array_equal in NumPy >= 1.15.0
print(sig[sig == 0.2])

The output:
[[False]
 [ True]
 [False]]
Traceback (most recent call last):
  File "neo_array_equals.py", line 15, in <module>
    print(sig[sig == 0.2])
  File "c:\users\jeffrey\documents\python-dev\neo\git-repo\python-neo\neo\core\analogsignal.py", line 308, in __getitem__
    raise IndexError("index should be an integer, tuple or slice")
IndexError: index should be an integer, tuple or slice

The code that would need to change to accommodate the new requirements of assert_array_equal would be located in AnalogSignal.__getitem__() and IrregularlySampledSignal.__getitem__(). As is already stated in a comment, arbitrary indexing into a signal would probably require that an IrregularlySampledSignal be returned.
Since this is a lot of work, I'm going to stop working on this and wait to hear from others about whether this is the right direction to take. An alternative solution might be to stop using assert_array_equal entirely and instead implement Neo's own assertion function for signal comparison. This could have its own problems.

Thanks for digging into this @jpgill86.
On a first glance I think returning an IrregularlySampledSignal for arbitrary indexing makes sense and might be simpler than implementing a custom assert_array_equal.
However, there is also a discussion related to the SpikeTrain.__getitem__() #490, which is still open. There the discussion is about  whether to return a neo object or a scalar when accessing a single index of a SpikeTrain. Currently  the general tendency is to return scalars in this case. It would be good to have a consistent solution for both cases. @bjoern1001001, @samuelgarcia What is your opinion on that?

Another possible return type for AnalogSignal.__getitem__() and IrregularlySampledSignal.__getitem__() when non-contiguous selections are made is Quantity arrays. This could be simpler than returning an IrregularlySampledSignal, though it discards all temporal information.

Thanks @jpgill86 for the excellent detective work.


Add Links the to base API and SDK

Signed-off-by: Harold Dost<EMAIL_ADDRESS>

The SDK and API were split into separate crates https://github.com/open-telemetry/opentelemetry-rust/pull/735


Whenever you tag an item, whatever you are searching in your bank goes away

If you changed this it would make it much easier to tag several items at once. E.G if you are attempting to tag a full void set, you have to tag each, and then search it again and repeat.
Thanks

To do this we would have to save varcstr22 before opening our input widget, run the GE input script, and then restore varcstr22. I think we would have to fix the event bus recursion thing if we were to do this.


Method on Timeout for reset with Duration

There's a reset which takes an Instant, but if I want to reset it to a new Duration, I have to create a new one or call Instant::now() myself.

Sounds reasonable to me!


Don't close Kafka Streams in the uncaught exception handler.

We have observed close() timing out when firehose-writer runs out of
memory; this change should allow the JVM to shut down cleanly when
it runs out of memory and thereby be restarted successfully by k8s.

Coverage remained the same at 100.0% when pulling 0405b8806c9b91cd2c40201cf0a6108fc757227b on DontCloseKafkaStreamsOnShutdown into 3dc47116ed2f2757b6da428e68927a34fa500dfd on master.


Deploy MQTT & UL agent

MQTT broker requires CA certificate (and possibly username/password) for connection. CA certificate can be configured with environment variable IOTA_MQTT_CA at docker-compose file. certificate file need to be mapped to docker container as well like so:
volumes:             - /etc/cert/ca.crt:/etc/cert/ca.crt

Basically following Docker compose configuration enables access for IoT Agent to the MQTT broker:
            - IOTA_MQTT_PROTOCOL=mqtts             - IOTA_MQTT_PORT=1883             - IOTA_MQTT_HOST=kitt4sme.collab-cloud.eu # FQDN needs to be used or certificates do not work             - IOTA_MQTT_USERNAME=<user if used>             - IOTA_MQTT_PASSWORD=<password if used>              - IOTA_PROVIDER_URL=http://iot-agent:4041             - IOTA_MQTT_CERT=/etc/cert/server.crt             - IOTA_MQTT_KEY=/etc/cert/server.key             - IOTA_MQTT_CA=/etc/cert/ca.crt         volumes:             - /etc/cert/ca.crt:/etc/cert/ca.crt             - /etc/cert/server.crt:/etc/cert/server.crt             - /etc/cert/server.key:/etc/cert/server.key


Samd5e5 tickless

Summary
Arch: samd5e5 :

Oneshot, freerun and tickless available support. All support runs on Timer/Counter (TC).
Some fixes in external interrupt controller (EIC) and clockconfig.

Impact
New features available.
Testing
Build check only.
Signed-off-by: Leomar Mateus Radke<EMAIL_ADDRESS>

Thank you Leomar


[ISSUE] Petastorm + TF Recommenders hangs forever

Hi team,
I've met the following issue while using Petastorm with Tensorflow Recommenders.
Here is a quick code sample:
raw_data = spark.read.load("dbfs:/some/path")

ratings_df = raw_data.select("userid", "productid")
items_df = raw_data.select("productid").distinct()

ratings_converter = make_spark_converter(ratings_df)
items_converter = make_spark_converter(items_df)

with ratings_converter.make_tf_dataset(batch_size=8192) as ratings_ds, items_converter.make_tf_dataset(batch_size=128) as items_ds:
  # this structure is required by TFRS
  ratings = ratings_ds.flat_map(tf.data.Dataset.from_tensor_slices).map(lambda x: {
    "user_id": x[0],
    "item_id": x[1]
  }).batch(8192)

  items = items_ds.flat_map(tf.data.Dataset.from_tensor_slices).map(lambda x: x[0])

  user_model = get_user_model(unique_users)
  item_model = get_item_model(unique_items)

  metrics = tfrs.metrics.FactorizedTopK(
      candidates=items.batch(128).map(item_model)
  )

  task = tfrs.tasks.Retrieval(metrics=metrics)

  model = RecommendationModel(user_model, item_model, task)
  model.compile(optimizer=tf.keras.optimizers.Adagrad(learning_rate=0.01))

  steps_per_epoch = len(ratings_converter) // 8192

  history = model.fit(
    ratings,
    epochs=3,
    verbose=True,
    steps_per_epoch=steps_per_epoch,
  )

This code hangs forever at the start of the first epoch.
It works without any problems if I pass data directly via memory and .toPandas() ->  tf.data.Dataset.from_batches.
Versions of components:

Spark 3.1.1
Petastorm: 0.9.8
Tensorflow: 2.4.1
Tensorflow Recomenders: v0.4.0

Can you please try reading directly from the ratings_ds and items_ds, without recommenders? This will help us isolate the source of the hanging. Also, you can try passing make_tf_dataset this argument: reader_pool_type="dummy". This will switch off the threadpool and might make debugging easier.

Can you please try reading directly from the ratings_ds and items_ds, without recommenders?

yes, if I simply do:
for p in ratings_ds.as_numpy_iterator():
    print(p)

it works fine for all iterations.
I'll try with reader_pool_type="dummy" and let you know the status.

What are the assumption on the dbfs:/some/path ? Anything you can do to help me recreate a small sample dataset, so I could run locally and observe the same behavior?

on dbfs:/some/path there is this Kaggle dataset - https://www.kaggle.com/skillsmuggler/amazon-ratings
I've taken .limit(100_000) and saved it into Delta Lake format.
I've also reproduced the same issue locally on my Mac (not on Databricks environment). I see the following messages when I run my code in debug mode locally (not sure if it's relevant tbh):
/Users/ivan.trusov/opt/anaconda3/envs/dbx-tf-recsys/lib/python3.7/site-packages/petastorm/arrow_reader_worker.py:294: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/petastorm/cache/20210503215814-appid-local-1620071889079-24d8b84b-ed60-459e-bf34-1745c1bbb49c/part-00000-0ac1fe16-08a2-4d49-bbe4-3bdf93f26b5c-c000.parquet'>
  table = piece.read(columns=column_names - partition_names, partitions=self._dataset.partitions)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Here are code samples to read the data:
# prepare Spark with Delta Lake support
spark = (
            SparkSession.builder.master("local[1]")
            .config("spark.jars.packages", "io.delta:delta-core_2.12:0.8.0")
            .config("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")
            .config("spark.sql.shuffle.partitions", 4)
            .config(
                "spark.sql.catalog.spark_catalog",
                "org.apache.spark.sql.delta.catalog.DeltaCatalog",
            )
            .getOrCreate()
 )

 # read the data

 raw_data = (
           spark.read.format("delta")
                .load(SOURCE_DIR)
                .select("userid", "productid", "rating")
                .sample(0.05)
)

spark.conf.set(
            SparkDatasetConverter.PARENT_CACHE_DIR_URL_CONF,
            "file:///tmp/petastorm/cache"
 )

ratings_converter: SparkDatasetConverter = make_spark_converter(raw_data)
items_converter: SparkDatasetConverter = make_spark_converter(
    raw_data.select("productid").distinct()
)

with ratings_converter.make_tf_dataset(
                batch_size=128
        ) as ratings_ds, items_converter.make_tf_dataset(
            batch_size=16
        ) as items_ds:

        train = ratings_ds.map(
                lambda x: {"user_id": x[0], "product_id": x[1]}
            )

        items = items_ds.map(
            lambda x: x[0]
        )

        # here goes code as per TFRS default notebook

        model.fit(
                train,
                epochs=3,
                verbose=True,
                steps_per_epoch=len(ratings_converter) // 128
        )

I've also added some logging to the training step, and I see the following:
21/05/03 22:24:31 INFO ModelBuilder: Training: start of batch 0; got log keys: []
21/05/03 22:24:31 INFO ModelBuilder: Starting the train step with features: {'user_id': <tf.Tensor 'IteratorGetNext:1' shape=(None,) dtype=string>, 'item_id': <tf.Tensor 'IteratorGetNext:0' shape=(None,) dtype=string>}
21/05/03 22:24:32 INFO ModelBuilder: Train step finished
21/05/03 22:24:32 INFO ModelBuilder: Starting the train step with features: {'user_id': <tf.Tensor 'IteratorGetNext:1' shape=(None,) dtype=string>, 'item_id': <tf.Tensor 'IteratorGetNext:0' shape=(None,) dtype=string>}
21/05/03 22:24:32 INFO ModelBuilder: Train step finished
/Users/ivan.trusov/opt/anaconda3/envs/dbx-tf-recsys/lib/python3.7/site-packages/petastorm/arrow_reader_worker.py:53: FutureWarning: Calling .data on ChunkedArray is provided for compatibility after Column was removed, simply drop this attribute
  column_as_pandas = column.data.chunks[0].to_pandas()

It seems like two steps were performed successfully, but then the process hanged.

Interesting - I've found that issue is actually with the items dataset, not with the ratings.
If I switch from items_ds above to a simple NumPy-based iterator, everything works like a charm:
items = tf.data.Dataset.from_tensor_slices(unique_items)


Unable to reproduce sample configuration #3

I'm unable to get something like sample configuration #3 to work. I apologize in advance if this question is a bit naive -- I'm not extremely familiar with nginx. When I include eval_subrequest_in_memory  off; or the subsequent directives, I receive:
nginx: [emerg] unknown directive "eval_subrequest_in_memory" in /foo/nginx.conf:70

I'm using openresty, and from what I'm reading, it sounds like nginx-eval-module (agentzh's fork) is part of openresty. Below are the relevant version details and modules:
$ nginx -V
nginx version: openresty/<IP_ADDRESS>
built by clang 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -I/usr/local/include' --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.58 --add-module=../xss-nginx-module-0.05 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.29 --add-module=../form-input-nginx-module-0.11 --add-module=../encrypted-session-nginx-module-0.04 --add-module=../ngx_postgres-1.0rc6 --add-module=../srcache-nginx-module-0.30 --add-module=../ngx_lua-0.9.16 --add-module=../ngx_lua_upstream-0.03 --add-module=../headers-more-nginx-module-0.26 --add-module=../array-var-nginx-module-0.04 --add-module=../memc-nginx-module-0.16 --add-module=../redis2-nginx-module-0.12 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.14 --add-module=../rds-csv-nginx-module-0.06 --with-ld-opt=-L/usr/local/lib --with-http_ssl_module

Bigger picture, what I'd like to do is source a URL from a table and redirect for a download. I'm less concerned about how this is accomplished, and more concerned about being able to do it. As a practical example, say I have the following table:
create table foo (
    id varchar,
    url varchar
)

What I'd like to be able to do from nginx is something along these lines:
location ~ /foo/(?<id>\d+) {
    postgres_output none;
    postgres_pass    database;
    postgres_escape $escaped $id;
    postgres_query  GET "SELECT url FROM foo WHERE id=$escaped";
    postgres_rewrite no_rows 410;
    postgres_set $url 0 0 required;
    return 301 $url;
}

...however, I realize that (for reasons I don't fully grok) that return and the postgres_* statements aren't compatible due to how nginx processes things.
Any help would be greatly appreciated, thanks!

@wasade That directive is provided by the ngx_eval module:
https://github.com/openresty/nginx-eval-module
Try including this module in your nginx or openresty build.

Right, its supposed to be included in openresty but it doesn't appear to
work, or am I missing something obvious?
On Jul 28, 2015 12:03 AM, "Yichun Zhang"<EMAIL_ADDRESS>wrote:

Closed #40 https://github.com/FRiCKLE/ngx_postgres/issues/40.
—
Reply to this email directly or view it on GitHub
https://github.com/FRiCKLE/ngx_postgres/issues/40#event-366854098.

@wasade No. The ngx_eval module is not a default OpenResty component on purpose. Please see
https://openresty.org/#Components
It's not included because use of ngx_lua is recommended instead of ngx_eval. The ngx_eval module is the old day solution. See the corresponding documentation of my fork of ngx_eval:
https://github.com/openresty/nginx-eval-module#use-lua-instead

Thanks, @agentzh. I confess, I'm not seeing any text on that openresty link regarding "ngx_eval" or even "eval" which perhaps is driving some of the confusion. Thanks for the link on using "ngx_lua" -- that looks like it'll do what I need. Sorry for the confusion and thank you for the rapid responses!

@wasade Yes, the examples in ngx_postgrres's README deserves treatment to avoid such confusions.


Changes in self.job.options are inheritted in subsequent tests

Changes made in self.job.options made in one test case, propagate in subsequent tests. For example once the change in made here https://github.com/eth-cscs/reframe/blob/a83cb2142cbd7d40a78336e055f1b78f6a922eea/cscs-checks/system/slurm/slurm.py#L182 then the following tests will run using altered job.options. This seems to be the case since a change made to that test changes the sched_options field of the executor policy which was used during the task setup https://github.com/eth-cscs/reframe/blob/a83cb2142cbd7d40a78336e055f1b78f6a922eea/reframe/frontend/executors/policies.py#L64

That's a major problem!

Can you check when this was introduced?

@vkarak I think that it was always there but it just surfaced because we added the --account job option in slurm tests.

The fix should be easy. Just create a new list out of sched_options.
https://github.com/eth-cscs/reframe/blob/master/reframe/core/schedulers/__init__.py#L219


DRAFT: feat(ai-proxy): AWS Bedrock driver

⚠Important note: this also contains all the code from https://github.com/Kong/kong/pull/12948, it will be rebase'd away in time.
Summary
This is a draft PR that adds AWS Bedrock "chat inference" driver support.
Now Kong users can call a massive array of Anthropic, Cohere, Mistral, Amazon, Meta, AI21, and loads more models; all using the same flat format.
This is missing streaming support - I need to write a C/Lua decoder for the AWS application/vnd.amazon.eventstream format, and need e.g. Thijs help.
Checklist

[ ] The Pull Request has tests
[ ] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference
Internal (KAI-38).

@tysoekong Let's get this merged and remove the draft status.

This branch is a complete mess of rebases, I'm going to start this again.


Serve Front-end application through static files

An example that could lead to the desired solution : https://github.com/steadylearner/Rust-Full-Stack/tree/master/React_Rust/server/rocket/src

After reading a bit more docs, it seems that will be hardly feasible with next. Unless we get rid of nextjs and use react only instead we'll have to stick to a splitted front and back.
Closing for now


Can't install

Sorry if this is an easy fix that I'm missing.
I'm getting this error when trying to run
pip install webull
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement webull (from versions: none)
ERROR: No matching distribution found for webull
Thanks for any help!

try updating your python version. min requirements for the package is 3.6

Thank you that worked. Seemed I had multiple versions of python and it was running 3.5.


0.6.0 still doesn't support python 3

From #1:

Closing since it seems to work. Python 3 support will ship with version 0.6.0, which is coming very soon. Future Python 3 bugs should be filed as separate issues!

In a python 2 virtualenv:
$ python --version
Python 2.7.10
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
...
Successfully installed protobuf-3.0.0a3 setuptools-18.7.1 tensorflow-0.6.0 wheel-0.26.0

In a python 3 virtualenv:
$ python --version
Python 3.4.3
$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-cp34m-linux_x86_64.whl
tensorflow-0.6.0-cp34-cp34m-linux_x86_64.whl is not a supported wheel on this platform.

Yeah, we're still testing everything out today before announcing that it's ready.
Just curious, what happens if you download the wheel package and rename it tensorflow-0.6.0-cp34-none-linux_x86_64.whl ?

@vrv Thanks, that worked! The python 3 installation instructions are already published in the docs so I assumed it was official.
$ python --version
Python 3.4.3
$ wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp34-cp34m-linux_x86_64.whl
...
$ mv tensorflow-0.6.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.6.0-cp34-none-linux_x86_64.whl
$ pip install -U tensorflow-0.6.0-cp34-none-linux_x86_64.whl
...
Successfully installed numpy-1.10.1 protobuf-3.0.0a3 setuptools-18.7.1 six-1.10.0 tensorflow-0.6.0 wheel-0.26.0

Yeah, they shouldn't have been pushed to the docs until they were tested fully.  We'll probably just rename the wheel files.

new wheels with the updated filename are up.
i'll let @martinwicke close this once the website is updated.

Fixed!


feat: defaults to NoOpProvider

This PR

initial provider set to a NoOpProvider
ensures a client will always be returned even if a provider has not been explicitly set

Related Issues

Fixes #1234523
Notes
This fixes an issue with spec compliance
Follow-up Tasks

Tests

How to test
Given you have not set a provider
When you retrieve an OpenFeature client
Then an error will not be raised

Updated tests :+1:

Codecov Report

Merging #66 (f4a0276) into main (3e2c102) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
- Coverage   92.69%   92.66%   -0.03%
==========================================
  Files          19       19
  Lines         342      341       -1
==========================================
- Hits          317      316       -1
  Misses         25       25

Flag
Coverage Δ

unittests
92.66% <100.00%> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

open_feature/open_feature_api.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

The -0.03% test coverage is because I removed code but had the same coverage of that file :smile:


Prep commits to merging narrow activate and deactivate calls.

Extracted from #28636.
I think we can safely merge this to not think about them.

OK, this changes look good, merged, thanks @amanagr!


RestrictChildren does not allow Razor comments

[RestrictChildren("div")
public class MyTagHelper : TagHelper
{

}

<my>
   @* Some comment *@

Child content

</my>

Additionally, the error is repeated multiple times over in the intellisense dialog:

Closing since no user has reported this.


[TC-TSTAT-2.2] Command SetpointRaiseLower Failing

Summary :
As per test plane the command SetpointRaiseLower is to be send from the TH and should return a successful status, however when we try to use this command in the YAML test scripts it seem to always fail, please refer attached screenshots and logs
Spec Screenshot:

Test-plan Screenshot:

Test execution log file:
TSTAT_2_2.txt

I believe that this is related to the auto feature being enabled by the #define in thermostat-server.cpp, due to the issue with Feature Map on little endian machines.
Can you please send me the full transcript of the run.  There are missing steps in the excel file.  I think this is causing a violation of the constraints imposed by.  The full transcript will help me to resolve if this is not the designed behavior.


Intercom integration

Hey i am wondering would you be able to do intercom integration as its getting super popular and makes perfect sense for what you are trying to do

I am not familiar with Intercom. What can you do with their API?

Its a really cool product to understand your user. I know you have built this for hackathons but i am using it in production. Check them out www.itercom.io

Sounds interesting, but non-essential for Hackathon Starter. There was a similar PR in the past to add a commercial analytics/user tracking product integration which I had to politely decline.


Fix database id mapping to remove guesswork hacks

The SqliteDatabaseDriver had to resort to counter intuitive hacks
to manually locate a database by its file name and didn't
properly handle deduplicating multiple databases with the same name.  As
we expanded flexibility we failed to address the possibility (nay,
likelihood) that this will occur and it would create very confusing
results for users.
This diff doesn't address the confusion in the UI (two database entries
of the same name can still occur) but it internally makes it possible to
treat them as separate databases and track their filenames separately.
It also makes it relatively straightforward to fix the uniqueness of the
user visible naming by introducing a "context" parameter to
DatabaseDescriptor which would be used in the case of name ambiguity.
This diff addresses concerns raised in #366 and #367.

Wow this is a big, old diff apparently by me but it does look important.  I think my patch is overall viable but I think it got stalled due to a binary compat issue I'm looking into now

@longinoa ping ping :)

YOLO


refactor(dematerialize-spec): update dematerialize operator tests to use pipeable operators

update dematerialize spec to use updated import sites and pipeable operators

Would love to get some input on a typing issue I ran into while refactoring these tests. For hot observables that never emit a value, their default type is HotObservable<string> (same for cold observables). So when an observable is setup in a test (ex: e1 = hot(‘-----’)), and I want to test the dematerialize operator with it using e1.pipe(dematerialize()) (which expects a Notification type as its source), there is a type error.
I got around this here by adding hot(‘-----’, { a: Notification.createNext('a') } ), but is there a more elegant way to indicate the type of the emissions of a hot/cold testing observable?
I tried hot(‘-----’) as HotObservable<Notification<any>> but got the error Type 'HotObservable<string>' cannot be converted to type 'HotObservable<Notification<any>>'
I also tried hot(‘-----’) as Observable<Notification<any>> (since I saw that HotObservable is no longer exported directly), which resulted in the same error, and additionally expectSubscriptions tests break because there’s no subscriptions property on regular Observables.

Coverage decreased (-0.2%) to 96.618% when pulling b3f4b2e5ceba039485b904af74bbd7e42f2972af on natmegs:dematerialize-spec-pipeable into dc6673124ed5cc8a532abe6511484d8d8ceebbf9 on ReactiveX:master.

Typically, you'd specify an explicit type parameter, like this:
hot<Notification<any>>('---', {})

But that'd mess up the alignments and would also introduce a fair bit of clutter. I'd create a constant at the top of the file:
const NO_VALUES: { [key: string]: Notification<any> } = {};

and would use that in the tests:
const e1 =   hot('------', NO_VALUES);
const e1subs =   '^';
const expected = '-';

@cartant That's perfect - thank you!!

Perfect, thanks, @natmegs (and for the assist @cartant)


Comment API

API for comments:
POST /comments
{
  "factorId": 34,
  "user": "anon",
  "text": "This is a new comment."
}

Response:
{
  "id": 345
  "factorId": 34,
  "user": "anon",
  "text": "This is a new comment."
}

I added the following REST APIs (with django REST framework)

(GET/POST) /api/model                        : Retrieve or Add a model
(GET/POST) /api/factor                         : Retrieve or Add a factor
(GET/POST) /api/comment                   : Retrieve or Add a comment
(GET/POST) /api/user                            : Retrieve or Add a commet
(GET) /api/getfactors/?model_id=        : Retrieve all factors of a model
(GET) /api/getcomments/?factor_id=   : Retrieve all comments of a factor

TODO: make the current comments save to the server


created grant_read macro for on-run-end hooks

Created grant_read macro for on_run_end hooks. variables are:

users (expects a list even if its only one element)
schemas_list (schemas is a reserved dbt keyword for post-hooks/on-run-end hooks. leaving it empty will grant read rights to all run schemas)
include_main_schema (true/false)

circleci failed because the related branch is not fetched to this branch

This PR assumes that the schemas_list contains schemas in the correct format. However, the user should be able to pass the schemas_list in the same way it is defined in the profiles.yml. So if the target.schema='analytics', and there is an additional base schema, the schema in the database would be analytics_base, but in the configuration the user should be able to use base as argument instead of analytics_base.
Also, users should be a mandatory, not optional argument.
Finally, can you add a possibility to only grant access to the main schema and no other?
Otherwise, this looks good!


Keep track of view numbers

It would be interesting to keep a log of the view count when reposting an ad.

Could be interesting to see, however I don't feel like it would warrant a feature in the main code base.
You're certainly free to implement your own logging system however you'd like, but I'm weary of adding too much bloat to the project.

Fair enough, I might just do so when I've got the time.


RUMM-2183 Nightly tests for ConfigurationBuilder#setVitalsUpdateFrequency

What does this PR do?
Adding the nightly tests for newly introduce API : ConfigurationBuilder#setVitalsUpdateFrequency
Increasing the nightly tests coverage to 0.94
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report

Merging #929 (9f91540) into mconstantin/rumm-2076/mobile-vitals-uptate-frequency-option (0b30629) will decrease coverage by 0.16%.
The diff coverage is 62.16%.

@@                                       Coverage Diff                                       @@
##           mconstantin/rumm-2076/mobile-vitals-uptate-frequency-option     #929      +/-   ##
===============================================================================================
- Coverage                                                        82.86%   82.70%   -0.16%
===============================================================================================
  Files                                                              263      265       +2
  Lines                                                             8977     9006      +29
  Branches                                                          1449     1449
===============================================================================================
+ Hits                                                              7438     7448      +10
- Misses                                                            1144     1159      +15
- Partials                                                           395      399       +4

Impacted Files
Coverage Δ

...re/internal/thread/NoOpScheduledExecutorService.kt
12.50% <12.50%> (ø)

...atadog/android/core/configuration/Configuration.kt
98.87% <100.00%> (+0.02%)
:arrow_up:

...ndroid/core/configuration/VitalsUpdateFrequency.kt
100.00% <100.00%> (ø)

...lin/com/datadog/android/rum/internal/RumFeature.kt
92.93% <100.00%> (+1.26%)
:arrow_up:

...android/log/internal/logger/TelemetryLogHandler.kt
75.00% <0.00%> (-25.00%)
:arrow_down:

...android/rum/internal/ndk/DatadogNdkCrashHandler.kt
85.63% <0.00%> (-2.30%)
:arrow_down:

...rc/main/java/com/datadog/opentracing/DDTracer.java
55.65% <0.00%> (-0.42%)
:arrow_down:


Unity Dependency Injection with Unity MVC

Good afternoon!
This may be a problem with my knowledge of DI at this point. If so, my apologies!
This is with Cache Manager 1.1.1
I'm following your example of the Single Page ToDo except with Unity MVC insead of Unity WebAPI.
In Global.asax.cs during app initialization (Application_Start), I create the IUnityContainer and register the Cache Manager instance:
var container = new UnityContainer();
DependencyResolver.SetResolver(new UnityDependencyResolver(container));
var cacheConfig = ConfigurationBuilder.BuildConfiguration(settings =>
      {
               settings
                   .WithSystemRuntimeCacheHandle(false)
                   .WithExpiration(ExpirationMode.Sliding, TimeSpan.FromSeconds(3600));
           });

           container.RegisterType(
               typeof(ICacheManager<>),
               new ContainerControlledLifetimeManager(),
               new InjectionFactory(
                   (c, t, n) => CacheFactory.FromConfiguration(
                       t.GetGenericArguments()[0], cacheConfig)));

Then in the helper class (which is where I use the cache), I add a property with the Dependency attribute on:
[Dependency]
public ICacheManager<List<Term>> AllTermCache { get; set; }

In my method, I get a Null Reference Exception anytime I try to use AllTermCache, whehter I'm PUTing or checking if it exists:
List<Term> testvar = new List<Term>();

AllTermCache.Put("Test", testvar);

or
if (AllTermCache.Exists("Terms")) {
    _log.Debug("Terms found in cache. Returning cached values.");
    return (List<Term>)AllTermCache.Get("Terms");
 }

What did I miss in the example code on GitHub?

Yeah this seems to have nothing todo with CacheManager.
Anyways, did you also change the ToDoController to extend from Controller (MVC) instead of ApiController (API)?

Thanks. Found the problem, which should have been obvious. If you are using the MVC Unity container, you need to put the caches somewhere in the MVC code.
I had it in a separate helper class, outside the Controller.


Add support for declarative policies

TOSCA's current policy syntax supports imperative policies only. These policies follow an event-condition-action pattern. We should add support for declarative policies that follow a context-capability-constraint pattern and express invariant conditions that must hold true at all times. Ironically, all the policy examples in the spec (e.g. colocation and anti-colocation placement policies) are examples of declarative policies, but TOSCA currently does not include syntax that allows one to define the semantics of such policies.

I envision declarative policies to be defined using a set of invariants, i.e. Boolean expressions that must hold true at all times. However, this will likely require extensions to our TOSCA Path syntax to allow get_property functions to access members of a group. For example:
groups:
  sw-group:
    members: [ sw1, sw2, sw3 ]

policies:
  anti-colocation:
    target: sw-group
    conditions:
      $not:
        $equal:
          - $get_property: [ ALL, RELATIONSHIP, host, TARGET, uuid ]
          - $get_property: [ OTHER, RELATIONSHIP, host, TARGET, uuid ]

In this TOSCA Path proposal, the ALL keyword means all members of the target group and OTHER means *all other members of the group`.
Alternatively, we could introduce a GROUP keyword to avoid the need to identify the target group in the policy definition.  Comments?


.pgpass does not work

Problem
Even though I create my .pgpass file in my home directory by following all the manual,
wrds.Connection() still ask the ID and PW.
/home/ysh/.pgpass
wrds-pgdata.wharton.upenn.edu:9737:wrds:#########:#######

Note : ######## is my personal ID and PW

./sample.py
import wrds
db = wrds.Connection()

Enter your WRDS username [ysh]:

What I have done
I create .pgpass file using create_pgpass_file method, but it did not work.
import wrds
db = wrds.Connection()
db.create_pgpass_file()

Environment info
Operating System: Linux-4.10.0-28-generic-x86_64-with-debian-stretch-sid
Compiler: [GCC 7.2.0]
Package used (python/R/jvm/C++): Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)

Hi.
Could you send the output of ls -l /home/ysh/.pgpass? The module will ignore the .pgpass file if the permissions are not correct.

Here it is!
ysh@ysh-desktop:~$ ls -l /home/ysh/.pgpass
-rw------- 1 ysh ysh 60  2월 28 21:22 /home/ysh/.pgpass

Here,
ysh@ysh-desktop:~$ ls -l /home/ysh/.pgpass
-rw------- 1 ysh ysh 60  2월 28 21:22 /home/ysh/.pgpass

I already did,
chmod 600 ~/.pgpass

If your wrds username does not match the username on your computer, you will have to pass in your wrds username to the connection function.
db = wrds.connection(wrds_username='wrdsusername')

I will work with our documentation team to make sure this is noted in the module documentation.

Thanks! now it works!


Make testResponseWriter's CloseNotify return an actual channel instead of nil

This channel never gets written to, but this only means that the mock
ResponseWriter will never signal a premature disconnect.
Based on feedback from #763.
Signed-off-by: Aaron Lehmann<EMAIL_ADDRESS>

LGTM


Whitepaper and product brief links in footer should be language-aware

Sub-task of: https://github.com/OriginProtocol/demo-dapp/issues/63
Footer links to Product Brief and Whitepaper should link to the document in the language that matches the current language of the demo-dapp.
Example links:
https://www.originprotocol.com/es/product-brief
https://www.originprotocol.com/es/whitepaper

Done via https://github.com/OriginProtocol/demo-dapp/pull/270


test: only run apx test when BIT=64

This fixes tests on 32 bit systems.

Thank you for the patch.


Pan working but not zoom

Maybe this isn't necessarily an issue with the plugin, but I cannot seem to get zoom to work at all, panning works just fine? After reading through the other issues, I noticed that I was required to add a viewbox, which I did, but zoom still refuses to work? I have checked that the events are firing and sure enough, they are. Width and height are just 100% respectively.
let draw = SVG()
    .addTo(`#${svgId}`)
    .size(width, height);

imageContainer = draw
    .nested()
    .viewbox(0, 0, 100, 100)
    .panZoom({zoomMin : 1, zoomMax:20});
image = imageContainer.image(imagePath);
image
    .size(width,height);

svg.panzoom.js needs to be able to figure out the dimensions of your svg somehow and it needs a viewbox. If only a percentage size is given or none, it will try offsetWidth and offsetHeight. However, these are only defined, when the svg is the root svg.
So either set an absolute width and height or make sure you call panzoom on the outermost svg


Cython-generated C/C++ files shouldn't make repo C/C++

Many Python repos are incorrectly marked as C/C++ because of C/C++ extensions generated using Cython.
Some examples:

https://github.com/scikit-learn/scikit-learn
https://github.com/piskvorky/gensim
https://github.com/kmike/psd-tools
https://github.com/bwhite/hadoopy

Why was https://github.com/github/linguist/pull/354 fix reverted?

I'm not sure why it was reverted in da515105975f2df3d1fc2c5897e6da85771d5f13.
@tnm do you remember?

I don't, but it seems alright to bring back in some form. I'd add in a check on lines length as well.

#2232 addressed this.


OSSM-1065: clang build fix for s390x

Fixes https://issues.redhat.com/browse/OSSM-1065

/ok-to-test


Is there a Working Adonis Service Provider for This Package?

I found an Adonis-Geocoder that wraps this package up for easier use with AdonisJS. But, it seems it is no longer supported. Well, its README is outdated and it has not been updated in over 2 years.
I was wondering if there was a more recently supported one? If not, that's fine. I'll just use this package. :)

Hi @PatrickLumenus I am not familiar about AdonisJS but I think to use directly this package instead of adonis-geocoder


Breaking: Move interval and related classes to navi-data

Description
With the Request V2.0, the request no longer directly contains an interval. This means that the navi data adapter will need to be able to derive an interval string from the dateTime filter.
Proposed Changes

Move classes/interval, classes/duration, date, and duration-utils from navi-core to navi-data

Screenshots
License
I confirm that this contribution is made under an MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

May not be needed. Will reopen if necessary


Change float to complex for return from ParameterExpression gradient

Summary
Fixes #6813
Details and comments
This fixes an error caused by the ParameterExpression gradient returning a float when there is an imaginary in the expression.

Thanks, @jakelishman. I changed the 0j and the type hint and doc. I also added a test for the complex parameter. I agree there may be larger issues here. The tests that failed were calling opflow.list_ops.list_op.assign_parameters which assumes floats.

Dear all, I pulled changes from this PR and it seems to be solving the error that my code was producing. Thanks!


High disk space occupation

For the same data, I only need 300m in size on bboltdb, but it takes up over 26GB of disk space on pogreb. I don't understand why this is?
I am using Bitmap data to store Roaring, and I am using it for inverted indexing. We will first check if the participle is in the aggregate, and then check if the document ID is in the bitmap. If it is not, we will add a new one. Then deposit it into the aggregate.
Here are some example codes。

func IndexDocuments(doc Document) error {
	var wg = sync.WaitGroup{}
	var err error
	for _, tk := range doc.TokenSlice {
		wg.Add(1)
		go func(tk string, err2 *error) {
			defer wg.Done()
			value, err := indexDB.Get([]byte(tk))
			if err != nil {
				*err2 = err
				return
			}
			if value == nil {
				rb := roaring.BitmapOf(doc.Id)
				data, err := rb.ToBytes()
				if err != nil {
					*err2 = err
					return
				}
				if err := indexDB.Put(utils.String2Bytes(tk), data); err != nil {
					*err2 = err
					return
				}
				return
			}
			rb, err := read(value)
			if err != nil {
				*err2 = err
				return
			}
			rb.Add(doc.Id)
			data, err := rb.ToBytes()
			if err != nil {
				*err2 = err
				return
			}
			if err := indexDB.Put(utils.String2Bytes(tk), data); err != nil {
				*err2 = err
				return
			}
		}(tk, &err)
	}
	wg.Wait()
	if err != nil {
		return err
	}
	return docDB.Put(utils.Uint2Bytes(doc.Id), utils.String2Bytes(doc.Word))
}

Hi!
I see the code above does "Read-Modify-Write" to update the search index. Pogreb doesn't reclaim space taken by overwritten or deleted keys automatically as described in the design document. You either need to enable automatic compaction by setting BackgroundCompactionInterval or run the compaction manually by calling DB.Compact.

Hi!
I see the code above uses a "Read-Modify-Write" loop to update the search index. Pogreb doesn't reclaim space taken by overwritten or deleted keys automatically as described in the design document. You either need to enable automatic compaction by setting BackgroundCompactionInterval or run the compaction manually by calling DB.Compact.

thanks


Port fix from PR 4459 to 2018-10-01

Copied https://github.com/Azure/azure-rest-api-specs/pull/4459 changes to newer API version
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

Automation for azure-sdk-for-js

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Automation for azure-sdk-for-node


ci: add supporting files related to GitHub

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

Project coverage is 83.33%. Comparing base (ebf2f59) to head (3cb3160).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #4   +/-   ##
=======================================
  Coverage   83.33%   83.33%
=======================================
  Files           4        4
  Lines          18       18
  Branches        2        2
=======================================
  Hits           15       15
  Misses          3        3

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


Norbot page is down

On page
https://github.com/arockenberger/robotronikk#about
The Norbot wiki link:
http://norbot.net/wiki/index.php?title=User:Annika
has sadly rotted away and now leads to a spam page. Unclear if the wiki has moved or died.

Domain has expired. Will remove the link!

Domain has expired. Will remove the link!

Updated and done!

Updated and done!


public: Handle view function rejection in showView

This is in preparation for the edit link view, which will cause a redirect and return a rejected Promise under certain conditions.

Coverage increased (+0.007%) to 98.1% when pulling 34720fd354fb372afb3a3e967139175a645afa51 on show-view-handle-rejection into 31472e638c4397d45eca1379a7e744b3e15cf146 on master.


Updated Copyright Details

_ No description provided. _

Thank you your pull request, we updated the year, This is just a typo mistake that's why we're not merging this pull request. Hope you're woking on more contribution.
Thank you & Regards
Guys in the Cloud Team

Sure, no worries! Thank you!


Arabic: support Noto Sans latin characters in AR content

When latin characters are used with Arabic content, they should show in Noto Sans. Right now, they're showing with a font that is only meant to be used for Japanese. Example: https://www-preview.ilo.org/ar/alraq

I think the best solution here, if possible, is to find a version of the above font that includes some latin glyphs for situations where latin characters have to get rendered. Best if we can avoid having to serve two versions of the same font, those font files are big.


chore: move demo2 to top level folder

left a similar review on #1523

Note the changes in a82eec7d9 and 62e465657 for other examples being moved similarly.


how to use tracking api?

hi
am trying create to app for sales. my is made on  nodejs with angularjs .i just want track field person like tracking cab in real time. so i decided to use uber tracking api only..!!
is that possible to use like that?
does uber has separate api for tracking purpose only.?
kindly explain flow of the process and how to make use of it..
thank you Team

There is no such thing as a tracking API. It seems you're looking for webhooks. Please see the Trip Experiences documentation: https://developer.uber.com/docs/trip-experiences
This wrapper does not support consumption of webhooks. However, if your users authorize your app, you can get their current trip status. Please read the README: https://github.com/shernshiou/node-uber#get-current-request


OSError exception raised by os.getlogin() in some cases when connecting to server.

When attempting to connect to a server, os.getlogin() is called to populate a default username for the connection. Unfortunately this function will raise an OSError if the current process does not have a controlling terminal. My use case for this module is with a remote development environment where the process does not have a controlling terminal. See this "won't fix" bug report from python: https://bugs.python.org/issue40821
Redacted error:
OSError                                   Traceback (most recent call last)
Cell In[8], line 3
 ----> 3 conn = mds.Connection(\"sshp://***@***.mit.edu:***\", sshp_host=\"***\")

File ~/.cache/pypoetry/virtualenvs/3Tjvy0F9-py3.12/lib/python3.12/site-packages/mdsthin/connection.py:124, in Connection.__init__(self, url, timeout, verbose, ssh_backend, ssh_port, sshp_host, ssh_subprocess_args, ssh_paramiko_options)
    121     raise MdsException(f'Only the following protocols are supported: {\", \".join(SUPPORTED_PROTOCOLS)}')
    123 # The username used for the MDSip login packet, and SSH if the protocol is `ssh://` or `sshp://`
--> 124 self._username = os.getlogin()
    126 if '@' in self._host:
    127     # We use rsplit to allow usernames connection strings like:
    128     # 'user@example.com@server:port'
    129     self._username, self._host = self._host.rsplit('@', maxsplit=1)

OSError: [Errno 6] No such device or address"

I would recommend either the os.getlogin() call be removed, or if not removed then moved into an else clause of the if that begins on line 126.

I'll move it into the else, but otherwise I would echo the same sentiments from the python bug, this is only really supported from the same environments where os.getlogin() would work


Is there an example showing the use of MDBX_FIRST_DUP, MDBX_NEXT_DUP, MDBX_LAST_DUP?

Is there an example showing these cursor operations?
If I call mdbx_cursor_get(..., MDBX_LAST_DUP) is the data available? or do I have to call mdbx_cursor_get(..., MDBX_GET_CURRENT) afterwords before the data is valid?
In other words do the MBDX_xxx_DUP operations return key/data?

Is there an example showing these cursor operations?

The set of these operations historically comes from Berkeley DB API.
So, you can refer to most of Berkeley DB examples and API description.
There are no corresponding examples for MDBX, as well as any tutorial, since I do not have the resources (free time) to create and maintain them. However, I will be happy to accept such PR.

If I call mdbx_cursor_get(..., MDBX_LAST_DUP) is the data available? or do I have to call mdbx_cursor_get(..., MDBX_GET_CURRENT) afterwords before the data is valid?

Data is returned when all cursor seek operations are completed successfully.

In other words do the MBDX_xxx_DUP operations return key/data?

Yes.

It will be great if you do a PR with fixing similar flaws in the API description, since ones are only visible to the fresh eye.

I will try to go through all of the comments in mdbx.h over the next week or so and add clarification, correct spelling, etc.  I will leave this open for when I need to ask more questions as I go through it.

I am new to this sort of database and don't yet have a good handle on transactions.   I understand that there can be only 1 transaction active per thread.  Does this infer that there is only 1 transaction active per environment in an application?

I am new to this sort of database and don't yet have a good handle on transactions. I understand that there can be only 1 transaction active per thread. Does this infer that there is only 1 transaction active per environment in an application?

No more than one write-transaction at the same time per environment. I.e. write transactions are strongly serialized in MDBX.

Abilities of read-transactions depends of the MDBX_NOTLS option:

Without MDBX_NOTLS option (transactions are tied to threads): No more than one read-transaction at the same time per thread. This is recommended.
With MDBX_NOTLS option (transactions are NOT tied to threads): No above limitation, but you must know exactly what you are doing, otherwise you will get deadlocks or reading an alien data.

In the MDBX_cursor_op enum:
MDBX_GET_BOTH_RANGE, /* MDBX_DUPSORT-only: position at key, nearest data. */
What is the definition of nearest data?

What happens if you call mbdx_del and pass a nullptr for the data parameter if the database was created with the MDBX_DUPSORT flag?  Will it delete all records with the given key?

In the MDBX_cursor_op enum:
MDBX_GET_BOTH_RANGE, /* MDBX_DUPSORT-only: position at key, nearest data. */
What is the definition of nearest data?

This flaw originated at the LMDB API description.
In this and other similar cases means a "lower_bound" partitioning, i.e. position at given key and at first data greater than or equal to specified data.

What happens if you call mdbx_del() and pass a nullptr for the data parameter if the database was created with the MDBX_DUPSORT flag? Will it delete all records with the given key?

Yes, if data is NULL then all records with the given key will be deleted.

@RallyTronics, thanks for reporting. Now these inaccuracies are corrected.

In the MDBX_cursor_op enum:
MDBX_GET_BOTH_RANGE, /* MDBX_DUPSORT-only: position at key, nearest data. */
What is the definition of nearest data?

It is the same meaning as documented in the SET_RANGE operation

@RallyTronics, please see mdbx::move_operation from the new C++ API.


Dont inline css from style link element in body when pedantic filter enabled. This is to maintain w3c validation of page. Bug fix #1153

When pedantic filter is enabled, style link element in body is not inlined. When move_css_to_head filter is enabled, inlining is allowed because css is moved to head which is valid as per w3c standard.

@jmarantz are you ok with this being merged?

I left some comments.  I think this has some corner-cases that need to be
addressed:

behavior with 'pedantic' off
behavior when the same RewriteDriver object processes a second document

On Mon, Aug 7, 2017 at 11:05 AM, Otto van der Schaaf <
<EMAIL_ADDRESS>wrote:

@jmarantz https://github.com/jmarantz are you ok with this being merged?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pagespeed/mod_pagespeed/pull/1600#issuecomment-320689559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB2kPbVe4jI9OVnyKQNXV7n4wqDtuQfcks5sVyexgaJpZM4OlK8H
.

behavior with 'pedantic' off

when pedantic filter is off, inlining_not_pedantically_spec_(now changing to in_body_) will be false always and will inline the css even if style link element is there in html body. I will add one more unit and system test for this.

behavior when the same RewriteDriver object processes a second document

I will add the test of multiple page loading in single test.

any objections against merging this?


feat(eventbridge): add eventbridge service

Current dependencies on/for this PR:

main

PR #43

PR #44

PR #45

PR #46

PR #47   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: o2hXZcUGA7x4CULUTBXA


Save job id of training containers in pacemaker jobs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
18 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.002%) to 3.846%

Files with Coverage Reduction
New Missed Lines
%

pacemaker/job.py
18
0.0%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.002%

Covered Lines:
190

Relevant Lines:
4940

💛  - Coveralls


Problems encountered in training GMM models

When I run gmr.py and gmr_letter.py, the initialization of GMM is different, I don't understand the initialization of gaussians= (mean,cov);
gmm = GMM(gaussians=[Gaussian(mean=np.random.uniform(-1., 1., size=dim),
covariance=0.1np.identity(dim)) for _ in range(num_components)])
gmm = GMM(gaussians=[Gaussian(mean=np.concatenate((np.random.uniform(0, 2., size=1),
np.random.uniform(-8., 8., size=dim-1))),
covariance=0.1np.identity(dim)) for _ in range(num_components)])
When I tried to train the position data of the end-effector with gmm, the output result was completely wrong. If possible, I hope you can write an example, thank you!

Thank you very much for your explanation of initializing GMM. I have tried to train my data with the same initializing method, but errors were reported during the process. May I ask how this problem is caused?
raise ValueError("The given covariance matrix is not symmetric")
ValueError: The given covariance matrix is not symmetric

Thank you very much for your explanation of initializing GMM. I have tried to train my data with the same initializing method, but errors were reported during the process. May I ask how this problem is caused?
raise ValueError("The given covariance matrix is not symmetric")
ValueError: The given covariance matrix is not symmetric

Can you provide the example you are running or the logs?
The covariance matrix of a multivariate Gaussian distribution should always be symmetric, i.e. $\Sigma = \Sigma^T$. The error was raised because a non-symmetric matrix was trying to be set as a covariance matrix.

Of course, what I'm running is this program,
Desktop.zip


chore(main): release 1.0.1

:robot: I have created a release beep boop
1.0.1 (2022-10-11)
Bug Fixes

date of germany tour in 2023 (9b255f8)
display of dates in registration and db seeder (#87) (561a54e)

Miscellaneous Chores

deps: bump vite from 3.1.6 to 3.1.7 (0a4a8fe)
deps: bump vite from 3.1.6 to 3.1.7 (#85) (5f98cb8)
improve clarity of messaging (ccf399d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/rotex1800/registration/releases/tag/v1.0.1 :sunflower:


ProjectEuler | Update Problem statement of 002 to match projecteuler.net

From projecteuler.net:
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
Correct: take all f(n) where f(n) <= 4,000,000 and f(n) is even
Incorrect: take all f(n) where n <= 4,000,000 and f(n) is even

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

Hey @RandellDawson, what do you think of changing this around? The forum guide would need to be updated, and older posts related to this challenge would no longer align. I'm fine with it since this is how it is on their site.

@moT01 I had noticed the difference myself a long time ago.  I figured there was a reason they were different and never questioned it.  @scissorsneedfoodtoo What do you think?

@RandellDawson, my understanding was that parts of the text was changed to accommodate for the different tests we have and the way the functions are written.
@moT01, thank you for making that suggestion. Normally I would be for sticking closer to the source material, but like you mentioned, we would have to make a lot of other changes.
If we decide to change the text to "By considering the terms in the Fibonacci sequence whose values do not exceed n, find the sum of the even-valued terms," I believe we would also have to change the function and tests so the value of the nth term of the Fibonacci sequence is passed to fiboEvenSum. So our tests would call fiboEvenSum(89), fiboEvenSum(4181), fiboEvenSum(46368), and so on.
While I think it's better we stick with the implementation we have, I could see updating the text if it's unclear. What do you both think?

I think the concept of the challenge is pretty much the same either way.

If we decide to change the text, I believe we would also have to change the function and tests

Looks like the changes on this PR change the tests to account for this format.

While I think it's better we stick with the implementation we have, I could see updating the text if it's unclear. What do you both think?

I don't think the text is unclear. The issue is simply that our version of the challenge is different from the original. Ours checks for < the nth term - and the original checks for < the nth value (of the term).
I really don't have an opinion on which way to go here. Either way works for me. The forum guide wouldn't be too tough to change. If there is no other reason to keep it like it is, I guess I would vote to change it to match the original.

In the future, you should try and give your branch a better name. And it's a good idea to create an issue first before making a PR so it can be discussed.
You are correct, the way projecteuler.net is different from our version.

I gone through the contribution guide and felt it is a small change that does not require any tests. so thought that an Issue is not required. But, in future I will remember to create one anyways.
I used Github UI to fork,commit and create a PR. So, sorry about the autogenerated branch name.
And I've accepted the changes suggested. Please review again and let me know if there is anything more.

@sidtharthanan and @moT01, sorry about that! I didn't notice that the tests were already updated in my last review.
In that case, let's go with these changes since it brings the test and implementation closer to the original problem.

I don't understand this. Could you please explain if I still have to address any changes?

@sidtharthanan, no need to worry. That just means that we need to officially approve your PR. It seems like you've made the changes suggested by @moT01, so I'll approve the PR now.
Once another reviewer confirms everything looks good we'll merge your changes.

any chance you want to update the guide when this gets merged?

@moT01 I will take care of updating it once it is merged.

I think I'll just merge it, there's already conflicts on that other PR.
Thanks again @sidtharthanan


How do I get chrome-headless installed on my build-machine-image (Linux2)?

** Which Category is your question related to? **
Deployment pipeline
** Provide additional details e.g. code snippets **
in the amplify.yml file I'm running "npm install puppeteer" to get chromium installed (must be a better way, no?), and in the env variables I've set CHROME_BIN to be /usr/bin/chromium-browser but the tests timeout because they cant find chrome here.
my test script is:
ng test --no-watch --no-progress --browsers=ChromeHeadless
What are the steps to get this working? thank-you

Duplicate of #39

Reopening as this isn't a duplicate.

@blomm can you try this https://github.com/aws-amplify/amplify-console/issues/39#issuecomment-519681477

@blomm we are resolving this for now. Please let us know if this issue still exists.


Move DropdownWithPrimaryActionViewItem IE ButtonDropdownSplitActionViewItem into base

For reuse by other code areas

Also polish styling including a hover over the joint buttons

Mockup:

Fixed in https://github.com/microsoft/vscode/pull/121836


Add support for the top-level-imports codemod for MUI v5

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
Currently the top-level-imports codemod does not support MUI v5, while the current docs still link to it. The top-level-imports codemod should support MUI v5.
Examples 🌈
I have tried running the v4 codemod on a v5 codebase without success. I also tried setting two jscodeshift args --importModule and --targetModule to @mui/material, like this:
npx @mui/codemod v4.0.0/top-level-imports myfile.tsx --jscodeshift='--importModule="@mui/material" --targetModule="@mui/material"'

This results in:
Error: Cannot find module '"@mui/material" --targetModule="@mui/material"'

The error message appears as if the two jscodeshift args were concatenated to one arg. This may well be an error on my part, so please let me know if this should work. Setting only one of the args like --jscodeshift='--importModule="@mui/material" still results in the same error though: Error: Cannot find module '"@mui/material"'.
I found a related issue (https://github.com/mui/material-ui/issues/30907), but it talks about the babel-plugin-import, not the codemod.
Motivation 🔦
I have a large codebase with several submodule imports per file like this:
import MenuItem from '@mui/material/MenuItem';
import InputLabel from '@mui/material/InputLabel';
import FormControl from '@mui/material/FormControl';
import Select from '@mui/material/Select';

I want to transform these imports into top-level imports like this without having to refactor each file manually:
import { MenuItem, InputLabel, FormControl, Select } from '@mui/material';

Yep, we should adjust the top-level-imports to work with the new package names and add it in the v5.0.0 folder. Would be interested in creating a PR?

I created a PR to lay the groundwork but probably need some help/guidance: https://github.com/mui/material-ui/pull/31195

@mnajdova @siriwatknp
Unfortunately the new v5 codemod released in 5.4.4 does not work and results in an error similar to this:
 ERR /sandbox/pages/index.js Transformation error (Cannot find module '@mui/material' Require stack: -<EMAIL_ADDRESS>-<EMAIL_ADDRESS>Error: Cannot find module '@mui/material'
Require stack:
-<EMAIL_ADDRESS>All done.

To reproduce:

Visit and then fork (to be able to open a custom console): https://codesandbox.io/s/mui-codemod-top-level-imports-bug-9o2353
Open a new console in your forked sandbox
Run npx @mui/codemod v5.0.0/top-level-imports ./pages

I would love to see a fix for this, but I'm not sure how to do it myself.

@greengiraffe Have you tried it locally?

Yes, same error.

@greengiraffe could you provide the file on which you run the codemod?

@mnajdova The original codebase is private but it's similar to the codesandbox linked above. This is what I expect the codemod to do:
Initial code:
import Button from "@mui/material/Button";
import ButtonGroup from "@mui/material/ButtonGroup";
import { Link } from "@mui/material";

export default function IndexPage() {
  return (

      <ButtonGroup>
        <Button variant="outlined">Button 1</Button>
        <Button variant="outlined">Button 2</Button>
      </ButtonGroup>
      <Link>MUI Link</Link>

  );
}

Expected output:
import { Button, ButtonGroup, Link } from "@mui/material";

export default function IndexPage() {
  return (

      <ButtonGroup>
        <Button variant="outlined">Button 1</Button>
        <Button variant="outlined">Button 2</Button>
      </ButtonGroup>
      <Link>MUI Link</Link>

  );
}

but as stated, the codemod returns the error Cannot find module '@mui/material'.

Taking a look @greengiraffe

@greengiraffe sorry for the delay, had to run on a meeting :D It should be fixed with https://github.com/mui/material-ui/pull/31308 (I've tested locally, but would be great if you can double check). You can fetch that branch, build the mui-codemod package locally, by going in the folder and running yarn build and then you can test it with:
node D:\workspace\mui\packages\mui-codemod\build\codemod.js v5.0.0\top-level-imports ./src/App.js

You can replace the D:\workspace with your location :)
The alternative is to wait for the build on the branch and test with the packages build on the PR.

@mnajdova great, thanks so much for the fix, will test it and report back tomorrow.

You should be able to test using this package: https://pkg.csb.dev/mui/material-ui/commit/8bb44325/@mui/codemod

@greengiraffe Sir, if we convert the the second level import to top level import it will increse the bundle size right ?

@greengiraffe Sir if we convert the second level import to top level import it will increase the bundle size right ?


Fail to parse valid jsonpath

Nuget Package
JsonPath.Net
Package Version
2.0.0
Operating System
None
.Net Target (if relevant, please specify the version in the description)
None
A clear and concise description of the bug.
'#' character is not accepted in jsonpath, while it is still valid character for json key string
What did you expect?
'#' and other characters should be accepted in jsonpath string
Please add test code or steps to reproduce the behavior.
var json = "{ "#text" : 123 }";
var path = "$.#text";
var jsonPath = JsonPath.Parse(path);

Is there any other information you'd like to share regarding this bug?
Checked it on this site and it works.
SO question related to valid characters.
Code in library to update:
UtilityExtensions.IsValidForPropertyName
UtilityExtensions.IsValidForPropertyNameStart
Code of Conduct & Contributor Guidelines

[X] I agree to follow this project's Code of Conduct and Contribution Guidelines.

'#' and other characters should be accepted in jsonpath string

Per RFC 9535, the only characters allowable in the shorthand property name syntax are alphanumeric and underscore.  To select a property with#, you must use the bracket syntax.
$['#text']

Got you, stackoverflow missguided. Thanks for help!


How to use authentication user flows?

I am trying to figure out how to get and create user flows. This is as far as I've figured out the code for getting a userflow by a filtered request:
  async def get_userflow(graph_client_beta: GraphServiceClient, identifier: str) -> (str | None):
      app_name = f"ChatGPT Sample User Flow {identifier}"

      query_params = AuthenticationEventsFlowsRequestBuilder.AuthenticationEventsFlowsRequestBuilderGetQueryParameters(
          filter=f"displayName eq '{app_name}'",
      )
      request_configuration = RequestConfiguration(
          query_parameters=query_params,
      )
      result = await graph_client_beta.identity.authentication_events_flows.get(request_configuration=request_configuration)
      if result.value:
          return result.value[0].id
      return None

With reference to this doc:
https://learn.microsoft.com/en-us/graph/api/authenticationeventsflow-get?view=graph-rest-beta&viewFallbackFrom=graph-rest-1.0&tabs=python
However, that code errors:
  File "/Users/pamelafox/openai-chat-app-quickstart/./scripts/auth_init.py", line 157, in get_userflow
    result = await graph_client_beta.identity.authentication_events_flows.get(request_configuration=request_configuration)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'IdentityRequestBuilder' object has no attribute 'authentication_events_flows'

I've also tried graph_client_beta.authentication_events_flows, but that does not exist.
Could you advise? I am having a difficult time navigating the source code to figure it out. Thanks!

This is happening on both the V1 SDK and the Beta SDK, with error
 result = await client.identity.authentication_events_flows.get()
AttributeError: 'IdentityRequestBuilder' object has no attribute 'authentication_events_flows'

The Request builders exist in the path
from msgraph.generated.identity.authentication_events_flows.authentication_events_flows_request_builder import AuthenticationEventsFlowsRequestBuilder

For V1 and:
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.identity.authentication_events_flows.authentication_events_flows_request_builder import AuthenticationEventsFlowsRequestBuilder

But seems cannot be imported,  other paths can be imported fine though:
e.g
from msgraph_beta.generated.groups.groups_request_builder import GroupsRequestBuilder

Also checking to see if there are more paths that are available in the generated code, but cannot be imported.

After investigation, I have established that generation is fine:

The problem is most likely that you are using a v1 client to execute a feature only available on beta.
Code causing Error

from msgraph import GraphServiceClient
from msgraph_beta.generated.identity.authentication_events_flows.authentication_events_flows_request_builder import AuthenticationEventsFlowsRequestBuilder

scopes = ['https://graph.microsoft.com/.default']
graph_client = GraphServiceClient(credentials, scopes)

app_name = "Shem Test app"

async def get_auth_flows():
    try:
        query_params = AuthenticationEventsFlowsRequestBuilder.AuthenticationEventsFlowsRequestBuilderGetQueryParameters(
            filter=f"displayName eq '{app_name}'", )
        request_configuration = RequestConfiguration(
            query_parameters=query_params)
        result = await graph_client.identity.authentication_events_flows.get(
            request_configuration=request_configuration)

        if result.value:
            return result.value[0].id
        return None
    except APIError as e:
        print(f"Error - {e}")

asyncio.run(get_auth_flows())

The error:
Traceback (most recent call last):
  File "C:\Users\shemogumbe\kiota_debug\src\auth_flows.py", line 39, in <module>
    asyncio.run(get_auth_flows())
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\shemogumbe\kiota_debug\src\auth_flows.py", line 29, in get_auth_flows
    result = await graph_client.identity.authentication_events_flows.get(
AttributeError: 'IdentityRequestBuilder' object has no attribute 'authentication_events_flows'. Did you mean: 'authentication_event_listeners'?

Code without the Error:
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.identity.authentication_events_flows.authentication_events_flows_request_builder import AuthenticationEventsFlowsRequestBuilder

scopes = ['https://graph.microsoft.com/.default']
graph_client = GraphServiceClient(credentials, scopes)

app_name = "Shem Test app"

async def get_auth_flows():
    try:
        query_params = AuthenticationEventsFlowsRequestBuilder.AuthenticationEventsFlowsRequestBuilderGetQueryParameters(
            filter=f"displayName eq '{app_name}'", )
        request_configuration = RequestConfiguration(
            query_parameters=query_params)
        result = await graph_client.identity.authentication_events_flows.get(
            request_configuration=request_configuration)

        if result.value:
            return result.value[0].id
        return None
    except APIError as e:
        print(f"Error - {e}")

asyncio.run(get_auth_flows())

Has a different issue:
Error -
        APIError
        Code: 403
        message: None
        error: MainError(additional_data={}, code='AADB2C', details=None, inner_error=InnerError(additional_data={'correlationId': UUID('1828442e-3845-4058-9455-18941734d8f0')}, client_request_id='3a112ab8-3655-4731-86c0-462193962879', date=DateTime(2024, 5, 22, 12, 5, 50, tzinfo=Timezone('UTC')), odata_type=None, request_id='da23b5ac-00b5-4f02-82d7-fba0282ada8e'), message="Unauthorized. Access to this Api requires feature: 'EnableMsGraphAuthenticationEventListener' for the tenant: '80e28aad-cbaf-4d00-b758-b8032dd946be'.", target=None)

Considering this is fauture only available in beta and not in V1, the bug in the code that runs, from the API, makes sense, any view on this @pamelafox

Ah, I think that's right! I created a new GraphServiceClient for those flows, but neglected to use the version imported from the beta client. I reverted the code to raw HTTP calls for now but will try out the GraphServiceClient from msgraph_beta soon. Thanks!


Playlist jumps around when trying to double-click on a track to play it

See this gif: https://i.gyazo.com/4fcc20d22e48d111697144b4d72bc5c9.gif
When a track is playing, if I click once on a nearby track, the playlist jumps so that the newly-selected track is centred in the playlist. Is that intentional?
Confirmed that I can reproduce this if I restart foobar2000. I tried to check my settings to see if this is a setting somewhere, but I couldn't see anything.

To add, this isn't happening on my primary playlist, it's happening on a secondary one. I have the following playlists:

It's happening only on the one called "<100%" - that playlist, like the others, is an autoplaylist with query pattern "%format% IS CD AND %logscore% LESS 100" and sort pattern "%path_sort%" and it is force-sorted.


fix an small issue with SQL Variant

missed this during code review and saw this later when doing another implementation.
This does not break anything, just improper way to use enum

Codecov Report

Merging #424 into dev will increase coverage by 0.12%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##                dev     #424      +/-   ##
============================================
+ Coverage     45.92%   46.04%   +0.12%
- Complexity     2198     2206       +8
============================================
  Files           108      108
  Lines         25210    25210
  Branches       4164     4164
============================================
+ Hits          11577    11608      +31
+ Misses        11711    11687      -24
+ Partials       1922     1915       -7

Flag
Coverage Δ
Complexity Δ

#JDBC41
45.84% <100%> (+0.16%)
2193 <0> (+8)
:arrow_up:

#JDBC42
45.82% <100%> (+0.01%)
2197 <0> (+5)
:arrow_up:

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
62.48% <100%> (-0.13%)
0 <0> (ø)

...om/microsoft/sqlserver/jdbc/SimpleInputStream.java
54.81% <0%> (-1.49%)
15% <0%> (-1%)

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
59.61% <0%> (-0.44%)
90% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
52.86% <0%> (-0.13%)
242% <0%> (-1%)

...oft/sqlserver/jdbc/SQLServerPreparedStatement.java
49.91% <0%> (+0.25%)
163% <0%> (ø)
:arrow_down:

...m/microsoft/sqlserver/jdbc/SQLServerStatement.java
59.87% <0%> (+0.3%)
139% <0%> (+1%)
:arrow_up:

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
55.58% <0%> (+0.33%)
0% <0%> (ø)
:arrow_down:

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
33.58% <0%> (+0.44%)
256% <0%> (+5%)
:arrow_up:

...n/java/com/microsoft/sqlserver/jdbc/Parameter.java
59.01% <0%> (+1.28%)
56% <0%> (ø)
:arrow_down:

... and 3 more

Continue to review full report at Codecov.

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


Exercise 64 Builtins

Hi everyone!
I'm just working my way through Ziglings and I hit a issue on exercises/064_builtins.zig, on line 82: const tupni: u8 = @bitReverse(input, tupni);
When running zig build I received this message:
Compiling 064_builtins.zig...
exercises\064_builtins.zig:82:23: error: expected 1 argument, found 2
    const tupni: u8 = @bitReverse(input, tupni);

Changing the line to: const tupni: u8 = @bitReverse(input); as described in the docs (https://ziglang.org/documentation/master/#bitReverse) resolved this and allowed me to complete the exercise, I update Zig every few days and the build I'm using currently is: 0.11.0-dev.3132+465272921, I'm guessing this is a recent change?
Thanks to you all for the great work you've done here, and hopefully this is of some use to the project!

And I've just submitted a PR for this, thanks!

Ignore this! Turns out I didn't read the comments in the exercise fully - how embarrassing :S

Welcome to Zoglings!

how embarrassing

This is not bad and has also happened to me. :smile:


Fallback for aliasing

A follow-up to #706.

When we automatically determine aliases on the way, we should have a fallback when e.g. bodhi is down.
This issues is about:

[x] agree on the solution
[x] agree on how we are going to update the fallback values
[x] think about (and implement) the error propagation -- e.g. warning for CLI and sentry issue for packit-service
[x] implement the solution if needed
[ ] document the workflow in the contribution guide
[ ] create a GitHub Action to update the hardcoded list automatically.

I'd suggest we'd fall back to a static list which could be updated via a pre-commit hook.

Still valid.

Hardcoding an alias list was implemented.
What we are missing is some kind of scheduled check, or even better: job, that would update the hardcoded list when there is a change in Bodhi. Using a GitHub action for this would be a good way to approach it.

* Check if the user guide has information about the hardcoded list, so that users are aware of it.

Do you think users need to know about our fallback solution?  I would say they don't care if it "works as expected".

Yeah, you are right, maybe that is not necessary.


Better integration on Neutral theme

I’ve forked the repo and tweaked it to improve colours with the neutral theme. I have very little knowledge of how Discourse themes work, so I’m not sure if removing the properties will integrate well with other themes. I can make a PR if you want to review it.
Before:

After:

@alfonsomunozpomer Please make this PR.. This is something really required.
Without this, the retorts look odd.

I would go one step further and remove the border even! IMO these should match the default buttons exactly.


Problem with dynamic creation of input fields

Hello there!
Thank you for this great plugin!
However, I have an issue with it. If I create input field dynamically and then apply plugin to it, it's content is not properly formatted. I've created a Plunk to demonstrate the problem: http://plnkr.co/edit/nC54UAnan7DYndWAPyrC?p=preview
Could you elaborate please?
Thank you!

It's because the number you're using for the dynamic fields is +71231234567, which is an invalid phone number. If the number is invalid, it can't be formatted properly. If you use +79051234567 as the number and add the inputs, it works fine.

Confirmed. Thank you @caseyjhol


Fenix 6 Layout

Now I have a stable version using the SteakMenuLayout.xml under the multitimer branch. For some reason, the FONT_SMALL for the Fenix6 is huge in the simulator.
The goal is to create a Fenix 6 layout that looks more reasonable that what it is now.
Below the screenshot on the f235.

This is how it looks in the Fenix6 simulator.

I will take a look at this this week.

I have pushed my changes to support all non-touch round devices with screen size family resources (240x240, etc.). This should keep the number of layouts to maintain low. The following is now the list of supported devices:

and the layout on a fenix 6

@nilsbenson wow that's super cool, thank you! Let's test and we can push the update over the weekend. I think this is a major release and I can't wait to use it in the field. I'll try to install it today on my watch.


Unstable FPS on current simulator

Hi. I'm trying to run the simulator provided in here
The problem is sometimes the simulator run very well on my computer with 60-70+ FPS, but almost other time it only staying bellow 30 FPS, which is very annoying and hard to work with.
Here is my computer spec:

Dell G7-7588 with Ubuntu 18.04.3 LTS
Intel® Core™ i7-8750H CPU (6 cores)
16 GB DDR4 RAM
GeForce GTX 1050 Ti 4GB
HDD only

Other small thing to note:

I have a dedicated monitor hook up to my machine via an HDMI cable, it's only 1080p at 60Hz, same as the laptop screen.

Seem more than enough to run the simulator + some mild computation. But the simulator alone already seems bad ;(
Before asking for help, I had make sure the following things:

Computer is plugged in and fully charged (Computer run on AC, not battery)
Installed proper Nvidia Driver for my graphics cards, update all the software in my OS.

Here are some proof that my computer can run the simulator very fast:

=> 70.5 FPS

=> 67.8 FPS

=> 66.9 FPS
Please notice on the right side of the screen, I have 2 monitor program opened up: htop for CPU + RAM monitoring, nvtop for GPU monitoring. So, when the simulator are RUNNING well:

CPU is at 10-20% utilization at each core
5-6GB of RAM
GPU running arround 1700MHz with 50-65% utilization, GPU mem arround 3500MHz with ~2.1GB of VRAM

Here is when the simulator performing very slow:

=> 28.5 FPS, even when I just stand still

=> 19.7 FPS, too slow

=> 20.4 FPS
Let's take a look at the hardware monitor this time:

CPU is at 10-20% utilization at each core
5-6GB of RAM\
GPU running arround 1700MHz with 35-45% utilization, GPU mem arround 3500MHz with ~2.1GB of VRAM

My Conclusion
By looking at the hardware monitor in 2 cases, I don't see any hardware throttling at all, everything stay pretty much the same except when the simulator perform slowly, the GPU utilization is a bit smaller. Which indicating that's something is wrong with the software so that it can not utilize all the hardware available ???
What did I have tried ?
I have spent quite a lot of time digging into this and have try the following thing:

Restart the OS
Reinstall nvidia driver, lul my GPU still working great with pytorch and keras after many reinstallation
Delete and download and extract the simulator again (both 3). I also see this same problem on lower setting version of the simulator
Disconnect external monitor and try to run on a single monitor only
Go to NVIDIA X Server Setting, try to increase the performance setting of OpenGL and turn off VSync (cause sometime I felt like the simulator is being cap at 30fps). Here are some setting that I have tried, mainly to increase the GPU performance

I even went as far as install this game optimizer for linux: https://github.com/FeralInteractive/gamemode

All the things above haven't resolve the issue. At this points, I haven't been able to run the simulator smoothly for the past 2 days.
Soo then, what can I do to potentially fix this problem ? Not buying a new machine or reinstall the whole OS from scratch of course ;(. I guess that there are some saved configuration file that I can delete to make unity reset its setting about my laptop .... but I don't know how to do that ....
Maybe you guys can add Vulkan support for this to make it run faster and more reliable I guess ....
I'm not sure. But I hope that you guys can help me, especially the one who wrote these simulator since this is happening with all of them.
Again, I would do anything to help you guys resolve this problem. Thanks you and looking for yours help soon ;(

Hi, I have same problem :(  Have any solution >?


Fix content_type for AMQP Message

If use the AmqpHandler with the php-ext amqp, the content type is plain/text for each message in the queue because the property name is wrong written.
This pull request, change the property name Content-type by correct property name content_type.
The patch work fine with RabbitMQ.

https://www.rabbitmq.com/tutorials/amqp-concepts.html says:

AMQP peers typically use the "content-type" and "content-encoding" fields to communicate this information, but this is by convention only.

This does not really reassure me that this PR is correct.. Any clue @videlalvaro? :)

Per protocol spec it should be content-type, but not sure how the library maps this internally. See https://www.rabbitmq.com/resources/specs/amqp-xml-doc0-9-1.pdf
The other PHP library uses underscores as well: https://github.com/php-amqplib/php-amqplib/blob/master/PhpAmqpLib/Message/AMQPMessage.php#L28 so if by mistake your message is created using content-type then it won't be encoded AFAIK, and maybe that's the problem @macintoshplus is referring to

OK thanks. It seems AMQPExchange from the amqp extension uses Content-type http://php.net/manual/sr/amqpexchange.publish.php
Depends on the docs language tohugh, http://php.net/manual/pl/amqpexchange.publish.php shows content_type.. So maybe it changed? @macintoshplus could you try what happens if we send both? Would that be a good way to work with all versions? Ping @lstrojny any help here would be welcome, if we can check for the extension version or something that'd be the best I guess.

Hi,
RabbitMQ ignore all unknown properties. I don't know other AMQP implementation.
Send twice key for the content-type, should be a good idea.

Why send it twice and not send the proper one, assuming RabbitMQ is the
target broker?
On Wed, Mar 9, 2016 at 10:14 PM, Jean-Baptiste Nahan <
<EMAIL_ADDRESS>wrote:

Hi,
RabbitMQ ignore all unknown properties. I don't know other AMQP
implementation.
Send twice key for the content-type, should be a good idea.
—
Reply to this email directly or view it on GitHub
https://github.com/Seldaek/monolog/pull/740#issuecomment-194690982.

My point was that I don't think the code is wrong, but just outdated. If the php AMQP extension indeed changed this then depending on the installed version we should send A or B. That's why I want to hear from the maintainers there before taking action either way.

@Seldaek just go with content_type, Content-type, according to the history, never worked.

OK thanks :)


Undocumented tag

Updated code uses undocumented tag substitution and undocumented properties language.url_substitution and website.sign_out_url_substitution

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

ID: 335b679c-62a4-1ac4-a492-22496aed3a0d
Version Independent ID: 5ada1094-de49-41cc-a4d4-945a16908f4e
Content: Enable header and footer output caching on a portal for Dynamics 365
Content Source: ce/portals/enable-header-footer-output-caching.md
Service: dynamics-365-customerservice
GitHub Login: @sbmjais
Microsoft Alias: shjais

Thank you for reaching out, the documentation has been updated. Please allow some time to reflect the changes.


Added convenience methods in PermissionUtils

Added PermissionUtil.canTalk(User user, TextChannel channel) and convenience method PermissionUtil.canTalk(TextChannel channel)

Please do not PR from master into development.

Yeah... sorry. This needs to be based on the development branch, not master.


nodejs: 14.21.1 -> 14.21.2, 16.18.1 -> 16.19.0, 18.12.1 -> 18.13.0, 19.2.0 -> 19.4.0

Description of changes

https://nodejs.org/en/blog/release/v19.4.0/
https://nodejs.org/en/blog/release/v19.3.0/
https://nodejs.org/en/blog/release/v18.13.0/
https://nodejs.org/en/blog/release/v16.19.0/
https://nodejs.org/en/blog/release/v14.21.2/

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Thank you!  Please target staging-next

Thank you! Please target it to staging-next

@marsam Thanks for the review. I retargeted the PR to staging-next.

Fixed the failing build for nodejs-19_x, cause was patches in pkgs/development/web/nodejs/npm-patches.nix are now useless for nodejs-19_x because they are merged upstream.
They are still required for NodeJS 14, 16, 18 however.

Rebased my branch against staging-next.

Hi @marsam, just checking: do you remember why you sent this directly into an active -next? It doesn't seem to be security related. Thanks!

Hi, I suggested to send it to staging-next because Node v19.3.0 updated npm to 9.2.0, and staging-next had npmPatches which were backports of npm 9.
If this PR landed to master first, it would break nodejs-19_x when staging-next is merged since it merges cleanly, even though npmPatches were conflicting.


component/hook reuse report

Describe the feature
I have been building react now for two years. For much of this time, I figured I could have one hook per module that serves all the components, putting ALL of the api's / helper methods / state variables , etc related to the module within the same hook.
I now know that is NOT how it should be done, after doing a bit of research, and that hooks should generally be granular.
I could probably communicate this better if more information is requested, but I was wondering if these hook/component instances could be tracked and portrayed somehow on the Million dashboard to give developers an understanding of how much memory is being allocated to these layers of the React tree.
If this is unrelated to this project, please help me understand where this could fit into the react dev tools that exist today.
Thanks!
Additional information

[ ] Would you be willing to help implement this feature?

@charlieforward9 the difficult part of implementing this is that custom hooks are just functions in reality. Like you could name it function wooHoo() {} and it would still work. We're able to count the # of executions, but not the actual instances.
I'm interested in your dashboard idea - up for a chat? https://cal.com/aiden (sched the 1 hr option)


Add the weekend 12 remix by i forgor

Song Name
the weekend 12 remix
Artist Name
i forgor
Source
Youtube
Youtube Link
LCUHKCtNAUg
Direct File Link
No response
Song ID
1001
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 106530747

reject
artist name must be descriptive