Missing example and documentatıon for global serializer

Added globalSerializerExample example for global serializer usage.
Updated javadoc for global serializer.
Added the global serializer documentation.

Test PASSed.

Test PASSed.


⚠ Adacta-fintech.com has degraded performance

In cca02ea, Adacta-fintech.com (https://www.adacta-fintech.com) experienced degraded performance:

HTTP code: 200
Response time: 816 ms

Resolved: Adacta-fintech.com performance has improved in 42bb3a0 after 7 minutes.


Add Github label: Torchsharp so users can track all TorchSharp projects

https://github.com/topics/torchsharp

I know this could work, sometimes it gathers others through just the Torchsharp label
https://github.com/dotnet/TorchSharp/network/dependents

@GeorgeS2019: good idea! How do I do that? :-)

Okay, I added a few GH topics to the repo.

@NiklasGustafsson
kind reminder, please add the topic to this too! :-)
https://github.com/dotnet/TorchSharpExamples

@NiklasGustafsson
kind reminder, please add the topic to this too! :-) https://github.com/dotnet/TorchSharpExamples

Done. Thanks for the reminder.


Showing value mismatch error even though values are the same

This may be a user error but wanted to flag in case not. Getting the values do not match error on one of the Blue Azores pages, but  I checked and even tested the text for matching in  Excel, with all rows back as "TRUE". Even if I did miss the error, wanted to flag that it's somewhat difficult to troubleshoot since the labels / values box does not pop out or widen at all - if that was possible it would be super useful enhancement.

Yeah, I'm seeing the same. I've combed through it a half dozen times, re-entered the values, and I'm getting the same message.

Looks like this and #388 might be duplicates

Fixed. See #388


Fixed feed-stock build failure

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

The feedstock failed to build do to minor version mismatch. Skip pip check temporarily to see if the feedstock can build.

@conda-forge-admin, please rerender


Running YCSB from code

Heya!
I tried this both on Windows and Linux. YCSB Compiles fine from original code, but when I try to run './bin/ycsb shell basic' the following errors will pop up in the shell:
[WARN]  Running against a source checkout. In order to get our runtime dependencies we'll have to invoke Maven. Depending on the state of your system, this may take ~30-45 seconds
[DEBUG]  Running 'mvn -pl com.yahoo.ycsb:basic-binding -am package -DskipTests dependency:build-classpath -DincludeScope=compile -Dmdep.outputFilterFile=true'
[ERROR]  Attempting to generate a classpath from Maven failed with return code '1'. The output from Maven follows, try running 'mvn -DskipTests package dependency:build=classpath' on your own and correct errors.
mvn output:
[INFO] Scanning for projects...
[ERROR] Could not find the selected project in the reactor: com.yahoo.ycsb:basic-binding -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
The mvn output appears to be generated when executing other ycsb operations as well although I have not tried many. YCSB without any parameters executes fine. I am not overly familiar with Maven, hence I have no idea what the problem is, or how to fix it. The relative consistency between Ubuntu and Windows, and the simplicity of the executed instructions may indicate it's a problem with Maven and/or YCSB rather than what I did. Anyway, any help is appreciated. I must build the project from code since I aim to implement new features I need for a rather specific test. For now, no modifications have been implemented, however.
Cheers,
Stefan Elsen

ah. the problem is the way we guess what to include in the classpath when running out of a source checkout. We essentially look for a module named "%datastore%-binding", but basic is included in core.
Hurm. we could either pull basic into a module that matched all the other datastore bindings or add some special casing in bin/ycsb. What do you think @cmccoy, @cmatser?
As a current work-around, you can do 'mvn package' from the top level and then make use of the distribution tgz artifact made in distribution/target/.
If things work for you on Windows, we'd love a short set of instructions on what you had to do. It's on my TODO list for hte current release process, but so far I haven't made any progress.

Well, I grew up on unix, but I develop on windows, but I deploy on unix.  What a mixed up world we live in!  :)  Even when I'm on windows, I'm running cygwin which gives me the unix tools I'm familiar with, like "vi".  Can we start a "emacs" vs "vi" debate?  Probably not the right venue.  :)
What I did when I was running YCSB on windows was I tried bin/ycsb.  When that failed, I looked at what it was trying to do.  Then I created my own windows .bat script to run the db binding I wanted to run.  It's a one-off.
What I would like to see is the ability to run from source.  I never touched the production version and wonder about its usefulness.  I disagree with the python script.  If all you're trying to accomplish is to run on windows, then I don't think you should require a windows python install.  My preference would be to see shell scripts, one for unix and one for windows, like I've seen on other cross platform projects (tomcat).  I feel this gives the best user experience.
$0.02
Chrisjan

What I would like to see is the ability to run from source. I never touched the production version and
wonder about its usefulness.

Well, in general we're going to try to push folks towards the releases, because it will make it easier to ensure they're using a version we have some confidence in.

I disagree with the python script. If all you're trying to accomplish is to run on windows, then I don't
think you should require a windows python install. My preference would be to see shell scripts, one for
unix and one for windows, like I've seen on other cross platform projects (tomcat). I feel this gives the
best user experience.

We'll have to work through things, but I'm on the same side of this argument. There's actually a project I'm involved in starting up over at the Apache Software Foundation that has cross-platform shell bindings as a goal, so I'm hoping we can use that once it matures a little.

For the problem at hand, the main issue I see with moving the basic binding into a module is that it would no longer be included in the datastore specific artifacts we're creating now. Getting it back in there could be done by futzing with the binding-parent, but that sounds like a headache for not much gain.

Okies, the idea with 'mvn package' and using distribution/target/ seemed to have worked both on Ubuntu and Windows without much fuzz. At least the basic shell command started without any more hickups. As for what I had to do, the whole thing was pretty much the same on Windows and Linux. I obviously had to install Python and Maven, and of course something to extract the tar/gz file, as well as link the JDK via JAVA_HOME manually. But other than that, it ran out of the box. The error message when running 'ycsb shell basic' from code on Windows looks somewhat more like what leileiway described, but when manually issuing the mvn commands, it looked again exactly as on Linux.
So yeah, that worked. Many thanks. I'll begin implementing my new functionality straight away. If that works, and proves useful, I'll submit the modifications for inclusion into the main branch as you see fit.
Cheers,
Stefan

To close this out we need to add an exception for the 'basic' store in our classpath calculation.


Update Paris TypeScript logo

A quick PR to replace the Paris TypeScript logo!
The version currently in use on the TypeScript Website is the only one with this design. It a variant for Twitter to fit with the circular placeholder.
Thanks 🖖
Sylvain

Ace


Misleading error message

Steps to reproduce
N/A
Expected behaviour
N/A
Version of Vim
8.2.3697
Environment
N/A
Logs and stack traces
errors.h contains this part:

https://github.com/vim/vim/blob/28fbbeac7046f33db350294908eecb380042d553/src/errors.h#L753-L754

> "E1205: No white space allowed between option and"

I am wondering, should that mean "E1205: No white space allowed between option and *value*"?

I am wondering, should that mean "E1205: No white space allowed between option and value"?

I don't understand how the code works, but looking at the tests, E1205 seems to be given for these kind of mistakes (extra whitespace between option name and flag or assignment operator):
set foldlevel =1
set foldlevel +=1
set foldlevel ^=1
set foldlevel -=1
set hlsearch &
set hlsearch   !

I made a quick test, to check which error message Vim printed for those commands (whether at the script level or in compiled code):
vim9script
const MISTAKES: list<string> =<< END
    set foldlevel =1
    set foldlevel +=1
    set foldlevel ^=1
    set foldlevel -=1
    set hlsearch &
    set hlsearch   !

Vim(set):E1205: No white space allowed between option and: !

It seems that the value is always correctly included in the message.
But again, I don't understand the code well enough to see whether there is something to fix.

ah yes, it's further down. I was just going through the strings to be translated and this particular message confused me.


fix: respect YamlConfigSource (#367)

Issue: https://github.com/quarkiverse/quarkus-helm/issues/367
Fix is trivial so I didn't write any test :)
I can write it, just tell me where to put it...

in a new module called helm-kubernetes-minimal-yaml
or
I add quarkus-config-yaml extension and a simple test inside helm-kubernetes-minimal?

Formatting error, I force pushed again


Update to go version 1.18.4

What this PR does / why we need it:
Update go version to 1.18.4.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

The extension is now built using go version `1.18.4`.

/test pull-extension-shoot-oidc-service-unit


TesseraQ 2-bit Inference for Qwen2-VL-7B-Instruct

Hi everyone,
I am trying to achieve a 2-bit quantization with TesseraQ based on AWQ with Qwen2-VL-Instruct. The issue I face is that I would like to deploy the saved model outside of LLMC (e.g. vLLM, transformers, etc.). Since quantizing to 2-bit precision is not supported by established inference backends like vLLM I am searching for alternative ways to perform the inference. Doing this with HuggingFace’s transformers leads to the following warning due to the additional quantizing parameters:

“Some weights of the model checkpoint at /home/ubuntu/TesseraQ/models/Qwen2VL/transformed_model/ were not used when initializing Qwen2VLForConditionalGeneration: ['model.layers.0.mlp.down_proj.buf_output_scale_factor', 'model.layers.0.mlp.down_proj.buf_qmax', 'model.layers.0.mlp.down_proj.buf_qmin', 'model.layers.0.mlp.down_proj.buf_rounding_opt', 'model.layers.0.mlp.down_proj.buf_scales', …….]”
Does someone have any recommendations on how to perform the inference outside of LLMC?
Also, I couldn’t make out the 2-bit quantized version of the model in any of the exported models (fake_quant or transformed). The model weights are always saved in bfloat16 format. How can I access the actual 2-bit weights of the model?
Thanks in advance!

2-bit weights of the model are not supported in the mainstream inference backend. You can refer to our document for exporting the real quantized model.

Thank you for the quick response. To clarify, does this mean that exporting real quantized models is currently limited to supported inference backends? Specifically, if 2-bit weights are not supported by these backends, it is not possible to export a model with 2-bit weights. Is that correct?

Yes，you are right.

请问qwen2-VL-72B的量化校准数据集应该用什么？@Harahan


Remove demo column

While we sort out exactly which models will have demos and how they will be hosted, lets remove the link.

Talked to Abhi... we will get the 7b demo up and just keep this


Release v2.0.0

Remove the images path override from the helpers partial (PR #292). This will break background images that are currently using the file-url function from the url-helpers partial in the frontend toolkit. As $path will vary from project to project you will need to define this in your main application stylesheet. There is an example of setting $path here.
Bump govuk frontend toolkit to 4.16.1 (PR #288). This adds space key activation to links with a role of button.
Form validation patterns for conditionally revealing content (PR #286)
Centre text on full-width buttons (PR #289)
Lint JS code using StandardJS (PR #290)

This version deprecates external link styles. If your service has user research that indicates that external links are useful (or not) then we’d like to hear from you either on Slack, digital-service-designers or opening an issue.

:fireworks:


Shader editor affects rendering in San Angeles demo

Chrome 44.0.2359.0 (Official Build) canary (64-bit), OS X 10.9.5, Retina Display MacBook Pro
To reproduce:

Open https://www.khronos.org/registry/webgl/sdk/demos/google/san-angeles/
Open DevTools, open shader editor, reload
Click "Program 1"

Expect the demo to continue rendering correctly.
Instead, the lighting is disabled and the objects render black. See attached screenshot.

This one I think it's happening because they're deleting the shader right after attaching it to the program, so my update routine tries to recycle it and fails miserably.
Is this a common pattern, doing away with a shader as soon as is attached? I guess it is, since technically most of the time you would never have a use for it anymore.

Nice work tracking this down.
I think this pattern is fairly common. At least, we've seen bugs in Chrome's own maintenance of shader and program objects when users immediately delete the shaders after attaching them to programs. Chrome itself tries to lazily delete objects that are attached to other ones (like renderbuffers, textures and shaders) to work around graphics driver bugs.
The best way I can think of to work around this is to defer deletion of shaders until the program(s) that reference them have all been deleted. I thought about creating a temporary shader and trying to "restore" the program to its earlier state later by re-attaching the user's previous shader. The problem is, once deleteShader is called, you can get into a situation where the last thing keeping the shader alive is the reference from the program object, so changing the program's shaders around can cause the shader to be unusable later.
I think this solution will require adding "private" attributes to WebGLProgram objects referencing the shaders that are attached, and possibly a reference count to WebGLShader objects indicating how many programs are referring to it.
(Thinking about this more, there's probably another problem if the same shader is used by more than one program object.)

Actually, I've seen that the shader -as long as there's a reference- is not deleted after .deleteShader. So as long as I have a reference, it's still there. But the issue with this demo, and with many others, is something that I don't have enough knowledge to solve. I'll try to be as precise as possible.
The reason this demo goes black when re-compiling the program is because the uniforms don't have values anymore. Adding color = vec4(1.,0.,1.,1.); at the end of the vertex shader shows that the program is still running, but the light calculations are off because the light terms are 0.
Interestingly, color = colorIn;does work, even though it's a uniform, but color = light_0_diffuse;doesn't.
So I'm keeping track of uniforms for each program, and reassigning them after the shaders are updated, and as far as i can see, there are no errors.
So the question would be: what is the reasonable sequence to follow once the shader is updated, regarding uniformLocations, attribLocations, etc.? I've been trying to find some detailed explanation, but failed to find something that explains this issue.

@spite can you explain exactly what issue you're referring to in the last line? You seem exactly on the right track."glUniform* operates on the program object that was made part of current state by calling glUseProgram." When you change the program object, you have to set the values again.

In order to completely hide the fact that the program was re-linked behind the scenes, a few things are needed:

All vertex attribute locations have to be the same in the re-linked program. In order to guarantee this, it's necessary to call getActiveAttrib on the original program from 0..getProgramParameter(program, ACTIVE_ATTRIBUTES), record the locations of those attributes, and then call bindAttribLocation on the program object for each of them, to re-assign them before re-linking. Otherwise you're leaving it to chance that the OpenGL implementation will assign the vertex attributes to the same locations.

Re-set the uniforms' values as @brendankenny points out above. Note that in the San Angeles demo's shaders, colorIn is a vertex attribute, not a uniform, and its state isn't associated with the program object, but the overall OpenGL context. That's probably why "color = colorIn" works and "color = light_0_diffuse" doesn't. There may be a bug in the tracking of uniforms' locations or values.

Have some way to map the obsolete WebGLUniformLocation objects to the new ones for the re-linked program. You already have some mechanism for this, but there might be a bug. The first idea that came to my mind was for your extension to return its own objects for WebGLRenderingContext.getUniformLocation, and change which real WebGLUniformLocation each refers to after re-linking the program. That might reduce the chance that there are errors in the bookkeeping.

(3) is a consequence of uniform locations being objects I hadn't thought about before. It would be handy to have CHROMIUM_bind_uniform_location here :)


Union of two valid shapely objects returns GEOMETRYCOLLECTION EMPTY

Please note
If you are reporting an installation or module import issue, please note that
this project only accepts reports about problems with packages downloaded from
the Python Package Index. Conda users should take issues to one of the
following trackers:

https://github.com/ContinuumIO/anaconda-issues/issues
https://github.com/conda-forge/shapely-feedstock

Expected behavior and actual behavior.
I have two valid shapely geometries which I know overlap however their union is returning a GEOMETRYCOLLECTION EMPTY.
Steps to reproduce the problem.
b_shapely = POLYGON ((444.5285062772048<PHONE_NUMBER>585321,<PHONE_NUMBER>230925<PHONE_NUMBER>430344,<PHONE_NUMBER>334156<PHONE_NUMBER>384027,<PHONE_NUMBER>065854<PHONE_NUMBER>685536,<PHONE_NUMBER>2994<PHONE_NUMBER>916575,<PHONE_NUMBER>047951<PHONE_NUMBER>122222,<PHONE_NUMBER>567681<PHONE_NUMBER>430344,<PHONE_NUMBER>026558<PHONE_NUMBER>585321,<PHONE_NUMBER>567681<PHONE_NUMBER>740298,<PHONE_NUMBER>46445<PHONE_NUMBER>786614,<PHONE_NUMBER>576907<PHONE_NUMBER>959798,<PHONE_NUMBER>838622<PHONE_NUMBER>753943,<PHONE_NUMBER>065854<PHONE_NUMBER>485106,<PHONE_NUMBER>334156<PHONE_NUMBER>786614,<PHONE_NUMBER>230925<PHONE_NUMBER>7403,<PHONE_NUMBER>772048<PHONE_NUMBER>585321))
a_shapely = POLYGON ((444.5285062772048<PHONE_NUMBER>58532,<PHONE_NUMBER>317684<PHONE_NUMBER>36358,<PHONE_NUMBER>230924<PHONE_NUMBER>430343,<PHONE_NUMBER>560629<PHONE_NUMBER>003891,<PHONE_NUMBER>334156<PHONE_NUMBER>384027,<PHONE_NUMBER>832886<PHONE_NUMBER>162366,<PHONE_NUMBER>638744<PHONE_NUMBER>62327,<PHONE_NUMBER>230548<PHONE_NUMBER>177557,<PHONE_NUMBER>567681<PHONE_NUMBER>430343,<PHONE_NUMBER>480921<PHONE_NUMBER>36358,<PHONE_NUMBER>026557<PHONE_NUMBER>58532,<PHONE_NUMBER>480921<PHONE_NUMBER>807061,<PHONE_NUMBER>567681<PHONE_NUMBER>740297,<PHONE_NUMBER>237976<PHONE_NUMBER>16675,<PHONE_NUMBER>464449<PHONE_NUMBER>786614,<PHONE_NUMBER>994419<PHONE_NUMBER>049581,<PHONE_NUMBER>627671<PHONE_NUMBER>168563,<PHONE_NUMBER>832886<PHONE_NUMBER>008275,<PHONE_NUMBER>334156<PHONE_NUMBER>786614,<PHONE_NUMBER>560629<PHONE_NUMBER>16675,<PHONE_NUMBER>230924<PHONE_NUMBER>740299,<PHONE_NUMBER>317684<PHONE_NUMBER>807061,<PHONE_NUMBER>772048<PHONE_NUMBER>58532))
union = a_shapely.union(b_shapely)
Operating system
Linux

Can you find your GEOS version? from shapely import geos; print(geos.geos_version_string). And did you use the .isvalid property to determine that they are valid?
Testing with GEOS "3.7.2-CAPI-1.11.2 b55d2125", neither of these geometries are valid, and the second a_shapely geometry is simple, while the first b_shapely geometry is not simple. When I try union, I see an expected error:

TopologyException: Input geom 0 is invalid: Self-intersection at or near point<PHONE_NUMBER>6387439<PHONE_NUMBER>62327 at<PHONE_NUMBER>6387439<PHONE_NUMBER>62327

JTS 1.15 has a similar analysis, except they are both non-simple.

With the latest shapely and GEOS versions, I also get what @mwtoews already reported above: both geometries are invalid, and when trying to union them, you get an error about that.
Therefore closing this issue.


Batching no longer reports data in the Profiler

see details here: https://forum.playcanvas.com/t/cant-see-batching-results-in-profiler/22330/3

Fixed internally, will be released in few days.

Released in Editor 1.20.1


Integrate other test runners next to Jasmine

Jest is completely test runner agnostic. For example, Jest can wrap other test runners entirely and for a while we shipped with both jasmine1 and jasmine2. However, we have never capitalized on the difference between Jest "the test-framework runner" and the test runner (currently Jasmine) itself.
TODO:

Fix up runTest.js and make it more generic. This piece is re-used in jest-runtime and it should be more reusable.
Solidify the API between things like jest-jasmine2 and runTest.js/TestRunner.js. Currently the API is jestJasmine2(…).then(results => …). The result currently looks like this: https://github.com/cpojer/jest/blob/master/types/TestResult.js#L126 which comes from Jasmine. We should rename these things to make more sense and normalize the results we get from Jasmine.
Make modules in jest-jasmine2 generic so that the setup-pieces can be shared across test runner adapters.
Figure out which test runners we want to wrap officially.
Build a complete replacement for Jasmine.

cc @MarcoWorms

Nice! @derekstavis

This should be easier now that #3668 is merged

@rogeliog wanna try making an ava runner for Jest? :)

I'll give it a try!

I've been working with Python and Perl test runners based on your example with pyjest-runner, @cpojer . One of the issues I have run into is what to do when the test matching parameter precludes all tests for a particular project.
Not all runners that one would want to interface with will report skipped tests, so knowing how many exist and how many are skipped may not be possible. Thus we would get the Your test suite must contain at least one test. failure. Not sure what makes the most sense in terms of handling this case.
Haven't seen anyone discuss this yet.

@dyst5422 thanks for weighing in. You should only be getting this error message if the results object doesn't contain a single "test". If you are skipping tests, you should return the list of tests or a dummy list of tests so you don't get that error message. However, you are right this error message should possibly be moved into jest-runner itself. Does either of these seem reasonable?
@rogeliog made runners for mocha and ava (jest-runner-mocha, jest-runner-ava), so I'm closing this task as most of what's written above was implemented.

@cpojer Yes, this case where ALL tests are skipped is the one I'm interested in.
For now, I can put in a dummy list of tests (I mean really I'm not overly offended by the test failure when it notes that it was because of no tests, so I might skip actually going that).
I do think that this error message might better belong in the jest-runner as it seems more of a "feature" of the jest-runner to declare an empty test suite as a failed test, rather than a statement on ALL POSSIBLE test runners.

The reason this exists is that we had product developers put product code into test files, so we added this error to prevent people from doing it. I think for now the dummy result makes sense.

I have no idea how it would come about that they would put product code into the test files, but I'm probably just not being imaginative enough. In any case, the dummy result is fine if this error is serving other needs.


feat: adding idempotency key header

Description

Adding idempotency key header

Testing required outside of automated testing?

[x] Not Applicable

Screenshots (if appropriate):

[x] Not Applicable

Rollback / Rollforward Procedure

[x] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 1.68.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remote Syslog keeps sending to old target

I recently changed the Remote Syslog Target in OPNsense 20.1.2 (https:///ui/syslog/) and applied the change. I confirmed it by checking the incoming logs at the new Syslog Server.
Today i wanted to shut down the old Syslog Server and have seen, that the OPNsense System is still sending the events to the old Syslog Target as well.
The section "System: Settings: Logging / targets" only shows the new Syslog Target. Even restarting the service "syslog-ng" doesn't fix it.
Information: i'm using explicit ip-addresses for the Logging targets and not DNS.
Thanks,
Wolfgang

This also happens with OPNsense 20.1.4.

it's a leftover from an older version, see https://github.com/opnsense/core/issues/4060#issuecomment-619572007

@AdSchellevis thanks a lot. Do you think this will be fixed soon? I would wait then and give feedback as tester ;-)

just remove the file as mentioned in the comment

Me too,
is there a way to disable reporting? SSH and change a config or something else?

Do a fgrep with your syslog IP over /usr/local/etc.
Maybe theres a stale file

rm /usr/local/etc/syslog-ng.conf.d/syslog-ng-destinations.conf  (In which case I'm repeating myself https://github.com/opnsense/core/issues/4060#issuecomment-619572007)

Hi,
thanks, but

fgrep "<IP_ADDRESS>" /usr/local/etc
returning nothing

cat /usr/local/etc/syslog-ng.conf.d/syslog-ng-destinations.conf
returning nothing
file has one empty line...

Greets
Byte

fgrep -r ..

OK thanks, found it now.
I deleted legacy-remote.conf now, restart service and logging stops! Thanks.
One more question, do I need
/usr/local/etc/syslog-ng.conf.d/legacy.conf ?
It sounds like an "old" config?!
#
# OPNsense legacy log target
# send all received local events to platform standard syslogd
#

destination legacy_dst {
    unix-dgram("/var/run/legacy_log" flags(syslog-protocol));
};

log {
    source(s_all);
    destination(legacy_dst);
};

Is the config normal? I don´t want to log to much data.
Greets
Byte

Might be better to make legacy.conf an empty template and remove in next major version?

On 4. Oct 2020, at 10:34, Bytechanger<EMAIL_ADDRESS>wrote:

OK thanks, found it now.
I deleted legacy-remote.conf now, restart service and logging stops! Thanks.
One more question, do I need
/usr/local/etc/syslog-ng.conf.d/legacy.conf ?
It sounds like an "old" config?!

OPNsense legacy log target
send all received local events to platform standard syslogd

destination legacy_dst {
unix-dgram("/var/run/legacy_log" flags(syslog-protocol));
};
log {
source(s_all);
destination(legacy_dst);
};
Is the config normal? I don´t want to log to much data.
Greets
Byte
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@fichtner I don't think we should do anything, the major upgrade change log (https://docs.opnsense.org/releases/20.1.html?highlight=syslog#january-30-2020) clearly stated which steps to perform before upgrade, you are allowed to keep old configs, but the system won't manage them anymore in that case.

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.


Cast slicing index to dask array if same shape as original

[x] Tests added / passed
[x] Passes black dask / flake8 dask
[x] Closes #6089

@dask/maintenance for a review.

Thanks! Merging.


Runtime Issue. Publishing changes from within view updates is not allowed. Xcode 14.0 beta 5

SwiftUI Runtime Issue: Publishing changes from within view updates is not allowed, this will cause undefined behavior.
Xcode version: 14.0 beta 5

Can be reproduced by using this code:
import SwiftUI
import AttributedText

struct ContentView: View {
    var body: some View {
        AttributedText {
            NSAttributedString(string: "Hello world")
        }
    }
}

P.S. This issue also effects MarkdownUI

I was so happy when I found this library, as it solved my problem height problem.
However now it seems to be showing this error :(

@gonzalezreal with the change merged and released in 1.0.1, should this issue be closed?


"Connection Lost: Invalid player data" on a new world with no additional origins

Minecraft version: 1.21.1
Fabric version: 0.16.9
Fabric API version: 0.108.0
Origins version: 1.13.0-alpha9
Log
The only mod installed related to Origins is Origins itself. No datapacks were added to the world, aside from the base Minecraft and Fabric datapacks.

This is related to https://github.com/apace100/origins-fabric/issues/781

After some testing, the issue seems to be caused by the Splinecart mod being present.


test: Fix Contacts activity

Change list
fix Contacts activity tests.
Since the Contacts activity in use was deprecated and replaced with a new activity name, an update was required.
Types of changes
What types of changes are you proposing/introducing to .NET client?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] New feature (non-breaking change which adds value to the project)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Documentation

[ ] Have you proposed a file change/ PR with appium to update documentation?

This can be done by navigating to the documentation section on http://appium.io selecting the appropriate command/endpoint and clicking the 'Edit this doc' link to update the C# example
Integration tests

[x] Have you provided integration tests to pass against the beta version of appium? (for Bugfix or New feature)

Details
Please provide more details about changes if it is necessary. If there are new features you can provide code samples which show the way they
work and possible use cases. Also you can create gists with pasted C# code samples or put them here using markdown.
About markdown please read Mastering markdown and Writing on GitHub

@KazuCocoa thanks for approving the PR. Can you merge as well?

Ah, ok


[Idea] Planet generation configuration

Additional configuration in the mod to altar the planets themselves would be a very interesting feature to add to the mod.
For example, some configuration options could be:

Changing the height of hills per planet type
Changing which materials the ground is made of per planet type
Changing the amount of buildable area per planet type (ex. smaller oceans on mediterranean planets or bigger lava crevices on lava planets)
Changing the density of foliage such as trees per planet type
Maybe changing which foilage spawns on certain planet types

Changing the height of hills per planet type --> possible and I know how to do it but i'm not supporting it YET  --> Planet update No ETA
Changing which materials the ground is made of per planet type --> will come in the future with a biome update, no ETA
Changing the amount of buildable area per planet type --> should be possible
Changing the density of foliage such as trees per planet type --> possible in some limits for now ( hardcoded values in the game engine ) --> Planet update
Maybe changing which foilage spawns on certain planet types ---> Biome update

Generator's naming algorithm
Is it possible to use the native star naming algorithm?

Generator's naming algorithm
Is it possible to use the native star naming algorithm?

That's a bug and will be sorted in next patch

Additional configuration in the mod to altar the planets themselves would be a very interesting feature to add to the mod.
For example, some configuration options could be:

Changing the height of hills per planet type
Changing which materials the ground is made of per planet type
Changing the amount of buildable area per planet type (ex. smaller oceans on mediterranean planets or bigger lava crevices on lava planets)
Changing the density of foliage such as trees per planet type
Maybe changing which foilage spawns on certain planet types

All added in 2.0

2.0 Released


Error installing the project in editable mode

Issue description
I've got a project w/ setup.cfg and version meta-data taken from the package's attribute:
[metadata]
name = pipenv-bug-test
version = attr: bug.__version__

[options]
packages = bug
python_requires = >=3.6
zip_safe = True

[bdist_wheel]
universal = 1

My dev-packages section of the Pipfile has the entry:
pipenv-bug-test = {editable = true, path = "."}

Trying to install dev-dependencies fails for this setup.
Expected result
Successful install.
Actual result
Please not the "filename" reported in the last line:
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Building requirements...
Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/cli/command.py", line 232, in install
    retcode = do_install(
  File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 2051, in do_install
    do_init(
  File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1299, in do_init
    do_lock(
  File "/usr/local/lib/python3.8/dist-packages/pipenv/core.py", line 1103, in do_lock
    venv_resolve_deps(
  File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1317, in venv_resolve_deps
    deps = convert_deps_to_pip(
  File "/usr/local/lib/python3.8/dist-packages/pipenv/utils.py", line 1434, in convert_deps_to_pip
    new_dep = Requirement.from_pipfile(dep_name, dep)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 2743, in from_pipfile
    r = FileRequirement.from_pipfile(name, pipfile)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1842, in from_pipfile
    arg_dict["parsed_line"] = Line(line)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 178, in __init__
    self.parse()
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1313, in parse
    self.parse_name()
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1039, in parse_name
    name = self._parse_name_from_path()
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 1007, in _parse_name_from_path
    parsed_setup_cfg = self.parsed_setup_cfg
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/cached_property.py", line 35, in __get__
    value = obj.__dict__[self.func.__name__] = self.func(obj)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 892, in parsed_setup_cfg
    return parse_setup_cfg(setup_content, base_dir)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 322, in parse_setup_cfg
    name, version = get_name_and_version_from_setupcfg(parser, package_dir)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 277, in get_name_and_version_from_setupcfg
    version = parse_special_directives(parser.get("metadata", "version"), package_dir)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 191, in parse_special_directives
    rv = ast_parse_attribute_from_file(path, attribute)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1172, in ast_parse_attribute_from_file
    analyzer = ast_parse_file(path)
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/setup_info.py", line 1193, in ast_parse_file
    tree = ast.parse(read_source(path))
  File "/usr/local/lib/python3.8/dist-packages/pipenv/vendor/requirementslib/models/utils.py", line 1024, in read_source
    with open(path, "r", encoding=encoding) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/work/pipenv-bug-test/bug/bug'

My original case was a bit more complicated. I had a packages = find_namespace: in the options section of the setup.cfg and the reported not found "file" was:
/work/pipenv-bug-test/find_namespace:/bug

And yes, setting the version key to exact value (same as in bug/__init__.py) works fine.
Steps to replicate

unpack the attached sample project pipenv-bug-test.zip
try pipenv install --dev

$ pipenv --support
Pipenv version: '2020.6.2'
Pipenv location: '/usr/local/lib/python3.8/dist-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:

3.8.2: /usr/bin/python3
3.8.2: /usr/bin/python3.8
3.8.2: /bin/python3
3.8.2: /bin/python3.8

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.8.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.16.18-gentoo-z3',
 'platform_system': 'Linux',
 'platform_version': '#5 SMP PREEMPT Sat Apr 6 19:26:28 +08 2019',
 'python_full_version': '3.8.2',
 'python_version': '3.8',
 'sys_platform': 'linux'}

System environment variables:

PIPENV_VENV_IN_PROJECT
COLORTERM
HOSTNAME
LANGUAGE
PWD
w
HOME
LANG
LS_COLORS
TERM
PIP_DISABLE_PIP_VERSION_CHECK
SHLVL
LC_ALL
PATH
DEBIAN_FRONTEND
OLDPWD
_
PYTHONDONTWRITEBYTECODE
PIP_SHIMS_BASE_MODULE
PIP_PYTHON_PATH
PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

PIPENV_VENV_IN_PROJECT: 1

Debug–specific environment variables:

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG: en_US.UTF-8
PWD: /work/pipenv-bug-test

Contents of Pipfile ('/work/pipenv-bug-test/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
pipenv-bug-test = {editable = true, path = "."}

[packages]

This seems similar to this issue where I've commented some findings. https://github.com/pypa/pipenv/issues/4326#issuecomment-640714993

BTW, even if I explicitly set my packages in setup.cfg as
[options]
namespace_packages = onixs
packages = onixs, onixs.bsci, onixs.bsci.commands, onixs.bsci.env, onixs.bsci.rest

The error is the same:
...
FileNotFoundError: [Errno 2] No such file or directory: '/work/bsci/master/onixs, onixs.bsci, onixs.bsci.commands, onixs.bsci.env, onixs.bsci.rest/onixs/bsci'

It just substitutes packages value in the middle of the path...


Add traceparent support on CloudEventFactory builder

to resolve issue #87.
Edited main test to ensure all properties pass.  Existing tests validate the field is correctly handled as optional.

Thanks Jeff!


[Floating-UI] flip middleware not working when scrolling the page

I'm migrating from popper.js v2 to floating-ui, but I'm currently facing an issue where the flip middleware isn't working as expected. In the example below:
https://codesandbox.io/s/floating-ui-flip-tzi6te?file=/src/index.js
I've set the tooltip to be shown up, and if we scroll the page body I would expect the tooltip to flip down until the trigger element gets out of the viewport, but unfortunately, that is not happening.

I can see that in the documentation it works, but following what the docs say ends up with the flip not working at all. Am I missing something? Any suggestion/idea is really appreciated.

https://floating-ui.com/docs/computePosition#updating

https://floating-ui.com/docs/computePosition#updating

Thank you @atomiks I read about the autoUpdate but still not clear enough on how to use it on my use case 🤷🏻♂ . Can you please provide a working example I can follow?

Wrap the computePosition() call as the docs show: https://codesandbox.io/s/floating-ui-flip-forked-2gb9d1?file=/src/index.js:213-569
autoUpdate(reference, floating, () => {
  computePosition(reference, floating, {
    placement: "top",
    // Try removing this line below. The tooltip will
    // overflow the viewport's edge!
    middleware: [offset(10), flip()]
  }).then(({ x, y }) => {
    Object.assign(floating.style, {
      top: `${y}px`,
      left: `${x}px`
    });
  });
});

but still not clear enough on how to use it on my use case

Which part is not clear?

That worked! Thanks a lot 🙏🏻 ... What wasn't clear enough was the part that says in the autoUpdate section:

It confuses me since I thought that autoUpdate can only be called after we have first displayed the floating element.

Well it's correct, the example doesn't have any open state where it shows after an event like hover, click, etc. That's when you call computePosition() for the first time anyway

Ok, good to know, thanks for your time @atomiks.
This issue can now be closed 🙂 .


React to greetings stickers

Closed by https://github.com/Konard/vk-bot/commit/61e033db03c4063486153cd49d380a0e9f7ff036


Fix bug on windows with uvicorn when multiple workers.

Before submitting

[x] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)

⚠ How does this PR impact the user? ⚠
As a user, i need to serve a model with multiple worker per device on a windows machine
What does this PR do?
This PR propose a fix to bug from Issue #384.
For example, with this simple server :
import litserve as ls
class SimpleLitAPI(ls.LitAPI):
    def setup(self, device):
        self.model1 = lambda x: x**2
    def decode_request(self, request):
        return request["input"]
    def predict(self, x):
        squared = self.model1(x)
        output = squared
        return {"output": output}

    def encode_response(self, output):
        return {"output": output}

# (STEP 2) - START THE SERVER
if __name__ == "__main__":
    # scale with advanced features (batching, GPUs, etc...)
    server = ls.LitServer(SimpleLitAPI(), accelerator="auto", max_batch_size=1,workers_per_device=2)
    server.run(port=8000)

Bellow, you'll find the difference between before and after the PR :

Before the PR
(litserve_win) PS > python .\dummy_server.py
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\site-packages\litserve\server.py:475: UserWarning: Windows does not support forking. Using threads api_server_worker_type will be set to 'thread'
  warnings.warn(
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
Swagger UI is available at http://<IP_ADDRESS>:8000/docs
INFO:     Started server process [35312]
INFO:     Started server process [35312]
INFO:     Waiting for application startup.
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Application startup complete.
Accept failed on a socket
socket: <asyncio.TransportSocket fd=608, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('<IP_ADDRESS>', 8000)>
Traceback (most recent call last):
  File "C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\asyncio\proactor_events.py", line 841, in loop
    f = self._proactor.accept(sock)
  File "C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\asyncio\windows_events.py", line 563, in accept
    self._register_with_iocp(listener)
  File "C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\asyncio\windows_events.py", line 732, in _register_with_iocp
    _overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0)
OSError: [WinError 87] Paramètre incorrect
Task exception was never retrieved
future: <Task finished name='Task-7' coro=<IocpProactor.accept.<locals>.accept_coro() done, defined at C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\asyncio\windows_events.py:577> exception=OSError(22, 'L’opération d’entrée/sortie a été abandonnée en raison de l’arrêt d’un thread ou à la demande d’une application', None, 995, None)>
Traceback (most recent call last):
  File "C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\asyncio\windows_events.py", line 580, in accept_coro
    await future
OSError: [WinError 995] L’opération d’entrée/sortie a été abandonnée en raison de l’arrêt d’un thread ou à la demande d’une application
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
Setup complete for worker 1.
Setup complete for worker 0.

After the PR
(litserve_win) PS > python .\dummy_server.py
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
C:\Users\F296849\AppData\Local\miniforge3\envs\iris2_win\lib\site-packages\litserve\server.py:475: UserWarning: Windows does not support forking. Using threads api_server_worker_type will be set to 'thread'
  warnings.warn(
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
Swagger UI is available at http://<IP_ADDRESS>:8000/docs
INFO:     Started server process [24816]
INFO:     Waiting for application startup.
INFO:     Started server process [24816]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Application startup complete.
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
Setup complete for worker 0.
uvloop is not installed. Falling back to the default asyncio event loop. Please install uvloop for better performance using `pip install uvloop`.
uvloop is not installed. Falling back to the default asyncio event loop.
Setup complete for worker 1.

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

hi @FrsECM, thank you so much for the PR! Could you also add additional information about why setting config.workers fixes this issue for reference?

hi @FrsECM, thank you so much for the PR! Could you also add additional information about why setting config.workers fixes this issue for reference?

Sure.
It's to make sure the code go through this portion of uvicorn :
https://github.com/encode/uvicorn/pull/802/commits/858f1c58edc5a623efb17569fa21d0d974b87fbc
There is still an issue similar to this one :
https://github.com/encode/uvicorn/issues/514
I have to investigate a little more.

I have to investigate a little more on another issue that cause [WinError 10022].
It seems that in some case (not completely reproductible), the socket is not ready to listen when we start uvicorn servers.
A workarround is to force listening before setting up uvicorn servers. I don't have any idea about why it behaves like that.
If you have any idea.

@aniketmaurya did you have a look on the PR ?
It seems to fix my problem on windows.
It doesn't fix issue number #372 but it allows to make multiple worker on windows.

@aniketmaurya i got an idea for #372.
Unlike on Linux, i discovered that inference workers were killed instead of uvicorn's.

@FrsECM it seems like the Windows tests are stuck and have timed out.

Hum. Curious. On my windows machine I don’t have issues.
I don’t know well the test stack.
I'll try to have a look tomorrow.
Envoyé à partir de Outlook pour iOShttps://aka.ms/o0ukef

De : Aniket Maurya @.>
Envoyé : Thursday, December 12, 2024 8:09:16 PM
À : Lightning-AI/LitServe @.>
Cc : François Ponchon @.>; Mention @.>
Objet : Re: [Lightning-AI/LitServe] Fix Windows Threading Issues (PR #385)
@FrsECMhttps://github.com/FrsECM it seems like the Windows tests are stuck and have timed out.
—
Reply to this email directly, view it on GitHubhttps://github.com/Lightning-AI/LitServe/pull/385#issuecomment-2539808198, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGG5F7H2TWURUOQHJ6OVXRT2FHNNZAVCNFSM6AAAAABTBG2HB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZZHAYDQMJZHA.
You are receiving this because you were mentioned.Message ID: @.***>

@aniketmaurya i think i got the point.
In fact when a test is not passing on windows it hangs.
The problem is not linked with my modification but with a change in httpx>=0.28.0 library.
In version 0.27.1, you can see this :
https://github.com/encode/httpx/blob/609df7ecc0f7cb10a1c998aa9c269bba77337c5f/httpx/_client.py#L1320C1-L1374C1
In version 0.28.0:
https://github.com/encode/httpx/blob/80960fa31918d7663c3f4c3ad61661cf0e80628f/httpx/_client.py#L1309C1-L1353C31
The error is that "app" keyword argument is no longer available on AsyncClient.
If i force the installation of httpx==0.27.1 it fixes the issue :

Even if i don't like it, a quick fix would be to force the version to be lower than this one in requirements for dev.
What do you think about it ?


Cannot process commands

I'm getting the "start: Error: Request Failed with status 400 - Bad Request" message.
Might be time to update the keys.
Thanks for your work!

think we have to wait for onstarjs to update

works again


[DAPHNE-#427] Initial logging facility using spdlog

Closes #427

ToDo:

check cross-library functionality
guard CUDA specific parts at compile time

ToDo:
* check cross-library functionality

* guard CUDA specific parts at compile time

all done, will leave this out for review if anybody has the time to look at it and merge it tonight


jax2tf shape polymorphism does not support einsum with more than 1 contraction

Example error message:
ValueError: Shape polymorphism is not yet supported
        for einsum with more than one contraction [((1, 0), {'b'},
        'be,abcd->eacd', ['cf', 'eacd'], 'TDOT'), ((1, 0), {'c'},
        'eacd,cf->aefd', ['aefd'], 'TDOT')]

Fixed by #7566


Feature request: Ri Jing (Date package)

This package will return the Chinese calendar date (Yin Li or Nong Li) given a Gregorian date. It will also return if it's a holiday and the name of the holiday, or the date of significance such as 24 Jie2 Qi4.
It will have a suite of nice render functions to print nice calendars with Chinese holidays annotated, which are configurable.
This can be a very useful package, very timely as the New Year is going to start and Chinese New Year is also well around the corner - wenyan-lang will definitely be remembered even just for this package alone!
Who is up to this challenge? (May I suggest this be given higher priority in our to-do list?)

Hi @kaiyuan01 thanks for bringing this up, though I think it is a duplicate of #425. Since there's already an extended conversation in that issue, I propose we take our discussion there.
P.S. Printing a calendar with annotated holiday sounds like good example for the ./examples folder to showcase the datetime library, not as part of the datetime library :)


AttributeError: 'Namespace' object has no attribute 'duo_api_key'

Description:

Error when launching cartography without configuring (or disabling) duo intel module.
AttributeError: 'Namespace' object has no attribute 'duo_api_key'

To Reproduce:

Launch cartography without duo config parameter and without specific module

Logs:
ERROR:cartography.sync:Unhandled exception during sync stage 'duo'
Traceback (most recent call last):
  File "/home/jeremy/Repos/cartography/cartography/sync.py", line 111, in run
    stage_func(neo4j_session, config)
  File "/home/jeremy/Repos/cartography/cartography/util.py", line 165, in timed
    return method(*args, **kwargs)
  File "/home/jeremy/Repos/cartography/cartography/intel/duo/__init__.py", line 58, in start_duo_ingestion
    config.duo_api_key,
AttributeError: 'Namespace' object has no attribute 'duo_api_key'
Traceback (most recent call last):
  File "/home/jeremy/.local/share/virtualenvs/cartography-ra6kuGgL/bin/cartography", line 33, in <module>
    sys.exit(load_entry_point('cartography', 'console_scripts', 'cartography')())
  File "/home/jeremy/Repos/cartography/cartography/cli.py", line 705, in main
    sys.exit(CLI(prog='cartography').main(argv))
  File "/home/jeremy/Repos/cartography/cartography/cli.py", line 686, in main
    return cartography.sync.run_with_config(self.sync, config)
  File "/home/jeremy/Repos/cartography/cartography/sync.py", line 189, in run_with_config
    return sync.run(neo4j_driver, config)
  File "/home/jeremy/Repos/cartography/cartography/sync.py", line 111, in run
    stage_func(neo4j_session, config)
  File "/home/jeremy/Repos/cartography/cartography/util.py", line 165, in timed
    return method(*args, **kwargs)
  File "/home/jeremy/Repos/cartography/cartography/intel/duo/__init__.py", line 58, in start_duo_ingestion
    config.duo_api_key,
AttributeError: 'Namespace' object has no attribute 'duo_api_key'

Please complete the following information::

Up to date cartography (commit: 0c852d26ec32e7dedda28d260290023ea98f3b7e)
Python 3.8.16
OS: Ubuntu 22.04

Hi, is it possible to disable the duo module? If yes, do you know how? Thanks.

@Mehyar-ALS you can use selected-modules argument to run only a sub set of modules.
It will solve your issue and greatly increase execution speed.
Ex: --selected-modules gsuite,github

That was a very quick replay! Thanks

Marking as fixed by #1190, thanks @resilience-jychp !


Help me, please.

Hi, I have tried many times to reproduce this work but still not achieving the desired result.
Do you have any other contact information that I would like to ask you for further advice. I hope you can check my code.
Thank you very much!

Is it convenient for you to answer my questions in your free time? I would be very grateful!
@yhyang-myron

Sorry for the delayed response. Can you add my qq:1240481806?

Hi, I am having the same issue. Could you elaborate on how you managed to resolve this? @LinLin1031 @yhyang-myron Thank you so much!!


Add TwilioUriHelper

Closing this to preserve this branch in case the xUnit team wants to take a look.


Add General::checkFile*able() API

Re #2618
See commit messages and comments.

@brendo wanna check the last 4 commits please ?


Plugin only installable in latest Jenkins LTS

This plugin is only installable on the latest LTS version of Jenkins. Is there any reason for this? Users which are still using an older LTS version (e.g. 2.303.3) cannot upgrade to the latest plugin releases.

Then update core. In general, new plugin releases will require relatively recent core versions.


Run - windir issue

Thank you for the converter! It successfully converted everything I had, except for this: (line no. 36)
V1:
^!x::run %windir%\System32\SndVol.exe -t 76611119 0 ; opens the Volume Mixer
V2: (converted)
^!x::Run(windir "\System32\SndVol.exe -t 76611119 0") ; opens the Volume Mixer
AutoHotKey V2 error prompt:

Windows 10 x64, AutoHotkey 2.0.10

Thank you, changing windir to A_WinDir solved it. Can't remember how and where I got that particular script. A direct copy-paste probably.


Idea: Docker API for compatibility

Hi, I really love this project and have been using it in conjunction with lima.
But lately I had to get back to other alternatives that expose the docker API.
It happens that some tools (like VS Code Remote Containers, Testcontainer framework) need to communicate via API, tipically the docker.sock unix socket.
I have an Idea of creating a tool that exposes an API that behaves the same as the normal docker API.
It could use nerdctl as a library (not sure if currently possible) or maybe try to use it as a subprocess.
I would like to ask if someone has heard of a simmilar project I could use/contribute instead of starting a new one from scratch.
Also, if you could point me in the direction of which way to integrate with nerdctl is the best one in your opinion (as subprocess, as library, some kind of inter-process commuication, etc.)

Also, if you could point me in the direction of which way to integrate with nerdctl is the best one in your opinion (as subprocess, as library, some kind of inter-process commuication, etc.)

As subprocesses.

At first I thought this idea was a bit crazy, first remove dockerd only to add a limited version of it back again.
But it could actually be quite handy, to have a nerdctl.sock that would accept a subset of the API commands.

Here was something that I hacked together, this server is able to answer a docker version call using 1.12 API:
package main

import (
	"log"
	"net/http"
	"os/exec"
	"runtime"
	"strings"

	"github.com/gin-gonic/gin"
)

func nerdctlVersion() string {
	nv, err := exec.Command("nerdctl", "--version").Output()
	if err != nil {
		log.Fatal(err)
	}
	v := strings.TrimSuffix(string(nv), "\n")
	v = strings.Replace(v, "nerdctl version ", "", 1)
	return v
}

func setupRouter() *gin.Engine {
	r := gin.Default()

	r.GET("/_ping", func(c *gin.Context) {
		c.Writer.Header().Set("API-Version", "1.24")
		c.Writer.Header().Set("Content-Type", "text/plain")
		c.String(http.StatusOK, "OK")
	})

	r.GET("/v1.24/version", func(c *gin.Context) {
		var ver struct {
			Version       string
			APIVersion    string `json:"ApiVersion"`
			MinAPIVersion string `json:"MinAPIVersion,omitempty"`
			GitCommit     string
			GoVersion     string
			Os            string
			Arch          string
			KernelVersion string `json:",omitempty"`
			Experimental  bool   `json:",omitempty"`
			BuildTime     string `json:",omitempty"`
		}
		ver.Version = nerdctlVersion()
		ver.APIVersion = "1.24"
		ver.MinAPIVersion = "1.24"
		ver.GoVersion = runtime.Version()
		ver.Os = runtime.GOOS
		ver.Arch = runtime.GOARCH
		ver.Experimental = true
		c.Writer.Header().Set("Content-Type", "application/json")
		c.JSON(http.StatusOK, ver)
	})

	return r
}

func main() {
	r := setupRouter()
	//r.Run(":2375")
	r.RunUnix("nerdctl.sock")
}

I used https://gin-gonic.com/ which was easy to get started with. It also supports the required JSON shuffling.

Seems to be mostly an exercise in converting between fuzzy human formats, like dates and sizes.
e.g.
{"CreatedAt":"2021-12-26 15:51:20 +0100 CET","CreatedSince":"2 months ago","Digest":"sha256:b5cfd4befc119a590ca1a81d6bb0fa1fb19f1fbebd0397f25fae164abe1e8a6a","ID":"b5cfd4befc11","Repository":"busybox","Tag":"latest","Size":"1.3 MiB","Platform":"linux/amd64"}

type Image struct {
        ID          string `json:"Id"`
        ParentID    string `json:"ParentId"`
        RepoTags    []string
        RepoDigests []string
        Created     int64
        Size        int64
        VirtualSize int64
        Labels      map[string]string
}

The nerdctl interface doesn't really have a machine readable format, even if it does have some json.

I added some more code for _ping, version, info, and  images.
$ export DOCKER_HOST=unix://nerdctl.sock
$ docker version
Client:
 Version:           20.10.7
 API version:       1.26
 Go version:        go1.13.8
 Git commit:        20.10.7-0ubuntu5~20.04.2
 Built:             Mon Nov  1 00:34:17 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          0.17.1
  API version:      1.26 (minimum version 1.24)
  Go version:       go1.17.6
  Git commit:
  Built:
  OS/Arch:          linux/amd64
  Experimental:     true

Server-side looks like:
[GIN-debug] Listening and serving HTTP on unix:/nerdctl.sock
[GIN] 2022/03/05 - 18:51:13 | 200 |       2.276µs |                 | HEAD     "/_ping"
[GIN] 2022/03/05 - 18:51:13 | 200 |   13.181391ms |                 | GET      "/v1.26/version"

Added support for pull ps and build as well, but run will be trouble (with the streams)...
$ docker pull alpine
Using default tag: latest
docker.io/library/alpine:latest
$ docker build -t mytest build
Sending build context to Docker daemon  4.096kB
unpacking docker.io/library/mytest:latest (sha256:1470fd40aef71a1a33625fc80ec3dde8b36c216a168a4ef89c9d5d2ff265c696)...done
$ nerdctl images
REPOSITORY    TAG       IMAGE ID        CREATED           PLATFORM       SIZE       BLOB SIZE
alpine        latest    21a3deaa0d32    10 seconds ago    linux/amd64    5.9 MiB    2.7 MiB
mytest        latest    1470fd40aef7    3 seconds ago     linux/amd64    1.3 MiB    757.6 KiB

Naturally there are dozens of flags and special cases missing, from this "proof-of-concept".

That is very nice, @afbjorklund
I will try to test and contribute when I have some spare time.

Might have to include this: https://github.com/moby/moby/tree/master/pkg/sysinfo
It is not included with nerdctl, so there are a bunch of warnings issued by info

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
WARNING: No cpuset support
WARNING: IPv4 forwarding is disabled
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Personally, I also vote for the issue. It makes nerdctl integrate with existing infra seamlessly.

I happy to promote my hack for further testing, main remaining issue was interactive "run"
Starting a container in the background is not so much of a problem, but starting a shell...
One needs to handle events,  and then there is the whole business of switching protocols
So it will not be a substitute for dockerd, but then again nerdctl is not for docker either ?

@mniak made an initial release of "nerdctld", with some binaries and systemd units

Made another release (0.1.1), with bug fixes and new features for "build". And implementations of "inspect" and "history".

There was a 0.2.1 release, with deb/rpm packaging and lima examples.
https://github.com/afbjorklund/nerdctld/releases
The various hacks for the run command are currently on this branch:
https://github.com/afbjorklund/nerdctld/tree/run

limactl start ./lima/nerdctl.yaml
INFO[0060] Message from the instance "nerdctl":
To run `docker` on the host (assumes docker-cli is installed), run the following commands:
------
export DOCKER_HOST=unix:///home/anders/.lima/nerdctl/sock/nerdctl.sock
docker version
------

docker version
Server:
 nerdctl:
  Version:          1.2.1
 buildctl:
  Version:          0.11.3
  GitCommit:        4ddee42a32aac4cd33bf9c2be4c87c2ffd34747b
 containerd:
  Version:          1.6.19
  GitCommit:        1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
 runc:
  Version:          1.1.4
 tini:
  Version:          0.19.0 - git.de40ad0
 Engine:
  Version:          1.2.1
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.20.1
  Git commit:       a0bbfd75ba92bcb11ac6059bf4f6f4e50c6da0b8
  Built:
  OS/Arch:          linux/amd64
  Experimental:     true


Add German job titles

This PR adds some job titles picked randomly to de_{DE,AT,CH}.
Source: http://planet-beruf.de/schuelerinnen/mein-beruf/berufe-von-a-z/
Source: https://www.becc.admin.ch/becc/public/bvz/beruf/grundbildungen

I updated the patch with a new list from the Swiss government. The listed jobs are ones for which there exists an official certification in Switzerland.

@localheinz can you review the source since my german is lacking here. Imo the code looks good enough so


Enhance reconcile of taskrun to avoid extra pod creation

Changes
Fix issue: #1976
The root cause for the issue is:
The reconsile of taskrun hit error:
Failed to update taskRun status, the object has been modified; please apply your changes to the latest version and try again

it's a benign error, we should just ignore it, but current reconcile cannot, see the logic:

Check if taskrun.Status.Podname is nil, if not, get the pod and move on, one follow-up step is add READY annotation to the pod to make pod run container one by one.
If taskrun.Status.Podname is nil, create a new pod and move on.

The problem is:
If hit Failed to update taskRun status error, the taskrun will stay in workqueue and reconcile again after increased delay, but the Podname is still nil (although it's not in real world, since the pod has been created), so a extra pod will be created. and the previous pod will stick in Running forever since no one add READY annotation.

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[ ] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

/test pull-tekton-pipeline-integration-tests

/assign @ImJasonH

Nice! Could we also change test/retry_test.go from t.Logf to t.Errorf for this now?  Or are there still edge cases that result in too many pods?

/approve

master has been failing since last night on every runs  :
![image](https://user-images.githubusercontent.com/98980/74222531-07179900-4cb5-11ea-8b41-b9e3f4f334d4.png
I just tried it with your PR and it  worked! Thanks...
/lgtm


Vulnerability roundup 64: openssl-1.1.0i: 1 advisory

search, files

[ ] CVE-2019-1543 (nixos-18.09)

Scanned versions: nixos-18.09: 40e716b92a7. May contain false positives.

See also #56364

This comment applies: https://github.com/NixOS/nixpkgs/issues/58269#issuecomment-480586223

Closing as 18.09 is no longer supported.


Actually create queues / topics during queue / topic create. Correct …

…queue/topic naming.
This PR adds possibility to actually create queues and topics in Azure, if necessary.
It also gives some formatting to queue / topic names, replacing some commonly used in enqueue - but invalid in Azure Storage - characters.

@sylfabre - can you look at this one in your spare time?
FYI, I've got one more PR coming for your consideration. But that's another story.

@TiS I've updated the .travis.yml file, could you please rebase your PR, please?

@TiS I hope it'll fix this Travis issue

Yes, as it looks, it worked.


BLOB function trigger default level of parallelism 24 or 16?

The document refers to

queues configuration in host.json

but then states that

The default settings limit concurrency to 24 invocations.

However, in the referred document at [https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue-output?tabs=csharp#hostjson-settings] a default of 16 is mentioned.
Which one is correct?

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

ID: 5ecb1e79-f603-03fd-2ef9-c6cf08ffaacd
Version Independent ID: 35c99e36-f224-350b-a258-2e0cfb8ab154
Content: Azure Blob storage trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-storage-blob-trigger.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

Thanks for the ask  . At this time we are reviewing the ask and we will reply back as soon as we can .


[youtube] throttling on formats with ratebypass=yes on WEB client

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2<IP_ADDRESS>. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Description
Reposting from discord so it doesn't get lost.
When using the WEB client, formats such as 18,22 are throttled. I can confirm this is the same n-sig throttling issue as https://github.com/ytdl-org/youtube-dl/issues/29326.
This appears to be caused by the n-sig not being transformed for this format, likely as the format url has ratebypass=yes:
https://github.com/yt-dlp/yt-dlp/blob/eb56d132d21752fa50e0dd2c3bfa3d983ad48655/yt_dlp/extractor/youtube.py#L2517-L2525
Removing that check, it transforms the n-sig successfully and such downloads at full speed.
However, I'm not sure if this would have any impact on other client playback urls.
Originally found as part of https://github.com/yt-dlp/yt-dlp/issues/1793
Somewhat related: https://github.com/yt-dlp/yt-dlp/issues/985
Verbose log
$ yt-dlp https://www.youtube.com/watch\?v\=DZgkF5A6e14 --extractor-args youtube:player_client=web -f 18 --force-over -v --proxy socks5://<IP_ADDRESS>:1080 --newline
[debug] Command-line config: ['https://www.youtube.com/watch?v=DZgkF5A6e14', '--extractor-args', 'youtube:player_client=web', '-f', '18', '--force-over', '-v', '--proxy', 'socks5://<IP_ADDRESS>:1080', '--newline']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2<IP_ADDRESS>
[debug] Lazy loading extractors is disabled
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.14.10-1-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4 (setts), ffprobe 4.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, keyring, mutagen, sqlite, websockets
[debug] Proxy map: {'http': 'socks5://<IP_ADDRESS>:1080', 'https': 'socks5://<IP_ADDRESS>:1080'}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=DZgkF5A6e14
[youtube] DZgkF5A6e14: Downloading webpage
[debug] Loading youtube-nsig.10df06bb from cache
[debug] [youtube] Decrypted nsig PNnUtaGfFJ_lonDw => DXRMLrMjhYhp4A
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] DZgkF5A6e14: Downloading 1 format(s): 18
[debug] Invoking downloader on "https://r1---sn-ntqe6n7r.googlevideo.com/videoplayback?expire=1637881258&ei=SsGfYfmiE-eo3LUP_4iz4Ag&ip=<IP_ADDRESS>&id=o-AFllJ0wstAmXlVCrFL8pL9xUDkMPTnWJAvRvfzPVGVw3&itag=18&source=youtube&requiressl=yes&mh=mi&mm=31%2C29&mn=sn-ntqe6n7r%2Csn-ntq7yner&ms=au%2Crdu&mv=m&mvi=1&pl=24&initcwndbps=573750&vprv=1&mime=video%2Fmp4&ns=NUknjPY_W2c64kT3pM_7qr8G&gir=yes&clen=25990271&ratebypass=yes&dur=560.970&lmt=1637822599459102&mt=1637859189&fvip=1&fexp=24001373%2C24007246&c=WEB&txp=5430434&n=oKBjgrG3smtpW6_0&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAIEEDpig8Pm8vM_lEkNDmmxJp2_e9TUCpgXoryPxBGpfAiAqqqHlolzwbGZV-zd4wmOKGLolgQkpM1CP_NLl2PYfJA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgfd3EOFKto7nV7Y831RBZPR18Hz7zH9P2nbH8xsvhZVACICcm-CZCbtMtqgmhF0CBZU2aSZTX26WHv2gYLwm5neNU"
[download] Destination: Tidigare centerpartisten - Annie Lööfs dröm om den breda mitten finns inte [DZgkF5A6e14].mp4
[download]   0.0% of 24.79MiB at  5.40KiB/s ETA 01:18:18
[download]   0.0% of 24.79MiB at 16.19KiB/s ETA 26:07
[download]   0.0% of 24.79MiB at 37.74KiB/s ETA 11:12
[download]   0.1% of 24.79MiB at 80.81KiB/s ETA 05:13
[download]   0.1% of 24.79MiB at 61.82KiB/s ETA 06:50
[download]   0.2% of 24.79MiB at 56.83KiB/s ETA 07:25
[download]   0.5% of 24.79MiB at 49.25KiB/s ETA 08:33
[download]   0.6% of 24.79MiB at 53.48KiB/s ETA 07:51
[download]   0.9% of 24.79MiB at 50.51KiB/s ETA 08:17
[download]   1.1% of 24.79MiB at 50.16KiB/s ETA 08:20
[download]   1.3% of 24.79MiB at 50.30KiB/s ETA 08:18
[download]   1.5% of 24.79MiB at 50.93KiB/s ETA 08:11
[download]   1.7% of 24.79MiB at 51.93KiB/s ETA 08:00
[download]   1.9% of 24.79MiB at 51.43KiB/s ETA 08:04

might be related to https://github.com/yt-dlp/yt-dlp/issues/1793

I believe the check can be safely removed. I had originally noticed that URL with ratebypass are NOT getting throttled and so assumed that the transform function is not needed for it. But now it does not seem to be the case anymore

Yes, a nicety that I completely (and apparently correctly) overlooked in https://github.com/ytdl-org/youtube-dl/pull/30184.


Fix stm32f4 usart io

Pull-ups are not enabled on RX pins. It will cause serious and very confusing communication issue when the device deployed into a real work environment.
Pull-up on the TX pins are unnecessary and consume power.

Fixes: #15349

This setting was actually made on purpose, cf https://github.com/zephyrproject-rtos/zephyr/pull/9519.
I think that the solution we need is a fix that switches the pin configuration after UART init (and should address whole STM32 family, not only F4 series).

@erwango Got it, thanks! But it is not elegant and easily confused people. I think to move the TX pin setup go with the USART controller config is a better solution. What's your opinion?

move the TX pin setup go with the USART controller config is a better solution

Sorry, I did not get the point. Can you elaborate?

I mean like @ibisz said in #9519, "Another solution is to move the TX pin setup after the USART controller enable." is a better solution.


Add URI assert

Adds a URI assert by relying on the URIjs library.
Also allows forcing the URI's protocol to match a configured value.

@nunofgs, I've added some changes to your PR (such as exposing constraints), but everything else LGTM!


'StableDiffusionPipeline' object has no attribute 'tiled'

The requirements.txt seem to be missing an install for package realesrgan. After installing that, I hit the error:
  File "/home/snd/bin/miniconda3/envs/ldm/lib/python3.8/site-packages/stable_diffusion_videos/image_generation.py", line 168, in generate_images
    tiled=pipeline.tiled,
AttributeError: 'StableDiffusionPipeline' object has no attribute 'tiled'

You should probably pin the versions in requirements.txt.

Looking at your error, it seems that you are using a diffusers StableDiffusionPipeline instead of the StableDiffusionWalkPipeline from this package to call that generate_images fn. That pipeline would indeed not have the tiled attribute, because it only exists in my pipeline here.

As for realesrgan install (which is separate issue from this one), it was originally optional, but I got lazy along the way and now it will try to import it either way. I'll just add it to requirements.txt then.

Yup, you're right. It was some Jupyter state mixup. I just reran the same code:
from stable_diffusion_videos import StableDiffusionWalkPipeline, Interface
import torch

pipe = StableDiffusionWalkPipeline.from_pretrained(
    "runwayml/stable-diffusion-v1-5",
    torch_dtype=torch.float16,
    revision="fp16"
)
device = "cuda"
pipe.safety_checker = lambda images, clip_input: (images, False)
pipe = pipe.to(device)

interface = Interface(pipe)
interface.launch()

And it works this time. Closing the issue.


enable machine based test distribution

Description: Custom Slicing check box will be by default disabled and visible under Execution options by default.
Looks fine. Just check once that this is visible in both build & release definition flow.

looks fine


Kodi doesn't exit correctly because several classes are left in memory.

I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request

General information
I'm running kodi 18 in raspbian strech in a raspberry pi b 3
Prerequisites

[X] Are you running the latest version?
0.13.13

Description
[Description of the bug or feature]
Kodi don't exit correctly because several classes are left in memory.
Steps to Reproduce

[First Step]
Install the plugin version 0.13.13
[Second Step]
Exit Kodi

Expected behavior: [What you expected to happen]
Exit kodi to terminal
Actual behavior: [What actually happened]
Black screen or text with legend "Exiting Kodi"
Context (Environment)
I was able to compile and install kodi 18.0.BETA3 in raspbian stretch and install it some binary addons (inputstream.adaptive and inputstream.rtmp) in order to run this pluging.
Installation

[ ] I installed the plugin via zip from the Releases page
[X] I´m using the Netflix Repo
[ ] I´m using a different source (Please tell which)

Operating System

[ ] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[X] Linux (ARM)
[ ] Android

Additional informatin on the environment
I installed Retropie 4.4 which is based on Raspbian Stretch and compile Kodi 18 with the binary extra addons instead of the Kodi 17.3 available in this distribution.
Debug log
00:56:54.373 T:1595925232   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.URLError'>
Error Contents: <urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
File "/home/pi/.kodi/addons/plugin.video.netflix/addon.py", line 33, in
NAVIGATION.router(paramstring=REQUEST_PARAMS)
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 60, in wrapped
result = func(*args, **kwargs)
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 123, in router
options = self.before_routing_action(params=params)
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 60, in wrapped
result = func(*args, **kwargs)
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 867, in before
routing_action
'method': 'is_logged_in'}))
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 1053, in call
netflix_service
data = urllib2.urlopen(full_url).read()
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
-->End of Python script error report<--
00:56:54.522 T:1595925232 WARNING: CPythonInvoker(3, /home/pi/.kodi/addons/plugin.video.netflix/addon.py): the python script "/home/pi/.kodi/addons/plugin.video.netflix/addon.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
00:56:54.526 T:1625289456   ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/
00:56:54.553 T:1902452736   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed
00:57:45.039 T:1578099440 WARNING: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.netflix/addon.py): the python script "/home/pi/.kodi/addons/plugin.video.netflix/addon.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE

Same issue on Linux pi-kamera 4.14.92-1-ARCH #1 SMP Thu Jan 10 04:52:45 UTC 2019 armv7l GNU/Linux

My netflix doesn't open and gives the same error


Implement Widget Buttons

References #22

[x] Get a widget button to appear and function in the notebook
[ ] #113

closed with PR #110

closed with PR #110


SETTINGS_MAX_HEADER_LIST_SIZE

This, uh, grew into something far bigger than expected, but it turns out, all of it was needed to eventually support this correctly.

Adds configuration to client and server to set SETTINGS_MAX_HEADER_LIST_SIZE
If not set, a "sane default" of 16 MB is used (taken from golang's http2)
Decoding header blocks now happens as they are received, instead of buffering up possibly forever until the last continuation frame is parsed.
As each field is decoded, it's undecoded size is added to the total. Whenever a header block goes over the maximum size, the frame will be marked as such.
Whenever a header block is deemed over max limit, decoding will still continue, but new fields will not be appended to HeaderMap. This is also can save wasted hashing.
To protect against enormous string literals, such that they span multiple continuation frames, a check is made that the combined encoded bytes is less than the max allowed size. While technically not exactly what the spec suggests (counting decoded size instead), this should hopefully only happen when someone is indeed malicious. If found, a GOAWAY of COMPRESSION_ERROR is sent, and the connection shut down.
After an oversize header block frame is finished decoding, the streams state machine will notice it is oversize, and handle that.

If the local peer is a server, a 431 response is sent, as suggested by the spec.
A REFUSED_STREAM reset is sent, since we cannot actually give the stream to the user.

In order to be able to send both the 431 headers frame, and a reset frame afterwards, the scheduled Canceled machinery was made more general to a Scheduled(Reason) state instead.

Closes #18
Closes #191

Well, CI half passes now. The failure is that nightly cannot compile ring 0.12, because of some module naming thing.


Fix visualizer to support new Candidate/Mention structure

Updates the visualizer so that it still works after #93.

LGTM.


[completionEndpoint] adds support for Stream: true

Description
This PR fixes #416
Notes for Reviewers
sorry for stepping on your toes @krishnaduttPanchagnula , (pr here) but I wanted to get it working for myself, so took a stab at it, then when I figured it out I supposed I should commit it back :)
Signed commits

[X] Yes, I signed my commits.

working on implementing a test, but wanted to get this out first

I don't know why the commit is showing up as unverified :thinking: I don't see where in the github settings to tell github that I used my ssh key...

I don't know why the commit is showing up as unverified thinking I don't see where in the github settings to tell github that I used my ssh key...

figured it out

Fantastic, thanks @samm81!  I think we are almost there :+1:

updated, ptal!

should be good to go!

testing:
Details
$ curl -N http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
     "model": "ggml-model-q4_0.bin",
     "prompt": "a long time ago in a galaxy far, far away",
     "max_tokens": 32
   }'
{"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" | we made it to the Chinese Garden! | and I was so happy 😁 | I wish they had more food options but still it'"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}%
$ curl -N http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
     "model": "ggml-model-q4_0.bin",
     "prompt": ["a long time ago in a galaxy far, far away", "went to a crazy party | "],
     "max_tokens": 32,
     "temperature": 0.7
   }'
{"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" | I was getting ready to go to bed | and Sharon came upstairs | she said something about the carpet that was on the floor of our"},{"text":"爽亮饭店 | met some people | but didn't feel like talking to them much, they were all too loud and"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}%
$ curl -N http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
     "model": "ggml-model-q4_0.bin",
     "prompt": ["a long time ago in a galaxy far, far away", "went to a crazy party"],
     "max_tokens": 32,
     "temperature": 0.7,
     "stream": true
   }'
{"error":{"code":500,"message":"cannot handle more than 1 `PromptStrings` when `Stream`ing","type":""}}%
$ curl -N http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
     "model": "ggml-model-q4_0.bin",
     "prompt": "a long time ago in a galaxy far, far away",
     "max_tokens": 32,
     "temperature": 0.7,
     "stream": true
   }'
data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" |"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" I"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" found"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" my"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" way"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" to"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" the"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" train"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" station"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"!"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" |"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" But"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" it"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"'"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"s"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" really"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" small"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"..."}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" |"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" On"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" the"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" train"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" now"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" "}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"\ufffd"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"\ufffd"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"\ufffd"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":"\ufffd"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" |"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" Train"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" is"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"object":"text_completion","model":"ggml-model-q4_0.bin","choices":[{"text":" full"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: {"model":"ggml-model-q4_0.bin","choices":[{"finish_reason":"stop"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

data: [DONE]


cmd/go: go clean does not remove .exe file for main built by "go build sub/pkg"

What version of Go are you using (go version)?

$ go version
go version go1.18.2 windows/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
λ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Plastikfan\AppData\Local\go-build
set GOENV=C:\Users\Plastikfan\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Plastikfan\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Plastikfan\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.18.2
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\Plastikfan\dev\github\go\snivilised\squif\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\PLASTI~1\AppData\Local\Temp\go-build1040139346=/tmp/go-build -gno-record-gcc-switches

What did you do?
A module with a main package in a sub package at ./src/app.
foo module structure
/foo
│   go.mod
│
└───src
    └───app
            main.go

go.mod:
module github.com/plastikfan/bar

go 1.18

main.go:
package main

import "fmt"

func main() {
	fmt.Printf("hello")
}

go build ./src/app

This should create app.exe at the root:
/foo
│   app.exe
│   go.mod
│
└───src
    └───app
            main.go

Then run

go clean

Nothing happens
Use the -n option:

go clean -n

go clean -n
cd C:\Users\Plastikfan\dev\go\foo
rm -f foo.test foo.test.exe ..test ..test.exe

So where is app.exe in this list? Why does this not work for a sub-package?
If this is by design, then what is the correct way of doing the clean for sub-packages.
Referring to the go docs at go clean, does not shed any light on this issue.
The following additional options have been tried:

-i: "The -i flag causes clean to remove the corresponding installed archive or binary (what 'go install' would create)."
-r: "The -r flag causes clean to be applied recursively to all the dependencies of the packages named by the import paths."

... has no effect
The other options modcache, cache and testcache all seem like nuclear options
Googling around for this has served up no effective solution, so raising this issue is my last resort.

What did you expect to see?
Built exe file to be deleted
What did you see instead?
already explained above

It sounds like you want go clean ./....

Thanks @ianlancetaylor, tried that, didn't work for me unfortunately

If this doesnt work, I don't see why this issue was closed so swiftly without proper investigation and explanation, especially when information is lacking in the docs. How does one remove an exe  built from a target not in the root dir of a module?

The tool is behaving as documented.
But I see what you mean.  go build sub/pkg puts the executable in the current directory, and go clean sub/pkg does not remove that executable.
Reopening.
CC @bcmills @matloob

Thanks @ianlancetaylor.

This is definitely in line with the documentation (https://cs.opensource.google/go/go/+/master:src/cmd/go/internal/clean/clean.go;l=37-39;drc=d60ad1e068263832c711aaf17b6ccb1b7f71b000).
Emphasis mine:

If a package argument is given or the -i or -r flag is set,
clean removes the following files from each of the
source directories corresponding to the import paths:
…

None of the entries in the list includes subpackages.
It would be possible to expand that list, of course, but I think it's already too aggressive (and the go clean command is somewhat awkwardly overloaded).
Other options you might consider are:

Using the go build -o to choose a different output directory, and then using rm -r or similar on that directory.
Using go list -f to output a list of main packages and then invoking basename on each entry in that list.

For example:

~/src/golang.org/x/build$ for target in $(go list -f '{{if eq .Name "main"}}{{.Target}}{{end}}' ./...); do basename $target; done
buildlet
stage0
testssh
buildstats
cl
coordinator
debugnewvm
docker2boot
fetchlogs
genbootstrap
genbuilderkey
gerritbot
gitmirror
gomote
gopherbot
gopherstats
makemac
perfrun
pubsubhelper
racebuild
release
releaselet
releasebot
relnote
relui
retrybuilds
rmplaysnippet
rundockerbuildlet
runqemubuildlet
updatecontrib
updatedisks
updatestd
upload
xb
devapp
files
influx
gostats
maintnerd
maintq
maintwatch
perf
appengine
localperfdata
vcweb

Thanks @bcmills. I will take a look at your directory solution (I'm giving up on trying building on windows, windows support just seem to be lacking in so many areas, and is a second class citizen, so I'll have to use WSL instead). That link you posted does not appear to be open source, I just get permission denied when I follow it. Is there another open source link which porvides access to this documentation that I should probably read?

The corresponding link in github: https://github.com/golang/go/blob/master/src/cmd/go/internal/clean/clean.go#L37-L39

A potentially expensive way of doing this: read the buildinfo out of any file that we might want to remove, and verify it matches a (main) package in the current module


fix: FlashList re-render issue

The fix would reintroduce the issue with the message being logged in all apps.
I opened a PR with an improved fix here:
https://github.com/PedroBern/react-native-collapsible-tab-view/pull/334