Handle non-Linux systems, build docker outside of source tree, replace & delete per-component Makefiles and push scripts

This PR is being used to achieve the following:

Permit/handle builds [i.e., cross-compiles] for other OSes.  go/bin is mostly left unused besides dep, golint, and a few sentinel files. artifacts placed in go/out/[lx|mac|win]/$GOARCH/[debug|release] .  To help consumers of the build (e.g., tests) find the directory (and to help insulate them from future changes in the Makefile) I've toyed with the prospect of providing targets that output the directory location (E.g., script can use ISTIO_OUT=$(make where-is-out) ).
Docker builds now performed under the go/out/... directory, rather than scribbling in the source tree.  Currently I've punted on docker builds for non-Linux OSes.  The targets are exposed only when compiling for Linux (e.g., "make docker" will result in "unknown target" on a Mac, though "make GOOS=linux docker" should try to build [whether it actually works is TBD]).  I've modified
security/bin/gen-keys.sh to permit output to another location.
Teaches make how to create the installer tars.  Make can handle more of the end-to-end build.
The current targets are "make docker.save sidecar.deb istio-archive", though a single target
could be made an alias for all of them.  The release build handles push/upload in a separate step though an integrated push is more like "make HUB=gcr.io/foo TAG=0.5.0 push".
check go version with fewer issues in half the time compared to the current script.
Teaches make how to tag and/or push the docker images it builds.

The PR now works with the presumit tests and release builds but will likely break other uses (e.g., people who use certain scripts or per-component Makefiles, but they can migrate to the top-level Makefile [assuming I've properly captured the handling for that use case]).  Given the potential for disruption (and timing of the monthly release) I don't intent for this to get committed soon.
Deletes files that ideally won't be needed anymore (though no doubt there's some unhandled issues):
bin/docker_lib.sh
bin/push
bin/verify_go_version.sh
mixer/Makefile
mixer/bin/push-docker
mixer/example/servicegraph/Makefile
pilot/Makefile
pilot/bin/push-debian.sh
pilot/bin/push-docker
pilot/bin/upload-istioctl
security/Makefile
security/bin/check_build_files.sh
security/bin/push-debian.sh
security/bin/push-docker
misc ".gitignore" files that were added to hide the scribbling in the source tree.

@mattdelco: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
e03f3fd7e0ed9352220483d2c45e0a0a63bb72ae
link
/test istio-pilot-e2e

prow/e2e-smoke.sh
2702825103689ce696366c262d51a6456191d0a3
link
/test e2e-smoke

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@mattdelco: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-smoke.sh
2702825103689ce696366c262d51a6456191d0a3
link
/test e2e-smoke

prow/istio-pilot-e2e.sh
2702825103689ce696366c262d51a6456191d0a3
link
/test istio-pilot-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


It doesn't work anymore

It seems to be(hopefully temporarily) kacked. So when I enter a prompt, I see the loading animation underneath it. After 2-3 seconds, the loading animation disappears and no graph is drawn - as if I hadn't pressed the Draw button yet.
I tried something seemingly simple and concise: compare EUR against USD over the past 10 years and even please draw a line from the bottom left to the top right. Especially the latter one should be lemon squeezy for an AI model.

WIP

Of course it is. Just letting you know 🙂

@thany i tried the same prompt, i got the output. i don't know the generated output is correct or not but it's generated something.

fixed now


Update beginners.md

Version update: 3.9

@JackDDavis : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks for keeping us up to date on the Python versioning @JackDDavis! Much appreciated.

Thanks for keeping us up to date on the Python versioning @JackDDavis! Much appreciated.


pyglet.app.exit() opens another window with updated data without shutting down the previous window

Hi @benmoran56
I'm working on a project using glooey & pyglet which consists of:

A loop iterating over a folder of files.
For every iteration gui opens a window to display that image file.
The window also consists of a button("Next File"), so this button should basically shut down the existing window & re open a new window with new file.

What's happening is, glooey opens a new window with new data without shutting the old window, the old window becomes dead but doesn't shut down.
I used pyglet.app.exit() & also exit().
If I break the loop, then the window shuts down butI don't want to get out of the loop, I rather want it to shut & re open with next iteration.

The following is the code that I'm unable to post as code:
`import pyglet
import glooey
import os
def create_window():
width, height=1000,500
window = pyglet.window.Window(width = width, height = height,caption='mesh display')
gui = glooey.Gui(window)
bg = glooey.Background()
bg.set_color(new_color = 'white')
gui.add(bg)
grid = glooey.Grid()
grid.add(0,0,MyButton2("NEXT"))
gui.add(grid)
pyglet.app.run()
class MyLabel(glooey.Label):
custom_color = '#000000'
custom_font_size = 12
custom_alignment = 'center'
class MyButton2(glooey.Button):
Foreground = MyLabel
custom_alignment = 'top right'
def on_click(self, widget):
global next_flag
next_flag = True
exit()
pyglet.app.exit()
filename_list = ["a","b","c","d","e","f"]
next_flag = None
for obj in filename_list:
if next_flag is not None:
next_flag = None
exit()
pyglet.app.exit()
else:
grid = create_window()`
Thanks in advance!

Great! I'm glad you got that solved, and thanks for following up.


Use a proper parser for the path template syntax

We are using a regular expression to parse the path templates:
https://github.com/googleapis/google-cloud-rust/blob/61b9d3bbac5530e4321ac19fe7d2760db82e31db/generator/internal/genclient/model.go#L22
However, path templates cannot be parsed by regular expressions.  Their grammar uses recursion:
https://github.com/googleapis/google-cloud-rust/blob/61b9d3bbac5530e4321ac19fe7d2760db82e31db/generator/testdata/googleapis/google/api/http.proto#L229-L234
And therefore they form a non-regular language and require more than regular expressions to parse them correctly.  Regular expressions will serve us well for a while, as very few services use the more complex forms of this grammar.
A small recursive descent parser can take care of this:
https://github.com/googleapis/google-cloud-cpp/blob/4174d656136f4b849c8a3d327237f3a96be3e003/generator/internal/http_annotation_parser.cc#L230-L250

Assigned to @dangazineu, we can always undo this assignment if you get busy with something else.


Added configuration for python into .editorconfig

Codecov Report

Merging #3494 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #3494   +/-   ##
=========================================
  Coverage     45.66%   45.66%
  Complexity      188      188
=========================================
  Files           166      166
  Lines         13175    13175
  Branches        445      445
=========================================
  Hits           6017     6017
  Misses         6954     6954
  Partials        204      204

Continue to review full report at Codecov.

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


Link for 《CUGE: A chinese language understanding and generation evaluation benchmark》

Great Paper！Could you kindly provide the link for CUGE and CCPR dataset?

The paper of the CUGE benchmark will appear on arxiv in a few days.

The information for CUGE benchmark can refer to http://cuge.baai.ac.cn/.

https://arxiv.org/abs/2112.13610


Facing issue in consumer to get data: IDS connector v6.1.2 provider and consumer set up

Describe the bug
We tried to configure provider and consumer for DSC v6.2.1 (https://github.com/International-Data-Spaces-Association/DataspaceConnector).
We have followed the documentation https://international-data-spaces-association.github.io/DataspaceConnector/CommunicationGuide/v6/Provider for provider
and https://international-data-spaces-association.github.io/DataspaceConnector/CommunicationGuide/v6/Consumer for consumer set up.
We have documented all steps which we followed based on documentation while doing data set up for provider and consumer. Please find attachment.
Steps.to.be.done.for.DSC.v.6 (1).pdf
We need to get reviewed all steps which we followed are correct or not?
In consumer set up for step 3 and step 4 as mentioned in document we have below issues/Questions:
Question or Issues:
How we can Negotiate a Contract Agreement at consumer end? is the request format we used in consumer set up at step 3 is correct?
We tried to set contract agreement but we got below error .
{
"reason": {
"properties": null,
"@id": "https://w3id.org/idsa/code/NOT_FOUND"
},
"payload": "Could not find any matching contract offers for your request.",
"type": "de.fraunhofer.iais.eis.RejectionMessageImpl"
}
How the data available or accessible at consumer end which created at provider end?
In consumer set up step 4 we tried Access data but did not get expected response.
{
"message": "Resource not found."
}

Hi @sachinargade123, I have already replied to your mail on 28.09 and provided a solution to your problem. To quote myself:
To question/issue 1: I guess your problem is the contract on the provider side. I see from the PDF that the consumer "https://localhost:8081/" is defined there. If you started the application without changing any configuration (as seen on page 1), both your connectors have the default id from the repository, which is " https://w3id.org/idsa/autogen/baseConnector/7b934432-a85e-41c5-9f65-669219dde4ea". During the contract negotiation, the DSC compares the id from the issuing connector (consumer) to the consumer id that was defined within the contract by the provider. As there is no match, you are getting the rejection reason.

Two possible solutions for that:
1. (Sufficient for local deployment and testing) Skip the consumer when creating the contract. The DSC will only compare the values if they are set.
2. (Necessary in the long run anyway) Give your connector a unique id: https://international-data-spaces-association.github.io/DataspaceConnector/Deployment/Configuration#step-2-ids-certificate. And check all other configurations as well.

To question/issue 2: Your data access does not work, as the artifact will have a new uuid on the consumer side. As long as the contract negotiation wasn’t successful, the consumer connector will not create an artifact and download the data. When you then try to access the artifact by the provider’s uuid on the consumer side, the connector does not know this object. So, as soon as step 1 works, I expect issue 2 being solved as well.

Hi @juliapampus, one inquiry:
You mentioned a Connector's default ID is: 7b934432-a85e-41c5-9f65-669219dde4ea
But at DAPS it is said to be SKI:AKI (see https://github.com/International-Data-Spaces-Association/IDS-G-pre/tree/main/Components/IdentityProvider/DAPS#unique-identifier)
Does I mix up things?

@bastianleirpo No, I said the (not a) connector's default id is https://w3id.org/idsa/autogen/baseConnector/7b934432-a85e-41c5-9f65-669219dde4ea - not the uuid. This is because the id is generated when building the RDF object with the Infomodel serializer (see this example string). Therefore, the documentation says that you should change the id before the deployment: https://international-data-spaces-association.github.io/DataspaceConnector/Deployment/Configuration#step-2-ids-certificate.
In my understandig, this SKI/AKI is something different than the connector's id inside its self-description. According to the Infomodel, this has to be a URI. And as once discussed with @sebbader, this could be e.g. the connector's URL. To ensure that connectors do not pretend to be other connectors, the DAPS would have to check from where an incoming DAT request comes and if this fits to the DNS entry they expect for the registered connector.


[FEATURE] print state of repo

Hey Alex,
very nice restic.
I've a feature request.
restic -r path state now ...
... prints informations like:
-> Backup now in progress,finished, error, failed,...
-> Size of repos, deplucation sizes
-> count of files,dir per repo
-> start time of backup und finished timestamp for repos
all output in json
:-)
greetings
Sam

Hey, thanks for opening an issue. The hypothetical state command you're imagining seems to print out a lot of different information, and I have the feeling that this is too diffuse.
Could you describe your use case? What is it that you'd like to know about your repo? Most of the information you've mentioned we either don't have readily available (e.g. the duplication ratio), or are simply not aware of (e.g. running backups, failed backups).
So I'm going to close this issue for now, as the description is too vague. Please feel free to add comments and answer my questions, I'd like to find out what data you're after. Thanks!


Nuget Packager fails when mixing .csproj and .nuspec when  are included.

Building a csproj works when there is no .nuspec file. Building works when there is just a .nuspec file.
Project is in a sub-directory within a solution.
Has this happened to anyone else?
Path cannot be null.
Parameter name: path
System.Exception: Unexpected exit code 1 returned from tool NuGet.exe
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeToolCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()

@patrickmichalina We rolled back the version of NuGet.exe in the build agent last night due to several bugs in the new version, which may have mitigated this for you.

Interesting. I can't get enough enough from the logs to know what exactly is failing. It appears that the base directory is changing when it attempts to read the files to copy into the nuget directory. When I pack from .csproj with a corresponding .nuspec it works locally on my machine just fine from the command line. Didn't want to manually try nuget.exe on VSO because of authentication, so I'm using just the .nuspec for now. But it would be nice to use the csproj if this ever gets fixed :)

@patrickmichalina can you confirm this is still happening for you?

@patrickmichalina - any update or repro?  There isn't enough to go on here in this thread.  There were some issues in nuget pack (https://github.com/NuGet/Home/issues/2965) in the 3.5 beta streams so it would be good if you could validate against the newest nuget.exe nightly.  If this is an issue we'll want to get it over to them.  For now the packaging task will stay on 3.3 by default, but you can use your own custom nuget.exe and soon you'll be able to choose an in-task 3.5.1 as opt-in so if there is an issue here please reactivate this item with a repro or get it right on the nuget folks if that is the proper source.


Add Potigol to Made-in-Brazil

Please confirm this pull request meets the following requirements:

[ ] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md.
[ ] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[X] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[X] Content (and my changes are in index.md)

Please replace this line with an explanation of why you think these changes should be made.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Something that does not neatly fit into the binary options above

[ ] My suggested edits are not about an existing topic or collection, or at least not a single one
[ ] My suggested edits are not about curating a new topic or collection, or at least not a single one
[ ] My suggested edits conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of your proposed changes.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Hi @lrlucena, thanks for the contribution ❤. Unfortunately, as per our contribution guidelines, we don't allow self promotion if you are a maintainer of the project:

Maintainers of a project cannot add a topic or collection for their own project. If a topic is popular enough to warrant inclusion, someone else will add or improve it.

We do this so that we can maintain a high level of independence in this project, and projects will be curated if there is enough support/activity in the community. Thank you!

OK. No problem. I only realized the "I have no affiliation with the project I am suggesting" requirement after I created the pull request.


Cumulative group?

I think the group transform could support a cumulative option, as the bin transform does. It’s less rarely needed since group is sometimes used with a categorical dimension, but it should make sense with an ordinal dimension.

Example workaround here: https://observablehq.com/d/cc6eeed33e366ce8

Plot.plot({
  marks: [
    Plot.areaY(movies, Plot.mapY("cumsum", Plot.groupX({y: "count"}, {x: "IMDB Rating"}))),
    Plot.ruleY([0])
  ]
})

Ref. https://talk.observablehq.com/t/how-to-translate-vega-lite-window-transform-grammar-to-pure-vega-lite-api-code/6679/4


Python codegen: generate eq field attribute for np.array types

Doing so would enable to rewrite such test:
assert np.all(vec.xyz == np.array([1, 2, 3])

into:
assert vec == Vec3D([1, 2, 3])

unclear


Issues in Settle Payment payload - Healthcare Service

Description:
Settle Payment function has the following issues in healthcare-service.bal.
Issue 1 description
Payments can be settled for invalid appointment numbers, patient details, doctor category, doctor hospital.
Prerequisites

Reserve an appointment as below.
http://localhost:9090/clemency/categories/surgery/reserve

{
	"patient":
	{
        "name":"K Winslet",
        "dob":"1970-03-19",
        "ssn":"234-987-175",
        "address":"Canada",
        "phone":"32456789765",
<EMAIL_ADDRESS>    },
	"doctor":"anne clement",
	"hospital":"clemency medical center",
	"appointmentDate":"2020-01-22"
}

Steps to reproduce:

Settle payment as below with an invalid appointment number.

{
                        "appointmentNumber":289,
                        "doctor":
                        {
                            "category": "surgery",
                            "name": "anne clement",
                            "hospital": "clemency medical center",
                            "availability": "10am - 6pm",
                            "fee": 10000.00
                        },
                        "patient":
                        {
                            "name":"Kate Winslet",
                            "dob":"1970-03-19",
                            "ssn":"234-987-175",
                            "address":"Canada",
                            "phone":"32456789765",
<EMAIL_ADDRESS>                        },
                        "fee":1800.0,
                        "confirmed":true,
                        "cardNumber":"3456812345"
                    }

Expected: There should be an error.
Actual: Successful response with a payment ID.

Settled payment successfully with payment ID: ebcc0452-65f1-4a79-a1e1-d4dfcc688544

Retry the same scenario by providing invalid patient details, doctor category, doctor hospital.

Issue 2 description
Once the payment is settled and confirmed through the payload, the appointment does not get confirmed when it is retrieved through getAppointment.
{
                        "appointmentNumber":14,
                        "doctor":
                        {
                            "category": "surgery",
                            "name": "anne clement",
                            "hospital": "clemency medical center",
                            "availability": "10am - 6pm",
                            "fee": 10000.00
                        },
                        "patient":
                        {
                            "name":"Kate Winslet",
                            "dob":"1970-03-19",
                            "ssn":"234-987-175",
                            "address":"Canada",
                            "phone":"32456789765",
<EMAIL_ADDRESS>                        },
                        "fee":1800.0,
                        "confirmed":true,
                        "cardNumber":"3456812345"
                    }

Once it is retrieved though the getAppointment() the result is as below.
http://localhost:9090/clemency/categories/appointments/14
{
    "appointmentNumber": 14,
    "doctor": {
        "name": "anne clement",
        "hospital": "clemency medical center",
        "category": "surgery",
        "availability": "8.00 a.m - 10.00 a.m",
        "fee": 12000
    },
    "patient": {
        "name": "Kate Winslet",
        "dob": "1970-03-19",
        "ssn": "234-987-175",
        "address": "Canada",
        "phone": "32456789765",
        "email"<EMAIL_ADDRESS>    },
    "fee": 12000,
    "confirmed": false,
    "appointmentDate": "2020-01-22"
}

The confirmed field is still false in the response.
Issue 3 description
In appointment confirmation, fee cannot be less than doctor fee. But it allowed to make the payment settlement with a payload as below.
{
                        "appointmentNumber":14,
                        "doctor":
                        {
                            "category": "surgery",
                            "name": "anne clement",
                            "hospital": "clemency medical center",
                            "availability": "10am - 6pm",
                            "fee": 10000.00
                        },
                        "patient":
                        {
                            "name":"Kate Winslet",
                            "dob":"1970-03-19",
                            "ssn":"234-987-175",
                            "address":"Canada",
                            "phone":"32456789765",
<EMAIL_ADDRESS>                        },
                        "fee":180.0,
                        "confirmed":true,
                        "cardNumber":"3456812345"
                    }

Added separate issues and fixed.
https://github.com/wso2/ballerina-integrator/issues/73
https://github.com/wso2/ballerina-integrator/issues/74


gevent - 'module' object has no attribute 'epoll' with Python2-7 and Gevent -1.0.1; with Requests-2.13.0

requests 2.13.0 fails
>>> import sys
>>> import gevent.monkey
>>> gevent.monkey.patch_all()   # This must be called before any other modules calling socket/request
>>> import requests
>>>
>>> print 'py version:', sys.version_info
py version: sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0)
>>> print 'requests version:', requests.__version__
requests version: 2.13.0
>>> print 'gevent version:', gevent.__version__
gevent version: 1.0.1
>>>
>>> assert requests.get('http://www.python.org').content

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 630, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 190, in resolve_redirects
    **adapter_kwargs
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
    self._validate_conn(conn)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn
    conn.connect()
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py", line 324, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 438, in wrap_socket
    rd = util.wait_for_read(sock, sock.gettimeout())
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 33, in wait_for_read
    return _wait_for_io_events(socks, EVENT_READ, timeout)
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 22, in _wait_for_io_events
    with DefaultSelector() as selector:
  File "/home/barikak/workplace/NetengCommonW/env/NetengCommon-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/selectors.py", line 364, in __init__
    self._epoll = select.epoll()
AttributeError: 'module' object has no attribute 'epoll'
>>>
>>>

requests 2.9.1 works
>>> import sys
>>> import gevent.monkey
>>> gevent.monkey.patch_all()   # This must be called before any other modules calling socket/request
>>>
>>> import requests
>>>
>>> print 'py version:', sys.version_info
py version: sys.version_info(major=2, minor=7, micro=8, releaselevel='final', serial=0)
>>> print 'requests version:', requests.__version__
requests version: 2.9.1
>>> print 'gevent version:', gevent.__version__
gevent version: 1.0.1
>>>
>>> assert requests.get('http://www.python.org').content
/home/barikak/workplace/NSDSwiftKanbanClientW/env/NSDSwiftKanbanClient-1.0/runtime/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
   Because this seems to be a bug that only occurs if Requests is imported before gevent monkey patching.

In the meantime, please try 2.14.2.

I can't reproduce this on Python 2.7 with requests 2.13.0 and gevent 1.0.1 running the following:
>>> import gevent.monkey
>>> gevent.monkey.patch_all()
>>> import requests
>>> requests.get('http://www.google.com')
<Response [200]>

Thanks a lot... Yes, I am absolutely sure requests is not being imported before patching.
Great. I am pushing for 2.14.2, but also found a workaround:
import sys
import gevent.monkey
gevent.monkey.patch_all()   # This must be called before any other modules calling socket/request

import requests

print 'py version:', sys.version_info
print 'requests version:', requests.__version__
print 'gevent version:', gevent.__version__

import select
from requests.packages.urllib3.util.selectors import EpollSelector, SelectSelector, PollSelector

if hasattr(select, "epoll"):
    print 'epollo'
    requests.packages.urllib3.util.wait.DefaultSelector = EpollSelector
elif hasattr(select, "select"):
    print 'select'
    requests.packages.urllib3.util.wait.DefaultSelector = SelectSelector
elif hasattr(select, "poll"):
    print 'poll'
    requests.packages.urllib3.util.wait.DefaultSelector = PollSelector

assert requests.get('http://www.python.org').content

The error occurs even when you run the four lines that I posted above in a blank empty Python console?
Run this in a new console and report back if this errors with the same error (It shouldn't for requests 2.13.0):
import gevent.monkey
gevent.monkey.patch_all()
import requests
requests.get('http://www.google.com')

Your work-around basically what requests is doing in the background in it's ported urllib3.selectors module, although if the patching occurs post-import and we assume that you should use a selector (in this case, select.epoll()) that no longer exists in your post-patched select module then there are problems. This is why we believe that the patching is occurring before requests is imported.

I see... So, it looks like import sys if called before patch, throws an exception.
This doesn't throw error
import gevent.monkey
gevent.monkey.patch_all()
import requests
import sys
requests.get('http://www.google.com')

This throws exception
import sys
import gevent.monkey
gevent.monkey.patch_all()
import requests
requests.get('http://www.python.org')

Again, I cannot be emphatic enough: you must not import anything before applying a gevent monkey patch.

This is ultimately a gevent bug, not a Requests bug.

Thank you so much for your help


Prevent http errors during tests

gertty currently causes log
ERROR    https_everywhere.adapter:adapter.py:124 handle_error requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='ttygroup.org', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb191ddc580>, 'Connection to ttygroup.org timed out. (connect timeout=15)'))
ERROR    https_everywhere.adapter:adapter.py:124 handle_error requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='ttygroup.org', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb191ddc580>, 'Connection to ttygroup.org timed out. (connect timeout=15)'))

While it is useful for the library to be able to skip past those problems, the tests should highlight them so they can be raised upstream.
Another more critical one would be TooManyRedirects.

b90799c was a too-many-redirects workaround - these should also be shown during tests.


Leverage generic persistence event classes

Q
A

Type
improvement

BC Break
no

Fixed issues

Summary
Follows https://github.com/doctrine/persistence/pull/273 and imitates https://github.com/doctrine/orm/pull/9633

Thanks @franmomu!


An error was caused while dragging the tabs.

When I dragged the tab (which I wasn't on ) out of the main window, it won't create a new window, actually, it crash.

OS Version: [Windows 10 2004 20211.1000]
App version: [v0.14.0]

This is the log:
2020-09-20 23:27:03.9423|ERROR|Files.App|Object reference not set to an instance of an object.|System.NullReferenceException: Object reference not set to an instance of an object.
at Files.UserControls.HorizontalMultitaskingControl.<TabStrip_TabDroppedOutside>d__21.MoveNext() + 0xf4
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e
at System.Action1.Invoke(T) + 0x28    at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33    at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21    at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32) + 0xb8    at __Interop.ForwardComStubs.Stub_11[TThis](__ComObject, Int32) + 0x24    at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x3d --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21    at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object, UnhandledErrorDetectedEventArgs) + 0x75    at System.EventHandler1.Invoke(Object, TEventArgs) + 0x2e
at __Interop.Intrinsics.HasThisCall__23[TArg0](Object, IntPtr, Object, TArg0) + 0x36
at Files!+0x133e7a0

The error behaves lik this:

Duplicate of #1875


.proto file wrappers updated

Auto-generated by GitHub Actions on Protobuf Repo

For https://github.com/adafruit/Wippersnapper_Components/pull/129


upgrade golangci-lint version

Migrate repo to support golang 1.21 and golangci-lint 1.55.x

@kulti Could you please review and let me know what do you think?

Closed in favor of #46


Node red azure

Node red dash board not shown why is that

It's been working here - I had these settings in the module.exports section in settings.js:
httpNodeRoot: "/api",
ui: { path: "/dashboard" },

Hi, as explained in the readme, the dashboard is in the /ui path, but you can change it in the settings.js if you want. I'm going to update the template to provide some more options, do you want this to be configurable?

Ok, looks like something is broken. Will update the template ASAP.

It should be visible in the /ui path. If you cannot view wait 20 seconds and refresh the page, sometimes it takes a while until all the modules are installed.
Then check that you added the dashboard elements to a group and a tab (and that you created at least one group with one tab inside).
I'm going to update the template with new versions, do you want the path value to be configurable from the template? If yes, open an issue with this and I will add it.

I've tested again and works as expected. I'm closing it, if you want this value configurable open a new issue. Thanks you.


Failed to add task but still reported success

I was adding several tasks using the rtm a interactive mode. While I was entering them, my internet went out. Then when finishing with a blank line, it cycled through the tasks, reported a failure and then ended with the success message.
New Task: Install new Comcast modem #personal !1 ^today @home =15 minutes
New Task: Install new Nest floodlight #Personal !1 ~tomorrow ^Saturday =1 hour @home
New Task:
✖ Could not add new Task #1 (Network Error: Could not make request to RTM API Server)
✖ Could not add new Task #2 (Network Error: Could not make request to RTM API Server)
✔ Task(s) Added
I was expecting that the final message would have reported an error.
I've not attempted to troubleshoot this yet.

Just hit this same problem this week

I may have some time this weekend to troubleshoot this.

FWIW, I've solved the underlying problem for myself by using the npm version instead of the .exe, but yeah, worth seeing why it says "Task(s) added" when no tasks were added

This is where the problem is coming from
https://github.com/beauraines/rtm-cli/blob/870a8a7408e25f71830e3eae123c7a00eaf84034/src/cmd/add.js#L42-L71
/**
 * Process the request
 * @private
 */
function _process(task, count=1, max=1) {
  log.spinner.start("Adding New Task(s)...");
  config.user(function(user) {
    task = _parseTask(task);

    // Add Task
    user.tasks.add(task, function(err) {
      if ( err ) {
        log.spinner.error("Could not add new Task #" + count + " (" + err.msg + ")");
      }
      _processFinished(count, max);
    });
  });
}

/**
 * Request Callback
 * @private
 */
function _processFinished(count, max) {
  log.spinner.start("Adding Task [" + count + "/" + max + "]...");
  if ( count === max ) {
    log.spinner.success("Task(s) Added");
    return finish();
  }
}

If there is an error, it displays that there was an error, but once all the tasks have been processed, it still goes on to _processFinished It seems that _processFinished should take the err as an argument and then display log.spinner.error() with some error message.
However, this pattern repeats itself through each of the commands...


Pressing enter should move list attributes

https://user-images.githubusercontent.com/24715727/223434916-4924fb9d-fed4-4123-b989-d9dcf6f3423d.mp4
Expected state after pressing Enter:

[ ]
[x] Checked

Fixed in https://github.com/ocavue/prosemirror-flat-list/pull/82


merge with SpaceK33z

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Merge original iohook with SpacK33z fork

Hello!
Could you tell us a bit more about this PR?

Hi,
Sorry,
I made PR by mistake; I meant to merge into repo that I forked, so that I can see the different
Thanks
Tong

From: Lacy Morrow @.>
Sent: Saturday, May 11, 2024 5:49 PM
To: wilix-team/iohook @.>
Cc: Duangboudda @.>; Author @.>
Subject: Re: [wilix-team/iohook] merge with SpaceK33z (PR #446)
@lacymorrow requested changes on this pull request.

In .github/workflows/ci.ymlhttps://github.com/wilix-team/iohook/pull/446#discussion_r1597522131:

@@ -11,27 +11,33 @@ jobs:
ci:
strategy:
matrix:

   os: [ubuntu-latest, macos-latest, windows-latest]

   os: [ubuntu-latest, macos-latest, windows-2019]

Why are we pinning 2019 here?

In .github/workflows/ci.ymlhttps://github.com/wilix-team/iohook/pull/446#discussion_r1597522256:

     arch: [x86_64]

     include:

     - os: windows-latest

       arch: i686

     - os: macos-latest

       arch: arm64

I think we should keep testing against i686
os: windows-latest
arch: i686

In install.jshttps://github.com/wilix-team/iohook/pull/446#discussion_r1597528225:

@@ -31,7 +31,7 @@ function install(runtime, abi, platform, arch, cb) {

console.log('Downloading prebuild for platform:', currentPlatform);
let downloadUrl =

'https://github.com/wilix-team/iohook/releases/download/v' +

'https://github.com/SpaceK33z/iohook/releases/download/v' +

Should we be referencing this?

In package.jsonhttps://github.com/wilix-team/iohook/pull/446#discussion_r1597528273:

@@ -1,16 +1,16 @@
{

"name": "iohook",
"version": "0.9.3",

"name": @.***/iohook",

update

In package.jsonhttps://github.com/wilix-team/iohook/pull/446#discussion_r1597528281:

@@ -1,16 +1,16 @@
{

"name": "iohook",
"version": "0.9.3",

"name": @.***/iohook",
"version": "0.12.0",

update

In package.jsonhttps://github.com/wilix-team/iohook/pull/446#discussion_r1597528348:

 ],

 [

 "node",

 "16.0.0",

 "93"

 "electron",

 "18.0.0",

 "103"

why are we dropping support for old versions here?
—
Reply to this email directly, view it on GitHubhttps://github.com/wilix-team/iohook/pull/446#pullrequestreview-2051268388, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEPAPF6XIHRKIATFCMMAIZDZB24ABAVCNFSM6AAAAABHQ2PSHOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANJRGI3DQMZYHA.
You are receiving this because you authored the thread.Message ID: @.***>

I was working to get iohook to work with electron 28, and we did get it work. And we want to know that if the codes are safe to use, mostly just scanning code for security reasons.

Yeah, I will close it, and sorry for the mistake. it is great library and we use it in our organization. Currently, we update our electron version to 28, so we found some forked repo to use, but we want to see new committed codes for security purposes.


Need to ignore U+200E character when matching strings

U+200E is the left to right marker character. It is an invisible character, but it does cause text not to match and prevent type and replace from working.

I have a fix ready, and will post it later this week or next week.

This is fixed as of commit 554160240eb3aee12d7c51593c23bf22e7955e82
.
I made it ignore the invisible characters, specifically the ones that inform text directionality. There may be other invisible characters we need to deal with, but we have not yet encountered them causing trouble while testing, so we are not dealing with them yet.


Adding option to disable ResetItemTimeout calls when session is disabled

This change adds the ability to suppress the session "keepalive" message(s) that are sent to dynamo when session is disabled for a request.
For those unaware, even if you explicitly disable sessions for a page/view/handler/etc., the ASP.NET session state module will request that the session is kept alive. This results in 1-2 dynamo db requests per request. By disabling this functionality, consumers of this API would be able to reduce unnecessary traffic to dynamo db.
This does not remove the session keepalive functionality from the DynamoDBSessionStateStore. When obtaining an exclusive lock on a session item, the "Expires" attribute is updated then. Keepalive is only disabled when session has been disabled for a request.
To illustrate how useful this functionality this could be, I'll describe the situation that we are in. We have a request being initially served by a MVC controller with 5-10 http handlers providing content that is loaded in as a script, image or via AJAX. Each handler is issuing a dynamo db request which means for every visit to a page we have 5-10 unnecessary dynamo db API calls. Removing these redundant dynamodb calls would help us reduce our (significant) dynamo db traffic.

This is great. Thanks for sending us the pull request. It will be pushed to NuGet as part of our next SDK release.

Thanks for the quick merge and publication normj, we really appreciate it.


r11s-driver: Upgrade url-parse

Resolves CVE-2022-0512

CVE-2022-0686 can also be resolved by this, so updating to 1.5.8 instead of 1.5.7


feat: add Show/Hide methods to FluentDialog

Pull Request
📖 Description
This is an implementation of show and hide from fluent-dialog component that fixes the issue #62.
My intention was to use the Javascript methods using JSInterop, but since you can't directly work in the DOM with Blazor, we would have to create a new Javascript file to hand the show/hide methods.
This implementation is pretty basic and it only adds a new property called Hidden, which will be used to update the fluent-design component.
There are two new methods added to the FluentDialog component called Show and Hide.
<fluent-dialog Modal="@Modal" @attributes="AdditionalAttributes" hidden="@(Hidden)">@ChildContent</fluent-dialog>
@code
{
    [Parameter] public bool? Modal { get; set; }

    [Parameter] public RenderFragment ChildContent { get; set; }

    [Parameter(CaptureUnmatchedValues = true)] public IDictionary<string, object> AdditionalAttributes { get; set; }

    public bool Hidden { get; set; } = true;

    public void Show() => Hidden = false;

    public void Hide() => Hidden = true;
}

In order to either show or hide the dialog, you would need to reference the component by using @ref and then you are able to call the methods.
<FluentDialog @ref="MyFluentDialog" id="foo" aria-label="Simple dialog" Modal="true" >

Dialog with text and button. The button should recieve focus

    <button>Button A</button>
    <button id="element" autofocus>Should autofocus</button>
    <button @onclick="OnCloseModalButtonClick">Close dialog</button>
</FluentDialog>

<button @onclick="OnOpenModalButtonClick">Open dialog</button>

@code{
    private FluentDialog MyFluentDialog;
    public bool IsModalOpen;

    private void OnOpenModalButtonClick() => MyFluentDialog.Show();
    private void OnCloseModalButtonClick() => MyFluentDialog.Hide();
}

🎫 Issues
Not really an issue, but maybe an explanation on why I decided to not go the JS Interop route.
If we wanted to use JS Interop, we would need to do something like following code, that would have to be included a new Javascript file linked to the FluentDialog component, and that calls the function to either open or close.
var showModal = function(id)
{
    document.getElementById(id).show();
}

var hideModal = function(id)
{
    document.getElementById(id).hide()
}

Then, from the FluentDialog component we would have to change more stuff, like having the component id as random so it doesnt collide with any other FluentDialog that we might have.
<fluent-dialog id="@Id" Modal="@Modal" @attributes="AdditionalAttributes" hidden="@(Hidden)">@ChildContent</fluent-dialog>
@code
{
    [Parameter] public bool? Modal { get; set; }

    [Parameter] public RenderFragment ChildContent { get; set; }

    [Parameter(CaptureUnmatchedValues = true)] public IDictionary<string, object> AdditionalAttributes { get; set; }

    public bool Hidden { get; set; } = true;

    public Guid Id { get; set; } = Guid.NewGuid();

    [Inject] public IJSRuntime JSRuntime { get; set; }

    public async Task Show()
    {
        await JSRuntime.InvokeVoidAsync("showModal", Id.ToString());
    }

    public async Task Hide()
    {
        await JSRuntime.InvokeVoidAsync("hideModal", Id.ToString());
    }
}

Probably the code could be refactored to be smaller, but we still would have to create a new Javascript file, and then we would have to do for each component  in order to keep consistency.
👩💻 Reviewer Notes
Look at FluentDialog.razor for the new changes and FluentDialogTest.razor for testing the component.
✅ Checklist
General

[x] I have added tests for my changes.
[x] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[x] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

[ ] I have added a new component
[x] I have modified an existing component

⏭ Next Steps
Maybe the product manager should decide if the components should have Javascript files that call the front-end methods.

@nicholasrice Can you give this a review?


Feedback on success or failure of login or logout to the view

Now we have no feedback, so we don't know anything about whether we succeeded or failed.


[Feature Request] Export/Import Programs

If this is already a thing, let me know (and close this).
It would be great to be able to export programs to be able to share them with other players/use them in other worlds. Would, of course, have to have an import system as well. So far I haven't seen a way to do this as of yet.

Ctrl-A (select all), Ctrl-C to copy. You can also Ctrl-V.
The copied program can be pasted in notepad or whatever as a json and moved to another computer that way

Oh. Was not aware. Thankyou :)


Improve cancel button look

Make cancel button look like other buttons (start, next step, step in, step out).

Thanks


affected/package:

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

$ go version

go1.18
Does this issue reproduce with the latest release?
I am not sure.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

MacOS arm64
What did you do?

Using the websockets code from this tutorial, after building and running, when I try to access <IP_ADDRESS>:8080, the terminal shows an error.    websockets.go
What did you expect to see?
Expecting no errors after accessing <IP_ADDRESS>:8080
What did you see instead?
request origin not allowed by Upgrader.CheckOrigin

Code that needs to be modified.
var upgrader = websocket.Upgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
	CheckOrigin: func(r *http.Request) bool {
		return true
	},
}

The Go project does not run that website.


Distinguish between 32-bit and 64-bit switchers

When the same version of 32-bit and 64-bit GHC are installed side by side, the switcher script name will be ambiguous between the two. Perhaps we could add -x64 to the end of the 64-bit switcher?

Great idea, and I think we should go even further. Each install should add minghc.bat, minghc-7.8.3.bat, minghc-7.8.bat, minghc-7.8-32.bat and minghc-7.8.3-32.bat. The idea being you can be as specific or vague as you want, and your $PATH will pick the "first" matching one for you. It's like distributed ordered pattern-matching :).

My brain :boom:

So we now have minghc-7.8.3.bat and minghc-7.8.3-32.bat. I'm still a fan of adding minghc.bat, minghc-32.bat, minghc-7.8.bat and minghc-7.8-32.bat. I'm fed up of remembering what minor version each GHC release got to, and which I have installed locally (complicated by the fact that I sometimes use GHC point releases which don't exist outside work).

I would like to add this too, but I'm not sure the best approach at dividing the GHC version into its parts.

dropEnd 2 works, as does wordsBy (== '.').

Note we already have a dependency on the extra library, so that is ideal.

Should I put each variation into a new NSIS constant?

You can do, but I don't think it's necessary. I think I'd probably not have put ARCH_ABBR into a constant, but certainly doing so was following the existing pattern. Either works for me.

I think once this and #24 are resolved we should probably think about respinning all installers.

All solved with #36 I believe.

While testing I spotted a trailing .bat was missing from the switched. I added that and it then all works great.

@ndmitchell Thanks for fixing! I'm ashamed that I forgot to mention I didn't test it due to some build failure.

No problem at all - took seconds to fix. What was the build issue? We could probably make it easier to build by checking for the required executables and if missing say where they can be found.

Here's what I get:
Error when running Shake build system:
* minghc-7.10.1-i386.exe
* .cabal-<IP_ADDRESS>
user error (Development.Shake.cmd, system command failed
Command: tar zxfv cabal-<IP_ADDRESS>.tar.gz -C bin/bin
Exit code: 2
Stderr:
"tar": Archive value 197609 is out of uid_t range 0..65535
"tar": Archive value 197609 is out of gid_t range 0..65535
"tar": Exiting with failure status due to previous errors
)

Here's my version of tar:
C:\Neil>tar --version
bsdtar 2.4.12 - libarchive 2.4.12

I believe I got it from http://gnuwin32.sourceforge.net/packages/libarchive.htm, then renamed bsdtar.exe to tar.exe. I often do that as the standard tar you can get from many places sometimes upsets Cabal (its been random, and I'm not even sure Cabal uses tar.exe anymore, but force of habit now).


atom, atom-beta: 1.28.0 -> 1.28.1, 1.29.0-beta0 -> 1.29.0-beta1

Motivation for this change
Version bump
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: atom, atom-beta
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: atom, atom-beta
Partial log (click to expand)
/nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/share/atom-beta/resources/app/apm/node_modules/open/vendor/xdg-open: interpreter directive changed from "/bin/sh" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/sh"
/nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/share/atom-beta/resources/app/apm/node_modules/ajv/scripts/prepare-tests: interpreter directive changed from "/usr/bin/env sh" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/sh"
/nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/share/atom-beta/resources/app/apm/node_modules/ajv/scripts/travis-gh-pages: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
/nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/bin/.atom-beta-wrapped: interpreter directive changed from "/bin/bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1...
cannot find section .dynamic
file /nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/share/atom-beta/atom had a PT_GNU_STACK program header, converted
file /nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1/share/atom-beta/resources/app/apm/bin/node had a PT_GNU_STACK program header, converted
/nix/store/gphchplk00nl6nysnry125pxxxlq5smk-atom-1.28.1
/nix/store/nssb1c493j4qyid9lsrh790w53vkczkn-atom-beta-1.29.0-beta1


Unicode Block "Miscellaneous Symbols and Arrows" support

Are you planning to add support to Spleen for something like that? I'm asking as recently found some apps which on the console are using up/down arrows for download and upload indication:
⬇ ⬆
\xe2\xac\x87 \xe2\xac\x86
U+2B07 U+2B06
and was wondering is this Unicode block on your roadmap or maybe not?

I have plans to add a large part of the Arrows Unicode block. From there, I suppose it wouldn't be too difficult to add at least the arrows from the Miscellaneous Symbols and Arrows Unicode block, where the two characters you pointed out are located.
On a more general note, I don't consider Spleen done yet and plan to keep on adding more characters.

@kucharskim It's been a while, but I would appreciate if you could point out which programs use those characters so I can test the results. Maybe adding the most used arrows would not be that much work, I will be working on that.

@fcambus I saw it initially with https://github.com/near/nearcore/ but in general the new blockchain industry is full of emoji and utf-8. I saw non-ASCII characters in substrate chains (https://github.com/paritytech/polkadot), I don't remember does https://github.com/ethereum/go-ethereum also have some non-standard (as in, non-ASCII) characters. This task specifically was triggered by nearcore.

@kucharskim Thanks for the info, I started working on adding some arrows already, will commit more stuff during the following weeks.

Closing this as the mentioned symbols have been added last year.

Yes, indeed it works (copy paste from XTerm):

33 peers ⬇ 2.06 MB/s ⬆ 2.31 MB/s

$ sysctl -n kern.version
OpenBSD 7.4-current (GENERIC.MP) #1626: Thu Jan 25 20:05:01 MST 2024
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Thanks Frederic!


MonacoDiffEditor shows an empty page with a close button

MonacoDiffEditor shows an empty page every time and the 'real' diff editor will show only after click the close button. How to remove this empty page? Thanks

How do you preproduce this error? Is this with the demo in this repo?

No, I don't use the demo in the this repo. In my user case, I add  outside the MonacoDiffEditor. There is style to control whether to show div or hide it.  If I remove the div, everything works fine.
`
import styled from "styled-components";
const EditorContainer = styled.div
position: absolute;
top: 48px;
left: 0;
height: 100%;
width: 100%;
z-index: 1001;
render() {
let showEditorStyle = this.props.visible ? {display : "flex"} : {display: "none"}
return (
<EditorContainer style = {showEditorStyle as any}>
<MonacoDiffEditor
theme="vs-dark"
language="json"
original={code1}
value={code2}
options={{selectOnLineNumbers: true}}
editorDidMount={editorDidMount}
editorWillMount={editorWillMount}
/>

);
}
`

The error seems unrelated to the editor component then.


riscv: pmp: enable stackguard without multithreading

Without multithreading only two stacks present: ISR and main. As any stack they also could overflow, so it make sense to add stack guard for them also.
Remove stack guard dependency on multithreading and mark Z_RISCV_STACK_GUARD_SIZE bytes at the beginning of stack as read-only region with PMP entry.

We need to have some guarantee that this code  has test coverage.

The code itself LGTM, but I agree with @cfriedt - we'd need to have some testing for this.
There're at least 3 places where we could add/modify a test:
1. `tests/kernel/threads/no-multithreading` - it's already enabled on RISC-V QEMU-based targets, but I'm not sure if this is the right place to add memory protection related tests. Probably not.

2. `tests/kernel/mem_protect/mem_protect` - we could add a RISC-V specific no multithreading testcase here

3. we could add a separate arch-specific test in e.g. `tests/arch/riscv/pmp` (ARM has one in `zephyr/tests/arch/arm/arm_mem_protect`).

It should probably be both 2 and 3.

Thank you for pointing in right direction, I'll work on extending the test cases in next commit.

Hi @f0rget-the-sad, unfortunately this PR broke the project CI run on main (https://github.com/zephyrproject-rtos/zephyr/actions/runs/11934344226), the fix is not obvious to me so I've opened a revert PR https://github.com/zephyrproject-rtos/zephyr/pull/81673.
Would you be able to troubleshoot and re-submit a new version that works in CI? (or open a hotfix if that's obvious to you).
Apologies for the extra work.

I guess main CI runs even more tests, so question is: how do I trigger the main CI before merge?

Yeah the test sets can be different, you can get the list of failed tests from https://github.com/zephyrproject-rtos/zephyr/runs/33270031021 and run those manually, for example for qemu_riscv64/qemu_virt_riscv64:tests/kernel/fatal/no-multithreading/kernel.no-mt.arbitrary_reason you can use
$ west build -p -b qemu_riscv64 -T tests/kernel/fatal/no-multithreading/kernel.no-mt.arbitrary_reason
$ west build -t run
...
 FAIL - test_fatal in 0.000 seconds
===================================================================
===================================================================
PROJECT EXECUTION FAILED

Ok, I manually tested tests/kernel/fatal/no-multithreading, tests/kernel/threads/no-multithreading and tests/lib/multi_heap (seems like all failures reported by main CI)with this hotfix: https://github.com/zephyrproject-rtos/zephyr/pull/81676
Let me know if there are other failures.

@f0rget-the-sad thanks for the quick turnaround.


Feature: walletconnect/link

Be able to sign transactions in browsers without a web3 extension or built in crypto wallet using walletconnect/link.
https://docs.walletconnect.org/
https://www.walletlink.org/#/
TODOs for tracking:

[x] prompt on boot for user to select provider (injected vs walletconnect vs walletlink)
[x] walletconnect/link to connect through custom rpc/mw proxy to avoid distributing infura key https://docs.walletconnect.org/quick-start/dapps/web3-provider#custom-rpc-url
[ ] walletconnect is making ~60 rpc requests/min, this is way beyond our rate-limit. probably the binding of too many event listeners within walletconnect. to investigate.
[x] walletconnect qr code api has a bug issued here -> https://github.com/WalletConnect/walletconnect-monorepo/issues/287 , investigate a workaround
[ ] walletlink retrieving current networkid is not returning the one configured in their wallet. to investigate.

wip branch => https://github.com/omgnetwork/web-wallet/tree/69-walletconnect

I just fixed the bug reported on WalletConnect/walletconnect-monorepo#287 👌 Thanks for reporting!
I believe there is pollingInterval that can be increased on the web3-provider engine that could bring down to your rate-limit
const provider = new WalletConnectProvider({
      rpc: { 1: config.rpcProxy }
      pollingInterval: 10000 // 10 secs (default is 4 secs)
})

Could you try testing this in your integration?

@pedrouid thanks for the quick reply. qr code bug fixed and configuring the pollingInterval does bring the requests down. 👍 Thanks a lot!


resolve issue #100 for type and interface

I did a checkout on the updated files from the union branch, so these branches are now fairly in sync. What is the status on adding union support in the ArangoDB driver?
@epii-1

As of current in the union branch everything but querying of unions works just fine (from my testing). So the only thing current blocking a merge is firstly #103, and then maybe if there is any issues remaining with specifically unions querying.


[torch-distributed code]

is there a code for distributed learning of this model?

As the model is efficient enough for single machine training, we did not make any distributed version of it.


[docs] Add "Overview" page for each MUI product

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
MUI X has a newly published Overview page, and I think we should take it a step further and create something similar for our other products.
I was reviewing the Tina CMS docs and I really like their Overview page, which is the default when you click through to their docs. It gives a brief intro of the product, and then explains the key features/selling points.
Instead of directing the reader to Installation docs for Material UI and Base, I think we should follow Tina's example and create pages to answer "Why?" for each of these products.
This way, when a new user lands in our docs and isn't sure which product is best for their project, they'll be able to find a quick summary of each that explains its main selling points.
Examples 🌈

Motivation 🔦
With the release of new documentation restructuring, I'm not sure that "Installation" is the best page to serve as the landing page for each product. This is a great opportunity to clarify our branding and do some (tasteful 😅) marketing in our docs.

This is a great opportunity to clarify our branding and do some (tasteful 😅) marketing in our docs.

Could not agree more!


Resubmission of scored "Womanium Final Assignment - LaWun Nannda #365" to merge

PR Description

Some notes

[x] Please make sure that you placed the files in an appropriate folder

[x] And that the files have indicative names.

[x] Please note that Classiq runs automatic code linting, which may minorly alter some files.

[ ] If you're familiar with pre-commit, you may run pre-commit install, and then at each commit, your files will be altered in a similar way

Well done!
Score: 8/10


[WIP][router][server] Log the remote principal the SSL Handshake

Log the remote principal the SSL Handshake

Resolves #XXX
How was this PR tested?

Does this PR introduce any user-facing changes?

[ ] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

So this adds a GH Action for Alpini that will only run if the Alpini code has changed?

Yeah. Although, I've not yet been able to figure out how to get the Alpini tests to run


Memo API information is wrong

Hi
I have getting the transaction information from API and the memo filed is incorrect.
Take a look on this transaction https://stellar.expert/explorer/public/tx/b234465ca28cf95d00ab521cbc2a912b17360ca76725b3794272af6ff46ce808 and the memo informed is G174P371304
Look on API results the memo value is wrong
{"id":"141581101536829441","paging_token":"141581101536829441","optype":1,"memo":14427339,"ledger":32964419,"tx_id":"141581101536829440","ts":"2020-12-07T12:55:00.000Z","from":"GDTXYFF6CXYBH5ZLI5ZMWZVUCAYOU4RLUQIDQXZWLFR2LTEQNPPL2RHJ","to":"GDDTZNNH7BXXWVKVM4VMYDIYGHJ7SWEB3QQ3IJPIVHCSNTL7A7GDITRG","asset":"TREEP-GAVBWV24PZ6POVQGQO5UEWGO3TO7ERYXRFFI6V5VH3BMTPDZOHVOFA3G-2","amount":"1000","source_asset":"TREEP-GAVBWV24PZ6POVQGQO5UEWGO3TO7ERYXRFFI6V5VH3BMTPDZOHVOFA3G-2","source_amount":"1000"}

https://api.stellar.expert/api/explorer/public/payments?account=GDDTZNNH7BXXWVKVM4VMYDIYGHJ7SWEB3QQ3IJPIVHCSNTL7A7GDITRG&limit=200&order=desc
Sorry, this is the command where I get the payments

Where is this API response come from? This isn't Horizon response. And the memo G174P371304 is correct.

https://api.stellar.expert/api/explorer/public/payments?account=GDDTZNNH7BXXWVKVM4VMYDIYGHJ7SWEB3QQ3IJPIVHCSNTL7A7GDITRG&limit=200&order=desc

This is a stellar expert API, which isn't maintained by SDF. You can raise your issue here:
https://github.com/orbitlens/stellar-expert-explorer/issues/


[Question] How to set form value from parent widget?

I want to set form via passed object from parent widget and use it in a child form widget via widget.myObject but can't set it to form.

Not sure I understand your question clearly. But I'm guessing this might be an issue with how you're receiving the "form" in the child from the parent, which is not a topic for reactive_forms rather how you have implemented the architecture of your flutter.
If you can access the form object from parent in the child then you can just pass it to the formGroup property of ReactiveForm widget.


dynamic maximum number of years displayed

This will add an option maxYearsSelectable that can be set to a fixed
number which will end up in "current year +/- fixed number" or null to
display all years possible. This will fix #844

Usage:
$('input[name=birthday]').pickadate({
    maxYearsSelectable: null,
    selectYears: true,
    selectMonths: true,

    min: new Date(1900, 01 - 1 /* zero-based */, 01),
    max: moment().subtract(18, 'years').toDate()
});

Will end up in a year selection ranging from 1900 to 1998.


addQuestion is not working

I am trying to send a message using addQuestion in my messenger bot but nothing is being sent, here is my code:
bot.startConversation(message,function(error,convo){
convo.addQuestion("Please send me the name",function(response_message,convo){
convo.say("Well done");
},{},"product");
});

In my console here is what I am getting :

addQuestion() has 2 additional parameters that you should include after the callback. Check the docs!

I forgot to add them in the issue but in my code it is there.

@MagSag  don't you need to call convo.next(); in addQuestion?


Failing bit-vector example (weirdness in bit-vector, Z3)

Summarizing the discussion in the following thread (https://github.com/secure-foundations/verus/pull/43) :
This easy assertion fails
assert_bit_vector( (b1 == b2) || (b1 == b3) >>= (b1 | b2 | b3 == b2 | b3) );
The generated SMT file is attached below.
failing_bitvector.txt
The instability across Z3 versions seems a bit weird. This example works on older Z3 (4.4.1 and 4.8.5), but it timeout 60 seconds on versions 4.8.14(latest) and 4.8.6
Random-seed seems to have no effect in this example. (The above behavior is preserved regardless of the value of random-seed(0 to 99))
Newer versions work for u8, u16, but timeout 60 seconds on u32 and u64. Z3 could be brute-forcing on bits I think.
In the newer versions, when I remove push on line 3, it suddenly works again. This feels weird because push should not affect options in lines 1 and 2.
Also, when I comment out the following option, Z3 returns unsat instantly.
(set-option :smt.case_split 3)
Verus' default value for this option is 3. The above example works for 0,1,2,4,6 but not for 3,5.
(Information about Z3 options: https://github.com/Z3Prover/z3/blob/master/src/smt/params/smt_params_helper.pyg)
I tried manually changing the bvor encoding from binaryOp style to multiOp, ( using (bvor b1 b2 b3) instead of (bvor (bvor b1 b2) b3) ), but it still makes 60 seconds timeout.
For this issue, the current plan is to make a separate Z3 process for bit-vector reasoning (and non-linear arithmetic).

Another example we encountered today:
(set-option :auto_config false)
(set-option :smt.mbqi false)
(set-option :smt.case_split 3)
(set-option :smt.qi.eager_threshold 100.0)
(set-option :smt.delay_units true)
(set-option :smt.arith.solver 2)
(set-option :smt.arith.nl false)
 ;; Function-Def crate::set_bit_test
 (push)
  (declare-const bv@0 (_ BitVec 32))
  (declare-const loc@0 (_ BitVec 32))
  (declare-const loc2@0 (_ BitVec 32))
  (declare-const bit@0 Bool)
  (declare-const bv2@0 (_ BitVec 32))
  ;; assertion failed
  (declare-const %%location_label%%0 Bool)
  (declare-const %%query%% Bool)
  (assert
   (=>
    %%query%%
    (not (=>
      %%location_label%%0
      (=>
       (and
        (and
         (and
          (= bv2@0 (ite
            bit@0
            (bvor bv@0 (bvshl #x00000001 loc@0))
            (bvand bv@0 (bvnot (bvshl #x00000001 loc@0)))
          ))
          (bvult loc@0 #x00000020)
         )
         (bvult loc2@0 #x00000020)
        )
        (not (= loc@0 loc2@0))
       )
       (= (= (bvand (bvlshr bv2@0 loc2@0) #x00000001) #x00000001) (= (bvand (bvlshr bv@0 loc2@0)
          #x00000001
         ) #x00000001
  )))))))
  (assert
   %%query%%
  )
  (set-option :rlimit 0)
  (check-sat)

The example on #151 also went through when commenting out (set-option :smt.case_split 3), which is on the top of the SMT file (even before the prelude).
However, even if I locally set that smt.case_split to be zero only for that query, it still fails.
I think smt.case_split affects internal states of Z3, hence I cannot expect immediate difference as we expect immediate difference for smt.arith.nl=true in non-linear arithmetic.

@chaneec switched away from the incremental solver (push/pop) for bit vector proofs, which seems to have improved stability for those queries.
We will be continuing to explore the stability concerns: https://github.com/verus-lang/verus/discussions/147

[ ] consider disabling the incremental solver for nonlinear queries.


credit nfnty for packaging tini for Arch Linux

Hey @cmeury,
Do you know if this is usable by other users on Arch and might eventually become an official package? (the other packages in this section have, but I'm happy to add a section with Arch instructions in there)
Thanks!

The AUR is a common place for people to get their packages from; but you're right, it's not official. I wouldn't assume it makes it into the official repositories very soon, so feel free to close this PR.

Thanks @cmeury. I'm not super familiar with Arch. How would one go about using @nfnty's  repo to install Tini on their system?
With that information, I'd be happy to add at least a section linking to it. I'm assuming the reason you opened this PR originally was because you had a hard time finding this and hoped to help other users find it more easily :)
Thanks!

@krallin The AUR stands for the Arch Linux User Repository.
Arch works differently than, say ubuntu. Instead of having a bunch of ppa/repos, any contributed packages are hosted on aur.archlinux.org using standard git commands to push any changes made locally for it to become visible in the AUR.
Getting back to tini, there's nothing really much to reference other than what has already been mentioned. It's already up and available in the AUR: https://aur.archlinux.org/packages/tini/

I'm not sure why this took me so long.... But, credit where credit is due is important and I merged this manually now..


Export finetuned PEFT / LoRA model to ONNX

System Info

Platform: google colab with T4 GPU
Python version: 3.10
peft.__version__: 0.3.0
accelerate.__version__: 0.20.3
transformers.__version__: 4.30.2

Who can help?
No response
Information

[ ] The official example scripts
[x] My own modified scripts

Tasks

[ ] An officially supported task in the examples folder
[X] My own task or dataset (give details below)

Reproduction
I'm trying to export a model finetuned with PEFT / LoRA to ONNX. The base model is bigscience/bloom-560m.
Basically, I merge the LoRA weights into the base model after finetuning, and then try to convert the resulting merged model to ONNX. When I'm using optimum.onnxruntime.ORTModelForCausalLM, the export works, and I can run inference with the ONNX model, but the model outputs are degraded.
Alternatively, using the lower-level torch.onnx.export() approach, I get an error.
Here's a minimal example showing both approaches (optimum.onnxruntime.ORTModelForCausalLM and torch.onnx.export()): https://colab.research.google.com/drive/1ImNLTJ11JBeaSn-76eAejf5Pjk0ahPTY?usp=sharing
(The colab example can run on a free T4 instance.)
Is model export to ONNX after PEFT / LoRA finetuning already supposed to work? I found this issue https://github.com/huggingface/peft/pull/118 but I'm not quite sure.
Expected behavior
I expect the model outputs to be the same before & after conversion to ONNX. In the minimal example (colab notebook) the difference might look small (nonsensical output either way), but in a real-life use case (involving finetuning) a model that performs very well on a given task can have completely degraded performance after ONNX conversion. I also observed this with a larger model (bigscience/bloom-3b), but that doesn't work in free tier google colab.

Hi @ingo-m , which optimum version did you try with? Could you try on optimum main branch?
You may have been hurt by this bug specific to bloom, fixed since then but not yet in a release: https://github.com/huggingface/optimum/pull/1152

@fxmarty thanks
optimum has no optimum.__version__ attribute, but from the pip install logs I can see that my colab environment uses optimum-1.9.0 (which was apparently released last week).
Yes I can try installing from optimum main branch tomorrow and report the issue on optimum repo if it persists.
By the way I used the bloom base model without any modifications at all, just applying standard PEFT / LoRA functions https://colab.research.google.com/drive/1ImNLTJ11JBeaSn-76eAejf5Pjk0ahPTY?usp=sharing

@fxmarty as suggested I installed optimum from main branch, i.e. version optimum 1.9.1.dev0. The issue of degraded model output after ONNX conversion persists also with the latest version.
This is the updated minimal example (colab notebook): https://colab.research.google.com/drive/1ImNLTJ11JBeaSn-76eAejf5Pjk0ahPTY?usp=sharing
I will report this issue in the optimum repo.

Sorry I had overlooked something in my original bug report:
This issue is not specific to PEFT / LoRA models.
Here's a minimal example where a vanilla-flavor "bigscience/bloom-560m" model, without any modifications, generates degraded predictions after conversion to ONNX with ORTModelForCausalLM.from_pretrained(): https://colab.research.google.com/drive/1XF2jy0WGHgqxQjfOH01t8Grof0SAfgJ-?usp=sharing
So since it's not PEFT related, I suppose this issue doesn't belong here, but into the optimum repo https://github.com/huggingface/peft/issues/670


[ISSUE #4487]The trackType is wrong when the consumer in broadcasting subscription

Make sure set the target branch to develop
What is the purpose of the change
#4487
The patch(#4488) submitted before has not been merged for a long time, resulting in a conflict with the current code. If the online modification conflict is not careful, the code submission may be wrong. Therefore, the previous PR is closed and a new one is submitted based on the current code
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #4981 (8d8baf4) into develop (86e4354) will decrease coverage by 0.03%.
The diff coverage is 35.71%.

@@              Coverage Diff              @@
##             develop    #4981      +/-   ##
=============================================
- Coverage      43.24%   43.21%   -0.04%
- Complexity      7723     7725       +2
=============================================
  Files            995      995
  Lines          69066    69076      +10
  Branches        9143     9146       +3
=============================================
- Hits           29871    29852      -19
- Misses         35452    35478      +26
- Partials        3743     3746       +3

Impacted Files
Coverage Δ

.../apache/rocketmq/common/protocol/ResponseCode.java
0.00% <ø> (ø)

.../tools/command/message/QueryMsgByIdSubCommand.java
0.00% <0.00%> (ø)

...he/rocketmq/tools/admin/DefaultMQAdminExtImpl.java
25.51% <33.33%> (+0.66%)
:arrow_up:

...org/apache/rocketmq/tools/admin/api/TrackType.java
100.00% <100.00%> (ø)

...a/org/apache/rocketmq/broker/BrokerController.java
43.84% <0.00%> (-3.52%)
:arrow_down:

...a/org/apache/rocketmq/filter/util/BloomFilter.java
60.43% <0.00%> (-2.20%)
:arrow_down:

...he/rocketmq/broker/processor/PopReviveService.java
38.35% <0.00%> (-1.80%)
:arrow_down:

...he/rocketmq/client/impl/consumer/ProcessQueue.java
61.00% <0.00%> (-0.92%)
:arrow_down:

...ent/impl/consumer/DefaultLitePullConsumerImpl.java
69.37% <0.00%> (-0.63%)
:arrow_down:

...a/org/apache/rocketmq/store/StoreStatsService.java
39.77% <0.00%> (-0.56%)
:arrow_down:

... and 11 more

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

LGTM


Add basic positive lookahead support

Addresses basic implementation for #18 .
Basic cases not previously supported that now pass:
const justA = randexp('^(?=a).$');            // justA === 'a'

const positivePattern = '^hi(?= no one)';
const lookAhead = randexp(positivePattern);   // lookAhead === 'hi no one'
lookAhead.match(positivePattern);             // -->> [ 'hi', index: 0, input: 'hi no one' ]

const negativePattern = '^hi(?! no one)';
const noLookAhead = randexp(negativePattern); // noLookAhead === 'hi'
noLookAhead.match(negativePattern);           // -->> [ 'hi', index: 0, input: 'hi' ]
lookAhead.match(negativePattern);             // -->> null

Current coverage is 100% (diff: 100%)

Merging #27 into master will not change coverage

@@           master   #27   diff @@
===================================
  Files           1     1
  Lines         101   104     +3
  Methods        12    12
  Messages        0     0
  Branches       32    33     +1
===================================
+ Hits          101   104     +3
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update e5b28d6...e8db1a5

This is what the library used to do https://github.com/fent/randexp.js/commit/a2b2ff5b5443b04c3d20684d9d5e3fc2f78dd29d
But this only supports very basic lookaheads. I can't think of a use case where someone would prefer to use a basic lookahead to a regular group.

Not sure if this will influence whether you want to support very basic lookaheads or not, but here's some context on why I made the PR for such a simple implementation.
The company XO Group I work for is about to open-source a project we've been using internally since March for generating valid payloads from (Joi)[www.github.com/hapijs/joi] schema. With this v1 release, we are implementing your (awesome!) utility for supporting Joi's regex schema options. We're hoping to cover as broad a base of support as possible with v1.
That being said, I totally understand if you don't think it's worth the very basic support :)

It's good to hear the library is being used. Thanks for the PR but, supporting only a basic version of that feature would have people believe that your library fully supports lookaheads, when the basic version doesn't provide any added benefits compared to a regular group. And they might become frustrated when they find out lookaheads are not fully supported.

Sure thing! Understood :)
I'll go ahead and close this for cleanliness. I may circle back around later to take a crack at a more complete support. Thanks for the feedback and the discussion!

@fent I've looked into how to support lookahead for generation, and short of transforming every part of the regex into DFAs and doing a cartesian product of those DFAs, it's not possible to support them properly.


[Feature][dolphinscheduler-server]  master and worker  network interaction

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
[Feature][dolphinscheduler-server]  master and worker  Network interaction : 3 time->2 time
Use case
[Feature][dolphinscheduler-server]  master and worker  Network interaction : 3 time->2 time
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

improvements:

network interactions (normal/abnormal)
use async send instead of sync
retry strategy (now we use cache list everywhere, maybe it should sink to the communication layer)

I found some optimization of task network interaction:

worker use a unified task cache in memory, and reply looply in a interval if task change.
each time the worker reply task with the whole task info and version, so that master can ignore the low version when the high version task info arrive early.


How to get "Spotlight" to work again....? My Edited Code.

(p.s. yes I've followed your FAQ's and more)
I've tried removing everything that "seemed" to Disable Spotlight, but I'm clearly missing something.
What happens is I go into Settings/Personalization/ the "Lock Screen" section where you enable it, but I hit it, and it "won't take"....  It just "reverts" to Picture.
Can someone help...?  Thanks
Win10 Pro
Code attached....
autounattend.txt

Same here with Win 11 24H2 IoT-LTSC-Like
Troubleshooting Guides not help

This is working for me: https://answers.microsoft.com/en-us/windows/forum/all/i-am-not-able-to-select-windows-spotlight-in/9cf18b15-fc71-4b63-887e-0a22c4f48f59
`[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications]
"GlobalUserDisabled"=dword:00000000`

This is working for me: https://answers.microsoft.com/en-us/windows/forum/all/i-am-not-able-to-select-windows-spotlight-in/9cf18b15-fc71-4b63-887e-0a22c4f48f59
`[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications]
"GlobalUserDisabled"=dword:00000000`

Unfortunately that didn't work for me in Win10 Pro....
I already had that setting disabled...  Looks like I had tried it already, or it's a Win11 setting only?
So, had it set to 0000000 already.

Okay, so further testing and while we've been able to get the "Setting" to work again.... It appears "Spotlight" ITSELF.... STILL isn't working? It's STILL just showing the "one picture".
I think we STILL need to "enable" something to allow it to "communicate" to Microsoft in order for us to actually "Get the Spotlight Pictures"? I think the Spotlight pictures are actually "downloaded" in real time in order to give us a different picture?

Yea I discovered the same. No idea how to fix that.

The best solution I have found is to install winaero tweaked in there is a setting allowing me to enable it again.This app is also how the feature is disabled in the first place.
Here is the link to download:
https://winaerotweaker.com

The best solution I have found is to install winaero tweaked in there is a setting allowing me to enable it again.This app is also how the feature is disabled in the first place.
Here is the link to download: https://winaerotweaker.com

And what "Setting" is that....?
I've just looked all through WinAero and there's nothing there related to "Spotlight", other than a "download" pics option (Find Lockscreen Images) which doesn't work because Spotlight itself isn't working.
So, what's the secret?

It is a checkbox in:
Behaviour
-Ads and unwanted apps
-Spotlight and Lock Screen ads
Keep in mind you may have to enable apply, then disable apply and finally enable and apply.Hope this helps as winearo is a difficult to navigate application.

It is a checkbox in:
Behaviour -Ads and unwanted apps -Spotlight and Lock Screen ads
Keep in mind you may have to enable apply, then disable apply and finally enable and apply.Hope this helps as winearo is a difficult to navigate application.

Okay, found it, but still won't allow "Spotlight" to work.
Also, there's no "Enable/Apply" in this setting section?

By applying I meant enable the setting then close the app then restart your computer, tell me if this works.

By applying I meant enable the setting then close the app then restart your computer, tell me if this works.
Nah, did all that and more...  No go.


writer type not thread safe!

a single writer can possible be sent to multiple blocks at the same time. we need to double check that this is OK.

investigate for milestone 1

no longer valid


Add an exception filter to handle unexceptional errors

This feature is similar to Exception filters, which filters known errors and wrapped exceptions in the desired format.
Now in the MVP dapp, unknown exceptions, like those thrown from a third-party dependency, will be returned directly, then the response is unpredictable(string, custom structure, etc.). With the filter, all exceptions will be converted into a uniform error format.

This feature has been implemented in the MVP dapp by https://github.com/ckb-js/kuai/pull/174, it could be delivered by kuai framework


Use github's ref they set up for prs

Fix for https://github.com/fastlane/ci/issues/646
Instead of checking out master and pulling a fork on top of it, we can use the github feature where they setup a new ref for your PR. Then you can just fetch that into a branch.
No more tears for merge conflicts
Also forked the ruby-git temporarily while we wait and see if we can get some movement on https://github.com/ruby-git/ruby-git/pull/362

Merging now so we can make use of it on ci, but would still like 👀  on it


dcase20 dataset loader

Hi there,
thanks for sharing the code.
I was in particular interested in the dcase20 dataset loader.
However, something in the MixupDataset classed confused me.
See this link: https://github.com/fschmid56/EfficientAT/blob/main/datasets/dcase20.py#L101
SimpleSelectionDataset is returning x, label, device, city, self.available_indices[index].
It is then interpreted as x1, f1, y1, d1, c1.
It turns out that during training, x1 and f1 are used.
However, I think the goal is to return a one-hot encoded and weighted version of the label (y1 * l + y2 * (1. - l)).
Maybe not relevant for this training but in case someone stumbles on this or wants to reuse it might find it useful!

Saw that you refactored that in the new DCASE24 baseline: https://github.com/CPJKU/dcase2024_task1_baseline/blob/main/dataset/dcase24.py

Hi! Thanks for pointing this out. Indeed, I messed up the MixupDataset for DCASE when I simplified the repo for public access.
It should be fixed now.


Implement delete timetable endpoint

This PR mainly serves as a template to show how you should implement an endpoint. This structure should be followed to a tee, including the way the commits are made and reverted, the arrangement of the files, and the way validation is done for requests.

Note: merge only after #4 is merged, and those changes are merged into this branch

Note: merge this only after #7 and #8 are merged.

Closing this, since there are ample example now in is:pr is:closed


make site more POSH

The markup relies on lots of divs where more semantic markup would be more appropriate:

header instead of div.jumbotron
figure instead of div.card
etc.

Also, I don't think the bootstrap css is really necessary. For one thing, it's a pretty simple one page site. For another, modern css can do what bootstrap does, much more simply. Making these changes would provide a better example for anyone who views source of microformats.io, and would also resolve #29 (I think).

@gRegorLove I closed PR #60 because of the merge conflicts, and am starting over. But this time, I'm going to break up the work into smaller bits that you can more easily review, starting with #61.
More to come. I have done some work to normalize indentation and spacing of the source code (not the visible code examples), just to make it easier to work on the html.


Add value changed listener

Fixes #10

@sanskar10100 will ship this feature in a new update for you to work with while I work on the other issue for you.


Tweaks for ppc64le

Add extra aliases for postgres and mongodb, so these are not easily typo'd in the services list
Start mongodb differently when the architecture is PPC64LE
Detect architecture at the start of the build and store it as $TRAVIS_ARCH

looks good with the aliases.
TRAVIS_ARCH seems useful, I'd almost started to use TRAVIS_OS_NAME before this was linux normalised.
I'm looking to see what can be done to get a newer apt version for mongodb on ppc64le.
Note in x86_64 trusty that using apt to specify a later (4.0) mongodb version will still result in the base image 3.4.10 version running: https://travis-ci.org/grooverdan/travis-test/jobs/401564974

Seems I can grab the ppc64le 3.6 version bionic easy enough and with this change it should start:
https://travis-ci.org/grooverdan/travis-test/jobs/402005365

:thinking:
Maybe this would be a better solution?
sudo systemctl start mongodb || sudo systemctl start mongod

Would need some cosmetics, so it does not look so convoluted in the build log.

To go fully compatible more is needed. Probably something like the postgresql addon detecting if packages where specified in the apt plugin and the determining which service from that.
As it stands a base image may have either a mongo or distro package, which can be upgraded by the user to a later mongo or distro package.