Load svg's in SSR via webpack

Do you want to request a feature, report a bug or ask a question?
Question
What is the current behavior?
Loading all SVGs in SSR means i have to have direct access to the .html file,
which i dont as we use handlebars to insert our app.
What is the expected behavior?
Can i extract all icons and insert them into the html via webpack?

I need a demo of your project.

@omRm ping


node-ssl-verify-mode none flag is ignored

I'm trying to create an ec2 server with the SSL disabled
knife ec2 server create \ --node-ssl-verify-mode none
The flag is getting ignored, this does not seem to be the issue on older versions of ChefDK.
chef --version
Chef Development Kit Version: 1.3.43 chef-client version: 12.19.36 delivery version: master (dd319aa632c2f550c92a2172b9d1226478fea997) berks version: 5.6.4 kitchen version: 1.16.0  knife-ec2-0.15.0
ERROR: SSL Validation failure connecting to host: chef-server.node.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed
Unexpected Error: OpenSSL::SSL::SSLError: SSL Error connecting to https://chef-server.node.com/organizations/node.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed

turns out this is an issue when using a wildcard cert as described https://github.com/chef/chef-server/issues/927

Hi @Rudy McComb
I am able to run successfully with
knife ec2 server create --node-name AshWin4 -I ami-11e84107 -f t2.micro -x '.\Ashwini' -P "ec2user@123" --winrm-transport ssl --winrm-ssl-verify-mode verify_none --node-ssl-verify-mode none -VV   command.
The error you are facing is due to unverified certificate.
you can refer the link "https://docs.chef.io/server_security.html#knife-chef-client"
we need to make some setting in /etc/opscode/chef-server.rb for successfull run
reference link :
https://docs.chef.io/config_rb_server.html#ssl-protocols
https://docs.chef.io/config_rb_server_optional_settings.html#nginx

@rudymccomb , any updates on this?

@rudymccomb , closing this issue since @NAshwini was able to get the command running successfully.
Please feel free to reopen if you still have any difficulty.


PURLs not accepted

It needs to be investigated why some purls from https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23772.json are not excepted in the lib:
"purl": "pkg:rpm/redhat/golang@1.17.7-1.module%2Bel8.6.0%2B14297%2B32a15e19?arch=src"

I have a hunch that this is related to https://github.com/package-url/packageurl-js... (or at least the specific version we use).
Edit: I just tried to use the latest version (2.0.1) and resolves the issues.
@secvisogram/service-dev Please update this to the latest version

For example: pkg:oci/rhceph/rhceph-4-dashboard-rhel8

This is true and indeed invalid (also  for the other 19 errors). See https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#oci:

OCI purls do not contain a namespace, although, repository_url may contain a namespace as part of the physical location of the package.

@MarcoKorinth Please provide a separate PR that improves the message for 6.1.13 pointing out what exactly is invalid in the purl (to be extracted from error message).


New Zooz ZST10-700 with 7.19.2 firmware not identified after NVM restore from 500 controller

Checklist

[X] It is not in the configuration DB

[X] It was not merged recently or has a pending PR

Which device is missing?
Zooz ZST10-700
Manufacturer ID
0x027a
Product Type
0x0001
Product ID
0x000d
Firmware Version
7.19.2
Is the device listed on the Z-Wave Alliance website?
https://products.z-wavealliance.org/products/4260?selectedFrequencyId=2
Do you have a manual?
https://cdn.shopify.com/s/files/1/0218/7704/files/zooz-700-series-z-wave-plus-usb-stick-zst10-700-manual.pdf?v=1609159024
I restored the NVM from a HUSBZ-1 controller to a new Zooz ZST10-700 controller.  The new controller came with v7.19.2 firmware.
It's showing as an unknown product, although it does appear to be functioning correctly:

It is listed in the configuration DB, but under Silicon Labs with a different hexId

I have the same problem - the stick shows up according to picture above. Got the USB stick from Amazon with US frequency and would like to update firmware to have EU frequency instead. When trying to do the update of firmware the feedback that the controller is not in boot loader mode.

Got the USB stick from Amazon with US frequency and would like to update firmware to have EU frequency instead.

AFAIK you can just switch the region in the settings on that firmware.

FWIW, Zooz have just confirmed the changed IDs, will fix on Monday.


Update sensor tag logic, add user messages

sensor tag logic
add user messages
tidy curls
split regex from responses

I reworked the sed regex and it does work on MacOS Monterey 12.6
Thought the other changes to the curls and sensor version logic would make it tidier and an improvement for users and maintainability but I think it works for us currently and everyone is happy with it so thats fine we can leave it as it is.

I reworked the sed regex and it does work on MacOS Monterey 12.6
Thought the other changes to the curls and sensor version logic would make it tidier and an improvement for users and maintainability but I think it works for us currently and everyone is happy with it so thats fine we can leave it as it is.

Please use the latest changes in main that were merged in #72. Sed is problematic on macos vs gnu sed.


messages: Lazy load inline profile pictures (user avatars).

We use the loading attribute to tell the browser to lazy load the
images when they are needed. With this change profile pictures will
only be loaded in they are in the viewport as opposed to previous
behavior where they were loaded when they are added to the DOM and
loaded even though they are not on screen.
We also add a greyish background color to the image tag, which makes
the empty space look nicer in case there is delay in loading the
image or if it fails to load due to internet failure.
Finally, I verfied that there were no issues when sending messages
or reciving message like last time we used lazysizes to do this
(see revert #12112 commit 8a15b9ee87d42ba8b4f810c5aa4e6f9ae45b6b25).
The two issues were profile pictures flashes (or flickering) when
sending messages or when reciving new messages when they are
dynamically rendered.
Testing Plan:
I tried bunch of things devtools' Network Tab (including testing things that didn't work out last time as mentioned in commit message.) For example, Disabling Cache and them emulating Slow 3G and Fast 3G to see the experience of avatars being loaded and it works smoothly.
GIFs or Screenshots:

Day and Night mode screenshots

This causes weird flicker issue in firefox + the above comment so closing.


Fix the build issue for CPU other than x86/aarch64

AES acceleration is not implemented for other CPU, like ppc64, etc
AES related function can't compile on these platforms
Signed-off-by: Daniel Hu<EMAIL_ADDRESS>

@gbtucker Please review this PR. It fixes build fail issues

integrated


Update s3-utils to 0.1.165 in scala-steward-dependencies

About this PR
📦 Updates uk.gov.nationalarchives:s3-utils from 0.1.105 to 0.1.165
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "uk.gov.nationalarchives", artifactId = "s3-utils" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "uk.gov.nationalarchives", artifactId = "s3-utils" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, commit-count:1

Superseded by #32.


activities for TX involve with ETH Value

This is an example I use 6.01 ETH  to get 2309 USDT, at the same time receive some CoFi token as a reward.
https://ropsten.etherscan.io/tx/0x2eea5339e788b15b8cbfccb5117956781712afba0eeea4293d9bd89fe573e497

There should be time below ETH Value

once get the ERC 20 activities,  the ETH activity is removed.
There should be ETH activity as well

[x] 1. There should be time below ETH Value — fixed in #2206
[ ] 2. once get the ERC 20 activities, the ETH activity is removed. There should be ETH activity as well — it showed up the first time because of a separate bug which is fixed in #2184. In order to support this, it looks like it has to be addressed in https://github.com/AlphaWallet/TokenScript/issues/392


Arcane Dynamo and Black Hole

Arcane Dynamo's damage bonus doesn't show up on any rune of Black Hole even though Black Hole consumes the stacks in-game.

You're right, its simply missing from the list.


scripts docs:api remove not exist path

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
rimraf command remove not exist path.
https://github.com/mui-org/material-ui/blob/master/package.json#L9

Expected Behavior 🤔

According to faca5c4 change docs/pages/api to docs/pages/api-docs
Maybe it should update rimraf command as well.
-"docs:api": "rimraf ./docs/pages/api && cross-env BABEL_ENV=test __NEXT_EXPORT_TRAILING_SLASH=true babel-node ./docs/scripts/buildApi.js ./packages/material-ui/src ./docs/pages/api-docs && cross-env BABEL_ENV=test __NEXT_EXPORT_TRAILING_SLASH=true babel-node ./docs/scripts/buildApi.js ./packages/material-ui-lab/src ./docs/pages/api-docs",
+"docs:api": "rimraf ./docs/pages/api-docs && cross-env BABEL_ENV=test __NEXT_EXPORT_TRAILING_SLASH=true babel-node ./docs/scripts/buildApi.js ./packages/material-ui/src ./docs/pages/api-docs && cross-env BABEL_ENV=test __NEXT_EXPORT_TRAILING_SLASH=true babel-node ./docs/scripts/buildApi.js ./packages/material-ui-lab/src ./docs/pages/api-docs",

Feel free to open a PR 👍


Check conda-forge channel first when installing conda packages. (#10035)

Porting to release branch.

/merge

The label Approved is required for using this command.

/merge

Merging PR based on approval from @chlafreniere


Quick fixes for 1.4 complaints re missing parens in mix.exs

Just cloned and built/tested, noticed the infamous deps + packages warnings regarding missing parens.  Figured I'd fix it real quickly.
Neat package, going to try using it for some lightweight ML projects!

Thanks for the PR @arpieb.


[potential merge] 'hypercalciuria, absorptive, 2' and 'idiopathic inherited hypercalciuria'

Mondo term (ID and Label)
MONDO:0007748 'hypercalciuria, absorptive, 2'
Reason for deprecation
I think MONDO:0007748 'hypercalciuria, absorptive, 2' (https://omim.org/entry/143870) is the same as MONDO:0016352 'idiopathic inherited hypercalciuria' (ORPHA:2197). The same gene is implicated and the descriptions seem similar. I think this is a kidney disease that predisposes towards kidney stones.
I'm not sure if it should be a 'inherited disease susceptibility' or a proper renal disease.
Term to be merged with
MONDO:0016352 'idiopathic inherited hypercalciuria'
Adding this to November release for you to review. If you agree, we'll need to add the obsoletion tag. Thanks for reviewing this.

I don't think it is correct:
'idiopathic inherited hypercalciuria' (MONDO:0016352)
= Orphanet:2197
= parent term, no associated gene,
children =

'hypercalciuria, absorptive, 2' (MONDO:0007748) = OMIM:143870
= 'idiopathic inherited hypercalciuria'
and ('has material basis in germline mutation in' some ADCY10)
'hypercalciuria, absorptive, 1' (MONDO:0011802) = OMIM:607258

Also, in the definition of the Orphanet:2197 record, I don't see a reference to a gene.
Therefore, I don't think 'idiopathic inherited hypercalciuria' (MONDO:0016352)  and 'hypercalciuria, absorptive, 2' (MONDO:0007748) should be merged.
@nicolevasilevsky

@sabrinatoro where are you looking at the Orphanet term?
On this page, it links to this gene.
And it is also shown in OLS here, I pasted a screenshot below:

On this page, it links to this gene.

I do not see that the gene is related to the disease on the disease page. The etiology section says:
"(...) Genetic susceptibility to absorptive IH is correlated to mutations on the ADCY10 gene (...) pathological elevation of tissue vitamin D receptor (VDR) level is suggested as a molecular basis* of IH (...)"
*granted, we don't know which actual gene is responsible for this. It could be ADCY10, though there might be other genetic reasons.
In other word, there are potentially more than ADCY10 involved in the disease
Also, this orphanet id maps to 2 omim terms.

And it is also shown in OLS here

Related from: disease-causing germline mutation(s) in
Does not appear to mean that the disease is caused by mutation in gene X.
It appears that it means that the disease is related to/includes version of the disease for which the gene is responsible.
Supporting evidence for this: Usher syndrome type 2

'Usher syndrome type 2' is a grouping term that includes
~type 1B (caused by mutation in myosin VIIA) ---> not correct?
~type 2C (caused by mutation in adhesion G protein-coupled receptor V1)
~type 2A (caused by mutation in usherin)
~type 2D (caused by mutation in whirling)

Ah, I see! Thanks for looking into this so closely. If you don't think these should be merged, we can close this ticket. Thanks for looking into this!


How to make lines straight

Hello there.
I was astonished by all your brilliant data-ui!
I finally got a chart on my project to work just fine!
But only one thing is bothering me.
I wanna get the straight lines (using LineSeries with only curve lines)!
It would be great if you let me know how to handle the shape of lines.
Thank you very much.

Hi @lonalee I assume you are talking about the @data-ui/xy-chart package, you can accomplish this simply by setting the interpolation prop to linear.
thanks for checking out @data-ui!


[Java 25.4]: Object Class

Description
Add audio, documentation, and video regarding the Object Class

Location of File to be added
The files should be added inside the folder Object Class which will be inside Java_Lang_Package folder which will be inside of Java folder. If the folder is not present, create the folder with this exact name.

The documentation file can be in the .md/.py/.ipynb format.
Audio should be in .mp3 format and to be submitted through a Google drive link.
Video can be in any format and should be submitted through a Google Drive link.

Note:
You are required to comment with \assign CONTENT_TYPE, so that other content types can be created at the same time.
Failing to comment in the above manner will lead to the removal of assignment from the issue even if the bot assigns.
You are required to do a PR within 7 days otherwise you will be unassigned and others will be assigned.
Issues will be assigned on a first come first serve basis.
Domain
Java_Domain
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign Documentation

/assign audio

\assign audio

/assign documentation

/assign documentation

@Yashesvinee - Could you please remove yourself from assignee of this Issue, If you will check it was assigned to me and later after you made a comment, it assigned to you.
@garvitraj - Could you make a manual action on it please ?
Thanks

Sorry
The issue was unassigned when I tried to assign myself

@sumitaccess007 go with the documentation

\assign audio


Suggestion: create a package release

Can you create a package release from this repository? Please. Maybe someone desire to create a build package from this repo. So, if you create a release, makes this much better. Thanks :+1:

This project isn't very good. I don't plan to maintain or update it in its current state. I should probably just archive it.

Oh, dude... :(
I like this plugin. I'm using it. Any chance to you recreate it in another way?

I've been playing around with Rust and the image crate. As per PistonDevelopers/image#580 there's no proper way to import an X11 XImage. Using the linked function takes ~3 seconds, which is too slow.
If a faster way was added I could write this in Rust using image.

Sounds good to me. ~3 seconds is more fastest than others plugins with same goals. If you can do this much better using Rust, I'll be very happy to create a Void package from this plugin. Actually, I did a pull-request to void-packages with the latest commit.

Alright, I'll work on it. Consider closing void-linux/void-packages#4737.

 The actual time is MUCH quicker.

What optimizations have you made? Are you already working on the Rust version?

Just the Rust default --release target, which enables -O3 as opposed to -O0 in the debug target.
I've been working on a Rust version since I self-assigned this, I didn't want to make it public if it failed.

I'm very much a beginner with Rust, but I much prefer it to C. I highly recommend learning it.
I'd say you're already helping because I was just letting this project rot before.


How do we address uses of item that might end up being nil objects

Summary
We've been getting a bunch of errors that all center around nil item objects -- basically item_ids that used to exist, but don't now, so when the DB goes to find them or use their data, it fails, and throws an error. This is happening in Prod, so it's not hypothetical.
We can address the bugs as they come up, but there have been enough to make me think this is a systemic problem. What approach can we use to address this? One that comes to mind right now is the NullObject pattern -- this seems like a good candidate for that.
I believe the surface area is "anywhere we are sending messages to an Item object".
What do you all think? How should we approach this?

So a null object pattern would basically be: When we query for an item and that item is missing, instead of raising an exception or returning nil, we should return an object that represents "no such item?" I like that suggestion, but I want to understand why we need it.
It sounds like part of the problem is that clients are saving database IDs for items that no longer exist. Do we know why that's happening? Is that expected?

@willmurphyscode
I think this is happening because the diaperbanks are creating a record that refers to a specific Item, and then that item later gets deleted / changed, and then they want to go back and change or view the original record.
We have some failsafes in place; they can't actually fully delete an item if it has any history at all (there's a validation in place for this). But some of the queries are constrained to active: true, intentionally -- a deleted item doesn't show up on these.
We might need to keep a log of instances where this bug comes up, and the circumstances around it, so that we can more specifically isolate the issue. I'm going on a hunch, mainly.

I believe this was resolved by the removal of the default_scope in #1156


Gracefully handle gopls being killed (and maybe govim too?)

What version of Vim/Gvim are you using?
Vim/Gvim version
$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug  8 2019 17:15:45)
Included patches: 1-1830
Compiled by caleb@caleb-desktop
Huge version with GTK2 GUI.
I just checked the master at this moment (44315441be99301a97f3e19a8ca1388e777a3b55).
What is the output of :messages in Vim?
n/a
Do the Vim channel, govim or gopls log files show anything interesting?
I haven't inspected these, but I can if it's helpful.
How did you install govim?
Vim 8 packages
What did you do?
I opened a .go file and edited it. Then I kill the gopls process.
What did you expect to see?
I was hoping that govim would restart gopls and carry on as though nothing happened. (This is what I was used to with vim-go and gocode.)
At the minimum, I would expect things to keep working but in a degraded way (gopls functionality, such as autocompletion, wouldn't work.)
What did you see instead?
Vim completely freezes and stops responding to input.
All I can do then is kill the govim process. At this point almost any action in vim causes lots of govim errors. There's really no recovery at this point other than restarting vim.

I guess it would be okay not to handle govim exiting, since we should expect it to be fairly stable. But there are many reasons why gopls might be restarted and it would be nice if that didn't hard-freeze vim and require a restart to fix.

There has been absolutely zero work in this space so the behaviour is at best undefined, at worst totally broken. And it sounds more towards the latter.
There is sufficient overlap with #77 for me to want to fold this issue into that.


update master to main

new work processes use 'main' instead of 'master'

Why:

What's being changed:

Check off the following:

[ ] All of the tests are passing.
[ ] I have reviewed my changes in staging.
[ ] For content changes, I have reviewed the localization checklist
[ ] For content changes, I have reviewed the Content style guide for GitHub Docs.

👋 Thanks for the PR @d-c-d! I'll let the @github/docs-content-core team know this is ready for review 🌟

There was one pending suggestion, so I committed it. I'll get this branch updated and merge it in once tests are green 🍏 Thanks so much @d-c-d 💝


Namespace or assempbly errors

Hi, after i opened the project on Unity version 2022.3.20, i couldn't do anything cause i received many errors about missing components or namespaces. I'll add a photo for more details, thanks

Hi @PaoloSalvatico,
How did you get the project? It seems like you didn't get the lfs files.
Make sure to install lfs before cloning the project. If you only downloaded the zip, it won't have the right lfs files but rather there addresses to the lfs storage.
See the getting the code setion https://github.com/oculus-samples/Unity-CrypticCabinet?tab=readme-ov-file#getting-the-code

Hi Alex, thank you for the help, that was exactly the problem.


Themes cli migration

WHY are these changes introduced?
CLI2 is going to be deprecated in some weeks. Although the team is working on the migration of the themes commands from Ruby to Typescript, a fallback is needed in case those task don't finish before the deadline.
Another disadvantage of having both CLI version on different repositories is that each time a new feature of fix is needed, two PRs must be created and the deployment process should be synced between them.
So with this PR the CLI2 is going to be embed inside the CLI3. As a first step the complete CLI2 will be copied inside but in a next step only the code related with theme commands should be remain

WHAT is this pull request doing?

Move the Ruby CLI2 codebase to the theme module
Integrate CLI3 themes commands with the embed version of the CLI2
Add a feature flag to switch between the using of the embed version and the bundled one
Integrate lint tasks in the current github workflow

MISSING points

theme-cli unit tests are not working on github. Removed from the workflow
theme-cli includes the complete CLI codebase. Retain only theme commands related code.

How to test your changes?

embed version of the CLI2will be used in the development environment as this env variable SHOPIFY_CLI_THEME_CLI=embed  has been added to the dev.yml, so please run dev up  before the first running
Run any theme command using --verbose flag and check that the message Using embed Theme CLI is being displayed
In the release version the bundled version of the CLI2 is going to be used so far. To simulate this in the local environment run any theme command prepending this SHOPIFY_CLI_THEME_CLI=bundled

Post-release steps

Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[ ] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[ ] I've considered possible documentation changes
[ ] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

After some team discussion, we have concluded that it's better to embed the Ruby code in its own npm module with a Typescript API that executes it.
Besides we should analyze the option of creating this new module as a plugin that could be installed dinamically, for example, only in case you create a theme o generate a theme_app_extension


MINOR: [C++][Parquet] Fix column_reader_test

Rationale for this change
https://github.com/apache/arrow/pull/14142 implemented the logic to skip parquet records and added a lot of test caese. However, there is a minor issue in the test function RecordReaderPrimitiveTypeTest::CheckReadValues where ! is missing.
    if (descr_->schema_node()->is_required()) {
      std::vector<int16_t> read_defs(
          record_reader_->def_levels(),
          record_reader_->def_levels() + record_reader_->levels_position());
      ASSERT_TRUE(vector_equal(expected_defs, read_defs));
    }

What changes are included in this PR?
Add ! to if (descr_->schema_node()->is_required()) as mentioned above.
Are these changes tested?
This is a fix to the test case.
Are there any user-facing changes?
NO.

cc @fatemehp @emkornfield


[GHSA-fxwm-rx68-p5vx] XSS in richtext custom tag attributes in ezsystems/ezplatform-richtext

Updates

References

Comments
Adding the patch link for v<IP_ADDRESS>:
https://github.com/ezsystems/ezplatform-richtext/commit/3cebfe2ae4c22e6590632a0ff71893854a16afc5
The GHSA-ID is in the message: "Merge pull request from GHSA-fxwm-rx68-p5vx"

Hi there @glye! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our highly-trained Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory


I think there is a misspelling in the command name.

https://github.com/acikkaynak/aya-website/blob/3557e236623878019734914dfb19cb1a777a9baa/README.md?plain=1#L14
Apart from this typo, I have a suggestion for you.
I'm using a plugin that does this while writing code within the VsCode plugins. It works fine on HTML classes. You may not need this plugin. I'm not sure if it can also analyze the parentheses.

headwind


std.math.atan2 no longer takes a type arg

https://ziglang.org/documentation/master/std/#A;std:math.atan2
https://ziglang.org/documentation/master/std/src/std/math/atan2.zig.html#L33
This fixes zig build instanced_pills_wgpu-run

The main branch tracks a pinned version (currently 0.12.0-dev.2063+804cee3b9) so I've retargeted this to our unstable branch which is intended for changes that are incompatible with / ahead of the pinned version.
Which version version are you using?


:zap: Support Scalars and minor fixes

fixes #149

@geohot can i add right operations in this pr?
i.e radd, rmul
because its important :)

Looking good!
Absolutely yes on right operations.
Though we shouldn't be playing code golf. If you want more lines, refactor something else. If it's not the cleanest way to write it, don't. I will merge even if it breaks the line limit if it's clean, then I'll save the lines myself.

I had a similar issue with pow, had to reshape so that backward works

I had a similar issue with pow, had to reshape so that backward works

@marcelbischoff can u share what u changed :)

@geohot
PR is completed

tanh gpu testing added
unbroadcasting for scalars bug fixed for both (cpu and gpu)
right operations, rtruedivide , itruedivide and truedivide
reduced first class ops lines :)

for unbroadcasting cpu code, if u have a better way for scalar grad please change:)

There's merge conflicts

Gonna clean up and merge. It's right, just code clean ups.

https://github.com/geohot/tinygrad/commit/c4540f1b8cd6f98a2f97d601bf5bd2a87c0b86d4
The issue with div was that register is never called with it, since it's a second class op.
TODO also, update the optimizers to use scalars instead of "one" and "two"

@geohot think about this
for scalars we dont have to calculate gradient right.
we can bypass gradientcalculation in backward pass if its scalar, it can save some time in unnecessary gradient calculation where requires_gradient is false.
what u think?
e.g
x = Tensor([2.0,2.0,2.0]) * 3.0

class Mul():
  def backward(ctx, grad_out):
      x, y = ctx.saved_backward
      if y is scalar:
          return y*grad_out, gradient_for_y_will_be_arbitary_number
     return y*grad_out, grady

this can help especially in GPU backward  as reduce_op is very costly :)
thoughts?

that should also fix #155 (at least for me)


Support self update

Features Description
On linux/mac the exe is not locked while running so if the min version is defined, we could also have cargo-make validate and self update if need and configured to do so.
naturally windows is out of scope here.
(this is based on discussion in #265)
Describe the solution you'd like
[config]
min_version = "0.21.0"
self_update = true

In case the min version is higher then installed and self_update = true, cargo-make will first trigger self update and then restart.
restarted process would NOT support self update.

on windows, would it be possible to download to another file, exec into a seperate exe/batch script, move the file, and then exec back?

not sure its worth it.
but anyway you can't move or rename the files being executed.
usually you need to have another update process for this and I'm not planning to go there

Yeah windows support definitely involves a bit more logic, but it'd be really nice to have it there too. I think it could be done using a fairly simple process (assuming cargo is used to actually do the update):

Copy self to new temporary location (Can get self with current_exe and open in read-only should work).
Run self from new location with some kind of --trigger-update arg, then promptly die
Have new process wait for parent to die, then trigger the update (letting cargo install the new version)
Finally, run the updated executable with the original args

I'd be willing to implement and test something like that.

Need a bit of time to think about this whole thing.
don't think we need to start copying exe files, instead we could (for windows) run a batch file from cargo-make, and in it:

kill/wait for cargo-make to end
run cargo install --force cargo-make
run original command

this batch could be generated in runtime by cargo-make using the input data we have from the cli and the current env (cwd and other related stuff).


Transfer function widgets viewer pipeline

:tada: This PR is included in version 4.5.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Error when starting testing/development serve.

1531271367807 - Worker 0 exited - Exit code: 1
1531271368185 - Origin: Worker (PID 9920)
[Error] Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.
at native (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\uws\uws.js:38:19)
at Object. (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\uws\uws.js:42:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at new SCServer (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\socketcluster-server\scserver.js:97:18)
1531271368193 - Worker 0 exited - Exit code: 1
1531271368630 - Worker 0 exited - Exit code:<PHONE_NUMBER>
1531271368646 - Origin: BrokerEngine (PID 4880)
[Error] ProcessExitError: scBroker server at socket path \.\pipe\socketcluster_e24aeafe-1ba5_02a88a8eb6_b0 exited
at Server. (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\sc-broker-cluster\index.js:371:19)
at emitOne (events.js:116:13)
at Server.emit (events.js:211:7)
at Server.EventEmitter.emit (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\sc-domain\index.js:12:31)
at ChildProcess. (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\sc-broker\index.js:82:10)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.EventEmitter.emit (C:\Users\Drew\Desktop\Django\Queen.io\node_modules\sc-domain\index.js:12:31)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

+1

Me too

+1

+1 on iMac - High Sierra - 10.13.6

+1

Very easy fix, simply just change the WebSocket engine to "ws".

Very easy fix, simply just change the WebSocket engine to "ws".

Which WebSocket engine are you referring to?

Found that in server.js file. Just change the 'uws' to 'ws'.


get doesn't work with hash

import Component from '@glint/environment-ember-loose/glimmer-component';

export default class BarComponent extends Component {
  public declare x: 'foo' | 'bar' | 'baz';
}

Leads to:
app/components/bar.hbs:1:12 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'EmittableValue | AcceptsBlocks<{}, any>'.
  Type 'unknown' is not assignable to type 'AcceptsBlocks<{}, any>'.

1

             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Removing baz from the type declaration fixes the problem but it should work with it too.

There are two cascading behaviors being shown here, and I'm not sure which you're saying is the bug, but I think they're both working as expected.
First, when get is used with a string that's not known to be a valid key of the object it receives, it returns unknown.
Second, we don't allow unknown values to be assigned to HTML attributes, for the same reason we don't allow unknown values to be emitted directly in top-level mustaches. Emitting a bare object value in a template is nearly always a mistake, and placing any restrictions on the type there at all means we rule out unknown.
(Also, I don't think either of these has anything to do with the use of hash there—unless I'm missing something, the behavior would be the same if you had defined that object as a class property 🙂)

You're absolutely right here, of course. I got confused somehow. Sorry!


nil values need to replace existing values for dates

When I create a date mapper, if the json contains an explicit null value for that property, dates currently don't replace the existing value with a null value. This may be true of other mappings too, but I've explicitly tested it for when we have a date.

Fixed by 26c887782a068e12724889550255112190039e34

I've released 0.13.0 version with this fix.


tmux thinks terminal is less wide in terminal window

Type: Bug
This just started happening after I upgraded to VS Code 1.87.0.  I normally use tmux in my terminal window.  I do remote develpment running VS Code on Windows 11 locally, and my remote machine is Ubuntu 20.  When I have two VS Code windows open with terminals, if I resize one (making it skinnier), the other shows dots and the working area also gets skinnier so they both show the same (smaller) width.  If I close the skinnier instance, the remaining instance grows to the full terminal width again.  This is as expected, and I belive working correctly.
Starting with the latest VS Code release, if I have just a single window, the terminal opens normally, but then, soon (a few minutes) after, it sometimes switches to a a much skinner tmux view (e.g., 40 characters instead of 100, but I didn't count), as if I had another (skinny) terminal open, but I don't.  It doesn't always happen, but I've seen it a few times since upgrading.  Once, it happened (a few minutes) after I opened a second instance of VS Code.  It looked like both instances were constrained by some 3rd (imaginary) instance.  When I closed the 2nd instance, the remaining instance regained its full width.  This would imply something in the 2nd instance was causing it, or reporting a smaller width, even though the terminal window I could see was full width.  But this also seems to happen when I only have one instance of VS Code running (and nothing else should have tmux terminals to my remote machine).
VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.4.0-172-generic
Remote OS version: Linux x64 5.4.0-172-generic

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz (8 x 3302)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.84GB (1.43GB free)

Process Argv
--file-uri vscode-remote://ssh-remote%2Bandy-server/opt/gpudb-dev/server-master.code-workspace --crash-reporter-id 04ee8daf-1cd4-4053-981f-c1eb77f02499

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: andy-server

OS
Linux x64 5.4.0-172-generic

CPUs
Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz (24 x 2933)

Memory (System)
70.76GB (46.39GB free)

VM
0%

Item
Value

Remote
SSH: andy-server

OS
Linux x64 5.4.0-172-generic

CPUs
Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz (24 x 2933)

Memory (System)
70.76GB (46.38GB free)

VM
0%

Extensions (39)

Extension
Author (truncated)
Version

Bookmarks
ale
13.4.2

remotehub
Git
0.62.0

better-cpp-syntax
jef
1.17.2

vscode-cudacpp
kri
0.1.1

l13-diff
L13
1.3.5

remote-ssh
ms-
0.109.0

remote-ssh-edit
ms-
0.86.0

remote-wsl
ms-
0.86.0

vscode-remote-extensionpack
ms-
0.25.0

azure-repos
ms-
0.38.0

remote-explorer
ms-
0.4.3

remote-repositories
ms-
0.40.0

remote-server
ms-
1.5.1

Bookmarks
ale
13.4.2

githistory
don
0.6.20

gitlens
eam
14.8.2

vscode-javac
geo
0.2.46

l13-diff
L13
1.3.5

restructuredtext-pack
lex
1.0.3

git-graph
mhu
1.30.0

debugpy
ms-
2024.2.0

isort
ms-
2023.10.1

python
ms-
2024.2.1

vscode-pylance
ms-
2024.2.3

cpptools
ms-
1.19.5

cpptools-extension-pack
ms-
1.3.0

hexeditor
ms-
1.9.14

fabric8-analytics
red
0.9.2

java
red
1.28.1

vscode-yaml
red
1.14.0

simple-rst
tro
1.5.4

kb-macro
tsh
0.13.13

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.56.2

vscode-java-dependency
vsc
0.23.5

vscode-java-pack
vsc
0.25.15

vscode-java-test
vsc
0.40.1

vscode-maven
vsc
0.44.0

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30968132
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:30979542
d34g3935:30971562
a89i1917:30973842
bg6jg535:30979843
78248357:30976999
dsvsc020:30976470

@Tyriar know of any recent changes that could cause this?

Related: https://github.com/microsoft/vscode/issues/174486


Make LocationInsensitive return potential errors

This builds on top of https://github.com/rust-lang-nursery/polonius/pull/41

Also I see @lqd had a few comments over on Zulip


Demonstrate state-of-the-art multilingual QA performance in top leaderboards

jaydesen created the following on Jan 25:
The datasets being considered here are : TyDi, XOR-TyDi and Mr. TyDi
Example snapshot from XOR TyDI dataset and its task variations:

Original issue: https://github.ibm.com/ai-foundation/PrimeQA/issues/4

On Feb 15, yulongl commented:
XOR-TyDi Retrieve task is updated in #14

Duplicate of #5


Fixed race condition while triggering message redelivery after an ack-timeout event

Motivation
There is a race condition when processing a request for redeliveries after an ack-timeout event. The issue is around the update on the pendingAcksMap in Consumer handler.
When we request to re-deliver all messages, we do:

trigger re-delivery
i. go through pendingAcksMap and read some of the entries
ii. when an entry is read, add the id to pendingAcksMap and then dispatch
from the original thread:
i. go through pendingAcksMap to update stats and then clear the map

If the reading of the entries to be redelivered is very fast (eg. immediately replayed from cache), the clearing might step in after the dispatching thread has re-added the pending entries.
Therefore, at the next iteration, the broker won't re-deliver these messages which will stay in backlog.


Fix sagemaker orchestrator env vars and other minor bugs

Describe changes
This PR fixes the following issues:

Sagemaker has a limit on the size of the environment variable values passed to processing jobs (256). We exceed that with our API Tokens now. Fixed by splitting large env var values into multiple chunks and reconstructing them on the other side
the AWS container registry still runs into errors if the local AWS credentials don't have access to check that the repository exists
zenml orchestrator flavor describe sagemaker fails because the configuration includes attributes that have a Union type and that is not currently supported by the CLI

Pre-requisites
Please ensure you have done the following:

[ ] I have read the CONTRIBUTING.md document.
[ ] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] If I have added an integration, I have updated the integrations table and the corresponding website section.
[ ] I have added tests to cover my changes.
[ ] I have based my new branch on develop and the open PR is targeting develop. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.

Types of changes

[ ] 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 change)
[ ] Other (add details above)

Would this environment variable change also be necessary for the Sagemaker Step Operator?

I imagine it does. Step Operator use Estimator steps and Orchestrator uses Processor steps, but they both allow env variables to be passed in. And from what I understood, the limitation wasn't clearly documented on AWS so we'll just have to try and find out.

This logic looks good, though would love to have some test(s) added since this added functionality is fairly fiddly.


xWindowsFeature: fails when feature does not exist despite Ensure = Absent

Details of the scenario you tried and the problem that is occurring
We have DSC in place to make sure SMB1 is not enabled on our 2012R2 servers. We recently had to spin up a new 2012R2 server and is failing the DSC test. The SMB1 feature is no longer included in the 2012R2 image used to create these servers. I agree that the configuration should fail if using Ensure: Present, but with Ensure: Absent the goal of not having the feature enabled is achieved.
Verbose logs showing the problem
VERBOSE: [NewServer]: LCM:  [ Start  Resource ]  [[xWindowsFeature]SMB1]
VERBOSE: [NewServer]: LCM:  [ Start  Test     ]  [[xWindowsFeature]SMB1]
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Begin executing Test functionality on the FS-SMB1 feature.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Operation 'Enumerate CimInstances' complete.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psd1'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Loading 'FormatsToProcess' from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\Feature.format.ps1xml'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Loading module from path 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ServerManager\ServerManager.psm1'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing cmdlet 'Get-WindowsFeature'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing cmdlet 'Install-WindowsFeature'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing cmdlet 'Uninstall-WindowsFeature'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing function 'Disable-ServerManagerStandardUserRemoting'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing function 'Enable-ServerManagerStandardUserRemoting'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing alias 'Add-WindowsFeature'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Importing alias 'Remove-WindowsFeature'.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] Querying for feature FS-SMB1 using Server Manager cmdlet Get-WindowsFeature.
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] The operation 'Get-WindowsFeature' started: FS-SMB1
VERBOSE: [NewServer]:                            [[xWindowsFeature]SMB1] The operation 'Get-WindowsFeature' succeeded:
VERBOSE: [NewServer]: LCM:  [ End    Test     ]  [[xWindowsFeature]SMB1] False in 2.2810 seconds.
VERBOSE: [RASGMOV01]: LCM:  [ *FAILED*Test     ]     Completed processing test operation. The operation failed.
PowerShell DSC resource MSFT_xWindowsFeature  failed to execute Test-TargetResource functionality with error message:
System.InvalidOperationException: The requested feature FS-SMB1 could not be found on the target machine.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost

Suggested solution to the issue
Consider the feature not existing to be compliant for an Ensure: Absent.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
xWindowsFeature SMB1
{
    Ensure = 'Absent'
    Name   = 'FS-SMB1'
}

The operating system the target node is running
OsName : Microsoft Windows Server 2012 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 9200.22570.amd64fre.win8_ldr.180908-0600
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
PSVersion : 5.1.14409.1012
PSEdition : Desktop
PSCompatibleVersions : 1.0 2.0 3.0 4.0 5.0 5.1.14409.1012
BuildVersion : 10.0.14409.1012
CLRVersion : 4.0.30319.42000
WSManStackVersion : 3.0
PSRemotingProtocolVersion : 2.3
SerializationVersion : <IP_ADDRESS>
Version of the DSC module that was used ('dev' if using current dev branch)
<IP_ADDRESS>

Analysis
The function Assert-SingleFeatureExists seems to be the culprit because it's called in Test-TargetResource at https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/9fd047b90f3d74c4a83e0ae0011da1af5b916bbd/DSCResources/MSFT_xWindowsFeature/MSFT_xWindowsFeature.psm1#L391
and throws an exception if the object passed via parameter -Feature is $null
https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/9fd047b90f3d74c4a83e0ae0011da1af5b916bbd/DSCResources/MSFT_xWindowsFeature/MSFT_xWindowsFeature.psm1#L473
Proposed solution
if the feature can't be found in Test-TargetResource and $Ensure -eq 'Absent' exit the function and return $trueto indicate the resource is in it's desired state. A check for installed sub-features isn't necessary if the (parent) feature isn't available for installation.
Remarks
The corresponding resource WindowsFeature in DscResources at https://github.com/PowerShell/PSDscResources/blob/dev/DscResources/MSFT_WindowsFeature/MSFT_WindowsFeature.psm1 shows the same issue and be fixed accordingly.


Upgrade jquery.min.js to 3.7.1

See https://github.com/tmedwards/sugarcube-2/issues/269 for context

Oops.  Forgot about this PR.  😔


[BUG] - Provisioning fails when IPv6 is enabled on the host

Describe the bug
Block storage provisioning is not working when the host is commuting with IPv6 to the block API
Warning  ProvisioningFailed    10s (x3 over 22s)      block.csi.vultr.com_csi-vultr-controller-0_5df7f339-784b-49f2-9bda-5f1894bbe607  failed to provision volume with StorageClass "vultr-block-storage-hdd-retain": rpc error: code = Internal desc = {"error":"Unauthorized IP address: 2001:19f0:7002:xxx","status":401}

Where 2001:xxx is the main GUA of the node
To provision a volume, IPv6 has to get disabled first, then provision, then re-enable IPv6
To Reproduce
Steps to reproduce the behavior:

Enable IPv6 on the host
Try to provision block storage

Expected behavior

Block storage provisioned

I have the same issue with ipv4 too:
 Warning  ProvisioningFailed    2s (x5 over 17s)   block.csi.vultr.com_csi-vultr-controller-0_68116136-a5f1-4cba-8423-e68ab92910e4  failed to provision volume with StorageClass "vultr-block-storage-hdd": rpc error: code = Internal desc = {"error":"Unauthorized IP address: <IP_ADDRESS>","status":401}

@dvcrn I found a solution. Go to your account API settings and add relevant subnets in Access Control section on that page.

Glad you figured your case out!
My issue is specifically related to IPv6, so IPv4 subnets aren't working. Forcing calls to use IPv4 instead works as a workaround, so in /etc/hosts:
<IP_ADDRESS> api.vultr.com

Alternatively, use sysctl to disable ipv6 on the interface from the host, wait until the volume is provisioned, then re-enable ipv6

Heyo all,
This is a pretty significant problem given that VKE 1.25.7+1 and VKE 1.26.2+1 were both released on 2023-03-14 without this bug being fixed.
I have added my nodes' IPv6 subnets (as /64s, /128s, etc) to my account settings, but still this does not permit IPv6 traffic to the Block Storage API. I even tried allowing ALL IP6 traffic, and this still does not permit the traffic in.
Disabling IPv6 is not an acceptable answer.
What can we do here?

@NeilHanlon
Hello there, this bug is not related to the CSI itself and is related to how API keys work within Vultr. This is simply an issue with the permissions of the API key being used. If you use the CSI on accounts without any API rules it works without issue.
With that being said, I will have the appropriate teams review the behavior of the API key rule functionality to identify what is happening. I will continue this conversation in the ticket you have open as well.
Closing this as it is not related to the CSI itself.


added user signup

Fixes #12
Adding user signup

Do not check each of the condition like if user exists using try catch. Instead use a global try catch for the whole controller function and use if else for the other condition checking.

okay I will create a single try catch

On catch use a 400 error message. And try removing the merge conflict.

I don't know how to remove the conflict...

why you have used _doc . Explain !!

the newUser object contains the complete mongoose object with all the getter and setters and if you simply return that it would populate the response with irrelevant properties, but using the _doc will give the javascript object containing  only user schema details.

Please attach api response screenshot

Response With _doc

Response without _doc

The response you are getting with _doc can also be generated without using it, anyways, whatever you have done is correct. I am merging it.


[Task]: Move IT Asset Tracker DB to Mock DB

SubTasks
Centralise demo data. All other templates use MockDB. The IT Asset Tracker template has another db called asset tracker. We need to move it to MockDB V2

This templates data has been moved to Mock_DB_V2, now called Sample Database


Bind capability parameters to the component

Use case - Bind capability parameters to the component
The controller of the OpenShift Ansible Broker binds the parameters of a service such as a database to a Secret which is next used to inject as EnvFrom within the pod the env vars.
I suggest to adopt also the same approach with our Capability operator and to do the following tasks

Create a secret using a default secret name <DB_CONFIG_NAME>.
Add to the secret, the following properties where some could be created with default values:

name: DB_CONFIG_NAME
value: <DB_CONFIG_NAME>. Default is the name of the capability suffixed with -config. Example postgres-db --> postgres-db-config
name: DB_HOST
value: <DB_NAME>. Default is the name of the capability. Example postgres-db
name: DB_PORT
value: <DB_PORT>. Default is the port of the database as defined for postgres, mysql, ...
name: DB_NAME
value: <DATABASE_NAME>. Default is sampledb
name: DB_USER
value: <DB_USER>. Default is admin
name: DB_PASSWORD
value: <DB_PASSWORD. Default is admin

Update the Deployment of the created Deployment to inject the EnvVars using the properties of the secret

Remark :
Such parameters should be then defined within the Datasource file that ap4k/kreate could populate
spring.datasource.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
spring.datasource.username=${DB_USER}
spring.datasource.password=${DB_PASSWORD}

This binding mechanism avoids the need to specify additional ENV VARS to the Component CRD. If the user accepts the default value, then the DB_CONFIG_NAME will be used to bind the data, otherwise it could override it using a parameter or env var.
apiVersion: devexp.runtime.redhat.com/v1alpha2
kind: Component
metadata:
  name: fruit-backend-sb
  labels:
    app: fruit-backend-sb
spec:
  deploymentMode: build
  buildConfig:
    url: https://github.com/snowdrop/component-operator-demo.git
    ref: master
    moduleDirName: fruit-backend-sb
  runtime: spring-boot
  version: 2.1.3
  envs:
  - name: SPRING_PROFILES_ACTIVE
    value: postgresql-kubedb
  - name: DB_CONFIG_NAME
    value: postgres-db-config

WDYT : @aureamunoz, @metacosm, @iocanel, @gytis, @geoand, @nainaz @tqvarnst

:+1:

See example + convention for the fields here : https://github.com/snowdrop/component-operator/blob/master/examples/demo-v1alpha2/capability-db.yml

Does this still need to be opened since it seems that it's fixed already?

I will close it. This is correct as it has been implemented


build: fix wrong SASS path

Fixes SASS errors when Material is imported directly.
Fixes #2133.

LGTM
I'd like to figure out why this didn't cause a problem: our build worked, sample apps worked, and all of the internal Google sass builds using Material worked. Is it possibly something that is only an error in older versions of sass? Is it a ruby vs. libsass thing?

No idea, I can spend some more time with it over the weekend.


[Experiment] Fetch failed error when use fetch_v2

We are receiving different kind of errors when we call to fetch experiments:

[Experiment] Fetch failed: Remote end closed connection without response
[Experiment] Fetch failed: EOF occurred in violation of protocol (_ssl.c:2427)
[Experiment] Fetch failed: Request-sent
[Experiment] Fetch failed: The read operation timed out
[Experiment] Fetch failed: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006)

What do those errors mean?
Expected Behavior
fetch_v2() method working properly
Current Behavior
we receive different kind of errors, not always.
Possible Solution
we don't know the root cause
Steps to Reproduce
we don't know.
I can share sentry traces and error information with you if prefer.
Environment

SDK Version: amplitude-experiment = "==1.3.1"
Language Version: 3.11

Hey Raul,
Thanks for submitting the issue.
These all looks like issues related to network calls.
When did this start to happen and does it continue to happen?
Is there special configurations of server_url (ex. proxies or EU datacenter)?
Thanks.

Hey Peter,
First of all, thank you so much for your support.
It started almost from the beginning when we started to use the library to
integrate Amplitude experiments with our backend service. It
continues happening, actually this night we had another new issue with a
different error:
Fetch failed: Fetch error response: status=502 Bad Gateway
There is no special configuration in from of the server for the connections
from the server to the outside world. The trace does not indicate anything
interesting because the response is just a 502.
What can cause these kinds of errors?
Thank you so much for your help.
On Tue, 16 Jul 2024 at 18:50, Peter Zhu @.***> wrote:

Hey Raul,
Thanks for submitting the issue.
These all looks like issues related to network calls.
When did this start to happen and does it continue to happen?
Is there special configurations of server_url (ex. proxies or EU
datacenter)?
Thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/amplitude/experiment-python-server/issues/48#issuecomment-2231389203,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTKIZRYEO4L625J5Y4GCTDZMVFONAVCNFSM6AAAAABK4ZQTZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGM4DSMRQGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi Raul,
Thanks for the response and confirming that it's a persistent error.
We have just identified an issue with one of our CDN vendors which should be the root cause of above errors. We have just stopped routing request to that CDN. The 502 is a new one. It's possible that it's also related to CDN. Please let us know if you still see any errors.
May I just get a bit more extra info:
When (date / time) did you started to use the library / error starts?
And what percentage of the request volume resulted in one of the above errors?
Thanks!

Hi Peter,
Thank you for your support. Do you know why we have seen the last of these errors 7 hours ago? Maybe the change has not be done yet?
"[Experiment] Fetch failed: Remote end closed connection without response"
We started to use the library 2 months ago.
The first error we saw was 4th June 2024
what percentage of the request volume resulted in one of the above errors? I can`t answer this question with an exact number but we have seen 80 events in Sentry, with a high number of requests in the service. So I would say that the percentage is probably low but has a high impact because we can't use that feature flag in our service properly.

The CDN change was applied within minutes.
To ensure these evaluations are served properly, I would suggest to tweak retry parameters to retry these requests.
It's quite unusual that the endpoint just simply close connection without any status code or triggering a timeout. The following questions can help us understand patterns and potential causes.
How frequently does this error occur?
Does the error happen in bursts, or at a consistent rate over the course of a day?
How long does it take for requests to fail, the average latency of failures?
Thanks.

Hi Peter,
Let me try to answer those questions with helpful information:
How frequently does this error occur?
If you mean the last error "Remote end closed connection without response" we have had in 2 months 157 errors. The last one was on Jul 23, 2:04 AM. The first one was on Jun 4, 12:21 PM. The error seems to happen everyday:

Does the error happen in bursts, or at a consistent rate over the course of a day?
over the course of a day as you can see in the previous image, and the hour when the error occurs is always different. It seems that it does not follow any pattern.
How long does it take for requests to fail, the average latency of failures?
It seems, seeing the traces, fails immediately. Or for some reason, Sentry does not show us the total duration of each trace, so, we can not know that latency on average.
How else can I help out?

Hi Peter!
anytime!
The times are in UTC as you can see here:
[image: image.png]
On Wed, 24 Jul 2024 at 02:36, Peter Zhu @.***> wrote:

Thanks for the info!
Looks like we have around 2 errors per day at different times, and worse
on several days.
What would be the timezone of the time you mentioned? I'm trying to match
numbers up with any of our metrics.
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/amplitude/experiment-python-server/issues/48#issuecomment-2246634881,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTKIZT2AVWI7NAAOBK7UJLZN3ZKRAVCNFSM6AAAAABK4ZQTZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWGYZTIOBYGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

The error happened after we receive a huge spike in traffic. The time is indeed unpredictable. We have been continuously improving the performance of our service during large spikes, and have plans to keep doing so. For the SDK side actions, my suggestion would be to configure retries. Some tweaking may be needed to achieve the optimal results.
Thanks for raising this to us!


Bump alerts to 0.5.x using srcdeps

With the upgrade of bus v0.7.0 alerts needed to be aligned and use same API.
I've upgraded into 0.5.x and using srcdeps to point specific commit as we have not finished the 0.5.0 version yet.

Thanks @lucasponce


symfony-cli: 4.26.9 -> 5.0.7

The Symfony-cli tool has been open-sourced so it's time to update the derivation.
Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[x] x86_64-darwin
[x] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@ofborg build

@ofborg build symfony-cli

Tested and works fine for me 👍🏻

@ofborg build symfony-cli

@ofborg build symfony-cli

Cool, thanks @jtojnar !


Link for downloading core tools --> v4.x - Windows 64-bit is not working

The link under heading - Install the Azure Functions Core Tools - for download the Function Core Tools for Windows x64 is not working. It is redirecting to a "xml" resource not found.
The same goes for the 32 bit link.

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

ID: b2646ad4-34b7-fc5e-dcc9-d53a061df394
Version Independent ID: bbff4fda-24e4-2b62-24b9-94cda5f53bed
Content: Work with Azure Functions Core Tools
Content Source: articles/azure-functions/functions-run-local.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@hoejsagerc Thanks for the feedback. We will review and update as appropriate.

@hoejsagerc I checked both the links i.e. Windows 64-bit & Windows 32-bit and was able to download both versions.
Can you please validate again or try from different machine/environment and let us know?

@hoejsagerc We will now proceed to close this thread. Feel free to add a comment if any other questions or concerns.


modifications for CentOS-7

Centos-7 uses Systemd

Can one of the admins verify this patch?

I would like to take the fedora modifications into an other PR, want to move the sshd restarting into a separate function since its used in multiple places.

test this please

Please associate your commit with a beaker ticket number (BKR-xxx).

ok to test

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/725/
:red_circle: Test failed.

Review comments still current.

Will process tomorrow ( Tuesday )

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/734/
:red_circle: Test failed.

retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/737/
Test FAILed.


Firestore: iOS Bypassing Security Rules for FIRDocumentSnapshot()

Environment

Xcode version: Xcode 9.1, Simulator: iOS 11.1 iPhone 6
Firebase SDK version: 4.6.0 (including 4.5.0)
Firebase Component: Firestore
Component version: 0.9.2 (including 0.9.1)
Development Operating System: MacOS Sierra 10.12.6

Issue
I was having an issue with Firestore on iOS bypassing security rules on a collection when I converted from a get(), to a onSnapshot() listener.
I have confirmed my rules are working correctly via the get() in iOS, and both the get() and onSnapshot() listener work correctly in the Firebase JS SDK and Android SDK.
I don't believe this is an offline cached data issue, as I'm able to get updated data, along with data the user would never had access to.
Note
I noticed on the Firestore Security Rules there is a Note:

Note: Because the server client libraries authenticate through Google Application Default Credentials, they bypass any Cloud Firestore Security Rules you set up. If you are using the server client libraries or the REST or RPC APIs, make sure to set up Cloud Identity and Access Management for Cloud Firestore.

I'm not sure, but does the iOS SDK require Cloud Identity since it makes use of the gRPC library?
My Security Rules
Again, these work correctly on the Firebase JS SDK, Android SDK and for get() on iOS, but not for onSnapshot().
service cloud.firestore {
  match /databases/{database}/documents {

     match /orders/{orderId=**} {
        allow read: if request.auth.uid == resource.data.user.id;
        allow write: if false;
      }

   }
}

Working as Expected
get() on JS SDK
firestore.collection('orders')
            .where('user.id', '==', user.uid)
            .get().then(snapshot => {

                console.log('Snapshot: ', snapshot);

            }, function(err) {

                console.log('Error: ', err);

            })

get() on IOS SDK
[[[self.db collectionWithPath:@"orders"] <EMAIL_ADDRESS>isEqualTo:@"myUserId"]
    getDocumentsWithCompletion:^(FIRQuerySnapshot *snapshot, NSError *error) {
      if (error != nil) {
        NSLog(@"Error getting documents: %@", error);
      } else {
        for (FIRDocumentSnapshot *document in snapshot.documents) {
          NSLog(@"%@ => %@", document.documentID, document.data);
        }
      }
    }];

onSnapshot() on JS SDK
firestore.collection('orders')
            //.where('user.id', '==', user.uid)
            .onSnapshot(snapshot => {

                console.log('Snapshot: ', snapshot);

            }, function(err) {

                console.log('Error: ', err);

            })

ByPassed Security Rules (Should fail like JS SDK)
This should fail since I did not specifiy a user.id, as required by the rules. Instead, this gives me all the orders. This does correctly return Error: Missing or insufficient permissions. on the Firebase JS & Android SDK.
One odd note, is it does fire both the snapshot sending the data, but then it does sometimes call err and give the error. But, it always sends the data regardless.
FIRDocumentSnapshot() on iOS SDK
[[self.db collectionWithPath:@"orders"]
    addSnapshotListener:^(FIRQuerySnapshot *snapshot, NSError *error) {
      if (snapshot == nil) {
        NSLog(@"Error fetching documents: %@", error);
        return;
      }
      NSMutableArray *orders = [NSMutableArray array];
      for (FIRDocumentSnapshot *document in snapshot.documents) {
        [orders addObject:document.data[@"id"]];
      }
      NSLog(@"Current orders: %@", orders);
    }];

This is very strange as the Android, iOS, and JS SDKs all talk to the backend in the same way and so rules should behave exactly identically. Additionally, this would represent a severe security issue, but I haven't heard any other reports.  The only reason I can think of why you'd get results from the query is if there's previously-cached data on the device and so you get an event containing this cached data.  Note that this should be followed by a "permission denied" error once the client talks to the backend and the rules reject the query.
If you believe something else is going on, can you please provide a standalone way to reproduce this issue? Or can you capture a log where you get up-to-date data back (guaranteed not to be from cache) by calling Firestore.enableLogging(true)?  You can provide the repro / logs directly to me at<EMAIL_ADDRESS>Thanks!

@mikelehen Thank you for the detailed response.
I assumed they behaved exactly the same, but seeing as the iOS library used gRPC, I didn't know if there was something that might have been missed.
I did enable Firestore.enableLogging(true), but it's not pulling fresh data. I've been able to hack around and see that there is some data in there that was cached, but I was able to reproduce the issue at least once with a fresh install. Not sure if deleting the app from the iOS simulator also clears the cached data, but I assumed so. That might not have been the cache.
Regardless, after a pod update, I'm able to have consistent results now and the rules seem to behave as expected.
I'll keep you apprised if I run into any further inconsistencies and able to provide you a reproducible example.

Sounds good. Thanks for following up!  FYI- The Android client also uses GRPC.  The Web client does not, but it shouldn't make a difference, since the transport layer is pretty isolated from rules evaluation.  So this probably isn't an iOS-specific bug...  but there could be an inconsistent difficult-to-reproduce bug.  Definitely holler if you see anything more suspicious.  Thanks!

I think I'm getting the same issue with the Golang SDK.
I am using these Golang examples
I am able to read information for documents even when I shouldn't be able to.
Rules
match /device/{document=**} {
    allow read, write: if request.auth.uid == resource.data.owner;
}

Even with the above rules I can read all my "devices" from golang, but only read the ones with the correct owner through the JS SDK.

@zkdzegede The server client libraries bypass all Cloud Firestore Security Rules and instead authenticate through Google Application Default Credentials. If you are using the server client libraries or the REST or RPC APIs, make sure to set up Cloud Identity and Access Management for Cloud Firestore.

@mikelehen
I'm trying to use golang for an embedded "client" not as a "server client".
In that case would I still want to use IAM for something I am distributing to end users?
When I was looking at the Access Management for Cloud documentation it seemed like the controls were not for user level access controls the same way the Cloud Firestore Security Rules did, but rather at the developer/service/group/suite level.
The fact that my golang code could completely bypass all the database access rules just by knowing the project-id seems a bit dangerous.  Or did I miss a setting that would prevent that from happening without the proper IAM authentication. 🤔

Sorry I just realized that this issue is under firebase-ios-sdk, but it sounded so close to what I was experiencing I thought I should add it here after reading Definitely holler if you see anything more suspicious


Google Maps v3 inside tabs

When inserting Google Maps inside a hidden tab, the map itself renders misaligned. Thanks.

+1

maybe a solution here : http://stackoverflow.com/questions/3014156/google-maps-and-jquery-tabs

This problem also exists with Modals.

Well, it looks like google.maps.event.trigger(map, 'resize') has to be called (Google Maps reference).
Can anyone provide a working example on jsfiddle?

It seens like the only way to get a map to display in a tab at all is to set the CSS width and height of #map_canvas to be absolute values. Changing the width and height to auto or 100% causes the map to not display at all.
http://jsfiddle.net/Jf4JH/2/

Thanks a lot, alexxfsilva. I guess this issue can be closed.


PT Run can not start .lnk file

Microsoft PowerToys version
0.56.2
Running as admin

[X] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce

PowerToysReport_2022-03-09-13-22-00.zip
✔ Expected Behavior
to open app use PT Run
❌ Actual Behavior
No response
Other Software
No response

on quick look, logs don't show a failure, odd

Hi @GrahLnn ,
Thanks for reporting.
Could you please give some more context about what's happening and what the message says? (Can't understand this language)
What application is that? Is it happening just with that application?
/needinfo

Could you please also paste those characters in a GitHub comment so that I can try to copy and use them in paths and see if that's the issue?

Yes!
It's starting 3 or 4 days ago, I use PTRun like usual, but PTRun can't start any application, not just this one. Then I go to this URL and double click .lnk file, it can start normally.
The message says "Plugin:程序(Program)  无法启动(Could not start): C:...... .lnk".
The "微信“ is same with WeChat but developing for Chinese users.
Not just for this application, all application cannot use PTRun to start in this computer.

about other application by use PTRun to start

Thank you, just identified the code path... Unfortunately this code path is not logging the exception. I'll add some logs here and send you a Debug build to see if we can identify what's happening, OK? Thank you.

By the way, is your admin user that's running PowerToys by any change a different user than the one that's logged in?

Yes, it's ok. And admin user is the logging one.

Hi @GrahLnn
Could you please try a debug build so we can get more information into what might be causing this? (It's an unsigned build , by the way)
https://github.com/jaimecbernardo/PowerToys/releases/tag/add-logs-issue-16912
Please uninstall your current PowerToys installation, then install this debug build.
Replicate the bug.
After that, navigate in Explorer to "%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Logs\<IP_ADDRESS>"
It should have created a file in there with today's date.
Please upload this log file so I can take a look.
Thank you, in advance.

/needinfo

Thanks for the file.
Regarding that error you see, it's a known unrelated error we need to fix before release.
Interesting, translating the error in the logs 没有应用程序与此操作的指定文件有关联。  gives No application is associated with the specified file for this operation.
This is a link file being opened, so it's weird it's not being opened. Needs further investigation.

I've been unable to replicate this up until now.
I've decided to go debug to see what runProcess is being called with, then I'm suddenly able to replicate it.
https://github.com/microsoft/PowerToys/blob/80e9fc0c43f72710737cf49b0692aee2849588ee/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs#L172-L194
If you set a breakpoint in runProcess(info) to inspect info and then continue, it replicates the error.
So, this is replicating when inspecting info? For some reason inspecting it breaks it?
This is pretty weird, but it's what I'm observing, if I inspect info before calling runProcess(info) it fails 🤷
@GrahLnn , might you have some software which is inspecting memory? Does any of this make sense?

It seems the error I'm getting is unrelated.
@GrahLnn  gets
Exception full name  : System.ComponentModel.Win32Exception
Exception message    : An error occurred trying to start process 'c:\programdata\microsoft\windows\start menu\programs\adobe photoshop 2022.lnk' with working directory 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs'. 没有应用程序与此操作的指定文件有关联。
Exception stack trace:
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Plugin.Program.Main.StartProcess(Func`2 runProcess, ProcessStartInfo info)
Exception source     : System.Diagnostics.Process
Exception target site: Boolean StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo)
Exception HResult    : -2147467259

While I get :
Exception full name  : System.InvalidOperationException
Exception message    : The Process object must have the UseShellExecute property set to false in order to use environment variables.
Exception stack trace:
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.Plugin.Program.Main.StartProcess(Func`2 runProcess, ProcessStartInfo info) in D:\prog\janeasystems\PowerToys\src\modules\launcher\Plugins\Microsoft.Plugin.Program\Main.cs:line 186
Exception source     : System.Diagnostics.Process
Exception target site: Boolean StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo)
Exception HResult    : -2146233079

My error seems to be caused by the fact that inspecting the ProcessStartInfo struct will initialize the Environment Variables collection.

It's not clear why you are getting a "No application is associated with the specified file for this operation." though.
This does seem to be an issue with the system rather than the code, since the shell should be able to execute link files.
Do you have anything set for .lnk on the Choose default apps by file type in Settings?

Might it be that some settings for Program files are not correctly set in the registry? (taken from https://stackoverflow.com/questions/54225771/c-shellexecute-specifically-not-opening-lnk-files)

/needinfo

Thank you for helping, I checked this .lnk default seting and no app in there, then I following this to change registry it's still not get fix.

It's very weird, but explorer is unable to open link files for your. Perhaps it's one of these other keys?

I am having this same issue on v0.64.1.
Shortcut (.lnk) files are found by both the Search and Program plugins, making for duplicate entries. Using the Search plugin result opens the correct folder in Windows Explorer, but using the Program plugin result results in an error window, as shown below.

@GrahLnn @jtmathes Does this still happen with the latest version of PowerToys? /needinfo


Restructuring the repository

@PhilippSchuette We should:

Update the description of the repo
Add some tags for languages, algorithms and so on
Rename the solution files in ./code (or py_src) from problem1.py to problem001.py and so on (this includes modifying the imports in test.py and problem7.py)
Update the README.md, especially the table:
1. Add language fields
2. Add runtime fields for all the languages and solutions
3.

@DanielSchuette - what additional restructuring were you thinking of? Maybe you can take a final look and close this issue afterwards.

Also, someone should include the runtime results in the newly created column of the README.

I timed the Python solutions and except for two solutions, everything looks good. I also added Go solutions 1 through 10, but I have to clean things up a bit and actually time them. I will open a new issue for that and close this one!


Text styles in no results page are incorrect

Description
Title and description texts in the no results page do not follow the styles defined in the mockup. H1 should be Heading 4 and the text below be Description regular.
Reproduction

Open openverse on mobile or within the smallest breakpoint.
Search for "asd32asda"
Notice that title and description texts, above source links, are bigger than mockups.

Screenshots

Implementation
Design

Resolution

[ ] 🙋 I would be interested in resolving this bug.

Working on this issue!

My friend kickeyhickey will be creating a PR for this! Thanks!


Optional ClientData and Help for extensions, PreInput hook so per interp client data can be set, expose Extensions

Needed (https://github.com/grol-io/grol-discord-bot/pull/83 which 'tests' this) to make grol discord bot safer for sending complex messages where the channelID is attached to the ClientData and thus can't be modified by grol code
Extensions can be changed/set using now exposed Extensions in the state.
Improves on extensions discoverable help; eg:
$ json_go
json_go(any, [string]) // optional indent e.g json_go(m, "  ")
$ save
save([string]) // filename (.gr)

Through optional Help field
And client data replaces the default eval.State first argument in CallBack
Also adding repl.EvalStringOptions() which has the necessary starting values for EvalStringWithOptions to function.

I have more stuff I want to change/fix but will merge this one first and make smaller additional PRs


[ONEToolchain] Introduce ONEToolchain

This commit introduces ONEToolchain when the extension is activated.
This also includes test codes for ONEToolchain.
related issue : #1271, #1272
related draft : #1283
ONE-vscode-DCO-1.0-Signed-off-by: Yeonjeong Lee<EMAIL_ADDRESS>

@Psalmist-KIM @lettersto Please approve this PR :)


HandshakeException: Handshake error in client (OS Error:  [   +2 ms] TLSV1_ALERT_PROTOCOL_VERSION(tls_record.cc:587))

Expected results:  Apis worked in the browser and postman not in the flutter app
Actual results: Apis shoud work in flutter app
[   +3 ms] I/flutter (31842): HandshakeException: Handshake error in client (OS Error:
[   +2 ms] I/flutter (31842):   TLSV1_ALERT_PROTOCOL_VERSION(tls_record.cc:587))
[  +30 ms] E/flutter (31842): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.[   +3 ms] E/flutter (31842): Receiver: null
[   +2 ms] E/flutter (31842): Tried calling: []("success")

[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.17134.1304], locale en-IN)
    • Flutter version 1.17.4 at F:\flutter_windows_1.17.4-stable\flutter
    • Framework revision 1ad9baa8b9 (5 weeks ago), 2020-06-17 14:41:16 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at C:\Users\Veera\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: F:\AndroidLocation\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at F:\AndroidLocation
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.47.2)
    • VS Code at C:\Users\Veera\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.12.2

[√] Connected device (1 available)
    • ASUS Z010D • G3AXB7133336R6E • android-arm64 • Android 6.0.1 (API 23)

• No issues found!

Hi @vbhvsa
the error you are encountering might be specific to your implementation,
can you please provide your flutter run --verbose and a minimal complete reproducible code sample.
Thank you
possibly related to https://github.com/flutter/flutter/issues/50699

After lots of seraching I found that ,  this error is cause due to my server uses the latest TLSV1.3 protocal, Can any one let me know how can I make flutter support this protocal?

Hi @vbhvsa
as mentioned above for issues or feature requests for the http package please open an issue in the dedicated github
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


pull request for e2e test at 12/04/2016 18:56:03

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 2448 ms

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


Repeated enum invalid TypeScript, TS1011 error

In the following example:
syntax = "proto3";

message SearchRequest {
  string query = 1;
  int32 page_number = 2;
  int32 result_per_page = 3;
  enum Corpus {
    UNIVERSAL = 0;
    WEB = 1;
    IMAGES = 2;
    LOCAL = 3;
    NEWS = 4;
    PRODUCTS = 5;
    VIDEO = 6;
  }
  repeated Corpus corpuses = 4;
}

message Result {
  string title = 1;
}

message SearchResponse {
  repeated Result result = 1;
}

service SearchService {
  rpc Search (SearchRequest) returns (SearchResponse);
}

The repeated Corpus corpuses = 4; produces a typescript line of return (<any>Corpus[])[this._json.corpuses!], which causes a failure of:
output/example_003.ts:78:25 - error TS1011: An element access expression should take an argument.

78     return (<any>Corpus[])[this._json.corpuses!]

I'm not too familiar with TypeScript syntax here, but the bug should be fairly easy to reproduce. Thoughts?

same issue

same issue


Remove or escape semicolon from GCode SHDR output.

Multiple GCode blocks do not transmit to an MTConnect Agent due to semicolon between each block.

Nevermind.  Not an issue.


Can't install LiquidCore in V8-only mode

I'm trying to set up LiquidCore according to the guidelines here so that I can execute Javascript using a JSContext, without the need to install the whole Node.js feature set.
I'm not certain from the documentation whether installing the JSC to V8 translation layer (described in the "JavaScriptCore API" section of that wiki page) should be necessary for JSContext to work. However, if I follow the setup instructions under the "Installation" heading on the wiki page, using apply from: new File(rootProject.projectDir, 'node_modules/liquidcore/include.V8.gradle') to load LiquidCore in my build.gradle file, I am not able to import org.liquidplayer.javascript.JSContext into any Java file in my project - the module doesn't appear to exist.
So instead, I tried the method listed under the "JavaScriptCore API" section, now using apply from: new File(rootProject.projectDir, 'node_modules/liquidcore/addon.gradle') in my build.gradle file. I created a CMakeLists.txt file that reads as follows:
cmake_minimum_required(VERSION 3.4.1)

include_directories(
  build/liquidcore-addon/include/JavaScriptCore
)

add_library( js-lib SHARED IMPORTED )
set_target_properties(
  js-lib
  PROPERTIES IMPORTED_LOCATION
  ${PROJECT_SOURCE_DIR}/build/liquidcore-addon/jni/${ANDROID_ABI}/libliquidjs.so
)

target_link_libraries( js-lib )

I added this file to the native build targets in my build.gradle file. However, whenever I try to build the project, I get the following error:
CMake Error at CMakeLists.txt:14 (target_link_libraries): Cannot specify link libraries for target "js-lib" which is not built by this project.
If I try to build without the CMakeLists.txt, the build succeeds, but trying to instantiate as JSContext object throws java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/collection/LongSparseArray. I assume this is because the C++ libraries have not been built properly.
I have two questions from this that I'm trying to resolve:

Do I need to install the C++ libraries in order to use JSContext and associated objects?
If so, why is the project failing to build? This appears to be a problem with my CMakeLists.txt file, but I don't know what the issue is.

Any guidance much appreciated!

I fixed my issue. Adding the details here in case someone else runs into the same problem.
To answer my question (1), you don't need to install the C++ libraries in order to use the V8 bindings. My confusion was caused by the fact that LiquidCore doesn't download the necessary JAR file until you build the project for the first time after you've added the dependencies to the gradle file. After that, it will work as expected.
However, after this, creating a new JSContext still caused java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/collection/LongSparseArray. I fixed this by adding the following lines to my gradle.properties file:
android.enableJetifier=true
android.useAndroidX=true

I then migrated the app to AndroidX (using the option in Android Studio under the Refactor menu). After that, it compiled and ran as expected.


DevTools chrome extension

Could you please tell what advantages of using
devtools-dock
devtools-dock-monitor
redux-devtools-log-monitor
against just chrome/firefix devtools extension?
https://github.com/zalmoxisus/redux-devtools-extension#advantages
Also it allows to keep less code in your sources...

I'd still like to keep the local devtools sidebar, just so people get more functionality out of the box w/o needing an extension, but this might be a good replacement for the dev:nw script.

@davezuko Thanks, got it


update SignalR getting started sample to RC1

We missed a file in the earlier update! 😄
Also, the ES5 version seemed to be out of date and was missing the .start call.

Also removed the wwwroot/lib/signalr/ folder since it's easy for it to get out of date, and none of the other samples have it checked in.

@anurse Thank you for updating this.