Show actual type parameters of generic functions and methods

The feature is to put actual type parameters (i.e. resolved, inferred ones) in onHover function signature hint. This lets you visually debug the type inference and find out what the formal parameters ended up to be for the specific function call expression.
I really miss the feature of inspecting the resolved types of a generic function from TypeScript where it looks the following way:

I'd like to bother implementing this if you don't mind.
@flodiebold @matklad I'd be grateful if you give any pointers to the code!

For simple function calls, you can already get these from the inference result; the callee itself will have a type like Ty::Apply(ApplicationTy { ctor: TypeCtor::FnDef(.. the fn id..), parameters: .. the type parameters .. }). You can see this in the tests as well:
https://github.com/rust-analyzer/rust-analyzer/blob/bf0c3ec67e0f2bc232924923ef3bd55aa3bd0cbd/crates/ra_hir_ty/src/tests/simple.rs#L1553
For method calls, we don't record the parameters yet. Here's the point where we've got them, so we should record them in the InferenceResult. The parameters will often contain variables, which will need to be resolved after inference (before you do this, you'll probably see lots of _ in the substs). This happens here for other types recorded during inference.
As for actually printing the function definition with parameters, there's two approaches: Trying to print the whole definition from HIR, or adapting the current way and trying to substitute type parameters in it syntactically. Both have their complications.  For substituting parameters syntactically, we have some code, but it's not general enough yet.

Thanks for the pointers! I'll look into this, but it may take some time!


Schemas are missing

Schema_GeoJSONGeometries.json
Schema_GeoZoneCollectionMetadata.json
Schema_GeoZoneProperties.json
Are not available, they should be added

These schema are in the repository. They were not copied in the document for the Open Consultation. They will be copied in the final document.


Documentation

Is there any documentation on the API? I'm really struggling to pick apart what all the bits do by trial and error.

Wiki of waveshare or form about epaper may help you.
https://www.waveshare.com/wiki/1.54inch_e-Paper_Module
https://forum.arduino.cc/t/waveshare-e-paper-displays-with-spi/467865
I'm happy if you find some bug and create pull request to fix that.


test: Usecase for clone using cmd shell on Win32

New usecase for clone.js

It confirms the reason for certain bugs (see below) affecting the clone of repositories to destinations containing on Windows and will validate the fix
References

Related to #10
Related to https://github.com/npm/cli/issues/2414

Notice that the unsuccessful checks on Windows build prove the point and, for them to pass it is necessary to apply the fix at #20 to make the test pass.


Automatic experimental relevant time signal extraction and automated metrics

Relevant for common plotting and analysis of SignalTimeData
Also would be nice for:

[ ] Extracting the right pulse start and end
[ ] Clearer visualization of propagation delays
[ ] Fourier transformation implementation

It'd be nice to have an algorithm that takes in a waveform, and is able to calculate the metrics of a given transition or delay between corresponding waveforms digitally in a similar fashion to how an oscilloscope computes this internally. Accordingly, it'd be useful if we can do fourier transforms on the signal analysis accordingly for a given rise time or fall time as such.


External links not working with Android webview

Hello,
I am currently putting a web app (written in Aurajs) inside an Android webview. Unfortunately, I am not in control of the web app as it is loaded by an external website. The issue is that I am unable to click on external links. The authors have decided to do someting like this for their  tags:
< a href="javascript;void(0)" class="some-random-class" data-aura-rendered-by="blabla">
www.google.com
</ a >
The only way I can solve this is by removing any click listeners from this element and attaching my own. Unfortunately, if I do this currently, the listeners already attached will somehow take precedence. Please help.
Thanks

No longer need a solution.


Fixes issue where metalsmith with an absolute source path makes the pattern matcher fail

Can you provide a test?

I couldn't actually get the test runner to work - after npm install and npm test it just output saying it was using the TAP output and hung (no exit)
Intentionally breaking a test had no effect. Am I missing something?

Well, tests are probably broken then... :/

Yea, you can see it in the travis ci logs. There's no way my one line change could cause the whole test suite to fail so it's probably a dependency issue. I'll have a look if master runs when I get to my desk

Thanks!

@MoOx Ok I've fixed the issue, I realised that it was actually my code - the test runner was just failing silently.

1.0.3 released!


Bugfix/update deps

Added main property to package.json, macro would not load without it.

Cool, thanks! Let me just check out the code in local and I'll merge ;)

any updates on this?


Skipped tests fixes

Coverage increased (+9.5%) to 79.226% when pulling d7030a69f1dce755e634bee67ad56e9751b4b7c0 on skipped_tests_fixes into cb6546e741d9efaaf29cb1f719a46c30c9b1faa2 on master.


Invalid response for unsupported authenticators during API based authentication

Describe the issue:
I have configured an application with the following login sequence.

When an API-based authentication request is initiated for the given application, the following response is returned.
{
    "flowId": "7d622ddb-edbb-41b4-a414-18fe7f56c76c",
    "flowStatus": "INCOMPLETE",
    "flowType": "AUTHENTICATION",
    "nextStep": {
        "stepType": "MULTI_OPTIONS_PROMPT",
        "authenticators": [
            {
                "authenticatorId": "QmFzaWNBdXRoZW50aWNhdG9yOkxPQ0FM",
                "authenticator": "Username & Password",
                "idp": "LOCAL",
                "metadata": {
                    "promptType": "USER_PROMPT",
                    "params": [
                        {
                            "param": "username",
                            "type": "STRING",
                            "order": 0,
                            "i18nKey": "username.param",
                            "confidential": false
                        },
                        {
                            "param": "password",
                            "type": "STRING",
                            "order": 1,
                            "i18nKey": "password.param",
                            "confidential": true
                        }
                    ]
                },
                "requiredParams": [
                    "username",
                    "password"
                ]
            }
        ]
    },
    "links": [
        {
            "name": "authentication",
            "href": "https://localhost:9443/t/carbon.super/oauth2/authn",
            "method": "POST"
        }
    ]
}

The response type is MULTI_OPTIONS_PROMPT but it only contains details about the basic authenticator. The email OTP federated authenticator details are missed.
How to reproduce:

Configure an application with the login sequence as above.
Initiate a API based authentication

curl --location 'https://localhost:9443/oauth2/authorize/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-urlencode 'client_id=lEKvp7rORWHDJzeWCV_2qYnd_I4a' \
--data-urlencode 'response_type=code' \
--data-urlencode 'redirect_uri=https://localhost/callback' \
--data-urlencode 'state=logpg' \
--data-urlencode 'scope=openid internal_login' \
--data-urlencode 'response_mode=direct'

Expected behavior:
If there are authenticators that does not support API based authentication, it should be properly notified.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 7.0.0 Alpha
OS: Mac

Optional Fields
Related issues:

Suggested labels:

This is fixed with https://github.com/wso2/carbon-identity-framework/pull/5166. If the flow contains an unsupported authenticator it will send a error response during the initial request


Need to remove animation while closing items

I need to remove animation while closing items, because when I remove actionbutton from view, items kept remain there for always. I cannot wait to have all items hidden with animation.
Kindly, provide solution for this and 1 more, if we can remove items from actionButton

There is now a pull request for the first part of this issue.
I created a new issue for the second part.

@sohail-niazi Btw. you can easily "remove" an item by setting it to "hidden":
let item = actionButton.addItem(title: "go for it!", image: UIImage(named: "image.png")) { item in
    // do something
}

item.isHidden = true

Setting isHidden to false would make it appear again.

And it should also be ok to just use remove(at:) to remove an item:
if let index = items.firstIndex(of: item) {
    actionButton.items.remove(at: index)
}


feat: [IDP]: Added the docs for New Relic Plugin

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: __________________________________
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66e1dd07fd45c54fc3622adc--harness-developer.netlify.app

Excessive changes were included due to the hard reset earlier today. @Debanitrkl please rebase or close/reopen as appropriate.

Sure @dewan-ahmed will rebase

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66e23cf6ba2baab0463fa730--harness-developer.netlify.app


FR: add exclude gold efficiency calculated with the stats from passives button

Simple idea:

rename column Movement to Others and add Unstable Stats from Passives into it.
add a button between filters and header (in a brand new area).

https://github.com/changchiyou/wildrift-gold-efficiency/commit/ecfadebb4ed72eff91862940e81726ce4865ce56
https://github.com/changchiyou/wildrift-gold-efficiency/commit/c494bfaa5f6f09111d349a86a9c30e577739d28d
https://github.com/changchiyou/wildrift-gold-efficiency/commit/9ee2dc6579671b212ee13fab9ca60ce63ee51082

4ff0517264ee046abe8a526437acb19d258a1200 (feat: change the filter option Stats from Passives to Unstable Passives' Stats)
2e08a2a7a5584a93f333c6c18224f235a2a9d73c (feat: update data.py for 4ff0517264ee046abe8a526437acb19d258a1200)

86dbe48c3bee3967b45e4e1deb4dad77575a6fe7 (feat: update ⚡Unstable Passives' Stats for all patches)


CCNP quote SDK return result enhancement to provided clear usage to client

What would you like to be added?
Now quote SDK has python and golang implementation for TDX, there are several issues need to be considered depends on how client would use the SDK return results and what if more TEEs are added:

how the client would know the return is a specific TEE related quote information
one comment fields for all the TEEs is quote, but if client want to access specific fields in TEE quote, how the fields should be stored in the result or we can simply provide a tool function to let client call the tool with quote to get the fields
sync the naming of all the fields for a TEE in different language SDKs and make a simple and clear documentation for end user
does not break client's current usage model
the return should container raw data like TEE report or TEE quote, and the raw data should be base64 encoded or simply raw binary string

Why is this needed?
End user should have a simple and clear understanding on SDK returns.

Current thoughts: The common property that is clearly defined for now is the raw 'quote'. Most attributes in the quote are different in different hardware environments. If it is not possible to extract common attributes or structure, Is it possible to define a struct like this:
type QuoteInfo struct {
rawQuote []uint8
parsedQuote map[string]uint8
}

User can find the quote details by checking the map.

Solution Option 1

Solution Option 2

f


Recover Your Password not working

I'm testing out the Recover Your Password but I keep getting Internal server error not seeing any errors on the server or console. Testing on local host

Issue on my end


Netatmo public sensor fails randomly on boot

Home Assistant release with the issue: 0.81.0

Last working Home Assistant release (if known): N/A
Operating environment (Hass.io/Docker/Windows/etc.): Hassio

Component/platform:

Description of problem:
Netatmo public sensors fails on boot randomly. Alomst every boot some of netatmo public sensors is unavailable (see pic). On next boot sometimes ok, sometimes other netatmo public sensor is gone.
Netatmo public sensor availability stays same (ok, not-ok) until next boot. So i have to reboot HA several times until all netatmo public sensors are ok.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: netatmo_public
  areas:
    - lat_ne: 50.0263758
      lon_ne: 14.4603819
      lat_sw: 49.9843125
      lon_sw: 14.3588872
      monitored_conditions:
        - temperature
        - pressure
        - humidity
        - rain
        - windstrength
        - guststrength

Traceback (if applicable):

Additional information:

Could you check the log?

Many restarts and problem is probably gone. Maybe fixed in some last version..?

Problem is back. Only one of netatmo-public sensor fails on boot. Log is here:
2018-11-06 20:13:25 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo_public

...

2018-11-06 20:13:35 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform netatmo_public is taking over 10 seconds.
2018-11-06 20:13:36 ERROR (MainThread) [homeassistant.components.sensor] netatmo_public: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo_public.py", line 124, in update
    self.netatmo_data.update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 324, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo_public.py", line 179, in update
    filtering=True)
  File "/usr/local/lib/python3.6/site-packages/smart_home/PublicData.py", line 52, in __init__
    resp = postRequest(_GETPUBLIC_DATA, post_params)
  File "/usr/local/lib/python3.6/site-packages/smart_home/__init__.py", line 28, in postRequest
    resp = urllib.request.urlopen(req, params, timeout=timeout) if params else urllib.request.urlopen(req, timeout=timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1321, in do_open
    r = h.getresponse()
  File "/usr/local/lib/python3.6/http/client.py", line 1331, in getresponse
    response.begin()
  File "/usr/local/lib/python3.6/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.6/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
  File "/usr/local/lib/python3.6/ssl.py", line 1009, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/local/lib/python3.6/ssl.py", line 871, in read
    return self._sslobj.read(len, buffer)
  File "/usr/local/lib/python3.6/ssl.py", line 631, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
2018-11-06 20:13:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_public_data_humidity, old_state=None, new_state=<state sensor.netatmo_public_data_humidity=84.7; unit_of_measurement=%, friendly_name=Netatmo Public Data Humidity, icon=mdi:water-percent, device_class=humidity @ 2018-11-06T20:13:37.644488+01:00>>
2018-11-06 20:13:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_public_data_wind_strength, old_state=None, new_state=<state sensor.netatmo_public_data_wind_strength=1.4; unit_of_measurement=km/h, friendly_name=Netatmo Public Data Wind Strength, icon=mdi:weather-windy @ 2018-11-06T20:13:37.651493+01:00>>
2018-11-06 20:13:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_public_data_rain, old_state=None, new_state=<state sensor.netatmo_public_data_rain=0.0; unit_of_measurement=mm, friendly_name=Netatmo Public Data Rain, icon=mdi:weather-rainy @ 2018-11-06T20:13:37.658660+01:00>>
2018-11-06 20:13:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_public_data_gust_strength, old_state=None, new_state=<state sensor.netatmo_public_data_gust_strength=3.2; unit_of_measurement=km/h, friendly_name=Netatmo Public Data Gust Strength, icon=mdi:weather-windy @ 2018-11-06T20:13:37.665858+01:00>>
2018-11-06 20:13:37 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_public_data_temperature, old_state=None, new_state=<state sensor.netatmo_public_data_temperature=11.3; unit_of_measurement=°C, friendly_name=Netatmo Public Data Temperature, icon=mdi:thermometer, device_class=temperature @ 2018-11-06T20:13:37.677141+01:00>>
2018-11-06 20:13:37 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 14.2 seconds.

i have same problem
Here is log file
2018-12-13 14:02:26 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform netatmo_public is taking over 10 seconds.
2018-12-13 14:02:26 ERROR (MainThread) [homeassistant.components.sensor] netatmo_public: Error on device update!
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/data/data/com.termux/files/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/components/sensor/netatmo_public.py", line 124, in update
self.netatmo_data.update()
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/util/init.py", line 324, in wrapper
result = method(*args, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/homeassistant/components/sensor/netatmo_public.py", line 179, in update
filtering=True)
File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/smart_home/PublicData.py", line 52, in init
resp = postRequest(_GETPUBLIC_DATA, post_params)
File "/data/data/com.termux/files/home/.homeassistant/deps/lib/python3.7/site-packages/smart_home/init.py", line 28, in postRequest
resp = urllib.request.urlopen(req, params, timeout=timeout) if params else urllib.request.urlopen(req, timeout=timeout)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 1360, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/data/data/com.termux/files/usr/lib/python3.7/urllib/request.py", line 1320, in do_open
r = h.getresponse()
File "/data/data/com.termux/files/usr/lib/python3.7/http/client.py", line 1321, in getresponse
response.begin()
File "/data/data/com.termux/files/usr/lib/python3.7/http/client.py", line 296, in begin
version, status, reason = self._read_status()
File "/data/data/com.termux/files/usr/lib/python3.7/http/client.py", line 257, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/data/data/com.termux/files/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/data/data/com.termux/files/usr/lib/python3.7/ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "/data/data/com.termux/files/usr/lib/python3.7/ssl.py", line 911, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

Some observation - all netatmo sensors has same behavior - if it is not available in time of the boot of HA sensor is not created at all instead of "unavailable" state. So if some input is not accessible in time of boot (netatmo public, netatmo outdoor sensor, ..) sensor is not created until next boot.
I think this is bad implementation of netatmo at all and should be fixed.

Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks!

Still happens to me.
2019-03-22 17:57:14 ERROR (MainThread) [homeassistant.components.sensor] netatmo_public: Error on device update!
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/app/homeassistant/helpers/entity.py", line 379, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/sensor/netatmo_public.py", line 124, in update
    self.netatmo_data.update()
  File "/usr/src/app/homeassistant/util/__init__.py", line 224, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/app/homeassistant/components/sensor/netatmo_public.py", line 179, in update
    filtering=True)
  File "/usr/local/lib/python3.7/site-packages/smart_home/PublicData.py", line 54, in __init__
    self.raw_data = resp["body"]
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/smart_home/__init__.py", line 35, in postRequest
    if params
  File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Hi, same problem here, after updating from 0.89.1 to 0.92.2
two times after reboot i see my netatmo energy and thermostat, now i rebbot,reboot but i have only this error
2019-05-07 21:42:17 ERROR (SyncWorker_10) [smart_home] Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/smart_home/init.py", line 39, in postRequest
if params
File "/usr/local/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/local/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400:
2019-05-07 21:42:17 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: switch 93F52C_RL_1, sending update
2019-05-07 21:42:17 ERROR (MainThread) [homeassistant.setup] Error during setup of component netatmo
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config)  # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/init.py", line 91, in setup
'read_station read_camera access_camera '
File "/usr/local/lib/python3.7/site-packages/pyatmo.py", line 85, in init
self._accessToken = resp["access_token"]
TypeError: 'NoneType' object is not subscriptable
2019-05-07 21:42:17 INFO (SyncWorker_12) [homeassistant.loader] Loaded configurator from homeassistant.components.configurator

@bigboban, I have the exact same issue as you on HA version 0.93.0. It works fine after a reboot, but a few hours later it fails with this error (ssl read) and does not try again:
ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_indoor_humidity fails
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state
    await self.async_device_update()
  File "/home/pi/.local/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/homeassistant/components/netatmo/sensor.py", line 216, in update                                                                   self.netatmo_data.update()
  File "/home/pi/.local/lib/python3.5/site-packages/homeassistant/components/netatmo/sensor.py", line 544, in update
    self.station_data = self._detect_platform_type()
  File "/home/pi/.local/lib/python3.5/site-packages/homeassistant/components/netatmo/sensor.py", line 522, in _detect_platform_type
    station_data = self.data_class(self.auth)
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/smart_home/WeatherStation.py", line 23, in __init__
    resp = postRequest(self.urlReq, postParams)
  File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/smart_home/__init__.py", line 39, in postRequest
    if params
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.5/urllib/request.py", line 1257, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.5/ssl.py", line 937, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.5/ssl.py", line 799, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.5/ssl.py", line 583, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

Same issue from the first version to the current version (0.96.4)
This timeout happens at platform setup, I agree that's a bad platform implementation.
I have two netatmo cameras and the probability to have both available after HA is quite low and I usually have to reboot dozen times. Very very annoying.

Version 0.100.2 and problem still there.


Implement BTTV Emote Modifiers

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description
This PR implements BTTV's emote modifiers (w!, h!, v!, z!, !r, !l). They can't be combined. Parsing can be turned off in the settings.
See https://github.com/Chatterino/chatterino2/discussions/4470. Implementation is based on https://github.com/night/betterttv/commit/b60d02091f2565b80ff36bc72ca1014a76df69f2.

Closing this PR. If anyone wants to implement this, feel free to take this as a base. I haven't seen much adoption of this feature.


Fix Text Help for CLI Groups

Describe changes
This fixes the provided text in the group CLI commands! Previously it was getting docstring which may have additions args that users have no need for! This force the help text to be specified to avoid that!
Pre-requisites
Please ensure you have done the following:

[X] I have read the CONTRIBUTING.md document.

Types of changes

[X] Bug fix (non-breaking change which fixes an issue)

@AlexejPenner The problem is only with some groups, can you try zenml secret or zenml served-models I think setting helps text for every group push towards having some sort of standard to follow

@AlexejPenner The problem is only with some groups, can you try zenml secret or zenml served-models I think setting helps text for every group push towards having some sort of standard to follow

Usage: zenml secret [OPTIONS] COMMAND [ARGS]...

  List and manage your secrets.

  Args:     ctx: Click context.

Options:
  --help  Show this message and exit.

Commands:
  delete    Delete a secret identified by its name.
  get       Get a secret, given its name.
  list      List all secrets tracked by your Secrets Manager.
  register  Register a secret with the given name and schema.
  update    Update a secret with a given name.

Usage: zenml served-models [OPTIONS] COMMAND [ARGS]...

  List and manage served models with the active model deployer.

  Args:     ctx: The click context.

Options:
  --help  Show this message and exit.

Commands:
  delete    Delete a specified model server.
  describe  Describe a specified served model.
  get-url   Return the prediction URL to a specified model server.
  list      Get a list of all served models within the model-deployer...
  logs      Show the logs for a model server.
  start     Start a specified model server.
  stop      Stop a specified model server.

The users get Args:     ctx: Click context. which has nothing to do use of the command


Crashes Unity

I tried it in the free version, but this bug persists even after upgrading to the pro version.
First time I opened the Inspector Graph and tried it out with a Scriptable Object, it worked fine.
Then I tried it with a more complex SO and it crashed my Unity (as in closed it down without even the bug report window!).
When I open unity and try to open the Inspector Graph window it crashes Unity consistently. I don't know if the selected SO is still selected and therefor crashes :(. I tried to delete the package folder and re-import it, but it still crashes.
The only properties in the SO I opened are these:
public int currentRoom;

[SerializeField]
CreatureEncyclopedia creatureEncyclopedia;

public List<CreatureData> creatures = new();
public List<CreatureData> HousedCreatures => creatures.FindAll(c => c.roomId != -1);

public CreatureSO firstCreature;

public Action OnDataChanged;
public Action OnGotoSleep;

Hi @pjarnfelt
Thanks for reporting this issue and sorry about the inconvenience it may cause.
With the information provided is difficult to identify the cause of the crash, please provide the following information to better identify the problem:

Operating System used
Unity Version being used
Unity Editor logs at the time of the crash (Check the locations here)

As an immediate action item on our end, we are going to add an option to reset the last inspected object reference via Project Settings to avoid deadlock situations like this where the last inspected object causes a crash.
In the meantime here are some suggestions to workaround this problem:

Please add the CreatureEncyclopedia class to the Type Filter (Using the fully qualified name of the class, this is, Namespace + class name) and make sure to uncheck the Expand Type field (Check the documentation here)

This suggestion is purely speculative based on the name of the class. The name suggests that it might contain a big collection of objects which, depending on the size of the references, may cause an Out Of Memory exception when trying to load the entire reference tree. By unchecking the Expand Type the Object will be visible but the children, or references, will not be visible potentially avoiding the crash. If this is the case, it is a limitation of the current implementation that loads everything at once. We might change this in the future to be able to work with heavy objects.

If the first suggestion does not work and the Inspector keeps crashing, please delete the user preferences located at UnityUserPreferencesFolder/GiantParticle/InspectorGraphUserPreferences.asset for the free version or InspectorGraphProUserPreferences.asset for the Pro version.

This will clear the stored reference of the last inspected object avoiding loading it when opening the inspector which may cause the crash.

Again, thanks for reporting this issue and apologies for the inconvenience.


[web] Run all engine tests with the feature turned on.

Originally this was intended for the "embedded" mode of Flutter with a single hostElement override; this should probably be generalized to "multiview mode".

Closing until there's clear need to fix this.


Deleting one version doesn't update the version count badge

Say I have two versions of a movie. The version count badge correctly says "2". But if I delete one of the versions, the version count badge still says "2" even though the movie is not a collection of versions anymore, its just a single movie.

found a workround: split first, then delete unwanted version


5 breakpoints with 3 device layers

The current grid is almost fitting the 3 device layers, so should we:

Adapt the grid to perfectly fit the 3 layers
Add more device layers to fit the grid

[Quick demo]
Less layers = easier token management and overall testing
More layers = more flexibility

Resolution: we will try and adapt the grid to the 3 device token layers

the 5 breakpoints (xs, sm, md, lg, xl) are still available for utilities and grid system classes
the grid parameters (padding, gap, etc.) are defined for the 3 layers only (desktop, tablet, mobile)


Improve many things about the documentation

Better signature for the connect function (fixes #150)
Document the stream parameter
Return values are now documented, not commented on (syntactial change)
Document the JSON object keys of several methods separately

Some updates to test and the bug fix from #177, since I pushed to the wrong branch…


Feature: Provide multiple templates for a programming language

Checklist

[ ] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[x] Server: I implemented the changes with a good performance and prevented too many database calls
[x] Server: I documented the Java code using JavaDoc style.
[x] Client: I documented the TypeScript code using JSDoc style.
[x] Client: I added multiple screenshots/screencasts of my UI changes
[x] Client: I translated all the newly inserted strings into German and English

Motivation and Context
Currently, there can only be one template per programming exercise. For Java, often two exercise types are used: Eclipse projects and Maven projects. Instructors currently have to manually adjust the exercise if they want to use Maven exercises.
See #2062.
Description
This PR adds an attribute projectType to the Programming Exercises, defaulting to null. Each programming language has a base template (consisting of the already present folder exercise, solution, tests, which can be extended by project-specific files (e.g. pom.xml or .project files). The selection is not shown if there is only one template for this programming language.
The Project Type can not be changed after creating the exercise as the repositories are setup with the selected option during exercise creation.
Steps for Testing

Create a new programming exercise
See the new selection for the project type when select Java as programming language.
See the difference in the loaded README when selecting Maven instead of Eclipse
Create one project using Maven and one using Eclipse.

The eclipse project should be identical to the previous template.
The maven project should be identical except that 1) a pom.xml file is generated for student instead of .classpath and .project file. 2) The Client class uses a method from Apache RandomUtils.

Import both exercises into eclipse (one as eclipse project and one as maven project), you should be able to run the main method in the Client class.
Create another non-Java Programming exercise: The project type selection should not be present but you should still be able to create the exercise using the default template.

Test Coverage

ExerciseService.java: 85%
programming-exercise.component.ts 95%

Screenshots

Lgtm. One thing I noticed though is that pom.xml is showing in the online editor:

Is there a way to hide it? I don't think students should edit that file. (That can also be done in a follow-up PR if we don't want to block this one, imho.)

@FrankeLukas Thanks for testing! Actually, I believe we had some exercises were students were supposed to edit the pom.xmlfile. Most of the maven exercises, at least in my expectation, won't provide an online-editor so there probably are few cases were that file is shown to the student in the code editor. The students should solve these programming exercises in their IDE (and there we obviously also can't hide these files).
Technically it would be possible to hide all .xml files, but I don't know if that breaks other programming languages that might rely on .xml files.
So I would propose that we leave this as it is currently.

Ok, that sounds reasonable. :+1:


feat: cluster sidecar

Description
This PR adds a new argument --cluster-sidecar argument, as documented. This is necessary to implement a REST server as as a caching layer for --cluster-status queries, for example. See https://github.com/Snakemake-Profiles/slurm/issues/81 for an example use case.
based on #1395, should be rebased once that is merged
QC

[x] The PR contains a test case for the changes or the changes are already covered by an existing test case.
[x] The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

PR #1395 is merged, I guess you can rebase this now.


Simnav

Pull Request Test Coverage Report for Build 3888

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.007%) to 37.04%

Totals

Change from base Build 3883:
-0.007%

Covered Lines:
2713

Relevant Lines:
6554

💛  - Coveralls


Weights

Hello, can you provide the weights of a trained model? I'd like to add this as a pre-trained model in the https://github.com/mlmed/torchxrayvision library.

Dear Dr. Cohen,
Here are my trained weights for my custom models.
https://github.com/linhduongtuan/Tuberculosis_ChestXray_Classifier/releases￼
Releases · linhduongtuan/Tuberculosis_ChestXray_Classifier
github.com
Linh

On Jan 4, 2023, at 2:10, Joseph Paul Cohen PhD @.***> wrote:
Hello, can you provide the weights of a trained model? I'd like to add this as a pre-trained model in the https://github.com/mlmed/torchxrayvision library.
—
Reply to this email directly, view it on GitHub https://github.com/linhduongtuan/Tuberculosis_ChestXray_Classifier/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27F3WMFDX342H5RAZRDWQR2SNANCNFSM6AAAAAATP773NM.
You are receiving this because you are subscribed to this thread.

Linh, Can you confirm that I am loading this model correctly? The output has 1000 classes but I think it should have 2 or 3. I followed this code:
https://github.com/linhduongtuan/Tuberculosis_ChestXray_Classifier/blob/master/Notebooks/Tuberculosis_CXR_EfficientNet_B1.ipynb
I had to change the fc4 shape to 128, 3 in order to load the weights EfficientNet_B1_240.pth so that would imply 3 output classes. In the notebook is was 128, 2. But also it seems that the model.fc is not being used at all. In the training loop it uses the default forward function which I believe just uses the .classifier linear layer that was not changed. Can you confirm how things should be loaded here? If possible create a complete script which takes in an input image and outputs the probability of TB? This way I can confirm my implementation matches.
import torchvision
import torchxrayvision as xrv
import skimage
import timm
import torch
import torch.nn as nn
from collections import OrderedDict
from timm.models.layers.activations import Swish

model = timm.create_model('efficientnet_b1', pretrained=True, drop_rate=0.2)

fc = nn.Sequential(OrderedDict([
    ('fc1', nn.Linear(2048, 1000, bias=True)),
    ('BN1', nn.BatchNorm2d(1000, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
    ('dropout1', nn.Dropout(0.7)),
    ('fc2', nn.Linear(1000, 512)),
    ('BN2', nn.BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
    ('swish1', Swish()),
    ('dropout2', nn.Dropout(0.5)),
    ('fc3', nn.Linear(512, 128)),
    ('BN3', nn.BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
    ('swish2', Swish()),
    ('fc4', nn.Linear(128, 3)),
    ('output', nn.Softmax(dim=1))
]))
# connect base model (EfficientNet_B0) with modified classifier layer
model.fc= fc

weights = torch.load("../torchxrayvision/baseline_models/linhduongtuan/EfficientNet_B1_240.pth", map_location=torch.device('cpu'))

model.load_state_dict(w['model_state_dict'])

### read image
img = skimage.io.imread('../tests/00027426_000.png')
img = xrv.datasets.normalize(img, 255)[None, :, :]

transform = torchvision.transforms.Compose([xrv.datasets.XRayCenterCrop(),
                                            xrv.datasets.XRayResizer(224)])

img = transform(img)
img = torch.from_numpy(img).unsqueeze(0)

# Add fake color channels
img = img.repeat(1,3,1,1)

model(img).shape.  # outputs torch.Size([1, 1000])

Dear Dr. Cohen,
These trained weights have been performed since 2020-2021. So I don’t remember exactly how many number of classes with every dataset I used for the weights.
The worst case I made a mistake is set num_classes=1000. However, most probably I set 'num_classes=3’ for either (Normal vs TB vs Other pneumonia) or (Normal vs Covid-19 vs other Pneumonia), or num_classes=4 for Normal vs Covid-19 vs TB vs other pneumonia, or num_classes=5 for Normal vs Covid-19 vs TB vs Other Pneumonia vs Not normal nor Opacity.
In general, 3-catagory, 4-category and 5-caterogy problems are still worked well using my modified classifier. For instance, the overall accuracy for 5-category classification achieves ~ 87%.
If using only a pure backbone, models are not able to classify every lesion type such as Covid-19 vs TB vs other pneumonia.
I would suggest that you can train my proposed models again using your own datasets to test further performance.
Sincerely
Linh

On Jan 7, 2023, at 7:58, Joseph Paul Cohen PhD @.***> wrote:
Linh, Can you confirm that I am loading this model correctly? The output has 1000 classes but I think it should have 2 or 3. I followed this code:
https://github.com/linhduongtuan/Tuberculosis_ChestXray_Classifier/blob/master/Notebooks/Tuberculosis_CXR_EfficientNet_B1.ipynb
I had to change the fc4 shape to 128, 3 in order to load the weights EfficientNet_B1_240.pth so that would imply 3 output classes. In the notebook is was 128, 2. But also it seems that the model.fc is not being used at all. In the training loop it uses the default forward function which I believe just uses the .classifier linear layer that was not changed. Can you confirm how things should be loaded here? If possible create a complete script which takes in an input image and outputs the probability of TB? This way I can confirm my implementation matches.
import torchvision
import torchxrayvision as xrv
import skimage
import timm
import torch
import torch.nn as nn
from collections import OrderedDict
from timm.models.layers.activations import Swish
model = timm.create_model('efficientnet_b1', pretrained=True, drop_rate=0.2)
fc = nn.Sequential(OrderedDict([
('fc1', nn.Linear(2048, 1000, bias=True)),
('BN1', nn.BatchNorm2d(1000, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
('dropout1', nn.Dropout(0.7)),
('fc2', nn.Linear(1000, 512)),
('BN2', nn.BatchNorm2d(512, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
('swish1', Swish()),
('dropout2', nn.Dropout(0.5)),
('fc3', nn.Linear(512, 128)),
('BN3', nn.BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)),
('swish2', Swish()),
('fc4', nn.Linear(128, 3)),
('output', nn.Softmax(dim=1))
]))
connect base model (EfficientNet_B0) with modified classifier layer
model.fc= fc
weights = torch.load("../torchxrayvision/baseline_models/linhduongtuan/EfficientNet_B1_240.pth", map_location=torch.device('cpu'))
model.load_state_dict(w['model_state_dict'])
read image
img = skimage.io.imread('../tests/00027426_000.png')
img = xrv.datasets.normalize(img, 255)[None, :, :]
transform = torchvision.transforms.Compose([xrv.datasets.XRayCenterCrop(),
xrv.datasets.XRayResizer(224)])
img = transform(img)
img = torch.from_numpy(img).unsqueeze(0)
Add fake color channels
img = img.repeat(1,3,1,1)
model(img).shape.  # outputs torch.Size([1, 1000])
—
Reply to this email directly, view it on GitHub https://github.com/linhduongtuan/Tuberculosis_ChestXray_Classifier/issues/2#issuecomment-1374321204, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ27GFISF6DF2YL3LKUZDWRC5RVANCNFSM6AAAAAATP773NM.
You are receiving this because you commented.

Is there a way you can create a working example running with the pre-trained weights? Specifically naming the output predictions so I don't mess them up. My goal is to add your model so that other researchers can compare against the exact models you used.


feat: keplr chain infos

Adds 2 functions to facilitate adding unsupported chains on Keplr. Fetch data from Cosmos chain registry, format that data in Keplr's info format.

Updated, see above.
Adds chain info for Keplr, this config is generated with a script. This is to facilitate adding unsupported chains on Keplr.
Not very sure about how we want to expose it, current:
import Chaininfos from "cosmes/chaininfos/keplr"

Maybe just cosmes/keplr instead would be better if no other wallets need similar info.

Closed in favor of https://github.com/coinhall/cosmes/pull/12


Regex rules and rule collections (including global rules), imports and exports

Hello Tommi and all
I have some questions about "good management" practice with regex rules and how to best manage them.
Here are some observations - hence the question marks - for you to comment on please to say if I'm right or wrong, is there a better method or that I have misunderstood something.

I should NOT create them with a trained MT engine as I have to retrain such engines after every job and I risk losing them when I delete the old trained engine?

So I should perhaps save them to a with an installed model that I then use for training but would they be automatically transferred to the new trained MT engine?

I started to play around with all this and exported a few rules and collections to see if I could reimport them into another trained MT engine but here I got a real shock as when I looked at the collections/rules that I had saved to my special folder, they had names like "63e8e851-3936-49f8-9c3d-125476b5033e.yml" . And NotePad ++ does not seem to like opening them. It takes a long time but once open, I can see what each file contains. But on reimport, I have to remember or note down what all these files contain and then hunt for the right one(s). This was mind blowing and I only had a few collections/rules on my desktop
Furthermore, there was no clear sign in the file as to what installed model the rule/collection had come from (French or Swedish to English). So I guess that I should always put this in the name of the regex rule/collection name and perhaps save them to different sub-folders in future

To resume, this was just a first test run and I hope to get better, but I can see that creating rules and collections might need careful planning and I'm particularly concerned about the long "non-transparent" names individual rules and collections are given, making reimport very confusing
Any advice please?
Thanks in advance
Dave Neve

Those are good points, I'll have to make the system more friendly with descriptive names.

Thanks Tommi
I think I can get around the other problems too if we can add to or create the names. Then we can add stuff like FR (French) and SE (Swedish) as some rules have exactly the same description as they do the same thing, but the regexes themselves are different due to the layout of the languages (such as with numbers)
Do you think this enhancement will be ready by next Monday ? (English humour 😂😂😂)
Have a nice weekend
Dave Neve

Any progress?


[Unity] Update 2021.1

@Evernow could you also update 2020 and 2019's latest versions in this PR ?
Unity 2020.3.19
Unity 2019.4.31


fix(client): update display prop on element

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #42861

Fix
Removes unneeded display prop and adds display:block to anchor (first commit)
Refactor
There is some duplicated css due to how the components were build. Refactor to reuse code (second commit)
Updates
Visually it should remain the same except for non donated and non contributors. For consistency with others states, the border has not been removed (see images).

menu-button.tsx

Removed span wrapper since it is not needed

auth-or-profile.tsx

The badge color being applied to the Link element was removed since the logic to manage the badge color already exists in the component AvatarRenderer avoiding duplicated css class names on parent and child
Remove the size props passed to AvatarRenderer since it seems to not be used

Camper.tsx

The wrapper and AvatarRenderer had the same avatar-container class causing some readability confusion. So the wrapper class was renamed to avatar-camper, now css reads .avatar-camper .avatar-container

General

Sort css and js props
Update tests

Navigation

Profile page (light and dark)

Resolved conflicts

Thanks for the refactor and fix @victor-duarte.


fix: Don't mark files without conflict markers as unmerged

#1763

Once again having trouble with Nix :sweat_smile:
error: creating directory '/nix/store': Permission denied
error: creating directory '/nix/store': Permission denied

OK now I just have to find out how to write a test for this :melting_face:

OK now I just have to find out how to write a test for this 🫠

Doing the same change in the template's new version and a generated project before updating should be enough to trigger this bug I think.

@pawamoy It doesn't pass when I run it on latest master:
====================================================== FAILURES ======================================================
__________________________ test_3way_merged_files_without_conflicts_are_not_marked_unmerged __________________________
[...]
        with local.cwd(dst):
            lines = git("status", "--porcelain=v1").strip().splitlines()
>           assert not any(
                line.startswith("UU") and normalize_git_path(line[3:]) == filename
                for line in lines
            )
E           assert not True
E            +  where True = any(<generator object test_3way_merged_files_without_conflicts_are_not_marked_unmerged.<locals>.<genexpr> at 0x107543a00>)

tests/test_updatediff.py:91: AssertionError

Thanks for testing! Weird, can't make it fail locally. Have commented the fix to see how the test behaves in CI.

You need to add back what the patch replaced when commenting it out, otherwise the test will pass:
conflicted.append(fname)

OMG of course. Thanks :melting_face:

Properly failing locally without the fix. Ready for review then! Thanks @lkubb, really appreciate the speedy help!

Codecov doesn't like me. Here it says -0.11% and when I click on their link it says +0.02%...


Can not watch attrs with script setup

Version
3.1.4
Reproduction link
link
Steps to reproduce
Sorry, my English is poor.
import useAttrs then watch attrs, watch method doesn't work.
监听 useAttrs 的值，当值发生变化后，监听不生效。使用已弃用的 defineProps 可以正常监听。
What is expected?
working fine
What is actually happening?
doesn't work

Attrs are non-reactive and can only be used in render functions. They are not a replacement of props. If you want to watch it reactively you need to use props.


De-emphasize non-Open crashes.

Describe the solution you'd like
Visually de-emphasize non-Open crashes in the Diagnostics/Issues interface. Medium gray for Closed and Light gray for Ignored? Something like that. Make it easy to scan the list for the ones you need to worry about.
Describe alternatives you've considered
Sticky filters settings, separate groups.
Additional context
This may go along with #854 and #258 or be an alternative to them. Sticky filters would be very helpful anyway, but even when the filters are off, being able to pick out the open crashes more easily would be helpful.

Thanks @BioTurboNick for sharing your user scenario! Getting @winnieli1 to take a look


build_cmd breaks with AttributeError: 'tuple' object has no attribute 'startswith'

The commit https://github.com/SublimeLinter/SublimeLinter3/commit/c4f8e7b1fc2d1c7a5eb749a4fef355bd7a66ff16 broke my build.
Here is the full stack trace:
Traceback (most recent call last):
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/queue.py", line 65, in loop
    self.lint(view_id, timestamp)
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/queue.py", line 111, in lint
    self.callback(view_id, timestamp)
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/sublimelinter.py", line 119, in lint
    Linter.lint_view(view, filename, code, hit_time, callback)
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/linter.py", line 924, in lint_view
    linter.lint(hit_time)
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/linter.py", line 1369, in lint
    cmd = self.get_cmd()
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/linter.py", line 1119, in get_cmd
    return self.build_cmd()
  File "/home/pmourlanne/.config/sublime-text-3/Packages/SublimeLinter/lint/linter.py", line 1171, in build_cmd
    cmd[0:1] = util.convert_type(os.path.abspath(path), [])
  File "./posixpath.py", line 379, in abspath
  File "./posixpath.py", line 64, in isabs
AttributeError: 'tuple' object has no attribute 'startswith'

The issue is that path, in my case, is equals to ('/usr/bin/python3', '/usr/local/bin/pyflakes').
(A fix for me was to rollback the offending commit)

I just pushed 618e371e69d034eeea60e206add89d02b4e832cd, could you check that this does in fact correct your issue. I've done some tests, but want to double check. Thanks!

did a little more testing and feel relatively safe. Pushed in v3.6.1
Reopen or comment here if this issue is not resolved once you have tested v3.6.1

I just upgraded to 3.6.1 and it works again.
Thanks!


Don't inject session id into every User;  auth whoami returns user profile

Fixes #745.
Discovered almost everywhere that it assumes that instantiating a User should imply the User for the session. I cleaned that up, though it seems like some memberships (like UserOrganizationMemberships) also assumes the memberships are for the session. Instead, we should be explicit about walking these relationships down, e.g. $sessionUser->organizationMemberships->etc instead of instantiating  OrganizationMemberships and expecting it to belong to the sessionUser.

Every use Terminus\Models\User; statement is now obsolete except in Session. Otherwise +1


Not processing any files

Manga Tagger doesn't seem to be able to parse any files, I get this error in logs
2020-12-12 15:07:52,029 | Thread-1 10756 | MangaTaggerLib.utils.SeriesHandler | DEBUG - Event Type: created
2020-12-12 15:07:52,029 | Thread-1 10756 | MangaTaggerLib.utils.SeriesHandler | DEBUG - Event Path: C:\Downloads\Temple\Chapter 001.cbz
2020-12-12 15:07:52,030 | Thread-1 10756 | MangaTaggerLib.utils.SeriesHandler | INFO - Creation event for "C:\Downloads\Temple\Chapter 001.cbz" will be added to the queue
2020-12-12 15:07:52,031 | MTT-7 16548 | MangaTaggerLib.utils.QueueWorker | INFO - Pulling "file created" event from the queue for "C:\Downloads\Temple\Chapter 001.cbz"
2020-12-12 15:07:54,042 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | INFO - Now processing "C:\Downloads\Temple\Chapter 001.cbz"...
2020-12-12 15:07:54,043 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | DEBUG - filename: Chapter 001.cbz
2020-12-12 15:07:54,043 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | DEBUG - directory_path: C:\Downloads\Temple\
2020-12-12 15:07:54,044 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | DEBUG - directory_name: Temple
2020-12-12 15:07:54,045 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | INFO - Attempting to rename "Chapter 001.cbz"...
2020-12-12 15:07:54,046 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | ERROR - Unable to parse filename "Chapter 001.cbz" due to delimiter "-.-" missing
Traceback (most recent call last):
  File "C:\Manga Tagger\MangaTaggerLib\MangaTaggerLib.py", line 139, in file_renamer
    raise UnparsableFilenameError(filename, '-.-')
MangaTaggerLib.errors.UnparsableFilenameError: Unable to parse filename "Chapter 001.cbz" due to delimiter "-.-" missing
2020-12-12 15:07:54,047 | MTT-7 16548 | MangaTaggerLib.MangaTaggerLib | WARNING - Manga Tagger was unable to process "C:\Downloads\Temple\Chapter 001.cbz"

Haven't changed any naming settings in FMD, running defaults.

I tried with ver 1.0.2 (a53525c) and it worked fine. From what I see in a now-closed issue, that version had trouble parsing CH 100+, but the fixed version 1.0.3 isn't parsing anything for me.
Funnily enough, 1.0.2 works with chapter no. 100+ for me. I'm using mangadex as source btw, not sure if that's related.

Well, the bigger issue is that the manga wasn’t downloaded with the “-.-“ delimiter. Did you use FMD to download, or were you copy/pasting the files into the download directory to tag?
If the latter - I am currently planning CLI support to manually scan and tag comics with metadata, so I would wait a few days for that.
On December 12, 2020 at 7:47:27 AM, notSeaSmoke (notifications@github.com(mailto:notifications@github.com)) wrote:

I tried with ver 1.0.2 (a53525c(https://github.com/Inpacchi/Manga-Tagger/commit/a53525c754ac76120bae6eda5ffc11f4e2b84d84)) and it worked fine. From what I see in a now-closed issue, that version had trouble parsing CH 100+, but the fixed version 1.0.3 isn't parsing anything for me.
Funnily enough, 1.0.2 works with chapter no. 100+ for me. I'm using mangadex as source btw, not sure if that's related.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub(https://github.com/Inpacchi/Manga-Tagger/issues/9#issuecomment-743751065), or unsubscribe(https://github.com/notifications/unsubscribe-auth/ACUOWAT36X2UQBKJZMSCV4LSUNQ57ANCNFSM4UX527RQ).

I did use FMD. No idea why this happened but FMD downloaded it as Chapter 001.cbz. I updated and it seems to download fine now, although I'm not sure what exactly changed. All I remember doing is changing the default location from C:/Downloads to a different drive.

If FMD downloaded it as Chapter 001.cbz, then that means Manga Tagger didn't update FMD's settings.json as it should have, at least initially.
As I'm thinking about it, did you run Manga Tagger before or after running FMD? I imagine that running Manga Tagger afterwords means that FMD didn't take in the new settings as it should have.

Uh, I think I ran it before running FMD, but I had some issues with my database not being properly set up so it didn't work and I had to stop and restart it multiple times. I didn't close FMD during this. Later I restarted FMD while Manga Tagger was running properly so I guess it set the correct chapter format then.
If it's dependent on having that delimiter set, you should mention it in the installation guide and either make the user set it manually or explicitly mention the order in which it has to be run to be set automatically. Right now the part about setting up FMD comes before the installation of Manga Tagger, so if someone is just following the guide they'd have FMD already opened up when Manga Tagger is installed and so this issue would pop up.

Yeah, you're 100% right. I just added this step in the wiki. It's important for FMD to be ran and configured before Manga Tagger, but it should be closed before running Manga Tagger.
Thanks for all the information!


Password manager

Every time I sign into GitHub and go to the password manager, I have to import the file.csv because it is empty.

Details:

--enable-features=ClearDataOnExit

Try toggling that "UnGoogled" flag :stuck_out_tongue_winking_eye: ; I have no issue whatsoever with Password Manager under Sm-v124-r2, including the GitHub account I'm currently posting with; I sign into GH with just a username+password, no passkey or 2FA enabled yet; I use Session Restore and GitHub cookies are kept between browser sessions, so unless I manually sign-out from GH or manually delete GH cookies during a session, I'm kept logged-in session after session (i.e. until log-in-cookies expire or GH, for whatever reason, refuse to recognise my device, e.g. after a UA change or use of a VPN); I haven't enabled auto-login (aka "Sign in automatically"), though, but each time I need to re-login, the browser remembers and presents to me the correct, previously saved, account credentials...

Solved, nothing of the sort...
enable-show-autofill-signatures > Enabled


Window size/location not retained

Expected Behavior
Remember window location and monitor placement.
Current Behavior
Does not remember window size or location, or which monitor it is on.
Steps to Reproduce (for bugs)

Move to 2nd or 3rd monitor.
Close
Restart.

Your Environment

Franz Version used: 5.0.0-beta.16
Operating System and version: Windows 10 Pro 1709 build 16299.248

Same here, my issue started after I updated to version 5.0.0-beta.16.762

Hmm starting today this problem seems to have gone away (without upgrading).  Upon startup my window size/location is now retained.

Duplicate of #222


chore: bdd-nh-1586594589 to 0.0.1

chore: Promote bdd-nh-1586594589 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Format for comprehension

In analogy to formatting match { case => ... } statements it would be awesome if there would be support for for comprehensions, e.g.
for {
  a <- something
  anotherValue <- foo
} yield {
  ...
}

becomes
for {
  a            <- something
  anotherValue <- foo
} yield {
 ...
}

This is going to be really useful if such a capability is there..


Is FM (factorization machines) available in xgboost?

I received this answer from chatGPT about fm in xgboost:

I don't find in documentation fm booster.
Is really chatGPT right?

No, XGBoost does not implement Factorization Machines. It seems like ChatGPT got this one wrong.


Add github action for continuous integration

Per the comment in https://github.com/finos/traderX/pull/204#discussion_r1766598252, I am contributing a GitHub Action to bring continuous integration for the TraderX docker images.

@maoo -- please give this a review, thanks!

@maoo -- please give this a review, thanks!

Spotless 😄
@DovOps - FYI, this github action is supposed - for now - to be manually executed by a TraderX maintainer; could you please review/merge this PR and then run the action? Please let @willtsai know the outcome. Thanks!

@maoo  @willtsai  - I reviewed and merged this change (Thanks for putting this in!) - Action is running now.

The action failed. I didn't catch this - but traderX is case sensitive, and in your paths it's not referenced properly.  This needs fixing.


RFC: Way to differentiate legitimate clients from illegitimate ones

This RFC is to discuss designing a feature that would differentiate legitimate clients from illegitimate ones.
Background
If a hacker were to get onto an Approzium client instance, they could potentially look around the instance and figure out from configuration files that an app is using Approzium. They would have access to the identity credentials in the enclosing environment, and therefore could put together a fully working script pulling a database challenge response from Approzium.
The only way to detect this attack would be using identity. If client applications were designed to only call Approzium once per the lifetime of an instance, then each instance's identity should only be seen once. Then, this attack could be noticed and alerted upon by seeing an instance identity used twice.
We would like to design a way to differentiate between legitimate callers and illegitimate callers so Approzium wouldn't respond to the hacker at all, and would immediately alert upon it.
Current Ideas

A secret that only legitimate callers know, but the hacker does not know. If the hacker doesn't include it, the alert is triggered. This poses the problem of how does the client know the secret and how is it protected from the hacker?
A client call count per instance, combined with a server-side call count per instance. If they don't tie out, alerting on the client and/or server side. This poses the problem of, what if an instance plans to run the Approzium client multiple times, or in parallel?

Here's another option to consider - sequential One-Time Passwords (OTPs). It would work like this:

The person launching the application gains an OTP from Approzium.
When it's used to establish a connection, the OTP is revoked.
All OTPs can be configured to have a length of time to live - so if an application crashes (let's say because a memory dump has been performed by an attacker), they expire before they can be easily discovered and used.
Optionally, Approzium can be configured to respond with a new OTP whenever one is used.
Since all responses are encrypted, the original OTP may live on a file but be dead rather quickly, and all further OTPs live in memory.


Expansions add more required achievements

NOTE: Before you begin working on this, please assign this issue to yourself. If you do not do this, then there's the possibility that 2 people will end up doing the same task, which is not a good use of time.
When expansions are included, the required number of achievements are increased by 1 per expansion that is included.
Additionally, the rules allow for an optional rule where an extra achievement is required for victory.  This can lead to longer and more challenging games.  This feature is supported on isotropic today.

I wasn't aware of that optional rule, but let's not worry about that for the time being. That could be a separate game option that is added later.
I should note, however, that this work is blocked by a game option for the expansion (right now we don't know whether players want to play with Artifacts or not).


is it compatible with macos?

Right now no. I've been meaning to look into experimenting with getting MultiClient working on MacOSX/Linux. I'll give a shot soon

I've got an experimental release @KocakAli, however this doesn't support most things. But you can adjust the amount of clients within it still. HTML5 should also work okay
https://github.com/tabularelf/MultiClient/releases/tag/v1.1.0

Thank you. It works for me


New feature: Normalize map, chan, array, and slice.

Type map, chan, array and slice are special cases in Go. They are first class structs in Go with exceptional generic support. Rat should eliminate such special case.
Rat should treat them as a kind of syntax candy to simplify frequently used data structures. Here is the proposed design. (Constant fields used by Array is defined in #17).
// Defined in package "github.com/go-rat/container/hashmap".
type Hashmap struct {
    KeyType  generic
    ElemType generic
    // unexported fields.
}

// Treat `map` as a syntax candy to instantiate a Hashmap struct.
map[string]int == typeof(Hashmap{string, int})

// Defined in package "github.com/go-rat/container/channel".
type RecvDir struct{}
type SendDir struct{}
ChanDir := RecvDir | SendDir
type Channel struct {
    ElemType generic
    ChanDir ChanDir
    // unexported fields.
}

// Treat `chan` as a syntax candy to instantiate a Channel struct.
chan int == typeof(Channel{int, any})
chan<- int == typeof(Channel{int, SendDir})
<-chan int == typeof(Channel{int, RecvDir})

// Defined in package "github.com/go-rat/container/array".
type Array struct {
    ElemType generic
    const Num int
    // unexported fields.
}

// Treat `[N]type` as a syntax candy to instantiate a Array struct.
[10]int == typeof(Array{int, 10})

// Defined in package "github.com/go-rat/container/slice".
type Slice struct {
    ElemType generic
    // unexported fields.
}

// Treat `[]type` as a syntax candy to instantiate a Slice struct.
[]int == typeof(Slice{int})

Some predeclared functions, including make, append, close, copy and delete, become another kind of syntax candy to simplify calls to function/method declared in container package.
For example, package "github.com/go-rat/container/hashmap" will declare following functions/methods.
// make(map[KeyType]ElemType)
func Make(KeyType, ElemType generic) map[KeyType]ElemType

// make(map[KeyType]ElemType, cap)
func MakeCap(KeyType, ElemType generic, cap int) map[KeyType]ElemType

// v = m[key]
func (m Hashmap) Get(key m.KeyType) m.ElemType

// v, ok = m[key]
func (m Hashmap) TryGet(key m.KeyType) (m.ElemType, bool)

// delete(m, key)
func (m Hashmap) Delete(key m.KeyType)

// len(m)
func (m Hashmap) Len() int

Custom struct cannot work with predeclared functions (.e.g. make). It means that Rat doesn't recommend to reuse predeclared functions. Personally, I don't think defining predeclared functions is a good design. It's a typical case in which an exceptional rule is defined to resolve an exception in design. Let's make exceptions as few as possible.
However, there is no way I can imagine to get rid of new and len. I decide to keep them as it is right now.

After revisiting this issue, I find that it may be too aggressive to use custom structs to redefine all built-in data structures.
Problems:

I cannot find a way to declare a custom struct as array only using struct type syntax. If I really want to get rid of special syntax for array, I have to introduce a new special syntax in struct type. I don't feel it's good.
The Array struct uses a const int value as its length which cannot be validated at compile time. If one uses Array to define a negative length array, Rat cannot report this error as there is no rule to check it. I spend days to design a new syntax to define such constraint but failed.
The Channel uses a ChanDir to define channel direction which is not exactly the same as chan direction in Go. Actually, the sample in above post is buggy. Again, I cannot find a correctly way to define channel type. Maybe it's a another built-in type (just like arrays) that I have to leave it as it is.

Above all, I think it's not the right time to introduce such big and yet buggy feature in Rat.
P.S. My initial intension is to eliminate the need of overloading predeclared functions like make. After I close this issue, I may need to think of overloading issue again.


Intent to change facilitator from @pbakaus to @sbenz

I'd like to make @sebastianbenz the new facilitator for the outreach working group going forward, as he'll be leading day-to-day projects for Google's AMP DevRel team as well.
If there are no objections, I'll implement this change in the next 48 hours.
Thanks!

Let's do it!

Done via 9c0c30d!

There are still some places were this needs to be updated: GitHub repo description and METADATA.yaml.

Good catch @matthiasrohmer. Fixed both!


Add Maintenance Configuration module

PR Checklist

[x] I have added example(s) inside the [./examples/] folder
[x] I have added the example(s) to the integration test list for normal (~30 minutes) or long runner >30 minutes
[x] I have checked the coding conventions as per the wiki
[x] I have checked to ensure there aren't other open Pull Requests for the same update/change?

Description
Add Manages a maintenance configuration module
Does this introduce a breaking change

[ ] YES
[x] NO

Testing

@arnaudlh can you please take a look at this PR?

@arnaudlh can you please take a look at this PR?

thanks @kevindelmont - running examples, I'm getting:
╷
│ Error: Unsupported attribute
│
│   on ../modules/maintenance/configuration/module.tf line 22, in resource "azurerm_maintenance_configuration" "maintenance_configuration":
│   22:     for_each = var.settings.window != null ? [var.settings.window] : []
│     ├────────────────
│     │ var.settings is object with 4 attributes
│
│ This object does not have an attribute named "window".
╵```


How to train a chinese roberta

❓ Questions and Help
Before asking:

search the issues.
search the docs.

I want to train a chinese roberta, following the pretrain tutorial, I was wonder how to generate https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json、https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/vocab.bpe、https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/dict.txt these three file in chinese
I found that the vocab file is different from the one in google's bert
I have try to change script multiprocessing_bpe_encoder.py class MultiprocessingEncoder to use the BertTokenizer, the changing is in the following code, and preprocess the corpus with the google's vocab.txt.
but while I begin to train the roberta, the vocab embedding become [21133, 768], but the google's vocab.txt just have 21128 tokens, fairseq will add special 5 token ? when I convert the weight to the transformer one, I found that tokens are not equal
Another question
I also wonder how to initial the weight by other pretrain chinese bert, because of the token embedding size not equal(21133 != 21128) and max position embedding is also not equal(514 != 512)
Code
class MultiprocessingEncoder(object):

    def __init__(self, args):
        self.args = args

    def initializer(self):
        global bpe
        bpe = BertTokenizer.from_pretrained('bert-base-uncased')

    def encode(self, line):
        global bpe
        subword = bpe._tokenize(line)
        return subword

    def decode(self, tokens):
        global bpe
        return bpe.decode(tokens)

    def encode_lines(self, lines):
        """
        Encode a set of lines. All lines will be encoded together.
        """
        enc_lines = []
        for line in lines:
            line = line.strip()
            if len(line) == 0 and not self.args.keep_empty:
                return ["EMPTY", None]
            tokens = self.encode(line)
            enc_lines.append(" ".join(tokens))
        return ["PASS", enc_lines]

    def decode_lines(self, lines):
        dec_lines = []
        for line in lines:
            tokens = map(int, line.strip().split())
            dec_lines.append(self.decode(tokens))
        return ["PASS", dec_lines]

What have you tried?
What's your environment?

fairseq Version (e.g., 1.0 or master):
PyTorch Version (e.g., 1.0)
OS (e.g., Linux):
How you installed fairseq (pip, source):
Build command you used (if compiling from source):
Python version:
CUDA/cuDNN version:
GPU models and configuration:
Any other relevant information:

Hi, I have met this problem. Have you solved it? If so, please help me! @RyanHuangNLP

fairseq is not so friendly in common usage...  I am wondering how to integrate other Chinese PLM models into fairseq framework too...

My implementation for Chinese bert, may it helps you.
https://github.com/CheungZeeCn/fairseq/blob/master/Sentence_prediction_Chinese_bert_demo.md
@RyanHuangNLP  @zhazhuanling

I implemented Chinese-BERT-wwm/Chinese-RoBERTa-wwm to Fariseq. I perform minimal changes on Fairseq to let it be compatible with (Chinese) BERT based tasks，and provide an option to Chinese Whole Word Masking strategy.
https://github.com/Once2gain/Chinese-RoBERTa-wwm-Fairseq


"Something went wrong. Please try again." when trying to create conversation

I followed the readme to setup this demo app using the Twilio function. I did not use Firebase.
I am able to login successfully, however when I try to create a conversation, a toast appears saying "Something went wrong. Please try again."
Had a wee look to see if I can find out what's going wrong, and found that we are getting the following error in the addConversation method in api.ts
TypeError: Cannot read properties of undefined (reading 'then')
    at _class._callee8$ (client.ts:1070:1)
    at tryCatch (regeneratorRuntime.js:86:1)
    at Generator._invoke (regeneratorRuntime.js:66:1)
    at Generator.next (regeneratorRuntime.js:117:1)
    at asyncGeneratorStep (asyncToGenerator.js:3:1)
    at _next (asyncToGenerator.js:25:1)

This seems to be thrown by the following call:
const conversation = await client.createConversation({
  friendlyName: name,
});

https://gyazo.com/dff0fb9b4a41a3768ce6d0c0d5b96f5c
Perhaps I'm missing something obvious here?

I'm having the same problem. Also I do not see logged in users in Twilio console under registered identities even though access tokens are fine. Maybe some permission problem?
createConversation is failing for me, getSubscribedConversations as well...
client.ts:1050 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'then')
    at _class._callee7$ (client.ts:1050:1)
    at tryCatch (regeneratorRuntime.js:86:1)
    at Generator._invoke (regeneratorRuntime.js:66:1)
    at Generator.next (regeneratorRuntime.js:117:1)
    at asyncGeneratorStep (asyncToGenerator.js:3:1)
    at _next (asyncToGenerator.js:25:1)

which comes from
  public async getSubscribedConversations(): Promise<Paginator<Conversation>> {
    await this._ensureReady;
    return this._conversationsPromise.then((conversations) =>
      conversations.getConversations()
    );
  }

@InfiniteRain pls take a look.

I will check this out ASAP and report back

I tried reinstalling the demoapp using a new token generator function, and everything seems to work fine for me. My suspicion is that there might be some permission defaults. I will investigate further.

I have created new conversations service for demoapp and it seems to me that the permissions are the same as for the default conversations service.

Hey. I followed the readme again and it's now working as expected.
Last time, when I got to step 6 and it asked:

Also navigate to Push configuration and enable all types of notifications for receiving FCM messages

I was using the Dark Reader Chrome extension, and it appeared to me that these checkboxes for these notifications were all enabled. Turns out, they were actually disabled. I'm not sure if this caused the problem though, as I've just tried disabling these again and it still works fine (i.e. I can create conversations, add participants, and communicate with other participants all as expected).
Another difference was that this time I gave user00 and user01 different passwords. Don't believe this would cause such an issue the first time round though.
So, I'm not sure if it was just the process of creating a new token generator function that fixed it. Perhaps @InfiniteRain's suspicion about permission defaults is correct?
PS: This was using the same version of this demo as when I first created this issue (on commit ffc60f193b301b44fe7859ab926c4291b0c621e4)

Finally I have figured it out... the problem was that Conversations service runs in US1 and API keys was created for IE1 (region where we want to use it).
Thanks for heads up, this was simply overlooked.


2021 not working

Please it's possible to fix the script???!!!

oh no!! i need this, is there an alternative?


Move DueIn & User Assignment into Configuration

Steps to reproduce

Drag a task
Click on task
Due In & Users form elements are not aligned with the other form elements

Fixed in https://github.com/ProcessMaker/spark-modeler/pull/373.


Can't get Google Roboto Font

Hi there, I'm a relative newbie so my apologies if this is a mistake on my behalf but my guess is that by default Laravel-Excel tries to get a font from google that doesn't exist (or changed url). I did a fresh install about 30 mins ago and am trying to simply pass a blank sheet to a view.
Controller Code:
Excel::create('Filename', function($excel) {

        $excel->sheet('Sheetname', function($sheet) {
            // Sheet manipulation
            $sheet->loadView('swimclasses.gridoutput');
        });

    })->export('xls');

And here is the error I get:
ErrorException in CssParser.php line 63:
file_get_contents(//fonts.googleapis.com/css?family=Roboto:400,300): failed to open stream: No such file or directory

Just tracked down the code. It's not laravel-excel's fault! Sorry about that!

Glad you find a fix :)


TEXT-205 - Set void return method

Set void return method cos the return values are never used when called

Coverage increased (+0.0007%) to 97.982% when pulling a22b464406aa4c8b8919bc71d812e0da21680fc4 on arturobernalg:feature/TEXT-205 into ad4431078e0b7dc5453f484667b3548dae55beef on apache:master.

Merged now, thanks!


UbuntuStudio 14.04 + Russian keyboard layout

My layouts is configured in xorg.conf.
When 'ru' layout is active all new jitsi dialogs don't work. Example: 'ru' layout active. When an incoming call  pop up dialog with green and red buttons, but when i try to click any of it nothing happened. After return to 'us' layout all dialog's work properly.

I'd guess this a Java problem, but lacking time and Russian language skills, I can't look at it. I know there are issues when trying to switch between keyboards while Jitsi is running - which is AFAIK also a Java problem.

https://github.com/apache/opennlp perhaps. I don't speak enough Russian to matter but I can least read it. or Cyrillic/Greek In General.  could parse multiple keyboards likely a lot cleaner.
I'm a natural Polyglot.. (learning other langs can be often very easy)
Windows or Linux , if its the keyboard , often I'm changing it  IME /IBus /Fcitx/ SCIM /uim
UI dialogs could and input language/s could be more dynamically switched.
Sabayon Gentoo , so I can compile freshly ,  i could kick it about as I have a number of builds to screw with for security tools and fix as far as Ebuilds (packaging scripts to fix)


[Hub Generated] Review request for Microsoft.DigitalTwins to add version stable/2022-05-31

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.

[ ] SDK of .NET (need service team to ensure code readiness)
[ ] SDK of Python
[ ] SDK of Java
[ ] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following apply to the PR so that label "WaitForARMFeedback" will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

I don't know what went wrong, but the changes are not showing up properly since pushing updates to the PR. Here is a list of what has changed w.r.t. 2021-06-30-preview:
digitaltwins.json:

API version reference
Endpoint resource provisioning states include "Updating"
Time Series Database Connection resource provisioning states include "Updating"

Examples:

Updated API versions
Added LRO headers (Azure-Async and Location, as well as Retry-After value)

W.r.t. the last stable version (2020-12-01), the primary changes are the addition of the Time Series Database Connection resource & APIs.

Service has not yet been deployed. Waiting for reviews, and will only merge / request to be merged once service version is available.

@chunyu3 This is ready to be merged!

/azp run


Add u128/i128 == __uint128_t/__int128_t

Necessary for FreeBSD/aarch64's fpregs

maybe some other platforms would like to use uint128_t without underscores idk.. but here uint128_t is only defined in odd headers like sdp.h, and ucontext.h uses the underscored version

This isn't correct. The alignment of u128/i128 do not match int128_t on AFAICT any platform.


admin claim created in the overworld is in the nether too

Maybe it is related to #144

with latest build which show world using /claiminfo:
first screen - in the nether, second - overworld - claim is created in the overworld and may be only in the overworld.

 Test on a clean server.

maybe it is related to #159 because the end dim, wyvern dim and thaumcraft dim without this problem

claim show no world in the nether, i think its gp bug, not corruption of data
claim file content:

# 12.1.7
# # If you need help with the configuration or have any questions related to GriefPrevention,
# # join us at the IRC or drop by our forums and leave a post.
# # IRC: #spongedev @ irc.esper.net ( http://webchat.esper.net/?channel=spongedev )
# # Forums: https://forums.spongepowered.org/
#

GriefPrevention {
    accessors=[]
    builders=[
        e2ac3ce9-73dc-4fc2-a4fe-620990fdfd76,
        "4c37bc3e-3fbe-4ec6-a5d2-0ac8e2de6bc2",
        "9ad47753-0055-4cac-8312-c365be92e6fb"
    ]
    claim-name=spawn
    claim-type=ADMIN
    coowners=[]
    cuboid=false
    date-created="2016-07-16T16:17:23.955Z"
    date-last-active="2016-08-31T18:39:17.378Z"
    greater-boundary-corner="342;0;346"
    lesser-boundary-corner="-347;0;-331"
    managers=[]
    owner-uuid=fb2fe292-eec8-4daa-b7b3-d1ff848111d0
    subdivisions {
        a517a753-0265-4f07-a443-86cfc6da3f56 {
            accessors=[]
            banned-item-ids=[]
            builders=[]
            claim-name=doly
            claim-type=SUBDIVISION
            coowners=[]
            cuboid=true
            date-created="2016-08-14T07:53:22.807Z"
            date-last-active="2016-08-31T18:37:40.479Z"
            greater-boundary-corner="-25;15;64"
            lesser-boundary-corner="-43;3;46"
            managers=[]
        }
    }
    world-uuid=cc30db2a-3ff5-423b-b878-1ef132f5c0ef
}

why GP create in the pex json these entries with world "" ?

             {
                    "contexts": {
                        "world": "",
                        "gp_claim_defaults": "ADMIN"
                    },
                    "permissions": {
                        "griefprevention.claim.flag.exit-claim": 1,
                        "griefprevention.claim.flag.projectile-impact-block": -1,
                        "griefprevention.claim.flag.item-drop": 1,
                        "griefprevention.claim.flag.projectile-impact-entity": -1,
                        "griefprevention.claim.flag.explosion-surface": -1,
                        "griefprevention.claim.flag.fire-spread": -1,
                        "griefprevention.claim.flag.command-execute-pvp": 1,
                        "griefprevention.claim.flag.item-use": -1,
                        "griefprevention.claim.flag.item-pickup": 1,
                        "griefprevention.claim.flag.interact-entity-secondary": -1,
                        "griefprevention.claim.flag.command-execute": 1,
                        "griefprevention.claim.flag.interact-entity-primary": -1,
                        "griefprevention.claim.flag.pvp": -1,
                        "griefprevention.claim.flag.entity-teleport-to": 1,
                        "griefprevention.claim.flag.interact-inventory": -1,
                        "griefprevention.claim.flag.portal-use": 1,
                        "griefprevention.claim.flag.collide-block": -1,
                        "griefprevention.claim.flag.entity-damage": 1,
                        "griefprevention.claim.flag.block-place": -1,
                        "griefprevention.claim.flag.collide-entity": -1,
                        "griefprevention.claim.flag.explosion": -1,
                        "griefprevention.claim.flag.entity-spawn": 1,
                        "griefprevention.claim.flag.interact-block-secondary": -1,
                        "griefprevention.claim.flag.entity-teleport-from": 1,
                        "griefprevention.claim.flag.interact-block-primary": -1,
                        "griefprevention.claim.flag.liquid-flow": -1,
                        "griefprevention.claim.flag.enter-claim": 1,
                        "griefprevention.claim.flag.entity-riding": 1,
                        "griefprevention.claim.flag.block-break": -1
                    }
                },
                {
                    "contexts": {
                        "world": "",
                        "gp_claim_defaults": "BASIC"
                    },
                    "permissions": {
                        "griefprevention.claim.flag.exit-claim": 1,
                        "griefprevention.claim.flag.projectile-impact-block": -1,
                        "griefprevention.claim.flag.item-drop": 1,
                        "griefprevention.claim.flag.projectile-impact-entity": -1,
                        "griefprevention.claim.flag.explosion-surface": -1,
                        "griefprevention.claim.flag.fire-spread": -1,
                        "griefprevention.claim.flag.command-execute-pvp": 1,
                        "griefprevention.claim.flag.item-use": -1,

nether have no name:

[21:34:14] [Server thread/INFO] [FML]: Loading dimension 1 (DIM1) (DedicatedServer)
[21:34:15] [Server thread/INFO] [THAUMCRAFT]: Creating aura cache for world 1
[21:34:15] [Server thread/INFO] [FML]: Loading dimension -17 (MoCWyvernLair) (DedicatedServer)
[21:34:15] [Server thread/INFO] [THAUMCRAFT]: Creating aura cache for world -17
[21:34:15] [Server thread/INFO] [FML]: Loading dimension -42 (The Outer Lands) (DedicatedServer)
[21:34:16] [Server thread/INFO] [THAUMCRAFT]: Creating aura cache for world -42
[21:34:16] [Server thread/INFO]: Preparing start region for level 0 (world)
[21:34:17] [Server thread/INFO]: Preparing spawn area: 50%
[21:34:18] [Server thread/INFO]: Preparing start region for level -1 ()
[21:34:18] [Server thread/INFO]: Preparing start region for level 1 (DIM1)
[21:34:19] [Server thread/INFO]: Preparing start region for level -17 (MoCWyvernLair)
[21:34:19] [Server thread/INFO]: Preparing start region for level -42 (The Outer Lands)

when do /world list:
[21:34:25] [Server thread/INFO] [io.github.hsyyid.essentialcmds]: [Server] executed command world list
[21:34:25] [pool-2-thread-1/INFO]: ------------------- Showing Worlds --------------------
[21:34:25] [pool-2-thread-1/INFO]: MoCWyvernLair
[21:34:25] [pool-2-thread-1/INFO]: DIM1
[21:34:25] [pool-2-thread-1/INFO]:
[21:34:25] [pool-2-thread-1/INFO]: world
[21:34:25] [pool-2-thread-1/INFO]: ------------------------ « » -------------------------

[21:34:18] [Server thread/INFO]: Preparing start region for level -1 ()
is problem.
wiping nether solved this issue and related too.
Thanks for help!