Errors in log

Home Assistant release with the issue:

0.95+
Last working Home Assistant release (if known):
<= 0.94 but not 100% sure
Operating environment (Hass.io/Docker/Windows/etc.):
Ununtu 18 / NUC / hassio / docker
Component/platform:

Description of problem:
Log errors
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):
2019-07-06 13:56:25 ERROR (SyncWorker_33) [homeassistant.components.cert_expiry.sensor] Cannot connect to damain-name.com - (this is the domain that I use to connect to ha configured with ssl on and works ok)
2019-07-06 13:59:32 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start
    await resp.prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 344, in prepare
    return await self._sendfile(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 160, in _sendfile_system
    writer = await self._sendfile_fallback(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 193, in _sendfile_fallback
    await writer.write(chunk)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 101, in write
    self._write(chunk)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport
2019-07-06 13:59:32 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start
    await resp.prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 344, in prepare
    return await self._sendfile(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 160, in _sendfile_system
    writer = await self._sendfile_fallback(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 185, in _sendfile_fallback
    writer = await super().prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 353, in prepare
    return await self._start(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 410, in _start
    await writer.write_headers(status_line, headers)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 112, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

Additional information:
If helps i usually connect to ha via browser with https://domain:port and Ariela (Android App)

2019-07-06 17:28:01 ERROR (MainThread) [aiohttp.server] Unhandled exception Traceback (most recent call last):   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start     await resp.prepare(request)   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 344, in prepare     return await self._sendfile(request, fobj, count)   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 160, in _sendfile_system     writer = await self._sendfile_fallback(request, fobj, count)   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 185, in _sendfile_fallback     writer = await super().prepare(request)   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 353, in prepare     return await self._start(request)   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 410, in _start     await writer.write_headers(status_line, headers)   File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 112, in write_headers     self._write(buf)   File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write     raise ConnectionResetError('Cannot write to closing transport') ConnectionResetError: Cannot write to closing transport

Hass 95.4, similar issue in log.
Rasp Pi 3, Stretch, venv, upgraded to python 3.7.3
Issue may have started after python upgrade, but not certain
Log:
2019-07-06 17:43:35 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start
await resp.prepare(request)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_response.py", line 353, in prepare
return await self._start(request)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_response.py", line 667, in _start
return await super()._start(request)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/web_response.py", line 410, in _start
await writer.write_headers(status_line, headers)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/http_writer.py", line 112, in write_headers
self._write(buf)
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport

this is another one that repeats:

2019-07-08 16:34:31 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140499177699816] Error handling message: Unauthorized
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 84, in async_handle
handler(self.hass, self, schema(msg))
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 52, in handle_subscribe_events
raise Unauthorized
homeassistant.exceptions.Unauthorized: Unauthorized

Same issue "Cannot write to closing transport" in home assistant 0.95.4
How can is possible to resolve this problem?

I'm seeing the same issue and errors in my log.  In addition, HA becomes unresponsive after a few days or up to a week of runtime.  I usually start seeing these errors before it happens.  Then I cannot log in via the ios app, browser, SSH, SAMBA, anything so it is hard to get good logs of the actual crash.  I use hassbain for the record.

I have the same issue. In addition, my hass.io instance freezes for 3 minutes and then goes back online for about a minute. Repeating all the time. Hope someone has a solution.

I havce also this error: ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback

Same error for me in 0.96.4. The error has occurred 12 times in the last 30 minutes.

Strange, no one has solved this problem

Same issue happening all the time.
Error handling message: Unauthorized Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 84, in async_handle     handler(self.hass, self, schema(msg))   File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 52, in handle_subscribe_events     raise Unauthorized homeassistant.exceptions.Unauthorized: Unauthorized

2019-08-05 10:15:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139917877552080] Error handling message: Unauthorized
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 84, in async_handle
    handler(self.hass, self, schema(msg))
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 52, in handle_subscribe_events
    raise Unauthorized
homeassistant.exceptions.Unauthorized: Unauthorized
2019-08-05 12:12:56 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 447, in start
    await resp.prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 344, in prepare
    return await self._sendfile(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 160, in _sendfile_system
    writer = await self._sendfile_fallback(request, fobj, count)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_fileresponse.py", line 185, in _sendfile_fallback
    writer = await super().prepare(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 353, in prepare
    return await self._start(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 410, in _start
    await writer.write_headers(status_line, headers)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 112, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write
    raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport
2019-08-05 12:49:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139917769401232] Error handling message: Unauthorized
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 84, in async_handle
    handler(self.hass, self, schema(msg))
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 52, in handle_subscribe_events
    raise Unauthorized
homeassistant.exceptions.Unauthorized: Unauthorized

this already spreaded over multiple versions, still present in 0.97.1

OK, I only noticed this in my setup after last update of Supervisor to 173.
19-08-11 15:15:15 ERROR (MainThread) [aiohttp.server] Unhandled exception Traceback (most recent call last):   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 448, in start     await resp.write_eof()   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_response.py", line 444, in write_eof     await self._payload_writer.write_eof(data)   File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 138, in write_eof     self._write(chunk)   File "/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py", line 67, in _write     raise ConnectionResetError('Cannot write to closing transport') ConnectionResetError: Cannot write to closing transport
I have to admit I don't pay that much attention to this log, I mainly focus on issues in the Homeassistant log.


Update README with note about requiring FSAs

Hey, thanks for creating this middleware!
Unfortunately, I wasn't able to use it properly until I realized my action object wasn't following FSA standards (which I only noticed via https://github.com/wyze/redux-debounce/blob/master/src/index.js#L17).
I've added a note and link to FSA in your README example, which may clarify things a bit.

Current coverage is 100.00%

Merging #1 into master will not affect coverage as of 572e350

@@            master      #1   diff @@
======================================
  Files            1       1
  Stmts           12      12
  Branches         0       0
  Methods          0       0
======================================
  Hit             12      12
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 572e350

Powered by Codecov. Updated on successful CI builds.

Thank you! :+1:


It seems that cookies is a bug? ?

url = 'http://www.asos.com/Missguided/Missguided-Longline-Padded-Bomber/Prod/pgeproduct.aspx?iid=6206713'

#You can see that currencyid=2 will decide one currency, here id=2 is USD
cookies = {'asos': 'currencyid=2&topcatid=9057'}

#in normal way
def fetch1(url,cookies):
    import requests
    r = requests.get(url,cookies=cookies)
    body = r.content  # You can find the value with tag 'product_price_details' is in 68.43$
    #print(body)

def fetch2(url,cookies):
   session = aiohttp.ClientSession(cookies=cookies):
   r = yield from session.get(url)
   body = yield from r.read() # You can find the value with tag 'product_price_detail' isn't in   $
   #print(body)

if __name__ == '__main__':
    fetch1(url,cookies)#In the requests, when you change currencyid in cookies , you can see different currency, but the aiohtttp..

   loop = asyncio.get_event_loop()
   loop.run_until_complete(fetch2(url,cookies)) # The aiohttp, the currency doesn't come into effect
   loop.close()

SO,Is That a bug , the cookies ?

requests sends the cookie value without quotes:
Cookie: asos=currencyid=2&topcatid=9057.
aiohttp uses python's http module and sends to cookie value with quotes:
COOKIE: asos="currencyid=2&topcatid=9057".
The website seems to only accept the first one, but I honestly don't know what the "correct" version is, here.

Quoted cookie value is absolutely correct IFAIK.

Aha.
RFC 6265 explicitly defines cookie value:
cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )

So quoting is correct.
As workaround you may pass COOKIE header explicitly: session.get(url, headers={'COOKIE': 'asos=currencyid=2&topcatid=9057'})
Closing the issue.

Thanks all very much!

Maybe we should make quoting optional? For example http://google.com/search does not recognize quoted cookies. I am sure many other web servers also do not understand quoted cookies.

Another workaround is to define a custom request class (see awful hack below).
class UnquotedClientRequest(aiohttp.ClientRequest):
    unquoted_cookies = False

    def output_unquoted_cookie(self, c, attrs=None, header="Set-Cookie:", sep="\015\012"):
        """Return a string suitable for HTTP."""
        result = []
        items = sorted(c.items())
        for key, value in items:
            value.coded_value = value.value
            result.append(value.output(attrs, header))

        return sep.join(result)

    def update_cookies(self, cookies):

        """Update request cookies header."""
        if not cookies:
            return

        c = http.cookies.SimpleCookie()
        if hdrs.COOKIE in self.headers:
            c.load(self.headers.get(hdrs.COOKIE, ''))
            del self.headers[hdrs.COOKIE]

        if isinstance(cookies, dict):
            cookies = cookies.items()

        for name, value in cookies:
            if isinstance(value, http.cookies.Morsel):
                c[value.key] = value.value
            else:
                c[name] = value

        if self.unquoted_cookies:
            self.headers[hdrs.COOKIE] = self.output_unquoted_cookie(c, header='', sep=';').strip()
        else:
            self.headers[hdrs.COOKIE] = c.output(header='', sep=';').strip()

...
MyClientRequest.unquoted_cookies = True
...
with aiohttp.ClientSession(..., request_class=UnquotedClientRequest) as session:
...

Cheers


Make sure you have installed the extension .NET Extension Pack in Visual Studio Code before typing the command '.NET Generate Assets for Build and Debug'

Make sure you have installed the extension .NET Extension Pack in Visual Studio Code before typing the command '.NET Generate Assets for Build and Debug'
Originally posted by @JoseMOrtizR in https://github.com/dotnet/docs/issues/6408#issuecomment-682156954
After using the command an error message occured: Unable to generate assets to build and debug. Omnisharp server is not running.

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

ID: 8cc2e9c2-f333-f6a1-064e-790d950b684c
Version Independent ID: 25a4c9b9-2808-e296-df03-5837000dcbad
Content: Create a .NET console application using Visual Studio Code - .NET
Content Source: docs/core/tutorials/with-visual-studio-code.md
Product: dotnet-fundamentals
GitHub Login: @tdykstra
Microsoft Alias: tdykstra

I'm guessing this issue may be irrelevant now. @tdykstra to confirm and close if necessary.

The tutorial doesn't call for the installation of .NET Extension Pack.


Rename pl-pl.lang to pl_pl.lang

Please notice that in Polish and German (and possibly many other languages) the button labels are too wide:

Does the name matter? But yeah the label thing is an issue, mabye I could just remove (experimental) for those langs

The file name matters a lot, it must be pl_pl.lang in order to add Polish translation. I made a typo before

The same thing is with the Ukrainian (in #68)

Careful with file name next time


WSL2 Ubuntu-18.04 Support.

mittsu it does not work in WSL2 Ubuntu-18.04?

My error is:  Unable to create window.
Code:

Thank you.

A few questions before I can dig into this:
Do you have WSLg?
Do you have mesa installed?
What is the output of glx-info -B?
Do you have gallium d3d12 installed?
What gpu do you have?
Are you using a WDDM 3.0 driver? (check with dxdiag)

Do you have WSLg? Idon't have Windows 11 installed yet.
Do you have mesa installed? Yes
What is the output of glx-info -B? Show me nothing
Do you have gallium d3d12 installed? No
What gpu do you have? GTX 1660 Super
Are you using a WDDM 3.0 driver? (check with dxdiag) No
I think is impossible to display a windows using mittsu in Windows 10 using WSL2... right?

If you're not using WSLg, are you using vcxsrv or some other windows-based Xserver?


Release version 0.0.10

Codecov Report
Patch and project coverage have no change.

Comparison is base (62610bb) 100.00% compared to head (2f3092e) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          130       130
  Branches         9         9
=========================================
  Hits           130       130

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Implement registry API

This is the initial implementation of the Registry API.
Currently the persistent is based on a in memory collection.
The persistent will be implemented after the initial API is approved.

I also checked out this branch yesterday in order to start with the frontend and I was wondering about the following two points:

In the semantics API the url to get models is 'localhost:4243/api/v1/models' and here it is 'http://localhost:4243/twins' to get the twins. I would prefere to have the same url structure.
I noticed that the structure of the returned example value for /twins/{twin_id} is different to the structure of what Schorsch implemented. Is this structure still open for discussions and if so, do you plan a session for this?

@JaneMcBrain

Valid point. I will change the paths of the endpoints to /api/v1/twins
I'am not aware of any other implementation. Do you have a link / document where I can check?

Two more questions:

In a twin we have aspects and in there httpEndpoints, which contains a method attribute. What does the POST type stands for?
In the modelReference we have only one attribute, so why having the URN attribute instead of modelReference or will there be more modelReferences attributes in the future?

Regarding your questions:

The method indicates on how the URL of the httpEndpoint have to be called by the consuming client (POST, PUT, GET, DELETE).
It's ok when we only consider GET for now.

There will be only one modelReference for an aspect. The reason for the object is that we can decide later to split the urn artifacts without breaking changes like:
"modelReference": {
"urn": "com.baam.parts.effective.bom:1.0.2:EffectiveBOM",
"name": "EffectiveBOM",
"version": "1.0.2"
}
I decided for now to not add them to the API to reduce the efforts.

Closing this PR in favour for https://github.com/catenax/tractusx/pull/92.


fix: missing DefaultApp.tsx dist file

What kind of change does this PR introduce?
Bug fix
What is the current behaviour?
#103
What is the new behaviour?
Explicitly import _app/DefaultApp.tsx to let TS compile it into dist.
Add another round of tests targeting dist folder.
Does this PR introduce a breaking change?
No
Other information:
Please check if the PR fulfills these requirements:

[X] Tests for the changes have been added
[ ] Docs have been added / updated

Coverage remained the same at 100.0% when pulling 7066769d749efc6375e3687dbeebde6c65c106fc on fix-missing-dist-file into f55a1d3935d9b88d756ebb3069c9d86fc9dd4035 on master.

Coverage remained the same at 100.0% when pulling 7066769d749efc6375e3687dbeebde6c65c106fc on fix-missing-dist-file into f55a1d3935d9b88d756ebb3069c9d86fc9dd4035 on master.


ui pattern section

Feature request
UI Pattern Section
Goal is to implement a pattern section with a preset of defined patterns. These patters should be aligned with a design spec and implemented in all avaiable frameworks.

[ ] Implemented with React, Angular, Stencil
[ ] Runnable in StackBlitz

UX 2023-03-02:

@danielleroux: related to blue print topic?


ajv string type | Question

Hi
I am trying to use custom error messages with ajv-errors.
Everything is working fine with errorMessage as string but when I try to replace it with String object I get this error message.
keyword schema is invalid: data/minLength should be string

Next code does not work
const schema = {
      type: 'object',
      properties: {
        id: {
          type: 'integer',
          minLength: 1,
          errorMessage: {
            minLength: new String("test"),
          },
        },
    }

I know you will tell me that I need to use just "test" or String("test") instead of new String("test") but here is my use case:
I am using translated messages which are translated on the fly at the end of whole request and no during the validation process. I do not want to send locale as parameter to each function and I am not able to use global variable because I have multiple requests with different locales.
I want to do:
class TranslateString extends String {
  constructor(message: string, params?: Object) {
    super(message);

    this.params = params;
  }

  translate(t): string {
    return t(this.message, this.params);
  }
}

const schema = {
      type: 'object',
      properties: {
        id: {
          type: 'integer',
          minLength: 1,
          errorMessage: {
            minLength: new TranslateString("Name {name} is too short.", { name: 'Adam' }),
          },
        },
    }
};

I am translating errors at the end of request and I need to know which message is translation string. Other standard "strings" I am not translating.
Let me know if it is possible somehow allow custom type for errorMessage.
Thank you very much @epoberezkin

anyway I tried to override instanceof keyword but without any success. I have tried to override Error instead of String as well. Maybe this will be better idea. Allow string or Error object. I can create something like:
class TranslateError extends Error {
  constructor(message: string, params?: Object) {
    super(message);

    this.params = params;
  }

  translate(t): string {
    return t(this.message, this.params);
  }
}

const schema = {
      type: 'object',
      properties: {
        id: {
          type: 'integer',
          minLength: 1,
          errorMessage: {
            minLength: new TranslateError("Name {name} is too short.", { name: 'Adam' }),
          },
        },
    }
};

To me extending standard classes is not a JS way - JS was never good at supporting standard class extension. Also a string and an instance of String class are two different things in JS. Python can be more your thing tbh. JS way would be to have a separate class hierarchy with some normal string property. I don’t think supporting Sting instances is something that any JS library should worry about...


[PSA] relationship between ingress_out_metadata_t and PRE

The relationship between psa_ingress_output_metadata_t field egress_port  and PRE is quite unclear. Perhaps, it's an oversight and should have been removed

Obsolete.


Template Area

What is the correct way to set template coordinates? In the config the start and end are set as some number, how to get the same from x and y pixel?

you can see guide on telegram if you join


[Checkbox] Use isChanged modifier in ButtonStyle (SwiftUI)

Needs to be tested on main.
Only a technical issue, I'm not sure if it really needs to be tested.

@michael-zimmermann I just noticed something weird :
GIVEN a single checkbox
WHEN the checkbox is indeterminate,
THEN I cannot check/uncheck it
https://github.com/adevinta/spark-ios/assets/142396647/38a8d129-07ff-4879-a2c0-a973f747d5a4

@michael-zimmermann 's answer :

AFAIK, the intermediate state should not be able to be selected, and doens't make sense for a single checkbox. This is a state when a checkbox has sub items, and if all of them are selected, the the intermediate state should also be selected, if none of them are selected, then the checkbox is not selected, and if just some of them are selected, then the intermediate state is shown on the parent.  I don't know of any use cases for the intermediate state, because AFAIK, a checkbox cannot have subitems, or the states will have to be managed by the users.


feat: Add datetime object validation

This PR adds the ability to compare datetime objects to Cron
For example:
>>> Cron("* * 10 * *").is_valid(datetime(2022, 1, 10, 1, 9))
True

or using the in operator
>>> datetime(2024, 3, 19, 15, 55) in Cron('*/5 9-17/2 * 1-3 1-5')
True

I thought this could be useful when working with datetimes object and need some sort of Cron validation

Hi @lucianosrp thanks a lot for your contribution. I'll review this PR as soon as possible. This will be a good excuse to do a general review of the project 😁.

I was thinking on changing .is_valid into validate, it would be more appropriate.
Cron("* * 10 * *").validate(datetime(2022, 1, 10, 1, 9))

I was thinking on changing .is_valid into validate, it would be more appropriate.
Cron("* * 10 * *").validate(datetime(2022, 1, 10, 1, 9))

Yes, I also think that it is more appropriate.
What do you think about moving the __contains__ method up just next to __str__ or __eq__? In this way all 'special method' would stay grouped at the beginning of the Cron class.
Can you add an example of the new method validate() in the README in order to inform everyone about this addition?

All done! 👍
Let me know

I can fix the compatibilty issues on 3.8 and 3.9
But not sure about the failuere in test_timezone

I can fix the compatibilty issues on 3.8 and 3.9 But not sure about the failuere in test_timezone

I appreciate your kindness. Python 3.8 is still supported with security patches, and cloud providers like AWS still offer this version in their services.
Regarding the 'test_timezone' issue, it's unrelated to your work, and I'll address it in the next few days.

I appreciate your kindness. Python 3.8 is still supported with security patches, and cloud providers like AWS still offer this version in their services.

I agree! I just missed that requirement for the project.
With this last commit, 3.8 and 3.9 should work!
Let me know if it is all good 🤞


run wikidata_bioguide.py

Added getting ballotpedia from wikidata to the script and ran it.  Picked up several ballotpedia ids, updated a few renamed wikipedia articles and added a mess of google entity ids.

Well, I can't see why the Travis build failed, perhaps because of the S3 outage or a second-order outage, but would you mind fixing the build before we merge? You can replicate it by running the commands in .travis.yml.

Restarted the build and it passed.


Appstudio update mvp-test-component

Pipelines as Code configuration proposal

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
20 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
17 seconds
deprecated-base-image-check

✅ Succeeded
18 seconds
sanity-inspect-image

✅ Succeeded
18 seconds
clair-scan

✅ Succeeded
12 seconds
sbom-json-check

✅ Succeeded
1 minute
clamav-scan

✅ Succeeded
10 seconds
sanity-label-check

✅ Succeeded
8 seconds
sanity-optional-label-check

✅ Succeeded
5 seconds
show-summary


Only allow tags from horsey

What would be the sanest way to restrict the creation of tags that don't match horsey's autocomplete? I.e the user can't free form new tags, only choose from a list of existing.

Using the validate option to compare against a list of valid tags.
https://github.com/bevacqua/insignia#validatevalue-tags


Unable to open ACB/AWB file that has unique HCA key.

I have the HCA key for the file, but i dont know how to use it. I cant find a box to put the HCA key in, or even a txt file. If there is a way to use the HCA key with this program, please let me know

Got a sample to share of an encrypted ACB that wont open?

Sorry for the late response, but i can get you one tomorrow.

Got a sample to share of an encrypted ACB that wont open?

broken acb and awb.zip
here you go, i can provide the key if you need it but the key should be on that page.

slight bump

Adding in all the encryption keys from vgmstream seems to have done the trick
But before I do another release I want to get the encryption stuff from issue #42 done.

Adding in all the encryption keys from vgmstream seems to have done the trick
But before I do another release I want to get the encryption stuff from issue #42 done.

alright, thank you!

Feels amazing to hear news about issue #42  , thank you very much!

Encryption keys were added back in 0.9.


custom error in require statement shows error

try to add custom error in require statement but shows error in foundry:
        error emptyError();

    function requireCustomEmpty() external view {
        require(msg.sender == address(1), emptyError());
    }

this is the test to get error:
   // forge t --mt test_requireCustomEmpty -vvv
    function test_requireCustomEmpty() external {
        (, bytes memory data) = address(contractA).call(abi.encodeWithSignature("requireCustomEmpty()"));
        console.logBytes(data); // return empty data '0x' similar to empty revert
    }

the test shows error:
$ forge t --mt test_requireCustomEmpty -vvv
Compiler run failed:
Error (9322): No matching declaration found after argument-dependent lookup.
  --> src/TryCatch.sol:14:9:
   |
14 |         require(msg.sender == address(1), emptyError());
   |         ^^^^^^^
Note: Candidate: function require(bool)
Note: Candidate: function require(bool, string memory)

Error:
Compilation failed

already added via-ir = true in toml

are you on the latest solc version? can you try adding pragma solidity ^0.8.26

changed the version to ^0.8.26  and test passes but the error is still there:
No matching declaration found after argument-dependent lookup.(9322)

may be in foundry

Unrelated to Foundry, unable to reproduce with code snippet with settings: ^0.8.26 and via_ir enabled


Brainstorming: user stories

(originally created by @q3k in T865)
We need user stories for typical Kubernetes cluster usage in companies:

how many clusters to people run? where?
how do they authenticate to the cluster? do they use SSO?
etc.

We need user stories, not implementation details. We basically want to figure out a compromise between what people want and what we think are good practices for k8s in prod.

User Story: Hosting service provider
An established hosting service provider wants to use Metropolis to replace both an outdated OpenShift Origin 3.11 cluster and a legacy OpenStack cluster.

SSO against GSuite for administrative access to the cluster.

[optional] The company has two kind of production access: "full" engineers with a hardened workstation and a high degree of trust who need full root-equivalent access, and high-tier helpdesk engineers with less trusted setups who need read-only access to high-level node/cluster stats and, potentially, the ability to reboot misbehaving nodes or even VMs.

Expose an API to create/destroy/inspect/... VMs.
Local storage for VMs.
Offline migrations for VMs (i.e. shut down, copy storage, start back up).
Layer 3 networking only, with hypervisors announcing /32s via iBGP to a router.

Publicly routed IPv4 and IPv6 inside the VMs.

Modern Linux and Windows Server workloads.
Attestation not required, but nice to have.
Future extensibility with network storage.
Fast provisioning times.
Host-level firewall per VM that can be enabled/disabled to block access to 25/tcp as spammer deterrent.

If this project is successful, they want to use SignOS to replace OpenShift with the following requirements:

SSO: see above.
Local storage with migration capabilities.
Ceph network storage for that small annoying subset of services that do not replicate on their own.
Regular plain k8s API.

OpenShift-only features will be replaced by independent projects like Kaniko.

User Story: Medium-sized regulated financial company
A financial company wants to use Metropolis to run their frontend and some internal apps (backends themselves are in the near-future pretty much out of scope due to vendor support contracts stipulating OS's and excessive use of exotic Oracle DB features) on Metropolis. They are going to be using a moderately-sized cluster somewhere below 100 nodes.
They have an ops section which deals with the day-to-day operations of the cluster and needs access to the management API to manage both the hardware and also namespaces for other sections. Most people there don't need access to production namespaces. Specific people do have fully audited access to prod for unbreaking.
Their various engineering teams each need their own scratch namespaces and access to certain integration test namespaces (governed by RBAC). They can never access production namespaces.
Authentication solutions vary widely, Kerberos and Smart Cards with Certs are rather popular. We need to have something that can stand on its own though as due to the amount of time it can take to integrate with SSO (months to a year) this is usually only done once the user count is big enough.
Their compliance obligations basically revolve around a few big items:
Production namespaces need good network isolation (basically no traffic in or out that isn't explicitly allowed, especially from other non-production namespaces)
Production namespaces cannot normally be touched. All changes to them need to go though a business process where a specific software package is audited and approved before being deployed. A rare exception is unbreaking prod if absolutely necessary. Namespace attestation is potentially useful to them for demonstrating compliance without manually preparing all the documentation themselves.
Fully attested granular audit logs for all interactions with either the cluster (via management API) and all production namespaces.


Input Simulation doc needs updating

Describe the issue
The Input Simulation Service doc does not contain the default keyboard controls or clarify that the Hand Gestures are controlled by the Simulated Controller Movement controls.
The In Editor Input simulation Cheat Sheet video also needs to provide a clearer demonstration. The current video is
Existing doc link
https://github.com/microsoft/MixedRealityToolkit-Unity/blob/mrtk_development/Documentation/InputSimulation/InputSimulationService.md

The Input Simulation Service documentation has been updated on the Microsoft Docs page available here: https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/features/input-simulation/input-simulation-service?view=mrtkunity-2021-05


upgrade to HTTP.jl 1.0

Fixes #5
cc @dewilson

thanks for the review Nathan! I don't have repo access yet (https://github.com/RelationalAI/it-ops/issues/599) — Dana can you merge?
I'll then make a release


documentation update and confusions around

Bug report

What is the current behavior?
Read a documentation about webpack-5 who is really talking about webpack-5.
If the current behavior is a bug, please provide the steps to reproduce.
Go to webpack-5 official documentation page and look, code is about webpack-4 again. That's confusing new user like me.

What is the expected behavior?
Read the correct webpack-5 documentation.
I used webpack-4 (before this day) and from package.json, script to call webpack-5 seems to be different than the one used to call webpack-4 bundler (i don't discuss about the great idea to change the script code to call webpack there... just to inform user how to call new one is the minimum).
Can you update the doc please ?

You should clearly understand that users want to read the correct documentation in relation with the version. If not... forget me.
Other relevant information:
webpack version: 5
Node.js version: 15
Operating System: archlinux
Additional tools: web browser

/cc @webpack/documentation-team need fix, it is real misleading


Support Laravel 9

This PR adds the new Laravel 9.x version support to the package.

Seems like we're using too low version of PHP here. Can you update this to use PHP 8?
Also, we may need to migrate the phpcsfixer config (like https://github.com/archtechx/template/pull/1). You can take the latest version from our template repo.

This error https://github.com/archtechx/gloss/runs/4937370933?check_suite_focus=true#step:4:16 can probably be fixed by removing https://github.com/abrardev99/gloss/blob/l9-support/phpstan.neon#L28-L31

Right, now the error says what's actually wrong. Previously it failed because we were using PHP 8.1 with Laravel 6.
Now it's clear that it's using 8.1 always. So we need to use the PHP version in the CI build as well (maybe some env var). See the other repos you were updating to see if they install specific PHP versions.

All checks are passing now.


scripts: add ffranr PGP signing key

Change Description
Add my (ffranr) PGP so that I can sign releases.
Steps to Test
Steps for reviewers to follow to test the change.
Pull Request Checklist
Testing

[ ] Your PR passes all CI checks.
[x] Tests covering the positive and negative (error paths) are included.
[x] Bug fixes contain tests triggering the bug to prevent regressions.

Code Style and Documentation

[x] The change obeys the Code Documentation and Commenting guidelines, and lines wrap at 80.
[x] Commits follow the Ideal Git Commit Structure.
[x] Any new logging statements use an appropriate subsystem and logging level.
[x]  There is a change description in the release notes, or [skip ci] in the commit message for small changes.

📝 Please see our  Contribution Guidelines for further guidance.

Pls also update scripts/verify-install.sh.


[Wiki Update] Add Void Linux to tested-distros list

Works well on Void Linux (bspwm, dwm), but adding the blacklisting of nouveau is required.
/etc/modprobe.d/nouveau.conf
blacklist nouveau

You may need to blacklist NVIDIA drivers except the proprietary driver.  Depends on complaints in x11 logs

What works or doesn't work requiring the blacklist?
envycontrol is doing that.
Please see https://github.com/bayasdev/envycontrol/blob/main/envycontrol.py#L21
Also note that testing all Linux distros is not practical at this time. But perhaps with your help we can address your issue.
Thanks.

PTAL @yenurbek just updated the wiki
https://github.com/bayasdev/envycontrol/wiki/Frequently-Asked-Questions#tested-distros
Regarding blacklisting nouveau this is already handled by EnvyControl.

I noticed that envycontrol doesn't generate
/etc/modprobe.d/blacklist-nvidia.conf.
I am using 3.2.0 version of envycontrol, maybe it is crucial.
@klmcwhirter approach you mentioned looks really interesting, i will try it but later because of time.

Blacklisting nouveau is required when switching to nvidia mode, otherwise xorg session is not starting

Then your distro got its Nvidia packaging wrong, each distro I've tested automatically blacklists nouveau when the user installs the proprietary driver.

I think you are right
According to
https://github.com/void-linux/void-packages/blob/master/srcpkgs%2Fnvidia%2Ftemplate#L263
nvidia package creates the blacklist file in /usr/lib/modprobe.d where it has no effect on the system

I think you are right
According to
https://github.com/void-linux/void-packages/blob/master/srcpkgs%2Fnvidia%2Ftemplate#L263
nvidia package creates the blacklist file in /usr/lib/modprobe.d where it has no effect on the system

You should open an issue downstream

Closing this as of now


Provide warning when token is insufficient for users

Fixes #2190

Example of notification:

I think this should actually be done on the VSCode side - we can verify the pasted token has the requested scopes there


cmd/compile: The compiler does not detect an initialization loop

... as in the following program:
package main

var (
	a, b = f()
	c    = b
)

func f() (int, int) {
	return c, c
}

func main() {}

Related, though different issue here: #7320
go version go1.5.1 darwin/amd64
go version go1.5.1 linux/amd64
go version devel +af8cd3f Fri Nov 20 19:56:51 2015 +0000 linux/amd64

FYI, gccgo reports
foo.go:4:8: error: initialization expressions for ‘b’ and ‘c’ depend upon each other
a, b = f()
^
foo.go:5:5: note: ‘c’ defined here
c    = b
^
foo.go:5:5: error: initialization expressions for ‘c’ and ‘b’ depend upon each other
foo.go:4:8: note: ‘b’ defined here
a, b = f()
^
/home/iant/foo4.go:5:5: error: initialization expression for ‘c’ depends upon itself
c    = b
^

gotype reports:
foo.go:4:8: initialization cycle for b
foo.go:4:8: 	b refers to
foo.go:8:6: 	f refers to
foo.go:5:5: 	c refers to
foo.go:4:8: 	b

Interestingly, swapping a and b does generate a cycle error:
package main

var (
	b, a = f()
	c    = b
)

func f() (int, int) {
	return c, c
}

func main() {}

cmd/compile/internal/gc/sinit.go:init1 is responsible for producing a list of definitions needing initialization code in dependency order, and for detecting initialization loops. init1 incorrectly marks function nodes as InitDone prior to traversing them.


[proposal] rename repository to just go

before: import "github.com/opentracing/api-golang/opentracing"
after - : import "github.com/opentracing/go/opentracing"

motivation:

api-golang is a mouthful.
api prefix seems uneeded.
go is preferred over golang from what I've seen in the community.

I like api-golang because the opentracing org will likely have non-api repos and it helps to distinguish them. I don't mind one way or the other about api-go and api-golang...

Yeah, that is a totally fair argument. My rebuttal though, would be that it is unlikely we would ever want to create e.g. a go java rust etc. repository with non-API related contents.
I'm not fixed on the change, just curious on hearing everyone's thoughts. I do think api-go would be an improvement.

I prefer to keep the api- prefix. If think we might have other repos in this org, like some reference implementations, or even instrumentation libs. For example, my Python instrumentation, that uses monkey-patching, is dependent only on OTAPI, not on our actual tracing client, so I could see us having repos like instrumentation-python.

api-go works for me, though it's not on the top of my list right now. @slimsag, if you want to do the work I'll happily go along with it / approve the PR / etc.

Okay. I'll send a PR for it later today.
P.S. @yurishkuro is that instrumentation-python lib available publicly somewhere? I'd like to take a look so I can understand how it plays into api-python :).

Not yet, but I want to os it, because I think it may contain a piece that we will need for interop with TChannel-python, which is OSS.


DjangoPermissionRequiredMixin: UnitTests fail even when only the order of permissions changes

Hi,
I have recently started using your package after getting introduced to it from Ronny and it has been really helpful in bringing order and structure to my project. So first thank you very much for publishing this package and for maintaining it.
I am currently finding that the unittests for views with DjangoPermissionRequiredMixin fails when the order of permissions changes, i.e.,  the permission items are the same but with different order. Is assertCountEqual instead of assertEqual a possible option  here ? , to compare the permissions defined between test and the actual view class ?
Thanks!
BR

Hi! Thx for the hint, I'll have a look as soon as I find a minute for this project 👍

Hi @esskaey - I fixed the issue and a new version is pushed to PyPI.


docs(mps-model-server-plugin): document available health checks

Fixes MODELIX-505

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


Completed the setup for Franka Emika Panda Robot

Hi Matteo,
Thanks for the quick respond. I enjoyed a fair amount of time last year working on robo-gym as a part of my thesis project; However as I was not much familiar with how Github works, it took me some time to commit it here. Thank you for developing this toolkit. :slightly_smiling_face:
I adjusted the code according to your suggestion, sorry for messing up parts of your code. I probably was testing some stuffs back then and just forgot deleting the extra prints and comments. Also I was not sure if I would get a respond for my pull request as there was no new commits in some years, so I thought I first just send a request to see how it goes. :grin:
One more thing. I also have managed to integrate the Panda robot in robo-gym side and got some interesting results. But as I borrowed some codes from some other repositories like D4PG (https://github.com/schatty/oprl/tree/legacy_d4pg), I wasn't sure if making a pull request make sense. But I  made a fork which you can find in following link:
https://github.com/f4rh4ng/robo-gym-panda
Please let me know if you would like to merge this too, and if yes which parts would make more sense for merging. :slightly_smiling_face:
Best
Farhang

Hello Farhang,
Sorry for the late reply.
I am glad to hear that our toolkit was useful too you :) No worries at all, it happens to everyone.  Everything looks good to me so far and I think it is ready to merge. Unfortunately I do not have the rights to merge pull requests anymore since I parted ways with Joanneum Research, but I hope someone will take a look at it soon and approve it. Maybe @jr-b-reiterer ?
Your repository look very interesting, and I think it could be interesting to merge the environment part into the main repository, but before you put any more work into that I would wait and see if we get a reply from someone at JR.
I hope this gets merged soon, but in any case people will still be able to see your pull request and be able to see your addition.
All the best,
Matteo

Hello @f4rh4ng,
thanks a lot for your efforts!
As the community surely has guessed in the meantime, since the departure of the original robo-gym team including @matteolucchi, resources to work on robo-gym have been scarce. Extra thanks to him for still taking the time to occasionally answer questions here.
We are currently setting up a project in which we are going to reactivate our own work on robo-gym that is supposed to start within Q2 of 2024. Not set in stone yet, but considered preparatory steps include a set of significant refactorings that are expected to make development and usage more sustainable in the long run. But this may lead to the creation of a set of successor repositories in order not to break setups based on existing versions that can't handle breaking changes from upstream.
Of course we will still have to manage our resources carefully, and as the training and testing with a real robot in this context is non-trivial, I cannot say yet at which stage the Panda will fit with our priorities. But I am sure we will be able to integrate your developments at some point not too far away, also regarding your work in your fork of the robo-gym repo. Possible that it's not going to be by accepting the merge request, but by a more selective process (acknowledging contributions where due). Your d4pg examples might be useful for others, too, but as you indicated yourself, license and/or attribution issues might need to be solved. As you surely have guessed from the pre-existence of Panda-related code in the robot servers repository, there were previous activities in that direction at our place that have not made it to the github repos yet. When we get to the stage in which we want to go through with integrating the Panda, we will also need to compare this with your suggested changes and find the best of both.
Thanks again and stay tuned!
BR,
BR


Proposal to use existing JSON Object models

I have a suggestion. The validator is using it's own object classes JsonParser and JsonValue.
The issue is that when a service needs to parse the payload for it's own needs, the parse will be done two times. Once by the service and once for the validator.
If we can use existing json parsers like jackson or Gson then we can parse it once and hand the parsed tree to the validator

Hello @ferozed , relying on an external library for json parsing was intentionally avoided in this library. The predecessor library uses the JSON-Java project and it caused problems in multiple ways. Moreover, last time when I looked at jackson, I couldn't find any way to obtain the line number & character position from the original json source (which this library uses in its validation error reports).
If you need to map an external json model (either jackson or gson), I suggest, instead of re-parsing, just mapping from one object model to an other.
Actually, in 0.19.0-RC1 which was released today morning, this library does the same when mapping from snakeyaml model to JsonValue , you can use it for reference. If you can keep the line number + character position info, like in this snakeyaml mapper function, then even better.
Your concern about re-parsing is definitely valid, better to avoid that.


Improve set label endpoint parameter names

Is your feature request related to a problem?

Currently it is a bit difficult to intuitively understand what each parameter is used for in the set_label() endpoint. In binary workspaces, the category_id is used to specify the category to label and the value parameter is used to specify the label type to apply, true or false. In multiclass workspaces, the category_id is not used, but the value parameter is used to specify a category id.
What is the expected behavior?

To improve the situation, apply the following:

Use the category_id parameter to specify the category to label both in multiclass and in binary workspaces.
For binary workspaces, use a more descriptive parameter name like binary_label - instead of value-.

Additional context (if any):

Solved by https://github.com/label-sleuth/label-sleuth/pull/618


how to use lag compensation feature?

can you give me a simple example lag compensation implementation?

Hi @kukuri666, I'm planning on releasing some free material on lag compensation and client prediction this year. I can't give you a date for it, but it's definitely on our radar.

Does unity example have lag compensation feature?

Hi @rozenshtein. No, it doesn't. Lag compensation and client prediction are not easily pluggable, as the implementation highly depends on what you're trying to achieve.

If this hasn't been done already, I can write a blog post on this.

@darkyen
can't wait to read your blog post

Hi, why was this closed? Is there a blog post somewhere now? Thanks.


[MINOR] Point release page to downloads.apache.org directly

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
This is a follow up from the graduation DISCUSS thread.
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@lamber-ken would you be kind enough to review, verify and land?

Acked, thanks @vinothchandar


python310Packages.frogmouth: httpx 0.24 compat

Description of changes
I patched frogmouth to depend on httpx ^0.24.1, so we still need to relax the httpx dependency locally until it has been fully updated by https://github.com/NixOS/nixpkgs/pull/237274.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Can't we relax httpx for frogmouth in #237274 instead? I don't think we need to pull in the patch before the release just to ignore it with pythonRelaxDeps

Yes, we can. I don't think I'm able to push commits to that PR, so do you think leaving a comment is appropriate?

yeah I would say so


[AutoPR datafactory/resource-manager] [DataFactory]Add sensitive fields extracted from connection string in swagger for AKV reference

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4375

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/3244


Music Still Plays In The Background During Call

The media player doesn't automatically pause during call or when playing other audio related apps

Sorry, please provide more information to reproduce the bug

When we are playing audio through Audio Manager instance and if we play any other video or audio from device it is still playing in background along with other videos or audio


Fix achievements controller typo

Pull Request Test Coverage Report for Build 3086

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.521%

Totals

Change from base Build 3085:
0.0%

Covered Lines:
1237

Relevant Lines:
1295

💛  - Coveralls


Handle Multiple parallel request

Does Ollama uses some kind of scheduling algorithm to manage high concurrent request? can you explain this

It queues the requests and processes them serially.

We'll add in better support for scheduling in the future, but as @easp mentioned, it just blocks all the other clients on a request and then those clients race to get fulfilled next. Definitely not ideal.

Going to close this as a dupe of #358


Add imphash to meta_pe.py

This pull request adds imphash data to the metadata for PE objects. Note that this requires the latest version of pefile.

Whoops, looks like my change for logging JSON results to a file path also made it in here. Feel free to look at that as well and consider it for merging. This option is useful for analyzing the metadata of multiple files at once.

Can you please split this into 2 pull requests?


Making a pb mask requires hard-coding units that are dimensionless

Ran into an issue when trying to work with a primary beam file in spectral-cube. File was imported as follows:
import glob
from spectral_cube import SpectralCube
pb_fn = glob.glob(f"primary_beam.pb") # any .pb file
pb = SpectralCube.read(pb_fn[0], format = 'casa_image')

Running pb.unit gives a blank cell, confirming that that cube is unitless. However, trying to mask above a certain primary beam level yields an error.
mask = pb > 0.8

ValueError                                Traceback (most recent call last)
<ipython-input-26-6ec680c9e817> in <module>()
----> 1 mask = pb > 0.8

/blue/adamginsburg/abulatek/spectral-cube/spectral_cube/spectral_cube.py in __gt__(self, value)
   2235             The threshold
   2236         """
-> 2237         value = self._val_to_own_unit(value)
   2238         return LazyComparisonMask(operator.gt, value, data=self._data, wcs=self._wcs)
   2239

/blue/adamginsburg/abulatek/spectral-cube/spectral_cube/spectral_cube.py in _val_to_own_unit(self, value, operation, tofrom, keepunit)
   2224                              " SpectralCubes or Quantities with "
   2225                              "a unit attribute."
-> 2226                              .format(operation=operation, tofrom=tofrom))
   2227
   2228     def __gt__(self, value):

ValueError: Can only compare cube objects to SpectralCubes or Quantities with a unit attribute.

Since pb.unit is dimensionless, this should work. What we have to do instead is:
mask = pb > 0.8 * pb.unit

The fundamental problem here is that we should let u.dimensionless_unscaled go through w/o attempting to convert.


Update GRPC endpoints to be with . in the end to avoid NXDOMAINS

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


No Transfer - files on azure storage

I tried 8.1 version and 10.0.8 and it was the same thing
I'm on Windows serveur 2012R2 with Powershell 5.1
I Try to send PST file on the Azure Storage to integrate it on Exchnage O365.  I generated on Administation portal the URI of the storage.
I can connect on it with "Microsoft Azure Storage Explorer"
I used these commands
on 8.1 :     ./azcopy.exe source destination /V:"d:\temp\logazcopy.log" /Pattern:"test*.pst" /Y
on 10.0.8  ./azcopy.exe cp source destination
where destination is the uri "https://xxxxxx.blob/core.windows.net/etc......"
In the 8.1 log I see a lot of  "[2019/03/07 12:39:25.103+01:00][VERBOSE] Finished: 0 file(s), 0 B; Average Speed:0 B/s." and nothing on the Azure storage.
In the 10.0.8 one linet with several same thing
"2019/03/07 10:54:41 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  1, T:  1"
I verified the internet connection and it's OK.
I don't know what can I do to progress with this issue.
Thanks by advanced for your help.

Hi @LefeuvreG, thanks for reaching out!
To clarify, your SAS is included in the destination URL, right?
What's the output for V10?

Hello Zezha,
Yes, the destination is include in the URL
on the console I have
"Job 9833a432-d949-ff4b-5f5d-598f7dae22ea has started
Log file is located at: D:\USERS\a0h48001/.azcopy/9833a432-d949-ff4b-5f5d-598f7dae22ea.log
0 Done, 0 Failed, 1 Pending, 0 Skipped, 1 Total,"
Job a6cc66c6-33af-db47-5fc4-fcd77b34a12b summary
Elapsed Time (Minutes): 20.0372
Total Number Of Transfers: 1
Number of Transfers Completed: 0
Number of Transfers Failed: 1
Number of Transfers Skipped: 0
TotalBytesTransferred: 0
Final Job Status: Failed
I Tried again this morning and in the log I have a lot of things. Yesterday I didn't have all these lines!
I replace some characters by ...
2019/03/08 07:29:43 AzcopyVersion  10.0.8-Preview
2019/03/08 07:29:43 OS-Environment  windows
2019/03/08 07:29:43 OS-Architecture  amd64
2019/03/08 07:29:43 Job-Command cp \acgonsmm05\archives_pst\a0h48001\boites\testgl2.pst https://059d3...c56445.blob.core.windows.net/ingestiondata?se=2019-04-07t07%3A27%3A02z&si=ingestionsasforazcopy201903060956345666&sig=REDACTED&sr=c&sv=2015-04-05
2019/03/08 07:29:43 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  0, T:  0
2019/03/08 07:29:43 JobID=1689169d-f81e-be4c-73f8-6bf846fd49a6, credential type: Anonymous
2019/03/08 07:29:43 scheduling JobID=1689169d-f81e-be4c-73f8-6bf846fd49a6, Part#=0, Transfer#=0, priority=0
2019/03/08 07:29:43 INFO: [P#0-T#0] has worker 15 which is processing TRANSFER
2019/03/08 07:29:43 INFO: [P#0-T#0] Starting transfer: Source "//acgonsmm05/archives_pst/a0h48001/boites/testgl2.pst" Destination "https://059d3...c56445.blob.core.windows.net/ingestiondata/testgl2.pst?se=2019-04-07t07%3A27%3A02z&si=ingestionsasforazcopy201903060956345666&sig=REDACTED&sr=c&sv=2015-04-05". Specified chunk size 8388608
2019/03/08 07:29:43 ==> OUTGOING REQUEST (Try=1)
PUT https://059d3...c56445.blob.core.windows.net/ingestiondata/testgl2.pst?blockid=mjiwymnmm...zwzmymnkn2q1owqx&comp=block&se=2019-04-07t07%3A27%3A02z&si=ingestionsasforazcopy201903060956345666&sig=REDACTED&sr=c&sv=2015-04-05&timeout=901
Content-Length: [8388608]
User-Agent: [AzCopy/10.0.8-Preview Azure-Storage/0.5 (go1.10.3; Windows_NT)]
X-Ms-Client-Request-Id: [35d8b12a-fe10-4673-5f65-1a81094f6378]
X-Ms-Version: [2018-03-28]
2019/03/08 07:29:43 ==> OUTGOING REQUEST (Try=1)
PUT https://059d3bae316246808c56445.blob.core.windows.net/ingestiondata/testgl2.pst?blockid=mdjiy2yzogytz...ztewnmeznjbk&comp=block&se=2019-04-07t07%3A27%3A02z&si=ingestionsasforazcopy201903060956345666&sig=REDACTED&sr=c&sv=2015-04-05&timeout=901
Content-Length: [9216]
User-Agent: [AzCopy/10.0.8-Preview Azure-Storage/0.5 (go1.10.3; Windows_NT)]
X-Ms-Client-Request-Id: [0b0805ba-169f-49df-6c1e-3712b4b317df]
X-Ms-Version: [2018-03-28]
2019/03/08 07:29:45 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:47 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:49 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:51 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:53 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:55 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:57 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:29:59 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:30:01 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:30:03 PERF: disk disk IS NOT limiting throughput. States: R:  0, D:  0, W:  0, B:  2, T:  2
2019/03/08 07:30:04 ==> REQUEST/RESPONSE (Try=1/21.0792041s[SLOW >3s], OpTime=21.0792041s) -- REQUEST ERROR
PUT https://059d3...c56445.blob.core.windows.net/ingestiondata/testgl2.pst?blockid=mjiwymnmmz...zltrkogqtzwzmymnkn2q1owqx&comp=block&se=2019-04-07t07%3A27%3A02z&si=ingestionsasforazcopy201903060956345666&sig=REDACTED&sr=c&sv=2015-04-05&timeout=901
Content-Length: [8388608]
User-Agent: [AzCopy/10.0.8-Preview Azure-Storage/0.5 (go1.10.3; Windows_NT)]
X-Ms-Client-Request-Id: [35d8b12a-fe10-4673-5f65-1a81094f6378]
X-Ms-Version: [2018-03-28]
ERROR:
-> github.com/Azure/azure-storage-azcopy/ste.newAzcopyHTTPClientFactory.func1.1, /go/src/github.com/Azure/azure-storage-azcopy/ste/mgr-JobPartMgr.go:100
HTTP request failed
Put https://059d3...c56445.blob.core.windows.net/ingestiondata/testgl2.pst?blockid=MjIwYmNmMzMtM...kOGQtZWZmYmNkN2Q1OWQx&comp=block&se=2019-04-07T07%3A27%3A02Z&si=IngestionSasForAzCopy201903060956345666&sig=tPuJhMKZCLuyaxcvEeBgfjdvoNxTG4pyR4hLsZZyJp8%3D&sr=c&sv=2015-04-05&timeout=901: dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Thanks for your help

Hi @LefeuvreG, thanks for providing the info!
Is your server using a proxy? If yes, please set the proxy info following these instructions.

Hello Zezha, thank you dor answer,
Yes, I need a proxy with user and password to connect to Internet.
I tried to declare enviconment variable : set https_proxy=: or set https_proxy=user:password@:
But the result is always the same
ERROR:
-> github.com/Azure/azure-storage-azcopy/ste.newAzcopyHTTPClientFactory.func1.1, /go/src/github.com/Azure/azure-storage-azcopy/ste/mgr-JobPartMgr.go:100
HTTP request failed.
Put https://059d3bae316246808c56445.blob.core.windows.net/ingestiondata/testgl2.pst?blockid=YTNmYTFiYmMtM...NDY2MjQ2YjY3NzYw&comp=block&se=2019-04-11T10%3A43...&si=IngestionSasForAzCopy201903060956345666&sig=Ythvme9XX...sCoFyRt4vnUVwXovOXNM%3D&sr=c&sv=2015-04-05&timeout=901: dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Hi @LefeuvreG, could you please double-check the syntax: `https_proxy=:@:
You could also try setting the environment variable through the UI:

You can also view or modify the environment variables by selecting System from the Control Panel, selecting Advanced system settings, and clicking Environment Variables.

@artemuwka @seguler any tips on using a proxy?

Hi Zezha,
I tried to realise a transfer on a computer without proxy address (line direct on internet) with Azcopy10. The result is the same "Serveur failed to identicate the request" !
I tried the same thing with Azcopy 8.1 and it worked.
Unfortunately I can't use this line for my PST because the flow is not high enough
On my normal line where the flow is good unable to pass the proxy with ver8.1 or 10.
with version 10 the environment variable has no result.
On version 8.1, I tried put in the azcopy folder different "azcopy.exe.config" but no result only
[2019/03/13 17:05:12.209+01:00][VERBOSE] Finished: 0 file(s), 0 B; Average Speed:0 B/s
I despair...

Hi @LefeuvreG, I'm sorry to hear that.
Did you use the same SAS for both V8.1 and V10?
Could you please verify the proxy information? It sounds to me like they may be the source of the issue. Please refer to this page.

Hi @LefeuvreG! Did you use CMD to set the proxy variables for AzCopyV10? It won't work in PowerShell.

Proxy documentation is up to date, and correct: https://github.com/Azure/azure-storage-azcopy/#configure-proxy-settings

export https_proxy=MYDOMAIN%5Cmyuser:mypassword@<IP_ADDRESS>:443

Hi thank you for your interest to my issue,
Of course I used the same SAS in the two cases. But in the case that I used V10 on a line without proxy, it's not worked.
Yes I used CMD to set proxy variable for AzcopyV10 and I verified it in the UI of windows system.
I'm on windows system and "export https...." is not supported so I can't use this syntax to add the variable but only set https_proxy....
It works now. I found two things
1. the proxy address, I used the name of the proxy server and not the Ip address in the variable environment only Ip address is good.
2. The command not works in a batch file ! Very strange. I copied the command from the file to the cmd console and it worked. In powershell it doesn't work in a script file or directly with the command line.
Thank you for your help.

@LefeuvreG glad to hear that it's working now!
You observations are interesting. It sounds like the proxy setting somehow is not shared with Powershell. We'll do some experimentation when we get a chance.


Fix reset pin behaviour for Waveshare pico res touch.

Also a drive-by fix of a missing await.
Fixes #77.

It seems that micropython is slow enough that it works without the "await"s too.
But not without the "value=True".


Visualiser doesn't show dependencies with existing resources

Bicep version
VS Code 0.4.1
Describe the bug
If you have a reference to an existing resource, the visualiser doesn't show a dependency between the resources
To Reproduce
resource galleryImageVersion 'Microsoft.Compute/galleries/images/versions@2020-09-30' existing = {
  name: 'gallery/image/version'
}

resource vmScaleSet 'Microsoft.Compute/virtualMachineScaleSets@2021-03-01' = {
  name: 'foo'
  location: resourceGroup().location
  properties: {
    virtualMachineProfile: {
      storageProfile: {
        imageReference: {
          id: galleryImageVersion.id
        }
      }
    }
  }
}

Additional context
If you remove the existing keyword, then the visualiser does render the dependency correctly

I think this may be due to the compiler not generating a dependsOn for existing resources - the above compiles to:
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "<IP_ADDRESS>",
  "metadata": {
    "_generator": {
      "name": "bicep",
      "version": "<IP_ADDRESS>62",
      "templateHash": "10263985305782681691"
    }
  },
  "functions": [],
  "resources": [
    {
      "type": "Microsoft.Compute/virtualMachineScaleSets",
      "apiVersion": "2021-03-01",
      "name": "foo",
      "location": "[resourceGroup().location]",
      "properties": {
        "virtualMachineProfile": {
          "storageProfile": {
            "imageReference": {
              "id": "[resourceId('Microsoft.Compute/galleries/images/versions', split('gallery/image/version', '/')[0], split('gallery/image/version', '/')[1], split('gallery/image/version', '/')[2])]"
            }
          }
        }
      }
    }
  ]
}

FWIW, there is technically no dependency here. By virtue of using the existing keyword, we assume that the resource exists and we don't need the explicit dependency. Though conceptually it makes sense to show this the same as a dependency so that it's easy to appreciate the relationship.


Active tab highlighting is not consistent in the navigation bar

It seems that recent refactoring might have broken highlighting of the active page in the navigation tab:

It works well for About us, Documentation, and Widgets but not for the other tabs in the nav bar.

Could we fix this by using the URL, not the page title, in the loop test here

Yes, this looks like a good idea. Or maybe we could test both (with or operator)?

It looks like it is happening again?

I probably screwed it up when I refactored the nav. Will look.


Docker hub doesn't contains version 1.2.4.RELEASE for spring-cloud-contract & spring-cloud-contract-stub-runner

https://hub.docker.com/r/springcloud/spring-cloud-contract/tags/
https://hub.docker.com/r/springcloud/spring-cloud-contract-stub-runner/tags/

Just pushed the missing images. Thanks for the pointer


release 1.5: Allow "home" topics to work in the left sidebar

If you create a topic called "home" and then click on it in the streams/topics sidebar, the app takes you the "Home" view.  We must have a piece of code somewhere that makes too tax a regex or search for "home" in the link.

I would like to try this out.

@khantaalaman I just submitted a PR :(

Sounds good!  If you need help, feel free to ask questions on https://chat.zulip.org/#

@sampritipanda I am extremely sorry for this. Maybe it came after I wrote the comment.
No problem buddy. I won't take it. :)

Sorry about the confusion, @khantaalaman! It's not your fault--thanks for responding so quickly.


⚠ GazelleGames has degraded performance

In fc29eb6, GazelleGames ($GGN) experienced degraded performance:

HTTP code: 200
Response time: 25504 ms

Resolved: GazelleGames performance has improved in ef85833 after 6 minutes.


Added plug in timeout event within EvseManager and OCPP1.6

Should be merged after https://github.com/EVerest/libocpp/pull/162 with patched libocpp dependency