A question of evaluation

Good afternoon,
I followed your example on GitHub and tried to train the model with my data. Here is an example of the result. We can find that the label GT and the prediction are similar, but it’s so weird when we see the following curves. Is it because of the different colours of the objects? And do you know how to solve this problem?

Thank you
Thiem

Hi @jtyytim ,
It seems that all objects in your GT image have the same id and thus will be considered a single big object for the evaluation, leading to the bad metric results you observe.
So you would have to recreate the label images such that every object is labeled with a unique positive number. If they don't touch, this can be done easily e.g. with scipy.ndimage.label
Hope that helps,
M

Hi @jtyytim ,
It seems that all objects in your GT image have the same id and thus will be considered a single big object for the evaluation, leading to the bad metric results you observe.
So you would have to recreate the label images such that every object is labeled with a unique positive number. If they don't touch, this can be done easily e.g. with scipy.ndimage.label
Hope that helps,
M

Hello Martin,
Thanks for your reply. I think make sense and I tried your proposition (scipy.ndimage.label) today, but it seems that it didn't work for my binary mask. The saved new mask looked always black, only some masks were gray. Here's my code:

I tried another method and I generated new color masks successfully

But when I launched again the stardist model to do the training, there was always an error for the training step. Do you know why I had this error?

I am looking forward to your reply.
jtyytim

Please share your code/notebook with us that we can take a look ourselves and ideally run it ourselves.

Hello Uwe,
Thanks for your reply. Here are my code and examples of my training images & masks. Hope you can find the problem.
code.zip
jtyytim

I checked your code and found that your label images are actually RGB, and not a proper label images (please read the FAQ on that topic).
You can convert your RGB images to label images with this function:
from skimage.measure import label
def rgb2label(y):
    assert np.issubdtype(y.dtype, np.unsignedinteger) and y.max() <= 255 and y.shape[-1] == 3
    y = y.astype(int)
    y = (y[...,0] << 0) + (y[...,1] << 8) + (y[...,2] << 16)
    y = label(y)
    return y

Use it in the notebook here:
...
X = list(map(imread,X))
Y = list(map(imread,Y))
n_channel = 1 if X[0].ndim == 2 else X[0].shape[-1]

Y = [rgb2label(y) for y in Y]
...

Uwe

Hi @jtyytim , did this fix your issue?


[Docs] Maesh has been renamed to Traefik Mesh

Current State:
The Maesh project underwent a name change and is now referred to as "Traefik Mesh".
Desired State:
The Meshery documentation needs updated to reflect this project name change - http://docs.meshery.io/concepts/architecture/adapters
The GitHub repository for Meshery Adapter for Traefik Mesh has also recently been updated. All links to https://github.com/layer5io/meshery-maesh need to be updated to https://github.com/layer5io/meshery-traefik-mesh

Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation

I would like to work on this.

Just to confirm, I will need to change everywhere the old URL is present to the new URL and "Maesh" to "Traefik Mesh" almost everywhere be it filename, etc.

@pjzzz yes, that same is true with in the confines of /docs


Change the name of the ISO files to be more consistent with versioning

The current naming set the Elemental version BEFORE the Build (for example sl-micro-6.0-baremetal.x86_64-2.1.1-Build3.3.iso), which mask the Elemental version in the openQA test. It could also be an issue when we will have the same build number but with different Elemental version, as openQA will see a "duplicate" Build3.3 entry for example.
It could be better to use something like this: sl-micro-6.0-baremetal.x86_64-Build2.1.1-3.3.iso.

6.0 is the base OS, 2.1.1 is the Elemental version number, 3.3 is the (build service assigned) build number.
Not much we can do here 🤷🏻


fix VerificationList

 Create a way to onboard founders/vcs with tokens by sending users a link like ketl.xyz?token=123


Bridge adapter for Vit-Base is different from ResNet

Hi, I have a question in the paper it mentioned that in the bridge adapter, after the zoom layer and linear layer. There are the MHSA for each modality before entering the MHCA which are there in the given code for ResNet  in class Interactor
https://github.com/kkakkkka/ETRIS/blob/11cd4dbfacc9840b48e98482d2870ea3f165116a/model/layers.py#L346
but for VIT it used class InteractorT which perform MHCA directly without MHSA.
https://github.com/kkakkkka/ETRIS/blob/11cd4dbfacc9840b48e98482d2870ea3f165116a/model/layers.py#L326
Why didn't you do a MHSA for ViT-based as like in ResNet one?

Hello,

Thank you for your interest in our project. We chose this design based on empirical results. We found that ViT can achieve good performance without using MHSA. In order to minimize the number of parameters that need to be learned to achieve efficiency, we adopted this design.


Gallery page creation

Create a gallery page :
It should feature the following :
1.The layout is to create a image gallery slider.
2.The aligning of the image sliders in reverse chronological order starting from events of 2021 to 2018.
color pallet :
Red orange - #FD383B
Dark shade of Grey - #1E1E1E
Metallic Silver - #A8A9AD
// you can use online color grabbers like the ColorZilla.
**** Create a external CSS and a separate HTML for the Footer****

plz assign me this!

Sure! @anou1234

from where could we access the images of the events held for robotics club for the galery page? Could u plz tell?

yeah.. hv u shared it in the past month?

can u plz share it again on<EMAIL_ADDRESS>i am  having trouble finding them....

My bad i have no access to it like the permission to grant it.I will convey to the marketing team of our club to process that.

yeah..plz do that..thx

ok then .. i will use some ample pics.. thx a lot


Add organisations-publisher to dev machine config

Initially we just want to depend on publishing-api.
Instructions taken from https://docs.publishing.service.gov.uk/manual/setting-up-new-rails-app.html#defining-the-app-in-the-development-repository
https://trello.com/c/iTvQ2Q2C/75-add-new-app-to-dev-machine-config

🚢 🍏


App doesn't run on iPhone 5 and lower devices

App seems to be having errors when running on iPhone 5 and lower devices

I managed to get it to run on both iPhone 4S and 5S with no problems, but then encountered the same issue on a second attempt.

@Andrew-Walker you're almost there! 👍


warning: method redefined; discarding old find_spec_for_exe

If I execute the following line
RUBYOPT="-W2" bundle exec ruby -e "p 1"

I get those two warnings:
/Users/bruno.escherl/.rvm/gems/ruby-2.3.1/gems/bundler-1.12.5/lib/bundler/rubygems_integration.rb:468: warning: method redefined; discarding old find_spec_for_exe
/Users/bruno.escherl/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems.rb:261: warning: previous definition of find_spec_for_exe was here

Is this something that should be fixed?

This should be addressed in the 1.13 release candidates

Thanks, tried bundler-1.13.0.rc.2 and the warning is gone.


[mesheryctl] Kubernetes platform does not consider skipUpdate flag

See mesheryctl Command Tracker for current status of commands.
Current Behavior

Adding the --skip-update flag on Docker platform will skip updating Meshery containers and does not do anything for platform Kubernetes.
Desired Behavior

Kubernetes platform should also take this flag into account and provide a consistent UX for both the platforms.

Contributor Resources

mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
Layer5 Community Slack

@navendu-pottekkat I could look into this

@Maxgit3 thanks for jumping in. As you consider this, @navendu-pottekkat, we would do well to specify the Acceptance Criteria or Acceptance Tests that defines the expected behavior.

@Maxgit3 Thank you for jumping in. I will update the acceptance criteria shortly.

@Maxgit3 This will also involve your https://github.com/layer5io/meshery/pull/2807 PR
skip-update should skip checking for new manifest files and pulling them. This relates to having cached manifests on the user's machine

@Maxgit3 Could you update this?

@navendu-pottekkat #3285 has added the provisions for a skip-update flag for k8s too...

Working on it...


Question (OpenIdConnect): On Successful SignUp / Register event?

Is it possible to subscribe to an event when a user has successfully signed up/registered?
`
        options.Events = new OpenIdConnectEvents()
        {
            OnRedirectToIdentityProvider = OnRedirectToIdentityProvider,
            OnRemoteFailure = OnRemoteFailure,
            OnAuthorizationCodeReceived = OnAuthorizationCodeReceived,
            OnAuthenticationFailed = OnAuthenticationFailed,
            OnMessageReceived = OnMessageReceived,
            OnRedirectToIdentityProviderForSignOut = OnRedirectToIdentityProviderForSignOut,
            OnRemoteSignOut = OnRemoteSignOut,
            OnSignedOutCallbackRedirect = OnSignedOutCallbackRedirect,
            OnTicketReceived = OnTicketReceived,
            OnTokenResponseReceived = OnTokenResponseReceived,
            OnTokenValidated = OnTokenValidated,
            OnUserInformationReceived = OnUserInformationReceived
            //OnSignUp/OnRegistered? or maybe a property from one of the events above which uniquely identifies a signup procedure?
        };

`
Basically our goal is to run some extra code when a user has signed up... ex validation etc...

That is not something OIDC exposes, presumably for privacy reasons, because it shouldn't be your apps concern if a user is new to the identity provider or not,, so it's not something we can support.

@blowdart FYI managed to get this working. Posted answer on stack overflow:
https://stackoverflow.com/questions/36097669/sign-up-event-from-azure-b2c/56250604#56250604


[doc] Document C++14 in C++ Style Guide

This matches the C++ version mandated in the "System Requirements" document.
This is in-line with the decision made in #4 and the changes made in #646.

@asb understood, updated.


HXE's install procedure does not care if files are incomplete

We should hash files before they are moved to their final destination.
Oftentimes, this issue is due to the storage drive not having enough free space for extraction to %temp%.
We really should be extracting to a temporary directory under the target directory.
Maybe use the "./cache" idea I haven't talked about until now?

Side note: hashing is serial i.e. to hash a file, you must process the entire file. For large files, this can take quite a while.
It may be better to hash chunks in parallel and store the hashes of the chunks for validation after unpacking.


feat: add nullable object in ts generator

Description
When a model with a composed type of ['object', 'null'], the TS generator will generate an Inner type for the object and create a nullable type alias.
Example (from the tests):
The following model,
{
  $id: 'NullableObject',
  type: ['object', 'null'],
  properties: {
    foo: {
      type: 'string'
    },
  },
  additionalProperties: false,
}

Will generate the following code:
interface NullableObjectInner {
  foo?: string;
}
type NullableObject = NullableObjectInner | null;

or
class NullableObjectInner {
  private _foo?: string;

  constructor(input: {
    foo?: string,
  }) {
    this._foo = input.foo;
  }

  get foo(): string | undefined { return this._foo; }
  set foo(foo: string | undefined) { this._foo = foo; }
}
type NullableObject = NullableObjectInner | null;

Related issue(s)

Fixes #754

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

14 of 15 (93.33%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 92.101%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/generators/typescript/TypeScriptGenerator.ts
8
9
88.89%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
2817

Relevant Lines:
2916

💛  - Coveralls


Does it work with Quest 1/2?

The documentation says "Sharing anchors is only available on Meta Quest Pro headsets."
However, the Readme image implies that you also can use the previous headsets.
Which is true?

This article said about that. Quset 2 will be supported in early 2023. Maybe Quest 1 will not.
https://developer.oculus.com/blog/build-local-multiplayer-experiences-shared-spatial-anchors/

@LB31, @yutokun, To confirm: Shared Spatial Anchors is supported on Quest Pro, and will also be supported on Quest 2 in early 2023. There are no plans to support SSA on Quest 1.


Support Sensitivity labels for Team Sites

Hi!
I have just one question regarding the sensitivity labels when we choose “Team site”, we can not see the option “sensitivity label” in the request form?
They are working good with Teams team and o365 groups in the form.
Best Regards

@Tarrelito we don't currently support setting sensitivity labels on SPO sites because of the lack of an API to do this.
We store a service account in key vault but we don't actually use it in the Automation account.
We will look at adding this functionality in the future.
Thanks

Okay thanks for the clarification.

@Tarrelito adding to our roadmap in case we can find a better way to do this in the future.

@Tarrelito we've just released V1.1.0 which now supports the application of sensitivity labels for SharePoint sites. I'm going to close this issue now and mark as done on the roadmap.
Please do check out the new release.
Thanks!


feat: Minerva should be able to open *.txt files sent to it

Minerva should be able to:

receive txt files
answer follow-up questions about these files

Hello, I would like to contribute to this issue, so could you please assign this to me?

@Zingzy, thank you for reaching out 🙌 Assigned! Let me know if you have any questions 😄

Hi @yurijmikhalevich thanks for assigning this issue to me, just a quick question where can I obtain the API GPT API key for the local testing of this project?

@Zingzy, you can register with https://platform.openai.com/ to get one for testing. But I would suggest starting with implementing txt-file receiving and reading and writing some tests for this.
Do you have an implementation plan?

@Zingzy, I have unassigned you from the issue. Let me know if you still want to work on it.

@yurijmikhalevich sorry I was not able to work on this issue because of the un-availability of OPENAI key for testing :/

@Zingzy, got it! No worries!


group_by historical values are volatile/fluctuate (show different historical values - affected by time the chart is rendered)

Checklist

[ x] I updated the card to the latest version available
[ x] I cleared the cache of my browser
[ x] I verified that I'm really running the lastest version in my browser console
[x ] I checked if there is another issue opened with the same problem

Describe the bug
Depending on the time (during the day) when I run/display the chart card, the historical chart entries are different. See the attached screenshot of the same bar chart top left of the screenshot - every time the values shown are different. What I noticed is that the popup shows date and time and the time part equals to the time of the rendering. Yes, I'm sure the data are not altered, the only thing that fluctuate is the rendered bar chart.
See chart definition below.
Version of the card
Version: latest release
To Reproduce
This is the configuration I used:
- type: custom:apexcharts-card
        graph_span: 10d
        update_interval: 1d
        header:
          show: true
          title: Person count
        series:
          - entity: sensor.zoom_person_count
            type: column
            name: zoom
            group_by:
              func: sum
              duration: 1day
          - entity: sensor.second_person_count
            type: column
            name: fixed
            group_by:
              func: sum
              duration: 1day

Screenshots
If applicable, add screenshots to help explain your problem.

Expected behavior
Historical data presentation should be stable and exactly the same no matter when chart is rendered.
Desktop (please complete the following information):

Browser Firefox
Version 120.0

@d123456temp I came across it too - I agree it's not ideal. If not default, it would be good if the group by had an option to align to some period that relates to the group duration.
As a temporary solution, if you set a start or end time, that 'pins' the grouping to that period.
Example:
span:
  end: hour

Commenting to keep alive.

There's no default alignment with bucketing, that's what end and start are made for.

It feels counterintuitive and not ideal that in effect over time graphs using this will fluctuate as the bucket moves. I wonder if this default is worth changing or adding guidance for?


Constraints Causing Display Issue (Xcode 8)

I've run into an issue in xcode 8 where applying constraints or using autoresizing on the KYCircularProgress view causes the progress bar to display in unexpected ways.
Positioning constraints appear to affect the guide line, causing it to no longer display (or be moved outside of the view). Any constraints relating to the size of the view (width, height etc.) cause the progress line to be massively enlarged.
The views frame appears to react correctly to the constraints, it is just the graphic that is affected. Setting the constraints programmatically has the same effect.
Setting the constraints and saving the storyboard for xcode 7 fixes the issues. This works fine as a workaround
No Constraints

Positioning Constraints

Size Constraints

I encountered same issue. It's caused by calling configureProgressLayer() when view isn't played out and frame is some nonsense like (0, 0, 1000, 1000). Similar issue http://stackoverflow.com/questions/39578530/since-xcode-8-and-ios10-views-are-not-sized-properly-on-viewdidlayoutsubviews
It can be possibly cured by overriding layoutSubviews() and changing progress layer bounds.
Also I've found that when using autoresizing masks view works as expected so it can be used as temporary workaround.

Hi, @po7h3ad, @maxgorodivskyi
Thanks for your issuing.
I've been updated library to 1.0.0.
This major update is added various features, and redesigned according to design guidelines. And Xcode 8 layout issue is also fixed.
Thanks.


[PowerToys]Document new Mouse Jump utility

Adds documentation for the new Mouse Jump mouse utiltity in PowerToys.

@crutkas

@mattwojo , this should only go in after 0.68 is released. Thank you!

@mattwojo v0.68 was released like 10 minutes ago 🙂

@crutkas - Do you have a list of doc updates for v0.68? Ok to merge this update?


Pyctuator should be able to register with SBA that's using basic-auth

It should be possible to configure username and password for Pyctuator
to use as basic-authentication when registering to spring-beet-admin.
Solves #8

Codecov Report

Merging #9 into master will decrease coverage by 0.48%.
The diff coverage is 70.37%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   87.51%   87.03%   -0.49%
==========================================
  Files          24       24
  Lines         857      879      +22
==========================================
+ Hits          750      765      +15
- Misses        107      114       +7

Impacted Files
Coverage Δ

pyctuator/impl/spring_boot_admin_registration.py
72.94% <69.56%> (-1.31%)
:arrow_down:

pyctuator/pyctuator.py
90.14% <75.00%> (-1.04%)
:arrow_down:

Continue to review full report at Codecov.

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

Codecov Report

Merging #9 into master will decrease coverage by 0.39%.
The diff coverage is 74.07%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   87.51%   87.11%   -0.40%
==========================================
  Files          24       24
  Lines         857      877      +20
==========================================
+ Hits          750      764      +14
- Misses        107      113       +6

Impacted Files
Coverage Δ

pyctuator/impl/spring_boot_admin_registration.py
72.94% <70.83%> (-1.31%)
:arrow_down:

pyctuator/pyctuator.py
91.30% <100.00%> (+0.12%)
:arrow_up:

Continue to review full report at Codecov.

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


Added OpenJDK 11 and VccRedist packages on build image. Added additio…

…nal retries before restarting the post on connect failure
WIP PR

closing to prevent auto run


⚠ Bofrost.de has degraded performance

In de01689, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1160 ms

Resolved: Bofrost.de performance has improved in 7615b76 after 6 minutes.


Province 5  issues#37 fixed

Province 4 issue #36 fixed

Province 1 issue #35 fixed

Issues #33 and Issues #34 fixed

@pratimakandel
Thank you!


Default Style/TrivialAccessors to match names exactly

The default behavior of Style/TrivialAccessors is quite a bit more strict than the style guide rule. I suggest defaulting ExactNameMatch to true to improve the rule's style guide congruency.

The default behavior of Style/TrivialAccessors is quite a bit more strict than the style guide rule. I suggest defaulting ExactNameMatch to true to improve the rule's style guide congruency.

On the other hand the current default reveals "hidden" accessors, which is not a bad thing IMO.


v1.7 backports 2020-05-04

#11280 -- Istio: Update to release 1.5.2 (@jrajahalme)

Once this PR is merged, you can update the PR labels via:
$ for pr in 11280; do contrib/backporting/set-labels.py $pr done 1.7; done

test-me-please

Only failures are known broken tests. Merging.


Fix flaky TF recipe tests

Description
This fixes flaky Terraform tests by adding retries to verify that the TF installation is compete. The problem seems to be occurring when the TF installation hasn't completed but we proceed with calling the executable anyway
Type of change

This pull request fixes a bug in Radius and has an approved issue #6564

Fixes: #6564
Auto-generated summary

🤖 Generated by Copilot at f1969ab
Summary
🗑🕑🔄

This pull request improves the terraform package by using the tfexec library for installing and executing Terraform. It also adds a new metric to measure the verification time of the installation and refactors some variable names and function calls. The changes affect the files pkg/metrics/recipeenginemetrics.go, pkg/recipes/terraform/execute.go, pkg/recipes/terraform/install.go, and pkg/recipes/terraform/types.go.

terraform package
refactored with tfexec
cutting duplication

Walkthrough

Add and record metric for Terraform installation verification duration (link, link)
Return and use *tfexec.Terraform instance instead of string path from Install function (link, link, link, link, link, link, link, link, link, link, link, link, link)

/ok-to-test

/ok-to-test

Were we able to test and approve this solution?

Functional tests are passing with this update. There's not really a good way to manually reproduce the error found in the logs. We just know that the executable text file is busy when we try to use it, so we'd have to find some way to time using the executable when we know that it's not fully installed yet for a repro. The idea is that we verify everything is installed correctly first (and track that with metrics), and then proceed with any other TF deployment steps to mitigate this issue

/ok-to-test


ZEPPELIN-3404. Fail to run cronjob when user doesn't run it manually before cronjob

What is this PR for?
This bug is introduced by #2914, this PR will set authenticationInfo using its user as we will store user into note.json.
What type of PR is it?
[Bug Fix]
Todos

[ ] - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-3404

How should this be tested?

Manually tested

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@felixcheung Mind to help review it ?

LGTM

so running via cron will use the last user that executed a paragraph. that does not fit exactly to the docu change from original PR:

Cron executing user (It is removed from 0.8 where it enforces the cron execution user to be the note owner for security purpose)
https://github.com/apache/zeppelin/pull/2914/files#diff-bed1be4fb1f7f6c8e3bd6db18d72dc44

Thanks @weand , even I didn't realize the user in note.json means the last user run the paragraph (I thought it is the owner). In that case, it seems meaningless to store user in note.json IMHO.
Regarding the issue, I will update it soon

Update the PR to run the cron job as the note owner

Groups can be note owners. As I see AuthenticationInfo is not valid for internal shiro groups.
How can I find the user which scheduled note?

@mebelousov Currently I would only allow note owner to set the schedule and run cron job via the owner. But seems zeppelin allow multiple owners for one note (it doesn't make sense to me), this is only what I can do the eliminate the security issue.

@zjffdu I have checked with group as owner. This is ok.
Why do you think that use of owner is more secure than cronExecutingUser?

@zjffdu is there a chance to set the cronExecutionUser implictly to the user who activates the cron schedule.
and in addtion only allow owners (which can be defined by username or groupnames) to activate the cron schedule.

and optionally (or alternatively) introduce a config parameter for a static cronExecutionUser (kind of service user) to be defined by ops team. when this config parameter is set, cron schedules will always use that user.

@mebelousov What do you mean group as owner ? And how do you use that ?

@weand cronExecutionUser is set to the user who set the cron string inside the note.
@zjffdu I define groups in shiro.ini.
The user sets groupname in owner field. Then the note runs on cron from this groupname.

@mebelousov Your solution depends on shiro setting, we  could not assume that in code.

I am saying using group is not good, it just depends on user's setting. BTW, it looks like this PR also works for your scenario. In this PR, I would always choose the owner to run the cronjob. And in your case, you just set the owner as group. Do I understand it correctly ? :)

@mebelousov I fully agree that running document as the group is not what a user would expect.
That's why I'm proposing another approach again:

prior to #2914 the cronExecutionUser config property was added to org.apache.zeppelin.notebook.Note.config when activating the cron and entering a username
that property is not set anymore. this PR here only sets the authentication info at running time to something (a principal) from the permission tab (which can be user or groups, which can not be determined properly)
so why not again set that cronExecutionUser config property from 1) (under the hood): with the user who activates the cron schedule expression. when only the owner can enable cron expressions, it will always be the username regardless of what principals exactly are configured in the permissions tab.

Thanks @weand , I agree with you that your proposal seems much easier. I have updated the PR, please help verify it, thanks

The notebook now runs successfully after restart with the user who enabled the scheduler.
There is one more valid use case left in my mind (dealing with permissions):

interpreter permissions have been set only for groups (e.g. DepartmentA should be allowed to run spark interpreter)
user created note with %spark interpreter and schedules a cron
now when cron runs, only username is added to authentication info. groups of the user (e.g. DepartmentA in that example) are omitted and the notebook fails with an error, that user 'xyz' has no permission for running spark interpreter.

any chance to fix that case as well?
I think of something like introducing cronExecutingRoles (in addition to  cronExecutingUser) and adding all roles of the user who enables the cron to that config property. And then when a cron runs, all that roles are added to the corresponding authentication info.

The notebook now runs successfully after restart with the user who enabled the scheduler.
2 remaining issues:

user1 schedules the cron. then the note is executed via cron with 'user1' only as long as nobody else runs the note. as soon as 'user2' runs the note manually, the cron will also use 'user2' from that time on. Endusers would expect the cron will always run as 'user1'.

One more valid but yet uncovered use case left in my mind (dealing with permissions):

interpreter permissions have been set only for groups (e.g. DepartmentA should be allowed to run spark interpreter)
user created note with %spark interpreter and schedules a cron
now when cron runs, only username is added to authentication info. groups of the user (e.g. DepartmentA in that example) are omitted and the notebook fails with an error, that user 'xyz' has no permission for running the interpreter.

any chance to fix that case as well?
I think of something like introducing cronExecutingRoles (in addition to  cronExecutingUser) and adding all roles of the user who enables the cron to that config property. And then when a cron runs, all that roles are added to the corresponding authentication info.

@weand Thank you!
Some addition to 2.
Over time user may not belong to group.
At first we could store cronExecutingRoles and in future it's to be good to check groups on the fly.

@zjffdu uhm, I can't confirm it. Today after checking out this PR from scratch my first point now works correctly. sorry for the spam.
created issue ZEPPELIN-3427 for the second point. is that really so complex to wait for 0.8.1 or 0.9.0 ?
Part of that change would be:

moving/adding logic of setting note.config.cronExecutionUser + cronExecutionRoles to org.apache.zeppelin.socket.NotebookServer.isCronUpdated(Map<String, Object>, Map<String, Object>) when cronUpdated = true.
Then evaluate those config properties in org.apache.zeppelin.notebook.Note.runAll() when authenticationInfo is created

Thanks for the hint @weand , I am not familiar with this component and didn't realize it is so not difficult to do that.
PR is updated, please help try that. Thanks again.

Thanks @weand for review, comments are addressed

great. LGTM :+1: please merge to master and branch-0.8


0.1 release

I would like to get the 0.1 release out before school starts again (i.e September). This is just a parent issue to track the blockers.

[x]  Consistent and backward-compatible API. Addressed by https://github.com/scikit-optimize/scikit-optimize/pull/75
[x] SMAC https://github.com/scikit-optimize/scikit-optimize/issues/57
(Local search technique that performs better than random sampling on piecewise constant predict functions (https://github.com/scikit-optimize/scikit-optimize/issues/74), postponed till we have a conclusion in #109)
[x] Examples (https://github.com/scikit-optimize/scikit-optimize/issues/65)
[x] Support for Python 2.7 (#87)
[x] Consistent return types #86
[x] Name collision #76 (punting for now)
[x] Need a logo #107 (code speaks louder than images, no logo required)
[ ] release mechanics #133
[ ] better defaults #166
[ ] stop this list from getting ever longer 📋

Is there anything else?

Adding #87 as part of the release. Should be easy.

For the examples, which ones do you think we do for the release? #102? #103? both? more?

Also, do you want to have full support of categorical variables in gp_minimize for that release? (I would postpone it)

I think there will be more people who would be interested in the use-case shown in #102.
What do we do about mixed types (#86) for 0.1?

What do we do about mixed types (#86) for 0.1?

Yes, this should be fixed! I am adding that to the list.

Only two items left!!

two, one, ... 🚀

Should we wait on #76 being resolved or do we think that is something that will take too long? We have some good momentum going right now which I think we should keep going.

I have a smarter idea to optimize the acquisition function, hope to try it out after work today. ::D

I meant that as a general comment and not for the release. Yes I think we should resolve the name-clash.

Also, do you want to have full support of categorical variables in gp_minimize for that release?

I will postpone that as well.

Updated the to do list. Basically punting #76 and #107 to the future.
The conclusions at the end of #109 are inconclusive so shall we postpone that as well? I vote yes.

The conclusions at the end of #109 are inconclusive so shall we postpone that as well? I vote yes.

+1

(edited checklist)

edited again.

Once #174 is merged, I'd like to go ahead and make the release.  What do you guys think?

If you are happy with #133 (aka would use it or add what is missing) then yes lets release! I will be out most of the day doing not-near-a-computer things but you don't really need me anyway :)

We should add the wonderful plotting to CHANGELOG.md.

We should add the wonderful plotting to CHANGELOG.md.
I did it as part of #175  ;) But I'll add one of those nice plots as part of the index.

If you are happy with #133 (aka would use it or add what is missing) then yes lets release! I will be out most of the day doing not-near-a-computer things but you don't really need me anyway :)

Great! I'll wait for Manoj's opinion and then go ahead.

Can we just merge https://github.com/scikit-optimize/scikit-optimize/pull/145 and https://github.com/scikit-optimize/scikit-optimize/issues/162 ? (Both should not take much time to review)
@betatim Would you like to add https://github.com/scikit-optimize/scikit-optimize/pull/169 before the release?
Also about narrative documentation, are we pushing that to after the release (I'm +1 for moving that to after the release as well)?

Can we just merge #145 and #162 ? (Both should not take much time to review)

Sure no problem :)

For #162 I am Ok with doing that post 0.1. Mainly because I can't promise to have time to work on it till the start of next week.

For #169: we can do 0.1 without I think. I see two options for the example:

really dig into the differences between GP and forest. Needs a lot of work from our side to understand what we are saying.

make it as brief as possible and show off how easy it is to swap between GP and ET

would be "better" but also a lot of work, so maybe we go for 2. to get v0.1 to converge and then expand the example a la option 1. post-0.1.

Same comment as before applies: I am away this week so hard for me to commit any time to reviewing things before next week.

I really think we should understand what we are saying. I'll update the notebook with my thoughts today evening.

Same comment as before applies: I am away this week so hard for me to commit any time to reviewing things before next week.

That is fine; No rush. We still are a month behind the initial deadline. Delaying by 2-3 days would not matter much.

Oh sorry, I meant ahead of the deadline or whatever the correct phrase is. (Pardon my not-so-great English :p )

Added #145 and #169 to the list.

This means we have to make a release now right? Or can we find another excuse to not do it :trollface:
If not, I will make a release in an hour or so. Yay or nay?

Yay or nay?

Yay!

Closing!

🍻
Thanks everyone!
(need to level up my python packaging and dependencies skill)

:beers:


Add string Literal types

I think that the String Literal types might be useful instead of StrEnum.
Each StringEum will have a Literal type alternative.

Now,
there will be MonikerKind (StrEnum) and MonikerKindLiteral type.
SemanticTokenTypes (StrEnum) and SemanticTokenTypesLiteral
and so on.
Each StrEnum will have its Literal type alternative.

I don't really understand how this is supposed to be used in the code.
Currently we can use for example
if params['kind'] == CodeActionKind.QuickFix:

and it gives autocompletions for the members when typing the dot.
Or in the type annotations we can use CodeActionKind directly, which is the name from the LSP specs.
Where would we use the Literal types?


fix drawer side "right" margin progressively increase

also reported here https://github.com/root-two/react-native-drawer/issues/349

thank you very much .
this solve my problem too

Not a good fix, still breaks on iPhone PLUS or iPhone X models.

Thanks @ItsNoHax, it was a problem handling onPanResponderMove.
Now it should be fine

Take into account the original maintainer no longer looks at MRs so don't expect this to be merged.

I don't understand your solution... and its dont run on iPad.
To fix all you have to change ´updatePosition´ method. Add Math.round inside switch (in my case overlay):
drawerProps[this.props.side] = Math.round(-this.getDeviceLength() + this._offsetOpen + this._length)

@engorila Your fix doesn't work either, it still happens eventhough at a much smaller pace. I don't see how a Math.round can be a proper fix. I feel like you guys are programming by guessing.

@engorila thanks, works fine for me, even in real devices like iPhone 5 and iPad mini, as in emulators.

@rt2zz When can we get this merged?

can any one tell me how and where to implement this updatePosition ?

@SupriyaKalghatgi When this fix reflect on nativebase?

@amitmaurya0 inside node_modules/react-native-drawer/index.js line number 210 in the latest version. you can change that line with this
drawerProps[this.props.side] = Math.round(-this.getDeviceLength() + this._offsetOpen + this._length)

#352

For what it's worth I did a git bisect between the react-native 0.54.x and 0.55.x and found that this commit in React Native is what causes the problem, at least when testing on iPhone X simulator. I don't have a solution yet.

@rt2zz pleeeeease!

Agreed, have tried @numez and @anjalsan .
Doesn't work on iPhoneX.
It reduces the problem to a much smaller pace, but still there.
If this cannot be fixed properly, will have to abandon ship...

@roycclu you can try my fork https://github.com/outpunk/react-native-drawer.

@outpunk sure will try.
Can you make a PR so it's obvious to see the changes you made against main repository?
Thanks.

@roycclu Actually, I did ;)
https://github.com/root-two/react-native-drawer/pulls/outpunk

@outpunk
dood, doesn't work.
looks like the only change you made was line 30 in tweener.js
this._config.onFrame(Math.round(tweenVal));

Problem still present on iPhoneX, just to a smaller degree

@roycclu Can the bug be reproduced in iOS simulator?

any update ?

The bug can be repro in simulator.
Currently I reverted down to RN 53. (RN54 also works.)
To repro, make a horizontal listview in the main page, and as you open and close drawer, the cells in the listview shrink.
Currently busy with our app launch. Will try making a repro when I have time. But yea problem is fairly obvious.

@roycclu It would be nice to have one. I'm a bit busy to tackle this now, but I have to support iPhone X, too. So I'll dig into this later if nobody solves the issue until then.

drawerProps[this.props.side] = Math.round(-this.getDeviceLength() + this._offsetOpen + this._length)
That's work for me.
Thanks @amitmaurya0

Works well thanks @amitmaurya0

Just stopping by to say thanks to @amitmaurya0, this fix worked for me as well.

thanks @amitmaurya0 !

You can make even openDrawerOffset. I had openDrawerOffset={0.33} and it has bug. But
openDrawerOffset={0.34} all ok

@amitmaurya0 solution is working fine please release new version with the prescribed solution


credential expired

Hello, thank you for the great software.
I have one not very important issue after the active directory password has expired, is there a way to notify the user and change it in some way?
Regards

We have a warning at login when it comes close to expiring. If it has expired there is a prompt after a successful login to change it.


A small problem about range function

When I use range, I find that the output after rendering is not what I expected
The template is as follows：
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
labels:
{{- range .Values.labels }}
label: {{ . }}
  wcy: {{ . }}
{{- end }}

values.yaml is as follows:
labels:
label: wcy66
add: "yes"
wcy: niu
But why is the result like this:
metadata:
name: helm-test2
labels:
label: yes
  wcy: yes
  label: wcy66

  wcy: wcy66
  label: niu

  wcy: niu

why  this "yes"  is the first ,  I'm confused。 thank you

hi @wcynice 👋 -- I don't believe yaml preserves ordering for dictionaries. If you want ordering, an array is needed.

嗨@wcynice 👋--我不相信yaml保留字典的排序。如果要排序，则需要一个数组。

thank you! can i interpret what you said as,only when Values in ”values.yaml“are some arrays, The labels generated in the results will be sorted automatically.

I believe this question has been answered. Closing.


6.0 prints "real clash" to stdout on every clashing input

Version
6.0 from crates.io
Operating system & version
$ uname -a
Linux <redacted> 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

What you did
Upgraded to 6.0
What you expected to happen
Smooth upgrade, as the changelog didn't seem to indicate any breaking changes
What actually happened
6.0 prints "real clash" directly to stdout on every clashing input.
It looks like an older debugging code has been accidentally restored in the large 6.0 release commit.

Ah darn it. I must have messed up the merge conflict. Thanks, I'll fix this up and make a patch release.

Fixed in https://github.com/Leafwing-Studios/leafwing-input-manager/commit/b564c7e38e4d70ef896380323bd2297aef5d21c8.
New release imminent.


Updates from Zhao

@wangzhao0217 has successfully reproduced the example in the R package docs at https://urban-analytics-technology-platform.github.io/od2net/r/:

From him:

I added a devcontainer files and did a minor tweak, shall I make a PR?

Yes please!

Closing for now, PR submitted.


Does ros-iron-pluginlib Support Windows 10?

Hello,
I am interested in using ros-iron-pluginlib for a project and would like to know if it is compatible with Windows 10. I've searched through the existing issues and documentation but couldn't find any information regarding its compatibility with Windows 10.
Could you please confirm if ros-iron-pluginlib is supported on Windows 10? If it is, are there any special installation steps or considerations that I should be aware of?
Thank you for your time and assistance.

Could you please confirm if ros-iron-pluginlib is supported on Windows 10? If it is, are there any special installation steps or considerations that I should be aware of?

Yes, it is supported as part of our default install.


fix biz transaction, source list and destination list order and fix the URN to URI conversion wordings

This PR along with the PR (https://github.com/openepcis/openepcis-epc-digitallink-translator/pull/3) created in openepcis-epc-digitallink-translator project will fix the issue: https://github.com/openepcis/openepcis-event-hash-generator/issues/7
This PR will fix the ordering of the elements in bizTransaction, source and destination. It will also use the latest changes in openepcis-epc-digitallink-translator project by using the latest 0.9.2-SNAPSHOT version.
Kindly request you to review the changes and approve the pull request.

@sboeckelmann
Thanks for the feedback, based on the suggestion I have made the corresponding changes.
Please review and approve the PR.


Using stepSize and maxTicksLimit together doesn't work.

[x] I have read the guidelines for contributing
[x] I have included an example of my issue on a website such as JS Bin, JS Fiddle, or Codepen. (Template)

I want to have a chart with a minimal stepSize of 1, basically I don't want the steps to have decimals like 0.5 or something. I can set stepSize to 1, but then it will show a label for each step regardless of maxTicksLimit.
You can see the problem here:
http://codepen.io/anon/pen/pyBPME
If you disable the stepSize option, the labels are fine, but if you then disable "dataset 1" and it only shows "dataset 2", it will have steps like 0.5 and 1.5 which I don't want.
Am I missing configuration or is this an issue?
Many thanks!

@gitaarik to filter the labels, you could change the callback function that generates the tick strings. For every other label just return an empty string. If you return null or undefined the grid line will also be hidden

Ok thanks, that is a way to solve my problem:
http://codepen.io/anon/pen/MyRopv
Though I think it would be nicer if the options would work together. But it does the job for now.

Unfortunately setting stepSize to 1 has a effect I don't like. When you look at my fiddle:
http://codepen.io/anon/pen/MyRopv
You see the yAxis goes to 19. Without the stepSize option it will go to 20:
http://codepen.io/anon/pen/ONYzwg
I like this behaviour better because it's easier to read when it goes in steps of 5 up to 20, instead of steps of 4 up to 19.
So if the minStepSize option would be implemented it would solve these two problems. Do you think it will be hard to implement? I wouldn't mind giving it a try myself.

I think we can add a minStepSize option that works with the auto tick generation algorithm.

@etimberg I think that would simplify what I'm (and I'm sure others) are trying to achieve, which is integer-only ticks.

@etimberg So do you think it's easy to implement? Would like to give it a try.

@gitaarik I think it could be easy to implement. If you'd like to try, i"d say to go for it. Feel free to drop any questions here or on Slack

I recently ran into this issue as well as https://github.com/chartjs/Chart.js/issues/3092.
The solution I found is to create a custom formatter. This gives you much finer control over which labels are rendered. In my experience, often the only way to tweak charts effectively is to have very fine control.
ticks: {
    callback: function( tick, index, ticks ){
        if( tick.toString().startsWith( '1' ))
            return tick.toLocaleString();

        return null;
      }
  }

Thanks georgeu2000, using the callback enabled me to filter out partials using
`ticks: {
beginAtZero: true,
maxTicksLimit: 10,
callback: function (tick, index, ticks) {
if (tick.toString().indexOf('.') !== -1)
return null;
                                return tick.toLocaleString();
                            }
                        }`

If it may help, I ran into a similar problem, that is I wanted to have in my charts:

start at 0
no "half values" (e.g. 0.5, 1.5, 2.5, etc.) but only integers (e.g. 0, 1, 2)
minimum step of at least 1, that is no half values, but at the same time not each steps=1 when I have big values (e.g. if I have to display a value of 100, I do not want to see 100 ticks, I want to group the ticks by e.g. 10 so that they becomes e.g. 10, 20, 30, etc.)

I somehow accepted the output given by using chart options as follows:
ticks: {
    beginAtZero: true,   // minimum value will be 0.,
    stepSize: 1,
    maxTicksLimit: 11
}

The problem is that in this way, ticks are grouped in a weird way (e.g. 0, 6, 12, 18, 24, 30, 36, 42, 48, 55) rather than 0, 5, 10, 15, or 0, 10, 20, etc.

@micheledallatorre , if you modify the callback in my example to only show the tick when the value is divisible by 5 you can achieve what you are after

@chris-wood-dynmark thanks a lot, I'll try that.
The thing is that it should not be fixed to e.g. 5 but dynamic, according to the max value of my dataset.
For example, if my maxvalue = 100, tickValue should be 10, if maxvalue = 50, tickValue should be 5, etc.
I'll try if I can achieve this anyway, thanks for your piece of advice!

I'm trying to gather requirements so that we can implement this. Based on my reading of the comments, it sounds like the following features are requested

Allow a minimum step size. Something like ticks.minStepSize which ensures that spacing = Math.max(spacing, autoGeneratedSpacing)
Add a tick count property. Something like ticks.count which forces the number of ticks on the axis. This does not try to force the spacing to a nice value. For example, if the min (specified or calculated) is 0 and the max (specified or calculated) is 1 and ticks.count = 4 the following ticks would be generated: [0, 0.333, 0.666, 1]

In my case I wanted 10 ticks but when I had values that were less than 10 I did not require fractional ticks. i.e a max value of 5 in the chart would have 5 ticks, a max value of 600 would have 10 ticks.
Would the proposed solution support that?  It is not a fixed number of ticks every time it's the maximum number of ticks that the maxPointValue/minStepSize allows capped at the maxTicksLimit.

@chris-wood-dynmark I think that would be supported with the minStepSize set to 1 but I've edited my list above to include that requirement.
I wrote that we should support it for both minStepSize and stepSize though I kind of feel that it is more applicable to stepSize only. Since it forces the stepSize to be a certain value, while minStepSize still runs the auto generate algorithm (which takes into account maxTicksLimit) it might be odd to have it apply in that case since there are 2 variables for adjusting the step size.

@etimberg would your proposed solution take into account also the generation of the tick values?
For example, I had (see comments above) these values 0, 6, 12, 18, 24, 30, 36, 42, 48, 55, not sure why they were all +6 apart from the last one (48 +7 = 55).
Was this generated because of the number of ticks, set to 11 (so 10 values)?
In that case, would I be able to generate the ticks at specific increments (e.g. +5)?
Thanks!

@micheledallatorre yes, that should be fixed. Instead of using maxTicks: 11 it would be ticks.count: 11. The max ticks doesn't guarantee the number of ticks, only that the count is <= to that value. The proposed count property would explicitly set the number of ticks. I don't know which setting would take priority of ticks.count, ticks.minStepSize, and ticks.stepSize
I haven't investigated too far with that specific case yet, but with maxTicks of 11, there should be 11 values. I'm not sure why they're 6 apart either. AFAIK the auto generate algorithm should never pick 6 🤔  it only works in 1,2,5,10,...

@etimberg exactly, I'm not sure about which setting would take priority either, but we can investigate that afterwards.
Regarding the ticks value, I can give you other examples, e.g. 0, 8, 16, 24, 32, 40, 48, 56, 64, 77 (sic)! It seems like the difference between two values (in this case 8) is not taken into consideration w.r.t. the last value (in this case 77, which differs 13 from the previous value 64). Let me know if you want to check that in a separate issue or investigate that after the changes you are going to make.
Thanks!

@etimberg
Hey..i stuck on a small issue for 3 days..My problem is how to pass a variable to ticks.max? or the ticks.max is only allowed to be a fixed value?  for example.. my dataset is [1.2,2.5,3.9] now the ticks.max is default to be 4, now I want to change the ticks.max to be 5 (the max value in dataset plus 1) or something which makes the chart looks more reasonable. because 3.9 is quite near to 4.0 so that the line seems like being cut by the gird line. I will be appreciate if you can provide any suggestions about my case.

@hexx870206helen you can't pass a variable or function to ticks.max. I would use one of the lifecycle callbacks to change it. See https://github.com/chartjs/Chart.js/blob/master/docs/axes/README.md#callbacks

Is minStepSize still going to be added? It would perfectly fit my use case!

Until this is implemented, I am using this code to enforce a minimum step size.
options: {
    scales: {
        xAxes: [{
            type: 'linear',
            position: 'bottom',
            min: 0,  // My use case requires starting at zero
            beginAtZero: true,
            ticks: {
                callback: function(value, index, values) {
                    // Make sure a tick is not a fractional value
                    if (Math.floor(value) === value) {
                        return value;
                    }
                }
            }
        }]
    }
}

Thanks @engelby. Unfortunately, this doesn't suit my use case because the ticks become unevenly spaced out along the axes. It may be because my minStepSize is 5 or 10, depending on the graph.
In case it helps anyone, this is the solution I found for my case. I'm using vue-chartjs.
export default Line.extend({
  mixins: [mixins.reactiveProp],
  props: {
    ticks: {  // this prop contains my ticks options, including stepSize
      type: Object,
      default: () => ({})
    },
  },
  data: () => ({
    useStepSize: true,
  }),
  methods: {
    make() {
      this.renderChart(this.chartData, {
        maintainAspectRatio: false,
        scales: {
          yAxes: [{
            gridLines: {
              display: true,
              drawTicks: false
            },
            ticks: {
              ...this.ticks,
              beginAtZero: false,
              callback: (value, index, values) => {
                const tooManyTicks = values.length > 11
                const stepSizeTooSmall = (values[0] - values[1]) < this.ticks.stepSize
                if (this.useStepSize && (tooManyTicks || stepSizeTooSmall)) {
                  this.useStepSize = false
                }
                return Math.floor(value * 100) / 100 + '  '
              }
            }
          }]
        }
      })
    },
  },
  mounted () {
    this.make()

    if (!this.useStepSize) {
      const ticks = _.omit(this._chart.config.options.scales.yAxes[0].ticks, ['stepSize'])
      this._chart.config.options.scales.yAxes[0].ticks = ticks
      this._chart.update()
    }
  }
})

Essentially, I'm checking in the y-axis callback if there are too many ticks (more than 11), or if the step size is smaller than the one specified by my ticks prop, which defines the stepSize option. If so, then I update the chart without the stepSize option.
Now that I review it, the stepSizeTooSmall check may be extraneous and this logic may work without it. Anyway, hope this helps someone, and that this feature gets to be officially supported :-)

Hi,
Can we define a fixed distance between ticks, but where the value difference between 2 ticks to be not same.
example: suppose we need to show 10 ticks or scale labels on x-axis.
But the tick values : 1, 10, 100, 200, 500, 1000, 5000, 20000, 100000, 500000
Is it possible?
Thanks a regards
Amitav

another case: https://stackoverflow.com/questions/54924334/automatic-y-axis-scale-max-is-always-as-120-of-highest-value-in-chartjs


Restoring scroll position on back and forward.

I noticed that SPF currently doesn't have support for restoring scroll position when clicking the browser's back and forward buttons (popstate).
I noticed in the demo there was a use of window.scroll(0,0), but sometimes scrolling to top is not the right UX.
Here is an example of why I feel this is important to the UX of a site:
If a user is browsing a list of articles snippets (with a read more link) and decides to click read more on one of the articles below the fold, after reading the article, the expected behavior when the back button is clicked should be to return the user back to where they had previously scrolled the screen (with the article snippet in view).
The above behavior is even more important when the content below the fold is very long. In this case, clicking the back button and being scrolled back to the top would be extra frustrating.
This is something that I noticed PJAX as well as medium.com supports. Just curious if this is something that was planned on the roadmap.
Thanks!

Thanks for opening this issue; I've been meaning to do it myself.  This is absolutely on the roadmap.  (I actually also rolled this functionality into #111 but decided to keep them separate to avoid the complexity of that change.)
This will be in the next release.


feat: Add Key-Value Store Functionality

Description

Adds support for read-write and read-only key-value stores

New interface with factory (internal/kv)
Methods for managing stores (Setup, Close), putting values into stores (Set, SetWithTTL), and retrieving values from stores (Get)
KV backends in this PR:

AWS DynamoDB (rw)
Memory (rw)
CSV File (ro)
JSON File (ro)
Text File (ro)

Adds a kv_store processor for retrieving and putting items into any KV store, all features of the KV store interface are supported
Adds two new patterns for the kv_store processor

cache-aside pattern: performs a cache-aside by retrieving a value from a configured KV store and running a processor plus updating the KV store if the get action missed
Zeek Intelligence Framework pattern: uses the CSV File KV store to load Zeek Intelligence Framework files and perform indicator matching, by default works with Critical Path Security's Intelligence Feeds

Adds the DynamoDB API call GetItem (required for the DynamoDB KV store)

Motivation and Context
This addresses both https://github.com/brexhq/substation/issues/55 and https://github.com/brexhq/substation/issues/65 -- both use cases are abstracted into the generic KV store use case, which can be extended with support for future backends. This functionality enables this functionality / future work:

https://github.com/brexhq/substation/issues/59
Idempotent consumers (not ticketed)
Idempotent processing (now possible via configurations as code)
Refactoring internal/ip/database into KV store
Threat intelligence feeds (now possible via configurations as code)
Simplifying the project's caching strategies

How Has This Been Tested?

Unit tests are passing and all features were locally integration tested.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.

I like the add of Zeek Intelligence Framework, I was unfamiliar with it but it's a great way to bring in indicators.

Yeah, that's a nice example of how we can create read-only KV stores from almost any file. Those files are just fancy CSV files (they use tab as the delimiter, so technically it's TSV) and this makes it relatively easy to retrieve and parse them.


Earn a reward (BE)

Statement of Value
As a Contributor
I want to earn a reward
So that I will be able to sell or collect it
———
Acceptance Criteria
Given:
A campaign is published
and
A campaign is not completed (campaign status is "Finalizing" / "Reverting" / "Success" / "Failed")
and
A campaign contains a reward with the "Active" status
When:
A Contributor invests to a campaign
and
The invested amount is greater than a collectible's minimum funding amount
or
The invested amount equals a collectible's minimum funding amount
and
A Contributor hasn't earned the same collectible before
Then:
Assign a collectible to a Contributor (a collectible (one instance) becomes unavailable for other contributors and will be provided to a Contributor who earned it after a campaign is successfully completed)
and
Collectible's "Q-ty" parameter must be updated:
• if the "Q-ty" is Limited, then subtract earned collectible (one instance) from the current amount
———
Additional Information
High-level process

User flows
User flows that outline the detailed process can be found here.

Moved: https://github.com/playzero/zero-network/issues/189


Issue #406: Update user stories / use cases

Closes #406.

@lzan98 Hopefully you're not in the midst of reviewing.. Fixed a bug with the class diagram image for UI. Oops!


supported mime type x-zip-compressed

Problem statement
I have this app running with the generated client.
The spec is using x-zip-compressed but I don't think it was supported by go-swagger's generated client (checked with this link).
I did a workaround to add a custom transport for the runtime.
but now it is returning an error
invalid character 'P' looking for the beginning of the value

the generated client is looking to read this zip value.
PK QU            +   something.json��OK1ſJ���$���	���l�(b2��IH���~w�v�����޼y�R�A!HV���2������ݎU��e#���y��`���g�W��!Ӡ[�-*αf��F7��u˻��xGf��������d>2�LZ�y>�[���lo��L:ڐ�w����6�#՜��,!�H���5a����?�DI+58�e�F�O[����ѕ��

my question is.. how do we handle it so that I can get a proper zip value in my laptop that i can read manually from directory and not code?
thanks!
Swagger specification
running this envar DEBUG=1 and SWAGGER_DEBUG=1. this is the output
POST /app/export HTTP/1.1
Host: something.com
User-Agent: userAgentTest/v0.1.0 (TestApp)
Content-Length: 0
Accept: application/zip
Authorization: Bearer foo
Content-Type: application/json
X-Amzn-Trace-Id: 1-634cd0a5-719cc5f401c0907a2fbf6c25
Accept-Encoding: gzip

HTTP/2.0 200 OK
Content-Length: 432
Content-Disposition: inline; filename=file_test.zip
Content-Type: application/x-zip-compressed
Date: Mon, 17 Oct 2022 03:48:53 GMT
X-A-Traceid: 11b801db134f4566a3bf056a05936329

PK QU            +   file_test.json��OK1ſJ���$���	���l�(b2��IH���~w�v�����޼y�R�A!HV���2������ݎU��e#���y��`���g�W��!Ӡ[�-*αf��F7��u˻��xGf��������d>2�LZ�y>�[���lo��L:ڐ�w����6�#՜��,!�H���5a����?�DI+58�e�F�O[����ѕ��
����
a�4=i��^N�>PK��rw�   p  PK QU��rw�   p  +                 file_test.jsonPK      Y   A

app.go:137: invalid character 'P' looking for beginning of value

GO_SWAGGER_VERSION = v0.25.0
GO_VERSION = 1.16

the spec
"/app/export": {
      "post": {
        "consumes": [
          "application/json"
        ],
        "description": "desc",
        "operationId": "exportApp",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": false,
            "schema": {
              "$ref": "#/definitions/structSometing"
            }
          }
        ],
        "produces": [
          "application/zip"
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "schema": {
              "type": "file"
            }
          },
          "404": {
            "description": "not found",
            "schema": {
              "$ref": "#/definitions/Error"
            }
          }
        },
        "security": [
          {
            "authorization": []
          },
          {
            "HasPermission": [],
            "authorization": []
          }
        ],
        "summary": "",
        "tags": [
          "appTest"
        ],
        "x-authorization": {}
      }
    }

found it!
I just need to support transport.Consumers["application/x-zip-compressed"] = runtime.ByteStreamConsumer() in the roundtripper.
All this time I add transport.Consumers["application/x-zip-compressed"] = runtime.JSONConsumer() when what I should do is change the JSONConsumer() to a `ByteStreamConsumer().
It still outputting a compressed zip though

Are you trying to download a file or do you want to stream a file response to the client?
If the mime type you have is not supported you can make your own consumer. So like the bytestream consumer you can make a gzip consumer.
in your specification you can mention the content disposition header as a response header, then you can read it from the generated client and use that to name the file you write the stream to

It really depends on what you're trying do. Are you trying to download a file and then save it to disks or do you want the server to respond with a json document that then gets unmarshaled into a struct, map, ...
Feel free to ping me on our slack if you want to have a conversation (just bear in mind that I'm in the California timezone, so I'm not always available when you are)

Hi!
Yes, I'm trying to download a file.
The file is containing an array of .json.
Is there any example that I can refer?
Thanks!


Release/v1.1.0

What this PR does

Remove label from metadata to avoid crd validation error (with openfaas helm chart 5.5.5-magda.1)
Release multi-arch docker images (linux/amd64, linux/arm64) from CI pipeline

Checklist

[x] unit tests aren't applicable
[x] I've updated CHANGES.md with what I changed.

tested in local cluster


Fine-tuning PairRM error

Very excellent research. I would like to try full fine-tuning on your trained optimal model, but I can't find a trainable model that I can use for loading. When I try to load the model on huggingface and fine tune the training on train_ranker.py I find that the parameters are not compatible with “TypeError: Could not infer framework from class <class 'llm_blender.blender.blender.Blender'>.”
Could you please provide me with the “checkpoint-best” that can be loaded and fine-tuned in train_ranker.py and how to use it? Thank you very much!

The training do not need the checkpoint-best to start, that's the output directory name. Could you please provide more details on the training errors, such as the environments and error message, error code line? Did you install your environment correctly via pip install -e .[train,eval].  On my side, all the training works fine.


Variables used in a switch are ignored in the use-count

I put his one in a different issue to keep things seperated.
The extension throws warnings on a variable not being used, even though it IS used inside a switch statement:
{% set type = craft.app.request.getParam('param')|default(null) %}

{% switch type %}
    {% case 'some-value' %}
        {# ... #}
{% endswitch %}

Hi @Friksel
Thanks for your message.
I close this issue because it's the same issue as this one : https://github.com/Cerzat43/vscode-twigcs/issues/17


Site Request: NickJr.com

Currently I use ffmpeg to download from NickJr.com, but I would rather use youtube-dl.
Example url: http://www.nickjr.com/little-charmers/videos/prince-not-so-charming-s1-ep101-full-episode/
Output:
E:\apps\youtube-dl>youtube-dl http://www.nickjr.com/little-charmers/videos/prince-not-so-charming-s1-ep101-full-episode/
[generic] prince-not-so-charming-s1-ep101-full-episode: Requesting header
WARNING: Falling back on generic information extractor.
[generic] prince-not-so-charming-s1-ep101-full-episode: Downloading webpage
WARNING: URL could be a direct video link, returning it as such.
[download] Destination: prince-not-so-charming-s1-ep101-full-episode-prince-not-so-charming-s1-ep101-full-episode.unknown_video
[download] 100% of 130.00KiB in 00:00
Here are some additional links:
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid%3Aarc%3Avideo%3Anickjr.com%3A1da18f48-8b93-11e4-a3c3-0026b9414f30?acceptMethods=fms,hdn1,hds
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid%3Aarc%3Avideo%3Anickjr.com%3A1dc5e6c2-8b93-11e4-a3c3-0026b9414f30?acceptMethods=fms,hdn1,hds
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid%3Aarc%3Avideo%3Anickjr.com%3A1dccf188-8b93-11e4-a3c3-0026b9414f30?acceptMethods=fms,hdn1,hds
http://media-utils.mtvnservices.com/services/MediaGenerator/mgid%3Aarc%3Avideo%3Anickjr.com%3A1dd2419c-8b93-11e4-a3c3-0026b9414f30?acceptMethods=fms,hdn1,hds

I would like this as well..

how do you use ffmpeg to download? what commands do you use?

@hdubb This original video is no longer available. Do you have another working video?

@yan12125 Here is a video that I would like to download
http://www.nickjr.com/paw-patrol/videos/pups-save-a-goldrush-s3-ep302-full-episode/

It says Sorry, this video is unavailable from your location. Which countries does it require?

@yan12125 I am in the United States. Can you let me know what you are typing in the command prompt?

Thanks. NickJr is not supported yet. I was trying to analyze the website and got the error message there.

@yan12125 no problem. the website looks similar to Nick which is supported.
@syncretic said he could download from NickJr using ffmpeg so I was wondering what to type to download using that while youtube-dl adds support.

nickjr.com will be supported in the next version.
From @syncretic's description, I guess he/she was also analyzing the website and got the final URL that ffmpeg accepts.

I'm sorry I meant to say rtmpdump, not ffmpeg.
@hdubb That video is no longer available but if you take a video like this one:
http://www.nickjr.com/paw-patrol/videos/pups-save-apollo-s3-ep307-full-episode/
look at the source code and find "mgid"
mgid:arc:episode:nickjr.com:77ee3596-da02-11e5-8a89-0026b9414f30
Then put that at the end of this url
http://udat.mtvnservices.com/service1/dispatch.htm?feed=nick_arc_player_prime&mgid=
So you get this:
http://udat.mtvnservices.com/service1/dispatch.htm?feed=nick_arc_player_prime&mgid=mgid:arc:episode:nickjr.com:77ee3596-da02-11e5-8a89-0026b9414f30
Then search for "duration" and the episode will be in multiple segments, you have to download each segment and mux them together with mkvtoolnix.

No problem but it is unnecessary now.
The newest update of youtube-dl supports nickjr.com downloads now.
On Tue, Jul 12, 2016 at 7:24 AM, syncretic<EMAIL_ADDRESS>wrote:

I'm sorry I meant to say rtmpdump, not ffmpeg.
@hdubb https://github.com/hdubb That video is no longer available but
if you take a video like this one:
http://www.nickjr.com/paw-patrol/videos/pups-save-apollo-s3-ep307-full-episode/
look at the source code and find "mgid"
mgid:arc:episode:nickjr.com:77ee3596-da02-11e5-8a89-0026b9414f30
Then put that at the end of this url
http://udat.mtvnservices.com/service1/dispatch.htm?feed=nick_arc_player_prime&mgid=
So you get this:
http://udat.mtvnservices.com/service1/dispatch.htm?feed=nick_arc_player_prime&mgid=mgid:arc:episode:nickjr.com:77ee3596-da02-11e5-8a89-0026b9414f30
Then search for "duration" and the episode will be in multiple segments,
you have to download each segment and mux them together with mkvtoolnix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rg3/youtube-dl/issues/7542#issuecomment-232063441,
or mute the thread
https://github.com/notifications/unsubscribe/AOYXn3r47SI9P3vs2t__39z2EUTNFGsRks5qU6OugaJpZM4Gkqhr
.

Forgive my my ignorance is there a special way for the command for be formatted for this to work with NickJr? I've tried many variants of using the "mgid" within different URLs but have been unsuccessful. Any help is much appreciated.
[02:19:46]user@BRICK:~$ youtube-dl --version 2017.01.05 [02:19:57]user@BRICK:~$ youtube-dl www.nickjr.com/paw-patrol/videos/pups-bear-ly-save-danny-s3-ep316-full-episode/ WARNING: The url doesn't specify the protocol, trying with http [nick.com] pups-bear-ly-save-danny-s3-ep316-full-episode: Downloading webpage [nick.com] 4f9d55fc-3517-11e6-8a89-0026b9414f30: Downloading info [nick.com] 4011734a-9954-42a4-ae9d-fc731cd0d0ee: Extracting information [nick.com] 4011734a-9954-42a4-ae9d-fc731cd0d0ee: Downloading video urls [nick.com] 6a459c80-58c3-4244-884a-1fd2f21da0bf: Extracting information [nick.com] 6a459c80-58c3-4244-884a-1fd2f21da0bf: Downloading video urls [nick.com] 398ac6d6-0820-436e-bbd8-b8719b9af129: Extracting information [nick.com] 398ac6d6-0820-436e-bbd8-b8719b9af129: Downloading video urls [nick.com] 4d7d5d26-cc9f-4019-90b4-42c1b5ff9e2d: Extracting information [nick.com] 4d7d5d26-cc9f-4019-90b4-42c1b5ff9e2d: Downloading video urls [nick.com] 5d4ba054-34e3-4120-87be-c9dd2412258c: Extracting information [nick.com] 5d4ba054-34e3-4120-87be-c9dd2412258c: Downloading video urls [nick.com] 36d52bd3-5b24-4ad6-a9c8-c04bfd11c76d: Extracting information [nick.com] 36d52bd3-5b24-4ad6-a9c8-c04bfd11c76d: Downloading video urls [download] Downloading playlist: PAW Patrol: "Pups Bear-ly Save Danny/Pups Save the Mayor's Tulips" [nick.com] playlist PAW Patrol: "Pups Bear-ly Save Danny/Pups Save the Mayor's Tulips": Collected 6 video ids (downloading 6 of them) [download] Downloading video 1 of 6 ERROR: unable to download video data: <urlopen error [Errno 110] Connection timed out> [02:22:11]user@BRICK:~$

@ShafferZee Can you watch videos on http://www.nickjr.com/paw-patrol/videos/pups-bear-ly-save-danny-s3-ep316-full-episode/? I got a black screen in Firefox.

@yan12125 Works for me on Chrome, and after allowing flash on FF it works.

Still no luck with Flash enabled. Anyway could you open a new issue? The error messages look quite different.

It sucks :(

Please open a new issue for fplive problems, thanks.


Helm chart: Allow the creation of extra manifests via values

Pull Request Motivation
Sometimes, when installing the  Helm chart, some extra manifests need to be deployed to have a fully-functional cert-manager:  SecretProviderClass, ClusterIssuers, or Certificates...
This PR enables this use case by allowing the creation of extra manifests passed as Helm values. This is a similar approach to what Grafana and others do.
Implements https://github.com/cert-manager/cert-manager/issues/5900
Kind
feature
Release Note
NONE

/remove-lifecycle stale
@gplessis I haven't forgotten about this. I half hoped that I might persuade Helm maintainers to add something to helm:

https://github.com/helm/helm/issues/12653

I'll review and test this.

/ok-to-test

@gplessis I rebased, signed-off and force pushed to your branch to fix the DCO problems.
Now I'll review and test the changes.

/kind feature

We are so close!

Thank you!  ❤


feat: make legacy enroll move servers to available state

Updated the legacy enroll workflow to move servers to the available state. Removed some of the nesting of the workflows which added indirection that made things confusing. Added an OpenStack client container which is used for the state manipulation.

So I know #370 is new server ingestion. I kind of envisioned using the OpenStack CLI as much as possible in steps rather than writing code to call each API endpoint so using this as an example of that.


[5.2] Add array_trim helper

    $users = array(
            array('id' => 1, 'name' => 'John'),
            array('id' => 2, 'name' => 'Jane')
    );
    $fruits = ['banana', 'orange', 'apple'];

    array_trim($users, 'name');    // "John, Jane"
    array_trim($fruits);                // "banana, orange, apple"

:-1: from me. This should just be defined in your app IMO.

@GrahamCampbell I thought it would be nice to have this helper since I used it a lot. Which criteria should be respected when suggesting helpers?

Almost all helpers are actually used by the core framework.

trim() strips characters individually, i.e.:

trim('-/-foobar/', '/-') gives foobar as it removes / and -, not the string /-.

You may simply do in your application:

implode(', ', array_column($users, 'name'));
implode(', ', $fruits);


Add event color

I think it would be really useful for this library to have the option of choosing the event color (optionally).
Having this option available via a service call in Home Assistant would be awesome since all events created get the default color.

Also since you mentioned Home Assistant: if you end up wanting to add this to home assistant you'll need to actually have an architecture proposal for how this will work, taking into some of the considerations discussed in https://github.com/home-assistant/architecture/discussions/883

My impression is that this still won't work without fetching colors from the API as well. Marking as draft for now until this is ready for review.

Hello, if there is no enough interest by other people for this feature to be added, this can be closed as I don't have the knowledge to develop on this. Thanks anyway.

Closing based on your comment.


Multiple errors when running test.sh script

Hello,
I have just installed the phat speaker on my raspberry pi. I followed the install process which went as a charm. Now I have the following errors when running the test bash script:
pi@mycoga:~/temp/speaker-phat/test $ ./test.sh

testing audio

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
Playback open error: -22,Invalid argument

testing mp3 playback

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
now maintained by Nanakos Chrysostomos and others.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Directory: .
Playing MPEG stream from test.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.front.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
Can't find a suitable libao driver. (Is device in use?)

testing text-to-speech

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.front.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.snd_rpi_hifiber.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
Using device: speaker-phat
Using device: speaker-phat
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_direct.c:896:(snd1_pcm_direct_initialize_slave) slave plugin does not support mmap interleaved or mmap noninterleaved access
ALSA lib pcm_dmix.c:1034:(snd_pcm_dmix_open) unable to initialize slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

testing VU meter

Only the VU meter test works as it should be. The two first tests (speaker-test and mpg321 or aplay) do not work. I have no sound probably because of the errors.
Can someone help?

You're not alone, same thing here...

please provide specific about your system and the steps you've gone through. Your own set output/log would help too, there is rarely such things as 'same thing', most cases differ and typically provide ways to find the common denominator(s).


Remove window support from TCP channels

Our TcpSender/TcpReceiver supported running in a bounded mode, although this feature was almost never used. This PR removes that code

In essence this is saying that you should use RpcChannel if you want explicit acks.

K, just going to merge this.


Migrated redirects.json into the settings table.

Template
no issue (currently)
See https://forum.ghost.org/t/request-for-maintainer-feedback-towards-stateless-ghost/11665. We move the redirects.json into the settings table to allow Ghost to be run in a more stateless fashion.

[X] There's a clear use-case for this code change
[X] Commit message has a short title & references relevant issues
[X] The build will pass (run yarn test and yarn lint)

Approach
In the changes here, I migrate the redirects.json, migrating at startup the first time these new changes are deployed, via the existing schema migration framework, which has previously been used for similar data migrations (see 4-permalink-settings.js). I do this partly because #7707 mentioned wanting to move towards that when redirects.json was originally added.

The exact nature of changes should finish the discussion in the original forum post first - https://forum.ghost.org/t/request-for-maintainer-feedback-towards-stateless-ghost/11665/3. Closing for now to keep thing tidy.

Is this released ?
I can't see any reference of this in CHANGELOG


[YAML:Reader] control characters are not allowed [3] at 2

Brief description of your issue
I created a set of manifests, however, I'm not a maintainer on this project, and I wasn't sure all the information was correct. I did not submit a PR using wingetcreate, instead, I left it on my local drive. However, when I used winget to validate the manifests, I got this error:
[YAML:Reader] control characters are not allowed [3] at 2

Environment

Windows Manifest Creator v<IP_ADDRESS>
winget v1.0.11451

@denelon
I'd like to note that using Microsoft.DesktopAppInstaller v1.18.431.0 the manifest provided validates successfully;
Given that this is being tracked over at cli, I think this issue can be closed?

@Trenly
Which issue is it over at the CLI? I'll close this as a duplicate. @ryfu-msft is working on the 1.2 schema, so he will be aware of this and the other issue.

@Trenly
Which issue is it over at the CLI? I'll close this as a duplicate. @ryfu-msft is working on the 1.2 schema, so he will be aware of this and the other issue.

If I’m not mistaken, the one you linked above (microsoft/winget-cli#1222) regarding better validation error messages is tracking this same issue.
I could be wrong here, but given that the manifest does validate without errors on newer versions of the CLI, I would presume that it is not an issue with create

I'll let @ryfu-msft validate and close this if it's resolved there.

I am getting a slightly same error as the above mentioned.
This is my error when I try to validate my manifest:
Manifest validation failed.
[YAML:Reader] control characters are not allowed [144] at 2
I have tried maintaining my manifest as similar as the Manifest schema and format provided but I get the same error everytime.
My Manifest schema directory:
.\manifests\d\DakshSharma\chase\1.0.0
This is my CLI Version:
1.23.1911.0

I am getting a slightly same error as the above mentioned. This is my error when I try to validate my manifest: Manifest validation failed. [YAML:Reader] control characters are not allowed [144] at 2
I have tried maintaining my manifest as similar as the Manifest schema and format provided but I get the same error everytime. My Manifest schema directory: .\manifests\d\DakshSharma\chase\1.0.0
This is my CLI Version: 1.23.1911.0

Can you share the manifest itself?

Below is my repository directory for the manifest:
https://github.com/frypan05/chase/tree/main/manifests%2Fd%2FDakshSharma%2Fchase%2F1.0.0

Below is my repository directory for the manifest:
https://github.com/frypan05/chase/tree/main/manifests%2Fd%2FDakshSharma%2Fchase%2F1.0.0

I think part of the issue may be that you have more files than just the manifest in the folder. Do you still get the same error if you remove LICENSE, README.md, and chase.exe ?

is it okay to remove chase.exe file if that is the main cli tool I'm trying to add into winget?

is it okay to remove chase.exe file if that is the main cli tool I'm trying to add into winget?

You won’t be able to include the exe in that location anyways, since the winget repository won’t accept any files other than yaml files in a PR.
It also isn’t a great idea to store binaries in the git file structure as it isn’t optimized for that type of file. I would recommend creating a new release in your repo and attaching the exe to that release; then you can use the URL from the release in your manifest. When you have a new version of the exe, you just create a new release in GitHub and use wingetcreate to update the manifest

Thank you so much for the help! Really appreciate your time and effort.


Change branch name for compatibility with other tools

When a DCS branch is created it should be in the form auto-<user>-<BOOKID>

Looks good with v0.9.1 build 60abe7a QA.

Branch name is now been created as auto-username-bookid. Looks good and works fine in v0.9.2 build 1cb91f9 QA. Edits are saved correctly on the new userbranch.
Note: we should be sure that if anyone has used the v0.9.x beta and wants to keep the changes, they need to save to master before we cut over.


yoga: Backport fixes for CVE-2024-32498

Reject qcow files with data-file attributes
Extend format_inspector for QCOW safety
Add VMDK safety check
Reject unsafe qcow and vmdk files
Add QED format detection to format_inspector
Add file format detection to format_inspector
Add safety check and detection support to FI tool
Backport fix ups for Yoga

Unit tests pass locally. Missing qemu-img in CI.


Cannot display properties of some iterable resources

When I iterate on the resources of a container, I cannot get its properties. For example:
for await (let res of solid.data["https://api.test-paris.happy-dev.fr/sources/users/"].ldp_contains) {
  console.log(`${await res.type}`)
}
// shows "http://www.w3.org/ns/ldp#Container" twice, I expected "sib:source" twice

It appears that res.type is actually an AsyncIterator which returns all the types in a document:
for await (let res of solid.data["https://api.test-paris.happy-dev.fr/sources/users/"].ldp_contains) {
  for await (const type of res.type) {
    console.log(`${type}`);
  }
}
/* Result:
http://www.w3.org/ns/ldp#Container
3  http://www.w3.org/ns/auth/acl#Read
2  sib:source
http://www.w3.org/ns/ldp#Container
3  http://www.w3.org/ns/auth/acl#Read
2  sib:source
*/

Is the fact that there is no @id on these resources the source of the issue?

Is the fact that there is no @id on these resources the source of the issue?

Yes. It is caused by blank nodes, which only have meaning within one scope.
Simply said: you cannot look up more information about a blank node, because it's identifier is meaningless by the time you want to reuse it.
The problem is that solid.data["https://api.test-paris.happy-dev.fr/sources/users/"].ldp_contains results in two blank nodes.
So when you do an let … of on this expression, it will yield two blank nodes (wrapped in an LDflex path).
So then you then do .type on those blank nodes. If you do res.type.sparql, you will see that this actually corresponds to SELECT ?o { _:b3 rdf:type ?o }. In other words: give me any type. Which is the result you get: it's the first type it finds.
Note that the expression https://solid.github.io/ldflex-playground/#%5B%22https%3A%2F%2Fapi.test-paris.happy-dev.fr%2Fsources%2Fusers%2F%22%5D.ldp_contains.type [gives you the right answer], because no blank node remain in scope.

It appears that res.type is actually an AsyncIterator

It is many things actually 🙂
It is an LDflex path, BlankNode, thenable, and AsyncIterable—all at the same time.

which returns all the types in a document:

Correct, as per the above blank node interpretation.

At the moment, this is defined/intended behavior. But I can see that another behavior would be more convenient, so will create an issue for that.

However, it's currently probably better to return no results than to return unexpected results.

Ok thanks for the reply! I'll follow what's going on in #34


Bump deps and minimum required python version

This also fixes the dependabot alert : https://github.com/your-tools/python-cli-ui/security/dependabot/2

Is there a good reason to drop 3.7 support? Its EOL is June 2023, over 6 months from now.
I’ve seen a trend to drop 3.7 support already in other projects and it personally makes me a bit angry because it’s user-hostile in my opinion.
I would prefer python-cli-ui to not be such project.

Is there a good reason to drop 3.7 support? Its EOL is June 2023, over 6 months from now.

My mistake - I thought 3.7 was already EOL.
Will redo the patch if I have time

Now I think we can merge this


Update README.md

Added Safe Banking Systems

Let's preserve the alphabetical ordering in the list @Rickasaurus