Add Scheduler class to schedule API queries based on MAX CONCURRENT QUERIES

implemented in: https://github.com/kevinxin90/biomedical_id_resolver.js/commit/fa56046e1fa34ae5a30001029164798c8b571371

implemented in: https://github.com/kevinxin90/biomedical_id_resolver.js/commit/fa56046e1fa34ae5a30001029164798c8b571371


How to build testnet-single-host-multinode and let nodes take turns to produce blocks?

Hi, I followed this tutorial trying to build single host multi node: https://github.com/EOSIO/eos/wiki/Testnet-Single-Host-Multinode, but realized once the second node starts to produce blocks, the first node stops doing so. How can I let nodes take turns to produce blocks? Thanks.

@kristieguo
The answer is here:
https://github.com/EOSIO/eos/wiki/Tutorial-Bios-Boot-Sequence


Daily Allowance

Set Daily Allowance
Add to "Required Confirmations" tab ability to set a number in USD as a "Daily allowance" (or whatever fiat currency is selected in the asset view).
I would suggest renaming the "Required Confirmations" tab to "Spending Policies" or "Policies".
Suggested text: "Select the amount that can be sent daily without confirmations. Click here (https://tracker.kyber.network/#/tokens) for a list of assets that fall under the daily allowance."
Show "Remaining allowance"
Progess bar - like visualisation of how many funds can still be spent today as part of the daily allowance

To keep this feature simple for now, we should not adopt the Send / Tx list screens for the first implementation. But if you already have ideas on how the daily allowance can be communicated throughout other flows, feel free to work on them, too.
How it will work
The USD (Fiat) amount will be converted into an ETH amount using the Maker price oracle and then converted into individual ERC-20 limits using the Kyber price feeds. If an asset transfer is smaller than any of these limits (ETH or ERC-20), it will automatically be executed even if the threshold is >1.

@posthnikova It seems to be possible to set daily allowances for each ERC-20 token individually.
I'm not sure what would be more desirable from a UX perspective:

Set Daily allowance in $ which is then applied to all assets and...
1a. being able to edit individual allowances
2a. only able to edit the $ amount

Add/edit daily allowance for each asset individually.

I would currently lean towards 2. but not 100% convinced yet.

Changes after UX sync:

Required confirmations and allowances are now in the same tab, USD amounts removed: https://invis.io/C8TFLRFU4ZV#/392214610_Settings_-Spending_Policies

Editing number of confirmations: https://invis.io/C8TFLRFU4ZV#/392214612_Spending_Policies_-Modify_Confirmations
Editing allowance: https://invis.io/C8TFLRFU4ZV#/392214611_Spending_Policies_-_Modify_Allowance

When there is one owner, the table is inactive: https://invis.io/C8TFLRFU4ZV#/392214609_Settings_-Spending_Policies-1_Owner-_

Other flows. When sending, show remaining limit which recalculates as you enter amount: https://invis.io/C8TFLRFU4ZV#/392214608_Send_Funds_-address_Entered-_

When amount exceeds limit, show 0: https://invis.io/C8TFLRFU4ZV#/392214607_Send_Funds_-address_Entered-_Copy
On Review, when the amount is within limit, show checkmark "Execute transaction": https://invis.io/C8TFLRFU4ZV#/392214606_Send_Funds_-Review. When limit is exceeded, show 0: https://invis.io/C8TFLRFU4ZV#/392214605_Send_Funds_-Review-limit_Exceeded-_
In tx details the timeline changes, it says "Confirmed within daily allowance": https://invis.io/C8TFLRFU4ZV#/392214613_Tx_Details_-Outgoing-unknown_Address-_. When limit is exceede, show tx details as usual.

Changes after UX sync:

Send funds - within limit https://invis.io/C8TFLRFU4ZV#/392214608_Send_Funds_-address_Entered-_
Show remaining limit as static info above the amount field

Send funds - limit exceeded https://invis.io/C8TFLRFU4ZV#/392214607_Send_Funds_-address_Entered-_Copy
Again, show it as static info

Review - within limit https://invis.io/C8TFLRFU4ZV#/392214606_Send_Funds_-Review
Don't show limit. Bottom text changed

Review - limit exceeded https://invis.io/C8TFLRFU4ZV#/392214605_Send_Funds_-Review-limit_Exceeded-_
Don't show limit, show "Execute" checkbox

Tx details - within limit https://invis.io/C8TFLRFU4ZV#/392214613_Tx_Details_-Outgoing-unknown_Address-_
Remove timeline, show "Confirmed within daily allowance" and owner

Changes after UX sync:

Removed "Execute" checkbox https://invis.io/C8TFLRFU4ZV#/392214605_Send_funds_-Review-limit_exceeded-_-2x

Added text about creating transaction and paying fee https://invis.io/C8TFLRFU4ZV#/392214612_Spending_Policies_-Modify_Confirmations
https://invis.io/C8TFLRFU4ZV#/392214611_Spending_Policies_-_Modify_Allowance

Looks good to me.

Designs are merged with existing on zeplin. Affected screens:
Spending policies: https://zpl.io/25xNyZo
Modify confirmations: https://zpl.io/VK6E0pX
Modify allowance: https://zpl.io/a7xOK5q
Spending policies (1 owner): https://zpl.io/2GwypG4
Send funds (empty fields): https://zpl.io/bzLwY0G
Send funds (amount entered): https://zpl.io/boPW1mX
Send funds - Review (limit exceeded) nothing changes: https://zpl.io/bP1r4lD
Send funds - Review (within limit) description changes: https://zpl.io/2pj4oY8
Tx Detail - Outgoing (within limit): https://zpl.io/2jRQ8wm


Filter which images/containers should be cached

While I love the action and use it in our CI projects, I'm a bit concerned if it isn't "overzealous" with caching images.
Allow me to show a few examples of my concern. All snippets are part of a docker compose yml file.

Container (service in the yml file) has the following property: image: some/dockerimage:latest. Will the docker-cache action always see it as a cache-hit scenario, even if dockerimage:latest is updated.
Container does NOT have the image property, but instead build with context and args etc. Generally, it builds an image straight from codebase (repo). Will such container be ever considered for caching?

These 2 concerns got me thinking that perhaps an option to exclude specified service/container names from caching would be a nice feature.
Or perhaps I could just put the step that launches the containers with build before the docker-cache step?

I moved this issue to the docker-cache repository. docker-cache doesn't read any of your source files. It considers the cache to have hit if and only if the provided key identically matches a key for which you have a cache saved. It currently caches anything listed by docker image list --format "{{ .Repository }}:{{ .Tag }}" that is present during the post step at the end of your job but wasn't present during the main step when you called docker-cache. Hence, as you suggested, it should be called after any steps that build or pull Docker images that you don't wish to cache and before any steps that build or pull Docker images that you do want to cache. The official Docker build push action performs Docker layer caching, so it is better suited to caching built images. Please let me know if that doesn't address your concerns.

Please feel free to comment if this didn't address your concerns. Tentatively closing this for now.


Add caller-specified error for ApprovalController.clear

ApprovalController.clear rejects all pending approvals and clears the state of the controller. It specifies a default error, which is useful, but clear may be called in particular contexts calling for particular errors. Therefore, this PR adds the "rejection error" as a parameter with a default value to the clear method.

Was there a specific scenario you had in mind originally?

@Gudahtt not really, I was just trying to make the error agnostic of the reason for clear being called. A generic error seems like a reasonable default?


Paper edit suggestion

Changes:

Remove mentioning of "desktop" GUI applications since x11docker can be used with "server" GUI applications.
Change link for Docker from Wikipedia page to Docker's official website.
Arguably, container and virtualization is not technically completely different. E.g. para-virtualization. So, deleted the "completely" word.
"dependency packaging" and "minimal requirements of system environment (i.e. only the container runtime)" are not properties of containers. So, removed from the relevant sentence. Probably this can be added elsewhere or start a new sentence for them.
Mirror changes

Please free feel to drop partially/wholly the modification suggested as I agree that the changes might be controversial.

@yxliang01
Thank you! It looks better now, indeed.
I did three changes afterwards:

I changed affiliations: "None" to "No affiliations". I just thought the "None" under my name in the title looks ugly.
I removed "Germany" from "name" to fix the issue in the paper foot line.
I have reworded the last paragraph about supported systems and x11docker-gui to make it more clear.


feat: DIA-993: add health and ready endpoints

Commit https://github.com/HumanSignal/infra/commit/313cef7e113e4257af30e29086f43d9fa2dbaf2f is created.

Commit https://github.com/HumanSignal/infra/commit/2dfff7c45d0f7f089d630e2801bf766a025818d9 is created.

Commit https://github.com/HumanSignal/infra/commit/bc312f0f756dc7b12fd214f03176ff50924e47f3 is created.


Missing ArrayBuffer type on getDocument function arguments

Configuration:

PDF.js version: 2.15.349

Steps to reproduce the problem:

I updated from 2.5.207 to 2.15.349
In 2.5.207 I pass an ArrayBuffer as an argument, but in 2.15.349 TypeScript block me because ArrayBuffer is not expected as argument type.

Forcing typescript everything works fine.
I think maybe you have forgotten to add the ArrayBuffer to the arguments.
getDocument type:
https://github.com/mozilla/pdfjs-dist/blob/80e9ead6a60fd3a53c2795fab864101962250dff/types/src/display/api.d.ts#L628
getDocument function:
https://github.com/mozilla/pdfjs-dist/blob/80e9ead6a60fd3a53c2795fab864101962250dff/lib/display/api.js#L83
https://github.com/mozilla/pdfjs-dist/blob/80e9ead6a60fd3a53c2795fab864101962250dff/lib/display/api.js#L91

[...] but in 2.15.349 TypeScript block me because ArrayBuffer is not expected as argument type.

Note that it's trivial to work-around this in your code, by simply creating a TypedArray instead (containing your ArrayBuffer) before calling getDocument.
This is actually what the PDF.js code does (and have always done), when an ArrayBuffer is provided: https://github.com/mozilla/pdf.js/blob/8bad06f1580f8235c0ab4038d9211587dd39a9b5/src/display/api.js#L307-L308

As mentioned above, using an ArrayBuffer has never been officially documented as being supported. Generally speaking, for any piece of software, unless something is explicitly documented as being supported it's usually not a good idea to assume/expect that it should work (even though in practice it might).
Hence this isn't really a bug, as far as I'm concerned, but rather a request for a new feature; i.e. for getDocument to officially support ArrayBuffers.
Adding support for this wouldn't be limited to just tweaking a couple of JSDoc comments, but would obviously also require adding test-cases. Given that it's trivial for the user to wrap an ArrayBuffer into e.g. a Uint8Array, I'm thus not completely sure if any changes are necessary here?

I solved the problem, as you said by wrapping the arrayBuffer in a Uint8Array.
I had a doubt because looking at the code you do a check on the arrayBuffer's byteLenght property and I
assumed you ran those too.


Sorting tests

Hey Jen,
I made a start on some stricter and comprehensive sorting tests (issue #12) because I ran into #13 and figured I'd best add some tests to demonstrate the problem before fixing it (and proving it fixed). This is still pretty rough as I didn't quite feel up to the task of integrating the sorting tests in all the existing tables.
What might be sensible is replacing the current table that tests are performed on with this one, as I think it contains all the relevant and obvious things that can break, with minimal stuff attached. Then, when we run into specific situations later, adding a row or column is not that much of a problem.
Anyway, would like to hear thoughts and suggestions. I've got some time before Christmas that I can spend on updating some more tests :-)

hey thanks - I'll have a chance to look at all this this weekend I hope. Just wanted to make sure you know I saw this!

I'm closing this PR for now. I have another set of changes to the tests that are way less difficult as they simple update the current tests a bit. I also ran across a limitation in timbles that prevents this particular test suite from working for all ways to load data, so I'll open an additional issue for that. More filters for data loading, whoo!


Float being sent with comma rather than decimal point

Hi,
I've had a bug request from a german customer, which turns out to be due to my CSharpClient sending floats like this in URL's:
&reach=619%2C563522438208
... where the %2C is a url-encoded comma. The server is expected a decimal point and so won't parse the URL.
In my generated client, the code looks like this:
urlBuilder_.Append("reach=").Append(System.Uri.EscapeDataString(reach.ToString())).Append("&");
... so that problem here is that ToString() will be formatting the number with a comma due to the German culture settings of the client.
I'm pretty sure that Json.NET would have serialised with a decimal point. I can't find anywhere stating 100% that decimals should always use decimal point characters in URLs, but there is a bit of a discussion here
Would be great if there was a central place where I could provide my generated client with a culture to be used an all ToString() calls?

Hmm good idea, maybe we should generate only ToLocaleString(this.locale) and this.locale is a member on the client class with default "en-us"?

Yep sounds like a plan.

Just checked the templates, we use culture invariant for all tostring() calls. Your code is not generated with the latest version of nswag. What version are you using?

Yep I was using 10.6. I will update to the latest, thanks.


CSRF in API method "comment"

Exploit example: https://jsfiddle.net/j37bvLzt/
<body onload='document.forms[0].submit()'>
  <form method='POST' enctype='text/plain' action="https://demo.remark42.com/api/v1/comment">
    <input name='{"text":"CSRF!","locator":{"site":"remark","url":"https://remark42.com/demo/"}}' value=''>
  </form>
</body>

Thx a lot. Added protection for all calls with auth as well as for any "semi-open" calls like /find


Maya: NewScene should reset the context

Describe the bug
After publishing (or just saving a workfile) context of a Maya session is set. When artist is done and moving to another task context of the session is kept even after pressing CTRL+N for a NewScene and all data generated by OP are sort of spoiled by wrong data
To Reproduce

set the context of the current Maya session by saving a workfile or publish
press CTRL +N

see that context of previous operation is kept

Expected behavior
New scene should reset the context
[cuID:OP-2830]

New scene should reset the context

Should reset the context to where? :)
For me it works as expected.

Launch into Hero
Context is Hero
Work Files save into Villain
Context is Villain
New File context remains Villain

To me this is expected behavior?

with New Scene I expect to have a clean scene.

What is that clean scene? What context would that be?

When modelling in Maya for example I publish a model and move to another one.

How are you moving to another one?

While modelling and creating new Model instance it will get attributes from previous context.

This is not the case, right? Unless you kept open the Creator UI (and thus the asset field never got updated?) or you created the model before saving into the new context and thus you had never switched the context to the new asset in the first place?

as new Publisher is actually addressing this perfectly.

Could you briefly explain how the new Publisher is solving this issue?


Allow to define custom certificate validity

Allow to define a custom value for openssl's "days" parameter

As from 79b0346, you can set the DAYS envvar. Take a look in the README.md file.


Thumbnail and logo images don't display

Hi Baptiste,
Thank you for your nice theme. I have only two issues.

The thumbnail images from each portfolio entry don't display on the portfolio overview page. The latest project doesn't show on home. The logo (my pic) from config.toml doesn't display.

designs, techs, projectUrl, jobDate and testimonial (commented out) don't appear on each portfolio. This was already missing from the sample project.

Here are my code and gh pages:
https://github.com/evahamburgcodingschool/portfolio
https://evahamburgcodingschool.github.io/portfolio/
Thanks in advance for your time and help
Eva

Set it up all over again. That solved issue 2, but issue 1 persists. I might not have the right path to the images. What is odd is it worked nicely on my computer until I made the git commit and set up gh-pages. Now, it does not work locally any more either.
Here is the new code:
https://github.com/evahamburgcodingschool/portefeuille
https://evahamburgcodingschool.github.io/portefeuille/
TIA Eva

Hi Eva,
Sorry for the late response.
As indicated in the issue #14, you should have a look at Hugo's documentation for hosting on Github pages to implement your website on Github pages.
Cheers
Baptiste

Hi Baptiste,
Thank you for taking the time to reply. I have followed the documentation to host the Github pages via the "Deployment of Project Pages From Your gh-pages branch" path. I made sure that I have the correct baseURL (.github.io//).
Nevertheless, the way the public folder is populated,  is missing in the image src's, e.g. it is
https://.github.io/image-folder/image-name.jpg
but it should be
https://.github.io//image-folder/image-name.jpg
What's the best fix?
Cheers, Eva

I guess this is a problem of deployment or settings in GH.
Sorry I can't further help as I'm using Netlify

Thanks for your reply. It must have been a deployment error on GitHub Pages. I simply changed all src manually in the index.html files of the gh-pages branch. Not an elegant solution but it displays what needs to be displayed.


How do I retrieve the content in its current state?

I’d like to allow for users to save their content in a way that Draft will recognize when loaded again. What is the recommended way to retrieve the content in its current state? I assume the content would look something like this?

To retrieve the raw data call this:
var rawData = Draft.convertToRaw(editorState.getCurrentContent())
To create an EditorState from the raw data:
var contentState = Draft.ContentState.createFromBlockArray(Draft.convertFromRaw(rawData))
var editorState = Draft.EditorState.createWithContent(contentState)

Fabulous. Thanks so much!

:)

Is there a way to get rawContent mapped to HTML with our already defined decorators, styleMaps, blockStyleFns, etc

Since we don't use markup or markdown to store rich content at Facebook, I haven't built any such utilities for this repo. (Since I wouldn't want to build and release something we aren't using in prod on FB.)
Feel free to create such a utility, though -- I'm sure there will be others who need it too.
If you just need to render your content statically within React, you can use the readOnly prop on Editor.

Thanks for your quick reply. Will do!

@cogell , +1 for retrieve HTML content util
@hellendag , wondering how you handle rich content at FB :)

@hellendag @cogell I'm going to start working on conversion utilities for both Markdown and HTML this evening. I'll submit a PR when they're done, in case they are useful for the project.

@brwr Thanks, I haven't had time to start anything on that utility. Happy to review and be of assistance since I'll need this moving forward on my project as well.

Here is a gist that converts DraftJS raw block data to HTML:
https://gist.github.com/davisml/2b5184f64c59eb3745fd
Supports H1, H2, blockquote, ul, ol, strong, em and underline styles mapped to the rich text example. Uses AttributedString.js (https://github.com/cohitre/attributedString.js) to format the style ranges.

Not sure why but the only way I was able to restore state was by skipping the middle step in the above comment like so:
var rawData = Draft.convertToRaw(editorState.getCurrentContent())
var editorState = Draft.EditorState.createWithContent(Draft.convertFromRaw(rawData))

Just in case anyone else comes here and has issues when trying to use Draft.ContentState.createFromBlockArray!

Hello, I have also tried draft-Js-export stateToHtml function, but the function is not working in IE is there any other way to get HTML from DraftJS editor?

@davisml
To retrieve the raw data call this:
var rawData = Draft.convertToRaw(editorState.getCurrentContent())
To create an EditorState from the raw data:
var contentState = Draft.convertFromRaw(rawData) // convertFromRow already returns contentState, no need to 'createFromBlockArray()'
var editorState = Draft.EditorState.createWithContent(contentState)

Manohar D


📝 Update includes in docs/en/docs/tutorial/path-params.md

Update docs/en/docs/tutorial/path-params.md to fix #12554

Thank you! @AlexWendland :rocket:


feat: Complete coverage for controller

Description:

Related issue(s):
Fixes #496
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Sonarcloud - 2 new issues


[FEAT] Add support for sum aggregation for decimal128 type

Resolves #2527.
~Might need another test, I don't think the sum test (which is a decimal-specific copy of other sum aggregation test) does anything to actually confirm the sum itself produces correct numbers.~ (added)
With this, one can do like:

df = daft.from_pydict({"foo": [1, 1, 2, 2, 3, 3]})
df = df.with_column("foo_decimal", df["foo"].cast(daft.DataType.decimal128(7, 2)))
df = df.sum("foo_decimal")

df.collect()

yields
╭──────────────────╮
│ foo_decimal      │
│ ---              │
│ Decimal128(7, 2) │
╞══════════════════╡
│ 12.00            │
╰──────────────────╯

(Showing first 1 of 1 rows)

In the future (not this PR) we should also consider adding stuff like a checked or saturating sum in case users do not want the overflow behavior.

Great, thanks for the feedback! I wanted to make sure the overall approach was good, I'll sort out an additional test on expected result for summation and handle the precision thing, then turn it to ready for review as soon as I can.

@amitschang sounds good! When you are ready, feel free to re-request a review

Hi @kevinzwang, I've resolved the comments I think, and put some notes in the PR.

I think the following doesn't affect the PR, but I wanted to make some notes on the decimal handling that I noticed while working on this:

The decimal precision doesn't look to be validated in Decimal128Array:new, so in fact any precision can store the result of the sum - which I guess makes sense because it is always backed by i128. This behavior is similar in arrow as well. Your suggestion for scaling is correct, of course, since it may affect how the result gets written out (e.g. parquet, sql database, etc).
While arrow refuses to create an array for example for 11.1 into decimal128(2,1), daft will do this and even store the correct result, but to some limit. For example, for int to decimal128(2,1) this seems to be 73:

>>> daft.from_pydict({"i": [72,73]}).with_column('d', daft.col('i').cast(daft.DataType.decimal128(2,1))).collect()
╭───────┬──────────────────╮
│ i     ┆ d                │
│ ---   ┆ ---              │
│ Int64 ┆ Decimal128(2, 1) │
╞═══════╪══════════════════╡
│ 72    ┆ 72.0             │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ 73    ┆ None             │
╰───────┴──────────────────╯

If this isn't expected, perhaps a followup issue would be good.

While arrow refuses to create an array for example for 11.1 into decimal128(2,1), daft will do this and even store the correct result, but to some limit. For example, for int to decimal128(2,1) this seems to be 73:

The casting behavior is definitely not very robust right now, we should probably tackle that in a different issue. Thanks for bringing it up!

@amitschang good to merge?

@kevinzwang , yes, thanks for all the comments!

Thanks for contributing this! Merging now


ECS - Make port_mappings not required

I changed the ECS service so you can leave off 'port_mappings' if you don't have any 'routing' specified.


Android manifest

Fixes #1279

@jonathanpeppers I was asked to bring this doc about Android manifests into this repo, and update for MAUI. This content is required by the product team, as the Android Manifest editor in VS will be linking to it.
Can you take a quick look to see if it's accurate for MAUI?


Household data map view card snags

https://develop--micronutrientsupport-tool.netlify.app/quick-maps/diet/baseline?country-id=MWI&mnd-id=Ca&measure=diet&age-gender-group-id=WRA (opened in firefox)

[x]  Colour ramp and legend need to reflect the loaded data - suggest try quartiles or quintiles (i.e. four or five categories) as giving a sensible number relative to the subdivisions being shown.

[x] Is the map gonig to be exportable, as for other figures? (this may be another issue?)

[ ]  A more informative title would be good so that when the map is exported and can be taken from the data (e.g. Median apparent intake of calcium by households at District level, Malawi).

[ ]  Map needs units displayed, which should be being calculated as Adult Female Equivalent (AFE) for the household data pages, for example mg/AFE/day

Example of suggested presentation for hover box:
 (data fields should be present in API response but please shout if unclear)

Last two boxes should now be ready to implement

District level - is this always static or is there an endpoint to use? @bgsandan

@Fuhji let's go with your suggestion for now :smile:

(which one? 🙃 )

or can we use dataLevel as a proxy i.e. Household = district, country = Country?

Available properties to display:
areaName: "Nkhotakota"
areaType: "admin"
deficientPercentage: 14.77
deficientValue:<PHONE_NUMBER>3785
dietarySupply:<PHONE_NUMBER>727778
unit: "mg"

Unsure how to access correct data for last section (88/88) ? Household count?

The API is returning more fields than that.  They may not be implemented in the API response model in the app

you would then be looking for deficientCount / householdCount

Thanks, will look to updating what properties are accessed by app api

not to nitpick, but several params return numbers as strings e.g. householdCount.... surely they should be number not string ?

Jon has just converted them at front end, but wondered if this was intentional (and if so why?)

@Fuhji mainly down to default behaviour of the platforms involved:
Because JavaScript doesn't have support for 64-bit integers node-postgres cannot confidently parse int8 data type results as numbers because if you have a huge number it will overflow and the result you'd get back from node-postgres would not be the result in the database. That would be a very bad thing so node-postgres just returns int8 results as strings and leaves the parsing up to you.

https://github.com/brianc/node-pg-types
We probably don't have any data stored that is likely to overflow but it's not something that has been explicitly forced/co-erced at the API layer so it is just returning in its default format as that is the default behaviour for the stack of libraries in use
Ideally we should probably make the API return safe numeric values but it hasn't made it high enough up the priority list yet :shrug:

Though why the simple values like household counts are defaulting to big integers is probably an issue at the DB architecture layer...


Design System > Upgrade Storybook Version from 7.* to 8.2

Design System > Upgrade Storybook Version from 7.* to 8.2
1.Elements
2.Map
3.Charts
4.Components
5.Application Shells
6.Layout

https://waii-my.sharepoint.com/:x:/r/personal/ashok_sinare_waiin_com/Documents/Storybook Upgrade 8.2.6.xlsx?d=w8887298a6aab4413b46ca516a73be2c3&csf=1&web=1&e=wC0Ctq

I have to look at upgrade storybook and see each and every element and component and files if everything is working correct or not.
1.Elements - Completed
2.Map - Completed
3.Charts - Completed
4.Components - Inprogess
5.Application Shells - Pending
6.Layout - Pending

Today i have completed following things.
1.Components - Completed
2.Application Shells - Completed
3.Layout - Completed

Today, I encountered a dark theme-related issue in Storybook Upgrade 8.2 Version.
I created a new storybook project on 8.2.6 version, and there is a dark theme issue.
In a storybook, there is a plugin issue; for this, I am contacting Suraj.
e.g : Light Theme

Dark Theme

This is the excel file in that file there are mentioned all issue related to version
https://waii-my.sharepoint.com/:x:/r/personal/ashok_sinare_waiin_com/Documents/Storybook Upgrade 8.2.6.xlsx?d=w8887298a6aab4413b46ca516a73be2c3&csf=1&web=1&e=wC0Ctq

Fixed on stage


hwamei can’t recognize SSD disk normally, non-NVME solid state will be recognized as HDD

is this test on physical machine, not VM?


[qt5] Remove dependency qt5 feature mysqlplugin when building x86

Since MySQL upstream has stopped supporting x86, when installing qt5:x86-windows, the error will be reported:
CMake Error at scripts/cmake/vcpkg_fail_port_install.cmake:97 (message):
  Architecture 'x86' not supported by libmysql!

Fix this.
Related: #15170.

Ping @dan-shaw for review and merge this PR.

Ping @dan-shaw for review and merge this PR.

Thanks @JackBoosY
I also believe that it shouldn't be a default feature.

Thanks @JackBoosY
I also believe that it shouldn't be a default feature.

After thinking about it, I agree with Victor, can we remove it from the default features instead?

After thinking about it, I agree with Victor, can we remove it from the default features instead?

@dan-shaw Done.

@dan-shaw Done.

/azp run

/azp run


OpenCV resize fails with “error: (-215) ssize.area() > 0 in function resize”

I would like to straighten the spin generic dataset with the following steps (sct_deepseg_sc, sct_straighten_spinalcord), however, I am getting the below mentioned error. I have tried with SC versions 4.0.1 and 5.0.1 but both failed.
Command:
sct_deepseg_sc -i sub-amu02_T2w.nii.gz -c t2
Error :
OpenCV Error: Assertion failed (dsize.area() > 0) in resize, file /myopt/opencv/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp, line 3214
terminate called after throwing an instance of 'cv::Exception'
what():  /myopt/opencv/opencv-3.0.0/modules/imgproc/src/imgwarp.cpp:3214: error: (-215) dsize.area() > 0 in function resize

Hi @rezazad68. Thank you for reporting this error. :slightly_smiling_face:
Could you please share the full output log (starting from when you ran the sct_deepseg_sc command)?
Also, to confirm, the input image is from data-multi-subject? Have you encountered this issue with any other images?

Hi @rezazad68. Thank you for reporting this error. :slightly_smiling_face:
Could you please share the full output log (starting from when you ran the sct_deepseg_sc command)?
Also, to confirm, the input image is from data-multi-subject? Have you encountered this issue with any other images?

I cannot reproduce the error on the exact same data so I suspect there is something wrong with the installation of SCT in your system @rezazad68:
Full output
julien-macbook:~/code/spine-generic/data-multi-subject/sub-amu02/anat $ sct_deepseg_sc -i sub-amu02_T2w.nii.gz -c t2

--
Spinal Cord Toolbox (git-jca/centerline-viewer-572bf61299c3c8ed45d04c820d2290fd1fd040d6)

sct_deepseg_sc -i sub-amu02_T2w.nii.gz -c t2
--

Config deepseg_sc:
  Centerline algorithm: svm
  Brain in image: True
  Kernel dimension: 2d
  Contrast: t2
  Threshold: 0.7
Creating temporary folder (/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205623.796523-rp6abi_u)
Reorient the image to RPI, if necessary...
Finding the spinal cord centerline...
Creating temporary folder (/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205633.207223-ctaed5jf)
To avoid intensity overflow due to convertion to +uint16+, intensity will be rescaled to the maximum quantization scale
Remove temporary files...
rm -rf /var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205633.207223-ctaed5jf
Cropping the image around the spinal cord...
Normalizing the intensity...
Segmenting the spinal cord using deep learning on 2D patches...
Reassembling the image...
Resampling the segmentation to the native image resolution using linear interpolation...
Binarizing the resampled segmentation...
Removing small objects above slice #231
Removing small objects above slice #231
Compute shape analysis: 100%|##############| 232/232 [00:00<00:00, 321.73iter/s]
Remove temporary files...
rm -rf /var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205623.796523-rp6abi_u

Done! To view results, type:
fsleyes /Users/julien/code/spine-generic/data-multi-subject/sub-amu02/anat/sub-amu02_T2w.nii.gz -cm greyscale /Users/julien/code/spine-generic/data-multi-subject/sub-amu02/anat/sub-amu02_T2w_seg.nii.gz -cm red -a 70.0 &

In additional to @joshuacwnewton suggestions, output of these commands could help us:
sct_check_dependencies
sct_testing

I cannot reproduce the error on the exact same data so I suspect there is something wrong with the installation of SCT in your system @rezazad68:
Full output
julien-macbook:~/code/spine-generic/data-multi-subject/sub-amu02/anat $ sct_deepseg_sc -i sub-amu02_T2w.nii.gz -c t2

--
Spinal Cord Toolbox (git-jca/centerline-viewer-572bf61299c3c8ed45d04c820d2290fd1fd040d6)

sct_deepseg_sc -i sub-amu02_T2w.nii.gz -c t2
--

Config deepseg_sc:
  Centerline algorithm: svm
  Brain in image: True
  Kernel dimension: 2d
  Contrast: t2
  Threshold: 0.7
Creating temporary folder (/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205623.796523-rp6abi_u)
Reorient the image to RPI, if necessary...
Finding the spinal cord centerline...
Creating temporary folder (/var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205633.207223-ctaed5jf)
To avoid intensity overflow due to convertion to +uint16+, intensity will be rescaled to the maximum quantization scale
Remove temporary files...
rm -rf /var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205633.207223-ctaed5jf
Cropping the image around the spinal cord...
Normalizing the intensity...
Segmenting the spinal cord using deep learning on 2D patches...
Reassembling the image...
Resampling the segmentation to the native image resolution using linear interpolation...
Binarizing the resampled segmentation...
Removing small objects above slice #231
Removing small objects above slice #231
Compute shape analysis: 100%|##############| 232/232 [00:00<00:00, 321.73iter/s]
Remove temporary files...
rm -rf /var/folders/s8/4qnm5q1n261ch35b5kkclsb00000gn/T/sct-20210116205623.796523-rp6abi_u

Done! To view results, type:
fsleyes /Users/julien/code/spine-generic/data-multi-subject/sub-amu02/anat/sub-amu02_T2w.nii.gz -cm greyscale /Users/julien/code/spine-generic/data-multi-subject/sub-amu02/anat/sub-amu02_T2w_seg.nii.gz -cm red -a 70.0 &

In additional to @joshuacwnewton suggestions, output of these commands could help us:
sct_check_dependencies
sct_testing

Thanks for the advice. Just hecked the dependencies by sct_check_dependencies command; reinstalled and fixed the issue, now works fine. It was because of the installation.
Thanks

Thanks for the advice. Just hecked the dependencies by sct_check_dependencies command; reinstalled and fixed the issue, now works fine. It was because of the installation.
Thanks

Reopening this issue as a user on the forum encountered this error message as well.
That forum thread can be summarized as follows:

4.2.2 has an unrelated bug where sct_download_data can't download the PAM50 template.
We instructed the user to side-step this bug by manually downloading the template.
Then the user ran into this OpenCV error message, see this log: sct_checkdependencies422.txt

It seems to only crop up with broken installations, but it would be nice to know the exact cause.

Reopening this issue as a user on the forum encountered this error message as well.
That forum thread can be summarized as follows:

4.2.2 has an unrelated bug where sct_download_data can't download the PAM50 template.
We instructed the user to side-step this bug by manually downloading the template.
Then the user ran into this OpenCV error message, see this log: sct_checkdependencies422.txt

It seems to only crop up with broken installations, but it would be nice to know the exact cause.

Reopening this issue as a user on the forum encountered this error message as well.
That forum thread can be summarized as follows:

4.2.2 has an unrelated bug where sct_download_data can't download the PAM50 template.
We instructed the user to side-step this bug by manually downloading the template.
Then the user ran into this OpenCV error message, see this log: sct_checkdependencies422.txt

It seems to only crop up with broken installations, but it would be nice to know the exact cause.

Reopening this issue as a user on the forum encountered this error message as well.
That forum thread can be summarized as follows:

4.2.2 has an unrelated bug where sct_download_data can't download the PAM50 template.
We instructed the user to side-step this bug by manually downloading the template.
Then the user ran into this OpenCV error message, see this log: sct_checkdependencies422.txt

It seems to only crop up with broken installations, but it would be nice to know the exact cause.

A StackOverflow thread about this error messages gives all kinds of possible causes, so it may be tricky to pinpoint.

A StackOverflow thread about this error messages gives all kinds of possible causes, so it may be tricky to pinpoint.

From the user's log on the forum, the error occurs in the following places:
   # Traceback for `test_sct_detect_pmj`
   File "/data/u_mkaptan_software/SpinalCord_version422/spinalcordtoolbox-4.2.2/scripts/sct_detect_pmj.py", line 204, in detect
   sct.run(cmd_pmj, verbose=0, is_sct_binary=True)

   # Traceback for `test_sct_get_centerline`
   File "/data/u_mkaptan_software/SpinalCord_version422/spinalcordtoolbox-4.2.2/spinalcordtoolbox/centerline/optic.py", line 119, in detect_centerline
   sct.run(cmd_optic, is_sct_binary=True, verbose=0)

So, it seems like it occurs within our isct_spine_detect binary, at the very least.

From the user's log on the forum, the error occurs in the following places:
   # Traceback for `test_sct_detect_pmj`
   File "/data/u_mkaptan_software/SpinalCord_version422/spinalcordtoolbox-4.2.2/scripts/sct_detect_pmj.py", line 204, in detect
   sct.run(cmd_pmj, verbose=0, is_sct_binary=True)

   # Traceback for `test_sct_get_centerline`
   File "/data/u_mkaptan_software/SpinalCord_version422/spinalcordtoolbox-4.2.2/spinalcordtoolbox/centerline/optic.py", line 119, in detect_centerline
   sct.run(cmd_optic, is_sct_binary=True, verbose=0)

So, it seems like it occurs within our isct_spine_detect binary, at the very least.

Ahh, I think I might know what is happening.
For the forum user, the installation fails at the command sct_download_data -d PAM50. This means that any downloads that come after don't happen:
https://github.com/neuropoly/spinalcordtoolbox/blob/7efbbb2db90afdb577f836958413bb70fd29c00e/install_sct#L659
Now, @jcohenadad asked the user to run sct_check_dependencies, which you think would verify that all these models are present. But it doesn't!
https://github.com/neuropoly/spinalcordtoolbox/blob/7efbbb2db90afdb577f836958413bb70fd29c00e/spinalcordtoolbox/scripts/sct_check_dependencies.py#L256-L261
In summary:

The user has the PAM50 template, but is missing the required models.
I believe this leads to a failures in isct_spine_detect.
sct_check_dependencies isn't thorough enough to catch missing models.

Ahh, I think I might know what is happening.
For the forum user, the installation fails at the command sct_download_data -d PAM50. This means that any downloads that come after don't happen:
https://github.com/neuropoly/spinalcordtoolbox/blob/7efbbb2db90afdb577f836958413bb70fd29c00e/install_sct#L659
Now, @jcohenadad asked the user to run sct_check_dependencies, which you think would verify that all these models are present. But it doesn't!
https://github.com/neuropoly/spinalcordtoolbox/blob/7efbbb2db90afdb577f836958413bb70fd29c00e/spinalcordtoolbox/scripts/sct_check_dependencies.py#L256-L261
In summary:

The user has the PAM50 template, but is missing the required models.
I believe this leads to a failures in isct_spine_detect.
sct_check_dependencies isn't thorough enough to catch missing models.

I have verified that https://github.com/neuropoly/spinalcordtoolbox/issues/3179#issuecomment-762426802 is true, both locally and via the user here.
Since this issue is easily fixed by making sure the necessary models are present in the data/ folder, I'm closing. :slightly_smiling_face:

I have verified that https://github.com/neuropoly/spinalcordtoolbox/issues/3179#issuecomment-762426802 is true, both locally and via the user here.
Since this issue is easily fixed by making sure the necessary models are present in the data/ folder, I'm closing. :slightly_smiling_face:


Signal reset cannot be set to a const expression

Previously, in #911, I noticed that you could not use a Const() as a reset= argument when creating a Signal. The reason why I wanted this was to make a value with a particular shape.
This has been fixed, but today I noticed that you cannot use a Const() with a mathematical operation on it, such as rotate_right(). The reason I want this is that there is no equivalent to rotate_right() for numbers in the Python standard library, only shift.
Repro
Consider the branch z_bug_cellular-toy-consts of this repo.
On this line I say
clk_reg = Signal(self.ratio, reset=Const((1 << (self.ratio // 2)) - 1, unsigned(self.ratio)).rotate_right(self.ratio//2-1))

At execution time "self.ratio" is equal to 60. So I want to construct the value caused by filling half the bits in a 60-bit register, then right-rotating it a bit.
If you build this with (cd src/fpga/amaranth_core/ && python3 -m pdm install && python3 -m pdm generate), you get
TypeError: Value (slice (const 60'd1073741823) 29:60) cannot be converted to an Amaranth constant
...
TypeError: Reset value must be a constant-castable expression, not (cat (slice (const 60'd1073741823) 29:60) (slice (const 60'd1073741823) 0:29))

If you remove the .rotate_right(self.ratio//2-1) this line works fine, and a few lines later I am able to print the reset value of clk_reg:
Clocks<PHONE_NUMBER>,32767; stb<PHONE_NUMBER>51711744

I am testing with amaranth-yosys 0.35 and Python 3.11.6.
Expected behavior / could this be fixed another way?
At a high level, my "expected behavior" is that "reasonable" constant Amaranth expressions, such as Const(43).rotate_left(n), Const(43) + 45 etc should be allowed as reset= arguments.
It might be that evaluating constness is nontrivial and that this is not an easy feature to implement. In this case, I would expect the constrained set of expressions which are allowed to be documented. I would also expect this low-level/practical thing: *I would expect there to be some way to rotate_left and rotate_right numbers and assign them to reset= without using libraries other than Amaranth`. There are several ways this could be achieved:

Make reset= accept Cat objects, special-cased, since it is easy to confirm that a Cat is a tree of only Cat and Const expressions.
Make the .value property, documented on Const, work on constant Cat objects. (Right now this gives the error: AttributeError: 'Cat' object has no attribute 'value'.) Then I could call .value and assign that to reset=.
Offer rotate-left and rotate-right functions that operate on regular Python integers. They can keep the power-of-two functions in util company!

For now, I will possibly be either implementing it myself (it is not hard to implement but it is nice to be able to exclude the math functions as sources of bugs, which is harder if the math functions were implemented bespoke for my program…) or using the "bitstring" library.

Signal reset cannot be set to a const expression

This is factually not the case: you can use a const-castable expression in Signal(reset=). The only constant-castable expressions are combinations of Const and Cat at the moment though, which doesn't include Slice that is produced by a rotate operation.
As discussed on IRC, adding slices wouldn't be too difficult, which should resolve your underlying issue of being unable to use rotates.

Thanks y'all


Traceback error

I was on the loading rate. I changed my Wi-Fi network, and then returned to the previous Wi-Fi network. The downloading of the course was interrupted. I restarted the command prompt and re-entered the command the download and got the error. Then I tried to download other courses and received the same error.
Traceback (most recent call last):   File "udemy-dl.py", line 7, in <module>     import udemy ModuleNotFoundError: No module named 'udemy'

@Drovosek01 looks weird how can i reproduce this error. there is no fix for this kind of error but a simple suggestion. Which is : download udemy-dl again, place to some where choice of your directory and then try to download the course again.

Sorry, bro, that's my fault. I accidentally deleted the udemy folder that was near the udemy-dl.py file. Thank you for your work, happy new year!

@Drovosek01 thanks for appreciation & Happy new year.


Added foreign keys to postgres inspect

Building blocks for https://github.com/ent/ent/issues/967
Allow the inspector to retrieve foreign keys using the information_schema.
This should be enough to create a module in ent/contrib that can generate an ent schema.
We already have all the columns, Now with foreign keys and unique indices we should be able to guess which (ent supported) relationships exist in a given database

Thanks for the contribution @cliedeman. Let me know when it's ready for review

@a8m ready for review

This should be enough to create a module in ent/contrib that can generate an ent schema.

cc @rotemtam

@a8m feedback addressed


DDPG popart provided but not implemented

Hi guys. I've been using OpenAI's implementation of DDPG and PPO for a couple of months. It's a great tool.
I recently read Deepmind's paper about Popart and I think that their method can improve my system performance. I tried to use the popart module within DDPG but it doesn't work. It seems popart module has not been fully implemented.
I would like to ask if it is on your schedule? If you guys already have a version of popart, could you please send me the code so that I could try it on my system?
Thank you so much!

I recently read Deepmind's paper about Popart and I think that their method can improve my system performance. I tried to use the popart module within DDPG but it doesn't work. It seems popart module has not been fully implemented.

Can you be a little more specific on this? System version, commands run, version of code bases, etc?

I recently read Deepmind's paper about Popart and I think that their method can improve my system performance. I tried to use the popart module within DDPG but it doesn't work. It seems popart module has not been fully implemented.

Can you be a little more specific on this? System version, commands run, version of code bases, etc? Otherwise it's impossible for people to reproduce your messages.

Hi Daniel, thanks for the reply.
It happens when I run ddpg under branch peterz_tflstm_with_ppo2 with options --normalize-returns --popart. I cloned the lastest version of DDPG and the problem still exists.
Basically the error message is that some variables do not exist, the reason is that they were not declared. I think it might be because popart support is unfinished for DDPG?

I recently read Deepmind's paper about Popart and I think that their method can improve my system performance. I tried to use the popart module within DDPG but it doesn't work. It seems popart module has not been fully implemented.

Can you be a little more specific on this? System version, commands run, version of code bases, etc? Otherwise it's impossible for people to reproduce your messages.

Actually in the master branch, to reproduce the error, I need to manually set self.enable_popart and self.normalize_returns to be true in file ddpg/ddpg_learner.py. Only adding the options --normalize-returns and --popart seems not to work.

@ZheYang-sjtu I confirm the problem; your solution seems to work, but there is another small change that's needed. Incidentally, version with popart can be called from command line via
--normalize_returns=True --enable_popart=True (the command-line option parser is not super smart and does not recognize boolean flags).
Here's the PR: https://github.com/openai/baselines/pull/733


[Preset] Ciri v3 by Jayah_

[info]
name = "Ciri v3"
author = "https://www.reddit.com/user/Jayah_"
source = "https://www.reddit.com/r/fashiondogma/comments/1bhxsrd/ciri_the_witcher_3_sliders/"
photo = "https://v.redd.it/86h3f2mbx4pc1"
Preset:
https://pastebin.com/6NLi6rQu

Just kidding, I see that you did so in the above preset, ignore me :fingerguns:

Haha, good to know! I have been going through testing these and I do have a weirdness with this Ciri (and the variant) when the creator gets to body tattoo 2 something goes wrong between Tattoo #1 sheen and Body tatt 2 style, it's like it got stuck going through the tattoo 2 styles instead of selecting style 36 and moving to the next option

Hm, taking a look now

I did update the pastebin cause it was going haywire without the "muscle style" option in there even though most people seem to leave it blank.
From the console log:
Going from 0 to 10 for body_tattoo_metallic
body_tattoo_metallic, 10
Going from 50 to 25 for body_tattoo_sheen
body_tattoo_sheen, 25
Skipping move-down as edit = true
Going through markings_body_tattoos_2, for {'body_tattoo_style': 1, 'body_tattoo_primary_color': 1, 'body_tattoo_secondary_color': 1, 'body_tattoo_tertiary_color': 1, 'body_tattoo_vertical_pos': -45, 'body_tattoo_horizontal_pos': 0, 'body_tattoo_rotation': 0, 'body_tattoo_overall_scale': 25, 'body_tattoo_vert_scale': 25, 'body_tattoo_horz_scale': 25, 'body_tattoo_vert_tiling': 1, 'body_tattoo_horz_tiling': 1, 'body_tattoo_opacity': 100, 'body_tattoo_nose_intensity': 0, 'body_tattoo_metallic': 0, 'body_tattoo_sheen': 50} on page: markings
Found section markings_body_tattoos_2 in target_attributes, entering
We are at location category
Going from 1 to 36 for body_tattoo_style
body_tattoo_style, 36
Going from 1 to 1 for body_tattoo_primary_color
body_tattoo_primary_color, 1
Going from 1 to 1 for body_tattoo_secondary_color
body_tattoo_secondary_color, 1
Going from 1 to 1 for body_tattoo_tertiary_color

Yeah, I found the issue, fixing now :)

fixed in #22

Nice! Scars and tatts working perfect!
The only other issue I've noticed is something goes a little off on eye squint - Ciri here for example should end up with 90/90 squint but somehow ends up with 60/0. Everything else is solid

Very strange, will look into it later tonight!
Thanks for the update!

Fixed in latest release 👍


Upgrade to ginkgo v2 in tests module

Description
Upgrade to ginkgo v2 in tests module to address this issue: https://github.com/cloudfoundry/windows-syslog-release/issues/22
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing performed?

[X] Unit tests
[ ] Integration tests
[x] Acceptance tests

Checklist:

[X] This PR is being made against the main branch, or relevant version branch
[ ] I have made corresponding changes to the documentation
[ ] I have added testing for my changes

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

LGTM! I'll merge it if it passes the PR pipeline. Thanks @rroberts2222!


[DRI]

Error parsing json in firefox

The error parsing json in firefox was solved by fixing the NaN fields in the data. also, the use of the class to encode the mongo objectid was omitted.


Expiry time is inconsistent with express-rate-limit

The express-rate-limit package uses windowMs option to set the interval when limit should reset. In redis terms windowMs is supposed to set the expiry timeout. However now this is controlled by a standalone expiry option in rate-limit-redis, so windowMs is basically completely ignored. So code like this:
rateLimit({
  max: 100,
  windowMs: 1000,
  store: new RedisStore({...})
})

is supposed to allow 100 requests per second, but since the default option for expiry is 60 seconds, in reality this allows 100 per minute which is complete nonsense. It's also not clear how this could be fixed, because it would probably also need some changes in express-rate-limit package which is problematic. At least it could be written in documentation that one should omit windowMs option and use expiry instead when instantiating rateLimit middleware

In the documentation of the express-rate-limit you have the following:
`
windowMs
Timeframe for which requests are checked/remembered. Also used in the Retry-After header when the limit is reached.
Note: with non-default stores, you may need to configure this value twice, once here and once on the store. In some cases the units also differ (e.g. seconds vs miliseconds)
Defaults to 60000 (1 minute).
`
So basically we have to have the following configuration:
``js
const limiter = new RateLimit({
store: new RedisStore({
client: RedisClient,
expiry: 15 * 60 * 1000
}),
max: 100,
windowMS: 15 * 60 * 1000,
delayMs: 0
})

Hi,
I recently helped out with the Typescript rewrite (PR #43), which also implements the newer Store interface introduced in express-rate-limit 6.0.0. This includes implementing the init function, which allows external stores like this one to setup themselves using the options passed to the middleware.
This eliminates the need for a separate expiry option (we just use windowMs passed to the middleware), and the expiry option has been removed in v3.0.0.


Add test case covering project with DefaultLoading

Add test case covering project created using DefaultLoading (no config file passed as parameter)

Can one of the admins verify this patch?

ProjectStagesTest is marked as @Ignored, so I don't think this test will run

ProjectStagesTest is marked

Yep. it will not work till we have resolved the issue with Weld that I have reported

ok to test


Week 9: Change to using Azure SQL for Azure deployments

As a developer, I want to offload responsibility for communication with the Database on Azure. So that it is not my responsibility if they make changes to their API.
Acceptance Criteria

Create an SQL Database and Server on Azure
Find documentation on how to use its endpoints
Use the separate workflows of release and deployment to configure each for their inteded use?
Make webapp use these to run queries and commands on the database

Definition of Success

We have a database running on Azure
We are using this database with the deployed version of the program

Database needs to be cleaned on azure


WAR file not generated in 0.5.0 version

I have built the 0.5.0 version using Gradle. which got replaced from Maven. In this new version War file not got generated to deploy into Tomcat. Please add the option to build WAR file in Gradle.

This is obsolete, should be closed. Since there is no war anymore in the picture here.


how can i set the launch.json file in such a way so that it can debug powerbi custom visuals , debugging using breakpoints

I want to set the launch.json in such a way so that i can set the breakpoints in my powerbi custom visual code which has typescript files

/question


{SSHExtension} fixes Azure/azure-cli-extensions#5984 Fix for ssh extension 1.1.4 getting error 'str' object has no attribute 'get'

fixes Azure/azure-cli-extensions#5984
The older ssh extension version 1.1.3 works fine. After updating the ssh extension to 1.1.4 we get the below error:
The command failed with an unexpected error. Here is the traceback:
'str' object has no attribute 'get'
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/home/user1/.azure/cliextensions/ssh/azext_ssh/custom.py", line 66, in ssh_vm
    _do_ssh_op(cmd, ssh_session, op_call)
  File "/home/user1/.azure/cliextensions/ssh/azext_ssh/custom.py", line 159, in _do_ssh_op
    op_info.ip = op_info.ip or ip_utils.get_ssh_ip(cmd, op_info.resource_group_name,
  File "/home/user1/.azure/cliextensions/ssh/azext_ssh/ip_utils.py", line 36, in get_ssh_ip
    if public_ip_ref and public_ip_ref.get("id", None):
AttributeError: 'str' object has no attribute 'get'

This PR has the fix for ssh extension 1.1.4 getting error 'str' object has no attribute 'get'

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

SSHExtension

fixed in https://github.com/Azure/azure-cli-extensions/pull/6004


32-bit compilation using gcc 4.1.2 causes non-virtual destructor and ‘int’ over ‘long int’ usage warnings

Added the missing virtual destructors. Changed exception string formatting in DefaultNearCache so that there is no warning at 32-bit compiler.
When compiled using gcc 4.8.1 the compilation produces the following warnings:
KeyStateMarker.h:46: warning: ‘class hazelcast::client::map::impl::nearcache::KeyStateMarker’ has virtual functions but non-virtual destructor
DefaultNearCache.h:154: warning: passing ‘hazelcast::client::config::InMemoryFormat’ chooses ‘int’ over ‘long int’

Test PASSed.


Concurrent request support for token authentication to the same account(App cell).

When token authentication to the same account occurs frequently, the error "Too many concurrent requests" occurs.
This is because the record of authentication history is waiting for unlocking by exclusive control of file update.
App cells share and use a specific account. There is no need to keep records of certification history as it is meaningless.
In order to prevent "Too many concurrent requests" from occurring with the above-mentioned accounts, we modify it to be able to specify the account which does not leave the record of the authentication history for every cell.

Released v1.7.12_es6.6.1


Logout: Refused to display 'https://www.facebook.com/home.php' in a frame because it set 'X-Frame-Options' to 'DENY'.

When I call Facebook.logout() I get this error
Refused to display 'https://www.facebook.com/home.php' in a frame because it set 'X-Frame-Options' to 'DENY'.
People say using a iframe is a solution, but have no idea how to do that since iframe's anuglarjs scope is different from original document.
Or there's any approach to solve the problem?

@red010182 Hey were you able to find a fix for this? I'm also facing the same issue :(

Yes, the solution is:

Go to your facebook app console
In Settings -> Basic -> Site URL
Type your url, even if localhost. For example: http://localhost:3000
In Settings -> Advanced -> Valid OAuth redirect URIs
Type your url, even if localhost. For example: http://localhost:3000

Great. Thx
On Sat, Mar 7, 2015 at 9:55 AM tpy<EMAIL_ADDRESS>wrote:

Yes, the solution is:

Go to your facebook app console
In Settings -> Basic -> Site URL
Type your url, even if localhost. For example: http://localhost:3000
In Settings -> Advanced -> Valid OAuth redirect URIs
Type your url, even if localhost. For example: http://localhost:3000

--
Reply to this email directly or view it on GitHub
https://github.com/Ciul/angular-facebook/issues/92#issuecomment-77672899
.

Facebook.logout() logs me out complitly  from facebook.com page! is there a way to logout only from my App?

I Think facebook has a single logout approach. if we logged out from either from an application which is using fb login and user logged into it  or logged out from facebook itself, it logs out from both the applications. Its mentioned by facebook why they follow this approach is to avoid confusion and also for security purpose

Another observation is that, FB.logout() was making browser redirect generate with this error when my app settings in developers.facebook.com is like below.
settins -> basic -> website URL -> http://domain.com  - this was throwing this error
after that i tried with changing the above setting to http://www.domain.com - The it started working :-)
any idea why this change may cause issue ?

@ac-lakshmikanth did you change to http://www.domain.com on both Settings:
Basic, Site URL
Advanced, Valid OAuth redirect URIs?

@urbanvikingr Yes. I have configured http://www.domain.com in both basic and advanced settings. Also Basic -> App domains field is configured with just 'domain.com'.

Eventhough i have done all the configuration discussed above. I m getting same error while FB.logout(). Can anyone help?

Has anyone found a fix for this we have added our url to both Settings -> Basic and Settings -> Advanced. In Valid OAuth redirect URIs and are still seeing this error when we call Logout.

+1 @ishish

+1 @ishish

I got this to work by not setting any App Domains and having:
Site URL: https://localhost
Valid OAuth redirect URIs: https://localhost/
With those settings, everything works as expected. The only problem with this is when I switch to production, I have no way to test localhost properly. It would be nice to allow multiple site URLs.

+1 @ishish

I have this issue and the domains are definitely added.

@red010182 Thanx man. Your solution worked for me. Added both the Url same and it logged out successfully. Cheers!!

I'm lacking a better place to comment on this than here.
In the Valid OAuth redirect URIs, logon will accept domains configured with http:// when you actually use https:// but logout will not. So:
Valid OAuth redirect URIs: http://example.com
go to https://example.com, execute facebook.logon, get logged on, execute facebook.logoff, observe failure regarding iframe
Valid OAuth redirect URIs: https://example.com
go to https://example.com, execute facebook.logon, get logged on, execute facebook.logoff, observe logoff occurs correctly
This bit of nuance bit us since in both cases the logon method works.

FWIW for me FB.logout() did not me out of of facebook, just out of facebook's being connected to my app...

Yes, the solution is:
Go to your facebook app console
In Settings -> Basic -> App Domains -> Site URL
Type your url, even if localhost. For example: http://localhost:4300

Hi guys! Recently I was facing out the same problem regarding the Logout: Refused to display 'https://www.facebook.com/home.php' in a frame because it set 'X-Frame-Options' to 'DENY'.
I tried the steps that @abhisheksirigari and some others posted, but without success.
So, I share my solution (because I spent a lot of time trying and trying) :

Settings -> Advanced
"Native app or PC" ? (I'm not pretty sure how this is displayed in english versions) -> YES
The secret key is integrated in your client?
If your backend are sending the secret key leave it as default (NO)
Otherwise, toggle it to YES

I found this solution in this facebook docs https://developers.facebook.com/docs/facebook-login/security/#surfacearea
I hope that it helps you as it worked for me!

if you are using facebook oauth inside Iframe you need to get it to the top window level, you can do this by adding target="_top" to facebook login anchor tag.
example:
Login via facebook


Draft system admin deployment guidance

Closing this PR in favor of FY24 H1 initiatives that will help inform next steps on the admin's onboarding journey.


[Bug/Suggestion] Greedy optimisation (various)

Bug: Open vector subpaths are being cut in optimum order but not being cut in optimum direction
Suggestion: Images/rasters are not optimised as optimally as they could be:
a. Raster start point appears to be used to determine best travel afterwards not raster end point.
b. Currently images can (in theory) start rastering at 2 points (on the side where the raster is starting from) - but there is currently no code to choose the best corner to start.
c. There is currently no option to allow MK to choose e.g. whether to raster T2B or B2T and so no way to have rasters reversible and to raster in the opposite direction.
d. I think that bbox is used to determine the raster start point (for optimisation purposes) rather than an analysis of the first / last raster lines.

-- "Raster start point appears to be used to determine best travel afterwards not raster end point."
This is actually a requirement of the lihuiyu raster protocol. While it's not the case for grbl and others. Basically because reversing direction causes the raster step-down it is the case that we must be beyond the current line and the next line before attempting a raster step.

I think you misunderstand. After the raster has finished it travels to the nearest remaining burn to the raster start point rather than the nearest burn to the finish point.

These suggestions are very minor optimisations in terms of time saved (cf. normal greedy optimisation which saves a heap of large travel moves). So I am happy for it to be closed, but please stop marking closed issues as completed when they haven't been completed, and provide a "won't do ever" explanation for closing it.

Reopened to allow someone else to pick them up at a later point in time


Keras performance with OpenBlas Multi-Core

Problem
I am unable to force Keras + Theano to use more than 1 thread using OpenBLAS. Script used:
import numpy as np
from keras.layers import Input, Dense
from keras.models import Model

# this returns a tensor
inputs = Input(shape=(1024000,))

# a layer instance is callable on a tensor, and returns a tensor
x = Dense(256, activation='relu')(inputs)
x = Dense(256, activation='relu')(x)
predictions = Dense(10000, activation='softmax')(x)

model = Model(input=inputs, output=predictions)
model.compile(optimizer='rmsprop',
              loss='categorical_crossentropy',
              metrics=['accuracy'])

for i in range(100000):
    print i
    model.predict(np.random.rand(1, 1024000))

Command used to run this script
THEANO_FLAGS='device=cpu,openmp=True,blas.ldflags=-lopenblas' OMP_NUM_THREADS=12 KERAS_BACKEND=theano python simple_model.py

Any help will be great. Thanks.
System setup

CPU with 12 cores
BLAS using OpenBLAS
Theano Bleeding Edge installation

Due Diligence

By using htop confirmed that OpenBLAS is using all cores by using Theano check_blas script.
By using htop Confirmed that Numpy is using OpenBLAS and all cores by using following script:

import numpy as np

def test_eigenvalue():
    i = 500
    data = np.random.rand(i, i)
    np.linalg.eig(data)

for i in range(100000):
    test_eigenvalue()

Hello,
Try using multiple samples :
data = np.random.rand(100, 1024000)
for i in range(100000):
    print i
    model.predict(data)

Then your code and your way to start it use multi-core for me.

Hi @unrealwill
Thanks for responding. I tried using multiple samples but still seeing 2 threads.

Can you share some details of your system setup. Maybe I am missing something ?

Keras is just a wrapper of theano.
The issue is probably with Theano.
Have you succeeded in running openmp with theano.
By looking at
https://github.com/fchollet/keras/issues/1245
seems that some people may have had success with adding :
import theano
theano.config.openmp = True

Theano Test Code
import numpy as np
from keras.layers import Input, Dense
from keras.models import Model
import os
import theano
import theano.tensor as T

theano.config
print os.getpid()

def test_eigenvalue():
    i = 500
    data = np.random.rand(i, i)
    np.linalg.eig(data)

def test_theano():
    a = theano.shared(np.ones((100, 256), dtype=theano.config.floatX, order="C"))
    b = theano.shared(np.ones((256, 256), dtype=theano.config.floatX, order="C"))
    f = theano.function([], outputs=[T.dot(a, b)])

    for i in range(200000):
        print i
        f()

def test_keras():
    inputs = Input(shape=(5000,), dtype=theano.config.floatX)

    # a layer instance is callable on a tensor, and returns a tensor
    x = Dense(256, activation='relu')(inputs)
    x = Dense(256, activation='relu')(x)
    predictions = Dense(10000, activation='softmax')(x)

    # this creates a model that includes
    # the Input layer and three Dense layers
    model = Model(input=inputs, output=predictions)
    model.compile(optimizer='rmsprop',
                  loss='categorical_crossentropy',
                  metrics=['accuracy'])

    data = np.random.rand(100, 5000).astype(theano.config.floatX)
    for i in range(100000):
        print i
        model.predict(data)

test_theano()

Run command
THEANO_FLAGS='device=cpu,openmp=True,blas.ldflags=-lopenblas' OMP_NUM_THREADS=12 KERAS_BACKEND=theano python simple_model.py

HTOP Output

Yes I am using openmp=True, its part of THEANO_FLAGS.

I removed my theanorc file.
~/.keras/keras.json is {"epsilon": 1e-07, "floatx": "float32", "backend": "theano","image_dim_ordering" : "th"}
test_keras() uses all threads for me.
I'm on ubuntu 16.04, I only have machines with GPU.
I installed keras and theano with pip .
I installed openblas via apt-get libopenblas-dev

Thanks for you time @unrealwill
My system specifications

Ubuntu 16.06
Machine with GPU
libopenblas-dev
-Theano installed using PIP

I did not use PIP for Keras.. Maybe that is causing it to be not setup properly. Let me try it and report back.

No dice. Same behavior. I think I will try to compile the dot product via Keras wrappers and see what that does.
Thanks again @unrealwill. If you think of anything else let me know.

Solved it. Concretely, Theano multi-core behavior is based on Tensor sizes. Some information here http://deeplearning.net/software/theano/tutorial/multi_cores.html. Look at the variable openmp_elemwise_minsize. In current case, I was not passing in batch size and as such internally the data was fed to Theano with batch size 32 which Theano decided was not good for multi-core processing. However as soon as I changed the batch size to 100 it triggered multi-core.
import numpy as np
from keras.layers import Input, Dense
from keras.models import Model
import os
import theano
import theano.tensor as T

theano.config
print os.getpid()

def test_eigenvalue():
    i = 500
    data = np.random.rand(i, i)
    np.linalg.eig(data)

def test_theano():
    a = theano.shared(np.ones((100, 256), dtype=theano.config.floatX, order="C"))
    b = theano.shared(np.ones((256, 256), dtype=theano.config.floatX, order="C"))
    f = theano.function([], outputs=[T.dot(a, b)])

    for i in range(200000):
        print i
        f()

def test_keras():
    inputs = Input(shape=(5000,), dtype=theano.config.floatX)

    # a layer instance is callable on a tensor, and returns a tensor
    x = Dense(256, activation='relu')(inputs)
    x = Dense(256, activation='relu')(x)
    predictions = Dense(10000, activation='softmax')(x)

    # this creates a model that includes
    # the Input layer and three Dense layers
    model = Model(input=inputs, output=predictions)
    model.compile(optimizer='rmsprop',
                  loss='categorical_crossentropy',
                  metrics=['accuracy'])

    data = np.random.rand(100, 5000).astype(theano.config.floatX)
    for i in range(100000):
        print i
        model.predict(data, batch_size=100)

test_keras()

Run Command
THEANO_FLAGS='device=cpu,openmp=True,blas.ldflags=-lopenblas' OMP_NUM_THREADS=12 KERAS_BACKEND=theano python simple_model.py

HTOP Output

Ok I had only 8 cores on my machine which probably explain the different behaviors.
Glad you solved it :)

@unrealwill  Thanks for the help.

Hi all,
I have the same issue (I am unable to force Keras + Theano to use more than 1 thread using OpenBLAS.) I have followed the whole procedure here, It works on
data = np.random.rand(100, 1024000) for i in range(100000):     print i     model.predict(data)
but it doesn't work on :
`
THEANO_FLAGS='device=cpu,openmp=True,blas.ldflags=-lopenblas'
OMP_NUM_THREADS=8
KERAS_BACKEND='theano'
import pandas as pd
import numpy as np
from tqdm import tqdm
from keras.models import Sequential
from keras.layers.core import Dense, Activation, Dropout
from keras.layers.embeddings import Embedding
from keras.layers.recurrent import LSTM, GRU
from keras.layers.normalization import BatchNormalization
from keras.utils import np_utils
import keras.engine.topology
from keras.layers import TimeDistributed, Lambda
from keras.layers import Convolution1D, GlobalMaxPooling1D
from keras.callbacks import ModelCheckpoint
from keras import backend as K
from keras.layers.advanced_activations import PReLU
from keras.preprocessing import sequence, text
data = pd.read_csv('data/quora_duplicate_questions.tsv', sep='\t')
y = data.is_duplicate.values
tk = text.Tokenizer(nb_words=200000)
max_len = 40
tk.fit_on_texts(list(data.question1.values) + list(data.question2.values.astype(str)))
x1 = tk.texts_to_sequences(data.question1.values)
x1 = sequence.pad_sequences(x1, maxlen=max_len)
x2 = tk.texts_to_sequences(data.question2.values.astype(str))
x2 = sequence.pad_sequences(x2, maxlen=max_len)
word_index = tk.word_index
ytrain_enc = np_utils.to_categorical(y)
embeddings_index = {}
f = open('data/glove.840B.300d.txt')
values_conv = []
for line in tqdm(f):
values = line.split()
for item in values:
try:
values_conv.append(float(item))
except:
pass
word = values_conv[0]
coefs = np.asarray(values_conv[1:], dtype='float32')
embeddings_index[word] = coefs
f.close()
print('Found %s word vectors.' % len(embeddings_index))
embedding_matrix = np.zeros((len(word_index) + 1, 300))
for word, i in tqdm(word_index.items()):
embedding_vector = embeddings_index.get(word)
if embedding_vector is not None:
embedding_matrix[i] = embedding_vector
`


Pause until doesn’t work in python

If i use a puase until block in my game (block editor) and switch to python i get a error on the pause until

OS: Windows
Browser chrome

As eleborated on here:
https://forum.makecode.com/t/pause-until-doesnt-work-in-python/22944


feat: Minify CSS output

This adds cssnano at the end of the PostCSS pipeline to minify CSS output.
cssnano is used without any options and will use its default preset:

with the default preset, we offer safe transforms only (Source)

Closes #782

maybe the minification should only happen in production (when building) and not in development

I thought that too, but the environment flag didn’t seem to be passed to the CSS builder and none of the other tasks seemed to be making that distinction (HTML is minified on serve for example), so just settled for the easy route 😄 .
If you can point me to the best way to disable in development, I’m happy to make the required changes.

Figured it out and updated the PR! :-)

Hi — checking in to see if you think this needs any additional changes?

I’m so sorry—I completely blanked on this.
This is great! Just one more thing—and sorry, I should have pointed this out in advance. Because we’re conditionally minifying depending on the environment, we should have a test for that. So a test that when building for production it minifies the output of a CSS file.
The reason you had to update the snapshots is because the environment argument to the build function defaults to production and we weren’t previously setting the environment in the filesystem helper, so all the tests were assuming the environment is production.
https://github.com/brandonweiss/charge/blob/e2ce0cab7696d94c58b94fb9440f94ecb2859b8f/test/helpers/filesystem.js#L112-L121
I think we’ll probably want to tweak the helper. It probably makes sense to explicitly set the environment to “development”, and then the helper can take an optional third argument that’s an object that gets spread into the build function, that way arguments like environment can be overridden in some tests:
await buildAndSnapshotFilesystem(t, async () => {
  // ...
}, { environment: "production" })

That should keep the existing snapshots more readable and make it possible to add a test for the CSS minification. Let me know if that doesn’t make any sense or the code is confusing!


Next video + AWS Amplify error

I run into an issue using the amazon-s3 provider on next-video, when I try to deploy the application using aws amplify, the enviroment variables can not have the reserved prefix AWS , is there a way to fix this problem in the next versions o how can I change it so it works on amazon,

thanks for reporting this!
I'm a bit baffled that there is no way to set AWS prefixed env variables in an AWS service but I can't find any explanation so far so the PR by @DewinU seems like a good workaround.


♻ Convert to using  in Rules Pages

Cc:

Hi @Calinator444
Pain
As per your awesome work in #1499, we are able to use  with data gathered from Gatsby.
Now we just need to update our Components and pages to use

Tasks

[ ] Watch the Done Video on #1499
[ ] Update any page where Rule and Category rich-text content is displayed to use

More Information

Screenshots

Thanks!

The format of rules makes it incredibly tricky to get eaten by Tina – which only accepts a subset of md and mdx formatting.
Tina markdown also wants to take a parsed AST tree which we believe is usually pumped out of the graphql response.
Things which we do in rules which MAY not be allowed in Tina (continually updated)...

::: xyz

These can be prevented with the match tina schema definition (they just show up as plaintext).

> * or > -

Lists in blockquotes throw errors when being parsed into the AST tree.

{{ }}

The tags we use for templates (e.g. the email templates with {{ EMAIL }} ) won't be eaten.

As per our conversation, you're currently "skipping" unsupported syntax for now.

Create a PBI/Issue for each element that isn't supported.
Link the Issues here, and mark them with the TinaCMS tag

I have a done video for this: https://youtu.be/TLP1ZmM68Tw

https://youtu.be/TLP1ZmM68Tw

All done.
lists
shortcode
strikethroughs
images


chore(java_indexer): delete deprecated getMethodVName() method

We should be using the other version that accepts a CorpusPath parameter in all places.

The only usage I saw was in the soy indexer and I sent a cl to change it to use the other version of this method.


The user task is blocked when I want a pymilvus client

Describe the bug

The user task is blocked when I want a Milvus client. I can't fixed
Expected behavior

It should be keep running, output the log
Actual behavior

The program blocked
Steps to reproduce

This program output line 39, and bolcked
pymilvus==0.2.14, follow GRPC protocol

Environment

OS: Linux
Python version: python 3.8.8
Locust version: 1.6.0
Locust command line that you ran: locust -f milvus_req.py --host <IP_ADDRESS> -u 1 -r 1 -t 1m --headless
Locust file contents (anonymized if necessary):

It fixed. Sorry, I missed some information.
import grpc.experimental.gevent as grpc_gevent

grpc_gevent.init_gevent()


Vt execute and query

This PR solves #102 by adding commands for executing arbitrary contract messages and querying contract state.

@vernonjohnson  Thanks for contribution, will tinker with it and merge :)


improve and unify doc about hierarchy and components

How can Bevy's documentation be improved?
Doc about hierarchies, components needed to display anything, and when they are updated is duplicated between:

Transform
GlobalTransform
Visibility
ComputedVisibility
TransformBundle
VisibilityBundle
SpatialBundle

This should be centralised, easy to find, ...

We also talk about this a bit on the Display field of Style.


Instructions for how to use this in a Xamarin.iOS project

Would this be possible to build FLEX as a static library and have a simple binding to use it in Xamarin.iOS ?

I don't see why not!


King Arthur's Almond Galette Recipe | King Arthur Baking

https://www.kingarthurbaking.com/recipes/king-arthurs-almond-galette-recipe

[ ] fix: add emoji


ODP website styling

Add ODP branding to ODP white label Docusaurus microsite
The Open Developer Platform Docusaurus microsite is commited to the odp-issues-37-docusaurus-white-label-wiki branch in GitHub whilst in development by the ODP project team.

Fork the Open Developer Platform repository to your GitHub profile
Git clone your forked repository to your local machine
Git fetch all branches from your forked GitHub repo to your local machine
Git checkout odp-issues-37-docusaurus-white-label-wiki locally and add changes to this feature branch
Push odp-issues-37-docusaurus-white-label-wiki to odp-issues-37-docusaurus-white-label-wiki on your forked repo
Raise a PR to odp-issues-37-docusaurus-white-label-wiki in the open-developer-platform project when changes ready to be merged upstream

Tasks to include

[ ] Add ODP logo / icons to ODP Docusaurus microsite

[ ] Header
[ ] Main Panel
[ ] Footer

[ ] Add ODP favicon to ODP Docusaurus microsite
[ ] Swap grey SVG boxes to generic checkmark SVGs
[ ] Add ODP specific CSS to Docusaurus microsite

Hi @maoo - Can you add @grizzwolf to the FINOS organisation so I can assign this story?
Thanks 👍

@grizzwolf - This story is now Ready for Development.
Let me know if you need any help or support 👍
James.

Was able to get the background images to show, working on their placement. Changed the featured images to best sizing - but now have to increase size of other images (they were / are all tied together since each index id was named Features - added Members and Projects to isolate the CSS. Still clean up to do on sizing / coloring on home - but basic blocks are there.

@grizzwolf - love it! We should remove the titles below the members and projects items. I'll wait for your PR before making the change. Feel free to submit the changes. TY!

Made updates and was able to get coloring and sizing better. Let me know if this seems to work and I can push.

@grizzwolf - fantastic job! Send the PR and I'll merge it right away. Thank you!

@grizzwolf and @maoo - The new ODP website is fantastic. Please let me know if I can help debug HTML and CSS. I'm more than happy to get involved if needed 👏 👏  💯 💯 💯

https://odp.finos.org/index-staging is updated. @grizzwolf you did a superb job here, we can close the issue.
@mcleo-d - thanks for the offering, would you be happy to help reviewing the message of the page? I've created https://github.com/finos/open-developer-platform/issues/135 , let's work there so we can plan ahead how we bring this wonderful website (a)live! 😄


Add collapseWithKeys to Collection

I had the need to collapse a collection of nested arrays while preserving their keys. Neither the flatten nor collapse methods have a flag for preserving keys. While it may not for flatten, the option may make sense for collapse given its single depth.
Consider the following collection (before/after):
[[1 => 'a'], [3 => 'c'], [2 => 'b']] // before
[1 => 'a', 3 => 'c', 2 => 'b']       // after

Of course, you may achieve the after result using mapWithKeys and a custom callback or some pipeline of collection methods. But this seems like a common enough use case for a collapseWithKeys (or better name) to exist.

Note, I didn't add this method to Arr or Eloquent\Collection. I don't see a use case for Eloquent\Collection, and didn't know the level of method symmetry between the Arr and Collection classes.


Add a review ATP section above the review events section on the WDEG EP page

Similar to #3620 but for WDEG Exploit Protection.

Review exploit protection events in the Windows Defender ATP Security Center
Windows Defender ATP provides detailed reporting into events and blocks as part of its alert investigation scenarios.
You can query Windows Defender ATP data by using Advanced hunting. If you're using audit mode, you can use Advanced hunting to see how exploit protection settings would affect your environment if they were enabled.
MiscEvents
| where ActionType startswith 'ExploitGuard' and ActionType !contains 'NetworkProtection'

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

ID: b65b5b4c-f974-c32f-0f56-3e06ff99469f
Version Independent ID: 7173dc31-bfed-7c00-43a3-ba0406f29410
Content: Apply mitigations to help prevent attacks through vulnerabilities
Content Source: windows/security/threat-protection/windows-defender-exploit-guard/exploit-protection-exploit-guard.md
Product: w10
Technology: windows
GitHub Login: @andreabichsel
Microsoft Alias: v-anbic

@officedocsbot assign @e0i

@iadgovuser1
The issue has been noted along with the similar issue #3620 and the document will be revised in the light of your feedback.
Thank you.

@iadgovuser1
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.

@officedocsbot close


AddNCacheSession does not work on .net 5.0

The Alachisoft.NCache.CoreSessionStoreProvider does not work on .net 5.0.
If you try the GuessGame.NetCore sample app on .net core 2.2 it works fine, but if we migrate it to .net 5.0 it stops working, HttpContext.Session is null and the previously saved values cannot be obtained.
Help me please!

Hi Zalza,
Please note that we are in the process providing the .NET 5.0 support and this will be made available in next releases of NCache. We are reviewing the changes incorporated by Microsoft in .NET 5 and will work on this after the release of NCache v5.2 which is expected in 2-3 weeks from now.
Moreover, we have separate sample apps for ASP.NET and ASP.NET Core session storage with NCache. I am listing them down and you can use relevant sample apps as needed.
ASP.NET Framework
https://github.com/Alachisoft/NCache/tree/master/Samples/dotnet/SessionCaching/aspnet/GuessGame
You can use this application with .NET Framework v4.0 till .NET v4.7.2
ASP.NET Core
https://github.com/Alachisoft/NCache/tree/master/Samples/dotnetcore/SessionCaching/GuessGame
You can use this application with .NET Core v2.2 or later
I hope this helps.


taxon constaints

GO:0019763    immunoglobulin receptor activity

GO:0008188   neuropeptide receptor activity

GO:0004925   prolactin receptor activity  (never in fungi_)

nociceptin receptor activity (never in fungi_)
collectin receptor activity (never in fungi_)

@balhoff, are we doing these via an external file now?

@ukemi I am still working on wrapping up that PR. If you go ahead and add some in the ontology, that's fine since I will be querying out the latest from go-edit right before merging.


Add download link for processed station listing table

Closes #120.
This PR modifies the notebook to store the processed table as a CSV file and link to it with sphinx so that it gets included as a known file and carried through the docs build.  Result:

I had to rearrange the table processing code a bit, as I assumed nobody would want the HTML links to appear as literal text in the CSV file.

Would it be an idea to have a version number or date in the file name?
Maybe even have it as an artifact as part of the GitHub build?

I am not sure it is possible to have the filename be dynamic, unless there is some way for the RST :download: role to specify a non-static filename...
I suppose the file could contain metadata inside it.  Header lines, as some weather data formats use?

Thanks @kandersolar! This worked great 🥳


Compatibility with Virtual Webcams on Windows

Hi, thank you very much for the program!, would it be possible to add compatibility for virtual webcam sources (not real USB webcams) like IP Webcam (Android), Droidcam, or Webcamoid? (I think they all use DirectShow filters)

Thank you for your sincere feedback! I think it may be an interesting question because I never meet a problem like this while debugging( I only test on computer's webcam ), I will do some researches on it and try to find a solution. By the way, if you could tackle with this problem, please tell me how to work out it, thanks!

I ran it on GPU(GTX 1060) by DroidCamApp(windows, connect by USB).
This block will raise the IndexError:
https://github.com/KennardWang/VTuber-MomoseHiyori/blob/fdb82ef8f4b1e11dd26e3d32401294c8dfa55a4a/Recognition/main.py#L159-L161
I changed it like this:
if steady_pose:
    roll = np.clip(-(180 + np.degrees(steady_pose[2])), -50, 50)
    pitch = np.clip(-(np.degrees(steady_pose[1])) - 15, -40, 40)  # the 15 here is my camera angle.
    yaw = np.clip(-(np.degrees(steady_pose[0])), -50, 50)

But it still just render 6 FPS.
Need I commit a PR for this?
我英语比较差，如果看不懂我们用中文聊吧。
😄

@954-Ivory Thank you very much for pointing out this bug, I guess the reason might be: Mobile USB camera does not initialize the value of roll, yaw, pitch etc. before position calibration. I modify the code and could you plz do me a favor to test again by your DroidCamApp? Btw, there are several possible reasons for low FPS (in my case, the GPU FPS is around 28):

Not install CUDA or use a non-cuda torch version
Incompatible version of CUDA and torch
Run too many programs and occupy the resource

非常感谢你指出这个bug，我想原因可能是，如果使用移动USB摄像头，源代码没有在位置校准前初始化roll, yaw, pitch等变量的值，所以我修改了源代码，能否请你使用DroidCamApp再帮我测试一下？顺带一提，个人认为FPS低的原因可能有以下几个（我自己测试的GPU版本的FPS在28左右）：

未安装CUDA，或者使用了CPU版本的torch
CUDA和torch版本不兼容
有其他运行程序占用GPU资源