text:
keras augmentation layers into tf.data.API with random seed.

I want to use keras augmentation layers inside my data pipelines. And I also want to pass different seeds per batch. That's why I'm using tf.random.Generator.from_seed to get a new seed at each call. And use it to the keras augmentation layers. But I've faced the following error:

ValueError: Tensor-typed variable initializers must either be wrapped in an init_scope or callable (e.g., tf.Variable(lambda : tf.truncated_normal([10, 40]))) when building functions. Please file a feature request if this restriction inconveniences you.

Reproducible Code
TF Version: 2.6
Environment: Colab.
import tensorflow as tf; print(tf.__version__) # Version : 2.6
from tensorflow.keras import layers
AUTO = tf.data.AUTOTUNE
(x_train, y_train), (_, _) = tf.keras.datasets.cifar10.load_data()

def mnist_process(x, y):
    x, y = tf.cast(x, dtype=tf.float32) / 255., tf.cast(y[0], dtype=tf.float32)
    return x, y

train_ds = tf.data.Dataset.from_tensor_slices((x_train, y_train)).map(mnist_process)
train_ds = train_ds.shuffle(buffer_size=1024).batch(64)

# Create a generator
rng = tf.random.Generator.from_seed(123, alg='philox')
def rand_augmentation(x, y):
    # updating seeds
    set_seed = rng.make_seeds()[0]
    def apply_augment(x):
        x = layers.RandomFlip("horizontal", seed=set_seed)(x)
        x = layers.RandomRotation(factor=0.01, seed=set_seed)(x)
        x = layers.RandomTranslation(height_factor=0.0, width_factor=0.1, seed=set_seed)(x)
        x = layers.RandomContrast(factor=0.6, seed=set_seed)(x)
        x = layers.RandomRotation(factor=(-0.2, 0.2), fill_mode='reflect', seed=set_seed)(x)
        x = tf.clip_by_value(x, 0, 1)
        return x
    return apply_augment(x), y

train_ds = train_ds.map(lambda x, y: (rand_augmentation(x, y)),
                                      num_parallel_calls=AUTO)
# Doesn't work.

However, if I wrap the rand_augmentation function as follows, it works on GPU but not on TPU (known issue, not fixed yet)
def wrap_augment(image,  label):
    aug_img, label = tf.numpy_function(func=rand_augmentation,
                                inp=[image, label],
                                Tout=[tf.float32, tf.float32])
    return aug_img, label

train_ds = train_ds.map(lambda x, y: (wrap_augment(x, y)), num_parallel_calls=AUTO)
# Works.

cc: @fchollet

@innat
I may be wrong, but please hear me out. TPUs are systolic devices, which means they do not support (almost) anything except MatMul. They are designed to be deterministic in nature. This is a well known fact, and thus augmentations and pyfuncs are executed on a powerful host CPU attached to the TPU. Note that GPUs have essentially same architecture as CPUs and thus they can perform random operations without any problem. (source)
Hope this helps.

@AdityaKane2001 thanks for the info, it's helpful.
I am not a frequent TPU user but I came to know about such an issue. However, I believe there should some efficient workaround for that. Do you have anything on mind to resolve this issue?

@innat
Unfortunately, no. I have not found  a clean workaround so far. All you can try is to make the input pipeline fast enough.

@wangpengmit for tf.random.Generator() and tf.function related question.

layers.RandomFlip etc. layers create a tf.random.Generator internally, and generator creation (similar to variable creation) doesn't work very well with Dataset.map. You can move your layer creations out of Dataset.map (like how you created tf.random.Generator outside Dataset.map):
layer1 = layers.RandomFlip("horizontal", seed=[1, 0])
layer2 = layers.RandomRotation(factor=0.01, seed=[2, 0])
layer3 = layers.RandomTranslation(height_factor=0.0, width_factor=0.1, seed=[3, 0])
layer4 = layers.RandomContrast(factor=0.6, seed=[4, 0])
layer5 = layers.RandomRotation(factor=(-0.2, 0.2), fill_mode='reflect', seed=[5, 0])
def rand_augmentation(x, y):
    # updating seeds
    set_seed = rng.make_seeds()[0]
    def apply_augment(x):
        x = layer1(x)
        x = layer2(x)
        x = layer3(x)
        x = layer4(x)
        x = layer5(x)
        x = tf.clip_by_value(x, 0, 1)
        return x
    return apply_augment(x), y

train_ds = train_ds.map(lambda x, y: (rand_augmentation(x, y)),
                                      num_parallel_calls=AUTO)

Since those layers have generators internally, you can just set their seed to fixed numbers. They'll still give you different results for each batch.

@wangpengmit thanks for the detailed reply. I was already doing a similar approach. Something like as follows:
class KerasAugmentation(tf.keras.layers.Layer):
   def __init__():
	  layer1 = layers.RandomFlip("horizontal", seed=[1, 0])
      layer2 = ... seed[1, 0]
      layer3 = ... seed[1, 0]

   def call(..):
      x = layer1(inputs)
      x = layer2(x)
      x = layer3(x)

And I know internally it uses tf.random.Generator() for a given seed value. In this way, it works on both GPU and TPU. And no need to wrap anything in py_function.
Now, in this way we're fixing the seed value specifically. Each time when call method runs, it will use the same seed value (defined in init or outside) for all samples throughout the data set, which means that batch 1, 2, 3 .. will go through the same type of augmentation. If that's the case, won't be more precise to able to pass different seed value for different batch (if not sample-wise)?

I think the given seed will only make the layer to produce same deterministic sequence of random number, but will still be different between each batches.
layer = layers.RandomFlip("horizontal", seed=[1, 0])
input = ...
output1 = layer(input)
output2 = layer(input)

output1 != output2

layer2 =  layers.RandomFlip("horizontal", seed=[1, 0])
output3 = layer2(input)
output4 = layer2(input)

output3 == output1
output4 == output2
output3 != output4

So far I don't think there is a way to provide same random number for the KPL across the batches.

@wangpengmit Actually, using the same random seed is on purpose (will explain later). As @qlzh727 stated it's true that for such setup (same seed initialization), it causes output3 == output1 which is not wanted.
The issue is, I'm working on a multi-modal brain tumor data set; where each sample has 4 different modalities. And that's why I need to ensure that samples for each modality should have a unique seed value for augmentation. Because the samples of a modality are basically voxel data (3D) and so that spatial transformation should be the same for each modality. So precisely I was looking for some solutions like stated below:
epoch 1, batch 1
1st modalities: (total 120 samples and seed value 1)
2nd modalities: (total 120 samples and seed value 2)
3rd modalities: (total 120 samples and seed value 3)
4th modalities: (total 120 samples and seed value 4)
epoch 1, batch 2
1st modalities: (total 120 samples and seed value 5)
2nd modalities: (total 120 samples and seed value 6)
3rd modalities: (total 120 samples and seed value 7)
4th modalities: (total 120 samples and seed value 8)
...
epoch 2, batch 1
1st modalities: (total 120 samples and seed value 100)
2nd modalities: (total 120 samples and seed value 101)
3rd modalities: (total 120 samples and seed value 102)
4th modalities: (total 120 samples and seed value 103)
...

The solution by far I could manage was mentioned, using rng.make_seeds()[0], and it's generally similar to this one, I think. However, later the problem arises for TPU use cases.
TPU:
UnavailableError: failed to connect to all addresses
Additional GRPC error information from remote target /job:localhost/replica:0/task:0/device:CPU:0:

I see. In that case, what you might want to do is:

Within each batch, concat the modalities 1 to 4 together, and feed them to the random layers, split the output into 4 afterward. This will ensure the same augmentation is applied to all the modalities.

You don't need to set seed for the random layer, the tf.random.Generator under the hood will make sure it create new augmentation every time it is invoked (across the batches).

If you want the epoch 2 to have different augmentation comparing to epoch 1, then you should just remove the seed. The seed will actually make epoch 1 to have same value as epoch 2 (see my previous comment).

@qlzh727
Awesome, It works as expected; Thanks.
def ABC:
	inputs = - batach, h, w, depth, channel
	images = tf.reshape(inputs, [-1, h, w, depth*channel])

	def augment (all_modalities) :
		x = keras_aug.random_flip(all_modalities)
       	x = next_layer(x)
		return x

	augmented_modalities =  augment (images)
	images = tf.reshape (augmented_modalities, [-1, h, w, depth, channel])
	return images

However, what if...we have a custom augmentation layer, build with tf.image or tf.addons.image modules. How to make sure the randomness per batch in such a case? Like in your point 2, with built-in keras augmentation, randomness is ensured by tf.random.Generator under the hood but how to ensure that for custom augmentation layers?

It depends on how the lib author implement their layer. User can still use tf.random.Generator which is a public API.

@qlzh727 Awesome, It works as expected; Thanks.
def ABC:
	inputs = - batach, h, w, depth, channel
	images = tf.reshape(inputs, [-1, h, w, depth*channel])

	def augment (all_modalities) :
		x = keras_aug.random_flip(all_modalities)
       	x = next_layer(x)
		return x

	augmented_modalities =  augment (images)
	images = tf.reshape (augmented_modalities, [-1, h, w, depth, channel])
	return images

However, what if...we have a custom augmentation layer, build with tf.image or tf.addons.image modules. How to make sure the randomness per batch in such a case? Like in your point 2, with built-in keras augmentation, randomness is ensured by tf.random.Generator under the hood but how to ensure that for custom augmentation layers?

Since tf.data API doesn't allow weight creation within it (tf.random.Generator creates weight as its own internal state), I don't think we can address anything here in this bug. Also with the walk around above, you probably can achieve what you want. Closing this bug now, and let me know if you need anything else.
Thanks.

repo: keras-team/keras


text:
Gradients Sum in Keras 3 Optimizer with Tensorflow backend

Hello - Migrating from Keras 2 to Keras 3.0.1 with a TF backend, I noticed that there is no longer an option of skip_gradients_aggregation in the optimizer. Since the default behavior in Keras 2 was False which summed the gradients, not having this option did cause a regression in our model. Source Code or Source code. We use mostly legacy optimizer
If I do the following in train_step, i'm able to reach model parity in graph mode:
    def train_step(self, inputs):
        with tf.GradientTape() as tape:
            loss_dict = self.compute_loss_dict(inputs[0], inputs[1])
            loss = loss_dict['total_loss']

        trainable_weights = self.get_trainable_weights()
        gradients = tape.gradient(loss, trainable_weights)
        gradients = tf.distribute.get_replica_context().all_reduce('sum', gradients)

        self.optimizer.apply_gradients(zip(gradients, trainable_weights))

        return {'loss': loss}

Therefore, I have two questions:

While I looked at both the source code and documentation, is there a way I can avoid writing this code: gradients = tf.distribute.get_replica_context().all_reduce('sum', gradients) as the previous iterations of the optimizers in tf.keras?

Similarly, if there is no alternative, will this be added sometime in the future?

Hi @kkolli ,
If you want to retain Keras2 behaviour with Keras3 you can do it by installing tf_keras package and setting the environment variable os.environ["TF_USE_LEGACY_KERAS"]="1".

is there a way I can avoid writing this code: gradients = tf.distribute.get_replica_context().all_reduce('sum', gradients) as the previous iterations of the optimizers in tf.keras?

Probably I need more context here whether you are using single worker or multiple workers with and code snippet.
Thanks!

Ah -

os.environ["TF_USE_LEGACY_KERAS"]="1"

Part of our motivation for the migration was to try other backends easily like Jax. Therefore, our goal has been to remove tf.keras completely as an incremental step.

Probably I need more context here whether you are using single worker or multiple workers with and code snippet.

Sure - as some clarifications:

I want to sum the gradients without worrying about tf.distribute in my train step. I'm wondering if this is possible through Keras 3 itself as it was in Keras 2.

We run the model on 1 worker 1 gpu, 1 worker 8 gpu, and multi-worker 8 gpu in graph mode. Therefore, its both multi-worker and multi-gpu setup. Below is a simplified setup on how we are doing gradients sum after the migration:

tf.config.run_functions_eagerly(False)
strategy = tf.distribute.MirroredStrategy() # Will change this to MultiWorkerMirroredStrategy when multi-worker
class CustomModel(keras.Model):
    def __init__(self):
        super(CustomModel, self).__init__()
        self.flatten = layers.Flatten()
        self.dense1 = layers.Dense(128, activation='relu')
        self.dense2 = layers.Dense(10, activation='softmax')

    def call(self, inputs, training=False):
        x = self.flatten(inputs)
        x = self.dense1(x)
        return self.dense2(x)

    def train_step(self, data):
        x, y = data

        with tf.GradientTape() as tape:
            predictions = self(x, training=True)
            loss = self.compiled_loss(y, predictions)

        gradients = tape.gradient(loss, self.trainable_variables)
        gradients = tf.distribute.get_replica_context().all_reduce('sum', gradients)
        self.optimizer.apply_gradients(zip(gradients, self.trainable_variables))

        return {'loss': loss}

with strategy.scope():
    custom_model = CustomModel()

    custom_model.compile(optimizer='adam',
                         loss='sparse_categorical_crossentropy',
                         jit_compile=False)

(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()
x_train = x_train / 255.0
x_train = x_train.reshape((-1, 28, 28))

custom_model.fit(x_train, y_train, epochs=5, steps_per_epoch=100)

Hi @SuryanarayanaY As part of this, could you confirm that doing a SUM or MEAN of the gradients is expected to be done by the training loop and not part of the optimizer going forward?

One additional point, this does seem to fail when running on 2 workers with 4 GPU in my test in graph mode (Works in eager). This only seems to work on 1 worker (Mirrored) training.

I found that in tf 2.16.1 & keras 3, there is no related code about gradient all-reduce cross replica, even in model.fit api, optimizer apply_gradient api, which may mean that gradients different across replicas, it is a vary important bug (may be)... can sb. confirm this?

@kkolli @fjmscut You're right, gradient sum reduction wasn't enabled by default with a tf.distribute.MirroredStrategy. This was a regression. We have switched back the default behavior to sum-reduction.
Please confirm that the fix at HEAD is working for your use case.
@kkolli to be clear, you do not need the skip_aggregation argument, you only need the default behavior to be sum-reduction? We did not reintroduce the argument for now, but we could. It would only apply to TensorFlow if we did it.

to be clear, you do not need the skip_aggregation argument, you only need the default behavior to be sum-reduction? We did not reintroduce the argument for now, but we could. It would only apply to TensorFlow if we did it.

@fchollet, yes, the argument skip_aggregation is not needed as long as the default behavior is reverted back to sum for my use case. Thank you!

@kkolli @fjmscut You're right, gradient sum reduction wasn't enabled by default with a tf.distribute.MirroredStrategy. This was a regression. We have switched back the default behavior to sum-reduction.
Please confirm that the fix at HEAD is working for your use case.
@kkolli to be clear, you do not need the skip_aggregation argument, you only need the default behavior to be sum-reduction? We did not reintroduce the argument for now, but we could. It would only apply to TensorFlow if we did it.

Thanks, but it still behave a bit different compare with keras2. In my use case, with mixed precision training & multi worker training, gradient originally return fp32 dtype tensor from tape.gradient api, then for best performance, i cast the gradient to fp16 --> all reduce --> cast back to fp32 --> unscale loss_scale --> apply gradient (with skip_gradients_aggregation=True args). So i need find-grain control of the gradient to satisfy my use case. On the other hand, can keras team introduce a tutorials about mix use of custom training loop & mixed precision training & multi worker training, i think this use case is heavily desired, and currently the tutorials is separated for each training trick, and there are still some bug when use all these trick at the same time

@fjmscut for your use case, would it be sufficient to add back the argument skip_aggregation?

ag

Yes, i need this arg for my use case. By the way, I would very appreciate it if keras-team introduce a tutorial about mix use of custom training loop & mixed precision training & multi worker training & XLA, thanks

@fjmscut for your use case, would it be sufficient to add back the argument skip_aggregation?

Yes, i need this arg for my use case. By the way, I would very appreciate it if keras-team introduce a tutorial about mix use of custom training loop & mixed precision training & multi worker training & XLA, thanks

multi worker training

You mean multi-GPU rather than multi-worker right? We have no current support for actual Multi-Worker PSS a this time.

custom training loop & mixed precision training

Is this a custom train_step? Support mixed precision takes just one line: make sure to call loss = optimizer.scale_loss(loss) on your loss after computing it. Everything else is built-in.

XLA

In a custom train_step you don't need to do anything specific to support XLA compilation or tf.distribute, it's all built-in.

then for best performance, i cast the gradient to fp16 --> all reduce --> cast back to fp32 --> unscale loss_scale --> apply gradient (with skip_gradients_aggregation=True args). So i need finegrain control of the gradient to satisfy my use case

If what you need is to cast gradients to float16 before reduction, then what I suggest is to write an Optimizer subclass that does this. Here's the part of the code that's relevant:
def _distributed_tf_update_step(
        self, distribution, grads_and_vars, learning_rate
    ):
        grads_and_vars = self._all_reduce_sum_gradients(grads_and_vars)

        def apply_grad_to_update_var(var, grad, learning_rate):
            return self.update_step(grad, var, learning_rate)

        for grad, var in grads_and_vars:
            distribution.extended.update(
                var,
                apply_grad_to_update_var,
                args=(grad, learning_rate),
                group=False,
            )

Just cast the grads before _all_reduce_sum_gradients and cast them back after. No need for a custom training loop here.

multi worker training

You mean multi-GPU rather than multi-worker right? We have no current support for actual Multi-Worker PSS at this time.

custom training loop & mixed precision training

Is this a custom train_step? Support mixed precision takes just one line: make sure to call loss = optimizer.scale_loss(loss) on your loss after computing it. Everything else is built-in.

XLA

In a custom train_step you don't need to do anything specific to support XLA compilation or tf.distribute, it's all built-in.

then for best performance, i cast the gradient to fp16 --> all reduce --> cast back to fp32 --> unscale loss_scale --> apply gradient (with skip_gradients_aggregation=True args). So i need finegrain control of the gradient to satisfy my use case

If what you need is to cast gradients to float16 before reduction, then what I suggest is to write an Optimizer subclass that does this. Here's the part of the code that's relevant:
def _distributed_tf_update_step(
        self, distribution, grads_and_vars, learning_rate
    ):
        grads_and_vars = self._all_reduce_sum_gradients(grads_and_vars)

        def apply_grad_to_update_var(var, grad, learning_rate):
            return self.update_step(grad, var, learning_rate)

        for grad, var in grads_and_vars:
            distribution.extended.update(
                var,
                apply_grad_to_update_var,
                args=(grad, learning_rate),
                group=False,
            )

Just cast the grads before _all_reduce_sum_gradients and cast them back after. No need for a custom training loop here.

thanks, i will have a try. But i found that the unscale gradient apply very early at the apply_gradient api, which produce unscale fp32 gradient, if subclass the opt (follow your suggestion), the unscale fp32 gradient will cast to fp16, then which may lead to produce underflow gradient ... (just guess)

source: gharchive/issue

authors: SuryanarayanaY fchollet fjmscut kkolli

license_type: permissive

license_source: bigquery


text:
Processing behind proxy has a problem with references (apparently)

1.2.3.4 - - [08/Mar/2018:08:21:35 +0000] "POST /api/processFulltextDocument HTTP/1.1" 200 12433 "http://2.3.4.5:8070/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36" 31167
INFO  [2018-03-08 08:21:37,728] org.apache.http.impl.execchain.RetryExec: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://api.crossref.org:443: No route to host (Host unreachable)
INFO  [2018-03-08 08:21:37,729] org.apache.http.impl.execchain.RetryExec: Retrying request to {s}->https://api.crossref.org:443
INFO  [2018-03-08 08:21:40,727] org.apache.http.impl.execchain.RetryExec: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://api.crossref.org:443: No route to host (Host unreachable)
INFO  [2018-03-08 08:21:40,727] org.apache.http.impl.execchain.RetryExec: Retrying request to {s}->https://api.crossref.org:443
INFO  [2018-03-08 08:21:43,728] org.apache.http.impl.execchain.RetryExec: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://api.crossref.org:443: No route to host (Host unreachable)
INFO  [2018-03-08 08:21:43,728] org.apache.http.impl.execchain.RetryExec: Retrying request to {s}->https://api.crossref.org:443
INFO  [2018-03-08 08:21:46,731] org.grobid.core.utilities.Consolidation: ERROR (-1) : java.net.NoRouteToHostException thrown during request execution : works/ (,query.title=My PDF Document,rows=5,query.author=Rampal)

I have set relevant proxy info in gradle.properties, both in ~/.gradle and in project directory:
% cat gradle.properties
#Thu, 21 Apr 2016 18:39:55 +0200
version=0.6.0-SNAPSHOT
# Set workers to 1 that even for parallel builds it works. (I guess the shadow plugin makes some trouble)
org.gradle.workers.max=1

systemProp.http.proxyHost=myhost.com
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=myuser
systemProp.http.proxyPassword=mypass
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhos

systemProp.https.proxyHost=myhost.com
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=myuser
systemProp.https.proxyPassword=mypass
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhos

I submitted the PDF via web interface, TEI | Process Fulltext Document.
Environment:
 % gradle --version

------------------------------------------------------------
Gradle 4.6
------------------------------------------------------------

Build time:   2018-02-28 13:36:36 UTC
Revision:     8fa6ce7945b640e6168488e4417f9bb96e4ab46c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_162 (Oracle Corporation 25.162-b12)
OS:           Linux 2.6.32-696.el6.x86_64 amd64

Thanks for reporting!
It was not tested since a while ;)

So as this is fixed and is working well with my tests, I am closing the issue. Feel free to re-open it if you have any problems.


text:
No way to pass color options to DefaultReporter from ENV variable

When defining the reporter using MINITEST_REPORTER environment variable, there is no way to pass any options (e.g. color: true). I noticed this in default_reporter.rb:
      def color?
        return @color if defined?(@color)
        @color = @options.fetch(:color) do
          io.tty? && (
            ENV["TERM"] =~ /^screen|color/ ||
            ENV["EMACS"] == "t"
          )
        end
      end

My OS already sets TERM=xterm. Is xterm safe to add to the regex, or is there some other way to turn on color when setting the default reporter using the environment variable?

There's no way to pass this option directly, but you would probably be fine setting TERM=xterm-256color. It seems it may not be safe to assume xterm always indicates color support (link).
I wouldn't be opposed to adding another environment variable like MINITEST_REPORTERS_COLORS to enable colors if it would be useful and changing TERM isn't an option.

There's no way to pass this option directly, but you would probably be fine setting TERM=xterm-256color. It seems it may not be safe to assume xterm always indicates color support (link).
I wouldn't be opposed to adding another environment variable like MINITEST_REPORTERS_COLORS to enable colors if it would be useful and changing TERM isn't an option.

authors: barrettkingram partydrone

repo: kern/minitest-reporters

license: mit


text:
WhatSie closes itself

Hi, since a few weeks WhatSie closes itself in the computer session (Kubuntu 22.04 LTS). I have tried purging and uninstalling it several times, but the problem persists. what is happening to me?
Thanks.

Hi, I reinstalled and did not accept the update. It seems to hold... but
now I don't get the update warning and I'm afraid that the error will
happen again.
The terminal output you are asking for is this one:
@.***:~$ whatsie

/usr/share/libdrm/amdgpu.ids: No such file or directory
Gtk-Message: 17:22:39.397: Failed to load module "colorreload-gtk-module"
Gtk-Message: 17:22:39.397: Failed to load module
"window-decorations-gtk-module"
Qt: Session management error: Could not open network socket
propsReply "An AppArmor policy prevents this sender from sending this
message to this recipient; type="method_call", sender=":1.126"
(uid=1000 p
id=4383 comm="/snap/whatsie/146/usr/bin/whatsie "
label="snap.whatsie.whatsie (enforce)")
interface="org.freedesktop.DBus.Properties" member=
"GetAll" error name="(unset)" requested_reply="0"
destination="org.freedesktop.NetworkManager" (uid=0 pid=700
comm="/usr/sbin/NetworkManager
--no-daemon " label="unconfined")"
nmReply "An AppArmor policy prevents this sender from sending this message
to this recipient; type="method_call", sender=":1.126" (uid=1000 pid=
4383 comm="/snap/whatsie/146/usr/bin/whatsie "
label="snap.whatsie.whatsie (enforce)")
interface="org.freedesktop.NetworkManager" member="Get
Devices" error name="(unset)" requested_reply="0"
destination="org.freedesktop.NetworkManager" (uid=0 pid=700
comm="/usr/sbin/NetworkManager
--no-daemon " label="unconfined")"
"Object path cannot be empty"
Thank you for your interest.

El lun, 20 nov 2023 a las 13:46, Keshav Bhatt @.***>)
escribió:

Can you run it from terminal and provide the output?
—
Reply to this email directly, view it on GitHub
https://github.com/keshavbhatt/whatsie/issues/144#issuecomment-1819000579,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6MITT7DDY5R7LLLAMBYBOLYFNGJZAVCNFSM6AAAAAA7Q6MSQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGAYDANJXHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Any comment, please?

repo: keshavbhatt/whatsie

license: MIT

license_source: github-api


text:
Js mini Project : "Key-Sounds"

Is your feature request related to a problem? Please describe.
There should be JS codes for the Key-Sounds project.
Describe the solution you'd like
I want to add js mini project. @keshavsingh4522
Please assign this to me.

I am interested in doing this project.
Thank You


text:
Add breadth first search algorithm python

I want to add program breadth first search algorithm using python

@keshavsingh4522 please assign it to me

done in #563


text:
python trian.py wrong, No module named 'pytorch_tools'

I installed pytorchfold via readme.md and used python setup.py. When I try to use train.py, these characters are displayed on my terminal. I tried to fix it but failed
Traceback (most recent call last):
File "train.py", line 9, in
from torchfoldext import FoldExt
File "/home/hamki/what/nerual-net/grass_pytorch/torchfoldext.py", line 1, in
from pytorch_tools import torchfold
ModuleNotFoundError: No module named 'pytorch_tools'
The following is my operating environment:
operating system: linux
miniconda: python3.7 pytorch pytorch.vision etc.
Details:

Name
Version
Build  Channel

asn1crypto
0.24.0
py37_0

blas
1.0
mkl

ca-certificates
2019.1.23
0

certifi
2019.3.9
py37_0

cffi
1.11.5
py37he75722e_1

chardet
3.0.4
py37_1

conda
4.6.11
py37_0

conda-env
2.6.0
1

cryptography
2.4.2
py37h1ba5d50_0

cudatoolkit
10.0.130
0

cycler
0.10.0
py37_0

dbus
1.13.6
h746ee38_0

expat
2.2.6
he6710b0_0

fontconfig
2.13.0
h9420a91_0

freetype
2.9.1
h8a8886c_1

glib
2.56.2
hd408876_0

gst-plugins-base
1.14.0
hbbd80ab_1

gstreamer
1.14.0
hb453b48_1

icu
58.2
h9c2bf20_1

idna
2.8
py37_0

intel-openmp
2019.3
199

jpeg
9b
h024ee3a_2

kiwisolver
1.0.1
py37hf484d3e_0

libedit
3.1.20170329
h6b74fdf_2

libffi
3.2.1
hd88cf55_4

libgcc-ng
8.2.0
hdf63c60_1

libgfortran-ng
7.3.0
hdf63c60_0

libpng
1.6.36
hbc83047_0

libstdcxx-ng
8.2.0
hdf63c60_1

libtiff
4.0.10
h2733197_2

libuuid
1.0.3
h1bed415_2

libxcb
1.13
h1bed415_1

libxml2
2.9.9
he19cac6_0

matplotlib
3.0.3
py37h5429711_0

mkl
2019.3
199

mkl_fft
1.0.10
py37ha843d7b_0

mkl_random
1.0.2
py37hd81dba3_0

ncurses
6.1
he6710b0_1

ninja
1.9.0
py37hfd86e86_0

numpy
1.16.2
py37h7e9f1db_0

numpy-base
1.16.2
py37hde5b4d6_0

olefile
0.46
py37_0

openssl
1.1.1b
h7b6447c_1

pcre
8.43
he6710b0_0

pillow
5.4.1
py37h34e0f95_0

pip
18.1
py37_0

pycosat
0.6.3
py37h14c3975_0

pycparser
2.19
py37_0

pyopenssl
18.0.0
py37_0

pyparsing
2.3.1
py37_0

pyqt
5.9.2
py37h05f1152_2

pysocks
1.6.8
py37_0

python
3.7.1
h0371630_7

python-dateutil
2.8.0
py37_0

pytorch
1.0.1
py3.7_cuda10.0.130_cudnn7.4.2_2   pytorch

pytz
2018.9
py37_0

qt
5.9.7
h5867ecd_1

readline
7.0
h7b6447c_5

requests
2.21.0
py37_0

ruamel_yaml
0.15.46
py37h14c3975_0

setuptools
40.6.3
py37_0

sip
4.19.8
py37hf484d3e_0

six
1.12.0
py37_0

sqlite
3.26.0
h7b6447c_0

tk
8.6.8
hbc83047_0

torchfold
0.1.0
pypi_0    pypi

torchvision
0.2.2
py_3    pytorch

tornado
6.0.2
py37h7b6447c_0

urllib3
1.24.1
py37_0

wheel
0.32.3
py37_0

xz
5.2.4
h14c3975_4

yaml
0.1.7
had09818_2

zlib
1.2.11
h7b6447c_3

zstd
1.3.7
h0b5b093_0

Try the following. It works for me.
run "pip install torchfold"
Edit the following
from pytorch_tools import torchfold -> import torchfold
from pytorch_tools.torchfold import Fold -> from torchfold import Fold

Try the following. It works for me.
run "pip install torchfold"
Edit the following
from pytorch_tools import torchfold -> import torchfold
from pytorch_tools.torchfold import Fold -> from torchfold import Fold

Did you receive any other mistake in running this code? I did the same as you to avoid the error, after this I received an error "IndexError: dimension specified as 0 but tensor has no dimensions" in this code. How do you handle this issue? Thanks a lot!

Try the following. It works for me.
run "pip install torchfold"
Edit the following
from pytorch_tools import torchfold -> import torchfold
from pytorch_tools.torchfold import Fold -> from torchfold import Fold

Did you receive any other mistake in running this code? I did the same as you to avoid the error, after this I received an error "IndexError: dimension specified as 0 but tensor has no dimensions" in this code. How do you handle this issue? Thanks a lot!

I guess it is caused by the update of pytorch-tools.
Would you like to check with the earlier version of pytorch-tools before October, 2017?

I am sorry. Some changes have taken place in my life.  I no longer continue
to study artificial intelligence, and I have not solved this problem at the
time.
On Wed, Aug 21, 2019, 4:45 PM Rui Li notifications@github.com wrote:

Try the following. It works for me.
run "pip install torchfold"
Edit the following
from pytorch_tools import torchfold -> import torchfold
from pytorch_tools.torchfold import Fold -> from torchfold import Fold
Did you receive any other mistake in running this code? I did the same as
you to avoid the error, after this I received an error "IndexError:
dimension specified as 0 but tensor has no dimensions" in this code. How do
you handle this issue? Thanks a lot!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kevin-kaixu/grass_pytorch/issues/4?email_source=notifications&email_token=AKNS4QGHAYSUFVZJ2GODTTTQFT6BPA5CNFSM4HEDCCGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4Y5RRY#issuecomment-523360455,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKNS4QB4RAKDPW4T2WTUVN3QFT6BPANCNFSM4HEDCCGA
.

I changed the pytorch-tools version to 0.0.1, but still encountered same promlems. So I change the pytorch version to 0.2.0 and python to 3.5, which is close to your configuration according to the implementation time. And now it works.
Thanks a lot!

authors: hamkido hansongfang kevin-kaixu ruili3


text:
Deserializing nested types

Hello. I faced with an issue that nested types are not deserialized into objects. So I have Foo type, then I have Nested and AnotherNested types. Foo has properties of types Nested and AnotherNested. Also it has a property which is represented by Dictionary<string, string>. When I'm deserializing my object all properties of primitive types are ok, but nested objects and dictionary are null while they have actual data. Tried with IncludeInherited option but have no success. Can you please provide an info is there a bug for that and if not how to achieve this. Thanks

Have played with JilDirective.IsUnion property - now it works. Sorry and thanks :)

repo: kevin-montrose/Jil


text:
Issue with Sigil.NonGeneric.Emit.Call

Hi,
The function Sigil.NonGeneric.Emit.Call ends up calling this overload of Emit.Call:
public Emit<DelegateType> Call(MethodInfo method, Type[] arglist = null)
That overload is for already builded types and, in fact, the inner MethodBuilder object does not seems to like the call to GetParameters() (NotSupportedException -> Type has not beed created).
Is it possible to fix this calling the other overload of Emit.Call?
Thanks!

Opened a pull request

repo: kevin-montrose/Sigil

license: MS-PL


text:
State of the project?

Hi Kevin,
there are no updates since several months.
Please let us know the state of this project.
If you know a better solution that django-npm, then please let us know.
Thank you, Thomas

Works just fine on Django 4.0. It's not a terribly complicated project, so is not in need of updates in my opinion.

Thank you for the answer.

authors: dtcooper guettli


text:
README, releases out of date

The README explicitly says to use @v2, and the Releases area on the side also confirms that v2 is the latest release, but from looking at "Tags", it appears that @v2.3 is.
Attempting to follow the syntax in the README can result in unclear errors like:
/__w/_actions/kevincobain2000/action-cache-http/v2/cache-http.sh: 33: [: =: unexpected operator
 1: 0x9da7c0 node::Abort() [/__e/node12/bin/node]
 2: 0xa4e219  [/__e/node12/bin/node]
/__w/_actions/kevincobain2000/action-cache-http/v2/cache-http.sh: 33: [: =: unexpected operator

My clue something was off was the line numbers in the error didn't match what was on Github. It would be helpful if new releases were tagged as Github release and the README was updated as well.
Thanks!

The README has been updated, and there's been a v3 release that's tagged, but the "Releases" page still shows v2 as the latest release:
https://github.com/kevincobain2000/action-cache-http/releases
It may be useful to use a tool like "release-it" which helps coordinate all the details of making a release to keep everything consistent.

missing v3 https://github.com/kevincobain2000/action-cache-http/releases/tag/v3


text:
Merge of microteams intoo master

Additions to test need to be added to the master branch

Small error present that wasn't accounted for

source: gharchive/pull-request

repo: kevinfjiang/FuncNotify


text:
Link HlSearchNear to CurSearch instead

This better matches the way search works without the plugin. For some themes they're the same, for others not (e.g. Catppuccin)
Could also potentially link the virtual text too to match.

No CurSearch in the built-in highlight group.

This is the one I'm referring to:
:h hl-CurSearch

https://github.com/vim/vim/commit/a43993897aa372159f682df37562
It's a new group in Neovim 0.8, need to wait for a while. You can link by yourself for now.


text:
Reopening a previously folded (zM) buffer in a split/vsplit doesn't work as expected

Neovim version (nvim -v | head -n1)
nvim 0.10... dev
Operating system/version
arch linux latest
How to reproduce the issue

cat mini.lua
-- Use Vim packages install the plugin, also work with some plugins manager such as packer.nvim
vim.o.packpath = '~/.local/share/nvim/site'
vim.cmd('packadd promise-async')
vim.cmd('packadd nvim-ufo')

-- Setting
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = -1
vim.o.foldenable = true

local ufo = require('ufo')
ufo.setup()
vim.keymap.set('n', 'zR', ufo.openAllFolds)
vim.keymap.set('n', 'zM', ufo.closeAllFolds)

nvim --clean +'so mini.lua'

Open a file (sample1.md but any file with "foldable" text will do)
Execute zM to fold everything
split that file/buffer in a new window:2
Go to the new split window:2, and open another file/buffer (sample2.md)
Go back to the first split window:1 (sample1.md) and start to unfold whatever you'd like and make sure to add additional lines of text on those unfolded lines
Go back to the previous split window:2 (sample2.md) and now reopen the previous file (sample1.md) in this split window.
When you do that, notice how the "state" of the folds gets messy
...

Wasn't able to find the  ~/.cache/nvim/ufo.log file
Expected behavior
Maybe reopening a previously folded buffer should have the very same fold state in the split/vsplit
Actual behavior
The fold state gets messy after trying to reopen a previously folded buffer

upstream issue.


text:
disable debug messages

Hello,
I use standard config:
```

pwa: {
workbox: {
enabled: true
}
}
How can i enable production mode to disable console messages?
Also is there is available some hooks for workobox like: updated,register ? Or i have to build file for my own in that case ? any example ?

Hi @felek000
Are you talking about warnings when running workbow.enabled in development mode ? Or do you want an option to disable any console messages the module outputs ?
About Workbox hooks, for now you're required to use a custom worker template based on something similar to https://github.com/kevinmarrec/nuxt-pwa-module/blob/main/templates/workbox/sw.js

Also is there is available some hooks for workobox like: updated,register ? Or i have to build file for my own in that case ? any example ?

Also see https://github.com/kevinmarrec/nuxt-pwa-module/issues/58#issuecomment-1357561457

I end on write custom sw.
Ony think i woul like to know is how to notify user that new content is available or its updated.
For now this is for cache resource.
importScripts('<%= options.workboxUrl %>')
self.__WB_DISABLE_DEV_LOGS = true
self.addEventListener('install', () =>  self.skipWaiting())
self.addEventListener('activate', () => {})

const { registerRoute } = workbox.routing
const { NetworkFirst, StaleWhileRevalidate, CacheFirst } = workbox.strategies
const { CacheableResponsePlugin } = workbox.cacheableResponse
const { ExpirationPlugin } = workbox.expiration

// Cache page navigations (html) with a Network First strategy
registerRoute(
  ({ request }) => {
    return request.mode === 'navigate'
  },
  new NetworkFirst({
    cacheName: 'pages',
    plugins: [
      new CacheableResponsePlugin({ statuses: [200] }),
    ],
  }),
)

// Cache Web Manifest, CSS, JS, and Web Worker requests with a Stale While Revalidate strategy
registerRoute(
  ({ request }) =>
    request.destination === 'manifest' ||
    request.destination === 'style' ||
    request.destination === 'script' ||
    request.destination === 'worker',
  new StaleWhileRevalidate({
    cacheName: 'assets',
    plugins: [
      new CacheableResponsePlugin({ statuses: [200] }),
    ],
  }),
)

// Cache images with a Cache First strategy
registerRoute(
  ({ request }) => request.destination === 'image',
  new CacheFirst({
    cacheName: 'images',
    plugins: [
      new CacheableResponsePlugin({ statuses: [200] }),
      // 50 entries max, 30 days max
      new ExpirationPlugin({ maxEntries: 50, maxAgeSeconds: 60 * 60 * 24 * 30 }),
    ],
  }),
)

@felek000 I think the answer should be found in Workbox documentation.
I think it is through installed event, something like this :
self.addEventListener('installed', event => {
  if (event.isUpdate) {
    console.log('New content is available !')
  }
})

repo: kevinmarrec/nuxt-pwa-module


text:
🛑 FX blog (kty) is down

In 1fc196a, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 7b73b6c after 9 minutes.

repo: keviocastro/upptime


text:
🛑 FX blog (kty) is down

In aab16a3, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in ab683e9 after 9 minutes.


text:
🛑 FX corretor (kty) is down

In 82033a6, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 0ad9166 after 9 minutes.


text:
🛑 FX corretor (kty) is down

In f74624d, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 48f968a after 5 minutes.


text:
🛑 FX corretor (kty) is down

In a94172f, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 30670f5 after 7 minutes.


text:
🛑 FX blog (kty) is down

In 6bb808c, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 8a0b85e after 30 minutes.


text:
🛑 FX blog (kty) is down

In 98f530b, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 57605e9 after 6 minutes.


text:
🛑 FX corretor (kty) is down

In a969a51, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in fb2a5a0 after 6 minutes.


text:
🛑 GIPI financial is down

In 03c4980, GIPI financial (https://financial.app.gipisistemas.com.br/public/check/health) was down:

HTTP code: 404
Response time: 316 ms

Resolved: GIPI financial is back up in 0dd7070.


text:
🛑 FX corretor (kty) is down

In 4f3602e, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in c8b6fd4 after 7 minutes.


text:
🛑 FX blog (kty) is down

In 35f19aa, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 34cb4c8 after 33 minutes.


text:
🛑 FX blog (kty) is down

In 0939a10, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 30524a7 after 33 minutes.


text:
🛑 FX corretor (kty) is down

In 4fb323f, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in e2a78ec after 6 minutes.


text:
🛑 FX corretor (kty) is down

In 4fc6f4b, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 87db6b5 after 6 minutes.


text:
🛑 FX corretor (kty) is down

In 8427170, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 82e8d74 after 6 minutes.


text:
🛑 FX blog (kty) is down

In f7c544b, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in d4d748e after 10 minutes.


text:
🛑 FX corretor (kty) is down

In 1fd46cb, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 3c5757a after 15 minutes.


text:
🛑 FX blog (kty) is down

In c8d076a, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 4b0449f after 10 minutes.


text:
🛑 FX corretor (kty) is down

In 53a0518, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in abf01b3 after 13 minutes.


text:
🛑 FX blog (kty) is down

In c0183f5, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 69c41e8 after 6 minutes.


text:
🛑 FX corretor (kty) is down

In 02a7290, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 3eef2eb after 7 minutes.


text:
🛑 FX corretor (kty) is down

In 4d0c730, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 5ec68d6 after 9 minutes.


text:
🛑 FX corretor (kty) is down

In ce06e3b, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in d140c7c after 11 minutes.


text:
🛑 FX blog (kty) is down

In 68ed117, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in f2c42b6 after 41 minutes.


text:
🛑 FX corretor (kty) is down

In 1aabff8, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 88c9b98 after 5 minutes.


text:
🛑 FX corretor (kty) is down

In 055d7bd, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 60984d8 after 7 minutes.


text:
🛑 FX corretor (kty) is down

In 061d5c3, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 5c4f88b after 7 minutes.


text:
🛑 FX corretor (kty) is down

In 00b439b, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 3d11ecc after 8 minutes.


text:
🛑 FX blog (kty) is down

In 559007e, FX blog (kty) (https://foxter-blogeditor.konecty.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX blog (kty) is back up in 1b34c5c after 6 minutes.


text:
🛑 FX blog (kty) is down

In 4881ca1, FX blog (kty) (https://blog.foxterciaimobiliaria.com.br) was down:

HTTP code: 503
Response time: 337 ms

Resolved: FX blog (kty) is back up in 092145f after .


text:
🛑 FX corretor (kty) is down

In fefaddf, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in 13c3297 after 12 minutes.


text:
🛑 FX corretor (kty) is down

In 2cbff3e, FX corretor (kty) (https://corretores.foxterciaimobiliaria.com.br) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FX corretor (kty) is back up in a6b93bd after 6 minutes.


text:
App crashes in Testflight

Hi,
I've been able to successfully integrate it in my iOS project and works well in the simulator. On the other hand, when I archive it and open it through Testflight the app crashes. This is due that it can't find any Python library, which makes sense. How can I resolve this issue? Should I just include the whole python library in the project and put that as a path?
Thank you.

See my Python-iOS Swift package: https://github.com/kewlbear/Python-iOS.  By the way you should use https://github.com/pvieito/PythonKit, not this repo.

I already included Python-iOS as part of my Swift package modules and still crashes, is there anything else I should do? I also do PythonSupport.initialize() before anything else.
But your repo is for iOS right? While the other one seems to be for macOS.
Thank you

See https://github.com/kewlbear/PythonPlayground/issues/2#issuecomment-835925337. And original PythonKit repo have merged my changes, so it's for any OS.

authors: kewlbear nyeu

repo: kewlbear/PythonKit


text:
Build instructions are out of date for Go 1.16 / go modules

Attempting to follow the build instructions produces the following:
go version
go version go1.16.2 darwin/amd64

go get github.com/keybase/client/go/keybase
go: downloading bazil.org/fuse v0.0.0-20200524192727-fb710f7dfd05
go: downloading github.com/go-errors/errors v1.1.1
go: downloading github.com/golang/mock v1.5.0
go: downloading github.com/miekg/dns v1.1.41
go: downloading golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb
go: downloading golang.org/x/text v0.3.5
go: downloading google.golang.org/appengine v1.6.1
go: downloading github.com/asaskevich/govalidator v0.0.0-20180319081651-7d2e70ef918f
go: downloading github.com/lib/pq v1.2.0
go: downloading github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db
go: downloading github.com/sirupsen/logrus v1.4.1
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading github.com/golang/protobuf v1.3.1
go: downloading github.com/shopspring/decimal v1.2.0
go: downloading github.com/golang/protobuf v1.3.3
github.com/keybase/client/go/keybase imports
	github.com/keybase/client/go/service imports
	github.com/stellar/go/build: cannot find module providing package github.com/stellar/go/build
github.com/keybase/client/go/keybase imports
	github.com/keybase/client/go/service imports
	github.com/stellar/go/clients/horizon: cannot find module providing package github.com/stellar/go/clients/horizon

go install -tags production github.com/keybase/client/go/keybase
go install: version is required when current directory is not in a module
	Try 'go install github.com/keybase/client/go/keybase@latest' to install the latest version

Attempting to resolve the build dependencies myself...
mkdir -p ~/go/src/github.com/keybase
cd ~/go/src/github.com/keybase
git clone https://github.com/keybase/client.git
cd client/go
make gen-deps
./gen_deps.pl
go: cannot find main module, but found vendor/vendor.json in /Users/gdb/go/src/github.com/keybase/client/go
	to create a module there, run:
	go mod init
go: cannot find main module, but found vendor/vendor.json in /Users/gdb/go/src/github.com/keybase/client/go
	to create a module there, run:
	go mod init
total packages for which to calculate dependencies: 0

This is due to changes in Go 1.16. A quick workaround is to set the environment variable GO111MODULE to auto. You can set it permanently with go env -w GO111MODULE=auto.
See https://blog.golang.org/go116-module-changes

Thanks. Any word on upgrading to go modules?
I've tried doing a local upgrade myself but found that the version of stellar currently referenced in vendors.json stellar/e43266cae98f292a11218decae91a277a8489da2 appears to be in a deleted branch.
git branch -a --contains e43266cae98f292a11218decae91a277a8489da2
error: no such commit e43266cae98f292a11218decae91a277a8489da2

Furthermore, the old version of Steller references other, deleted repos.
go get github.com/stellar/go@e43266cae98f292a11218decae91a277a8489da2
go: github.com/stellar/go@v0.0.0-20191010205648-0fc3bfe3dfa7 requires
	bitbucket.org/ww/goautoneg@v0.0.0-20120707110453-75cd24fc2f2c: reading https://api.bitbucket.org/2.0/repositories/ww/goautoneg?fields=scm: 404 Not Found

This is the root cause of the above build errors.
Any chance the stellar dependencies could be updated?

+1 to this bug... it also affects me. I'm running go 1.17.2, and have tried the following:
go get github.com/keybase/client/go/keybase@v5.8.1
go get github.com/keybase/client/go/keybase@v5.8.0
go get github.com/keybase/client/go/keybase@v5.7.1

which all fail with
github.com/keybase/client/go/keybase imports
	github.com/keybase/client/go/service imports
	github.com/stellar/go/build: cannot find module providing package github.com/stellar/go/build
github.com/keybase/client/go/keybase imports
	github.com/keybase/client/go/service imports
	github.com/stellar/go/clients/horizon: cannot find module providing package github.com/stellar/go/clients/horizon

doing go get github.com/keybase/client/go/keybase (which -I assume- builds the latest in master) fails with that bitbucket 404 that @gdbelvin mentioned:
go: github.com/stellar/go@v0.0.0-20191010205648-0fc3bfe3dfa7 requires
	bitbucket.org/ww/goautoneg@v0.0.0-20120707110453-75cd24fc2f2c: reading https://api.bitbucket.org/2.0/repositories/ww/goautoneg?fields=scm: 404 Not Found

Just how the heck are official Keybase staff successfully building the Keybase binaries, and why do the publicly-accessible build instructions seem to be instructions that don't work?

@gdbelvin So, I got "inspired" by  the instructions in this PR that was merged two weeks ago: https://github.com/keybase/client/pull/24023, and discovered that the build instructions for the latest commit in the master branch build Keybase just fine.
So, if you follow the instructions here: https://github.com/keybase/client/tree/master/go#building, if you have the same luck that I did, you will get a keybase executable.
If you don't, do know that I'm running go 1.17.2, so maybe the code won't build with 1.16?
And, if keybase builds for you and you want to build kbfsfuse and the git-remote-keybase helpers, this did the trick for me:
go install -tags production github.com/keybase/client/go/kbfs/kbfsfuse
go install -tags production github.com/keybase/client/go/kbfs/kbfsgit/git-remote-keybase

I do wonder how the v5.8.1 release was built if the thing it depends on vanished in August, and the tag was made and the release was published in September...

This should be resolved with https://github.com/keybase/client/pull/24023

authors: gdbelvin joshblum kennethlakin kf5grd

repo: keybase/client


text:
use classNames and fix blue highlight on filtered conversations

[x] arrow keys on jump to conversation now has the correct background color
[x] added classNames helper to Styles and applied it everywhere

@keybase/react-hackers this is ready

cc: @adamjspooner @cecileboucheron for usage of the new helper (just search classNames( )

Thanks!

authors: adamjspooner chrisnojima


text:
Fix kbnm findBinary

use path.Dir to get the parent directory of the binary to find the one we are looking for.

i don't have a great way to test the other branches so i think we should leave it as is without the EvalSymlinks call. that work?

Yup sounds good! was just thinking out loud.

authors: joshblum songgao


text:
conflict_resolver: don't panic on an empty CR DB

Perhaps the user is running two kbfsfuse instances, and couldn't open the DB on one of them so it's nil.
Issue: KBFS-4160

{quote}
Hm, any guesses on why I didn't hit this bug when testing multiple KBFS at once after enabling the CRDB in this case?
{quote}
@jakob223 it only happens when you explicitly ask for .kbfs_status, which maybe you didn't do in your testing?


text:
Fix outstanding eslint errors

@keybase/react-hackers

I fixed these in this PR already: https://github.com/keybase/client/pull/2782

Ah! Didn't see that :)

authors: MarcoPolo chromakode


text:
NO MERGE: rpc helper no generated

reference for https://github.com/keybase/client/pull/3446

👍

authors: MarcoPolo chrisnojima


text:
add helper to handle log sends

@keybase/react-hackers i made this to help me debug some log sends. basically save your log send as log.txt in desktop then it'll output log.json. also has a function you can hand edit to filter down the store so your output isn't too noisy

since this is a very internal dev tool i'm not adding a bunch of bells and whistles, hence the fixed log.txt / log.json thing

added actions filter as gregor actions have a massive payload

@keybase/react-hackers bump

This didn't work for me for these two logs:
cbabd3057f89bf27cfd5121c
c60bc6616e1da0bfc3ec321c

@MarcoPolo I think this is an artifact of the logs being truncated so the diff isn't starting from an empty object. I think this is unavoidable. I'm catching/logging these errors and continuing which seems to output stuff that's still useful. This allows both those logs to be output

👍


text:
Error when Creating project w/ user model set to AdminUser

If I attempt to create a new project with
? What would you like to call the User model? AdminUser
Will produce the following error:
keystone.js:54
admin-users: 'admin-users',
^
SyntaxError: Unexpected token -
at Object.exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3

This issue occurs as in the keystone.js file, a hyphenated object name is created without using quotation. #233 resolves this.

authors: Noviny rturk

repo: keystonejs/generator-keystone


text:
Upgrade to mongoose 5.6.4

https://github.com/Automattic/mongoose/blob/master/History.md

There's a 5.6.5 released since this PR was opened - want to bump to that?

Updated :-)

authors: jesstelford timleslie


text:
Check validity of SMT prelude at initialization

After initializing the SMT solver, we should run check-sat once. The solver should return sat or unknown; if it returns unsat then the definitions sent to the solver are inconsistent.

After the call to declareSMTLemmas, we should call check-sat in the solver. It is an error if it returns Unsat.

repo: kframework/kore


text:
Begin replacing #isConcrete with axiom attributes

See #1557
Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock

About having to add a type parameter to Axiom everywhere, I suggest:

Add the phantom type parameter variable to Concrete. Fix the errors in Kore.Attribute.Axiom.Concrete by changing Concrete to Concrete variable, but fix the errors in all other modules by changing Concrete to Concrete Variable.
Change the Concrete Variable in Axiom to Concrete variable and add a type parameter to Axiom. Fix the errors in Kore.Attribute.Axiom by adding a type parameter, but fix the errors in all other modules by changing Axiom symbol  to Axiom symbol Variable.
Add mapAxiomVariables and mapConcreteVariables functions with types similar to mapFreeVariables. These won't actually do anything yet.
Keep going "up" by changing Axiom symbol Variable to Axiom symbol variable in types until you get to anything in Kore.IndexedModule or Kore.ASTVerifier. In those hierarchies, we can keep variable ~ Variable. At some point, you will need the mapAxiomVariables function defined above.

I think that will get you through to the next step.

authors: andreiburdusa ttuegel


text:
🛑 V is down

In 63f635b, V ($V) was down:

HTTP code: 523
Response time: 3098 ms

Resolved: V is back up in 180af23 after 14 minutes.

repo: khadanja/upptime


text:
fixed the misplaced forgot password

Related Issuse
forgot password was with sign up
Closes: #100
Describe the changes you've made
placed the forgot password to the correct place
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.

@khannakshat7 , Kindly merge my PR or let me know if any further changes to be made.

@shonali2600 Pl. change only one the few lines that are required for this issue. I can see whole file changed in changes tab of this PR

@khannakshat7 earlier it was just 2 lines changes, but I think it's due to solving the conflicts

@khannakshat7, it's only 2 lines changes. If you check the code after clicking on hide the whitespace changes it shows the actual changes.

@shonali2600 I think your fork is not updated. I suggest you fork it again and make changes. I'll merge it as quickly

@khannakshat7 I fetched the updated code and again made changes, now it's showing the correct changes

@shonali2600 Awesome !! pl. contribute more like this🙌

@shonali2600 Don't forget to star the repo⭐ and follow us on GitHub.


text:
Disable deleting people to measurable links if provenance != 'waltz'

(may be already done)

This has already been done, no code change needed.

Thanks!

repo: khartec/waltz


text:
converting display_names and icon_names into kebab case

#1269

Actually #1248


text:
Catch me

Description 📜
A fully responsive web app that has a fast-moving square inside a box and will up-count your score if you catch it, while it moves randomly in 2-D.
Fixes #1478

Type of change 📝
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] Add a new project

Domain of Contribution 📊
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] Project using HTML, CSS & JS

Checklist ✅
Please delete options that are not relevant. In order to tick the check box just put x inside them for example [x] like this

[x] I have performed a self-review of my own code or work.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[x] I'm GSSoC'22 contributor

Screenshots / Gif (Recommended) 📸
https://user-images.githubusercontent.com/82095877/168341558-d63100fe-bb7f-4d3d-ad87-0081470cb4f1.mp4

@Mrjoy832 please review

repo: khushi-purwar/WebDev-ProjectKart


text:
Set kiosk and theme

Ref. https://github.com/kiali/kiali/issues/6268
TODO: Add merged dark mode from Kiali

No needed

repo: kiali/openshift-servicemesh-plugin


text:
Feature sign in with apple

📲 What
Contains the PRs with the Sign In With Apple work
#1131 - Continue with Apple UI
#1152 - (1/2) Sign in with Apple mutation
#1158  - (2/2) Sign in with Apple
#1163  - Sign in with Apple event
⏰ TODO

[ ] Add Loading Indicator to the Sign up/Login screen (JIRA)

👋

          1 Warning

:warning:
Big PR

  Generated by :no_entry_sign: Danger

authors: Scollaco nativeksr

repo: kickstarter/ios-oss


text:
[MBL-1720] Use location id directly to calculate estimated shipping

📲 What
This simplifies the estimated shipping calculation by using location id instead of requiring the entire selected shipping rule. This lets us avoid fetching all shipping rules for a reward when showing backing info.
👀 See
Jira
✅ Acceptance criteria

[x] Pledging in staging to rewards/add-ons with unrestricted and restricted shipping should both be unchanged
[x] Manage pledge/view pledge page should still show estimated shipping info

SwiftFormat found issues:

File
Rules

Library/ViewModels/ManagePledgeViewModel.swift:241:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/ManagePledgeViewModel.swift:242:1
warning: (indent) Indent code in accordance with the scope level.

Library/ViewModels/ManagePledgeViewModel.swift:255:1
warning: (consecutiveBlankLines) Replace consecutive blank lines with a single blank line.

  Generated by :no_entry_sign: Danger

authors: ifosli nativeksr


text:
openwrt一直在上传，断开所有的连接只剩下一个openwrt一样也是一直上传

openwrt一直在上传，断开所有的连接只剩下一个openwrt一样也是一直上传

问题依旧

authors: DUWENINK wuweiyaowwy


text:
Improved notification messages

Just made a small change to the start/stop notification text so they look more in line with atom & other plugins

Thanks for your contribution @greengreens. The messages were created by @kiddkai, the original creator of the atom node debugger, and I kind of feel they convey his spirit a little bit so for now I decide to leave them as is even though your suggested messages feels more standardized.

authors: codecontemplator greengreens

repo: kiddkai/atom-node-debugger


text:
Add more Model Repositories

Can I simply add the URL to a model into the nodes.py custom node script?
I want to try other models like this one:
https://huggingface.co/gokaygokay/Florence-2-Flux-Large
Or, can you add a mechanism for using any model we download or create?
Thank you for your help and a FANTASTIC custom node :D

You can add any model by placing it (the whole folder) to ComfyUI/models/LLM. Some models add new prompt keys though and those have to be added in the code.
Added this to the downloader now too.

AWESOME, thank you :D

authors: gonzalu kijai


text:
Update sbt-dependency-tree to 1.9.4

About this PR
📦 Updates org.scala-sbt:sbt-dependency-tree from 1.8.2 to 1.9.4
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt", artifactId = "sbt-dependency-tree" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt", artifactId = "sbt-dependency-tree" }
}]

labels: sbt-plugin-update, early-semver-minor, semver-spec-minor, version-scheme:early-semver, commit-count:1

Superseded by #58.

repo: kijuky/sbt-yamory


text:
Add flag to only apply certain lints/errors' suggestions

cc #36

I probably won't have time to play with this tonight, so… I trust ya!
bors r+

authors: killercup oli-obk

repo: killercup/rustfix


text:
fix(subtitle-reader): Handle a file with an extension .subrip as with .srt

I downloaded a video from a torrent, and opened it in jellyfin, for some reason, when I wanted fetch  subtitle track, I  got the error "Unsupported subtitle format", I opened debug and saw that the file format was ".subrip" for some reason, so I added handling for this case as well

Thanks!

authors: killergerbah miroshQa

repo: killergerbah/asbplayer


text:
[Sprint 6] Backend Setup

Set up the Node.js backend server.
Implement basic routing and API endpoints.

Completed


text:
:sparkles: 신상품,캐릭터별상품 조회,상품 상세조회 API 구현 :sparkles:

신상품,캐릭터별상품 조회,상품 상세조회 API 기능 구현 완료.

베스트 상품 조회부분을 제외한 api구현 완료하였습니다.

띄어쓰기랑 탭 때문에 confilct가 나서 그 부분만 수동으로 지웠습니다!

고생하셨습니다!!!


text:
Bug: Console error parsing id token

Prerequisites

[X] I have searched the repository’s issues and Kinde community to ensure my issue isn’t a duplicate
[X] I have checked the latest version of the library to replicate my issue
[X] I have read the contributing guidelines
[X] I agree to the terms within the code of conduct

Describe the issue
Occasionally when parsing the ID token the following console error is thrown

Library URL
https://github.com/kinde-oss/kinde-auth-pkce-js
Library version
3.0.16
Operating system(s)
macOS
Operating system version(s)
Ventura
Further environment details
No response
Reproducible test case URL
No response
Additional information
No response

This seems to be resolved

repo: kinde-oss/kinde-auth-pkce-js


text:
Use Kint without Phar and without Composer

I'm sorry to ask such a basic question, but I couldn't figure out how I could use Kint without the phat package and without composer.
As in doing a git clone, or downloading a Zip file and extracting it.
I thought includeing the init.php file would be sufficient, but it appears not.
Please forgive me if I'm not finding the relevant information or don't know an obvious solution to this, but how would I include it like this?

The phar has its own autoloader, and the init assumes an autoloader exists (So either the phar one or composer)
So do a composer install in the cloned folder and include the autoloader from vendor.
Alternatively, the phar is committed in the repo so you can just require it from the build folder if you don't intend to tweak the code

Awesome, thanks for the info!

authors: DRSDavidSoft jnvsor

repo: kint-php/kint


text:
backend: Handle CA file not found error without panic

this patch makes sure that headlamp still works for
other clusters when one of the cluster certificate
authority is misconfigured.
Signed-off-by: Santhosh Nagaraj S santhosh@kinvolk.io

Could you please fill out the PR template? The how to use, and testing sections are important for me to review.

authors: illume yolossn

repo: kinvolk/headlamp


text:
Expose CFS quota kubelet option

In some cases it may be desirable to tweak the CFS quota kubelet option which affects CPU throttling of containers.
There seem to be at least two ways to specify this option:

Using the --cpu-cfs-quota-period kubelet CLI argument.
Using the kubelet config file specified via the --config kubelet CLI argument.

The former is marked as deprecated in the docs. The latter is in beta at time of writing, however we are already using the kubelet config file for something else:
https://github.com/kinvolk/lokomotive/blob/506547593fca959f9dc26b03720bbee74a56e081/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl#L111
Things to consider:

We may want to use this opportunity to allow arbitrary kubelet flags to be specified in the config.
Ideally we should be able to leverage the fact that we use self-hosted kubelets to avoid having to replace nodes when making changes (but then what about the native kubelet?).
There seems to be a way to configure kubelets dynamically. This could be relevant here.

Ideally we should be able to leverage the fact that we use self-hosted kubelets to avoid having to replace nodes when making changes (but then what about the native kubelet?).

We could make DaemonSet to write kubeconfig file to the host. However, this won't allow different configs per worker pool.

authors: invidian johananl

repo: kinvolk/lokomotive


text:
Is there an sample using Core Data?

Hello, I'm new, as my question may show, but how does one use the KTPhotoBrowser using Core Data? I see the local example and web examples (web and flickr).  Is there a sample using Core Data?  Sorry to ask here, but I did not see any other place to leave questions or simple comments.

No, there isn't a Core Data sample. I'll add it to my to-do list, but it will be some time before I can get to it.
Just so you know, KTPhotoBrowser doesn't actually know anything about the photos. Instead, your app provides a data source to KTPhotoBrowser. This allows the application to use any implementation it desires for storing, retrieving, etc photos.
A word of warning about using Core Data, depending on the size of the image files, you may want to store the actual image files (.png, .jpeg) outside of Core Data.  See http://stackoverflow.com/questions/2573072/coredata-store-images-to-db-or-not for more. The good news is with iOS 5, Core Data now has the external storage flag (see here: http://stackoverflow.com/questions/7924840/storing-uiimage-in-core-data-with-the-new-external-storage-flag). This allows Core Data to decide where the image file is stored. But it's not without it's own problems (see here: http://stackoverflow.com/questions/7930427/error-uiimage-deleteexternalreferencefrompermanentlocation-unrecognized-se).
-KIRBY
On Dec 2, 2011, at 7:27 PM, RodneyJ725 wrote:

Hello, I'm new, as my question may show, but how does one use the KTPhotoBrowser using Core Data? I see the local example and web examples (web and flickr).  Is there a sample using Core Data?  Sorry to ask here, but I did not see any other place to leave questions or simple comments.

Reply to this email directly or view it on GitHub:
https://github.com/kirbyt/KTPhotoBrowser/issues/37

i think it would integrate nicely with CoreData, now that i have the external storage working. seems there were some bugs in it. So i think this KTPhotoBrowser would work great for me and that parts of it i want to add to my project. I've researched others like Three20 and its so bloated for the small portion i actually want to use in my project. then i found KTPhotoBrowser...so happy i did, i haven't actually included in my project yet but it sounds like it will work great.

I only can agree with kirbyt - I am using CoreData and had several performance issues when storing image data in MOC. Didn't try the external storage flag though - so if somebody has used this I would be happy to hear about it.

well i don't have Allows Ext. Storage set up with KTPhotoBrowser yet but i do have Allows Ext. Storage working in my project and it works great. my tableView with thumbnails in each row are smooth as butter.
I did find there was still bugs in this new option, Im working with Lion of course, it didn't work in Snow Leopard for me.
I do have the portion of KTPhotoBrowser in my project working so far and Im using ARC, a bit of fixing but its working nicely. Im actually surprised it was so smooth to add. i just joined the git today so i haven't got my email set up yet but I can show you what i have when i do. i don't think it will be that hard to get Allows External Storage to integrate with KT.
Im loving KT so far because everything else like Three20 was much more then i needed and didn't want to add to my project.

repo: kirbyt/KTPhotoBrowser


text:
Subdirectories naming

Hi,
I'm using svg-sprite-loader with subdirectories.
I would like to extract sprites names from the path in the following way:
a/b/c/foo/bar.svg => #foo-bar
I've tried with the default name configuration:
loader: 'svg-sprite?' + JSON.stringify({
  name: '[path]-[name]'
})

But the result is #a/b/c/foo/-bar, which contains the whole path and unwanted /s.
As well as the regExp option:
loader: 'svg-sprite?' + JSON.stringify({
  name: '[1]',
  regExp: './a/b/c/(.*)\\.svg'
})

But the result is #foo/bar which still contains unwanted /s.
Is there a way to achieve what I want? What would you suggest?
Thanks.

@ZorGleH loader-utils/interpolateName is used as id generator for symbols, so you can use [folder]-[name].

Great! Exactly what I needed. Thanks.

authors: ZorGleH kisenka

repo: kisenka/svg-sprite-loader


text:
decoder: Small speedups

Hello up there. I've looked around a bit and prepared small speedups for decoder mainly by avoiding unnneccessary allocations. Overall it is:
name      old time/op    new time/op    delta
Speed-4      377ns ± 0%     379ns ± 1%     ~     (p=0.222 n=5+5)
Decode-4    80.4µs ± 3%    67.3µs ± 0%  -16.32%  (p=0.008 n=5+5)
Encode-4    16.5µs ± 1%    16.6µs ± 0%     ~     (p=0.222 n=5+5)

name      old alloc/op   new alloc/op   delta
Speed-4       280B ± 0%      280B ± 0%     ~     (all equal)
Decode-4    44.0kB ± 0%    31.0kB ± 0%  -29.50%  (p=0.008 n=5+5)
Encode-4    6.54kB ± 0%    6.54kB ± 0%     ~     (all equal)

name      old allocs/op  new allocs/op  delta
Speed-4       8.00 ± 0%      8.00 ± 0%     ~     (all equal)
Decode-4       502 ± 0%       326 ± 0%  -35.06%  (p=0.008 n=5+5)
Encode-4       297 ± 0%       297 ± 0%     ~     (all equal)

Please see details in individual commit messages.
Thanks beforehand,
Kirill

Unfortunate that this has to change the public API, but I guess it was a mistake to make it not return *Decoder in the first place

Yes, it was probably an overlook or thinko. Thanks for merging the patches.

If you look at the original 2012 commit date it was from when I was a lot less experienced with Go :)

Yes, I understand. I was too only looking at go tour then. Anyway after those 5 years it seems to be appropriate time to correct :)

authors: kisielk navytux

repo: kisielk/og-rek


text:
Add option to use tempfiles for IPC

Supersedes #306, fixes #267, fixes #142.
Adds support for Git Bash (and potentially other shells on Windows) by giving the option to use a file for IPC instead of file descriptors.
Currently this feature is opt-in as described in the README.

@kislyuk Given the lengthy discussion on this so far, I'll leave this to you to approve and merge. If you prefer, I can make this the default on Windows instead of being opt-in.

Codecov Report

Merging #307 into master will decrease coverage by 0.39%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
- Coverage   82.72%   82.32%   -0.40%
==========================================
  Files           7        7
  Lines         741      747       +6
==========================================
+ Hits          613      615       +2
- Misses        128      132       +4

Impacted Files
Coverage Δ

argcomplete/shell_integration.py
100.00% <ø> (ø)

argcomplete/__init__.py
90.35% <33.33%> (-0.96%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks @evanunderscore for sticking with the long development cycle for this.

Thanks for your review!

repo: kislyuk/argcomplete


text:
crispy-doom: new package at version 5.11.1

Please fill out the template.
Read: https://k1sslinux.org/wiki/kiss/style-guide
Please include the manifest for version bumps and new packages.

Description of package
From upstream [0]:

Crispy Doom is a limit-removing enhanced-resolution Doom source port based on Chocolate Doom. Its name means that its internal 640x400 resolution looks "crisp" and is also a slight reference to its origin.

[0] https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom
Installed manifest of package
(kiss manifest <pkg>)
/var/db/kiss/installed/crispy-doom/version
/var/db/kiss/installed/crispy-doom/sources
/var/db/kiss/installed/crispy-doom/manifest
/var/db/kiss/installed/crispy-doom/depends
/var/db/kiss/installed/crispy-doom/checksums
/var/db/kiss/installed/crispy-doom/build
/var/db/kiss/installed/crispy-doom/
/var/db/kiss/installed/
/var/db/kiss/
/var/db/
/var/
/usr/share/metainfo/io.github.fabiangreffrath.Hexen.metainfo.xml
/usr/share/metainfo/io.github.fabiangreffrath.Heretic.metainfo.xml
/usr/share/metainfo/io.github.fabiangreffrath.Doom.metainfo.xml
/usr/share/metainfo/
/usr/share/man/man6/crispy-hexen.6
/usr/share/man/man6/crispy-hexen-setup.6
/usr/share/man/man6/crispy-heretic.6
/usr/share/man/man6/crispy-heretic-setup.6
/usr/share/man/man6/crispy-doom.6
/usr/share/man/man6/crispy-doom-setup.6
/usr/share/man/man6/
/usr/share/man/man5/hexen.cfg.5
/usr/share/man/man5/heretic.cfg.5
/usr/share/man/man5/default.cfg.5
/usr/share/man/man5/crispy-hexen.cfg.5
/usr/share/man/man5/crispy-heretic.cfg.5
/usr/share/man/man5/crispy-doom.cfg.5
/usr/share/man/man5/
/usr/share/man/
/usr/share/icons/hicolor/128x128/apps/crispy-setup.png
/usr/share/icons/hicolor/128x128/apps/crispy-doom.png
/usr/share/icons/hicolor/128x128/apps/
/usr/share/icons/hicolor/128x128/
/usr/share/icons/hicolor/
/usr/share/icons/
/usr/share/doc/crispy-hexen/INSTALL.hexen
/usr/share/doc/crispy-hexen/CMDLINE.hexen
/usr/share/doc/crispy-hexen/
/usr/share/doc/crispy-heretic/INSTALL.heretic
/usr/share/doc/crispy-heretic/CMDLINE.heretic
/usr/share/doc/crispy-heretic/
/usr/share/doc/crispy-doom/README.md
/usr/share/doc/crispy-doom/README.Music.md
/usr/share/doc/crispy-doom/PHILOSOPHY.md
/usr/share/doc/crispy-doom/NOT-BUGS.md
/usr/share/doc/crispy-doom/NEWS.md
/usr/share/doc/crispy-doom/INSTALL.doom
/usr/share/doc/crispy-doom/ChangeLog
/usr/share/doc/crispy-doom/COPYING.md
/usr/share/doc/crispy-doom/CMDLINE.doom
/usr/share/doc/crispy-doom/
/usr/share/doc/
/usr/share/bash-completion/completions/crispy-hexen
/usr/share/bash-completion/completions/crispy-heretic
/usr/share/bash-completion/completions/crispy-doom
/usr/share/bash-completion/completions/
/usr/share/bash-completion/
/usr/share/applications/screensavers/io.github.fabiangreffrath.Doom_Screensaver.desktop
/usr/share/applications/screensavers/
/usr/share/applications/io.github.fabiangreffrath.Setup.desktop
/usr/share/applications/io.github.fabiangreffrath.Hexen.desktop
/usr/share/applications/io.github.fabiangreffrath.Heretic.desktop
/usr/share/applications/io.github.fabiangreffrath.Doom.desktop
/usr/share/applications/
/usr/share/
/usr/bin/crispy-server
/usr/bin/crispy-hexen-setup
/usr/bin/crispy-hexen
/usr/bin/crispy-heretic-setup
/usr/bin/crispy-heretic
/usr/bin/crispy-doom-setup
/usr/bin/crispy-doom
/usr/bin/
/usr/

New package

[X] Latest upstream version.
[X] I agree to maintain this package.
[X] I agree to notify the @kiss-community maintainers if I can no longer maintain this package.

Existing package

[ ] I am the maintainer of this package.

I have opened an issue upstream about autoconf
https://github.com/fabiangreffrath/crispy-doom/issues/874

Upstream closed autoconf make as WONTFIX.

repo: kiss-community/community


text:
JavaScript/TypeScript support

I would love to be able to use this for my JavaScript/Typescript projects. If I'm not mistaken, the VSCode version of this plugin does, so I was surprised to find that this version only supports Java.
Thanks!

Me too. It would be nice to have TypeScript support for WebStorm/IntelliJ too.

Just FYI, you might find CyclomaticComplexity (published by JetBrains themselves) of interest; the README.md currently states:

Supported languages are C#, VB, JavaScript, TypeScript and C++.

authors: ChrisCarini FrancescoBorzi adamjharris

repo: kisstkondoros/codemetrics-idea


text:
Login screen hangs when logging into Taskboard Re-write

My Taskboard instance stopped working. When I try and log in the login screen just hangs and I see the following error.
[Thu Apr 19 20:18:55.046975 2018] [php7:error] [pid 8088] [client 73.140.215.124:58440] PHP Fatal error:  Uncaught PDOException: Could not connect to d
atabase (?). in /opt/TaskBoard/dist/api/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php:314\nStack trace:\n#0 /opt/TaskBoard/dist/api/vendor/gab
ordemooij/redbean/RedBeanPHP/Driver/RPDO.php(140): RedBeanPHP\Driver\RPDO->connect()\n#1 /opt/TaskBoard/dist/api/vendor/gabordemooij/redbean/RedBeanP
HP/Driver/RPDO.php(338): RedBeanPHP\Driver\RPDO->runQuery('SELECT user....', Array)\n#2 /opt/TaskBoard/dist/api/vendor/gabordemooij/redbean/RedBea
nPHP/Adapter/DBAdapter.php(93): RedBeanPHP\Driver\RPDO->GetAll('SELECT user....', Array)\n#3 /opt/TaskBoard/dist/api/vendor/gabordemooij/redbean/R
edBeanPHP/QueryWriter/AQueryWriter.php(832): RedBeanPHP\Adapter\DBAdapter->get('SELECT user.*...', Array)\n#4 /opt/TaskBoard/dist/api/vendor/gabord
emooij/redbean/RedBeanPHP/Repository/Fluid.php(299): RedBeanPHP\QueryWriter\AQueryWriter->queryRecord('user', Array)\n#5 /opt/TaskBoard/dist/api/vend
or/gabordemooij/redbean/RedBeanPHP/OODB.php(390): RedBeanPHP\Repository\Fluid->load('user' in /opt/TaskBoard/dist/api/vendor/gabordemooij/redbean/Red
BeanPHP/Driver/RPDO.php on line 314, referer:
Any idea why I might be getting this error?
Thanks.

That is usually from the dist/api directory not being writable by the web server.
Make sure it's writable with chmod a+w /path/to/api.

Assuming this is resolved.

authors: aheinricy kiswa

repo: kiswa/TaskBoard


text:
Fixed memory leaks in KadabraBetweenness

Using unique pointers to avoid memory leaks in KadabraBetweenness.
Because this is not the first time that code with memory leaks is merged in NetworKit, I'd suggest to add a travis build with memory sanitizers. The same build could also include address sanitizers, which are very helpful to detect memory errors that are not detected by simply selecting the Debug build type. What do you think about this?

:+1:  for using sanitizers.
Using unique pointers seems valid, but the code creates the impression that a lot more refactoring could be done.

What kind of refactoring? The run method looks reasonably clean to me, considering that the algorithm is somewhat complicated.

authors: angriman avdgrinten michitux

repo: kit-parco/networkit


text:
Got "Kite Install" tab when I've always been logged in

I had VS Code open for a long time, and this came up.
Maybe it was triggered by a Kite update?  (Pure speculation)
When I clicked on 'Continue' I just got a giant Kite logo.

@adamsmith if you can remember, on the the screen with the 'giant Kite logo', was there anything else?

I don't recall there being any obvious text, but I'm not sure I looked closely.  The logo was truly giant so might have grabbed all of my attention.
I now seem instead to be getting a "you need to login" notification in VS Code when Kite updates are installed, which leads to a form that looks like this (below), so maybe the install + giant logo thing was fixed?

Thanks for the additional info. Based on my digging up to this point, my gut's leaning towards these issues (and other similar ones) being all somehow connected, perhaps through the kite-installer package

Cool, makes sense to me!

May also be related: https://github.com/kiteco/atom-plugin/issues/310#issuecomment-366755735

I'm wondering how long you had VSCode open - #56 updated the kite-installer package to a significantly changed version, and I'm wondering if there was some sort of weird legacy type interactions happening there.
Seeing as the plugin for atom still has yet to update it's kite-installer package (there's currently kiteco/atom-plugin/pull/317 in the works for that), this gets me wondering if kiteco/atom-plugin#310 and this might be due to the same underlying (and possibly legacy) thing

Interesting!
It very well could have been a legacy thing.  I just updated VS Code and the plugin and will keep an eye out.

repo: kiteco/vscode-plugin


text:
Trying to install hello-world-nginx - timeout

I'm trying to install hello-world-nginx. I get a timeout error:
Get https://index.docker.io/v1/repositories/kitematic/hello-world-nginx/images: dial tcp: lookup index.docker.io on 10.0.2.3:53: read udp 10.0.2.3:53: i/o timeout
Using Kitematic 0.7.4 on a Mac (latest OS).
/Björn

Are you behind a proxy? It seems to be a recurring issue when dealing with these types of timeout

Hi,
No proxy.
I followed the lab instructions in the doc section which worked fine (using commands). Then I switched back to kitematic and it worked fine.
I tried downloading tomcat component. It seemed to work, however I didn't get a chance to test it (lack of time).
I'll give it another go and get back to you.
/Björn
Written on a mobile. Please excuse brevity and errrs

29 jun 2015 kl. 21:03 skrev TeckniX notifications@github.com:
Are you behind a proxy? It seems to be a recurring issue when dealing with these types of timeout
—
Reply to this email directly or view it on GitHub.

Thanks for the feedback - Please report back if any other issue come up.

Merging with #718 since it seems to be the same issue. There's a solution there

authors: TeckniX bjorngranvik jeffdm

repo: kitematic/kitematic


text:
Windows - "google/nodejs-runtime" throwing npm errors

I attempted to create the "google/nodejs-runtime" container and received the following errors:

0mnpm ERR! Error: ENOENT, open '/app/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR!     http://github.com/npm/npm/issues
npm ERR! System Linux 4.0.5-boot2docker
npm ERR! command "/nodejs/bin/node" "/nodejs/bin/npm" "start"
npm ERR! cwd /app
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /app/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /app/npm-debug.log
npm ERR! not ok code 0
I'm on Win7 x64.
Also note, I was able to install hello-world-nginx properly.
I also tried to create "google/nodejs" container and I received a 500 error (as has been reported in other issues. Didn't want to open a new ticket for that.

@williamkehl Are you still having this issue with this with new version of Toolbox / Kitematic?

so what happened as i still have this problem


text:
Update tapir-core, tapir-json-pickler to 1.10.4

About this PR
📦 Updates

com.softwaremill.sttp.tapir:tapir-core
com.softwaremill.sttp.tapir:tapir-json-pickler

from 1.9.11 to 1.10.4
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, version-scheme:early-semver, commit-count:1

Superseded by #39.

repo: kitlangton/neotype


text:
Fix README

I copy pasted the example and was not seeing why it didn't compile 😆

THank YOu GHost DOg!!!!! I FAiled AT CAmel CAse CLass :)

authors: ghostdogpr kitlangton

repo: kitlangton/zio-magic


text:
Ability to choose newer version of pandas

Is your feature request related to a problem? Please describe.
I can't use the explode function for multiple columns because the current recipe for pandas uses something before version 1.3
Describe the solution you'd like
A pandas recipe that is newer than 1.3
Describe alternatives you've considered
The ability to choose pandas version (remove the numpy patch)
Thank you so much in advance!

Hi @kwebber3 !
Please open this feature request on kivy-ios or python-for-android 🙂
https://github.com/kivy/kivy-ios
https://github.com/kivy/python-for-android

repo: kivy/kivy


text:
ModuleNotFoundError: No module named 'kivymd.utils.fitimage'

File "C:\Users\my-pc2\AppData\Local\Programs\Python\Python310\lib\site-packages\kivymd_extensions\sweetalert_init_.py", line 1, in
from .sweetalert import SweetAlert
File "C:\Users\my-pc2\AppData\Local\Programs\Python\Python310\lib\site-packages\kivymd_extensions\sweetalert\sweetalert.py", line 62, in
from kivymd.utils.fitimage import FitImage
ModuleNotFoundError: No module named 'kivymd.utils.fitimage'

@Kolhax Try installing the SweetAlert library from the master branch. I did not release the library with new changes in the PyPi.

authors: HeaTTheatR Kolhax


text:
Error: image kiwenlau/serf-dnsmasq not found

#sudo docker pull index.alauda.cn/kiwenlau/serf-dnsmasq
but,
Pulling repository index.alauda.cn/kiwenlau/serf-dnsmasq
2015/06/09 05:29:32 Error: image kiwenlau/serf-dnsmasq not found

please add tag "0.1.0" when you pull the image
docker will pull "latest" image by default
sudo docker pull index.alauda.cn/kiwenlau/serf-dnsmasq:0.1.0
or you can pull the image from DockerHub
sudo docker pull kiwenlau/serf-dnsmasq:0.1.0
Thanks!

sudo docker pull index.alauda.cn/kiwenlau/serf-dnsmasq:0.1.0   无效，之前就试过了
经过测试   英文页面所留地址可用
sudo docker pull kiwenlau/serf-dnsmasq:0.1.0

我在东京两个都可以拉取啊！不清楚是什么原因了:(
我再check一下吧
谢谢！

非常感谢，实例运行正常。

如果可以的话，帮忙在多台机器上测试以下第一个链接:)

repo: kiwenlau/hadoop-cluster-docker


text:
Remove AMP not working

Describe the bug
The privacy option "AMP entfernen" (German edition) is enabled. Opening Links through Google search still shows the AMP version of the website.
Additionally the AMP version does not load (blank Screen).
To Reproduce
Steps to reproduce the behavior:

update to latest Release
enable AMP removal in privacy options

Expected behavior
Instead of AMP version, the original website should be loaded
Screenshots

Smartphone (please complete the following information):

Device: POCO F3
Android Version : 13
Kiwi Browser Version 116.0.5845.61

Additional context
This issue appears since updating to 116.0.5845.61.

Same problem for me. Poco X3, MIUI 14, Android 12.

Same problem on my Pixel 7 Pro.

You can use "disable amp" user script from Adguard as temporary solution.

Bug!
Temp fix - chrome extension Redirect AMP to HTML.


text:
Improve UX of PlacePicker

PlacePicker should have confirm button.
Right now it's very tricky to understand how it works without previous experience. Even harder is to understand how to add more places to selection and confirm the dialog. It's really weird when you have to close modal and hope that your selection will be saved.
It would be much better to have here confirm button which would set context and close modal.

Fixed in #909

repo: kiwicom/margarita


text:
Hotels: Show correct max number of guests

We showed maxPerson avaiable for room-type. Room type could be double room.
But there would be different block for 1 person living in it vs 2 persons.
This is the reason we had rooms that looked the exact same
with different prices.

We need to wait for MR on BE to be merged before we can merge this.

We need to wait for MR on BE to be merged before we can merge this.

This has now been merged on the server, and we are good to go.

repo: kiwicom/mobile


text:
🛑 MON 18 is down

In a15348b, MON 18 ($MON_URL/10_0_9_18.html) was down:

HTTP code: 404
Response time: 215 ms

Resolved: MON 18 is back up in a59299e after 10 minutes.

repo: kizzna/bovorn-mon


text:
🛑 MON 3 is down

In 7a22c8e, MON 3 ($MON_URL/10_0_9_3.html) was down:

HTTP code: 404
Response time: 210 ms

Resolved: MON 3 is back up in f827bc1 after 23 minutes.


text:
🛑 Thainess is down

In af242b4, Thainess (https://thainess.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Thainess is back up in cc44bf6.

repo: kizzna/uptime


text:
Add alert component in articles

https://docs.github.com/ja/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

Done.

repo: kkhys/me


text:
is config.dyn_norm enabled?

I wasn't able to find this parameter in the config: I self.config.dyn_norm enabled in the mel_forward function?

Hi, yes this is not used anymore. It was used to test different normalizations of the spectrograms.

authors: faroit kkoutini

repo: kkoutini/PaSST


text:
Video quality persist

Auto never seems to pick 1080p for me. It would be nice if after choosing a video quality, it persisted even after restarting the app (or at least during the app staying open, if that would be easier to implement)

Sorry, I'm new to GitHub and couldn't open with a feature suggestion tag nor delete this issue


text:
Tusk is not loading any more

Version

Console log

I had the same problem in Manjaro and Kubuntu in later days. I've tried to uninstall then reinstall but it's still not working. Attached below the version of the application.

Console log error:

42.6ff755c47c4398baab10.js:1 Uncaught (in promise) TypeError: Qb.d(...).toLowerCase(...).replaceAll is not a function
    at Object.<anonymous> (42.6ff755c47c4398baab10.js:1)
    at a (main.2ce46071aca431818ae0.js:1)
    at Object.<anonymous> (42.6ff755c47c4398baab10.js:1)
    at Object.<anonymous> (42.6ff755c47c4398baab10.js:1)
    at a (main.2ce46071aca431818ae0.js:1)
    at Module.<anonymous> (42.6ff755c47c4398baab10.js:1)
    at a (main.2ce46071aca431818ae0.js:1)

Manjaro info:

Linux brum-manjaro 5.10.13-2-MANJARO #1 SMP PREEMPT Sat Feb 6 10:28:21 UTC 2021 x86_64 GNU/Linux

I really appreciate your help, thanks.

It works with this solution:
https://github.com/klaussinani/tusk/issues/308

authors: casojcode fbrump mo-amit

repo: klaussinani/tusk