What are the differences of UIImageView's categories?

When I want to use  UIImageView's methods to download images from remote server, I can't decide which method to use? So can anybody tell me what are the differences of setImageWithURL: and setImageWithURL:placeholderImage: and  setImageWithURLRequest:placeholderImage:success:failure? %>_<%

This should be placed on stackoverflow.  setImageWithURL: will set the image after the image is finished downloading.  setImageWithURL:placeholderImage: will first set the image to the placeholder and then set the image after it is finished downloading.  and the last one allows you to do some sort of image processing before setting the image yourself in the success block.

Thanks, @tomasikp.

O(∩_∩)O~Um, I see. Thanks,@tomasikp and @mattt .


Does not use DataType.Password

Swashbuckle does not set the input type to password when the property is decorated using the [DataType(DataType.Password)] property decorator.
    public class Model
    {
        [Required]
        [DataType(DataType.Password)]
        public string Password { get; set; }
    }

As you figured out, Swashbuckle doesn't use the DataType attributes. @domaindrivendev is there a need / wish to support this?
You could use a custom IOperationFilter to get what you want, something like this:
public class PasswordOperationFilter : IOperationFilter
{
    private static Type _modelType = typeof(Address);

    public void Apply(Operation operation, OperationFilterContext context)
    {
        if(context.ApiDescription.ActionDescriptor.Parameters.Any(x => x.ParameterType == _modelType))
        {
            var password = operation.Parameters.OfType<NonBodyParameter>()
                                               .SingleOrDefault(x => x.Name == nameof(Model.Password));
            if (password != null)
            {
                password.Format = "password";
            }
        }
    }
}

Of course, you can make this more generic and have it work on the DataType attribute.

It would be nice if Swashbuckle did this out-of-the-box.

Addressed by 7e762ef41d7c6b0a82c0cddfca6e360355b379fa.


Please add more detail around the "always" tag for scheudled triggers.

I see now that there is a brief message about the always tag for scheduled triggers. This was not informative enough for me to know that it is required to run the pipeline more than once on the schedule. Can you please add a paragraph or two that explains in detail what this tag controls and that it is important for actually running pipelines on a schedule and not just a single execution.

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

ID: f5673ec1-c7d1-e0ac-043a-8fc3d5b226a9
Version Independent ID: b4872831-51c0-6cf8-1c56-de20beb38a80
Content: Build pipeline triggers - Azure Pipelines
Content Source: docs/pipelines/build/triggers.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

Working on this.

Thank you for your feedback.
The article is being updated to address the issue.


Add recipe for using getImage() and creating custom component

Description (required)

This PR is responsible for creating a recipe for how to use the getImage function in a custom picture component.
I have linked to the new recipe in the Generating images with getImage() section of the images guide

I am participating in hacktoberfest. Please add the hacktoberfest-accepted if this issue is accepted. Thank you 👍

Related issues & labels (optional)

Closes #4389
Suggested label: recipe

Links to pages changed

https://deploy-preview-5042--astro-docs-2.netlify.app/en/guides/images/#generating-images-with-getimage
https://deploy-preview-5042--astro-docs-2.netlify.app/en/recipes/getimage/

Thank you for jumping on this issue, @jdwilkin4 !  :raised_hands:
As luck would have it, Astro is finally releasing its own experimental Picture component and srcset support tomorrow! But, the example you've shown here with using getImage() isn't actually something that this component of ours will support at this point!
So, I think this could be a great addition if we can frame it as something more than "creating a Picture component" (because tomorrow, we'll have an implementation of that), but maybe referring specifically to the media query/art direction aspect of it, since ours will not support that? Right now, it's a perfectly functional recipe, but it's lacking a bit of a "story" around it that it could use now that we have a Picture component. I think this works if we make it clear that it's even going beyond the existing Picture component, and that getImage() can be used to do whatever you want!
It might be useful to look at the PR we have that will be released tomorrow, showing what our Picture component will do (and, you'll see that it won't support setting a media attribute) so that you can frame this as specifically using getImage() to go beyond what the existing <Image /> and <Picture /> components do: #4866
And, I also wanted to point out that we have a <RecipeLinks/> component in docs for linking to related recipes, with our little Chef Houston emoji. So when we do link to it, we can use something a little fancier than a plain text link!
So take a look at the Picture component coming out, what it will/won't do, and see if you can add some "when/why would I use this?" context to this recipe. Also, we shouldn't title the file getImage because that's a specific API function and it could be confusing for people looking up the function for reference. A more descriptive file name is fine, based on the "thing this demonstrates achieving" from whatever story you end up telling. Notice how some of the others are e.g. build-forms, call-endponts, and reading-time.
And I can see Erika has left some technical suggestions, so I'll let you address those and then think about the story you want to tell around this!
Let me know if you have any questions, but I think using the media attribute and having this recipe is a nice addition here.

Hi @sarah11918 !
Thank you for your comment and notes.
I will take a look at the new picture component and see how I can update my PR 👍

Hi @sarah11918 !
I have updated the recipe 👍

@jdwilkin4 Jessica, I am so happy with how this turned out, and I hope you are, too!
We really appreciate you seeing an issue you can tackle, and taking the initiative to contribute. I don't think we've had a new official recipe in a while, and this will be very helpful to our community. Thank you again!

The new recipe looks great 😀
Thank you for all of your help @sarah11918


Not support IE 11

Unable to display full content on ie 11

Thanks for the heads up, please install the latest version, it should be fixed now.
https://github.com/eddiesigner/liebling/releases/tag/v.0.4.3

Thanks for your quick update, now it works.


Documentation on adding a starterkit needs amending

I found the following issue:
The documentation on adding a starter kit seems a little off.
I've added the starterkit-mustache-demo, but that's inserted scripts in my source/js file that aren't being picked up during development.
I think I'll need to expose them as modules and either append to my entry js or expose as new entries. Or figure out how to update the copy plugin to catch non-modular JS and copy from source to public.
This may be an issue of using non-webpack starterkits with the webpack wrapper.
In any case, the documentation says

To install a specific StarterKit from GitHub type:
npm run add [starterkit-vendor/starterkit-name]
npm run patternlab:loadstarterkit --kit=[starterkit-name]

But there is no add script in package.json
Recommendations on Solutions:
Amend documentation to explain how to do this, and/or how to deal with problems with available starter kits. Thanks.

Yup you are correct, it's a typo  the first line should be npm install [starterkit-name] then the second. I will get that corrected.

Thanks. Still working out how to customize this wrapper in certain ways (like adding the html-webpack-plugin to my webpack.app.js, as it seems to blow away the patternlab iframe wrapper), but thanks for making it. I hope it eventually becomes a new standard approach for the node version.

Have you seen this: https://github.com/Comcast/patternlab-edition-node-webpack#setting-the-webpack-merge-options there's a link there to a readme that goes over the webpack merge options.

Yes, I did read that and the merge docs for webpack. Just experimenting to see how things work. Patternlab adds a layer of indirection (or that's how I'm seeing it) with the wrapper around the iframe that contains your actual bundles. That said, I have gotten some customizations to work, and merging options seem sensible.


User can toggle to see or hide additional properties within the samplegrid if defined for a sample

What was changed
1.) Introduce column within sample table which contains the properties as a JSON
2.) Convert Json to Hashmap in our application via dedicated converter
3.) Show sample properties for samples within the itemdetails of a sample if the user clicks on the toggle button.
4.) Toggle button only appears if additional properties have been defined
How to test
1.) Go to SampleDetailsComponent within an experiment with a sample for which properties are defined. E.g. Project QOPBS
2.) Press the toggle button in the properties column (only present if a sample has properties defined)
3.) Observe dummy data

@Steffengreiner
I will close this PR as this branch is out of date for too long


Pivottable data value subtotal is always sum

The AddDataValue method in WorksheetAccessor class doesn't accept a subtotal function. By default the spreadsheet will use sum.
Changing
fields.Add(new XElement(S.dataField, new XAttribute(NoNamespace.name, "Sum of " + fieldName),
                        new XAttribute(NoNamespace.fld, index), new XAttribute(NoNamespace.baseField, 0),
                        new XAttribute(NoNamespace.baseItem, 0)));

to (example)
fields.Add(new XElement(S.dataField, new XAttribute(NoNamespace.name, "Sum of " + fieldName),
                        new XAttribute(NoNamespace.fld, index),
new XAttribute(NoNamespace.subtotal, "count"),
new XAttribute(NoNamespace.baseField, 0),
                        new XAttribute(NoNamespace.baseItem, 0)));

will work?!

WorksheetAccessor.AddDataValue(doc, pivot, "Column Name", );
there should have been some argument regarding Summary Type as we can't find a way to change summary type through code and it is taking by default 'SUM'.

Closing all issues as this repo is being archived and will no longer be maintained by Microsoft. The project is licensed for continued use and development by forking to your own repo.


Uncaught TypeError: Cannot read properties of undefined (reading 'register')

Describe the bug
I can run ‘vue-quill-editor’ by using vue-cli4.5.13，However, the following error is reported when installing 'quick image resize module':
quill.js?9339:1122 Uncaught TypeError: Cannot read properties of undefined (reading 'register')
at Function.register (quill.js?9339:1122:1)
at eval (main.js?56d7:18:1)
at ./src/main.js (app.js:1147:1)
at webpack_require (app.js:859:30)
at fn (app.js:151:20)
at 1 (app.js:1256:18)
at webpack_require (app.js:859:30)
at checkDeferredModules (app.js:46:23)
at app.js:1040:18
at app.js:1043:10

Reproduction
quill.js?9339:1122 Uncaught TypeError: Cannot read properties of undefined (reading 'register')
at Function.register (quill.js?9339:1122:1)
at eval (main.js?56d7:18:1)
at ./src/main.js (app.js:1147:1)
at webpack_require (app.js:859:30)
at fn (app.js:151:20)
at 1 (app.js:1256:18)
at webpack_require (app.js:859:30)
at checkDeferredModules (app.js:46:23)
at app.js:1040:18
at app.js:1043:10
System Info
"vue-quill-editor": "^3.0.6",
"quill-image-resize-module": "^3.0.0",

main.js
import VueQuillEditor, { Quill } from 'vue-quill-editor'
import { ImageResize } from 'quill-image-resize-module'
Quill.register('modules/imageResize', ImageResize)
Vue.use(VueQuillEditor)

vue.config.js
config.plugin("provide").use(webpack.ProvidePlugin, [
      {
        "window.Quill": "quill/dist/quill.js",
        Quill: "quill/dist/quill.js",
      },
    ]);

Used Package Manager
npm
Validations

[X] Read the the documentation in detail.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I have a problem with my writing


feat(raw/oio): Use Buffer as cache in RangeWrite

This closes #4453.

Most change looks good! We just need to make clippy happy.


ko should produce multi-platform images

Right now we assume amd64/linux and use distroless.
This is blocked on full manifest list support in the library, but ideally supplying a multi-platform base image would produce a multiplatform ko image.
(this is mostly a placeholder for reference until I flesh this out more)

The general idea for this was to drive the platform selection via the base image. Specifying a manifest list as the base image should produce a manifest list. If you want to build for a single platform, you could specify that platform's image.
I like this approach because we don't have to add any additional configuration or flags or anything, it's totally data-driven. One drawback is that it might be surprising that if you specify e.g. busybox, you'd end up building a binary for every single platform, but we could print a warning or something to make that clear.
We currently just pass through environment variables to go build for GOOS and GOARCH to set the platform/os, but we could inspect the base image's configuration instead for architecture and os.
This will be a bit of a pain to rework some of ko's build/publish interfaces, but it shouldn't be too difficult.

May I ask I question? Am I must export the env GOARCH=ppc64le if I want to build the ppc64le image on power when I use the current ko? Thanks.
@jonjohnsonjr

@zxDiscovery correct,  if you use a ppc64le specific image, you don''t need to export GOARCH anymore. Let me know if that doesn't work for you.

I use ko to build the ppc64le image on ppc64le platform, but the image can't work normally when I didn't export GOARCH=ppc64le.
root@dusk1:~# docker run -it 666ffcf0b33c
standard_init_linux.go:190: exec user process caused "exec format error"

After I export GOARCH=ppc64le, the images can work normally.
My environment information as follows:
root@dusk1:~# uname -o
GNU/Linux
root@dusk1:~# uname -a
Linux dusk1.fyre.ibm.com 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:27:02 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux

@jonjohnsonjr

@zxDiscovery If you're not overriding the base image, it will use gcr.io/distroless/base by default, which is an amd64/linux image, which would cause that not to work. You'd have to specify a ppc based image in .ko.yaml to take advantage of that change, e.g. ubuntu@sha256:0dcd8df85597396276e73ec96deb5c67c03c09b69297f7f3eb1a278649ec8e9b
To demonstrate, building an image containing ko -- note the architecture in the resulting config.
$ cat .ko.yaml
defaultBaseImage: ubuntu@sha256:0dcd8df85597396276e73ec96deb5c67c03c09b69297f7f3eb1a278649ec8e9b

$ crane config $(ko publish -B .) | jq  .
2019/09/05 10:02:15 Using base index.docker.io/library/ubuntu@sha256:0dcd8df85597396276e73ec96deb5c67c03c09b69297f7f3eb1a278649ec8e9b for github.com/google/ko/cmd/ko
2019/09/05 10:02:17 Building github.com/google/ko/cmd/ko
2019/09/05 10:03:09 Publishing gcr.io/jonjohnson-test/ko/ko:latest
2019/09/05 10:03:10 existing blob: sha256:5059b42e78fada41824113ed43dc1dc528fe012caf84ec97fcd07be81bfe7e79
2019/09/05 10:03:10 existing blob: sha256:82bd3abde49712c4b07e1806574ae883d0b3e4fe3ad89bbc1c55b9edb8b001b5
2019/09/05 10:03:10 existing blob: sha256:2ba46c90b764a32fffe0fab2a144f38747f96ac61145e599da966777c7003e29
2019/09/05 10:03:10 existing blob: sha256:72164b581b02b1eb297b403bcc8fc1bfa245cb52e103a3a525a0835a58ff58e2
2019/09/05 10:03:10 existing blob: sha256:e9c62a75817ffb7dc6e831c48ed1799686dd3e3bd1a24f8db40adc2003642be1
2019/09/05 10:03:12 pushed blob: sha256:e353234264ad9f10ec480f9711c0010d6601b0ff8eaa1ed3c6f0f9a45d5825b1
2019/09/05 10:03:14 pushed blob: sha256:0c6a7186f4030d8a0e31a799d41eea3df2622120aa551ffa53b296620bc51ac0
2019/09/05 10:03:14 gcr.io/jonjohnson-test/ko/ko:latest: digest: sha256:cfc98498038ebcd5a5aefd6fc4de54361338c735c2e46f3caf1edeb9b8081942 size: 1235
2019/09/05 10:03:14 Published gcr.io/jonjohnson-test/ko/ko@sha256:cfc98498038ebcd5a5aefd6fc4de54361338c735c2e46f3caf1edeb9b8081942
{
  "architecture": "ppc64le",
  "author": "github.com/google/ko",
  "container": "bbf212bf9f0adaf7b4f32b1ce38526ae00197a38d82a8ea1ee9ac30420fc650f",
  "created": "2019-08-15T02:48:38.575406165Z",
  "docker_version": "18.06.1-ce",
  "history": [
    {
      "created": "2019-08-15T02:48:22.821369106Z",
      "created_by": "/bin/sh -c #(nop) ADD file:b0543ee4842b7be023d75e419a665cb6a64e3d23676ef87846964a8583761c51 in / "
    },
    {
      "created": "2019-08-15T02:48:29.552132934Z",
      "created_by": "/bin/sh -c [ -z \"$(apt-get indextargets)\" ]"
    },
    {
      "created": "2019-08-15T02:48:33.2412921Z",
      "created_by": "/bin/sh -c set -xe \t\t&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \t&& echo 'exit 101' >> /usr/sbin/policy-rc.d \t&& chmod +x /usr/sbin/policy-rc.d \t\t&& dpkg-divert --local --rename --add /sbin/initctl \t&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \t&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \t\t&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \t\t&& echo 'DPkg::Post-Invoke { \"rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true\"; };' > /etc/apt/apt.conf.d/docker-clean \t&& echo 'APT::Update::Post-Invoke { \"rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true\"; };' >> /etc/apt/apt.conf.d/docker-clean \t&& echo 'Dir::Cache::pkgcache \"\"; Dir::Cache::srcpkgcache \"\";' >> /etc/apt/apt.conf.d/docker-clean \t\t&& echo 'Acquire::Languages \"none\";' > /etc/apt/apt.conf.d/docker-no-languages \t\t&& echo 'Acquire::GzipIndexes \"true\"; Acquire::CompressionTypes::Order:: \"gz\";' > /etc/apt/apt.conf.d/docker-gzip-indexes \t\t&& echo 'Apt::AutoRemove::SuggestsImportant \"false\";' > /etc/apt/apt.conf.d/docker-autoremove-suggests"
    },
    {
      "created": "2019-08-15T02:48:36.972700111Z",
      "created_by": "/bin/sh -c mkdir -p /run/systemd && echo 'docker' > /run/systemd/container"
    },
    {
      "created": "2019-08-15T02:48:38.575406165Z",
      "created_by": "/bin/sh -c #(nop)  CMD [\"/bin/bash\"]",
      "empty_layer": true
    },
    {
      "author": "ko",
      "created": "0001-01-01T00:00:00Z",
      "created_by": "ko publish github.com/google/ko/cmd/ko",
      "comment": "kodata contents, at $KO_DATA_PATH"
    },
    {
      "author": "ko",
      "created": "0001-01-01T00:00:00Z",
      "created_by": "ko publish github.com/google/ko/cmd/ko",
      "comment": "go build output, at /ko-app/ko"
    }
  ],
  "os": "linux",
  "rootfs": {
    "type": "layers",
    "diff_ids": [
      "sha256:3bd6a3fabaf390af12bc5d3cd3391e4d5f3106a3059cb3edaf0bec7745abea5a",
      "sha256:ff27e67a5be08af21d77d57b007248cd460bd76da4dd8e6e0f6d618e07c73ad1",
      "sha256:657b0bf9ab813720ed1aefd911e396834a63fe81418177896271f8c7b0de9344",
      "sha256:5495fb6e2095216885c46ab60b657b7f3a88550f98999972deb0a7199d757ea2",
      "sha256:4f76c7cc15474e09ddbebb4b39759df491cde9af6c85700612e7ec756492d571",
      "sha256:197515112b55d2ad87e2972ba1a74eb4d572be875c4de05ed718344e309a3c59"
    ]
  },
  "config": {
    "AttachStderr": false,
    "AttachStdin": false,
    "AttachStdout": false,
    "Cmd": [
      "/bin/bash"
    ],
    "Healthcheck": null,
    "Domainname": "",
    "Entrypoint": [
      "/ko-app/ko"
    ],
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "KO_DATA_PATH=/var/run/ko"
    ],
    "Hostname": "",
    "Image": "sha256:577428f5b7e262703426d2407e60dc2f74b33adbfcc5602fb7e43a474cad5d13",
    "Labels": null,
    "OnBuild": null,
    "OpenStdin": false,
    "StdinOnce": false,
    "Tty": false,
    "User": "",
    "Volumes": null,
    "WorkingDir": "",
    "ExposedPorts": null,
    "ArgsEscaped": true,
    "NetworkDisabled": false,
    "MacAddress": "",
    "StopSignal": "",
    "Shell": null
  },
  "container_config": {
    "AttachStderr": false,
    "AttachStdin": false,
    "AttachStdout": false,
    "Cmd": [
      "/bin/bash"
    ],
    "Healthcheck": null,
    "Domainname": "",
    "Entrypoint": [
      "/ko-app/ko"
    ],
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "KO_DATA_PATH=/var/run/ko"
    ],
    "Hostname": "",
    "Image": "sha256:577428f5b7e262703426d2407e60dc2f74b33adbfcc5602fb7e43a474cad5d13",
    "Labels": null,
    "OnBuild": null,
    "OpenStdin": false,
    "StdinOnce": false,
    "Tty": false,
    "User": "",
    "Volumes": null,
    "WorkingDir": "",
    "ExposedPorts": null,
    "ArgsEscaped": true,
    "NetworkDisabled": false,
    "MacAddress": "",
    "StopSignal": "",
    "Shell": null
  }
}

I wonder if we'll need something like https://github.com/karalabe/xgo to support CGO for this 🤔

https://github.com/google/ko/pull/38 has landed but we should document this.

https://github.com/google/ko/pull/211


Bug: select include all columns from joined tables (2.8.0 breaks)

After upgrade from 2.7.0 to 2.8.0 :
When joining tables in a Select object, the buildSqlString() method includes all columns from joined tables (SQL_STAR) although they should be discarded by the third param in the Select::join($name, $on, $columns = self::SQL_STAR, $type = self::JOIN_INNER) method.
This bug may lead to really poor performance after upgrade as joined tables are often used to filter results or even worse disclosing information in case the query is used to generate data (api). This probably may be marked as security bugfix as well.
This bug have been tested with php 5.6.20 / 7, Mysql, Oracle, Sql92 platforms.
Take a look at this example
(notice the $columns=[] param in the join() method and see also the columns()):
$select = new \Zend\Db\Sql\Select();
$select->from('my_table')
       ->join('joined_table', 'my_table.id = joined_table.id', $columns=[])
       ->columns([
          'my_table_column',
       ]);
$sql_string = $this->sql->buildSqlString($select, $this->getAdapterForPlatform('Sql92'));

On 2.7.0 and before the resulting query string is correctly only producing one column:
SELECT
    "my_table"."my_table_column" AS "my_table_column",
FROM "my_table"
INNER JOIN "joined_table" ON "my_table"."id" = "joined_table"."id"

After update to 2.8.0, the resulting query string incorrectly add all columns from the joined table. Take a look on the third line (joined_table.*)
SELECT
    "my_table"."my_table_column" AS "my_table_column",
    "joined_table".*
FROM "my_table"
INNER JOIN "joined_table" ON "my_table"."id" = "joined_table"."id"

I'm currently looking to provide a P/R and add some specs into the SqlFunctionnalTests. Feel free to help.

Pull request and possible fix on its way, see #99

I can confirm this bug and it also breaks existing code, for example the query below that has two joins:
$select = $sql->select('news');
$select->join('company',` 'company.id = news.company_id');
$select->join('category', 'category.id = news.category_id');

If all the tables have an "id" field, In MySQL this will cause a "Duplicate column name", thus throwing an exception.
For my case @belgattitude PR fixes the problem.

Hi Felipe,
Good to know...
I'm a bit curious, looking at your code snippet I feel my fix is not supposed to fix it ;) For that your code should explicitly pass an empty array as 3rd param like :
$select = $sql->select('news');
$select->join('company',` 'company.id = news.company_id', []);
$select->join('category', 'category.id = news.category_id', []);
$select->columns([.....]);

Or am I missing something ?  Just asking in case I forgot some use cases in the tests
Anyway I've just updated the PR with more tests and optimization.
Can you test with the latest ?
Thanks,
Seb


Highlight songs you already voted for

We should highlight the thumbs up/thumbs down an account already voted for.

Yes, that's what I'm trying to say.
If you actually rate via the api and later go to the website it's not obvious if you already voted for something or not.


Update sbt to 1.3.12

Updates org.scala-sbt:sbt from 1.3.10 to 1.3.12.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

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

labels: library-update, semver-patch

Codecov Report

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

@@           Coverage Diff           @@
##           master     #555   +/-   ##
=======================================
  Coverage   78.84%   78.84%
=======================================
  Files         122      122
  Lines        4004     4004
  Branches       89       89
=======================================
  Hits         3157     3157
  Misses        847      847

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 931d250...6695fde. Read the comment docs.


FR: Custom field

What?

It would be great if can add custom front matter keys automatically when file changes/ when file save

Why?
My potential use case for the plugin

Automatically add lastModifier: Alice when saving a file. In the future, with other plugins like Chronology, I might be able to input the lastModifier name and check the file modification/creation history timeline for a specific modifier.
This would be helpful for visualizing collaboration on Obsidian files and being able to see the timeline of modifications made by different authors (lastModifiers).
Currently, Chronology uses datetimeUpdate to create the timeline, but it does not have a feature to select the author option. This is just a thought for a "Great to have" feature.

Other note

Linter Plugin  is able to set custom order of the front matters (this plugin can work perfectly with Linter Plugin)
in Linter Plugin if you want the order of title, id, datetimeCreate, datetimeUpdate. You can input below in a field:

title:
id:
datetimeCreate:
datetimeUpdate:

谢谢！所以我认为我的工作有：

可以考虑删除自动排序的功能，兼容 Linter Plugin
可以考虑支持自定义键值

Thank you! So I think my tasks are:

Consider removing the automatic sorting feature to be compatible with the Linter Plugin.
Consider supporting custom key-value pairs.

看起来 Linter 插件有时间戳功能（创建日期、修改日期）和标题功能。同样功能在本插件中不是必须的，可以考虑去除
只保留id的功能感觉就足够了，这也是这个插件的初衷

It seems that the Linter plugin has a timestamp feature (creation date, modification date) and a title feature. The same features are not necessary in this plugin and can be considered for removal.
Keeping only the id feature seems to be enough, which is also the original intention of this plugin.

考虑把id的逻辑也放在自定义键值对里面，这样功能更完善

Consider putting the logic of id in the custom key-value pairs as well, making the functionality more comprehensive.

There is another use case I have for the custom field.
Context
For instance, I am in the process of reviewing a course. In the front matter, I have a field named course: to help me identify which course a topic or concept was mentioned previously. This is also useful when I use the Dataview Plugin to extract a summary table of concepts I've learned in this course.
Here is an example of the dataview query I would use to extract the course concept summary table:
```dataview
TABLE WITHOUT ID
         file.link AS "Related Concept for the Exam",
	description,
	highlights
FROM ""
WHERE contains(file.frontmatter.course, this.file.name)
SORT file.name ASC
```

The Use Case
The custom field feature can assist me in the following scenario:

After editing the plugin settings with a custom key: course and value: "[[MAST90083]]" (where MAST90083 is the course page name)
When I am focusing on the review process, and all the content I open is related to a course I want the front matter to be automatically updated when I save the file.
When saving:
If the course does not exist, then add course with "[[MAST90083]]" as an array item in YAML.
If the course already exists in the current YAML, change the current course items to an array and append a new line: - "[[MAST90083]]"
It would also be great if there were a command palette command to toggle the auto front matter mode.


[BUG] golang "invalid memory address or nil pointer dereference" error

Unfortunately, I can't provide any details on that, bc roadrunner crashes every now and then based on incorrect PHP worker (yes, they're always present some app PHP error for these cases). It's run under docker container and serve command is an entry command
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x92f9de]

goroutine 34 [running]:
github.com/spiral/roadrunner.(*StaticPool).Workers(0x0, 0x0, 0x0, 0x0)
        /go/pkg/mod/github.com/spiral/roadrunner@v1.8.0/static_pool.go:110 +0x4e
github.com/spiral/roadrunner.(*Server).Workers(0xc0002a0fc0, 0x0, 0x0, 0x14dc050)
        /go/pkg/mod/github.com/spiral/roadrunner@v1.8.0/server.go:217 +0x44
github.com/spiral/roadrunner/util.ServerState(0xc0002a0fc0, 0xc0002a0fc0, 0xdc0660, 0xc000056fb8, 0xa4ce99, 0xc0002970e0)
        /go/pkg/mod/github.com/spiral/roadrunner@v1.8.0/util/state.go:52 +0x73
github.com/spiral/roadrunner/cmd/rr/http.(*metricCollector).collectMemory(0xc0002ae580, 0xc0000e0bb0, 0x2540be400)
        /go/pkg/mod/github.com/spiral/roadrunner@v1.8.0/cmd/rr/http/metrics.go:112 +0xb8
created by github.com/spiral/roadrunner/cmd/rr/http.init.1.func1
        /go/pkg/mod/github.com/spiral/roadrunner@v1.8.0/cmd/rr/http/metrics.go:35 +0x286```

+1

Confirming this to be the case.
For me, this happens during the pod startup.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x91eefb]

goroutine 32 [running]:
github.com/spiral/roadrunner.(*StaticPool).Workers(0x0, 0x0, 0x0, 0x0)
	github.com/spiral/roadrunner@v1.8.0/static_pool.go:110 +0x5b
github.com/spiral/roadrunner.(*Server).Workers(0xc0003022a0, 0x0, 0x0, 0x16eea10)
	github.com/spiral/roadrunner@v1.8.0/server.go:217 +0x44
github.com/spiral/roadrunner/util.ServerState(0xc0003022a0, 0xc0003022a0, 0xebf998, 0xc00006e7b8, 0xb160c9, 0xc0001e2c60)
	github.com/spiral/roadrunner@v1.8.0/util/state.go:52 +0x73
github.com/spiral/roadrunner/cmd/rr/http.(*metricCollector).collectMemory(0xc0001ed720, 0xc0001ae000, 0x2540be400)
	github.com/spiral/roadrunner@v1.8.0/cmd/rr/http/metrics.go:112 +0xb8
created by github.com/spiral/roadrunner/cmd/rr/http.init.1.func1
	github.com/spiral/roadrunner@v1.8.0/cmd/rr/http/metrics.go:35 +0x286

It didn't really bother me as supervisord just kept retrying until it worked fine and I discovered this only accidentally in the log.
My docker container is based on fresh-ish debian buster and spiral binary version 2.4.18. Here's the RR config I'm using:
rpc:
  enable: true
  listen: tcp://<IP_ADDRESS>:6001

metrics:
  address: localhost:2112

http:
  address: <IP_ADDRESS>:30080

  # HTTP service provides HTTP2 transport
  http2:
    enabled: true
    h2c: true
    maxConcurrentStreams: 128

  maxRequestSize: 64

  uploads:
    forbid: [".php", ".exe", ".bat"]

  # cidr blocks which can set ip using X-Real-Ip or X-Forwarded-For
  trustedSubnets: ["<IP_ADDRESS>/8", "<IP_ADDRESS>/8", "<IP_ADDRESS>/12", "<IP_ADDRESS>/16", "::1/128", "fc00::/7", "fe80::/10"]

  # http worker pool configuration.
  workers:
    command: "php app.php"

    # connection method (pipes, tcp://:9000, unix://socket.unix). default "pipes"
#    relay: "pipes"
    relay: "unix://socket.unix"

    pool:
      # number of workers to be serving.
      numWorkers: 8

      # maximum jobs per worker, 0 - unlimited.
      maxJobs:  500

      # for how long worker is allowed to be bootstrapped.
      allocateTimeout: 300

      # amount of time given to the worker to gracefully destruct itself.
      destroyTimeout:  300

Thanks, @rauanmayemir @vvval , I'll take a look.

Hey,
I might run into the same isssue as the others above me,
./rr serve -v -d
DEBU[0000] [static]: disabled
DEBU[0000] [rpc]: started
DEBU[0000] [http]: started
DEBU[0000] [metrics]: started
DEBU[0000] [health]: started
DEBU[0000] [reload]: started
ERRO[0000] [http]: [http]: process error: fork/exec : no such file or directory
DEBU[0000] [rpc]: stopped
DEBU[0000] [metrics]: stopped
DEBU[0000] [health]: stopped
DEBU[0000] [reload]: stopped
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x915c3b]

goroutine 26 [running]:
github.com/spiral/roadrunner.(*StaticPool).Workers(0x0, 0x0, 0x0, 0x0)
        github.com/spiral/roadrunner/static_pool.go:110 +0x5b
github.com/spiral/roadrunner.(*Server).Workers(0xc0001da5b0, 0x0, 0x0, 0x1178790)
        github.com/spiral/roadrunner/server.go:217 +0x44
github.com/spiral/roadrunner/util.ServerState(0xc0001da5b0, 0xc0001da5b0, 0xbb84a8, 0xc00004c7b8, 0xa07509, 0xc0002953e0)
        github.com/spiral/roadrunner/util/state.go:52 +0x73
github.com/spiral/roadrunner/cmd/rr/http.(*metricCollector).collectMemory(0xc0002a2760, 0xc0000ec000, 0x2540be400)
        github.com/spiral/roadrunner/cmd/rr/http/metrics.go:112 +0xb8
created by github.com/spiral/roadrunner/cmd/rr/http.init.1.func1
        github.com/spiral/roadrunner/cmd/rr/http/metrics.go:35 +0x286

Weird fact, this panic only appears 3 starts from 5 , at least for me.
process error: fork/exec : no such file or directory  <- this appears every single time, don't mind it, it was just a typo, I fixed it since.
.rr.yaml:
metrics:
  address: localhost:2112

rpc:
  listen: tcp://:6001

http:
  address: <IP_ADDRESS>:8080
  workers:
    command: "php index.php"
    pool:
      maxJobs: 5
      allocateTimeout: 100
      destroyTimeout: 100
      numWorkers: 4

maxRequestSize: 64

uploads:
  forbid: [".php", ".exe", ".bat", ".sh"]

limit:
  interval: 5
  services:
    http:
      maxMemory: 100
      TTL: 0
      idleTTL: 50

health:
  address: localhost:2113

reload:
  enabled: true
  interval: 1s
  patterns: [".php"]
  services:
    http:
      recursive: true
      ignore: ["vendor"]
      dirs: ["."]
      patterns: [".php", ".go", ".md"]

@Shikachuu Thank you for the report. I'll take a look.


Refactoring magna flow handling.

This commit splits out counter and reporter from
specific mpls handling such that they can be used
by other packet generators.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

217 of 370 (58.65%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.6%) to 61.666%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

flows/common/reporter.go
10
22
45.45%

flows/common/counter.go
194
208
93.27%

flows/mpls/mpls.go
0
20
0.0%

flows/common/common.go
13
120
10.83%

Totals

Change from base Build<PHONE_NUMBER>:
0.6%

Covered Lines:
1007

Relevant Lines:
1633

💛  - Coveralls


[Prowlers and Paragons Ultimate Edition] Update sheet.json to set legacy to false

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[x] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description
Setting legacy to false. Apparently it was false in the sandbox by default.

Character Sheet Info Roll20 Internal Use only.


Add new callout to domain-authentication.md

Description of the change:
Add new callout to domain-authentication.md
Reason for the change:
New callout
Link to original source:
https://sendgrid.com/docs/glossary/domain-authentication/

Closes #

Hello @music-mind,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX


Add Cilium to AWS EKS Cluster among installed applications

What would you like to be added:
Currently, when deploying an AWS EKS cluster using Kubefirst, Cilium is not included, which limits my ability to implement advanced network security and observability features.
Why is this needed:
I would like Kubefirst to include Cilium as part of the AWS EKS cluster deployment. This would enable me to take advantage of Cilium's advanced networking capabilities, such as transparent encryption and network policy enforcement, enhancing the security and performance of my applications running on the cluster.
Now, as an alternative, I am looking into manually installing Cilium on the AWS EKS cluster after deployment. However, this approach would add complexity and maintenance overhead to the cluster setup process

@seifrajhi this issue felt out of our plate, sorry for the late reply. Thanks for requesting this feature. Not sure we can prioritize this feature for now, even if we understand the security aspect of it, but let me check with the engineering team to be sure.

@seifrajhi - thanks for raising this issue. we'll look into adding cilium to the gitops-catalog so that it can be more frictionlessly added to all management clusters. with our upcoming workload clusters and cluster lifecycle management feature set in the 2.3 release, you'll have an opportunity to permanently add cilium to your workload cluster templates so every workload cluster provisioned by your management cluster will automatically have whatever app configurations your organization needs. realistically we think we're still about 3 weeks out on that release. in the meantime, the gitops catalog is the best we can offer you. you're free to submit a pull request to add it to the catalog, or if you'd prefer to wait for us, we'll move cilium toward the top of the gitops catalog priority list since the community is asking for it.
https://github.com/kubefirst/gitops-catalog
if there are any installation details you'd like to share about how you want it installed, let us know.

Raised a PR for add Cilium to gitops catalog.
Let me know in case any changes are required.
Please assign this issue to me so that it's easy to track 👍

Moving this issue to the catalog repository.
@dipu989: sorry for the delay in getting back to you about your PR. The engineering team will give it a closer look next week.


TypeError raised when incorrect path used (howfairis option -p)

We expected a "directory not found error" message not a TypeError
howfairis -p force/00001 https://github.com/fair-software/badge-test
Checking compliance with fair-software.eu...
url: https://github.com/fair-software/badge-test
path: force/00001
Did not find a README[.md|.rst] file at https://raw.githubusercontent.com/fair-software/badge-test/master/force/00001/
TypeError: expected string or bytes-like object

PR #288

PR was merged, closing


Update js webcam configuration so image is properly mirrored

When opening the JS webcam on playground, the image is flipped and requires a vertical flip to fix it. adjust the confuration.json so by default the image loop proper.

https://github.com/Neuraville/feagi-connector/pull/100

done


Removed '#pragma once' from cpp files

This PR removes #pragma once since .cpp are generally not supposed to be included anywhere.
Partially resolves #278

Nice one thanks @COM8


Request / Message Clarification

Receiving a message and a request is confusing for users. There are a few ways to improve this:

[ ] Position the buttons directly under the message
[ ] Differentiate the two buttons by using a primary and secondary button design
[ ] Add an explanation text below the buttons

Before:
Desktop

Mobile

After:

The message input box should be the same height as the send button as well.

Mobile -

You can't send a message after rejecting - moving the buttons away from the text box makes it more confusing.
Maybe it should go:

click button
button is highlighted and message box is selected, send button label changes to "Reject" or whatever
Type a message
send

If the user can't send a message after rejecting, then the send button should just disappear after the host selects to reject. Or not even be displayed.
The accept / reject buttons should still be positioned below the initial request message; users will associate those buttons with the message while they will associate the send button with the text box (it's typical hierarchy). Rarely do you see interactive components next to the text box instead of directly below a message (e.g. group chat polls in slack or groupme; facebook requests; etc).
Thoughts?

Here is an example from a facebook marketplace request I received this week:

Another example froup GroupMe's website (this is with a poll...but still a call to action)

Users expect the action to occur right after initial message.

Another example from Slack's website.

Sorry, what I mean is the status buttons are associated with the textbox. We had users complain that they clicked the "reject" button which rejected the request, and then they could not longer send a message. They're supposed to type a message then click reject.
We could have checkboxes or something instead, like we did in the alpha, but it looks a bit weird I think.

Okay, I understand now. I'll look into it!

Moved to #1644


Convert dnf to yum usage.

The removed the tests requirement for DNF.
Signed-off-by: Nathaniel Clark<EMAIL_ADDRESS>

EFS test hanging during provision, re-run here: https://build.whamcloud.com/job/integration-tests-existing-filesystem-configuration/588/


Automated cherry pick of #11: import servers from libvirt

Cherry pick of #11 on release/2.8.0.
#11: import servers from libvirt

/lgtm

/approve
/lgtm


command to list xlines

[dk]lines were listable via the REST API, which is gone now. Let's add oper commands to list them over IRC.

For now I've added DLINE LIST and KLINE LIST that lists them. It's not a great way to list 'em, but really there's no good current way to do it that actually exposes info like whether it expires (and in how long it expires), etc etc.
After Saber/me do up a rough spec for that BAN command idea, we'll revisit this further.


Tracing Sample rate on a per-service basis

Describe the feature request
The ability to control the sample rate (or even disable sampling) on a per-service basis, rather than globally in pilot.
Describe alternatives you've considered
Not using istio tracing and instrumenting apps instead (sad times)
Additional context
We have one or two apps that are incredibly batch like, and the data they process I largely do not care about sampling.  However because during that window they provide such a disproportionate amount of traffic, we really strain jaeger:

You can see outside of the load, jaeger is nice and happy.
A global sample rate doesn't help me deal with this problem unfortunately.

@Stono right now, this is supported, in a fashion, via Mixer-based tracing.  This would be a change from your default setup, but it would provide precise tracing controls.
Moving forward, I think we want to expose a more full-featured tracing API that isn't mixer-specific for providing that level of control.
/cc @objectiser

@douglas-reid thanks - could you point me through some documentation that i can read around that implementation?

This is becoming more of a requirement for us now as we have more and more services on the mesh, many we don't care about tracing for but some we want very high sample levelling for as they're SLI/SLO constrained services.
We can't possible enable it at the level we want for that subset of services, for all services as we're generate far far too much data.
So we're approaching the scale we can't actually make use of tracing without having the ability to control the same rate per service/workload.

@Stono still working on building consensus on the best approach. I've fleshed out the two alternate approaches, as requested during the initial review and am hopeful that I can drive us towards a path forward sooner rather than later.

Great stuff @douglas-reid thank you.  More than happy to test out any alpha/beta/feature flagged implementations.

Hey @douglas-reid - i'm having to investigate work arounds to this as it's stopping us scaling.
Do you think it'd be suitable for me to modify the Sidecar of an application to remove the reference to zipkin?
eg at the moment the app looks like this:
  spec:
    egress:
    - hosts:
      - .*
      - istio-system/zipkin.istio-system.svc.cluster.local
      - istio-system/jaeger-agent.istio-system.svc.cluster.local
      - istio-system/istio-telemetry.istio-system.svc.cluster.local
      - istio-system/istio-policy.istio-system.svc.cluster.local
      - kube-system/kube-dns.kube-system.svc.cluster.local
      - core-system/logstash.core-system.svc.cluster.local

and remove?
      - istio-system/zipkin.istio-system.svc.cluster.local

I'm not sure on the knock on impact (eg what does envoy do when it doesn't get a route for zipkin)?

Linking associated issues: https://github.com/istio/istio/issues/11582 https://github.com/istio/istio/issues/14433

HI @Stono , the proposal @douglas-reid has been working on is here.
At the end of the document in the section entitled "[7/2019] - Updated Sidecar Proposal" the proposed definition includes the ability to configure whether spans should be reported.
The benefit of this approach is that it completely disables creation of spans within the proxy (as well as reporting). If you just prevent the spans being reported, the proxy would still create new span context and propagate - thus resulting in the trace instance at your tracing backend being fragmented due to missing the intermediate spans.
Would be good to get your comments on the proposal.

@Stono I've never tested what would happen in this scenario. I imagine that there might be some small overhead in Envoy, but I don't know that to be the case.
Re: the proposal. I believe we have general consensus on the API. I look forward to bringing up for formal API review in a few weeks (once vacations, etc., have finished).

Hey @objectiser,
If we simply have [service a] -> [service-b] and we effectively block (via sidecar or networkpolicy) on both; the trace would never be created correct?
I do wonder if anyone can confirm how long envoy would keep retrying and what sort of buffer it would hold?
I appreciate that it's not an ideal solution but being realistic i'm going to need to find a way to do this before the end of september :-(

Annnnddd it's the end of September :D Did you have the API review?

Just stumbled across https://github.com/istio/istio/wiki/EnvoyFilter-Samples#tracing-and-access-logging which seems to imply controlling tracing?

@Stono Was just about to reply about that. On the last P&T call, @douglas-reid indicated that the proposed sidecar API changes may need to be reconsidered to take into account some future changes - I'll let him elaborate.
However he did also point to the EnvoyFilter which I have been playing with - and I believe it could meet your requirements. The example I have tried is having route specific sampling in the ingress:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: bookinfo-gateway-sampling
  namespace: istio-system
spec:
  configPatches:
  - applyTo: HTTP_ROUTE
    match:
      context: GATEWAY
      routeConfiguration:
        portNumber: 80
        vhost:
          name: "*:80"
          route:
            name: "productpage.mainpage"
    patch:
      operation: MERGE
      value:
        tracing:
          random_sampling:
            numerator: 1000
            denominator: TEN_THOUSAND

this was based on using a route name, to achieve this I had to update the bookinfo-gateway.yaml with:
  http:
  - match:
    - uri:
        exact: /productpage
      name: mainpage
...
    route:
    - destination:
        host: productpage
        port:
          number: 9080
    name: productpage

but seemed to work.
One thing though - this will only work if the entry point where the sampling decision is being made. So you can't adjust the sampling rate mid trace. So if the services you are interested in are all invoked from particular ingress routes, then this approach can be used to enable sampling - while globally the sampling rate could be set very low (or off).

Thanks for that example @objectiser !  I'll have a play and see how I get on.

@howardjohn i notice you added a 1.5 milestone tag here; is there so commitment to making this a feature?  Playing around with envoy filters feels quite fragile to me

I was just bumping it from 1.4 since that has already shipped. I am not familiar with exactly what telemetry team is doing to give a better estimate than just bumping it up to 1.5

@Stono we might need to reevaluate, but work on a separate API for tracing (and related) was deprioritized because the feature could be achieved with EnvoyFilters. There had been pushback on intro'ing new APIs for this purpose.
I'm happy to help troubleshoot, based on your needs. Perhaps that can drive work to pick back up on our API proposal.

It's really fiddly with EnvoyFiliter, and configuring envoy itself doesn't feel right - that's why we have istio as a control plane, right?  Also envoy filters are applied at the destination, whereas what I would like to achieve is defining the rule in the destination, but have it apply to all the source systems (like a DestiniationRule).
Take this simplistic example (keep in mind we might have 300+ services going through nginx):

If i only wanted traces from nginx to service-b and service-d, then i'd have to create complex envoy filters on nginx to select those hosts.
From a permissions perspective, the people deploying service b, and d, do not have access to nginx so couldn't create EnvoyFiliters there anyway.
What I really want to do is in the DestinationRule for b and d is having an api that allows you to control the tracing level for that service which then configures the calling service envoy (nginx in this example) accordingly.
The problem is even more difficult, imagine if there were 20 services that all call service-b, would i be expected to go and create envoy filters for all of those calling services, and keep them up to date whenever we change the policy for service-b?
So really, EnvoyFilters don't work

Not stale. Reopening.

We actually "disable" sampling for a service now by using the http request headers on the virtualservice:
  headers:
    request:
      set:
        x-b3-sampled: "0"

Hi,
Just checking about the current development on this feature:
does the current scope includes those features:

addition of a max rate, so we can set a service to sample at 100%, with a max rate of 1000samples/min (ie: sample as much as you can until threshold).
addition of a flag for "sample 100% of calls that errored" (might need a configuration for what an error code is ?).

Just asking, as if it's not in the scope, I might open new tickets for those.

addition of a flag for "sample 100% of calls that errored" (might need a configuration for what an error code is ?).

@jgournet This would require tail based sampling with an intermediary store as spans are reported async.  I wouldn't say it's something that Istio can (or should) tackle and instead you should follow https://github.com/jaegertracing/jaeger/issues/425

addition of a max rate, so we can set a service to sample at 100%, with a max rate of 1000samples/min (ie: sample as much as you can until threshold).

👍 That would be a great way to get tracing to adapt to varying qps without overwhelming jaeger
To summarize/necro this thread: selective per service sampling exist through
https://istio.io/latest/docs/tasks/observability/distributed-tracing/configurability/#using-proxy-istio-io-config-annotation-for-trace-settings
Though I'm not sure how to apply to a shared ingress case,
if I have Virtual Host A -> Service A and I need 0.1% sampling for that and Virtual Host B -> Service B at say 50%; how do I set that up given the ingress is the envoy that needs to make the decision? (will it check the destination deployment to decide? if so that's great (and be worth clarifying))

There is preliminary support for workload-specific tracing configuration in the new experimental telemetry API, but it does not support route-level decision making. There have been discussions for 1.12+ of adding Tracing messages to networking APIs to support shared gateway scenarios.
I don't believe Envoy currently supports max samples directly in any of the tracing configuration. If this feature is desired, we should work to get support in Envoy itself. Istio can then work on exposing that functionality via an API.
For tail-based sampling, you may want to consider OpenTelemetry's collector. I believe that there are existing extension solutions for tail-based sampling (https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor).

@mandarjog there are some interesting feature requests in this discussion for our roadmap planning.

While the state in https://github.com/istio/istio/issues/12818#issuecomment-880311514 remains for sidecars, in ambient mode this is possible. Telemetry can targetRef a service and is implemented in the waypoint proxy.


ChattingWithChatGPT: Jeopardy

What page should this be added to?
ChattingWithChatGPT
What section/heading should this be added to?
New section
Include the Markdown text that is to be added below:
Jeopardy

Jeopardy

"Hello Assistant"

Hello! How can I help you today?

"Are you familiar with the game show Jeopardy?"

Yes, I am familiar with Jeopardy! It's a popular television game show that has been on the air for many years. Contestants are presented with clues in the form of answers, and they must respond with the questions that correspond to those answers. The show covers a wide range of topics, including history, literature, science, and pop culture.

"Can you provide me with details of its hosts, past and present?"

Yes, certainly! Jeopardy! has had three main hosts in its history:

Art Fleming (1964-1975, 1978-1979)

Alex Trebek (1984-2021)

Mike Richards (2021-present)

Alex Trebek was the longest-serving host of Jeopardy!, hosting the show for over 37 years until his death in November 2021. He was widely beloved for his quick wit, intelligence, and friendly demeanor, and is widely regarded as one of the most iconic game show hosts of all time. Mike Richards, a television producer and executive, has taken over as the host of Jeopardy! following Trebek's passing.

"Hmm... Ken Jennings is the current host."

My apologies, you are correct. Ken Jennings is the current interim host of Jeopardy! following the passing of Alex Trebek. He is a famous Jeopardy! champion, having won 74 games in a row and earning over $2.5 million in prize money. Ken has been hosting Jeopardy! on a temporary basis since Trebek's passing, and he is widely regarded as a suitable and worthy successor to Trebek.

"Who are the top five winners and can you provide some information on their strategy?"

Sure, here are the top five highest earning Jeopardy! champions of all time:

1 - James Holzhauer: Holzhauer won $2,464,216 over the course of 32 games in 2019. He is known for his aggressive betting strategy, often making large bets on Daily Doubles and Final Jeopardy.

2 - Ken Jennings: Jennings won $2,520,700 over the course of 74 games in 2004. He has been described as a "walking encyclopedia" due to his vast knowledge on a wide range of topics.

3 - Brad Rutter: Rutter won $4,688,436 over the course of multiple appearances on Jeopardy! He is the highest earning American game show contestant of all time.

4 - David Madden: Madden won $430,400 over the course of 11 games in 2019. He is known for his calm demeanor and ability to maintain his focus throughout the game.

5 - Julia Collins: Collins won $428,100 over the course of 20 games in 2014. She is known for her steady play, making few mistakes and consistently betting strategically.

It's worth noting that these champions' success on Jeopardy! can be attributed to a combination of factors, including their broad general knowledge, quick recall, strategic betting, and their ability to maintain their focus and composure under pressure.

"If you were pitted against IBM's Watson in Jeopardy, who would be the winner?"

As an AI language model, I am not capable of playing games such as Jeopardy! however, if I were to be pitted against IBM's Watson, I believe that Watson would likely emerge as the winner. Watson is a highly advanced AI system that was specifically designed and trained to play Jeopardy!. It has a deep understanding of language and is capable of quickly processing vast amounts of information to find the answers to clues. While I am a capable language model, I do not have the specialized skills and abilities that Watson was designed to possess.

"Thank you."

Describe alternatives you've considered
Bookmarks in browsers are not portable.
Additional context
Add any other context or screenshots about the feature request here.

#726 closes #717


Bump and release 3.5.3

@CocoaLumberjack/collaborators
About 6 weeks have passed since CocoaLumberjack 3.5.2 was released.
So I think we should the next version(3.5.3). Do you agree?
It supports Swift 5.0 using CocoaPods and Swift 5.0 has the advantage of ABI stability.
If necessary, I'll wrap up CHANGELOGs by creating a pull request and release 3.5.3.
Thanks.

@sushichop that sounds great, let's do it

@bpoplauschi Thanks for your response. I'll do it from now!

Thanks everyone!
I have released CocoaLubmerjack 3.5.3 and registered it to CocoaPods.

Thanks guys for releasing


Update docs about plugins

They are outdated. Structure was changed and tehre should be explanation on how to deal with SSR.

related to https://github.com/DivanteLtd/vue-storefront/issues/2440


Added description of keys.

Added a description of the key values that the Python scripts use. The descriptions are taken from https://hackage.haskell.org/package/pandoc-types-<IP_ADDRESS>/docs/Text-Pandoc-Definition.html.
The word "rely" can be removed.

+1

:+1:

Most of the pandocfilter examples rely check the value of a key for a specific key value. This section provides an overview of these keys

Do you have an extra word in there?

@RichardDooling Yes, the word "rely" can be removed. (See the commit comment.)


How to upload/import SSL Key/Certificate in BIG-IP?

Almost all of the methods were not working other than get_version()

b.Management.KeyCertificate.get_version()
'BIG-IP_v11.5.3'
b.Management.KeyCertificate.get_key_list_v2()
Traceback (most recent call last):
File "", line 1, in
File "bigsuds.py", line 463, in wrapped_method
result = method(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/suds/client.py", line 542, in call
return client.invoke(args, kwargs)
File "/usr/local/lib/python2.7/site-packages/suds/client.py", line 602, in invoke
result = self.send(soapenv)
File "/usr/local/lib/python2.7/site-packages/suds/client.py", line 649, in send
result = self.failed(binding, e)
File "/usr/local/lib/python2.7/site-packages/suds/client.py", line 702, in failed
r, p = binding.get_fault(reply)
File "/usr/local/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault
raise WebFault(p, faultroot)
bigsuds.ServerError: Server raised fault: 'Could not find element by name: mode'

@tlian according to the SOAP docs here
https://devcentral.f5.com/wiki/iControl.Management__KeyCertificate__get_key_list_v2.ashx
you need to provide a mode.
https://devcentral.f5.com/wiki/iControl.Management__KeyCertificate__ManagementModeType.ashx
So, as an example,
import bigsuds

api = bigsuds.BIGIP(hostname='localhost', username='admin', password='admin', verify=False, port=10443)
ok = api.Management.KeyCertificate.get_key_list_v2(mode='MANAGEMENT_MODE_DEFAULT')
print(ok)

closing due to lack of activity


One Time Shake event

Hi,
I am using this Library & found it very helpful for me,
Now my scenario is:
When One time shake occurs I want to show the images, I found there is no such function
in the Library to do this.
How can I do this via using this library

I don't quite understand your issue? When a shake occurs, show your images. If you only want the event to happen one time, remove the listener and destroy the plugin instance afterward.

I can't understand when you say
"remove the listener and destroy the plugin instance afterward"
currently I have this thing only
window.addEventListener('shake', shakeEventDidOccur, false);
    //shake event callback

    function shakeEventDidOccur () {

        var img = new Image();
        var div =$('.monkey');
        console.log(div);
        img.onload = function() {
            div.append(img);
            img.setAttribute('id','dance')
        };

what should I change in my code??

Please take some time to read the documentation: https://github.com/alexgibson/shake.js

O yeah I found it,
Thanks For the help :)


docs: convert markdown issue template to issue forms

resolves #781

The file is error-free.
Please add labels: new issue and awaiting triage to ensure it is properly categorized when someone submits the issue using this template.
I have included a checklist to gather information about whether the contributor is participating in GSSoC'23 and their willingness to work on the issue.
All other conventions have been followed.

@Spyware007
I am tagging you because merging this change would greatly facilitate the process for others.
I am not suggesting to merge the PR just for the sake of GSSoC'23; rather, I genuinely believe that implementing a proper PR template and issue form would streamline the overall workflow. It would not only make it easier for contributors but also assist you during the review process.

@Anmol-Baranwal Thank you so much!


[Docs] Build and Release (CI) page

Notes for Reviewers
This PR publishes much of the Meshery Build & Release document.
Signed commits

[x] Yes, I signed my commits.

That @Aisuko... he's quick on the draw. 😉

That @Aisuko... he's quick on the draw. 😉


Utf 8 requests

added encoding as a parameter (typically UTF-8) because there is occasional data in the system using a different character set.  This data can cause errors with other systems.  Also added a wrapper for the getUpdatedConstituentIDs() API.


Not able to clone due to an white space at the end of the folder name

This is what I am getting after performing restore:
$ git restore --source=HEAD :/ error: invalid path 'Leetcode/Minimum Ascii Delete Sum /readme.md' error: invalid path 'Leetcode/Minimum Ascii Delete Sum /solution.java'
The problem is with Leetcode/Minimum Ascii Delete Sum folder. Extra whitespace at the end of folder name

Thank you for pointing out. Have fixed, please check now


Problem with Flutter and VSCODE: Does not find any Flutter Widgets automatically

Hi guys,
I have a problem, that VSCODE is not finding any flutter widgets. For example, when I stand to import StatelessWidget and I normally do Crtl + . or use the QuickFix bulb, then I get a suggestion, import 'package:flutter/material.dart'. But for some reason, this does not work anymore at all. Intellisense works for all Dart classes and also my classes in my project, but for no flutter classes.
I am normally on the master channel and I have also tried the stable channel with no success.

my flutter version
Flutter 1.17.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8af6b2f038 (13 days ago) • 2020-06-30 12:53:55 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

any idea, how I can resolve that issue?

Hi @Manuelbaun
Following the indication of VS Code Flutter Extension, the correct way to address the problem is to open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Hi @TahaTesser,
thank you for your response and I will option an issue there. But note, I've also tried different versions of the VS Code Flutter extension with no success.


bump react-router to v6 in examples/react-router

react-router v6 made some breaking changes for the examples.
one important change was Route component={<Component/>} to Route element={<Component/>} among others.

Neat 👌.


[CSL-1488] Remove custom Small types

Recently I found Small in QuickCheck but with different semantics (it generates small numbers): https://www.stackage.org/haddock/lts-8.13/QuickCheck-2.9.2/Test-QuickCheck-Modifiers.html#t:Small
So it seems we need to come up with a different name to avoid possible confusion.
For example, SmallSize, but if you have better name in mind, go ahead.


MixedRealityKeyboardPreview Follow Solver

Overview
This change updates the MixedRealityKeyboardPreview prefab to behave closer to the shell.

The MixedRealityKeyboardPreview prefab now uses the new Follow solver (rather than orbital). Note, while the behavior is closer to the shell it is still easy to fall out of sync (especially when the keyboard is grabbed). This is just an interim update until the shell keyboard's location can be controlled via the application.

Functionality has been added to the Follow solver to closer match the shell behavior.
The MixedRealityKeyboardPreview caret now blinks.

Fixed an issue where the MixedRealityKeyboardPreview caret would occasionally disappear.
Added some bounds extensions.

Changes

Fixes: https://github.com/microsoft/MixedRealityToolkit-Unity/issues/6167

Verification

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

/azp run

LGTM - but checked out your branch and did some testing with it - for me the input field always appears behind the keyboard.
Might be outdated shell version though - was the shell keyboard changed recently?

discussed offline: we should add a note into the release notes to let users know that they have to update their OS in case the keyboard is overlapping the input field.
@Cameron-Micka another question: how will this show up on other platforms? I only tested HL2 - is this used for WMR as well? How does it look there?

Thank you @thalbern for bringing this up and making the above changes! Yes, the preview window doesn't always lineup with the shell visuals due to a handful of variables on HoloLens 2 and WindowsMR (Also, the location of the head in the shell/OS is tracked slightly differently. So, it's always going to be a losing battle.) But, this is just an incremental change until the ability for an application to control the keyboard's location is available.

/azp run

Just saw some tests failed, but I'm seeing different tests fail locally?

/azp run

@MenelvagorMilsom I'm curious if you see the same test failures? I see one only one fail when the debugger is attached. (Hinting at a timing issue.) Changing:
yield return new WaitForFixedUpdate();
to
yield return new WaitForSeconds(SolverUpdateWaitTime);
Fixes it, but I don't want to bloat our test times if possible.

Thank you @thalbern Bernadette Thalhammer FTE for bringing this up and making the above changes! Yes, the preview window doesn't always lineup with the shell visuals due to a handful of variables on HoloLens 2 and WindowsMR (Also, the location of the head in the shell/OS is tracked slightly differently. So, it's always going to be a losing battle.) But, this is just an incremental change until the ability for an application to control the keyboard's location is available.

I just want to avoid blocking anyone from using the keyboard - if people can work around this by updating the os it's fine - i was just curious if that's the same case for WMR. So will WMR work with the latest OS / Shell version?

WMR should be closer with the latest OS updates. But, sadly there is always the chance of some overlap until the app can control the keyboards location. This change is meant to bring us a bit closer to the desired behavior since before this change the keyboard preview window was using the Orbital (solver which also would exhibit the same issues). One option is we could go back to having the preview window fixed in the scene and the user has to explicitly hit the pin/unpin button to begin solving? (Until we get proper keyboard location control.)

@thalbern & @MenelvagorMilsom, good news! I got the test failures to repo locally using run_playmode_tests.ps1
I'm going to try and debug what is going on.

/azp run

WMR should be closer with the latest OS updates. But, sadly there is always the chance of some overlap until the app can control the keyboards location. This change is meant to bring us a bit closer to the desired behavior since before this change the keyboard preview window was using the Orbital (solver which also would exhibit the same issues). One option is we could go back to having the preview window fixed in the scene and the user has to explicitly hit the pin/unpin button to begin solving? (Until we get proper keyboard location control.)

Thanks for the explanation! I didn't know how the behavior was before. I think this is fine for now, i wouldn't do the pin, that doesn't make a lot of sense to me if the keyboard keeps on moving around - only if we could have the keyboard pinned as well which we can't until the api allows to control the keyboard position as you were pointing out. Change is fine for me.


Change Scoring Position to avoid the ground junction

We moved the High Junction Scoring Position farther away from the pole because of the new dropper design, but that makes it get stuck on the Ground Junction.  We need to set the scoring position back to the original one ( (-1, -34)? ) and then adjust the lift and placer to make it work.

Tested working


fix(openfga): allow migration without embedded db

This addresses issue #28, by decoupling the migration execution from the embedded database.
Description
Instead of deciding if the migration is run on whether postgres.enabled or mysql.enabled, that would involve the creation of the database within Kubernetes, decide the migration based on the engine defined in the datastore, by checking the value of datastore.engine.
That way, whenever the data store engine is one that requires running migrations, they are automatically created and run accordingly.
References

#28
Review Checklist

[ ] I have clicked on "allow edits by maintainers". (Organization accounts don't support this)
[x] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected

Seems like a reasonable idea, I'll keep the check for the datastore engine to make sure migrations aren't run against memory, as that makes no sense, but I can add a check for an additional applyMigrations flag.
I couldn't find anything about how to set the schema revision on the migrate command, but I'll make a first revision without it, as I guess most times people will just want to update the schema to the most recent version for the version of OpenFGA deployed. If there's a way to add it I can update the PR later on.


Opt-in Debug Logging

#4 has clearly shown me the importance of debug logging.
Create a debug logger to log every place of the application so we can reduce errors quickly.
This would also include wrapping more calls in pcall to get exact values out.
@polarmutex if you have any examples you have seen / used, lmk

I'll try and tackle this one

This would be glorious!
It would be nice to have enough information that if anyone was saying X isn't working, we can say LOGS PLS
So perhaps making it run off an env variable could be nice.  That way you can turn it on pretty straight forward without editing a vim rc and would ensure that the entirety is logged independent of their initialization order
Finally, we may want it to log to the stdpath('data') location (harpoon.debug.log or something like that).


Failing POR tests

alg_backends_dve.log:FAIL: Failed executing precommand
dfs_fifo.log:FAIL: Program ended without outputting: Elements: 43299
ltl_model_checking.log:FAIL: Failed executing precommand
partial_order_reduction.log:FAIL: Program ended without outputting: Deadlocks: 16
partial_order_reduction.log:FAIL: test12_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: Deadlocks: 16
partial_order_reduction.log:FAIL: test12_dist: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: Deadlocks: 501
partial_order_reduction.log:FAIL: test13_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: Deadlocks: 501
partial_order_reduction.log:FAIL: test13_dist: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: test14_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: test15_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: violations: 3
partial_order_reduction.log:FAIL: test16_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: accepting cycle found
partial_order_reduction.log:FAIL: test18_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: accepting cycle found
partial_order_reduction.log:FAIL: test18_color: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: 475764 states
partial_order_reduction.log:FAIL: test19_seq: Program exited with LTSMIN_EXIT_ERROR
partial_order_reduction.log:FAIL: Program ended without outputting: 475623 states
partial_order_reduction.log:FAIL: test19_color: Program exited with LTSMIN_EXIT_ERROR
--
Prof. Jaco van de Pol

done


Incorrect type when importing different files as provider & functions

I have a configuration in serverless.yml like below to split up my configuration
provider: ${file(./config/provider.yml)}

functions: ${file(./config/functions.yml)}

This schema is causing error on my vscode

@jung35 I'm working on it, there will be an update soon.
Thanks.

Fix: https://github.com/lalcebo/json-schema/commit/68d34f284836f8865945a8707c26a1a24fa44411


Finding table(s) in between two paragraphs which contain key words in docx

Hi,
I am looking for a way to find an aribtrary number of docx tables that reside between two paragraphs that I can find by the text they contain.
It may look like this kind of document:
'Paragraph one'
table one
table two
'Paragraph two'
table one
table two
table three
'Paragraph three'
So I need to extract all tables between pargraphs one and two, in one case, and all the tables between paragraphs two and three later. The extracted tables will be added to another docx after certain paragraphs.

I have probably found a solution, then I will test it and close issue if resolved.
https://github.com/python-openxml/python-docx/issues/40

So, I found how to find tables between paragraphs https://github.com/python-openxml/python-docx/issues/40
Copying tables between documents is, as far as I understand, is not easily possible. But since I asked only about point 1, I am closing the issue.


Can you release the training logs on Depth estimation on NYUv2?

Hi,Thank you for providing this exploratory work on diffusion on visual perception tasks.
When I train on the NYUv2 dataset, I find that it converges slowly, and I wonder if there is something wrong with the training process.
Therefore can you release the training log for depth estimation? If you could release the training log, I believe it would greatly help me in reproducing the results.
Thank you.

Hi, thanks for your interest in our work.
Here is the log on NYUv2: vpd-logs-depth.txt

Hi, I wonder to know if there is something wrong here. The test image is an uncropped 640*480 resolution image. When running this code, an error will be thrown.

Hi, thanks for your interest in our work.
Here is the log on NYUv2: vpd-logs-depth.txt

Thanks you so much.


Improve signature of Docket#globalResponseMessage

Version: 2.9.2
Feature Request: when specifying multiple global response messages, it would be helpful if Docket.globalResponseMessage has an overloaded variant which takes a list of RequestMethod.
Usually, I would like to apply a set of ResponseMessages to all routes and this would enable something like this
.globalResponseMessage(RequestMethod.POST, authorizationResponses)
.globalResponseMessage(RequestMethod.GET, authorizationResponses)
.globalResponseMessage(RequestMethod.DELETE, authorizationResponses)

be reduced to
.globalResponseMessage(Arrays.asList(RequestMethod.POST, RequestMethod.GET, RequestMethod.DELETE), authorizationResponses)

I would like to help out with this if its still available. I have the method signature all set - just need to add the tests.

@bou1der that would be great!

@bou1der thank you for the PR!


Dataframe.read_sql_table() fails when reading empty table

There is a problem when trying to use read_sql_table to get data from an empty sql table.
The problem is in that when trying to get the max and min values of the index col (if no divisions were provided) sql query returns None values for both of them (see here ) thus the following code here that tries to create the divisions fails.
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-83-d14f44b5a2c5> in <module>()
----> 1 alerts = df.read_sql_table('alerts', db_url, index_col='id', npartitions=16)

/home/avlach/virtualenvs/dask/local/lib/python2.7/site-packages/dask/dataframe/io/sql.pyc in read_sql_table(table, uri, index_col, divisions, npartitions, limits, columns, bytes_per_chunk, **kwargs)
    121             divisions[-1] = maxi
    122         else:
--> 123             divisions = np.linspace(mini, maxi, npartitions + 1).tolist()
    124
    125     parts = []

/home/avlach/virtualenvs/dask/local/lib/python2.7/site-packages/numpy/core/function_base.pyc in linspace(start, stop, num, endpoint, retstep, dtype)
    106     # Convert float/complex array scalars to float, gh-3504
    107     # and make sure one can use variables that have an __array_interface__, gh-6634
--> 108     start = asanyarray(start) * 1.0
    109     stop  = asanyarray(stop)  * 1.0
    110

TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

Shouldn't read_sql_table() provide with a failsafe mechanism like returning empty dataframes when there is no data on the table?

Yep, that seams reasonable. It looks like we grab a concrete sample at https://github.com/dask/dask/blob/32ebaa5497b8b17b0189276f8bbcab0805859535/dask/dataframe/io/sql.py#L98, so if the length of that is 0, you can wrap it up with a dd.from_pandas.
The only thing to handle is the divisions / npartitions arguments from the user. I think if npartitions is given, just use that. If neither are given, just use npartitions=1. If divisions is given, maybe we error?
Mind seeing if that works and submitting a pull request?


Messy output after moving cursor

What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
iTerm 3.5.20240306-nightly
Did you try the latest main branch to see if the problem got fixed?
Not tried, and I'll explain why below
yazi --debug output

$ yazi --debug                                                                                USAGE
error: unexpected argument '--debug' found

  tip: to pass '--debug' as a value, use '-- --debug'

Usage: yazi [OPTIONS] [ENTRY]

For more information, try '--help'.

Describe the bug
https://github.com/sxyazi/yazi/assets/6134068/964d8489-0b7a-48f2-8746-b2407fb6e764
Expected Behavior
Screen doesn't go messy
To Reproduce
brew install yazi
Run yazi and move cursor up and down
Configuration
no config
My first yazi try with a clean yazi installed with brew.
Anything else?
Also the theme doesn't seem to be good, notably the word NORMAL at the left bottom corner

Duplicate of https://github.com/sxyazi/yazi/issues/709, https://github.com/sxyazi/yazi/issues/760
Hi, this issue has been fixed in the latest version v0.2.4. Please upgrade to the latest version, https://github.com/sxyazi/yazi/releases/tag/v0.2.4

I'm sorry but I didn't notice that I installed an outdated version.
Homebrew usually upgrades formulae very fast. They upgrade my fastfetch in less than half a day, but I have no idea what happened to yazi.

The security policies of macOS have caused Yazi to get stuck on Homebrew's testing CI, and I'm not sure how to resolve it.
As for the visibility issue, v0.2.4 should have been greatly improved, but I still recommend choosing a theme that matches your terminal colors: https://github.com/yazi-rs/themes.
Anyway, glad to hear the problem has been resolved!


BUGFIX fix a problem of top level menu disabled bug

Change-Id: Ib03e2d3732963dddc00464ab5e3265b56c1aa8d5
Signed-off-by: gyeongseok.seo<EMAIL_ADDRESS>

@gseok
Thanks for your fix.
But the above code has the following problems.

Open some.js with code-editor
Click top menu > Edit
Then, no menu items enabled.

But I appreciate for your idea.
In addition, I'm planning to fix #254 "top level menu bug" in 1.6.1 (12.11)
The viable-menu-items.js should be refactored much.
Better solutions are always welcome!
Thanks :smile:


Update documentation for a working routing exemple

Relates to : https://github.com/awtkns/fastapi-crudrouter/issues/90
As discussed, I think a real overloaded_get_all method that return a list of created elements would be great. Working with MemoryCRUDRouter

Thanks for this @slamer59!


[FLINK-31161][build] bump versions-maven-plugin to 2.14.2.

What is the purpose of the change
bump versions-maven-plugin to 2.14.2
Verifying this change
test in local computer.

I don't understand what problem we are solving. Nothing in the ticket indicates an issue with out release scripts. You are free to use whatever version you'd like in your own setup; what has that got to do with our release scripts?

if user has one project , which is child of flink. we need change parrent version of it. but the version plugin 2.8.1 doesn't support it. so i suggest to upgrade version.

if user has one project , which is child of flink. we need change parrent version of it. but the version plugin 2.8.1 doesn't support it. so i suggest to upgrade version.

But you use a separate command anyway. What is stopping you from using a different version of the plugin?

if user has one project , which is child of flink. we need change parrent version of it. but the version plugin 2.8.1 doesn't support it. so i suggest to upgrade version.

But you use a separate command anyway. What is stopping you from using a different version of the plugin?

But I think the version should be consistent, and flink as a top-level project show give users a standard example, such as which version of the plugin to use, which has less problems. so i suggest upgrade it.

hi @zentol do you have time to look it again

Given that org.codehaus.mojo:versions-maven-plugin:2.8.1 works well for the current Flink release process, I also could not fully understand why we need to bump the version.

after offline discussion with @wangyang0918 , we both think it is in need. @zentol

hi @zentol @wangyang0918 how about it?


Tooltip propagating into other frames & windows out side jupyterlab UI

As a user I want the tool tip to be deactivate when requested &  not to propagate to every other window, specially outside the jupyterlab UI.
Example of Issue :

Issue can be replicated by running the code in this demo : https://github.com/bloomberg/bqplot/blob/master/examples/Interactions/Mark Interactions.ipynb
specifications of setup :

bqplot version is : bqplot 0.10.2
jupyterLab version is : jupyterlab 0.31.5 py36_1

Giving this a bump; I was halfway through doing a screen cap myself when I though to search for open issues. Happens in plain notebook too.


list index out of range

from quiver_engine import server
server.launch(model_all)
Starting webserver from: /usr/local/lib/python2.7/dist-packages/quiver_engine

IndexError                                Traceback (most recent call last)
 in ()
1 from quiver_engine import server
----> 2 server.launch(model_all)
/usr/local/lib/python2.7/dist-packages/quiver_engine/server.py in launch(model, classes, top, temp_folder, input_folder, port, html_base_dir, mean, std)
201             temp_folder=temp_folder,
202             input_folder=input_folder,
--> 203             mean=mean, std=std
204         ),
205         port
/usr/local/lib/python2.7/dist-packages/quiver_engine/server.py in get_app(model, classes, top, html_base_dir, temp_folder, input_folder, mean, std)
95     '''
96
---> 97     single_input_shape, input_channels = get_input_config(model)
98
99     app = Flask(name)
/usr/local/lib/python2.7/dist-packages/quiver_engine/util.pyc in get_input_config(model)
41         #tf ordering
42         model.get_input_shape_at(0)[1:3],
---> 43         model.get_input_shape_at(0)[3]
44     )
45
IndexError: list index out of range

From what I have observed is, It only shows up "Convolutional related layers" i.e. Conv2D, Pooling and Activation layers. And will not visualize Flatten or Dense layers (also it seems meaningless to show these layers !)
Hope this helps!


Magus Sisters minion registers as "default" and are MASSIVE

Magus Sisters minion registers as "default" and are MASSIVE if any scaling is applied to Default, even ones that don't effect overall size

Most likely related to them being scaled by the game and Root scale setting them to 1.
Known issue, will be fixed once we get around to ignore unedited Root scales.


Feat/add connection endpoint for promoting draft connection

Creates a sso.createConnection({ source }) method. Should be used in replacement of sso.promoteDraftConnection({ token }).
A depreciation message was added to sso.promoteDraftConnection. We should remove the method completely at the next major version.

Added an optional logger: stream.Transform which defaults to a Winston instance. Developers can provide their own loggers as an optional parameter.
Update createConnection and promoteDraftConnection tests.


Export Everything Feature?

Some of us have the ability to send our stored solar power back to the utility using the Tesla Powerwall feature, Export Everything.
Without this toggled on, solar power is only exported when it is produced. But with it toggled on, the Powerwalls will store the solar energy in the battery and then send it out during the most price optimal period. Note that this is not the same as arbitration which would also required the Grid Charge feature to be toggled on.
Can you comment on how the PW Dashboard shows this capability today? I have enclosed a picture of an event where the stored solar was returned to the utility for your review.

Can you comment on how the PW Dashboard shows this capability today? I

Hi @aesculus , I not sure I fully understand the question. Which panel or data point are you wondering about?
Do you mean, how does it compute "Savings"? If so, it is not terribly intelligent and difficult to make accurate due to complex TOU and other utility rate variability, but it would still represent your use case. The values are coming from basic equations you can see here: https://github.com/jasonacox/Powerwall-Dashboard#savings-errors
When Powerwall is flowing to Grid, it would will end up in "from powerwall" (fp) and the "powerwall > home" savings data.

OK. Apologies for being obtuse, but I did not want to take you down some big rabbit hole you had already gone down or did not want to spend the time on. You nailed it though.
Basically I guess I wonder if there is some value to add a pw>grid savings bar for this scenario. Simply I guess it would be the total of negative grid less a new solar>grid component.
I did not dive into the Grafana math yet but it may be captured in the current solar>grid figure? It looked close when I checked the values. Technically this is true, it just has a round about way of getting there in this scenario.
Now if someone does do arbitration, where they buy power at a low cost, store it, and then send it back at a higher rate, that may not reflect properly?
So would there be value in both cases to have the solar>grid be real-time where pw>grid would be delayed?
BTW the models Tesla uses to do this are pretty impressive. The sample I gave above is trivial. My consumption was pretty fixed and was not hard to estimate so the PW just started dumping and kept an eye on the end game. But if my energy consumption was more erratic, which it can be as AC use climbs, they have to play a much more cautious approach. And in days where my demand is huge I usually just turn off this feature as I am lucky to get to end of peak at reserve and there is no use in risking it.

Ok, so here is the raw data we get from the Powerwall:

Home load (how much house is using)
Solar production
Grid power (positive if it we are pulling power, negative if we are pushing power)
Powerwall power (positive if we are discharging, negative if we are charging)

We have a continuous query (CQ) in InfluxDB that provides some helpful variables based on those for data points:
home = Home load
solar = Solar production
from_grid = Grid power (if positive)
to_grid = Grid power (if negative)
from_pw = Powerwall power (if positive)
to_pw = Powerwall power (if negative)
The from/to is just a simple trick we used to sort positive/negative values [e.g. abs((1-x/abs(x))*x/2)]:
See here:  https://github.com/jasonacox/Powerwall-Dashboard/blob/ee9a64b33038dc28be0dd5372d9bcb893cbb853d/influxdb/influxdb.sql#L15
The link I mention (here) shows how we use those variables to compute the different savings elements:

powerwall>home = from_pw * $/kWh [assumes all power to home from PW = savings] ** this is a problem because in your case "from_pw" is also going to show up when it discharges to the grid.
solar>home = (solar - to_pw - to_grid) * $/kWh [assumes all solar not going to PW or grid is going to the home = savings]
solar>grid = to_grid * $/kWh [assumes all power going to grid = savings]  ** this is another poblem area, the PW discharge event would also show up here as power to the grid

I'm not sure how to identify if the power is coming from the Powerwall or Solar that is going to the Grid (in the graph you posted, it could be one or both).  If anyone can figure out a better equation, based on the variables we get,  please let me know.

| I'm not sure how to identify if the power is coming from the Powerwall or Solar that is going to the Grid
As the utility can't (or at least shouldn't be able to) tell the difference, I don't think it is meaningful to try and differentiate these two - as far as the utility is concerned, this is just export from the house and an electron is an electron.
@aesculus - Are you working with fixed time of use tariff (there is strict schedule for high and low export rates and known tarriffs) or a dynamic system driven by real time network demand where both export timing and tariff are variable and unknown?

I'll admit this may be a daunting task and its not important to decide where every electron is going.
Solar can have three destinations: the home, the grid or the PWs which later can go to the home or grid.
The grid can either consume or provide. When it consumes the power can come from solar or the PW (which was energy it might have given before or from site generated solar). When it provides it can be consumed immediately by the home or as above, stored in the powerwalls for later consumption.
The solar, grid and PWs all have CTs that measure current at the movement. The home value is not measured but always the remainder of current from these three. This makes it even more difficult to try to understand the flow.
It will take some time to see if we can come up with a course way to determine what went on over a given period vs the real-time data we get from the CTs. I'll noodle on it a bit.
My use case is pretty simple. For the most part any power I get paid for comes from a fixed period each day (there can be a bit of spill over to an adjacent period but its rare). I can send as little as I want but can never exceed the max rate of the two PWs (10 kW) at any moment and at least monthly (maybe daily) I cannot send back any more than the estimated power the utility and I agreed to when I was given a permission to discharge to the grid. Pretty standard for California where I live.  If I do send back more they have the option to cap my reimbursement to what was agreed to. My actual production is always short of what was agreed to BTW.

Mmm - from what you are describing, it sounds as though it may fit within the capabilities of the ToU engine I put together earlier this year.
https://github.com/BuongiornoTexas/pwdusage
There's at least one place it won't fully match your system, and that is truncating export per month. But if you are not going over the limit, this may work for what you are looking for? And if you really cared, you could build a custom agent.
It does lazy accounting - basically if the energy costs or generates export or usage value, it gets accounted for. All other energy is assumed to have zero value (solar charging is worth nothing until used or exported, losses are worth nothing). So:

Energy coming from the grid costs whatever the utility charges, and it doesn't matter if this is sent to the house or the battery.
Energy sent to the house from the battery or solar is valued at whatever the equivalent grid cost is at that time (savings value).
Energy exported to the grid is valued at whatever the utility pays (feed in tariff or equivalent).

@BuongiornoTexas Yes. I am using your dashboard and it is quite detailed. But I was just thinking of the little tweak to @jasonacox dashboard on the Savings bar charts to add the pw>grid export. You could probably make this algorithm in your sleep. :-)

In that case, I think you can get what you want by tweaking the drop in replacement for the savings panel that is in:
https://github.com/jasonacox/Powerwall-Dashboard/tree/main/tools/usage-service
Right now, this should report: savings from powerwall used to power the home, solar used to power the home, and export to the grid. It doesn't differentiate between solar export and grid export, but also doesn't have the potential double counting issue jason highlighted above. But given the data available, I think you could break in down in grafana from:
solar export = max(0, min(SOLAR_SUPPLY - SOLAR_TO_HOME, GRID_EXPORT))
pw export = max(0, min(PW_SUPPLY - PW_TO_HOME, GRID_EXPORT - solar export))
Depending on how you have set up your supply priorities, one of the residuals may also help in calculating what you want.

@BuongiornoTexas Missing something here: I tried the "drop in replacement" and while I can see the json is different, the only thing that changed for me was the title. Looking at it, it appears that the underlying query is limiting what is being displayed?
Maybe I don't know how to do "drop in replacement".

Hi @aesculus,
If the title has changed to "Savings - ToU Month to Date" and "solar > grid" has changed to "export > grid" than it's probably working as expected. Also, if you go to edit the panel and check the Transform tab, there should be 4 or 5 "Add field from calculation" and "Organise field" tranforms that I don't think @jasonacox uses at all.
The panel looks much the same as the old one, but the values should change a fair bit.
You could try setting up the original and new panels side by side to check what is happening.
Also - I'm really happy to spend time on helping with this, but could you include screen grabs/snap shots or other information to help debug? It's hard to know what's going on with just a sentence or two of description of the problem.

Not sure what happened last time but this time I see more bars. All I am doing is swapping the json. Is that what I should do or is there more I should be doing?
BTW I have to fix another problem first before I pursue this. I am now getting an message across the top of the panel:

BTW I have to fix another problem first before I pursue this. I am now getting an message across the top of the panel (wonder if that is because of the negative value?):

I have seen this before, and can't remember what caused it. Can you try setting a different time range and seeing what happens? As this is the original savings panel, I wouldn't expect it to have any issues?

I added this report #345  to see if @jasonacox has some ideas.