Question: This package vs. logging to file and having Datadog agent tail the file

The Node.js Log Collection Documentation from Datadog says:

To send your logs to Datadog, log to a file and tail that file with your Datadog Agent

You can stream your logs from your application to Datadog without installing an Agent on your host. However, it is recommended that you use an Agent to forward your logs as it provides a native connection management.

I know that the documentation is written about Winston, but it seems like the guidance would still apply regardless of the logging library used.
What is the difference between using this transport vs. logging to a file and tailing that file with the Datadog Agent? Is this package strictly useful in an environment without the Datadog Agent, or are there benefits to this transport that make it worth using even when the Datadog Agent is available?
Thanks!

Because we are on Heroku, a 3rd option seems to be available to us - using Heroku's logplex:
https://docs.datadoghq.com/logs/guide/collect-heroku-logs/
I remain curious about my original question though.

Personally, I'd use the datadog agent + writing to a logfile, but that also means you have to install the agent, and manage logfile rotation. The agent will probably do a better job than the plugin will.
The difference really is you don't have to install the agent when using this plugin. It is really for if you don't have the ability to install the agent.

Another advantage of this library (which I only recently discovered): some log-tailers have edge-cases in parsing logs (before it even hits the Datadog logs pipeline). In our case, fluentd broke up very long log lines (from around 20kB, and we have log lines that are 1MB+). After a long discussion with Datadog technical support, we agreed with them that this library's approach could be more consistent in collecting logs. They also assured us that the Datadog intake API practically has no rate limits or throughput limitations, so there's no risk here.
We've been running with this for a very short while. So far, it didn't have any downsides compared to process.stdout => firelens => fluentd, which is the "documented" approach on Datadog's website, and works around every issue we have observed so far.

Thanks for the feedback! Although you said it "has no rate limits or throughput limitations", do you also mean payload size? I found the 1MB limit from the agent docs when I made the plugin. Since you say you have 1MB+ log lines, are you having an issue sending logs of that size using it? I don't hard fail when it reaches 1MB+, but I do print an error to the error callback if you have it defined.

What I originally meant, and what I asked them about, was that if you send a million requests per second (each one of them valid on its own), all of their contents will be ingested. So switching to this approach is scalable, as long as Node.js and this library are able to push the data out.
I have seen logs that are 1MB+ in Datadog's index, but to be fair that's the size after the whole Datadog pipeline runs. The raw data leaving Node.js might have been anywhere from 0.5MB to 1.5MB, I can't tell without looking more into it.


Post request responses 401

var express = require('express');
var proxy = require('http-proxy-middleware');
var app = express();
app.use('/api', proxy({target: 'http://www.example.org:5000', changeOrigin: true, pathRewrite: {'^/api': ''}}));
app.listen(8080);

The target host is OK, which responded correctly when I send a get request. But when I send a post request, server responded with a status of 401 (Unauthorized). I checked the server and find out it had never gotten post request. So, I think the middleware hasn't send post request to the server successfully. But I don't know why.

Hi,
Please use StackOverflow. I think that would be a better place to troubleshoot your setup.
Thanks.


s-coordinates

Hello,
I am doing some tests in order to use parcels with roms outputs. To certify if everything was running as expected, I made two tests:
-keep u,v, and set w=0 (teste2_3rsteps): the files continue moving in the vertical, I was expecting them to stay at the deployment depth and being advected only horizontally.
-set u,v,w=0 (teste3_3rsteps), as expected the particles don't move.
The nc files are in this link, if you think they're useful.
https://meocloud.pt/link/496136f3-00e6-4131-a993-88ebbf77eec8/roms_outputs_3tSteps/
Am I doing something wrong, or is this a bug?
Best regards,
Ana

Hi @ana-machado, can you also send the scripts that you used to create these simulations?

Hello. Of course. I added the grid file, the script to run parcels, and the one to plot the previous figures in the same shared folder:
https://meocloud.pt/link/496136f3-00e6-4131-a993-88ebbf77eec8/roms_outputs_3tSteps/
Thank you very much
Ana

Hi @ana-machado. I have been looking at your code, but had to change quite a bit in your script, for example because the out3.nc file that you provided seems to contain only 0s... I thus now use the out2.nc file
Anyway, the main reason it seems why your particles were also moving up and down is because you used the AdvectionRK4_3D kernel, instead of the AdvectionRK4 kernel. As soon as you provide vertical velocity (W), then your particles will move up and down...
The following code works for me
from parcels import FieldSet, ParticleSet, JITParticle, AdvectionRK4, ErrorCode
from datetime import timedelta as delta

data_file = 'out2.nc'
outFileName = 'teste3_3tsteps.nc'

def DeleteParticle(particle, fieldset, time):
    particle.delete()

filenames = {'U': data_file, 'V': data_file, 'W': data_file}

variables = {'U': 'u', 'V': 'v', 'W': 'w'}

dimensions = {'lon': 'lon_rho', 'lat': 'lat_rho', 'depth': 'SigmaDepths', 'time': 'scrum_time'}
indices = {'lon': range(0, 367), 'lat': range(0, 480)}

fieldset = FieldSet.from_c_grid_dataset(filenames, variables, dimensions, indices)

pset = ParticleSet.from_line(fieldset, size=100, pclass=JITParticle, start=(-9, 37), finish=(-9, 42), depth=-5)

pset.execute(AdvectionRK4, runtime=delta(days=15), dt=delta(seconds=120),
             output_file=pset.ParticleFile(name=outFileName, outputdt=delta(hours=1)),
             recovery={ErrorCode.ErrorOutOfBounds: DeleteParticle})
print(pset)

With output:
P[0](lon=-9.010936, lat=37.015213, depth=-5.000000, time=1296000.000000)
P[1](lon=-9.201909, lat=38.215859, depth=-5.000000, time=1296000.000000)
P[2](lon=-9.593782, lat=38.297270, depth=-5.000000, time=1296000.000000)
P[3](lon=-9.000000, lat=38.666667, depth=-5.000000, time=1296000.000000)
P[4](lon=-9.000000, lat=39.222222, depth=-5.000000, time=1296000.000000)
P[5](lon=-9.000000, lat=39.777778, depth=-5.000000, time=1296000.000000)
P[6](lon=-9.036016, lat=40.293679, depth=-5.000000, time=1296000.000000)
P[7](lon=-9.441562, lat=41.624790, depth=-5.000000, time=1296000.000000)
P[8](lon=-9.623545, lat=42.610948, depth=-5.000000, time=1296000.000000)
P[9](lon=-10.280122, lat=43.423971, depth=-5.000000, time=1296000.000000)

Note that this code above will only work with the bugfix in #763, if you are running with the latest version of Parcels. However, since you didn't seem to get hindered by this bug before, maybe you're still on an older version?

Hi Erik!
Thank you very much for your reply. I am happy the solution is easy, but now I am in trouble.
Since you noticed I was not running the latest Parcels version, I decided to install it again, but now I am having an error, possible related with the bugfix #763. But since I installed parcels via the easiest way (Parcels Conda-Forge package), I don't know how can I change the file converters.py .
I also used git to download master branch for a directory, and there I can change converters.py (of course), but I am not discovering how to run it from there... do you have any information about this? I tried what was on the website, (Installation for developers), but have no clue what to do after this (python setup.py install)
Thank you very much
Ana

I am sorry to insist on this, but, reading your e-mail again, I continue with this doubt. I understand that if I use only 2d advection, it solves this problem, but shouldn't 3d advection leave the particles at the same depth if the vertical velocity is null? The file you said had u,v,w =0 was also a test, and in that case, as expected, the particles don't move in any direction.


Nathaniel webpage, modifying index and tim webpage, insert images on …

…folder

wow this is wonderful


Fix broken live test

Not sure why the live test run succeeded on this yesterday, but I missed a few tests

/azp run java - storage - tests


Introduce cross-cluster-replication feature in OpenSearch

Overview
This issue is to track release of Cross-Cluster-Replication feature as part of OpenSearch 1.1. An experimental release was announced on Feb 22, 2021 and this issue is track full release as part of OpenSearch.
The RFC covers key details of the approach and design.
At a high-level, Cross-Cluster Replication follows an active-passive replication model where the follower cluster (where the data is replicated) pulls data from the leader (source) cluster
The replication machinery is implemented as an Elasticsearch plugin that exposes APIs to control replication, spawns background persistent tasks to asynchronously replicate indices and utilizes snapshot repository abstraction to facilitate bootstrap. Replication relies on cross cluster connection setup from the follower cluster to the leader cluster for connectivity. Once replication is initiated on an index, a background persistent task per primary shard on the follower cluster continuously polls corresponding shards from the leader index and applies the changes on to the follower shard. The cross cluster replication plugin offers seamless integration with OpenSearch Security plugin for secure data transfer and access control.
Key User Stories

Users should be able to start replication for desired indices on the leader cluster onto the follower cluster.
Users should be able to start replication for indices matching wildcard pattern on the leader cluster onto the follower cluster.
Users should be able to stop replication for desired indices on the follower cluster.
Users should be able to see the status of an ongoing replication activities.
Users should be able to use node-to-node encryption feature of OpenSearch Security plugin to encrypt cross-cluster replication traffic.
Users should be able to control access for replication activities via OpenSearch Security plugin.

All the dependent changes in the other plugins and in OpenSearch are being tracked under: https://github.com/opensearch-project/cross-cluster-replication/issues/94


[flow] Collapse theme is not an external prop

I don't follow. This is not a default property.

It's injected by a HOC, not required for a component user to pass in.

But the property is required for the component to work. I think that being required by the users is another topic, no?

This is the exact pattern for flow use in the entire codebase. DefaultProps & Props == internal props.
export Props represents user props only
DefaultProps contains HOC injected and defaultProps internal to the component.

This is also why you see classes located in DefaultProps for example

This is the exact pattern for flow use in the entire codebase.

@rosskevin Oh, I have missed this. I'm gonna change the whole code base. At some point, we might be supporting a naked UI version of the components, without the HOCs. If we remove the HOCs from the equation, I can't think of any reason why it shouldn't be required.

FYI - Technically, now that HOCs are correct, instead of adding classes and theme here, we could be importing types from the HOCs and intersecting them here.

Also, before you change the pattern for naked, let me know and let's try one. In our apps, I import Props from here to build bigger components. Internally that prop is required, but externally with HOC the result should be the same.

I have been opening #8477.

So I'm going to merge this as-is, because the entire codebase is this way and it is not worth leaving open.  We'll pick up the changes in your other PR.

Nooo, look at the yarn docs:api output...

+| theme * | Object |  |  |


[question] Is there an Open API specification for this protocol?

I would like to know if exists an Open API for it or if there are plans to add it?

I am not sure that I understand your question. There is a reference implementation of the protocol here https://github.com/Microsoft/vscode-languageserver-node/tree/master/protocol and the specification in this repository here https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md. Do you expect more?

Sorry, I was not clear, I meant the OpenAPI specification https://www.openapis.org/, previously known as Swagger.

No, that doesn't exist. I will close the question. If we want to add this it should come via a PR.


Command-line interface

Description:
This is an initial implementation of a command-line interface. So far it's only possible to get details as shown in the Python API documentation with alomost no error handling.
$ hass --script commandline -h
usage: hass [-h] [-i] [-s] [-e] -p api_password [-r ha_instance]
            [--script {commandline}]

Command-line interface for a Home Assistant instance

optional arguments:
  -h, --help            show this help message and exit
  -i, --info            show information about a Home Assistant instance
  -s, --services        get all available services.
  -e, --entities        get all entity states.
  -p api_password, --password api_password
                        the API password for the Home Assistant instance
  -r ha_instance, --remote ha_instance
                        the IP address of the Home Assistant instance
  --script {commandline}

This PR is a RFC.
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
Example entry for configuration.yaml (if applicable):
http:
  api_password: !secret http_password

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Since I can see this CLI grow out to do a lot (and maybe also include the scenegen project), I suggest we convert it to it's own repo and be a standalone Python package that depends on Home Assistant (so still uses remote internally).

Yeah, would be easier to maintain and keep things separated.

Will close this as the options of a standalone project are being explored.


Improvement of the competition for the IROS conference

This issue lists the improvements that we are going to implement before starting a new edition of the wrestling competition.

[ ] Add team members in the participant.json file, e.g., "team":["John Smith", "Robert Young", "Paul Parker"]

[ ] Add an optional organization in the participant.jsonfile, e.g., "organization": "The University of Edinburgh"

[ ] Give awards to the second and third place.

[ ] Allow more time at the end of the qualification for the participant to update their controllers.

[ ] Allow a participant to start a game versus another participant of their choice.

[ ] Run the final games as best of 5 games (instead of best of 3).

[ ] Leave a little bit more time to the controller dockers to start-up before the game actually starts.

[ ] Use a better CPU core partitionning:

Webots could be assigned CPU 0 (physical) via docker run --cpuset-cpus=0,4 ...
The controller of RED robot could run on CPU 1 (physical) + share CPU 3 (physical) via docker run --cpuset-cpus=1,5,3 ...
The controller of BLUE robot could run on CPU 2 (physical) + share CPU 3 (physical) via docker run --cpuset-cpus=2,6,7 ...

[ ] Improve the KO countdown algorithm: when a robot gets below the height threshold, start the countdown for this robot. However, if the other robot gets below the first one, then stop the countdown for the first robot and start it for the second one, etc.

[ ] Limit GPU RAM usage.

[ ] Reduce the strength of the motors to be more realistic.

[ ] Reduce a lot the height of the stage to give a chance to robots who fell off to recover by climbing up one small step.

to be completed...

The basic time step of the simulation is set to 20 ms which limits the frequency of sensors to 50 Hz indeed. Lowering this value to 10 ms would allow a frequency of 100 Hz, but that would also slow down significantly the simulation speed and I am not sure Webots would be able to keep up real time in these conditions. I will make make some investigation to evaluate if that is doable.
Alternatively, we could add a InertialUnit with some noise. However, the inertial unit device provides ground truth information and doesn't drift at all, which is not very realistic. So, I would like to avoid this option as much as possible.

I conducted some tests on the competition server and it turns out that with a 10 ms time step, Webots cannot run real-time any more, but approximately 0.5x real time in particular when the robots are colliding with each other. A possibility would be to make Webots run 0.5x real-time on the server and document it. The robot controllers can always use the getTime() method to know the current simulation time. That would also leave twice as much real time for the controllers to compute. The drawback of this approach is that games running on the server would last twice as much time, making the waiting queue last longer than before.
We now have to consider what is the most important: having a 100Hz IMU (and other sensors) as well as extra controller compute time or having a fast evaluation queue? I would tend to consider the benefits are higher than the drawbacks. What do you think?
Also it would be possible to add more self-hosted runner machines to decrease the queue time. But we have to ensure these runners machine have the same hardware (CPU, GPU, RAM, etc.) so that the resulting games are not dependent on the machine on which the run. However, currently we don't have two exact same machines that we can register as self hosted runners.

If Webots running at 0.5x real time is viable with the only drawback of the evaluation queue being slower, one potential middle ground would be to limit the number of fights during the qualifiers to either a max number of fights (5 for example) or a limited number of time (20-30 minutes) this way the reduced time would only require people to review what happened and resubmit. it would also capture and contain the times when the evaluation queue bricks.
I don't see resubmitting as that much of an issue as it requires participant interaction to climb which is a good thing, many times when submitting and having to wait longer than 20-30 to review the work we would zone out. Having to wait for multiple hours completely derailed development.

Nice idea. We will have to introduce badges for all those achievements.

I think something is wrong with the improved countdown algorithm, or may I have understood the rule wrong?
Isn't it that in the unique situation, if the first bot is right above (or even some part of it may be a hand or leg...), then the countdown will only start for the one right below it?
If this is so, the match between the Oliviers' and iijneks' controllers shows that even if they are way apart from each other, it will trigger the unique situation and the KO countdown as I mentioned above.
It would be great if you could clarify the rule a little bit more.

It is difficult to determine if a robot is right above the other. So, the rule is actually simpler than what you imagined, based on the altitude of the head of the robot. It can be summarized as follow:
Definitions:

"Up" means that the Z coordinate of the head of a robot is above the height threshold.
"Down" means that the Z coordinate of the head of a robot is below the height threshold.
"Below" means that the Z coordinate of the head of a robot is below the one of the other robot.
"Above" means that the Z coordinate of the head of a robot is above the one of the other robot.

Rules:

The two robots are up: if one robot gets down, then its countdown starts.
Only one robot is up: if it falls below the second robot, then the countdown of the second robot is stopped and the countdown of the first robot starts.
The two robots are down, the first robot being above the second one: if first robot gets below the second one, the countdown of the first robot is resumed while the one of the second robot is stopped.
Whenever a robot gets up, its countdown is reset.


Update LoggingConfiguration.cs

add final param by AddRule Method

This is a breaking change. You have to make new methods, instead of adding parameter to existing ones.

@snakefoot I don‘t want to configure nlog by xml file.I want configure nlog by LoggingConfiguration.but the AddRule method don't has 'final' param. why this is a breaking change?

why this is a breaking change?

Your code-change requires a complete recompile of all source-code using NLog, or else they will get a MIssingMethodException:
Ex. This method is suddenly gone:
public void AddRuleForOneLevel(LogLevel level, Target target, string loggerNamePattern)
Instead there is this method, but it has a different signature:
public void AddRuleForOneLevel(LogLevel level, Target target, string loggerNamePattern, bool final = false)

@snakefoot  So, Should I open a new issue??

@893949088 You can just add more commits to the same PR. They will be squashed into a single commit before merge.

@snakefoot But I don't have more change to commit.    ╯﹏╰ !!

@893949088 If you want in included within the next year, then you need to fix the breaking change. Else it will be postponed until like forever.

@snakefoot  I'm very sad. why is the 'LoggingConfiguration' imperfect？

why is the 'LoggingConfiguration' imperfect？

Because of the breaking change you have introduced, by changing the signature of the existing methods.

@snakefoot How can I do it to  fix the breaking change？I haven't submit PR before.
^_^"

@893949088 The breaking change is that you have modified the signature of the existing methods. The very simple solution is not to modify the signature of the existing methods.
So just add the new methods without default parameters, and make the existing methods call the new method:
public void AddRuleForOneLevel(LogLevel level, Target target, string loggerNamePattern)
{
   // Existing method forwarding to new method
   AddRuleForOneLevel(level, target, loggerNamePattern, false);
}

public void AddRuleForOneLevel(LogLevel level, Target target, string loggerNamePattern, bool final)
{
   // Do the right thing
}

@snakefoot  Thank you very much!!!

〒_〒！〒_〒！〒_〒！

@893949088 Remember to remove the parameter default values for the new methods.

looks good, thanks!
Will merge this when Travis gives green (restarted Travis, it was stuck)


Avoid null PointValues when merging points in SlowCompositeCodecReaderWrapper

Just adds a null check when gathering the sub-PointValues in SlowCompositePointsReaderWrapper.getValues.
This is a disagreement in what the FieldInfo says (that this field has points) versus what the underlying AssertingPointsReader (in this case) getValues returns for this field (null).
Closes #12858.

Thanks @mikemccand.  I've repo'ed this locally, by adding a @Repeat(iterations = 1000) to the test, then applied your patch.  I see another variant of this, in SortingPointValues too. Coming from a null on this code path:
at org.apache.lucene.index.SortingCodecReader$SortingPointValues.<init>(SortingCodecReader.java:81)
at org.apache.lucene.index.SortingCodecReader$4.getValues(SortingCodecReader.java:478)
at org.apache.lucene.codecs.PointsWriter.mergeOneField(PointsWriter.java:49)
at org.apache.lucene.codecs.PointsWriter.merge(PointsWriter.java:231)
at org.apache.lucene.codecs.lucene90.Lucene90PointsWriter.merge(Lucene90PointsWriter.java:187)
at org.apache.lucene.tests.codecs.asserting.AssertingPointsFormat$AssertingPointsWriter.merge(AssertingPointsFormat.java:133)
at org.apache.lucene.index.SegmentMerger.mergePoints(SegmentMerger.java:185)
at org.apache.lucene.index.SegmentMerger.mergeWithLogging(SegmentMerger.java:298)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:145)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5245)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4733)
at org.apache.lucene.index.IndexWriter$IndexWriterMergeSource.merge(IndexWriter.java:6534)
...

Do we need to null check delegate.getValues(field) too ?

This seems related to ghost fields, that were discussed and (partially) dealt with in #11393 . The specific scenario triggered by this failure did not surface until now , I believe.

Thanks @javanna. Given this, I went ahead and applied the null check in SortingCodecReader too, which is consistent with other usages of getValues.

Thanks all, I'll merge to 9.9.x (no need to respin) and port forward to 9.x and main.


Feat/fraud reporting omnirpc client

Description
Replacing #1119
This PR tackles the case of Fraudulent Snapshot by a Guard/Notary outlined in the https://github.com/synapsecns/sanguine/issues/1118

lines 39-44 in Snapshot.sol has incorrect comments for state sizes (is 50, should be 62 with gas data)


NoSQL database options are empty.

Description

DBeaver Version
22.1.5
Operating System
macOs Monterey 12.5.1
Database and driver
No response
Steps to reproduce

Click on the button to connect a database
Select the NoSQL option on the left.

Additional context
No response

Hi, could you please send me the log files? You can find instructions here: https://dbeaver.com/docs/wiki/Log-files/. Thank you.

NoSQL databases supported only in PRO version of DBeaver.


Add a hook for scroll position to notify scrolling context when dimen…

The scrollable needs to know if the content dimensions in the scroll position has changed in order to update its semantics node correctly. This pr adds an API to ScrollingContext to listen to the change.
fixes https://github.com/flutter/flutter/issues/40419
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

This looks similar to some of #85499, what do you think @chunhtai?

I think i can make use of the scroll notification to do the job, but I more toward to add this as a call back because the scrollable is strictly tied to a scroll position and not any arbitrary scroll position below its widget sub tree, plus there is one frame delay for it

#85499 landed, do you need to update here @chunhtai? Or is this ready for review as is? What do you think?

I think we still have to figure out whether to add the new api or use the scrollmetrics notification, I currently more toward adding the api See my previous comment.

blocked on https://github.com/flutter/flutter/pull/87421/files

@Piinks @xu-baolin  PTAL 🍡

Just waiting on the scroll metrics change to roll, there were some failing tests but I think I have them all fixed. Also, CI is unhappy here.

Just waiting on the scroll metrics change to roll, there were some failing tests but I think I have them all fixed. Also, CI is unhappy here.

Thanks 😄

Update: we are still waiting on the scroll metrics PR to roll.


Fix height of subresource button in Inspector

The subresource button has incorrect height when the editor uses a large font size.
This is because the button itself does not have text or icon assigned (they are implemented as another layer on top of that button). Font height is not added to the button's minimum size when the text is empty.

Before
After

Thanks!

Cherry-picked for 4.0.2.


Fixing example code for binarycrossentropy in losses.py file

The example mentioned for the Keras API binarycrossentropy was failing with the error AttributeError: 'list' object has no attribute 'shape'.
>>> y_true = [0, 1, 0, 0]
>>> y_pred = [-18.6, 0.51, 2.94, -12.8]
>>> bce = keras.losses.BinaryCrossentropy(from_logits=True)
>>> bce(y_true, y_pred)
AttributeError: 'list' object has no attribute 'shape'

It works if we change the input from list to arrays.
>>> y_true = np.array([0, 1, 0, 0])
>>> y_pred = np.array([-18.6, 0.51, 2.94, -12.8])
>>> bce = keras.losses.BinaryCrossentropy(from_logits=True)
>>> bce(y_true, y_pred)
<tf.Tensor: shape=(), dtype=float32, numpy=0.8654580116271973>

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

Project coverage is 57.68%. Comparing base (dbad6b0) to head (5cb36ae).

:exclamation:  There is a different number of reports uploaded between BASE (dbad6b0) and HEAD (5cb36ae). Click for more details.
HEAD has 6 uploads less than BASE

Flag
BASE (dbad6b0)
HEAD (5cb36ae)

keras
4
1

keras-torch
1
0

keras-tensorflow
1
0

keras-jax
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #20207       +/-   ##
===========================================
- Coverage   79.36%   57.68%   -21.69%
===========================================
  Files         501      501
  Lines       47380    47380
  Branches     8706     8706
===========================================
- Hits        37604    27331    -10273
- Misses       8015    18344    +10329
+ Partials     1761     1705       -56

Flag
Coverage Δ

keras
57.68% <ø> (-21.54%)
:arrow_down:

keras-jax
?

keras-numpy
57.68% <ø> (+<0.01%)
:arrow_up:

keras-tensorflow
?

keras-torch
?

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

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


Branching for Polymer 2

Yep, but maybe in a month or two.  Will be also the v2 of the Polymer Skeleton. 🚀

What about upgrading everything to Polymer 2 now as first thing?

I agree. There is no problems about the rc release? I mean breaking changes before the final release..

RC will not have breaking changes, but if will have some, I think will be small changes, so no problems!
We can close a bunch of issues before pushing the branch to the master.

So we need to switch from Webpack to Polymer-cli. Related #6.
Also we need to integrate the polymer serve withpostcss and browser-sync (basically with our dev command).
Another thing could be to think about the folder structure as ferrety proposed with:

main-app.js
main-app.tpl.html
main-app.postcss
view.html (or main-app.html)

I will be back on this and other issues this week end.

Proposal (just thinking):

main-app.html
main-app.postcss

During the development process the .postcss and the .html will be watched.
When .postcss is modified, the content is transpiled and is putted within the .html.
As we will not use webpack we can try to use the new

New, definitive branch related: https://github.com/PolymerX/polymer-skeleton/tree/wp-polymer-2

Invalid. Refer #29 for Polymer 3.


Correct PostgreSQL apps to PostgreSQL services

What
Changes one word. PostgreSQL is a service, and the sentence is referring to what service plan it should use.
How to review
Read and consider.
Who can review
Not @46bit

thanks for spotting and correcting @46bit


[Feat]: Add search option

What feature?
I have an idea
If we add a search option that will easy for the users to search a particular project
Add screenshots
Add screenshots
Code of Conduct

[X] I agree to follow this project's Code of Conduct

What feature?
I have an idea If we add a search option that will easy for the users to search a particular project
Add screenshots
Add screenshots
Code of Conduct

[x]  I agree to follow this project's Code of Conduct

i would like to work on it under gssoc2023

Hey @suzy-g38 ,
Just wanted to give you a heads-up that I've completed the feature request you made it here. I've made the necessary changes and I have to create a pull request for your review.
Would you mind taking a look at the changes when you have a moment? I would greatly appreciate your feedback and any suggestions you might have.
Thanks in advance for your time and help!

Assigned to you @suzy-g38

@suzy-g38 are you working on this issue ?
@priyankarpal I think she is not working on it , please assign it to me.

@suzy-g38 are you working on this issue? @priyankarpal I think she is not working on it, please assign it to me.

her one PR got merged & now she is working on it.

Completed. Thanks for your contributions 🎉 ❤


document required_approving_review_count parameter for branch protections

See #160 and #89
Signed-off-by: Ben Abrams<EMAIL_ADDRESS>

See also #181
Fixes https://github.com/terraform-providers/terraform-provider-github/issues/233

@aeschright fixed and rebased


feat: add some more fns to the blockchain package

[ ] make sure to add all for all the chains
[ ] add block related rpc fns

done by #877


VCRUNTIME140_1.dll not found

Bug
Whenever I try to launch Northstar, I get a popup displaying the following message:
NorthstarLauncher.exe - System Error
The code execution cannot proceed because VCRUNTIME140_1.dll was not found. Reinstalling the program may fix this problem.
Long story short, it didn't.
Steps to reproduce
I don't think this is happening for anyone else, but for me I simply launch the game and the message displays.
Specifications

Northstar version: 1.8.0 (I think that's the newest version, because I've downloaded it like 3 times today)
Platform: Origin/Steam

Have run the base game though steam at least once after install?

Please use your brain
https://r2northstar.gitbook.io/r2northstar-wiki/installing-northstar/troubleshooting#vcruntime

Thanks, I didn't know that I had to launch the base game first. In hindsight, it seems kinda obvious, but hindsight is 20/20. Foresight really isn't.

Aaannd nevermind. I'm confused as hell because when I try to launch the vanilla game, i get a popup saying, "Failed to load the launcher DLL at "C:/Program Files (x86)/Steam/steamapps/common/Titanfall2/bin/x64_retail/tier0.dll": The specified module could not be found.


[#188183739] increase ruby support

Fix issues where the gem wouldn't work with never version of rails or just generally in newer projects.
This is because older projects had a Gemfile.lock for a specific dependency version. This forces the dependencies to specific versions and fixes the issues.
https://www.pivotaltracker.com/story/show/188183739

Still a WIP, Sasa needs to perform some additional tests on other projects first.


104 ConnectionResetError

Hi guys,
I've been facing a random error message that I can't get my had around. The weird thing is that I haven't found anyone who faced a similar issue before, and I can't even find a way to regenerate it myself.
So the error is simply as I typed in the title. I get very random 104 ConnectionResetError errors every now and then. It happens randomly, and on any endpoint I use.
I can't really provide code from the project, because I wouldn't know which part to share exactly.
I think this is either something related to the connection itself "On the network level, maybe!", or maybe salesforce just drops connections for some unknown reason?!
I tried to analyze the time patterns, because maybe this happens on certain time intervals, but we're still in development, so not much data to base a conclusion on.
Another solution tried was a simple try/except, to resend the request, but the second one failed too which was weird. I think delaying the second by a couple might work, but I haven't tried that out yet.
so anyway, my question is, Did someone face this same error, and/or know of a solution?

I found a strange commit with ConnectionResetError in the pull request 192 in April. Now I understand what you tried.
I have found some links. It is not very optimistic, but inspirative.
https://salesforce.stackexchange.com/questions/107673/connection-reset-exception-using-soap-integration
https://developer.salesforce.com/forums/?id=906F00000008pMeIAI
You need to investigate it more.

Is it a problem with login.saleforce.com (test.salesforce.com) or with salesforce data instance?
Do you monitor number of new connections to SFDC per minute? Number of parallel connections? Number of connections in a state before a complete close, not state ESTABLISHED? Do you develop on Linux?
Do you use also SOAP frequently immediately before the problem? (If I remember, it creates and closes a connection for every request)
I think that this error can be reproduced if a connection is created, pull out Ethernet, kill the process to break the connection on the local side, plug Ethernet and repeat it more times. Then would be understandable that SFDC starts to reset new connections and that retry doesn't help.
Every SFDC instance has about three IP addresses. It is not easy to convincingly demonstrate that another tool can connect to the same IP address from the same IP address or also by the same session, without extensive monitoring of IP or logging. E. g. Wireshark is perfect at own organization, but with risk of leak some sensitive private data outside. I can not help until you analyze your data enough.

I asked around, and apparently this happened with other people too, but I haven't found direct reasons/solutions for it yet! I got a suggestion to change my hosting though which I thought kinda weird, but maybe I'll try it out since it's a network error after all.
My main problem really is putting the salesforce interactions in my main request/response flow. It would be better to separate the salesforce interactions in a scheduling tool like celery and implement a retry mechanism into it. That probably should be followed for all similar workflows, right?
Anyway, that doesn't really solve the issue, so I'll keep digging.
To answer your questions above,

this problem happens randomly with both login.salesforce.com and test.salesforce.com, but I'm not sure what is a salesforce data instance.
I develop on Ubuntu. But I mainly use Docker for both local and production environments. I don't have monitoring installed yet! I only use Sentry for error monitoring. I was thinking of add Opbeat for my metrics. Do you have a preferred tool?
Not at all. It happens most of the time with regular REST calls. The only SOAP call I use is the convertLead and I rarely use it.

Data instances are e.g. na1,salesforce.com, ap*.salesforce.com, eu*.salesforce.com or cs*.salesforce.com or what you see after login in the browser. Login servers are login.salesforce.com or test.salesforce.com. You can see it in the traceback that ...site-packages/salesforce/auth.py is present (login request failed) or not (data request). A statistics of connections can be found by netstat -t | grep salesforce.com and counted ESTABILISED, *_WAIT and other status, especially connections to the site that rejected a connection. If the source IP ports are frequently changing then you can guess from outside how frequently are new connections open.
Brainstorming opinions
Maybe you start too many connections by many processes or kill and start a new process too frequently. Every login is by default logged on the terminal. You can easily configure a format with timestamps and log it very simple how you need. Maybe you are running a multi-tenant application... (It is said that it works also well with django-salesforce, but I don't know details.)
Maybe you find something unexpected high on Setup / Security Controls / Session Management log or Login History. Four logins per minute are absolutely fine over a very long period if the old connections are closed correctly. (Not tested more frequently.)
I think that Celery is a last resort or a temporary solution or useful for investigation. I would try first to specify Forcing Python Requests to connect to a specific IP address on retry after remote reset. You can also try another tool to connect and check if the success difference is statistically very significant, but I think that a web browser retries another IP addresses returned by DNS and this is why it is more successful. I think that requests package is originally written for web servers but not optimized by default to reach higher reliability on cloud services. (to can switch IP before an overloaded IP is removed from DNS. What is universally better? To can not connect rarely or to see possibly rather obsoleted data at that time?
I expect that to retry regularly after reset by SFDC will make it worse. Better is to think what he does not like about me. Maybe Docker or some firewall or NAT before development machine or something that terminates an unused connection silently sooner than python-requests or Salesforce. Maybe Salesforce thinks about me I'm holding to many connections, but I think they have been lost yet and I must open a new. It can be useful to close an unused connection e.g. after two or five minutes by python-requests pool. I remember a bad experience many years ago when I was working on Windows with Linux VirtualBox. (Iddle timeout or keepalive or what it was? Now with native Linux nothing need to be configured and I can rely on connection status.)
You need to log some statistics data about the traffic before the TCP reset error. Or can write a standalone application (like a new command for manage.py) that regularly runs a request e.g. for 8 hours with some frequency and then 2 hours pause (in order to be sure SFDC closed all lost connections) and repeat with another frequency. Maybe you find that a request more frequently than 2 minutes is perfect, but e.g. 6 minutes could be the biggest problem and think that some delay can accumulate lost connections on SFDC most frequently. Then unused connections must be closed at better timeout or configured a better keepalive packet interval. If you find a solution by python-requests, e.g. by a custom Transport Adapter I can add a hook for customization.
Please don't denounce what is incorrect too soon. Try to find a way. I'm preferring to delete the brainstorming altogether after you find a mistake.

I think that the best method (to can do it yourself) is to try to change everything first the simplest way. Create a new developer SFDC account independent on your company. Install django-salesforce at home (where are no other connections to SFDC) on anything you have (windows, mac or linux) without any containers etc. and try the test with periodic requests. I believe that it will work. Then make slowly these two test environments more and more similar, preferably to continue at work, until you find an important difference. Maybe a row in container configuration finally.
By "monitoring" I meant something very simple ad hoc used probably only once to see inside and not important later more.
salesforce.backend.query.request_count or in future salesforce.dbapi.driver.request_count

Ok. Thanks Hynek for all the help and ideas. I like the idea of starting simple and small and rise up from there until I find the single change that causes the problem. It's only problem is how much time it needs, so I'll have to do that and at the same time have a workaround in place.
Will update the issue with my findings and/or workaround.

It will be not very complicated probably. You can try also the reverse direction: On the same hardware to simulate a similar traffic intensity to a sandbox and to change to the simple variant unit you match. Create new sandboxes until you have two sandboxes at the same site.
You can target at
A) an attribute of the request, that is temporarily blacklisted or problematic: Your IP address, your account, your session token, all 3 IP addresses of SFDC instance or only one. How long inactivity is usually necessary until it starts to work. (e.g. until DNS cache expires and the app starts to use another IP?) Are retries contra productive?
B) Guess the most probable reason:

many deterministically broken connection - e.g. after inactivity longer than something - use the default REQUESTS_MAX_RETRIES=1 in the test app to see them.
probably high traffic at SFDC - coincidence of similar problems at the same time at absolutely unlike independent requests.
after your high continuous traffic from more connections or after many consecutive invalid requests. (but you would see normal verbose exceptions first in both cases)

Closed, because there is not enough information for long time to reproduce the issue. Can be reopened if more information are known.
Discussion forums say mostly that ConnectionResetError is the most probably a problem on SFDC side.


Add options to from_provider build factory.

What does this PR do ?
This PR changes the compiler to allow the caller to pass down an opts hash when calling from_provider.
We have sometimes multiple implementations of the same service so differentiating only by service key is not sufficient.
To allow the client provider to build the right transport instance, this PR adds a optional opts hash which allows to provide additional metadata about the service we want to talk to.
For example,
# Calling this
SomeService::Client.from_provider(client_provider, {some: metadata})

# Allows the ClientProvider to do.
def build(service,  namespace, opts)
   # Pick the right provider based on the service, namespace and optional metadata.
end

:warning: That's a BC with current ClientProvider implementations. The other non BC options I have is to change the compiler so it generates the following code instead.
def from_provider(provider, opts ={})
  p = if opts.nil?
    provider.build(NAMESPACE, SERVICE)
  else
    provider.build_with_options(NAMESPACE, SERVICE, opts)
  end
  Client.new(p)
end

Closed as irrelevant.


Implemented seamless realtime waste monitoring feature

Issues Identification
Closes: #166
Description
Summary
Added RTM feature for users to input their waste data and track their waste disposals.
Details
Here is illustrated preview video of the feature:-

Users can input their waste data and visualize it through charts
Waste Segregation step is the crucial first and foremost step that must be taken by each individual from their waste source level.

https://github.com/user-attachments/assets/d2ff77a3-aada-4a7c-8dc6-4157f5947ea6
Types of Changes
Please check the boxes that apply

[ ] Bugfix (non-breaking change that fixes an issue)
[✅ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Please check the boxes that apply

[✅ ] My code follows the style guidelines of this project
[ ✅ ] I have performed a self-review of my own code
[✅  ] I have commented my code, particularly in hard-to-understand areas
[✅  ] I have made corresponding changes to the documentation
[✅  ] My changes generate no new warnings
[✅  ] My changes do not break the current system and pass all existing test cases
[✅  ] I have added tests that prove my fix is effective or that my feature works
[✅  ] New and existing unit tests pass locally with my changes
[ ✅ ] Any dependent changes have been merged and published in downstream modules

@Nkovaturient solve conflicts

@Nkovaturient solve conflicts

hey @khushi-joshi-05 @GarimaSingh0109 , I have fixed the conflicts. Kindly look into it and guide me.

@khushi-joshi-05 @GarimaSingh0109
Conflict resolved as per updates.

@khushi-joshi-05 @GarimaSingh0109 Hey there?!
Any updates or other issues that I must resolve?

Still showing conflicts

Hey @GarimaSingh0109 , @khushi-joshi-05
the conflicts are recurring due to continuous updates, diff and merged PRs at the same place  in the code lines.
However, I have meticulously resolved it keeping the features, styling, and js functionality working.
One thing I would like to say--the main styles.css file is becoming bulky and inefficient due to continuous css integrations and changes, this may impact the overall code and website performance + loading. Kindly look into it and suggest guidance to contributors to only make necessary changes, while ensuring code efficiency and modularity.


Windows High Contrast issues

These were found in the initial testing session, before #2830 was merged. I've tried to omit the ones that are fixed in that PR, but we will need to test the changes there as well.

[ ] ActionButton – Hover state missing in static color variants
[ ] ActionGroup – compact ActionGroup selected button is thinner than the non selected button
[ ] ActionGroup – Selected button is missing border
[ ] ActionGroup/ToggleButton – isEmphasized hover state is the same as selection
[ ] Button – CTA button grows by 2px on hover
[ ] Button – no active state. Do we need one?
[ ] Button – overBackground hover state is dimmed
[ ] ClearButton - no overBackground hover state
[ ] DialogTrigger – Popover arrow is really hard to see
[ ] Divider – Is invisible
[ ] IllustratedMessage – In WHCM, the illustration is dim in Chrome/Edge, but bold in Firefox
[ ] LogicButton – "and" and "or" variants are the same in WHCM
[ ] Menu – missing hover state
[ ] Meter – Colors are not visible at all in Firefox
[ ] Meter – colors of meter might not be high contrast enough?
[x] ProgressCircle – Indeterminate over background is not visible
[ ] SearchField – "x" button has a background that overlaps the focus ring
[ ] SearchField – Icon is bold in Chrome/Edge  but dim in Firefox
[ ] StatusLight – Colors are not visible at all in Firefox
[ ] StatusLight – The colors might not pass contrast in WHCM
[x] Switch - Missing hover state for selected
[x] TableView/ListView - missing keyboard focus and selection states
[ ] Tabs – In firefox, selected tab text is not visible
[ ] Tabs – transition on icon between selected and unselected states looks silly
[ ] Tabs – with flex container story, first tab is not rounded
[ ] Tabs - Missing hover state
[ ] TextField – Validation icon is red/green in Firefox, but white in Edge
[ ] TextField/TextArea/etc. – Disabled state in Firefox is not right
[ ] Toast – Clear button does not have a hover state
[ ] Tooltip – Arrow is a square in Firefox
[ ] Tooltip – positive/negative/info variants have different colored tip, but not a different colored border

From 2nd testing session:

[ ] ActionButton - Keyboard focus state should be blue like other components
[ ] Calendar – Invalid state isn't very obvious. Invalid selected date is the same color as a normal selected date and the error message text is the same color
[ ] Calendar - remove the highlight for today's date in WHCM, it is confusing since it looks the same as a selected date
[ ] ColorArea - ColorArea should have a border around it to help contrast it against the background (see ColorSlider and ColorWheel)
[ ] ColorSlider - Color thumb should have a white outline in light HCM themes
[ ] ColorThumb - Color preview (tear drop) needs a thicker white outline
[ ] DateField - Field doesn't get the proper hover state (no outline change), compare with DatePicker
[ ] DateField - Missing styles for mouse focus state.
[ ] NumberField - gets the keyboard focus style on mouse focus.
[ ] NumberField/ComboBox - validationState=invalid has focus state by default
[ ] Picker - placeholder text should look the same as normal text. Right now it is green like disabled text
[ ] RangeCalendar - Keyboard focus ring isn't very visible when displayed on a selected date. Consider making it thicker or adding a black ring as well
[ ] TableView - In highlight selection, the selected rows are not very visible compared to keyboard focused.
[ ] Tabs - A border is added around the TabPanel in WHCM, is that intentional?
[ ] Tabs - focus ring around the tab is hard to distinguish from the tab itself. should it be a halo ring?
[ ] Tabs - icons in tabs flash weirdly when the tab is selected
[ ] Tabs - faint blue tab line is still visible with isEmphasized style.
[ ] Tabs - icons are white in isEmphasized tabs.
[ ] TextField - validationState=invalid lacks hover state

For WHCM FF, there are many issues captured here: https://docs.google.com/spreadsheets/d/1p4VJnyVTab5BZE-iY9isv0NuZv6vx3W3ghzNWJN0HMY/edit#gid=515442378
Additonal FF issue:

[ ] Checkbox - Focus ring is not visible in WHCM

Note: to validate against changes made in https://github.com/adobe/react-spectrum/pull/2830

Firefox issue for forced-color-adjust support: https://bugzilla.mozilla.org/show_bug.cgi?id=1591210

Looks like that Firefox issue was fixed 8 days ago!


Allow users to make the bot only on mention

This feature is not a main one, and will only be used by users who want to incorporate the bot in group chats, so default is false.
Should reply to #138
The usage of this feature could be pretty big actually. People using chatgpt in group might be big. We should update the README accordingly, so people are aware of this feature.
Lmk what do you think @karfly

I'm curious, if owner do that changes to his bot @chatgpt_karfly_bot too?

@cookins this haven't been merged, so no. Plus, I doubt this would be activated in the demo bot, as it would be a niche feature, for those who want a bot fitted for group chats

@cookins this haven't been merged, so no. Plus, I doubt this would be activated in the demo bot, as it would be a niche feature, for those who want a bot fitted for group chats

Agree. Hope it will be in demo one too... For now, i cant host bot....

This feature is not a main one, and will only be used by users who want to incorporate the bot in group chats, so default is false.
Should reply to #138
The usage of this feature could be pretty big actually. People using chatgpt in group might be big. We should update the README accordingly, so people are aware of this feature.
Lmk what do you think @karfly

can I test it?
I can host a bot on my hosting

@Am1nCmd you can clone my fork's specific branch for a test git clone -b allow-answer-only-on-mention git@github.com:clemsau-forks/chatgpt_telegram_bot.git

I've tried @clemsau branch but it doesn't seem to work. When I tag the bot it would appear to be typing something for a second or two and then stop. Any prompt after that would just result in a message saying 'Please wait for a reply to the previous message'. No output on the console.

It is working well for me @vnt87

The OpenAI API seems unstable from time to time (they probably get huge volume of requests). If one of your requests got a partial answer, it's most likely an API issue.

@karfly  Hi,  many people need this feature, plz merge if it has no problem . thanks for the great work .

Does this allow the bot to be called inline too in personal chats? (https://telegram.org/blog/inline-bots?setln=it)

Implemented in #247
I am closing this PR

Thank you for good job, @clemsau!


Add bower support

Add bower support, as mentioned by @mjrk in jeremyruppel/underscore.inflection#22.

The package is now available on bower as lodash-inflection.


Html gen

I'm not sure how to deploy to gh-pages, so I can't confirm if everything works, but the build builds on Travis. https://travis-ci.com/github/masonitedoors/MDL/builds/226242950
This generates HTML and CSS for React components in Storybook.
Even though it is a package, @masonite/markup-generator-addon, I had to make it relative because I need to parse the SCSS before Storybook builds. If it is a deployed package, it is already built, so the CSS module class names are different. I'd like to make it independent, but trying to do ate up a lot of time we don't really have.
Since it is relative, I had to update Travis to compile the package during the build with Storybook.
I had to update some packages, which forced me to update some components, like the AnimatedMasoniteLogo, which uses a newer Lottie package (no visible changes to the user).
I gutted the HTML Storybook as it'll quickly become out of date and just to give us less files to deal with. And yes, I think I am ready to remove Vue too, but seemed a little unrelated for this.
node-sass is replaced with sass.
There are a few commented out component stories because they need to be updated. @dump247/storybook-state (love that username) is no longer supported and pretty replaced with actual useState. Storybook Controls effectively replaces the @storybook/knobs-addon as well. I need to update their stories, but I wanted to get the main code up as a lot of time is passing and this can be used. They can be easily updated, but I didn't want to push this out more. Also, the README.md thing doesn't work anymore with new Storybook. I set up one example of DocPages which is a similar concept. I had to mirror ZeroHeight.
@masonite/mdl-css has some changes too. Just grabs the component unprocessed SCSS too now.
I think that is it, but if there are any questions about any of the changes, I can address them.

Went through all files. Everything looks good to me!


Error when using run.primary.read()

I found that there was always an error when using "run.primary.read()" for the run in xpd database on workstation xf28id2.
If I run the following code.
In [90]: from databroker import catalog

In [92]: db = catalog['xpd']

In [94]: db[-2]
Out[94]:
BlueskyRun
  uid='334e3aec-6eb4-4166-9a05-4d4be367788e'
  exit_status='success'
  2020-09-02 16:48:38.842 -- 2020-09-02 16:49:39.378
  Streams:
    * primary

In [95]: run = db['334e3aec-6eb4-4166-9a05-4d4be367788e']

In [96]: run.primary.read()
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-96-19fb2dd76b7d> in <module>
----> 1 run.primary.read()

/opt/conda_envs/nsls2-analysis-2020-2.0rc7-1-xpdacq/lib/python3.7/site-packages/databroker/core.py in read(self)
   1468         """
   1469         # Implemented just so we can put in a docstring
-> 1470         return super().read()
   1471
   1472     def to_dask(self):

/opt/conda_envs/nsls2-analysis-2020-2.0rc7-1-xpdacq/lib/python3.7/site-packages/databroker/intake_xarray_core/base.py in read(self)
     47         """Return a version of the xarray with all the data in memory"""
     48         self._load_metadata()
---> 49         return self._ds.load()
     50
     51     def read_chunked(self):

/opt/conda_envs/nsls2-analysis-2020-2.0rc7-1-xpdacq/lib/python3.7/site-packages/xarray/core/dataset.py in load(self, **kwargs)
    659
    660             for k, data in zip(lazy_data, evaluated_data):
--> 661                 self.variables[k].data = data
    662
    663         # load everything else sequentially

/opt/conda_envs/nsls2-analysis-2020-2.0rc7-1-xpdacq/lib/python3.7/site-packages/xarray/core/variable.py in data(self, data)
    354         if data.shape != self.shape:
    355             raise ValueError(
--> 356                 f"replacement data must match the Variable's shape. "
    357                 f"replacement data has shape {data.shape}; Variable has shape {self.shape}"
    358             )

ValueError: replacement data must match the Variable's shape. replacement data has shape (1, 1, 2048, 2048); Variable has shape (1, -1, 2048, 2048)

The databroker version is
packages in environment at /opt/conda_envs/nsls2-analysis-2020-2.0rc7-1-xpdacq:

Name                    Version                   Build  Channel
databroker                1.0.6                      py_0    https://conda.anaconda.org/nsls2forge
databroker-pack           0.3.0                      py_0    https://conda.anaconda.org/nsls2forge

Thanks for the clear report @st3107. Just chiming in quickly to say the issue is understood—will reply in detail later this evening.

The metadata about the shape of this array is being recorded incorrectly. The old databroker API:
from databroker import Broker
db = Broker.named('xpd')
header = db[-2]
header.data("something")

does not actually refer to the shape and any point and thus does not notice or care if it is wrong. The new, experimental API that you have used about does refer to the shape. It uses that information to leverage dask and xarray, both of which improve the user experience (or so we have found so far). But as you observed, we have some work left to do to fix the way shape is recorded and then repair the historical record.
In the meantime, we have ways of inferring the correct shape without loading the data, even if the record is wrong. The upcoming release of databroker (probably tomorrow, certainly by the end of this week) will improve this inference mechanism and resolve the particular issue that you hit here.
So --- in the short term, please use the stable "v1" interface. In the medium term, I hope you will give this new interface another try, once we get it working properly. Thanks again for the clear report.

Got it. Thank you.
PS: I did some further tests. I export the data to msgpack and synchronized to my local computer and ran databroker on the msgpacks. The v2 interface worked well.

Excellent, that's good to hear.


Russian translation: improvements of helper-overview

Q
A

Is bugfix?
yes (doc)

New feature?
no

Breaks BC?
no

Tests pass?
--

Fixed issues
--

Merged. Thank you!

Please see also #16255 and #16256


Prism.js doesn't highlight some code blocks

Before I use prism.js, the
 code block looks like:

    ...

After I use prism.js to render the code block, normally it looks like:

    ...

However, the problem comes when I insert a
 code block without specifying language, or rather language-null. All
 block after this block with language-null will be wrongly rendered without language-xxx class in the pre tag:

    ...

And those blocks before the language-null block are still correctly rendered.
It's so weird. Any help will be appreciated!

Hi! Could you provide us with on online example reproducing the issue so we can investigate?

Of course. Check out this post. You can also find such problems in other posts as well.

I think this is a bug with the Line Numbers plugin, that has already been fixed. Please update your Prism version from http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+c+bash+cpp+java+python&plugins=line-numbers

It works. Thanks a lot!


ModuleNotFoundError: No module named 'gmail_main_sc'

Thanks for the script, it would be helpful... but:
Your requirements are messed up (and...):
$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Invalid requirement: "'google-api-python-client>=2.88.0'," (from line 1 of requirements.txt)

I had to edit requirements and remove quotes and commas that are not supposed to be there. Each line must be just the packages:
google-api-python-client>=2.88.0
google-auth-httplib2>=0.1.0
google-auth-oauthlib>=1.0.0
gmail_api_auth==0.1.3
gmail_label_manager==0.1.3
gmail_message_processor==0.1.3
data_exporter==0.1.3

Output of launching your script:
$ gmail-processor
Traceback (most recent call last):
File "/XXXXXX/.local/bin/gmail-processor", line 5, in <module>
from gmail_main_sc import main
ModuleNotFoundError: No module named 'gmail_main_sc'

Tried to install locally:
pip install -e ./gmail-label-email-processor/
[...]
Installing collected packages: gmail-label-email-processor
Attempting uninstall: gmail-label-email-processor
Found existing installation: gmail-label-email-processor 1.0.3
Uninstalling gmail-label-email-processor-1.0.3:
Successfully uninstalled gmail-label-email-processor-1.0.3
Running setup.py develop for gmail-label-email-processor
Successfully installed gmail-label-email-processor

Still the same error:
$ gmail-processor
Traceback (most recent call last):
File "/XXX/.local/bin/gmail-processor", line 33, in <module>
sys.exit(load_entry_point('gmail-label-email-processor', 'console_scripts', 'gmail-processor')())
File "/XXX/.local/bin/gmail-processor", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'gmail_main_sc'

Hi, tnx for reaching out.
Will get it fixed as soon as I find some spare time.
Tnx once again for letting me know.
Cheers!

If you can point me where to find this module, I can send a pull request.


remember to insert expansion of variables

function env_var_value of src/code_pieces/env_array.c is doing this for environment variables. The function is tested with src/tests/env_var_value.c


Forms onsubmit handler gets called twice when submitting

When defining a form with a onsubmit handler setup, the code gets called twice.
I have prepared a snippet using mocha for ease testing.
Just place the below text  under zombie/test/issue.js:
const assert  = require('assert');
const brains  = require('./helpers/brains');
const Browser = require('../src');

describe('Forms Issue', function() {
  const browser = new Browser();
  browser.on('alert', function(message) {
    console.log(`ALERT ${message}`);
  });

  before(function() {
    return brains.ready();
  });
  before(function() {
    brains.post('/testform_submit', function(req, res) {
      res.send(`<html><title>Results</title><body>OK</body></html>`);
    });
    brains.static('/forms/form', `
      <html>
        <head>
          <script>
           var called = 0;
           document.myEvents = [];
           function trackEvent(eventName) {
             called += 1;
             alert("Called " + called + " times, asked to track " + eventName);
             document.myEvents.push(eventName);
           }
          </script>
         </head>
         <body>
           <form id="install_install2" method="post" onsubmit="trackEvent('submit_form');" action="/testform_submit">
             <input type="submit" onclick="trackEvent('clicked');" value="Submit">
           </form>
         </body>
        </html>
       `);
  });
  describe('User visits form', function() {
    let document = null;
    before(function(done) {
      browser.visit('/forms/form', function() {
        document = browser.document;
        done();
      });
    });

    describe('submits form', function() {
      before(function(done) {
        browser.pressButton('Submit', done);
      });

      it('should be successful', function() {
        browser.assert.success();
      });

      it('should report two events', function() {
        console.log(document.myEvents);
        assert.equal(document.myEvents, ['clicked', 'submit_form']);
      });
    });
  });
});

And invoke it with mocha:
$> cd zombie
$> mocha test/issue.js
  Forms Issue
    User visits form
      submits form
ALERT Called 1 times, asked to track clicked
ALERT Called 2 times, asked to track submit_form
ALERT Called 3 times, asked to track submit_form
        ✓ should be successful
[ 'clicked', 'submit_form', 'submit_form' ]
        1) should report two events

  1 passing (349ms)
  1 failing

  1) Forms Issue
       User visits form
         submits form
           should report two events:

      AssertionError: [ 'clicked', 'submit_form', 'submit_form' ] == [ 'clicked', 'submit_form' ]
      + expected - actual

       [
         "clicked"
         "submit_form"
      -  "submit_form"
       ]

It adds some printed messages for debugging, I apologize for the noise :).
The expected result would be to call trackEvent twice, once in the button onclick, and once in the form submit, but the latter gets called two times, as it can be seen in the "alert" messages and from the document.myEvents property that gets populated.
issue.zip

If i do two small changes to your code, it is running
Line 54:
browser.click('Input', done);

And line 60
assert.deepEqual(document.myEvents, ['clicked', 'submit_form']);

I am a little bit confused, because I have change yesterday all my browser.click to browser.pressButton but are still in upgrade to Zombie 6 mode, so your issue looks to be helpful to me.
What I do not understand, is that the pressButton function is just doing a "click"
https://github.com/assaf/zombie/blob/master/src/index.js#L951
and why that doubles the submit event.

I just add a reference to my issue yesterday:
https://github.com/assaf/zombie/issues/1180

In my source - couldn't reduce it to such a nice testcase as @juamedgod yet - i have the opposite problem.
browser.pressButton("Input#okbutton") does 1 time submit and browser.click("Input#okbutton") does nothing (even no debug output from Zombie)


Added read_to_eof implementation and test

This function recursively reads from the stream until EOF is reached, then returns the data as a BitArray.
How does this compare to the implementation you showed me on Discord?

The repeated use of bit_array.append will make this O(N²), need to use an accumulator to avoid this.
Also a read size of 1KiB is quite small, I chose 64KiB because that's the default read-ahead size in Erlang.
I've updated and released my other branch as 0.4.3, are you able to test it?


Fix float value type

Fixed Float parameters, exposed as Swagger float types

This needs tests and a CHANGELOG entry please.

ok.

Good, merging.


Any way to achieve something like [Console]::SetWindowPosition?

(and if current answer is "no", how might we design some way to do it?)
The situation is that I sometimes use PSReadLine's CaptureScreen function to select and copy portions of my console buffer. When you invoke the CaptureScreen function, PSReadLine enters a sort of mode where you can use arrow keys to move the selection around and use shift together with arrow keys (or j/k for us vi people) to extend the selection. The mode stops when you hit enter, resulting in copying a nice HTML (or is it RTF?) reproduction of the selected area into your clipboard. Very handy.
Crucially (for this Issue), when the selection gets near the top (or bottom) of the console window, CaptureScreen will scroll the buffer, so you can keep selecting (or reach the part of your buffer that you wanted to select in the first place). Like this:

But this scroll-when-you-get-near-the-top functionality does not work in Terminal. (In Terminal, the selection line just reaches the top of the window, and you can go no further.)
The root cause is that CaptureScreen is using [Console]::SetWindowPosition to scroll the buffer… and that does not work in Terminal.
Poking around, I see that it seems like this is By Design, right? (for example: #9018)
So… that brings me to the question: okay, if SetWindowPosition will not work, is there any way this could be made to work?
And if not, what might be done to eventually provide a way for this scenario to work?
Thanks!

 [Console]::SetWindowPosition is probably not something that we'd work on implementing, because it's just not something that's compatible with other terminal emulators. But if we had real keyboard text selection, then you wouldn't really need Powershell's built-in CaptureScreen, now, would you?

Not really. On the one hand, yes, #715 would be helpful. But the snag is that I doubt it will work how I want. Whereas if selection/copy is handled by an application, then I can make an application that works exactly how I like.
For example, in addition to copying as HTML, PSReadLine's CaptureScreen does line-wise selection (like shift+v in vim), and you can use j/k to move the selection (like in vim). (I believe I personally added the j/k.) Will Terminal's "mark mode" support j/k movement? What if Terminal's doesn't support HTML copy? Or what if I don't quite like the generated HTML, and I want to tweak it? Or what if Terminal doesn't support line-wise selection? Etc.
Now it's possible that you'll let me add the vim-like selection mode to Terminal (supposing I have time, ha). But even then it won't work quite how I like--whatever Terminal implements will have to be completely agnostic of an application, so if I have PSReadLine configured to only enter CaptureScreen when I press shift+v when in "command mode" (which I do: Set-PSReadlineKeyHandler -ViMode Command -Chord Shift+V -Function CaptureScreen), then Terminal can't replicate that, because it cannot know that I am using PSReadLine, let alone whether or not it is in command mode.
In short, allowing an application to implement it gives a LOT more flexibility. (And #715 is still goodness, since it can provide basic/general functionality for everyone/everyapp for "free".)
So I still would like to be able to implement CaptureScreen in an app. What is the cause of the incompatibility? Is it the fact that the app only has access to the conpty buffer, which is only the size of the window? Or is it something else?

What if Terminal's doesn't support HTML copy?

It does; see the copyFormatting setting at Text format when copying.

Or what if I don't quite like the generated HTML, and I want to tweak it?

Perhaps that could be done in an extension (https://github.com/microsoft/terminal/issues/4000). However, implementing such an extension for Windows Terminal might be more difficult than customizing PSReadLine.

Sounds like these are a lot of concerns that are best suited for "Keyboard Selection Spec #2840" 😉 I'm pretty sure we've already got arguments in that spec for expanding selection by char, word, line and buffer, as well as the ability to map the selection actions to whatever keys you want. Copying will work just like copying has always worked in the Terminal - so it'll respect the copyFormatting settings. If you don't like the generated HTML, you're free to file an issue.

What is the cause of the incompatibility? Is it the fact that the app only has access to the conpty buffer, which is only the size of the window? Or is it something else?

Basically yea, that. Any nix-line terminal application can only ever modify the viewport at the bottom of the buffer. There's no concept of a "scrollback", so there's no way for a client app to tell the Terminal "hey scroll into the scrollback". The

There's no concept of a "scrollback", so there's no way for a client app to tell the Terminal "hey scroll into the scrollback".

Okay, thank you for confirming that for me. My knowledge of this stuff is larval.
Can the conpty buffer be larger than the window?
Let me explain where I'm going with this thinking.
An app can manage its own "buffer" of whatever size it likes. For example, imagine I'm running vim to edit some huge file on some remote machine (over ssh). In terms of the console, it is true that vim only has access to the screen-sized buffer that it "paints" on. But internally, it can have as big a buffer as it likes, and I can "scroll back" in it (go to the top of the file).
Now imagine that vim had a special mode where it displays a prompt at the bottom of my "document"... and when I type something and hit enter, it sends that command to an external process to execute (say pwsh)... and then the output goes into the "document" (at the bottom), and when it's done, another prompt shows up...
If this were somehow done inside vim, then it could certainly scroll back up into the document, clear back to the very beginning, until the remote machine runs out of memory. (And we know this, because we can scroll up in vim.)
So what would it take for pwsh/PSReadLine to just do this without a special copy of vim? It would have to completely manage its own "document buffer"? Is there a way we could generalize that for every app? Would this be equivalent to making the conpty buffer bigger? (I would settle for 9999 lines.)

I guess it would need to do something like what tmux/screen would do, aka maintain its own terminal buffer?

There's recently been some discussion on the terminal workgroup about an extended form of the SU and SD sequences that would actually allow an application to pan the terminal viewport up and down through the scrollback. And it occurred to me that if we supported something like that, we could actually translate certain viewport moving console APIs into VT sequences.
For example, if you wanted to move the viewport back to the very top of the buffer, you could use the extended scroll down sequence (i.e. pan up) with a very large parameter value. And if you wanted to move the viewport to a specific line number, you'd start from the top, and simply pan down the exact amount you need.
This assumes that any attempt to scroll past the ends of the viewport would be clamped, but you aren't otherwise limited in the range of the scrollback that you can access (which I should note is not what is currently proposed).
But if an agreement can be reached on how these sequences should work that's actually useful to us, is this something that Windows Terminal might willing to support? Is it worth starting a discussion with some of the third-party Windows conpty terminals to see if they'd be interested in this functionality?

On further reflection, I think this probably isn't feasible, at least as conpty is currently implemented. As I understand it, the conhost side of the conpty pipe doesn't have a scrollback, so even if the terminal could be instructed to scroll back, the conhost side wouldn't be able to, so they'd end up out of sync.
Maybe it could be made to work if we ever got a straight pass-through version of conpty, but even then you'd lose the ability for legacy console apps to read from the buffer once the viewport is moved, so it wouldn't be ideal.

Hey so we discussed this a bit more as a team. I think the conclusion was that ultimately, this isn't something we should be trying to design on our side, in a silo. This is a discussion that would be better had on terminal-wg, so that the terminal community can come to a consensus opinion. Should a reasonable consensus be reached, yea, we can try and implement it.
But for the time being, I think we should close this discussion out, since we're not planning on implementing this before that.


tx_json, wctl, cmd/wctl: move JSON code into wctl pkg

Since the JSON representation of transaction payload is only used in cmd/wctl, it seems out of place to be put in the wavelet pkg.

Closing this as it's good to standardize JSON representation of the transaction within wavelet package.


Revise and enhance Intro to Tower deck speaker notes.

The Introduction to Tower deck speaker notes are incomplete and/or lacking in many spots. They need notes that can be used as documentation and as a script to the contents of each slide similar to what's been done in the core essentials deck.

While there is always room for improvement, PR #135 addresses this sufficiently enough to close this ticket.


[Enhancement] Pipeline profile refine

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Changelist

Add two metrics to ExchangeSinkOperator, including RpcCount、RpcAvgTime
Forbid chunk_source's profile merging while is_report_success is false

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 6 / 27 (22.22%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/Coordinator.java
6
27
22.22%
[370, 409, 817, 818, 1088, 1089, 1812, 1813, 1821, 1822, 1863, 1864, 2070, 2071, 3277, 3431, 3432, 3557, 3558, 3610, 3611]

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

run starrocks_admit_test

run starrocks_admit_test

run starrocks_fe_unittest

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 13 / 17 (76.47%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/util/RuntimeProfile.java
9
13
69.23%
[276, 583, 648, 688]

:large_blue_circle:
com/starrocks/common/util/Counter.java
4
4
100.00%
[]

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 13 / 17 (76.47%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/util/RuntimeProfile.java
9
13
69.23%
[276, 583, 648, 688]

:large_blue_circle:
com/starrocks/common/util/Counter.java
4
4
100.00%
[]

run starrocks_admit_test

run starrocks_be_unittest

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 13 / 17 (76.47%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/common/util/RuntimeProfile.java
9
13
69.23%
[276, 583, 648, 688]

:large_blue_circle:
com/starrocks/common/util/Counter.java
4
4
100.00%
[]

run starrocks_admit_test

run  pr-title-check

run pr-title-check

@Mergifyio backport branch-2.5

All cherry-picks pr:
https://github.com/StarRocks/starrocks/pull/13778
https://github.com/StarRocks/starrocks/pull/13777
https://github.com/StarRocks/starrocks/pull/13774
https://github.com/StarRocks/starrocks/pull/13773


Remove dependance on glsl_to_spirv

In the quad example you use glsl_to_spirv, however that is now deprecated and now says to use shaderc-rs instead.

glsl-to-spirv is also used in vulkan backend.

Really this isn't just about the examples, but all of the gfx-rs code that depends on the deprecated library. (Sorry about the many name changes.)

I think it should be removed from the Vulkan backend already, see https://github.com/gfx-rs/gfx/pull/2533

To clarify: GLSL is in now way a part of gfx-hal API, so the issue is rather harmless. It just affects the way people start using the project, since they replicate the examples, and we shouldn't promote a deprecated library there. So, a documentation issue for the most part.

I don't think shaderc-rs is a very good alternative. It's kind of a pain to build on Windows, requiring a C++ compiler (e.g. usually Visual Studio, which is an ordeal to install), Python and CMake in the path. glsl_to_spirv used glslang instead and included a pre-built binary for Windows.
I'm sure it's not a problem for experienced developers, but it won't make for a good experience for anyone looking to learn Rust or gfx-hal and doesn't have these already installed.

Good point! Maybe we can just undeprecate in then?

On Jan 3, 2019, at 12:03, Aleksi Juvani<EMAIL_ADDRESS>wrote:
I don't think shaderc-rs is a very good alternative. It's kind of a pain to build on Windows, requiring a C++ compiler (e.g. usually Visual Studio, which is an ordeal to install), Python and CMake in the path. glsl_to_spirv used glslang instead and included a pre-built binary for Windows.
I'm sure it's not a problem for experienced developers, but it won't make for a good experience for anyone looking to learn Rust or gfx-hal and doesn't have these already installed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I don't think shaderc-rs is a very good alternative. It's kind of a pain to build on Windows, requiring a C++ compiler (e.g. usually Visual Studio, which is an ordeal to install), Python and CMake in the path. glsl_to_spirv used glslang instead and included a pre-built binary for Windows.
I'm sure it's not a problem for experienced developers, but it won't make for a good experience for anyone looking to learn Rust or gfx-hal and doesn't have these already installed.

IIRC shaderc is based on glslang, spriv-cross and other KHR projects. And yes it requires a complex environment to build which is difficult for beginners. Here we just need glslang to convert glsl to Vulkan compatible spirv binary. I think it's good to make it simple.  Because TimNN/glslang-sys stays in May 10, 2015, I have a proposal that gfx should hold a glslang-rs crate to follow the upstream. @kvark

I have a proposal that gfx should hold a glslang-rs crate to follow the upstream

I don't think we, the gfx-rs team, should be owning it. As I mentioned above, our entry point is SPIR-V and we care about all the conversions from it. The real reason for us to depend on glslang (in examples only!) is about documentation, since just providing raw SPV shaders would not be very beginner friendly or readable.


As a user I would like voice recognition support

Story Points: 8
Risk: HIGH
Priority: LOW
Description
The app should have a mode whereby commands and inputs can made using voice recognition, to allow for hands free calculations that also support usage for the visually impaired.
Mockup

Image describing the PR
Acceptance Test

Test Reference
Test Date
Tester
Test Steps
Expected Result
Actual Result

1

2

3

4

5

Tasks

[ ] Task Name - x Ideal hour(s) TASK #
[ ] Task Name - x Ideal hour(s) TASK #
[ ] Task Name - x Ideal Hour(s) TASK #

On second thought, we decided to go against it


optimize.linprog test failures on macOS

This one I observe locally:
__________________________________________ TestLinprogIPSparsePresolve.test_bug_10466 __________________________________________
../scipy/optimize/tests/test_linprog.py:1595: in test_bug_10466
    assert_allclose(res.fun, -8589934560)
E   AssertionError:
E   Not equal to tolerance rtol=1e-07, atol=0
E
E   x and y nan location mismatch:
E    x: array(nan)
E    y: array(-8589934560)
        A_eq       = [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, ...], [0.0, 0.0, 1.0, 1.0, 0.0, 0.0, ...], [0.0, 0.0, 0.0, 0.0, 1.0, 1.0, ...], [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, ...], [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, ...], [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...], ...]
        b_eq       = [314572800.0, 419430400.0, 524288000.0,<PHONE_NUMBER>.0,<PHONE_NUMBER>.0,<PHONE_NUMBER>.0, ...]
        c          = [-8.0, -0.0, -8.0, -0.0, -8.0, -0.0, ...]
        o          = {'_sparse_presolve': True, 'autoscale': True, 'sparse': True}
        res        =      con: array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan])
     fun: nan
 message: 'The solution does not sat...float64)
  status: 4
 success: False
       x: array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan])
        self       = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x140ae7130>
        sup        = <numpy.testing._private.utils.suppress_warnings object at 0x140ae7b20>

And this one I see on the scipy-wheels repo (macOS and Linux on Azure):
______________ TestBoundedNelderMead.test_outside_bounds_warning _______________
[gw2] darwin -- Python 3.8.8 /Users/runner/hostedtoolcache/Python/3.8.8/x64/bin/python
../../../../hostedtoolcache/Python/3.8.8/x64/lib/python3.8/site-packages/scipy/optimize/tests/test_minimize_constrained.py:738: in test_outside_bounds_warning
    minimize(prob.fun, [-10, 8],
E   Failed: DID NOT RAISE <class 'UserWarning'>
        bounds     = Bounds(array([-inf,   1.]), array([4., 5.]))
        prob       = <scipy.optimize.tests.test_minimize_constrained.Rosenbrock object at 0x123f55670>
        self       = <scipy.optimize.tests.test_minimize_constrained.TestBoundedNelderMead object at 0x123f559d0>

The local one just came in with gh-13515 (Cc @AtsushiSakai). The scipy-wheels probably too, but not sure - CI runs have been infrequent.

Thank you for letting me know the test failure. It does not happen in my environment.. My environment is Docker ubuntu on Mac OS. I will try to reproduce it on Mac OS.

I suspect the issue is old GCC on manylinux1. That may deal with nan/inf differently. If it's not easy to fix, we can just verify after dropping manylinux1 (hopefully before the next release).

Failures silenced in gh-13847.

Weird also the CI was green before I merged (appart from the usual doc_build).

I cannot reproduce the bug locally (1.7.0.dev0+272f7b2 1.20.2 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)) I am also on macOS BigSur and running in conda.

nan/inf behavior is very often platform and compiler dependent, so that's not very surprising.

@rgommers are you still seeing these, especially TestLinprogIPSparsePresolve.test_bug_10466?

@rgommers are you still seeing these, especially TestLinprogIPSparsePresolve.test_bug_10466?

That's passing now. Environment has changed in the meantime of course, so not sure if it'll be completely gone for everyone. But maybe worth unskipping the tests and seeing what happens.

Meh I think I'll leave it alone, since it's looking like we'll deprecate the old solvers in gh-15512. I was wondering whether we could close this issue when that merges.

This is now also regularly failing in the Azure CI job prerelease_deps_coverage_64bit_blas (example log:
FAILED scipy/optimize/tests/test_linprog.py::TestLinprogIPSparseCholmod::test_bug_10466
FAILED scipy/optimize/tests/test_linprog.py::TestLinprogIPSparsePresolve::test_bug_10466

thanks!


fix click/hover on lines: use minDistance and optimize functions

Somehow with all the newly merged PR's the click/hover function for Lines returns worse results.
That is because currently only the last found feature is returned.
I changed that and included a new variable minDistance, so that the feature with the smallest distance will be returned.
Some optimizations for tryClick and tryHover for Lines:

moved the checkClick, checkHover functions outside the loops.
new chosenWeightFn outside the second for-loop, to not repeatedly check the data type.
used Set instead of Array for oldHoveredFeatures and newHoveredFeatures

@robertleeplummerjr Could you maybe look into this?

This should fix #39


(ISO 6709) "Code" style should follow the normal text/EXAMPLE font size, not 8.5pt

The first instance of monospace font is correct, it is 11pt.
The second instance, which is within a list item, has size of 8.5pt, despite its surrounding text being 11pt.

* character string delimiters and terminators -- `**monospace bold regular**` type.

Using the character string delimiters specified in
<<item_6-4-a;to!item_6-4-i>> the following structures are defined:

. [[item_6-6-3-a]]For one-dimensional spatial or temporal CRS identifiers
(CRS1d), the structure is: +
+
--
[source%unnumbered,subs="verbatim,quotes"]
----
**sign**[underline]#__One-dCoordinate__#**CRS1d<**[underline]#__CRS-identifier__#**>/**
----

Typo in stylesheet

Confirm fixed. Thanks!


[FR] Inline Markdown editor

Problem
Currently, there is no preview for markdown in textareas that have that enabled.
Suggested solution
A fast search brought out this MIT-licensed library that could be loaded by class and seems to be enough but not too much:
https://github.com/Ionaru/easy-markdown-editor
Describe alternatives you've considered
Maybe this is not needed - could be beneficial for new users / not devs
Do you want to develop this?
yes

@SchrodingersGat @eeintech go ahead (once 0.6 is done) or close?

Yeah, looks like a great idea for next release (0.7.0)

@matmair just had a look at easy mde, looks like it will be a great fit :)


Added docs and restructured as package

Also fixed workflow to work with headless GitHub workflow environment

Forgot to add changes from test to CI as well


Improvements

Colors to show whether the run is set to true or false
Multiple inputs for Pass can be added without running twice etc
Added double click for instant single run
Added timer for time since last run (only available when you zoomin on the component and if its 'closed'
added an output for true/false of running. This is ALWAYS updated. Can be used to hide previews etc in GH.
Overwritten existing component GUID. This 'should' be ok when upgrading since i am not adding new params and checking if 2nd output param exists before using it.

hi @Attemainio , Timo has tested this a bit and seems to him that this actually solves some issues he's had with the current version.
He is waiting for a new Yak release. I was wondering if you have had time to test it out yet, otherwise I'll make a quick and dirty yak in another plugin name for his customers.

Another feature that could be nice to add is if the pass goes from true -> true then it should NOT update.
Right now its:
True -> False : No update
False -> False: No Update
True -> True: Update         ( Maybe this should NOT update!?)
False -> True: Update

sticky on is now working (can be toggled with a right click on the component)

agreed on your changes. good arguments and i love the icon change.
Not sure what you mean with declined on the GUID. arent we saying the same?
In any case - i think the GUID should be the same as original. I only change GUIDs if params or functionality is changed.
I'll let timo know he can find it on Yak :D

I noticed that the GUID was changed, so I reverted it to the original one :D I found that GH_GatekeeperComponent_OLD had a different GUID than GH_GatekeeperComponent, and now the current solution has the GUID of GH_GatekeeperComponent_OLD. I already informed Timo about the yak package release. Do not change GUIDs ever, but I do not have a proper knowledge that when it should be changed.

You guys are amazing. I really really like the component! I have a project I'm working on that will put this to the ultimate stress test. I will let you know how it goes. We previously had everything collapsing, so let's see with this new update :)

Yeah, it has improved a lot 😄 We still have to find out why Gatekeeper prevents scriptcontext not to load, which I think is a part of GhPython.gha plugin


Format for x-goog-api-client needs updating

Please ensure that the header we use with GAX is x-goog-client-api and that the format is similar to the one used for Go and Python.
Go: https://github.com/GoogleCloudPlatform/gcloud-golang/blob/master/logging/apiv2/logging/client.go#L125

Fixed in https://github.com/googleapis/gax-php/pull/40


Add services to project

PR summary
This PR adds the global-search and global-tagging services to the project
Fixes: n/a
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@44f85bc). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   51.05%
=========================================
  Files             ?        5
  Lines             ?      570
  Branches          ?        0
=========================================
  Hits              ?      291
  Misses            ?      279
  Partials          ?        0

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 44f85bc...d039b15. Read the comment docs.

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


Trying to use a chromedriver binary at the path C:\Users\Administrator.appium\node_modules\appium-chromium-driver\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe, but it doesn't exist!

I installed appium-chromium-driver by command:
appium driver install chromium
appium shows the driver installed:

but, when I ran a test, get errors:

my testing code is:

solved it.
use another command instead:

appium driver run chromium install-chromedriver


Refactor using native each(), bump Less version

Hey Sean, took some time today to make this port a little cleaner using the new each() function. Let me know if you have any questions.

@matthew-dean Thanks for this! I'll take a look later today.


Feature: 增加图片微量修改，以免发不出造成retcode100

Sources
Danbooru, Gelbooru, Konachan.com (NSFW), Konachan.net (SFW), Lolibooru, Lolicon, Pixiv, Safebooru, Yande.re
Describe the problem related to the feature request
nsfw或擦边图片极其容易被tx吞，若增加像素点微量修改则可以有效避免。
Describe the solution you'd like

Describe alternatives you've considered
No response
Additional context
No response

The same requirement, especially in the group chat call booru will give error code 100

As Koishi no longer officially support onebot or red, we are not going to support this platform-specific feature, but it can still be implemented by other plugins:
ctx.before('send', (_, options) => {
  if (options?.session?.argv?.command?.name === 'booru') {
    session.elements = h.traverse(session.content, {
      image(val) {
        return change(val) // do some changes for the image
      },
    })
  }
})