Loading and inference with a Charades pre-trained model

I looking into how to load a pre-trained model (on other dataset except Kinetics). In particular, I want to load slowfast, pre-trained on Charades. For that, I tried the following.

from pytorchvideo.models.hub.slowfast import _slowfast
import torch

root_url = "https://dl.fbaipublicfiles.com/pytorchvideo/model_zoo"
checkpoint_path = f"{root_url}/charades/SLOWFAST_8x8_R50.pyth"
slowfast = _slowfast(pretrained=True, checkpoint_path=checkpoint_path)

with torch.no_grad():
    output = slowfast([torch.rand(1, 3, 8, 224, 224), torch.rand(1, 3, 32, 224, 224)])
    # torch.Size([1, 400])
    print(output.size())

My questions are:

Since the model loading succeeds, why the model output still corresponds to the Kinetics 400 number of classes? I did expect an error, in the case the model architecture and the loaded model don't match?

I didn't find a concrete tutorial how to load the models?

Once the model is loaded, what is the right way to preprocess the video, so that it corresponds to the exact way of training, on the corresponding dataset?

<!--NOTE: Please look at the existing list of Issues tagged with the label ['question`](https://github.com/facebookresearch/pytorchvideo/issues?q=label%3Aquestion) or ['how-to`](https://github.com/facebookresearch/pytorchvideo/issues?q=label%3A%22how+to%22). **Only open a new issue if you cannot find an answer there**.

<!--Also note the following:

<!--1. If you encountered any errors or unexpected issues while using PyTorchVideo and need help resolving them,
   please use the "Bugs / Unexpected behaviors" issue template.

<!--2. We do not answer general machine learning / computer vision questions that are not specific to
	 PyTorchVideo, such as how a model works or what algorithm/methods can be
	 used to achieve X.

Hi, I use your code and came across such bug. Have you saw that?
RuntimeError: Error(s) in loading state_dict for Net:	size mismatch for blocks.6.proj.weight: copying a param with shape
torch.Size([157, 2304]) from checkpoint, the shape in current model is torch.Size([400, 2304]).
	size mismatch for blocks.6.proj.bias: copying a param with shape torch.Size([157]) from checkpoint, the shape in current model is torch.Size([400]).

@TianhaoFu , this error is correct and expected behaviour for above codesnippet. If you loading a Charades trained model, make sure you pass in additional overrides that are required for that particular model.
i.e, for Charades, you above snippet should be modified as,
slowfast = _slowfast(pretrained=True, checkpoint_path=checkpoint_path, model_num_class=<num_classes_in_charades>)

@lyttonhao , could you also please provide some context for the Questions(1-3) raised by @gorjanradevski ?
I think we need documentation on non-kinetics model zoo models. Maybe even have separate model builder functions in model zoo for other datasets?

@TianhaoFu , this error is correct and expected behaviour for above codesnippet. If you loading a Charades trained model, make sure you pass in additional overrides that are required for that particular model.
i.e, for Charades, you above snippet should be modified as,
slowfast = _slowfast(pretrained=True, checkpoint_path=checkpoint_path, model_num_class=<num_classes_in_charades>)

That's strange, since when I pass model_num_class = 157, then I get an error:
RuntimeError: Error(s) in loading state_dict for Net: 	size mismatch for blocks.6.proj.weight: copying a param with shape torch.Size([400, 2304]) from checkpoint, the shape in current model is torch.Size([157, 2304]). 	size mismatch for blocks.6.proj.bias: copying a param with shape torch.Size([400]) from checkpoint, the shape in current model is torch.Size([157]).
The code snippet is:
from pytorchvideo.models.hub.slowfast import _slowfast
import torch

root_url = "https://dl.fbaipublicfiles.com/pytorchvideo/model_zoo"
checkpoint_path = f"{root_url}/charades/SLOWFAST_8x8_R50.pyth"
slowfast = _slowfast(pretrained=True, checkpoint_path=checkpoint_path, model_num_class=157)

The dependencies installed are:
torch = "^1.9.0"
torchvision = "^0.10.0"
pytorchvideo = "^0.1.1"

Hi @gorjanradevski, I have tried to load charades checkpoint from my side. I think the current issue is because the old cached kinetics model. So you must have used kinetics model and torch.hub.load_state_dict_from_url in _slowfast is loading cached Kinetics model instead of downloading the new charades checkpoint as the function seems only check the file name.
So we will find a way to resolve the name conflict in PytorchVideo. For your use case, currently a quick workaround is that you can clear the cache (which usually sits in ~/.cache/torch/hub/checkpoints/. Or you can manually download the charades checkpoint first and then provide the local path to _slowfast.

Regarding to the preprocessing of videos, we will add more documents about that. Right now, as we mentioned in the model zoo doc, the pre-trained models are benchmarked in PySlowFast. For example, for the Slowfast_8x8_r50 model in charades, you can refer to the training details in the charades dataset and training config.

Thanks @lyttonhao, I should have seen that one myself. I do not wish to train a model from scratch, but rather just reproduce the inference results. Therefore, it appears that I've everything I need. I'll close the issue now, and in case I need some further pointers I'll just reopen it.


I'm waiting patiently for BP_JVM_VERSION of 20 :-)

See https://github.com/paketo-buildpacks/bellsoft-liberica/pull/386

See https://github.com/paketo-buildpacks/bellsoft-liberica/pull/386

When is the release scheduled for ?

Regarding commit https://github.com/paketo-buildpacks/bellsoft-liberica/commit/5aa5275c8c27d084ffcf49fa9d4724756aa0730f I asked @dmikusa who redirected to @pivotal-david-osullivan and mentioned that releases are published on Fridays. Therefore, I hope that there will be a release after the easter holidays.
BTW, I'm using Gradle with Spring Boot and changed my build.gradle.kts to use SapMachine 20 instead of Bellsoft Liberica: it works fine.

Bellsoft Liberica release cut just now. We're going to update the composite Java buildpack and release that shortly.


Use TypeScript enums for well-known string enumerations (EPUB metadata)

...also make sure that parsed values (e.g. from XML source) are filtered as per the allowed enumerated values. Avoid boilerplate code by automating the "enum" checks (which is not a native Javascript type, just a TypeScript constructs that transpiles to plain string definitions)

Fixed https://github.com/readium/r2-shared-js/commit/036f3c5981de8a28201836deab5c613a9c2a81ad


Android Staging Deploys Failing

Expected Result:
Android deploys such as this one
should succeed
cc @Expensify/mobile-deployers
Actual Result:
Android deploys are failing with the following error message:
Track 'internal' doesn't have any releases
Action Performed:
This happens during the Run Fastlane step of the Build and Deploy Android
action
Platform:
Where is this issue occurring?

Android

Here's a full set of logs
bundle exec fastlane android production
  shell: /usr/bin/bash -e {0}
  env:
    SHOULD_DEPLOY_PRODUCTION: true
    JAVA_HOME: /opt/hostedtoolcache/Java_Oracle_jdk/17/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Oracle_jdk/17/x64
    VERSION_CODE: 100104[3](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:3)001
    VERSION: 10010[4](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:4)3001
+-------------------------------------------+
|               Used plugins                |
+------------------------+---------+--------+
| Plugin                 | Version | Action |
+------------------------+---------+--------+
| fastlane-plugin-aws_s3 | 2.1.0   | aws_s3 |
+------------------------+---------+--------+

[0[7](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:7):42:22]: Sending anonymous analytics information
[07:42:22]: Learn more at https://docs.fastlane.tools/#metrics
[07:42:22]: No personal or sensitive data is sent.
[07:42:22]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[07:42:22]: ---------------------------
[07:42:22]: --- Step: opt_out_usage ---
[07:42:22]: ---------------------------
[07:42:22]: Disabled upload of used actions
[07:42:22]: Driving the lane 'android production' 🚀
[07:42:22]: ---------------------------------------------
[07:42:22]: --- Step: google_play_track_version_codes ---
[07:42:22]: ---------------------------------------------
[07:42:22]: Found '1001043000' version codes in track 'internal'
[07:42:22]: ----------------------------------
[07:42:22]: --- Step: upload_to_play_store ---
[07:42:22]: ----------------------------------

+-----------------------------------------------------------------------------------+
|                            Summary for supply 2.21[9](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:9).0                             |
+------------------------------------+----------------------------------------------+
| package_name                       | com.expensify.chat                           |
| json_key                           | ./android/app/android-fastlane-json-key.json |
| version_code                       | [10](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:11)01043001                                   |
| track                              | internal                                     |
| track_promote_to                   | production                                   |
| rollout                            | 1.0                                          |
| skip_upload_apk                    | true                                         |
| skip_upload_aab                    | true                                         |
| skip_upload_metadata               | true                                         |
| skip_upload_changelogs             | true                                         |
| skip_upload_images                 | true                                         |
| skip_upload_screenshots            | true                                         |
| release_status                     | completed                                    |
| sync_image_upload                  | false                                        |
| track_promote_release_status       | completed                                    |
| validate_only                      | false                                        |
| check_superseded_tracks            | false                                        |
| timeout                            | 300                                          |
| deactivate_on_promote              | true                                         |
| changes_not_sent_for_review        | false                                        |
| rescue_changes_not_sent_for_review | true                                         |
| ack_bundle_installation_warning    | false                                        |
+------------------------------------+----------------------------------------------+

+------------------------------------+
|            Lane Context            |
+---------------+--------------------+
| PLATFORM_NAME | android            |
| LANE_NAME     | android production |
+---------------+--------------------+
[07:42:23]: Track 'internal' doesn't have any releases

+------------------------------------------------------+

[!] Track 'internal' doesn't have any releases
|                   fastlane summary                   |
+------+---------------------------------+-------------+
| Step | Action                          | Time (in s) |
+------+---------------------------------+-------------+
| 1    | opt_out_usage                   | 0           |
| 2    | google_play_track_version_codes | 0           |
| 💥   | upload_to_play_store            | 0           |
+------+---------------------------------+-------------+

[07:42:[23](https://github.com/Expensify/App/actions/runs/7636830093/job/20804994530#step:11:24)]: fastlane finished with errors
Error: Process completed with exit code 1.

It appears to be a mismatch of version numbers, it's looking for<PHONE_NUMBER>

Found '1001043000' version codes in track 'internal'

But the latest version code found is<PHONE_NUMBER>

This failed because the android staging deploy for 1.4.30-1 failed. Therefore, the production deploy was trying to promote an internal build w/ the latest version on staging 1.4.30-1, but that build was never uploaded.

@thienlnam - Can you see if this is still happening?

We can close, seems like the original build just failed because the staging deploy failed


during the progressbar animating it will interrupt when user scrolling the view.

set the timer mode with NSRunLoopCommonModes

Hey @MrChens
Looks like a good addition, thanks!

@Eclair Thanks for you great work！


i hava a  test to show. skiplist is not fast!

package main
import (
"bytes"
"encoding/gob"
"io/ioutil"
"log"
"os"
"testing"
pqueuekey "github.com/474420502/focus/priority_queuekey"
skiplist "github.com/sean-public/fast-skiplist"

"github.com/474420502/focus/compare"
"github.com/Pallinder/go-randomdata"

)
func BenchmarkCase1(b *testing.B) {
l := loadTestData()
execCount := 5
b.N = len(l) * execCount

var temp []float64
for _, v := range l {
	temp = append(temp, float64(v))
}

b.ResetTimer()
b.StartTimer()
    // deduplication
for i := 0; i < execCount; i++ {
	pq := skiplist.New()
	for _, v := range temp {
		pq.Set(v, v)
	}
}

}
func BenchmarkPriorityPush(b *testing.B) {
l := loadTestData()
execCount := 5
b.N = len(l) * execCount

b.ResetTimer()
b.StartTimer()

     // not deduplication
for i := 0; i < execCount; i++ {
	pq := pqueuekey.New(compare.Int)
	for _, v := range l {
		pq.Push(v, v)
	}
}

}
const CompartorSize = 1000000
const NumberMax = 50000000
func TestSave(t *testing.T) {
f, err := os.OpenFile("l.log", os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
if err != nil {
	log.Println(err)
}
var l []int

for i := 0; len(l) < CompartorSize; i++ {
	v := randomdata.Number(0, NumberMax)
	// if _, ok := m[v]; !ok {
	// 	m[v] = v
	l = append(l, v)
	// }
}not deduplication

var result bytes.Buffer
encoder := gob.NewEncoder(&result)
encoder.Encode(l)
lbytes := result.Bytes()
f.Write(lbytes)

}
func loadTestData() []int {
data, err := ioutil.ReadFile("./l.log")
if err != nil {
log.Println(err)
}
var l []int
decoder := gob.NewDecoder(bytes.NewReader(data))
decoder.Decode(&l)
return l
}

Thank you for reporting what may be a performance issue. Can you describe what your code sample is doing and what is in the l.log file? Is it sorted and, if so, is it ascending or descending?
What is the expected result and what are you seeing instead?
I think there are some formatting problems when viewing your post, can you try editing so all the code is in a single formatted block.

package main

import (
	"bytes"
	"encoding/gob"
	"io/ioutil"
	"log"
	"os"
	"testing"

	pqueuekey "github.com/474420502/focus/priority_queuekey"
	skiplist "github.com/sean-public/fast-skiplist"

	"github.com/474420502/focus/compare"
	"github.com/Pallinder/go-randomdata"
)

// TestCreateData Before Benchmark, Execute the func for test
func TestCreateData(t *testing.T) {

	f, err := os.OpenFile("l.log", os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
	if err != nil {
		log.Println(err)
	}

	var l []int

	m := make(map[int]int)
	for i := 0; len(l) < CompartorSize; i++ {
		v := randomdata.Number(0, NumberMax)
		if _, ok := m[v]; !ok {
			m[v] = v
			l = append(l, v)
		}
	}

	var result bytes.Buffer
	encoder := gob.NewEncoder(&result)
	encoder.Encode(l)
	lbytes := result.Bytes()
	f.Write(lbytes)

}

// BenchmarkSkiplist  skiplist Benchmark
func BenchmarkSkiplist(b *testing.B) {

	l := loadTestData()
	execCount := 5
	b.N = len(l) * execCount

	var temp []float64
	for _, v := range l {
		temp = append(temp, float64(v))
	}

	b.ResetTimer()
	b.StartTimer()

	for i := 0; i < execCount; i++ {
		pq := skiplist.New()
		for _, v := range temp {
			pq.Set(v, v)
		}
	}
}

// BenchmarkPriorityQueue like skiplist tree
func BenchmarkPriorityQueue(b *testing.B) {

	l := loadTestData()
	execCount := 5
	b.N = len(l) * execCount

	b.ResetTimer()
	b.StartTimer()

	for i := 0; i < execCount; i++ {
		pq := pqueuekey.New(compare.Int)
		for _, v := range l {
			pq.Push(v, v)
		}
	}
}

const CompartorSize = 1000000
const NumberMax = 50000000

func loadTestData() []int {
	data, err := ioutil.ReadFile("./l.log")
	if err != nil {
		log.Println(err)
	}
	var l []int
	decoder := gob.NewDecoder(bytes.NewReader(data))
	decoder.Decode(&l)
	return l
}

@sean-public

// maxLevel has to be int(math.Ceil(math.Log(N))) for DefaultProbability (where N is an upper bound on the
// number of elements in a skip list). See http://citeseerx.ist.psu.edu/viewdoc/summary?doi=<IP_ADDRESS>.524

The default number of levels is 18.
You might try calling NewWithMaxLevel(maxLevel int) instead of New() with levels around 14. As noted in the function's comment, I'm calculating the natural log of a million (your upper bound of samples), which just under 14. This is one of two variables I have exposed to fine-tune performance. As maxLevel grows, we would add more "height" to the data structure, allowing it to be traversed more quickly in exchange for increased memory consumption. For every data set, there is an optimal value. I think you can see a small improvement in execution time by finding it.
The main purpose for this skip list implementation is to store time series data, which generally arrives in order and must remain ordered for quickly recalling ranges to satisfy queries. Therefore, the optimizations include "search fingers", which bookmark the last few locations referenced. The access pattern in your test is completely random and not optimal for this data structure, so performance is just "ok".
Finally, comparing a skip list to a priority queue can be tricky; skip lists are simple and easy to understand (and not hard to implement correctly). On insert, they are doing quite a bit of work, especially if the keys are always random. A priority queue has to juggle binary tree rotations, which is still work, but it's more of a fixed cost for evenly distributed (random) keys.

For these reasons, I didn't include a random insertion benchmark and would not recommend fast-skiplist for use cases where extreme performance matters and keys will be inserted randomly. I do recommend it when dealing with time series or other "mostly-ordered" data, which we encounter often in the real world.


config(ticdc): expose changefeed level config delete_only_output_handle_key_columns

What problem does this PR solve?

Issue Number: close #9143
What is changed and how it works?
Check List
Tests

Unit test
Integration test

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
`None`

/test all

/test all

/test verify

/test cdc-integration-kafka-test

/test dm-integration-test

/test dm-integration-test

/test dm-integration-test

/merge

/merge

/test cdc-integration-kafka-test


Native HLS Subtitle Support

Hi All,
Great plugin just wondering if this plugin supports Native hls subtitles like in this stream?
https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8
Example: https://codepen.io/raestrada/pen/rbZqQG
I see there is an option here.
https://developers.google.com/cast/docs/reference/player/cast.player.api.Player#enableCaptions
But I see in your code it is disabled
// Text tracks are not supported in this version
   ChromecastTechImpl.prototype.featuresNativeTextTracks = false;
   ChromecastTechImpl.prototype.featuresNativeAudioTracks = false;
   ChromecastTechImpl.prototype.featuresNativeVideoTracks = false;

Just wanted to check if I am missing something.
Thanks

I don't think so. PR's welcome. Please just follow our coding standards (eslint should take care of most of it for you) and commit guidelines.


[BEAM-10545] Advance the jupyterlab sidepanel extension version for first release

Advance the version from 0.1.0 to 1.0.0

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @aaltay
PTAL.
Let's talk offline to see if we need to create release branch and tags for a release.

R: @aaltay
PTAL.
Let's talk offline to see if we need to create release branch and tags for a release.

Change LGTM. I am assuming you are planning to release this soon.
@kennknowles - Do we use branches or tags for releasing vendored dependencies? The release of this sub-directory will be similar to that. (I believe we do not do anything special other than a vote on dev list.)

Run Python PreCommit

I would just use a tag. The only purpose of a release branch is cherrypicking and continuing to do point releases.

I would just use a tag. The only purpose of a release branch is cherrypicking and continuing to do point releases.

Thanks Kenn.
@aaltay, could you please help me add a tag such as jupyterlab-sidepanel-v1.0.0 when/after merging this PR?
I could not send a tag through a PR.
TL;DR: You could also use jlpm (yarn) to auto generate a tag:
jlpm config set version-tag-prefix "jupyterlab-sidepanel-v"
jlpm version  # Then input 1.0.0, it should auto generate a git tag for you.

Thanks!

Run Python PreCommit

I would just use a tag. The only purpose of a release branch is cherrypicking and continuing to do point releases.

Thanks Kenn.
@aaltay, could you please help me add a tag such as jupyterlab-sidepanel-v1.0.0 when/after merging this PR?
I could not send a tag through a PR.
TL;DR: You could also use jlpm (yarn) to auto generate a tag:
jlpm config set version-tag-prefix "jupyterlab-sidepanel-v"
jlpm version  # Then input 1.0.0, it should auto generate a git tag for you.

Thanks!

I do not have jlpm. I guess I can clone the repo, and tag the specific commit and push. I do not know if there is an easier way to do this. Can I create a tag on github UI?

I would just use a tag. The only purpose of a release branch is cherrypicking and continuing to do point releases.

Thanks Kenn.
@aaltay, could you please help me add a tag such as jupyterlab-sidepanel-v1.0.0 when/after merging this PR?
I could not send a tag through a PR.
TL;DR: You could also use jlpm (yarn) to auto generate a tag:
jlpm config set version-tag-prefix "jupyterlab-sidepanel-v"
jlpm version  # Then input 1.0.0, it should auto generate a git tag for you.

Thanks!

I do not have jlpm. I guess I can clone the repo, and tag the specific commit and push. I do not know if there is an easier way to do this. Can I create a tag on github UI?

I think a tag is like a commit, you can use below command
git tag -fa jupyterlab-sidepanel-v1.0.0 -m "Extension: apache-beam-jupyterlab-sidepanel version 1.0.0" <this PR merge commit's hash>
git push origin(or upstream, whichever is the apache/beam remote) jupyterlab-sidepanel-v1.0.0

I merged this but I could not push the tag. I got 403 errors when I run git push https://github.com/apache/beam jupyterlab-sidepanel-v1.0.0.
I thought I should be able to do this because I did this for releases previously. @kennknowles - do you know what I might be doing wrong?

Done: https://github.com/apache/beam/releases/tag/jupyterlab-sidepanel-v1.0.0
It worked using a personal access token instead of an ssh key (https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token#using-a-token-on-the-command-line). Not sure why.


Enable automatic retries for HTTP 520/521 errors

CloudFlare will return HTTP 520/521 errors if there are transient issues with the origin site (or if CloudFlare believes it's being spammed by unbroken).
If might be worth extending the logic we use to retry for HTTP 429 errors for other error codes that we want to retry for, like 520/521.

Related issue: https://github.com/microsoft/react-native-windows-samples/issues/726


Multiple latest, predecessors, and/or successors

My attempt to answer the question of: "Can an asset have more than one successor or more than one predecessor?"
Summary: It looks like have multiple links of a specific version rel in one STAC thing is fine.  Anyone have a take that is contrary to that?
There are cases where a new STAC Item or Collection is a merge of multiple predecessors and is split into multiple successors.
First, does RFC 5829 "Link Relation Types for Simple Version Navigation between Web Resources" apply?  I believe the answer is only a little bit.  I think the intent was to use the same names, but not necessarily all of the semantics.  That doc does say:

Terminology

[SNIP]
Predecessor, Successor
 When a versioned resource is checked out and then subsequently
 checked in, the version that was checked out becomes a
 "predecessor" of the version created by the checkin.  A client can
 specify multiple predecessors for a new version if the new version
 is logically a merge of those predecessors.  The inverse of the
 predecessor relation is the "successor" relation.  Therefore, if X
 is a predecessor of Y, then Y is a successor of X.

and

3.6.  'successor-version'
When included on a versioned resource, this link points to a resource
containing the successor version in the version history.
Some systems may allow more than one of these link relations in order
to support branching.

The schema doesn't have links in it, so it offers us no guidance.  https://github.com/stac-extensions/version/blob/a39e9247b90c1ce3e3908bfb616c1d4807387614/json-schema/schema.json
Reading https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#link-object, I don't see anything that limits it to just one link of a type.
And https://github.com/radiantearth/stac-spec/blob/master/best-practices.md#using-relation-types and https://github.com/radiantearth/stac-spec/blob/master/best-practices.md#versioning-for-catalogs don't give any indication that it can only be one
https://www.iana.org/assignments/link-relations/link-relations.xhtml just points back to RFC5829

I didn't think about this when writing this extension. I'd say multiple latest-version links would be not very logical, but otherwise, there's no restriction.


Deploy fails without SCM (:scm, :none)

As described in this Google Groups discussion there are scenarios where SCM-less deploy may be desired. Currently, with :scm, :none a following error is thrown:
ain$ cap staging deploy --trace
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
cap aborted!
cannot load such file -- capistrano/none.rb
/Users/ain/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/setup.rb:14:in `load'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/setup.rb:14:in `block (2 levels) in <top (required)>'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/ain/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/ain/.rvm/gems/ruby-2.0.0-p247@global/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/application.rb:12:in `run'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/bin/cap:3:in `<top (required)>'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `load'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/bin/cap:23:in `<main>'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/Users/ain/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => staging

Any alternatives in Cap 3?

@ain hello I have the same error as yours in your first post.
Would be great if you can explain me what solution you use to solve your problem
(I read all the comments and other issues but I just fell lost !)
Thanks a lot

@nicolas-bastien I resorted to handling it with a Bash script on Bamboo. Basically a Capistrano-like structure with a current symlink, version folders in releases/ and GNU ls to allow sorting version folders by version with ls -lv so you could only keep the last 5 versions.

@leehambley if I understand well I need to create my own scm : archive.
I found this to have an example https://github.com/ctaintor/capistrano-rails-artifact but it's not exactly what I need.
I still have the error : cannot load such file -- capistrano/archive.rb
So my question is I added this in lib/capistrano how can I declare it to be in the autoloaded path so I don't need to make a plugin ?
(PS sorry I'm a PHP guy who's having hard time with ruby...)

Hi @nicolas-bastien that's pretty much the gist of it indeed. You should just be able to require_relative ../ from Capfile or deploy.rb to anywhere for your file to be loaded. If not, ping me back and maybe I can help.


flutter doctor -v still crashes with IntelliJ 2021.3.2 / Flutter 2.10.0

macOS Monterey 12.2.
Flutter 2.10.0 • channel stable.
IntelliJ IDEA 2021.3.2 (Community Edition).
Error
[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message
      below is not helpful, please let us know about this issue at
      https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle
      (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString
      (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read
      (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer
      (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes
      (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml
      (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion
      (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage
      (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate
      (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure>
      (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure>
      (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks
      (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand
      (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand
      (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure>
      (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure>
      (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure>
      (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure>
      (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand
      (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure>
      (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure>
      (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

Reminder: this is the main flutter tool crashing. I have absolutely no clue as how this issue keeps getting closed as soon as someone posts some strange "workaround" while the actual issue is not being fixed. Even if the error lies in the plugin somewhere the flutter tool should not crash and this should be a high priority.

Same on Windows 64
flutter doctor -v output:
[√] Flutter (Channel stable, 2.10.0, on Microsoft Windows [Version 10.0.19042.1466], locale en-US)
    • Flutter version 2.10.0 at S:\Users\Z\Downloads\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (2 days ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\Z\AppData\Local\Android\Sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_SDK_ROOT = C:\Users\Z\AppData\Local\Android\Sdk
    • Java binary at: C:\Users\Z\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\211.7628.21.2111.8092744\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Users\Z\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7935034
    • Flutter plugin version 63.2.1
    • Dart plugin version 203.8452
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Users\Z\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\211.7628.21.2111.8092744
    • Flutter plugin version 63.2.2
    • Dart plugin version 211.7798
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    X FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[√] VS Code (version 1.63.2)
    • VS Code at C:\Users\Z\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.34.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 96.0.4664.110
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 97.0.1072.69

[√] HTTP Host Availability
    • All required HTTP hosts are available

The fix is merged (3e6e996f9eff), but it appears to still be on master. So, it should land the next refresh of beta (maybe early next week) and the next refresh of stable (May-June).
The impact seems to be limited to the doctor tool, and not the IDE or plugin itself. It looks very bad, but doesn't affect normal usage. You just can't get diagnostic information on IntelliJ.
Perhaps it should've been fast-tracked either as a blocker for release or a hotfix. Not sure where that discussion would be, but per the guidelines it doesn't seem to be as an issue.

@i3games
The fix is currently available on master and will be rolled out in beta and stable per Flutter's release guidelines.
See this issue comment for your reference.
Closing this as a duplicate.

You are closing this again on a bug that is not fixed. Can you reexamine your current policy of closing issues prematurely? It makes no sense to close issues with fixes somewhere in the pipeline, it wastes time for people who encounter these bugs, and it wastes time for the team that has to deal with these bug reports.
Simple: Close issues after they are actually fixed: the issue is resolved technically and it is available on the stable channel?
This should be a general principle in the future.


Update the current coordinators and create a legacy page

Update the current coordinators of all the clubs associated with PC and create a legacy page maintaining all the previous club coodinators.

For the first part of this issue, #84 is ready to be merged.

@abhigyank @Varunvaruns9  You can merge it, if its fine.

@Swapnilr1 @vsvipul

@kpbot claim

@kpbot claim --force

Will this be enough or should I make a seperate page?

I think creating a separate page would be better.
Another option is to include the current team and have only one section for the team. Previous coordis can be seen from the drop-down menu. This seems a lot cleaner.

Will do a separate page then

@Varunvaruns9 what should be the content on the legacy page?

#91


Allow to enable Vrf in testing environments

Currently it is strictly required to use the Sequencer if we want to use Vrf, which makes it impossible to test the API locally or on the testnet. Allowing a non-verifiable version only on the testnet and locally would make developing/testing contracts making use of it a lot easier.

Done, tested in https://github.com/warp-contracts/warp/commit/90f96511a4b1c8916541c68a92bc62eba3a70890#diff-fc8f73adefb2d436efca49ad1f9867b9ba3e40610db08a6c574ccbb92565ca74R142
I just need to perform some more tests in browser env - if everything will be fine, it should be released in a day or two.

Released in 1.2.7


fix: add status for the initializing stage

[https://github.com/Autodesk/pgbelt/issues/296]
This add 3 new columns to the status command: src_db_size. dst_db_size, and progress. Those columns show values when the status is initializing, if not they show as n/a.

have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the CLA

This is how it looks for the initializing stage:

And this it how it looks for other stage than initializing:

That is freaking awesome thank you @jdcallet


Pijul 0.4

Motivation for this change
update to the latest version of pijul
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Works fine on my machine - can someone test this on macOS?

The travis error on OSX seems to be a problem downloading a rust crate, maybe it's just a transient network thing.


Feature Request: Nested Size Legend

Hi Susie,
First, thanks for creating and maintaining this plugin - it truly is great! I wanted to request a new feature that would allow you to create a nested legend for the size scales. An example of what I'm talking about is this circular legend.
It would be nice if you could specify the number of items in the legend, although that might be better suited to using the default .ticks() on the scale itself.
Thanks for considering!

Hi there, thanks for reaching out about this feature. I think it's a great legend type, but don't have the bandwidth to create it. I'll leave it on here in case anyone is interested in making a pull request to add it.

Fair enough! Are there contributing guidelines anywhere? I might try and give this a go.

Oh that would be great! There aren't but you can reference this pull request as an example: https://github.com/susielu/d3-legend/pull/71

FWIW, here's an implementation of this legend type using D3 v3, may be worth porting: https://bl.ocks.org/aubergene/4723857

Thanks @curran, but I’m aware. That’s the example I linked to in my OP. :)

Thanks, I have no plans on adding in this feature unless someone wants to make a pull request, thanks!


domainMapper application: Add display of avatars present in the domain.

This PR adds the display of the avatars' position in the domain on the existing application "Domain Mapper"
Your avatar will be displayed in red, nammed: "YOU"
all the other avatar will be displayed in blue with their sessionDisplayName

I haven't test with other user in the domain, please, test it if you can.
(I'm most of the time alone at the hour where I'm online)


add get_field helper method

This PR creates a helper method for FormData so that users don't have to pattern match for FormEntry::Field every time they want to use this. 99% of the time the passed arguments aren't files.

LGTM but the formatting needs to be fixed.

Whoops, done :)

@zebp CI is failing after running cargo fmt, what's up with that?

@zebp CI is failing after running cargo fmt, what's up with that?

CI is currently not passing on the revision of main your PR is based because of a new clippy lint, I updated main yesterdahy so you should be fine if you rebase the PR.


Bug Report: Email and address field bug

Reproduction steps
Email and address text is overflowing.
Expected behavior
They should not overflow
Actual Behavior
The text email and address vanish while typing

👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

plaese assign this issue to me  I want to contribute on this


BP-3451 check missing dependency

I consider this ticket should be merged only on refactor branch: https://github.com/buckaroo-it/Magento2/pull/966


FR: support for X/Y style TRACKNUMBER

I have FLAC files which look like this:
$ metaflac --list Aphex_Twin/Chosen_Lords/02-Reunion_2.flac
METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4608 samples
  maximum blocksize: 4608 samples
  minimum framesize: 761 bytes
  maximum framesize: 16014 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 13932660
  MD5 signature: 169d402100e8b2b7f4a34be8f6e69d42
METADATA block #1
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 262
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 9
    comment[0]: album=Chosen Lords
    comment[1]: discid=820d4b0a
    comment[2]: title=Reunion 2
    comment[3]: artist=Aphex Twin
    comment[4]: albumartist=Aphex Twin
    comment[5]: musicbrainz_discid=38zPtfQswmOKtZtgzc8Q3KV2KNo-
    comment[6]: artistsort=Aphex Twin
    comment[7]: date=2006-04-10
    comment[8]: tracknumber=2/10
METADATA block #2
  type: 1 (PADDING)
  is last: true
  length: 1006

audiotags's call to track_number() returns None in this case.   I would prefer if it returnes Some(2).
My understanding is that this use of TRACKNUMBER may be non-standard but it's not uncommon.  A number of other tools (easytags, for example) work successfully with files like this.

I know this is an older issue, but I wanted to chime in on this.
It's definitely not an uncommon use-case. ototoy, for example, tags all their flacs with the %n/%x format for TRACKNUMBER. Also, it's common for vinyl recordings to be tagged with A1 or B1 as the TRACKNUMBER.
The vorbis comment spec does not specify that any of the fields need to be in a specific format, or that TRACKNUMBER should be an integer.
It might be complicated to change the return type of tag.track_number, but I think it makes sense for the tool to support what appears to be a common tag format.


Build Image throws BuildKit error for --chmod

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
Build Image using a Dockerfile with a '--chmod' command throws this error on build:

the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled

The image builds fine from the CLI.  Buildkit is enabled in daemon.json, but it should be default from Docker v23 and up. I am currently building with Docker v24.
Expected Behavior
The image should build with both docker build and Portainer's build image function.
Actual Behavior
Build Image using a Dockerfile with a '--chmod' command throws this error on build:

the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled

Steps to Reproduce
Use the Dockerfile from this repo for testing.
https://github.com/MekayelAnik/ispyagentdvr-docker
Portainer logs or screenshots

Portainer version
2.19.1
Portainer Edition
Community Edition (CE)
Platform and Version
Docker 24.0.6
OS and Architecture
Debian 12.2 AMD64
Browser
Chrome Latest
What command did you use to deploy Portainer?
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Additional Information
No response

I get the same error, also Debian 12 but on aarch64.
"the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled"
Portainer CE 2.19.2

Same. Expected latest version of docker would support this since it says it's running buildkit by default. Running in Github Actions with the latest Ubuntu and getting the error that others mentioned:
"the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled"
I even went so far as to ensure the latest docker was being used and it said it was version 24. Buildkit was the default from 23 from what I recall reading. Not sure why this isn't working.

bump up, i have the same problem

hello, bump up, same problem here

Same problem here, "the --mount option requires BuildKit", which I have just installed on my system, and it's enabled via daemon.json. I am running docker v24.0.5

Same
Env:
WSL2 on Windows 10 build 19045
Distro: debian
using dockerd daemon with minimal setup.
json config daemon:
{
  "hosts": ["tcp://<IP_ADDRESS>:2375", "unix:///mnt/wsl/shared-docker/docker.sock"],
  "features": {
    "buildkit": true
  }
}

This is also happening for me as well. Buildkit has been enabled and is functioning outside of Portainer it seems.

happens to me as well, what is current state for resolving this?

Happens to me as well.
docker --version
Docker version 27.3.1, build ce12230

happening on a new install on ubuntu server 24.04.01 and portainer-ee 27.4.1 when attempting to create an image using a dockerfile.
the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled


Bug fixes for cross domain operations

What changed?

Remove InitiatedID field from recordChildCompleteTask. This field will be persisted to the scheduledID field in transfer/cross-cluster task info, and is supposed to be the ID of the event that generates the task. Not the ID of the event in the parent workflow that starts the child workflow. Otherwise, the task will be dropped if the initiatedID > # of events in the child workflow (since we have a check for if mutable state is stale when loading the mutable state before processing the task).
Fix error handling when applying cross-cluster parent close policy
Fix error handling in source cross-cluster task executor

Why?
Bug fix for cross-domain operations

How did you test it?
Tested locally

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 670e4456-9fc4-4ee2-a0ef-38e3acd5bf72

11 of 18 (61.11%)  changed or added relevant lines in 4 files are covered.
583 unchanged lines in 34 files lost coverage.
Overall coverage increased (+0.004%) to 56.898%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/persistence/persistence-tests/executionManagerTest.go
0
1
0.0%

service/history/task/cross_cluster_task.go
1
3
33.33%

service/history/task/cross_cluster_target_task_executor.go
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/elasticsearch/interfaces.go
1
63.64%

common/persistence/sql/sqlExecutionStore.go
1
62.69%

common/config/cluster.go
2
97.33%

common/persistence/executionManager.go
2
76.57%

common/persistence/nosql/nosqlExecutionStoreUtil.go
2
61.33%

common/persistence/sql/sqlExecutionStoreUtil.go
2
66.95%

common/persistence/statsComputer.go
2
96.43%

common/task/weightedRoundRobinTaskScheduler.go
2
89.64%

common/types/mapper/thrift/shared.go
2
63.43%

service/history/execution/mutable_state_builder.go
2
69.66%

Totals

Change from base Build 7e177af3-6aad-4f85-a354-8788060ff8f6:
0.004%

Covered Lines:
82001

Relevant Lines:
144120

💛  - Coveralls


Tracking api

This adds Tracking API, following the same event model as in the Event API.

It looks great with the payload example ;)


Update for Bootstrap Datepicker

The Bootstrap Datepicker is quite outdated, it desperately needs an update :)
I'm open to providing a PR, I just need a confirmation regarding the version that you'd like to include.
I see 2 options here:

v1.6.4 which is 9 months old, but looks like a latest stable release
v1.7.0-RC2 which is "bleeding edge", but as the version name goes, just a release candidate right now

I'd probably go for the v1.6.4 now and make an update to v1.7.0 once it's stable, but I'm interested in your opinion here.

We will upgrade the plugins with the next release v2.4. This is so we don't introduce breaking changes to the current line of releases.
Thanks!

Thank you for heads up! Is there some ETA/timeline for v2.4?
I'm not trying to push you or anything, I just didn't find a milestone for this release :)

Hi @pavoltanuska
Sorry for the (very) late response! I am not going to put a hard date on the release, but it is currently in master and we adding new things every day. We'll add the plugin upgrades soon and release a beta. Feel free to test and report any issues. The upgrade guide is available here if you are interested: https://adminlte.io/docs/2.4/upgrade-guide
Thanks!


Authentication services commodity

Add an auth commodity to the common dev env. This commodity adds 2 Docker containers: openldap and keycloak. OpenLDAP provides LDAP services, whilst Keycloak provides OAuth/OpenID Connect services. This commodity can be used by applications that require authentication without the need to call out to external services such as AD and ADFS.

Does this PR introduce a breaking change? If so, what actions will users need to take in order to regain compatibility?
There are no breaking changes in this pull request.

Checklists
All submissions

[x] Have you followed the guidelines in our Contributing document?
[x] Is this PR targeting the develop branch, and the branch rebased with commits squashed if needed?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New feature and bug fix submissions

[x] Has your submission been tested locally?
[x] Has documentation such as the README been updated if necessary?
[x] Have you linted your new code (using rubocop and markdownlint), and are not introducing any new offenses?

Could you add auth as a valid commodity into the README list, around line 123ish


[NodeJS Client] New consumer type: TableView

Is your feature request related to a problem? Please describe.
This is a feature catchup of NodeJS Client for a new consumer type: TableView which was introduced in Pulsar 2.10.0
The proposal: https://github.com/apache/pulsar/issues/12356
The Java implementation: https://github.com/apache/pulsar/pull/12838

This should be tracked at https://github.com/apache/pulsar-client-node/issues/277 now.


Obfuscating idea/suggestion

I'm looking at obfuscator to obfuscate a library which contains a little bit of math my company and I have worked on for weeks. Obfuscar does a great job on that, I've made a private method called by a public method on the library, the private is obfuscated, but the constant we use and the math functions (Math.Sqrt... and so on) still is visible. I'm wondering if there's a way to obfuscate that. My idea is to embed this math in a string, then use CSharpScript to evaluate that. What do you thing? Thanks!

Hidden strings are reversible so that's not going to help at all.
Any call to BCL is desired to be visible, because without that there is no way to consume such API.
If you really want to protect an algorithm, the only way is to make it a SaaS solution hosted in a private cloud. The moment you deployed the algorithm to a client machine as a library, native or managed, you should assume that an intermediate level programmer can decompile and reverse engineer most if not all of your code.
Obfuscate won't help much, so are many of the commercial obfuscation tools.

Thanks lextm. I know, indeed anything deploy has to be executed, so in some way disassembled by the machine or a malicious user. It was just to make them life harder. I should think about an API service maybe for this algorithm. Thanks again even for this good project.


How to send POST application/x-www-form-urlencoded (NOT JSON)

Hi!
I can't understand how to send POST REQUEST from map[string]string or custom type
The goreq supports only json body requests?
Thanks.

@objque  do you mean post with map? sure you can:
package main

import (
	"fmt"
	"github.com/franela/goreq"
)
func main() {
	req, _ := goreq.Request{
		Uri:         "https://httpbin.org/post",
		Method:      "POST",
		Body:        map[string]string{"mostafa": "dahab"},
		ContentType: "application/x-www-form-urlencoded; charset=UTF-8",
	}.Do()
	html, _ := req.Body.ToString()
	fmt.Println(html)
}

results:
{
  "args": {},
  "data": "",
  "files": {},
  "form": {
    "{\"mostafa\":\"dahab\"}": ""
  },
  "headers": {
    "Accept-Encoding": "gzip",
    "Content-Length": "19",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "Host": "httpbin.org",
    "User-Agent": "Go-http-client/1.1"
  },
  "json": null,
  "origin": "<IP_ADDRESS>",
  "url": "https://httpbin.org/post"
}

Hi, poweroftrue!
Thanks for you answer, but i mean something like this: when i send a map, server recieve json-body like
{"some":"value"}. but i want some=value

like this ?
package main

import (
	"fmt"
	"github.com/franela/goreq"
)

func main() {
	req, _ := goreq.Request{
		Uri:         "https://httpbin.org/post",
		Method:      "POST",
		Body:        "mostafa=dahab",
		ContentType: "application/x-www-form-urlencoded; charset=UTF-8",
	}.Do()
	html, _ := req.Body.ToString()
	fmt.Println(html)
}

Yeah.
So, i need to manually convert map[string]string to string and after that send request? I hoped library supports this action. ;(

@objque  what is your use case ?

Server can accept only
field1=value field2=another-value
So i want to create map and simply send it to the server

the best option ever is url.Values simple and it will do necessary encoding/escape:
package main

import (
	"fmt"
	"github.com/franela/goreq"
	"net/url" //don't forget to import net/url
)

func main() {
	values := url.Values{}
	values.Add("key", "value")
        values.Add("mostafa","dahab")
	req, _ := goreq.Request{
		Uri:         "https://httpbin.org/post",
		Method:      "POST",
		Body:        values.Encode(),
		ContentType: "application/x-www-form-urlencoded; charset=UTF-8",
	}.Do()
	html, _ := req.Body.ToString()
	fmt.Println(html)
}

results :
{
  "args": {},
  "data": "",
  "files": {},
  "form": {
    "key": "value",
    "mostafa": "dahab"
  },
  "headers": {
    "Accept-Encoding": "gzip",
    "Content-Length": "23",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "Host": "httpbin.org",
    "User-Agent": "Go-http-client/1.1"
  },
  "json": null,
  "origin": "#",
  "url":


Release 0.0.3

Description
Please explain the changes you have made here.
Jira Ticket
Please add a link to the related Jira ticket (if any).
Checklist
These are items (excluding GitHub Checks) which should be confirmed before a branch is ready to merge.

[ ] Acceptance Criteria met
[ ] Commit messages are meaningful
[ ] Manually tested
[ ] Self-reviewed your code
[ ] Code reviewed from two other developers
[ ] If your pull request depends on any other, please link them in the description
[ ] main branch is passing/green on CI
[ ] Add/update any relevant documentation

https://github.com/nhsconnect/integration-adaptor-lab-results/pull/110


Fixed broken link to Makie docs

http://makie.juliaplots.org/.dev gave me a 404
Also changed it to /stable since that's where makie.org points to.

Thanks!


feat(progressindicator): export default carbon indicator

Closes #1681
Summary

export default carbon progress indicator and progress step components.

Change List (commits, features, bugs, etc)

feat(progressindicator): export default carbon indicator

Acceptance Test (how to verify the PR)

carbon progress indicator should be available under ProgressIndicator stories.

:tada: This PR is included in version 2.143.0-next.9 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.143.0-next.9 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Implement level configuration

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


Docker Compose - Cannot connect to MSSQL and RabbitMQ

The correct hosts and connection strings are not specified.
It seems like I forgot to update the docker-compose files when those were changed.

Something seems to be out of sync.


Backspace does not work before a folded block

Use this code:
import argparse
import os

def fn(argv=None):
  pass

Fold the imports.
Navigate to the 2nd blank line.
Press backspace.
Expected: The line is deleted.
Actual: Cursor moves one line up.

Done in https://github.com/akvelon/flutter-code-editor/pull/249


Worflow-level "error" field does not represent failures in jobs

Even when a job within a workflow fails—with the "github.job.conclusion" field being something other than "success" and the "error" field on the job's span being true—the top-level trace span's "error" field still reports true, making it appear as though the workflow succeeded. Instead, the top-level span's "error" field should bear a false value if any of the constituent jobs failed.

Thanks for reporting this. Parent propagation is tricky. Can you provide any more details on what you've seen specifically? Catching all the edge cases is tough!

Can you provide any more details on what you've seen specifically?

We have jobs that fail—often due to a step invoking a shell program that exits with a nonzero code—and the span representing that job indicates that there was an error. However, there's no indication on the top-level workflow run's trace span that a job within it failed, even though the workflow run failed as a consequence.

Are you running this action on workflow_run Event? Or is it the final job of the workflow it is tracing? I believe there are some edge cases with when the workflow data becomes available over the API when this action is run within the workflow it is tracing which could be what you are observing?

The event in question is "pull_request", and the otel-export-trace-action action runs as the lone step in a final job within the workflow that "needs" all the preceding jobs, with the if condition of always().
What I didn't say earlier is that we'd like some attribute to be present in the top-level trace span that answers the question of whether all the constituent jobs ran to completion successfully. Whether that's the "error" attribute being true to indicate a failure or a successful job count being lower than a total job count, so long as I could discern it in a query, I'd be satisfied. My goal is to detect and react to workflow runs failing in some way.

I would try to separate this trace action in a separate workflow that runs on completion of your PR workflow to see if that solves the error propagation issue.
The GitHub API parent is supposed to set the error of children properly. I believe the issue here is the trace action job at the end isn't complete yet because it is still running the GitHub workflow parent status isn't updated yet. Moving it out of the PR workflow should solve this problem.

I think I understand your suggestion, but that makes it much more difficult to use this action. Instead of this being a job included in any workflow about which we'd like to publish traces, we would now need a second, companion workflow.
Is it feasible to iterate over all of the constituent jobs in the workflow in which this action is running and inspect each job's outcome, such that if any of those outcomes are failures, you could then convey that failure (or two counts, the total number of jobs and the number that either failed or succeeded) in the top-level trace span?

So I don't think adding another workflow is a big challenge. It's actually less code as you can then target all the workflows you want to trace in that one otel workflow instead of creating a trace job for every workflow. This is how we do it for all of our repos.
With that said, the nature of this action is to trust the GitHub API and mirror it over otel. So I don't think it will create some risk and complexity to overwrite what the API says based on internal business logic.
TBH, I've been considering explicitly recommending in the readme to not do this approach of embedding in the workflow because of these eventual consistency issues with the GitHub API.

Absolutely, I'm discovering this along the way too. I built this action for myself to solve my pains with using existing tooling like buildevents and otel cli. I shared it with the community to primarily solicit help in maintaining it.
In the readme the first usage example is how we use it successfully. It is the primary way that we test it. Embedding it in the workflow was an afterthought but not the intended usage. If the readme usage for a separate workflow isn't clear we should definitely improve the docs for that. Is there a specific question you have on using it in that way that I can help answer? I also welcome any updates to the documentation once you do end up resolving your issue so that others can benefit from your learnings.

I confess that I completely bypasses reading that first example in the README.md file because I thought, "No, I'm not reacting to the workflow_run event; I'm reacting to push, as in the second example."
Removing the second and third examples would be a good first step, since it's easy to delete code. Harder is writing new prose. I think we should explain that the action doesn't work correctly if run in the same workflow as the workflow run on which it's trying to report, and that the workflow_run event—together with the "completed" type constraint—is the way to sequence one workflow after another correctly.
While we're here, note that there's also a community discussion entry in which lots of people complain about the ambiguity presented by this event.


Harbor appliance - with https - fails with PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)

Harbor Build: 0.4.5
Steps:

Follow https://github.com/vmware/harbor/blob/master/docs/configure_https.md
Follow https://github.com/vmware/harbor/blob/master/docs/installation_guide_ova.md to use SSL Cert: & SSL Cert: Key
Boot the Harbor appliance
It does change the config to https but fails to decode the crt

Nov  2 05:06:23 <IP_ADDRESS> docker/proxy[849]: 2016/11/02 05:06:23 [emerg] 1#1: PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)
Nov  2 05:06:23 <IP_ADDRESS> docker/proxy[849]: nginx: [emerg] PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)
Nov  2 05:06:23 <IP_ADDRESS> docker/proxy[849]: 2016/11/02 05:06:23 [emerg] 1#1: PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)
Nov  2 05:06:23 <IP_ADDRESS> docker/proxy[849]: nginx: [emerg] PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)
Nov  2 05:06:24 <IP_ADDRESS> docker/proxy[849]: 2016/11/02 05:06:24 [emerg] 1#1: PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)
Nov  2 05:06:24 <IP_ADDRESS> docker/proxy[849]: nginx: [emerg] PEM_read_bio_X509_AUX("/etc/nginx/cert/server.crt") failed (SSL: error:0906D064:PEM routines:PEM_read_bio:bad base64 decode)

logs.tar.gz
config.tar.gz

The root cause is that the string of cert was updated ( all \n were removed) when you paste to vsphere client and passed to VM.
We used a script to add \n to header and footer, but the decoding still failed.
A newer version of openssl can decode the cert as expected so the nginx image will be bumped up to 1.11.5 to include the newer openssl library.
A PR has been merged to master branch and .ova has been updated.
Thanks for reporting the issue.


[WIP] Top-level await integration

The purpose of this patch is to nail down how dynamic import would
adjust to the needs of top-level await. The relevant change is,
the module.Evaluate() method will return a Promise that resolves
when the module is ready, and this will be passed to
FinishDynamicImport to wait on before resolving the Promise it returns.
This PR is just a sketch, not to be landed. For one, the "Upon fulfillment"
language will need to be changed to be more ECMASpeak-like. Top-level
await should also reach stage 3 before this change lands.
The PR where Evaluate returns a Promise is
https://github.com/guybedford/proposal-top-level-await/pull/1

Twin HTML PR https://github.com/whatwg/html/pull/4352

Unnecessary with the current phrasing of https://github.com/whatwg/html/pull/4352 . (The logic is extremely trivial either way, as you can see from that patch, so I don't think there's much for us to pull back here into JS.)

Reopening, as I'm reverting that patch.

This was merged into the TLA spec, closing here
https://github.com/tc39/proposal-top-level-await/pull/148


Update joining.md

Document bug fixed:
missing character '>' in line 257, between 'String' and '()'

What is the purpose of the change
(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)
Brief change log
(for example:)

The TaskInfo is stored in the blob store on job creation time as a persistent artifact
Deployments RPC transmits only the blob storage reference
TaskManagers retrieve the TaskInfo from the blob cache

Verifying this change
Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluster with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no) no
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no
The serializers: (yes / no / don't know) no
The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
The S3 file system connector: (yes / no / don't know) no

Documentation

Has this request introduced new features? (yes / no) no
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

This is fixed since release 1.17 at https://github.com/apache/flink/pull/21119
release 1.13 is not supported since long time ago


converting .h5 files to .meta

Hi,
Thanks for this code!
Is there a way to use the code and convert the Keras model (.h5 file) to a .meta and .index files, to be read by tensorflow?

any luck in this issue?

nope.
the meta files were needed for C++ usage, because I wasn't able to load h5 files in my C++ framework (which formerly worked with .meta files) .
instead, I am now converting the .h5 files to .pb files, and it works fine.


[Q] app for subdir

is it possible to create an app based on a subdir like example.com/subdir/?

Of course! I used Nativefier to "nativefy" https://discordapp.com/channels/@me

Hmm, I get
/usr/local/lib/node_modules/nativefier/lib/options.js:148         throw 'Your Url: "' + normalized + '" is invalid!';

Worked for me...
[~]── - nativefier https://example.com/subdir
Cannot automatically retrieve the app icon: besticon: not found
Unable to automatically determine app name, falling back to 'APP'
Packaging app for platform linux x64 using electron v0.36.4
App built to /home/mbilker/app-linux-x64

what does the normalized mean?

Hi, could you please provide the following:

Version of Nativefier (run $ nativefier --version)
Version of Node.js (run $ node --version)
Command line parameters
OS and architecture you are running Nativefier from
Stack trace from the error message (if any)
Instructions to reproduce the issue

6.8.0
v4.3.1
nativefier --name "SocialwareKanboard" "https:/socialware.at/kanboard/"
Linux Mint 17.3 (64-bit)

got it working.

What's the error/stack trace you get?

see above

Oh, the reason why this fails is because the url you used is invalid. You left out the second slash after the url https:/xxx.at/kanboard/ :D

Sorry but it's just a typo here on GH
Am 25. März 2016 14:29:01 MEZ, schrieb Jia Hao<EMAIL_ADDRESS>
Closed #140.

You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
https://github.com/jiahaog/nativefier/issues/140#event-602999172

I don't really understand why it doesn't work for you...
Could you try
$ nativefier google.com ~/Desktop

worked without any problem


prerender svg

We have some huge svg, and it takes a lot of time to render it on android
how can we prerender svg, so we can make it faster?

You could use headless chrome (if you're using svgs) to render a big enough png and transform it to look the same as the vector version will output, alternatively use an emulator and one of the screenshot libs like e.g. https://github.com/gre/react-native-view-shot this could even be made into a server side raster pre rendering thing with proper caching if needed.

Alternatively the toDataURL base64 output could be used, move the svg offscreen and use something like this in the background before the output is needed and then use a react native image
https://github.com/magicismight/react-native-svg-example/blob/master/examples/Svg.js#L163

@msand Could it be possible that toDataURL is broken in the latest version? I think I got it right, but I get the following red screen. I haven't tried this with an earlier version yet. Should I try with an earlier RNSVG version, or do you have any clue of what could be wrong?
I'm calling toDataURL in componentDidUpdate. At this stage in the lifecycle everything should be ready, shouldn't it?

Could you try doing it in onLayout? I haven't tested toDataUrl for a long time

It works in onLayout. Thanks a bunch!


data loaders cannot work with some linq methods like First

The returned tensors are disposed because the enumerator has been disposed.
Shall we add a parameter to indicate the disposal behavior? We can "keep the result only" or "keep all tensors including the  intermediate ones" or "dispose all".

Perhaps an extension method could be better.

#1306


Documentation - clarify reference steps

Description
This PR adds clarifications to:

keyfile contents in regards to the reference assemblies
files needed post prepare-assemblies command

Type of change
What type of changes does your code introduce? Put an x in boxes that apply.

[ ] CHANGE (fix or feature that would cause existing functionality to not work as expected)
[ ] FEATURE (non-breaking change which adds functionality)
[ ] BUGFIX (non-breaking change which fixes an issue)
[ ] ENHANCEMENT (non-breaking change which improves existing functionality)
[x] NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have updated relevant documentation

Changelog entry
Please add a one-line changelog entry below. This will be copied to the changelog file during the release process.

Clarify "Build and Load" commands in documentation

@bethecon - Okay, I believe I have all the new edits.


Linter (clang-tidy) generates lots of 'suggestions'

I recently added fastrtps as a third party git submodule in one of our projects. Our top level CMakeLists.txt integrates clang-tidy and clang-format to lint our code, and found the build process to generate quite a large number of suggested style and code changes within fastrtps attached here. While arguably many of these can be ignored (eg: readability-inconsistent-declaration-parameter-name or even cppcoreguidelines-pro-bounds-array-to-pointer-decay), there are a few others that might be 'nice' to fix, such as use of const references and smart pointers.
I have created a repo here that is a stripped out version of our repo with just the fastrtps submodule and top level build files, to reproduce the above report, in case it is useful.

Hey! Thanks!
This will be quite useful!

Hi @cvilas
We created a branch to start adding static code analysis using clang-tidy to our code using your experimental repo. We want gradually add clang-format and cppcheck too and define our coding style guides to check against.
I'm closing the issue because it was addressed.
Thank you very much.

Nice. Just a note that in clang format/tidy versions are manually specified in FindClangTools.cmake. You might want to modify it to find the latest available version on the host or just default to default names clang-tidy and clang-format.

Created a separate HowTo guide as a tiny project, if it helps at all: https://github.com/cvilas/clang_tools_howto


NPC unable to attack if target keeps walking?

Every time the NPC is within 3 blocks range of the target, he stands still to swing his sword, but it never actually happens if the target keeps walking, because the NPC won't have enough time to swing before the target is too far away already. So it's just an endless chase without any attacking

It can be fixed by increasing updatePathRate and attackRange

You could of also increase the npc's speed to catch up (you can use like speed 1.5 I think) because the problem I see from changing the rate, is that it will hit faster when you don't run from it.


Create a ISSUE_TEMPLATE and PULL_REQUEST_TEMPLATE for the project

Create a .github folder in the root folder of the project and create a issue template and pull request template.

Hi @neokd, I'm looking to contribute to this repo. Can I please be assigned this issue?


Add support for CancellationToken on Read/ReadPassword

This PR adds CancellationToken to the Read and ReadPassword API.
Functionalities:

CancellationToken for Read and ReadPassword
Async API: ReadAsync
ReadKey to read a single key that mimics Console.ReadKey(bool)

This change is constructed using a background thread that perform readkey on the console and exchange them with the API calling thread using synchronization events. This approach avoid recurrent pulling on the Console.KeyAvailable.
Credits: This change was heavily inspired by 'JSquareD' answer on the following post: https://stackoverflow.com/questions/57615/how-to-add-a-timeout-to-console-readline

Async versions of Console.ReadKey and Console.ReadLine with CancellationToken are notably missing, but I think we should follow convention and:

Create Async versions of the methods (ReadKeyAsync, ReadLineAsync etc.)
Return Task<ConsoleKeyInfo> and Task<string> (respectively)

Also, there's inconsistent naming of the CancellationToken formal parameter (sometimes cancellationToken and sometimes just cancellation).  This should consistently be cancellationToken  or token)


[Feature] - Dark mode

Pull Request
Related Issue:

Closes #XXXXX
Fixes #XXXXX
Description:

Questions

Next adding  mobile responsive design

Hi @harshmangalam I appreciate the dark mode initiative.
But it's not now suitable to go with this PR. The first priority will be for mobile friendly design.
Let me know, if you are interested in doing it. We can discuss it further.

I have also added mobile responsive design


postmortem for 0.3.5

Checklist

[x] the PR target is correct

[x] main for releases, docs-only fixes and post-release hot-fixes
dev for everything else

[x] ran doit lint locally

References

fixes #105

Code changes

tasks

[x] bump to next development version
[x] bump the CACHE_EPOCH
[x] rebuild yarn.lock
[x] rebuild .github/locks

[x] run doit env:lock
[x] run rm -rf .github/locks
[x] from a clean command prompt

[x] 🐧source envs/lock/bin/activate
[x] 🪟 call envs/lock/Scripts/activate.bat)

[x] commit the new locks

User-facing changes

n/a

Backwards-incompatible changes

n/a

Looks good to me.
Steps

reviewed code changes
cloned, updated the lock env, and activated it from a clean command prompt (checked the checkbox above)
launched jupyterlab and played around with the Behaviors notebook, no issues

My bad: this was targeting the wrong branch, see :#108


Feature Request: Resolve Hostname from IP

Can you add the option to resolve the host name of the IP that is being pinged? I see that you are already doing the other way around and resolving the IP from Host Name.

What would be the use case for this? The reason DNS lookup is implemented in the first place is to enable specifying the destination with a host name without knowing the IP address.

Can you help to find host names of device on network? Something like this library doing?


Update copy of Parole info box on Placement Request page

At this point the Placement Request should have a booking but just in case it doesn't we will hide the link.
Updated copy
Screenshots
Before

After

Sorry teeny tiny change. Can we take 'you can' out of the hyperlink so only 'change the arrival date' is hyperlinked?
Otherwise looks great, thanks!

@selina-dxw of course -my bad


Fix missing nuclear gen/fuel data

Add generation_fuel_nuclear_eia923 table to the testing PUDL database
Speed up select statements by filtering on years within sqlite rather than pulling all data and filtering in Pandas.

Codecov Report

Merging #155 (125b7b8) into master (9109476) will increase coverage by 0.91%.
The diff coverage is 94.59%.

@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
+ Coverage   69.76%   70.66%   +0.91%
==========================================
  Files          16       16
  Lines        3065     3088      +23
==========================================
+ Hits         2138     2182      +44
+ Misses        927      906      -21

Impacted Files
Coverage Δ

powergenome/nrelatb.py
91.59% <92.86%> (+3.19%)
:arrow_up:

powergenome/generators.py
82.00% <95.65%> (+1.23%)
:arrow_up:

powergenome/util.py
67.77% <0.00%> (+0.41%)
: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 9109476...125b7b8. Read the comment docs.


Check out this GSoC repo from 2019 as a possible template for tracking activity

@peterm790 , Check out this GSoC repo from 2019 as a possible template for tracking activity.  I think it worked pretty well!

Here is my video about OSS: https://anaconda.cloud/your-first-oss-contribution ; I think you need to register with the site to be able to see it.

Thanks @martindurant, will have a look

@rsignell-usgs I have created a markdown file (https://github.com/fsspec/GSoC-kechunk-2022/blob/main/GSOC_monitor.md) and will work towards continually updating it as we progress to hopefully produce a similar report to the awesome one done by Harman!

@peterm790 , looking good!  It's a great way to track (and refresh memory on) your progress!


Install error

I try to install SoundScrape with pip in a virtualenv, but I get some errors, manly:
Failed building wheel for cryptography
Failed cleaning build dir for cryptography
Failed building wheel for cffi
Command "/home/fredrik/dev.py/soundScrape/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BsVYs9/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Wmkg96-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/fredrik/dev.py/soundScrape/venv/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-BsVYs9/cffi/
This is the whole output from the install
out.txt
What is wrong?

Shit, does brew help?
https://groups.google.com/forum/#!msg/python-cffi/gRiL5pSHKnc/8Y-6ZzrXcwAJ
On Tue, Sep 6, 2016 at 4:49 AM, Fredrik Normann<EMAIL_ADDRESS>wrote:

I try to install SoundScrape with pip in a virtualenv, but I get some
errors, manly:
Failed building wheel for cryptography
Failed cleaning build dir for cryptography
Failed building wheel for cffi
Command "/home/fredrik/dev.py/soundScrape/venv/bin/python -u -c "import
setuptools, tokenize;file='/tmp/pip-build-BsVYs9/cffi/setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))"
install --record /tmp/pip-Wmkg96-record/install-record.txt
--single-version-externally-managed --compile --install-headers
/home/fredrik/dev.py/soundScrape/venv/include/site/python2.7/cffi" failed
with error code 1 in /tmp/pip-build-BsVYs9/cffi/
This is the whole output from the install
out.txt https://github.com/Miserlou/SoundScrape/files/456297/out.txt
What is wrong?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Miserlou/SoundScrape/issues/123, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIi0wHBT4wAXOk8-vVvqYJ0oZXl_yFYks5qnSkzgaJpZM4J1mof
.

Oh, I'm assuming you're on OSX. Is that the case?

Sorry for late reply, I'm on Ubuntu 16.04.

Try with sudo apt-get install python-cffi libffi-dev

Unrelated to SoundScrape, however the previous comment addresses this. cryptography package has good documentation on how to fix these sorts of problems.


Fix label of Auto-detect button in edit dataset snippet

The current tutorial in galaxy 101 for everyone has detect datatype button  text but the button text is `Auto-detect

Thanks @Ajadi-Abiola! ..sorry for the delay, I guess this got lost in the deluge of PRs during outreachy, but better late than never ;)


ENH _find_kit_layout():  add fallback on automatic layout

Reference issue
Example: Fixes #6891.
What does this implement/fix?
When no corresponding KIT layout is built in generate one automatically (previously raised an error).
Additional information
Leaves open the possibility to add manually built layout for any system later.

can you see what azure complains and add a what's new entry?

I pushed a fix for the Azure failure (one channel pos was all nan so I just set it to zero like the last few channels were anyway), but @christianbrodbeck feel free to force push over this if it's not correct, and then add a note to latest.inc

It's strange that it seems to be Windows specific.

errors are unrelated. Merging. Thx @christianbrodbeck


Emitting something wrong for annotations

I am surprised we can even parse the annotations at present.
eg. line 1, column 1188 of dist/dart.ts2dart/injector_spec.dart
we generate
class CarWithInject { Engine engine ; CarWithInject ( [ Inject = ( TurboEngine ) ] , Engine engine ) { this . engine = engine ; } }
from
class CarWithInject {
engine:Engine;
constructor(@Inject(TurboEngine) engine:Engine) {
this.engine = engine;
}
}

the error from dart_style is
Normal parameters must occur before optional parameters
not that it really matters since we are producing garbage

I cannot reproduce this. Maybe it got fixed by accident in our parameter handling changes?

Probably it is fixed now that we parse the annotations.
On Tue, Mar 24, 2015 at 7:29 PM Martin Probst<EMAIL_ADDRESS>wrote:

Closed #56 https://github.com/angular/ts2dart/issues/56.
—
Reply to this email directly or view it on GitHub
https://github.com/angular/ts2dart/issues/56#event-264231568.


refactor ifs

What problem are we solving?
small refactor https://github.com/seaweedfs/seaweedfs/pull/5539

if to switch
string metrod to const

How are we solving the problem?
improve readability
How is the PR tested?
Checks

[ ] I have added unit tests if possible.
[ ] I will add related wiki document changes and link to this PR after merging.

Go test failed.

@kmlebedev
I would assume test fails because at least curl for example sends Content-Type: multipart/form-data; boundary="----xyz", so I think it's not possible to simply test with equality operator here.
Additionally, I am not sure if the content-type is always set to multipart/form-data by existing clients, so if it's empty I think it should be treated as multipart/form-data for backwards compatibility. 🙂

https://github.com/seaweedfs/seaweedfs/pull/5726


Add connection to allow different database then default

It would be nice to add connection(table_connection?) as option to DynamicModel to allow use of a different database then the default one.
My dynamic tables are in a different table then the default to make it easier to separate them :)

Hi @paddy01, I released version 2 of this package today.
It now requires PHP 8.1.
In version 2 adding the db connection works.

@Sairahcaz  sorry to say but I think something is terribly wrong with version 2.0 :(
I just upgraded to version 2.0 running php 8.2 and laravel 10.5.1 and it only result was that it now sends up the error
"
SQLSTATE[42S02]: Base table or view not found: 1146 Table '.dynamic_models' doesn't exist (Connection: mysql, SQL: select * from dynamic_models)
"
( == my database masked)
After downgrading to 1.0 it works as intended.

Hi @paddy01 could you maybe share some code here?

Hi @paddy01 sorry to hear that, could you maybe share some code here?

Ofc.. something like this is what it looks like
Controller:
    public function index(Table $table)
    {
        $tableName   = $table->name;

        $dynamicTablePrefix = env('DB_PREFIX_2', 'lefnf_');
        $dynDbConnection    = env('DB_CONNECTION_2', 'mysql2');
        $dynTableName       = $dynamicTablePrefix . $tableName;
//       $dynTableName       = $tableName;

        $dynTable = \App::make(
            DynamicModel::class, [
//                'db_connection' => $dynDbConnection,
                'table_name'    => $dynTableName,
            ]
        );
...
        return view('view', array(
            'tableDatas'   => $dynTable->all(),
        ));

and in my blade template I use tableDatas to fetch data from the table in question
                @foreach ($tableDatas as $tableData)
                <tr data-href="{{ route('dtable.edit', array(
                        'iddata'    => $tableData[$tableFields->where('type', 'id')->first()['name']],
                    )) }}
                ">
                @endforeach

(there are ofc more logic around :) )
This works fine in v1 but not in v2 where it gives the error mentioned earlier.
I don't know where it gets the idea to look for the table dynamic_models .. is this something new i v2 ?
I added a few dumps and stuff to the DynamicModel.php and it seem to be getting all that it should, from what I understand.

I'll check this out this week, want to refactor and improve some stuff here, get back to you soon...

Hi @paddy01, I pushed a new version, feel free to test again!
Notice that a new db connection should be passed like this:
// use another db connection (this one must be defined in your config/database.php file)
$fooOtherDB = App::make(DynamicModel::class, ['baz', 'your-optional-db-connection-name-here']);

Hi @paddy01 I definitely need to have a closer look on this. I will have a look at this the next few days...

@paddy01 you are calling the all method, since this method is static, it loses the table and connection bindings.
Use get instead: $dynTable->get() should work...
I'll point that out in the documentation. Could you please revert all your changes and check if it is working with the get method an let me know then?

@paddy01 check out version 3, the static method calls should now work. Consider reading the new docs...

@paddy01 check out version 3, the static method calls should now work. Consider reading the new docs...

Sorry didn't have time to look at this yesterday but today I upgraded to 3.0 and I almost got it to work.. almost..
now I have to have the dynamic table in the default database and the second for it to work.. but i reads the one in the second database, as it should.
If I remove it I now get
LaracraftTech \ LaravelDynamicModel \ DynamicModelException
The table 'dolorum' you provided to the dynamic model does not exists! Please create it first!

(dolorum is the dynamic table name)
If I look into debugbar I can see the query

Telescope gives the query as
select
  *
from
  information_schema.tables
where
  table_schema = 'MAINTABLE'
  and table_name = 'dolorum'
  and table_type = 'BASE TABLE'

while the queries later on that actually looks for the table is actually using the correct connection .. looks like DynamicModelFactory.php row 59 that is using hasTable is not using the correct connection hens failing to see that the table exist :/

@paddy01 could you share some code here?
This is working fine for me, on each database connection:
// mysql = default database connection
$foo = app(DynamicModelFactory::class)->create(DynamicModel::class, 'foo', 'mysql');
$foo->find(1)->delete();

// mysql2 = custom defined database connection (config/database.php)
$foo = app(DynamicModelFactory::class)->create(DynamicModel::class, 'foo', 'mysql2');
$foo->find(1)->delete();

@paddy01 could you share some code here? This is working fine for me, on each database connection:

$dynDbConnection = 'mysql2';
$dynTableName = 'table';

$dynTable = app(DynamicModelFactory::class)->create(DynamicModel::class, $dynTableName, $dynDbConnection);
dd($dynTable->first());

$dynTable->first() works perfectly when the $dynTableName exists in both default and $dynDbConnection table but if I remove it from the default table it fails with the errors described earlier.

@paddy01 thanks for your debug help :D
This should now be fixed in v3.0.1

@Sairahcaz upgraded to 3.0.2 just now and can confirm that it now works with the connection specified! :)
But using prefix doesn't but that ain't important for me at the moment.
Thank you so much for getting separate connection to function and if you decide to work on prefix too I can help you with debugging if needed :)

@paddy01 good to hear that!
If you want you could submit a PR for prefixed tables :D


Thompson SMG firing sound overlapping causes a "deafening" effect

Bad sound settings/volume settings, or channel settings

a21a019


DOC: Mention unique transaction per collection.write()

Re https://github.com/Toblerity/Fiona/issues/740 I added notes about the transactions on write operations

as a hint to the Fiona-using programmer in the docstring and
as a note for everyone to see in the manual.

Coverage increased (+0.06%) to 82.497% when pulling 90e7c2ee34e54a585c6a2e71a8230edd731327be on kannes:docs_write_transactions into df5aca2ff460cf8712cbdad276f3ea00954013b5 on Toblerity:master.

Coverage increased (+0.06%) to 82.497% when pulling 90e7c2ee34e54a585c6a2e71a8230edd731327be on kannes:docs_write_transactions into df5aca2ff460cf8712cbdad276f3ea00954013b5 on Toblerity:master.


IA-3790 Upgrade to networking.k8s.io/v1

@rtitle the chart change is what was pushed as 0.4.0...it passed automation tests in leo and also I've been testing on fiab with this change


Ansible: Add flannel support for Ubuntu with upstart

Hmmm... I think I have CLAs signed already, not sure what else to do for the "author consent" part.

OK to merge from eBay

will do more polishing and resend PR