Collaborate and consolidate

I was searching for something like this and found many ressources.
Maybe you can collaborate with the other projects and try to find a consent and consolidate projects to have fewer, but more quality ones. When you can't find a consent, work out the differences and state them clearly. (that's maybe something all open source projects should do?)
The most user friendly ressource i found is https://www.makeareadme.com/.
This project seams to be the most complete.
This Gist has a lot of stars: https://gist.github.com/PurpleBooth/109311bb0361f32d87a2
This text has also more star than this project: https://github.com/noffle/art-of-readme
This blog post is well written: https://rowanmanning.com/posts/writing-a-friendly-readme/
More:
https://github.com/matiassingers/awesome-readme#articles
https://github.com/zcei/standard-readme
https://github.com/bevry/projectz
https://github.com/noffle/common-readme
https://github.com/davidbgk/open-source-template/blob/master/README.md

I'd love to help out in such a consolidation. READMEs are the entry point for any open source project, so it's a very important part of the ecosystem that deserves a more concerted effort than a bunch of scattered initiatives.

@waldyrious great!
A plan could be:

see what other projects make different (other sections or order). look for previous discussion in issues, create new one if you found none.
have this project and the spec in good shape (currently "Standard Readme is designed for open source libraries" and JS background, it should fit most open source projects found on github. the spec has no version. i also see other small things to improve and clean up)
ask other initiatives to collaborate to consolidate their differences with this project and finally close their project in favor of ours (with link to this)
i think https://github.com/dguo/make-a-readme would be a great place to present it and send people to, with general information what the purpose of a readme is and easy to use template
then we should find ways to spread the idea (badge, ask for stars on github for both projects)

Do you have additional ideas or suggestions?

Thanks for the detailed plan. Some comments, number-matched to your items:

I can help with the implementation part of the plan, but this open-ended research part is beyond my availability. Other than that, yeah, I agree it's the necessary first step.
This is not very well defined. I understand it's just a suggestion, but we must make sure it's eventually specified as a set of concrete, actionable steps.
In my previous experience proposing similar joining of forces, project owners have been reluctant to close their project in favor of another one. Maybe we will have better luck if we propose creating a new organization which all merged projects' owners will be part of, and also allow a collaborative decision on the name of the merged project.
This is too vague to be actionable IMO
I'm not sure I understand your reasoning for this one. Can you expand a bit?
A badge would be ideal IMO. Asking for stars might work for promotion, but I'd prefer people to do it on their own accord.

Hey @davidak 👋! Thanks for the initiative here. Glad to see more people interested in making great READMEs.

try to find a consent and consolidate projects to have fewer, but more quality ones.

This is incredibly difficult, mostly due to design implementations, which often aren't stated explicitly. For instance, standard-readme started out of a need to provide basic READMEs for many JavaScript projects. However, it doesn't really cover python packages that well, which traditionally use .rst files. This was a tradeoff I dealt with when I enforced Markdown as a format. I could extend the standard beyond .md, but I haven't - because it would take a lot of time and effort to figure out, and it wasn't a problem I originally had to solve.
There are also politics involved. For instance, https://github.com/zcei/standard-readme stalled, I feel, because it depended on a code implementation. I wanted something faster, so I made this spec, which doesn't depend on code to work - you can just read it. But by making this, I took some participation away from @zcei's repo, which I feel bad about, but which I needed to do at the time to get the runway needed to take this spec off of the ground. Actually, both of our efforts came from this issue, and depend on a lot of the conversation there. To move faster, I didn't ask a lot of permission from the people in that thread. The same could be said of @noffle's repo. He wanted to have more description - for instance, his background section - and was less worried about the skeleton of the README headers than about getting the main point across. @noffle also has a lot more experience than I do dealing with Perl READMEs, which is a community I know almost nothing about. We come from different perspectives, have different goals, and came up with different solutions to the problem of 'How can we make everyone have better READMEs?' (I'm also jealous he has more stars. But he is my friend and this isn't a competition, so it's silly to think about, but what @waldyrious says above in "project owners have been reluctant to close their project in favor of another one" is definitely true.) I also worked as the most active maintainer of awesome-readme for the past year or two, until I recently resigned because I didn't think I was doing much good there.
All of this is a long way towards me saying: thanks, but I am more interested in focusing on making this project better, when I need to. This is a labor of love - I'm not directly paid for this work, although it does help with my work at @mntnr.
You mention some specific things we could improve - for instance, adding a version number. I think more direct, actionable points like that are great. But I'm not sure I have a grand plan beyond small spot-fixes like that. Where there are other plans - for instance, finally getting around to building that linter - they are in open issues, and I would love help. Is there something you feel we should be doing that isn't already in an issue? If so, I encourage you to open one! :)

For instance, https://github.com/zcei/standard-readme stalled, I feel, because it depended on a code implementation. I wanted something faster, so I made this spec, which doesn't depend on code to work - you can just read it. But by making this, I took some participation away from @zcei's repo, which I feel bad about, but which I needed to do at the time to get the runway needed to take this spec off of the ground.

Don't feel bad about it. The reason was me being to ambitious in the beginning, and trying to account for a lot of different opinions in the discussions.
What personally made me stall was the endless discussion about the API section, so eventually I stopped proceeding on it, but still come back and copy the README content whenever I start a repo. So in these terms that "is enough for me" and I wouldn't have hard feelings consolidating projects with others.
The reason for a codified check originated from the original issue in standard. It's a linter, so I wanted to let people know whether they actually conform to the standard they chose for their README.
Maybe at some point I will have a use-case again that really requires linting a README, but until then no code is planned. (I should update my repo with this information 😆 )

@waldyrious i will compare sections from other initiatives and create issues with concrete, actionable steps we can discuss then.

Maybe we can find an organization that works to sustain open source projects that would like to maintain such a merged projects. For example i think of Free Software Foundation / Free Software Foundation Europe, @opensourcedesign, ... You probably know more.

I might not be the right person to organize such an effort, because i think i'm not good with communication and beeing empathic. I don't want people to feel bad or think we want take away their projects, but see the bigger goal to create a combined efforts.

spontaneous i think about the @elementary OS developers (they have good UI guidelines and design) and @opensourcedesign. You might know other people that might have an opinion on this and a background that helps to know what is important in design and open source projects.

right now, this spec is no place i would send someone that just wants to know HO TO CREATE A README. the linked site is a way better ressource, because it also explains what the purpose of a readme is and the template is editable, so you just can copy it into your project. A spec is a good foundation to build a more user friendly site. I just found https://opensource.guide/starting-a-project/#writing-a-readme whichs looks like a good guide to start. We should provide something that can be linked from there.

a badge already exists and about 1800 people use it on github. i wonder why this project has so few stars compared to the other ones, especially that gist.

it doesn't really cover python packages that well, which traditionally use .rst files

@RichardLitt it is now possible to use Markdown even for PyPI (i don't know for how long). https://github.com/requests/requests/commit/eea96f94d9501f9a04d7e2c0a02096871af012c8 When people want to use rst, they still can use the sections.

I am definitely open to collaboration, but as @zcei alluded to, I would expect there to be a lot of bikeshedding. While there is a fair amount of common ground between all these resources (which I think is a great thing), there are small details that I personally don't agree with but are also not that important.
@RichardLitt's points also seem quite challenging to overcome, particularly the one about different design implementations.
As a side note, thank you to everyone here for trying to make READMEs better and to @davidak for taking this initiative. Writing good READMEs is an underrated skill.

Adding one more readme generator
https://github.com/generate/generate-readme

At the moment, I am OK with standard README as it is. :)


build fixes for recent flexible tagging update

Coverage remained the same at 26.678% when pulling 3e03c342e87b0f0dcf1fa77592b871c65e2ac603 on theseyi:flexible-tagging into f4a0712a75b855f6dc042cd917da469b878c070b on linkedin:master.

Codecov Report

Merging #921 into master will decrease coverage by 0.02%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   36.29%   36.27%   -0.03%
==========================================
  Files         312      312
  Lines        8467     8472       +5
  Branches     1589     1591       +2
==========================================
  Hits         3073     3073
- Misses       5394     5399       +5

Impacted Files
Coverage Δ

wherehows-web/app/constants/dataset-compliance.ts
100% <100%> (ø)
:arrow_up:

...ehows-web/app/components/dataset-compliance-row.ts
23.48% <25%> (-0.82%)
: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 f4a0712...3e03c34. Read the comment docs.


Osdf cache support

Related Issues / Pull Requests
https://github.com/HewlettPackard/cmf/issues/220
Description
Adds functionality for downloading and verifying OSDF artifacts from caches with MD5 hash validation
What changes are proposed in this pull request?

[ ] 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 not work as expected; for instance,
examples in this repository need to be updated too).
[X] This change requires a documentation update.

Checklist:

[X] My code follows the style guidelines of this project (PEP-8 with Google-style docstrings).
[X] My code modifies existing public API, or introduces new public API, and I updated or wrote docstrings that
uses Google-style formatting and any other formatting that is supported by mkdocs and plugins this project
uses.
[X] I have commented my code.
[X] My code requires documentation updates, and I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works.
[X] New and existing unit tests pass locally with my changes.

*** Note: CMF will check out a new branch in git to commit the metadata files ***
*** The checked out branch is master. ***
git init complete.
Starting cmf init.
Setting 'osdf' as a default remote.
cmf init complete.

Example of output when pulling from cache

$ cmf artifact pull -p Test-env
Fetching artifact=artifacts/data.xml.gz, surl=https://osdf-director.osg-htc.org/nrp/fdp/cmf_test/23/6d9502e0283d91f689d7038b8508a2 to /home/tripataa/osdf_pull_test/artifacts/data.xml.gz
object artifacts/data.xml.gz downloaded at /home/tripataa/osdf_pull_test/artifacts/data.xml.gz in 0.05 seconds and matches MLMD records.
Fetching artifact=artifacts/parsed/train.tsv, surl=https://osdf-director.osg-htc.org/nrp/fdp/cmf_test/32/b715ef0d71ff4c9e61f55b09c15e75 to /home/tripataa/osdf_pull_test/artifacts/parsed/train.tsv
object artifacts/parsed/train.tsv downloaded at /home/tripataa/osdf_pull_test/artifacts/parsed/train.tsv in 0.09 seconds and matches MLMD records.
Fetching artifact=artifacts/parsed/test.tsv, surl=https://osdf-director.osg-htc.org/nrp/fdp/cmf_test/6f/597d341ceb7d8fbbe88859a892ef81 to /home/tripataa/osdf_pull_test/artifacts/parsed/test.tsv
object artifacts/parsed/test.tsv downloaded at /home/tripataa/osdf_pull_test/artifacts/parsed/test.tsv in 0.02 seconds and matches MLMD records.
Done

Example of output when pulling from cache fails, so it reverts to pull from specified origin

Failure could happen due to hash mismatch or timeout, The example below shows a wrong cache path, And the recovery to
an origin

$ cmf artifact pull -p Test-env
Fetching artifact=artifacts/data.xml.gz, surl=https://osdf-director.osg-htc.org//nrp/fdp/cmf_test/nrp/fdp/cmf_test/23/6d9502e0283d91f689d7038b8508a2 to /home/tripataa/osdf_pull_test/artifacts/data.xml.gz
Failed to download and verify file from cache: The request timed out.
Trying Origin at https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/23/6d9502e0283d91f689d7038b8508a2
Fetching artifact=artifacts/data.xml.gz, surl=https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/23/6d9502e0283d91f689d7038b8508a2 to /home/tripataa/osdf_pull_test/artifacts/data.xml.gz
object artifacts/data.xml.gz downloaded at /home/tripataa/osdf_pull_test/artifacts/data.xml.gz in 0.05 seconds and matches MLMD records.
Fetching artifact=artifacts/parsed/train.tsv, surl=https://osdf-director.osg-htc.org//nrp/fdp/cmf_test/nrp/fdp/cmf_test/32/b715ef0d71ff4c9e61f55b09c15e75 to /home/tripataa/osdf_pull_test/artifacts/parsed/train.tsv
Failed to download and verify file from cache: The request timed out.
Trying Origin at https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/32/b715ef0d71ff4c9e61f55b09c15e75
Fetching artifact=artifacts/parsed/train.tsv, surl=https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/32/b715ef0d71ff4c9e61f55b09c15e75 to /home/tripataa/osdf_pull_test/artifacts/parsed/train.tsv
object artifacts/parsed/train.tsv downloaded at /home/tripataa/osdf_pull_test/artifacts/parsed/train.tsv in 0.09 seconds and matches MLMD records.
Fetching artifact=artifacts/parsed/test.tsv, surl=https://osdf-director.osg-htc.org//nrp/fdp/cmf_test/nrp/fdp/cmf_test/6f/597d341ceb7d8fbbe88859a892ef81 to /home/tripataa/osdf_pull_test/artifacts/parsed/test.tsv
Failed to download and verify file from cache: The request timed out.
Trying Origin at https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/6f/597d341ceb7d8fbbe88859a892ef81
Fetching artifact=artifacts/parsed/test.tsv, surl=https://sdsc-origin.nationalresearchplatform.org:8443/nrp/fdp/cmf_test/6f/597d341ceb7d8fbbe88859a892ef81 to /home/tripataa/osdf_pull_test/artifacts/parsed/test.tsv
object artifacts/parsed/test.tsv downloaded at /home/tripataa/osdf_pull_test/artifacts/parsed/test.tsv in 0.02 seconds and matches MLMD records.
Done

A comment got left out. Restored it from main. Therefore needs the merge commit.


Fixes apparmor regression

Added nullcheck to appArmorProfile, and added test.
Signed-off-by: Abin Shahab<EMAIL_ADDRESS>(github: ashahab-altiscale)

Can you please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
git commit --amend -s --no-edit && git push -f

weird the bot never likes your sig, but drone does sorry

I'll try this out thanks!

wooooohoo this fixes it and just to prove it I replaced the binary on the lxc jenkins server with one I build from this pr and ran the tests https://jenkins.dockerproject.com/job/LXC PR Test/label=ubuntu-aufs-lxc/18/console
LGTM
ping @crosbymichael

LGTM


User and Group Names are not displayed with MUSL Build

This is an odd one. I seem to not be able to see user and group names with lsd on a computing cluster I am on, but only when using the MUSL build.
On my local macOS laptop, all is well, but on this SLES 12 cluster, all I see are the numeric UID/GID when I use the MUSL
Expected behavior
Using GNU ls:
$ \ls -l
total 3600
drwxr-xr-x 3 mathomp4 g0620    512 May 19 15:46 lsd-0.17.0-x86_64-unknown-linux-gnu
-rw-r--r-- 1 mathomp4 g0620 930577 May 19 15:46 lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x 3 mathomp4 g0620    512 May 19 15:48 lsd-0.17.0-x86_64-unknown-linux-musl
-rw-r--r-- 1 mathomp4 g0620 904892 May 19 15:48 lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

Using "gnu" lsd:
$ ./lsd-0.17.0-x86_64-unknown-linux-gnu/lsd -l
drwxr-xr-x mathomp4 g0620   512 B  Tue May 19 15:46:55 2020  lsd-0.17.0-x86_64-unknown-linux-gnu
.rw-r--r-- mathomp4 g0620 908.8 KB Tue May 19 15:46:48 2020  lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x mathomp4 g0620   512 B  Tue May 19 15:48:19 2020  lsd-0.17.0-x86_64-unknown-linux-musl
.rw-r--r-- mathomp4 g0620 883.7 KB Tue May 19 15:48:08 2020  lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

Actual behavior (using MUSL)
$ ./lsd-0.17.0-x86_64-unknown-linux-musl/lsd -l
drwxr-xr-x 31128555 20620   512 B  Tue May 19 15:46:55 2020  lsd-0.17.0-x86_64-unknown-linux-gnu
.rw-r--r-- 31128555 20620 908.8 KB Tue May 19 15:46:48 2020  lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x 31128555 20620   512 B  Tue May 19 15:48:19 2020  lsd-0.17.0-x86_64-unknown-linux-musl
.rw-r--r-- 31128555 20620 883.7 KB Tue May 19 15:48:08 2020  lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

(where the boxes are the Nerd Font icons that don't seem to render).
Obviously for now my "solution" is to use the GNU build, but I thought I'd inform you of this.

as the PR merged and a version newer than 0.18.0 not yet released, I mark this issue as blocked.
after releasing a new version, we can check and verify this.

In MUSL buid 0.20.1 I am again this issue. Has this been solved?

I'm seeing this with lsd 1.0.0 on SUSE Linux Enterprise Server 15 (x86_64), having installed lsd via the homebrew/linuxbrew formula. I'm not sure if this is related, but could not find anything better yet.

I can confirm I see it as well with the MUSL build:
$ lsd -l
drwxr-xr-x 31128555 20620 512 B  Wed Oct 18 09:04:36 2023  autocomplete
.rw-r--r-- 31128555 20620  11 KB Sun Aug 27 12:53:04 2023  LICENSE
.rw-r--r-- 31128555 20620  20 KB Sun Aug 27 12:53:04 2023  README.md


Add config option to only use display name for items

I am the lead developer on a server that uses bread as the base item for all textures we have, with the help of custom model data we apply custom textures to bread. Therefore the items display name is the only name we want to display whenever a trade is completed.
I have added a config option and defaulted it to false for this behavior. It would be greatly appreciated if this could be merged in and be available in future releases!
Closes: #448

Thank you for your contribution!


Error when rendering component , , ...

When trying to create a md-sidebar for instance, I get an error message.
Interestingly, this only happens when I'm using webpack, so I can't create a CodePen for it, since it works well there.
[Vue warn]: Error when rendering component <md-sidenav>:

TypeError: t._v is not a function
    at Proxy.render (vue-material.js:9)
    at VueComponent.Vue._render (vue.js:2927)
    at VueComponent.<anonymous> (vue.js:2335)
    at Watcher.get (vue.js:1643)
    at new Watcher (vue.js:1635)
    at VueComponent.Vue._mount (vue.js:2334)
    at VueComponent.Vue$3.$mount (vue.js:5916)
    at VueComponent.Vue$3.$mount (vue.js:8199)
    at init (vue.js:2648)
    at createComponent (vue.js:4030)

Steps to reproduce

Set up a webpack project like mine: https://github.com/sk22/spg-tinf-sem03/tree/7fe21005b20a0fcee9f024b20e74b1fc7452a851/proj01
Uncomment the  in src/components/App.vue
Run a webpack build
Open the project in a browser (npm run dev or open index.html)
Watch the error happen

Versions
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

@sk22 I'm not seeing the issue you're posting. Here's what I did:
npm --version
4.0.5
node --version
v7.3.0
git clone https://github.com/sk22/spg-tinf-sem03.git
cd spg-tinf-sem03/proj01
npm install
npm run build

The only console error I get is because you've got index.js referenced in src/index.html when it shouldn't be (because webpack inserts bundle.js into the html for you.)
Other than that the application builds and runs fine. If I add an md-button with @click="$refs.sidenav.toggle()" it works as expected.
My guess is that your node_modules may be borked. I'd try removing the whole directory and running npm install again. Or perhaps your node/npm version is too old/new. (I'm on arch linux, so I figure I've got the latest stable.)

Try Vue 2.1.5
The error is discussed here: https://github.com/vuejs/vue-loader/issues/547

@Fedia Oh my, thanks a lot! Updated to vue and vue-template-compiler v2.1.8 and it works beautifully. Thanks!


[occm] Rand not being initialised any more with a seed

/kind bug
What happened:
https://github.com/kubernetes/cloud-provider-openstack/pull/2100 changed the use of rand.Seed, which seeds the global PRNG, with rand.NewSource, that returns a new initialised PRNG. With that change, that line becomes a noop (because the generated PRNG is never assigned to a variable). As a result, as stated by the documentation of math/rand:

If Seed is not called, the generator behaves as if seeded by Seed(1)

As a consequence, all random numbers generated by the binary will always be the same in the same order, which doesn't look like the expected behaviour of the PR.
https://github.com/kubernetes/cloud-provider-openstack/blob/1bf5a4a67701234ccdf88621ffb6078bccdee16b/cmd/openstack-cloud-controller-manager/main.go#L47
What you expected to happen:
rand.Seed(time.Now().UnixNano()) is left untouched, or is somehow replaced in the whole binary codebase by using the result of rand.NewSource(time.Now().UnixNano()).
How to reproduce it:
Anything else we need to know?:
Environment:

openstack-cloud-controller-manager(or other related binary) version:
OpenStack version:
Others:

/cc zetaab

CC @zetaab

rand.Seed is deprecated and golint did not execute successfully with that. Of course we could add exemption for that. However, I would like to see new way of doing things instead.

rand.NewSeed will return a seed. With your change, the new seed is not assigned, so the program uses the unseeded generator. If you want to use NewSeed, you'd have to assign it:
seed := rand.NewSeed(n)

and pass seed to all consuming functions.
Note that as the docs say, when you don't use the global seed you would also need to manage concurrency:

this source is not safe for concurrent use by multiple goroutines

Has rand.Seed been deprecated though? I haven't seen that anywhere.

https://github.com/golang/go/issues/56319
https://pkg.go.dev/math/rand#Seed

Good to know, thanks.
However, two things remain true:

this codebase uses Go v1.19. Is math/rand being seeded automatically (https://go-review.googlesource.com/c/go/+/443058) in v1.19?
rand.Seed can't be replaced with rand.NewSource, which as I mentioned returns a new source rather than seeding the global source.

At a minimum, if the global source is seeded automatically in Go v1.19, we should remove the noop use of rand.NewSource because it is pretty confusing

hmm the deprecation notice you linked mentions that it's 1.20-only:

Prior to Go 1.20, the generator was seeded like Seed(1) at program startup

If that’s ok for you, I can take care of reverting the command while making the linter happy. WDYT?

% grep -r rand *
cmd/openstack-cloud-controller-manager/main.go: "math/rand"
cmd/openstack-cloud-controller-manager/main.go: rand.NewSource(time.Now().UnixNano())
pkg/kms/encryption/aescbc/aescbc.go:    "crypto/rand"
pkg/kms/encryption/aescbc/aescbc.go:    if _, err := io.ReadFull(rand.Reader, iv); err != nil {
pkg/kms/encryption/aescbc/aescbc_test.go:       "crypto/rand"
pkg/kms/encryption/aescbc/aescbc_test.go:       _, _ = rand.Read(key)
pkg/csi/cinder/utils.go:func RunControllerandNodePublishServer(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer) {
pkg/csi/cinder/driver.go:       RunControllerandNodePublishServer(d.endpoint, d.ids, d.cs, d.ns)
pkg/ingress/controller/controller.go:   "crypto/rand"
pkg/ingress/controller/controller.go:   pfxData, err := pkcs12.Encode(rand.Reader, pk, cb[0], caCerts, "")
tests/sanity/cinder/fakecloud.go:       "math/rand"
tests/sanity/cinder/fakecloud.go:               ID:               randString(10),
tests/sanity/cinder/fakecloud.go:               ID:        randString(10),
tests/sanity/cinder/fakecloud.go:func randString(n int) string {
tests/sanity/cinder/fakecloud.go:               b[i] = letterBytes[rand.Intn(len(letterBytes))]

I am thinking is this math/rand seed even needed. There might be some library that needs that

@dims do you have idea why seed was added in https://github.com/kubernetes/cloud-provider-openstack/pull/61 ?

@zetaab at one point it was part of a kube-controller-manager i believe. I still see a lot of references:
https://cs.k8s.io/?q=rand.Seed\(time.Now\(\).UTC\(\).UnixNano\(\)\)&i=nope&files=&excludeFiles=&repos=
but it looks like it's been removed from k/k.

@pierreprinetti it looks like other cloudproviders still have seed, so maybe we add that back. So rand.Seed(time.Now().UTC().UnixNano()) and then we need fix linter to ignore it.

@pierreprinetti there are still some references in k8s.io/cloud-provider to math/rand. So perhaps its best to add it back.
rand.Seed(time.Now().UTC().UnixNano()) and then linter fix is needed as well. And can you cherry-pick that to 1.26 and 1.25

perhaps its best to add it back

it will be ready for removal once the repo compiles with Go v1.20!
Thank you for your time, @zetaab.


Lint tests

Thanks! Will merge #78 and #79 first

@dderevjanik rebased against latest changes

@dderevjanik hey, is there anything you need from me to get this merged?


Bug 1746965: openshift-4.3: rebase 3.3.11

The following PR is one of a series as we move from 3.3.10 to 3.3.15 to match etcd server to the client in the k8s 1.16 release.

/hold

/bugzilla refresh

/retest

/close
Closing in favor of #20


Proposal:  package.json support

Extending this proposal:
Look for an entry in package.json called "customElements".
If the value is a string, first search for a file relative to the root of the package.
For example:
"customElements": "./custom-elements.json"
Also support searching for a folder:
"customElements": "./custom-elements/"
If it points to a folder,  look for a file within that folder with name most closely aligned with the language preference.  For example, for Algerian Arabic:
"custom-elements/custom-elements.ar-DZ.json"
If no match found, try:
"custom-elements/custom-elements.ar.json"
If that's not found, try:
"custom-elements/custom-elements.json"
If instead of a string, the value of custom elements is an array:
"customElements": ["./src/my-button/my-button.json", "./src/my-input/my-input.json"]
Apply the same rules as above, for each item
All these files would apply to HTML editing, incorporated into /web-data

The way this support would end up in VS Code is:

https://github.com/microsoft/vscode/issues/83594 happens
It becomes possible to write an extension that traverses node_modules, looking for packages that contain custom-elements.json, transform them into Custom Data format that VS Code can understand, then call the VS Code API to add additional tags for custom elements.

The data format wouldn't need to change for this proposal, so I'm closing.


minor corrections in defining server working dir

@abhishekchitwar @jorgepiloto Minor corrections have been done for these examples in defining server working directory. Please review it accordingly. Thanks !

@jorgepiloto, can you please check for the documentation error. Thanks !

@jorgepiloto Could you please review this PR and accordingly approve it. Thanks !


bi_lstm.py中没有attention部分

Describe the question

A clear and concise description of what the question is.

bi_lstm.py中没有找到attention部分，但您的介绍里写的是用了Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification中的网络结构的。
Environment (please complete the following information):

OS: [e.g. mac / window]
Python Version [e.g. 3.6]

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

具体以所给代码为准


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/67 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-source-version-target.git

Docs Build status updates of commit 7bb6937:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Implement users and credentials in the Door Lock Cluster

Problem
Door Lock cluster needs implementation of users and credentials to function properly.
Change overview
This PR implement almost complete support of core Users & Credentials stuff from the door lock cluster -- it is now possible to create, modify and delete users and credentials using Matter IM. Also this PR includes reference (but not exactly the best) implementation of the app that utilizes the door lock server.
However, there are a couple of caveats:

Due to an issue (#13787) in the Android codegen Clear Credential command does not support deletion of all the credentials. As a workaround user can clear all credentials for each type by providing 0xFFFE in the CredentialIndex field of Credential argument.
While new unit tests are included into the chip-tool testing suite they are not run in the GitHub CI -- I would like to do that as a separate PR once this one is merge. I believe that it will be too much if I include that feature too.

Testing

Created two YAML test suites to exercise various scenarios:

First one (DL_UsersAndCredentials) verifies users and credentials creation, modification and deletion with various parameters.
Second one (DL_LockUnlock) makes sure that lock operations such as Lock and Unlock work as expected (fail with incorrect PIN, pass with correct one).

Manual testing using chip-tool -- mostly used to read events because YAML tests does not support them yet.

Fast tracking, given this has been in review > 3 days.

/rebase


Add issue / PR to Things

Things has support for URI schemes. It'd be really neat if you could paste in a GitHub URL and have LaunchBar fetch the title via an API call (using the GraphQL API's top-level resource field), and then add it to Things.
In other words, when a user enters a URL like the following into LaunchBar:
https://github.com/bswinnerton/launchbar-github/pull/91
...have it automatically convert it to something like:
Review bswinnerton/launchbar-github#91 "Use first class hide() function from LaunchBar"
With the full link back to that Issue / PR.

I wonder if this should be a different LaunchBar action 🤔 .
The commonality between the two is having an Action that is capable of hitting GitHub's GraphQL API.


[Bug]: Can't interact with UI after the notification center poped up

Affected Version
1.71.10
Bug Behavior
After launch the launcher, everything is normal. Then the notification centre pop up automatically showing that the launcher has been updated. After closing the notification, the UI doesn't respond to any operation except minimize or close the application.
Or if I open the notification centre manually, the problem will also occur.
log-2023-09-20-sta1.71.10-id1.log
Expected Behavior
Can interact with the launcher after closing the notification.
Steps to reproduce

Launch the launcher.
Open the notification by clicking the icon.
Close the pop up window.

Related Issues
No response
Screenshot(s)
https://pan.guch8017.top:10006/s/fXspt2ietrxL5Aw
A screen record is provided here.
Additional Information
No response

This should be fixed on the latest stable release. As such this issue will be closed for now. Should this issue or similar reappears, feel free to reopen or make a new one.
Thank you for the support on Collapse project <3


Refactor argparser generation into function

Is better practice than leaving it at module level, especially with some possibility of it being used as a package.

Done in ac9defda2


Bug-211681700

Add Terraform samples(2)

Shared VPC LB - HTTP Example with 1 Host & 1 Service Project
Shared VPC LB - HTTPs Example with 1 Host & 1 Service Project

Please check and approve.

Hi, please check and review now! All changes from my end are done. Thanks.


Create Pack examples

Create the following examples on the portal:

[x] Deploying a pack module
[x] Creating a pack with 721s The pack module doesn't support creating a pack with 721s (yet) so we'll ignore this one.
[x] Creating a pack with 1155s
[x] Opening packs
[x] Buying packs This example requires usage of a marketplace, so we'll skip this for now.

They should be here https://thirdweb.com/portal/learn/code-examples

weird i cant see it here lol

You need to add Projects -> Thirdweb

Thx

@eabdelmoneim the 3 examples that aren't crossed out are done and on their way to the code-examples portal page!

@ayshptk still waiting for these docs to hit the https://thirdweb.com/portal/learn/code-examples page, please update us here when you finish that

on it!

@eabdelmoneim you can share the snippets listed here


Format Y axis labels

It is possible to change the decimal pattern format of the y-axis, however it would be great if it also was possible to override the whole label formatting. This could also help solving the use of time / date in the y-axis

You can use custom axis tick calculator. See #217

Yeah, we have setYAxisDecimalPattern() but no setYAxisDatePattern() like we have for the X-Axis. Why would you want dates in the y-axis though?
You can always use something like this:
      Map<Object, Object> customYAxisTickLabelsMap = new HashMap<>();
      customYAxisTickLabelsMap.put(1.0, "max c");
      customYAxisTickLabelsMap.put(6.0, "max b");
      customYAxisTickLabelsMap.put(9.0, "max a");

      chart.setCustomYAxisTickLabelsMap(customYAxisTickLabelsMap);

or
      double[] xData = xySeries.getXData();
      Map<Object, Object> customTickLabelsMap = new HashMap<>();
      SimpleDateFormat sdf = new SimpleDateFormat("MM-dd");

      for (double d : xData) {
        Date date = new Date((long) d);
        String label = sdf.format(date);
        customTickLabelsMap.put(d, label);
      }

      chart.setCustomXAxisTickLabelsMap(customTickLabelsMap);

but for the y-axis of course.

the new packet version  3.6.1 has no method setYAxisDecimalPattern() ， which version we can use it

Yeah, we have setYAxisDecimalPattern() but no setYAxisDatePattern() like we have for the X-Axis. Why would you want dates in the y-axis though?
You can always use something like this:
      Map<Object, Object> customYAxisTickLabelsMap = new HashMap<>();
      customYAxisTickLabelsMap.put(1.0, "max c");
      customYAxisTickLabelsMap.put(6.0, "max b");
      customYAxisTickLabelsMap.put(9.0, "max a");

      chart.setCustomYAxisTickLabelsMap(customYAxisTickLabelsMap);

or
      double[] xData = xySeries.getXData();
      Map<Object, Object> customTickLabelsMap = new HashMap<>();
      SimpleDateFormat sdf = new SimpleDateFormat("MM-dd");

      for (double d : xData) {
        Date date = new Date((long) d);
        String label = sdf.format(date);
        customTickLabelsMap.put(d, label);
      }

      chart.setCustomXAxisTickLabelsMap(customTickLabelsMap);

but for the y-axis of course.

the new packet version  3.6.1 has no method setYAxisDecimalPattern() ， which version we can use it


Logs are removing trailing zeros from addresses

Had a simple contract, the logs in the panel removed the trailing zeros. See image.
I guess that is not really related to the contract you see in the pictures.
Contract for testing:
pragma solidity ^0.4.17;

contract SomeContract {
    event someEvent(address _someAddress);

    function someFunction() public {
        someEvent(0x010001Ac36dC609409458cC56C283F46B146a24d);
    }
}

Not sure if it's really a bug or not, but from my gut feeling it shouldn't be like that.

you're right , thanks for the report


Data:ManishBisht777

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Thanks Manish for your contribution +1
Please can you change the file name to be your GitHub username (matching the case also)

Ahh, my bad I didn't noticed it and Done changed the file name


S3 file storage not working with Google cloud storage since 0.14.1

Hi! First of all, thanks for amazing work!
I've been using the s3 storage to connect to a bucket in GCS without a problem up until the latest changes to the AWS SDK.
PR: #1346
I've been trying to figure out what could be wrong but I'm not skilled in Go unfortunately.
I'm getting an error (403) that the test file couldn't be uploaded and it doesn't matter if I'm upgrading from 0.14.0 or starting fresh at latest 0.14.2.
But using the same credentials for the s3 storage works fine going back to 0.14.0. (also using the old database).
Any ideas?

Could you start the executable with --debug and check if there is a more detailed error message in the console?

Hm, I think this could be related to https://github.com/aws/aws-sdk-go-v2/issues/1816, which means that it will require some special handling for GCS due to the changes of how v2 sign and send the request headers.
I'll consider a revert sometime later today.

Thank you for looking into this!
Using --debug only prints out the params being set as normal, nothing else.

To avoid having a special implementation just for GCS, the AWS SDK change was reverted in v0.14.3 (we don't use any of the newer S3 apis anyway).
If you are still having difficulties with the S3 setup, feel free to let me know and I'll investigate it further.
Note that --debug will show additional error messages in the console only during an action (aka. if you want to check the error with the v2 of the sdk you have to trigger S3 settings update).


File upload via iOS library

From @trapi on July 9, 2015 12:52
There is no possibility for uploading files via iOS library. Now the request needs to be generated manually.
Copied from original issue: Syncano/syncano4-ios#19

this option is moved to next version of library


fix: data replicated from PG becomes invisible after restarting MyDuck Server

COPY DATABASE is too tricky to make it work properly. Let's use CREATE TABLE t AS FROM pg.t for now.


Problems verifyring code for Firebase ESP32

hi
I code that had work fin but after an update it does not work.
Error Messages
Compilation error: no matching function for call to 'FirebaseESP32::begin(const char [28], const char [41])'

Please see the examples for using library correctly.


Bash completion

https://github.com/pcapriotti/optparse-applicative/wiki/Bash-Completion

Spent a while on this one... Best bet for --operate-on ref completion was git rev-parse --symbolic --branches --remotes --tags. Unfortunately auto complete was not easy to do using optparse-applicative.
Further, I couldn't get the completer working properly with prefixes for --operate-on. It seems that it didn't handle forward slashes well inside the options. It kept trying to auto complete origin/ straight to the final element, e.g., origin/0.1.0 rather than origin/release/0.1.0.

I'll merge what I have, but leave this issue open to try find a new way to include Bash completion.


Installation question

Hi, i try to install and configure this module... but at the point To use on the screen page, use the trait Orchid\Fortify\TwoFactorScreenAuthenticatable: i don't know where i have to add this part.
If i add it to my user edit view, i got this error:
Method App\Orchid\Screens\User\UserEditScreen::twoFactorCommandBar does not exist.
I am using Laravel 9 and Orchid 12, can you give me some informations how i can add 2fa?

Hi @kaizirlewagen
It means that you need to add this trend and code to the UserProfileScreen class

I edit "UserProfileScreen.php" and i add use Orchid\Fortify\TwoFactorScreenAuthenticatable; and change the following functions:
     * Button commands.
     *
     * @return Action[]
     */
    public function commandBar(): iterable
    {
	    return [
	        $this->twoFactorCommandBar(),
	    ];
    }

    /**
     * @return \Orchid\Screen\Layout[]
     */
    public function layout(): iterable
    {
        return [
            $this->twoFactorLayout(),

            Layout::block(UserEditLayout::class)
                ->title(__('Profile Information'))
                ->description(__("Update your account's profile information and email address."))
                ->commands(
                    Button::make(__('Save'))
                        ->type(Color::DEFAULT())
                        ->icon('check')
                        ->method('save')
                ),

            Layout::block(ProfilePasswordLayout::class)
                ->title(__('Update Password'))
                ->description(__('Ensure your account is using a long, random password to stay secure.'))
                ->commands(
                    Button::make(__('Update password'))
                        ->type(Color::DEFAULT())
                        ->icon('check')
                        ->method('changePassword')
                ),
        ];
    }`

After that the following error is shown:

BadMethodCallException
Method App\Orchid\Screens\User\UserProfileScreen::twoFactorCommandBar does not exist.

Do you have an idea?

@kaizirlewagen What are you missing is you need to use TwoFactorScreenAuthenticatable as a trait within Screen
Basically the whole setup process is

Install Laravel Fortify package

composer require laravel/fortify

Publish its resources

php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"

Run migrations to add two_fa columns

php artisan migrate

Add FortifyServiceProvider into providers array within config/app.php (I lost 15 minutes of my life when forget to do this in a first time :)
Add TwoFactorAuthenticatable trait to User model

use Laravel\Fortify\TwoFactorAuthenticatable;

class User extends Authenticatable
{
    use TwoFactorAuthenticatable;
}

Install Orchid Fortify

composer require orchid/fortify

Set to false auth key of config/platform.php

Within required Screen (for example, UserProfileScreen add following lines

use Orchid\Screen\Screen;
use Orchid\Fortify\TwoFactorScreenAuthenticatable;

class UserProfileScreen extends Screen
{
	use TwoFactorScreenAuthenticatable; // I guess this is where you've been stacked

    public function commandBar(): iterable
    {
        return [
		$this->twoFactorCommandBar(), // dropdown button
	];
    }

    public function layout(): iterable
    {
        return [
		// other layouts

		$this->twoFactorLayout(), // modal and methods
        ];
    }
}

Almost done, BUT it is still needs extra actions to be done to work

Fortify provides some options - one of them is to confirm Two FA or not. You may find this within config/fortify.php
'features' => [
    Features::twoFactorAuthentication([
        'confirm' => true, // confirm Two FA
        'confirmPassword' => true, // confirm password to enable Two FA
    ]),
],

confirm key requires to you to confirm TwoFA. If TwoFA keys was not confirmed you still be able to login without TwoFA.

Or you may just disable it ('confirm' => false) if you're ok with no confirmation - it is will work

You may achieve this as you wish, I will show "my way"

Create Layout for confirmation code

use Orchid\Screen\Field;
use Orchid\Screen\Fields\Input;
use Orchid\Screen\Layouts\Rows;

class ProfileTwoFALayout extends Rows
{
    protected function fields(): iterable
    {
        return [
		Input::make('code'), // key should be named `code`. That's basically required minimum
	];
    }
}

Add Layout to your Screen

class UserProfileScreen extends Screen
{
use TwoFactorScreenAuthenticatable; // I guess this is where you've been stacked

    public function commandBar(): iterable
    {
        return [
		$this->twoFactorCommandBar(), // dropdown button
	];
    }

    public function layout(): iterable
    {
        return [
            Layout::block(ProfileTwoFALayout::class)
                ->title(__('Confirm Two FA'))
		->canSee(
                    auth()->user()->two_factor_secret && // show if authorized user has enabled Two FA
                    !auth()->user()->two_factor_confirmed_at // but still doesn't confirmed it
                )
                ->commands(
                    Button::make(__('Confirm'))
                        ->type(Color::PRIMARY())
                        ->icon('check')
                        ->action(route('two-factor.confirm')) // this route provided by Fortify and should not be changed
                ),

		// other layouts

		$this->twoFactorLayout(), // modal and methods
        ];
    }
}

As you can see I implemented canSee() method to show this layout by specific condition. As I am using it only for user profile screen, I can use auth()->user() with no fear. You app may require other logic to handle

After hitting confirm you will be redirect back, and in your database you will see all three columns two_factor_secret, two_factor_recovery_code and two_factor_confirmed_at filled with information.
And that's it

@czernika Amazing... thank you very much... i will try it today. 👍

@czernika Works perfect. Thx for your help 👍

I guess this should be added to README.md
I have followed the procedure above, filling some more information:

Install Laravel Fortify package

composer require laravel/fortify

Publish its resources

php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"

Run migrations to add two_fa columns

php artisan migrate

Add FortifyServiceProvider into providers array within config/app.php

Add App\Providers\FortifyServiceProvider::class to providers
    'providers' => ServiceProvider::defaultProviders()->merge([
        /*
         * Package Service Providers...
         */

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        App\Providers\FortifyServiceProvider::class,
    ])->toArray(),

Add TwoFactorAuthenticatable trait to User model app\Models\User.php

use Laravel\Fortify\TwoFactorAuthenticatable;

class User extends Authenticatable
{
    use TwoFactorAuthenticatable;
}

Install Orchid Fortify

composer require orchid/fortify

Set to false the auth key of config/platform.php

Within required Screen - for example UserProfileScreen (app\Orchid\Screens\User\UserProfileScreen.php) add following lines

use Orchid\Screen\Screen;
use Orchid\Fortify\TwoFactorScreenAuthenticatable;

class UserProfileScreen extends Screen
{
	use TwoFactorScreenAuthenticatable; // I guess this is where you've been stacked

    public function commandBar(): iterable
    {
        return [
		$this->twoFactorCommandBar(), // dropdown button
	];
    }

    public function layout(): iterable
    {
        return [
		// other layouts

		$this->twoFactorLayout(), // modal and methods
        ];
    }
}

Almost done, BUT it is still needs extra actions to be done to work

Fortify provides some options - one of them is to confirm Two FA or not. You may find this within config/fortify.php
'features' => [
    Features::twoFactorAuthentication([
        'confirm' => true, // confirm Two FA
        'confirmPassword' => true, // confirm password to enable Two FA
    ]),
],

confirm key requires to you to confirm TwoFA. If TwoFA keys was not confirmed you still be able to login without TwoFA.

Or you may just disable it ('confirm' => false) if you're ok with no confirmation - it is will work

You may achieve this as you wish, I will show "my way"
Create Layout for confirmation code in new file app\Orchid\Screens\User\ProfileTwoFALayout.php
<?php

declare(strict_types=1);

namespace App\Orchid\Screens\User;

use Orchid\Screen\Field;
use Orchid\Screen\Fields\Input;
use Orchid\Screen\Layouts\Rows;

class ProfileTwoFALayout extends Rows
{
    protected function fields(): iterable
    {
        return [
			Input::make('code'), // key should be named `code`. That's basically required minimum
		];
    }
}

Add Layout to your Screen in app\Orchid\Screens\User\UserProfileScreen.php
class UserProfileScreen extends Screen
{
use TwoFactorScreenAuthenticatable; // I guess this is where you've been stacked

    public function commandBar(): iterable
    {
        return [
		$this->twoFactorCommandBar(), // dropdown button
	];
    }

    public function layout(): iterable
    {
        return [
            Layout::block(ProfileTwoFALayout::class)
                ->title(__('Confirm Two FA'))
		->canSee(
                    auth()->user()->two_factor_secret && // show if authorized user has enabled Two FA
                    !auth()->user()->two_factor_confirmed_at // but still doesn't confirmed it
                )
                ->commands(
                    Button::make(__('Confirm'))
                        ->type(Color::PRIMARY())
                        ->icon('check')
                        ->action(route('two-factor.confirm')) // this route provided by Fortify and should not be changed
                ),

		// other layouts

		$this->twoFactorLayout(), // modal and methods
        ];
    }
}

As you can see I implemented canSee() method to show this layout by specific condition.
As I am using it only for user profile screen, I can use auth()->user() with no fear. You app may require other logic to handle
After hitting confirm you will be redirect back, and in your database you will see all three columns two_factor_secret, two_factor_recovery_code and two_factor_confirmed_at filled with information.
PROBLEM: OK, I can add 2FA to the user that has at least main privilege to access admin panel to reach his User Profile Screen and I can see all three fields in the database populated, and confirm button is no longer visible in User Profile Screen, but I am not asked for 2FA on login?! What am I missing?


Typo in cursor pagination profile

Nice find! LGTM :)

Oh, hah, you work for https://decorrespondent.nl/ — awesome :) I've been a subscriber for years.
I see you're building https://github.com/lode/jsonapi, your own PHP-based JSON:API implementation. Why build and maintain your own? It looks like you started working on it a long time ago, so probably that's why: few implementations existed back then.

Thanks!

I build it because I love the idea of JSON:API and because I had a feeling an implementation could be simple to use without knowing the spec, which most others didn't do back then. Further it is just fun to make stuff right? :)
Btw, great you're a member of DC!


TC: Ansible Inventory Script

Write a script to gather host information from Traffic Ops. This host list will be used to deploy Ansible Playbooks.

Do you have anything started on this? We do have something in both Perl and something Python started.
Adding @hbeatty

@smalenfant I have started to write it in Go but we are still working out some of the organizational details.  I'll let you know when I have it at a point where you can test it and let me know your feedback if you like

@jheitz200 You don't want to use what we already have?

@hbeatty I would love to take a look at it

@jheitz200 OK. I'll clean it up and get it posted. Should have something for you to look at tomorrow morning.

@jheitz200 Steve and I wrote a traffic-control-python package and I put the dynamic inventory in there. https://github.com/hbeatty/traffic-control-python/blob/HB-dynamic-inventory/docs/examples/traffic-ops.py. traffic-control-python requires python-requests (yum install -y python-requests). Once you've cloned the repo you can copy the traffic-ops.py to the root of the repo to test. You'll also need to update the url and token on line 62.
We are going to move the token and url out of there but, haven't gotten that far yet.
Let me know if you have any questions.


add susan0911's file

the pull request adds susan0911's file to the _posts folder

done

done

kk


Locked Out

Both 'Defender for Identity' and 'Azure AD Identity Protection' appears to be Locked Out on my https://security.microsoft.com/ . How do I unlock this feature or the underlying account ?

Hi @npai20, this may be an issue with licensing or permissions.
Please check with your admin or open a support ticket to handle your specific use case. The support team can help us update the docs if there's anything missing or unclear.
I'm closing this in the meantime, but feel free to add more comments if you have feedback on the documentation.
#please-close


Autorest Regen Preview to 3.0.0-alpha.20231107.3 by Jorge Rangel from refs/pull/3891/head

Triggered from https://github.com/Azure/autorest.csharp/pull/3891

API change check
API changes are not detected in this pull request.


Handle generic properties and classes

This has a large scope. SerialDescriptors are not at all generic. It is probably impossible to get this information from KSX.

Generic fieldsclass WrapperClass(
  val type: List<String>
)

Generic classesclass WrapperClass<T>(
  val type: T
)

Generic constraintsinterface MyInterface
class WrapperClass<T: MyInterface>(
  val type: T
)

Inheritance plus genericsinterface MyInterface<T>
class WrapperClass<T>(
  val type: T
) : MyInterface<T>

Wildcardsclass SomeClass(
  val type: List<*>
)

I suspect this will be far too difficult to implement in a nice way. SerialDescriptors don't have any clear 'generic type' information, or if they do then it's very difficult to determine what TypeScript should be produced.
It might be possible with reflection, and clever use of a SerializersModule?
For now, generics are implemented as 'best effort', but I think they should safely fall back to any.
TODO document generics limitations #19

Generic types are very important, and this limitation of Kotlinx.serialization makes me think it should be thrown out of the window and replaced with a KSP processor.

Hi @natanfudge, thanks for the comment.
Would you be able to provide a specific use case where you need generics? What Kotlin class do you need to use? What Typescript code do you want to be generated? What does kxs-ts-gen currently generate? Are there any workarounds? It would help inform any decisions.
I've always found that it's best to avoid using open-polymorphism with Kotlinx Serialization completely, and that refactoring to use closed-polymorphism will be more work, but it is much more robust and leads to better Typescript.
This library does get used, I can see ~500 downloads last month for the JVM artifact, so it's very much alive and I'm open to evolving it, although I have less time as of late.

data class SearchResult<T> {
    val items: List<T>
    val page: Int
}

Generates
interface SearchResult<T> {
    items: T[]
    page: number
}

Used like
fun getDogs(query: String) : SearchResult<Dogs>

As an API endpoint for example


Arrow Keys still work while option is disabled and focus is on .tns-controls

Issue description:  The arrow keys still work while focus is on the .tns-controls element, visible in the demo pages.
Furthermore the up/down arrow keys change the slides in horizontal sliders and they also scroll the screen up/down which seems like very confusing behaviour.
Demo link/slider setting:   http://ganlanyuan.github.io/tiny-slider/tests/index.html
Tiny-slider version:   2.8.6
Browser name && version:  Chrome v69.0.3497.92
OS name && version:   macOS High Sierra Version 10.13.6

The arrow keys still work while focus is on the .tns-controls element, visible in the demo pages.

This is for accessibility and is expected.

Furthermore the up/down arrow keys change the slides in horizontal sliders and they also scroll the screen up/down which seems like very confusing behaviour.

I will add an additional key to prevent the scrolling of page.

This is for accessibility and is expected.

Since it is for accessibility an update to the readme would be nice to avoid future confusion :)

Readme updated


Update some hooks and adds needed dependency

As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

/approve
/lgtm


400 Bad Request

I am getting a 400 status code back and the following is in the payload from Fiddler.

Any idea on what I am doing wrong?  The authentication piece seems to be working fine.

Same issue here. are we doing anything wrong?


soundfile 0.11.0 fails to open WAV files from Perseus SDR software

I could open the file with version 0.10.3.post1. In function _open(), line 1212, _snd.sf_error(file_ptr) returns error 24.
Here is an example as small as I could get it:
sample_000.zip
Best regards,
Reinhard

As far as I can tell, you are experiencing this issue: https://github.com/libsndfile/libsndfile/commit/53e7dee23435f16671e00a22ab1277624bae6f8e
You can probably work around this issue by using a version of libsndfile prior to 0.1.1, or wait for their next release.

That's right, this is certainly the issue I see.
Thanks a lot!
Reinhard


Fix case of MIME-Version header field name

This changes the header field name Mime-Version to MIME-Version.
While an incorrect case here might not cause any trouble since header field names should be treated case-insensitively, the actual correct spelling of this header field is MIME-Version (see RFC 2045).
More importantly I noticed that spam filters such as Rspamd penalize emails with an incorrect case for header fields like this, see the screenshot below.

Thanks, merged this in https://github.com/mikel/mail/pull/1503 - I didn't see this PR :(


Auto placeholder creates slightly-confusing UX

Thanks for everything you've done with this library.
I'm sure it'll save be dozens of hours.
Slight issue:
The auto placeholder provides the following (for example):

So as an end-user, the first thing I think is "Oh, I guess I put in my area code, and constrain them with braces". Braces being ( and )
However the input doesn't allow me to do so.
Is there an option to allow (, ) and - characters so that the placeholder makes a bit more sense?

Yer this is a good point. Unfortunately we cannot just allow the user to enter those chars because all of our formatting is automatically done using libphonenumber and they say that north american numbers with <8 digits should be formatted as "555-5555", so when you start typing a north american number, it auto formats it like that - with no leading (.
Normally if the user tries to enter a non-numeric char when the next char in the number should be a formatting char, then it will automatically add that formatting char for them. But in this case, libphonenumber thinks the next char is not a formatting char, it is a digit. If we could find a way to tell libphonenumber to disable this short (7 digit) formatting, and always just assume that north american numbers will be the full (10 digit) length, then it would work. There may well be a way to do this, but I don't have time to look into it. That said, I welcome pull requests!

Gotcha makes sense. Is it possible to change the placeholder for north american numbers, such that it shows it at<PHONE_NUMBER>?
That might get around the slight UX confusion

Well we also use libphonenumber to generate example numbers for each country, so again the issue is with them.
FYI as a hacky workaround, you can hardcode the placeholder yourself to whatever you want by setting the placeholder attribute on the input element in the HTML, but then it will always be that - it wont update for each country.
As for a real solution, I think that the current placeholder value is the standard way to format north american numbers, so that's not the problem. I think the solution to this is to figure out how to get the AsYouTypeFormatter to always format to the full 10 digit number - if there isn't already an option to do this, then you could open an issue with them on the libphonenumber github.

Okay thanks for looking at this @jackocnr. I'll likely use a Geo to see if they're in the US, and if that's the case, switch the placeholder. That should get me to where I want to be (for now..)
All the best!


Image not being rendered in the 'JeelizFacefilterFollow' div in Safari.

The comedyglasses.js doesnt render the comedyglasses.png image in Safari. It is working perfectly in Chrome and firefox, but when run through Safari, the image doesn't display in the corresponding div even though when inspected, the div is being found and fluctuates wrt the head movements..I have taken the code from https://github.com/ikebastuz/jeelizTest ,...

You are using a deprecated version of Jeeliz faceFilter. Please try with the version of comedy glasses included in this Github repo, and if the problem persists, provide more information (Safari version, console logs, screenshots) so that I can figure out what happens.

You are using a deprecated version of Jeeliz faceFilter. Please try with the version of comedy glasses included in this Github repo:

Live demo: https://jeeliz.com/demos/faceFilter/demos/CSS3D/comedy-glasses/
Source: https://github.com/jeeliz/jeelizFaceFilter/tree/master/demos/CSS3D/comedy-glasses

If the problem persists, provide more information (Safari version, console logs, screenshots) so that I can figure out what happens.

I wanted the React demo of the same using create-react-app...Without the need of any servers...How can I get the same comedy-glasses demo in react?Is it possible?The deprecated version is actually in react form

I am not here to teach you react

Hi @xavierjs
I tested the comedy-glasses Live demo on Safari, Version 15.0 (166<IP_ADDRESS>.4, 16612). Video stays black (on Chrome it's working perfect)
No Console outs - except "INFO: JEELIZFACEFILTER IS READY"
The Comedy-Glasses picture on the upper left corner is disappearing after everything is loaded. Camera is showing that something accesses it (camera-on "light")

Hi,

Hi
Do other demos work? Like this one: https://jeeliz.com/demos/faceFilter/demos/canvas2D/faceTrack/
This issue looks like a duplicate of this one: https://github.com/jeeliz/jeelizFaceFilter/issues/253
It was an issue with Safari 15.0, video could not be transferred to a WebGL Texture (it just makes a black texture without any error or warning). It was solved in Safari 15.1

faceTrack looks the same - doesn't work too.
I downloaded Safari Tech Preview Release 137 (Safari 15.4, WebKit 166<IP_ADDRESS>) - which stays black too.
Unfortunately I can't download Safari Betas since I'm not an Apple Developer.
I hope that Safari 15.1 will released soon and that bug is fixed and stays fixed ;)


void methods should not have a  documentation

Methods that have void as return value do not need to have any <returns> documentation.

Covered by StyleCop Analyzers rule SA1617:
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1617.md


⚠ ClamAV has degraded performance

In b52df01, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: ClamAV performance has improved in 0f63629.


Php router alpha

Cleaned-up usage of PHP router which should help other projects that include Timber via composer. This will also resolve #409

:sunglasses:


Linux Installation - Directory name (Minor)

Minor change in README in the installation section
The linux installation: directory name was changed from about-code-tool to attributecode. Unzipped structure defaults to attributecode-2.3.2 instead of about-code-tool-2.3.2 #

Good catch! Thanks!


Add some warnings about rechunking to the docs

This adds some warnings at the right places when rechunking a dataset opened with open_mfdataset (see https://github.com/pangeo-data/rechunker/issues/100#issuecomment-1116189019 for context)
Thanks to @dcherian for the wisdom of the day!

Thanks @fmaussion !

I've edited a few more sentences, to me this is ready to merge!
I've been struggling with groupby a good deal of my week and I added a warning regarding groupby as well. Feel free to disagree, but I've been unable to get it to work on a large datasets across multiple files yet (see pangeo discourse post).

Thanks as ever @fmaussion !


Subscription Add-on pricing options!!!

I have an app i'm developing on my own and I wish to use the subscription add-on from microsoft store, but my doubt is about the pricing, I understand that once I chose a base price it cant be changed later, and that scenario is something i dont like, you see every year inflation grows, i would love to increase the subscription price year by year, if its needed.
So what suggestions do you have to face this kind of scenario??
is it possible to cancel a subscription add-on a publish a new one with a new price, of course the costumer will be force to acquire the new subscription with an increased price. (this way for the canceled subscriptions renewal would be impossible).
Can somebody answer this or give me advise about this scenario please!

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

ID: b661c3cb-9bb9-6a8d-ce97-fe661d3a1c76
Version Independent ID: 147e7e9b-2670-86bb-1d23-f76a64fb9bfd
Content: Enable subscription add-ons for your app - Windows UWP applications
Content Source: windows-apps-src/monetize/enable-subscription-add-ons-for-your-app.md
Product: uwp
GitHub Login: @Xansky
Microsoft Alias: mhopkins

@Quico20 did you ever find the answer to your question? I have exactly the same requirement but I'm not sure how to implement it. Thanks for sharing if you know!

No, man, I didnt get an official answer from Microsoft, because by the time I made the question I hadn't test the store framework yet, just read of it.
Now i'm about to publish and since you can make the subscription unavailable (you can't delete them), at Microsoft Partner Center (add-on section of your application), so my strategy will be to notify my customers when i'm planning to increase the prices by push notifications with Azure Notifications Hub and social networks such as twitter, facebook and youtube, and since I'll be somehow cancelling their subscription, I'll offer the new subscription with a free month, everytime I need to increase the subscriptions, you see you can publish as many subscription as you want with the option to offer a free week trail or a free month trail, that way I'll avoid bothering my customer with subscriptions cancelations since theirs wont be available once I publish a mandatory update of my app.
Of course you gotta make that update mandatory, but fortunately the tools and options are available at Microsoft Partner Center.
That's what i'm doing as a workaround.
Hope this answer satisfy you!!!

Thanks for the detailed response. The procedure for switching users over to the new subscription is what I'm most worried about messing up. I had hoped it would work like the following but now I'm not so sure:

New subscription add-on released. Customers subscribe and start paying. Yay!
Later you decide to raise the price of new subscriptions.
You create a new subscription add-on with a higher price while simultaneously making the old lower-priced subscription unavailable.
Existing customers of the old subscription are allowed to keep using it until their original renewal date but then it simply doesn't renew because the add-on is now disabled.
You offer the customer the new higher-priced subscription option and they make the in-app purchase. Yay!

From what you said, it sounds like item 4 won't happen the way I wrote it. Are you sure that when you make a subscription add-on unavailable that it immediately cancels it for any customers that have it? Does the store make a pro-rated refund of their remaining subscription balance? I wish the documentation made this clear but it doesn't unfortunately. I'm afraid of messing this up and either alienating customers or leaving money on the table.
The other thing I didn't realize was that you could use a mandatory update to eliminate a subscription. Are you sure? Partner Center associates add-ons with the app, not with individual app submissions. That makes it seem like subscription add-ons are independent of app submissions and their lifetime can span many app submissions.

well I think that scenario that you are describing can be achieve after all.
you see at the add-on subcription section when you open a submission there is a section named Pricing and Availability.
there you can schedule the release date and also you can schedule to stop acquisition, that way you can modify your app to collect only the new subscription for your customers of couse they will have to make the buy of the new and higher subscription manually, and I think after the date of stop acquisition the old subscription wont be collected anymore, this option wasnt a couple months ago. so I havent test it yet.
but I think it will fit your needs and mine as well.
I suggest to explore it and make test yourself to make sure it works as I described you.
Also the documentation links at microsoft partner center about schedule in the pricing and availability doesn't mention anything about stop acquisition I think they guess its self-explanatory.

I'm adding a screenshot of my premium subscription add-on the section where stop acquisition can be found.
I think it will meet your needs and also I'll copy you business strategy. I had another one which will cost me money lol!!!
I'll leave you for now I'll go to sleep, here is 150am and tody i gotta work early c ya pal!!!

Thanks @Quico20!

if you happens to test it before me, please let me know the behavior through this thread please.
it will also be of great help to me!!! Its the first time I'll publish an app on my own.
wish you the best in your business strategy @AdamSzofran


Low-EFFTIME fibers near the edge of petal 1 from 20220326

4 tiles (TILEIDs 8808, 11015, 11046, 11542) from 20220326 have fibers near the edge of petal 1 with low EFFTIME:
https://data.desi.lbl.gov/desi/spectro/redux/daily/tiles/cumulative/8808/20220326/tile-qa-8808-thru20220326.png
https://data.desi.lbl.gov/desi/spectro/redux/daily/tiles/cumulative/11015/20220326/tile-qa-11015-thru20220326.png
https://data.desi.lbl.gov/desi/spectro/redux/daily/tiles/cumulative/11046/20220326/tile-qa-11046-thru20220326.png
https://data.desi.lbl.gov/desi/spectro/redux/daily/tiles/cumulative/11542/20220326/tile-qa-11542-thru20220326.png
These tiles are marked as unsure in the QA.
Discussions of this issue on slack:
https://desisurvey.slack.com/archives/C01HNN87Y7J/p1648414581954449

I went ahead and marked these all as good following discussion on the survey-ops call.  These are cases where EFFTIME/GOALTIME ~ 0.85, so fibers which usually have lower-than-average EFFTIME (e.g., due to higher read noise on some contributing amps, or fiber throughput, or ...) tend to be clipped.


Design schema to represent data processing and its outputs

The existing schema that has been used for the processes and outputs of the processing pipelines (essentially, everything in the graph from fastqs to matrices) is insufficient and inconsistent with the rest of the schema.
Especially important to update this and tighten it given the inclusion of metadata coming in from contributor processing.
I don't anticipate entities/linking changing, but the properties of each entity will be overhauled.

@jahilton nudge me to get some prep work going on this as soon as you have a draft 🎏

I'm happy to pitch in here in concepts, and on importance based tiering of
fields.
There will also be questions about multi modal integration -- if we have
DNA accessibility and RNA expression data, must those two have partially
shared schema to align? An interesting research topic.
On Fri, Feb 14, 2020, 6:58 PM Matt Weiden<EMAIL_ADDRESS>wrote:

@jahilton https://github.com/jahilton nudge me to get some prep work
going on this as soon as you have a draft 🎏
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/HumanCellAtlas/dcp-prototype/issues/96?email_source=notifications&email_token=ABH7C4DEA53CFHU3TGA2WYDRC4V23A5CNFSM4KVLOTAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL22SGQ#issuecomment-586524954,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABH7C4C5P2C4XBUHRIDLQCDRC4V23ANCNFSM4KVLOTAA
.


Moving test_time.robot to the skip list

Moving test_time.robot to the skip list as it is in org.

https://gerrit.openbmc-project.xyz/#/c/6252/

Test case are moved to skip list as the test is in org.


Feature: Support defining bot account

Use case:

Log in with Bot account
Activate as Bot account
Manage channel whitelist
Log in with normal User
Select Bot account available for channel

MVP version is in !


renderInput() method never used

renderInput() method never used
or i'm mistaken?

You are right, probably I missed it during a refactor, thanks!


Unique Issue; Installer Wont Open.

The latest version of the betterdiscord installer and even old versions simply do not open for me. Here is a screenshot

This repo is deprecated. New one is in #info
And go to #support and look in the pins for your solution. It's in there

The latest version of the betterdiscord installer and even old versions simply do not open for me. Here is a screenshot

This repo is deprecated. New one is in #info
And go to #support and look in the pins for your solution. It's in there


why my vscode will auto change background color

Please use the Start Extension Bisect command to investigate whether the problem is being caused by one of your extensions


Moving emails in google (continuation of #68)

Dan. I raised an issue last month and you apparently fixed it really quickly (thanks). Unfortunately i still have a problem - don't know if I didn't test it properly but that is probably the case. You did some stuff to enable creating folders (aka labels) in google mail then to move an email using
var uniqueId = await mailFolderClient.MoveToAsync(messageSummary, destinationFolderFullName,
This works when i first start the monitor - all emails currently sitting in the inbox are delivered to the monitor, stored locally then moved to the Processed folder on GoogleMail. But when a new email arrives in the inbox this does not happen - the above code returns null rather than a uniqueId. My monitor code looks like the following (have taken out the stuff related to my processing of the emails)
using MailKit;
using MailKitSimplified.Receiver.Abstractions;
using MailKitSimplified.Receiver.Extensions;
using MimeKit;
namespace Caa.Api.Email;
public class MailMonitor : BackgroundService
{
private const string processedFolder = "Processed";
private readonly IImapReceiver imapReceiver;
private readonly IServiceScope serviceScope;
private readonly ILogger<MailMonitor> logger;

public MailMonitor(IServiceScopeFactory serviceScopeFactory, ILoggerFactory loggerFactory)
{
    serviceScope = serviceScopeFactory.CreateScope();
    imapReceiver = serviceScope.ServiceProvider.GetRequiredService<IImapReceiver>();
    logger = loggerFactory.CreateLogger<MailMonitor>();
}

protected override async Task ExecuteAsync(CancellationToken ct = default)
{
    logger.LogInformation("MailMonitor starting ..");
    var destination = await imapReceiver.MailFolderClient
        .GetOrCreateFolderAsync(processedFolder, ct);
    if (destination is null)
        throw new Exception("Could not create Processed mail folder");
    await MonitorAsync(ct);
}

private async Task MonitorAsync(CancellationToken ct = default)
{
    await imapReceiver.MonitorFolder
        .SetMessageSummaryItems(MessageSummaryItems.Envelope)
        .OnMessageArrival((m) => Incoming(m, ct))
        .OnMessageDeparture((m) => Departing(m))
        .IdleAsync(ct);
}

private async Task Incoming(IMessageSummary summary, CancellationToken ct)
{
    logger.LogDebug("Incoming {s}", summary.Envelope.Subject);

    // Store and process the MimeMessage locally

    // Move to processed folder on server
    var uniqueId = await imapReceiver.MailFolderClient
        .MoveToAsync(summary, processedFolder, ct);
    // this is loggin null after the initial emails in the inbox at startup have been moved
    // i.e. when new emails arrive
    logger.LogDebug("After arrival move return uniqueId: {U}", uniqueId?.ToString() ?? "null");
}

private void Departing(IMessageSummary m)
{
    logger.LogInformation("Departing {s}", m.Envelope.Subject);
}

public override void Dispose()
{
    logger.LogInformation("MailMonitor ending ..");
    serviceScope.Dispose();
    base.Dispose();
}

}

The logging at startup looks like

2024-07-30 11:38:13.3175 [DEBUG] Caa.Api.Email.MailMonitor: Incoming testing 1 2 3
2024-07-30 11:39:12.0670 [DEBUG] Caa.Api.Email.MailMonitor: After arrival move return uniqueId: 37
2024-07-30 11:39:24.0752 [ INFO] Caa.Api.Email.MailMonitor: Departing testing 1 2 3

and later when a new email arrives

2024-07-30 11:41:13.3175 [DEBUG] Caa.Api.Email.MailMonitor: Incoming testing 0 1 2
2024-07-30 11:41:12.0670 [DEBUG] Caa.Api.Email.MailMonitor: After arrival move return uniqueId: null

Also i sometimes get an exception after the email has arrived
2024-07-30 12:08:13.6878 [ INFO] MailKitSimplified.Receive: IMAP protocol exception, checking connection. MailKit.Net.Imap.ImapProtocolException: The IMAP server has unexpectedly disconnected.
   at MailKit.Net.Imap.ImapStream.ReadAheadAsync(Int32 atleast, CancellationToken cancellationToken)
   at MailKit.Net.Imap.ImapStream.ReadTokenAsync(String specials, CancellationToken cancellationToken)
   at MailKit.Net.Imap.ImapCommand.StepAsync()
   at MailKit.Net.Imap.ImapEngine.IterateAsync()
   at MailKit.Net.Imap.ImapEngine.RunAsync(ImapCommand ic)
   at MailKit.Net.Imap.ImapClient.NoOpAsync(CancellationToken cancellationToken)
   at MailKitSimplified.Receiver.Services.MailFolderMonitor.ProcessMessagesArrivedAsync(Boolean firstConnection, CancellationToken cancellationToken)
   at MailKitSimplified.Receiver.Services.MailFolderMonitor.WaitForNewMessagesAsync(CancellationToken cancellationToken)

It does not seem to recover, ie stops receiving emails at that point.

Actually weirder than that. It does seem to have reconnected but it is not calling my Incoming method. So just seeing
2024-07-30 13:38:49.6063 [DEBUG] MailKitSimplified.Receive: imap.gmail.com<EMAIL_ADDRESS>INBOX message #42 arrived.

but nothing else?

I've fixed a bug where the source folder was null which might have caused the issues you found, try the latest pre-release.

Ok thanks will try tomorrow morning.

I upgraded to 2.11.5-tags-v2-11-5-rc0001 which I think is the latest version. I'm afraid it made no difference. I have followed the code through and we get to the following line in MailFolderClient.MoveOrCopyAsync (line 397)
resultUid = await source.MoveToAsync(messageUid, destination, cancellationToken).ConfigureAwait(false);
At this point destination is pointing to the right folder (Processed) but it is not open. Then we get into the MailKit stuff which I'm afraid i do not understand. It goes to another MoveToAsync which just converts the messageUid to an array. then it does a bunch of checks and eventually we get to IMapFolder line 5723
			UniqueIdSet dest = null;
			UniqueIdSet src = null;

			foreach (var ic in Engine.QueueCommands (cancellationToken, this, "UID MOVE %s %F\r\n", uids, destination)) {
				await Engine.RunAsync (ic).ConfigureAwait (false);

				ProcessMoveToResponse (ic, destination, ref src, ref dest);
			}

			if (dest == null)
				return UniqueIdMap.Empty;

after the loop dest is null. So the mail has not been moved. When i run through the code at start up - ie when the move is working, I see the destination folder is not open then either - in fact I cannot see at all what the difference is between the 2 cases ....

Good work on the investigation, but I don't think you're debugging with the latest version if it stopping at MailFolderClient.MoveOrCopyAsync on line 397. Here's the line your code should be going through:
https://github.com/danzuep/MailKitSimplified/blob/main/source/MailKitSimplified.Receiver/Services/MailFolderClient.cs#L418

That is the latest. Not sure why line 397 doesn't match what's on here though.

Ok I realised I am looking at the code in my IDE which has been decompiled and looks somewhat different to the source code. So the line I referenced above where it went off into MailKit code is actually line 318 in your source code ... sorry for the confusion.

So it's still not working then? I've tested it on Gmail and it was working for me.

I looked at your profile and it seems you are based in HK. Do you ever sleep? anyway thanks for your continued help on this, I will look at your test tomorrow I have probably done something simple wrong ... us old people do need a bit of down time!

Ok I updated to the latest copy of your code. I tried to bring my mail monitor in line with your code in MonitorMoveAsync.

I created the DestinationFolder in ExecuteAsync (using your new method with the createNotFound flag)
DestinationFolder = await mailFolderClient.GetFolderAsync(Processed, true, ct);
DesitnationFolder now being a property of MailMonitor
I also added mailFolderClient from the service scope
mailFolderClient = serviceScope.ServiceProvider.GetRequiredService<IMailFolderClient>();
I had to do this as at step 3 imapReceiver.MailFolderClient.MoveToAsync() is giving me a folder not open exception
Then when the email arrives I move using the DestinationFolder

            .MoveToAsync(summary.UniqueId, DestinationFolder, ct);```

The end result is
1. if I process the message in the inbox they all get moved, then all subsequent ones which arrive do not get moved.
2. if I set the ignore existing messages, the first message I send does get moved, but not subsequent ones.
3. to reproduce your test I tried as step 2 (ignoring existing messages) but send 2 emails in v quick succession (as in your test) then they both get moved - but subsequent ones do not.

Difficult to get my head round this!

I was considering just moving to the gmail api for processing these incoming mails. Have you ever tried that, do you have any advice?

I was also thinking of a) polling every few minuted=s and processing the emails, or b) deleting them after receiving rather than trying to move them. the move was intended as a belt and braces while we get everything up and running in case we decide we need to go and look at the original emails for some reason. but obviously the first approach would be preferable ...

Thanks for testing that, I should be able to get it to fail on my end too now so I can investigate it. In the meantime, have you tried copying before deleting? An even simpler workaround for an unmonitored mailbox would be to just label it as read, or if it is monitored you could use flags. I'll see if I can figure out what's going on here too though as I used to use it when I had a client who wanted it.

I was caching the source mail folder, but now that I've stopped doing that the issue you found appears to be resolved. Please close this thread if that's the case.

Ok we have to take grandchildren out for the day today but I will retest first thing tomorrow (Wednesday).

I've fixed the folder issue with messageSummary, so this is now safe to use:
var uniqueId = await mailFolderClient.MoveToAsync(messageSummary, destinationFolder, cancellationToken);

I pulled your latest version. All appeared fine in testing this morning - it processed a couple of emails sitting in the inbox, then  a few more i sent over the next 10 mintes. However when I sent another email almost 3 hours later I got the exception seen below. I have included the last successful read and move at 11:53
2024-08-07 11:53:21.5670 [DEBUG] Caa.Api.Email.MailMonitor: Incoming testing 4
2024-08-07 11:53:21.9330 [DEBUG] Caa.Api.Email.MailMonitor: After arrival move return uniqueId: 62
2024-08-07 11:53:26.6315 [ INFO] MailKitSimplified.Receive: imap.gmail.com<EMAIL_ADDRESS>INBOX message #68 departure processed.
2024-08-07 14:43:47.8126 [ INFO] MailKitSimplified.Receive: IMAP protocol exception, checking connection. MailKit.Net.Imap.ImapProtocolException: The IMAP server has unexpectedly disconnected.
   at MailKit.Net.Imap.ImapStream.ReadAheadAsync(Int32 atleast, CancellationToken cancellationToken)
   at MailKit.Net.Imap.ImapStream.ReadTokenAsync(String specials, CancellationToken cancellationToken)
   at MailKit.Net.Imap.ImapCommand.StepAsync()
   at MailKit.Net.Imap.ImapEngine.IterateAsync()
   at MailKit.Net.Imap.ImapEngine.RunAsync(ImapCommand ic)
   at MailKit.Net.Imap.ImapClient.NoOpAsync(CancellationToken cancellationToken)
   at MailKitSimplified.Receiver.Services.MailFolderMonitor.ProcessMessagesArrivedAsync(Boolean firstConnection, CancellationToken cancellationToken)
   at MailKitSimplified.Receiver.Services.MailFolderMonitor.WaitForNewMessagesAsync(CancellationToken cancellationToken)
2024-08-07 14:43:48.4505 [DEBUG] MailKitSimplified.Receive: imap.gmail.com<EMAIL_ADDRESS>INBOX message #69 arrived.
2024-08-07 14:43:48.4928 [DEBUG] Caa.Api.Email.MailMonitor: Incoming test 5
2024-08-07 14:43:48.6119 [ERROR] MailKitSimplified.Receive: Error occurred processing arrival queue item. imap.gmail.com<EMAIL_ADDRESS>INBOX #69. MailKit.ServiceNotConnectedException: The ImapClient is not connected.
   at MailKit.Net.Imap.ImapFolder.CheckState(Boolean open, Boolean rw)
   at MailKit.Net.Imap.ImapFolder.GetEnumerator()+MoveNext()
   at Microsoft.Extensions.Logging.LogValuesFormatter.TryFormatArgumentIfNullOrEnumerable[T](T value, Object& stringValue)
   at Microsoft.Extensions.Logging.LogValuesFormatter.Format(Object[] values)
   at NLog.Extensions.Logging.NLogLogger.CreateLogEventInfo[TState](LogLevel nLogLogLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at NLog.Extensions.Logging.NLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
   at Microsoft.Extensions.Logging.Logger.<Log>g__LoggerLog|14_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state)

Glad to hear the emails are moving fine now, I'll close this move issue then. I've made a new issue for the disconnection after 3 hours.


Region field is missing when adding LUIS service to .bot file

When adding LUIS service to .bot file there is no region field, hence once the service is added, region field is not added to the .bot file and LUIS configuration fails when the app starts

@paragppp What version of the Emulator were you using when you encountered this issue? (You can view the version by navigating through the App Menu: Help --> About
I just tried to add a LUIS service and the region field was saved correctly to the bot file:
Before:

After:

Also, was this service added manually or did you first login to Azure and choose a Luis App from the populated list within the modal? You can add one manually by clicking the circled text.

Moving to 4.4, and will close in another day if no activity (7 days).

Hi @tonyanziano , version is 4.2.1. Also, when I click on "Add Language Understanding (LUIS)":

The dialog which comes up after clicking on "add a language app manually":

has no "Region" field as seen in your screenshot above. Am I missing anything/step?

Hence, there is no "region" in the resulting .bot file which is updated/created.

Hello @paragppp, it's entirely possible that this was a bug with adding a LUIS service in older versions of the emulator.
Please try downloading & installing one of the newer emulator releases from the nightlies repo and add your LUIS service there.
If you continue to have this issue please let me know.

Closing this as v4.3 has been confirmed to have the region field for LUIS services.
@paragppp - Please upgrade to v4.3 here. If you still see the region missing, feel free to reopen.


libnetwork to honor explicit mac-address for all drivers

Currently endpoint interface mac address is
not being set in network.go when user specified
the mac address for the container.
Similarly to IP address, MAC address is no longer
a driver specific option only. So libnetwork to parse it and set it into endpoint interface mac.
Overlay driver expects to get the user defined mac-address
from InterfaceInfo.

Fixes #753
Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

LGTM

LGTM.


Fixed docs for new api changes

Description
Fixed docs for new api changes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@nassipkali I just merged the companion PR to SDK #743 . The tests should pass now, could you just rebase with main?


Match substring in case string

Hello @caderek, very interesting library!
I've just started looking at it and I am wondering: is there a way to match a substring as a case value with multimethods if I don't have control of the string, but I still want to use a substring for a case value. I'm not really sure how this would work, but perhaps something like:
const order = multi(
  (data, foodName) => // match a food substring from a method

  // Matches foodNames with 'cheese'
  method(/cheese/i, (data) => {
    return `Ordering ${data.foodName}!`
  }),

  // Matches foodNames with 'olives'
  method(/olives/i, (data) => {
    return `Ordering ${data.foodName}!'
  }),
)

order(data, 'Blue Cheese') // 'Ordering Blue Cheese!'
order(data, 'Aged Brie Cheese') // 'Ordering Aged Brie Cheese!'
order(data, 'gourmet black olives') // 'Ordering gourmet black olives!'

Is there another/better way to achieve this?

Bump.
@caderek, I think the case object would have to be a Map for this to work. Does that make sense?

A Map's keys can be any value (including functions, objects, or any primitive).

Bump.
@caderek, I think the case object would have to be a Map for this to work. Does that make sense?

A Map's keys can be any value (including functions, objects, or any primitive).

Hey,
I just wanted to let you know that your use case inspired me to add regexp matching as a direct feature as you described:
/**
 * Function with case values as regular expressions.
 * Matched by RegExp.prototype.test() method
 *
 * @param {RegExp} pattern
 * @returns {string} type
 */
const productCategory = multi(
  method(/wine/, 'wine'),
  method(/cheese/, 'cheese'),
  method(/milk/, 'milk'),
)

productCategory('blue cheese') // -> "cheese"
productCategory('red wine') // -> "wine"
productCategory('white wine from Germany') // -> "wine"
sendMessage('breadcrumbs') // -> "bread"

Thank you!


Want to Add Sort Functionality in Search bar

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Elaborate

Hey @thestarsahil we can feature where we can sort college on basis of CTC and filter like college above this CTC I should only see something like that

Here use a only a filter option on side of search bar


Characters are overlapping on layer transition

If a characters height exceeds the tile height, it will be overlapped by another character that is one charLayer higher. That is intended behaviour in most situations, but can be unexpected in situations like stairs with a layer transition:

partially resolved with the layerOverlay feature in version 2.11.0
However, conceptually there is no clear solution to this. For more infos see: https://annoraaq.github.io/grid-engine/features/layer-overlay.html


Examples

Is your feature request related to a problem?
If applicable, provide a clear and concise description of what the problem is.
Describe the solution you'd like
It would be nice if you also can offer some working examples + code you can download
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @Jirodica thanks for your request for sample projects. What programming languages / frameworks do you use?

Jan Jaap,
We are using xcode/swift for iOS, Kotlin for Android.
Regards Rob
From: Jan Jaap de Groot @.>
Date: Monday, 15 May 2023 at 10:42
To: appt-org/appt-org @.>
Cc: Lennartz, R.E. (Rob) @.>, Mention @.>
Subject: Re: [appt-org/appt-org] Examples (Issue #4)
Hi @Jirodicahttps://github.com/Jirodica thanks for your request for sample projects. What programming languages / frameworks do you use?
—
Reply to this email directly, view it on GitHubhttps://github.com/appt-org/appt-org/issues/4#issuecomment-1547434744, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACJV3TDXTRCMKK2Y5WAPPTTXGHUAPANCNFSM6AAAAAAYBCNN2Q.
You are receiving this because you were mentioned.Message ID: @.***>

ATTENTION:
The information in this e-mail is confidential and only meant for the intended recipient. If you are not the intended recipient, don't use or disclose it in any way. Please let the sender know and delete the message immediately.

Hi Rob,
Thanks for the follow-up. I have created a ticket in our backlog with the information your provided.
For iOS/Swift and Android/Kotlin you could take a look at the Appt app and ScreenReader app:

Repository: Appt app for Android
Repository: Appt app for iOS
Repository: ScreenReader app for Android
Repository: ScreenReader app for iOS


[BugFix] Fix bug grant DML privilege miss check table in query

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #18579
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

run starrocks_admit_test

run starrocks_admit_test

@Mergifyio backport branch-3.0


HDFS Not Loading

Issue Type: Bug
Hi all,
Under my Servers, my HDFS is not loading. It looks like there is a bug because I tried restarting azure data studio, refreshing it, but it just keeps staying on loading.  I've had this before and after 10 or so restarts it suddenly started working, but this time this luck is not at my hand.
How can this be?
Many thanks,
Kind Regards,
Kaijisse Waaijer
Azure Data Studio version: azuredatastudio 1.7.0 (e1280022d69b651cfff04b30e830904575c8acda, 2019-05-08T00:55:40.928Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
63.81GB (55.68GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

sql-vnext
Mic
0.13.1

Does the expand eventually time out with an error? Given you are mentioning it sometimes works after 10 seconds, this sounds very much like a cluster issue. Suggestions:

Reach out to CSS and ask for help on how to debug the issues on the server side
Try following this guide to working with HDFS using CURL. If this is going fine, then it's more likely to be a client issue. I suspect this will help give you the feedback you need to diagnose this issue.

Closing this out, please reopen if it turns out to be a client side issue, thanks!


Doesn't work with Fedilab client

Trying to use the bridge with Fedilab, says unable to obtain token. Anything I need to do?

Duplicate of #22