TensorFlow core operator ExtractImagePatches , not supported

Click to expand!
Issue Type
Feature Request
Source
source
Tensorflow Version
tf 2.9
Custom Code
Yes
OS Platform and Distribution
Windows 11
Mobile device
No response
Python version
3.10
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
CUDA 11.6.2 /cuDNN 8.4.0
GPU model and memory
RTX 1660Ti and 16 GB
Current Behaviour?
I made a custom  layer which uses ExtractImagePatches TensorFlow operator, but it was not supported by tflite (but listed as supported). I tried to enable the op manually but was unable to find .cc and .h file. It would be great if there is a solution to this problem, since my research depends on it. I am encountering the error when I am converting the model from tf to tflite.

Standalone code to reproduce the issue
pip install tensorflow_model_optimization

import tensorflow as tf
import tensorflow_model_optimization as tfmot
import matplotlib.pyplot as plt
import numpy as np

from keras.utils import np_utils
from tensorflow.python.keras import activations
from tensorflow.keras.callbacks import EarlyStopping

def myconv2d(ix, w, padding):
   # filter shape: [filter_height, filter_width, in_channels, out_channels]
   # flatten filters
   filter_height = int(w.shape[0])
   filter_width = int(w.shape[1])
   in_channels = int(w.shape[2])
   out_channels = int(w.shape[3])
   ix_height = int(ix.shape[1])
   ix_width = int(ix.shape[2])
   ix_channels = int(ix.shape[3])
   filter_shape = [filter_height, filter_width, in_channels, out_channels]
   flat_w = tf.reshape(w, [filter_height * filter_width * in_channels, out_channels])
   patches = tf.image.extract_patches(
       ix,
       sizes=[1, filter_height, filter_width, 1],
       strides=[1, 1, 1, 1],
       rates=[1, 1, 1, 1],
       padding=padding
   )
   patches_reshaped = tf.reshape(patches, [-1, ix_height, ix_width, filter_height * filter_width * ix_channels])
   feature_maps = []
   for i in range(out_channels):
       feature_map = tf.reduce_sum(tf.multiply(flat_w[:, i], patches_reshaped), axis=3, keepdims=True)
       feature_maps.append(feature_map)
   features = tf.concat(feature_maps, axis=3)
   return features

class MyConv2D(tf.keras.layers.Layer):
    def __init__(self, filters, kernel_size, padding='SAME', **kwargs):
        self.filters = filters
        self.kernel_size = kernel_size
        self.padding = padding
        #self.units= units
        super(MyConv2D, self).__init__(**kwargs)

    def get_config(self):
        config = super().get_config()
        config.update({
            "filters": self.filters,
            "kernel_size": self.kernel_size,
            "padding" : self.padding,
        })
        return config

    def build(self, input_shape):
        # only have a 3x3 kernel
        shape = self.kernel_size + (input_shape[-1], self.filters)
        self.kernel = self.add_weight(name='kernel', shape=shape,
                                      initializer='glorot_uniform', trainable=True)
        self.b = self.add_weight(
            name="bias", shape=(self.filters,), initializer="random_normal", trainable=True
        )
        #super((MyConv2D, self).build(input_shape))

    def call(self, inputs):
        result = myconv2d(inputs, self.kernel, self.padding) + self.b
        return result

    def compute_output_shape(self, input_shape):
        return input_shape[:-1] + (self.filters,)

def load_dataset():
	# load dataset
	(trainX, trainY), (testX, testY) = tf.keras.datasets.mnist.load_data()
	# reshape dataset to have a single channel
	trainX = trainX.reshape((trainX.shape[0], 28, 28, 1))
	testX = testX.reshape((testX.shape[0], 28, 28, 1))
	# one hot encode target values
	trainY = np_utils.to_categorical(trainY)
	testY = np_utils.to_categorical(testY)
  # convert from integers to floats
	train_norm = trainX.astype('float32')
	test_norm = testX.astype('float32')
	# normalize to range 0-1
	trainX = train_norm / 255.0
	testX = test_norm / 255.0
	# return normalized images
	return trainX, trainY, testX, testY

def create_model():
  # creating a sequantial model
  model = tf.keras.Sequential()
  # adding convolution2D layer to the model of 32 filters of size 3x3
  model.add(MyConv2D(filters=32, kernel_size=(3,3)))
  model.add(tf.keras.layers.Activation(activations.relu))
  # adding a maxpooling 2D layer of size 2x2
  model.add(tf.keras.layers.MaxPooling2D(pool_size=(2,2)))
  # adding a Dropout layer
  model.add(tf.keras.layers.Dropout(0.2))
  # adding a Flatten layer
  model.add(tf.keras.layers.Flatten())
  # adding Dense layer with 'relu' activation
  model.add(tf.keras.layers.Dense(100, activation='relu'))
  # adding Dense layer with 'softmax' activation for output
  model.add(tf.keras.layers.Dense(10, activation='softmax'))
  return model

train_images, train_labels,test_images, test_labels= load_dataset()

model = create_model()
# compile model
opt = tf.keras.optimizers.Adam()
model.compile(optimizer=opt, loss='categorical_crossentropy', metrics=['accuracy'])
es = EarlyStopping(monitor='val_loss', mode='min', verbose=1, patience=5)

# fit model
history = model.fit(train_images, train_labels, epochs=5, batch_size=32, validation_data=(test_images, test_labels),callbacks=[es])
# evaluate model
scores = model.evaluate(test_images, test_labels, verbose=0)
print("Accuracy: %.2f%%" % (scores[1]*100))
# stores scores

quantize_annotate_model = tfmot.quantization.keras.quantize_annotate_model

def representative_dataset():
  for data in tf.data.Dataset.from_tensor_slices((train_images)).batch(1).take(100):
    yield [tf.dtypes.cast(data, tf.float32)]

quant_model = quantize_annotate_model(model)
quant_model.compile(optimizer=opt, loss='categorical_crossentropy', metrics=['accuracy'])
converter = tf.lite.TFLiteConverter.from_keras_model(quant_model)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = representative_dataset
converter.allow_custom_ops = True
converter.experimental_new_converter =True
quantized_tflite_model = converter.convert()

Relevant log output
RuntimeError: Failed to initialize op resolver for calibration:
There are unresolved custom ops: [ExtractImagePatches]Encountered unresolved custom op: ExtractImagePatches.
See instructions: https://www.tensorflow.org/lite/guide/ops_customNode number 0 (ExtractImagePatches) failed to prepare.

Hi @ManishwarG !
This ticket seems to be a duplicate of this issue, could you confirm and close this one? We will track the other one.
Thank you!

@sushreebarsa Thank you!


Localize button text for update activity

"Check" and "Install" weren't available for localization:

Addresses http://manage.dimagi.com/default.asp?186391

@phillipm If we do a hotfix for https://github.com/dimagi/commcare-odk/pull/810, should we consider including this as well? It obviously doesn't break apps but does seem pretty shitty that people can't translate major components of the UI. (If we do hotfix, I'll also need to add those strings manually to the HQ commcare-translations doc).

@amstone326 :+1:


is P_k  wrong in the code release?

https://github.com/HKUNLP/ChunkLlama/blob/main/chunkllama_attn_replace.py#L133
In the paper ,Pk = [0, 1, . . . , l − 1] mod s
But in the code ,
key_states = apply_rotary_pos_emb(key_states, k_cos, k_sin, position_ids)
position_ids = position_ids % chunk_len   ## mod after key_states pos_emb .

If I understand wrong，Please point out my mistake

position ids is [0,1,2...l-1] and chunk_len is s. So the new  position ids for keys are  position_ids % chunk_len. Please feel free to discuss with us if we misunderstand your question.

position ids is [0,1,2...l-1] and chunk_len is s. So the new position ids for keys are position_ids % chunk_len. Please feel free to discuss with us if we misunderstand your question.

but In the paper , Formula 2  show the Pintra = Pk =  [0, 1, . . . , l − 1] mod s.   In the code , key_states = apply_rotary_pos_emb(key_states, k_cos, k_sin, position_ids) .  the position_ids  is not  moded yet before sending to apply_rotary_pos_emb.
In my thought, Pk will not change with diffrent chunks and keep  0 - s Periodically，Pq will change in diffrent chunks.

So I guess you must forget to read this line.

I mean that key_states = apply_rotary_pos_emb(key_states, k_cos, k_sin, position_ids % chunk_len)

Sure! This will have the effect, but you have to re-initialized k_t. In our implementation, this line have already %chunk_len in the RoPE embedding part.

Sure! This will have the effect, but you have to re-initialized k_t. In our implementation, this line have already %chunk_len in the RoPE embedding part.

I understand, thank yout replying. In my thought, I don't want to initialize dobule cos sin. I overlook the self.rotary_emb becuase of no q , k sending in it .


feat(helm): add deploymentLabels variable

Signed-off-by: Mathieu Herbert<EMAIL_ADDRESS>add deploymentLabels as we have for annotations.

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Still looking like there's failed checks

Pls rebase after this merges: https://github.com/apache/superset/pull/22590
(should fix linting errors)

Pls make sure you run helm-docs to generate the readme. Looks like that check is still failing


Add GitHub Workflow for Auto-Closing Similar Issue Requests

Feature Description
Explanation of Workflow
Trigger: The workflow runs every time a new issue is created.
Check Duplicates: Uses a GitHub Action to detect similar issues by comparing the title and content with keywords and common phrases.
Close and Comment: If a duplicate is detected, it closes the issue and comments on it, linking to the original issue.
Use Case
This duplicate detection workflow significantly streamlines project management by automatically reducing redundant issues, helping maintainers focus on unique, unresolved problems. It saves time by automating the identification and closure of similar issues, preventing contributors from repeatedly addressing the same questions or bugs. With a clear link to the original issue, users can easily follow updates, improving transparency and reducing confusion. The feature enhances productivity by keeping the issue list organized, ensuring that attention goes to high-priority or novel issues. Overall, it fosters a more efficient, user-friendly environment, promoting collaboration and faster resolution of project needs.
Benefits
Time Efficiency
Improved Organization
increased Project Productivity

Hey @aditiverma-21 this sounds great go ahead

Please add labels to this issue
I will be creating the PR ASAP.


limit assert 1.6.x

Change Description

Limit contract assert messages to 1024 charactors

Consensus Changes
None
API Changes
None
Documentation Additions
None

Already approved.


Fixed #1260: Add current line in creatorLog for debugging purpose

creatorLine take his lines from traceLines, but we have a variable "stack" that takes that traceLines and clean it (using cleanStack Fonction).
In my case (you can check it on the issue), if we add to previous line the current line (with a verification in order to be sure that it exist as I'm not sure about why this has been done like that in first place). It fixes the problem.
The fact that we do not delete anything avoid any regression (the first line will still be there), but add a new information (the second line) if it's available.

Found a counter-exemple where the fix won't work.
 Sorry :(

Thanks for the effort! (also, nice login name :P)


chore: Bump golang version to latest

Signed-off-by: yeya24<EMAIL_ADDRESS>What problem does this PR solve?
Bump golang to 1.14, which contains many improvements compared to 1.13.
Highlights: https://blog.golang.org/go1.14

Codecov Report

Merging #600 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #600   +/-   ##
=======================================
  Coverage   55.78%   55.78%
=======================================
  Files          68       68
  Lines        4383     4383
=======================================
  Hits         2445     2445
  Misses       1768     1768
  Partials      170      170

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 63eb003...209259d. Read the comment docs.

/run-e2e-test

/run-e2e-test

/run-e2e-test


Is there a way to control the ERASE speed?

Hey dude,
Love this but I'm wondering if there is a way to set a parameter to control the erasing speed?
Something similar to this.
.describe("reader", { speed: 15, accuracy: 1, invincibility: 4, erase:25 }, "#reader")
Thanks for the awesome plugin.

Hello @orcfull,
glad you like TheaterJS :)
The erase speed is based on actor's speed, with an increment of .2. It means that actors actually erase faster than they "type".
What are you trying to achieve? You'd like to configure erasing and typing speed independently?
Oh and note that speed is supposed to be an integer between 0 and 1 ;)

Hey @Zhouzi
I low how realistic it feels, I've been adding in soundbites for typing and it has a really human feel. Thanks for all your hard work.
What I'm trying to achieve is a human-like speed of typing out followed by either an instant delete of the typed content or a very fast delete. Almost an instant delete if you get me?
Yes, personally I'd love to be able to alter those independently. Any advice on maybe play around with the code myself to achieve that?
Cheers for the the doc link, apologies for not reading through it thoroughly enough, just been playing around with everything:)

My pleasure! :)
You can configure TheaterJS to "instant erase" speeches: new TheaterJS({ erase: false }).
That been said, I'll probably publish a new release at the end of the week to make the increment filter on erase scenes configurable. If you are in a hurry, have a look at https://github.com/Zhouzi/TheaterJS/blob/gh-pages/src/theater.js#L526
Update .2 to whatever value fits your needs (the greater, the faster). This filter actually increases the calculated speed (which is based on several criteria).

Hello @orcfull,
erase scenes now accepts a second argument that allows you to configure the animation speed. I've updated the documentation ;)

Great @Zhouzi, really fantastic work and thanks for being so open about it all.
Excited to see how this develops with time:)

Thank you for your kind support @orcfull :)


Where are the dev files cached?

Sorry for the blatant question (rather than an issue).
I can run a development build with tch-rs, which automaticall downloads (🙇 thank you!), however my attempts to run a built binary are thus far unsuccessful.
I'm on mac OS, and thought I installed libtorch C++ lib manually, and exported the file locations (as mentioned in the readme), but I get this linking error:
dyld: lazy symbol binding failed: Symbol not found: __ZN6caffe28TypeMeta21_typeMetaDataInstanceIfEEPKNS_6detail12TypeMetaDataEv

This is with libtorch-macos-1.8.1, which I'm guessing is the same as the development lib. So I guess my question is: how is my installation wrong, and can I see where the dev files are cached? 😂

On further investigation, it's because the debug lib version is 1.7.0 and I was installing 1.8.1, which seems to be laid out a little differently. I'll close, as I suspect this is more of a version incompatibility.


Endpoint trailing slash consistency

Currently endpoints are a mix of endpoints ending in slashes /login/ and not ending in slashes /pipelines. Similarly the orchest-api includes slash for some paths, but not for others. As does the orchest-webserver Flask endpoints.
We should consistently not include a trailing slash to avoid future ambiguity.

We should attempt a refactor of the project to see if we can easily migrate all endpoints.

We should consistently not include a trailing slash to avoid future ambiguity.

We need to write this down somewhere as it is easily forgotten when adding new endpoints.

I went over all endpoints that we expose inside the application by searching for route and going over all files that contain a match. I used route because that is what Flask uses, i.e. @app.route(...), and we use Flask for all services that expose endpoints. The files that contain endpoints with trailing slashes are:

services/orchest-webserver/app/app/views/orchest_api.py
services/orchest-api/app/app/apis/namespace_jupyter_builds.py

The refactor should not be that time consuming.

You should take into account all the locations in the code base from which we're connecting to those endpoints (i.e. in the JS client).

You should take into account all the locations in the code base from which we're connecting to those endpoints (i.e. in the JS client).

Of course!

Might be something to look at during #201.


Add TONavigationBar to the UI section

Project URL
https://github.com/TimOliver/TONavigationBar
Category
Navigation Bar in the UI section.
Description
This PR adds a link to TONavigationBar to the Navigation Bar section of the awesome list. :D
Why it should be included to awesome-ios
To my knowledge, no one else has released a navigation bar subclass that performs this functionality. This functionality has become a boilerplate standard in Apple's new 'modern' iOS app designs, and so the dream is this library can be used to help third party developers make their own apps consistent.
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[ ] Supports iOS 9 / tvOS 10 or later (Only supports iOS 10 and up for implementation reasons)
[x] Supports Swift 4 or later (Written in Objective-C, but will bridge to Swift with no issue)
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Warning

:warning:
Found 1 link issue, a project collaborator will take care of these, thanks :)

Link issue by awesome_bot

Line
Status
Link

2878
302
http://www.ios-blog.co.uk/ redirects tohttp://www.ios-blog.co.uk/cgi-sys/suspendedpage.cgi

  Generated by :no_entry_sign: Danger

Thanks for contributing  🎉


Shorthand doesn't work with self, globals, outer and locals

Tokenizer = {}
Tokenizer.constructor = function()
  self.index = 0

  return self
end function

Tokenizer.nextIndex = function(offset = 1)
  self.index += offset
  return self.index
end function

x = new Tokenizer.constructor

x.nextIndex

Specifically self.index += offset doesn't work. self.index = offset works though.

Perhaps you already know this, but it never hurts to mention:
The shorthand syntax is a new 2023 MiniScript feature. GreyHack does not support these operators since it's essentially the interpreter from back in Dec 2021.
Something like a "language version" option would be a good solution if you add support for this.

Yeah GreyScript does not support that shorthand but though the greybel-transpiler i += 1 gets transpiled to i = i + 1 so as long you use the transform or build command you should be fine using i += 1.

Fixed by https://github.com/ayecue/greybel-vs/pull/113.


On phase end, the ctx.currentPlayer is changed without calling "onTurnBegin"

If you have played games like Puerto Rico which at the start of each round, the start player is shifted 1 position right. The turn order goes [1,2,3,4,5, 2,3,4,5,1] then [3,4,5,1,2] like this.
In my implementation, each round is a phase with "ONCE" turn order. However, when a round has finished and another round starts, the "ctx.currentPlayer" changes to the new start player, but without "onTurnBegin" event.
Maybe it helps to classify phases into "GamePhase" and "TurnPhase".

Thanks for the report! This is something that's in the works already. Have a look at #367.


When schema type inferred, boolean enum values incorrectly deserialized as strings

Consider the following schema:
{
  "enum": [ true, false]
}

When deserialized to a Schema object, the type is correctly inferred to be "boolean":
assertEquals(  schema.getType(), "boolean"); // Passes

But "enum" values are not deserialized correctly:
assertEquals( schema.getEnum().get(0), "true"); // Passes!
assertEquals( schema.getEnum().get(1), Boolean.FALSE); // Fails!

This defect is demonstrated and repaired by changes in PR #1130

this issue was closed by #1130


add oak dev tech

This is to reserve the Creator ID 0x4D69_XXXX and add an initial entry, BREAD ESP32-S2 0x4D69_0026

I will be getting my website (oakdev.tech) back up soon (next week or so), but it is currently down if you go to follow the link.

Hey @tannewt I've got the changes done. I opted to make the README match the creator card.


CI: Add windows and macOS to matrix

Run rusty-demo on qemu on all three systems.
This PR basically ports the improvements from https://github.com/hermitcore/libhermit-rs/pull/40 to this repo.

Closing this, since I opened the PR to the wrong branch.


ErrorText position wrong when TextField is multiLine

Hey guys,
When a TextField multiLine is true the errorText position looks wrong.
This doesn't happen when a TextField multiLine is false.
I'm currently using material-ui  0.14.0

Thanks for this awesome library!!

This was fixed. Just upgrade to the latest release.

@oliviertassinari Thanks for your reply!


Broke app on startup

If MongoDB is unavailable when the application is started, then Hangfire throws the exception Could not place a lock on the resource 'Migrate' and the app can't run.
It would be nice if this critical for hangfire issue did not break the application.

@sowa111111,
I agree the error could be more descriptive.
I think we will still throw an exception if we cant connect to the DB. So your application needs to catch that if that is a valid startup condition for you.
We can add tests verifying the connection. We will try to add that for next release.
Thanks,
Jonas

@sowa111111 @gottscj what causes this issue? I've setup Hangfire.Mongo for the first time and can't connect. I am using the same connection string and database that other parts of the service can connect to without problem.

Hello
We are using hangfire. Mongo lib. And today we did some load testing, and
get horrible results on it. Looks like the reason is 'looks'. Maybe you
have any tips how configure Mongo connection to impruve performance.
пн, 18 февр. 2019 г., 18:18 Jonas Gottschau<EMAIL_ADDRESS>
@sowa111111 https://github.com/sowa111111,
I agree the error could be more descriptive.
I think we will still throw an exception if we cant connect to the DB. So
your application needs to catch that if that is a valid startup condition
for you.
We can add tests verifying the connection. We will try to add that for
next release.
Thanks,
Jonas
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sergeyzwezdin/Hangfire.Mongo/issues/179#issuecomment-464770671,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFMyIFx6rXk-6jRHNuq8qa_LpGniaxPJks5vOsQvgaJpZM4a9rWK
.

@sowa111111 ,
Did you mean 'locks' ?
Hangfire controls when lock are acquired and why.
How did you load test and what results were you expecting? what is your configuration?
Its possible to start multiple instances of Hangfire. That could perhaps be a solution?

Yeah, sorry. I mean locks😊
Basically, we have we api service with hangfire. The service responsobility
to schedule, update and delete jobs in hangfire. We did the load testing
with special framework, which simulate hundreats request from multiple
users. We got really low results, and big response time. With additional
logging we found that the reason looks like 'locks' in database.
We use the same configuration like in README file.
Yeah, we thought about creating multipli hangfire instances inside web api
application.
чт, 14 мар. 2019 г., 18:54 Jonas Gottschau<EMAIL_ADDRESS>
@sowa111111 https://github.com/sowa111111 ,
Did you mean 'locks' ?
Hangfire controls when lock are acquired and why.
How did you load test and what results were you expecting? what is your
configuration?
Its possible to start multiple instances of Hangfire. That could perhaps
be a solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sergeyzwezdin/Hangfire.Mongo/issues/179#issuecomment-472931766,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFMyIMPclK28rqpcXflVj0hXSdauobMZks5vWnCjgaJpZM4a9rWK
.

using our sample code in combination with Parallel.Foreach I can enqueue 1000 jobs in approx 450ms in debug  mode on my old macbook.
I did not try to interleave with deleting or updating jobs. Im not sure what your use case is, but if you need faster im nor sure this is the framework you need. If you need distributed work, you could look into NetMq which should be very fast.
`var sw = Stopwatch.StartNew();
Parallel.ForEach(Enumerable.Range(0, id), i =>
{
var index = i;
BackgroundJob.Enqueue(() => PrintToDebug($@"Hangfire fire-and-forget task started ({index}) - {Guid.NewGuid()}"));
        });
        Console.WriteLine($"Enqueue {id} jobs in {sw.ElapsedMilliseconds}ms");`

My team ran into this same issue this week after upgrading 0.5.15
It caused a lot of heartache, until we realized it wasn't able to 'get a lock' on the temporary collection migrationLock because our database admins have turned on the admin command notablescan https://docs.mongodb.com/manual/reference/parameters/#param.notablescan
The solution ended up creating indexes for ExpireAt and Resource.
It would probably be good to create indexes for these so that even those that have notablescan turned on would successfully start the application.

@KyleCraviotto,
Thanks for the input. I have rewritten the migration lock to not use the distributed lock used by hangfire as this collection might need migration also.
The migration lock will use a known "Id" a single index for locking the migrations. Hopefully this would give you a better experience when using the migrations

I added an optional connection check (defaults to true). please let me know if it doesnt work as expected


Package URl
<EMAIL_ADDRESS>CPE
'cpe:2.3:a:vmware:spring_framework:2.0.0:release::::::'
CVE
CVE-2013-4152, CVE-2013-7315, CVE-2014-0054, CVE-2016-1000027, CVE-2022-22965, CVE-2022-22968
ODC Integration
{"label"=>"Maven Plugin"}
ODC Version
7.0.0
Description
False positive - used spring Framework 5.3.19, which is part of Spring Boot 2.6.7 is unaffected by this vulnerability.

Already resolved in 7.1.0 release


Formatter only working when set in the Workspace settings?

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:
OS Version:
Version: 1.80.0 (user setup)
Commit: 660393deaaa6d1996740ff4880f1bad43768c814
Date: 2023-07-04T15:06:02.407Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22623

Steps to Reproduce:

Open Settings
Select User Scope
Open Settings.JSON
Add the following code:

	"[powershell]": {
		"editor.defaultFormatter": "ms-vscode.powershell"
	},

Save settings
Open PS1
Format PS1 file (ALT+SHIFT+F for me, don't know if I have changed it)
"No formatter is installed"-message appears

Steps to resolve

Open Settings
Select Workspsace scope
Open Settings.JSON
Add the following code:

	"[powershell]": {
		"editor.defaultFormatter": "ms-vscode.powershell"
	},

Save settings
Open PS1
Format PS1 file (ALT+SHIFT+F for me, don't know if I have changed it)
Formatting commences

I do not know why, but I have to have the language settings within the Workspace settings or the formatter for the language is not discovered.
This is despite having
  "editor.defaultFormatter": "ms-vscode.powershell",

in the Users settings. So the default formatter is selected and the Powershell Language formatter is defined in User Scope, but it will not format until I also add it to the workspace settings.

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.
Happy Coding!


Fixed the reaction handler using endpoints without permissions

Description of the PR
Fixes #147
When using RichDisplay/RichMenu in channels where the bot does not have the MANAGE_MESSAGES permission or in DMs, the ReactionHandler instance was trying to delete the reactions from the user, and clear all reactions when the ReactionHandler stops/finishes. Both actions can only be executed in a guild and with the previously mentioned permissions.
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Fixed ReactionHandler trying to remove reactions from other users or clear all reactions from a message even when the client doesn't have permissions in the guild or is in DMs

Semver Classification

[ ] This PR only includes documentation or non-code changes.
[x] This PR fixes a bug and does not change the (intended) framework interface.
[ ] This PR adds methods or properties to the framework interface.
[ ] This PR removes or renames methods or properties in the framework interface.

#147 is invalid because of #149 and vice versa. Making this pr invalid aswell. RichDisplays require manage messages.

It's not because #147 nor #149, this PR makes RichDisplay able to run in DMs or without permissions, EMBED_LINKS is still required, but MANAGE_MESSAGES is too much priviledge in many servers, and Discord doesn't give them in DMs yet

Just to clarify.
#147 does NOT cause #149 . This fix only helped reveal 149 more to me as I didnt notice it before with the console bothering me so much. In reality even without this PR, the bot still requires clicking twice to change the page.
This PR helps clean up the issue where a developers logs are not spammed. The issue with #149 Is a separate issue altogether which I believe is being caused because RichDisplay does not change the page when a reaction is removed by a user. When the bot can not remove a reaction automatically, the user now has to click twice to remove and then add again.
In my opinion, you guys should add a listener to accept the removal of a reaction which will also turn the page IF the bot doesnt have the permissions to remove the reaction automatically.


1.7 home view

List all the blog posts on the home view.
Sort them by their date, newest on the top.
Display the following fields for each post:

title
date
content's first 80 characters
read more link

The title and the read more link should be clickable, redirecting to the blog post's view.

"{% url 'post_detail' post.slug %}"


Slider and its text field get unlinked

After I try to change the target object that the slider is controlling, the text field of the slider and the slider does not change together. See below:

The property of the target object is changing when I move the slider, but not when I input a new value in the text field.
Here is how I change my target object:
        var gui = new dat.GUI();
        gui.domElement.style.marginTop = "100px";
        gui.domElement.id = "datGUI";

        gui.add(game.player, 'swapCameraView').name("Swap Camera");
        let e1 = gui.add(game.player.mvtManager, 'movementDuration', 0, 4).name("Movement duration (s)");
        let e2 = gui.add(game.player.mvtManager, 'rotationDuration', 0, 4).name("Rotation duration (s)");
        let e3 = gui.add(game.player.mvtManager.getTargetBall(), 'isVisible').name("Show target ball:");

        let options = {Movement:game.player.mvtManager.name};
        let e4 = gui.add(options, 'Movement', ['Preset 1', 'Preset 2', 'Preset 3'] ).onChange(
            (value) => {
                game.player.changeMvtManager(value)
                e1.object = game.player.mvtManager;
                e1.setValue(game.player.mvtManager.movementDuration);
                e1.updateDisplay();
                e2.object = game.player.mvtManager;
                e2.setValue(game.player.mvtManager.rotationDuration);
                e2.updateDisplay();
                e3.object = game.player.mvtManager.getTargetBall();
                e3.setValue(game.player.mvtManager.getTargetBall().isVisible);
            }
        );
        e4.name('Movement scheme: ')

Here the content of changeMvtManager(value):
public changeMvtManager(name:string){
        console.log("change Movement Scheme to: " + name);
        this.mvtManager.dispose();
        switch(name){
            case "Preset 1":
                this.root.position = new BABYLON.Vector3(0, 0.7, 0);
                this.mvtManager = new GridMovement1(this.scene, this.maze, this.root);
                break;
                case "Preset 2":
                this.root.position = new BABYLON.Vector3(0, 0.7, 0);
                this.mvtManager = new GridMovement2(this.scene, this.maze, this.root);
                break;
                case "Preset 3":
                this.root.position = new BABYLON.Vector3(0, 0.7, 0);
                this.mvtManager = new GridMovement3(this.scene, this.maze, this.root);
            break;
        }
    }

I don't think the controller's .object property is meant to be modified. Are you able to reproduce this issue without doing that?


Can't query img?

My doc contains several img nodes, but goquery can't find them:
doc.Find(".container img").Each(func(i int, s *goquery.Selection) {
    fmt.Println("hello there")
})

Is this expected behavior?

Hello,
Please provide the html data required to reproduce the issue.
Thanks,
Martin

This html fragment works fine with the code you posted. This is why I ask for a complete, minimal example to reproduce the issue (code and data). Please make sure the program does reproduce the behaviour.


feat(UI): align all icons

Add ui/icons.lua to align all icons.

I encountered error like this after PackerCompile. You should fix it.

@ayamir It's fixed. PTAL.

It seems like errors of dap have not been resolved.


Get access to Vite mode in svelte.config.js

Describe the problem
When setting the CSP config it is desired to know the current mode ("development", "staging", "production" etc).
Real world example for needing this is setting sentry_environment in the Security Police Reporting from Sentry.
Describe the proposed solution
Make it possible to get the current Vite mode in svelte.config.js. This would also help with getting access to the env-files with the loadEnv method
Alternatives considered
It's possible to get access to the mode like this:
const mode = process.env.VITE_ENVIRONMENT ?? process.env.NODE_ENV;

But it feels kinda hacky
Importance
would make my life easier
Additional Information
It's possible to get access to the Vite mode in the vite.config.js file. Would it be possible to pass it down via the sveltekit Vite plugin and then make it accessible through the load_config method?

You can create your own VITE_ENVIRONMENT variable and then run vite build --mode ${VITE_ENVIRONMENT}, which is probably easier than us updating the Svelte config API

It would be good if we could pull the mode out....
there is a
export default ({ mode }) => {
https://stackoverflow.com/questions/66389043/how-can-i-use-vite-env-variables-in-vite-config-js
but I am not sure how to use this in svelte.congif.js ....


uygfcl=

Details

Read the Docs project URL:
Build URL (if applicable):
Read the Docs username (if applicable):

Expected Result
A description of what you wanted to happen
Actual Result
A description of what actually happened

Looks like spam.


Expose self and target's ID as rollOptions

Assuming a single target for a roll, this PR will make it so that self:id:XYZ and target:id:ABC are now available rollOptions to use.
self:id is available for targetless rolls as well.

could have sworn we already had this ...

could have sworn we already had this ...

If this is not sarcasm, then not gonna lie, same. I thought it was already a feature. But the closest I can see is weapon IDs.

Yeah checking the roll inspector, its not set. There's no self:id:blah field

Hm, only misgiving here is that synthetic actors will share IDs, which will lead to unwanted results if not anticipated.

Can anything be done about that?

Not until V11 when synthetic actors (hopefully) go away for good.

I think we're going to have to wait until V11 for this sort of thing to be usable.

No worries. Your PR #4659 already seemingly does what I wanted to do with this one, so I don't need this too bad. It might have some other uses, but marking is basically what I wanted to get outta it.


Add links to repositories using imgui-rs to readme file

I am proposing that we add external links to other repositories using this library inside the readme file. There are only two examples inside. It is easier to add link to other repository than copy and maintain examples.
https://github.com/jaroslaw-weber/imgui_calculator
I created a simple calculator using this library. I think it may be good example (something between hello world and more advanced example.

Closing old ticket
I'm not in favour of a list of projects using imgui-rs, just because it requires constant maintenance to keep up-to-date, and is probably better solved by search (like the reverse dependenices section on crates.io, or searching github for imgui with lanague:rust)
The "easier to copy-paste" part is something that would be helped by #664


[FIF-329] Update jquery with a package resolution

Dependabot left us a security message to upgrade jquery. I did that and discovered synp also had a low-risk fix needed.
Both are updated...

@kurtjohnson-HS
From the PR description, I was expecting to see 2 changes in the package file. But I see just 1 change. Did you forget to commit something?

@kurtjohnson-HS
From the PR description, I was expecting to see 2 changes in the package file. But I see just 1 change. Did you forget to commit something?

I did originally change synp after seeing it come up as a low-level a local package audit.
But then the PR failed because that synp change threw warnings on TeamCity.
I reversed the change this morning, and the TeamCity build passed and the warning disappeared.
Since synp is outside of this, I will update the original comment to note the change.


Improve Join and Leave to support Mir

The current implementation of the subnet actor is missing certain features included in its LegacyVM counterpart to support the Mir consensus like:

Checking the minimum number of validators before the subnet can be registered.
Adding additional information required by Mir for validators in the validator set.
Adding reconfiguration info when leaving a subnet.
etc.

//cc @dnkolegov, we may ping you for the review just to double-check that everything you need is supported :pray:


Added feature pack 1 support

Fixes #450

[X] Change details added to Unreleased section of changelog.md?
[X] Added/updated documentation and descriptions in .schema.mof files where appropriate?
[X] Examples updated for both the single server and small farm templates in the examples folder?
[X] New/changed code adheres to Style Guidelines?
[X] Unit and Integration tests created/updated where possible?

This change is

@BrianFarnhill Two tests still fail, can you please check these. I will review afterwards.

@ykuijs Forgot to update the stubs, will get that sorted this morning then go again

@BrianFarnhill you are going the wrong way dude......from now six tests are failing :-)

@ykuijs I kept getting distracted and didn't get to finish this! The latest change I just made should have fixed the stubs, so it should finally be ready for a review. Thanks mate!

@ykuijs Urgh - there is still a fail, but it looks like it's to do with the trusted token issuer. Let me look in to it as I want to make sure that feature pack 1 doesn't break one of our other resources, but if you could review the rest of what's here that would be great.

@ykuijs OK found the issue with the stub generator and manually fixed it up, should finally be good to go here.

Just one question: Many changes in the Powershell.psm1 file are changes to the order of the parameters. Did you do this on purpose?

Reviewed 6 of 7 files at r1, 2 of 3 files at r3, 1 of 1 files at r5.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

That file is autogenerated for the most part, I just ran the same script (which is stored in the test helper file) to generate it, so nothing I changed was on purpose in that regard, its just how the updated version of SP saw the parameters.

Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.

Comments from Reviewable


Add screwdriver head to sprite

About the PR
Adds missing head for screwdriver sprite
Screenshots

Changelog

doin god's work


[CodeCompletion] Don't suggest values before declaration

Implement local value filter to filter out unusable value decls from completions. Note that local types are usable even before declaration. E.g. the following code is legal.
  func foo() {
    _ = S()
    struct S {}
  }

rdar://problem/25068938

@swift-ci Please smoke test


Document that flatten + deny_unknown_fields works at least in simple cases

Hi. I did some experiments and I see that flatten + deny_unknown_fields combination works in some simple cases, such as this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=770a45f208ac8cbef83e968a87ca4f31 , despite docs say that this doesn't work: https://serde.rs/field-attrs.html#flatten .
On the other hand complex cases, such as this: https://github.com/serde-rs/serde/issues/2283 seem to not be supported.
So, please, document cases when this combination is supported, I want to rely on this feature in my code

This note is from https://github.com/serde-rs/serde-rs.github.io/pull/120 -- @jonasbb could you take a look?

Yes it can work in some situations. In the linked issue you see the reasons why I added the note in the first place. Combining the attributes is fragile. If you add this to Bar it breaks.
#[serde(flatten)]
v: serde_json::Value

If you add another layer around Foo, with flatten and  deny_unknown_fieldsbit breaks.
What I cannot answer is if this is sufficiently supported to call it out in the documentation.

I believe flatten + deny_unknown_fields is a footgun and probably should be warned against.

It'd be nice if the deny_unknown_fields and flatten could be combined. I have a use case that I'm having trouble implementing and working around, AFAIK, precisely b/c these don't work together. Perhaps there's a better way to achieve the same thing and I'm just not aware of it? If so, please let me know what you'd suggest.
My use-case boils down to this:

I have an endpoint (using rocket) that takes an optional "color": <value> JSON entry that's part of a larger structure;
The <value> can be a name (str) or RGBW values ([f32; 4]). (An example entry within the larger structure can be "color": "red" or "color": [1, 0, 0, 0]; client's choice);

I'm using an enum for the name, a struct with a transparent field for the RGBW values, and another enum with associated data (this one gives clients the ability to choose either one; if there's a better way, I'm open to suggestions):
The following excerpts should help clarify. Some stuff has been omitted for brevity:
#[derive(..., Serialize, Deserialize)]
#[serde(rename_all = "lowercase" /* ,  deny_unknown_fields */ )]  // <-- see other comments
pub enum LedColorNameSchema {
    Red,
    Green,
    Blue,
    White,
    // setting `custom` is not allowed; `deny_unknown_fields` would help
    // cause an error instead of silently ignoring client inputs here,
    // but that conflicts with `flatten`
    #[serde(skip_deserializing)]
    Custom,
}

#[derive(..., Serialize, Deserialize)]
#[serde(transparent)]
pub struct LedColorRgbwSchema {
    rgbw: [f32; 4],
}

// This one allows clients to choose how to set the color
#[derive(..., Serialize, Deserialize)]
#[serde(rename_all = "lowercase", untagged)]
pub enum LedColorParamSchema {
    Name(LedColorNameSchema),
    Rgbw(LedColorRgbwSchema),
}

// This struct exists as a workaround for `enum`s not being allowed to be `Validate`;
// I still need to validate value ranges within the `[f32; 4]` RGBW array, though..
#[derive(..., Deserialize, Validate)]
pub struct LedColorUpdateSchema {
    #[validate(custom = "schemas::validate_color")]  // impl omitted
    pub color: LedColorParamSchema,
}

I can't use deny_unknown_fields b/c some of these types are flattened inside other "larger" types:
#[derive(..., Deserialize, Validate)]
#[serde(remote = "Self")]
pub struct StatusLedUpdateSchema {
    // ... other fields that also use `flatten` omitted
    //
    #[serde(flatten)]  // want this, but conflicts with `deny_unknown_fields`
    #[validate("...")]
    pub maybe_color: Option<LedColorUpdateSchema>,
    // ...
}

impl<'de> Deserialize<'de> for StatusLedUpdateSchema { /* ... */ }

So, I end up with mutually exclusive choices:

use flatten and drop deny_unknown_fields, which preserves the public JSON API structure clients see, but at the expense of lying to clients[^1] with silent failures that look like "successes"; or
use deny_unknown_fields and drop flatten, which preserves my ability to report errors to clients when they send invalid name values, but at the expense of screwing up the public JSON API structures due to nesting.

All of this just to try and explain my use-case and that, due to the incompatibility of these two attributes, it doesn't seem like I can get the behavior I need without screwing myself over somehow(?)
That said, and supposing it's impossible to make them compatible, what's a good approach to implement this kind of use-case?
Thanks.
[^1]: The lie is that the client thinks everything was set as intended in its PUT request, b/c it gets an HTTP-204, but the fact is the server-side completely (and silently) ignored the erroneous attempt to set the color. It shows up as None and the Deserialize impl doesn't even seem to get called (absent log messages).


Show message for invites which are already part of org.

We recently had this issue, #156 an existing user is requesting the GitHub invite.
We want to display a message in the comment, that you are already part of the org.

Hello @imabp, still working on this?

Hello @imabp, this issue is being solved in v1.3

Awesome thanks, I am bit occupied with other work. Cannot Contribute. But thankful, we are using this at our open source org
tech-phantoms/community


Make module context-aware in Node 10+

It is no longer possible to use this module in newer versions of Electron due to native modules being required to be context aware. The ability to disable this requirement (which is deprecated since Electron 10), is removed in the next version (14). See: https://github.com/electron/electron/issues/18397
Luckily, it is rather easy to use NAN to make the module context aware, if the Node version is high enough to support it. This change allows this module to be used on older and newer versions of Electron and Node.

@henhouse thanks mate. I needed that fix for my Electron app. Merged this PR in my fork.


gym fails to export archive for macOS

New Issue Checklist

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

Issue Description

When I configure my gym action with export_method: "developer-id", the action fails when gym is attempting to work with the exported archive.  I have replicated this problem with a sample project, attached.
DeveloperIdSpike.zip
This appears to be a regression in the 2.141 release.  If pin to version 2.140, this command succeeds.  If I pin to version 2.141 or later, this command fails.
Command executed

bundle exec fastlane build_release
Complete output when running fastlane, including the stack trace and command used

 [✔] 🚀
[14:45:49]: ------------------------------
[14:45:49]: --- Step: default_platform ---
[14:45:49]: ------------------------------
[14:45:49]: Driving the lane 'mac build_release' 🚀
[14:45:49]: -------------------------------------
[14:45:49]: --- Step: ensure_git_status_clean ---
[14:45:49]: -------------------------------------
[14:45:49]: $ git status --porcelain
[14:45:49]: Git status is clean, all good! 💪
[14:45:49]: ------------------------------------
[14:45:49]: --- Step: increment_build_number ---
[14:45:49]: ------------------------------------
Current version of project DeveloperIdSpike is:
    1
/Users/joe/src/DeveloperIdSpike
[14:45:50]: $ cd /Users/joe/src/DeveloperIdSpike && agvtool next-version -all && cd -
[14:45:50]: ▸ Setting version of project DeveloperIdSpike to:
[14:45:50]: ▸ 2.
[14:45:50]: ▸ Also setting CFBundleVersion key (assuming it exists)
[14:45:50]: ▸ Updating CFBundleVersion in Info.plist(s)...
[14:45:50]: ▸ Updated CFBundleVersion in "DeveloperIdSpike.xcodeproj/../DeveloperIdSpike/Info.plist" to 2
[14:45:50]: ▸ /Users/joe/src/DeveloperIdSpike
[14:45:50]: -----------------
[14:45:50]: --- Step: gym ---
[14:45:50]: -----------------
[14:45:50]: Resolving Swift Package Manager dependencies...
[14:45:50]: $ xcodebuild -resolvePackageDependencies -scheme DeveloperIdSpike -project ./DeveloperIdSpike.xcodeproj
[14:45:51]: ▸ resolved source packages:
[14:45:51]: $ xcodebuild -showBuildSettings -scheme DeveloperIdSpike -project ./DeveloperIdSpike.xcodeproj
+------------------------+-------------------------------------------------------+
|                            Summary for gym 2.143.0                             |
+------------------------+-------------------------------------------------------+
| scheme                 | DeveloperIdSpike                                      |
| export_method          | developer-id                                          |
| project                | ./DeveloperIdSpike.xcodeproj                          |
| destination            | generic/platform=macOS                                |
| output_name            | DeveloperIdSpike                                      |
| build_path             | /Users/joe/Library/Developer/Xcode/Archives/2020-03-  |
|                        | 15                                                    |
| clean                  | false                                                 |
| output_directory       | .                                                     |
| silent                 | false                                                 |
| skip_package_ipa       | false                                                 |
| skip_package_pkg       | false                                                 |
| result_bundle          | false                                                 |
| buildlog_path          | ~/Library/Logs/gym                                    |
| skip_profile_detection | false                                                 |
| xcode_path             | /Applications/Xcode11.3.1.app                         |
+------------------------+-------------------------------------------------------+
[14:45:52]: $ set -o pipefail && xcodebuild -scheme DeveloperIdSpike -project ./DeveloperIdSpike.xcodeproj -destination 'generic/platform=macOS' -archivePath /Users/joe/Library/Developer/Xcode/Archives/2020-03-15/DeveloperIdSpike\ 2020-03-15\ 14.45.52.xcarchive archive | tee /Users/joe/Library/Logs/gym/DeveloperIdSpike-DeveloperIdSpike.log | xcpretty
[14:45:53]: ▸ Compiling DeveloperIdSpike_vers.c
[14:45:53]: ▸ Linking DeveloperIdSpike
[14:45:54]: ▸ Compiling Main.storyboard
[14:45:54]: ▸ Processing Info.plist
[14:45:54]: ▸ Generating 'DeveloperIdSpike.app.dSYM'
[14:45:55]: ▸ Touching DeveloperIdSpike.app (in target 'DeveloperIdSpike' from project 'DeveloperIdSpike')
[14:45:55]: ▸ Archive Succeeded
[14:45:55]: Compressing 1 dSYM(s)
[14:45:55]: $ cd '/Users/joe/Library/Developer/Xcode/Archives/2020-03-15/DeveloperIdSpike 2020-03-15 14.45.52.xcarchive/dSYMs' && zip -r '/Users/joe/src/DeveloperIdSpike/DeveloperIdSpike.app.dSYM.zip' *.dSYM
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/ (stored 0%)
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/Contents/ (stored 0%)
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/Contents/Resources/ (stored 0%)
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/Contents/Resources/DWARF/ (stored 0%)
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/Contents/Resources/DWARF/DeveloperIdSpike (deflated 61%)
[14:45:56]: ▸   adding: DeveloperIdSpike.app.dSYM/Contents/Info.plist (deflated 52%)
[14:45:56]: Successfully exported and compressed dSYM file
[14:45:56]: Successfully exported the .app file:
[14:45:56]: ./DeveloperIdSpike.app
[14:45:56]: Generated plist file with the following values:
[14:45:56]: ▸ -----------------------------------------
[14:45:56]: ▸ {
[14:45:56]: ▸   "method": "developer-id"
[14:45:56]: ▸ }
[14:45:56]: ▸ -----------------------------------------
[14:45:56]: $ /usr/bin/xcrun /Library/Ruby/Gems/2.6.0/gems/fastlane-2.143.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/gv/lqtyc95s7c7bk79v4lkwpv9h0000gn/T/gym_config20200315-5088-v7okjg.plist' -archivePath /Users/joe/Library/Developer/Xcode/Archives/2020-03-15/DeveloperIdSpike\ 2020-03-15\ 14.45.52.xcarchive -exportPath '/var/folders/gv/lqtyc95s7c7bk79v4lkwpv9h0000gn/T/gym_output20200315-5088-o710br'
[14:45:58]: The generated archive is invalid, this can have various reasons:
[14:45:58]: Usually it's caused by the Skip Install option in Xcode, set it to NO
[14:45:58]: For more information visit https://developer.apple.com/library/ios/technotes/tn2215/_index.html
[14:45:58]: Also, make sure to have a valid code signing identity and provisioning profile installed
[14:45:58]: Follow this guide to setup code signing https://docs.fastlane.tools/codesigning/GettingStarted/
[14:45:58]: If your intention was only to export an ipa be sure to provide a valid archive at the archive path.
[14:45:58]: This error might also happen if your workspace/project file is not in the root directory of your project.
[14:45:58]: To workaround that issue, you can wrap your calls to gym with
[14:45:58]: Dir.chdir('../path/to/dir/containing/proj') do
[14:45:58]: For an example you can check out
[14:45:58]: https://github.com/artsy/emission-nebula/commit/44fe51a7fea8f7d52f0f77d6c3084827fe5dd59e
+-----------------------------+-------------------+
|                  Lane Context                   |
+-----------------------------+-------------------+
| DEFAULT_PLATFORM            | mac               |
| PLATFORM_NAME               | mac               |
| LANE_NAME                   | mac build_release |
| GIT_REPO_WAS_CLEAN_ON_START | true              |
| BUILD_NUMBER                | 2                 |
+-----------------------------+-------------------+
[14:45:58]: Archive invalid
+------+-------------------------+-------------+
|               fastlane summary               |
+------+-------------------------+-------------+
| Step | Action                  | Time (in s) |
+------+-------------------------+-------------+
| 1    | default_platform        | 0           |
| 2    | ensure_git_status_clean | 0           |
| 3    | increment_build_number  | 0           |
| 💥   | gym                     | 7           |
+------+-------------------------+-------------+
[14:45:58]: fastlane finished with errors
[!] Archive invalid

Environment

 ✅ fastlane environment ✅
Stack

Key
Value

OS
10.15.3

Ruby
2.6.3

Bundler?
false

Git
git version 2.21.1 (Apple Git-122.3)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.15.3 (19D76)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode11.3.1.app/Contents/Developer/

Xcode Version
11.3.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`

default_platform(:mac)

platform :mac do
  desc "Increments the build number, builds, and notarizes the Release configuration of the app."
  lane :build_release do
    ensure_git_status_clean
    increment_build_number
    gym(
      scheme: "DeveloperIdSpike",
      export_method: "developer-id",
    )
  end

  lane :notarize_release do
    app_path = "build/DeveloperIdSpike.app"
    notarize(
      package: app_path,
      try_early_stapling: true
    )
  end
end

`./fastlane/Appfile`
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem
Version
Update-Status

fastlane
2.143.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.3.0

terminal-notifier
2.0.0

terminal-table
1.8.0

plist
3.5.0

multipart-post
2.0.0

word_wrap
1.0.0

public_suffix
2.0.5

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday
0.17.3

faraday_middleware
0.13.1

gh_inspector
1.1.3

multi_xml
0.6.0

rubyzip
1.3.0

security
0.1.3

xcpretty-travis-formatter
1.0.0

bundler
2.1.2

jwt
2.1.0

emoji_regex
1.0.1

jmespath
1.4.0

aws-eventstream
1.0.3

aws-sigv4
1.1.1

aws-sdk-core
2.11.463

aws-sdk-resources
2.11.463

aws-sdk
2.11.463

nanaimo
0.2.6

colored2
3.1.2

claide
1.0.3

CFPropertyList
3.0.2

atomos
0.1.3

xcodeproj
1.15.0

unicode-display_width
1.7.0

addressable
2.7.0

tty-screen
0.7.1

tty-cursor
0.7.1

tty-spinner
0.9.3

babosa
1.0.3

excon
0.72.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20190701

fastimage
2.1.7

json
2.3.0

mini_magick
4.10.1

dotenv
2.7.5

naturally
2.2.0

simctl
1.6.8

httpclient
2.8.3

multi_json
1.14.1

signet
0.13.0

os
1.0.1

memoist
0.16.2

googleauth
0.11.0

mini_mime
1.0.2

retriable
3.1.2

declarative-option
0.1.0

declarative
0.0.10

uber
0.1.0

representable
3.0.4

google-api-client
0.36.4

digest-crc
0.5.1

google-cloud-errors
1.0.0

google-cloud-env
1.3.1

google-cloud-core
1.5.0

google-cloud-storage
1.25.1

forwardable
1.2.0

logger
1.3.0

stringio
0.0.2

ipaddr
1.2.2

openssl
2.1.2

ostruct
0.1.0

strscan
1.0.0

date
2.0.0

fileutils
1.1.0

etc
1.0.1

io-console
0.4.7

zlib
1.0.0

libxml-ruby
3.1.0

rexml
3.1.9

psych
3.1.0

mutex_m
0.1.0

generated on: 2020-03-15

I discovered that I was able to resolve this issue by adding the argument skip_package_pkg: true to my gym invocation.   I figured this out based on the release notes for 2.141.  I don't love that the default behavior changed between 2.140 and 2.141.  And the error I reported above doesn't give any hints about how to resolve the problem.  Maybe the error message should be improved?
I seems like there is a relationship between export_method and skip_package_pkg.  If so, this should be enforced by the tool.  Thanks!

@jnross Thanks for the reporting this! I was really torn on how to handle this with the new ability to sign/export Mac apps 🤔 I really wanted the behavior to be similar as iOS but I can totally see how this is confusing. What export method are you using? I would totally be down for changing this behavior / default value based on that.

@joshdholtz:  Thanks for the response.  Since this happens when export_method is developer_id, perhaps it could default/imply that skip_package_pkg be true in this case?

Hi, there.
I met same issue and found this error is caused by https://github.com/fastlane/fastlane/pull/12195, especially https://github.com/fastlane/fastlane/pull/12195/commits/9ce6b41a7c31c43d4f93f7c8d709bb36602f781e.
This PR attempts to create .pkg, but its feature is lost during the review process. Thus, move_pkg method always fails.

I tested with the latest version of fastlane and this is still an issue.  As mentioned in a previous comment, if I specify skip_package_pkg: true then things behave as I expect: the app bundle is generated and exportable, resigning by the correct developer-id certificate.
I suggest this simple solution:  if export_method is set to "developer-id", imply skip_package_pkg: true, or provide a loud warning or fatal error to let users know why the export failed.


Add Handling for 204 (No Content) Responses

We currently will incorrectly fail out an object loader on a 204 response. It should be considered successful.
This work is already completed on the GateGuru fork and will be merged shortly.

Merged to development with the table controller work.


Inverse percentile

Issue Description
What did you expect to see happen?
It would be nice to be able to give RAVEN a number and then get back the corresponding percentile from the basic statistics post processor.
For time-dependent statistics, it should be possible to specify if we want the minimum or average percentile over time.
What did you see instead?
This is a proposition for a new feature in RAVEN.

For Change Control Board: Issue Review
This review should occur before any development is performed as a response to this issue.

[ ] 1. Is it tagged with a type: defect or improvement?
[ ] 2. Is it tagged with a priority: critical, normal or minor?
[ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[ ] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest stable branch? If yes, is there any issue tagged with stable (create if needed)?
[ ] 5. If the issue is being closed without a merge request, has an explanation of why it is being closed been provided?

@AaronEpiney Can you explain the new feature a bit more? I did not get what you mean with "number"

By number I mean value. Here is what we have in mind:
Assume a set of observations A = [a1, a2, ... aN]
We can ask RAVEN to compute the X-th percentile, e.g. P_X(A) = value.
The proposed 'inverse percentile' functionality shroud allow to provide 'value' to RAVEN and get back 'X'.
Let me know if it is not clear.

Now it is clear.
Thanks.

archived


Support ZSTD_minCLevel and ZSTD_maxCLevel

Subj.

I will release it with the next batch of changes - will keep the issue open until release,

Thanks a lot!
BTW, what is the min and max compression levels in the latest released version?

scala> Zstd.minCompressionLevel()
res0: Int = -131072
scala> Zstd.maxCompressionLevel()
res1: Int = 22

Just released 1.3.7-2 to Maven-central.

Thank you very much!


prometheus--targets--state--down

/area configuration

Ask your question here

prometheus.yml

global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  - job_name: 'dapr'

    # Override the global default and scrape targets from this job every 5 seconds.
    scrape_interval: 5s

    static_configs:
      - targets: ['localhost:9090'] # Replace with Dapr metrics port if not default

docker ps

Run as Container

docker run \
    --net=host \
    -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \
    prom/prometheus --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:8081

prometheus

Are you talking to Dapr over a Docker Network?

Are you talking to Dapr over a Docker Network?

Are you talking to Dapr over a Docker Network?

yes.

Are you talking to Dapr over a Docker Network?

yes.

also facing this, what am I missing ?


Error after run the Boilerplate.Launcher

configure a pubkey in configuration file，more details in our document


Security controller does not have ContentLocale method

Affected Version
4.8.0
Description
When using the module silverstripe-mfa I noticed that the translations never kicked in though they were present.
After searching how these would kick in I noticed that the lang attribute on the html was still empty.
This results from the Security class extending the Controller class instead of the ContentController which has the required method ContentLocale
As a temporary fix i've now added the method to the Security trough the following extension:
class SecurityExtension extends Extension
{
    public function ContentLocale()
    {
        $contentController = ContentController::singleton();
        return $contentController->ContentLocale();
    }
}

I don't know if it is possible or what the impact would be of extending Security on ContentController. Otherwist a ContentLocale method should be added to Security. Or the method should be moved from ContentController to the more global Controller class.

I've created a PR #10081 that adds a simplified method to the Contoller class that doesn't check the dataRecord or Translatable class. The method with those checks still exists on the ContentController.

Hi Michal,
True, it goes a bit deeper than i initially thought. The root cause lies in the login-forms module that mfa depends on.
What happens is that the login-forms module empties the page_class in the Security controller. The Page class is used by default to render the Security controller thus inheriting the ContentLocale method.
Login Forms empties the page_class so the controller gets isolated from any styling that is added to the Page class.
Documentation from the module:
/**
 * Used to store the value of Security.page_class so that we can temporarily disable it
 * so that Security is used as the Controller instead of Page_Controller
 * This is done so that Page_Controller::init() is not called which may included calls
 * to Requirements::javascript(), Requirements::css(), etc
 * The styling and javascript on login-forms module should be completely isolated from the
 * regular website
 *
 * @var string
 *
 * @see Security::getResponseController()
 */
private $defaultPageClass = '';

I do think adding a simplified ContentLocale method to the Controller class wouldn't do any harm as the extended ContentController would still overwrite the logic with the current default. And controllers extended directly on Controller would benifit from having the ContentLocale method.

You're probably right. I've suggested a tweak to the method docblock in the PR, and since the addition is a stripped down version of the method from ContentController it looks safe to add.
I'm torn a bit between it being a bugfix (target 4.9) and/or an API surface change and would need to target 4. Any hints @emteknetnz?

I've commented on the PR, I'm thinking it would be better to add the ContentLocale method to EnableExtension in the login-forms module which is applied to Security.php

Thanks @emteknetnz. That's a good suggestion, I think as close to the actual problem as possible makes sense, so here it'd be within the login-forms module.


Auto connect

What if the package auto connect to some (or the last) ftp server on Atom start? :)

There is a setting for auto-connect in the package settings


GHC8 ready

Bumped versions, including IntervalMap, add toList before containing, to get it to typecheck.
https://github.com/travitch/dalvik/compare/master...dmjio:master#diff-0ca04c04856f642ad31acefc82ecb37eR161
I believe this change is correct since it seems IntervalMap added fromAscList to the containing function, changing it's return type from a list to an IntervalMap. The implementation remains the same otherwise.

Test suite ssa-tests: RUNNING...
SSA Tests:
  ThreeIncomingValues: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  TwoPhis: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  OneUnusedPhi: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  Trivial: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  EnsureExceptionBlock: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  SimpleLoop: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  ConditionalStringsReturned: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  NestedLoop: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  ConditionalStringsAssigned: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  ConditionalInts: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
  EliminateUnreachableCatch: [Failed]
ERROR: dx: runProcess: runInteractiveProcess: exec: does not exist (No such file or directory)

         Test Cases   Total
 Passed  0            0
 Failed  11           11
 Total   11           11
Test suite ssa-tests: FAIL
Test suite logged to: dist/test/dalvik-<IP_ADDRESS>-ssa-tests.log
Test suite SSALabels: RUNNING...
^Ckilling process 24038
error: interrupted by the user

Is dx an android thing?

We'll probably have to add CPP flags to get this to work with old IntervalMaps if you'd like that. I'm unsure what stackage has for 7.8.4
#if MIN_VERSION_IntervalMap(0,5,0)
in case IM.toList $ IM.containing bnumMap instIdx of
#else
in case IM.containing bnumMap instIdx of
#endif

Thanks, I'll look at this tonight.  dx is a tool from the Android SDK to convert Java bytecode to Dalvik.  I'll add a ghc 8 configuration to travis if this works out.

@travitch
Ok, sounds great! I'll force push the CPP changes soon. I was able to find dx, but am experiencing parsing errors that look like this during testing:
PARSE ERROR:
unsupported class file version 52.0
...while parsing Test.class
2 errors; aborting
    getParamListTypeNames: LTest.intLongAdd(IJ)J: [Failed]
ERROR: Error running `dx` 1
CallStack (from HasCallStack):
  error, called at src/Dalvik/Apk.hs:89:28 in dalvik-<IP_ADDRESS>-CAXEb1LVMK5NSbKfStecO:Dalvik.Apk

I think it has to do with what version of the jdk I'm using. These issues seem to be related:
https://github.com/phax/ph-css/issues/28
https://github.com/soomla/unity3d-store/issues/541
Unsure how you feel about nix, but maybe we could add a separate entry for it in the .travis.yml. Nix would just let us isolate the haskell deps /and/ other deps needed like jdk and androidStudio.
Travis has nix support here: https://docs.travis-ci.com/user/languages/nix, and I'm /pretty/ sure we can add it to a build matrix, to get stack and nix building alongside each other.
You'll see pkgs.androidSdk and pkgs.jdk in the testHaskellDepends section. So during the testing phase dx should be symlinked onto the shell that executes the test.
{ mkDerivation, attoparsec, base, bytestring, cereal
, conduit-combinators, containers, data-binary-ieee754, deepseq
, directory, exceptions, failure, filemanip, filepath, floatshow
, GenericPretty, hashable, HUnit, IntervalMap, optparse-applicative
, pretty, process, semigroups, split, stdenv, temporary
, test-framework, test-framework-hunit, text, transformers
, unordered-containers, vector, zip-conduit
}:
let pkgs = import <nixpkgs> {};
in mkDerivation {
  pname = "dalvik";
  version = "<IP_ADDRESS>";
  src = ./.;
  enableSplitObjs = true;
  isLibrary = true;
  isExecutable = true;
  libraryHaskellDepends = [
    attoparsec base bytestring cereal conduit-combinators containers
    data-binary-ieee754 deepseq directory exceptions filepath floatshow
    GenericPretty hashable IntervalMap pretty process semigroups split
    temporary text transformers unordered-containers vector zip-conduit
  ];
  executableHaskellDepends = [
    base bytestring containers directory filepath optparse-applicative
    pretty process temporary
  ];
  testHaskellDepends = [
    base bytestring containers directory failure filemanip filepath pkgs.androidsdk
    HUnit process temporary test-framework test-framework-hunit pkgs.jdk
  ];
  description = "Parser for the Dalvik virtual machine's DEX file format";
  license = stdenv.lib.licenses.bsd3;
}


Fixing github issue #35

Issue:

Multiple TOCs equal to the number of  "[" in the same state.src as that of the state which contains [[toc]].
This is because we do the regex match on the whole src instead of the substring of the src from the position which we are currently processing.

Solution:

Match the regex only from the position we are currently processing in the state.

👍


Android Basics: Get data from the Internet

name: Android Basics Unit 4 issue
about: Report problems with the Android Basics Unit 4 codelabs
title: 'Android Basics Unit 4 issue:'
labels: ''
assignees: ''

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-getting-data-internet?authuser=2&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-4-pathway-2%3Fauthuser%3D2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-getting-data-internet#5
In which task and step of the codelab can this issue be found?
Step 6 - 5
Describe the problem
I think this code might be from another codelab:
val listResult = MarsApi.retrofitService.getProperties()
_status.value = listResult
getProperties() is not implemented in the interface.
Steps to reproduce?

Go to...NA
Click on...NA
See error...NA

Versions
Android Studio version: NA
API version of the emulator: NA
Additional information
_Include screenshots if they would be useful in clarifying the problem._NA

Duplicates
#58
#55
#50
#38
#31
#29
#21
#19
#14
#13

@hndang
Thank you for reporting this issue. It is fixed and published:
https://developer.android.com/codelabs/basic-android-kotlin-training-getting-data-internet?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-4-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-getting-data-internet#5


osbuilder: Add support for debian rootfs

Fixes: #160

btw sorry for clogging up the PRs pipe

Schweeeet! :smile:
lgtm

@jodh-intel We'd need to extend the Travis CI build timeout, as the current 30 minutes is not enough when adding debian and suse rootfs creation.

Yes, it seems better implement #168 than changing timeout in .travis.xml

Hi @marcov - it would be great to land this before #168 so could you just update the .travis.yml timeout on a new commit on this PR? Also, if you could rebase, we'll get to see the image stats table at the end of the CI build :)

@jodh-intel, yes, it seems reasonable :)

Thanks @marcov!
lgtm

Hmm, F27 CI got some odd, what looks like an osbuilder, fail as:
[OK] Partitions created
INFO: Formating Image using ext4 format
The file /dev/loop0p1 does not exist and no size was specified.

Do we think that is related, or does it need a rebuild nudge?

@grahamwhaley I don't think the failure is related to this PR, because the error is when building fedora and the only changes in this PR are inside debian/ folder and a bump to the travis build timeout. Let's try a rebuild and see

Same outcome after a rebuild. I added a ls -l /dev/loop* to the last commit to see what's going on during the image build.

So, there seems to be some glitch in the image generation script that makes jobs fail randomly. This time it happened in Cento 7 with a similar log file.
Let's open a new issue for that.
INFO: Create root disk image. Attempt 1 out of 5.
INFO: Creating raw disk with size 128M
...
INFO: All loop devices:
crw-rw----. 1 root disk  10, 237 Sep 18 07:28 /dev/loop-control
brw-rw----. 1 root disk   7,   0 Sep 18 07:45 /dev/loop0
brw-rw----. 1 root disk 259,   0 Sep 18 07:45 /dev/loop0p1
...
INFO: Create root disk image. Attempt 2 out of 5.
INFO: Image size 128MB too small, trying again with size 256MB
....
INFO: All loop devices:
ls: cannot access '/dev/loop0p1': No such file or directory
crw-rw----. 1 root disk 10, 237 Sep 18 07:28 /dev/loop-control
brw-rw----. 1 root disk  7,   0 Sep 18 07:45 /dev/loop0
INFO: ERROR: test failed

Opened #172

whoohoo, all green :smiley_cat:

@jcvenegas  @jodh-intel should we use spaces or tabs ?

I'd prolly vote for tabs as most of 99.99% of rootfs-builder/rootfs.sh and tests/test_images.sh uses tabs. The debian+ubuntu changes in tests/test_images.sh don't use tabs so if @jcvenegas agrees I'd suggest creating a single new commit that changes them all to use tabs consistently.
/cc @grahamwhaley who I think holds the honorary title of "Whitespace Evangelist".

:laughing:  https://i.redditmedia.com/EcwKGjcxeR77frd8nFeG2ggEpCSLtGbudsABDPGBTe8.png?s=8c42e1b369ef674fe99cee7843edd8c6

Heh. Sure, even I use spaces where you have no choice (Makefiles, yaml etc. :-)  But here, we have a choice. I don't mind which really here, as long as we are consistent across the set :-)

Surely we can compromise folks... "spabs" anyone? :)

we can use https://github.com/mvdan/sh to give a general re-format to
all the project.

Nice @jcvenegas! Now we've got that one sorted, what about preferred editors... ? :)

@jodh-intel  windows notepad , is there something else?  :smile:

@devimc - huh? I thought we all programmed with dd seek=... ?

mandatory xkcd about emacs

Ok so given that \t is the winner in osbuilder I'll move everything to tabs.
osbuilder ‹debian-rootfs✗›$ find . -name "*.sh" -exec ack "^\t" {} +  | wc -l
651
osbuilder ‹debian-rootfs✗›$ find . -name "*.sh" -exec ack "^ " {} +  | wc -l
158

thanks @marcov

Yeah - spectabular!


Multiple preferred languages in Quick Accents

Description of the new feature / enhancement
I would love for it to be possible to select multiple languages with additional sign systems in quick accents. This could be done via e.g., a checkbox, rather than a single-choice drop-down.
Scenario when this would be used?
In my work, I have to use several languages with different diacritic systems. However, I can currently only select one "preferred" list or have to scroll a long time whenever I need to set an accent because the only alternative is to have all language systems active.
Supporting information
No response

Duplicate #33634


Pcap storage location and rotation

Enable the user to choose where the pcap files are stored on the device.
Also enable log rotation based on pcap file size - 50 MB per pcap

allow user to select various sizes of PCAP log file

Closed by #203


Follow upstream's version

Besides #163, it would be more predictable if libsass-python's version follows upstream libsass' version.  Since we need to bump version when we fix our own bugs, we should follow only major and minor versions.
Opinions?

Here's my opinions on this: https://github.com/dahlia/libsass-python/issues/154#issuecomment-224347605
I think it would be more confusing if we only followed two (or even one) of their version numbers and not all three (especially when giving bug reports upstream).  And then it would be difficult for us to communicate breaking / feature changes in our own api.
Perhaps the most popular binding (node-sass) doesn't seem to follow versions either: https://github.com/sass/node-sass/releases

🤔 Okay, this versioning way indeed seems several confusion as well to users.


Update README.md

Fix some grammar; change some wording to be more clear/concise

So sweet,Thanks!😊😊😊

@AAChartModel You're welcome :)


Fixes #63 - Detailed report returns list of tag objects, not strings

Fixes #63

I will merge it soon and release a new version


Remove getPriorityOver()

Q
A

Bug fix?
yes

New feature?
no

Doc update?
no

BC breaks?
yes

Deprecations?
no

Fixed tickets

License
MIT

The idea behind Swift_Transport_EsmtpHandler::getPriorityOver() is flawed.
uasort() requires that operators are symmetric, i.e. if FooHandler::getPriorityOver("BAR") returns 1, BarHandler::getPriorityOver("FOO") should return -1. A handler cannot simply return 0 to indicate that it does not care about ordering, like Swift_Transport_Esmtp_AuthHandler currently does. It is not practical for a handler to know about all other possible handlers and their priority requirements.
You usually only have a few extension handlers that are configured manually, so having an automated priority sort is not really required. I suggest that we just require users to manually sort the list of extension handlers before passing it to Swift_Transport_EsmtpTransport::setExtensionHandlers() or the Swift_Transport_EsmtpTransport constructor.

Thanks for the PR. As announced some time ago, Swiftmailer is not maintained anymore.
Symfony Mailer is the next evolution of Swiftmailer.
It provides the same features with support for modern PHP code and support for third-party providers.


Kubernetes Firewall rules error in Guest Network

ISSUE TYPE

Bug Report

COMPONENT NAME

Kubernetes Service

CLOUDSTACK VERSION

<IP_ADDRESS>

CONFIGURATION

Kubernetes Cluster v1.23 deployed via the Cloudstack kubernetes service in a guest network. Non-HA, Cluster running successfully.
Advanced Network with Security Groups.

OS / ENVIRONMENT

N/A
SUMMARY

When setting firewall rules via the Cloudstack UI for the kubernetes cluster, this error message appears:
Request failed. (431)
Unable to execute API command createfirewallrule due to missing parameter ipaddressid

STEPS TO REPRODUCE

Create a kubernetes cluster via the coudstack UI using a guest network
When the cluster is runnning, navigate to the cluster page > Firewall in the UI
Create a firewall rule (e.g. Source CIDR: <IP_ADDRESS>/0, Protocol: TCP, Start port: 1234, End port: 1235)
Add the rule

EXPECTED RESULTS

The rule is added and displayed on the page.

ACTUAL RESULTS

Request failed. (431)
Unable to execute API command createfirewallrule due to missing parameter ipaddressid

cc @davidjumani @shwstppr

fixed by #7076


Make Spatial Mapping optional when Finding Anchor Position

Changes

Fixes: #1762  .

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


[type-lowering] Delete dead code that has to do with LoweringStyle::Deep.

This code is not used anywhere in tree. If we have need for it, we can always
revert this commit.
We use DeepNoEnum. We should probably rename DeepNoEnum to just Deep once this code is gone.
rdar://28851920

@swift-ci Please smoke test and merge


Simple query string

Updated the validateType names to reference the object name. Updated the tests to include a test with another query filter the $and filter.
Also changed the $default_operator to just $operator.

Not sure why this is showing up as conflicting now. Anything I can do to resolve?

You'll probably have to pull/rebase master. Did this change make it into the release with your latest PR?

@daffl I did exactly that and closed this one.
Not done much work with forking so still learning.


Create an Illustration project in Figma under EDS

Create a new EDS project called Illustration and move the Zeroheight homepage illustration

Goal: have a common place for all illustrations etc. independent on user.

@benteljones could implement the homepage illustration here
And put this issue to done :)

Yes, of course I'll do that right away. 😊 I only have view access to the folder. Can you add me with editing access, @lucasveil ? Thank you!


shinyswatch themes broken in py-shiny 1.0.0

Shinyswatch no longer seems to work correctly in the newest version of shiny.
For instance, input selectize now looks like below using shinyswatch.theme.darkly():

And I get this in the console:
INFO:     <IP_ADDRESS>:59190 - "GET /lib/bootstrap-js-5.3.1/bootstrap.bundle.min.js.map HTTP/1.1" 404 Not Found
Worked correctly in the previous version and it looks fine when I don't set a shinyswatch theme:

Please see https://shiny.posit.co/blog/posts/shinyswatch-0.7.0/#migrating-to-v0.7.0 on how to migrate using the latest shinyswatch.
Closing for now. If the issue still persists, please comment below with your pip list and enough app code to reproduce the problem. Thank you for the quick issue!


Merge conflictive types

I want to merge two schemas, from remote servers, with conflictive types.
Schema Server 1:
type Query {
  article(id: ID!): Article
}
type Article {
  id: ID!
  title: String
  url: String
}

Schema Server 2:
type Query {
  article(id: ID!): Article
}
type Article {
  id: ID!
  name: String
}

I try to solve this, using this approach:
app.post('/', bodyParser.json(), graphqlExpress({
	schema: mergeSchemas({
		schemas: allSchemas,
		onTypeConflict: (leftType, rightType) => {
			if (leftType instanceof GraphQLObjectType) {
				return mergeObjectTypes(leftType, rightType);
			}
			return leftType;
		}
	})
}));

function mergeObjectTypes(leftType, rightType) {
	if (!rightType) {
		return leftType;
	}
	if (leftType.constructor.name !== rightType.constructor.name) {
		throw new TypeError(`Cannot merge with different base type. this: ${leftType.constructor.name}, other: ${rightType.constructor.name}.`);
	}
	leftType.getFields() // Populate _fields
	leftType.getInterfaces() // Populate _interfaces
	for (const [key, value] of Object.entries(rightType.getFields())) {
		leftType._fields[key] = value;
	}
	for (const [key, value] of Object.entries(rightType.getInterfaces())) {
		leftType._interfaces[key] = value;
	}
	return leftType;
}

But this mergeObjectTypes function only resolves the last apollo-link server.
How can i fix this?
Github complete example: https://github.com/francescjaume/graphql-microservices-example

I can confirm that merging types are working only on Root and Query & Mutation level.
It would be very helpful if second level types (query &/ Mutation) which have no field conflicts could be merged, like :
this type
type Article {
  id: ID!
  name: String
}

and this type
type Article {
  created_at: String
}

would resolve in this type:
type Article {
  id: ID!
  name: String
  created_at: String
}

Hey,
I looked into this problem today and spent a lot of time reading implementations for this problem for example this one.
I tried creating a function of my own. Even though a didn't find any documentation on the AST structure itself of the lefType and rightType I think I may have found a solution that doesn't throw any errors. So I think I might be on the right track.
function mergeObjectTypes(leftType, rightType) {
    if (!rightType) {
        return leftType;
    }

    if (leftType.constructor.name !== rightType.constructor.name) {
        throw new TypeError(`Cannot merge with different base type. This : ${leftType.constructor.name}, other: ${rightType.constructor.name}`);
    }

    if (!leftType.getFields) {
        return leftType;
    }

    // Create new object
    const mergedType = Object.create(leftType);

    // Add name and description of leftType and fallback to rightType
    if (!mergedType.name) mergedType.name = rightType.name;
    if (!mergedType.description) mergedType.description = rightType.description;

    // Populate an array with existing types to compare against
    const mergedFields = new Set();
    mergedType.astNode.fields.map((field) => {
        mergedFields.add(field.name.value);
    });

    rightType.astNode.fields.map((field) => {
        if (!mergedFields.has(field.name.value)) {
            mergedType.astNode.fields.push(field);
        }
    });

    return mergedType;
}

But my implementation actually has no effect towards the final merged schema. The mergedType I'm returning does have the added fields in the astNode property. What might be missing is adjusting the loc property where I don't have any idea what it does or what's its purpose.
Maybe someone reading my comment has additional ideas how to "improve" my script (which actually means making it work 😉).
Thanks!

Is there any example of how you can actually merge schemas (left and right type) that works?

I have yet to find one. That's the reason I tried to build it myself.

It seems that merge only works for top level Query.
If you try to merge some type it simply does not work whatever you push in fields.

Yes, the implementation of graphql-tools only merges the Query, Mutation and Subscription types. Any other type will call the onTypeConflict callback with both types as parameters.

In my opinion, this is an important issue, since I want to use merging to combine my GraphQL microservice architecture. I think a lot of other users trying to implement similar architectures might benefit from this fix/enhancement as well. The gramps-project from IBM, for example, is built entirely around graphql-toolses merging feature.
It would be nice to see some reactions from the core maintainers of the package about this issue:
@helfer @stubailo @benjamn @freiksenet

Closed via #1307 rolled into #1306


Pop

Hi Team,
I'm trying to restrict duplicate selections in my checked list,
Below is js code

Below is html code

Now, when pop is used checklist-model is getting poped but its not reflecting in html,  duplicate checkbox is still checked, how it can be unchecked ?
Thanks
Phaneendra

Use checklist-before-change instead checklist-change and return a boolean value to accept or not the change.


CICD for Docker builds

Simple GHA configuration that builds and pushes a container image of go.resonite.com to ghcr.

Hmm, I didn't publish it to docker or anything because right now I'm cloning the whole folder down to the host machine.
Once this is published up to ghcr, I guess I can skip that step and just specify the image name in docker-compose?

Yeah, basically.
It will create a package like this: https://github.com/jae1911/go.resonite.com/pkgs/container/go.resonite.com

Guchi


Add Folders to Favorites

What feature or improvement do you think would benefit Files?
How do I add folders to Favorites especially those that show upon the main panel?

e.g. adding music, pictures and videos to Favorites!
Requirements
Nice!  Reply to<EMAIL_ADDRESS>Files Version
Version <IP_ADDRESS>
Windows Version
Windows 11 Insider Preview 10.0.22623.730 (ni_release)
Comments
Thanks.

Navigate to a folder, right-click and select "pin to favorites"

Worked.  Thanks.  I liked it.


Dragonrage: Watch primeinsights.in

Dragonrage requests the watch of the watch_keyword primeinsights\.in. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

primeinsights\.in has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by cigien in Charcoal HQ


Merged Model Inference

Hi, I am highly interested in this work. However, I find it hard to directly infer on the released merged weights. Would it be possible to provide a simple inference script for the merged model? Thank you.
(e.g. https://huggingface.co/deepcs233/VisCoT-13b-224/tree/main)

`from llava.model import LlavaLlamaForCausalLM
from transformers import AutoTokenizer, AutoConfig
import torch
from func import eval_model
model_path = "models/VisCoT-13b-336"
kwargs = {"device_map": "auto",
# "offload_folder": model_path,
"cache_dir": r'./'
}
kwargs['torch_dtype'] = torch.float16
lora_cfg_pretrained = AutoConfig.from_pretrained(model_path)
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=False)
model = LlavaLlamaForCausalLM.from_pretrained(model_path, low_cpu_mem_usage=True, config=lora_cfg_pretrained, **kwargs)
vision_tower = model.get_vision_tower()
image_processor = vision_tower.image_processor
prompt = "what is in the image"
image_file = "https://llava-vl.github.io/static/images/view.jpg"
args = type('Args', (), {
"model_path": model_path,
"model_base": None,
"query": prompt,
"conv_mode": None,
"image_file": image_file,
"sep": ",",
"temperature": 0,
"top_p": None,
"num_beams": 1,
"max_new_tokens": 512
})()
eval_model(args,model,tokenizer,image_processor)
`
I use this code to generate, it seems work now.

import argparse
import torch

from llava.constants import (
    IMAGE_TOKEN_INDEX,
    DEFAULT_IMAGE_TOKEN,
    DEFAULT_IM_START_TOKEN,
    DEFAULT_IM_END_TOKEN
)
IMAGE_PLACEHOLDER = "<image-placeholder>"

from llava.conversation import conv_templates, SeparatorStyle
from llava.model.builder import load_pretrained_model
from llava.utils import disable_torch_init
from llava.mm_utils import (
    process_images,
    tokenizer_image_token,
    get_model_name_from_path,
)

from PIL import Image

import requests
from PIL import Image
from io import BytesIO
import re

def image_parser(args):
    out = args.image_file.split(args.sep)
    return out

def load_image(image_file):
    if image_file.startswith("http") or image_file.startswith("https"):
        response = requests.get(image_file)
        image = Image.open(BytesIO(response.content)).convert("RGB")
    else:
        image = Image.open(image_file).convert("RGB")
    return image

def load_images(image_files):
    out = []
    for image_file in image_files:
        image = load_image(image_file)
        out.append(image)
    return out

def eval_model(args,model,tokenizer,image_processor):
    # Model
    disable_torch_init()

    qs = args.query
    image_token_se = DEFAULT_IM_START_TOKEN + DEFAULT_IMAGE_TOKEN + DEFAULT_IM_END_TOKEN
    if IMAGE_PLACEHOLDER in qs:
        if model.config.mm_use_im_start_end:
            qs = re.sub(IMAGE_PLACEHOLDER, image_token_se, qs)
        else:
            qs = re.sub(IMAGE_PLACEHOLDER, DEFAULT_IMAGE_TOKEN, qs)
    else:
        if model.config.mm_use_im_start_end:
            qs = image_token_se + "\n" + qs
        else:
            qs = DEFAULT_IMAGE_TOKEN + "\n" + qs

    conv_mode = "llava_v1"

    if args.conv_mode is not None and conv_mode != args.conv_mode:
        print(
            "[WARNING] the auto inferred conversation mode is {}, while `--conv-mode` is {}, using {}".format(
                conv_mode, args.conv_mode, args.conv_mode
            )
        )
    else:
        args.conv_mode = conv_mode

    conv = conv_templates[args.conv_mode].copy()
    conv.append_message(conv.roles[0], qs)
    conv.append_message(conv.roles[1], None)
    prompt = conv.get_prompt()

    image_files = image_parser(args)
    images = load_images(image_files)
    images_tensor = process_images(
        images,
        image_processor,
        model.config
    ).to(model.device, dtype=torch.float16)

    input_ids = (
        tokenizer_image_token(prompt, tokenizer, IMAGE_TOKEN_INDEX, return_tensors="pt")
        .unsqueeze(0)
        .cuda()
    )

    with torch.inference_mode():
        output_ids = model.generate(
            input_ids,
            images=images_tensor,
            do_sample=True if args.temperature > 0 else False,
            temperature=args.temperature,
            top_p=args.top_p,
            num_beams=args.num_beams,
            max_new_tokens=args.max_new_tokens,
            use_cache=True,
        )
    output_ids = torch.where(output_ids >= 0, output_ids, torch.tensor(0, device=output_ids.device))
    print(output_ids)
    outputs = tokenizer.batch_decode(output_ids, skip_special_tokens=True)[0].strip()
    print(outputs)

This is func changed from run_llava.py, hope it can help.


I can not run python example_contourApproach.py

Dear WDRT developers:
This is John again. I ran WDRT :
cd examples
python example_envSamplying.py
I could only get a PCA contour line. NO contour lines via other methods could be obtained.
Meanwhile when I continued to run "python example_contourApproach.py", I got the following warnings:
"Traceback (most recent call last):
File "C:\WDRT\WDRT-master\examples\example_contourApproach.py", line 15, in
Hs = np.array(envFile['buoy_Data/Hs'])
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py_objects.c:2463)
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py_objects.c:2420)
File "C:\Users\wyg\Anaconda\lib\site-packages\h5py_hl\group.py", line 164, in getitem
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py_objects.c:2463)
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\aroot\work\h5py_objects.c:2420)
File "h5py\h5o.pyx", line 190, in h5py.h5o.open (C:\aroot\work\h5py\h5o.c:3373)
KeyError: 'Unable to open object (Component not found)'
Why?
Please kindly reply me.
Yours,
John Wang

Hello John @wyg110sjtu ,
Thank you for alerting us to this issue. I believe that the example file that you are running is outdated and needs to be updated to reflect recent code changes. We will let you know when this updated example is available. In the meantime, the documentation for each contour method should provide working examples that will allow you to run all methods.
Thank you,
Aubrey

Many thanks, Aubrey.
Yours,
John
From: aubreyeckert<EMAIL_ADDRESS>Sent: Saturday, November 24, 2018 2:10 AM
To: WEC-Sim/WDRT
Cc: wyg110sjtu; Mention
Subject: Re: [WEC-Sim/WDRT] I can not run python example_contourApproach.py (#18)
Hello John @wyg110sjtu https://github.com/wyg110sjtu  ,
Thank you for alerting us to this issue. I believe that the example file that you are running is outdated and needs to be updated to reflect recent code changes. We will let you know when this updated example is available. In the meantime, the documentation for each contour method should provide working examples that will allow you to run all methods.
Thank you,
Aubrey
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/WEC-Sim/WDRT/issues/18#issuecomment-441297676 , or mute the thread https://github.com/notifications/unsubscribe-auth/AR0zfLi-5IsjEFPibqmfDLyqTHZ8OQRDks5uyDoMgaJpZM4YwlCG .  https://github.com/notifications/beacon/AR0zfEUz54A_gxs4EiXFQO1GByYjWYyaks5uyDoMgaJpZM4YwlCG.gif

@wyg110sjtu - Thank you for identifying this bug. We have fixed this w/ f9e2c4706a919f832da1e5496fe723cb5722c541.