docs: Extract snippets from documentation to tested files and fix invalid examples (#195)

Fixes: #195
Contentwise changes in the snippets:

removed some trailing whitespace
added an inline code highlighting
replaced deprecated action with its current version

Everything else is currently identical to the previous outcome.

I generally prefer making side changes as separate PRs, but I can take it from here and split according to what my internal purist suggests ;)

Yeah, I'm usually the same, but the deprecated class would not have compiled without a suppression, or I could have made the change first in the inline version.
I can surely split it further if you prefer.

or I could have made the change first in the inline version.

Yes, it would be cool to update the action version first (also remove any trailing whitespace you noticed), e. g. as separate commits in a single PR.
About syntax highlighting, I thought it's already enabled. Could you show an example?

I've split it to separate commits in this PR, if that's ok for you :-)

Sure!


Running eslint/test as follow-up to dirty build

#559  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CatChen and the rest of your teammates on  Graphite


Add directives to CompiledSelection / disable batching when @defer is present

This may be "over the top" just to disable batching 😅. But considering this could also be useful for other use cases, I gave it a go.
Relates to #3885
Opening as a draft, and I'll be totally 👍 with closing it if the sentiment is that it's not worth merging 😊

I'd be completely ok with this throwing an error to the user so it feels a bit overkill to grow the CompiledField class for that specific use case.
Something I'm contemplating at the moment is changing operation_document to something that's easier to parse at runtime and get the selections from that (think binary XML ala Android manifest). What we're doing at the moment is that we embed the operation document twice in the apps:

once as a string (operation_document)
once as bytecode (selections)

We're currently making the assumption that bytecode is easier to use/faster at runtime so we're trading off space for that but this is something we have never actually verified.

changing operation_document to something that's easier to parse at runtime and get the selections from that (think binary XML ala Android manifest).

I see what you mean, very interesting!
About the narrower issue of batching vs defer, I'll have a look at if we can throw a descriptive error, which I agree is enough.

Closing this for now, it was interesting to work on and gave us an idea of a possible alternative way to go, but not worth merging for now.


fix(versions): update Activiti/activiti-cloud-runtime-bundle-service versions into develop

UpdateBot pushed maven dependency: org.activiti.dependencies:activiti-dependencies to: 7.1.45

UpdateBot commands:
updatebot push-version --kind maven org.activiti.dependencies:activiti-dependencies 7.1.45 org.activiti.api:activiti-api-dependencies 7.1.31 org.activiti.core.common:activiti-core-common-dependencies 7.1.32 org.activiti.build:activiti-parent 7.1.14


Link to https://github.com/ARMmbed/mbed-cli/blob/master/README.md is broken (404)

You have broken link in your main README.rst file, i.e.

read the documentation on GitHub <https://github.com/ARMmbed/mbed-cli/blob/master/README.md>

returns 404.
This link is also mentioned on PyPi page of the library.
Please fix it and also provide actual link to the relevant documentation.

Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-610

Yes, that is not a good boarding experience to the cli.
Under this link you can find the current doc:
https://github.com/ARMmbed/mbed-cli/blob/1.8.3/README.md

Fixed in https://github.com/ARMmbed/mbed-cli/pull/950


Enable parquet output

Parquet is a more modern data snapshot file format that is more efficient, indexable, and other benefits.  Lacks some of the readability and tool-friendliness of CSV but is more defacto DS standard and easier to shuttle around.


Stugithubworkflow

dont merge

I believe https://github.com/IBM/portieris/pull/225 is in a working state now.

merged #225


transport: better tag allocation algorithm

The current tag allocation algorithm is "hope++". We need to handle collisions against outstanding requests, rollover and exhaustion.

It must also avoid NOTAG for non-Tversion requests.

From #2

This is good to know. During implementation I wasn't sure how long session lifetimes would be.

It of course differs between use cases, but I'm assuming that you're not terminating your server after a few minutes. If you only read a file per minute, then it's of course going to take a while to run around.

We are actually handling Tflush within the transport and server, automatically. Clients can cancel an operation through the context and the flush is handled automatically. There are some details that are nasty to get right for flush handling and we thought it would be better to hide these in the implementation.

Ah, okay. I noticed the context, but didn't get the... context (hahah... hah... sorry). I kept my transport "dumb" (It can send a message and return a response, and you can tell it to stop waiting for a response on a tag), and made that the responsibility of the high-level client. I haven't actually added cancellation for individual requests in the high-level client yet, as I don't know how to do it cleanly... The context is the now the status quo, and might end up being my solution, but it always left a funky taste in my mind. Never found out why, though.
Tags!
Anyway, a few things to note about the tag handling that must be considered during tag allocation:

Tversion must not use a tag, which is signified by NOTAG (0xFFFF). All other requests must bear a tag. The transport will have to type assert the message to select the tag (another reason I only supply a tag pool to the higher level client, rather than selecting things at the transport layer). Right now, you just start at 0 it seems (meaning the Tversion you send will be invalid, unless it is the 65536th message), and the last message before tags roll around is going to be invalid (unless it happened to be a Tversion). Some servers will enforce this, some will not. My own fileserver sends an Rerror if Tversion does not use NOTAG, but does not otherwise consider it magic and allows other requests to use it.
A request is not cancelled before you receive the Rflush. A server may send the response to the flushed request before responding with an Rflush. In this case, the client should handle the response despite having sent a Tflush, as it might have had consequences on some server state, including the state of your currently available fids. When cancelling the context, you would therefore have to wait for an extra roundtrip (that can time out due to broken server/network issues), and a response may still be returned after having cancelled the context, which might be a bit against how contexts are "supposed" to work.
If you send multiple Tflushes on 1 tag, they must be processed in order, and the server is only required to answer the last one if it's lazy, meaning that the client must handle the earlier Tflushes as being implicitly flushed. I suggest just not triggering this behaviour by never sending more than 1 Tflush on a tag; that was my approach to the problem, at least. (As for a server, just don't handle Tflush requests out of order.)
Don't trample on existing tags.

That's all I could think of for now.

Thanks for the description. This will really help in implementing this.
I am not sure about your interest, but do you want to take a crack at a PR? I'm not going to be able to get to this bug in a timely manner (although your feedback is going to drastically cut down on my wandering through 9p docs).

I kept my transport "dumb" (It can send a message and return a response, and you can tell it to stop waiting for a response on a tag), and made that the responsibility of the high-level client.

Indeed. The design of this package was really focused around exposing the innards of 9p without getting the full Fcall experience. At some point, I'd like to rearrange Channel, transport, the negotiation methods and even support arbitrary message types to make lower-level applications possible, in addition to replacing codecs. We just haven't needed it yet.

#15 avoids tag collisions and such.

Closed by #15.


Fixes a bug in the export command with events

Description
There was a bug in the export command when trying to export games associated with events.
Checklist

[x] Add tests for these changes
[ ] Test coverage is not decreased
[ ] Entire test suite passes

Codecov Report

Merging #136 into master will decrease coverage by 0.14%.
The diff coverage is 90.62%.

@@            Coverage Diff             @@
##           master     #136      +/-   ##
==========================================
- Coverage   97.18%   97.04%   -0.15%
==========================================
  Files          20       20
  Lines        1314     1318       +4
  Branches      217      217
==========================================
+ Hits         1277     1279       +2
- Misses         21       24       +3
+ Partials       16       15       -1

Impacted Files
Coverage Δ

src/spellbot/__init__.py
95.43% <90.00%> (-0.22%)
:arrow_down:

src/spellbot/data.py
100.00% <100.00%> (ø)

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 3743a3a...6f10a57. Read the comment docs.


Upgraded nodejs to '14.17.3' (LTS)

Pre-flight Checklist

Please remember that if you are logging a bug for some service that has stopped working or is working incorrectly, please log the bug here
If you are requesting support for a new service in Ferdi, please log it here
Please remember to read the self-help documentation - in case it helps you unblock yourself for issues related to older versions of recipes that were installed on your machine. (These will get automatically upgraded when you upgrade to the newer versions of Ferdi, but to get new recipes between Ferdi releases, this documentation is quite useful.)
Please consider supporting Ferdi!
👉  https://github.com/sponsors/getferdi
👉  https://opencollective.com/getferdi/donate
Please ensure you've completed all of the following.

[x] I have read the Contributing Guidelines for this project.
[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Description of Change
Upgrading from 14.16.1 to 14.17.3 since this is the latest LTS release for nodejs.
Motivation and Context
Moving to an LTS will mean that we get longer support. Also, this seems to bring in some os package changes that are needed.
Screenshots

Checklist

[x] My pull request is properly named
[x] The changes respect the code style of the project ($ npm run lint && npm run reformat-files && npm run manage-translations && npm run apply-branding)
[x] npm test passes
[x] I tested/previewed my changes locally

Release Notes

This clashes with #1629 - but, can be merged earlier - since it doesn't break anything due to the same major version as current existing system dependency.


chore: convert fee configuration tests to devimint tests

Part of https://github.com/fedimint/fedimint/issues/5168
Makes test_can_change_default_routing_fees and test_can_change_federation_routing_fees apart of the devimint tests.

@dpc I remember you adding support for module-specific devimint tests and it feels like this would be a good candidate for one (so we don't just put all our tests into this one file). @m1sterc001guy did you hit any problems preventing that?

If I understand correctly, this is using @dpc's module-specific devimint test framework, its just for the gateway module.
Some of the functionality might be able to be split into separate tests, but I wanted to amortize the cost of running a test, since setting up a federation takes some time.


OCD loading error

The first time I ran processcalaccessdata after pulling from master I got this error:
$ python example/manage.py processcalaccessdata
Traceback (most recent call last):
  File "example/manage.py", line 9, in <module>
    execute_from_command_line(sys.argv)
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "calaccess_processed/management/commands/processcalaccessdata.py", line 38, in handle
    self.load_ocd_models()
  File "calaccess_processed/management/commands/processcalaccessdata.py", line 127, in load_ocd_models
    Candidacy.objects.load_raw_data()
  File "calaccess_processed/models/opencivicdata/elections/candidacy.py", line 80, in load_raw_data
    classification='lower',
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/ben/.virtualenvs/django-calaccess-processed-data/local/lib/python2.7/site-packages/django/db/models/query.py", line 385, in get
    self.model._meta.object_name
calaccess_processed.models.opencivicdata.people_orgs.DoesNotExist: Organization matching query does not exist.

I wonder if


Use NYT anomalies to filter daily new cases and deaths.

Uses the NYT anomalies dataset to filter our new cases and new deaths timeseries, removing data points that NYT has flagged as anomalies.  This is in addition to our existing outlier detection but may give us some future leeway to remove outlier detection or make it less sensitive.
The net effect (given our outlier detection) is fairly small but detectable.
Compare links:

States: https://covidactnow.org/internal/compare?left=2361&locations=1&metric=5&right=2362&sort=2
Top Counties: https://covidactnow.org/internal/compare?left=2361&locations=2&metric=5&right=2362&sort=2

FWIW- It can be a bit easier to pick out the deltas if you actually open the link in two tabs, but swap left/right in one of the tabs and then you can switch back and forth between the tags to see them overlaid.

@ghop02 Not sure how much time you have for us, but any amount of review you're able / willing to give this would be appreciated since this code is a bit foreign to both Sean and I. 😁  But if you don't have time, no worries.

I can take a look today I think!
On Wed, Sep 29, 2021 at 12:38 AM Michael Lehenbauer <
@.***> wrote:

@ghop02 https://github.com/ghop02 Not sure how much time you have for
us, but any amount of review you're able / willing to give this would be
appreciated since this code is a bit foreign to both Sean and I. 😁 But
if you don't have time, no worries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/covid-projections/covid-data-model/pull/1185#issuecomment-929829494,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAK3HSARJQTWCRV26L7Q4FTUEKJ5LANCNFSM5E53PF4A
.

--
Chris Kelly
Software Engineer
@.***
Boston, MA | m:<PHONE_NUMBER>
covidactnow.org
Pronouns: he/him
Sign up for Covid Act Now's alerts http://covidactnow.org/alert_signup
for your state or county


package and publish diff layer to docker hub

It still does not have the ability of packaging and publishing diff layer to docker hub.
Have to handle absolute symlink path inside the container and create docker compatible manifest

docker hub is primarily designed for docker users, but may third private repository could be supported


Update libraries and fixed tests.

Thank you @sh0hei !
I will release new version in a few days.

anytime :)


Fix mandarin duck boats capacity

This vehicle erroneously has it's seats set to 4 when only 2 guests are visible on the boat at a time. Due to some weirdness with how the swan boats animation style (animation: 2) is handled i've switched them over to the water trikes animation (animation: 5) which lets us shave off some dummy blank images the original object had to include as a hacky workaround for the swans animation style always expecting 2 sets of guest sprites (+1 for the animation if you want to count that) in a strange order.
On old saves that still have the duck vehicles spawned, they will retain their old capacity of 4 so this doesn't affect old saves. However due to the change in animation style there's a chance that on the first initial tick the sprites will be glitched as i believe it's still technically using the swans animation style for the first tick which will result in the second animation frame using some images from outside of the object's images table. After the first tick it fixes itself as it switches to the trikes animation so it's not super noticeable but i felt like it was worth mentioning just incase.
For the capacity string i've only changed en-GB, not really sure if i should change the others as it'd probably be cleaner to change them on the localisation repo.

Hmm, are you sure it would be a good idea? There's some object string changes in the localisation repo so i'm not sure if the next localisation sync would overwrite this.

Hmm, well alright.


Cannot find email template after nuxt build

Environment

OS: macOS Sonoma 14.2.1
Node: v18.18.2
pnpm: 8.13.1

Package deps

Nuxt: 3.9.0
vue: 3.4.5
vue-email/nuxt: 0.8.7

Issue description
The vue-email/nuxt works great when I'm running pnpm dev. As soon I do pnpm build && pnpm start I see the error in console:
Error loading component node:internal/modules/cjs/loader:573
      throw e;
      ^

Error: Cannot find module '/Users/vo1/Developer/vue-email-repro-missing-component/vue-email-repro-missing-component/.output/server/node_modules/vue-email/dist/index.cjs'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
    at resolveExports (node:internal/modules/cjs/loader:567:14)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at /Users/vo1/Developer/vue-email-repro-missing-component/vue-email-repro-missing-component/.output/server/node_modules/import-string/dist/wlflv5w9v8m5WT2r6LTqd.js:36:24
    at Script.runInContext (node:vm:135:12) {
  code: 'MODULE_NOT_FOUND',
  path: '/Users/vo1/Developer/vue-email-repro-missing-component/vue-email-repro-missing-component/.output/server/node_modules/vue-email/package.json'
}
[nuxt] [request error] [unhandled] [500] Error rendering template Test: Error: Component Test not found
  at templateRender (./server/node_modules/@vue-email/compiler/dist/index.mjs:57013:11)
  at async useCompiler (./server/chunks/generate.post.mjs:27:20)
  at async ./server/chunks/generate.post.mjs:39:20
  at async Object.handler (./server/chunks/nitro/node-server.mjs:2203:19)
  at async toNodeHandle (./server/chunks/nitro/node-server.mjs:2392:7)
  at async ufetch (./server/chunks/nitro/node-server.mjs:2758:17)
  at async $fetchRaw2 (./server/chunks/nitro/node-server.mjs:2630:26)
  at async $fetch2 (./server/chunks/nitro/node-server.mjs:2672:15)
  at async setup (./server/chunks/app/server.mjs:810:19)

Minimal repo is attached for repro.
vue-email-repro-missing-component.zip

I have the same error on this stackblitz: https://stackblitz.com/edit/github-usvs6j?file=nuxt.config.ts
/api/email

@vosamoilenko please use stackblitz for code, i wont download that file, also upgrade to 0.8.8
@adrienZ it should resolve the component issue, but also i noticed that you are importing vue-email components in the test.vue file, you shouldnt do that, the components of the library are auto imported, also, you will face another issue with the baseUrl you should only use the base Url if you gonna use it for images
https://stackblitz.com/edit/github-usvs6j-5oeyxy?file=package.json,emails%2Ftest.vue,nuxt.config.ts
i updated the base url and update the img src, will open another issue related to this speciifc image issue

if you can both upgrade to 0.8.8 , clean node_modules and lock files please
@vosamoilenko please use stackblitz for code, i wont download that file, also @adrienZ it should resolve the component issue, but also i noticed that you are importing vue-email components in the test.vue file, you shouldnt do that, the components of the library are auto imported, also, you will face another issue with the baseUrl you should only use the base Url if you gonna use it for images
https://stackblitz.com/edit/github-usvs6j-5oeyxy?file=package.json,emails%2Ftest.vue,nuxt.config.ts
i updated the base url and update the img src, will open another issue related to this speciifc image issue

upgrading and removing imports from vue-email fixed it,  thanks  @Flowko !

@Flowko  Hi.  First, thank you for your work on this module!
I'm looking into a similar issue and it has not been solved by upgrading to 0.8.8.
I'm also seeing that the stackblitz linked above still has the same error, even with the updated version.  (If that link isn't adequate I can look into creating a separate stackblitz soon)
Could you please advise?
Thanks in advance


Azure Disk Backup documentation: is the retention limit 420 or 450?

https://learn.microsoft.com/en-us/azure/backup/disk-backup-support-matrix
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/backup/disk-backup-support-matrix.md
relevant commit by @rajats22 :
https://github.com/MicrosoftDocs/azure-docs/commit/e280fb3648976d464c0437a149fc71fe7df0b08a
As far as I'm aware, the retention limit is 450 everywhere else in the docs, but here it says 420. Is this 420 something separate from the 450? Or is there a typo and/or a change in the product?
Thanks!

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

ID: 7fe8088c-6f30-5de6-0f91-231e5c99ef59
Version Independent ID: 1e10aa9a-ee70-39f2-6791-155102af4829
Content: Azure Disk Backup support matrix - Azure Backup
Content Source: articles/backup/disk-backup-support-matrix.md
Service: backup
GitHub Login: @AbhishekMallick-MS
Microsoft Alias: v-abhmallick

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

@User670
Thank you for bringing this to our attention! We've initiated a pull request (PR) to address this issue. Once the author reviews the changes, they will be merged, and the updates should go live shortly. Your diligence is much appreciated!
Feedback for this repository is moving away from GitHub to a system specific to the Microsoft Learn platform. Issues for this repository will soon be disabled, and additional comments from GitHub will no longer be possible. However, we are now tracking and triaging this issue in the new feedback system.
To learn more about our feedback systems, please see Provide feedback for Microsoft Learn content.

I do not see an open pull request containing a change for the article in question. I'll keep an eye on this issue.
(also "awaiting customer response"? I don't think I'm seeing a question that needs a response from me.)

@User670
Once the author has reviewed the changes, they will be merged, and the updates will be implemented shortly. Thank you for your patience.

@User670
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

No edits had been made to the article I linked nor any other related articles that mention the 420/450 retention limit.
Are you suggesting that current state of the articles is correct and no changes are needed? Otherwise I'd like to keep the issue open, thanks. @Naveenommi-MSFT

Hello @User670
We made changes in the article, once content author approved the changes it will reflect in the main article.

🤔Looks like this pr, as well as the thing you showed in your screenshot, are private, and as such I can't see them, and I thought there had been no commits nor pull requests.
Well then

@Naveenommi-MSFT Can I get a follow-up on this pull request? Has there been any progress?


Convert to using the dockerfile-maven plugin

https://github.com/spotify/dockerfile-maven

This plugin directly supports ARGs, so we should not need to filter the Dockerfile
Also supports dependencies from one image to another, so would be good to convert the https://github.com/GoogleCloudPlatform/openjdk-runtime project as well.

alternately.... this project could convert to using https://dmp.fabric8.io/ the same as openjdk-runtime

What about https://github.com/GoogleContainerTools/jib it is a solution from Google not sure if it has all the needed features though.

IMO, jib is very nice and should do all we need.


Fix cmp completion source

Hey, thanks for your work on this plugin. I tried using the cmp completion source, but it would fail with the following error:
Error detected while processing TextChangedI Autocommands for "*":
Error executing lua callback: ...k/packer/start/forester.nvim/lua/forester/completion.lua:49: bad argument #1 to 'query_all' (string expected, got nil)
stack traceback:
	[C]: in function 'query_all'
	...k/packer/start/forester.nvim/lua/forester/completion.lua:49: in function 'complete'
	.../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:326: in function 'complete'
	...ta/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:299: in function 'complete'
	...ta/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:169: in function 'callback'
	...ta/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:229: in function 'autoindent'
	...ta/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:161: in function 'on_change'
	...ta/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/init.lua:340: in function 'callback'
	...ite/pack/packer/start/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
	...ite/pack/packer/start/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <...ite/pack/packer/start/nvim-cmp/lua/cmp/utils/autocmd.lua:22>

I believe this is caused by not passing the correct configuration to query_all (6b3ff9e5be2fa622f8041826b583a191dfe0e445). There's also a random "hello" in the documentation view of a completion item. I believe that shouldn't be there (665346ea023796d1d6332e352d5c73570b66fd35)? I appreciate the plugin greeting me though.

Hi, Thanks for the fix!. I had decided not to put any more effort into completion as there seemed to be some work being done on the language server, so this slipped under the radar when updating to the new version of forester.

Thank you very much for the swift reply :)

work being done on the language server

Oh... is development of the language server public? I'd be willing to contribute!

Yes:
https://lists.sr.ht/~jonsterling/forester-devel?search=lsp
These were the issues I encountered on the latest patch:
https://lists.sr.ht/~jonsterling/forester-devel/<20240610142808.719807-1-nick.hu<EMAIL_ADDRESS>


Prepare for publishing Korean Qiskit Documentation

Summary
This PR adds ko_KR to the configuration to prepare for publishing Korean Documentation
Details and comments

Were you think that we should merge qiskit-community/qiskit-translations#118 before this so that when we add the link to the docs the korean content is up? Either way I think there is a race condition because if we merge this first then people could navigate to the korean translation and get a 404. But if we merge qiskit-community/qiskit-translations#118 first then the translated docs (including korean) won't know about the korean translations and you won't be able to navigate to it until after a rebuild of the translated docs (once this merges).

I think either ways I'm expecting a small lag between adding the link to Korean docs and actually getting the Korean docs. So, it might be better to merge https://github.com/qiskit-community/qiskit-translations/pull/111 first so that we won't get a 404.


Change multi-color settings at runtime

Per the description here: https://github.com/yavski/fab-speed-dial#multi-colored-fabs
I can use XML attributes to set the colors of items.
For a current project, it would be beneficial to change these resources in runtime.

Basically, I think 2 setter methods would work:
setMiniFabTitleTextColorArray(int[] arr) and setMiniFabBackgroundTintArray(int[] arr).


Enable auto-release for scm-filter-jervis-plugin

Repository link
https://github.com/jenkinsci/scm-filter-jervis-plugin
Enabling auto-release
See my PR; please review https://github.com/jenkinsci/scm-filter-jervis-plugin/pull/6
My checklist:

[x] I have provided a link to the pull request in my plugin, which enables CD according to the documentation.

Reviewer checklist

[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it.

Thanks @timja the plugin now auto-releases after being converted to maven


fix parseDate pure to relational transformation for H2, Presto, Snowflake, Memsql and SybaseIQ DBs.

What type of PR is this?
-Code Fix
What does this PR do / why is it needed ?
-parseDate is a pure function that is mapped to db specific functions that expect two parameters , timestamp as string and timestamp format.
-Fixing pure to relational transformation to correctly generate SQL by introducing a handler to handle the second parameter, timestampFormat aligning it with Postgres specification.
Which issue(s) this PR fixes:
Fixes #
SQL generation for DBs like H2, Presto, Snowflake, MemSQL and SybaseIQ.
Other notes for reviewers:
Does this PR introduce a user-facing change?

parseDate impl for h2 and snowflake is tested using db integration test. For other dbs (memSql, presto, sybaseIQ), testing has been done manually using a test db instance on aqua data as per Vaishnavi. I have asked Vaishanavi to do the same manual testing, but from pure.

parseDate impl for h2 and snowflake is tested using db integration test. For other dbs (memSql, presto, sybaseIQ), testing has been done manually using a test db instance on aqua data as per Vaishnavi. I have asked Vaishanavi to do the same manual testing, but from pure.

Vaishnavi has tested memSql, presto, sybaseIQ using a dev deployment of legend-engine server. It is good to merge!


“ReferenceError: require is not defined” error in the browser environment because of the require() method.

I am trying to establish connection with bigquery from jupyterlite javascript -version 0.2.3 (https://jupyter-xeus.github.io/xeus-javascript/lab/index.html).
At very first stage, I am trying to import Google Cloud client library using below command which have 'require' function.
const {
ConnectionServiceClient,
} = require('@google-cloud/bigquery-connection');
// Creates a client
const client = new ConnectionServiceClient();
But getting an error 'ReferenceError: require is not defined'**
Is there any workaround for 'require()' method?

You can probably use the import statement instead of the require statement

I tried to use import but the when I am creating a client below error is coming.
'TypeError: ConnectionServiceClient is not a constructor'.
Command used:
// Imports the Google Cloud client library
const {
ConnectionServiceClient,
} = import('@google-cloud/bigquery-connection');
// Creates a client
const client = new ConnectionServiceClient();


fix the link rendering issue?

The am not sure what the purpose of the coceptual header was, so I deleted it, because it messed up the rendering of the document especially the link to the other page. See https://docs.microsoft.com/en-us/uwp/api/windows.devices.input.preview.gazedevicepreview.cantrackeyes#Windows_Devices_Input_Preview_GazeDevicePreview_CanTrackEyes

@Karl-Bridge-Microsoft : PR passed acceptance checklist. Please evaluate the proposed change further. Thanks!


Amended permissions for en_GB AddressTest.php

Hello.
File test/Faker/Provider/en_GB/AddressTest.php was executable.
Permissions amended from 755 to 644.
Thanks.

Thanks!


Warehouse migration failing

What I'm trying to achieve
Trying to upgrade an existing version 2.9 instance to 2.10.
Result:
Applying warehouse.0001_initial...Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.CheckViolation: new row for relation "warehouse_stock" violates check constraint "warehouse_stock_quantity_allocated_check"
DETAIL:  Failing row contains (2, -388, -389, 5, 2e37c6cf-6902-4944-8393-1cb5a0956cfb).

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 83, in wrapped
    res = handle_func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 231, in handle
    post_migrate_state = executor.migrate(
  File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 117, in migrate
    state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 147, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/usr/local/lib/python3.8/site-packages/django/db/migrations/executor.py", line 245, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/usr/local/lib/python3.8/site-packages/django/db/migrations/migration.py", line 124, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  File "/usr/local/lib/python3.8/site-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
    self.code(from_state.apps, schema_editor)
  File "/app/saleor/warehouse/migrations/0001_initial.py", line 49, in forward
    Stock.objects.bulk_create(stocks)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 492, in bulk_create
    returned_columns = self._batched_insert(
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1220, in _batched_insert
    inserted_columns = self._insert(
  File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1204, in _insert
    return query.get_compiler(using=using).execute_sql(returning_fields)
  File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1391, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.IntegrityError: new row for relation "warehouse_stock" violates check constraint "warehouse_stock_quantity_allocated_check"
DETAIL:  Failing row contains (2, -388, -389, 5, 2e37c6cf-6902-4944-8393-1cb5a0956cfb).

Steps to reproduce the problem

What I expected to happen
I want the DB migrate command to finish successfully.
Screenshots

System information
Operating system:

In this migration, we implement warehouses in the saleor.  Each variant has stock in the warehouse. Stock contains fields: (id, quantity, quantity_allocated, product_variant, warehouse). quantity and quantity_allocated are PositiveIntegerField and it can contain only values greater or equals 0. Your saleor instance quantity and quantity_allocated are negative.

 We had a strange product variant with a large negative quantity. I downgrade again, removed the variant and could successfully upgrade our instance. Thank you :)


docs: add Novu to showcase

Hi all :) Submitted the CLA check, how should I re-trigger it?

It will update in a few hours—don't worry.

Thanks :)


Fix FreeCameraTouchInput to work with Emulator and iOS, Add SingleTouchRotate flag

This PR contains a couple of things.  First, there is a flag that has been added to FreeCameraTouchInput to allow users to swap the behavior of a single touch movement to either be rotation or movement.  Second, the logic for the isMobile bool in the ThinEngine has been fleshed out to properly handle iOS detection and to reevaluate itself when the window is resized.  This will allow for changes to be detected when the Chrome emulator is started.

I let @deltakosh validate the user agent as well ?


make the tests compatible with travis

travis is having trouble with some of the config file specs. They run correctly locally, but not with http://travis-ci.org

dang. Issues was with the repo missing some config fixtures that had been accidentally excluded by .gitignore. Now building fine with travis, and travis status included in the readme.
Score 1 for Travis CI - already proving its value!


update Celestia Mocha testnet to mocha-2

TODO

[ ] update peers

Currently:
"peers": {
    "seeds": [
      {
        "id": "9aa8a73ea9364aa3cf7806d4dd25b6aed88d8152",
        "address": "celestia.seed.mzonder.com",
        "provider": "Mzonder"
      }
    ]
  },

Change to something like this:
"peers": {
    "seeds": [
      {
        "id": "805a028582056abd7dab9c5f2834aefb8e3b48b3",
        "address": "<IP_ADDRESS>:26656",
        "provider": "Celestia"
      }
    ]
  },

Is this still in draft and does the genesis need updating too?

cc @YazzyYaz

thank you for the nudge @JeremyParish69 - will be marking "ready for review" soon

will need to edit after release is made to resolve this https://github.com/celestiaorg/celestia-node/issues/2433

cc @evan-forbes for last review

these are good to go now @JeremyParish69 - thank you!

TODO: add gas limits on chain registry: Use this : “low”: 0.1, “average”: 0.2, “high”: 0.4 to match https://docs.celestia.org/developers/keplr/


Move updater units to bootstrap/purge

What does this PR do?
Manage updater units, first step towards updater self updating
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

got messed up with rebases, will rebuild on top of main


Segmentation fault on linux

Every command other than --help crashes with segmentation fault on latest master:
$ ./build/debug/app/bin/Debug/x86_64/vulkan_samples samples
[info] Logger initialized
[1]    17436 segmentation fault (core dumped)  ./build/debug/app/bin/Debug/x86_64/vulkan_samples samples

Debugger doesn't report any information about the segmentation fault:
$ gdb ./build/debug/app/bin/Debug/x86_64/vulkan_samples
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/debug/app/bin/Debug/x86_64/vulkan_samples...
(gdb) r
Starting program: /home/fctorial/src/pgs/Vulkan-Samples/build/debug/app/bin/Debug/x86_64/vulkan_samples
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/nix/store/0c7c96gikmzv87i7lv3vq5s1cmfjd6zf-glibc-2.31-74/lib/libthread_db.so.1".
[info] Logger initialized

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

I'm able to successfully build and run the repo snapshot from a couple months ago.

Hi @fctorial
Thanks for the bug report.  Are you still experiencing this problem?  I'm sorry we haven't replied sooner.
I'd like to ask if you would mind rerunning your debugger and provide a backtrace.  In gdb, you can generate one with the bt command.  It'd help to get an idea of how the crash happened.

It went away after I installed glfw.


⚠ Bofrost.lu has degraded performance

In e648a8a, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1648 ms

Resolved: Bofrost.lu performance has improved in 40cd7a2 after 36 minutes.


Change std::tm to time_point and add "date.h"

Hi,
Here is my proposal of changing std::tm to std::chrono::time_point And include "date.h" dock here and presentation at cppcon
Plus:

more c++11
more portable
is smaller (8 bytes) std::tm (52 bytes)
compiler catch errors

Minus:

slower (avg: ~1.731 us (date.h) to ~0.820 us (std::tm) for RFC1123 parsing)

This is better (in my opinion) solution for #131.

I have mixed feelings on merging this PR.  It introduces an additional namespace with a really generic name ("date") that might cause conflicts with other projects that link against pistache.io.  I do not know how others feel about the performance impact either.  However, I like the idea of use more c++11 and less "".
Opinions, anyone?

You can find sources here. The author of this is the same that author of <chrono>. I made this PR because pistache can't compile to musl target. This PR solve this.
If u don't like that "data" namespace you can use https://github.com/oktal/pistache/pull/131. I don't know that work or not. I don't use pistache anymore. But check also that.

I do not know how others feel about the performance impact either.
Remember. Correctness first.

xoac, your arguments are persuasive.
I've tested your PR on Gentoo Linux w/ gcc 7.3.9-r3 and Ubunut 16.04.3 (LTS) w/ gcc 5.4.0.  Both compile cleanly, pass the test, and my own app runs fine.
I will merge this PR and humbly ask that you cancel #131, if appropriate.

I have used this PRs to make server pistache stable for me (inside docker app). But my apps wasn't heavy loaded and device was single core.
source=("${pkgname%}::git://github.com/oktal/pistache.git"
        # '00001-support-musl.patch::https://github.com/oktal/pistache/pull/131.patch'
        '00002-support-musl.patch::https://github.com/oktal/pistache/pull/132.patch'
        # '00001-Check-inflightRequests.patch::https://github.com/oktal/pistache/pull/118.patch'
        '00002-inflightRequests.patch::https://github.com/oktal/pistache/pull/154.patch'
        '00001-prevent-race.patch::https://github.com/oktal/pistache/pull/119.patch'
        '00001-increase_max_buff.patch::https://github.com/xoac/pistache/pull/1.patch'
        '00001-memory-leak-fix.patch::https://github.com/oktal/pistache/pull/130.patch'
        '00001-fd-leak-fix.patch::https://github.com/oktal/pistache/pull/39.patch'
        "00001-application_octet_stream.patch::https://github.com/oktal/pistache/pull/153.patch"
        "00001-add_str_method_to_query.patch::https://github.com/oktal/pistache/pull/172.patch"
    )
md5sums=('SKIP'
         '3d8eeea14268d23c7de727d792483021'
         '2a7f958b243af49424b913877b92c331'
         'd924b911437476a5e3e495502605afc8'
         'f093da038a6cc650098667b0e71510ee'
         'bb6e2d9b3b81dd1385a19252b218fe7c'
         '4c62fe4a722d4ad866c8385848d24e2a'
         'b01d1953664504a2a29d95de45589dca'
         'da313d26d48215a07811a8e355e759aa')

xoac,
Thank you for your curated list of issues.  For each patch that is in "octal/pistache", I either merged it or left feedback.  Hopefully we'll get #205 merged and then you can drop xoac/pistache#1.


CTONET-2898 SNO fixes

Fix #18
Fix #20
Fix #19

Ready for review

Looking good.
Do you want me to try to deploy that changes before you merge?

Looking good. Do you want me to try to deploy that changes before you merge?

@halleelyasaf If you have some time and resources for this - sure
I based this on the changes you did in your environment

I will deploy on Sunday SNO cluster and 5-Node and use this changes

@natifridman I tested that yesterday and it work thanks


MySQL & MariaDB Driver

We need MySQL and MariaDB Drivers. The idea is that each of this drivers implements Driver.t type just as we are doing with https://github.com/dbcaml/dbcaml/blob/main/dbcaml_driver_postgres/dbcaml_driver_postgres.ml

@emilpriver What mysql driver should we be looking at? There's a few on opam to choose from.

Hey @wonbyte First of all, thank you for showing interest in this :D it makes me happy!
There is 2 way to handle this:

build your own unix socket. It works but I wouldn't suggest it, hard to maintain
Use a library.

I don't have any particular library in mind for mariadb and mysql but this seems nice: https://opam.ocaml.org/packages/mariadb/ seems to use bindings to talk to the database.
Pick the library you like :D

Thanks @emilpriver i'll see what I can do 😅


feat(di): provide decorator

WIP

@guacs feel free to take it from here

@provinzkraut is there a reason we need a BoundProvide? I was thinking we could just add a dependency_key field directly to Provide.

@provinzkraut is there a reason we need a BoundProvide? I was thinking we could just add a dependency_key field directly to Provide.

Yes, there is a reason. dependency_key doesn't make a lot of sense on Provide, since it will be ignored in most cases. This would mean that the kwarg would have to accept str | None = None, which in turn means the instance attribute can be None. This means we'd have to either validate it at the point where it's being used and raise an exception if it's None, or require the name to always be passed, leading to duplication: dependencies={"foo": Provide(some_foo, dependency_key="foo").

@provinzkraut is there a reason we need a BoundProvide? I was thinking we could just add a dependency_key field directly to Provide.

Yes, there is a reason. dependency_key doesn't make a lot of sense on Provide, since it will be ignored in most cases. This would mean that the kwarg would have to accept str | None = None, which in turn means the instance attribute can be None. This means we'd have to either validate it at the point where it's being used and raise an exception if it's None, or require the name to always be passed, leading to duplication: dependencies={"foo": Provide(some_foo, dependency_key="foo").

You're right. The need to allow dependency_key to be str | None brings in unnecessary complications in Provide. I'll stick to using BoundProvide.

@JacobCoffee is it possible to disable the tests from running on draft PRs?

@guacs yeah i think we can do something like if: github.event.pr.draft == false or similar

Closing this for now @guacs


feat:  add category filter for proposal table

Types of changes
Thanks for sending a pull request! Please fill in the following content to let us know better about this change.
Please put an x in the box that applies

[ ] Bugfix
[x] New feature
[ ] Refactoring
[ ] Breaking change (any change that would cause existing functionality to not work as expected)
[ ] Documentation Update
[ ] Other (please describe)

Description
Describe what the change is
Add category filed to proposal table. When you click on a category, the list of proposals will be filtered by the category you selected.
Steps to Test This Pull Request
Steps to reproduce the behavior:

Go to review page
Click on category filed

Expected behavior
Show the proposal list which was be filtered.
Related Issue
If applicable, refernce to the issue related to this pull request.
More Information
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here. You may also want to refer
to how to wirte the perfect pull request
https://user-images.githubusercontent.com/31035650/162525223-95f100f8-a7d8-4bef-a44b-37056f6d0a64.mov

Codecov Report

Merging #1066 (213b9b6) into master (77a954a) will decrease coverage by 0.15%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##           master    #1066      +/-   ##
==========================================
- Coverage   69.29%   69.14%   -0.16%
==========================================
  Files          82       82
  Lines        3306     3315       +9
==========================================
+ Hits         2291     2292       +1
- Misses       1015     1023       +8

Impacted Files
Coverage Δ

src/reviews/views.py
31.78% <11.11%> (-1.56%)
: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 77a954a...213b9b6. Read the comment docs.

Duplicated and implemented in  #1145


calls to proc in template made an unexpected number of times 🐛

Describe the bug 🐛
In #229 there was another type of proc call that was not working. I'm making it a separate issue here.
To Reproduce 👨🔬
Pay attention to the use of counter2 when the nextCount() proc is called in the template of withCounter.

import happyx, random

component withRandom:
  n: int = rand(99)
  `template`:
    tDiv: "self random: {self.n.val}"
    tDiv: "random in template: {rand(99)}"

var counter: int = 0
var counter2: int = 0
proc nextCounter(c: var int = counter): int =
  c += 1
  result = c

component withCounter:
  count: int = nextCounter()
  `template`:
    tDiv: "self count: {self.count}"
    tDiv(style="background-color: color-mix(in hsl, red 40%, white);"): "count in template: {nextCounter(counter2)}"

component withReps:
  n: int = 5
  `template`:
    for i in 1..self.n.val:
      tDiv(style="border: 0.2em dotted gray;"): slot

appRoutes("ROOT"):
  "/":
    component withReps():
      withCounter()
      withRandom()
      "non-component rand {rand(99)}"

Expected behavior 🤔
It should be counting 1,2,3 like the other count, since independent counters are being used. But this is not what we see.
Screenshots 🖼

To explore the problem further, if we change the call to nextCount in the template to use a loop, as in:
`

component withCounter:
  count: int = nextCounter()
  `template`:
    tDiv: "self count: {self.count}"
    for i in 1..3:
      tDiv(style="background-color: color-mix(in hsl, red 40%, white);"): "count in template: {nextCounter(counter2)}"

Then the number of extra counts seems to be the product of the inner and outer loop iterations.

Please complete the following information 📃
version @#head after d8cb3da
Manjaro. Chrome

Seems like reason in rendering

Solved in the next commit ✌


Time to remove "HAPPY COG" logo from alistapart.com footer

Like the fella said, it is time to permanently remove the linked Happy Cog logo from the footer of every page of alistapart.com. Thank you!

Brilliant. Can we add the A List Apart logo in its place?
…………………………………
studio.zeldman http://studio.zeldman.com
148 Madison Avenue, Suite 600
New York, NY 10016
917-746-4838
An Event Apart http://aneventapart.com/subscribe | A List Apart
http://alistapart.com/ | A Book Apart https://abookapart.com
Big Web Show
https://itunes.apple.com/us/podcast/the-big-web-show/id370445683?mt=2 |
zeldman.com | @zeldman https://twitter.com/zeldman
On Tue, Jun 21, 2016 at 8:32 AM, Michelle Kondou<EMAIL_ADDRESS>wrote:

Closed #381 https://github.com/alistapart/AListApart/issues/381.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alistapart/AListApart/issues/381#event-698976179, or mute
the thread
https://github.com/notifications/unsubscribe/AC2Hd_tDy2WtoX8c7Rofh2UlCjhyXNbbks5qN9nggaJpZM4Is56j
.

Added!

Awesome. Thank you. Brands united!
…………………………………
studio.zeldman http://studio.zeldman.com
148 Madison Avenue, Suite 600
New York, NY 10016
917-746-4838
An Event Apart http://aneventapart.com/subscribe | A List Apart
http://alistapart.com/ | A Book Apart https://abookapart.com
Big Web Show
https://itunes.apple.com/us/podcast/the-big-web-show/id370445683?mt=2 |
zeldman.com | @zeldman https://twitter.com/zeldman
On Wed, Jun 22, 2016 at 8:51 AM, Michelle Kondou<EMAIL_ADDRESS>wrote:

Added!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alistapart/AListApart/issues/381#issuecomment-227732977,
or mute the thread
https://github.com/notifications/unsubscribe/AC2Hd_B2Zz4EUl6rQPWZICvwDSsrgXU5ks5qOS_GgaJpZM4Is56j
.


Handle change of citation keys.

I chat with BibEntry with citationkey A.
I change the citation key to B
I reopen the AI chat
Chat is empty

Expectation: Chat is the same after step 1.

Idea to solve:

Listen to entry changed events
Filter on citatoin key change
Stop if key is changed to something "invalid"
get messages for oldkey
Store messages to newkey
Remove messages for oldkey

I think I figured it out how to implement it.
But, what if user changes entry to an invalid citation key (empty or non-unique)?

Okay, I implemented this feature, but the fix doesn't take into account invalid citation keys...

Does not work with current pull.
I tried with Ctrl+G for generating a new key. (Before, I changed the key pattern to have abc at the end).

I've tried to add some letters after the citation key, and it worked
I tried Ctrl+G and click on "Generate" button. It worked too

Maybe you had some past push without the change? Could you try again?
@ThiloteE, maybe you can also try this?

OH NO
I'm sorry, I've only implemented this for chats :laughing:

Yes. Now it should work


Added ast_utils + example

I would suggest not forcing the user to use the camel_to_snake system. Also sometimes you might want one class for different nodes. I would suggest adding a __init_subclass__ and a class level attribute/class level keyword argument to modify this.

@MegaIng Rules are snake_case, so I can't see a situation when you would want to keep the caps.
You can do something like
class MultiPurposeNode(Ast): ...

usecase1 = MultiPurposeNode
usecase2 = MultiPurposeNode
usecase3 = MultiPurposeNode
usecase4 = MultiPurposeNode

It should work.

(nothing changed, I just added the pyi file)

Btw, mypy throws errors, but the check still succeededs.

I don't use mypy, I'm only adding the stubs as a courtesy for the users.
If you know how to fix the mypy errors, go ahead.

Well, we have a check setup here on github for type checking. If you look at the output, you see that mypy complains. But the check doesn't fail.

We are specifically ignoring these errors: https://github.com/lark-parser/lark/blob/eac537a434dd6b5d2145d147f8fd90aa0131a5db/.github/workflows/mypy.yml#L19
I think I will try to fix all the errors.


Modernize our packaging metadata files

Copy what @ofek did in https://github.com/jazzband/django-debug-toolbar/pull/1690/files over to here

https://hatch.pypa.io/latest/intro/#existing-project

Done as part of #257


Mode Testnet Shows Balance Erroneously on Summary

Being on mode Testnet the app shows the summary balance of Mainnet. Also you can see that the app does not make a difference between Mainnet and Testnet as iOS does on the Wallets section.
Android:

iOS:

@Hoanib Thanks for open this, very helpful

You are welcome @seabornlee

@Hoanib Will be included in the next release. Thanks again!

Glad to hear that! @seabornlee


Multiple Telemetry_System_Poller declarations with different intervals sending "null" host to Splunk #C3873547

Environment

Telemetry Streaming Version: 1.27.1
BIG-IP Version: BIG-IP v15.1.5 (Build 0.0.10)
Case#: C3873547

Summary
When configuring multiple Telemetry_System_Poller's only the system poller will contain the "host" field with the correct value. Other pollers send "host":"null" to Splunk. Aside from the Splunk host metadata the bigip data and polling intervals are correct, only the "host" key is incorrectly set to "null".
Please also include information about the reproducibility and the severity/impact of the issue:
I have been able to reproduce this in multiple BIG-IP and Splunk environments. I used http on the Splunk HTTP Event Collector to observe the raw data going out the door from the BIG-IP. This is 100% validated and revalidated with tcpdump on the BIG-IP side when setting and sending the JSON structure to Splunk. This is not happening on the Splunk side.
Steps To Reproduce

Submit the following declaration:

{
	"class": "Telemetry",
	"My_System": {
		"class": "Telemetry_System",
		"enable": "true",
		"systemPoller": [
			"My_PollerSystem",
			"My_PollerVS",
			"My_PollerCert"
		],
		"allowSelfSignedCert": true
	},
	"My_PollerSystem": {
		"class": "Telemetry_System_Poller",
		"interval": 60,
		"actions": [
			{
				"includeData": {},
				"locations": {
					"system": true
				}
			}
		],
		"allowSelfSignedCert": true
	},
	"My_PollerVS": {
		"class": "Telemetry_System_Poller",
		"interval": 90,
		"actions": [
			{
				"includeData": {},
				"locations": {
					"virtualServers": true,
					"pools": true
				}
			}
		],
		"allowSelfSignedCert": true
	},
	"My_PollerCert": {
		"class": "Telemetry_System_Poller",
		"interval": 120,
		"actions": [
			{
				"includeData": {},
				"locations": {
					"sslCerts": true
				}
			}
		],
		"allowSelfSignedCert": true
	},
	"Splunk_Consumer": {
		"class": "Telemetry_Consumer",
		"type": "Splunk",
		"host": "<IP_ADDRESS>",
		"protocol": "https",
		"port": 8088,
		"passphrase": {
			"cipherText": "YOUR_API_KEY"
		},
		"allowSelfSignedCert": true
	}
}

I disabled https on the Splunk HEC input and saw this is the data going out the door on the BIG-IP for non-system telemetry.

POST /services/collector/event HTTP/1.1
Authorization: Splunk 3e4dXXXXXXXXXXXXXXXXXXXX59
Content-Length: 1868
User-Agent: f5-telemetry/1.27.1
host: <IP_ADDRESS>:8088
Connection: close

{"time":1663006442000,"host":"null","source":"f5.telemetry","sourcetype":"f5:telemetry:json","event":{"pools":{...

Expected Behavior
The host key value should have the hostname instead of "null" for all telemetry messages as shown here with the "system" telemetry which is working, host is configured as "bigip1".
{"time":1663006502000,"host":"bigip1","source":"f5.telemetry","sourcetype":"f5:telemetry:json","event":{"system...
Actual Behavior
{"time":1663006442000,"host":"null","source":"f5.telemetry","sourcetype":"f5:telemetry:json","event":{"pools":{...
Splunk and tcpdump screenshots attached.

I think I found where this is presenting. If "globalCtx.event.data.hostname" isn't set "null" is set in the data being sent to Splunk. The Splunk host metadata field should always be the origin of the device sending the data regardless of what data is being sent.
https://github.com/F5Networks/f5-telemetry-streaming/blob/master/src/lib/consumers/Splunk/dataMapping.js

function defaultFormat(globalCtx) {
    const data = globalCtx.event.data;

    // certain events may not have system object
    let time = Date.parse(new Date());
    let host = 'null';

    if (data.system) {
        if (data.system.systemTimestamp) {
            time = Date.parse(data.system.systemTimestamp);
        }
        if (data.system.hostname) {
            host = data.system.hostname;
        }
    } else if (data.hostname) {
        host = data.hostname;
    }

    return {
        time,
        host,
        source: 'f5.telemetry',
        sourcetype: 'f5:telemetry:json',
        event: data
    };
}

Created Jira TS-703 and prioritizing in the next sprint. Will update if status changes.

Resolved by adding the following action
They can try to update actions for each system poller to include hostname:
For example:
"actions": [
                       {
                               "includeData": {},
                               "locations": {
                                      "sslCerts": true,
                                        "system": {
                                            "hostname": true
                                        }
                               }
                       }
            ]

closing issue


str.replace is not a function

I've revised the source code and is exactly the same at the points where the error happens, so I guess it will happen here too. This is the bug: https://github.com/tmijs/tmi.js/issues/266

Do you have some example CLEARCHAT we can reference to resolve the issue? Is ban-reason undefined, or does it have a different shape?

No, I have no idea. I guess is not undefined or null as it passes the first conditional which checks for them.
I think that as long as we are expecting a string inside replaceAll, will be better to typecheck it with typeof instead of assuming that is a string and just checking for null and undefined..

This bug should be resolved in 2.0.0-beta.1.

Any breaking changes?

@Llorx initial docs are up.


Blacklisting Thunderbolt Module Causes AMD Device Not Entering s2idel properly

According to the official diagnostic script for AMD s2idle, AMD computers needs to use the thunderbolt kernel module to enter s2idel properly. The check for thunderbolt module can be found here.
And I have indeed noticed a unusual amount of battery drain during suspend (only s2idel option avaliable). I was wondering is it possible to have this blacklist removed, or how should I manually enable the kernel module on my machine?

You can remove it from /etc/modprobe.d/blacklist.conf.

A better solution would be to add an 99-override.conf in the same directory. If you edit a file in /etc, it will not be updated anymore. I am not sure if files in /etc will be updated at all?

@secretmango Yes, now there is a ujust script that automates the override of kernel modules.


Added message expiration feature.

Q
A

Bug fix?
no

New feature?
yes

Doc update?
no

BC breaks?
no

Deprecations?
no

Fixed tickets
#311

License
MIT

This PR adds a message expiration feature. Basically the idea is to eventually stop trying to resend the same message over and over again if it keep failing (which eventually results in the issue described in #311).
File spool will now add an attempt number to the message filename and use that to track how many delivery attempts were done on that particular file.
When the maximum retry attempts have been reached the failed message will be moved to expired directory inside the spool directory, so administrators can potentially review those messages if needed.

It would be nice if this feature got merged, We currently are forced to implement workarounds on all of our projects to avoid overflow of bad emails.

Good day @fabpot and @xdecock
Do you see any issues with this feature? I would really like to see this through.
Thanks

Thanks for the PR. As announced some time ago, Swiftmailer is not maintained anymore.
Symfony Mailer is the next evolution of Swiftmailer.
It provides the same features with support for modern PHP code and support for third-party providers.


Allow arbitrary-sized images by dynamic masking: upstream changes from Swin-Transformer-Object-Detection / SOLQ

Hi!
To combine Swin transformer backbone with Deformable DETR detector, SOLQ did some changes to swin_transformer.py that allow to compute the padding mask dynamically and allow for arbitrary-sized images in input (I think this is supported for relative positional encoding only).
Similar edits were done by your colleagues in https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/blob/master/mmdet/models/backbones/swin_transformer.py
If this interests you, maybe you could import those edits from SOLQ / Swin-Transformer-Object-Detection or implement similar edits. This will make it simpler to experiment with SimMIM checkpoints / backbone code in object detection context and make sure that checkpoints load correctly.

Hi!
To combine Swin transformer backbone with Deformable DETR detector, SOLQ did some changes to swin_transformer.py that allow to compute the padding mask dynamically and allow for arbitrary-sized images in input (I think this is supported for relative positional encoding only).
Similar edits were done by your colleagues in https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/blob/master/mmdet/models/backbones/swin_transformer.py
If this interests you, maybe you could import those edits from SOLQ / Swin-Transformer-Object-Detection or implement similar edits. This will make it simpler to experiment with SimMIM checkpoints / backbone code in object detection context and make sure that checkpoints load correctly.

Thanks for your suggestion. We will try to add this support.

Hi!
To combine Swin transformer backbone with Deformable DETR detector, SOLQ did some changes to swin_transformer.py that allow to compute the padding mask dynamically and allow for arbitrary-sized images in input (I think this is supported for relative positional encoding only).
Similar edits were done by your colleagues in https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/blob/master/mmdet/models/backbones/swin_transformer.py
If this interests you, maybe you could import those edits from SOLQ / Swin-Transformer-Object-Detection or implement similar edits. This will make it simpler to experiment with SimMIM checkpoints / backbone code in object detection context and make sure that checkpoints load correctly.

Hi there, have ever tried to use ViTs in object detection tasks?
I'd like to ask if the pipeline of using ViTs as the backbone of object detection algorithms, e.g. Mask R-CNN, is the same as the CNNs: If the images in a batch have different resolutions, we pad them to have a equal size? Should we resize the images to make the width and height to be divisible by the patch size, like 16 or 14, or force them to be squares like 1024*1024.
I am curious about how to preprocess the input images before feeding them to the ViT encoder when used in object detection, as we can't simply random resize and crop it to a predefined size like image classification do.
Appreciate your reply, thanks!


Report the peak frequency of log-parabolic spectra

The peak frequency of an LPS spectrum is not a fit parameter, however it is a useful value to know and to cite in a paper. It is calculated easily using the formula for the peak of a quadratic. We could report it separately to the fit parameters (perhaps in a dictionary alongside other values such as the AIC and p_best)

This issue has been addressed with the addition of the calc_log_parabolic_spectrum_max_freq function.


Adding changelogs to cli, utils, dappkit, contractkit, and base packages

Description
With the new release process for these 4 packages, we will maintain a changelog that allows for everyone to see any changes made to the package. This will also make posting release summaries very easy.

Nice!!! are they made manually or with some lib like semantic-release?

Nice!!! are they made manually or with some lib like semantic-release?

Manual at the moment, but would love to automate eventually!


[sk_gpu] skg_tex_get_mip_contents_arr: eating a gl error from somewhere else: 1282

Description
I thought it was an error that only occurred on the Linux simulator during screenshots, but this message floods the log every time we call tex_get_data_mip or tex_get_data. Both on the Linux simulator and  Quest 2.
Platform / Environment
rust binding on :
Ubuntu 23.10 - gnome wayland  / Meta Quest 2
Logs or exception details
[sk_gpu] skg_tex_get_mip_contents_arr: eating a gl error from somewhere else: 1282

If you have an exception, details about that would also be essential.

This happens on examples that worked perfectly well a few days ago

I'll try and check this out soon. Any ideas what this is from? That error message indicates something upstream is not working properly, and is not an issue with skg_tex_get_mip_contents_arr itself.
Was this something that worked one day and then not the next, or was there a particular StereoKit commit where this started happening? Did you upgrade your OS, or add notable graphics features in your own code?

I can't be sure. I believe it's after Syncing from you repo. I also changed to the last ndk.

I'm still having this problem. But I found a  problem that can help I guess.
Previously I was able to set a texture r16 using the function text_set_colors.
Now I receive the following message :

I added a test that can repro this on Linux,<PHONE_NUMBER>9caa0dce3f062cea2295795b75d191. I still need to chase down where this comes from though.

This may actually be something related to the switch to GLES from OpenGL. GL_R16F seemed to work fine with a ushort in OpenGL, but may be out-of-spec for GLES. I might have to do a half-float conversion on the backend here? Still investigating.

Alright, I put in a bunch of fixes related to texture formats! Looks like there was a good bit of mess related to GL 16 bpp textures, and that should be pretty cleaned up now :)
I did see that screenshots don't seem to be working right now on my WSL setup, so I'll look into that a bit as well. But overall, I think this should behave a bit better! Let me know if these changes fix anything for you :)
A note for rust bindings, this does change some values on the tex_format_ enum.

It's better. tex_set_colors works fine with R16f
Renderer::screenshot do not flood the log any more.
On the Quest 2 : I only have this single line
StereoKit: [sk_gpu] skg_tex_get_mip_contents_arr: eating a gl error from somewhere else: 1282
On linux/simulator :  These 2 lines
[SK error] [sk_gpu] API/ERROR - 0x1 - GL_INVALID_OPERATION in glBlitFramebuffer(destination samples must be 0) [SK warning] [sk_gpu] skg_tex_get_mip_contents_arr: eating a gl error from somewhere else: 1282

On linux it creates a file with the right size but nothing inside ( the tiles of transparent background only). On the quest I have no clue where it should create the file.

Ok, cool! Thanks for that :) I think this PR should fix the screenshot issue now.

Yes !! Well done !


fix(slate): fix insert/remove element edgecase bug in slate

Closes #5928

@razvanMiu which issue does this PR fix? See Item 2, second bullet point in Create a pull request from your fork.

@razvanMiu at least copy and paste the error stack into the PR, or better yet, create an issue with the error stack after searching the issue tracker for the error message. Someone else might have reported it or is already working on it, which could save you some time and effort.
I can write up a description, once you paste the error stack, so I don't have to transcribe the videos.
Sometimes the English language can get in the way of doing good work, and if so, if it's easier to write it in your preferred language, we can use a translation service to translate it to English.

@razvanMiu at least copy and paste the error stack into the PR, or better yet, create an issue with the error stack after searching the issue tracker for the error message. Someone else might have reported it or is already working on it, which could save you some time and effort.
I can write up a description, once you paste the error stack, so I don't have to transcribe the videos.
Sometimes the English language can get in the way of doing good work, and if so, if it's easier to write it in your preferred language, we can use a translation service to translate it to English.

I created an issue

@razvanMiu thank you! That's an excellent write-up.
@plone/volto-team all green and ready for review!


Installation issues with v2.0

I'm having some serious installation issues with ESMVAlTool in developper mode today.
I've followed these instructions: https://docs.esmvaltool.org/en/latest/community/introduction.html
Basically, it boils down to this:
1. cd ESMValTool
2. conda update -y conda
3. conda env create --name esmvaltool --file environment.ym
4. conda activate esmvaltool
5. pip install -e '.[develop]'
6. cd ./ESMValCore
7. conda env update --name esmvaltool --file environment.yml
8. pip install -e '.[develop]'

The strange this is that I now have two versions installed.
In the ESMValCore directory, I get the new help interface:
[ldemora@jasmin-sci2 ESMValCore]$ esmvaltool --help
INFO: Showing help with the command 'esmvaltool -- --help'.

NAME
    esmvaltool - A community tool for routine evaluation of Earth system models.

SYNOPSIS
    esmvaltool GROUP | COMMAND

DESCRIPTION
    The Earth System Model Evaluation Tool (ESMValTool) is a community
    diagnostics and performance metrics tool for the evaluation of Earth
    System Models (ESMs) that allows for routine comparison of single or
    multiple models, either against predecessor versions or against
    observations.

    Documentation is available at https://docs.esmvaltool.org.

    To report issues or ask for improvements, please visit
    https://github.com/ESMValGroup/ESMValTool.

GROUPS
    GROUP is one of the following:

     config
       Manage ESMValTool's configuration.

     recipes
       List, show and retrieve installed recipes.

COMMANDS
    COMMAND is one of the following:

     run
       Execute an ESMValTool recipe.

     version
       Show versions of all packages that conform ESMValTool.

but in my working directory and in ESMValTool, I get the old one:
[ldemora@jasmin-sci2 run]$ esmvaltool --help
usage: esmvaltool [-h] [-v] [-c CONFIG_FILE] [-s] [--max-datasets MAX_DATASETS] [--max-years MAX_YEARS] [--skip-nonexistent]
                  [--diagnostics [DIAGNOSTICS [DIAGNOSTICS ...]]] [--check-level {strict,default,relaxed,ignore}]
                  recipe

______________________________________________________________________
          _____ ____  __  ____     __    _ _____           _
         | ____/ ___||  \/  \ \   / /_ _| |_   _|__   ___ | |
         |  _| \___ \| |\/| |\ \ / / _` | | | |/ _ \ / _ \| |
         | |___ ___) | |  | | \ V / (_| | | | | (_) | (_) | |
         |_____|____/|_|  |_|  \_/ \__,_|_| |_|\___/ \___/|_|
______________________________________________________________________

ESMValTool - Earth System Model Evaluation Tool.

http://www.esmvaltool.org

CORE DEVELOPMENT TEAM AND CONTACTS:
  Veronika Eyring (PI; DLR, Germany -<EMAIL_ADDRESS>  Bouwe Andela (NLESC, Netherlands -<EMAIL_ADDRESS>  Bjoern Broetz (DLR, Germany -<EMAIL_ADDRESS>  Lee de Mora (PML, UK -<EMAIL_ADDRESS>  Niels Drost (NLESC, Netherlands -<EMAIL_ADDRESS>  Nikolay Koldunov (AWI, Germany -<EMAIL_ADDRESS>  Axel Lauer (DLR, Germany -<EMAIL_ADDRESS>  Benjamin Mueller (LMU, Germany -<EMAIL_ADDRESS>  Valeriu Predoi (URead, UK -<EMAIL_ADDRESS>  Mattia Righi (DLR, Germany -<EMAIL_ADDRESS>  Manuel Schlund (DLR, Germany -<EMAIL_ADDRESS>  Javier Vegas-Regidor (BSC, Spain -<EMAIL_ADDRESS>  Klaus Zimmermann (SMHI, Sweden -<EMAIL_ADDRESS>
For further help, please read the documentation at
http://esmvaltool.readthedocs.io. Have fun!

positional arguments:
  recipe                Path or name of the yaml recipe file

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         return ESMValTool's version number and exit
  -c CONFIG_FILE, --config-file CONFIG_FILE
                        Config file
  -s, --synda-download  Download input data using synda. This requires a working synda installation.
  --max-datasets MAX_DATASETS
                        Try to limit the number of datasets used to MAX_DATASETS.
  --max-years MAX_YEARS
                        Limit the number of years to MAX_YEARS.
  --skip-nonexistent    Skip datasets that cannot be found.
  --diagnostics [DIAGNOSTICS [DIAGNOSTICS ...]]
                        Only run the named diagnostics from the recipe.
  --check-level {strict,default,relaxed,ignore}
                        Configure the severity of the errors that will make the CMOR check fail. Optional: true; Possible values:
                        ignore: all errors will be reported as warnings relaxed: only fail if there are critical errors default:
                        fail if there are any errors strict: fail if there are any warnings

Of course, this means that I'm also unable to use either version.
How can it go so wrong? Have the installation instructions been updated with the new command line interface?

esmvaltool should be the one and only and single executable, that calls the CLI utilities; look for which esmvaltool; also I suggested you install first Core than Tool, you did exactly the opposite; I am repeating your steps and see what I get :beer:

OK I have repetead exactly the same steps as yours and can not replicate the issue: esmvalcore is indeed the release v2:
(esmvaltool3) valeriu@valeriu:~/ESMValTool$ conda list esmvalcore
# packages in environment at /home/valeriu/miniconda3/envs/esmvaltool3:
#
# Name                    Version                   Build  Channel
esmvalcore                2.0.0                     dev_0    <develop>

and previously before installing it from source it came from the installation of ESMValTool (from the conda package) that is still older one:
(esmvaltool3) valeriu@valeriu:~/ESMValCore$ conda list esmvalcore
# packages in environment at /home/valeriu/miniconda3/envs/esmvaltool3:
#
# Name                    Version                   Build  Channel
esmvalcore                2.0.0b9                    py_0    esmvalgroup

which is the correct behaviour. For the executable you should have something that is common to both tool and core and sits in the conda bin dir eg:
(esmvaltool3) valeriu@valeriu:~/ESMValTool$ which esmvaltool
/home/valeriu/miniconda3/envs/esmvaltool3/bin/esmvaltool

and nothing local in any of your work dirs. Are you sure you're not mixing paths or your installation of esmvalcore has silently failed? What do you get when you type:
conda -V
which esmvaltool
conda list esmvalcore
conda list esmvaltool

:beer:

(ar6) [ldemora@jasmin-sci2 run]$ conda -V
conda 4.8.3

(ar6) [ldemora@jasmin-sci2 run]$ which esmvaltool
~/anaconda3_20190821/envs/ar6/bin/esmvaltool

(ar6) [ldemora@jasmin-sci2 run]$ conda list esmvalcore
# packages in environment at /home/users/ldemora/anaconda3_20190821/envs/ar6:
#
# Name                    Version                   Build  Channel
esmvalcore                2.0.0                     dev_0    <develop>

(ar6) [ldemora@jasmin-sci2 run]$ conda list esmvaltool
# packages in environment at /home/users/ldemora/anaconda3_20190821/envs/ar6:
#
# Name                    Version                   Build  Channel
esmvaltool                2.0.0b4                   dev_0    <develop>

(ar6) [ldemora@jasmin-sci2 run]$ conda list ar6
# packages in environment at /home/users/ldemora/anaconda3_20190821/envs/ar6:
#
# Name                    Version                   Build  Channel
(ar6) [ldemora@jasmin-sci2 run]$

The order of installing tool then core is what the installation instructions advise: https://docs.esmvaltool.org/en/latest/community/introduction.html

well I see you are in the ar6 conda environment but all your env creation and installation steps were done in esmvaltool, which one is it then? Also no need to conda list <env> - if you want to check all your installed packages in current env it's just conda list

No, it was all done in ar6. I just wrote esmvaltool here to keep it clear.
I thought that the problem what that my esmvalcore was taking some strange behaviour from old commits, so I re-did everything with a fresh master branch and I have the same problem again.

OK I repeated your steps in the AR6(private) branch too - all fine. What exactly is the problem you are encountering again?

esmvaltool should be the one and only and single executable, that calls the CLI utilities; look for which esmvaltool; also I suggested you install first Core than Tool, you did exactly the opposite; I am repeating your steps and see what I get 🍺

If we need to install core first, then the read the docs installation instructions are wrong.

So, I just ran though this yet again on jasmin sci2.

I updated conda.
Created a new local master branch from remotes/origin/master in core and in ESMValTool-AR6.
Created a new environment with the ESMValCore's environment.yml in a newly created local copy of the master branch.
installed core in develop mode
Updated the new conda environment from the esmvaltool-ar6 environment.yml from a new local copy of  remotes/origin/master.
installed esmvaltool-ar6 in develop mode.
created a new working directory (run2)

I did all this in a new tmux terminal, and was going to copy paste the output, but somehow manged to delete the tmux session instead.
I then tried to run esmvaltool with both of these two commands. The new method:

(ar6v2) [ldemora@jasmin-sci2 run2]$ esmvaltool run --config_file config-user.yml recipe_ocean_basin_profile_bias.ym
l
usage: esmvaltool [-h] [-v] [-c CONFIG_FILE] [-s] [--max-datasets MAX_DATASETS] [--max-years MAX_YEARS]
                  [--skip-nonexistent] [--diagnostics [DIAGNOSTICS [DIAGNOSTICS ...]]]
                  [--check-level {strict,default,relaxed,ignore}]
                  recipe
esmvaltool: error: unrecognized arguments: --config_file config-user.yml recipe_ocean_basin_profile_bias.yml

and then the old one:
esmvaltool -c config-user.yml recipe_ocean_basin_profile_bias.yml       [5/161]2020-07-03 09:18:21,037 UTC [43262] INFO
______________________________________________________________________
          _____ ____  __  ____     __    _ _____           _
         | ____/ ___||  \/  \ \   / /_ _| |_   _|__   ___ | |
         |  _| \___ \| |\/| |\ \ / / _` | | | |/ _ \ / _ \| |
         | |___ ___) | |  | | \ V / (_| | | | | (_) | (_) | |
         |_____|____/|_|  |_|  \_/ \__,_|_| |_|\___/ \___/|_|
______________________________________________________________________

ESMValTool - Earth System Model Evaluation Tool.

http://www.esmvaltool.org

CORE DEVELOPMENT TEAM AND CONTACTS:
  Veronika Eyring (PI; DLR, Germany -<EMAIL_ADDRESS>  Bouwe Andela (NLESC, Netherlands -<EMAIL_ADDRESS>  Bjoern Broetz (DLR, Germany -<EMAIL_ADDRESS>  Lee de Mora (PML, UK -<EMAIL_ADDRESS>  Niels Drost (NLESC, Netherlands -<EMAIL_ADDRESS>  Nikolay Koldunov (AWI, Germany -<EMAIL_ADDRESS>  Axel Lauer (DLR, Germany -<EMAIL_ADDRESS>  Benjamin Mueller (LMU, Germany -<EMAIL_ADDRESS>  Valeriu Predoi (URead, UK -<EMAIL_ADDRESS>  Mattia Righi (DLR, Germany -<EMAIL_ADDRESS>  Manuel Schlund (DLR, Germany -<EMAIL_ADDRESS>  Javier Vegas-Regidor (BSC, Spain -<EMAIL_ADDRESS>  Klaus Zimmermann (SMHI, Sweden -<EMAIL_ADDRESS>
For further help, please read the documentation at
http://esmvaltool.readthedocs.io. Have fun!

2020-07-03 09:18:21,039 UTC [43262] INFO    Using config file /home/users/ldemora/workspace/ESMValTool_AR6/run2/con
fig-user.yml
2020-07-03 09:18:21,040 UTC [43262] INFO    Writing program log files to:
/group_workspaces/jasmin2/ukesm/ldemora/ESMValTool_output/recipe_ocean_basin_profile_bias_20200703_091819/run/main_
log.txt
/group_workspaces/jasmin2/ukesm/ldemora/ESMValTool_output/recipe_ocean_basin_profile_bias_20200703_091819/run/main_
log_debug.txt
2020-07-03 09:18:22,045 UTC [43262] INFO    Maximum memory used (estimate): 0.0 GB
2020-07-03 09:18:22,046 UTC [43262] INFO    Sampled every second. It may be inaccurate if short but high spikes in
memory consumption occur.
2020-07-03 09:18:22,051 UTC [43262] ERROR   Program terminated abnormally, see stack trace below for more informati
on
Traceback (most recent call last):
  File "/home/users/ldemora/anaconda3_20190821/envs/ar6v2/lib/python3.8/site-packages/esmvalcore/_main.py", line 24
2, in run
    conf = main(args)
  File "/home/users/ldemora/anaconda3_20190821/envs/ar6v2/lib/python3.8/site-packages/esmvalcore/_main.py", line 17
6, in main
    process_recipe(recipe_file=recipe, config_user=cfg)
  File "/home/users/ldemora/anaconda3_20190821/envs/ar6v2/lib/python3.8/site-packages/esmvalcore/_main.py", line 18
3, in process_recipe
    raise OSError(errno.ENOENT, "Specified recipe file does not exist",
FileNotFoundError: [Errno 2] Specified recipe file does not exist: '/home/users/ldemora/workspace/ESMValTool_AR6/ru
n2/recipe_ocean_basin_profile_bias.yml'

Could it be a specific issue with the esmvaltool-ar6 private branch?

No, it was all done in ar6. I just wrote esmvaltool here to keep it clear.

So I'm not sure if this is helpful but when I installed to ESMValTool in the past in an environment with a different name than "esmvaltool" I also needed to manually change the name in the environment.yml file (both of them). Else it used to install/update the environment mentioned in the environment.yml file.

Surely you should be able to overwrite the environment name with the --name flag?
conda env create --name new_env--file environment.yml

on Jasmin at the moment, installing the AR6/master as @ledm has tried, will report back in a jiffy with me findings :beer:

OK - so I repeated exactly the same steps that @ledm has followed and posted in the OP and ran the preprocessing test recipe no problemo:
(esmvaltool-ar6-master) [valeriu@jasmin-sci2 esmvaltool_var_test]$ esmvaltool run recipe_preprocessor_test.yml --config-file config-user-cmip6.yml

entering/exiting source dirs for esmvaltool/esmvalcore does not change the help message (??) - @ledm you need to tell me what exactly is your issue by posting a Traceback here, not simply by telling me it ain't working :beer:

I've been trying to install ESMValTool-AR6 without ESMValCore right now. Even installing the ESMValTool-AR6 master seems to give me the old interface.
I just need something, anything, so I can continue to work. Haven't been able to make any progress on IPCC stuff for two weeks. That September deadline is looming.
I've just hit the JASMIN home directory space limit. Is there any chance that conda evn create can fail silently if it runs out of space?

I am having similar issues with the container. The main issue here is that conda always install its esmvalcore package
The solution for me is to rerun the pip install ... for ESMValCore after installing ESMValTool in development mode

no, if you install esmvaltool (and the installation will install esmvalcore as conda package, of course) then install esmvalcore from source, locally with pip install then the conda esmvalcore package will be switched to the develop pip installed one

OK so @ledm and myself went together through a test install in his $HOME dir and noticed the following:

install esmvalcore from source with pip -> all good, 2.0.0 installed;
conda update the env for esmvaltool and then install esmvaltool -> bad, it will pick up 2.0.0b9 again;
go back and reinstall esmvalcore from source - still bad, 2.0.0b9 still picked up;

Proves out that conda always prefers the target-compiled version from /envs/env/lib/pythonX.X/site-packes and Lee had a 2.0.0b9 there so blowing up ~/anaconda/envs/esmvaltool/lib/python3.8/site-packages/esmvalcore did the trick

OK so here is the synopsis in @ledm case:

install esmvalcore from source -> all OK;
update the env for esmvaltool -> it will create a dir eg ~/anaconda3R/envs/esmvaltool-ar6-master/lib/python3.8/site-packages/esmvalcore/ since it thinks it needs esmvalcore
go back and re-install esmvalcore -> it will pick up the versioning from the /lib/site-packages version and use that all over

I honestly don't know why this is happening since I would expect conda not to install esmvalcore at env update stage since it's already there; but I know we should add a note in the documentation asking the user to manually blow up the /site-packages/esmvalcore dir in case this may happen to others - @ledm or @bouweandela or @jvegasbsc care to do that pls :beer:

What works for me is :
rm -r ~/anaconda3*/envs/*/lib/python3.8/site-packages/esmvalcore

I honestly don't know why this is happening since I would expect conda not to install esmvalcore at env update stage since it's already there;

See conda doc: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#installing-non-conda-packages
They prioritize conda packages over pip, so that's the reason.
I think that we may remove esmvalcore from the environment.yml file and add a first step asking the developers to install esmvalcore first, giving them two options:

From conda, with the instruction to create the environment and such
In development mode, with a link to ESMValCore instructions

Unfortunately I'm not able to reproduce @ledm's issue on my own computer.

OK so @ledm and myself went together through a test install in his $HOME dir and noticed the following:
install esmvalcore from source with pip -> all good, 2.0.0 installed;
conda update the env for esmvaltool and then install esmvaltool -> bad, it will pick up 2.0.0b9 again;
go back and reinstall esmvalcore from source - still bad, 2.0.0b9 still picked up;

I would recommend following the instructions here and as summarized by @ledm at the top of this issue, instead of trying to reverse the order.

I think that we may remove esmvalcore from the environment.yml file and add a first step asking the developers to install esmvalcore first

I think it would be better to keep it as is. Many diagnostic developers do not need to install ESMValCore from source, but can use the released version. This has the advantage that they have a stable (and slightly better tested) version of ESMValCore to develop their diagnostic with, so it will give a better user experience.

The same problem as @ledm when following instructions here as recommended by @bouweandela. Proposed 'solution' by @ledm works for me as well.

good stuff @bascrezee - @bouweandela the order does not matter, more so when one reinstalls at the second or third iteration, the essence of the problem is conda being authoritative and annoying. Now, more importantly, @ledm and @bascrezee each owe me a weissbier and I am going to close the issue since we fixed it - do we want to add a note in the documentation? :beer:


data device

import jittor as jt
jt.flags.use_cuda = 1
a = jt.float32([1,2,3]*10)
b = jt.float32([4,5,6]*10)
for i in range(1):
    c = a*b
    print(c)
    print(c.data)

currently I use your example. When use_cuda =1, the data is stored in gpu, this is correct. But is there any ways to store the data in cpu even though I specify the use_cuda flag to one. And also, I see there is no information about the device in printinfo. Is there any methods about how to specify the data device?

Thanks for reporting, Jittor uses unified memory to manage cpu and gpu memory and do not need to manually specify the device. When you call a.data, the data will be automatically stored in the cpu.

@Gword thx for your answer.
I agree that .data can partly perform the function like .cpu() in pytorch. But is there any functions like .device to perform more options. Sometimes we want to assign gpu id on tensors when training on multi-gpus.

Very sorry, Jittor is currently working on multi-gpus and distributed training, and it is expected to support it next month. If you are interested, please pay attention to our later news. Thank you!

@Gword
thx for your team's great work. I really appreciate for your code.
BTW, I notice the your cudnn's implementation in external/cuda/cudnn/ops/cudnn_conv_op.cc does not use tensor core for fp16, though you have datatype half.
I think it is better to add tensor core's support if you want to increase the efficiency.

Thanks for your suggestion, we are working on it.