Bad Request when sending message - "SessionError: No sessions"

some instances suddenly stop sending messages
response:
{ 	"status": 400, 	"error": "Bad Request", 	"message": [ 		"SessionError: No sessions" 	] }
/connectionState response:
{ 	"state": "open", 	"statusReason": 200 }

Reread the qr code.

ok, I updated to the latest version and the instance started sending the messages again. Is this a common problem?

I had the same problem with another instance.

when updating the service by portainer, and doing a re-pull of the image, the instances work again

randomly, the error message NO SESSIONS has been displayed, for a random contact... the procedure returns to normal if you reconnect whatsapp or restart the api

Reread the qr code.

yes that solves it, but daily, in the midst of several connections, this is becoming a habit to appear, is there no way to kill this bug?

This problem is solved using Redis to control the session... just enable it in the env.yml file

its possible to fix without redis?
Some times i need to restart codechat because i get this error:
[CodeChat]  199709   -  Wed May 31 2023 19:46:53     ERROR   [WAStartupService]  [object] SessionError: No sessions     at Object.5511958349862:17.0 [as awaitable] (/home/ubuntu/whatsapp-api/node_modules/libsignal/src/session_cipher.js:71:23)     at async _asyncQueueExecutor (/home/ubuntu/whatsapp-api/node_modules/libsignal/src/queue_job.js:20:29)
I dont need to read qrcode again, but i need to restart and connection returns.
Or someone can learn me how to up codechat with redis like the last answer

I am also having the same problem.
Among several messages, the error occurs on a single number.
It is also resolved by restarting the container, without the need to read the QR Code again.

I am also having the same problem. Among several messages, the error occurs on a single number. It is also resolved by restarting the container, without the need to read the QR Code again.

same with me


Is there a way to generate images in the comfyui browser that can be seen directly in Photoshop

as title

It seems there is already a custom node for that, and you don't even need the whole SD plugin ordeal for it to work.
But I can't say yet if that is actually working.


Updated README files as reorganized + Added bucket and shell sorts in the list

I added bucket sort and shell sorts in four README files (English, Chinese, German and Japanese). Also changed the path in README_JP.md as reorganized.

Pull Request Test Coverage Report for Build 313

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.539%

Totals

Change from base Build 312:
0.0%

Covered Lines:
2748

Relevant Lines:
3002

💛  - Coveralls


proxy_set_header Connection "Upgrade"

Updating to match nginx documentation (also linked in this page) which works. https://www.nginx.com/blog/websocket-nginx/

Thanks @timbze ... Hold a sec while I confer with our ⚔ Sergent at Code 🏰 ...
@anurse When we added this on https://github.com/dotnet/AspNetCore.Docs/pull/15897#issuecomment-575697593, we didn't do the map bit. Was that a proper bit for us to have added at the time?
map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

I needed that line for SignalR to work, but now I'm running into this issue: https://github.com/dotnet/aspnetcore/issues/17081

I ended up getting it working properly after using these lines:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
And not this at all proxy_set_header Connection "Upgrade";

The whole scenario is spelled out here :point_right: http://nginx.org/en/docs/http/websocket.html.
That's probably a good resource to add via a cross-link. It looks like if we're going to go with $http_connection that we should have the map entry.
I'll make an update to this PR with what I think would be good and then we'll see on review if it's sane.

 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: timbze sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@timbze, can you confirm that the guidance there works in your scenario?
Also, I'm taking the example content from our Nginx topic, so I'm now showing the full set of headers. We'll have to see if that's the right thing to show.
Also, can you sign the CLA if you agree with its terms. We can't merge this PR without that.

FYI @scottaddie ... This PR looks like it could've been merged without the CLA being signed. It only asked for it when I shot in a commit :point_up:. If I hadn't done that, I think we'd have had a .NET Foundation process violation for accepting content. cc: @jongalloway

@guardrex Yes it works for me with the example you have added now. And the other headers is exactly what I was using already too.

Cool Corebeans!:tm: :+1: ... so we just need this reviewed by one of the engineers that works more with Linux than I do, which is very rarely. :smile:

Note to self
Work #11403 immediately after this merges.

@anurse When we added this on #15897 (comment), we didn't do the map bit. Was that a proper bit for us to have added at the time?

I don't remember that being there when I used that post as a reference for earlier WebSocket configuration docs, but it seems reasonable to add it now.

I'll merge now. I think we're good here. I'll tend to the additional work on this subject asap.


feat(Fetch) support keep-alive connections

Currently keep-alive connections throw an IllegalStateException - already connected
This adds keep-alive support, by catching errors if already connected and not setting Content-Length explicitly.

Pull Request Test Coverage Report for Build 106

13 of 14 (92.86%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 98.901%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

nodes/src/main/java/io/aexp/nodes/graphql/Fetch.java
13
14
92.86%

Totals

Change from base Build 104:
-0.2%

Covered Lines:
540

Relevant Lines:
546

💛  - Coveralls


[RFE] Add cmd to generate source yaml for skopeo sync

Introduce a new subcommand to crane, skopeo-sync-gen, that will look for and
evaulate all exported ImageStreams to determine if they images (and the
image's tags) should be migrated. If an image is internally or externally built
(ie. is not mirrored from another registry like quay|docker), then it will be
staged.

/triage accepted
/priority critical
/kind feature

https://github.com/konveyor/enhancements/pull/77

Closed with https://github.com/konveyor/crane/pull/140


Support for JSON Schema

Any support for JSON Schema for inferring types like this or handling validation would be very useful. The spec has stabilised and the community has grown. OpenAPI v3.1 spec which is used across lots of organisations has first class support for JSON Schema v2020-12. Moreover, Orbit specific vocabularies can be easily added for better integration.

Duplicate of https://github.com/orbitjs/orbit/issues/931


[MM-47054] Change button label if upgrade is executed from System Console

Summary
When you enter the System Console, currentTeamId and therefore currentTeam are cleared (this is core mattermost functionality, and has been this way always), so we are unable to display Return to {team} as we don't know which team to return to. Since currentTeam was undefined, it was causing a javascript error cannot read display_name of undefined, triggering a white screen instead of the success page. This PR makes it so that if the currentTeam is undefined (ie, if the upgrade flow is accessed from the system console) the button label will read Return to System Console
Ticket Link
https://mattermost.atlassian.net/browse/MM-47054
Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

None

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

@nickmisasi not sure if this is the fallback needed. Maybe @marianunez can weigh in ?

@yasserfaraazkhan gentle ping on this one when you get a chance - should be a quick one :)


iOS example DecodeJpeg issue with Image Retraining model

Environment info
Operating System: iOS
Steps to reproduce

Follow the contrib/makefile/README to install the tensorflow iOS core lib
Create my own model with the Image Retraining tutorial
Run the iOS example, error is logged.

Logs or other output that would be helpful
Running model failed:Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs     [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]
Related to
#2754 except that I want to use the pd file generated from the Image Retraining tutorial

Sorry you're hitting problems! Since DecodeJpeg isn't supported as part of the core, you'll need to strip it out of the graph first. I'm working on a more user-friendly approach, but you should be able to run the strip_unused script on it, something like this:
bazel build tensorflow/python/tools:strip_unused && \
bazel-bin/tensorflow/python/tools/strip_unused \
--input_graph=your_retrained_graph.pb \
--output_graph=stripped_graph.pb \
--input_node_names=Mul \
--output_node_names=final_result \
--input_binary=true

Let me know if that helps.

@petewarden
I used your strip commands. The got rid of the DecodeJpeg error. But a new error has appeared.
Running model failed: Not found: FeedInputs: unable to find feed output input

Great! You should just need to update the input and output layer names to "Mul" and "final_result" respectively, here:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm#L300

Awesome! That fixed the last error, but now I'm getting:
Running model failed: Invalid argument: computed output size would be negative 	 [[Node: pool_3 = AvgPool[T=DT_FLOAT, data_format="NHWC", ksize=[1, 8, 8, 1], padding="VALID", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/cpu:0"](mixed_10/join)]]

Ah yes! The input sizes need to be 299, not 224. You'll also need to change the mean and std values both to 128. Here's the code I think you'll need:
  const int wanted_width = 299;
  const int wanted_height = 299;
  const int wanted_channels = 3;
  const float input_mean = 128.0f;
  const float input_std = 128.0f;

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm#L272
We will be collecting this in proper documentation soon too, but thanks for testing this out.

It worked! Thanks for all the help.

Hi,
I encountered the same errors and followed the suggestions. No longer getting any errors but I get the same prediction no matter what I point the camera at. What could be the problem?

After going through the steps pointed out by Pete Warden I am getting following result:
"I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:130] Session created.
I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:133] Graph created.
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:149] Creating session.
W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2016-08-07 05:59:05.511 CameraExample[6931:1736707] Received memory warning.
W tensorflow/core/framework/op_kernel.cc:936] Invalid argument: computed output size would be negative
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: computed output size would be negative
[[Node: pool_3 = AvgPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 8, 8, 1], padding="VALID", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/cpu:0"]]
"
And after this the application crashes due to memory warning

After going through the procedure told by Pete I am getting this result:
"I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:130] Session created.
I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:133] Graph created.
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
E /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/CameraExampleViewController.mm:306] Running model failed:Invalid argument: Session was not created with a graph before Run()!
I /Users/mohammadzulqurnain/Downloads/tensorflow-master/tensorflow/contrib/ios_examples/camera/tensorflow_utils.mm:149] Creating session.
W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2016-08-07 06:08:05.405 CameraExample[7012:1739781] Received memory warning.
"
And eventually the application crasshes, please help me out with this. Thanx in advance.

Just to let folks in the future know, the above steps outlined by @petewarden well for me. I was using macOS Sierra, Xcode 8.

worked for me as @petewarden instructions

This is a lot of steps .. is there anything more "baked" / mature that is closer to working out of the box?

petewarden's solutions work for me. There is an additional memory consumption error on iOS devices. I have added a comment here https://github.com/mortenjust/trainer-mac/issues/3 and pete talks about it more here :
https://github.com/tensorflow/tensorflow/issues/4255

@Zulqurnain24 The app is crashing due to apple force closing it due to the tf model taking up a lot of memory. Solution here : https://github.com/tensorflow/tensorflow/issues/4255 and ^ comment.

Thanx @scm-ns I have followed these instructions https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/ to reduce the footprint of the graph file and now it is working fine

Hi I follow all the steps, all the model can get the right answer using bazel, but I still get this error when I run on Android.
Inference exception: java.lang.IllegalArgumentException: computed output size would be negative
[[Node: pool_3 = AvgPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 8, 8, 1], padding="VALID", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/cpu:0"]]

I can reproduce the issue from @lxtGH
java.lang.IllegalArgumentException: computed output size would be negative
[[Node: pool_3 = AvgPool[T=DT_FLOAT, data_format="NHWC", ksize=[1, 8, 8, 1], padding="VALID", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/cpu:0"](mixed_10/join)]]

I fixed @lxtGH & @AlvarezAriel problem by running:
/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph --input=YOUR_STRIPPED_MODEL.pb --output_node_names=final_result --output=quantized_stripped_model.pb --mode=weights

Tried the quantize_graphy command by @jakublipinski to regenerate pb file. It doesn't solve 'negative output' issue in my case.
I followed all instructions above. Everything works great till the log shows "...Running model failed: Invalid argument: computed output size would be negative...". Does the training picture size matter here?

I have changes All the file name and Size  , but still getting below error.
Source Code  URL:
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios/camera
Changes Code : const int wanted_input_width = 229;
const int wanted_input_height = 229;
const int wanted_input_channels = 3;
const float input_mean = 128.0f;
const float input_std = 128.0f;
const std::string input_layer_name = "Mul";
const std::string output_layer_name = "final_result";
computed output size would be negative
[[Node: pool_3 = AvgPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 8, 8, 1], padding="VALID", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/cpu:0"]]
Please suggest what we are doing wrong .
In build pb and txt are working fine (imagenet_comp_graph_label_strings.txt, tensorflow_inception_graph.pb)
but created new pb and .txt is not working(rounded_graph.pb and retrained_labels.txt).
Note:  I also rename the pb and txt file ,

@petewarden I used tf.image.decode_jpeg to read in images while training my model. I want to deploy my model on android. Since this decode_jpeg is not available on android, is there an alternate solution using opencv or other java libraries. The pixel values are different when I read in the input image using decode_jpeg compared to opencv. This results in the logits being different for the same image. How can I have the same behaviour on android?


Add += operator for Trivia

A small convenience that makes it more convenient to construct Trivia imperatively.

@swift-ci please test

@swift-ci please test

@swift-ci please test


Support darwin-arm64

Is your feature request related to a problem? Please describe.
$ gh extension install stoe/gh-report
gh-report unsupported for darwin-arm64.

Describe the solution you'd like
Support darwin-arm64
Describe alternatives you've considered
n/a
Additional context
n/a

Wait for https://github.com/cli/gh-extension-precompile/pull/3

The latest GitHub CLI 2.8.0 release fixes this by falling back to amd64 binary if Rosetta is installed. If an arm64 binary is found, for example as a product of the latest gh-extension-precompile action, however, then its codesigning is fixed after downloading to allow execution by the OS.


Borrow checker not happy about TrackId reference.

Describe the bug
Code is not passing borrow checker after the latest commit implementing playlist-related CLI commands. Specifically, the reference to the TrackId is pushed to the a buffer that outlives the lifetime of the allocated data in deleted_hash_set.
To Reproduce
Run cargo check in project root.
Expected behavior
No borrow checking error.
Log and backtrace
? cargo check
    Checking spotify_player v0.14.1 (/Users/hoanglinh.nguyen/repos/public/spotify-player/spotify_player)
error[E0597]: `deleted_hash_set` does not live long enough
   --> spotify_player/src/cli/client.rs:601:22
    |
601 |             for t in &deleted_hash_set {
    |                      ^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
...
631 |     }
    |     - `deleted_hash_set` dropped here while still borrowed
...
635 |     track_buff = Vec::new();
    |     ---------- borrow might be used here, when `track_buff` is dropped and runs the `Drop` code for type `Vec`
    |
    = note: values in a scope are dropped in the opposite order they are defined

For more information about this error, try `rustc --explain E0597`.
error: could not compile `spotify_player` due to previous error

Environment

OS: OSX Ventura 13.5
Application version: e8cfab9dc923f6e293669d92a6e2fb5f17f10d40
Application features: if applicable, provide cargo features used to build spotify_player

Interesting, I didn’t see any issues when building the code. CIs also look fine.
Will check again later td.
cc @justjokiing. Maybe you can double check

Are you using the latest Rust?

Oh, that was the problem. After updating from my outdated Rust from March, it was happy again!
Thanks!


merge from konsum-frontend-svelte,template-css,template-svelte-app

package.json

chore(deps): add ^14.8.1 remove ^14.8.0 (devDependencies.stylelint)

:tada: This PR is included in version 1.31.17 :tada:
The release is available on:

npm package (@latest dist-tag)
v1.31.17
GitHub release

Your semantic-release bot :package::rocket:


Include camelCase components when importing

The frontend seems to accept components with type fields in snake_case and CamelCase.
This adds support for camel case.

Coverage remained the same at 94.614% when pulling 7a8bcfddc6331ed1c6d382511299cba6cad54edf on import-camel-case-components into a98b6c5f71ca2de23bd8a3a053612ff3e593cd94 on master.


No GPU/TPU found on nvidia cuda docker image.

Hi,
I'm trying to run jax on a docker image based on nvidia/cuda:11.3.0-cudnn8-runtime-ubuntu18.04 (I also tried different versions).
I'm installing jax and jaxlib according to the readme (I'm using poetry) -
poetry run pip install --upgrade jax jaxlib==0.1.67+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html
And when I try to run my script, I get the following error messages:
external/org_tensorflow/tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/nvidia/lib:/usr/local/nvidia/lib64
external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
I tried using a tensorflow base image, but I got the same errors. I tried searching for these errors, and most suggestions involve reinstalling cuda.
Anyone has any idea how to debug/fix these?
Thanks!

I haven't seen this error before, but based on the message, I would first verify you have libcuda.so.1 somewhere on your system (try locate libcuda.so), and then add that directory to LD_LIBRARY_PATH (try export LD_LIBRARY_PATH=/new/cuda/path:$LD_LIBRARY_PATH).
You also may need to create a symlink from your cuda install to /usr/local/cuda-11.1.
cc @hawkinsp who may know more.

Hi, @golanor
Could you please share your dockerfile?
Thanks!

Sure:
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu18.04

WORKDIR /app

COPY . /app

RUN apt update
RUN apt install -y curl unzip python3.8 python3-pip python3.8-dev

RUN mkdir /aws-cli \
    && curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /aws-cli/awscliv2.zip \
    && unzip /aws-cli/awscliv2.zip \
    && ./aws/install

RUN python3.8 -m pip install --upgrade pip \
    && pip install poetry \
    && poetry install \
    && poetry run pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html

ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/

Thanks a lot.
The line command "poetry install" breaks for  me. Does this error give you any ideas about what went wrong? I have never used 'poetry' before.
RuntimeError

 Poetry could not find a pyproject.toml file in /app or its parents

 at /usr/local/lib/python3.8/dist-packages/poetry/core/factory.py:369 in locate
     365│             if poetry_file.exists():
     366│                 return poetry_file
     367│
     368│         else:
   → 369│             raise RuntimeError(
     370│                 "Poetry could not find a pyproject.toml file in {} or its parents".format(
     371│                     cwd
     372│                 )
     373│             )

If you're not using poetry, then you can drop the two lines related to it:
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu18.04

WORKDIR /app

COPY . /app

RUN apt update
RUN apt install -y curl unzip python3.8 python3-pip python3.8-dev

RUN mkdir /aws-cli \
    && curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /aws-cli/awscliv2.zip \
    && unzip /aws-cli/awscliv2.zip \
    && ./aws/install

RUN python3.8 -m pip install --upgrade pip \
    && poetry run pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html

ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/

Thanks @golanor. Your docker file expresses the same "solution"  that has been suggested in many tickets before, also above by @skye, and that is to include the cuda directory to the LD_LIBRARY_PATH.
Nevertheless, I still can't run a simple example from Flax without getting the "No GPU" error.
I build the dockerfile that you provided (minus references to 'poetry') and inside the docker container I execute:
 apt-get install -y git python3.8
 git clone https://github.com/google/flax.git
 pip install ml_collections clu tensorflow-datasets
 cd flax/examples/mnist
 python train_test.py

@golanor: Would you like to do me the favor and test this on your side?

@golanor Hi! Problem solved if I base the docker image on nvidia/cuda:11.4.1-cudnn8-devel-ubuntu18.04 and install jax[cuda] rather than jax[cuda111]


Rwj11/703 fix compiler warnings

Fix warnings presented by clang-analyzer

The asserts suppress warnings with the use of VLAs, which are not in the C++ standard.  A previous attempt to address the same set of warnings was rewound, so we'll see if a less invasive fix might stick.
One clang-analyzer bug does remain according to the CI system, but this is not reproduced under clang++ v10.0.


[Bug] [radar] axisName.height & axisName.width & axisName.overflow & axisName.ellipsis config not working

Version
5.3.3
Link to Minimal Reproduction
Bug Demo
Steps to Reproduce
axisName:{
width: 5,
// or break\breakAll
overflow:"truncate"
}
Current Behavior
not working
Expected Behavior
show ellipsis
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
axisName.height
axisName.width
axisName.overflow
axisName.ellipsis
Please check all the configuration in axisName, and there are more configuration items that don't take effect

I also have sample question

我也遇到了

radar emphasis\blur itemStyle not working

@plainheart  please help fix chartRadar bug, thx

+1

I have the same issue :(

I have the same issue, pls help us

have the same issue, pls help us

have the same issue, pls help us

I have the same problem and solved it by myself in this way, but I still hope to solve this problem through width and overflow
formatter: (value: string) => {     const max = 5        return value.substring(0, max) + '\n' + value.substring(max) }

have the same issue, pls help us+++++++

Still not fixed.
I got a workaround for this using a formatter.
Function which takes string and maxWidth as parameters and imitate maxWidth by using real dom element and calculate when to break string using \n.
function wrapTextToPixelWidth(
  text: string,
  maxWidth: number,
  font = '12px Arial',
) {
  const span = document.createElement('span');
  span.style.visibility = 'hidden';
  span.style.whiteSpace = 'nowrap';
  span.style.position = 'absolute';
  span.style.font = font;
  document.body.appendChild(span);

  const words = text.split(' ');
  let currentLine = '';
  let result = '';

  words.forEach(word => {
    const testLine = `${currentLine + word} `;
    span.textContent = testLine;
    const testLineWidth = span.offsetWidth;

    if (testLineWidth > maxWidth) {
      result += `${currentLine.trim()}\n`;
      currentLine = `${word} `;
    } else {
      currentLine = testLine;
    }
  });

  result += currentLine.trim();

  document.body.removeChild(span);

  return result;
}

Then in the formatter function:
axisName: {
  formatter: (value: string) => wrapTextToPixelWidth(value, 140),
},


[Installation]: Install Gpu vllm got no module named triton

Your current environment
Install Gpu vllm 0.6.3 post6 with tesla v100and cuda 12.4,when import vllm got no module named triton

How you are installing vllm
install with source code

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Triton is no longer available on Windows as of PyTorch version 2.1.0.
Please install the build from here: https://huggingface.co/madbuda/triton-windows-builds/tree/main


How to use images without objects as negative samples

If I want to use many images without objects as negative samples, how should I define the COCO format or how to train it. My current training method does not seem to use these images without objects

@shallweiwei
train_dataset = dict(dataset=dict(filter_cfg=dict(filter_empty_gt=False, min_size=32)))

filter_empty_gt

I have used this,it didn't work.I have some background images without any objects.

(^_^) Thanks.I have solved this,it's because I made mistakes in json file.All of the background images had the same id……

Hi, where do I have to add this line?
to my config file?


Need help installing

Hi, I'm new to this type of stuff and I'm having trouble figuring out how to use this extension you made. Any help would be greatly appreciated.

Sure, let me know if these instructions work for you.


Reduce costs by limiting to only past 2 messages from history

Currently the entire conversations context is sent to OpenAI API which causes high costs per GPT4 query, how can we limit the context to only last two messages?

If you want to avoid sending the entire context, what about just starting a new conversation?


Separate counter for @bound while

Compressing the FSMs generated by top-down-st doesn't seem to be enough to make the Verilator errors stop. This attempts to separate out the counter for @bound optimized static while loops.

This won't quite work in the case when there are multiple threads in a par block with different backward transitions for the global FSM.


Update fly deploy workflow

When I tried to set up and run the fly deploy workflow, I got errors for the steps below which said that they did not work with Node 20 and I needed to upgrade them. They seem to be working now with Node 20 with these newer versions.

Thanks for this! Just want to figure out that @master thing.

Hey guys, this was actually fixed last week. https://github.com/superfly/flyctl-actions/issues/54#event-11949716469 I switched back and it is working fine.


Allow Console to Approve Slices

Allow Console to Approve Slices

https://github.com/Mooshay105/SlicerSliceManager/commit/5fdf96805e11be5ebcbf2fecc1b23d1144b23748


kubectl-diff last applied configuration

What would you like to be added:
I would like for there to be an easy way of diffing between the last applied configuration.
Also that it won't require a live k8s object but a local file aswell
See issue I opened in a similar tool on this
https://github.com/knight42/kubectl-blame/issues/5
Why is this needed:
To easily check what has changed (used after the fact by an admin with no audit access

/auto-cc

/label area/kubectl

/sig cli

/auto-cc

/area kubectl

We discussed this and decided that this should ultimately be achieved by git diff on the manifest. It would be an anti pattern to rely on the config last applied field to determine this and is not something we want to add support for.
cc @seans3
/close


Warning: The animation trigger "tabSwitchMotion" is attempting to animate the following not animatable properties: display

Reproduction link
https://ng-zorro-antd-ivy-wmzjs7.stackblitz.io
Steps to reproduce
Access a page with nz-tabset component on it.
What is expected?
Not to have the warning being displayed in the console.
What is actually happening?
The warning is being displayed in the console.

Environment
Info

ng-zorro-antd
18.0.0

Browser
Chrome

Reproducible also in 17.3.0.

Same in 18.0.1

Same in 18.1.1

Warning: The animation trigger "collapseMotion" is attempting to animate the following not animatable properties: overflow
(to check the list of all animatable properties visit  菜单这个也是哦

is there any solution to remove this warning in 18.0.0?

Same in "ng-zorro-antd": "^19.0.0"


Update Dio to ^4.0.0

Dio ^3.0.0 is causing lots of dependency issues in my project, as other packages depend on http, which Dio also depends on, and these dependency clashes cannot be resolved. Dio 4.0.0 is stable and null-safe.
I forked this package and have been using it without issue after bumping Dio to ^4.0.0. I'm having a lot of trouble getting docker set up and working on my machine, though, so I haven't been able to run tests and submit a PR.
Can you bump Dio to ^4.0.0? Thanks.

Hello @Jethro87!
Thanks for your feedback. Even if you didn't succeed to test locally your changes, you can submit your PR: the tests will run and we will be able to check together if there are any changes to apply before merging :) It would be awesome to have you on the contributor list 🙂

Thanks, @curquiza! PR here #41.


[question] interacting with data from a stream

I understand this project is a relatively new undertaking, but I was curious about some future features, and the end goal of vx, specifically around the idea of processing and graphing live data.
D3 exposes a number of mechanisms that make it, relatively, easy to handle data from a stream. Obviously here these mechanisms are somewhat hidden, due to the nature of these components. Is there a plan to support plotting/charting/graphing data from a stream?
Currently, the only way I see this being possible is to store a data object, and as new data points are added, append them to the data object and pass that data back into the component. The issue I'm seeing is that given a relatively fast stream (say 1 new data point every 100ms) performance begins to drop.
A better solution might be to provide the chart some mechanism to receive data from a stream (callback to process the incoming request or similar) and then render the data point and shift it onto the visible chart/graph area. The visible data would need some sort of limiting factor, be it max data points or a sort of decay based on a time series. I see a number of viable use cases related to server performance dashboards, geo-location & heatmap plotting, or live active user counts that could benefit from a feature like this tremendously.
Is this something you've considered or something that might be coming in the future? Are there currently mechanisms in place that might allow me to create my own stream-based component?

Hi @matthax thanks for checking out vx. vx will remain unopinionated about this for now. Since vx is just react there are many different approaches, assumptions, and trade-offs. Should able to wrap vx components in your own and turn them into stream-based components. Would love to see additional libraries made that would make this easier for folks.


Fix api issue: average rating

The backend changed its endpoint name for average rating

 SPR5: Dashboard: average rating


Split jenkins nginx configuration per website

This pull request split the jenkins.io nginx configuration in two, the goal is to prepare the land for this pull request https://github.com/jenkins-infra/jenkins.io/pull/4233 so we can update the English and Chinese docker image separately.
Signed-off-by: Olivier Vernin<EMAIL_ADDRESS>

This pullrequest doesn't modify the way jenkins.io is deployed at the moment, but it will allows us to first update the English website without touching the Chinese version. The purpose is to test the new workflow


Documentation for beginners?

I'll preface by saying I'm not sure if this is the right place to ask, but is there any available documentation for beginners?
I've been using Spyder for a few weeks now and loving it, but I still feel like I'm scratching the surface of what's possible, even at a beginner level. Are there any good resources out there that provide a comprehensive intro to the features and use?
The current documentation mainly focuses on the features, but doesn't have use examples. I've only found things like:
http://www.southampton.ac.uk/~fangohr/blog/spyder-the-python-ide.html https://www.youtube.com/watch?v=A6_gh0vrZ-E
While helpful, these feel like a collection of tips and tricks, or in the case of the video, really just using Spyder to teach CS. T
For example, PyCharm has guides like:
https://www.jetbrains.com/pycharm/quickstart/ https://confluence.jetbrains.com/display/PYH/Getting+Started+with+PyCharm
These provide what feel like more comprehensive introductions to the tool.
If so, how can I contribute?

Thanks @AlanZZhao for your comments, the spyder development team tries hard to develop new features and fix bugs, but it is true that we could use a hand in the documentation department.
The PyCharm Quickstart guide could serve as a template for a new documentation. The projects capabilities are being worked at this moment for the release of version 3.0, so hopefully we will have a better tutorial by then.
In the mean time, how is your markdown and Restructured text knowledge :-) ?

@AlanZZhao, there's a tutorial for beginners, under the menu
Help > Spyder tutorial


Export/Import on Android

Android doesn't have native file open/save dialogs, so export will just save file to TIC working folder

added file load/save dialogs to Android build
therefore export import add get console commands work on Android now

closing on .19

This is huge! Will this work for exporting html5 too or no? Awesome work.

@trelemar yes, it will export html5 too

I'm getting "An error occurred while viewing this webpage. To continue, tap Refresh or go to another page" when I open the .html file.
Can u help me? Using S8+


Stop computation when off

done in https://github.com/steren/rtx-on/commit/03720d98aa8818a03169923a28694ad78f2682a5


Allow for macros in card descriptions

Would be neat if a player could view their card and in the description it requests them to click to roll against a skill (for example).  This could tie into the display card in chat enhancement allowing players to draw cards, roll against them and display their process in chat and result!

Do you mean like the way Items allow for inline rolls in their descriptions? Cards don't really support rich text unfortunately, so it would be odd for Monarch to add rich text.

Ah, ok bummer.  I was attempting to translate pathfinder cards into the system from a deck I own.  And the cards when drawn request the user to perform various skill checks to see if they succeed.  The game deploys in a 3x3 grid of these cards..and was seeing if monarch could pull that off.


Various XCC fixes to compile warnings

__builtin_unreachable needs to be a loop
include soc.h
use weak function after declaration

Codecov Report

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

@@           Coverage Diff           @@
##           master   #11012   +/-   ##
=======================================
  Coverage   53.21%   53.21%
=======================================
  Files         217      217
  Lines       26667    26667
  Branches     5913     5913
=======================================
  Hits        14192    14192
  Misses      10059    10059
  Partials     2416     2416

Impacted Files
Coverage Δ

drivers/timer/sys_clock_init.c
0% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Misc - mark callbacks in EctoHooks as optional, update docs

Fixes an issue where you could not add @behaviour EctoHooks and @impl EctoHooks to expected callbacks unless they were all defined.
Updates (and fixes a small typo) in docs.

@ellehallal @tonyrud here you go 😎

Thanks @vereis! 👏

🥇 thanks @vereis!


Traceback (most recent call last):   File "yolo.py", line 157, in      height, width = frame.shape[:2] AttributeError: 'NoneType' object has no attribute 'shape'

Traceback (most recent call last):   File "yolo.py", line 157, in      height, width = frame.shape[:2] AttributeError: 'NoneType' object has no attribute 'shape'

did you resolve the issue/

did anyone find this solution?


Zed fails to start language server "oxc"

Hi, I just tried the zed-oxc extension but it doesn't work on my laptop.
Zed.log contains the following error:
2024-09-25T10:00:29.751856+02:00 [ERROR] failed to start language server "oxc": installed package 'oxlint' did not contain expected path '"./node_modules/@oxclint/darwin-arm64/oxc_language_server"'

The issue seems to be a wrong binary path reference, the parent folder should be @oxlint instead of  @oxclint.
This is very strange because the path seems right in the code:
https://github.com/suxiaoshao/zed-oxc/blob/d0d0d0ee5216c442590d12a6e90591b711eb20cb/src/oxc.rs#L12
I see there are no release tags for this extension, is it possible you have to republish it?

I already know what the problem is, and I will fix it in the next couple of days.

The oxc extension of the Zed extensions market has been updated and solved this problem. You can try whether version 0.1.1 has solved this problem.


Missing dependencies

@testing-library dependencies are missing in both templates, type dependencies are also missing in the typescript template.

The changes have been pushed out in new npm releases. Thanks!

Thanks for the template!


[GraphScope/Docs] Introduce the built-in algorithm library of GraphScope, and the programming model for user-defined algorithms

Add a feature description to introduce:

The built-in algorithm library of GraphScope
2.Users can write their own algorithms in Pregel and PIE

Covered by  #2286


[RFC] luci-app-shadowsocks-libev: port to client side

@jow- @yousong

@yousong @jow- Updated that iptables check code.

It seems that Table section is not implemented in client-side? @jow-
https://github.com/openwrt/luci/blob/176cbe12ea29006e4d4bf9dd3fe2ee708c010372/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/instances.lua#L26

Use form.TableSection

@jow- But that Table is not bind to uci section. It pass instances to the table. How to implement this in client-side?

I'm try using GridSection. However the sectiontitle callback does not have type information, I can't make it looks like the original one.

The sectiontitle() callback receives the section ID, with that you should be able to lookup the type:
var s = uci.get(conf, section_id),
    type = s ? s['.type'] : null;

...

@jow- I found a bug in form.js.
handleAdd in CBIGridSection should have name argument:
https://github.com/openwrt/luci/blob/176cbe12ea29006e4d4bf9dd3fe2ee708c010372/modules/luci-base/htdocs/luci-static/resources/form.js#L1393-L1399
Just like in CBITypedSection:
https://github.com/openwrt/luci/blob/176cbe12ea29006e4d4bf9dd3fe2ee708c010372/modules/luci-base/htdocs/luci-static/resources/form.js#L874-L879

I think it's done. Please test it and see if it's any bug or missing feature. Thank you! 🙂

LGTM from my side. @yousong - any objections?

I'd like to give it a try in the weekend.  Sorry for the delay.

No problem at all, take your time.

@ysc3839 Section name input should be taken into consideration when adding new instance.

@yousong But empty names is allowed.
https://github.com/openwrt/packages/blob/8f5c0c763ccb4d67a6868cfd1178b12ce779de0c/net/shadowsocks-libev/files/shadowsocks-libev.config#L1

@yousong But empty names are allowed.
https://github.com/openwrt/packages/blob/8f5c0c763ccb4d67a6868cfd1178b12ce779de0c/net/shadowsocks-libev/files/shadowsocks-libev.config#L1

I mean the newly created section should take the name when given in the form.  It's nonymous onky when it's empty.  Is that so in your newer version?

@yousong I know what's wrong with it. I'll fix it.

Thank you!


Access API with another authentication method

Describe the solution you'd like
I have developed a mobile app for iOS (https://apps.apple.com/gb/app/appcenter-ms/id1500775160?l=es) which can only be using using an API token. I would like to use the API allowing the user to authenticate using his/her AppCenter.ms credentials (GitHub, Microsoft, Google Account).
Describe alternatives you've considered
I have considered different alternatives.

Implement a non authenticated endpoint on the API (/login , for example) for providing a Single Sign On experience that leads to the automatic creation of an API Token.
Allow the API to be authenticated using Microsoft accounts credentials by posting user / pass on each request (I don't consider this a good option).

Additional context
My version of the App Center app for iOS includes features to monitor analytics and diagnostics information. Some users find it difficult to login using an API token due to the mobile screen size, and where the API token creation is present on the WebApp.
Having an API Token can lead to a security breach if the token is not renewed frequently, or has the appropriate access control. A login using an SSO like GitHub account will be more secure.

Hello @DmitriyKirakosyan how are you? Is it any way I can contribute to this feature request?


Sentinel Role Descriptions

The Description column for all Sentinel Roles in the roles table is incorrect. Correct descriptions available at https://docs.microsoft.com/en-us/azure/sentinel/roles

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 99581afb-7950-6daa-7227-055d04446b7e
Version Independent ID: f1a5bf89-9e54-aede-3a9a-70788a95927b
Content: Azure built-in roles - Azure RBAC
Content Source: articles/role-based-access-control/built-in-roles.md
Service: role-based-access-control
GitHub Login: @rolyon
Microsoft Alias: rolyon

@pzerger
Thanks for your feedback! We will investigate and update as appropriate.

@pzerger
Thank you for pointing this out! I've created a PR to update the documentation and it's currently waiting for the author to review and sign off.

I will now close out this issue. Please allow some time for the author to review and the changes to reflect.
Thank you for your time and patience!


Npm fails to install ember-cli-babel  v5.1.4

Hi there.
It seems there is  an issue with latest release of ember-cli-babel.
When running npm install on a clean ember-cli-project,
I've got this error message.
~/c/e/facade-web git:master ❯❯❯ npm install                                                                                ✱
npm ERR! git rev-list -n1 broccoli-peristent-filter: fatal: ambiguous argument 'broccoli-peristent-filter': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 broccoli-peristent-filter: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 broccoli-peristent-filter: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 broccoli-peristent-filter:
npm ERR! git rev-list -n1 broccoli-peristent-filter: fatal: ambiguous argument 'broccoli-peristent-filter': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 broccoli-peristent-filter: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 broccoli-peristent-filter: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 broccoli-peristent-filter:
npm ERR! git rev-list -n1 broccoli-peristent-filter: fatal: ambiguous argument 'broccoli-peristent-filter': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 broccoli-peristent-filter: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 broccoli-peristent-filter: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 broccoli-peristent-filter:
npm ERR! Linux 4.1.4-1-ARCH
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.13.4
npm ERR! code 128

npm ERR! Command failed: git rev-list -n1 broccoli-peristent-filter
npm ERR! fatal: ambiguous argument 'broccoli-peristent-filter': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/jlevesy/code/experiments/facade-web/npm-debug.log

When I force  ember-cli-babel to 5.1.3, everything runs fine.
Anyway, thanks for your work :)

Same here, it looks like that branch https://github.com/babel/ember-cli-babel/blob/master/package.json#L24 does not exist.

Having the same error here.

likewise

Version 5.1.5 was just published with the corrected repository reference. Let us know if you have any issues with that release.

@gordonkristan thanks for jumping in. I took a bad moment to grab lunch :p

Thanks a lot


WillPad

Ready to make a PR? Great! Make sure your directory structure looks like this:
├── CAD
│   ├── case.stl
│   └── plate.dxf
├── firmware
│   └── rp2040.bin
└── PCB
├── macropad.pro
└── macropad.sch
(The file names do not matter, just the folders)

Hey! You seem to have uploaded the whole cad model to the PR, please upload the case to the folder! Also, I see that you haven't requested screws, add them to the BOM!

Hi, I add the STL and update the BOM, but for the screw or the spacer, if you don't have it, I already have it, that's why I didn't put it in the BOM at first.

Yes sure I look when I m home

So, I just look and it work perfectly


Strange display of a leaflet map when shadowDom is enabled.

Description
Strange display of a leaflet map when shadowDom is enabled.
Live Demo
http://search.datao.net/testMap.html
Steps to Reproduce
The live demo of the bug is as is:
two frames are displayed. The left frame contains a leaflet map in a litElement where shadowDom is disabled (i.e overide of createRenderRoot to return "this"). The right frame contains a leaflet map in a litElement with a shadowDom.
Expected Results
Both frames should display a map correctly.
Actual Results
The map on the left frame is displayed correctly.
The map on the right frame is disorganized.
Browsers Affected

[ ] Chrome
[ ] Firefox
[ ] Edge
[ ] Safari 11
[ ] Safari 10
[ ] IE 11

Versions

lit-element: v2.4.0
webcomponents: v2.5.0

Oops, my mistake.
I forgot to deal with CSS in my component.
Adding
<link rel="stylesheet"<EMAIL_ADDRESS>/>
to my render() function corrected the problem.
Sorry for raising that issue.
This IS NOT an issue.
[I just need to investigate how to deal with CSS boundaries in shadowDOM]


The enrollID should not be included in the subject of transaction certificates

Description
Transaction certificates currently include the enrollID as part of the subject in the X509 public certificate.  Given that tcerts are used for unlink-ability, this needs to be fixed.
Describe How to Reproduce
Enable security, use transaction certificates and decode the X509 certs.  Easiest way to do this is to simply extract the cert bytes from the block/transaction API response and decode them

Hi @mastersingh24, good catch. @diegomasini, please,  may you take a look at it. Thanks :)

@diegomasini  - are you looking at this one?  Else I am happy to handle

@mastersingh24 yes, we will take care of this one. Thanks!

Can we please re-open this (1409) and assign to me?
[While related, the commit do not close this entire issue]

Per request of @JonathanLevi

@JonathanLevi my suggestion is to put the encrypted TCertIndex in the X.509 subject. This requires to move the encrypted TCertIndex from the Extensions list of the certificate to the subject.

Sure, will take care of this. Thanks guys.

@JonathanLevi  -  did this get handled?  I'll check myself, but if you know we can close this that would be great

@mastersingh24 Will close this today.

Just a quick one (and sorry these 2 lines change took some coordination).
The encrypted TCertIndex is an AES-CBCEncrypted []byte slice that is not really usable, let alone readable, even [more so? ;-)] after Base64 Encoding:
NewCertificateSpec:
    id='test_user0'
    CommonName=
**9ey+oKgHNjUsRATgCNp+eBWXJfwTIvoxAyAWJhvKMR7zgV9/Mjf2ETag7mAXZXUKg1UTJmdHGMU0xyYDGAiG+w==**

Or even if we use the not encrypted TCertIndex (just for argument's sake)
NewCertificateSpec
    id='test_user0'
    CommonName=**236710024325267987903988429987708228792**

Neither feels like a common name field value (while the latter might still introduce some linkability issues down the line).

So diverging a bit from the request to move the encrypted TCertIndex from the Extensions list of the certificate to the subject: Unless there's any objection, how about we just put a 'Transaction Certificate' text in the common name field of the TCert (yes, rather than the EnrollmentID which is currently there in the clear).

No objection from me.  Makes sense to just use a static string here and "Transaction Certificate" makes perfect sense

OK, will quickly add a test to verify that we don't "release/issue" TCerts with any other Subject.CommonName and PR this 2 liner. Thanks again.

Can the chaincode know the identify of the user that has initiated the transaction based on the certificate? What attributes of the certificate are accessible to the chaincode? I would like to use the identity of the initiator to perform authorization.


sync with master

Describe the pull request:

[x]  Bug fix
[x] Functional change

Pull request long description:

Establish connection to new mq

deprecating that branch and closing this issue.


No NPM support

It would be good to publish package to npm

Package published as webcam ;)
https://www.npmjs.com/package/webcam


Example Portal for Turing Institute "Hate Speech Data" Catalog

Build a lightweight data portal for Turing Institute catalog of hate speech datasets to support them and demonstrate use of PortalJS.

Site: https://portaljs-alan-turing.vercel.app/
Code: https://github.com/datopian/portaljs/blob/main/examples/alan-turing-portal

Alan Turing Institute are using Github to maintain hate speech data in different languages: see https://github.com/leondz/hatespeechdata which is being published using jekyll at https://hatespeechdata.com/. The content/metadata is currently a big list in a README (screenshot):

We pinged with them and they are interested in PortalJS approach. Their developer has said more about what he would like here: https://github.com/leondz/hatespeechdata/issues/93
TODO: summarize key points
Acceptance

[x] Home page displaying latest datasets. 💬2023-05-01 First pass is here https://portaljs-alan-turing.vercel.app/

[x] List of all datasets
[x] Faceting/filtering datasets by language and medium (e.g. show totals, supporting or'ing e.g. showing datasets with ...)

[x] Submit process: instructions on how to create a dataset and submit it e.g. a template markdown file plus instructions on doing a pull request. :heavy_check_mark: contributing.md
[x] Static pages - maybe just README which is incorporated into front page :heavy_check_mark: This page gets rendered into / and all extra pages will also get rendered one for one

[x] Instructions on how to add new pages (ie. anything in content will go onto the site one for one) added an explanation in the how to contribute section that anything in content will go onto the site on for one eg: about.md becomes /about

LATER

[x] Page for each dataset at e.g. datasets/xyz :heavy_check_mark eg: https://portaljs-alan-turing.vercel.app/datasets/abusive-language-detection-on-arabic-social-media-al-jazeera
[x] Page for each keyword dataset at e.g. keywords/xyz :heavy_check_mark eg: https://portaljs-alan-turing.vercel.app/keywords/hurtlex

Tasks

[x] Deploy a preview on Vercel as quickly as possible
[x] Index all pages in the app (Markdowndb?)
[x] Create the homepage and display the datasets
[x] Allow for searching
[x] Add instructions to contribute in index.md (can be very basic - just use this template and add a file here using a PR) :heavy_check_mark: I've created a separate file called contributing.md which gets rendered in the index page

[x] Add dataset template in templates/dataset.md :heavy_check_mark: dataset.md
[x]  Add list of keywords template in templates/list-of-keywords.md :heavy_check_mark: list-of-keywords.md

[x] Add the ability to create static pages i.e. anything in content shows up as a page - use flowershow :heavy_check_mark: eg: https://portaljs-alan-turing.vercel.app/contributing
[x] Add at least 3 more datasets Added 5 more(total of 9 now)
[x] Add a "Built with PortalJS" to the footer Added linking to portaljs.org
[x] Revamp the README(Add an intro for instance) Added an intro also pointing out that this was built with PortalJS
[x] Decrease images and center them Decreased by half and centered them

Notes
Design Summary
Layout on disk
pages/
  index.tsx
content/datasets/
  albanian-xyz.md # one file per dataset
content/keywords/
  weaponized-word.md # one file per dataset

Home page sketch:
TODO: insert ...
Design

[x] What are needs/wants? ✅2023-04-26: see summary above
[ ] Data model / structure ✅2023-04-28 store metadata in markdown files frontmatter

[x] How do we store metadata in github? ✅2023-04-28 a file for each dataset in datasets with metadata in frontmatter

[x] How will we use markdowndb?  ✅2023-04-28 not that much since we will still need a search index

[x] Where is the data itself? Random places. Data link in README are to "data homepage" not actual data files ✅2023-04-28 we won't present data for how. just link to data home page - a bit like the 538 portal

[ ] 🏆  could add data links later

[x] What metadata fields are their? ✅2023-04-28 All files have the same basic fields but fields are not always in the same format, some have an extra field (e.g. Dataset Reader). see details below.

[x] Information architecture i.e. what does site look like? homepage with list and search + individual dataset pages

[x] Wireframe and sketches? ✅2023-04-28 sketches that were printed in the acceptance
[x] focus on doing filters etc on the front page  e.g. i want by language, do that on the front page somehow (don't split into too many pages if you can help it) Medium is also useful, and full text search can be done

[x] Where do we put the Lists of abusive keywords? Put on home page underneath datasets like today
[x] Where do we put the portal? ✅2023-04-28 in examples folder for now (could move to app later maybe)
[x] discussion of "static pages". will these be full blown pages(eg: /about /contact etc) or just sections in the homepage
[x] Current portal only links to the data (No previews) will that stay the same? ✅2023-04-28 yes it will stay the same

Metadata fields
The hatespeechdata database stores a series of studies on hatespeech on a numerous of online platforms. Every dataset is a scientific article, most fields are standard, problem is, they don't always follow the same conventions. Almost all articles are basically studies on a sample of social media "objects"(Tweets, Youtube comments, Forum threads etc) and how much of the language in that sample is offensive.
Besides that they also have another "object" in their repo "Lists of abusive keywords" which seems to be a list of publications/api that allow users to verify if a word is abusive in a given language, there is only 6 of those, the metadata is kinda of consistent, all have a title, a description, a reference and a link, and one has the size of the lexicon.
Link to publication # Every dataset has an article behind, this is the link to the article
Link to data # The data home page, not always an actual .csv
Task description # ??
Details of task # ??
Size of dataset # The size of the dataset studied(Can be the number of posts, comments etc)
Percentage abusive # How much of the language inside the studied sample is offensive
Language # The language in which the sample is written(English, Portuguese, Bengali...)
Level of annotation # Where it comes from in the platform (Usually posts but if studying Youtube could be for instance commends)
Platform # The social media platform in which the data was sampled(CAN BE FACET)
Medium # In what medium the data was presented(90% of the time its just Text)
Dataset reader # Not sure on what that means, only 6 ddatasets have this
Reference: # Academic reference for the article so people can cite it

Questions

[ ] There is a size of dataset field, but sometimes it means number of posts that were studied in the article, sometimes it means the number of replies to posts, sometimes the number of comments
[ ] The percentage abusive metadata field seems inconsistent, sometimes it's written as a number (0.33) others with the percent sign (0.33%) others with the number + percent sign + description (7% misogynistic, 27% abusive (i.e. 20% abusive but not misogyny
[ ] The "link to data" field is sometimes a link to the raw data and sometimes a link to dataset home page. Would recommend splitting this into two fields e.g. data_homepage and resources following frictionless (or files)

Improvements for the future

[ ] Move the raw data files that are referenced into a single location e.g. in the repo ... so that you avoid bitrot and can do previews etc

Questions

[ ] Source repo link? See https://github.com/datopian/portaljs/tree/main/examples/alan-turing-portal

[ ] Can you link to a raw source dataset so have example of what it looks like? abusive-language-detection-on-arabic-social-media-al-jazeera dataset

Suggestions

[ ] Would recommend filters to be checkboxes (rather than dropdown) - see lifeitself.org/ecosystem
[x] Do we make home page markdown with components we put in it ... or js with markdown sections (pulling content from other files) ✅2023-05-01 we will go html route (see notes below)
[ ] 🔽 Ability to have markdown after frontmatter in dataset pages Possible will work on this next
[ ] What about keywords Same as datasets except without filtering (use same components)
[ ] Templates: let's use obsidian convention and put stuff in templates directory i.e. templates/dataset.md - see e.g. https://github.com/life-itself/community/blob/main/content/templates/projects.md?plain=1

Home page as markdown or jsx discussion?
Home page as markdown e.g. README.md
Welcome to xyz

<DatasetCatalog datasets={{datasets}}/>

<KeywordCatalog />

Home page as jsx i.e.g /pages/index.jsx
function Page ...

 return (
   <>
     <DataRichDocument content={{home.md}} />
   </>

Datasts

   <DatasetCatalog />

Keywords

   <DatasetCatalog />
 )

Suggestions 2023-05-04

[ ] 🔥🔥 Remove bullet points from list and convert into headings. Can be done either overriding @tailwindcss/typography or not using markdown lists 💬2023-05-07 have headings - not lists!
[ ]  🔥🔥🔥 Have a button on the hero section "See the datasets" (after intro before contributing). Can be done by adding html into the .md 💬2023-05-07 great let's do that
[ ] 🔥 Align dark mode button to title - or have navbar back?
[ ] 🔽  Default to light mode. Can be done by overriding the user preferences in the browser 💬2023-05-07 flowershow supports this out of the box ...
[ ] 🔽 Remove border-radius form images. Can be done by overriding the @tailwindcss/typography standard styles 💬2023-05-07 does this really require changes typography styles?
-[ ] (xs)🔥 The spacing above "Datasets" is wrong (currently 7rem)  Example with 3.5 rem https://i.imgur.com/9MHTrCn.png and 2rem https://i.imgur.com/QJcgw4s.png

@luccasmmg can you update on which these are done (i've also added clarifying comments)

@luccasmmg I've moved this to the next sprint as we still have items to fix. See above.

@luccasmmg this is in review? What is there to review exactly?

Nothing to review, name changed to turing

FIXED.


Convert it into null Safety

Convert this package into null safety

https://github.com/pstromberg98/flutter_bouncy/issues/12


[Bug] Incorrect package name after moving file

Describe the bug
Just a wrong package name set in WebViewExtensions after moving the file under commit: 52a48d3b4f80aaec9cbefb78de2e7bbf477d039a

How to Reproduce
No need to repro. This is not a bug, it is just a code fix. I hope this is the best way to report this.
Expected behavior
Package should reflect the correct value here.
Environment
- DDG App Version: N/A
- Device: N/A
- OS: N/A

Seems to be fixed an/or no longer relevant


Bug 2165960:[release-4.12] add annotation to the CSV for disconnected env

Signed-off-by: Nitin Goyal<EMAIL_ADDRESS>

/lgtm


Suggestion: allow the creation of collection directly from "new product" page

Do you plan to create a collection directly from the "new product" page?

@stephane-klein - This project has entered maintenance mode. We are moving feature requests to GitHub Discussions to track the most requested features (using the upvote mechanism) and streamline GitHub Issues around bugs. Could I ask you to re-open your request here: https://github.com/medusajs/medusa/discussions/categories/feature-requests
Thanks!


Add C++ doc links on type doc page

What
Also, now using the python versioning scheme instead of the rust versioning scheme for docs on gh-pages branch.
The Python one seems to keep versions nicely which we leave to docs.rs on Rust

Python: https://github.com/rerun-io/rerun/tree/gh-pages/docs/python
Rust: https://github.com/rerun-io/rerun/tree/gh-pages/docs/rust

Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested demo.rerun.io (if applicable)
[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

Is this closing https://github.com/rerun-io/rerun/issues/4332 btw?

yes!

added doc links in the other two places but rerun_cpp/README.md is a weird one because it is also the landing page of the docs itself 🤔


Race condition when setting up 1-guardian federation

Refreshing (resubmitting) the page seems to fix it.

https://github.com/fedimint/ui/pull/142/files#r1318887381

Duplicate of #169


New gem release?

It seems like the 1.4.11 release was done in September, 2015, but there have been a few minor fixes merged into master, https://github.com/zk-ruby/zookeeper/pull/86 and https://github.com/zk-ruby/zookeeper/pull/82 for example. With the latter I was able to build this gem on an M1 Apple Silicon Mac. Would it be possible to cut a new release for supporting installing on new Mac hardware?

Just wanted to bump this if anyone with maintainership would agree on doing a new gem releases, so that this gem can be installed on Apple Silicon CPUs.

Just another friendly bump on this issue, if there's any maintainer who might be able to cut a new release?

Hey, I'm now talking with someone who may be able to contribute as a maintainer and cut releases etc. I haven't touched the code in 6 years, and I'm not sure I could even cut a release now. I'm hoping that we can cut a new release soon as several people are interested in these patches. I'll try to keep this ticket updated as things progress.

Thanks for the push! We've released v1.15.0 which adds support for GCC 8 and ARM


UITableViewCellContent Width error in Xcode 6 beta 6

Summary
I am testing this for iOS 8 in a single view app with one UITableViewController. When loading the view the application crashes with a constraint error:
2014-09-02 13:35:24.643 SWTableViewTest[2825:1288271] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

(
"<NSAutoresizingMaskLayoutConstraint:0x14689bf0 h=--& v=--& H:[UITableViewCellContentView:0x14687360(0)]>",
"<NSLayoutConstraint:0x14594e60 SWUtilityButtonView:0x14688980.width <= UITableViewCellContentView:0x14687360.width - 90>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x14594e60 SWUtilityButtonView:0x14688980.width <= UITableViewCellContentView:0x14687360.width - 90>

Relevant code
- (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerLeftUtilityButtonWithIndex:(NSInteger)index {
    switch (index) {
        case 0:
            NSLog(@"Will add new cell");
            break;

        default:
            break;
    }
}

- (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerRightUtilityButtonWithIndex:(NSInteger)index {
    switch (index) {
        case 0:
            NSLog(@"Will delete cell");
            break;

        default:
            break;
    }
}

- (BOOL)swipeableTableViewCell:(SWTableViewCell *)cell canSwipeToState:(SWCellState)state {
    return YES;
}

- (BOOL)swipeableTableViewCellShouldHideUtilityButtonsOnSwipe:(SWTableViewCell *)cell {
    return YES;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    SWTableViewCell *cell = (SWTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];

    NSMutableArray *leftUtilityButtons = [NSMutableArray new];
    [leftUtilityButtons sw_addUtilityButtonWithColor:[UIColor colorWithRed:0 green:249 blue:70 alpha:1.0] icon:[UIImage<EMAIL_ADDRESS>    NSMutableArray *rightUtilityButtons = [NSMutableArray new];
    [rightUtilityButtons sw_addUtilityButtonWithColor:
    [UIColor colorWithRed:1.0f green:0.231f blue:0.188 alpha:1.0f]
                                                title:@"Delete"];

    cell.leftUtilityButtons = leftUtilityButtons;
    cell.rightUtilityButtons = rightUtilityButtons;
    cell.delegate = self;

    cell.textLabel.text = [_testData objectAtIndex:indexPath.row];

    return cell;
}

Anyone have any idea how to fix this? Thanks.

when i comment these lines in SWTableViewCell.m warnings goes away ...
[NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationLessThanOrEqual toItem:self.contentView attribute:NSLayoutAttributeWidth multiplier:1.0 constant:-kUtilityButtonWidthDefault],

I can confirm @netherlol's observation (iOS8 only app). Unfortunately @bretongoers's solution does not work, nor does any solution from the mentioned SO thread. Is there a proper way of fixing this?

I've had a similar issue. It seems that when setting the constraint that determines the width of buttonView, contentView does not have a specific width yet.
My solution:

setting a specific button width, rendering the troublesome constraint moot,
removing the constraint in question.

@Uupis I ended up doing exactly what you said and can confirm it's working OK.

Or you can just put there lower priority then 1000.

@bretongoers setting the frame before initializer resolves the constraints issues for me.
This is my SWTableViewCell subclass:
- (void)initializer
{
    self.contentView.bounds = CGRectMake(0, 0, 99999, 99999);
    self.contentView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
    [super initializer];
}

@Uupis can you provide sample code on what you have done to resolve the errors? You are correct in your assumption - the constraint is being set before the contentView has a width as determined by the layout engine.
I'm wondering if moving the setting of these constraints is in order, so the layout engine has a first pass to establish the width of the cell.

@bretongoers fun fact: I was trying to get it to happen again just now, since I don't have access to the code causing issues previously, but it works fine if I am using a vanilla SWTableViewCell. I suspect it might point to an issue with constraints in my subclass.
Anyway, here is the gist of how I worked around my issue:

set the revealed button width manually, when preparing the cell for tableview, using
- (void)setLeftUtilityButtons:(NSArray *)leftUtilityButtons WithButtonWidth:(CGFloat) width;
(line 45, SWTableViewCell.h)

remove the constraint that gives me trouble: (I believe it was this one, anyway)
[NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationLessThanOrEqual toItem:self.contentView attribute:NSLayoutAttributeWidth multiplier:1.0 constant:-kUtilityButtonWidthDefault]
(line 176, SWTableViewCell.m)

I realize this isn't exactly scientifically accurate, and I will try to see if I can get you something more specific over the weekend, but I am currently a bit time constrained. Sorry.

Hi,
I have resolved this issue by setting the priority of [NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationLessThanOrEqual toItem:self.contentView attribute:NSLayoutAttributeWidth multiplier:1.0 constant:-kUtilityButtonWidthDefault] to 750, this set the content view to have a minimum width that is still visible when showing the swipe buttons.
Although, I still have some auto layout issues, if you add elements to the content view and set constraints on them, a lot of unsatisfiable constraints are detected.

This is how I fixed my AutoLayout errors, based in @rbarguelles's answer:
NSLayoutConstraint *buttonConstraint = [NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationLessThanOrEqual toItem:self.contentView attribute:NSLayoutAttributeWidth multiplier:1.0 constant:-kUtilityButtonWidthDefault];
buttonConstraint.priority = 750;
[self addConstraints:@[
                       // Pin the button view to the appropriate outer edges of its clipping view.
                       [NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:clipView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0.0],
                       [NSLayoutConstraint constraintWithItem:buttonView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:clipView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0.0],
                       [NSLayoutConstraint constraintWithItem:buttonView attribute:alignmentAttribute relatedBy:NSLayoutRelationEqual toItem:clipView attribute:alignmentAttribute multiplier:1.0 constant:0.0],

                       // Constrain the maximum button width so that at least a button's worth of contentView is left visible. (The button view will shrink accordingly.)
                       buttonConstraint
                      ]
];

Works like a charm, no issues whatsoever.

You can work around this constraint warning without having to change the library source by subclassing the SWTableViewCell and removing the button width constraint in the setup:
[super.constraints enumerateObjectsUsingBlock:^(NSLayoutConstraint *constraint, NSUInteger idx, BOOL *stop) {
    if (([constraint.firstItem isKindOfClass:[SWUtilityButtonView class]]) &&
        (constraint.firstAttribute == NSLayoutAttributeWidth) &&
        (constraint.constant == -kUtilityButtonWidthDefault)) {
            [super removeConstraint:constraint];
    }
}];

You can also do this after creating the table view cell in your view controller.

Here is what I've found out about this issue:

I only see it in iOS 8, not in iOS 7.1
@CEWendel I think the reason why you don't see this in the example project, is that the example project was likely made in a previous version of XCode, where Interface Builder generated the Storyboard differently.  If you look at the raw xml of the example project storyboard, there are these <rect> elements nested under the <tableViewCell> and <tableViewCellContentView> elements.  I re-made this storyboard in XCode 6, and these weren't generated, and I got the exceptions.  The exceptions in my project went away when I added <rect> elements.  The problem is, these might be blown away at any time if I change things in my Storyboard.
The only other solution that worked for me was to implement @pawelkata 's change, and then ALSO set all the constraints in my cell to have a priority of 750.
Separately, I noticed that if I delayed the layoutIfNeeded calls within SWTableViewCell until after everything was displayed, I didn't get the errors.  The problem is, layoutIfNeeded is called by setLeft/RightUtilityButtons and setFrame, so it gets called within tableView:cellForRowAtIndexPath.  At that point there is this constraint that sets UITableViewCellContentView width to 0, which causes the conflict.  I guess at that point, the tableView hasn't yet had a chance to set that constraint correctly?

@pawelkata  I tried your method, but not work. :(

@dullivan thanks for clarifying, your combination of solutions is the only thing that worked for me too

I can verify that it helps to set the priority of 750 to all custom view constraints and the last buttonView constraint as identified by @rbarguelles

The issue appears for me when I reference the Cocoapod as a Framework and try to access it from Swift.  The same storyboard works without warnings from objective-c with no framework.  I fixed the warnings using the solution @markst provided, but it did require me to modify the SWTableViewCell header to include the initialize method because otherwise I could not override the initialize method in my extending class in Swift.

I encountered this issue when using a tableView that was added as a subview of a regular UIViewController. Under exactly the same circumstances, the issue wasn't present when using a UITableViewController. I don't understand why, there probably are some behind the scenes auto layout differences that influence the content view of the cell.
I fixed the issue using the solution suggested by @pawelkata and @rbarguelles. Thanks guys.


Add steps to check and the solution to make KEDA work in proxy network

Solution for the issues like: https://github.com/kedacore/keda/issues/587
Will help any developers facing issues while installing KEDA in a proxy network.

 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: mashrin sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

What do you think @jeffhollan - Ok or do we introduce something like https://keda.sh/troubleshooting?

@tomkerkhove Thanks for the review. Addressed all review comments.
Can we bold the text in the rendered page for these two lines:
(Line 54) ###### Check the status:
(Line 75)  ###### Follow these steps:
I have done it in the markdown but it's not rendered on the page.

@tomkerkhove I am commenting on your idea of having a page for troubleshooting - I think that is a great idea.

@tomkerkhove Thanks for the review. Addressed all review comments.
Can we bold the text in the rendered page for these two lines:
(Line 54) ###### Check the status:
(Line 75) ###### Follow these steps:
I have done it in the markdown but it's not rendered on the page.

It looks bold in the preview, thanks!

@tomkerkhove I am commenting on your idea of having a page for troubleshooting - I think that is a great idea.

@anirudhgarg  I'll send a PR later today!


Document how to use Apple Virtualization with examples

At the moment it is not clear how to use Apple Virtualisation for UTM. A simple HOWTO that describes how to run latest Ubuntu/Debian/Fedora will be very helpful.

Yes that is planned for 4.0 release. It will be at https://docs.getutm.app/

Great! Are there any docs I can start reading now?

I mean whatever’s online you can read.

https://docs.getutm.app/guides/debian/


removal of unused interface

Description
This PR deletes an unused interface

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[x] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[x] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

I see no usages for DirectoryService also in the same directory. can we delete that as well.

no, org.apache.directory.server.core.api.DirectoryService is used (in test code at least)

I see no usages for DirectoryService also in the same directory. can we delete that as well.

no, org.apache.directory.server.core.api.DirectoryService is used (in test code at least)

I think this is from a different package/library, the one we have and unused is from org.apache.cloudstack.engine.service.api. Just realized EntityService has also no usages.
Sorry for asking more @DaanHoogland but just found the others while reviewing the usages.

@blueorangutan package

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7120

I see no usages for DirectoryService also in the same directory. can we delete that as well.

no, org.apache.directory.server.core.api.DirectoryService is used (in test code at least)

I think this is from a different package/library, the one we have and unused is from org.apache.cloudstack.engine.service.api. Just realized EntityService has also no usages.
Sorry for asking more @DaanHoogland but just found the others while reviewing the usages.

You are right, will try and compile it with all three, @harikrishna-patnala and update if it does.

@blueorangutan package

@harikrishna-patnala a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7139

@blueorangutan test

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-7750)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 52572 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7984-t7750-kvm-centos7.zip
Smoke tests completed. 112 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_invalid_upgrade_kubernetes_cluster
Failure
3609.06
test_kubernetes_clusters.py

test_02_upgrade_kubernetes_cluster
Failure
3609.95
test_kubernetes_clusters.py

test_03_deploy_and_scale_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_04_autoscale_kubernetes_cluster
Failure
0.03
test_kubernetes_clusters.py

test_05_basic_lifecycle_kubernetes_cluster
Failure
0.03
test_kubernetes_clusters.py

test_06_delete_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_07_deploy_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_08_upgrade_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_09_delete_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_10_vpc_tier_kubernetes_cluster
Failure
44.62
test_kubernetes_clusters.py

test_11_test_unmanaged_cluster_lifecycle
Error
1.23
test_kubernetes_clusters.py

ContextSuite context=TestKubernetesCluster>:teardown
Error
51.35
test_kubernetes_clusters.py


For multi image

In MiniGemini/minigemini/serve/cli.py
I find that     parser.add_argument("--image-file", type=str, default=None) # file_0.jpg,file_1.jpg for multi image,
Does this mean it can support processing multiple images at once?
But i got error that
raw_image = image_tensor.reshape(3,
RuntimeError: shape '[3, 2, 336, 2, 336]' is invalid for input of size 2709504

Hi, it actually can support multi-image training and inference, and you can try to modify the code to support this function. I'm not sure whether we will recently support this function officially.


upgrading chatops

what

upgrading chatops with recent version of slash-command-dispatch

why

to fix not working chatops commands

/test all