[SPARK-36549][SQL] Add taskStatus supports multiple value to monitoring doc

What changes were proposed in this pull request?
In Stage related restful API, we support taskStatus parameter as a list
 @QueryParam("taskStatus") taskStatus: JList[TaskStatus]

In restful we should write like
taskStatus=SUCCESS&taskStatus=FAILED

It's usefule but not show in the doc, and many user don't know how to write the list parameters.
So add this feature to monitoring doc too.
Why are the changes needed?
Make doc clear
Does this PR introduce any user-facing change?
No
How was this patch tested?
With restful request
http://localhost:4040/api/v1/applications/local-1629432414554/stages/0?details=true&taskStatus=FAILED

Resultful request result tasks
tasks" : {
    "0" : {
      "taskId" : 0,
      "index" : 0,
      "attempt" : 0,
      "launchTime" : "2021-08-20T04:06:55.515GMT",
      "duration" : 273,
      "executorId" : "driver",
      "host" : "host",
      "status" : "FAILED",
      "taskLocality" : "PROCESS_LOCAL",
      "speculative" : false,
      "accumulatorUpdates" : [ ],
      "errorMessage" : "java.lang.RuntimeException\n\tat org.apache.spark.ui.UISuite.$anonfun$new$8(UISuite.scala:95)\n\tat scala.runtime.java8.JFunction1$mcVI$sp.apply(JFunction1$mcVI$sp.java:23)\n\tat scala.collection.Iterator.foreach(Iterator.scala:943)\n\tat scala.collection.Iterator.foreach$(Iterator.scala:943)\n\tat org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)\n\tat org.apache.spark.rdd.RDD.$anonfun$foreach$2(RDD.scala:1003)\n\tat org.apache.spark.rdd.RDD.$anonfun$foreach$2$adapted(RDD.scala:1003)\n\tat org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2254)\n\tat org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)\n\tat org.apache.spark.scheduler.Task.run(Task.scala:136)\n\tat org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:507)\n\tat org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1468)\n\tat org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:510)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n",
      "taskMetrics" : {
        "executorDeserializeTime" : 0,
        "executorDeserializeCpuTime" : 0,
        "executorRunTime" : 206,
        "executorCpuTime" : 0,
        "resultSize" : 0,
        "jvmGcTime" : 0,
        "resultSerializationTime" : 0,
        "memoryBytesSpilled" : 0,
        "diskBytesSpilled" : 0,
        "peakExecutionMemory" : 0,
        "inputMetrics" : {
          "bytesRead" : 0,
          "recordsRead" : 0
        },
        "outputMetrics" : {
          "bytesWritten" : 0,
          "recordsWritten" : 0
        },
        "shuffleReadMetrics" : {
          "remoteBlocksFetched" : 0,
          "localBlocksFetched" : 0,
          "fetchWaitTime" : 0,
          "remoteBytesRead" : 0,
          "remoteBytesReadToDisk" : 0,
          "localBytesRead" : 0,
          "recordsRead" : 0
        },
        "shuffleWriteMetrics" : {
          "bytesWritten" : 0,
          "writeTime" : 0,
          "recordsWritten" : 0
        }
      },
      "executorLogs" : { },
      "schedulerDelay" : 67,
      "gettingResultTime" : 0
    }
  },

With restful request
http://localhost:4040/api/v1/applications/local-1629432414554/stages/0?details=true&taskStatus=FAILED&taskStatus=SUCCESS

Restful result tasks
"tasks" : {
    "1" : {
      "taskId" : 1,
      "index" : 1,
      "attempt" : 0,
      "launchTime" : "2021-08-20T04:06:55.786GMT",
      "duration" : 16,
      "executorId" : "driver",
      "host" : "host",
      "status" : "SUCCESS",
      "taskLocality" : "PROCESS_LOCAL",
      "speculative" : false,
      "accumulatorUpdates" : [ ],
      "taskMetrics" : {
        "executorDeserializeTime" : 2,
        "executorDeserializeCpuTime" : 2638000,
        "executorRunTime" : 2,
        "executorCpuTime" : 1993000,
        "resultSize" : 837,
        "jvmGcTime" : 0,
        "resultSerializationTime" : 0,
        "memoryBytesSpilled" : 0,
        "diskBytesSpilled" : 0,
        "peakExecutionMemory" : 0,
        "inputMetrics" : {
          "bytesRead" : 0,
          "recordsRead" : 0
        },
        "outputMetrics" : {
          "bytesWritten" : 0,
          "recordsWritten" : 0
        },
        "shuffleReadMetrics" : {
          "remoteBlocksFetched" : 0,
          "localBlocksFetched" : 0,
          "fetchWaitTime" : 0,
          "remoteBytesRead" : 0,
          "remoteBytesReadToDisk" : 0,
          "localBytesRead" : 0,
          "recordsRead" : 0
        },
        "shuffleWriteMetrics" : {
          "bytesWritten" : 0,
          "writeTime" : 0,
          "recordsWritten" : 0
        }
      },
      "executorLogs" : { },
      "schedulerDelay" : 12,
      "gettingResultTime" : 0
    },
    "0" : {
      "taskId" : 0,
      "index" : 0,
      "attempt" : 0,
      "launchTime" : "2021-08-20T04:06:55.515GMT",
      "duration" : 273,
      "executorId" : "driver",
      "host" : "host",
      "status" : "FAILED",
      "taskLocality" : "PROCESS_LOCAL",
      "speculative" : false,
      "accumulatorUpdates" : [ ],
      "errorMessage" : "java.lang.RuntimeException\n\tat org.apache.spark.ui.UISuite.$anonfun$new$8(UISuite.scala:95)\n\tat scala.runtime.java8.JFunction1$mcVI$sp.apply(JFunction1$mcVI$sp.java:23)\n\tat scala.collection.Iterator.foreach(Iterator.scala:943)\n\tat scala.collection.Iterator.foreach$(Iterator.scala:943)\n\tat org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)\n\tat org.apache.spark.rdd.RDD.$anonfun$foreach$2(RDD.scala:1003)\n\tat org.apache.spark.rdd.RDD.$anonfun$foreach$2$adapted(RDD.scala:1003)\n\tat org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2254)\n\tat org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:90)\n\tat org.apache.spark.scheduler.Task.run(Task.scala:136)\n\tat org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:507)\n\tat org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1468)\n\tat org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:510)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n",
      "taskMetrics" : {
        "executorDeserializeTime" : 0,
        "executorDeserializeCpuTime" : 0,
        "executorRunTime" : 206,
        "executorCpuTime" : 0,
        "resultSize" : 0,
        "jvmGcTime" : 0,
        "resultSerializationTime" : 0,
        "memoryBytesSpilled" : 0,
        "diskBytesSpilled" : 0,
        "peakExecutionMemory" : 0,
        "inputMetrics" : {
          "bytesRead" : 0,
          "recordsRead" : 0
        },
        "outputMetrics" : {
          "bytesWritten" : 0,
          "recordsWritten" : 0
        },
        "shuffleReadMetrics" : {
          "remoteBlocksFetched" : 0,
          "localBlocksFetched" : 0,
          "fetchWaitTime" : 0,
          "remoteBytesRead" : 0,
          "remoteBytesReadToDisk" : 0,
          "localBytesRead" : 0,
          "recordsRead" : 0
        },
        "shuffleWriteMetrics" : {
          "bytesWritten" : 0,
          "writeTime" : 0,
          "recordsWritten" : 0
        }
      },
      "executorLogs" : { },
      "schedulerDelay" : 67,
      "gettingResultTime" : 0
    }
  },

ping @zsxwing @srowen @HyukjinKwon

Test build #142660 has started for PR 33793 at commit 9ce909f.

Test build #142660 has finished for PR 33793 at commit 9ce909f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142660/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47161/

@AngersZhuuuu the change seems fine but let's make sure having a detailed PR description e.g) with an example of requesting and output, how you tested, etc.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47161/

@AngersZhuuuu the change seems fine but let's make sure having a detailed PR description e.g) with an example of requesting and output, how you tested, etc.

How about current

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47161/

Test build #142678 has started for PR 33793 at commit 7c0b06a.

Test build #142678 has finished for PR 33793 at commit 7c0b06a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142678/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47180/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47180/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47180/

Merged to master and branch-3.2.


Email registration is not associated to the existing Social Account.

Expected

I sign up with FB at /rest-auth/facebook/. I get a JWT token.
I register an email at /rest-auth/registration, using the Bearer token in the header to get authorized.
The email is associated to my account.

Actual results
The bearer token is ignored and another account is created.
Issue
The strength of django-allauth is the ability to associate multiple social accounts / email in a single account.
I may be missing something, but this doesn't seem possible with django-rest-auth ?

You are absolutely right, it doesn't connect same social email addresses, I went through the code and l realized that, connect=True is actually not used in Allauth https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/models.py#L238 and rest auth relies on this from this line of code https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/registration/serializers.py#L143 . And this creates duplicates accounts with same email address in the Django user table from this line of code https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/models.py#L231. This is problematic. I am currently looking at a way to fix this in my code

I managed to make it work. I am sharing my code so that it will help someone
Edit this line of code
https://github.com/Tivix/django-rest-auth/blob/master/rest_auth/registration/serializers.py#L127 with
		if not login.is_existing:

			if allauth_settings.UNIQUE_EMAIL:# Application enforces UNQIUE EMAIL
				# Do we have an account already with this email address?
				account_exists = get_user_model().objects.filter(email=login.user.email,).exists()
				if account_exists:#Yes we do
					#Grab the user for existing email address
					get_exisiting_user=get_user_model().objects.filter(email=login.user.email,).first()
					login.account.user = get_exisiting_user #Set the exisiting user to this Allauth social login object
					login.account.save()#Save Allauth Social Login Object

					from allauth.socialaccount import app_settings

					if app_settings.STORE_TOKENS and login.token:
						login.token.account = login.account #Set Allauth social login object to Allauth Social Application Token  Object
						login.token.save()
				else:#Account doesn't exist with this email address, let Allauth deal with normal creation of user account and linking of user to Allauth social login object
					login.lookup()
					login.save(request, connect=True)

Let me know if that helped. It is working perfectly for me

My approach was eventually to override perform_create() in RegisterView:
class EmailRegisterView(RegisterView):
    """
    Override rest_auth's email RegisterView in order to fix a major flaw where a user authenticated with Facebook
    cannot link up an email account.
    See also core.serializers.RegisterSerializer for another fix.
    """

    def perform_create(self, serializer):
        # fix start
        # If the user is already authenticated (because the API was called using the JWT token), we want
        # to associate this new email to the existing account, not create a separate account.
        if self.request.user and self.request.user.is_authenticated:
            user: User = self.request.user
            email = serializer.validated_data['email']
            password = serializer.validated_data['password1']
            user.email = email
            user.set_password(password)
            user.save()
            sync_user_email_addresses(user)
        # fix end
        else:
            user = serializer.save(self.request)
        if getattr(settings, 'REST_USE_JWT', False):
            self.token = jwt_encode(user)
        else:
            create_token(self.token_model, user, serializer)

        complete_signup(self.request._request, user, allauth_settings.EMAIL_VERIFICATION, None)
        return user

And in urls.py :

    path('rest-auth/registration/', EmailRegisterView.as_view(), name='rest_register'),
    path('rest-auth/registration/', include('rest_auth.registration.urls')),


Adds -profiler-address flag and fixes kustomization for tilt compatibility

What this PR does / why we need it:
This changes allow capk to work with CAPIs Tiltfile.

Changes required because CAPI's Tiltfile runs kustomize to config/default:

Moves the provider label in from config/kustomization.yaml to config/default
Moves the crd directory reference from config/kustomization.yaml to config/default
Moves the name-prefix setting from config/kustomization.yaml to config/default

Adds pprof flag --profiler-address to main.go, CAPI's Tiltfile enforces the --profiler-address flag
Converts the tilt-provider.json to an array

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release notes:

NONE

everything is working as expected, thanks for the contribution @chrischdi !
one question before we merge this, does the user need to know about enabling the profiler flag in order to make the tilt stuff work?
my concern here is to make sure we add something to the README about the flag if a user might need to know.

Tilt will set the flag by default to the correct value if the provider is enabled and configuration docs of CAPI for tilt also cover this configuration options in a general way https://cluster-api.sigs.k8s.io/developer/tilt.html#create-a-tilt-settings-file .

perfect, thanks again @chrischdi
/approve
/lgtm


use the client that reconnects

@patrickxb I don't think the client is properly reconnecting to gregord in its current state. The following change should make this work. The GenericClient that comes back from GetClient has all the reconnect machinery in it. Let me know what you think!

Cool, LGTM

Thanks!


Assassin's Creed Unity has messed up graphics

Assassin's Creed Unity has messed up graphics with little textures at all. Here you are some screenshots:
https://imgur.com/s28zTvE
https://imgur.com/as6dMkl
With regular Wine the game crashes at "Press any button" dialog after some movies in the begining, so I don't know how much apitrace will be helpful but I'll apply it here.
Software information
Assassin's Creed Unity. I tried it with different video settings.
System information

GPU: Nvidia GTX 1080 Ti
Driver: 396.24
Wine version: 3.7/3.8/3.7-staging
DXVK version: latest 12.05.2018

Apitrace file(s)
apitrace.zip
Log files

d3d11.log:
https://pastebin.com/CB24gzzD
dxgi.log:
https://pastebin.com/BdyDP6ki

@mozo78 update drivers to 296.18.11 https://developer.nvidia.com/vulkan-driver.

I'll try, thank you :)

Can you record an apitrace on Windows? I cannot debug the problem without one.
Also, your "apitrace" is not an apitrace but console output.

I don't use Windows and never will sorry for that :)
Actually the game runs with latest beta drivers, great work doitsujin, Nvidia!
https://imgur.com/uz7qW82
https://imgur.com/lxZo4BG

Okay, cool, thanks for reporting back :+1:

Thanks to you for yor great work. It's incredible!


Add prop to customize animation duration and fix thumbButton not toggling on initial render

The default animation feels a bit slow for some scenarios, having a prop to customize will be very helpful.
As well, the thumbButton does not render correctly when the initial value is set to true since the updateThumbButton function is only being called when onPress is triggered. I changed the function to be called on any toggleValue state change and added another effect to allow the component to be controlled by external changes, this is useful when you want the toggle to be sync with other states.

@jbernhardt23 Thanks for the PR. I'll take a look this weekend.


AttributeError: 'MycroftAPI' object has no attribute '_ws'

Home Assistant release with the issue:

0.78.3
Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):

Docker container on RPi
Component/platform:

Mycroft: https://www.home-assistant.io/components/notify.mycroft/
Mycroft version: 18.8.1
Description of problem:
When attempting to notify via Mycroft an error is thrown. No audio is heard.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
# Mycroft
mycroft:
  host: <IP_ADDRESS>

This is added in configuration.yml
Traceback (if applicable):
Error executing service <ServiceCall notify.notify (c:712a69a4f5b94cf0bc4ad0c727bf963f): message=<homeassistant.helpers.template.Template object at 0x5fcaf710>>

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1127, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/__init__.py", line 137, in async_notify_message
    yield from notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/mycroft.py", line 38, in send_message
    mycroft.speak_text(text)
  File "/config/deps/lib/python3.5/site-packages/mycroftapi/__init__.py", line 21, in speak_text
    self._ws.send(message)
AttributeError: 'MycroftAPI' object has no attribute '_ws'

Getting this problem in version 0.83.2 too:
2018-12-02 17:39:13 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall notify.notify (c:a032ef6647c242409d6c3377f8272d8c): message=<homeassistant.helpers.template.Template object at 0x6e841eb0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1177, in _event_to_service_call
await service_handler.func(service_call)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/init.py", line 117, in async_notify_message
await notify_service.async_send_message(**kwargs)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/notify/mycroft.py", line 38, in send_message
mycroft.speak_text(text)
File "/usr/local/lib/python3.6/site-packages/mycroftapi/init.py", line 21, in speak_text
self._ws.send(message)
AttributeError: 'MycroftAPI' object has no attribute '_ws'
Configuration as follows:
Mycroft
mycroft:
host: <IP_ADDRESS>
notify:

platform: mycroft
name: mycroft

@balloobbot This can be closed. It's not an issue with Home Assistant - it's an issue with Mycroft's firewall, which can be fixed by logging in to Mycroft over SSH, and typing sudo ufw allow 8181/tcp
The Mycroft plugin is working fine on the latest Home Assistant version if you do this.

I still have this issue. It is not a firewall problem either and other devices can connect to the web sockets ok. Latest version of HASS:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/websocket_api/decorators.py", line 17, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/websocket_api/commands.py", line 148, in handle_call_service
    connection.context(msg))
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1129, in async_call
    self._execute_service(handler, service_call))
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/core.py", line 1151, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/__init__.py", line 117, in async_notify_message
    await notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/notify/mycroft.py", line 38, in send_message
    mycroft.speak_text(text)
  File "/config/deps/lib/python3.5/site-packages/mycroftapi/__init__.py", line 21, in speak_text
    self._ws.send(message)
AttributeError: 'MycroftAPI' object has no attribute '_ws'

Also spotted that the GitHub repo for the API that HASS is using has been removed: https://github.com/Geeked-Out-Solutions/mycroft_api although it is still up on pypi: https://pypi.org/project/mycroftapi/

I have been attempting to debug this and moved some code around to see what was happening. The library is coming back with
File "/config/deps/lib/python3.5/site-packages/websocket/_http.py", line 190, in _open_socket
    raise err
  File "/config/deps/lib/python3.5/site-packages/websocket/_http.py", line 170, in _open_socket
    sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

Other machines on network are connecting without issue still... most confusing.

Finally found the bug and it was in my config file. So sorry for the noise 🤕


error when using embedding_lookup with random initial embeddings

Hi all. I'm working on variable-length sequence data. eg. a sequence data = np.array([4,2,3,2,0,-1,-1])(padded to length 7, the real sequence length is 5). They are word ids. So I can get word embeddings through tf.nn.embedding_lookup.
import tensorflow as tf
import numpy as np
import os
import cPickle

vocab_size = 105374
embed_dim = 200
input_x = tf.placeholder(dtype=tf.int32, shape=[7], name="x")
embedding_matrix = tf.placeholder(dtype=tf.float32, shape=[vocab_size, embed_dim], name="embeddings")
with tf.device("/cpu:0"), tf.variable_scope("embedding"):
    embedded_inputs = tf.nn.embedding_lookup(embedding_matrix, input_x)

## Test
data = np.array([4,2,3,2,0,-1,-1])
embedding_path = os.path.join("/home/lan/data/dataset-TSU", "IMDB", "embinit.save")
with open(embedding_path, 'rb') as f:
    embed_init = cPickle.load(f)
with tf.Session() as sess:
    sess.run(tf.initialize_all_variables())
    print sess.run(embedded_inputs, feed_dict={input_x:data, embedding_matrix:embed_init})

If I use placeholder to hold my pre-trained word vectors embinit.save, id = -1 is ok to work.
I got result from the code above like that. As I expected, the last two ids are both -1, which cannot be found in word embedding matrix. So it returned all zeros.
[[ 0.26877201  0.239695   -0.08297    ..., -0.030947    0.199618
  -0.24129499]
 [ 0.115232    0.123859   -0.055312   ..., -0.040216    0.176268   -0.259417  ]
 [ 0.132403    0.134068   -0.059557   ..., -0.010268    0.16242801
  -0.240173  ]
 ...,
 [ 0.20500401  0.125486   -0.116052   ...,  0.066659    0.15658499
  -0.227872  ]
 [ 0.          0.          0.         ...,  0.          0.          0.        ]
 [ 0.          0.          0.         ...,  0.          0.          0.        ]]

But if I randomly initialized word embedding matrix, like that
vocab_size = 105374
embed_dim = 200
input_x = tf.placeholder(dtype=tf.int32, shape=[7], name="x")
with tf.device("/cpu:0"), tf.variable_scope("embedding"):
    embedding_matrix = tf.get_variable(name="embedding_matrix",
                                            dtype=tf.float32,
                                            shape=[vocab_size,embed_dim],
                                            initializer=tf.random_uniform_initializer(-1.0, 1.0))
    embedded_inputs = tf.nn.embedding_lookup(embedding_matrix, input_x)

I got such an error:
tensorflow.python.framework.errors.InvalidArgumentError: indices[5] = -1 is not in [0, 105374)

That's to say I cannot use id=-1 in this way. Why?? Is there any solution?

@a-dai Could you take a look at this? Thanks.

same problem here.
Iis '-1' indexing as 'PAD' not supported anymore?
i'm currently avoiding this problem with concatenating 0-vector in embedding weights :
def embedding(inputs, in_dim, out_dim, name=''):
    with tf.variable_scope('Embedding'+name):
        W_emb = tf.get_variable('W', shape=[in_dim-1, out_dim],
                                initializer=tf.random_normal_initializer())
        padding_zeros = tf.zeros(shape=[out_dim])
        W_emb = tf.concat(0, [[padding_zeros], W_emb])
    return embedding_ops.embedding_lookup(W_emb, inputs, validate_indices=False)

You want tf.random_initializer(0, [BATCH_SIZE], 0, num_vectors, tf.int64), I think.
This is a question that is better answered in stackoverflow, where we monitor all issues with the tag tensorflow.

Is this problem well solved nowadays?
When using embedding_lookup, how can I return a 0 tensor if the id is not within the valid range?
Where could I find the related question in stackoverflow.
Thanks!

Is this problem well solved nowadays?
When using embedding_lookup, how can I return a 0 tensor if the id is not within the valid range?
Where could I find the related question in stackoverflow.
Thanks!

I have the same problem,
Is there a way to solve it?


Issue with HA 2022.2

My guess is its a compability issue with pubnub, but vivntypy's requirement is 5.5.0 and I have that.
Any thoughts?
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/config_entries.py", line 327, in async_setup
result = await component.async_setup_entry(hass, self)
File "/home/hass/.homeassistant/custom_components/vivint/init.py", line 59, in async_setup_entry
await hub.login(load_devices=True, subscribe_for_realtime_updates=True)
File "/home/hass/.homeassistant/custom_components/vivint/hub.py", line 94, in login
await self.account.connect(
File "/srv/homeassistant/lib/python3.9/site-packages/vivintpy/account.py", line 72, in connect
await self.subscribe_for_realtime_updates(authuser_data)
File "/srv/homeassistant/lib/python3.9/site-packages/vivintpy/account.py", line 167, in subscribe_for_realtime_updates
self.__pubnub = PubNubAsyncio(pnconfig)
File "/srv/homeassistant/lib/python3.9/site-packages/pubnub/pubnub_asyncio.py", line 38, in init
super(PubNubAsyncio, self).init(config)
File "/srv/homeassistant/lib/python3.9/site-packages/pubnub/pubnub_core.py", line 78, in init
self.config.validate()
File "/srv/homeassistant/lib/python3.9/site-packages/pubnub/pnconfiguration.py", line 38, in validate
def validate(self):
File "/srv/homeassistant/lib/python3.9/site-packages/pubnub/pnconfiguration.py", line 41, in validate_not_empty_string
if not self.uuid:
AssertionError: UUID missing or invalid type

This has already been answered in two separate issues:
https://github.com/natekspencer/hacs-vivint/issues/35
https://github.com/natekspencer/hacs-vivint/issues/36

Apologies.  I failed to check closed issues.   I had upgraded to the newest version, but I had to completely remove the custom integration, start hass, then put back in the new version for the custom integration and then restart for it to correctly load 2022.01.

Apologies. I failed to check closed issues. I had upgraded to the newest version, but I had to completely remove the custom integration, start hass, then put back in the new version for the custom integration and then restart for it to correctly load 2022.01.

Is this the only way to fix it or will installing the next update in HACS (whenever that may be) take care of it?

I had to remove and readd.  I had upgraded and restarted thinking that would fix it.

Noob question here but if you do it that way do you have to redo all associated lovelace entities/cards?

To be more specific, I move the directory our of the custom_components directory and started up HASS (which listed the integration as broken).  I then moved it back and restarted HASS and it all came back.  All lovelace entities/cards remained.   I'm not 100% certain what uninstall it with HACS directly would do.


Integration test for posting post page

Is your feature request related to a problem? Please describe.
Using cypress to generate integration test for posti.ng post page. Check whether the post can correctly identify @ funciton within text content and sent the content by using correspondingly api.
Describe the solution you'd like
Set up cypress test on specific components and check their behaviour with command log.
Describe alternatives you've considered
Additional context

There is a big change for cypress in https://github.com/SE701Team2/Updog/pull/213. task might be blocked. pls review the PR for more info.


Document the 'system' event types for 'podman events'

Fixes: #4002

/approve

LGTM

/hold

/lgtm

/hold cancel


Add Burnt Wing to default loot tables

This would match the behaviour of the original mod.

Fixed in 2.0


Size of Tensor A must match size of Tensor B

HI,
I am trying to do RAG query on a large PDF file and get the below error:
Error: The size of tensor a (3351) must match the size of tensor b (4096) at non-singleton dimension 3.
The run script: python generate.py --base_model=mistralai/Mixtral-8x7B-Instruct-v0.1 --pre_load_embedding_model=True  --score_model=None --enable_tts=False --enable_stt=False --enable_transcriptions=False --auth=auth.json --system_prompt="My name is H2O-GPT and I am an intelligent AI" --attention_sinks=True --max_new_tokens=100000 --max_max_new_tokens=100000 --top_k_docs=-1 --use_gpu_id=False --max_seq_len=4096 --sink_dict="{'num_sink_tokens': 4, 'window_length': 4096}"

Can you provide more of the stack trace?  My guess is that attention sinks in transformers is not bug free.
Separately, I recommend using Mixtral through vLLM in general.  Likely it will be hard to make Mixtral run for long sequences, and it already supports 32k total input+output.

I tried same with Mistral and didn't find any issues.

But the output and input aren't very long.    The input isn't very long because you set --max_seq_len=4096, so it tries to take 29 docs but gets reduced.

Noted.
I will try again with removing --max_seq_len=4096
Also where are the error log files saved in the H2O-GPT folder? (so that i can send you the stack trace) Does one get the CLI output dumped on a file using "> /home/user/dump" after the CLI startup script?

I tried using Mixtral with vLLM and did the following:

Using this guide: https://github.com/h2oai/h2ogpt/blob/main/docs/README_InferenceServers.md Local install the Inference server

Ran inference server: NCCL_SHM_DISABLE=1 CUDA_VISIBLE_DEVICES=0 text-generation-launcher --model-id h2oai/h2ogpt-oig-oasst1-512-6_9b --port 8080  --sharded false --trust-remote-code --max-stop-sequences=6

Ran Model: python generate.py --base_model=mistralai/Mixtral-8x7B-Instruct-v0.1 --prompt_type=zephyr --max_seq_len=4096 --pre_load_embedding_model=True  --score_model=None --enable_tts=False --enable_stt=False --enable_transcriptions=False --max_seq_len=4096 --auth=auth.json  --inference_server="http://<IP_ADDRESS>:8080" &

The Gradio Dump:
Using Model mistralai/mixtral-8x7b-instruct-v0.1
load INSTRUCTOR_Transformer
max_seq_length  512
Starting get_model: mistralai/Mixtral-8x7B-Instruct-v0.1 http:://<IP_ADDRESS>:8080
GR Client Begin: http://http: mistralai/Mixtral-8x7B-Instruct-v0.1
GR Client Failed http://http: mistralai/Mixtral-8x7B-Instruct-v0.1: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f7357c07bb0>: Failed to resolve 'http' ([Errno -2] Name or service not known)"))
HF Client Begin: http://http: mistralai/Mixtral-8x7B-Instruct-v0.1
HF Client Failed http://http: mistralai/Mixtral-8x7B-Instruct-v0.1: Traceback (most recent call last):
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connection.py", line 400, in request
self.endheaders()
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/http/client.py", line 1278, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/http/client.py", line 1038, in _send_output
self.send(msg)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/http/client.py", line 976, in send
self.connect()
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connection.py", line 238, in connect
self.sock = self._new_conn()
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connection.py", line 205, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: <urllib3.connection.HTTPConnection object at 0x7f735dbfd000>: Failed to resolve 'http' ([Errno -2] Name or service not known)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f735dbfd000>: Failed to resolve 'http' ([Errno -2] Name or service not known)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/h2ogpt/src/gen.py", line 2498, in get_client_from_inference_server
res = hf_client.generate('What?', max_new_tokens=1)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/text_generation/client.py", line 275, in generate
resp = requests.post(
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/root/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='http', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x7f735dbfd000>: Failed to resolve 'http' ([Errno -2] Name or service not known)"))
HF Client End: http://http: mistralai/Mixtral-8x7B-Instruct-v0.1 : None
Begin auto-detect HF cache text generation models
End auto-detect HF cache text generation models
Begin auto-detect llama.cpp models
End auto-detect llama.cpp models
Running on local URL:  http://<IP_ADDRESS>:7863
To create a public link, set share=True in launch().
Started Gradio Server and/or GUI: server_name: localhost port: None
Use local URL: http://localhost:7863/

If you look at the trace, you have an odd "Begin: http:://<IP_ADDRESS>:8080" with extra :.  As in the docs, with vLLM one would do something like vllm:<IP_ADDRESS>:8080 or with HF client http://<IP_ADDRESS>:8080 but not extra :'s


ToastUtils设置样式之后，出现一个问题

Describe the bug
APP启动之后，第一次调用Toast改变样式无效，第二次才会有效。
A clear and concise description of what the bug is.

The version of utilcode: 1.25.5
The device: 锤子2S
The version of device: API28

The code of bug

put your code here

The stack of crash

put the stack of crash here

Screenshots
If applicable, add screenshots to help explain your problem.
Please delete the current line and the followings.
Thank you for supporting AndroidUtilCode.

其他机器呢，上下代码吧

Pixel One也有这个问题

先设置再 show 就行的。

尴尬了这！谢谢你kj

问题解决了，我close


color_picker doesn't work

Bug report
What I did
Add a color_picker form field
`
$this->crud->addField([   // color_picker
'label'                => 'Color',
'name'                 => 'color',
'type'                 => 'color_picker',
'default'              => '#000000',
        'color_picker_options' => [
            'customClass' => 'custom-class',
            'horizontal' => true,
            'extensions' => [
                [
                    'name' => 'swatches', // extension name to load
                    'options' => [ // extension options
                        'colors' => [
                            'primary' => '#337ab7',
                            'success' => '#5cb85c',
                            'info' => '#5bc0de',
                            'warning' => '#f0ad4e',
                            'danger' => '#d9534f'
                        ],
                        'namesAsValues' => false
                    ]
                ]
            ]
        ]
    ]);

`
What I expected to happen
To get a Color picker
What happened
I get a color picker, but it doesn't work. I get an error in console: Uncaught TypeError: No method named "getTipElement"
What I've already tried to fix it
I tried with and without options, just the
`
 $this->crud->addField([   // color_picker
        'label'                => 'Color',
        'name'                 => 'color',
        'type'                 => 'color_picker',
        'default'              => '#000000',
    ]);

`
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud the bug... is it still there?
Yes
Backpack, Laravel, PHP, DB version
PHP VERSION:
PHP 8.1.12 (cli) (built: Oct 28 2022 17:39:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.12, Copyright (c) Zend Technologies
with Zend OPcache v8.1.12, Copyright (c), by Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
LARAVEL VERSION:
v9.37.0@0c9675abf6d966e834b2ebeca3319f524e07a330
BACKPACK VERSION:
5.4.7@6e1bb116de9f3091530cb9b11edcceb4d252daa8

Ok, It's a conflict with my app.js


Add common policheck steps

Adding common policheck steps to enable policheck run on PR validations.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


std.format: Wide / Full-width characters as defined by Unicode TR11 (EastAsianWidth.txt) should occupy 2 spaces per character

greensunny12 reported this on 2018-02-19T06:54:39Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=18466
CC List

bugzilla (@WalterBright)

Description
Wide / Full-width characters as defined by Unicode TR11 (EastAsianWidth.txt) should occupy 2 spaces per character, as this is what is done in many monospace terminal applications;

See also:

https://issues.dlang.org/show_bug.cgi?id=7054
https://github.com/dlang/phobos/pull/6008

bugzilla (@WalterBright) commented on 2021-04-29T19:23:58Z
It might be impossible to reach a satisfying result here: EastAsianWidth.txt defines several characters to be ambiguous. That means, it depends on what ever, if they are considered wide or not.

See

https://denisbider.blogspot.com/2015/09/when-monospace-fonts-arent-unicode.html

for a first impression, which problems will arise, when doing this.


Launch screen has dark background even when using a light theme

That is on purpose and is not possible to change

Does iOS not offer a way to have variable launch screens for when using dark/light themes?


Fixed vulnerabilities - artifact-engine

Fixed latest vulnerabilities for artifact-engine.
To-do - need to test changes.

/azp run

/azp run


[backport] add try statement to multiprocessing import

I accidentally re-introduced the multiprocessing top-level import that causes problems when trying to use mne-python with webassembly. this corrects the issue.

thx @teonbrooks


Error when running wails dev.

I encounter this error when I first try to run "wails dev":
ERROR:
main.go:14:12: pattern frontend/out/: cannot embed directory frontend/out/: invalid name *
The way to replicate it is to make a new project with the template command, then solve the first issue of incorrect labeling in the main.go file from "RBG" to "BackgroundColour" and then run "wails dev".

Thanks for reporting this issue, the problem with RGBA has been fixed.
But I can't reproduce the error you mentioned, can you please provide the output of running wails dev?

have the same error, removed the * from the go:embed directive and it seems to be working fine, not sure about build time though

Sorry, I was busy with some personal matters and did not deal with this issue in time.
Many thanks to @siddmo and @lunarca . I just merged the PR from @lunarca  and this issue should be solved now. :rocket:


system: some user inmprovements

not use cgo
add lock/unlock user

Signed-off-by: Vasiliy Tolstov<EMAIL_ADDRESS>

Closing due to inactivity.


Cirrus CI: update FreeBSD 11.3 to 11.4

FreeBSD 11.4 just came out. We've been running a snapshot of that version for a while now; time to upgrade to the real thing!
There's nothing to review here, really, so I'll merge once CI is green.

Coverage decreased (-0.08%) to 57.058% when pulling 16cf901dc4aac7850d4044566e2ca7e675786a05 on feature/update-to-freebsd-11.4 into 85da77ea59e014b3fb353a75ff8049cfebad97ff on master.


java.lang.NullPointerException: Missing required view with ID: com.mckenytech.swyfio_driver:id/maneuverView

sometime the navigation runs smooth...then the second or third time as soon as you hit navigate ,it crashes...this is in embedded view...here is more logs `E/Mapbox  (17061): Using an empty fallback padding instead: [top: 586.0, left: 175.0, bottom: 669.0, right: 175.0]
E/Mapbox  (17061): [maps-core]: {h.swyfio_driver}[General]: Unable to calculate accurate zoom level for camera: the principal point is outside of the framing box.
E/Mapbox  (17061): [maps-core]: {h.swyfio_driver}[General]: Unable to calculate appropriate zoom level for bounds. Vertical or horizontal padding is greater than map's height or width.
E/Mapbox  (17061): [maps-core]: {h.swyfio_driver}[General]: Unable to calculate accurate zoom level for camera: the principal point is outside of the framing box.
E/Mapbox  (17061): [maps-core]: {h.swyfio_driver}[General]: Unable to calculate appropriate zoom level for bounds. Vertical or horizontal padding is greater than map's height or width.
E/AndroidRuntime(17061): FATAL EXCEPTION: main
E/AndroidRuntime(17061): Process: com.mckenytech.swyfio_driver, PID: 17061
E/AndroidRuntime(17061): java.lang.NullPointerException: Missing required view with ID: com.mckenytech.swyfio_driver:id/maneuverView
E/AndroidRuntime(17061): 	at com.mapbox.navigation.dropin.databinding.MapboxManeuverGuidanceLayoutBinding.bind(MapboxManeuverGuidanceLayoutBinding.java:60)
E/AndroidRuntime(17061): 	at com.mapbox.navigation.dropin.maneuver.ManeuverViewBinder.bind(ManeuverViewBinder.kt:27)
E/AndroidRuntime(17061): 	at com.mapbox.navigation.dropin.maneuver.ManeuverViewBinder.bind(ManeuverViewBinder.kt:16)
E/AndroidRuntime(17061): 	at com.mapbox.navigation.ui.base.lifecycle.UICoordinator$onAttached$1$invokeSuspend$$inlined$collect$1.emit(Collect.kt:136)
E/AndroidRuntime(17061): 	at kotlinx.coroutines.flow.FlowKt__ZipKt$combine$$inlined$combineUnsafe$FlowKt__ZipKt$1$2.invokeSuspend(Zip.kt:333)
E/AndroidRuntime(17061): 	at kotlinx.coroutines.flow.FlowKt__ZipKt$combine$$inlined$combineUnsafe$FlowKt__ZipKt$1$2.invoke(Unknown Source:13)
E/AndroidRuntime(17061): 	at kotlinx.coroutines.flow.FlowKt__ZipKt$combine$$inlined$combineUnsafe$FlowKt__ZipKt$1$2.invoke(Unknown Source:6)
E/AndroidRuntime(17061): 	at kotlinx.coroutines.flow.internal.CombineKt$combineInternal$2.invokeSuspend(Combine.kt:79)
E/AndroidRuntime(17061): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(17061): 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
E/AndroidRuntime(17061): 	at android.os.Handler.handleCallback(Handler.java:942)
E/AndroidRuntime(17061): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(17061): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(17061): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(17061): 	at android.app.ActivityThread.main(ActivityThread.java:7872)
E/AndroidRuntime(17061): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(17061): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(17061): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/AndroidRuntime(17061): 	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@938b30a, Dispatchers.Main]
I/Process (17061): Sending signal. PID: 17061 SIG: 9
Lost connection to device.
Exited.`

Same issue here. 2nd or 3rd routing will cause the crash every time.
How to reproduce:

Build route and start navigation.
Stop navigation.
Unload Widget that includes map.
Load widget.
Build route and start navigation.
May need to do 3-5 again for crash.

E/AndroidRuntime(28909): 	at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(28909): 	at android.os.Looper.loopOnce(Looper.java:226) E/AndroidRuntime(28909): 	at android.os.Looper.loop(Looper.java:313) E/AndroidRuntime(28909): 	at android.app.ActivityThread.main(ActivityThread.java:8751) E/AndroidRuntime(28909): 	at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(28909): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) E/AndroidRuntime(28909): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135) E/AndroidRuntime(28909): 	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@41982b8, Dispatchers.Main]

Yeah...i have to be using map launcher now....I end up switching from react native,because I thought mapbox navigation was working with no prob....at this point am willing to pay someone to solve it,because I don't like the idea of driver  exiting the app

so...i went back and try something new....by clearing the route...ending the navigation manually....also, because am testing ,i used like a mock location...so i notice if your starting point/mock/device location  doest change when your about to start a second trip thats when it crash......`
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: _isNavigating
? null
: () {
if (_routeBuilt) {
_controller?.clearRoute();
} else {
var wayPoints = [];
// wayPoints.add(_home);
// wayPoints.add(_store);
                                if (widget.currentRideStatus.status ==
                                    RideStatus.toPickup) {
                                  //clear route and finish navigation just to be sure
                                  _controller?.clearRoute();
                                  _controller?.finishNavigation();
                                  final ori = WayPoint(
                                      name: "origin",
                                      latitude: widget
                                          .driverLocationStream.latitude,
                                      longitude: widget
                                          .driverLocationStream.longitude,
                                      isSilent: false);
                                  wayPoints.add(ori);

                                  wayPoints.add(widget.origin);
                                } else if (widget
                                        .currentRideStatus.status ==
                                    RideStatus.toDestination) {
                                  _controller?.clearRoute();
                                  _controller?.finishNavigation();
                                  final ori = WayPoint(
                                      name: "origin",
                                      latitude: widget
                                          .driverLocationStream.latitude,
                                      longitude: widget
                                          .driverLocationStream.longitude,
                                      isSilent: false);
                                  wayPoints.add(ori);
                                  wayPoints.add(widget.destination);
                                }

                                //build route

                                _isMultipleStop = wayPoints.length > 2;
                                _controller?.buildRoute(
                                    wayPoints: wayPoints,
                                    options: _navigationOption);
                              }
                            },
                      child: Text(_routeBuilt && !_isNavigating
                          ? "Clear Route"
                          : widget.buildTitle),
                    ),
                    const SizedBox(
                      width: 10,
                    ),
                    ElevatedButton(
                      onPressed: _routeBuilt && !_isNavigating
                          ? () {
                              _controller?.startNavigation();
                            }
                          : null,
                      child: const Text('Start '),
                    ),`

I eneded up making my own plugin, rewriting everything from scratch: https://github.com/ComputerlinkAU/flutter_mapbox_turn_by_turn because of issues in this one. One thing I haven't been able to solve though is that there's a memory leak, something isn't destroyed properly in Mapbox when you don't use a standard Android lifecycle. Haven't been able to track down what exactly. The issue is buried somewhere in the private classes of Mapbox's code.

Did you find out what's causes the second to 3rd navigation to crash on this plug-in?

i just realized  i forked your repo like an hour ago...i did notice that it  causes error if i hot reload it...if i stop and rebuild, its ok...W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setUserAnimationInProgress) should not be stored and used after MapView is destroyed. W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setCamera) should not be stored and used after MapView is destroyed. W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing cameraState) should not be stored and used after MapView is destroyed. 2 W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setUserAnimationInProgress) should not be stored and used after MapView is destroyed. 59 W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setCamera) should not be stored and used after MapView is destroyed. W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setUserAnimationInProgress) should not be stored and used after MapView is destroyed. W/Mapbox  (20166): [maps-android\Mbgl-MapboxMap]: MapboxMap object (accessing setCamera) should not be stored and used after MapView is destroyed. D/TrafficStats(20166): tagSocket(130) with statsTag=0xffffffff, statsUid=-1 E/flutter (20166): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: MapboxNavigation cannot be null. Ensure that MapboxNavigationApp is setup and an attached lifecycle is at least CREATED. E/flutter (20166): 	at com.mapbox.navigation.core.lifecycle.RequireMapboxNavigationDelegate.getValue(RequireMapboxNavigation.kt:132) E/flutter (20166): 	at com.mapbox.navigation.core.lifecycle.RequireMapboxNavigationDelegate.getValue(RequireMapboxNavigation.kt:83) E/flutter (20166): 	at au.com.annon.flutter_mapbox_turn_by_turn.ui.TurnByTurnNative.getMapboxNavigation(TurnByTurnNative.kt:224) E/flutter (20166): 	at au.com.annon.flutter_mapbox_turn_by_turn.ui.TurnByTurnNative.registerObservers(TurnByTurnNative.kt:871) E/flutter (20166): 	at au.com.annon.flutter_mapbox_turn_by_turn.ui.TurnByTurnNative.initializeMapbox(TurnByTurnNative.kt:848) E/flutter (20166): 	at au.com.annon.flutter_mapbox_turn_by_turn.ui.TurnByTurnView.<init>(TurnByTurnView.kt:28) E/flutter (20166): 	at au.com.annon.flutter_mapbox_turn_by_turn.ui.TurnByTurnViewFactory.create(TurnByTurnViewFactory.kt:22) E/flutter (20166): 	at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:503) E/flutter (20166): 	at io.flutter.plugin.platform.PlatformViewsController$1.createForPlatformViewLayer(PlatformViewsController.java:163) E/flutter (20166): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:105) E/flutter (20166): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:55) E/flutter (20166): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258) E/flutter (20166): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/flutter (20166): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322) E/flutter (20166): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) E/flutter (20166): 	at android.os.Handler.handleCallback(Handler.java:942) E/flutter (20166): 	at android.os.Handler.dispatchMessage(Handler.java:99) E/flutter (20166): 	at android.os.Looper.loopOnce(Looper.java:201) E/flutter (20166): 	at android.os.Looper.loop(Looper.java:288)

That's due to the memory leak. Something isn't deinitialized and everything breaks when init is run on that already initted thing. No trace log as to what exactly though.

did you manage to fix it?

No. Feel free to try youself if you want. You'll Need to fork the Mapbox Navigation Android repos (and probably the other Mapbox dependencies).

did you manage to fix it ? @mckeny3
I also got the same problem when using the navigation. Mine works fine in the first run, But after that when i try to navigate again the app crash.
I already tried to clear the route and dispose the screen but same problem exist.

Hello @eopeter is there any updates for this kind of errors ? Thanks.

is this issue still happening with the current version 0.2.0?

@eopeter  i will try the new version 0.2.0 and will give a feedback thanks for the response.


Move DesktopNotifier.app_icon to DesktopNotifierBackend.app_icon

This truly freezes Notification instances
Resource.as_name() is necessary to make mypy happy, otherwise it always assumes that Resource.name might be None

Codecov Report
Attention: Patch coverage is 64.10256% with 14 lines in your changes missing coverage. Please review.

Project coverage is 73.69%. Comparing base (26c6af2) to head (13638cd).
Report is 14 commits behind head on main.

Files with missing lines
Patch %
Lines

src/desktop_notifier/backends/winrt.py
0.00%
9 Missing :warning:

src/desktop_notifier/main.py
71.42%
2 Missing :warning:

src/desktop_notifier/sync.py
66.66%
2 Missing :warning:

src/desktop_notifier/common.py
75.00%
1 Missing :warning:

:exclamation:  There is a different number of reports uploaded between BASE (26c6af2) and HEAD (13638cd). Click for more details.
HEAD has 5 uploads less than BASE

Flag
BASE (26c6af2)
HEAD (13638cd)

pytest
12
7

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #202       +/-   ##
===========================================
- Coverage   85.13%   73.69%   -11.45%
===========================================
  Files          10       10
  Lines         895      920       +25
===========================================
- Hits          762      678       -84
- Misses        133      242      +109

Flag
Coverage Δ

pytest
73.69% <64.10%> (-11.45%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Select a Text in WORD document using WINAPP driver

How to select particular text in MS word and validate the context with WINAPP driver. unable to select text and validate the font. Please suggest how to validate by using WINAPP driver [  am using inpect.exe to get the Xpath].

Do a ctrl +f and give the text to start and check the font size

driver.findelementbyname("Font Size").Text

Can you suggest , How  to select the any text in Word document. its not giving the xpath of particular text its only mentioning the word document name in it as below [ for example i have attached a screenshot..]
example - i have selected the text manually 'interface' and looked for the XPATH

I do cntrl+c and check the clipboard.
Another thing you should check is the image.  I did the following:

AppiumWebElement.GetImage()
Bitmap array, check each pixel is within an RGB distance tolerance of the selection color
If success, create a Rectangle and see if the rectangle Intersects with other rectangles of the selection color.  If it intersects expand the rectangle in the array, else add this new rectangle to the list.
Return the array.

I would check that the black selection has white text within it.

If the testing is done on a local computer, it will probably be easier to do it using Word Automation

@DLightstone Can you please describe how can we do it with Word Automation? , because i have searched on that. But unable to get the appropriate info

I guess you choose the wrong search criteria
Try - Microsoft Word Automation
You should have found something. I did.
https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-word-create-file-using-visual-c


Add options to create pod security policies during chart installation

When installing the 0.58.0 chart on EKS, nothing worked until I added a psp.  This was an option in the splunk-connect-for-kubernetes chart, so this PR adds the same ability to the splunk-otel-collector-chart.
Adding parameters to match the splunk-connect-for-kubernetes chart, and the policy that worked for my setup.

PSP was removed from this repo some time ago as its deprecated and will be dropped in Kubernetes 1.25 https://kubernetes.io/docs/concepts/security/pod-security-policy/

Not everyone can upgrade their k8s versions as quickly as they are released. We are currently on 1.21 still and will be until probably next year. I would suggest adopting a policy of not removing features that are still supported, even if they are deprecated as it makes adoption much harder for those with very large (>500 nodes), sometimes slower moving infrastructure.

@mr-miles @jheiselman I understand the concern, we don't want to add a config option that is broken on the latest kubernetes version. I added a document covering how to manually install the PSP https://github.com/signalfx/splunk-otel-collector-chart/pull/580

Excellent. That works for me. Thank you.


Should the GMStepper class be open?

In order for other people to be able to subclass the GMStepper easily and override the setup() method, should the GMStepper class be open?

I would agree on that since I wanted to extend it as well.

Yep feel free to send a PR! :)


SCP-2596: New posixTimeRange <-> SlotRange logic

Now posixTimeRangeToSlotRange returns the largest slot range that is entirely contained by the time range, and slotRangeToPOSIXTimeRange takes exclusive bounds into account.

Pre-submit checklist:

Branch

[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[x] Reviewer requested

Can we give these things explicit names that make it clear what's happening? e.g. slotRangeWithinPosixTimeRange/posixTimeRangeContainingSlotRange or something? I do think it's misleading having a bare posixTimeRangeToSlotRange that sounds like it's "perfect", when in fact there are a few options.

(Feel free to bikeshed on names, I think it's hard to give a good one here...)


To add main Landling call logic

We need two main functions. The main loop will be listening to the calls (cab, and landing calls)
Depending on type, it should call the said functions.
So when there is a landing call, as there's a function transfer we will make it so only one landing call works at a time.
When there is a cab call, you cannot add landing calls at this moment. You have to wait till the "job" is over.
Cab calls should also accept multiple calls.

Here's the plan for landing calls:
So the main loop is running, then say we get a landing call. We first check if the cab door is closed or not (using same logic as the safety) if not closed, we try for it, if it still doesn't work, throw error. Stop everything
Then while safety is being considered all the times, we move the cab to wherever the call is. Upon arrival, we open the doors, AND THEN LOOP BACK. We don't handle door close. There is a good reason for this! :3
Because now the doors open, we expect a user to come in, and then hit a floor in the cab, so when the loop resets back to its start position, then it again listens for two things: Cab calls, or landing calls. When the user enters a cab call, the cab call function is used, which will handle door closing and then again move the cab.
What is the difference? Why? Well, I think "door open" consideration would be nice when it's on cab control mode.
But yes, if we did it like a normal lift, we need to handle the whole "click the button, doors open, then doors close". The problem with this? If the doors open, we need to handle cab calls, and then upon closing, we need to call the cab function and transfer over what the user entered. This is also possible. Actually, this seems like a better idea. But I'll wait for your input on this


[test] Fix Int128 test on 32-bit platforms

The test used Int.min and Int.max assuming that they are 64-bit integers. Use 64-bit integers explicitly instead.
The test failed on WebAssembly CI: https://ci.swift.org/job/oss-swift-pr-test-crosscompile-wasm-ubuntu-20_04/359/console

/home/build-user/build/buildbot_linux/wasmstdlib-linux-x86_64/test-wasi-wasm32/stdlib/Output/Int128.swift.tmp/a.out
[ RUN      ] Int128Tests.Memory layout
[       OK ] Int128Tests.Memory layout
[ RUN      ] Int128Tests.Literals
[       OK ] Int128Tests.Literals
[ RUN      ] Int128Tests.Conversion from Double
[       OK ] Int128Tests.Conversion from Double
[ RUN      ] Int128Tests.Conversion from Float
[       OK ] Int128Tests.Conversion from Float
[ RUN      ] Int128Tests.Conversion from Float16
[       OK ] Int128Tests.Conversion from Float16
[ RUN      ] Int128Tests.Conversion from integers
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 313
first:  -2147483648 (of type Swift.Int128)
second: -9223372036854775808 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 314
first:<PHONE_NUMBER> (of type Swift.Int128)
second:<PHONE_NUMBER>854775807 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 315
first:<PHONE_NUMBER> (of type Swift.Int128)
second:<PHONE_NUMBER>3709551615 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 321
first:  Optional(-2147483648) (of type Swift.Optional)
second: Optional(-9223372036854775808) (of type Swift.Optional)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 322
first:  Optional(2147483647) (of type Swift.Optional)
second: Optional(9223372036854775807) (of type Swift.Optional)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 323
first:  Optional(4294967295) (of type Swift.Optional)
second: Optional(18446744073709551615) (of type Swift.Optional)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 329
first:  -2147483648 (of type Swift.Int128)
second: -9223372036854775808 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 330
first:<PHONE_NUMBER> (of type Swift.Int128)
second:<PHONE_NUMBER>854775807 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 331
first:<PHONE_NUMBER> (of type Swift.Int128)
second:<PHONE_NUMBER>3709551615 (of type Swift.Int128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 337
first:<PHONE_NUMBER>20938463463374607429620727808 (of type Swift.UInt128)
second:<PHONE_NUMBER>20938463454151235394913435648 (of type Swift.UInt128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 338
first:<PHONE_NUMBER> (of type Swift.UInt128)
second:<PHONE_NUMBER>854775807 (of type Swift.UInt128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 339
first:<PHONE_NUMBER> (of type Swift.UInt128)
second:<PHONE_NUMBER>3709551615 (of type Swift.UInt128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 346
first:  Optional(2147483647) (of type Swift.Optional)
second: Optional(9223372036854775807) (of type Swift.Optional)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 347
first:  Optional(4294967295) (of type Swift.Optional)
second: Optional(18446744073709551615) (of type Swift.Optional)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 354
first:<PHONE_NUMBER> (of type Swift.UInt128)
second:<PHONE_NUMBER>854775807 (of type Swift.UInt128)
check failed at /home/build-user/swift/test/stdlib/Int128.swift, line 355
first:<PHONE_NUMBER> (of type Swift.UInt128)
second:<PHONE_NUMBER>3709551615 (of type Swift.UInt128)
[     FAIL ] Int128Tests.Conversion from integers
[ RUN      ] Int128Tests.Bytes and words
[       OK ] Int128Tests.Bytes and words
[ RUN      ] Int128Tests.Bitwise operations
[       OK ] Int128Tests.Bitwise operations
[ RUN      ] Int128Tests.Addition and subtraction
[       OK ] Int128Tests.Addition and subtraction
[ RUN      ] Int128Tests.Wide multiplication and division
[       OK ] Int128Tests.Wide multiplication and division
[ RUN      ] Int128Tests.Narrow multiplication and division
[       OK ] Int128Tests.Narrow multiplication and division
[ RUN      ] Int128Tests.String roundtrip
[       OK ] Int128Tests.String roundtrip
Int128Tests: Some tests failed, aborting
UXPASS: []
FAIL: ["Conversion from integers"]
SKIP: []

@swift-ci test WebAssembly

@swift-ci smoke test

The Linux CI failure on TestSwiftExprMissingType.py seems happening on main too

@swift-ci smoke test

@swift-ci smoke test Windows


Write chunks with gradient rather than random values

Writes each chunk as a gradient (in 3 dimensions). Quick solution for the benchmarking that does not take into account edge cases.
Note: Can also alter this to write the entire image as a gradient but that will slow the generation time down as each pixel will need to be iterated over to add an offset.

Before:

After:

:+1:

Side note we might think about migrating this repo. I assume we will want to keep it around as a source of the benchmarking.

@dgault : any reason not to get this merged and into a tag?

Happy to get it merged and tagged

New Tag: https://github.com/ome/ImarisWriterTest/releases/tag/2021-04-08


Feedback directed to the proper user

Feedback is now directed to the proper user using the submission id. I also removed unnecessary attributes from the feedback page as they were not used. A related test was removed as unnecessary, and one other modified so that a mock returns a proper submission object with an id.

Coverage decreased (-0.4%) to 65.871% when pulling a566a9fbbef1bbaa7f3fcada9eb9f9dd5a1edb38 on Heliozoa:directed-feedback into 3a9bc1e2d01ba134c6f4a4f7efb4e9342677c14d on tdd-pingis:master.

:roll_eyes:

Nice


include readme for todo example

Changes

Added readme to link to video turoailand explain the purpose of the project
Added .gitignore into todo project so it can be copied on install-template from Euclid

thank you for noticing these issues @AlexBrandes, I've addressed your comments above and pushed a new commit.


[M1] Write Proposal - Audience persona section

First Draft:
Who are our users?: Medical professionals such as psychiatrists, nurses, or doctors who want to understand how suicide rates have changed between countries over time.
What Problem is it Solving for them?: There is significant data posted like the dataset we are using such as the Global Mortality database posted by the World Health Organization (WHO) but no easy way to work with it. Our users typically have moderate data/computer literacy so this dashboard allows for them to explore and attempt to answer their own questions easily and efficiently.
Example Use Cases:

A doctor or nurse working in mental health is considering moving and wants to compare their current countries suicide rate to that of another.
A medical professional wants to visualize how suicide rates in their country or surrounding countries have changed  over time.
A medical professional wants to dissect the suicide dataset into their population of interest, say by age, date range, region, sex, etc.

Commpleted on this commit: https://github.com/UBC-MDS/suicide_indicator_r/commit/493aa0681a1c9d3966bc9f956a838256c01dadb9


Getting PostCSS plugin error:  "[object Object] is not a PostCSS plugin"

This could be my naivete but I cannot seem to get the dependencies straigtened out here. When booting up to use dev, I get this error:
yarn run v1.22.5
warning<EMAIL_ADDRESS>The engine "ghost" appears to be invalid.
warning<EMAIL_ADDRESS>The engine "ghost-api" appears to be invalid.
$ gulp
[17:10:22] Using gulpfile ~/Development/Casper/gulpfile.js
[17:10:22] Starting 'default'...
[17:10:22] Starting 'css'...
[17:10:22] 'css' errored after 20 ms
[17:10:22] Error in plugin "gulp-postcss"
Message:
    [object Object] is not a PostCSS plugin
Details:
    fileName: /Users/jnmandal/Development/Casper/assets/css/global.css

Stack:
Error: [object Object] is not a PostCSS plugin
    at Processor.normalize (/Users/jnmandal/Development/Casper/node_modules/postcss/lib/processor.js:168:15)
    at new Processor (/Users/jnmandal/Development/Casper/node_modules/postcss/lib/processor.js:52:25)
    at postcss (/Users/jnmandal/Development/Casper/node_modules/postcss/lib/postcss.js:55:10)
    at /Users/jnmandal/Development/Casper/node_modules/gulp-postcss/index.js:50:16
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[17:10:22] 'default' errored after 22 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Screenshot

Steps to Reproduce

run yarn install
run yarn dev

Technical details

Casper Version:  3.1.0
Ghost Version: n/a
Browser Version:  n/a
OS Version: macOS 10.15.6
nodejs: v12.18.4
yarn: 1.22.5

@jnmandal you can get around the issue by downgrading autoprefixer to 9.x (yarn add<EMAIL_ADDRESS>--dev). The issue arises because of major architectural changes from Postcss 7 (Autoprefixer 9.x) and 8 (Autoprefixer 10.x)

That did it. Thanks!


Implement initial prototype for DOI

Implement a very simple start for registering DOIs for a workflow
┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Sprint: Seabright Sprint 10 Jet Ski
┆Issue Number: DOCK-733
┆Epic: Walt - Create DOIs

➤ Walt Shands commented:
I will show the prototype for assigning a DOI via Zendodo and a ‘Create DOI’ button on the MyWorkflows page at the Biweekly Dockstore developer’s meeting today.


Attempt to call field 'input' (a nil value)

I get this error when trying to run a command
E5108: Error executing lua ...ker/start/refactoring.nvim/lua/refactoring/get_input.lua:8: attempt to call field 'input' (a nil value)

I tried to read the source code. Apparently, the get_input file has an input variable which uses plenary. I do have it installed though

I get a similar error when trying to run
:lua require('refactoring').refactor('Extract Function'):
E5108: Error executing lua ...ki/.vim/plugged/plenary.nvim/lua/plen
ary/async/async.lua:14: The coroutine failed with this message: ...
/.vim/plugged/refactoring.nvim/lua/refactoring/query.lua:30: attemp
t to index local 'parser' (a nil value)
stack traceback:
        [C]: in function 'error'
        ...ki/.vim/plugged/plenary.nvim/lua/plenary/async/async.lua
:14: in function 'callback_or_next'
        ...ki/.vim/plugged/plenary.nvim/lua/plenary/async/async.lua
:40: in function 'step'
        ...ki/.vim/plugged/plenary.nvim/lua/plenary/async/async.lua
:43: in function 'execute'
        ...ki/.vim/plugged/plenary.nvim/lua/plenary/async/async.lua
:113: in function <...ki/.vim/plugged/plenary.nvim/lua/plenary/asyn
c/async.lua:112>
        ...ugged/refactoring.nvim/lua/refactoring/pipeline/init.lua
:70: in function 'run'
        ...lugged/refactoring.nvim/lua/refactoring/refactor/106.lua
:154: in function <...lugged/refactoring.nvim/lua/refactoring/refac
tor/106.lua:146>
        ...i/.vim/plugged/refactoring.nvim/lua/refactoring/init.lua
:23: in function 'refactor'
        [string ":lua"]:1: in main chunk

Ran into this too while trying to kick at adding Ruby language support.
I suspect this got introduced here https://github.com/ThePrimeagen/refactoring.nvim/commit/3ea5c19072e3e10ad7ce2a69a9a8431e143c1ec5 but I'm still very new to all this

Are people seeing this error when running nightly neovim? We need to update docs to clarify that this plugin only works on nightly, with nightly I'm not seeing this error.

Yes, the plugin only works on nightly for me as well. Now that it specifies that nightly is necessary in the README, I think we should be okay to close this issue.

Are people seeing this error when running nightly neovim? We need to update docs to clarify that this plugin only works on nightly, with nightly I'm not seeing this error.

@teddylear Thanks for clarifying. It wasn't in the readme before so didn't know.


Creation of Task on Windows 7 remotely using Managed Wrapper.

I am trying to create task in remote computer running on Windows 7 from client computer running Windows 7.   Is it possible? When I tried to do this I get following exception.
System.UnauthorizedAccessException was unhandled
Message=Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
As per this MSDN link, http://technet.microsoft.com/en-us/library/cc766266.aspx , one can create task remotely connected to computers running Windows Server® 2008, Windows Vista®, Windows Server 2003, Windows XP, or Windows 2000.
Originally posted: 2014-11-07T00:56:50

You need to be in a domain and need to be a member of the Administrators group on the remote computer. Try doing it using the "Connect to a remote computer" menu item in the "Task Scheduler" system app.
Originally posted: 2014-11-07T09:25:49

I also tried option 'Connect to another computer' option from task scheduler by specifying remote machine name and credentials. I got error 'Task scheduler service is not available. Verify that service is running'. I found task scheduler services at both end up and running. What could be the issue?
Originally posted: 2014-11-11T01:20:46

While creating a remote task, I am getting error message "(18,8):LogonType:". What could be the issue? I am using logon type 'TaskLogonType.S4U' to create the task. Please help.
Originally posted: 2015-05-29T00:41:10

This is usually either that the account used when creating the TaskService object doesn't have rights to create the task with an S4U user, you haven't supplied a username in the RegisterTaskDefiniton method, or there is a combination of settings on the task's definition that can't be run interactively.
Originally posted: 2015-05-29T14:55:28


[Bug]:  Smart Substitution parses formatted string texts incorrectly.

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When a query with smart substitution turned on is sent for execution with a binding of nature "sometext{{bindedVariable}}", it evaluates to "sometext""" and hence throws error.
I.e: var a = "world" and the query looks like "Hello {{a}}" it evaluates to "Hello "World"" and the query fails to execute.
Steps To Reproduce

Create a datasource
Create an API/query for the above
Turn the Smart Substitution on from settings page of the query
Add a binding of the pattern: "sometext{{bindedVariable}}"
Run the query

Public Sample App
No response
Version
1.8.3

Affects REST API users, 6m REST API usage : 5000
Stats

Stat
Values

Reach
5000

Effort (months)
<>

@sondermanish can you please figure out what the estimate for this is.


Not resizing images in DEV mode - SvelteKit

Hello,
Having some difficulty getting imagetools to resize properly in dev mode. Works fine in prod mode (npm run build). At first I thought it may be browser caching, but clearing the cache, using private mode, using a completely different browser, restaring the PC, etc.... nothing seems to fix it. It's hashing 2 different urls as expected and the metadata object is reporting the size correctly, but when rendered in the brower, it is the full-sized (original) image.
Here is my svelte.config.js:
import adapter from '@sveltejs/adapter-auto'
import preprocess from 'svelte-preprocess'
import path from "path"
import { imagetools } from 'vite-imagetools'

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: preprocess(),

	kit: {
		adapter: adapter(),
		vite: {
			resolve: {
				alias: {
					$models: path.resolve('./src/models'),
					$lib: path.resolve('./src/lib'),
					$comp: path.resolve('./src/components'),
				}
			},
			ssr: {
				noExternal: ['@fortawesome/free-brands-svg-icons', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-solid-svg-icons']
			},
			plugins: [imagetools({force: true})]
		}
	}
}

export default config

The url for the import: import image from '$lib/assets/stock/1_full.jpg?w=300;1920&metadata'
The img tag:
The metadata:
 [
    {
      format: 'jpeg',
      width: 300,
      height: 200,
      space: 'srgb',
      channels: 3,
      depth: 'uchar',
      density: 300,
      chromaSubsampling: '4:4:4',
      isProgressive: false,
      hasProfile: false,
      hasAlpha: false,
      src: '/@imagetools/332a3a67d70f998a8a8c26556f9e60ab9b1a7fff'
    },
    {
      format: 'jpeg',
      width: 1920,
      height: 1280,
      space: 'srgb',
      channels: 3,
      depth: 'uchar',
      density: 300,
      chromaSubsampling: '4:4:4',
      isProgressive: false,
      hasProfile: false,
      hasAlpha: false,
      src: '/@imagetools/b9f621074cb509f2464a3cb483ccc4d9d40601a2'
    }
  ],

And attached is a screenshot of my browser's inspection console that shows the image with src: '/@imagetools/332a3a67d70f998a8a8c26556f9e60ab9b1a7fff' being displayed at the full resolution as opposed to the 300x200

Not sure what could be happening here....

It doesn't work at all in dev mode for me

Same problem here. Its not working in dev mode :-(

Same here, using Vue 3 only. npx vite build --config vite.config.js is going fine but with npx vite --config vite.config.js (dev) it generates non-existing URL's for images:
```

I haven't checked the sizing, but the images are definitely showing up in dev mode for me with SvelteKit. You can see it working in dev mode on the SvelteKit and Svelte sites:

https://github.com/sveltejs/kit/tree/master/sites/kit.svelte.dev
https://github.com/sveltejs/sites/tree/master/sites/svelte.dev

If you're still having an issue with this, please share a repository that reproduces the issue. Otherwise I'll close this

Closing this given the lack of response


this is why data dont show on your sheet

//         return e.parameter[header].replace(/=/g, '')

what do you mean by that?

// return e.parameter[header].replace(/=/g, '')

you mean in the "code.gs"?

// return e.parameter[header].replace(/=/g, '')

you mean in the "code.gs"?

yes, he means in the code.gs. Anyway, It didn’t help me to solve the problem with updating google sheet

This is cryptic. @n4j1Br4ch1D
Normally if you offer a response on multiple comments, it's good practice to let people know which file you are referring to, which line this is, (copying out the code and showing the change in context is best).


Fix release workflow

the version is no longer set to "develop", and our release scripts needs to accommodate for that
this change ensures the sed replaces the __version__ regardless it's current value.

Coverage: 62.407%. Remained the same when pulling 4c5b3e5270b0939b900a5c2b286c3f6370a1bb6d on hosseinsh:fixing-version-defition-release into f5acf223dd2d5da2a39eee07e15f3bfbac3e66b4 on Netflix:master.


add resetAccounts, new Account, fix getAccounts on remix-simulator

Related to https://github.com/ethereum/remix-ide/pull/2590

@iurimatias Have you tried running remix-ide tests by integrating this one.

@Aniket-Engg yes, the sister PR is this one https://github.com/ethereum/remix-ide/pull/2590 (and it needs this for the accounts to work)

@Aniket-Engg yes, the sister PR is this one ethereum/remix-ide#2590 (and it needs this for the accounts to work)

okay

e2e tests were failing on remix-ide pr were failing, trying to fix that


Array in function parameter

Describe the bug
Is is possible to implement arrays in function parameters? It would be super useful
I have a service like this, but it's not generating
[tryAGI.OpenAI.OpenAiFunctions]
public interface IMaintenanceFunctions
{
    [Description("Get the tasks to extract from a contract")]
    public Task<ExtractTasksRequest> GetContractTasksAsync([Description("The tasks extracted from the contract")] ExtractTasksRequest tasks, CancellationToken cancellationToken = default);
}

public class MaintenanceService : IMaintenanceFunctions
{
    public Task<ExtractTasksRequest> GetContractTasksAsync(ExtractTasksRequest tasks, CancellationToken cancellationToken = default)
    {
        return Task.FromResult(tasks);
    }
}

public class ExtractTasksRequest
{
    public string[] Tasks { get; set; }
}

Steps to reproduce the bug

Create a service with a function containing an object with an array property

Expected behavior
No response
Screenshots
No response
NuGet package version
No response
Additional context
No response

Thank you, I checked and repeated, I'll fix it now

This has been fixed in 1.7.0

It's working perfectly, thank you!

Thank you! I would be glad to hear from you also any suggestions. Most of the client is generated code (to make it easier to maintain in the future based on the official OpenAI OpenAPI spec), and there's still plenty of room for UX


Do a new release

Latest release is unusable because of replaceAllLabels (https://github.com/withspectrum/danger-plugin-labels/commit/913f0e574ee70a624d09c6f1294fb69b72f55580) fix
Unable to evaluate the Dangerfile
 TypeError: api.issues.replaceAllLabels is not a function
    at /home/halkeye/go/src/github.com/halkeye/test-danger-js/node_modules/danger-plugin-labels/dist/index.js:99:26
    at Generator.next (<anonymous>)
    at fulfilled (/home/halkeye/go/src/github.com/halkeye/test-danger-js/node_modules/danger-plugin-labels/dist/index.js:4:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Can you push a new release?

Same error unfortunately :(

Same error still, I believe there are no intentions to further maintain this library from the author

If anyone wants to pick up this and make a PR here's some documentation around what is currently available:

GitHubDSL
danger.github.api.issues

Appear to be a name only change to issues API: replaceLabels -> replaceAllLabels -> setLabels
https://github.com/octokit/rest.js/commit/b4ab0db04fd66eb02a10deabd2149ff82b43ac78

@mxstbr is there an interest in maintaining this repo?


Expression passed as references (Log-Spam)

The following function contains code that passes a expression by reference which triggers PHP Strict warnings:
FACTFinder_Core_Helper_Export#getExportImageWidth()
$width = array_shift(explode('x', $width));

This is not a major issue but a quick and easy fix.
Array Shift Signature:
function array_shift (array &$array) {}

Suggested Fix: Save result in temporary variable
$width = explode('x', $width);
$width = array_shift($width);

General Issue Info:

FACT-Finder SDK version (see package.xml): 4.1.9 (latest master branch at time of issue creation)
Magento edition and version: 1.9.2.x
PHP version: 5.6.x
Expected behavior: no strict warning log messages
Actual behavior: lots of strict warning log messages
Steps to reproduce: set PHP error_reporting to -1 and run export cron

Thank you!

No problem, I created a few more like those :)


Refactor rename ssl classes

this PR renames some classes while re-exporting the old names for backwards-compat.

MocketSocketCore -> MocketSocketIO
FakeSSLContext -> MocketSSLContext
SuperFakeContext -> _MocketSSLContext

reason being: align with class-naming in python stdlib to make it more obvious what is being mocked.

coverage: 99.256% (+0.001%) from 99.255%
when pulling 32eeefb0a0c2c8cd21449c6790bde54cdbf0b6f9 on betaboon:refactor-rename-ssl-classes
into 8e7b3b6638bb4a826afc04ef091602614956a636 on mindflayer:main.


Group Name or Your Name: Deliverable Name

[x] created a md file
[x] created issue
[x] created PR
[x] Explain program lifecycle
[x] created a branch

@angathanga7878ochalla can you send this as a Pull request issue


[Button] Make our selector more specific.

Can we make our selector more specific in case of applying style to components.
Issue Type
Bug
Component or Pattern Affected
Button
Expected Behavior
Some styling(such as background-color, border-radius ..) gets overridden by collab-ui styling.
Though we can pass Style props in Button to apply inline styling.
But there is a concern that is it possible to make our given selector more specific to take all properties of it first and then apply rest styling of collab-ui??
Current Behavior

Possible Solution
Not sure we can say if a user className  is passed then all its styling should be given a higher priority
Steps to Reproduce (for bugs)

Context

Your Environment

Library:
Version used:
Browser Name and version:
Operating System and version:
Link to your project:

Duplicate of #149


Error running after fresh install (config not found)

Fedora 37 on 12th Gen Framework laptop.
Running fw-fanctrl with no arguments after a fresh install:
$ fw-fanctrl
Traceback (most recent call last):
  File "/usr/local/bin/fw-fanctrl", line 226, in <module>
    main()
  File "/usr/local/bin/fw-fanctrl", line 221, in main
    fan = FanController(configPath=args.config, strategy=args.strategy)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/fw-fanctrl", line 37, in __init__
    with open(configPath, "r") as fp:
         ^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: '.'

So far as I can determine, this is because it is assuming that the config path is the current directory (.), but the configuration file has been installed to /home/[user]/.config/fw-fanctrl. Issuing fw-fanctrl --config ~/.config/fw-fanctrl/config.json causes the program to run.
It is not clear from the README or from the help output that a path to a config file is required, and it seems sensible to assume that the config file might be looked for in the location where it was installed to by the installation script. It might even make sense for this to operate at a system level (since the installation script expects to be run as root, and installs a system service), so having a default configuration under the standard Unix /etc path may be a useful step.

I think I understand that the user is not intended / expected to run the command without a config file (since the config file is specified in the service script); and that it runs as root in that context (answers #12).
In this case I would suggest that the config file should be installed to /etc rather than to the user config directory; and that the help output should explain that it is intended to be run as a service, or directly only to change the strategy. It might also be a good idea to have a command that lists out the strategies from the config file.

I think I understand that the user is not intended / expected to run the command without a config file (since the config file is specified in the service script); and that it runs as root in that context (answers #12).

Yup, you got it !

In this case I would suggest that the config file should be installed to /etc rather than to the user config directory;

Can you detail why do you think /etc is a better place for the config file ?

and that the help output should explain that it is intended to be run as a service, or directly only to change the strategy.

I can improve the Readme, that's for sure, even though it's getting quite big already :')

It might also be a good idea to have a command that lists out the strategies from the config file.

PRs welcomed o/

So - this may be old-school thinking in UNIX terms, but generally speaking I'd expect system-level services to have a system-level default configuration file. You're already going to need to have superuser access to install and run the tool successfully. Having said that, I've also recently seen other (single user) systems (notably the Steam Deck) with services installed and configured on a per user basis via .config, and maybe that's better from the perspective of having the main system more read-only / less volatile / contained.
I'll look into helping with a PR with some of the suggestions I've made. Thanks for listening!

Indeed,I now see how it would make sense to use /etc, but then it means we need to update the install/update script to clean the old config path, edit the readme, and we potentially perturbate existing users who have played with their config at the current path. I'm not sure it's worth the efforts, at least I won't do it (also if it ain't broke, don't fix it !).
But if you feel like making a PR to change it, be my guest, I'm not opposed to it :)

Definitely prefer /etc/ for the config file location. This is how the package is setup for Arch.
Since most of the existing users are technical, I am pretty sure they would be okay moving a configuration file, or the installer can see if they have an existing config at the old location, and copy it to /etc for them.

Hi @andypiper @zquestz ,
I believe this issue has been addressed and the suggestions (/etc, default configuration and strategy list command) have been implemented.
Can I consider this issue closed, or do you have anything else to add?

One other minor issue, is I see the config file as +x (executable), we probably want it to be 644.

Hi @zquestz , it shouldn't be the case and I cannot reproduce, is it still an issue in the latest commit?

NM, looks good when I checkout the repo. Might be an issue with how it was packaged on Arch. This looks great.

Thanks, I will then close this issue

Actually take that back, install script sets the execute bit! sudo chmod +x "/usr/lib/systemd/$SERVICE/$SUBCONFIG"

Yes, it does for the fw-fanctrl-suspend subconfiguration.
It is a bash script and should be executable to be run by system-sleep

Ahh okay, thanks for looking. =)

Np ^^


src/infra/readme.md doc issues ? or something else...

I wanted to move my lab from North Europe to Sweden Central. According to src/infra/readme.md Sweden Central is supported
but I am getting this error which looks suspicious as I would expect Azure Monitor to be available in Sweden...
Looking at https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?regions=sweden-central,sweden-south,united-kingdom-south&products=monitor  I see Prometheus is planned for Q1. Is this the root cause ?
Error: creating Account (Subscription: "8d5335cb-c495-4d8c-9ff6-d5a0ff5c3ce3"
│ Resource Group Name: "lde2efad5-monitoring-rg"
│ Account Name: "lde2efad5-swedencen-amw"): azuremonitorworkspaces.AzureMonitorWorkspacesClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="LocationNotAvailableForResourceType" Message="The provided location 'swedencentral' is not available for resource type 'Microsoft.Monitor/accounts'. List of available regions for the resource type is 'eastus,australiasoutheast,brazilsouth,canadacentral,centralindia,centralus,eastasia,eastus2,germanywestcentral,israelcentral,italynorth,koreacentral,northeurope,norwayeast,southafricanorth,southcentralus,southeastasia,switzerlandnorth,uaenorth,uksouth,westcentralus,westeurope,westus,westus2'."
│
│   with module.stamp_monitoring["swedencentral"].azurerm_monitor_workspace.stamp,
│   on modules/stamp_monitoring/azure_monitor_workspace.tf line 8, in resource "azurerm_monitor_workspace" "stamp":
│    8: resource "azurerm_monitor_workspace" "stamp" {
│
│ creating Account (Subscription: "8d5335cb-c495-4d8c-9ff6-d5a0ff5c3ce3"
│ Resource Group Name: "lde2efad5-monitoring-rg"
│ Account Name: "lde2efad5-swedencen-amw"):
│ azuremonitorworkspaces.AzureMonitorWorkspacesClient#Create: Failure
│ responding to request: StatusCode=400 -- Original Error: autorest/azure:
│ Service returned an error. Status=400
│ Code="LocationNotAvailableForResourceType" Message="The provided location
│ 'swedencentral' is not available for resource type
│ 'Microsoft.Monitor/accounts'. List of available regions for the resource
│ type is
│ 'eastus,australiasoutheast,brazilsouth,canadacentral,centralindia,centralus,eastasia,eastus2,germanywestcentral,israelcentral,italynorth,koreacentral,northeurope,norwayeast,southafricanorth,southcentralus,southeastasia,switzerlandnorth,uaenorth,uksouth,westcentralus,westeurope,westus,westus2'."

Good catch! Azure Monitor Workspace was added to the reference implementation later and we didn't check the list of supported regions again. Apologies for that. So yes, you'll probably have to pick another region for the time being until Azure Monitor Workspace (managed Prometheus) is available in Sweden Central.
I'll take a note to update the doc


[Feature Improvement] Alpine and FreeBSD Variants

Title.
TODO for now

Moving this to https://github.com/HeteroChromia420/XQSS, as XFCE is easier to get working.


Client runs: search bar wildcard case insensitive filters

User Story
As an Automate user, I want to filter with the Client Runs's search bar and wildcards where the case is insensitive. Currently filtering with the search bar all filters are case insensitive except when wildcards are added.
Definition of Done
When using the Error, Node name, or any other search bar type the filter value is case insensitive.
Demo Script / Repro Steps

Create two nodes with names 'Chef-a2' and 'chef-a3'
Add a filter of 'chef-*' from the Client Runs page of type 'Node Name'
Ensure both nodes appear in the node list.

We want to look into this task now to see if there are any migrations needed. If there is a migration needed we want to merge the migrations with this PR.
https://github.com/chef/automate/pull/476


Discuss for remove pointer and using Template or create Base Class for worker

Discuss with Thuy Dung about should use Template or Base class for worker, and how to cover pointer in native