Error log is slower than others

Describe the bug
When logging an error at the end of a while loop and logging info at the beginning the info message get's displayed first if the loop continues
2022-12-28 14:06:14 [main] -> DEBUG: Input['asfd'] was issued
2022-12-28 14:06:14 [main] -> INFO: Select a version [PROXY, GAME_SERVER]
af
2022-12-28 14:06:15 [main] -> DEBUG: Input['af'] was issued
2022-12-28 14:06:15 [main] -> INFO: Select a version [PROXY, GAME_SERVER]
2022-12-28 14:06:15 [main] -> ERROR: Couldn't verify input
adf
2022-12-28 14:06:15 [main] -> DEBUG: Input['adf'] was issued
2022-12-28 14:06:15 [main] -> INFO: Select a version [PROXY, GAME_SERVER]
2022-12-28 14:06:15 [main] -> ERROR: Couldn't verify input

To Reproduce
Steps to reproduce the behavior:
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.tinylog.kotlin.Logger
import kotlin.reflect.KClass
import kotlin.reflect.cast

class Question<T: Any>(private val text: String, private val type: KClass<T>, private val answers: List<T> = emptyList()) {

    init {
        if (!(type == String::class || type == Boolean::class || type == Char::class ||
                    type == Short::class || type == Int::class || type == Long::class ||
                    type == Float::class || type == Double::class || type.isEnum)) {
            throw UnsupportedOperationException("Question only supports primitives, but was $type")
        }
    }

    @Suppress("MemberVisibilityCanBePrivate")
    lateinit var answer: T
        private set

    suspend fun askConsole(): Question<T> {
        do {
            Logger.info(text + if (answers.isNotEmpty()) answers.joinToString(prefix = " [", postfix = "]", separator = ", ") else "")
            val input = withContext(Dispatchers.IO) {
                readln()
            }
            Logger.debug("Input['$input'] was issued")
            try {
                val cast = type.cast(when (type) {
                    String::class -> input
                    Boolean::class -> input.toBooleanStrict()
                    Char::class -> {
                        val charArray = input.toCharArray()
                        if (charArray.size > 1) {
                            throw IllegalArgumentException()
                        }
                        charArray.first()
                    }

                    Short::class -> input.toShort()
                    Int::class -> input.toInt()
                    Long::class -> input.toLong()
                    Float::class -> input.toFloat()
                    Double::class -> input.toDouble()
                    else -> {
                        if (!type.isEnum) {
                            throw UnsupportedOperationException()
                        }

                        type.enumConstants.find {
                            (it as Enum<*>).name.equals(input, ignoreCase = true)
                        } ?: throw IllegalArgumentException()
                    }
                })

                if (answers.isNotEmpty() && !answers.contains(cast)) {
                    Logger.error("Wrong answer")
                } else {
                    answer = cast
                }
            } catch (e: Exception) {
                Logger.error("Couldn't verify input")
            }
        } while (!::answer.isInitialized)

        return this
    }
}

Environment
tinylog version: 2.5.0
Kotlin version: 1.7.21

What is your tinylog configuration?

writerFile          = rolling file
writerFile.level    = info
writerFile.format   = {date} [{thread}] -> {level}: {message}
writerFile.file     = logs/log_{count}.txt
writerFile.latest   = logs/latest.log
writerFile.charset  = UTF-8
writerFile.buffered = true
writerFile.policies = startup, daily: 03:00
writerFile.backups  = 10
writerFile.convert  = gzip

writerConsole          = console
writerConsole.level    = debug
writerConsole.format   = {date} [{thread}] -> {level}: {message}
writerConsole.writingthread = true

Here is my configuration. I tried with enabled and disabled writingthread

Okay, I just got to the point where I tested my project outside of IntelliJ. Seems like the "bug" only occurs in IntelliJ's console.

Yes, the console of IntelliJ (and also some other consoles) have this behavior. The standard output stream and the error stream are two independent asynchronous streams. Therefore, it is possible that the output to one of these both streams can overtake the other. tinylog nor any other Java library can change this behavior.
However, you reconfigure the console writer to use only the standard output stream or the error stream for all severity levels:
writer        = console
writer.stream = out      # or err

Please be aware that this has the disadvantage that all severity levels will have the same color in the console of IntelliJ.
By the way, the writing thread can only be enabled globally for all writers. It is not possible to enable it only for a certain writer.
writingthread = true


let's talk about performance!

I was wondering why examples tooks around 9 seconds to generate (at leat, on my machine).
Here's investigation results:

Code formatting is slow.
Template execution is sequential, but can be done in parallel.
The go generate directive executes commands sequentially, but they also can be executed in parallel (affects to this case the most).

I did some profiling to measure how much time which generation step takes, and this is the results for github api spec:
format=true
Parsing:    0.07569065 seconds
Generation: 0.11895104 seconds
Writing:    2.01221638 seconds

format=false
Parsing:    0.07272715 seconds
Generation: 0.11632878 seconds
Writing:    0.50160086 seconds

Surprisingly, the code formatting is the slowest part of the whole project.
Writing source code without formatting is x3-x4 times faster.
For the smaller OpenAPI documents the difference is not that dramatic, but anyway... that's annoying.
The best solution is to generate already formatted code.
This completely removes the necessity of code formatting step, and allows to render templates into files directly without buffering.
But it will be tricky to do becase of templates which can call each other recursively N times (we should handle indentation somehow).
This can make these complex templates even more complex.
The next two issues, unlike the previous one, should be easy to fix.

The best solution is to generate already formatted code.

This is actually more annoying to do than waiting for code generation.
We are operating on very big schemas in our example repos, 99.9% users are not affected.
It is pretty general problem for all code generators (and also linters), so I propose:

Focus in solving this problem in general
Optimize formatting
Use concurrency
And only then try to generate already formatted code

Anyway, this issue is low priority. IMO, problem with high resource consumption during compilation has bigger impact.
Also: fellows from ent proposed another idea: generate less code (e.g. use reflect-based json over fully code-generated, this can be done with jx too), and same points apply to such optimization.


Spire Agent Init Container Edge Case

Hey there,
I'm running from the latest 0.5.0 helm release, and am running into issues with spire-agent getting stuck in init phase following spire-server exiting with 'Completed' status:
$ kubectl get pods
NAME                                  READY   STATUS      RESTARTS       AGE
nats-server-865747449-xffnh           2/2     Running     0              145m
nginx-mesh-api-696555f7d6-hmdwx       0/1     Completed   0              25h
nginx-mesh-api-696555f7d6-k75wc       1/1     Running     9 (113m ago)   145m
nginx-mesh-metrics-8448884887-gcr45   1/1     Running     6 (115m ago)   145m
nginx-mesh-metrics-8448884887-n7hjb   0/1     Completed   0              25h
spire-agent-8n5jr                     1/1     Running     1 (112m ago)   20h
spire-agent-dls89                     1/1     Running     1 (112m ago)   17h
spire-agent-rjcd9                     0/1     Init:0/1    0              142m
spire-server-5646f7f9d9-p2tkl         2/2     Running     0              145m
spire-server-5646f7f9d9-vq57t         0/2     Completed   0              25h

$ kubectl logs -c init  spire-agent-rjcd9
E1021 20:31:55.081942   41641 reflector.go:140] vendor/k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *unstructured.Unstructured: unknown
error: timed out waiting for the condition on pods/spire-server-5646f7f9d9-vq57t
...

This is the command the init container is executing, run manually:
$ kubectl -n nginx-mesh wait --for=condition=Ready pod -l app.kubernetes.io/name=spire-server > /dev/null
error: timed out waiting for the condition on pods/spire-server-5646f7f9d9-vq57t

Here's the message from the spire-server container in Completed state:
$ kubectl describe pod spire-server-5646f7f9d9-vq57t | grep -A2 Status:
Status:       Failed
Reason:       Terminated
Message:      Pod was terminated in response to imminent node shutdown.

Deleting the failed container allows the pod to recover.
$ kubectl get pod spire-agent-rjcd9
NAME                READY   STATUS     RESTARTS   AGE
spire-agent-rjcd9   0/1     Init:0/1   0          150m

$ kubectl delete pod spire-server-5646f7f9d9-vq57t
pod "spire-server-5646f7f9d9-vq57t" deleted

$ kubectl get pod spire-agent-rjcd9
NAME                READY   STATUS    RESTARTS   AGE
spire-agent-rjcd9   1/1     Running   0          155m

Suggest updating the init container to either watch for an active endpoint on the service, or some other active check against the service rather than the individual pods.

Thanks @clhain , we have a change to the init container coming in our next release which should hopefully remedy this issue.

This issue should now be resolved with the most recent 1.6 release.

Hi, I've created a k8s cluster with one control plane and one worker node with kubeadm and tried to install Spire
and encountered this error in which spire-agent pod won't get created
NAMESPACE     NAME                               READY   STATUS     RESTARTS         AGE
kube-system   cilium-66ls7                       1/1     Running    1 (8h ago)       8h
kube-system   cilium-operator-6d7886cdf4-nlfjg   1/1     Running    1 (8h ago)       8h
kube-system   cilium-vrnqr                       1/1     Running    0                8h
kube-system   coredns-787d4945fb-4gfsx           1/1     Running    1 (8h ago)       18h
kube-system   coredns-787d4945fb-5ht99           1/1     Running    1 (8h ago)       18h
kube-system   etcd-root                          1/1     Running    5 (8h ago)       18h
kube-system   kube-apiserver-root                1/1     Running    5 (7h59m ago)    18h
kube-system   kube-controller-manager-root       1/1     Running    1 (8h ago)       18h
kube-system   kube-proxy-7lvxr                   1/1     Running    0                8h
kube-system   kube-proxy-bxkq2                   1/1     Running    1 (8h ago)       18h
kube-system   kube-scheduler-root                1/1     Running    1 (8h ago)       18h
spire         spire-agent-chjmd                  0/1     Init:0/2   49 (5m35s ago)   4h10m
spire         spire-server-0                     2/2     Running    0                4h10m

I'm desperate to know what's wrong. bear in mind that I am novice to Kubernetes world.


Add an etcd backend options to configure request timeout

This adds an option to configure the etcd request timeout. By default, it will be three seconds, like before this PR.

Please note that this PR will conflict after #14. This is because they touch the same lines of code, each adding its own options. If needed, I can do the merge myself and create a PR regrouping both.

Can you resolve the conflicts?

Hello,
Sorry for the delay, I have just committed a merge with conflicts resolved.


Do not call get_circuit_size in StandardComposer constructor

In both the static lib and wasm packges, the StandardComposer struct contains both a CRS and Pippenger object. Setting up these objects requires the circuit size (rounded to power of 2 and used by the prover) to fetch the accurate g1 data from the CRS file. We need this Pippenger object to interact with the barretenberg API.
get_circuit_size under the hood creates a prover, thus also computing a proving key. We then fetch the rounded circuit size from the prover. However, the StandardComposer object is used for all methods interacting with the barretenberg_wrapper, meaning we are re-computing the proving key anytime we call compute_verification_key, create_proof_with_pk, verify_with_vk, etc. when we already have a computed proving key. We should remove used of get_circuit_size.
There are two possible solutions:

We already have the get_exact_circuit_size method. This method takes in only a constraint system, constructs a C++ TurboComposer from this constraint system, and then returns the number of gates stored in the composer. This is used for benchmarking circuits, but could replace get_circuit_size. We would instead write a method to calculate the rounded circuit size ourselves. We could avoid writing any new C++/barretenberg_wrapper methods by using the existing get_exact_circuit_size method.
We can have a different StandardComposer constructor that takes in a constraint system and does not set up pippenger and CRS. This composer can be used for compute_proving_key as that method only needs a constraint system. Then we have a separate StandardComposer constructor that takes in a proving key (which compute_verification_key and create_proof_with_pk both require anyway). We have a new method in bb such as get_circuit_size_from_pk that lets us setup pippenger and CRS. For verify_with_vk we take in a verification key which will also give us n , however, we only need g2 which is hardcoded and not reliant on the circuit size. We can have a new CRS method that just gives us the g2 data and use that for verification.

Solution 1. looks to be much more simple and is what I am going to attempt implementing first.

I believe this was completed by #55


Can you customize the Json serialization method?

Can you customize the Json serialization method?

Can you provide a few more details on where you are looking to customize the json serialization? Is it during query execution for returning the response? If so, we do offer a way to set your own object mapper.: https://netflix.github.io/dgs/advanced/custom-object-mapper/

Also, for questions, please open a discussion thread and we can convert it to an issue if needed.


[MNT] release workflow: Upgrade deprecated pypa action parameter

See the warning in runs
https://github.com/sktime/skbase/actions/runs/10213897671/job/28260425947#step:4:1
Docs: https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#customizing-target-package-dists-directory

Glad to contribute.

Same is present in skpro and sktime, in case you would like the credit there, too.


RCNN stage cannot converge on Scannet dataset

HI, we are training Scannet dataset using pointRCNN, training data is generated by extracting point clouds from rgbd images in Scannet. Currently, we only train chair class.
The problem is RPN stage can converge correctly, but when training RCNN stage, the loss is stable at around 3 and does not decrease, but when we use the same code to train KITTI dataset, loss decreases quickly. Do you have any idea about it?
Btw, since chairs have great intra-class variance and occlusion(by tables or other things), even though RPN stage can converge, evaluation score is still much lower than kitti result. Could the problem stems from poor RPN part performance?

I think a little poor RPN model will not cause this problem, and you could check the ratio of postive and negative samples of the RCNN stage.
The orientation of chair is not well-defined, maybe you could pay more attention to the canonical transformation (rotation ) or other parts related to the orientation, and check the regression target to see whether it is normal.

@sshaoshuai thank you so much, I conducted more experiments afterwards, finding that when training more epochs, the loss decreases to around 2 and inference results are decent even though training loss is higher than that of training KITTI.
And the orientation problem, I solved it by associate chairs' bounding box with corresponding CAD model in ShapeNet. I'll close the issue.


Add warnings about EIA 861 and FERC 714 as experimental datasets

because we plan on doing a python package release and a data release before EIA 861 and 714 is fully integrated, we want to include a logging warning in the ET process.

This has been done.


[SPARK-18935][MESOS] Fix dynamic reservations on mesos

What changes were proposed in this pull request?

Solves the issue described in the ticket by preserving reservation and allocation info in all cases (port handling included).
Adds extra debug level logging to make debugging easier in the future, for example we add reservation info when applicable.

 17/09/29 14:53:07 DEBUG MesosCoarseGrainedSchedulerBackend: Accepting offer: f20de49b-dee3-45dd-a3c1-73418b7de891-O32 with attributes: Map() allocation info: role: "spark-prive"
  reservation info: name: "ports"
 type: RANGES
 ranges {
   range {
     begin: 31000
     end: 32000
   }
 }
 role: "spark-prive"
 reservation {
   principal: "test"
 }
 allocation_info {
   role: "spark-prive"
 }

Some style cleanup.

How was this patch tested?
Manually by running the example in the ticket with and without a principal. Specifically I tested it on a dc/os 1.10 cluster with 7 nodes and played with reservations. From the master node in order to reserve resources I executed:
do
curl -i \
      -d slaveId=90ec65ea-1f7b-479f-a824-35d2527d6d26-S$i \
      -d resources='[
        {
          "name": "cpus",
          "type": "SCALAR",
          "scalar": { "value": 2 },
          "role": "spark-role",
          "reservation": {
            "principal": ""
          }
        },
        {
          "name": "mem",
          "type": "SCALAR",
          "scalar": { "value": 8026 },
          "role": "spark-role",
          "reservation": {
            "principal": ""
          }
        }
      ]' \
      -X POST http://master.mesos:5050/master/reserve
done

Nodes had 4 cpus (m3.xlarge instances)  and I reserved either 2 or 4 cpus (all for a role).
I verified it launches tasks on nodes with reserved resources under spark-role role  only if
a) there are remaining resources for (*) default role and the spark driver has no role assigned to it.
b) the spark driver has a role assigned to it and it is the same role used in reservations.
I also tested this locally on my machine.

Test build #82317 has started for PR 19390 at commit 28717d9.

Test build #82317 has finished for PR 19390 at commit 28717d9.

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

Merged build finished. Test PASSed.

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

Test build #82318 has started for PR 19390 at commit 2fe6f70.

Test build #82320 has started for PR 19390 at commit 2db3793.

Merged build finished. Test PASSed.

Test build #82320 has finished for PR 19390 at commit 2db3793.

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

Test build #82400 has started for PR 19390 at commit ce6902e.

Test build #82400 has finished for PR 19390 at commit ce6902e.

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

Merged build finished. Test PASSed.

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

Hi, is there any update on this issue? Is it fixed yet?

Glad to hear that @tawfiqul-islam, thank you for the feedback.

@susanxhuynh could you review pls?

@ArtRand I updated the PR check my comments pls.

Test build #82816 has started for PR 19390 at commit 658d8c1.

Test build #82816 has finished for PR 19390 at commit 658d8c1.

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

Merged build finished. Test PASSed.

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

@srowen could I get a review or a merge pls?

Test build #82882 has started for PR 19390 at commit 4c51a1f.

Test build #82882 has finished for PR 19390 at commit 4c51a1f.

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

Merged build finished. Test PASSed.

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

Test build #82909 has started for PR 19390 at commit 97f7ff9.

Test build #82909 has finished for PR 19390 at commit 97f7ff9.

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

Merged build finished. Test PASSed.

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

@susanxhuynh this does not work with statically resources and mesos 1.4.
There is a compatibility issue as proto has changed between versions.
In the following scenario I have a static reserved resource and although I dont set reservationInfo when I accept the offer it sees it as DYNAMIC. In 1.4 you need to set the type and reservations.
ole)]):1; cpus(allocated: spark_role):2; mem(allocated: spark_role)(reservations: [(DYNAMIC,spark_role)]):896 required by task and its executor is more than available disk(allocated: spark_role)(reservations: [(STATIC,spark_role)]):10000; cpus(allocated: spark_role)(reservations: [(STATIC,spark_role)]):1; mem(allocated: spark_role)(reservations: [(STATIC,spark_role)]):1000; cpus(allocated: spark_role):2; mem(allocated: spark_role):2000; disk(allocated: spark_role):10000; ports(allocated: spark_role):[31000-32000]

@susanxhuynh I will re-test and update the PR, the issue was at proto bufs, using reservation info without checking if the offer had that field anyway.

retest this please

Test build #83026 has started for PR 19390 at commit 9ca6902.

Test build #83026 has finished for PR 19390 at commit 9ca6902.

This patch fails build dependency tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Test build #83028 has started for PR 19390 at commit c90d351.

Test build #83028 has finished for PR 19390 at commit c90d351.

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

Merged build finished. Test PASSed.

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

Test build #83548 has started for PR 19390 at commit dbf7875.

Test build #83548 has finished for PR 19390 at commit dbf7875.

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

@srowen may get I get a merge please?

@srowen @vanzin gentle ping...

Test build #83967 has started for PR 19390 at commit 2d25bd4.

Test build #83967 has finished for PR 19390 at commit 2d25bd4.

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

Merged build finished. Test PASSed.

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

@susanxhuynh @ArtRand.
In order to deal with stripping allocation info for non multi-role schedulers:
<EMAIL_ADDRESS>I suggest to go with the 2nd option:
"(2) Any schedulers that update the protobuf, but leave their resource
matching logic as is, also continue to work since they ignore the
allocation info."
I am not sure of moving with full multi-role support for the Spark Scheduler for several reasons:
a) In 1.3 tag of mesos the multi-role field is not recommended for use:
https://github.com/apache/mesos/blob/904729ed37802545ec650e46177e49e1c35c84a8/include/mesos/mesos.proto#L346-L348
b) Benefits for Spark Scheduler itself are minimal (I see  a benefit for the dispatcher to support multi-tenancy as marathon does). (https://issues.apache.org/jira/browse/MESOS-1763)
When backwards compatibility wont be broken we can move to the multi-role support. Thoughts?

@susanxhuynh @ArtRand I verified the above option, so moving with that.

Test build #84029 has started for PR 19390 at commit 2d01ac3.

Test build #84029 has finished for PR 19390 at commit 2d01ac3.

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

Merged build finished. Test PASSed.

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

@vanzin I updated the PR, could you review and merge pls?

Just to reiterate our conversation here.
The AllocationInfo tells the scheduler which role’s allocation of resources the Offer is coming from, whereas the ReservationInfo tells the scheduler whether or not the Offer contains reserved resources. We needed the latter to effectively user dynamically reserved resources.
From your (old) PR it looks like the AllocationInfo is mostly just “forwarded”, i.e. there isn’t any logic around it’s contents. So your new PR removes references to AllocationInfo to prevent breaking with Mesos 1.3- and remain non-MULTI_ROLE.
The purpose of AllocationInfo is (in the future) to be able to have some logic around which tasks get launched on resources allocated to various roles that a framework is subscribed as - but we don’t have that yet and isn't addressed in this patch.

@vanzin gentle ping.

@vanzin @srowen  Can I get a merge pls?

@skonto I checked this again. Works great, thanks for the patch.

@vanzin gentle ping.

Merging to master.
There are still some style issues but those are mostly inherited from existing code, so I'll just ignore them.

@skonto : Sorry to ping again on this closed issue. For my scenario, I am dynamically reserving resources for a particular role (role-1) in some of my slaves and I want my spark application to launch executors on those resources only (using role-1). However, if there are any unreserved resources, the spark application is using that instead of the reserved resources. How can I prevent it? Thanks in advance!


doesn't work with python 3.9 on macbook pro m1 with conda install.

The bash kernel won't run correctly:

/opt/homebrew/Caskroom/miniforge/base/envs/sos-env/lib/python3.9/site-packages/sos_notebook/kernel.py:1216: RuntimeWarning: coroutine 'ZMQSocketChannel.msg_ready' was never awaited
  while self.KC.shell_channel.msg_ready():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/opt/homebrew/Caskroom/miniforge/base/envs/sos-env/lib/python3.9/site-packages/sos_notebook/kernel.py:1217: RuntimeWarning: coroutine 'ZMQSocketChannel.get_msg' was never awaited
  self.KC.shell_channel.get_msg()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

This is caused by incompatible versions of supporting libraries such as pykernel. Could you try to run pip install XXX -U for all jupyter related packages?

i was using conda, not directly through pip.  Mixing it could break other packages.  Did you try?

What is the version of sos-notebook in conda? Did you try conda updte -c conda-forge sos-notebook?

I have just released sos-notebook 0.2.40 and new versions of all language modules. Please let me know if the problem persists after upgrading to these versions.


No lookforthechange package available

Hi, thank you for sharing your great work!
I am trying to reproduce the results but facing one problem.
The train.py file is importing the lookforthechange package but I do not see it in the repository.
Also it does not get installed using pip either.
I'm wondering if I could get the files for the lookforthechange folder which seems like it should be included in the repository.
Thanks, I'll be looking forward for your feedback!

The package is in the repository ;)
https://github.com/soCzech/MultiTaskObjectStates/tree/main/cuda_ops

Thank you for your fast reply!
Sorry but I'm a bit new to CUDA code, could you please give me a short guide how to import the lookforthechange package?
Would be great help. Thank you so much.

python setup.py install ;)

oh got it, thanks!


I want to add more features and details in text summary tab

Text summary tab contains details about the number of characters and words of the text. I would like to add more details including number of statements, number of questions and number of exclamations in the text. This would provide a better knowledge and understanding of the text to the user.

please assign this task to me


2023-06 - Main

See readme for contributing guidelines.

These are some words that need to be added. I don't know how to write the pronunciation very well, so just wrote those I could and the to names that are from another language.
ai	ay igh
usb	yoo ess bee
gamelit	game lit
isekai
unicode
Miley
Meisam	[.2me.1sAm] Amini	[.2A.2mi.1ni]

@MeisamAmini Thanks. Some of your suggestions were added to ENUmain and ENURoot. Some notes below:

Normally we don't add lowercase variants to the dictionary unless they're widely used. As such, we haven't added "usb" and "ai".
We added "Meisam" using a slightly different, Anglicized version, to ENURoot.
As for "Amini," the original pronunciation sounds correct if we consider the Anglicized version - for English speakers. That's why it hasn't been added.

Understood. Thanks.
On Sun, Jun 4, 2023 at 10:44 AM amirsol81 @.***> wrote:

@MeisamAmini https://github.com/MeisamAmini Thanks. Some of your
suggestions were added to ENUmain and ENURoot. Some notes below:

Normally we don't add lowercase variants to the dictionary unless
they're widely used. As such, we haven't added "usb" and "ai".
We added "Meisam" using a slightly different, Anglicized version,
to ENURoot.
As for "Amini," the original pronunciation sounds correct if we
consider the Anglicized version - for English speakers. That's why it
hasn't been added.

—
Reply to this email directly, view it on GitHub
https://github.com/thunderdrop/IBMTTSDictionaries/issues/25#issuecomment-1575438465,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHARQ2RM3SK5ZAUK4PZHBH3XJQYU3ANCNFSM6AAAAAAVL7TK4M
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hello,
In root dictionary
tabatha	`[.1tA.bx.TH]
In main:
DLA	Dee Ell Ay
These seem to work, in the case of the proper name, it expands properly for other forms i.e. plural and possessive.
Please let me know if I've screwed this up--this is my first submission. Next time I may attempt a pull.
Thanks.
NER

@nromey Thanks for your great suggestions. I just added them to the
project as part of the last 2 commits. Now a couple of notes:

Tabatha. This is a variant of the word "Tabitha" - already in the
dictionary, and the suggested form adds a lowercase "x" at the end
instead of an uppercase "H:" `[.1tA.0bx.0Tx]. This is a general rule
affecting word-ending syllables, ending in "a," which receive
secondary/tertiary stress.
DLA. For consistency, the replacement should contain lowercase
characters instead of uppercase ones: dee ell ay.
Looking forward to your upcoming submissions.

Got another question. DoD is pronounced do d in Nvda. Can or should I try to add dod as a lower case entry in the special dictionary? Doing it this way, will DoD as a mixed case, be spoken as d o d? I encounter this old all the time at work. On Jun 27, 2023, at 10:50, Noel Romey @.> wrote:Ah cool. I had Tx as the last syllable and changed it. I’ll get my git straight and do a pull. So lower case in the special dictionary is case insensitive correct?  Asking will help me get you some better submissions. Ner On Jun 26, 2023, at 23:07, amirsol81 @.> wrote:
@nromey Thanks for your great suggestions. I just added them to the
project as part of the last 2 commits. Now a couple of notes:

Tabatha. This is a variant of the word "Tabitha" - already in the
dictionary, and the suggested form adds a lowercase "x" at the end
instead of an uppercase "H:" `[.1tA.0bx.0Tx]. This is a general rule
affecting word-ending syllables, ending in "a," which receive
secondary/tertiary stress.
DLA. For consistency, the replacement should contain lowercase
characters instead of uppercase ones: dee ell ay.
Looking forward to your upcoming submissions.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

@nromey Yes - you're right. Lowercase letters in the special dictionary are case-insensitive.
As for DoD, it seems to me that adding "dod," all lowercase, to the main dictionary can't fix it. It's because everything before the last letter, which is uppercase, gets interpreted as a separate word, and the uppercase "D" is interpreted as a separate entity. Of course, you may try it there and let us know if gets fixed.

No luck on DoD. At least I know how to fix it locally. As you have, I've been looking for duplicates and cleanup. Before I make the change, and yes I know I could just change it and you could just reject the pull, I found a "Da'Shaun" and a "Da'Shaun's" in the special (main) dictionary. I'm not sure if this is correct practice, but I'm going by experience here.  Shouldn't we pu da'shaun in roots and it'd cover the posessive as well. Also, as you noted in my proper name fixes previously, I put this in lower case. Initial tests on my system are the this works, but I want to make sure I'm on the same page as you before I go and break junk. Then I'll continue to look for dupes.  Really enjoying working on this project.

No luck on DoD. At least I know how to fix it locally. As you have, I've been looking for duplicates and cleanup. Before I make the change, and yes I know I could just change it and you could just reject the pull, I found a "Da'Shaun" and a "Da'Shaun's" in the special (main) dictionary. I'm not sure if this is correct practice, but I'm going by experience here. Shouldn't we pu da'shaun in roots and it'd cover the posessive as well. Also, as you noted in my proper name fixes previously, I put this in lower case. Initial tests on my system are the this works, but I want to make sure I'm on the same page as you before I go and break junk. Then I'll continue to look for dupes. Really enjoying working on this project.

@nromey Thanks for your vested interest!
You are absolutely right. I tested da'shaun, all lowercase, with ENURoot and it takes care of both instances in ENUmain. I was warried that the lowercase entry might fail with mixed case ones, but my concerns were unwarranted !
So, please kindly go ahead and take care of da'shaun and similar ones with your local tests - very  much appreciated! My efforts were primarily aimed at duplicates and words with alternative pronunciations in ENURoot, but you've raised an interesting case.
Thanks again for your interest and curiosity.

Will do. I thought it odd, but by reading the manual it appears as if the root dictionary is case insensitive. I understand why you might put this in main, but I found other words in there that had apostrophes, so I was like hey, let's give this a try. I also had a problem with Tabatha and apostrophes--it was reading the 's form as Tabatha s, so I fixed it by doing this very thing.  Screwed up my fork so I'm re-creating and you should get a pull request when i get done. Will try to not pummel you with ones and twos. I'm new to working on an active github project so I'm slowly progressing to success. Keep up your efforts, you're doing great.

@nromey Thanks. Do take your time and we'll take care of them together! 👏🏻👏🏻

Since there is an active discussion going on here I'll leave this issue open for the moment and not change the title as we do.

Requests:
opengl	open GL
Opengl	Open GL
openssl	open SSL
Openssl	Open SSL
Chatgpt	Chat GPT
JSON	`[.1Je.2san]
macos	mac OS
Macos	Mac OS
ipados	`[.1Y.2pAd] OS
Ipados	`[.1Y.2pAd] OS
deadmau5	`[.1dEd.2mWs]
Deadmau5	`[.1dEd.2mWs]
Nvdaremote	NVDA remote

Note: The entries Chatgpt and Nvdaremote are uppercase versions of the already-existing entries for chatgpt and nvdaremote. Similarly, JSON is the all caps version of json which, in my opinion, should not be spelled out.

@nicopn Thanks. I just added a few of your suggestions to Main as part of the latest commit. However,

Do opengl, ipados and macos tend to appear in this form? I haven't seen them, so haven't added them either. But if you think they deserve to be added, let us know.
It seems that NVDA can't properly pronounce deadmau5 because of the number at the end, so I haven't added it.
Note that Nvdaremote and Chatgpt were added to the middle of the file next to their relevant entry.

Discussion has concluded here, closing to be replaced by 2023-08.


RestXMLSerializer has problem with multi-byte unicode strings py2.7

Environment:

Amazon Linux AMI 2016.03.0 (HVM)
Python: 2.7.10
boto3: 1.3.0
botocore: 1.4.9

Reproduce:
>>> import boto3
>>> client = boto3.client('s3')
>>> bucket = '<your-bucket-name>'
>>> key = u'日本語でおｋ'
>>> client.put_object(Bucket=bucket, Key=key)
>>> client.delete_objects(Bucket=bucket, Delete={'Objects': [{'Key': key}]})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 236, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 476, in _make_api_call
    api_params, operation_model, context=request_context)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 529, in _convert_to_request_dict
    api_params, operation_model)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/validate.py", line 271, in serialize_to_request
    operation_model)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 415, in serialize_to_request
    serialized, shape, shape_members)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 457, in _serialize_payload
    shape_members[payload_member])
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 532, in _serialize_body_params
    self._serialize(shape, params, pseudo_root, root_name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 539, in _serialize
    method(xmlnode, params, shape, name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 565, in _serialize_type_structure
    self._serialize(member_shape, value, structure_node, member_name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 539, in _serialize
    method(xmlnode, params, shape, name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 576, in _serialize_type_list
    self._serialize(member_shape, item, list_node, element_name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 539, in _serialize
    method(xmlnode, params, shape, name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 565, in _serialize_type_structure
    self._serialize(member_shape, value, structure_node, member_name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 539, in _serialize
    method(xmlnode, params, shape, name)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 618, in _default_serialize
    node.text = str(params)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)

Otherwise, pass with multi-byte non unicode string cause another exception.
>>> client.delete_objects(Bucket=bucket, Delete={'Objects': [{'Key': '日本語でおｋ'}]})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 236, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 476, in _make_api_call
    api_params, operation_model, context=request_context)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/client.py", line 529, in _convert_to_request_dict
    api_params, operation_model)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/validate.py", line 271, in serialize_to_request
    operation_model)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 415, in serialize_to_request
    serialized, shape, shape_members)
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 457, in _serialize_payload
    shape_members[payload_member])
  File "/home/ec2-user/Workspace/test/local/lib/python2.7/site-packages/botocore/serialize.py", line 534, in _serialize_body_params
    return ElementTree.tostring(real_root, encoding=self.DEFAULT_ENCODING)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1126, in tostring
    ElementTree(element).write(file, encoding, method=method)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 820, in write
    serialize(write, self._root, encoding, qnames, namespaces)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml
    _serialize_xml(write, e, encoding, qnames, None)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 939, in _serialize_xml
    _serialize_xml(write, e, encoding, qnames, None)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 937, in _serialize_xml
    write(_escape_cdata(text, encoding))
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1073, in _escape_cdata
    return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)

At least, multi-byte string cannot be prohibited, I thought.
Fixes of the code will vary depending on which is right.
Needed the opinions.

I'm not sure why you deleted the body of the issue, so here's the steps to reproduce:
import boto3

bucket = 'bucket-name'
key = u'日本語でおｋ'
s3 = boto3.client('s3')
s3.put_object(Bucket=bucket, Key=key)

# Results in a UnicodeEncodeError on 2.7
s3.delete_object(Bucket=bucket, Key=key)

Thanks for reporting!

[ ]

@JordonPhillips Thank your follow-up.
But works fine and doen't raise exception in the delete-object function.

FWIW, I think this is only an issue on delete_objects (plural) as suggested in the original post.  It works for me when using delete_object (singular):
>>> import botocore.session
>>> botocore.session.get_session().create_client('s3').delete_objects(Bucket='anything', Delete={'Objects': [{'Key': u'日本語でおｋ'}]})


Update Tests.fs

fix problem with decimal separator

It's just a workaround. Perhaps this solution would be more appropriate:
let culture = System.Threading.Thread.CurrentThread.CurrentCulture

[<SetUp>]
let setup () =
    System.Threading.Thread.CurrentThread.CurrentCulture <- System.Globalization.CultureInfo.InvariantCulture

[<TearDown>]
let teardown () =
    System.Threading.Thread.CurrentThread.CurrentCulture <- culture


open a file on a different path but with same name fails

Type: Bug
Motivation: I want to see in my current session the package.json file from another folder to compare it with the local package.json
I use  open file or folder to open this file. It succeeds when the package.json is NOT open in the current editor. It silently fail when it is. I suppose the code compare the names instead of comparing the paths. That should be an easy fix.
VS Code version: Code - Insiders 1.87.0-insider (Universal) (8fa84589eef3538dbc763ff98dc7d5a8a0c56374, 2024-02-09T05:49:05.817Z)
OS version: Darwin arm64 23.1.0
Modes:

System Info

Item
Value

CPUs
Apple M2 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
4, 4, 3

Memory (System)
16.00GB (0.06GB free)

Process Argv
--crash-reporter-id c1c4d606-0967-44a6-9a85-266bfd87b8c9

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
vsaa593:30376534
py29gd2263:30784851
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
welcomedialog:30812478
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
8082a590:30961435
b1063948:30943794
fegfb526:30952798
7j2b6412:30951517
e3gdj431:30946825
8f97e687:30959763
ccp1r3:30958150

It seems it happens around here in the matches function but there are so many features that I am lost https://github.com/microsoft/vscode/blob/70e606d5fce956a27366c2675c8f6b0e0c63bfb8/src/vs/workbench/common/editor/editorGroupModel.ts

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

I have not quite yet figured to correctly use gifcap.dev.  So, I capture a session within vscode.dev which illustrate the problem. One see a pickdialog where I paste the name of the file to open. I type return, nothing happens

In your example the you are still opening the same file, so I am not sure what else you would expect?

I open a file with the same name in  a different repo, that is with a
different path.  If I open a file with a different name than the one of
the current editor,
it works fine which is an easy work around. Thx for your feedback.
On Sunday, February 18, 2024, Benjamin Pasero @.***>
wrote:

In your example the you are still opening the same file, so I am not sure
what else you would expect?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/204886#issuecomment-1951418518,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAD6MBEYADUG3XPKZCH4QLYUJHKRAVCNFSM6AAAAABDCKBUTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGQYTQNJRHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
cognominal stef

@cognominal but in your recording, when you enter the path of that other file, the elements below do not seem to be changing, so when you press enter, it opens the package.json as before, can you confirm that theory?

@bpasero  As I said  "I use open file or folder to open this file. It succeeds when the package.json is NOT open in the current editor. It silently fail when it is." I don't know if  "it  [re]opens the [current] package.json" or, as I said "it silently fails". As a user, I can only say that the current package.json is left untouched and the file which path i gave in the pick dialog is not opened. If I make the current file in the current editor anything but a package.json, opening a package.json with a different path works fine so the problem is just a minor inconvenience.

Can you give me very exact steps how to reproduce from scratch so that I can try for myself?

Sorry I did not realise that was so hard to replicate. Indeed here, I obtain different results by doing seemingly equivalent stuff. The setup is the following :
TMPDIR=~/tmp
mkdir $TMPDIR
mkdir $TMPDIR/a
mkdir $TMPDIR/b
echo '{"a": "b"}' >$TMPDIR/a/package.json
echo '{"c": "d"}' >$TMPDIR/b/package.json
code-insiders $TMPDIR/a
Then I interact within vsocde.
I get some stuff about trusting folder when I do the described stuff below for the first time.
I had cut in advance the path of ~/tmp/b/package.json
I use the command open open file or folder, erase the proposed path, paste, and type ENTER.
Nothing happens.
Next, from second 14 If I do the same but by a different interaction, it opens correctly.
Here is a .mov file of these interactions :
https://github.com/microsoft/vscode/assets/16176/4b13deb7-ec6d-498d-bbb8-77c589a9dad1
I realize, for whatever reason, part of the pasted path is in uppercase. On a mac, that should not make a difference. And I later replicated the same interactions with the path with the correct "case".
I don't mind if you close the issue. That does not matter to me.
Anyway I hope I help you to replicate.

Thanks, this looks to me like a bug with the simple file dialog not updating its list in this case, still showing the previous contents.


API Docs?

Is there an API documentation somewhere? I'm looking for all functions, with parameters, etc.
If it doesn't exist, it would great to have one.

To be done :)
I just started working on that!
Meanwhile, you can check this https://github.com/phenomic/phenomic/blob/4cb9661cfa0841ec6ddd0a03839c92fa9990f98e/flow/interfaces/phenomic.js.
(This file will be updated this afternoon with only public types)
Feel free to ask anything you want until something is online!

Docs are a WIP https://phenomic.io/en/packages/core/docs/


running with x86

On x86, this line was requiring that the package be signed to run... comment out if you're trying to get something working
index.js

- require("update-electron-app")();
+ //require("update-electron-app")();

Alas, this hasn't been done in the "latest executable", so the only way to install on X86 seems to be to build from source :-(

ok i'll address this thank you

The issue has been marked as closed, but the issue was about x86 Macs and the release that fixed it has only been made available for Arm :-(

ah sorry! actually somehow the build stopped appearing for x86. mind looking into that?

think i figured it out https://github.com/smol-ai/menubar/releases/tag/v0.0.6

nice!

Thanks - I can confirm that it's now working on i386 again (and that the original issue is fixed) :-)


Fix potential memory leaks

I added an additional patch that fixes some memory leaks in test/gost2814789test.c.

...and another for a leak in test/clienthellotest.c.

Ping? All these patches are pretty simple and straightforward.

yes they are.  but we have a big backlog :(

I've just added yet another for leaks in X509_verify_cert(), following the fix in cc2829e.

done in master and 1.0.2; thanks.


fix(shell.nix): ci_lint

Fix CI.
Overview
Fix CI errors introduced in https://github.com/target/lorri/pull/436/files#diff-5204cbe23b218cae9de0b1aedd4edcd2.

Checklist

[ ] Updated the documentation (code documentation, command help, ...)
[ ] Tested the change (unit or integration tests)
[ ] Amended the changelog in release.nix (see release.nix for instructions)

Ah whoops, I failed at pattern matching here :)


Code for aar?

Can someone include the code used to build the aar file for android?

The code is included in the plugin repository. You can find the source files here: https://github.com/NativeScript/push-plugin/tree/v0.20.0/native-src/android


Codecov

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e9cbaee). Click here to learn what that means.
 Consider uploading reports for the commit d989417 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage        ?   87.05%
=======================================
  Files           ?        1
  Lines           ?       85
  Branches        ?       19
=======================================
  Hits            ?       74
  Misses          ?       11
  Partials        ?        0

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


SVG caching in the quiz folder

fa79bb1dc36c0d7c1bcc3ee9df4c36617bf2155f moved caching to the quiz folder. Is this a good idea?
Suppose  we have a lot of cached items. Wouldn't it slow down this loop? It does skip through folders and undescore-prefixed files, but it still has to iterate through them.

Ok, sorry, I didn't realise that the lookup in the quiz folder is not recursive. I always do my stuff recursive (see e.g. the schema validator), so I kind of defaulted to this here.


Follow up: Optimizer

Suggestions from Rich:

I think eventually it would be good to provide more high-level info about how our cost-based optimizer works, a la Oracle's docs: https://docs.oracle.com/cd/B10501_01/server.920/a96533/optimops.htm#51003

it would also be good to explain a little about how the output from EXPLAIN (OPT) .. may differ from the standard EXPLAIN output generated by the heuristic planner (if such differences are user-visible).

Related to:
https://github.com/cockroachdb/docs/issues/2975
https://github.com/cockroachdb/docs/pull/3282

For the 2.1 release, we probably also need to update at least this part of the SQL Layer architecture doc: https://www.cockroachlabs.com/docs/dev/architecture/sql-layer.html#sql-parser-planner-executor.

From Andy K:

TPCH queries where opt is way slower than no-opt. Here's an example where's it due to the order in which we compile FROM:
FROM         supplier,         lineitem,         orders,         customer,         nation n1,         nation n2
The cost-based optimizer does the joins top-down (starting with supplier+lineitem), whereas the heuristic planner does the joins bottom-up (starting with nation+nation).
It seems like the cost-based optimizer's order is more intuitive, but should we change it to match the heuristic planner? As a small point, the code gets messier and may need to allocate in a temp slice to be able to reverse the order, which stinks.
Due to blind luck, the reverse order is orders of magnitude faster than the forward order. So the heuristic plan runs in ~30s, whereas I had to stop the cost-based plan after >15 minutes with no results.
But of course, flipping it just means that other queries would get slower - no real win except we match behavior.
I'm a bit concerned that heuristic planner doesn't have an intuitive order - makes it more confusing to manually order.
Do we want to use same order as heuristic planner? in particular, there could be customer queries in the wild that are manually tuned for a particular order, and suddenly they could run way slower, so i'm inclined to say we should flip our order to match the heuristic planner, even though it's messier code and less intuitive ordering

From Andy W:

Is this a big enough hassle for our customers that we should maintain the status quo (at the cost of eng time) or can we coach anyone with concerns on how to reorder the tables? Robert doesn't mind that we are doing a straight join and that therefore the order is different than the heuristic planner.

Looks like @knz updated the SQL Layer page. I don't think more needs to be added a the moment. Andy K pointed me to an overview (written mostly for developers who want to modify the code) that I can probably lift some language from for an overview on the Optimizer page:  https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/opt/doc.go


Cannot read property 'numPiecesPresent' of undefined

What version of WebTorrent Desktop? (See the 'About WebTorrent' menu)
0.8.1
What operating system and version?
OS X latest
What did you do?
Add a torrent
What did you expect to happen?
It starts.
What actually happened?
rendering error: Cannot read property 'numPiecesPresent' of undefined
TypeError: Cannot read property 'numPiecesPresent' of undefined
at renderFileRow (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:227:24)
at torrentSummary.files.map.sort.map (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:200:26)
at Array.map (native)
at renderTorrentDetails (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:200:10)
at renderTorrent (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:51:24)
at TorrentList.state.saved.torrents.map (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:12:25)
at Array.map (native)
at Object.TorrentList [as home] (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/home.js:11:42)
at getView (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/app.js:81:20)
at App (/Applications/WebTorrent.app/Contents/Resources/app.asar/renderer/views/app.js:44:30)
main.js:470 webtorrent: sent wt-save-torrent-file
main.js:470 webtorrent: sent wt-generate-torrent-poster
main.js:470 webtorrent: got wt-progress
/Applications/WebTorrent.app/Contents/Resources/app.asar/node_modules/raf/index.js:74 Uncaught TypeError: Cannot read property 'ownerDocument' of null

I've gotten this error before (since a few versions back), but I'm not too sure why. If I read the code correctly, the code that accesses numPiecesPresent shouldn't be run if the torrent isn't ready yet.

This seems to happen if the torrent is expanded too fast, i.e. renderFileRow gets called before the wt-progress event. This especially becomes a problem when the torrent is expanded initially as it's added. I don't know why this would be the case, but when i tested it, if I removed a torrent when it was expanded and added it again it would still be expanded and often cause this crash.
A simple fix might be to null-check torrentSummary.progress.files[index] at this line, which seems alright since we are already checking the progress and files properties. However a more general way of determining the ready state of a torrent seems ideal.

Fixed the immediate issue using @mathiasvr's suggestion in PR https://github.com/feross/webtorrent-desktop/pull/757.


Watch tower support

This PR adds support for a simple client-side "Watch Tower" task, that can be run on either iOS or Android. For example, iOS may schedule a background operation to run every few days.
The idea is that the client will run a task that:

connects to the electrum server (doesn't need to connect to lightning server)
receives status of watched transactions
reacts appropriately if commits have been published

This is all well and good. It just means we connect to the electrum server, and let the existing code do its thing. And we already have unit tests for these code paths.
But, of course, Apple puts restrictions on background tasks. So on iOS, a background task has a limited amount of time to execute. And it needs to explicitly tell the OS when it has finished.
Which creates a new problem: How do we know when the task has finished ?
Answering this question is the focus of this PR.
After investigating a few ideas, I realized there was a simple approach we could use to tell us when we've finished syncing with the electrum server:

after we've connected to electrum server (post handshake)
when there are no outstanding requests (excluding pings)
and after a brief delay to ensure we've processed all incoming information

After that point we've finished syncing with the electrum server, and we consider ourselves up-to-date.
The implementation is composed of 2 primary changes:
ElectrumClient
Previously, we were storing the outgoing requests via:
val requests: MutableMap<Int, ElectrumRequest>

So I've added another field to store the timestamps of the responses:
val responseTimestamps: MutableMap<Int, Long?>

If the value is null, then we know we have an outstanding request. If non-null, we know how long ago we received the response.
(Note that some requests, such as subscriptions, may receive multiple responses. So this always stores the timestamp of the most recent response.)
ElectrumWatcher
After connecting (i.e. post handshake), we start a timer that fires every 2 seconds. When the timer fires, we check to see if:

every request has received a response from the server
the last response was at least a few seconds ago

Once the criteria is satisfied, we fire a NotifyUpToDateEvent, which the client can listen for.

Do we really need to know when the task has finished?

In short, yes. Apple intelligently schedules background tasks according to several factors. One of which is the "budget", which is the amount of time that your app uses when running its background task(s). The less time you use, the more likely the system will run your background task in the future. Using more time means we drain our budgets, and the OS is more likely to delay running our background task, or simply not do it at all.
This was discussed in a WWDC 2020 video: Background execution demystified
Of course, Apple doesn't tell us what our budgets are. But the video mentions that our budget is dependent upon how often the user uses the app. This presents a problem for us. Because if the user is using Phoenix often (for example, every few days), then we don't even need the Watch Tower. It's when the user is using the app infrequently that our Watch Tower task becomes important. And that also means we can safely assume our budget is lowest when our background task is most critical.
(Note that one other budget is how much data we download when in the background. So it's helpful that we only connect to electrum, and not the peer.)

Instead, [...] after 20 seconds [...] (we can save in some database that the watch tower job did not run properly this time).

This implies that we know whether or not the Watch Tower job finished. But we don't currently have that information. The easiest way to determine this yes/no value is:

after we've connected to electrum server (post handshake)
when there are no outstanding requests (excluding pings)
and after a brief delay to ensure we've processed all incoming information

Which is what this PR provides :)
As long as we need this information, we should also give iOS what it needs. Which is some kind of completion notification.

Thanks for the explanation, I was confused. So in this design, the client job only starts the node in the background (without connecting to the peer), node that will in turn publish the closing tx if need be. But the client does not interact with electrum directly, yet it needs to know when the work is done, in order to optimize its "background budget" within iOS.


Wrong products displayed after save in product overview

I found next bug in product overview
After pressing save button on second (or any other) page of product overview - data are correctly saved, but displayed are products from first page - navigation is still showing that you are on second page
You must go on previous page and than back on next page to correctly get products from second page

Fixed. Thanks for reporting!


remove jsonpath dependency

@cben
/cc @lucasmazza in case I forgot a usecase

Sorry for silence.

Theorethically the format as defined by the Go client supports arbitrary commands and jsonpath:
https://github.com/kubernetes/kubernetes/blob/v1.20.0/staging/src/k8s.io/client-go/plugin/pkg/client/auth/gcp/gcp.go#L58-L109
so replacing it with a small subset of jsonpath could be a regression for somebody.
In practice, when used for GCP I expect the command is always gcloud config config-helper --output=json, and the output fields to take are {.credential.access_token}, {.credential.token_expiry}.

Here is an example of people that used this with a different command, for a non-GCP use case.  But I guess that's much rarer now that generic exec provider exists...

For comparison, the Python implementation carefully takes token-key and expiry-key from config, then ...
ignores them and hardcodes data['credential']['access_token'], data['credential']['token_expiry'] :laughing:
https://github.com/jfrabaute/python-base/blob/b87a5fe119b820e9196f39343b0f5a1546d7465b/config/kube_config.py#L173-L175

I guess this is safe enough in practice :heavy_check_mark:
However, the null hypotesis is that it's easier to rely on an implementation somebody else maintains & tests :grin:
(1) what's the motivation? (2) if you want this tiny-subset here, please add a couple tests.
I see you also did https://github.com/joshbuddy/jsonpath/pull/130 — are these related?

the jsonpath PR was to make it not show warnings, but that was before I realized that this is a mostly unnecessary dependency

motivation is to have 1 less dependency for everyone to install for a feature very few ppl use + less updating/svm etc
it's already tested with 'token-key' => '{.credential.access_token}' and {.credential.token_expiry} is not used


Actually require that action.type must be a string

Per https://github.com/reduxjs/redux/issues/4129#issuecomment-955854794 :

we've always said they should be serializable, and ought to be strings.
Someone over on Twitter said they'd once tried to use Symbols to make them truly unique, but tbh slice namespacing gives you like 95% uniqueness anyway, so I don't see that as a reason to continue to allow them. As mentioned above, TS enums can have number values, but again why would you do that? We want them to be readable in the DevTools.
So, given that we've always effectively said they should be strings, we might as well enforce it.

We should handle this similar to the "oops, you dispatched something that wasn't a plain object" error, and include the actual value in the error message so that there's an indication of what it was.  In fact, let's reuse the miniKindOf logic to give the type and include the actual value if at all possible.

Heh, technically the docs update will apply now, but hey, why not :)


Add sum(::Accumulator)

Hi @danielarndt, not as sure about this one.  Can you give a use case?

Ref https://github.com/JuliaLang/DataStructures.jl/issues/139

Thanks, @yuyichao--that explains it.  @danielarndt, can you rebase this?  I assume the export list changed.
(also good to add references in the future... but either way, thanks a lot for submitting the PR)

Will do @kmsquire -- and thanks for the advice about the refs.

@kmsquire rebased


Adding notify_early option to schedule action

This feature is fairly important to my organization. It would allow my teams to be notified of an issue prior to the complete failure of the flow.
@mtth - Is there any additional work you would need so that we could get this PR merged?

Updated PR with feedback.

Released in 0.9.13.


[OSDEV-953] Increase configuration for test environment

4 CPU
8 GB Memory

@killev We can closed this PR as it duplicate of https://github.com/opensupplyhub/open-supply-hub/pull/105

@roman-stolar please update the description of the PR. It is not up-to-date


Refactor default template of page list block

Remove deprecated Loader
Add html comment to show closing tag
Fix indent lines
Simplify using external links
Get the page owner instead of the author of initial version
Use second option of getAttribute (because most designer don't use is_object())
Remove example of image attribute (because default template use thumbnail attribute)

I think going through and cleaning up the core is a great idea.

@aembler I'm very sorry but I've pushed one more fix for my mistake. Could you pick up https://github.com/hissy/concrete5/commit/4ec000114941bf7af618b43012f9a265d6e3b1a2 ?

Done

Thank you 😓


The code  on Master  compilation failed

Pull the master code and try to compile, but it  did not pass , get the error below ,cann't get dependency code for "graphhopper-reader-osm:jar:0.10-SNAPSHOT"
@karussell

You are using repo.alibaba-inc.com and not one of the official repos. Try again with the default settings and let us know if the issue is resolved.

@boldtrn
Thanks for your remind，have changed the repository to central , see the below screenshot , it didn't work well still , not sure any wrong configuration

Why was there a need to edit the pom.xml? Also lets move to https://discuss.graphhopper.com/c/graphhopper/map-matching Furthermore you should switch to the 0.9.0 stable version

@karussell  I couldn't find 0.9.0 stable version in all branchs , how to  pull  that version?

0.9

Ups, it is not yet created. Will do this

Got it , thanks !


Cannot find compilation library location for package 'Microsoft.NETCore.App' 2.0.7

After uprading Microsoft.NETCore.App to 2.0.7 got next issue
InvalidOperationException: Cannot find compilation library location for package 'Microsoft.NETCore.App'
Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List assemblies)
When remove 2.0.7 it works ok.

Looks like we missed following up on this issue :(. Sorry for that!
.NET Core 2.0 is out of support as of 10/1 - see https://github.com/dotnet/core/blob/master/microsoft-support.md#out-of-support-net-core-releases
If you hit the same issue on .NET Core 2.1 (or earlier versions), please let us know - e.g. file a new issue with steps to reproduce.
Closing this one.


Track Cooladata

Vendor site - https://www.cooladata.com/
Example site - https://www.debenhams.com/
Detection - https://cdn.cooladata.com/tracking/cooladata-latest.min.js

Hey there , added


Add EA token

Official announcement: http://gstea.club/
Project team background:
The GSTEA project team has a very experienced team of senior experts, and the team members have many years of experience in the blockchain industry. The GSTEA project team has four core members, and dozens of excellent blockchain experts and development engineers are joining our team.Founder: Stefan Hofrichter, graduated from British  University with a master's degree in economics. Digital encryption currency enthusiast, one of the early builders of the European Bitcoin community, and angel investor in blockchain projects. He has participated in early investment in famous projects such as Ethereum, Ripple, and Polkadot. As the former head of global economics and strategy and managing director of AllianzGI, Stefan has extensive experience and global vision in the fields of financial analysis, asset allocation, equity strategy, asset and bond investment, and digital currency investment.
Project basic information:
The GSTEA open financial system platform aims to develop a complete cross-chain decentralized financial ecosystem, creating a decentralized wallet, lending, financing, transaction, prediction and other DeFi technology facilities, a cross-chain technology financial service ecosystem .The GSTEA platform will adopt innovative cross-chain smart contracts to provide global users with a financial system with good experience and high security through the method of "on-chain settlement, off-chain transactions", and secure and convenient lending and transactions. The GSTEA DeFi platform will also provide a variety of tools to connect traditional finance, build a bridge between the decentralized finance of digital currency and traditional centralized finance, help the development of the real economy, and reduce the cost of traditional financial services. At the same time, the platform has GSTEA DeFi tokens (GSTEA). GSTEA is used to incentivize all participants in the ecosystem and the autonomy of the ecosystem. GSTEA represents the common interests and wealth of the platform.
Recommended Gas Limit (For ERC-20 project teams) for transaction:  60,000

欢迎在社区中推荐用户使用 imToken 2.0 ，imToken 支持比特币, 以太坊, Comos, EOS, 波场, Nervos, 比特币现金, 莱特币，波卡等资产管理；同时支持去中心化币币兑换功能 Tokenlon；转账页面支持 ETH, USDT, EOS, BTC OTC 功能；另外对于没有 ETH 矿工费的用户，也提供 ETH 手续费充值功能。


Git Push test is failing arc-lnglat

Actual Result
Failing.
Expected Result
Expected to pass.
Reproduce Steps
Code Example
To Do List

[ ] Add label and assign to milestone
[ ] Coding
[ ] Test

@1chandu This is on an intel GPU

MacBook Pro (Retina, 15-inch, Mid 2015)
Intel Iris Pro

Problem reproduced on Intel Iris Pro GPU, looking ...

Close as duplicate of #1902


feat: Disable diverging palettes for maps

As discussed here, I think it makes sense to temporarily disable divergent color palettes for maps for the time being, until clarified with Zazuko / internally.

LGTM !
@l00mi Do you have any plans to put steps inside a dimension metadata (for example a median of the values) so that we can add diverging palettes ? For example for a column showing money earned/lossed, the step would be 0 and we would be able to use a diverging palette centered around 0.

@l00mi Do you have any plans to put steps inside a dimension metadata (for example a median of the values) so that we can add diverging palettes ? For example for a column showing money earned/lossed, the step would be 0 and we would be able to use a diverging palette centered around 0.

That would be an annotation per MeasurmentDimension, right? I added this remark here: https://gitlab.ldbar.ch/bafu/umweltdatenkiosk-planning/-/issues/286


AMBARI-23460. Ambari web modification for HSI HA Ambari integration

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Ambari web modification for HSI HA Ambari integration
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1677/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1702/
Test PASSed.


volunteer and date are dynamic values

Home Page Fixes

changed colors on chart
made "Volunteers" value change according to date
date till now value is dependent on events passed in

This looks awesome!!


check overrides for parent locale when compiling language files

fallback to parent locale for client localization strings overrides

@mjauvin is it worth unit testing this or no?

I guess so, yeah.

Any idea on how to approach this @LukeTowers ?

Probably would need to break it into a separate method to be more testable? Isn't there anything preexisting in the lang class that can handle getting and merging the messages appropriately?

@LukeTowers:

@mjauvin @bennothommo do you guys think it's worth unit testing this or no?

Yes! All the test cases!
@mjauvin:

Any idea on how to approach this @LukeTowers ?

You should be able to test this method direct, if you use the callProtectedMethod helper function in the TestCase class. Since the test cases will have a full copy of Winter CMS when running the tests, you could simply make some modifications to the necessary lang files to test different scenarios. Ultimately, you would be looking at the resulting JS for the test, I would imagine.

@mjauvin @bennothommo had a bit of time free this morning so I've added a test for lang compiling. Let me know what you guys think :)

LGTM, thanks @mjauvin and @jaxwilko!


double-conversion: Fails to build on OSX

Issue description
I'm trying to build my server for the first time using nix and stack (using stack --nix build). But I get an error saying "Missing C library: stdc++" while building double-conversion. I can't find this library in nixpkgs, however, so that's why I'm asking here. Is it a bug in double-conversion, or am I doing something wrong?
Steps to reproduce
git clone https://github.com/runeksvendsen/restful-payment-channel-server.git
cd restful-payment-channel-server/
stack --nix build

Technical details
Terminal error log:
--  While building package double-conversion-<IP_ADDRESS> using:
      /Users/rune/.stack/setup-exe-cache/x86_64-osx-nix/setup-Simple-Cabal-<IP_ADDRESS>-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-osx-nix/Cabal-<IP_ADDRESS> configure --with-ghc=/nix/store/7h5dcdfh1599ff9zmnqxq253x2q56za0-ghc-8.0.1/bin/ghc --with-ghc-pkg=/nix/store/7h5dcdfh1599ff9zmnqxq253x2q56za0-ghc-8.0.1/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/pkgdb --libdir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/lib --bindir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/bin --datadir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/share --libexecdir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/libexec --sysconfdir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/etc --docdir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/doc/double-conversion-<IP_ADDRESS> --htmldir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/doc/double-conversion-<IP_ADDRESS> --haddockdir=/Users/rune/.stack/snapshots/x86_64-osx-nix/lts-7.1/8.0.1/doc/double-conversion-<IP_ADDRESS> --dependency=base=base-<IP_ADDRESS> --dependency=bytestring=bytestring-<IP_ADDRESS> --dependency=ghc-prim=ghc-prim-<IP_ADDRESS> --dependency=integer-gmp=integer-gmp-<IP_ADDRESS> --dependency=text=text-<IP_ADDRESS>-5QpmrLQApEZ4Ly9nMHWY0s --extra-include-dirs=/nix/store/7h5dcdfh1599ff9zmnqxq253x2q56za0-ghc-8.0.1/include --extra-include-dirs=/usr/local/include --extra-lib-dirs=/nix/store/7h5dcdfh1599ff9zmnqxq253x2q56za0-ghc-8.0.1/lib --extra-lib-dirs=/usr/local/lib
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/rune/IdeaProjects/restful-payment-channel-server/.stack-work/logs/double-conversion-<IP_ADDRESS>.log

    Configuring double-conversion-<IP_ADDRESS>...
    setup-Simple-Cabal-<IP_ADDRESS>-ghc-8.0.1: Missing dependency on a foreign
    library:
    * Missing C library: stdc++
    This problem can usually be solved by installing the system package that
    provides this library (you may need the "-dev" version). If the library is
    already installed but in a non-standard location then you can use the flags
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is.

System: OSX 10.11.6
Nix version: nix-env (Nix) 1.11.4
Nixpkgs version: 17.03pre93141.e3deccc

I notice this issue has a "needs: reporter feedback" label. I'm not sure what further information is required, but let me know and I will provide it.

This was fixed in https://github.com/bos/double-conversion/commit/81d53e299f8569249387ecfc949a69ff55ecfe48, and double-conversion-<IP_ADDRESS> is already on our master.


Registering an outgoing variant fails with "Cannot create variant after dependency configuration has been resolved", while creating an outgoing variant works

Current Behavior
Registering an outgoing variant fails with "Cannot create variant after dependency configuration has been resolved", while creating an outgoing variant works
Expected Behavior
Either:

Registering an outgoing variant works
The 'register' option is disabled, removed, or documented as broken. The error message is improved.

Context (optional)
No response
Steps to Reproduce

Create Configurations in a convention plugin:
// buildSrc/src/main/kotlin/foo.gradle.kts

val requestedDependencies: NamedDomainObjectProvider<DependencyScopeConfiguration> =
  configurations.dependencyScope("foo") {
    attributes {
      attribute(Usage.USAGE_ATTRIBUTE, objects.named("foo"))
    }
  }

val incomingResolver: NamedDomainObjectProvider<ResolvableConfiguration> =
  configurations.resolvable("${requestedDependencies.name}Incoming") {
    extendsFrom(requestedDependencies.get())
    attributes {
      attribute(Usage.USAGE_ATTRIBUTE, objects.named("foo"))
    }
  }

val outgoingProvider: NamedDomainObjectProvider<ConsumableConfiguration> =
  configurations.consumable("${requestedDependencies.name}Outgoing") {
    extendsFrom(requestedDependencies.get())
    attributes {
      attribute(Usage.USAGE_ATTRIBUTE, objects.named("foo"))
    }
  }

private fun createOutgoingVariant(variant: String) =
  outgoingProvider.get().outgoing.variants.register("${outgoingProvider.name}$variant") {
    attributes {
      attribute(Usage.USAGE_ATTRIBUTE, objects.named("foo"))
      attribute(Category.CATEGORY_ATTRIBUTE, objects.named(variant))
    }
  }

val outgoingVariantRenderedFiles =
  createOutgoingVariant("RenderedFiles")

val outgoingVariantJars =
  createOutgoingVariant("Jars")

In the root project apply the convention plugin, with a task that resolves the incoming files:
// build.gradle.kts

plugins {
  foo
}

dependencies {
  foo("org.apache.commons:commons-math3:3.6.1")
}

val fooIncomingResolverTask by tasks.registering {
  val files =
    configurations.fooIncoming.get().incoming.artifactView { }.artifacts.resolvedArtifacts.map { it.map { it.file } }
  inputs.files(files)
  doLast {
    println("got files " + files.orNull?.joinToString { it.name })
  }
}

Run ./gradlew fooIncomingResolverTask

Error message:
Could not determine the dependencies of task ':fooIncomingResolverTask'.
> Could not determine the dependencies of null.
   > Could not resolve all dependencies for configuration ':fooIncoming'.
      > Cannot create variant 'fooOutgoingRenderedFiles' after dependency configuration ':fooOutgoing' has been resolved

In buildSrc/src/main/kotlin/foo.gradle.kts Replace 'register' with 'create':
  private fun createOutgoingVariant(variant: String) =
-   outgoingProvider.get().outgoing.variants.register("${outgoingProvider.name}$variant") {
+   outgoingProvider.get().outgoing.variants.create("${outgoingProvider.name}$variant") {
      attributes {
        attribute(Usage.USAGE_ATTRIBUTE, objects.named("foo"))
        attribute(Category.CATEGORY_ATTRIBUTE, objects.named(variant))
      }
    }

Run ./gradlew fooIncomingResolverTask - no error message

Gradle version
8.5
Build scan URL (optional)
No response
Your Environment (optional)
No response

Thank you for providing a valid report.
The issue is in the backlog of the relevant team, but this area of Gradle is currently not a focus one, so it might take a while before a fix is made.

This issue needs to be investigated to decide whether to improve the error message is enough or if there is a bug in that area.


"boast" not in wordlist?

Why encrypting my seed phrase, I received this error:
{
  "message": "ValueError: 'boast' is not in wordlist.",
  "success": false
}

I'm surprised since boast is definitely in the dictionary

I used the wrong word. I was supposed to be boost not boast


[BUG] Terraform kubernetes_manifest reports missing OpenAPI schema warning

Describe the bug
When running terraform with kubernetes_manifest module I get the warning that the API scheme is not associated with the CRD (See log output below) this prevents the manifest from being updated.
I use the following manifest file:
apiVersion: longhorn.io/v1beta1
kind: Setting
metadata:
  name: default-data-locality
  namespace: longhorn-system
value: best-effort

Expected behavior
I expect that no warning is shown.
A clear and concise description of what you expected to happen.
Log or Support bundle
╷
│ Warning: This custom resource does not have an associated OpenAPI schema.
│
│   with module.rancher.kubernetes_manifest.longhorn_settings["assets/longhorn/default-data-locality.yaml"],
│   on ../../../terraform/modules/rancher/main.tf line 126, in resource "kubernetes_manifest" "longhorn_settings":
│  126: resource "kubernetes_manifest" "longhorn_settings" {
│
│ We could not find an OpenAPI schema for this custom resource. Updates to this resource will cause a forced replacement.
│
│ (and 2 more similar warnings elsewhere)
╵

Environment

Longhorn version: v1.2.3
Installation method (e.g. Rancher Catalog App/Helm/Kubectl): Helm
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version: RKE1

Number of management node in the cluster: 4
Number of worker node in the cluster: 4

Node config

OS type and version: Ubuntu
CPU per node: 8
Memory per node: 16 GB
Disk type(e.g. SSD/NVMe): NVMe
Network bandwidth between the nodes: 1GBit

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal): Hetzner Cloud
Number of Longhorn volumes in the cluster: 10

Additional context
Add any other context about the problem here.

It seems that the setting CRD does have the openAPIV3Schema.
Could you provide the detail steps in the process running terraform with kubernetes_manifest module for investigation? I am not familiar with this installation method

It seems that the setting CRD does have the openAPIV3Schema.
Could you provide the detail steps in the process running terraform with kubernetes_manifest module for investigation? I am not familiar with this installation method

I have provided detailed steps to reproduce this issue above.


PARQUET-1179: Upgrade to Thrift 0.11, use std::shared_ptr instead of boost::shared_ptr

I still get an issue after install the latest bison
/Users/dev/tham/cortex-v2/src/ThirdParty/parquet-cpp/build/thrift_ep-prefix/src/thrift_ep/compiler/cpp/src/thrift/thrifty.yy:1.1-5: invalid directive:%code'
/Users/dev/tham/cortex-v2/src/ThirdParty/parquet-cpp/build/thrift_ep-prefix/src/thrift_ep/compiler/cpp/src/thrift/thrifty.yy:1.7-14: syntax error, unexpected identifier

Mac-CoreTeam:ThirdParty dev$ brew upgrade bison
Error: bison 3.0.4_1 already installed
`
Do you have any idea? Thanks!

I tried check bison --version, oh, it show bison 2.3. Then I found this article on stackoverflow. It generates another errors but it passed bison issue ;)

@thamht4190 You need to do export PATH=/usr/local/opt/bison/bin:$PATH and then a fresh build to get rid of the error. Alternatively install Thrift via homebrew or conda and use that instead of the one that is built by parquet-cpp.


Removing stray debugging output. #trivial

  Generated by :no_entry_sign: Danger

Codecov Report

Merging #387 into master will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #387      +/-   ##
==========================================
+ Coverage   65.74%   65.78%   +0.04%
==========================================
  Files         144      144
  Lines        8121     8113       -8
==========================================
- Hits         5339     5337       -2
+ Misses       2336     2332       -4
+ Partials      446      444       -2

Impacted Files
Coverage Δ

server/handle_gdm.go
60% <ø> (-1.12%)
:arrow_down:

util/restful/routemap.go
92.98% <ø> (-0.13%)
:arrow_down:

lib/http_state_manager.go
63.38% <ø> (-1.01%)
:arrow_down:

lib/deployments.go
57.14% <ø> (-2.32%)
:arrow_down:

util/restful/router.go
79.83% <ø> (-0.33%)
:arrow_down:

ext/docker/image_mapping.go
75.49% <0%> (+0.87%)
:arrow_up:

lib/auto_resolver.go
89.55% <0%> (+1.49%)
:arrow_up:

Continue to review full report at Codecov.

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


GUACAMOLE-357: Update Documentation for Ubuntu Specific Library

On Ubuntu the libjpeg62-turbo-dev package is named libjpeg-turbo8-dev, the instructions don't make that clear, I'd like to update the documentation to reflect that distinction.

So I've been using/building guacd from source since Ubuntu 14.x branches (14,15, and 16) and it's never worked with "libjpeg62-turbo-dev" it's a non existent package for Ubuntu. I've only ever made it work with "libjpeg-turbo8-dev" OR the non-turbo version which for whatever reason is still named "libjpeg62-dev"
If you just do a Google search for "Ubuntu libjpeg62-turbo-dev" you'll see what I'm talking about.
I cannot speak for all other Debian based distros because I've only used Ubuntu but with the popularity of Ubuntu I think it makes sense to put it in the manual.

Checking the Debian repositories, I can confirm that libjpeg62-turbo-dev is the only correct package there, so that's good. It's still that package, even on the latest unstable:
https://packages.debian.org/source/sid/libjpeg-turbo
As for Ubuntu, again, it looks like you're completely correct - even the oldest non-EOL version of Ubuntu (14.04) is on libjpeg-turbo8-dev:
https://packages.ubuntu.com/source/trusty/libjpeg-turbo
I'll go ahead and merge this.


Does not load in Chrome for Android

Can't seem to get it to load properly with chrome on android, the spinning arrow displays indefinitely.
However if I click the spinning arrow, the audio will start to play. So it must just be a UI problem.
Happens on the demo site as well.

Unable to reproduce in Chrome 48. Please confirm that this is still broken and I will happily investigate further.

Just tested on Chrome 47.0.2526.83 on Android 5.1.1 and can confirm the spinner doesn't automatically change to a play/pause button unless clicked manually

Interesting, now I need to find an Android 5.1 device to test against

I have an android device, with chrome 48. I can confirm that the auto-play feature does not work properly. I must click on the player before it will then load. once clicked, audio will then play.
This is the tag im using:
   <audio autoplay="autoplay">
      <source src="OVERWERK_Daybreak.ogx">
   </audio>

It auto-plays fine in desktop environments.
I can try it with an mp3, but I don’t think that’s the issue.

Is this related to what Webview has in place to prevent data usage by autoplaying content or allowing JS to trigger playing of content without a manual click?


ERROR while installation process

Hello
i tried to install pyatv and got the following problem (see log). I have already asked the team (https://github.com/postlund/pyatv/issues/1907#event-8381438238 pyatv for a solution but they say that it is a problem of zeroconf.
could you help me please?
thanks
Logs
Collecting zeroconf>=0.38.1
Using cached zeroconf-0.47.1.tar.gz (60 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 400, in run
requirement_set = resolver.resolve(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool
return bool(self._sequence)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
candidate = func()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in init
super().init(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in init
self.dist = self._prepare()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement
dist = _get_prepared_distribution(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 685, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 173, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 319, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File<EMAIL_ADDRESS>line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'
Environment
My system:
-Mac Ventura 13.2
-Homebridge 2.0 beta
-Node : v16.16.0
-npm: 9.4.0
-Homebrew installed (latest version)
-ffmpeg installed (latest version)
-python installed (latest version)
Process Supervisor
hb-service

Hi, I haven't seen this kind of problem - but probably because I run homebridge+plugin on Raspberry Pi
Previously I've published docker image which is based on oznu/homebridge:ubuntu and has  pyatv installed

Hi all,  I've just had this problem too, and worked through the answer. So here's my solution on a Raspberry Pi 4.
Before running the 'pip3 install pyatv' command, do the following:

Install rustc:

curl https://sh.rustup.rs -sSf | sh

When asked for installation options, select 2) for Custom Installation

When asked for "Default host triple?", enter:

arm-unknown-linux-gnueabihf

Then follow the defaults (this includes setting the path variable, you must answer 'Y')

Once rustc is installed you can test it by running the command  rustc

Next there are some libraries that will be needed in order for the cryptograhy modules to be compiled correctly:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

Now you can continue with the instructions to install pyatv - they should now work.

I hope this is helpful. Worked for me.


added encoding option

Sorry for number of commits but I use git website. Next time I try to use commandline git.

Looks good.
Could you add the new option to the documentation in the readme file?


Still maintained?

Is this going to be still maintained?
I see duplicated effort on Spark 2.3 and also on https://github.com/GoogleCloudPlatform/spark-on-k8s-operator

According to these docs, upstream Spark on Kubernetes does not include support for things like PySpark, and those docs also indicate that new Spark on Kubernetes features will be "incubated" in apach-spark-on-k8s. So that leaves this project as the only option for use cases not yet supported by upstream. Do you recommend that anyone still using your fork switch to consuming unreleased changesets in branch-2.2-kubernetes? Or do you really plan to halt all development?
In any case, I'd recommend updating the README to reflect the current state of the project, so it's clear that new users should steer clear and use upstream instead if that's your intent.

Any update? We are looking forward to using secure HDFS with kerberos and other improvements not in the latest release!

I am working on secure HDFS support and SparkR. I just put up a PR for PySpark :) in PR 21092.