new custom post type and   'taxonomies' => array( 'category', 'post_tag' )

Hello
While creating new custom post types using the register_cuztom_post_type, I got problem when I tried to link the  standard axonomiy Category to my post type : the following parameter inserted in $args :     'taxonomies' => array( 'category', 'post_tag' )
has no effect.
So I had to go back to the traditional register_post_type where there is no problem  activating the standard category
br / Falko

Can you send me a pastebin link with your code?

$test = register_cuztom_post_type(
'cpt_test',
array(
'labels' => array(
'name' => __( 'Tests' ),
'singular_name' => __( 'Test' ),
'view_item' => __( 'View Test' ),
),
'supports' => array('title', 'author', 'editor',
'excerpt', 'comments', 'thumbnail' ),
'taxonomies' => array( 'category', 'post_tag' ),
            )
    );

2015-01-22 16:29 GMT+01:00 Gijs Jorissen<EMAIL_ADDRESS>
Can you send me a pastebin link with your code?
—
Reply to this email directly or view it on GitHub
https://github.com/gizburdt/wp-cuztom/issues/333#issuecomment-71037751.

Sorry, working through old tickets, did you find a solution?


Issues with FTP between 2 Windows clients (self-hosted)

Hello, FTP service cannot be provided between two computers with Netbird Windows client installed in the VPN. If this service is enabled, the network will be interrupted

@chonglee123456
At 2023-05-17 12:24:50, "Oskar Manhart" @.***> wrote:
Hello, another issue is that when both parties use a Windows client, downloading business between them may cause one party to go offline and cause network interruption. I conducted tests on both the self managed server and the official server platform, and the results were the same. Why is this?
What do you mean? 2 Clients are connected and once you download something from the other client they disconnect?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>
Originally posted by @chonglee123456 in https://github.com/netbirdio/netbird/issues/855#issuecomment-1550795350

Does the same FTP server setup work when using it e.g. over the local network?


[Bug]: tf.keras update_op for computing running mean and variance for BatchNorm causes an error

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Debian GNU/Linux 9
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.12
Python version: 3.6
CUDA/cuDNN version: CUDA 9.0
GPU model and memory: TITAN X (Pascal)

I am using tf.keras API to build a ConvNet and I train it with the Tensorflow custom training loop, using graph API. The ConvNet contains BatchNorm layers and as I don't use model.fit() for training, I have to manage the updates to the moving mean and variance manually. However this causes an error. Here is a minimal reproducible case:
import numpy as np
import tensorflow as tf

from tensorflow.python.keras import layers
from tensorflow.python.keras import initializers
from tensorflow.python.keras import models

tfsum = tf.contrib.summary

HEIGHT = 480
WIDTH = 640

def conv(x, num_out_layers, kernel_size, stride, activation_fn="relu"):
    kernel_initializer = initializers.VarianceScaling()
    x = layers.Conv2D(num_out_layers,
                      (kernel_size, kernel_size),
                      strides=stride,
                      padding="SAME",
                      activation=None,
                      kernel_initializer=kernel_initializer)(x)

    x = layers.BatchNormalization()(x)
    x = layers.Activation(activation_fn)(x)
    return x

def build_cnn(img_shape):
    inputs = tf.keras.layers.Input(img_shape)

    conv1 = conv(inputs, 64, 7, 1)
    outputs = conv(conv1, 3, 7, 1)

    model = models.Model(inputs=[inputs], outputs=[outputs])
    return model

def main_graph():
    learning_rate = 0.001
    batch_size = 1
    num_steps = 100
    train_dir = "."
    dataset_size = 20

    images = np.random.random_sample([dataset_size, HEIGHT, WIDTH, 3]).astype(np.float32)
    dataset = tf.data.Dataset.from_tensor_slices(images)
    dataset = dataset.repeat() \
                     .batch(batch_size)
    iterator = dataset.make_one_shot_iterator()
    image = iterator.get_next()
    print(image)

    global_step = tf.train.get_or_create_global_step()
    summary_writer = tfsum.create_file_writer(
        train_dir, flush_millis=10000)
    with summary_writer.as_default(), tfsum.record_summaries_every_n_global_steps(10):
        model = build_cnn([HEIGHT, WIDTH, 3])
        prediction = model(image, training=True)
        update_ops = model.updates
        train_var_list = model.trainable_variables

        prediction = tf.ensure_shape(prediction, [batch_size, HEIGHT, WIDTH, 3])

        loss = tf.reduce_mean(tf.abs(prediction-image))

        tf.contrib.summary.scalar("loss", loss)

        optimizer = tf.train.AdamOptimizer(learning_rate)
        with tf.control_dependencies(update_ops):
            train_op = optimizer.minimize(loss, global_step=global_step, var_list=train_var_list)

    sess = tf.Session()
    with sess, summary_writer.as_default():
        sess.run(tf.global_variables_initializer())
        sess.run(tf.local_variables_initializer())
        tf.contrib.summary.initialize(graph=tf.get_default_graph())

        for i in range(num_steps+1):
            _, global_step_val, loss_val, _, = sess.run([train_op, global_step, loss,
                                                        tfsum.all_summary_ops()])
            print(f"iter:{global_step_val:06d} loss: {loss_val:04.4f}")

if __name__ == "__main__":
    main_graph()

This results in the following error message:
Caused by op 'input_1', defined at:
  File "../../train_bug.py", line 104, in <module>
    main_graph()
  File "../../train_bug.py", line 72, in main_graph
    model = build_cnn([HEIGHT, WIDTH, 3])
  File "../../train_bug.py", line 44, in build_cnn
    inputs = tf.keras.layers.Input(img_shape)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/keras/engine/input_layer.py", line 229, in Input
    input_tensor=tensor)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/keras/engine/input_layer.py", line 112, in __init__
    name=self.name)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1747, in placeholder
    return gen_array_ops.placeholder(dtype=dtype, shape=shape, name=name)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/ops/gen_array_ops.py", line 5206, in placeholder
    "Placeholder", dtype=dtype, shape=shape, name=name)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
    op_def=op_def)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
    return func(*args, **kwargs)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3274, in create_op
    op_def=op_def)
  File "/BS/eldar-3dshape/work/apps/miniconda3/envs/py36/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1770, in __init__
    self._traceback = tf_stack.extract_stack()

InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'input_1' with dtype float and shape [?,480,640,3]
         [[node input_1 (defined at ../../train_bug.py:44)  = Placeholder[dtype=DT_FLOAT, shape=[?,480,640,3], _device="/job:localhost/replica:0/task:0/device:GPU:0"]()]]

Removing with tf.control_dependencies(update_ops) makes it run, but then the batchnorm statistics are not being updated. How can I use Keras in this setting?

The problem is very much related to #23873

@karmel can you comment or redirect as necessary? Thanks.

@eldar please replace model.updates with model.get_updates_for(image).
model.updates includes all updates, including the ones created when constructing your model off of the keras.Inputs


New tables and add foreign key

In this pull request

Create a table of owner and species
Modify the animal according to the requirement
Insert the owner's data and species
Modify and insert data species_id and owner_id.
Use Join

@Kossi-stack Thank you for review


Integrate end to end example of using protobufs

Please add an example and test case using .protos end to end: code gen protos, add deps, etc. There may be 1-1 small fixes that need to happen. Consider making it work directly with https://github.com/bazelbuild/rules_proto

here's a branch https://github.com/bazel-ios/rules_ios/compare/protos_test_case?expand=1 that sets up all things needed to improve on this.
Run:
bazel build tests/ios/frameworks/protos:SampleProtoFramework

The branch works because of the hacks in library.bzl but ultimately the issue is that apple_framework must somehow accept a list of labels for srcs instead of assuming it is just files.


[Snyk] Fix for 34 vulnerabilities

Snyk has created this PR to fix 34 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

package.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Uninitialized Memory Exposure npm:base64url:20180511
  741

Uncontrolled resource consumption SNYK-JS-BRACES-6838727
  696

Prototype Pollution SNYK-JS-LODASH-6139239
  696

Denial of Service (DoS) SNYK-JS-WS-7266574
  696

Authentication Bypass npm:jsonwebtoken:20150331
  696

Prototype Pollution SNYK-JS-LODASH-450202
  686

Prototype Pollution SNYK-JS-LODASH-608086
  686

Prototype Pollution SNYK-JS-LODASH-73638
  686

Arbitrary Code Execution SNYK-JS-SANITIZEHTML-585892
  684

Code Injection SNYK-JS-LODASH-1040724
  681

Cross-site Scripting (XSS) npm:sanitize-html:20161026
  656

Uncaught Exception SNYK-JS-SOCKETIO-7278048
  649

Forgeable Public/Private Tokens npm:jws:20160726
  649

Validation Bypass SNYK-JS-SANITIZEHTML-1070780
  646

Prototype Pollution npm:lodash:20180130
  636

Denial of Service (DoS) SNYK-JS-ENGINEIO-3136336
  589

Inefficient Regular Expression Complexity SNYK-JS-MICROMATCH-6838728
  589

Directory Traversal SNYK-JS-MOMENT-2440688
  589

Prototype Pollution SNYK-JS-UNSETVALUE-2400660
  589

Regular Expression Denial of Service (ReDoS) SNYK-JS-LODASH-1018905
  586

Information Exposure SNYK-JS-SANITIZEHTML-6256334
  586

Authorization Bypass SNYK-JS-EXPRESSJWT-575022
  584

Use of Weak Hash SNYK-JS-CRYPTOJS-6028119
  574

Use of a Broken or Risky Cryptographic Algorithm SNYK-JS-JSONWEBTOKEN-3180026
  554

Regular Expression Denial of Service (ReDoS) SNYK-JS-LODASH-73639
  541

Improper Restriction of Security Token Assignment SNYK-JS-JSONWEBTOKEN-3180024
  539

Access Restriction Bypass SNYK-JS-SANITIZEHTML-1070786
  539

Improper Authentication SNYK-JS-JSONWEBTOKEN-3180022
  534

Regular Expression Denial of Service (ReDoS) npm:moment:20161019
  509

Regular Expression Denial of Service (ReDoS) SNYK-JS-SANITIZEHTML-2957526
  479

Regular Expression Denial of Service (ReDoS) npm:moment:20160126
  479

Cross-site Scripting (XSS) npm:sanitize-html:20160801
  449

Cross-site Scripting (XSS) npm:sanitize-html:20141024
  429

Regular Expression Denial of Service (ReDoS) npm:moment:20170905
  399

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Uncontrolled resource consumption
🦉 Use of Weak Hash
🦉 Improper Authentication
🦉 More lessons are available in Snyk Learn

Very nice


"DisplayEnchantments" showing only 1.14 enchantments

After #236 got fixed, now the exact opposiste thing is happening.

Thanks for the report.
Fixed: 625cbdf67ab544341c1113d190fdfa19eddd7b4d


change(scan): Refactor scanning tests

Motivation
Address https://github.com/ZcashFoundation/zebra/pull/7994#discussion_r1405426798.
This PR creates fake blocks in Zebra's format that are worth scanning and adjusts existing tests. We can also leverage this functionality in further tests. I expect we'll need to refine the API for fake blocks later on when we need more complicated tests.
PR Author Checklist
Check before marking the PR as ready for review:

[x] Will the PR name make sense to users?
[x] Does the PR have a priority label?
[x] Have you added or updated tests?
[x] Is the documentation up to date?

Convert transactions from the compact format to Zebra's V4.
Create fake Zebra blocks using the converted transactions.

Refactor existing tests to use the fake Zebra's blocks.
Fix some nits in the existing tests.

Reviewer Checklist
Check before approving the PR:

[ ] Does the PR scope match the ticket?
[ ] Are there enough tests to make sure it works? Do the tests cover the PR motivation?
[ ] Are all the PR blockers dealt with?
PR blockers can be dealt with in new tickets or PRs.

And check the PR Author checklist is complete.

I think CI on this PR was impacted by the self-hosted runner changes, so I'm going to cancel and restart those jobs.

Re-running failed jobs didn't work, I'm now trying re-running all jobs in the hung workflow.
Next step is to make a code change or update from main, so that we have a new GitHub merge commit, and everything runs fresh.

We appear to be having issues with runners again, pinging @gustavovalverde

There was a merge conflict that required manual resolution.


Jupyter notebooks are not shut down after idle time

Just like with Capella instances, we want Jupyter notebooks to shut down after a period of inactivity.
Jupyterlab provides an OpenMetrics endpoint at http://localhost:8080/jupyter//metrics (if running locally).
It provides us request duration and bucketing. by counting the items in the buckets, we should be able to see how long there has been no requests over the web. If that's more than 1 hour, the container can close.
NB. Caveat: how does this relate to websockets? -> No, the frontend is fetching regularly.
The metrics are already collected. We need a correct alert to trigger a shutdown

Fixed by #803


Arbitrary/dynamic enchantments for Destructor upgrades

Would it be possible to rework the enchantment-based upgrades for Constructors such that any enchantment could be used, instead of having them hard-coded? This would be particularly helpful for mods like Astral Sorcery, which adds both new enchantments (Scorching Heat, which makes mined blocks drop their smelted products) and new maximum levels for existing enchantments (Fortune Ⅶ, which is rather self-explanatory).
I recognize that allowing any enchantment might be more difficult than just calling a standardized method (though the worst-case scenario could just be nothing being applied), but judging by the existing code it should be fairly straightforward to allow any level of Fortune and such.

No, it's just not worth it.

Thank you for the quick response.


Connect vmi stuck via virtctl console

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Connect vmi stuck via virtctl console
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version):
v0.30.3
Kubernetes version (use kubectl version):
v1.14.3
VM or VMI specifications:

apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
 annotations:
   kubevirt.io/latest-observed-api-version: v1alpha3
   kubevirt.io/storage-observed-api-version: v1alpha3
 creationTimestamp: "2020-07-17T10:28:02Z"
 generation: 15
 labels:
   kubevirt.io/vm: test-vm5
 name: test-vm5
 namespace: default
 resourceVersion: "88834452"
 selfLink: /apis/kubevirt.io/v1alpha3/namespaces/default/virtualmachines/test-vm5
 uid: 31adc32f-c818-11ea-84cc-525400f6dbb9
spec:
 running: true
 template:
   metadata:
     creationTimestamp: null
     labels:
       kubevirt.io/vm: test-vm5
   spec:
     domain:
       devices:
         disks:
         - disk: {}
           name: containerdisk
       machine:
         type: q35
       resources:
         requests:
           memory: 1024M
     terminationGracePeriodSeconds: 0
     volumes:
     - containerDisk:
         image: registry.icp.com:5000/cke/cks-ubuntu18:latest
       name: containerdisk
status:
 conditions:
 - lastProbeTime: null
   lastTransitionTime: "2020-07-17T11:01:18Z"
   status: "True"
   type: Ready
 created: true
 ready: true

the image,registry.icp.com:5000/cke/cks-ubuntu18:latest is  qcow2 format.
I also tried virtctl vnc test-vm5,but got error:
root@mgt02:~# virtctl vnc test-vm5
{"component":"","level":"info","msg":"connection timeout: 1m0s","pos":"vnc.go:137","timestamp":"2020-07-20T15:23:31.869117Z"}
{"component":"","level":"error","msg":"remote-viewer execution failed: exit status 1, output: Unable to init server: Could not connect: Connection refused\n\n(remote-viewer:1812031): Gtk-WARNING **: 15:23:32.093: cannot open display: \n","pos":"vnc.go:230","timestamp":"2020-07-20T15:23:32.097127Z"}

Any help is much appreciated!

@npu21 sorry that a response took so long.
Looks like something is blocking the connection. Could it be that you have NetworkPolicies defined in your cluster?


BUG: com.azure.core.exception.HttpResponseException: Deserialization Failed

*Which service(blob, file, queue, table) does this issue concern?
Blob
*Which version of the Azurite was used?
Docker / 3.18.0
*Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub:  mcr.microsoft.com
*What's the Node.js version?
The one in the provided docker container
*What problem was encountered?
Edit: There is no problem with my code because if I test it towards a real Azure system it works.
I have been able to  to run a local container of Azure Blob storage. Most of the time it works(when I upload images) but it fails when I provide other types of data. I get exactly the following error:
 Blob operation error on blob: 'reports/08191407-a4d4-4c86-9f3c-45a02b8c93ec' com.azure.core.exception.HttpResponseException: Deserialization Failed.     at com.azure.core.implementation.serializer.HttpResponseBodyDecoder.decodeByteArray(HttpResponseBodyDecoder.java:92)     at com.azure.core.implementation.serializer.HttpResponseDecoder$HttpDecodedResponse.getDecodedBody(HttpResponseDecoder.java:93)     at reactor.core.publisher.Mono.lambda$mapNotNull$28(Mono.java:3429)     at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:176)     at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398)     at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.request(FluxHandleFuseable.java:257)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:171)     at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)     at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96)     at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onSubscribe(FluxHandleFuseable.java:161)     at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)     at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)     at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)     at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)     at reactor.core.publisher.FluxDoOnEach$DoOnEachSubscriber.onNext(FluxDoOnEach.java:173)     at reactor.core.publisher.FluxDoOnEach$DoOnEachFuseableSubscriber.onNext(FluxDoOnEach.java:281)     at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)     at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.FluxHide$SuppressFuseableSubscriber.onNext(FluxHide.java:137)     at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79)     at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)     at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)     at reactor.core.publisher.FluxDelaySubscription$DelaySubscriptionMainSubscriber.onNext(FluxDelaySubscription.java:189)     at reactor.core.publisher.SerializedSubscriber.onNext(SerializedSubscriber.java:99)     at reactor.core.publisher.SerializedSubscriber.onNext(SerializedSubscriber.java:99)     at reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.onNext(FluxTimeout.java:180)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:129)     at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180)     at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)     at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)     at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.complete(MonoIgnoreThen.java:292)     at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onNext(MonoIgnoreThen.java:187)     at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)     at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)     at reactor.core.publisher.SerializedSubscriber.onNext(SerializedSubscriber.java:99)     at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onNext(FluxRetryWhen.java:174)     at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:79)     at reactor.core.publisher.Operators$MonoInnerProducerBase.complete(Operators.java:2664)     at reactor.core.publisher.MonoSingle$SingleSubscriber.onComplete(MonoSingle.java:180)     at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onComplete(MonoFlatMapMany.java:260)     at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:144)     at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete(FluxDoFinally.java:128)     at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:152)     at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1817)     at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete(MonoCollect.java:160)     at reactor.core.publisher.FluxHandle$HandleSubscriber.onComplete(FluxHandle.java:220)     at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete(FluxMap.java:275)     at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:400)     at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:419)     at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:473)     at reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:703)     at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:93)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)     at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)     at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)     at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327)     at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:299)     at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)     at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)     at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)     at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)     at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)     at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)     at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:722)     at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:658)     at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:584)     at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:496)     at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)     at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)     at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)     at java.base/java.lang.Thread.run(Thread.java:829) Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'PK o': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') ?u???\u0019+??a\u007Fi]??\u0012?d?F?_???6P?\u0002v??i?q?a?\u001C\u0013\u0017\u0006x\u0015???\u007F??\u00010?\u001E\u0000?\u001BJ\u0006??,?t??\u0019l?\u0013???/?~??Dj8I? ?\u007F?I?PJ?T?G?mkHr+???R&v\u001E?^Hk?\q?b;W????\u0015'-?s???)~???>?o?\u0014\u007FO)n? h?.?\u0012???'??\u001BC\u0003? I#\u0002?&i\u0007?#\u0013?\u0000\u001E???nxg?/??H???>??f?Y!\u000Er"[truncated 920346 bytes]; line: 1, column: 13]     at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2391)     at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:745)     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3635)     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2734)     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:902)     at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:794)     at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4761)     at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4667)     at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3723)     at com.azure.core.implementation.jackson.ObjectMapperShim.readValue(ObjectMapperShim.java:224)     at com.azure.core.util.serializer.JacksonAdapter.lambda$deserialize$8(JacksonAdapter.java:225)     at com.azure.core.util.serializer.JacksonAdapter.useAccessHelper(JacksonAdapter.java:271)     at com.azure.core.util.serializer.JacksonAdapter.deserialize(JacksonAdapter.java:223)     at com.azure.core.implementation.serializer.HttpResponseBodyDecoder.deserializeBody(HttpResponseBodyDecoder.java:145)     at com.azure.core.implementation.serializer.HttpResponseBodyDecoder.decodeByteArray(HttpResponseBodyDecoder.java:86)     ... 81 common frames omitted

I dont know but it might be related to the following issue.

@heurisctics123
It looks the error happens on the client side. The related issue from you looks also fixed by a client side change.
Not sure if you already use the latest client SDK. If so, you might can contact sdk team like the related issue to see if they have any idea.

@heurisctics123
With only client exception, we don't have enough information to investigate this.
Would you please:

Contact the Client team to see if they have any idea. (You can just file an issue as the one in your before comments)
Give the detail repro steps for this issue.
Give the Azurite debug log when the issue happen.

Apparently, the root cause is related to the following issue:
https://github.com/Azure/Azurite/issues/647
So please give support for blob tag feature. No proper local testing can be done without it.

@heurisctics123
Thanks for the update!
How do you get the root cause is Azurite is still not support Blob Tag?
Which scenario do you use blob tag?
And why client failed since blob tag not support?
Ask this since we need this information to prioritize the blob tag work.

The issue happens when we call the "getTags" method on the client (java sdk; class: BlobAsyncClientBase; method: getTags).
This translates to an http request like:
https://host/container/blobname?comp=tags
The relevant part is that the comp=tags part gets added.
Azure Storage Cloud returns XML in the http response body (which represents the tags), which is what the client sdk expects and tries to parse.
Azurite seems to ignore comp=tags parameter and returns the binary. Client sdk tries to parse that and fails as it is neither
valid XMl nor JSON.

@nwei-mc
Thanks for the update!
From your description, I get this is caused by GetTag API still not support by Azurite, so Azurite parse it to another API and ignore "comp=tags".

@sup16013
Would you please give the Azurite debug log and Azurite version for this issue?
And if this is not the same issue as the origin issue, please open a new issue for it and follow up the issue template, then we can get most of the information needed for investigation.

Hello, I am using Azurite latest version. I am getting the same error when calling getTags() method of BlobClient class. Is there any solution for it?

@DivyansMahansaria
Currently Blob Index Tag feature is still not supported by Azurite.
The feature is in our plan, and will update this issue when this is implemented.
Before the feature is supported by Azurite, would you please don't call Tag related API like GetTags() to Azurite, or there might be unexpected result.
Thanks for your understanding!

@sup16013
Would you please give the Azurite debug log and Azurite version for this issue? And if this is not the same issue as the origin issue, please open a new issue for it and follow up the issue template, then we can get most of the information needed for investigation.

Sorry you can ignore my comment. As my error was caused from the Client using AzureJava sdk API and not Azurite. I have resolved the error by switching to azure-core : 1.34.0  instead of azure-core : 1.35.0.  deserialize method in 1.35 was creating issues

Facing same issue using the Java libraries of  azure-core 1.36.0, azure-messaging-eventhubs-checkpointstore-blob 1.16.3, azure-core-amqp 2.8.2, and azure-messaging-event-hubs 5.15.2 . We are using Event hubs with checkpointing.   The load-balancing code is retrieving my checkpoint ownership ( which is in XML) but the code is treating it as JSON so it is getting a JsonProcessingException hence "Deserialization Failed". We do see the following error :
[co.az.co.ut.se.SerializerEncoding] (reactor-http-epoll-1) 'Content-Type' not found. Returning default encoding: JSON
Perhaps content type from the http response has no Content-type header due to a code change or the default changed in the SerializerEncoding class?
I will try azure.core 1.34.0  and corresponding versions for the other packages and hope it works.

@bronzegod3
In the blob rest API doc, it says

The Content-MD5 element appears in the response body only if it has been set on the blob using version 2009-09-19 or later.

So this is expected contentMD5 is not required.
I have also checked with the team owns Storage API, and they confirmed contentMD5 is optional.
So this is a bug in the libraries  you are using. They expect an optional property "contentMD5" always be returned from server, which is not correct.

Thanks for the reply but I think you answered a question from another bug report here.; I have no idea what you are talking about.  The issue here was that the checkpoint ownership information was returned to the library as XML but the library was interpreting it as JSON so it got a deserialization error.  While debugging I saw the XML data and confirmed this.

@bronzegod3
Sorry for the confusing!
From your issue, it looks 'Content-Type' is missing from responds.
But I can't repro this issue when list blob with Azurite 3.22.0.
Would you please share:

Azurite version
Which Storage API responds caused "Deserialization Failed"?
Azurite debug log

BTW, this looks a different issue than the original one (the orignal one is for blob tag not support.)
It would be better if you could open a new issue and follow the issue template to give the above information needed for investigation.

You're right, it does seem my issue is different and I apologize for reporting my issue here.


Case-sensitivity in "Handle" part of URL

This project for remember URL easily. I think case-sensivity is unnecessary.
https://iban.im/harununal/HALKBANK => true
https://iban.im/harununal/halkbank => false
https://iban.im/harUNUNAL/HALKBANK => true

Hello,
I can take this,Could you describe the detail of the problem and requirement please ?
Thanks

@enesacikoglu User and IBAN handle should be stored as lowercase both frontend and backend.


Xcode 9 GM: Gym auto selects provisioning profile mapping wrong in an Xcode project with multiple configs

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
Basically like https://github.com/fastlane/fastlane/issues/9890 - that issue is still an issue and needs fixing... The process which generates a plist file with provisioning mappings does so but the mappings are incorrect. Basically the profiles always selected the profs selected for DEBUG configs, instead of the expected profs for ADHOC/INHOUSE configs. I think the last few comments on the original issue are close to finding the cause/fix for this.
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

fastlane version 2.57.1
Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
Sorry, this output included too many secrets :-P

It seems like this issue might be related to code signing 🚫
Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues 👍

Yes and https://docs.fastlane.tools/codesigning/xcode-project/#xcode-9-and-up does not work. It ignores that export_options setting.

Related: https://github.com/fastlane/fastlane/issues/10315

So, I'll try to explain a bit more:
I use a workspace (initially because cocoapods demanded one)
It includes a couple of projects, only of which ones is a real iOS app. (have a few command line tools there in the form of projects too) (I think this should be pretty irrelevant)
Have a couple of schemes. Most are for the iOS app - debug, release, adhoc and appstore schemes. There are schemes for the tools too so they can be easily run, and also a few schemes for tests/uitests.
For the main iOS app, there are four configurations; debug, release, adhoc(>inhouse), appstore
Sometimes Xcode provisioning auto works, but many times, especially when running from fastlane build scripts they wouldn't, so I mostly use manual settings here. I have created stuff like this
<prov.prof.revisionnumber>
myapp_dev_1
myapp_inhouse_4
myapp_appstore_3
where the provision number is just a manually bumped number whenever I need to recreate that file when a new team member joined, some distribution certificate is renewed or whatever. I don't keep old profiles around to minimize confusion.
And as has been noted in https://github.com/fastlane/fastlane/issues/9890 , it looks like Gym selects Debug profiles for adhoc/inhouse builds. (For me, YMMV, because the error might be a sorting issue in a loop somewhere etc)

Fun fact: the current problematic lane uses gym setting export_method: enterprise

I but of summary of the above, I get the feeling that Gym sometimes:

Selects incorrect bundle id at sign time (not the one that should be related to the scheme>target)
Maps an incorrect prov profile to an incorrect bundle id, for instance uses a debug profile for a bundle id that belongs to a adhoc/inhouse/enterprise build.

Also, in line with other ongoing discussions, this setup (specifically including export_xcargs: '-allowProvisioningUpdates',) seems to be working well, if I change said target to use automatic provisioning inside Xcode:
gym(scheme: thescheme,
export_method: theexportmethod, # export_methodが必要がどうかは・・・
  export_options: {
    provisioningProfiles: {
      "#{app_identifier}" => "#{provisioning_profile_name}",
    }
  },

  export_xcargs: '-allowProvisioningUpdates',
  silent: true,
  destination: 'generic/platform=iOS'
)

With allowProvisioningUpdates in place, I'm not sure I need those export_options. Doing a lot of trial and error here... building takes a fair share of time.

Hi @zapjonny,

Basically the profiles always selected the profs selected for DEBUG configs

Which Configuration do you set in default? (Is it Debug?)

If you do not specify Configuration at gym, this value will be used.
Therefore I think you should specify correct Configuration like this
gym(
  scheme: 'adhoc'
  configuration: 'adhoc'
  .
  .
 )

@thasegaw Ok thanks I will try to specify configuration like that! I kind of assumed that the configuration that is defined in scheme already did that.

@thasegaw For now it seems that only adding configuration: 'Adhoc' to the gym call in the fastfile fixes things for me. I stopped using export_options, export_xcargs, etc, it works so far.
Thank you very much. I think I will close this for now... until I run into some similar problem later.


Added new available categories on contributing.md

contributing.md states that currently there is only one category available, which is not true. I have updated that statement saying that there are several categories available which are found in /_posts folder.

That is very true, thank you @ccamara
Can we merge here and now @Nick-Tallguy ?

Ben,
I have very little Internet access where I am .
Go with what you think. I trust you.
Nick (OSM=Tallguy)
my phone is responsible for any spelling mistakes!
On 14 Nov 2016 09:42, "Benoît"<EMAIL_ADDRESS>wrote:

That is very true, thank you @ccamara https://github.com/ccamara
Can we merge here and now @Nick-Tallguy https://github.com/Nick-Tallguy
?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hotosm/learnosm/pull/510#issuecomment-260290157, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGc1vc8LZQXnol7e2eFOrWQq4EUxZb4pks5q-C0HgaJpZM4Kwxlz
.


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative/operations-wg-leads
/assign knative/operations-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/eventing 645fd88...54174e3:
  > 54174e3 Remove strict check in scorer plugins and respect maxskew, requeue when no pods available rather than fail Scheduler (# 6524)
bumping knative.dev/pkg 5f66ecf...d1d5c84:
  > d1d5c84 Define a global for `reconciler.DefaultTimeout`. (# 2597)
  > df29e2a Avoid second lister fetch during finalizer reconciliation. (# 2596)
bumping knative.dev/serving dadd0b6...2befffb:
  > 2befffb Update net-istio nightly (# 13328)
  > 2332731 upgrade to latest dependencies (# 13326)
  > 3f03f22 upgrade to latest dependencies (# 13324)
bumping knative.dev/caching 7fef078...6960c25:
  > 6960c25 upgrade to latest dependencies (# 683)
  > 1c4b1a9 upgrade to latest dependencies (# 682)

/test eventing-upgrade-tests

/lgtm
/approve


Cannot transfer file from host to windows using SCP

What steps will reproduce the problem?
1. Login to unix box using the SCP protocol
2. Navigate to any file
3. Try and copy to current PC (windows xp in this case)

What is the expected output? What do you see instead?
I expect the file to transfer.
Instead, the Log Viewer says "2012-12-05 14:32:22,751 DEBUG
frmSuperPutty - [328912] Activated" and nothing happens

What version of the product are you using? On what operating system?
Currently <IP_ADDRESS> have also tried <IP_ADDRESS> and <IP_ADDRESS>

Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 5 Dec 2012 at 8:36

Closing this issue but all hope is not lost! We still want to help.
See: https://github.com/jimradford/superputty/wiki/Legacy-Imported-Issues on how to help us to help you!


SSID with mixed UTF-8 and ASCII characters cannot be handled correctly

Hi Adam,
Thanks for this great integration!
However, my WiFi SSID begins with UTF-8 character and then ASCII one, like ω=2πf.
In this case, status from hostapd_cli gives something below, which mixes \x and normal ASCII chars.
ssid[0]=\xcf\x89=2\xcf\x80f

https://github.com/awilliams/wifi-presence/blob/b2b64ea8bce28ef5047b66c9929817240f65bc36/internal/hostapd/status.go#L58-L67
The code above just replace \x and then decode hex, which still contains non-hex chars, resulting Error: encoding/hex: invalid byte on my device. I'm not familiar with golang though, but maybe we could use strconv.Unquote instead? (Ref)
Thanks

Thank you for the detailed report @zhangjingye03, and sorry you are experiencing that issue.
I believe you've identified the section of code responsible for this issue. I'll take a closer look in the coming days and hopefully will have a fix soon.

@zhangjingye03 I've added a fix (#8) for your issue. Please, if you can, try out v0.2.0 and let me know if it fixes your issue. Thanks

Closing. Please re-open @zhangjingye03 if you experience any related issues.


Investigate top NuGet errors/issues

@cathysull this came out of survey results, could you please add specific issues seen by customers here?

Here's the top issues being reported:

dotnet tool install -g --add-source 'https://api.nuget.org/v3/index.json' --ignore-failed-sources upgrade-assistant  doesn't work
"Package Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, Version=0.3.310801 needs to be added.
Severity	Code	Description	Project	File	Line	Suppression State
Error		Could not install package 'Microsoft.DotNet.UpgradeAssistant.Extensions 0.2.226203'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
"


Page.EvaluateOnNewDocumentAsync  does not work according to Example

Description
Page.EvaluateOnNewDocumentAsync does not work according to documentation:
it assumes that first-argument 'pageFunction' is a function-name instead of an expression to evaluate in Page context, Therefore instead of evaluating expression 'pageFunction', it evaluates  '(pageFunction)();' instead.
Therefore the provided, shared sample from PuppeteerSharp and puppeteer:
var overrideNavigatorLanguages = @"Object.defineProperty(navigator, 'languages', {
  get: function() {
    return ['en-US', 'en', 'bn'];
  };
});";
await page.EvaluateOnNewDocumentAsync(overrideNavigatorLanguages);

...does not work.
Complete minimal example reproducing the issue
// Arrange
await new BrowserFetcher().DownloadAsync(BrowserFetcher.DefaultRevision);
var launchOptions = new LaunchOptions { Headless = false, DefaultViewport = null, Devtools = true };
var browser = await Puppeteer.LaunchAsync(launchOptions);
var page = (await browser.PagesAsync()).First();

// Act
var overrideNavigatorLanguages = @"Object.defineProperty(navigator, 'languages', { get: function() {
    return ['en-US', 'en', 'bn'];
}; });";
await page.EvaluateOnNewDocumentAsync(overrideNavigatorLanguages);
await page.GoToAsync("about:blank");

// Check
var res = (JArray)await page.EvaluateExpressionAsync("navigator.languages");
Debug.Assert(res.Count == 3);

Expected behavior:
'navigator.languages' set to en-US, en and bn.
Actual behavior:
In Chrome dev console: Uncaught SyntaxError: Unexpected token ;, because it tries to execute
(Object.defineProperty(navigator, 'languages', {
                  get: function() { return ['en-US', 'en', 'bn']; };
                });)()

(so with )() added at end).
Versions

PuppeteerSharp version: latest stable from NuGet: 1.12.1
.NET runtime and version are you targeting: .NET framework 4.7.2

Additional Information
None.

Additionally, there is a bug in the sample, also resulting in the same Uncaught SyntaxError.
The sample:
var overrideNavigatorLanguages = @"Object.defineProperty(navigator, 'languages', {
  get: function() {
    return ['en-US', 'en', 'bn'];
  };
});";
await page.EvaluateOnNewDocumentAsync(overrideNavigatorLanguages);

has one semi-colon too many and therefore must be:
var overrideNavigatorLanguages = @"Object.defineProperty(navigator, 'languages', {
  get: function() {
    return ['en-US', 'en', 'bn'];
  }
});";
await page.EvaluateOnNewDocumentAsync(overrideNavigatorLanguages);

Thanks for reporting this @eludias. I'll take a look at it.

@eludias the documentation was wrong. Puppeteer's documentation is hiding the real implementation because they are injecting the content of preload.js and we don't know what's there.
Long story short, EvaluateOnNewDocumentAsync expects a function not an expression. You can check the attached PR.


TypeError: string is not a function

I have a strange problem where my node.js app doesn't return any search results and gives the error [TypeError: string is not a function].
It is running on Heroku, and there are 3 environments (and 3 github branches). For some reason it all works fine on all but the master branch and live environment. I have merged a working branch with the master but still no luck. Running the master branch on my local machine with the same variables as the live Heroku site works fine too. Since the error does not say the line number or anything, I don't know how to investigate further. But since it just occurs when searching, I believe it's the Algolia API.
Any help appreciated.

Here is the code
exports.search = function ( req, res ) {

	getUser( req.token )
	.then( function ( user ) {

		index.search( req.query.terms, function( error, result ) {
			if ( error ) {
				console.log( error )
				return res.status( 500 ).json( error.message )
			}

			return res.status( 200 ).json( result.hits )
		}, { facetFilters: [ 'user:' + user.id, 'stream:' + req.query.stream ], page: req.query.page, hitsPerPage: req.query.show } )

	})
	.catch( function ( error ) {
		console.log( error )
		return res.status( 500 ).json( error.message )
	})

}

Hello @OKNoah, it is a simple inversion of parameters, you must call search this way:
index.search(query, params, function callback() {});

instead of:

index.search(query, function callback() {}, params);

Here's your code fixed:

```js
exports.search = function ( req, res ) {

    getUser( req.token )
    .then( function ( user ) {

        index.search( req.query.terms, { facetFilters: [ 'user:' + user.id, 'stream:' + req.query.stream ], page: req.query.page, hitsPerPage: req.query.show , , function( error, result ) {
            if ( error ) {
                console.log( error )
                return res.status( 500 ).json( error.message )
            }

            return res.status( 200 ).json( result.hits )
        } )

    })
    .catch( function ( error ) {
        console.log( error )
        return res.status( 500 ).json( error.message )
    })

}

If you come from our previous nodejs client (algolia-search in npm) then have a look at our migration guide: https://github.com/algolia/algoliasearch-client-js/wiki/Node.js-v1.x.x-migration-guide
If you found a nodejs example somewhere on our website, or anywhere on the internet that is stating you should have params last then please let me know.
Also, since you use promises, you will be interested by the fact that our new JS client also support promises so that you can rewrite your code like this:
exports.search = function ( req, res ) {

    getUser( req.token )
    .then( function ( user ) {

        return index.search( req.query.terms, { facetFilters: [ 'user:' + user.id, 'stream:' + req.query.stream ], page: req.query.page, hitsPerPage: req.query.show } )

    })
    .then(function(result) {
      return res.status( 200 ).json( result.hits )
    })
    .catch( function ( error ) {
        return res.status( 500 ).json( error.message )
    })
}

Nice?
Let me know if your problem is fixed.

Great,
Upgrading to version 3 did fix this problem. Still not sure why it worked on so many environment except one, maybe an old SSL bug in version 1, since we have HTTPS on our live site but not elsewhere.
Thanks a lot

Still not sure why it worked on so many environment except one

I think the one environment that failed had the V3 loaded while you were using V2 style search code.
Happy we solved this, thanks!

I think the one environment that failed had the V3 loaded while you were using V2 style search code.

Is that possible if I had algolia-search (old one) in the npm package dependencies list and not algoliasearch?

No if you had algolia-search as a dependency then the old .search call should have worked. Strange. BUt we solved it in the end :)


[FLINK-5715] Asynchronous snapshots for heap keyed state backend (BACKPORT)

Backport of PR #3466 from 1.3-snapshot to 1.2.  Introduces asynchronous snapshots for heap keyed state backend.

CC @StephanEwen

Thanks for the review, @StephanEwen ! A agree with undoing MemoryStateBackend and MathUtil as proposed, but would argue for keeping the change in TimeWindow. This change fixes skew problems with the old way the hash code was generated (being timestamps, typically only a small bandwith of bits in the hash code was used by the other approach). This skew can have particular impact in the new, flattened hashmap structure of the async backends.

After a discussion with @StephanEwen , we decided to follow my proposal. Merging this now.

Merged in c6a80725053c49dd2064405577291bdc86c82003.


Implement full Windows version/edition detection

Currently, you will be notified if the Windows edition detected is Home or Core.
This does not cover all incompatible Windows releases, such as Windows 7 or 8 Professional. I ignored these in the first instance because adding detection for Professional would exclude Windows 10 Professional (which is compatible). Compatibility list.
Need to implement detection of incompatible versions and editions in js/winver.js.

If in the directory "C: \Program Files\RDP Wrapper" there is a file rdpwrap.ini containing the line "TerminalServices-RemoteConnectionManager-AllowAppServerMode=1", then the edition can be considered supported.

Added info about "Windows 10 Enterprise for virtual desktops"

My opinion - I would link to the compat list on the home page and not worry about having the app check. Patches to Windows (SP's and KB's) could easily add or remove support. For example, XP SP3 added support for some things not available in SP2. Forget what offhand, but trying to maintain the compatibility in the app is a never ending battle. Using sashaquert's approach of the RDP Wrapper requires the end users to have that installed on their system, so it is not 100% reliable. I know I wouldn't bother installing RDP Wrapper on a Windows Server machine with enough user CALs to cover my use case... plus not sure what licensing I may violate by using that.
Put it on the main page and if someone installs it on an incompatible OS, that's on them. POSSIBLY have a link during install to the compatibility list, but even that is overkill. I've installed tons of apps that are not compatible with my system in the past and it's my own dumb fault for not reading the docs first. I learned, so should end users of this tool. It is a sysadmin tool, not a "play" tool. Any sysadmin who can't read the docs shouldn't be installing the tool in the first place.
Just my 2 cents.


BREAKING CHANGE: Rename validator_message to validation_text #DS-838

Description
Instead of the validator_message value of the data-spirit-element attribute, use
validation_text.

…
 →

…

Please refer back to these instructions or reach out to our team
if you encounter any issues during migration.
Issue reference
https://jira.lmc.cz/browse/DS-838

Please fix the commit message by adding  ## Migration Guide. Notice the space before #. This works and I have done this for all previous BCs.


Refresh Connector Owners

https://github.com/MeltanoLabs/Meta#connector-owners
Taps:

tap-snowflake
tap-messagebird
tap-duckdb

Targets:

target-snowflake

Also we should reevaluate any non-stable statuses for accuracy.

https://github.com/MeltanoLabs/Meta/pull/31


基于padpro协议不能发送微信小程序

Important：Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

Please run the following command and check whether the problem has been fixed：

rm -rf package-lock.json
rm -rf node_modules
npm install

Please search in FAQ List first, and make sure your problem has not been solved before.

Please search in the issue first, and make sure your problem had not been reported before

1. Versions

What is your wechaty version?
Answer:
"wechaty": "^0.27.60",
"wechaty-puppet-padpro": "^0.3.18"
Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
Answer:
"wechaty": "^0.27.60",
"wechaty-puppet-padpro": "^0.3.18"
What is your wechaty-puppet-XXX（padchat/puppeteer/） version?
Answer:
"wechaty": "^0.27.60",
"wechaty-puppet-padpro": "^0.3.18"
What is your node version? (run node --version)
Answer:
v10.16.1
What os are you using
Answer:
mac osx

2. Describe the bug
Give a clear and concise description of what the bug is.
不能发送微信小程序
var miniPayload = new MiniProgram ({
username : 'gh_dc74f3309680',
appid              : 'wxebccec0b2aff9d88',
title              : '寻声朗读',
pagepath           : 'pages/index/index',
description        : '寻声校园',
thumbnailurl       : ''
});
await room.say(miniPayload);
发送小程序后 不能pagepath填写什么，都会出现找不到页面。如果不填就能发出去，打开显示主页。thumbnailurl不支持，发不出封面图
3. To Reproduce
This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.
Steps to reproduce the behavior:

run '...'
...
...
参见源码

4. Expected behavior
Give a clear and concise description of what you expected to happen.
5. Actual behavior
If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.
6. Full Output Logs
Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)
We need full log instead of log screenshot or log fragments!

Show Logs

$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context
Add any other context about the problem here.
[bug]

in miniPayload, you can try
pagepath : 'pages/index/index.html'

thumbnailurl not support yet, we can't get cdnthumbnail automatically

为什么要这样？ 是bug还是以后都这样了

微信小程序cdn相关字段不开放，目前无法自动获得，还需要后面继续逐渐的完善
有一个临时解决办法是解析一个正确的小程序，把其中cdn相关字段提取出来，硬编码进generateMiniProgramXMLMessage

@CQHO 关于封面图的问题，在目前的PR里面没有得到很好的解决。一方面是我们的能力所限，一方面也是希望能有更多志同道合的技术高手参与到开源项目里贡献代码。 如果有兴趣对这个feature enhancement提交PR，可以加我微信 limingth，我拉你到我们的 PR 群里交流。

Close this issue because the wechaty-puppet-padpro is deprecated.


Roll Flutter Engine from e28f8755e25b to a18b6e1439bc (4 revisions)

https://github.com/flutter/engine/compare/e28f8755e25b...a18b6e1439bc
2024-07-26<EMAIL_ADDRESS>Revert "[Impeller] Use downsample shader for blur instead of mip levels. (#53760)" (flutter/engine#54148)
2024-07-26<EMAIL_ADDRESS>Roll Skia from 61ac357e8e33 to 4a97d01dfedd (2 revisions) (flutter/engine#54146)
2024-07-26<EMAIL_ADDRESS>Roll Dart SDK from 1b29ac31628f to de1925e18998 (1 revision) (flutter/engine#54145)
2024-07-26<EMAIL_ADDRESS>Pub workspace-ify most of testing/ and parts of tools/ (flutter/engine#54124)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Added new features

New functions: fec_enable, set_num_preamble, set_cca_mode, white_data_enable, crc_enable, read_tx_bytes, read_rx_bytes
Renamed function: set_modulation -> set_modulation_format
Added new error: TxUnderflow
Moved register specific enums into lowlevel
Simplified some enums
Other improvements

Good stuff just as the rest of the bunch. May I ask what project you have in mind for this? I must renovate my project (power monitoring) with all this new stuff soon.

Thank you @dsvensson ! I've been working on a little CubeSat project for some time.
I have not had much success yet, but first I want to achieve good RF communication, hence the work on the CC1101 driver.


Getting error when running flutter build apk on project in which survey_kit is imported

/opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64/.pub-cache/hosted/pub.dartlang.org/survey_kit-0.0.11/lib/src/views/time_answer_view.dart:82:14: Error: 'TimePickerDialog' is imported from both 'package:flutter/src/material/time_picker.dart' and 'package:survey_kit/src/views/widget/time_picker.dart'.
      child: TimePickerDialog(

/opt/hostedtoolcache/flutter/2.4.0-4.2.pre-beta/x64/.pub-cache/hosted/pub.dartlang.org/survey_kit-0.0.11/lib/src/views/time_answer_view.dart:82:14: Error: 'TimePickerDialog' is imported from both 'package:flutter/src/material/time_picker.dart' and 'package:survey_kit/src/views/widget/time_picker.dart'.
      child: TimePickerDialog(

Also facing same issue

It looks like the problem only occurs if your are not on the Stable-Channel, because the API for the TimerPicker changed. I will provider a fix later this week.

It looks like the problem only occurs if your are not on the Stable-Channel, because the API for the TimerPicker changed. I will provider a fix later this week.

That could be the issue. For my case, I chose to hide the TimePickerDialog from material library to solve the problem.

using stable channel fix the issue for me.


get lock file from main and rush update

closing in favour of https://github.com/sarangan12/azure-sdk-for-js/pull/6


Rt707158 missing poolings new relationships

Picked up some minor tweaks for RT#707158

Poolings new wasn't creating asset-links, which made finding child tubes a bit tricky
We only show direct parents and children on asset pages, this adds all ancestors and decendants
Noticed a few performance issues which I decided to fix up.

In UAT waiting for validation from users (RT ticket updated)

From Matt M through RT (number 708850):
"A few of us have had a play and it looks good to us. Let us know when you plan to go live with this."

From Matt M through RT (number 708850):
"A few of us have had a play and it looks good to us. Let us know when you plan to go live with this."


Synapse firewall is not taking effect immediately after firewall creation

After the synapse firewall created, making data-plane API calls will meet the following error, but it will be resolved after few minutes.
 Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="ClientIpAddressNotAuthorized" Message="Client Ip address : <IP_ADDRESS>"

Worth calling out this is an LRO: https://github.com/hashicorp/terraform-provider-azurerm/pull/19227/files#diff-bd8fd2b82e830534c54ad7e77c1f5d9d494f05dc9d2188d0792c2ecb98bfa5eeR99-R105
As such it appears that the API's incorrectly marking the LRO as Succeeded before it's completed?


fix security issues

Fix security issues with Axios, word-wrap and semver

Hello. Thank you for making this PR. We fixed these issues in our latest release.


Create Status action

This endpoint will be used in broadcasting.
Currently, only one sink (the default card) is used in broadcast with action: GetVolume.
Status message initial shape:
{"action": "Status", "value": [{},{},{},...] }
It need to have 3 groups

[x] Sinks (output devices)
[ ] Apps (applications that currently plays audio)
[ ] Input (microphones and other input devices)

Sinks implemented in #7

inputs implemented in #38


docs(plot): fix docs for message_flow function intarface changes

Description
This PR fixes documents for message_flow function intarface changes.
Related links

JIRA ticket: https://tier4.atlassian.net/browse/T4PB-24806
Refactoring PR: https://github.com/tier4/CARET_analyze/pull/282

Notes for reviewers

Pre-review checklist for the PR author

[x] I've confirmed the contribution guidelines.
[x] The PR is ready for review.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR has been reviewed.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@takeshi-iwanari
Could you please review this PR?


[ibex] DEFCON mtvec attack

https://www.youtube.com/watch?v=iz_Y1lOtX08
This attack leverages (1) undefined default value specification for mtvec; and, (2) infinite exception behavior.
Description of the attack

Attacker pre-fills IMEM with custom shellcode.
Attacker forces an early glitch before mtvec is initialized.
CPU jumps to the NULL page and enters an infinite exception loop (stable loop).
Attacker glitches the mtvec register and points it somewhere in the IMEM where the special payload is located.

Mitigations

Dual Lockstep.
Default ePMP settings and ePMP settings between boot stages (see also lowrisc/opentitan#5997).
Software/compiler countermeasures.

ISA specification improvement ideas
From the DEFCON presentation:

As soon as START_CPU signal arrives, pre-initialize mtvec to point to a halt instruction.
Change the ISA to at least warn about the potential problems with the late mtvec initialization [implementation guidance].
Introduce the concept of double or triple fault-like exception which halts the core.

Additional mitigations can be provided by pointer masking: https://github.com/riscv/riscv-j-extension/blob/master/pointer-masking-proposal.adoc

Credit to @rbohn for bringing this up.

can this be generalized to any situation where we have executable regions that is in an unknown state?
Taking opentitan for an example, the rom has to define some default mtvec behavior, while having all other memories be non-executable from the start.  When it does mark other regions as executable, presumably this means all the content has already been verified.
Does this in someway already cover the threat? not sure if i understand it correctly.  @mundaym and i have been trading comments on another thread that will mark all of flash directly non-executable out of reset, the ram will have similar behaviors.  We should probably double check anything else that can be reached by the instruction bus.

Interesting stuff. The reset value of mtvec in OpenTitan's Ibex core is the base address of the ROM (with 1 set in the LSB to indicate vectored mode). My understanding is that mtvec never points to the null page. The default exception handler is written in assembly (so as to be safe to call immediately after reset) and will attempt to reset the device using the watchdog timer.

Introduce the concept of double or triple fault-like exception which halts the core.

We have been working on a double fault detection mechanism: https://github.com/lowRISC/ibex/issues/1117
I believe the plan will be a rapid alert/reset when the double fault is detected so the window for step 4. of the attack is far smaller (no more stable loop of double faulting giving you all the time you want).
Ibex's fetch_enable_i input could be used to halt the core when the double fault is seen.

Closing this based on the discussion in the security meeting:

Flash execution is not enabled until the signature of the next stage is verified,
Reset values of mtvec are well-defined, and
Ibex has a double fault detection mechanism.

@moidx PLMK if I missed anything.


Improve polling in segment allocation queue

Description
When batchAllocationWaitTime is set to 0, the segment allocation queue is polled continuously even when it is empty. This would take up cpu cycles unnecessarily.
Some existing race conditions would also become more frequent when the batchAllocationWaitTime is 0. This PR tries to better address those race conditions as well.
Changes

Do not reschedule a poll if queue is empty
When a new batch is added to queue, schedule a poll
Simplify keyToBatch map
Handle race conditions better
As soon as a batch starts getting processed, do not add any more requests to it

Alternate approach
It would be much simpler to do a long poll of the queue, but we cannot do that here since we first peek at the batch at head of the queue and pop it only if it is due. There doesn't seem to be an equivalent long peek 🙂.

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Update: Added a few more changes to handle race conditions better and make the code simpler.

Requests with lineage check cannot be batched. Would it help to not wait before polling for such requests?
Tasks such as MSQ that use lineage check may benefit from it even if the batchAllocationWaitTime is set to a high value.

Thanks for the suggestion, @AmatyaAvadhanula . To help me understand better, would a more precise statement instead of Requests with lineage check cannot be batched. be that Requests with lineage check are only sent to the overlord one by one as each subsequent request needs the previous segment id, so there is no scope of batching them.?
I ask this because the SegmentAllocationQueue code itself does not distinguish between lineage check or no lineage check.
Either way, my plan is to eventually get rid of batchAllocationWaitTime altogether, so that no request needs to wait unless some other batch is already being processed. That would benefit all types of requests. The change in this PR is just to stabilize the code so that we can try out batchAllocationWaitTime = 0 before removing the config or updating its default values.
Please let me know what you think.

Yes, it would be a more precise statement.
My suggestion was that the code could be changed to distinguish such requests and process them without waiting for batchAllocationWaitTime to elapse.
Thank you for the explanation, @kfaraz. I understand the intent of this change better now.

LGTM @kfaraz!


VPN connection open

Hi there, it could be interesting, if one could configure a Wi-Fi to connect only by means of VPN.
The VPN-settings could be opened once this connection gets built.

Sorry, doubled entry


parse docs for UNECE sprint and upload them to s3

Adds a script to download, parse, and store a set of documents for the UNECE RAG labelling sprint.
The resulting parser output json files (and the original pdf documents) are stored in the cpr-unece-sprint s3 bucket in the labs workspace (link to bucket).
 If you need something more readable, let me know and I'll figure out a workaround.

Good idea! Will do


add script examples folder

We should add the script-examples folder from the script-examples repository since we are organising our repositories differently. Before, these files were in the studio repository.

I also made some submodules for some of the scripts to relate repositories.

I also changed the file headers to have the correct text considering the new license.


notice

Thanks for starting this! will have a version ready at  https://github.com/grayjay-sources/grayjay-source-mediathekview in a few days!

Hi Bluscream!
I'd love to contribute more into this project. Unfortunately, when I was testing this on my Android device with the Grayjay application, I was unable to enable the app's debug mode to sideload this plugin while it is in development and to view logs.
My goal is to provide easy navigation, search and access to a database containing the whole German and Austrian public television recordings in all quality levels, with and without content description and subtitles, just like the website https://mediathekviewweb.de/ and there is a public right to have access to it.
While some "stuff happened", I am happy to join you there and continue helping :)

I have consulted with the FUTO experts on the matter and it seems like working with the mediathekview database is not feasable unless we built a externally hosted api proxy around it. Downloading the whole database is just not feasable and i agree with them there. The best actual route would be to implement the actual HTTP api calls https://www.ardmediathek.de/ is doing one by one (bypassing the socket stuff for the most part). This will only get the ARD stuff tho and will certainly have to be repeated with the other mediathek providers (ÖRF, ZDF, etc) so it does create more effort to maintain but will also have the benefit of more fine-grained control for the end user and if something breaks in one source it will not automatically affect the others.
However, i have stopped with working on new sources for now until https://github.com/Bluscream/grayjay-source-example is in a usable state just so i have a "best practices" skeleton to start from which would ideally also allow to use existing js and typescript libraries in the future.

I thought the same, but mediathekviewweb, unlike mediathekview, is a web-hosted redis database, so we'd only need to implement the frontend part of querying it. We'll have to implement the Socket.io, the sid handling and the JSON-like contextual querying logic.
Although I'm @Windowsfreak, I'm using IntelliJ on MacOS. To be fair, I gave up pretty early when I learnt that I somehow could not enable the Grayjay debug mode well enough. I saw some interface, but it didn't change it. This was one year ago, things may have changed since!


Populate missing user fields in BitBucket provider

Title speaks for itself

Are those fields alway present in every request? (i.e., can the user can configure their account not to expose those fields?)

Thanks for the PR by the way :)
Just undertaking the due diligence required before merging in.

You're welcome :)
From the documentation, it seems that the fields would be empty when the value is not available (ie, last_name field is empty for field accounts): https://confluence.atlassian.com/display/BITBUCKET/user+Endpoint#userEndpoint-Overview
I just checked by clearing out my user profile and it confirms that the fields are present when not set (even when the profile is set to private).

Perfect! Thanks :)


Create Searching_Using _binarySearch.java

Hello  @abhpd please merge it my first hacktoberfest and it want last PR.please merge it


vec![...;. ..]-like macro for "late" allocation

Problem: x64 standard Linux, with VM overcommit (as is default), and no large transparent pages, supports zeroed "delayed" allocation/late assignment of physical pages on demand. But it seems to do so only for vec![0; len] macro and only for numeric types (stackoverflow #71946484).
Of course,

https://github.com/google/zerocopy/blob/main/src/lib.rs#L2954-L2956 reads only that "On systems that..., using new_box_zeroed (or related functions) may have performance benefits." It does not give any guarantee.
You don't want to dance around/jump as Linux, or any platform/target, whistles.

Yet, Linux is a major platform. And using this would be a major benefit.
Suggest a macro-by-example vec_zeroed![type; len], with semantics similar to standard vec![value; len]. It would

choose a relevant primitive (u8/u16/u32...) based on the type's alignment
calculate the size of the relevant primitive alternative vector
allocate it with vec! and transmute.

See the definition https://github.com/peter-lyons-kehl/zerocopy-vec/blob/main/src/lib.rs#L61 and its test https://github.com/peter-lyons-kehl/zerocopy-vec/blob/main/src/lib.rs#L193.
If you'd like to absorb it, I'm happy to create a pull request. If this needs any formal validation, point me to docs/examples...
An alternative is to derive Default, and then use either vec![Default::default(); len] or vec![S::default();  len]. However, that would restrict use/compatibility with 3rd party types. (See https://github.com/peter-lyons-kehl/zerocopy-vec/blob/main/src/lib.rs#L215.)
Opinions, tips...?

Hi Peter, thanks for the issue!

Problem: x64 standard Linux, with VM overcommit (as is default), and no large transparent pages, supports zeroed "delayed" allocation/late assignment of physical pages on demand. But it seems to do so only for vec![0; len] macro and only for numeric types (stackoverflow #71946484).

Are you sure that new_vec_zeroed doesn't share this behavior? As the stackoverflow answer points out, vec![0; len] achieves this feat by calling alloc_zeroed — which is exactly what new_box_zeroed does. However, just like vec we cannot guarantee any special allocator, since the application can always change out the global allocator.

Hi Jack,
My mistake. All fine.
Thank you.


Cant advance to next level

Nonprofit Projects
Issue Description

https://www.freecodecamp.com/ucshadow
Hi, today I got all three foundational certifications: Front End, Data Visualization, and Back End and I should be able to access the next step -- Nonprofit Projects, but they are still locked.
Is there a period of time that my projects must be confirmed to advance, or what can the problem be?
Any help would be appreciated.

@ucshadow congrats on finishing the certifications! I'll tag @QuincyLarson and @BerkeleyTrue to help guide you.

@ucshadow Please contact @CodeNonprofit to start the nonprofit projects<EMAIL_ADDRESS>Happy Coding.

Thanx for the help guys, I'll do as pointed out.

Hi @ucshadow,
Thank you for filing an issue. In the email @BerkeleyTrue gave you,  Michael is spelled wrong and I have not received your email. Please resend to<EMAIL_ADDRESS>and I will get back to you today.


Add logAndThrow to ClientLogger

Add the logAndThrow methods to the ClientLogger as defined in the guidelines.

I noticed that even though the Java Guidelines indicate that the logAndThrow method should be used so exceptions are not just thrown without being logged, that exact method does not exist in the ClientLogger class. Instead, there are methods such as:

logExceptionAsWarning
logThrowableAsWarning
logExceptionAsError
logThrowableAsError

I think this is because, unlike conventional Android logging, there are no overloaded methods that allow for passing a Throwable to be logged at the desired level, for example void info(String message) and void info(String message, Throwable throwable).
Now, none of the Java SDK methods mentioned above throws the Exception or Throwable itself but they rather return it to let the caller decide what to do with it. I'm not sure if that's an approach I would like to take with Android (although I don't necessarily oppose it).
About the method signature for logAndThrow, would we need to provide a log level (logAndThrow(LogLevel logLevel, Throwable throwable))? Would it be better to have one of these for WARNING and one for ERROR (logAsWarningAndThrow + logAsErrorAndThrow)?
// cc @bsiegel, @anuchandy

I noticed that even though the Java Guidelines indicate that the logAndThrow method should be used so exceptions are not just thrown without being logged, that exact method does not exist in the ClientLogger class. Instead, there are methods such as:

logExceptionAsWarning
logThrowableAsWarning
logExceptionAsError
logThrowableAsError

I think this is because, unlike conventional Android logging, there are no overloaded methods that allow for passing a Throwable to be logged at the desired level, for example void info(String message) and void info(String message, Throwable throwable).
Now, none of the Java SDK methods mentioned above throws the Exception or Throwable itself but they rather return it to let the caller decide what to do with it. I'm not sure if that's an approach I would like to take with Android (although I don't necessarily oppose it).
About the method signature for logAndThrow, would we need to provide a log level (logAndThrow(LogLevel logLevel, Throwable throwable))? Would it be better to have one of these for WARNING and one for ERROR (logAsWarningAndThrow + logAsErrorAndThrow)?
// cc @bsiegel, @anuchandy

It's possible that Java guideline is outdated, if that's the case we should correct it (for java and android) to what client-libs have been following, i.e.
From:
if (priority != null && priority < 0) {
    logger.logAndThrow(
        new IllegalArgumentException(
            "'priority' cannot be a negative value. Please specify a zero or positive long value."));
}

To:
if (priority != null && priority < 0) {
    throw logger.logExceptionAsError(
        new IllegalArgumentException(
            "'priority' cannot be a negative value. Please specify a zero or positive long value."));
}

It's possible that Java guideline is outdated, if that's the case we should correct it (for java and android) to what client-libs have been following, i.e.
From:
if (priority != null && priority < 0) {
    logger.logAndThrow(
        new IllegalArgumentException(
            "'priority' cannot be a negative value. Please specify a zero or positive long value."));
}

To:
if (priority != null && priority < 0) {
    throw logger.logExceptionAsError(
        new IllegalArgumentException(
            "'priority' cannot be a negative value. Please specify a zero or positive long value."));
}

Confirmed with Srikanta, the guideline needs to be corrected.

Confirmed with Srikanta, the guideline needs to be corrected.

Updated the guidelines in this PR - https://github.com/Azure/azure-sdk/pull/2238

Updated the guidelines in this PR - https://github.com/Azure/azure-sdk/pull/2238


Add required RBAC on integration finalizers sub-resources

What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1485
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Add Missing RBAC on integration finalizers sub-resources

/cherry-pick release-0.5

@astefanutti Can you perform make verify and then fix errors?

@astefanutti Can you perform make verify and then fix errors?

@tenzen-y I fail to find any error to fix. It seems more related to the flake tests reported in #1372?

@astefanutti Can you perform make verify and then fix errors?

@tenzen-y I fail to find any error to fix. It seems more related to the flake tests reported in #1372?

Oops, I have seen old CI logs. That's right.
/test pull-kueue-test-e2e-main-1-28
/lgtm
/approve

/cherry-pick release-0.5

Due to ordering of manifests, we could not create a cherry-pick PR:
https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kueue/1505/pull-kueue-verify-release-0-5/1737931361345343488
@astefanutti Can you manually open a cherry-pick PR?

@tenzen-y I've created #1508. I haven't seen the differences locally, but I'll adapt the PR, so it passes the verify step.

@tenzen-y I've created #1508. I haven't seen the differences locally, but I'll adapt the PR, so it passes the verify step.

Thanks

/release-note-edit
Add Missing RBAC on finalizer sub-resources for job integrations.


Add Folding

Folding is a project by Stanford University to perform complex protien folding simulations on remote computers for scientific work.  The results are sent back (and obviously verified) and points awarded.
Now this is going to be a strange case.  The version is 7.4.4 - but the URL is https://fah.stanford.edu/file-releases/public/release/fah-installer/osx-10.6.4-64bit/v7.4/fah-installer_7.4.4_x86_64.mpkg.zip.  Both 7.4 and 7.4.4 make an appearance in the URL path.  In the PR I only replaced 7.4.4 and left 7.4 alone, but that's obviously not the best solution.
Should I add a "major_version" stanza with 7.4 (or would that even be possible)?  Or should this just be left as-is, with a notice to update part of the URL when the minor/major version changes as opposed to the patch?

Folding@home ships with a .pkg uninstaller which I would like to investigate before merging.

I played around with it, and could find no difference between the effects
of running the uninstaller and running brew cask uninstall with the
current stanza. That is, there were no dangling services left running after
uninstall, and find / -iname '*folding*' could find nothing related to
the app.
On Fri, Jan 2, 2015, 9:53 AM ndr<EMAIL_ADDRESS>wrote:

Folding@home ships with a .pkg uninstaller which I would like to
investigate before merging.
—
Reply to this email directly or view it on GitHub
https://github.com/caskroom/homebrew-cask/pull/8478#issuecomment-68531553
.

The uninstaller packages an opaque binary blob, but I suspect it does nothing more than we do.
Thanks to both @iggyvolz and @jawshooah. Merged as 3190cb8, with the following changes:

correct name capitalization (Folding@Home → Folding@home);
added uninstall :quit;
added depends_on :macos.


Missing 1.15.4 release on Docker Hub

I'm sorry if this is not the proper place to file that kind of issue, but I could not find a better place to report that issue. If such a place exist, please advise me of the details, I'll happily forward my request.
So, 1.15.4 has been released yesterday, containing a fix for CuDNN usage. While working on upgrading our codebase to refer that new version, I stumbled upon the fact that the TensorFlow Docker Hub does not offer any image after 1.15.2: as you can see on that link https://hub.docker.com/r/tensorflow/tensorflow/tags?page=1&name=1.15 there is no 1.15.3 nor 1.15.4.
I obviously don't know the details of your release process, but I don't think this is expected, and the lack of 1.15.3 makes me thinking this is not just a delay in building / uploading.
So, it would really be nice if the 1.15.4 images could be built and pushed to Docker Hub :).

/cc @mihaimaruseac

It seems we were missing this from the release process. 1.15.3 docker images have just been updated (we were testing if things work) and 1.15.4 and the other tags for the recent patch releases are currently building.

@mihaimaruseac Thanks for the quick handling, it looks like it is working as expected, this looks fixed to me :)

@lissyx Thanks, please close the ticket if it is ok for you.


There is no acceleration after compiling

There is no acceleration after compiling
I compiled my own pipeline with deepcache on A10, and the generation speed changed from 5.93s/img to 5.91, which is a very marginal improvement.
Your environment
Linux mlxlabczwjwx8v65d6ea94-20240222063252-exf75a-vl5y3h-worker 5.4.143.bsk.8-amd64 #5.4.143.bsk.8 SMP Debian 5.4.143.bsk.8
OneDiff git commit id
OneFlow version info
path: ['/root/anaconda3/envs/onediff/lib/python3.10/site-packages/oneflow']
version: 0.9.1.dev20240322+cu122
git_commit: 0523481
cmake_build_type: Release
rdma: True
mlir: True
enterprise: False
How To Reproduce
self.pipe.unet = compile_pipe(self.pipe.unet)
self.pipe.controlnet = compile_pipe(self.pipe.controlnet)
self.pipe.vae = compile_pipe(self.pipe.vae)
The complete error message
N/A
Additional context
Could it be related to this reason?
W20240327 10:21:25.513151   715 cuda_stream.cpp:49] Runtime version 12.1 of cuBLAS incompatible with compiletime version 12.2.
W20240327 10:21:25.517294   715 cuda_stream.cpp:49] Runtime version 8.5 of cuDNN incompatible with compiletime version 8.9.

Hello! I'm faced with the same error and I wonder whether you have solved it or not, or have any progress to share.
W20240401 15:49:59.943140 180046 cuda_stream.cpp:49] Runtime version 11.10 of cuBLAS incompatible with compiletime version 11.11.
W20240401 15:50:00.209537 180046 cuda_stream.cpp:49] Runtime version 8.5 of cuDNN incompatible with compiletime version 8.9.

I use transformers-4.27.1 and diffusers-0.26.2 to run stabilityai/stable-diffusion-xl-base-1.0 on a  machine with a T4 card and with CUDA-12.0 installed. Here is my onediff version:
$ python -m oneflow --doctor
path: ['/path/to/.venv/lib64/python3.9/site-packages/oneflow']
version: 0.9.1.dev20240329+cu118
git_commit: 4ed3138
cmake_build_type: Release
rdma: True
mlir: True
enterprise: False

P.S. I tried to install cu120, which should have been conformed to my CUDA, but failed to run the program:
    from oneflow.mock_torch import DynamicMockModule
ImportError: cannot import name 'DynamicMockModule' from 'oneflow.mock_torch' (/path/to/.venv/lib64/python3.9/site-packages/oneflow/mock_torch/__init__.py)

So I installed cu118 instead. Don't know whether it is related to this issue.

architecture under 8.0 will not get much performance gain. onediff support acceleration for architecture >= 8.0(RTX 3090, RTX 4090, A10, A100).

@balusch

@HuiZhang0812 What GPU type are you testing on ?

Too old to track. Feel free to re-open this issue.

ImportError: cannot import name 'DynamicMockModule'
same issue here, im using CUDA 12.4
GPU RTX A6000

ImportError: cannot import name 'DynamicMockModule' same issue here, im using CUDA 12.4 GPU RTX A6000

@liho00 what command are you using to install oneflow
and please use python -m oneflow --doctor to get the version info here


Enable OpenAPI in YAML format

Adds YAML format for OpenAPI generated file. To do so, configure OpenAPIUrl with a path ending with .yml or .yaml, as follows:
func NewSwagger() *swagger.Swagger {
	return swagger.New(
		...
		swagger.OpenAPIUrl("/openapi.yml"),
	)
}

When clicking on the link to the OpenAPI file in Swagger docuentation, this will return OpenAPI file in YAML format.

CI fails for a reason I don’t understand. Any clue?

Thanks! Pleasr resolve the conflicts

Merge done


Width changes on chat editor

Current Feature:

Open In Editor
Show Chat in Editor
Chat Width Constrained to Max Sidebar Width: The chat interface is currently limited to the maximum width

Proposed width change feature in editor mode
allow width adjustment or full width in editor mode.
Current Feature:

Open In Editor
Show chat in editor
chat in editor shows full width or allow width changes

Most people prefer reading text in columns, not a long line stretching across the screen, so most websites wrap text in a column. Comments on your preference are welcome here though:
https://github.com/microsoft/vscode-copilot-release/issues/60


Undoing scrolls to top of document.

Pressing ctrl+z to undo currently scrolls the document back to the top. This makes multiple undos on large files rather difficult.
I would expect the document to either stay in the current position, or possibly scroll to the undo site, when pressing undo.

This seems to be caused by undoing/redoing stuff in the range of text occupied by a visr.


shell: introduce shell_xxx_impl wrapper functions for output macros

Refactor shell output macros to minimize caller overhead by eliminating direct color parameter passing:

Introduce wrapper functions: shell_info_impl, shell_print_impl, shell_warn_impl, shell_error_impl.
Replace shell_fprintf in macros with these new wrappers.
Update shell_hexdump_line to use the new wrappers, minimizing caller overhead.

Additional information

BUILD TARGET
FLASH SIZE (BEFORE)
FLASH SIZE (AFTER)
INCREASE/DECREASE

samples/shields/npm1300_ek with board nrf52dk_nrf52832
78,568 B
78,456 B
-112 B

tests/bluetoosh/shell with board esp32s3_devkitc/esp32s3/procpu
255,610 B irom0_0_seg
254,902 B irom0_0_seg
-708 B

tests/bluetoosh/shell with board nrf5340dk_nrf5340_cpuapp
248,308 B
247,460 B
-848 B

samples/drivers/flash_shell with board disco_l475_iot1
98,580 B
98,388 B
-192 B

Ping @carlescufi for review. If this PR can be merged, I can leverage this wrapper in many places 😃.


Enhancement : Provision to include blood group sub-type in Add new patient form

Expected behavior: It would be nice to have provision to add sub blood groups like A1+ve, A2 +ve into patients information . Adding sub list into the existing blood-group list would make list lengthy and non-user friendly.
Rather than existing list box can be changed into editable list box which will solve it.
Actual behavior:
Blood type list box having 8 main category of blood groups.
Steps to reproduce:
New patients form -> Blood type list box
Screenshots (if applicable):
attached

OS and Browser:
All

What if we keep the 8 main categories, but add an "Other" option at the bottom of the list that creates a field underneat the user can write in additional sub-groups?

@sskavitha @imalexsq, if the blood types is incomplete, the best idea would be to adjust the hospitalrun/mixins/blood-types mixin. That would be a good PR.

I'll work on it

@imalexsq @tangollama Thanks for taking this up! I am happy to contribute to a very active forum.
Blood group is categorized as 8 main types which are already listed, works fine. But the provision is not there to add sub types of blood groups.
Number and types of blood group (main and sub type) is very generic across the world, adding 'other' option will be the workout for input fields like 'Education qualification', 'job profile' which would vary based on locality.
As per reference, there are 20 different known subgroups in medical science, adding those sub groups along with main groups will be a good idea with little bit compromising of user experience. Because we have to list all 8 + 20 categories in the same list where the list would be lengthy.
Here my suggestions are
#1  we can make list box as editable list box where if a user knows his blood sub type can be entered by his own.
#2  Adding all 20 sub types in the list and make the list box as 'Searchable text box along with list ' where a user can search in the box by typing and get his value quickly from the list.
Below is my reference links for blood group and sub category of blood group:
http://www.redcrossblood.org/learn-about-blood/blood-types.html
http://www.sankalpindia.net/subtypes-blood-group

@sskavitha thanks for the detail. I'll review and circle back with a response in the next day or two.

@tangollama
Here is a list I compiled with help from @sskavitha . If this works, I'll make a commit.
'A+',
'A1+ (A1 +ve)',
'A-',
'A1- (A1 −ve)',
'A1B+ (A1B +ve)',
'A1B- (A1B −ve)',
'AB+',
'AB1+ (AB1 +ve)',
'AB1- (AB1 -ve)',
'AB-',
'A2+ (A2 +ve)',
'A2- (A2 −ve)',
'A2B+ (A2B +ve)',
'A2B- (A2B −ve)',
'AB2+ (AB2 +ve)',
'AB2- (AB1 +ve)',
'B+',
'B+ (B +ve)',
'B-',
'B- (B −ve)',
'B1+ (B1 +ve)',
'O+',
'O+ (O +ve)',
'O- (O −ve)',
'O-'

It would seem that the list provided @imalexsq contains 25 items, whereas @sskavitha was talking about needing 20+8, are there some missing or is that list correct?
Additionally, Alex's list seems to add all of the other known sub types into one big list. If I am not mistaken the current drop down list is incorrectly labeled anyway. A, B, AB and O are the blood types, where as what is listed in the current list of 8 are a selection of the most common sub types.
My proposal:
Have one list for blood type (i.e.: A, B, AB, O)
Have a second list for blood sub type who's elements are decided upon by the user input into the first (i.e. if the user selects A as the blood type then the drop down list for sub type contains the relevant sub types of type A or the user to select from)
Would this satisfy the requirements?

@JosephPB: in an email @sskavithatold me the order of this list works. Instead of complicating the UI with additional drop-downs, how about we use a single drop-down with a search/autocomplete so users don't have to look through the whole list?

Thanks for clarifying @imalexsq, just wanted to double check.
I think it would potentially be a neater solution, however, the search/autocomplete would essentially just be giving you the same extra drop down menu customised to what the user typed. Was just thinking for easy of use (and ease of code editing in the future), so as to make it clear sub type was required in the field, a second list would make it more obvious.
Might be good to see it in action though.

I'll work on the search/autocomplete with extended list of blood types over the weekend.


[C++] Threads::Threads dependency is missing for static linking

Describe the bug, including details regarding any error messages, version, and platform.
This is caused by #39824.
example-cpp-minimal-build-static:
https://github.com/ursacomputing/crossbow/actions/runs/8210651831/job/22458477613#step:3:1523
[100%] Linking CXX executable arrow-example
/usr/bin/ld: /usr/local/lib/libarrow.a(file.cc.o): in function `void std::lock<std::unique_lock<std::mutex>, std::unique_lock<std::mutex>>(std::unique_lock<std::mutex>&, std::unique_lock<std::mutex>&)':
file.cc:(.text._ZSt4lockISt11unique_lockISt5mutexES2_JEEvRT_RT0_DpRT1_[_ZSt4lockISt11unique_lockISt5mutexES2_JEEvRT_RT0_DpRT1_]+0x21): undefined reference to `pthread_mutex_trylock'
/usr/bin/ld: /usr/local/lib/libarrow.a(cancel.cc.o): in function `arrow::(anonymous namespace)::SignalStopState::RegisterHandlers(std::vector<int, std::allocator<int> > const&)':
cancel.cc:(.text+0x133e): undefined reference to `pthread_create'
...

Component(s)
C++

Issue resolved by pull request 40433
https://github.com/apache/arrow/pull/40433


Server 1.24 related fixes

What was changed

Fix schedule test assertions that expect certain num actions on backfill (backfill logic changed in 1.24)
Fix schedule test assertions that expect untyped search attributes (search attributes for scheduled workflows are mapped to proper types in 1.24)
Fix issue found during schedule test assertions where we were improperly checking against a shadowed variable when appending search attributes

Are any of these changes customer visible? Do we need to change docs?

Nothing in this PR. If not already clear in server release notes that schedule workflows now properly set types on search attributes, it may need to, but nothing here.


Package is uninstallable

The package complains about "torch" not being installed when it is most definitely installed.
(.env) chris@localhost:~$ pip install flash_attn
Collecting flash_attn
  Using cached flash_attn-2.6.3.tar.gz (2.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/home/chris/git/llm-test/qwen/.env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/chris/git/llm-test/qwen/.env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/chris/git/llm-test/qwen/.env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3joybpdk/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3joybpdk/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-3joybpdk/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 521, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-3joybpdk/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 319, in run_setup
          exec(code, locals())
        File "<string>", line 21, in <module>
      ModuleNotFoundError: No module named 'torch'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(.env) chris@localhost:~$ pip freeze|grep -i torch
torch==2.5.1
torchvision==0.20.1

Running Ubuntu 24.04.

I think you need --no-build-isolation, but the build will likely take forever, so if you can, wait for torch 2.5.1 wheels or downgrade torch to 2.4.