frontend-plugin-api: return output from extension factories instead

Hey, I just made a Pull Request!
Tbh this just feels way cleaner and I think we should try it 😅
The reason we did not design it like this to begin with is that it allows for more flexibility in the API evolution where we can provide multiple different arguments to the factory function and also deprecate old ones.
Except for being a bit more clear, we also hope that this will allow us to compose extension creation functions a bit better, since one factory can forward the outputs of another.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@freben yep I'm actually thinking of this as challenging the simplicity a little bit. As in can we get away with keeping it this simple or is more stuff gonna creep in? While we're still in an experimental and alpha phase I thinks it's best to err on the side of "too simple" and we can adjust if needed as we review APIs for a stable release.


Retrying setup: OpenWrt communication error:

I followed the tutorial, but I can't understand this line, where, and how to do it.
Change password: passwd hass

Is default password "hass"
https://github.com/kvj/hass_openwrt#ubus-configuration

Nope.
The command passwd hass changes a password of user hass. There's no default password (if you manually add lines to the /etc/passwd)

and answering your question, passwd hass is a shell command. So you execute it from the command line

Nope. The command passwd hass changes a password of user hass. There's no default password (if you manually add lines to the /etc/passwd)

I added those line via Winscp.

and answering your question, passwd hass is a shell command. So you execute it from the command line

so to set topsecertpassword I have to issue following command from ssh
passwd hass topsecertpasswor

I ran the command as following
root@OpenWrt:~# passwd hass
Changing password for hass
New password:
Retype password:
passwd: password for hass changed by root
root@OpenWrt:~#

and used the following configuration

but

The issue seems to be the SSL certificate, how to fix that? On chrome I download the certificate and followed the official method mentioned in OpenWrt wiki, but how to get that certificate for HA?
This error originated from a custom integration.

Logger: custom_components.openwrt.coordinator
Source: custom_components/openwrt/ubus.py:93
Integration: OpenWrt (documentation, issues)
First occurred: 10:24:08 PM (10 occurrences)
Last logged: 10:33:24 PM

Device [OpenWrt] async_update_data error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "/usr/local/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/local/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /ubus (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/openwrt/ubus.py", line 90, in _api_call
    response = await self.executor_job(post)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/openwrt/ubus.py", line 84, in post
    return requests.post(
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
    history = [resp for resp in gen]
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
    history = [resp for resp in gen]
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
    resp = self.send(
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 563, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /ubus (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:997)')))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/config/custom_components/openwrt/coordinator.py", line 243, in async_update_data
    self._apis = await self.load_ubus()
  File "/config/custom_components/openwrt/coordinator.py", line 232, in load_ubus
    return await self._ubus.api_call("*", None, None, "list")
  File "/config/custom_components/openwrt/ubus.py", line 44, in api_call
    await self._login()
  File "/config/custom_components/openwrt/ubus.py", line 48, in _login
    result = await self._api_call(
  File "/config/custom_components/openwrt/ubus.py", line 93, in _api_call
    raise ConnectionError from err
ConnectionError

I have the same issue with the self signed certificate. Is there any way to by-pass the certificate validation ?

I can skip the certificate validation step probably, but out of curiosity, why do you need ssl/https with self-signed certificates in your setups?

I can skip the certificate validation step probably, but out of curiosity, why do you need ssl/https with self-signed certificates in your setups?

it was recommended for remote access of LUCI.


Something is very screwy with thaliPeerPoolManager or maybe thaliReplicationPeerAction

See https://raw.githubusercontent.com/ThaliTester/TestResults/826421844c75f89_The_replacement_for_vNext_yarong_417_1__vNext_yarong_780___vNext_yarong_812_yaronyg/build.md for the output of my latest build on vNext_yarong_417_812.
Do a search for "TEST_LOGGER:[PROCESS_ON_EXIT_FAILED]"
We have an uncaught exception from thaliPeerPoolDefault on line 78. This exception was thrown while running 'Coordinated pull replication from notification test'. And from looking at the log it looks like one of the two nodes in the coordinator test successfully completed the test but at least one of the others threw.
So looking at the logs it looks like everybody starts advertising and the first thing to go wrong is that we get a document update conflict. That really shouldn't be possible. All the IDs are unique. But I'm going to focus for the moment on the actual unhandled exception.
There is a race condition possible here where we call thaliPeerPoolDefault.stop() and then thaliPullReplicationFromNotification is still going and tries to enqueue something after we stopped and that would be 'bad'. Right now our exit function stops the peer pool but it doesn't stop thaliPullReplicationFromNotification. That doesn't happen until teardown. So we'll just do it in exit so we can stop that particular exception.
But now I'm getting hangs when I try to run the coordinated tests, with or without the change I made to call thaliPullReplicationFromNotification.stop. I just had tests hang on '#ThaliPeerPoolInterface - make sure that stop removes all actions" I actually got an undefined error. But I don't know where or from whom.
Then I got an error from testThaliReplicationPeerAction."Do something and make sure we time out". I get a bunch of document conflicts including a replication resume and got paused with - log messages and an undefined!
Something is seriously wrong here with thaliPeerPoolInterface and/or the replication peer pool action.
Here is the log:
186. Do something and make sure we time out
186. Do something and make sure we time out
186. Do something and make sure we time out
{ [conflict: Document update conflict]
status: 409,
name: 'conflict',
message: 'Document update conflict',
error: true }
{ [conflict: Document update conflict]
status: 409,
name: 'conflict',
message: 'Document update conflict',
error: true }
{ [conflict: Document update conflict]
status: 409,
name: 'conflict',
message: 'Document update conflict',
error: true }
undefined
2016-08-30T00:22:24.479Z - info: Socket to device 7f71e235-4637-4acd-9e22-e38aafc5ce53 disconnected: transport close
DEBUG thaliReplicationPeerAction: Replication resumed
DEBUG thaliReplicationPeerAction: Replication resumed
DEBUG thaliReplicationPeerAction: Got paused with -
ok 792 should be equal
DEBUG thaliReplicationPeerAction: Got paused with -
ok 795 should be equal
ok 793 action should be killed
ok 794 Error should be timed out
teardown
ok 796 action should be killed
ok 797 Error should be timed out
teardown
Note that there are just two teardowns.
My guess is that the undefined is the key to all of this.

So the order of stop is not right. So we have to call:

thaliPullReplicationFromNotification.stop()
thaliSendNotificationBasedOnReplication.stop()
thaliPeerPoolInterface.stop()
ThaliMobile.stopAdvertisingAndListening()
ThaliMobile.stopListeningForAdvertisements()
ThaliMobile.stop()


Bugs related to usernames

Today I ran into a couple of bugs related to usernames on a JupyterHub deployment (GitHub OAuth, automatic user account creation (adduser).

Some students had usernames with CamelCase and other chars -.
When I used the Admin pages to add such a user, adduser failed (could see in the logs) because the format didn't match the allowable regexp (Ubuntu 15.04 default).
But, after that failed attempt, adding users with valid usernames also failed, until I restarted the server.

Possible steps to take:

Normalize usernames (lowercase, strip other chars).
Add the --force-badname option to all adduser calls  to get the system to accept the usernames.
Better error handling so this error doesn't mess up the servers state like that.
Better error reporting so admins can see what is going on better.

I'm most curious about how one bad name could get it stuck in a bad state that would prevent creating new users. I'm looking into that one now. The other issues probably belong in the LocalGitHubAuthenticator.

Fixed the reused user issue in #371. What would you like as an error message in the UI? Should it contain the full traceback, just the error string, or "See server logs for more details"?
As for what to do in the LocalGitHubAuth about usernames, I think it was only the camelCase users that caused the problem. When I tested, the hyphens were not considered an issue. Did you see something different? What would you prefer do do about that? I see a few options:

normalize to lowercase for all usernames always
normalize to lowercase in the base LocalAuthenticator (seems like too much to me)
normalize to lowercase always with GitHub OAuth (GitHub usernames are not case sensitive, though they can have a reference case for display)
normalize only on LocalGitHubOAuth

Any other options?

I didn't test to see if names with - failed as well. Mainly the camel
case.
I think the options you describe are pretty comprehensive.
I think the main factor I am thinking about is that any Authenticator which
can create users:

Should have a clear specification of what types of usernames are allowed.
When the Admin pane is used to add a user that doesn't match that format,
we tell the admin "Sorry, that username has invalid characters."

Furthermore, any Authenticator that can create users which accepts
usernames from another service (such as GitHub):

Should either 1) accept all valid usernames that service supports
(--force-badname in adduser) or 2) normalize the names to be acceptable to
adduser. I think that --force-badname is probably a --bad-idea in general
though.
Should also warn appropriately on the Admin page.

Seems like there are two related change then:

Allow some Authenticators to have a regular expression that is used to
match usernames
Have a normalization API that Authenticators can override for doing
normalizations that are appropriate.

On Wed, Jan 6, 2016 at 6:34 AM, Min RK<EMAIL_ADDRESS>wrote:

Fixed the reused user issue in #371
https://github.com/jupyter/jupyterhub/pull/371. What would you like as
an error message in the UI? Should it contain the full traceback, just the
error string, or "See server logs for more details"?
As for what to do in the LocalGitHubAuth about usernames, I think it was
only the camelCase users that caused the problem. When I tested, the
hyphens were not considered an issue. Did you see something different? What
would you prefer do do about that? I see a few options:

normalize to lowercase for all usernames always
normalize to lowercase in the base LocalAuthenticator (seems like
too much to me)
normalize to lowercase always with GitHub OAuth (GitHub usernames
are not case sensitive, though they can have a reference case for display)
normalize only on LocalGitHubOAuth

Any other options?
—
Reply to this email directly or view it on GitHub
https://github.com/jupyter/jupyterhub/issues/369#issuecomment-169338196.

--
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

I think both proposals are a good idea. I wouldn't use the username regex on local usernames, though, since the underlying user creation already does this, and there's always a chance for the two to get out of sync. There is already an informative error on a bad username, we just don't propagate it to the UI.

Should be all set in #373


Keyboard input stops working in other console(s) after exiting wireshart

Steps to Reproduce:

Log in on terminal 1
Run wireshart
Press ALT+F2 (or ALT+RIGHT ARROW) to switch to terminal 2
Press ALT+F1 (or ALT+LEFT ARROW) to switch back to terminal 1
Press CTRL+C to exit wireshart
Press ALT+F2 (or ALT+RIGHT ARROW) to switch back to terminal 2
Try typing in the shell, but characters won't appear

NOTE: In step 3, we can switch to other terminals as well and they will also be affected after step 5.

The problem does not occur when mouse buttons are used for switching consoles.


.NET SDK of Sync Api not correctly deserializing JSON

Brief bug description
When sync api recognizes changes and we try to retrieve the changes with the help of the .NET SDK we get an empty response back.
But when we look at the JSON of the response, we are noticing that the entire data is correctly there.
We suspect that the deserialization of the JSON item to the ISyncItem is not correctly done.
Screenshots

the model differed from the API response format, without mapping implemented to account for that. I adjusted the model to match sync API response, content item information is now nested in Data property.
a strongly typed item can be retrieved from newly introduced StronglyTypedData property, as long as a TypeProvider is registered and can found a suitable model. the property is null otherwise


Support Scatter charts

First of all thanks for this amazing library. Would it be possible to add Scatter type charts to existing supported ones? http://www.chartjs.org/docs/latest/charts/scatter.html

@jithin1987
From docs,

To use a scatter chart, data must be passed as objects containing X and Y properties

That's all you need.

@intrueder yes, that makes sense. But while translating chartjs directly to react code, I was expecting this to work:
import { Scatter } from 'react-chartjs-2';

Which would have been equivalent to what you write in vanilla js: var scChart = Chart.Scatter(canvas, {...}).
Chart.Bar, Chart.Line, etc are exposed, so why not Chart.Scatter too? Just to be clear, I don't have a big problem with using Line for scatter chart per se, but for clarity and equivalence with chartjs API, it might be a good to have...

FYI, there are some more settings involved for rendering a proper scatter chart using line charts. Refer to the defaults in this PR: https://github.com/chartjs/Chart.js/pull/4381


Plot app: failed attempts to delete annotations sometimes spin forever

On facebase, the Image_Annotation table has a static acl that results in "null" update and delete permissions for the facebase-writers group, and a dynamic acl that gives update and delete permissions to the project-specific group associated with each record.
If a user in the facebase-writers group but not in the project-specific group associated with a record brings up the plot app on the associated image, then they'll see the update icon next to the annotation; if they click on that, they'll see the trash can icon, and if they click on that, the app will attempt to delete the Image_Annotation record, and that attempt will fail with a 403. All this is correct behavior. The problem is that instead of producing an error message after the failure, the app just shows the "saving changes" spinner forever.
If you need to be set up with permissions to test this out on facebase, @bugacov can help.

With the recent changes in Chaise, viewer app will now properly look for dynamic ACLs to show/hide the delete and edit buttons. So you should not be able to see the delete button in this scenario anymore.
I tested this on Facebase and it's working as expected now. So I'm going to close this issue. Please feel free to create new issue in Chaise repo for viewer-related issues.


journeycard welcome changes

Add a wave button
Change which buttons show up
Change nearby system message

cc @keybase/react-hackers

I think this is an unrelated type failure that occurs in master as well
stories/prop-providers.tsx(67,84): error TS2741: Property 'onBlockConv' is missing in type


feed_seetings: Modify the channel feed text for muted topics

Overview: This pull request updates the channel feed to display different text for muted topics. The changes ensure that users can don't get confused when there is a message only in the muted topics.
Fixes: #31601
When the topics are not muted (same):

Before
After

When the topics are muted:

Before
After

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

This doesn't pass tests and uses and approach that doesn't make sense, closing.


use HTTPs instead of HTTP to access the application?

Hi,
I have a domain with https enabled. I installed the application with the docker-compose method. I can access the Linkding with HTTP (.e.g http://mysite.com:9090), but with the https version, it showed 'The connection has timed out' error.
My hosting server is an apache server, I can access the default page with https://mysite.com.  Here is the docker-compose.yml file I used:
version: '3'

services:
  linkding:
    container_name: "${LD_CONTAINER_NAME:-linkding}"
    image: sissbruecker/linkding:latest
    ports:
      - "${LD_HOST_PORT:-9090}:9090"
    volumes:
      - "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data"
    env_file:
      - .env
    restart: unless-stopped

How to update this file to ensure I can access linkding by https://mysite.com:9090?
Thanks!

I have no experience with Apache, so I can't comment on that. However one thing that won't work is accessing the application through: https://mysite.com:9090/. HTTPS always uses port 443.
What you should do instead is setup a reverse proxy to a subdomain like https://linkding.mysite.com, you would have to consult the Apache docs or a tutorial on how to do that.

thank you for the quick response. I will take a look what you've suggested.


Errpr with wkspintrospect.dll

When I try to run demo_inference.py  I get the following error message: (MAtlab 2017b is installed with the proper Matlab RunTime)
Can't load 'C:\Program Files\MATLAB\R2017b\bin\win64\wkspintrospect.dll':
Error in ctfroot (line 15)
Error in checkRequiredMCRProducts (line 14)
Traceback (most recent call last):
File "demo_inference.py", line 27, in
matlabLib = STNeuroNetPkg.initialize()
File "C:\Users\ocsai.katalin\AppData\Local\Continuum\anaconda3\envs\stneuronet\lib\site-packages\STNeuroNetPkg_init_.py", line 301, in initialize
return pir.initialize_package()
File "C:\Users\ocsai.katalin\AppData\Local\Continuum\anaconda3\envs\stneuronet\lib\site-packages\STNeuroNetPkg_init.py", line 249, in initialize_package
package_handle.initialize()
File "C:\Program Files\MATLAB\R2017b\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\deployablepackage.py", line 33, in initialize
mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path)
SystemError: Can't load 'C:\Program Files\MATLAB\R2017b\bin\win64\wkspintrospect.dll'

I'm guessing it might be a path issue. Make sure MATLAB and MATLAB Runtime have been added to your system path.

I'm having the same issue, and my path variable leads to where the wkspintrospect.dll file is. Can you look further into the issue? Thank you.

@soltanianzadeh  I have checked everything, the path is correct. Moreover I have uninstalled and reinstalled Anacoda but the error is still the same. If anyone can help me that would be really appreciated. The paper seems to be great, it  would be very nice if I could use it on our own data.

I ran into the same problem. Can you look into it please?

@soltanianzadeh  Could you please provide me information about the version of Windows you use? Many thanks in advance!

@Kata5 I have Windows 10.
@mtugsbayar @maraid I will look into it and post here when I find a solution. Meanwhile, you can use the provided MATLAB demos to run through the pipeline.

@soltanianzadeh Is there any way simply to use your already trained network on new data without downloading Allen Dataset, etc? I still have the problem with wkspintrospect and if it is not necessary I would not try to run the training code from MATLAB demos so that just to have a single try on new data

@soltanianzadeh, I would also be happy if I could run just a very short demo on any data without editing demo_config_empty.ini.
Or in last case: it would be also enough if you could provide me only a movie in which STDneuroNet finds Ca sources on any data, just to have a short illustration how it works. (could not find in supplementary)
If anyone can screencast and provide me a movie that would me much appreciated. I would just like to decide whether it is worth to try to work with this repo or not.
Thank you very much in advance!

@Kata5 @mtugsbayar @maraid  I think I have figured out what the problem is. The wkspintrospect.dll error could have been caused by h5py, which gets called when importing niftynet.  To verify this is the case for you, try the following:
import STNeuroNetPkg
import matlab
matlabLib = STNeuroNetPkg.initialize()
import h5py

If you get the error  AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__', then h5py is the source of error. To solve this, make sure you only have the latest version of h5py installed. Uninstall h5py and then reinstall with pip install h5py.
Hope this solves the issue!

@Kata5 I have uploaded a short tutorial here. Hope it helps.

@soltanianzadeh Thanks for the response. It seems like a problem with h5py, but I'm getting a different error:
File "", line 1, in
File "C:\Users\mtugsbayar\AppData\Local\Continuum\anaconda3\envs\stneuronet\lib\site-packages\h5py_init_.py", line 36, in
from ._conv import register_converters as _register_converters
File "h5py\h5r.pxd", line 21, in init h5py._conv
File "h5py_objects.pxd", line 12, in init h5py.h5r
File "h5py_objects.pyx", line 1, in init h5py._objects
ImportError: DLL load failed: The specified procedure could not be found.
Uninstalling and installing the latest version of h5py does not resolve the issue

@mtugsbayar can you report the output of conda list ?

Sure.  Try cond uninstall h5py and then pip install h5py

@soltanianzadeh I did download h5py through pip, but I've abandoned the windows install and I'm currently doing it on linux, since that seems to work smoother for me. Thank you!

@Kata5 @mtugsbayar @maraid I think I have figured out what the problem is. The wkspintrospect.dll error could have been caused by h5py, which gets called when importing niftynet. To verify this is the case for you, try the following:
import STNeuroNetPkg
import matlab
matlabLib = STNeuroNetPkg.initialize()
import h5py

If you get the error  AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__', then h5py is the source of error. To solve this, make sure you only have the latest version of h5py installed. Uninstall h5py and then reinstall with pip install h5py.
Hope this solves the issue!

@soltanianzadeh , thank you for the response. I've just tried these code lines but I got exactly the same error as before
(stneuronet3_5) C:\STNeuroNet\STNeuroNet>python demo_inference.py
Can't load 'C:\Program Files\MATLAB\MATLAB Runtime\v93\bin\win64\wkspintrospect.dll': not foundˇ.
Error in ctfroot (line 15)
Error in checkRequiredMCRProducts (line 14)
Traceback (most recent call last):
File "demo_inference.py", line 26, in
matlabLib = STNeuroNetPkg.initialize()
File "C:\Users\xx\AppData\Local\Continuum\anaconda3\envs\stneuronet3_5\lib\site-packages\STNeuroNetPkg_init_.py", line 301, in initialize
return pir.initialize_package()
File "C:\Users\xx\AppData\Local\Continuum\anaconda3\envs\stneuronet3_5\lib\site-packages\STNeuroNetPkg_init.py", line 249, in initialize_package
package_handle.initialize()
File "C:\Program Files\MATLAB\MATLAB Runtime\v93\toolbox\compiler_sdk\pysdk_py\matlab_pysdk\runtime\deployablepackage.py", line 33, in initialize
mcr_handle = self.__cppext_handle.startMatlabRuntimeInstance(self.__ctf_path)
SystemError: Can't load 'C:\Program Files\MATLAB\MATLAB Runtime\v93\bin\win64\wkspintrospect.dll': not found.

@Daniel0520 Try installing the following version of packages:
cython    0.24.1
h5py       2.7.0
scipy       1.3.1
lxml         4.2.5
python    3.5


Sidemenu blinking when resizing window

When you're resizing the window the sidemenu will change as well and starts resizing. The problem is that's starting to blink because of rebuilding the UI.

Hey, I made some PRs which should have solved this issue. You can clone package from my fork and see if the issue still persists. Let me know if you face issue.                          If you installed the package from here, then the issue can occur because the published version is old doesn't reflects the recent PRs.

Will check asap and let you know!

It seems I'm already using this version but blinking still happens :/

@aditya113141 why you don't open a pull request here?

Seems to be working. At least it fixed this problem!


Request for Animation Editing Support  Description

Please add animation editing to Image Toolbox. It should:

Convert videos to various animated formats, including AVIF, with both lossless and lossy options.
Support converting between different animation formats, including AVIF, with both lossless and lossy options.

Thank you.

I will not add videos here


Refactor Events table date/time handling per #73.

Description
Fixes #73
Type of change

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Change Status

[x] Complete, tested, ready to review and merge

How Has This Been Tested?

[x] Ran migrate:up/down numerous times, confirming results in DB table.
[x] Ran seeds multiple times, confirming results in DB table.

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] There are no merge conflicts

 Properly handle timezone differences between back-end & front-end


Improvement in Navbar and Improve Offers section

Description
I have Improved in Navbar . Previously it only show that tacky Red hove which was not looking good . i have add enhancement in it will share the screenrecording with you also so you can see . Also i have added effect of roll in button theme.
this fixes issue number #1368  #1371
I have solved 2 issues here
Related Issues
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]

Closes #

Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
https://github.com/user-attachments/assets/e7cd0a1b-4a7b-435e-91b5-e4903a90e727
I have made changes in offer section as the color is to dark and the img is not good so i have changed that which
Fixes issue number  #1371
i will share the screenshot with you :-

@sunny0625 @khushi-joshi-05 Kindly review it and merge. Add GSSoC and level label in it. You can add Level 3 because  this Pull Request consist of  2 Issues.
Checklist

[x] I have gone through the contributing guide
[x] I have updated my branch and synced it with project main branch before making this PR
[x] I have performed a self-review of my code
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[ ] I have commented my code, particularly in hard-to-understand areas.

Additional context:
[Include any additional information or context that might be helpful for reviewers.]

@khushi-joshi-05 Kindly review it and merge.

@sunny0625 @khushi-joshi-05 I have 2 more issues who's Pull Request i have to merge . Please merge this ASAP

@KomalSrivastava the navbar icons are not visible in light mode

@KomalSrivastava solve conflicts

@khushi-joshi-05 Solved

@khushi-joshi-05 Solved

@khushi-joshi-05 Solved , Kindly merge my Pull Request . I have 2 more issues to solve please merge this .

@sunny0625 @khushi-joshi-05 Merge please its been 4 days??

@sunny0625 @khushi-joshi-05 I have opened this  Pull Request from last week !!

@sunny0625 @khushi-joshi-05 Merge please its been 6 days !! I have 2 more issues to complete before it ends please do this asap.. It's a request..
Add level label in it , please see i have done 2 issues here so add level 3.

solve conflicts.

@sunny0625 @khushi-joshi-05 Resolved..


A bug

If you enable Edible enchant_golden_apple in the configuration file, you can revive it, and if you enable it, there will be a slow effect after falling, although the player can be revived after eating the enchant_golden_apple, the slow effect will not disappear, unless the player really dies, the effect will disappear

Mod version?
Game version?
Mod loader used?
Version of the mod loader used?
Any configs changed?

Taking another look and trying to decipher the issue, I figured out what you meant.
When the slowness effect is enabled on the config, using food to revive the player does not remove the slowness.


Get python code to generate tikz figure

Create a function that generates the necessary latex code to create a tikz picture of the Markov chains of the ambulance problem. This function is meant to make the creation of Markov chains relatively straight forward.

This should be merged now I reckon @11michalis11 :+1:


Update French translations (November 9th, 2024)

It's been a few months (and the 10 million followers celebration 🥳) that we didn't update the French translations!
Two million more accounts later, there are a mere 86 strings to translate, so it was quick. It was pretty easy to do, although I did spot a mistake we'd made earlier (Display name translated as Afficher le nom, when it should read Nom d’affichage — damn you, English terseness!).
@surfdude29, could you please try to review those translations? Even though we are used to the reverse, I am sure your pair of eyeballs could help catch a weird thing or two :)
✍ Edit: Just did a last-minute self-review and pushed a few changes, but that should now be ready to be reviewed.

So I took the time to fix the typos you spotted, and to check all the other Veuillez instances. I removed those that were asking the user to do something that is in the clear benefit of them (like checking the Internet connection), adding a pronominal form to soften some when it made sense, or adding a plutôt to do the same thing.
About the boîte de dialogue thing: I think that it should be kept on all accessibility labels and hints, but fenêtre is the term we should use for the common user. Boîte de dialogue as a concept was only exposed to end users in the 90s and 2000s — do we remember the time where we had Wizard in our softwares? 😅
(fun fact: wizards were translated as Assistant. They took real pride in not translating it literally in those times, and they did a good job at that: it's way clearer for the common folk to understand what an Assistant did :))

It should be ready to be merged now, I think! ✅

So I took the time to fix the typos you spotted, and to check all the other Veuillez instances. I removed those that were asking the user to do something that is in the clear benefit of them (like checking the Internet connection), adding a pronominal form to soften some when it made sense, or adding a plutôt to do the same thing.

Those changes all look great to me, nice job 👍

About the boîte de dialogue thing: I think that it should be kept on all accessibility labels and hints, but fenêtre is the term we should use for the common user. Boîte de dialogue as a concept was only exposed to end users in the 90s and 2000s — do we remember the time where we had Wizard in our softwares? 😅

Yeah that makes a lot of sense to use different terms in different contexts.
I certainly do remember all those wizards, and in fact although the word doesn't appear in the interface, the process of creating a starter pack in the app is actually named a wizard in the code 😅🧙♂

(fun fact: wizards were translated as Assistant. They took real pride in not translating it literally in those times, and they did a good job at that: it's way clearer for the common folk to understand what an Assistant did :))

It shows how important it is to try to put yourself in the mind of the average user and what language they will understand most clearly (and of course listen to feedback too), rather than being overly literal when translating 👌

It should be ready to be merged now, I think! ✅

I concur, I think this is ready to go 🚀


Pipelines seem to be false-y

This is a non-blocking issue, since there's a clear work-around, but I just found it surprising:
r = redis.Redis()
pipe = r.pipeline()
pipe  ## Pipeline<ConnectionPool<Connection<host=<IP_ADDRESS>,port=6379,db=0>>>
pipe or True  ## True

## workaround:
pipe if pipe is not None else True

Is there a particular reason pipeline objects should appear false-y? My inclination is that this doesn't pass the Principle of Least Surprise (but maybe I'm missing something).

I encountered the same surprising behavior.
I was refactoring some code so it can be used with an existing connection (Redis/Pipeline) or without one, in which case it crates a new connection. Something like:
def create_session(session_id: str, ..., r: redis.Redis = None):
    r = r or get_connection()
    # Prepare/serialize the data...
    # Write it to Redis...

After the refactor I ran my test suite and noticed failures and saw a bunch of redis.WatchError exceptions in the logs. I then ran redis-cli monitor to see what commands were received by Redis and in what order. There I noticed that all the commands that were suppose to be executed inside a transaction (between the MULTI and EXEC commands), were executed prior to MULTI. Meaning the actions were not executed in a transaction. When I debugged the code, I noticed that when a pipeline was passed to a function like the one above, r = r or get_connection(), a new connection was returned (the object id was different), so the operation was executed outside of the pipeline.
It was easy to fix it (just replaced the line with if r is None: r = get_connection()), but I was really surprised by the behavior and it was time consuming to figure it out.
I expected a Pipeline instance to always be truthy since it inherits from Redis which is always truthy, but instead its truth value is based on if pipe.command_stack is empty or not. This happens because in commit https://github.com/andymccurdy/redis-py/commit/5827683b8d2be7bd060ab579d8ab4655e4820052 the __len__ method was added to Pipeline so you could do len(pipe) and see how many commands are waiting to be executed.
Note: if a Python object doesn't have a __bool__ method (or __nonzero__ in Python 2), but has a __len__ method, the truth value will be based on that (reference).
The documentation didn't mention anything about being able to run len(pipe), and no explicit warning about the truthiness of a pipe was given.
Pipeline is a a Redis client (inheritance) that has a command_stack (composition). So the fact that pipelines behave as the command_stack (the truthiness of an empty container is false), is unexpected.
I'm not sure what was wrong with just using len(pipe.command_stack) or if pipe.command_stack: ..., that this change was needed but I guess it just seemed like a harmless little tweak.
IMO, for now it's probably best to just document the current behavior, since people might be relaying on it in the wild. But long term (maybe next major version) I think the __len__ method should be removed from Pipeline.

CC: @andymccurdy.

Thanks for reporting this. This was unintended behavior. Pipelines will now always be True when evaluating their boolean representation.


Check GPU support for shader barycentric coordinates

Use [MVKDevice supportsShaderBarycentricCoordinates] to set new MVKPhysicalDeviceMetalFeatures::shaderBarycentricCoordinates, and use it in MVKPhysicalDevice::initExtensions() to disable   vk_KHR_fragment_shader_barycentric if set to false.

This doesn't apply only to this extension. There's multiple extensions that require some Metal GPU Family, some feature tier, or something else. In fact, there's 21 getters on MTLDevice (excluding supportsFamily and supportsFeatureSet) for various features. I feel like MVKExtensions should receive a good refactor as a whole (again!). See the list of supported extensions here:
https://github.com/KhronosGroup/MoltenVK/blob/master/Docs/MoltenVK_Runtime_UserGuide.md#interacting-with-the-moltenvk-runtime
For example, there exists this function:
https://github.com/KhronosGroup/MoltenVK/blob/beee280ff8782b26b96fec9290d82dfd84eded52/MoltenVK/MoltenVK/Layers/MVKExtensions.mm#L47-L81
This function already does a bit of work, yet falsely allows many extensions that would actually not be allowed on certain devices.
My suggestion would be to split up the aforementioned function and then use the functions with the MVK_EXTENSION macro, something like this perhaps:
// Will call MVKDevice::supportsBufferAddress and check if the macOS and iOS versions are given to evaluate if it's actually supported.
MVK_EXTENSION(KHR_buffer_device_address,           KHR_BUFFER_DEVICE_ADDRESS,            DEVICE,   12.05,  16.0, supportsBufferAddress)
// Needs no check, universally supported
MVK_EXTENSION(KHR_create_renderpass2,              KHR_CREATE_RENDERPASS_2,              DEVICE,   10.11,  8.0, nullptr)

mvkIsSupportedOnPlatform() is designed to do a first pass at filtering both instance and device extensions based on the platform and platform version. The MTLDevice is not available here and does not apply.
Device extensions are further filtered in MVKPhysicalDevice::initExtensions() based on feedback from the settings in MVKPhysicalDeviceMetalFeatures.
Your suggestion to use the MVK_EXTENSION macro with function calls is an interesting idea, if there are many extensions which need to be filtered. Not sure it it's worth it yet. And if we do go that route, the macro should use values from MVKPhysicalDeviceMetalFeatures, not MTLDevice functions directly, because the requirement for any extension may be more complicated than a single BOOL property access on a MTLDevice instance, and the values in MVKPhysicalDeviceMetalFeatures are often accessed elsewhere in code.

Fixed in #1649.


Add function evaluation to Python bindings

@malturki and the proof checker team have requested a way to extract the returned term from a function event in the proof hint trace. This means exposing an appropriate binding for evaluateFunctionSymbol to Pyk via the Python bindings. Very roughly, the signature of the new binding will be:
evaluate_function(label: str, args: list[Term]) -> Term

It may be more appropriate / ergonomic to bind this as:
evaluate_function(label: str, args: list[Pattern]) -> Pattern

given that the proof hint parser reads Patterns from the trace: https://github.com/runtimeverification/proof-checker/blob/6d4d7e7bd6596cc876e6472cc7d84d2e584520f6/generation/src/proof_generation/llvm_proof_hint.py#L67 (though this has the usual caveats around injections and correctly sorting the result of the application on deserializing out of the term representation).

Things to investigate:

Can we rehydrate arbitrary terms from binary patterns?


Show recent validator stats

As time goes on, the delegates 'rate' column becomes meaningless.
It would be ideal if this allowed validators/voters to see recent statistics, so a validator can tell when they are failing forges, and voters can see recent pool rates.
We should show forging rate over last ~week, either replacing or adding an additional column

This a nice feature to have. Let's move it to v1.6.0


I can't shutdown the Windows 10 with opencore

I am using:

HaC Mini version:v2.7
OSX version:10.15.0
Windows 10 version:1909 Enterprise
NUC model:NUC8i7HVK
Boot SSD model and protocol:Hikvision C2000Pro
And I can't shutdown,it will hangs at dots and says"Shutting down..."
plz help me!

How long did you wait?

for about 10min

Keep waiting

Finally,I can shut it down for now

but i have to wait for a long time

hello?

Finally, I can shutdown normally.


package.elm-lang.org seems to be down

Not sure where else to report this

hi @alex-tan, this is known. Please watch Slack for updates.

@BrianHicks will do. Thanks

it's up again, hooray!


Disable whitelisting by default

Disable serializable whitelisting by default.

Changes Unknown when pulling 36d0f3940159ec3c24c0096bda4238ca422e23e5 on whitelist-defaults into ** on master**.


On OS X 10.11 app seems to require git installed in production builds

The app shows a modal dialog saying The "git" commands requires the command line developer tools... on OS X 10.11. Seems like this is caused by some part of Python API calling opentrons.__version__ which, in turn, when _version.py is missing is trying to call git

To be fixed by introducing version bump script and removing of versioneer

@astaff what version of the app is this referring to and is it still an issue?

used to be an issue because of pyinstaller-compiled binary was shipped with the app and version management tool (versioneer) has this weird dependency. closing this one.


Support message headers

Description
This PR introduces support for using message headers in the publish and consume functions.
Important notes

The header keys and values are exposed as strings in the functions that LabVIEW will call. However, it's essential to note that in the C library, headers have specific value types, and currently, only "AMQP_FIELD_KIND_BYTES" (unformatted byte strings) is supported.
Transmitting and receiving an array of strings between LabVIEW and a shared library can present challenges. Therefore, our approach involves concatenating the strings within the array into a single string before transmission.
Additionally, the "queue create" function no longer automatically binds the queue; it now has its own separate method called "bind queue."

Related Issues

Checklist

[x] I have used a PR title that is descriptive enough for a release note.
[x] I have tested these changes locally.
[ ] I have added appropriate tests or updated existing tests.
[ ] I have tested these changes on a dedicated VM or a customer VM [name of the VM]
[ ] I have added appropriate documentation or updated existing documentation.

Well, the rabbitMQ-POC sends headers with different types: so I need to add code to support all the types in the standard as well send a type of the header to LabVIEW. The third array with types will not make any sense - so I will refactor this part of the code to use just one array with a pattern: type+key+value for each element.

Well, the rabbitMQ-POC sends headers with different types: so I need to add code to support all the types in the standard as well send a type of the header to LabVIEW. The third array with types will not make any sense - so I will refactor this part of the code to use just one array with a pattern: type+key+value for each element.

I see, in go this is totally transparent, you attach a value to a table key and that's all. We could cast everything to string, but I am not sure it's an advantage. Alternatives may be: a) dynamic casting, e.g. i check if something is an int, then a float, then a string, but it's wasted operations; b) static casting, i.e., we assume that a given key maps always to a given type.

The header has defined type:
union {
    amqp_boolean_t boolean; /**< boolean type AMQP_FIELD_KIND_BOOLEAN */
    int8_t i8;              /**< int8_t type AMQP_FIELD_KIND_I8 */
    uint8_t u8;             /**< uint8_t type AMQP_FIELD_KIND_U8 */
    int16_t i16;            /**< int16_t type AMQP_FIELD_KIND_I16 */
    uint16_t u16;           /**< uint16_t type AMQP_FIELD_KIND_U16 */
    int32_t i32;            /**< int32_t type AMQP_FIELD_KIND_I32 */
    uint32_t u32;           /**< uint32_t type AMQP_FIELD_KIND_U32 */
    int64_t i64;            /**< int64_t type AMQP_FIELD_KIND_I64 */
    uint64_t u64;           /**< uint64_t type AMQP_FIELD_KIND_U64,
                               AMQP_FIELD_KIND_TIMESTAMP */
    float f32;              /**< float type AMQP_FIELD_KIND_F32 */
    double f64;             /**< double type AMQP_FIELD_KIND_F64 */
    amqp_decimal_t decimal; /**< amqp_decimal_t AMQP_FIELD_KIND_DECIMAL */
    amqp_bytes_t bytes;     /**< amqp_bytes_t type AMQP_FIELD_KIND_UTF8,
                               AMQP_FIELD_KIND_BYTES */
    amqp_table_t table;     /**< amqp_table_t type AMQP_FIELD_KIND_TABLE */
    amqp_array_t array;     /**< amqp_array_t type AMQP_FIELD_KIND_ARRAY */
  } value;                  /**< a union of the value */
} amqp_field_value_t;

so to send and receive it from LabVIEW, all types must be parsed to string.

The header entry has defined type:
typedef enum {
  AMQP_FIELD_KIND_BOOLEAN =
      't', /**< boolean type. 0 = false, 1 = true @see amqp_boolean_t */
  AMQP_FIELD_KIND_I8 = 'b',  /**< 8-bit signed integer, datatype: int8_t */
  AMQP_FIELD_KIND_U8 = 'B',  /**< 8-bit unsigned integer, datatype: uint8_t */
  AMQP_FIELD_KIND_I16 = 's', /**< 16-bit signed integer, datatype: int16_t */
  AMQP_FIELD_KIND_U16 = 'u', /**< 16-bit unsigned integer, datatype: uint16_t */
  AMQP_FIELD_KIND_I32 = 'I', /**< 32-bit signed integer, datatype: int32_t */
  AMQP_FIELD_KIND_U32 = 'i', /**< 32-bit unsigned integer, datatype: uint32_t */
  AMQP_FIELD_KIND_I64 = 'l', /**< 64-bit signed integer, datatype: int64_t */
  AMQP_FIELD_KIND_U64 = 'L', /**< 64-bit unsigned integer, datatype: uint64_t */
  AMQP_FIELD_KIND_F32 =
      'f', /**< single-precision floating point value, datatype: float */
  AMQP_FIELD_KIND_F64 =
      'd', /**< double-precision floating point value, datatype: double */
  AMQP_FIELD_KIND_DECIMAL =
      'D', /**< amqp-decimal value, datatype: amqp_decimal_t */
  AMQP_FIELD_KIND_UTF8 = 'S',      /**< UTF-8 null-terminated character string,
                                      datatype: amqp_bytes_t */
  AMQP_FIELD_KIND_ARRAY = 'A',     /**< field array (repeated values of another
                                      datatype. datatype: amqp_array_t */
  AMQP_FIELD_KIND_TIMESTAMP = 'T', /**< 64-bit timestamp. datatype uint64_t */
  AMQP_FIELD_KIND_TABLE = 'F', /**< field table. encapsulates a table inside a
                                  table entry. datatype: amqp_table_t */
  AMQP_FIELD_KIND_VOID = 'V',  /**< empty entry */
  AMQP_FIELD_KIND_BYTES =
      'x' /**< unformatted byte string, datatype: amqp_bytes_t */
} amqp_field_value_kind_t;

so to send and receive it from LabVIEW, all types must be parsed to string.

you pass everything as string to LabVIEW, that's clear to me, when I mentioned casting everything to string, I meant at the message creation time, not in this library, still I am not sure we would save much, and of course impact other services that may read such headers.
If you assume a type for a given key, you don't need to pass the type. On the other hand, the solution in this library will be very specific to SynchroGuard.
Said that, the best person to seek advice from on the best solution for integration with LabVIEW is @AntoineChalons :)

a few thoughts about headers :

adding support for all the possible types is a nice effort but not required at this point, it's if done, then good, if it still requires work, let's put it on hold
the only header that has to be read on the LabVIEW side for each timestamp (therefore at 50/60Hz) is the 'timestampId', so for this header it makes sense to put it as int64 (ou uint64), for the others there will be no impact on perf if they are passed as string and need to be type-cast on the LabVIEW side (it is the case for trigger header messages)

a few thoughts about headers :

adding support for all the possible types is a nice effort but not required at this point, it's if done, then good, if it still requires work, let's put it on hold
the only header that has to be read on the LabVIEW side for each timestamp (therefore at 50/60Hz) is the 'timestampId', so for this header it makes sense to put it as int64 (ou uint64), for the others there will be no impact on perf if they are passed as string and need to be type-cast on the LabVIEW side (it is the case for trigger header messages)

If you think about receiving the data, you also need to consider the type that is sent as I8. Kevin will start working with Sending Messages from FL -> that will require to send UTF8. That is why I put a lot of effort into implementing most of the types that are defined in the library. At this point, only the following types are not supported:

AMQP_FIELD_KIND_BOOLEAN
AMQP_FIELD_KIND_DECIMAL
AMQP_FIELD_KIND_ARRAY
AMQP_FIELD_KIND_TABLE
AMQP_FIELD_KIND_VOID

as I cannot see the use case on our side.


P2TR program for key-spends

A P2TR class should be created to extend Program. This should contain the constructors fromScript, decompile, fromAsm, fromTweakedKey and fromTaproot.
fromTweakedKey will take an ECPublicKey of a pre-tweaked key. fromTaproot will take a Taproot object that provides the tweaked key.
A tweakedKey getter will return the tweaked key of the program.

Completed


Add cmakelists

Added CMake and Travis CI support
Updated mbed-os.lib to pick the latest master
Updated wifi-ism43362.lib to latest to pick CMake changes

@0xc0170 @hugueskamba @linlingao @evedon

Please rebase to the latest development, to dismiss the merge conflict on GitHub


[QUESTION] Failed to activate the git-plus package

I got an error everytime I start atom: (already tried 'apm install' in package folder)
Atom    : 1.20.1
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0
git-plus: 8.1.0
Error: Can't register a command with non-function callback.
at CommandRegistry.module.exports.CommandRegistry.add (:21889:21)
at Object.activate (/home/mehmetb/.atom/packages/git-plus/lib/git-plus.js:517:44)
at Package.module.exports.Package.activateNow (:69761:25)
at :69733:38
at Package.module.exports.Package.measure (:69607:21)
at :69726:32
at Package.module.exports.Package.activate (:69723:40)
at PackageManager.module.exports.PackageManager.activatePackage (:23715:40)
at :23696:35
at Config.module.exports.Config.transactAsync (:20767:24)
at PackageManager.module.exports.PackageManager.activatePackages (:23691:25)
at PackageManager.module.exports.PackageManager.activate (:23673:52)
at :1081:36
Steps to reproduce:

Start Atom

I think I'm using new atom features not supported in your version. The latest version of atom stable is 1.32 and you're on 1.20. Is there a reason you haven't updated yet?

Because I am using Ubuntu 16.04.5 version, and v1.20 seems the most recent version in the repo. However, when I install the 1.32.2, problem seems to be fixed. Thanks.

The same error pops up on my system each time i launch my atom and my version is 1.38.1 and i can't connect my atom to github i have been stocked on it for three days

@nnabuihegabriel can you share the message and stack trace that you see?

Error: Cannot find module '../git-es'
at Module._resolveFilename (module.js:543:15)
at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/static/:11:155156)
at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:53:43)
at require (/usr/share/atom/resources/app/static/:11:146462)
at Object. (/home/mishchenko_a/.atom/packages/git-plus/lib/views/tree-view-branches.ts:4:18)
at Object. (/home/mishchenko_a/.atom/packages/git-plus/lib/views/tree-view-branches.ts:74:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/:11:147172)
at Object.value [as .ts] (/usr/share/atom/resources/app/static/:11:150720)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:60:45)
at require (/usr/share/atom/resources/app/static/:11:146462)
at Object. (/home/mishchenko_a/.atom/packages/git-plus/lib/git-plus.js:7:25)
at Object. (/home/mishchenko_a/.atom/packages/git-plus/lib/git-plus.js:620:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/static/:11:147172)
at Object.value [as .js] (/usr/share/atom/resources/app/static/:11:150720)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (file:///usr/share/atom/resources/app.asar/static/index.js:60:45)
at require (internal/module.js:11:18)
at customRequire (/usr/share/atom/resources/app/static/:1:686762)
at Package.requireMainModule (/usr/share/atom/resources/app/static/:11:3428177)
at Package.activateNow (/usr/share/atom/resources/app/static/:11:3416311)
at measure (/usr/share/atom/resources/app/static/:11:3416089)
at Package.measure (/usr/share/atom/resources/app/static/:11:3413720)
at activationPromise.activationPromise.Promise (/usr/share/atom/resources/app/static/:11:3415949)
at new Promise ()
at Package.activate (/usr/share/atom/resources/app/static/:11:3415892)
at PackageManager.activatePackage (/usr/share/atom/resources/app/static/:11:381112)
at /usr/share/atom/resources/app/static/:11:934678
at r (/usr/share/atom/resources/app/static/:11:929284)
at n (/usr/share/atom/resources/app/static/:14:1119363)
at t.bufferStream (/usr/share/atom/resources/app/static/:14:1119517)
at Socket.e.on (/usr/share/atom/resources/app/static/:14:1118119)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)

I was directed to this issue by the error pane.
[Enter steps to reproduce:]

start atom
wait

Atom: 1.38.2 x64
Electron: 2.0.18
OS: Linux Mint
Thrown From: git-plus package 8.7.1
Stack Trace
Failed to activate the git-plus package
At Unexpected token import

SyntaxError: Unexpected token import
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:146949)
    at Object.value [as .ts] (/usr/share/atom/resources/app/static/<embedded>:11:150720)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:60:45)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146462)
    at /packages/git-plus/lib/git-plus.js:7:25)
    at /packages/git-plus/lib/git-plus.js:620:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147172)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150720)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:60:45)
    at require (internal/module.js:11:18)
    at customRequire (/usr/share/atom/resources/app/static/<embedded>:1:686762)
    at Package.requireMainModule (/usr/share/atom/resources/app/static/<embedded>:11:3428177)
    at Package.activateNow (/usr/share/atom/resources/app/static/<embedded>:11:3416311)
    at measure (/usr/share/atom/resources/app/static/<embedded>:11:3416089)
    at Package.measure (/usr/share/atom/resources/app/static/<embedded>:11:3413720)
    at activationPromise.activationPromise.Promise (/usr/share/atom/resources/app/static/<embedded>:11:3415949)
    at new Promise (<anonymous>)
    at Package.activate (/usr/share/atom/resources/app/static/<embedded>:11:3415892)
    at PackageManager.activatePackage (/usr/share/atom/resources/app/static/<embedded>:11:381112)
    at config.transactAsync (/usr/share/atom/resources/app/static/<embedded>:11:380728)
    at Config.transactAsync (/usr/share/atom/resources/app/static/<embedded>:11:330844)
    at PackageManager.activatePackages (/usr/share/atom/resources/app/static/<embedded>:11:380678)
    at PackageManager.activate (/usr/share/atom/resources/app/static/<embedded>:11:380296)
    at t.loadState.then (/usr/share/atom/resources/app/static/<embedded>:1:708814)

Commands

Non-Core Packages
git-plus 8.7.1

I wonder if something was borked during the update. @4current @MishchenkoA can y'all uninstall the package, restart atom, and install it again?


Can´t set look_ahead on 9th intel gen

Hi, I follow the steps for compile and install ffmpeg on ubuntu 20.04.
https://github.com/Intel-Media-SDK/MediaSDK/wiki/Build-FFmpeg-QSV
When try to use look_ahead, whit this command:
ffmpeg -loglevel info -init_hw_device qsv=hw  -filter_hw_device hw -rtsp_transport tcp -i rtsp://localhost/lasheras   -c:v h264_qsv  -vf  hwupload=extra_hw_frames=120  -look_ahead 1    -g 90 -bf 3  -rtsp_transport tcp -f rtsp -an rtsp://localhost:9088/3mp
I get this error:
[h264_qsv @ 0x55919ca8bdc0] Error initializing the encoder: unsupported (-3) Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed!
If I setup look_ahead 0, works perfectly.
What I´m missing?
Thanks.
This is my cpu:
model name      : Intel(R) Core(TM) i3-9100 CPU @ 3.60GHz

Look ahead path requires cmrt library which is built during media driver build. On Ubuntu it will be /usr/lib/x86_64-linux-gnu/libigfxcmrt.so.7. Can you, please, check whether it is available? If you use Ubuntu 20.04 packages make sure to install:
apt-get install libigfxcmrt7


issue 44 - improve file structure organization

Hello! I saw this leftover issue from Hacktoberfest and thought I'd make a contribution. I've organized this PR into 4 commits, to aid in visualizing/keeping track of the changes.
Description
Fixes issue #44
Reorganizes existing src file structure into four directories:

assets
components
pages
styles

This PR also divides the CSS into individual component files within the styles directory. This may be a little bit overkill now, but it seems better to set up the precedent while the site is small than have to split the CSS in the future.
It will make sense to add the following directories in the future, when they are needed (currently there are no relevant files to place in them):

helpers (for non-component js files that contain helper functions used across multiple components,  or for Context or Router exports)
tests (for .spec.js and .test.js files)

Organization is based on this article on organizing React projects of a similar size.
I couldn't tell from past PR's whether I should be opening the PR against Master or Development - if I've opened against the wrong branch, please let me know & I'll attempt to adjust!
Testing
There is no test suite in the repository yet. However, the React development server has extensive tests to validate the file structure and imports. I verified website functionality through ensuring the development server ran without compile errors, and by manually comparing a build of the site using the reorganized file structure with a pristine build off of the existing github repository.

@jayeclark thanks


Replace stack trace in exceptions thrown by akka-http

Attach the original stack under suppressed exceptions, in case it is of interest

@noam-almog any more issues?


python311Packages.eyed3: rename from eyeD3

Description of changes
part of #245383
based on the pypi name I renamed it it: https://pypi.org/project/eyed3/
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 278556 run on x86_64-linux 1

4 packages built:

python310Packages.eyed3
python310Packages.eyed3.dist
python311Packages.eyed3
python311Packages.eyed3.dist


use new Windows Store link

Microsoft has announced a new website for Windows Store (https://apps.microsoft.com), but https://aka.ms/terminal still use old link : https://www.microsoft.com/p/windows-terminal/9n0dx20hk701

Now It's time to change it:
https://aka.ms/terminal should redirect to https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701

Huh, I hadn't heard of that. These are surprisingly different sites... For example, the apps.microsoft one doesn't have the whole banner video at the header. It kinda seems like the apps.microsoft URL has a little less information immediately presented to the user.
Is there a specific reason to use the new URL over the old one/?
@cinnamon-msft as an FYI

So, I reached out to the Store team - looks like in the near future the old URLs will automatically start redirecting to the new site, but the official recommendation currently is to leave the URL as-is. Thanks for the heads up - TIL about that new site.


[Feature Request] OCR whole document

At the moment I need to OCR process each page individually and need to wait shortly for each page.
Sugguestion:
I think it would be more convenient to apply the filter or OCR to the entire document at once instead of only applying it to a single page.
Wish:
At the best this would be done in the background, and I could continue scanning the next document.

@phigjm good idea. I will try to add that soon

@phigjm it has been released in the latest version on github!

A little Beauty problem:
during the OCR: the Filter Bar is not really visible:

This might could maybe be fixed by moving the progress message up or only adding a progress bar close to the OCR [T] Icon.
Also: it would be awesome to apply the Filter and Enhancement central for the entire document as well (similar to the OCR function).
But apart from that: solid work. Thank you so much

@phigjm yes it is the issue with snackbar. They kind of always are on top of something else :s Will think about it. Can you create an issue for the filter/enhancement apply to a whole document?
thanks


MNT: Re-rendered with conda-smithy 2.4.3 [ci skip]

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Feature request: give end user pointer to location of error

When e.g. an E004 error is encountered the tool reports:   E004  Trailing or leading whitespace in description leaving it up to the user to check all description fields to see if there is an error.
A pointer to the line number of the failure or a pointer to the place in the json structure would be very appreciated. E.g. / -> containers -> cna -> descriptions -> 0 -> value

@MrSeccubus Ah, I realized this information is already available, just not in the default ("pretty") format. If you spit out the results in -format csv or -format json, it has the JSON path to where the error is.

Good to know the information is there, I would request to include it in pretty print.
Prerry print is intended for humans, json and csv for computers.
Humans need the message to correct their error, hence it is needed in pretty print.

Added to pretty-printed output in linked commit, e.g.:
CVE-2023-3618 (redhat) -- /home/mprpic/temp/cvelistV5/cves/2023/3xxx/CVE-2023-3618.json
  E005  Incorrect CVSS v3 severity: "high"; should be "medium" (at "containers.cna.metrics.1.cvssV3_1")

Awesome!


Design for example app

📇 User story
As a Design System developer, I want to have a design for an example app, so that I can implement it.
As a developer using the GC Design System, I want to have an example app so I can view ways to implement the code in my work
✅ Definition of Done / Outcomes

[ ]  A design exists in figma
[ ] The design uses most of our components
[ ] The design must have accessibility considerations
[ ] The design reimagines the holidays app https://canada-holidays.ca/
[ ] Policy has reviewed the legislative and policy considerations of the design

📜 Acceptance criteria

[ ] The design has a similar look and feel to a professional website
[ ] The design does not cause any confusion to a user that it is an official government website
[ ] The design can be easily implemented by a developer using the GC Design System component repository for the first time

📝 More info
This was brought up in dev design sync.
This will be part of our onboarding process (onboarding people and teams to the Design System)

Duplicate


[Improvement][Deployment] deployment tutorial has security risks

Purpose of the pull request
#15869

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

I think this is unnessnary.

I also don't think it's a problem, just an improvement.

I am -1 to this PR, my concern is openssl might not be pre-installed in all linux distribution.


Can't type text in input on mobile device

The problem when I'm trying to type something on mobile device input doesn't show text that was typed. The same when when press backspace button it doesn't remove text.

Hi @fden! I think this was fixed in dec8f094429f103a141376631a005a7fe75aa7cc which was released in 1.1.0. Could you please verify?


Update pipeline on a paused pipeline causes stuck merge

What happened?:
When a job is actively running with stats on:

stop pipeline
update pipeline
start pipeline

A new job will be triggered as expected but the previously running job will be stuck in running forever (cosmetically shown as running, it's actually finished behind the scenes I think -- shown below). The new job that get started gets stuck in merging.  I tested this on 1.9.8 and the "defensive closing of commits" code doesn't seem to fix this -- not sure if that was 1.9.8?
What you expected to happen?:
Current behavior for calling stop pipeline during a running job is fine.  Perhaps there should be a "paused" state, but leaving in "running" is also reasonable.
Just like calling update pipeline on a running job though, the existing job should be killed when update pipeline is called, regardless of the pipeline being stopped. Currently, we don't correctly clean up the running state. Stats commits also needs to be closed correctly. Right now it's not so next job gets stuck in merging.
How to reproduce it (as minimally and precisely as possible)?:
Run opencv with enable_stats:true. Run a first job with the images.txt, then add images4.txt (has 40 more image added so it's a longer running job)
When a job is actively running with stats on:

stop pipeline edges
update pipeline edges
start pipeline edges

This will be the current state where things get stuck:
pc list job --history all
ID                               PIPELINE STARTED        DURATION           RESTART PROGRESS     DL       UL       STATE
9c0ae14108fa412ca4ae8fc2936246a6 edges    6 minutes ago  -                  0       24 + 18 / 42 3.314MiB 1.074MiB merging
897527bb65fa42c7aa52fd4fcc93329f montage  6 minutes ago  Less than a second 0       0 + 0 / 0    0B       0B       failure: inputs edges failed
56b382a63f6f40b8b8c500a99e5f3f60 edges    7 minutes ago  -                  0       12 + 0 / 42  6.466MiB 1.261MiB running
5f24e77fcac04bfe88a609562c404e13 montage  13 minutes ago 4 seconds          0       1 + 0 / 1    371.9KiB 1.283MiB success
dc6265e81fcc4ec2bd92063020c6adc5 montage  13 minutes ago 1 second           0       1 + 0 / 1    79.49KiB 378.6KiB success
28c1c713c6e64a2cb6a3730c5047f025 edges    13 minutes ago 3 seconds          0       2 + 1 / 3    181.1KiB 111.4KiB success
86eccdb950d946b49a091c322baa1db3 edges    13 minutes ago 2 seconds          0       1 + 0 / 1    57.27KiB 22.22KiB success

To confirm job stuck in running is just cosmetic:
pc stop job 56b382a63f6f40b8b8c500a99e5f3f60
error from StopJob: commit fb21a22aa24949b085b0d2cc5c9bec5e in repo edges has

Stats commit left open
pc list commit edges
REPO  BRANCH COMMIT                           PARENT                           STARTED        DURATION       SIZE
edges stats  632f7b9315e9485591089fdcb33c40c4 32d536cfeab648b898cfe2555bf34a0d 20 minutes ago -              -
edges master 73031ea72377471c8f238924ef9d6e5e fb21a22aa24949b085b0d2cc5c9bec5e 20 minutes ago -              -
edges stats  32d536cfeab648b898cfe2555bf34a0d 3ab46d3b7c574d3d9149a27bb1b399b4 22 minutes ago -              -
edges master fb21a22aa24949b085b0d2cc5c9bec5e 4bd4457ff5184820816492d9e012f5f9 22 minutes ago About a minute 0B
edges stats  3ab46d3b7c574d3d9149a27bb1b399b4 c2a3af83d1434c138a2eb41399cd4bd6 28 minutes ago About a minute 380.4KiB
edges master 4bd4457ff5184820816492d9e012f5f9 cc8e968a8d284830a5194bd59bf46489 28 minutes ago About a minute 133.6KiB
edges stats  c2a3af83d1434c138a2eb41399cd4bd6 <none>                           28 minutes ago About a minute 83.49KiB
edges master cc8e968a8d284830a5194bd59bf46489 <none>                           28 minutes ago About a minute 22.22KiB

Anything else we need to know?:
Environment?:

Kubernetes version (use kubectl version):
Pachyderm CLI and pachd server version (use pachctl version): 1.9.8
Cloud provider (e.g. aws, azure, gke) or local deployment (e.g. minikube vs dockerized k8s):
OS (e.g. from /etc/os-release):
Others:

I think Matt Goldberg on slack is hitting the same issue. In case it's helpful, here's a panic triggered from run pipeline with the cluster in this broken state:
020-02-03T23:33:20Z INFO pfs.API.FinishCommit {"request":{"trees":[{"hash":"d3d9ff0d117c2fbbba0382a106aa1bb4cd6104c4241064eb8cee9d97cf2f90c4c1c40a6a0449a136573eb83f42c4ed5dd28c4d2a432088bc5aa2a1775267e85e"}],"size_bytes":1177947154}} []
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1e719e9]
goroutine 247 [running]:
github.com/pachyderm/pachyderm/src/server/pkg/collection.runSTM.func1.1(0xc0000bdce0)
        /pachyderm/src/server/pkg/collection/transaction.go:100 +0xb3
panic(0x2183d40, 0x3c32390)
        /usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/pachyderm/pachyderm/src/server/pfs/server.(*driver).finishOutputCommit(0xc0003857c0, 0xc0010ad100, 0x0, 0xc00000e1a8, 0x1, 0x1, 0x0, 0x46360c12, 0x2471840, 0xc00033ed90)
        /pachyderm/src/server/pfs/server/driver.go:1483 +0x29
github.com/pachyderm/pachyderm/src/server/pfs/server.(*apiServer).FinishCommitInTransaction(0xc0000e0600, 0xc0010ad100, 0xc00033f5e0, 0xc00033f5e0, 0x0)
        /pachyderm/src/server/pfs/server/api_server.go:215 +0x8f
github.com/pachyderm/pachyderm/src/server/pkg/transactionenv.(*directTransaction).FinishCommit(0xc00000e1a0, 0xc00033ed90, 0x40ca01, 0xc00000e1a0)
        /pachyderm/src/server/pkg/transactionenv/env.go:220 +0x79
github.com/pachyderm/pachyderm/src/server/pfs/server.(*apiServer).FinishCommit.func3(0x29a5e80, 0xc00000e1a0, 0x234f020, 0x2301801)
        /pachyderm/src/server/pfs/server/api_server.go:226 +0x3a
github.com/pachyderm/pachyderm/src/server/pkg/transactionenv.(*TransactionEnv).WithTransaction.func1(0xc0010ad100, 0xc0010ad100, 0xc00033f0a0)
        /pachyderm/src/server/pkg/transactionenv/env.go:337 +0x6b
github.com/pachyderm/pachyderm/src/server/pkg/transactionenv.(*TransactionEnv).WithWriteContext.func1(0x29ab480, 0xc00033f0a0, 0x0, 0x0)
        /pachyderm/src/server/pkg/transactionenv/env.go:354 +0x160
github.com/pachyderm/pachyderm/src/server/pkg/collection.runSTM.func1(0xc0000bdce0, 0x29ab480, 0xc00033f0a0, 0xc00044d200, 0x40ca00)
        /pachyderm/src/server/pkg/collection/transaction.go:108 +0xad
created by github.com/pachyderm/pachyderm/src/server/pkg/collection.runSTM
        /pachyderm/src/server/pkg/collection/transaction.go:94 +0x86

@JoeyZwicker The defensive code was not comprehensive in 1.9.8. This should be addressed by #4443 which went in with 1.9.10.
@ysimonson  I don't think the issue you are seeing is the same issue. The panic you ran into came from a job that produced output (trees is not empty), but seems to be missing the commit in the finish commit request. My guess would be that this is related to stats, and we are somehow getting into a situation where the stats commit in the job info is nil (not sure how that can happen though).

I tested this again and it appears it has been fixed after all the pipeline fixes we've pushed lately. The panic mentioned by Yusuf is a different issue, but has been fixed as well.


refactor(backend-jsonrpc): remove unused types

Summary
'RomePath' type was removed because it was not used in the file.

Thanks!


Make exercises more structured

In the wiki notes/presentation pdf it would be better to provide more structured guidance on the examples. In the lectures, some notes on finite differencing and time evolution should be added to help students understand how the grid works, as for many this is a new concept.

Provided in NewHorizonsForPsi workshop materials


Frigate Integration now showing in integrations popup

After installing and restarting home assistant (docker):

Home assistant version: 2021.3.3
Version installed via HACS: v1.0.4

Does anyone have this issue?

Try clearing your browser cache.


Experiments with the async interceptors API to minimize allocations for replicated reads

Needs rebasing

Closing this, all those thenApply() overloads are just too much :)


Compatibility with new menu

See examples https://github.com/chrisgoringe/cg-controller/issues/30#issuecomment-2395094241

Two issues:
position
hamburger menu

fixed on branch 0.6

Looks good !

By the way, in the latest Frontend version, the floating queue menu is now dockable on the top bar.
So the "submit" button in the controller could be optional.

And actually, we could just drag it to be below the Controller !


PROD and localhost url redirects (with @nuxtjs/supabase)

What's the best approach to handle both localhost and PROD environments when using OAuth?
PROD currently redirects to localhost after authentication when following the supabase docs (https://supabase.com/docs/guides/auth/concepts/redirect-urls). In Supabase, the PROD url is set as Site URL, and Redirect URLs include the localhost url.
Using the @nuxtjs/supabase module, it requires a redirectTo url, and has to be the exact url for the callback page (either localhost or PROD urls).

The unique workaround I found is to compose dynamically the redirect link like this:
const user = useSupabaseUser()
const client = useSupabaseClient()

const redirectTo = `${useRuntimeConfig().public.baseUrl}/confirm`

const { data, error } = await client.auth.signInWithOAuth({
  provider: 'github',
  options: { redirectTo }
})

HTH

The unique workaround I found is to compose dynamically the redirect link like this:
index.vue
const user = useSupabaseUser()
const client = useSupabaseClient()

const redirectTo = `${useRuntimeConfig().public.baseUrl}/confirm`

const { data, error } = await client.auth.signInWithOAuth({
  provider: 'github',
  options: { redirectTo }
})

nuxt.config.ts
export default defineNuxtConfig({
  runtimeConfig: {
    public: {
      baseUrl: process.env.BASE_URL || 'http://localhost:3000'
    }
  }
})

@Rizzato95 Thanks! How did you configure the URLs on Supabase? Site URL, and then both localhost and base url in the Redirect URLs?

No, you don't need to specify your production URL twice.
Site url --> Production URL
Redirect URL's --> Only localhost url

In our case, we generate the app once and use it under different base url (PROD, UAT, dev, ...).
We can't rely on useRuntimeConfig().public.baseUrl since the runtime config is freezed as build time)
So we prefer to rely on :
const redirectTo = `${useRequestURL().origin}/confirm`

I ran into the same issue because I set http://localhost:3000 instead of http://localhost:3000/** in redirect URL's. So my Google OAuth will always redirect to the production URL (Site URL in Supabase). So make sure to include regex for redirect URL's.

Any update on this


[BUG]: Access token refresh expiration reverts to 30 seconds

Bug Description
When creating a tenant token with a custom access token expiration, the expiration reverts to 30 seconds after the first refresh.
Logs
NA
Screenshots
NA
Additional Environment Information
NA
Steps to Reproduce
NA
Expected Behavior
NA
CSM Driver(s)
NA
Installation Type
No response
Container Storage Modules Enabled
No response
Container Orchestrator
NA
Operating System
NA

The user has been provided a workaround for v1 and is satisfied with that. This issue is fixed in v2.


Java dependency alignment / bom items

Tracking ticket for component alignment on Java-based dependencies and Maven plugin dependencies.
On the Data Mapper side, here are some versions we've started with. Please advise:

Java source+target 1.8 (Using JDK 1.8u121)
Maven 3.3.9
Maven Plugin Versions:

                <build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
		<maven-bundle-plugin.version>3.2.0</maven-bundle-plugin.version>
		<maven-compiler-plugin.version>3.6.1</maven-compiler-plugin.version>
		<maven-dependency-plugin.version>3.0.0</maven-dependency-plugin.version>
		<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
		<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
		<maven-jaxb2-plugin.version>0.13.1</maven-jaxb2-plugin.version>
		<jetty-maven-plugin.version>9.4.0.v20161208</jetty-maven-plugin.version>

Java dependency versions:

		<at.slf4j.version>1.7.22</at.slf4j.version>
		<at.jackson.version>2.8.5</at.jackson.version>
		<at.jaxb.version>2.2.12</at.jaxb.version>
		<at.junit.version>4.11</at.junit.version>
		<at.jersey.version>2.25.1</at.jersey.version>

Note: We found an issue with Jackson 2.8.6 not working correctly in our build process, so we are using 2.8.5 for that reason.
Outstanding questions?

What Camel version? Is there a Red Hat engineering build we should be referencing?  If so, please provide version and Maven Repo URL (if its an unreleased EA, tech preview, etc version)

What REST framework is preferred for iPaaS? We've started with Jersey, but also note that there is non-iPaaS use case out there which may drive an argument for CXF.

The Camel version will be 2.19.x. The SNAPSHOT from Apache is currently fine to use, but Red Hat are building EA builds for Fuse that are a mirror of 2.19.x and therefore we can potentially switch over to an EA build, but they only last 2 weeks before being automatic deleted.
And we aim to do a GA release of Camel 2.19.0 that iPaaS can use within the next 2 months.

What was the error with jackson 2.8.6?

We'll start using 2.19-SNAPSHOT from community to avoid the disappearing EA build issue and plan to align to the RH GA 2.19.0 when its ready.

The error with Jackson had to do with marshal/unmarshal of polymorphic objects when using certain combinations of annotations-- either standalone or through Jersey.
I just re-ran our latest code against 2.8.6 and I'm not seeing it.. aren't computers fun?
I'll retest the whole thing when we level Jackson+REST service layer.

Is there an update or an ETA at this point?

Just keep using the 2.19.0-SNAPSHOT. The plan is to release it in April


Modify Apache Spark text extraction job to read from Amazon S3

Currently, the Apache Spark text extraction job reads resumes from the local file system. This process should be modified to read from S3. The job should also be enhanced to be a Spark Streaming job Investigate using a queuing service to only process new resumes. Options include Amazon S3, Kinesis and Kafka.
The following link contains code to work with Amazon S3:
http://www.sparktutorials.net/reading-and-writing-s3-data-with-apache-spark
The following link contains code to work with Amazon SQS:
https://github.com/imapi/spark-sqs-receiver

Getting this error: Exception in thread "main" java.lang.NoSuchMethodError: org.jets3t.service.impl.rest.httpclient.RestS3Service.(Lorg/jets3t/service/security/AWSCredentials;)V
When trying to execute this code:
sc.hadoopConfiguration.set("fs.s3n.awsAccessKeyId", keys.get(0))
sc.hadoopConfiguration.set("fs.s3n.awsSecretAccessKey", keys.get(1))
val fileData = sc.textFile("s3n://resumes.interns.dataworks-inc.com")

Ran out of time for this one. The application supports reading data from S3 but the attachment store continues to be within Elasticsearch.


some experiences using usbip win-win and win-lin

development:
i'm working on a gui for the usbip client side for windows:

here you can easily attach and detach usb devices (usbip client gui works together with windows and linux usbip server)
here i made different experiences connecting from:
-windows (client) to windows (server)
and
-windows (client) to linux (server)
windows (client) to windows (server):
-here attaching the usb devices works very easy, but some usb devices like usb storage sticks are only working with wdm drivers
-so you have to adapt the devices to different usbip.exe versions (wdm or ude driver) by testing it out
windows (client) to linux (server):
-attaching usb devices sometimes needs fixes to work properly. so you have to create rules for some vendors or devices to get it work. these fixes are normally not needed in windows (client) to windows (server) scenario.
-ude drivers often leeds to bluescreen
results:
-crossplatform usage needs some tweaking and fixes with rules for wdm and ude usage
-it is not possible to use only one driver version, you have to mix both drivers and have to decide which usb device will work with which driver by testing and creating rules
-it is important to have the wdm driver version, because many usb devices will work only with that driver
questions:
-can you also say or comment something to these observations?
-would it be possible to have only one version of usbip-win2 which will work crossplatform or do you need both driver versions (wdm and ude) and you can't avoid creating vendor or device specific rules?
-can this info help you in developping further the usbip-win2 project?

I have several usb flash drives and all work without issues.

from windows to windows the usb flash works also with ude for me, but from windows to linux i have to use wdm as described. i don't know why that's the case.

I don't care about Win server, I use Linux server only.

I use Linux Mint with kernel 6.2 currently. Previous kernels work well too.

thank you. overall it works now either with wdm or ude drivers. there ar some devices like card readers which i can't get work, but that is not so important for me. i wonder how other usb redirection software solutions can handle all types of usb devices.

Are you sure about that? I worked for major developer of such proprietary software with its own protocol instead of usbip. It had, has and will always have tons of bugs. I can't solve one real problem in UDE driver

i tried different software solutions and they do support for example out of the box some of my usb devices.  (usb storage sticks, graphic tablet, 3d mouse, multi card reader...). so i got the impression that they do soemthing different or have an own development. now i can get the most usb devices running with your usbip-win2 project on windows client. as decribed i have to experiment which driver to use best for which usb device. also making tests with win to win and win to lin until i got something running stable.
i have also another question. in the latest code you have a folder with ude and wdm driver. when compiling this is then only the ude driver included in the innosetup? or is it possible to add both drivers in one innosetup or is wdm only in wdm branch and development is stopped for wdm?

WDM is in "wdm" branch, I will delete its directory from UDE branch to not confuse people.

thank you.

SDK will install C++ headers, PDB are required for debugging BSOD.


fix: make dev-server compatible with globalThis

Summary

Make dev-server compatible in chrome 49;
Only this line in dev-client, make the web project not been opened in chrome 49.
Test Plan

I changed the code in my<EMAIL_ADDRESS>and my web project worked.

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

thanks a log


TS2315 Type 'ActionType' is not generic

{
  "typesafe-actions": "^3.2.1",
  "typescript": "^3.4.1",
}

After upgrade to react-scripts start to get error:
TS2315 Type 'ActionType' is not generic
// actions.ts
export const open = createStandardAction('OPEN_DIALOG')<DialogType>();
export const close = createStandardAction('CLOSE_DIALOG')<DialogType>();

// reducer.ts
import { ActionType } from 'typesafe-actions';
import * as actions from './actions';
export type EditorAction = ActionType<typeof actions>;

Result:
TS2315 Type 'ActionType' is not generic

I have the exact same error.
Did you find the fix?

Fixed by installing the following version: 3.3.0-rc
Check this issue: https://github.com/piotrwitek/typesafe-actions/issues/130


Meta? Flutter examples are too complicated

I'm not sure if this is Meta or not, but I've noticed that Flutter examples in the docs and in official plugins are incredibly verbose and include a lot of code that has nothing to do with the task at hand.
Example 1.
https://pub.dartlang.org/packages/video_player#-example-tab-
So it's cool that we have a complete implementation, but I would personally benefit much more from "load video," "play video", "pause video," "load new video" examples. (I find this to be in huge contrast to what I have seen from the JS community, where they treat every second of someones time as extremely valuable.)
Contrast to this: https://www.npmjs.com/package/react-native-video-processing#usage
Example 2.
https://docs.flutter.io/flutter/rendering/CustomPainter-class.html
This appears to have semantics wrapped into a tutorial about CustomPainter. I'm not sure why. It may be best practices, but that would be a side note, not a core part of the tutorial.
Contrast to this: https://www.npmjs.com/package/react-native-canvas

The examples cited are for the API docs and pub.dev. Neither of which are covered in the documentation. Please review and prioritize as appropriate.

Hi @lukepighetti, is this still relevant today? The docs for video player seems to have changed, and it might be the same for the CustomPainter class, but I'm not sure what it looked like when this issue was filed/


[FEATURE] Add "suggest" to SearchResponse

It looks like the SearchResponse is missing serialization for a suggestion response yet, e.g. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters.html#querying

Thanks for raising this @svenhartmann. The suggesters property had some issues with code-gen and is on a list for me to revisit. I'll keep this issue open to track that progress. For the second item, I'll need to investigate. That might be an issue with the spec.

@svenhartmann For the second item, the second code snippet is the correct way to configure the suggester. We model this in the spec as a specialised container concept, with FieldSuggester being able to contain one of the three possible suggester variants (completion, phrase and term). There is an issue with our spec as prefix (and regex) shouldn't appear on the CompletionSuggester variant. I'm going to split this into two issues so we can track and resolve each independently.

@ste

@stevejgordon Would be nice to have this feature and the range queries within the next release. Is it feasible?

@stevejgordon Any news here?

@svenhartmann I looked at this for 8.1.0, but we still need to do some work in code-gen to handle the spec and make the code usable. I don't have an ETA for when we will pick this up but agree it's a gap we need to fill.

@stevejgordon Seems that its not in the 8.1.1 release. I started migration of a webshop search of a customer in march and the only features that breaks the upgrade is the missing suggest response.

@svenhartmann I didn't get a chance to focus on this for the latest release, so unfortunately, it is still open. I have moved on from maintaining this library day-to-day which has slowed progress, and we have a new engineer starting today to take ownership. We can't provide any timescales for this item at the moment, but it will be picked up when possible.

I am also migrating to the new client and are also blocked by this missing feature.

Hello, we are also trying to migrate to Elastic.Clients.Elasticsearch 8.1.x (to upgrade also from ES7 to ES8) and we also have this issue with the suggestions that is blocking our upgrade. Could we provide you some help ? If you give me some guidance, I can take a look to fix that issue?

Hello, I've also ran into this roadblock for an upgrade on our current project and would appreciate if this could be added!

It looks possible to use
string response = resultQuery.ApiCallDetails.ResponseBodyInBytes.ToUtf8String();
to grab the response in json format.
From there it looks like the "suggest" isn't set up right for an easy conversion to c# objects. (using json2csharp.com). Basically, it sets up each suggestor as parameters rather than an array. Whiff.
Probably need to use dynamic objects.

It worked in NEST 7.x so I guess we could/should take inspiration from the old code to implement it in the new client.

From what I see, the real issue is the JSON produced from ES. Fix that and a lot of the client code on many platforms becomes much easier to code, maintain, and performs better. Basically a lot of band-aiding going on with client code.
I pretty sure another approach I have in mind would work with current JSON, result in easier to code to maintain and faster, but I need more coffee.


Form renders twice (2x) if initialValues property is provided to reduxForm()

What is the current behavior?

The form renders twice initially if initialValues property is provided in reduxForm()
What is the expected behavior?
The form should render only once.
Sandbox Link
https://codesandbox.io/s/nw639m6r5m
What's your environment?
"react": "16.6.3",
"react-dom": "16.6.3",
"react-redux": "5.0.6",
"redux": "3.6.0",
"redux-form": "7.4.2",

@croraf this test looks like this is intentional
https://github.com/erikras/redux-form/blob/0eb2c366a02e8838dc49dfbff45ecb537bc3dbb3/src/__tests__/reduxForm.spec.js#L757-L794
or do I misunderstand the "why" of the test?

this looks there is quite some discussion about it e.g. here https://github.com/erikras/redux-form/issues/621

this sounds like a workaround https://github.com/erikras/redux-form/issues/176#issuecomment-237290747

The form should render only once.
Not the case. You should not depend on render counts. Also there are some cases when react will execute your component methods more than one time.

But why does the second render happen, and not all at once?

Also there are some cases when react will execute your component methods more than one time.
Can you give example?

This means that React may invoke render phase lifecycles more than once before committing, or it may invoke them without committing at all (because of an error or a higher priority interruption).
https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects


:lipstick: added option drawer variant

What happened to this? @Brynjulf @mariush2?

Not valid anymore according to the newest updates to the design for this


Add some extra methods and one more attribute.

Add get_volume method and change_source method.
Change source only supports hdmi1 and hdmi2.
Also add assume state attribute because in some cases (for example Xiaomi Projector) switching the device to sleep just turn off the screen but the device keep running normally.
To be able to turn off the projector completely add one more option assume_state to handle this case.
An example of the above is here

Thank you for this pull request. Have you tested this on any devices?

Thank you for this pull request. Have you tested this on any devices?

Hello! Yes I tested at a Xiaomi projector running xiaomi tv os. Also I try to do not change anything from your methods and logic.
I update the code to pass all tests.

Is any suggestion you would like to make?

Hi ppanagiotis! Thank you very much for these changes! Since you're using the API to control the projector, do you think it is possible to adjust the focus of the projector as well?

Hi ppanagiotis! Thank you very much for these changes! Since you're using the API to control the projector, do you think it is possible to adjust the focus of the projector as well?