Watcher doesn't see a new file called "index.js" inside a subfolder

Description
I have an app with this folder structure :
src
├── App
│   ├── App.css
│   ├── App.js
│   ├── App.test.js
│   ├── index.js
│   └── logo.svg
├── index.css
├── index.js

Inside the index.js file, I have this line :
import App from './App
Which causes this error :
Failed to compile.

Error in ./src/index.js
Module not found: [CaseSensitivePathsPlugin] `/home/benoit/Development/react-spring-template/client/src/App.js` does not match the corresponding path on disk - File does not exist.

When I add a / at the end of the path, then it works.
import App from './App
Is there a reason why the folder import doesn't work without a trailing slash, or is this a bug ?
Expected behavior
I should be able to import something from the  index.js file of a subfolder without putting a trailing slash at the end of the folder.
Actual behavior
I need to put a trailing slash at the end of the import statement if it's a folder.
Environment
Run these commands in the project folder and fill in their results:

npm ls react-scripts (if you haven’t ejected):

npm ls react-scripts
<EMAIL_ADDRESS>/home/benoit/Development/react-spring-template/client
└──<EMAIL_ADDRESS>

node -v:
v7.2.0
npm -v:
4.0.2

Then, specify:

Operating system: Archlinux
Browser and version: Chrome

Can you consistently reproduce this, after stopping and starting the development server again?

Oh wow, that was the problem. Sorry about that, I didn't think of that.

No worries. This is kinda weird—my guess is that it remembers that it couldn't find the file with that exact name, and later gives up searching for it again. Not very good so if you find an easy way to reproduce this step by step (e.g. create a file with some name, then add an import with some form) and it always happens, maybe we should file a bug in one of the upstream projects. Please let me know!

Ok so i've successfully reproduced, it's very easy in fact.

Create an app from scratch
create-react-app test-failing-import
Start the development server
cd test-failing-import && yarn run start
Move the App component and its dependencies in a subfolder
mv App.* logo.svg App/
Create the index.js file in the subfolder

cat > App/index.js
import App from './App'
export default App

Refresh browser. You get the error. Change the import in the root index.js to ./App/ or ./App/index and the error goes away.

same here, i can reproduce this problem with my own webpack config.
so i think this is a bug of webpack rather than create-react-app.

Yes, it's a Webpack bug. We are keeping the issue open because it affects CRA experience and ideally we'd like to remember to come back to this at some point and figure out a solution. If you'd like to help please let us know!

Any progress on this issue?

No, progress doesn’t happen without somebody pushing for it. 😉
I tagged issue as needing contributors. If you’d like to help, you’ll probably need to figure out where this breaks on Webpack side. I don’t know if this is even feasible to fix or not.

(Just in case you missed it, the workaround is to restart the development server. But it would be nice if this “just worked”.)

Possibly related to webpack/webpack/issues/1533

is this issue really the cause cause for this problem:
https://stackoverflow.com/a/43281575/368070
reload on change stopped working for me, but I also don't have an App  but an index.html which loads an app.js
Any ideas?


Update Test_ProxyOperations

This test was disabled during a recent refactor of UCP's code because it tests features and scenarios that we didn't deliberately enable. Some examples:

Creates a new "AWS" type plane using a test-specific resource type
Creates resource groups within that plane
Proxies a request to an RP within that plane

We should decide first if this is functionality we want to keep and then decide how to re-enable this test.
Right now all of the intended functionality of UCP is well-tested through the Radius and AWS tests.
AB#8468

Removing triaged level to re-visit priority of this skipped test.

I think the right decision is to remove this test. I didn't want to jump to any conclusions at the time I created the issue, but this hasn't been relevant in in the 6 months since then.

@rynowak https://github.com/radius-project/radius/pull/6803


Web cannot be displayed

I used a single box deployment.
When Running Commands:
sudo python paictl.py cluster k8s-bootup  -p pai-config
A warning will appear halfway: The connection to the server ...:8080 was refused - did you specify the right host or port?
But in the end it will show:
[INFO] - deployment.confStorage.synchronization : Cluster Configuration synchronization from external storage is successful.
However, I can't access Kubernetes Dashboard. (http://:9090)
And the web http://..***:8080, show :

OpenPAI Environment:

OpenPAI version: v0.9.0
OS (e.g. from /etc/os-release): Ubuntu16.04

Login to your master node. And execute the command following and then paste the result.

sudo docker ps -a

sudo docker logs kubelet

sudo docker ps -a:
ps.txt
sudo docker logs kubelet:
log.txt
@ydye

1: Execute the command and show us the result:
kubectl get deployment -n kube-system | grep dashboard

2: Paste the log of paictl's error.log and info.log. Ip may appear in these files, you should remove them.

2.
errors.log
info.log
@ydye

Have you config this?  https://github.com/Microsoft/pai/blob/pai-0.9.y/examples/cluster-configuration/cluster-configuration.yaml#L62

yes

 kubectl describe deployment kubernetes-dashboard  -n kube-system

And dashboard has a resource requirement.
        resources:
          # the ideal cpu setting will be 3.5, according to our experiment. If the server hosting k8s dashboard has enough resource, user can change this setting to a larger value.
          requests:
            cpu: "1000m"
            memory: 1000Mi

 kubectl describe deployment kubernetes-dashboard  -n kube-system:
des.txt
I don't know how to confirm it: CPU:"1000m"?
@ydye

Show me the result of this command
kubectl describe pod kubernetes-dashboard-69878cf6dd -n kube-system.

sorry. Please remove the .

de.txt

From the log
  Warning  FailedScheduling  49s (x344 over 101m)  default-scheduler  0/1 nodes are available: 1 Insufficient cpu.

Does this mean that my configuration is not sufficient for deployment?

You can do this to walk around.
For k8s resource requirement, you can disable it by this flag: https://github.com/Microsoft/pai/blob/pai-0.9.y/examples/cluster-configuration/kubernetes-configuration.yaml#L51
For pai service resource requirement, you can disable it by this flag: https://github.com/Microsoft/pai/blob/pai-0.9.y/examples/cluster-configuration/services-configuration.yaml#L28

Does this mean that my configuration is not sufficient for deployment?

Yes.
But you can disable resource requirement as my last comment.

Okay, I'll try it. Thank u !

@ydye 我重装了系统之后，再次部署K8S出错,请问是什么原因呢？
errors.log

@squirrelsc - FYI, might need to update the related documentation.


[QUESTION] Release Cadence for YACE

Hello; Thanks for this awesome project!
I have a quick question: what is the release cadence of YACE? I see that the latest version  (v0.50.1) is from April 26 and we are seeing issue where this recent feature (recentlyActiveOnly) addition can potentially mitigate this:  https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/903. We are just curious where this change will be released?
Context of our issue:
We were seeing AWS CW returning error 413 when YACE asks for metrics, causing data loss, which was possibly due to us having a lot of metrics / dimension combination in a particular custom namespace, and setting the RecentlyActiveOnly=PT3H flag may help reducing number of metrics returned from AWS CW.
Thank you!

Hi @mcheung-hbo, there's no regular cadence for yace releases at the moment. I think this works fine currently as lots of new features are being worked on and we need some time to get them tested properly.
Anyway, I'm hoping to cut a new release before EOW or early next week.

Thanks!


pyshorteners Archived

I committed un-lock to the AUR un-lock-git
I found that pyshorteners has been archived, and running it on Arch may be missing the corresponding dependency packages, can I replace them with python packages that already exist on other arch?

Just to comment, I run the python script for unlocking without pyshorteners (in Arch), and it run ok. Not sure if it is needed in any other part, however.


Just try to use this package to open downloaded apk file but it didnot work.

final result = await OpenFile.open(             filePath,           );           print("type" +               result.type.toString() +               "message" +               result.message.toString());
Before this I was using open_file which working good enough but have permission of REQUEST_INSTALL_ALL_PACKAGE.
Console:-
I/flutter (14421): typeResultType.donemessagedone

The issues has been fixed by version 3.4.0.
However, to open the APK file, you need to add <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> to your AndroidManifest.xml file.


MM-13485 Switch to town square if last viewed channel is current channel

Summary
Sometimes the stored last viewed channel is the current one, so in that case we want to switch to town square instead.
Ticket Link
https://mattermost.atlassian.net/browse/MM-13485
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests (required for all new features)

I'm not familiar with how that gets set so I didn't know if that was a valid case or not. For example if I close the app viewing a channel and open the app onto the same channel, what should the last viewed channel be? Don't need answer right here but just questions I was unsure about while I was looking at the code


⚠ Jenkins Plugins Artifactory has degraded performance

In 4ee9c42, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1299 ms

Resolved: Jenkins Plugins Artifactory performance has improved in c226bb4 after 12 minutes.


[Question] Line color depending on the entry

(Jetpack Compose)
Hi, great library! One thing I could not figure out yet - is there any way to set the line color (line chart) depending on some condition on the entry model? My use case is that I have a data set of dates (days of the month if more precisely), and I want to show a different color for future days, because they do not have any data yet.

Hello! Unfortunately, there’s no such feature at the moment. You could try adding two data sets to your ChartEntryModel, one for either line color, and using two LineSpecs. However, it’s possible that difference animations wouldn’t work as you’d like them to. Another option is to create a custom line chart implementation, copying over the LineChart class and making the desired changes. We’ll soon make classes such as this one open for extension.

I see, that's a shame, I'll try adding multiple data sets, that might work. Thank you for a great library and quick responses to all my recent questions 😄

Thank you for the kind words, and you’re welcome! As it turns out, LineChart is already open for extension, so you should be able to extend it and make the necessary overrides. However, there are several functions whose visibility is private instead of protected, so you’d potentially have to copy those over. We’ll update their visibility to make extension simpler.

Hello! Vico 1.6.5 introduces the aforementioned visibility changes.

Hey @patrickmichalik, I was looking into how this can be achieved, and looks like its still not very straightforward to do it, I can extend the LineChart class, but still need to copy/paste most of the drawing logic for example. 🤔 (let me know if there is a simpler way to do it though)
I was thinking if the library could expose a function which would draw the lineChart point by point (something similar to PointConnector). rather than drawing the whole Path at once, do you think something like that could be a good idea?
p.s: Thanks for the amazing library.

Thanks for the kind words, @sarthak-greenely! You’re right—you might have to copy over quite some code. We plan on making it possible to style lines on a segment-by-segment basis. We’ve not designed the API yet, but it’ll most likely be a LineSpec-mutating lambda. This is quite similar to what you’ve described, only a bit higher-level (and thus slightly simpler to use).


Control NumLock state

Summary of the new feature/enhancement
In Windows 10 the NumLock is not always on per default. It would be nice if KBM could activate this.
If possible it would be great if KBM also could block the disabling of NumLock.

Szeanario 1: The user is pressing the NumLock key inadvertently.
Szeanario 2: Win10-VM is booting a tried to disable the NumLock.

removing the request from the tech.
I think the request is "Have a toggle to always keep Numlock on", correct?

I think the request is "Have a toggle to always keep Numlock on", correct?

Yes.
And to block apps from disabling the NumLock. Maybe by asign the NumLock to an empty key.

Closely related to #1196

We could add it as a function to keyboard Manager

@htcfreek going to close this against #1196 as a dup.  Do you disagree?


Decompose TalkerScreen

Fix appbar icon colors
Rename part of internal classes
Make controller, theme, appBarTitle not required for TalkerView
Make TalkerScreen Stateless instead of Stateful
Fix AppBar title text color
Add TalkerView in package exports
Fix logs expanding and collapsing in TalkerView
Refactor TalkerScreen decomposition
Extract TalkerView, TalkerViewAppBar

Codecov Report

Merging #136 (c6b09e6) into master (8adac28) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff            @@
##            master      #136   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           17        17
  Lines          258       258
=========================================
  Hits           258       258

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix NaaN issue on referral & volume program table on referral page and fees page

Summary
The referral program and volume program can now have different discounts applied to infra / maker / liquidity components for ... reasons. As a result all the tables are broken since the APIs have changed shape.
Rather than expose all this compleity to users, we propose to work out the "overall" discount factors and reward factors and show those in the same tables as we have today.
Referral Program
Discounts
With
Total undiscounted fee = makerFee + infraFee + MAX(liquidityFee) + buybackFee + treasuryFee
Total discounted fee = makerFee * (1 - makerDiscount) + infraFee * (1- infraDiscount) + MAX(liquidityFee) * (1- liquidityDiscount) + buybackFee + treasuryFee
Then
Referral Discount = (undiscounted - discounted) / undiscounted
Rewards
With
Reward = makerFee * makerFactor + infraFee * infraFactor + MAX(liquidityFee) * liquidityFactor
Total fee = makerFee + infraFee + MAX(liquidityFee) + buybackFee + treasuryFee
Then
Overall reward factor = reward / total fee
NB.
Also adjust the tooltip

From "The proportion of the referee's taker fees to be rewarded to the referrer"
To "The maximum proportion of the referee's taker fees to be rewarded to the referrer without accounting for any referee discounts"

Volume Program
Discounts
With
Total undiscounted fee = makerFee + infraFee + MAX(liquidityFee) + buybackFee + treasuryFee
Total discounted fee = makerFee * (1 - makerDiscount) + infraFee * (1- infraDiscount) + MAX(liquidityFee) * (1- liquidityDiscount) + buybackFee + treasuryFee
Then
Volume Discount = (undiscounted - discounted) / undiscounted
Additional details / background info

UI now showing this

My maths shows it should be showing this

So it appears this all works.  Excellent news.


skeleton-es2016-webpack: Error in production build

Checking out 687f08c, followed by npm run prod and running a server from the dist folder, I get an error at runtime:
Cannot find module './aurelia-framework'.

Is this a dependency version issue? It worked fine yesterday. I haven't changed anything in my package.json.

The skeletons are all undergoing massive updates now. Please be patient as we prepare for RC.

Thanks on the quick reply, Rob! Any workaround I could do to make my app (based on skeleton-es2016-webpack) compile for production again? The problem I am having is that I haven't updated any dependencies, yet it broke and now I cannot rollback to the previous working state.

@niieani Can you assist?

Luckily, I had a random "backup" my working copy with node_modules, so I used that to npm shrinkwrap --dev to lock down the dependencies.
I know that breaking compatibility while moving between beta versions is not technically against semver, but still, breaks of this kind are somewhat unexpected.

Fixed in https://github.com/aurelia/skeleton-navigation/pull/476.
For everybody who's experiencing problems: Please update your typings.json, tsconfig.json and the build folder from my pull request's code (https://github.com/aurelia/skeleton-navigation/pull/476).
Then remove the typings folder and run typings install.

@niieani This issue pertains to the es6 webpack skeleton, not the TS one.. Perhaps you posted the comment to the wrong thread?

Aha, I see. Sorry about the confusion. The es6 webpack skeleton is not upgraded yet. Stay tuned.


Grafana does not read data

Describe the bug
I connected an arduino with temperature sensors to zabbix, zabbix receives the data, after grafana has to collect and visualize this data, but it does not see this data. Tell me what I'm doing wrong?? Grafana itself sees arduino.
I will add that while I was writing this, the data appeared and then again their graphana stopped seeing, I'm starting to think that the problem is in the data format, but zabbix itself accepts as an integer.
Screenshots
Grafana

Zabbix

Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

9.5.1
6.4.2
4.3.1

I have the same problem.

I notice that grafana may not immediately receive data, let's say I counted it in an hour. And it can't read in real time. I don't understand where my mistake is. I will be very grateful if they point out my mistakes to me

Same problem here


Animation callbacks: currentStep greater than numSteps?

I'm not sure if it could be a bug or not.
Enabling the animation callback with CHART.JS dist/master, I see the numSteps of animation object is less than currentStep.

I've understood that any element has got own animation therefore it could depend on that.
But I think the  currentStep should always be less than or equals to numSteps. Sounds not consistent.

Needs some investigation. Last one might be extra (not actually drawn anything). And maybe the currentStep should be clamped to numSteps.
Those values are milliseconds actually.


Vendor/Espressif: Simplify RISCV chip detection

Espressif RISCV chip detection can be simplified because each IDCODE is unique to each chip, meaning we don't have to read the magic value. In fact, the magic value register is buggy on (some?) ESP32-P4 revisions so we need to avoid doing that for the P4 anyways.

I've considered this for a bit and I don't think I would like to do this. The magic values allow us to explicitly not support certain chip variants, should the need arise.


Tarsier isn't updating, nudging it

For https://github.com/KSP-CKAN/CKAN/issues/1066
Seeing as I don't know why it refuses to update I'll just do the old install stanza juggle and see if that nudges it into working.

That seems to have solved whatever wasn't working, I'm thinking this is because of gnolls in the upstream and recommend we add anti-gnoll-spray to the standard equipment of NetKAN-bot


New feature: Remember the last strategy created or imported

Before submitting this PR, please make sure:
Your code builds clean without any errors or warnings
You are using approved title ("feat/", "fix/", "docs/", "refactor/")
A description of the changes proposed in the pull request:
While using hummingbot, I would start it and stop several times, but most of the time I started it again I wanted to use the previous strategy I had used. Having to import it every time is painful, specially when we have tons of different strategies, and we are not sure what's the strategy name.
To solve this issue, I implemented a feature that uses the global config file to store/retrieve the last strategy created or imported, making things a lot easier :)
This was done simply by saving the name of the strategy every time the user imports or creates a strategy and creating a command ("previous") that can be invoked by the user,  informs the name of the stored strategy, if it exists, and collects the answer (calling the import commands afterwards).
Please let me know what you think about it!
┆Issue is synchronized with this Clickup task by Unito

Thanks @carlosmiei for contributing. We're going to review next week and add comments here.

Just posting this here to confirm if this is the expected behavior or not. When importing a strategy and chose to cancel midway (using ctrl + x), using the previous command seems to not capture the previous strategy created or imported.
Steps to reproduce:

Create or import a strategy
Exit the instance, or just import any other strategy
Run previous command and enter yes
Run import command and press ctrl + x when prompted what strategy is going to be imported
Run previous command again and it will return "No previous strategy found"

Just posting this here to confirm if this is the expected behavior or not. When importing a strategy and I choose to cancel midway (using ctrl + x), using the previous command afterwards seems to not capture the previous strategy created or imported.
Steps to reproduce:

Create or import a strategy
Exit the instance or just import any other strategy
Run previous command and enter yes
Run import command and press ctrl + x when prompted what strategy is going to be imported
Run previous command again and it will return "No previous strategy found"

Just posting this here to confirm if this is the expected behavior or not. When importing a strategy and I choose to cancel midway (using ctrl + x), using the previous command afterwards seems to not capture the previous strategy created or imported.
Steps to reproduce:

Create or import a strategy
Exit the instance or just import any other strategy
Run previous command and enter yes
Run import command and press ctrl + x when prompted what strategy is going to be imported
Run previous command again and it will return "No previous strategy found"

Hi @rxlxrxsx, nice catch, this was indeed not expected, and therefore I already fix it.

@carlosmiei please add unit tests coverage to pass the requirement so we can review and merge this pull request.

We agreed on creating unit tests as a guide / sample and for the benefit of community contributors going forward. Will have the discussion on this again tonight to finalize.

@carlosmiei thanks for adding the first unit tests. Please see test results below:

@dennisocana  welcome, my plan is, when I have the chance, to add all the needed tests to obtain the needed coverage

@dennisocana  I finally had the change to add the missing tests. I believe the coverage is now over 80%. Can you please check it out?

@dennisocana any update? it has been a while

@carlosmiei we haven't started the review process yet due to major tasks the team are working on like strategies and UI rework that needs to be completed before the foundation launch which most of them should be done in the current sprint (Nov. 8 - Nov. 21). We should be able to resume reviewing of pull requests by then.

@carlosmiei we're heads down setting up the Hummingbot Foundation this month. We will include this pull request in the model that will allow the community to participate in deciding what should be included in every release.

Hello @carlosmiei
The Hummingbot Foundation just started the governance process for the community to approve or reject Pull Requests through Pull Request Proposals.
For more information about how PRP votes work, check this page: https://hummingbot.org/governance/prp/
We want to know if you still have interest in having your Pull Request merged into the main codebase.
If so, please check the following on your Pull Request for our team to be able to open it for community voting:

Your Pull Request is targeted to the development branch
Your branch is up to date with the current development branch
All GitHub checks have passed
There is no merging conflicts

If you have any questions or need any help, feel free to reach us out on the #dev-general channel on our Discord (https://discord.gg/HAgZ79nzU4)

If you have no interest in merging this PR to our code-base or don't reply to this comment in 30 days, the Foundation team will close this PR.
You can still create a new PR any time you want!
Thank you for contributing to Hummingbot Client!

Hello @carlosmiei
The Hummingbot Foundation just started the governance process for the community to approve or reject Pull Requests through Pull Request Proposals.
For more information about how PRP votes work, check this page: https://hummingbot.org/governance/prp/
We want to know if you still have interest in having your Pull Request merged into the main codebase.
If so, please check the following on your Pull Request for our team to be able to open it for community voting:

Your Pull Request is targeted to the development branch
Your branch is up to date with the current development branch
All GitHub checks have passed
There is no merging conflicts

If you have any questions or need any help, feel free to reach us out on the #dev-general channel on our Discord (https://discord.gg/HAgZ79nzU4)
If you have no interest in merging this PR to our code-base or don't reply to this comment in 30 days, the Foundation team will close this PR.
You can still create a new PR any time you want!
Thank you for contributing to Hummingbot Client!

@phbrgnomo I'll do that, thanks 🙂

@phbrgnomo Do I need to follow any further steps to get this PR admitted as a proposal?

You got some failed tests. Take a look at them, and reach out our team on our Discord on the #dev-general channel if you need some help with them

@carlosmiei  there is an error code of 2 running
We can launch the PRP to vote in the interim


Getting Started with Support Vector Regression in Machine Learning

NOTE: All 1st-time contributors should know Topic approval and PR submission does NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.
We expect all community memebers to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error free).
All revisions and edits should be completed on your own forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.
Topic Suggestion
Enter topic suggestion here...
Pre-submission advice
By following all our pre-submission advice and reviewing our Resources folder, you will maximise your chances of your topic being approved.
We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner.
Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles that will help you propose and write a successful article.
Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Writing sample(s):
Include any links or writing samples - to help our team better gauge your writing quality.
Proposal Submission
Getting Started with Support Vector Regression in Machine Learning
Article introduction
Rooted in Vapnik-Chervonenkis (VC) theory, support vector machines (SVMs) are well-positioned to generalize yet-to-be-seen data. When dealing with regression problems, the SVM concepts can be generalized to become applicable in such situations. As in classification with SVM, support vector regression (SVR) is characterized by the use of the sparse solution, kernels, and VC control of the margin and the number of support vectors. Although not as popular as SVM, SVR has been proven to be an effective tool in real-value function estimation. As a supervised-learning approach, SVR trains using asymmetrical loss function, which equally penalizes high and low misestimates.
Using Vapnik’s e -insensitive approach, a flexible tube of the minimal radius is formed symmetrically around the estimated function, such that the absolute errors value less than a certain threshold e are ignored both above and below the optimal hyperplane. However, points outside the tube are penalized, but those within the tube, either above or below the function, are not. One of the importance of SVR is that its computational complexity does not depend on the dimensionality of the input space. Additionally, it has excellent generalization capability with high prediction accuracy.
This article will be designed to provide a profound overview of SVR. Subsections we shall spend our time on includes its concepts, mathematical model and graphical representation. Later after providing a deep intuition for this model, we shall implement this model in python. Our implementation will ensure each bit of the code is clearly explained.
Key takeaways
By the end of the session:

The reader will know the difference between SVM and SVR.
The reader will have learned all the essential concepts needed to get started with SVR.
The reader will know in what kind of problem statement they should apply the SVR model.
Finally, the reader will be able to implement this model in python by themselves.

Article quality
As our study will be under the SVR concepts, mathematical model and graphical representation, we shall dive deeper and make every bit under the above areas of consideration as clear as possible. Thus this material will deliver clarity of the concept and a well-explained implementation.
References
N/A
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Hello @lalith1403, could you please check this topic when you get a chance?

Great topic 🚀 , make sure it matches the following:

Adds value beyond what is in the official docs and what is covered in other blog sites.
To avoid potential article closure, it should not overlap with existing EngEd articles or incoming topic suggestions.

Please reference any relevant EngEd articles in yours and build a unique project - Approved.

I'm going to close this topic due to inactivity.
It can be reopened.


Allow concurrent calls to set() method

It turned out that changes made in #329 led to errors when set() method is called simultaneously from different processes. This PR fixes #383 by replicating the logic of get_or_create() which previously used in this part of code. Setting the default value now requires 5 database queries which is still an improvement if we compare with the time before #329 when it took 6 queries.

I can confirm that this code fix my broken tests.
But we should pay more attention to the review of this code.

@camilonova Please make a new release.


Forcing angle in crystalline structure

Hello there, I'm using d3-force for a little simulation where nodes have labels attached to them visually.
The problem is that if nodes happen to align ~horizontally then those labels are really crammed in there visually:

While if nodes are aligned ~vertically labels are laid out much better:

Those two crystalline (?) structures are both hexagonal, but basically the difference is that if the pointy tips of the hexagon are aligned vertically the thing looks great, while if they are aligned horizontally the thing looks pretty bad.
What would be the best way to force the pointy tips to align vertically? I'm thinking that maybe I should change the collision force, since the default one expects point-like masses, should that work? If so is there some already-done alternative collision force that I could use for this?

please open a discussion instead of an issue


[FEAT]: Implement API Endpoint For Language Selection

Description
Implement a backend API to manage language preferences for users. This API will enable users to choose their preferred language.
Acceptance Criteria

Implement a POST endpoint accessible at /api/user/settings/language to save the selected language for a user
Validate the language_code against a predefined list of supported languages
Implement JWT auth token validation
Ensure requests to /api/user/settings/language include a valid JWT auth token in the Authorization header
Use ISO 639-1 standard for the language format
Return appropriate error messages and status codes for invalid inputs and system errors

Database Schema
CREATE TABLE UserLanguagePreferences (
    userId VARCHAR(255) PRIMARY KEY,
    languageCode VARCHAR(10)
);

API Endpoints
[POST] /api/user/settings/language
Request Body:
{
  "user_id": "string",
  "language_code": "string"
}

Response:
{
  "message": "Language preference updated successfully",
  "data": {
    "user_id": "string",
    "language_code": "string"
  }
}

Validation

Validate language_code against a predefined list of supported languages.

JWT Authentication
Implement JWT auth token validation.
Error Handling
Example error response for unsupported language:
{
  "message": "Unsupported language code",
  "error": "Bad Request",
  "status_code": 400
}

Purpose
To allow users to choose and update their preferred language for a personalized experience across the application
Expected Outcome
A fully functional backend API that allows users to save and retrieve their language preferences
Tasks

[ ] Implement the POST endpoint to save language preference
[ ] Validate inputs and handle errors properly
[ ] Write unit tests for endpoints to ensure they handle valid and invalid inputs correctly

###Testing

Unit tests for the endpoint to ensure it handles valid and invalid inputs properly

@buka4rill what do you think about this?

This is the correction from ticket #28 that was misunderstood as a frontend ticket

This is not how to implement a feature like this.

you would need some kind of language api
when a user selects for example, the whole data is returned in spanish

This is broad and I would discard this for boilerplate

@buka4rill this feature is just to know the user's language preference and save that data. Would you like me to redo it your way?


downloads from go.dev cannot be untarred on aws linux

What did you do
curl -O https://go.dev/dl/go1.18.1.linux-amd64.tar.gz
tar xvf go1.18.1.linux-amd64.tar.gz

What did you expect to see?
The archive untarred successfully.
What did you see instead?
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Notes:
The gz downloaded from dl.google.com works fine:
curl -O https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz

@seankhliao Is the answer to use -L on curl? Great. maybe this should get added to the documentation page or the download page.


Bluetooth: Read static address from FICR on nRF5 if no VS enabled

When running combined build on nRF5 with disabled VS command it is
possible to simply read static random address from FICR in host.
Signed-off-by: Szymon Janc<EMAIL_ADDRESS>

Not really happy about starting to populate hci_core.c with vendor specific code, but I can't think of a good alternative right now. If it ever looks like we need to extend this to more platforms we should start looking at refactoring this out from hci_core.c to some common libraries or something like that.

Same. I was really happy to get rid of vendor-specific code and move it to commands. But I think practicality must always prevail over aesthetical considerations, and shipping in small devices with limited flash is critical to the project.

Codecov Report

Merging #9910 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #9910   +/-   ##
=======================================
  Coverage   52.41%   52.41%
=======================================
  Files         213      213
  Lines       26050    26050
  Branches     5621     5621
=======================================
  Hits        13654    13654
  Misses      10138    10138
  Partials     2258     2258

Impacted Files
Coverage Δ

subsys/bluetooth/host/hci_core.c
2.56% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

implemented another approach to this in https://github.com/zephyrproject-rtos/zephyr/pull/9909

I'll close this PR for now to avoid confusion


go.mod: Bump ttrpc to 1.1.0

This tag contains a fix for a deadlock we'd observed on Windows when multiple
requests were made in parallel. https://github.com/containerd/ttrpc/pull/94

Nit: Usually would not use square brackets in the title here. Just do something like go.mod: Bump ttrpc to 1.1.0.

I assume you'll be doing a PR for release/0.8 as well?

@kevpar Yep! And the pr title was actually me brain farting what I was going to use as the release/0.8 pr title
[release/0.8] go.mod: Bump ttrpc to 1.1.0

No changes in latest push, just changing the commit title to have no brackets


Support all Action types in ELBv2 create_rule and set_rule_priorities responses

This PR adds support for all Action types in ELBv2 create_rule and set_rule_priorities responses.

Codecov Report

Merging #5080 (efc1e39) into master (61a5d5c) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5080      +/-   ##
==========================================
+ Coverage   95.80%   95.83%   +0.02%
==========================================
  Files         663      667       +4
  Lines       66468    66453      -15
==========================================
+ Hits        63680    63683       +3
+ Misses       2788     2770      -18

Flag
Coverage Δ

servertests
36.62% <ø> (+0.05%)
:arrow_up:

unittests
95.77% <ø> (+0.03%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/elbv2/models.py
92.58% <ø> (ø)

moto/elbv2/responses.py
99.43% <ø> (ø)

moto/core/urls.py
0.00% <0.00%> (-100.00%)
:arrow_down:

moto/resourcegroupstaggingapi/models.py
83.18% <0.00%> (-0.59%)
:arrow_down:

moto/route53/responses.py
96.69% <0.00%> (-0.42%)
:arrow_down:

moto/sns/models.py
96.83% <0.00%> (-0.40%)
:arrow_down:

moto/efs/models.py
91.20% <0.00%> (-0.30%)
:arrow_down:

moto/sqs/models.py
96.76% <0.00%> (-0.18%)
:arrow_down:

moto/config/models.py
99.22% <0.00%> (-0.13%)
:arrow_down:

moto/autoscaling/models.py
96.55% <0.00%> (-0.13%)
:arrow_down:

... and 24 more

Continue to review full report at Codecov.

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


Restrict cloudbank demo hub to edu & 2i2c users

Move cloudbank hub from username / password auth0 auth to
CILogon
Restrcit login to folks with emails either of 2i2c.org or any
email ending in .edu. This doesn't catch all educational users,
but I think it should catch everyone that cloudbank tries to reach.
Switches @ericvd-ucb's admin email to use his berkeley.edu email,
as gmail.com emails are no longer allowed

Fixes https://github.com/2i2c-org/infrastructure/issues/1216

I've deployed this and it works ok.


Reset the package's local storage setting if loading cannot be deferred

Hi there, it’s been a while since I last got some time to work on Atom.
So this PR attempt to fix an annoying issue I struggled with for months now, without being able to figure when it came from, but I finally found an explanation. I initially reported it in #9677, but without any clue as to why it was not working properly the issue was closed expected.
So now, let’s enter the main topic.
Let’s say we create a new package, we’re running it in dev mode, and for the moment there’s no deserializers or registered views for that package.
When requiring the main module, we will end up passing in this branch that will set the getCanDeferMainModuleRequireStorageKey() flag to true.
Now if we start adding deserializers into our package, since the flag is never turned off, the package main module loading will always be deferred on activation as this condition will always be true, resulting in error if the there’s serialized pane items that need to be deserialized.
Of course, as these settings are scoped using the package version, this is generally not an issue with published packages. If serializers or views are added between two versions the local storage keys will be different  and the previous value will be ignored.
However, this issue is making developing a package that have serializers seriously complicated as there’s no longer a way to test them in dev mode once we entered that state (unless knowing that this local storage setting must be removed).
A simple solution here is to simply remove the local storage item if we find that the package now has deserializers or registered views that it didn’t have before.

/cc @BinaryMuse - This might explain the strange behavior you were seeing with deserializers.

This looks good to me. Restarted the failing circle build.

Hey @abe33. Apologies for not looking into this on time. I know this PR has been here for a very long time, during that time Atom has seen a number of changes. Due to the changes, this PR has now become outdated. Is it possible for you to resolve the conflicts?


add AI(Edit)As to use roles defined in YAML file

The wiki suggests defining a custom command for every role, but more convenient would be listing them inside a text file (using the simple aichat format for compatibility) which are then loaded inside a dictionary.

I think you are right, we need a better way how to configure repetitive user prompts (I would rather call it prompts or commands than roles). However when I think more about it, I would implement it in a slightly different way and it is quite a big thing.
This is the high-level idea:
User would be able to specify prompt for any of AI/AIE/AIC commands in a discord-like command fashion, for example:
:AIE /refactor
I would keep configuration per each prompt in a single file and with a similar (or identical) format as .aichat files. For example it could be refactor.aiprompt file:
[prompt-options]
temperature=0.2

>>> prompt

You are a Clean Code expert, I have the following code, please refactor it in a more clean and concise way so that my colleagues can maintain the code more easily. Also, explain why you want to refactor the code so that I can add the explanation to the Pull Request.

Then there would be a config specifying prompt directory vim_ai_prompts_dir and prompts would be referenced by the filename.
Furthermore, this way it would be easy to implement functionality that would execute prompt directly from a file, it could look like this:
:AI file:/home/user/my_prompt.aiprompt

(I would rather call it prompts or commands than roles).

Since prompt as a term is overloaded (initial, system, instruction prompt ...) and role describes the typical use case well, it is clearer a term. I'd be happy with a bunch of ~/.vim/roles/*.aichat files and a check that these aichat files only contain user options and input (a monologue rather than chat dialogue).
If we might agree that they are read in as a prompts dictionary as already implemented in this pull request, then the function to read in the aichat roles file can be kept as a convenience.

The term role is already used for user, assistant, system in context of open ai. Therefore I would prefer something else, maybe an instruction would be a good name for it.
If not overhead, it would be better if instruction files are loaded on demand so that user does not have to restart vim when adding new instruction.
The point of keeping aichat-file like syntax is that we could re-use file parsing functionality that is currently implemented in python. It would be easier to maintain one parsing code than two. Also code highlighting would work the same way.

The term role is already used for user, assistant, system in context of open ai

Albeit overloaded by Openai, role is usually understood an initial user instruction/prompt for playing a given role, whereas instruction and prompt have a more general meaning. If role doesn't cut it, how about something more specific such as directives or inits to make the meaning of an initial user instruction clearer.

If not overhead, it would be better if instruction files are loaded on demand so that user does not have to restart vim when adding new instruction.
The point of keeping aichat-file like syntax is that we could re-use file parsing functionality that is currently implemented in python. It would be easier to maintain one parsing code than two. Also code highlighting would work the same way.

I think there's a slight misunderstanding. Using aichat files to pass the initial user instructions is great, I just wanted to ask how they are stored internally? I'd propose a simple dictionary such as g:vim_ai_inits whose entry refactorer can be accessed by g:vim_ai_inits.refactorer.prompt, say.
Then this function can be buried somewhere in the autoload folder, if permissions is granted, or even outsourced to the wiki.

What distracts me with role term is that it suggest a subject/noun rather than instruction/verb that needs to be done. But in the end I am fine with both instruction and role, whatever suits you best.
Internal dictionary is okay as a first step, but it would be better if the file is read directly by the AI command. That way you could modify the file, create a new one and use it without reloading the dictionary.

What distracts me with role term is that it suggest a subject/noun rather than instruction/verb that needs to be done.

How about guideline or simulation? I think I like guideline.

Internal dictionary is okay as a first step, but it would be better if the file is read directly by the AI command. That way you could modify the file, create a new one and use it without reloading the dictionary.

Yes, fully agreed upon. One can still supplement the files_dict by a personal dict user_dict by appending a user supplied one: call extend(files_dict, user_dict).

I think I would rather prefer instruction or role.

While trying to wrap my head around how to call
#  py/utils.py (lines 165-186)
def parse_chat_header_options():
    try:
        options = {}
        lines = vim.eval('getline(1, "$")')
        contains_chat_options = '[chat-options]' in lines
        if contains_chat_options:
            # parse options that are defined in the chat header
            options_index = lines.index('[chat-options]')
            for line in lines[options_index + 1:]:
                if line.startswith('#'):
                    # ignore comments
                    continue
                if line == '':
                    # stop at the end of the region
                    break
                (key, value) = line.strip().split('=')
                if key == 'initial_prompt':
                    value = value.split('\\n')
                options[key] = value
        return options
    except:
        raise Exception("Invalid [chat-options]")

inside Vim (on every file in a roles folder), in the meanwhile the code has been updated to reload the config on every invocation and provide role variants for all commands.

One thing I want to avoid is adding new commands AIEditAs, AIChatAs. That would break shorthands like :AIE, :AIC that I find very useful. How about optional role passed to existing commands. For example :AIE /review

How about optional role passed to existing commands. For example :AIE /review

Indeed a very fine idea, that now is implemented.

That would break shorthands like :AIE, :AIC that I find very useful.

May I propose vim-alias ? I am using aliases like Alias -range ae AIEdit excessively. Now there is also
function! EatChar(pat)
  let c = nr2char(getchar(0))
  return (c =~ a:pat) ? '' : c
endfunction
Alias -range aea AIEdit\ /<c-r>=&spell||empty(&filetype)?'':'\ In\ '.&filetype.':'<cr><home><c-right><c-right><C-R>=EatChar('\s').nr2char(&wildcharm)<CR>

to run through the roles.

As suggested above, the plug-in now defaults to reading the roles from a set of vim_ai/roles/*.aichat files. This pull request should be feature complete.

Hi, thanks for all the effort! I was thinking lately and I would like to implement this feature in a slightly different way. I am going to push my branch soon, it would be great if you could test it then. I will keep you posted

Feel free. I'd be happy if compatibility with the dictionary can be kept so that an alternative source, here a single file, can be used. It's been working very well on my end.


Problem with dynamic links

I get the following error with dynamic links :
Unhandled Exception: type '_InternalLinkedHashMap<Object?, Object?>' is not a subtype of type 'Map<String, String>'
on the following line :       utmParameters: linkData['utmParameters'],
Do not know why because everything is well configured and worked with the last version of dynamic_links

Seems to be fixed in this commit : https://github.com/FirebaseExtended/flutterfire/commit/22bbd807d2b3c3f9d9cc8ba817ccb4da931ae887

I think that the fix is not released yet.
Maybe @russellwheatley can provide more informations about it.

Hey folks, a fix has been merged and a new release is imminent. Sorry for the problem 🙏


Rename release type field in client output

All other places refer to the value as "release type". It is better to
keep the work release in the label in the client.
JIRA: PDC-1068

Looks good to me.

looks good to me.


Moya's Result type shadows Result's Result type

Now that Moya has a Result type, it isn't possible to use Result's Result type in a file that imports Moya
Same thing as happened when Alamofire added a Result type
Might it be better to just add Result as a dependency? It's quite a small/stable one, and unlike usual dependencies, it's less troublesome to the end user..

Doesn't type inference tell Swift which to use? It's also possible to use Moya.Result. I'm not opposed to adding a dependency if we need it.

There is a technical reason we can't. Since alamofire uses its own result we can't use the standard result library because we need to namespace it. Sadly you can't do Result.Result as a type for the completion block. Compiler no like.
Is there a thing like hiding in Haskell for swift that I don't know of?

Unfortunately as @petester42 mentions, Result.Result doesn't work because of an ongoing Swift quirk where you cant explicitly access a type that has the same name as its module.
So, Moya.Result can be access inferred or explicitly, but if Moya is imported in a file, inferred use of Result is ambiguous/won't compile, but Result.Result can't be accessed either.
And there's no hiding or such, as far as I know :(
It's a weird position to be in, because this could be fixed in the language tomorrow, or.. not tomorrow. I personally think it's worth integrating the defacto Result.Result, but I haven't been bitten by adding a dep to a large OSS library before.

As for your original issue. You can use Result's Result type just prefix the Moya one like so Moya.Result where the two clash.

Moya.Result makes it so those uses are unambiguous. It doesn't make it so I can use Result.Result. Those instances are still ambiguous (because can't prefix).

Sounds like the easiest solution is just to add a dependency to Result. I'm totally OK with that – anyone have time to send a PR?

Little busy atm, but should be able to some time this week. Perhaps that will also give some time for others (@Moya/contributors), if anyone has strong opinions about additional dependencies, to chime in.

Fab idea. This would also be a great "first time" contribution, too!

You might need to do some hacks to make it work. I tried added this dependency when we moved to result but the compiler was not happen. Maybe moving the completion typealias to another file would work. Any file with import Alamofire will cause issues.

This was fixed in #344, I believe. If it's still an issue, we can re-open.


Output buffers for task not found in TPCDS - Q54

Hi,
I'm trying to track down the issue for the following error (in presto-native) while running Q54 (It also seems to happen for Q75 as well). It doesn't happen all the time, but quite frequently (can be reproed after a few tries)
Exceptions.h:68] Line: ../../velox/velox/exec/PartitionedOutputBufferManager.cpp:481, Function:operator(), Expression: it != buffers.end() Output buffers for task not found: <taskId>, Source: RUNTIME, ErrorCode: INVALID_STATE
The Exception itself seems to be happening on the table scan stage of catalog_sales (substage of JOIN of catalog_sales, web_sales, item)
Here is the log entry on the host that is seeing this Exception:
16:15:29.683847 117152 PartitionedOutput.cpp:54] advance: 2, call flush dest=6
16:15:29.695827   202 TaskResource.cpp:177] abortResults: taskId=taskId...9.0.8, dest=9
16:15:29.696136   202 TaskManager.cpp:142] Task taskId...9.0.8, buffer 9, sequence 28 Results size: 0, page count: 0, complete: true
16:15:29.697368 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=5
16:15:29.699662 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=7
16:15:29.701635 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=8
16:15:29.703505 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=9
16:15:29.705298 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=10
16:15:29.707746 117152 PartitionedOutput.cpp:283] getOutput: flushing blocked dest=11
16:15:29.709378   195 TaskResource.cpp:177] abortResults: taskId=taskId....9.0.8, dest=2
16:15:29.710055   195 PartitionedOutputBufferManager.cpp:539] deleteResults: taskId=taskId...9.0.8 dest=2
16:15:29.710165 117152 Exceptions.h:68] Line: ../../velox/velox/exec/PartitionedOutputBufferManager.cpp:481, Function:operator(), Expression: it != buffers.end() Output buffers for task not found: taskId....9.0.8, Source: RUNTIME, ErrorCode: INVALID_STATE

It looks as if the abortResults calls from the parent stage (Stage 8) has caused the task not be removed... e.g. in the following code within PartitionedOutputBufferManager.cpp
  if (buffer && buffer->deleteResults(destination)) {
    VLOG(0) << "deleteResults: taskId=" << taskId << " dest=" << destination;
    buffers_.withLock([&](auto& buffers) { buffers.erase(taskId); });
  }

The thread that's getting the exception seems to be within the Driver:
Driver.runInternal -> PartitionOutput.getOutput, which calls Destination.flush() within the if (blockedDestination) code block.
Destination.flush() calls bufferManager.enqueue (at the end)... which calls getBuffers()
std::shared_ptr<PartitionedOutputBuffer>
PartitionedOutputBufferManager::getBuffer(const std::string& taskId) {
  return buffers_.withLock([&](auto& buffers) {
    auto it = buffers.find(taskId);
    VELOX_CHECK(
        it != buffers.end(), "Output buffers for task not found: {}", taskId);
    return it->second;
  });
}

And it fails here because the buffer with the taskId currently being processed was removed just prior.
I currently can't figure out why there's an abort of the task being called while the Driver for that task is still executing...

FYI, I've tried removing the check, returning nullptr and adding a check on the caller side.
Doing removes the query errors. Would this be a safe thing to do?

I currently can't figure out why there's an abort of the task being called while the Driver for that task is still executing...

One reason this may happen if the downstream task has failed or finished processing early (LIMIT N). Can you check whether this is happening? BTW, would you attache the distributed query plan, the output of EXPLAIN (TYPE DISTRIBUTED) ?

It sounds like a race condition between upstream task enqueueing data via PartitionedOutputBufferManager::enqueue and downstream task or coordinator aborting the task via PartitionedOutputBufferManager::deleteResults.
We need to figure out how to handle this scenario.
There is logic in PartitionedOutputBuffer::enqueue to handle the case where one of the destinations called abort.
      if (auto buffer = buffers_[destination].get()) {
        buffer->enqueue(std::move(data));
        dataAvailableCallbacks.emplace_back(buffer->getAndClearNotify());
      } else {
        // Some downstream tasks may finish early and delete the
        // corresponding buffers. Further data for these buffers is dropped.
        totalSize_ -= data->size();
      }

We need to extend this logic to handle the case when all destinations called abort. Currently, after last destination called abort PartitionedOutputBufferManager::deleteResults removes task entry from the buffers_. One option is to keep that entry and delete it only in PartitionedOutputBufferManager::removeTask.
Let's start by adding a test to reproduce this issue. See velox/exec/tests/MultiFragmentTest.cpp

Hi, I'll see if I can start by adding a test case that will reproduce this issue in MultiFragmentTest.cpp.

TPCDS_Q54_Explain.txt

It's because the parent stage finishes early due to Limit N as @mbasmanova mentioned.

I currently can't figure out why there's an abort of the task being called while the Driver for that task is still executing...

CC: @spershin

Hi, I've update the [PR#3014] to include a simple fix I mentioned before (for comparison purposes).
I'll try out @mbasmanova idea of not removing the task's buffer in deleteResults(), and letting it get removed in removeTask()   and get back to you.

I've added a fix [PR#3035], a one liner which fixes this issue, including a unit test. Please take a look. @mbasmanova
I've tested it against Q54 as well as most other TPCDS queries (that currently work with Prestissimo) without issues.

Also, I've found that this fix also fixes the occasional hanging issue we saw in some TPC-DS queries (Q8, Q32, Q71, Q78).
Here is the reason for that.
The hanging occurs because when Task::removeDriver() is called, Task::terminate() isn't called to mark the task as being finished (even though it's actually finished)

Task::terminate() doesn't get called is because allFinished is false.
allFinished is false because Task::checkedIfFinishedLocked() returns false.
Task::checkedIfFinishedLocked() returns false because Task.partitionedOutputConsumed_ is false
partitionedOutputConsumed_ is false because Task::setAllOutputConsumed() isn't called.
Task::setAllOutputConsumed() isn't called because PartitionedOutputBuffer::deleteResults() (which sets this flag) isn't called for all the results
PartitionedOutputBuffer::deleteResults() isn't called for all the results
PartitionedOutputBuffer::deleteResults() isn't called for all the results because the buffer for the task has been erased in * PartitionedOutputBufferManager::deleteResults()

Relevant code in
void PartitionedOutputBufferManager::deleteResults(
    const std::string& taskId,
    int destination) {
  auto buffer = buffers_.withLock(
      [&](auto& buffers) -> std::shared_ptr<PartitionedOutputBuffer> {
        auto it = buffers.find(taskId);
        if (it == buffers.end()) {
          return nullptr;
        }
        return it->second;
      });
  if (!buffer) {
    VLOG(0) << "deleteResults: buffer is null; taskId=" << taskId << ", destination=" << destination;
  }
  if (buffer && buffer->deleteResults(destination)) { // <-- when we erase the buffer for the task, buffer is null, so we never call deleteResults
    buffers_.withLock([&](auto& buffers) { buffers.erase(taskId); });
  }
}

I still hit this in my test code:
https://github.com/prestodb/presto/actions/runs/3434870459/jobs/5726596765
Error:  com.facebook.presto.nativeworker.TestHiveQueriesUsingJSON.testDecimalArithmetic  Time elapsed: 2.875 s  <<< FAILURE!
java.lang.AssertionError: Expected exception message 'it != buffers.end() Output buffers for task not found: 20221110_092308_00064_fhhkb.0.0.0' to match '.*Decimal overflow.*' for query: SELECT n - m from (values (decimal'99999999999999999999999999999999999999', decimal'-1')) t(n,m)
	at org.testng.Assert.fail(Assert.java:98)
	at com.facebook.presto.tests.QueryAssertions.assertExceptionMessage(QueryAssertions.java:351)
	at com.facebook.presto.tests.QueryAssertions.assertQueryFails(QueryAssertions.java:332)
	at com.facebook.presto.tests.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:251)
	at com.facebook.presto.nativeworker.TestHiveQueries.testDecimalArithmetic(TestHiveQueries.java:441)
	at com.facebook.presto.nativeworker.TestHiveQueriesUsingJSON.testDecimalArithmetic(TestHiveQueriesUsingJSON.java:16)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Reproducible only on linux machines.

On adding some logs, it seems like in my case the bufferManager is accessed after the taskId entry in the map is removed due to the exception. Here is the sequence of events:
Buffer erased from Map by a driver:77540 TID ---> 08:17:14.898089 77540 PartitionedOutputBufferManager.cpp:667] Buffer erased by PID: 77502, TID: 77540
08:17:14.898521 77542 TaskManager.cpp:258] Processing pending result request for task 20221119_081714_00007_ibfum.0.0.0, buffer 0, sequence 0
Buffer looked up in map by another driver: 77542 TID ---> 08:17:14.898542 77542 Exceptions.h:68] Line: ../../velox/velox/exec/PartitionedOutputBufferManager.cpp:553, Function:operator(), Expression: it != buffers.end() Output buffers for task not found: 20221119_081714_00007_ibfum.0.0.0 PID:77502 TID:77542, Source: RUNTIME, ErrorCode: INVALID_STATE

Possible solutions:
The exception throw in getBuffers is not handled currently. The point at which we know info about the Task is  down the stack is TaskManager::createOrUpdateTask().
We can catch the exception here and check if the Task is already FAILED/ABORTED.
If the task hasn't failed yet, throw the exception or
try {
        getData(
                resultRequest->promise.lock(),
                resultRequest->taskId,
                resultRequest->bufferId,
                resultRequest->token,
                resultRequest->maxSize,
                *bufferManager_);

    } catch (const std::exception& e) {
       VLOG(1) << "TaskManager::createOrUpdateTask getData failed " << e.what() ;
        if (prestoTask->info.taskStatus.state == protocol::TaskState::ABORTED
        || prestoTask->info.taskStatus.state == protocol::TaskState::FAILED) {
            // Task is already aborted/failed. Nothing to do.
            return std::make_unique<TaskInfo>(prestoTask->updateInfoLocked());
        }
       throw e;
    }

Please let me know if you have any suggestions.
@mbasmanova @majetideepak @aditi-pandit


fix(social): W3C validation error

:tada: This PR is included in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


unable to find providers folder.

For step 7 in this KB https://docs.microsoft.com/en-us/dynamics365/customer-engagement/marketing/developer/event-management-web-application#developing-and-customizing-web-application-on-self-hosted-backend, it mentioned "\src\app\providers\url.providers.ts", but I didn't find providers folder and url.providers.ts as well in the source code.
May I know it's correct or not? Whether step 7 is necessary?

Currently we have some issues with Self- hosted portals, we are removing it from the docs. Will update it when we have the issue fixed.


Picking files that are not images throws: Java.Lang.NullPointerException: uri

Hello!
I'm having issues with picking files on Android, image seems to work fine and get picked without problems but with the rest of types throws exception (I tried with PDF and .ico file).

I installed the plugin in all the projects.
I enabled READ_EXTERANL_STORANGE & WRITE_EXTERNAL_STORAGE permissions.

The code is pretty much the one I copied in the README.
        async Task ImportFile(object id)
        {
            if (IsBusy)
                return;

            IsBusy = true;

            try
            {
                FileData fileData = await CrossFilePicker.Current.PickFile();
                if (fileData == null)
                    return; // user canceled file picking

                string fileName = fileData.FileName;

                await PersonalDocumentsSvc.ImportFile(fileName, fileData.DataArray);

            }
            catch (Exception ex)
            {
                Crashes.TrackError(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }

When I file that is not an image the method PickFile() it throws an exception: Java.Lang.NullPointerException: uri
Full Stack:

Specifications
I tried different combination of Nuget Package (2.134 and the latest) with Xamarin.Forms, but all combinations produce the same result.

NuGet package version: 2.1.34+
Platform(s):  Xamarin Forms: 4.8.0.x / Android 10 / API 30

Hey @podger sorry about that! Unfortunately, this library is about to be retired. Xamarin.Essentials now has a FilePicker, based on a big part of our library, and that it where the future will be. I suggest trying that library and if you're seeing the same thing opening an issue there.

Hi @jfversluis, thanks for the quick reply.
I was waiting for the Xamarin.Essentials 1.6 stable release first before upgrading.
Anyway I tried the 1.6.0-pre-2 and seems to work solving this issue. I guess I will follow this way.
Thanks.

Closing this since this project will retire, please check out Xamarin.Essentials which now has a FilePicker based on this one.


Inputs shoult be tokenized only for training/evaluation sets?

Hello,
Your README states:

Inputs should be tokenized and each line is a source language sentence and its target language translation, separated by (|||). You can see some examples in the examples folder.

Is this the case only for the training set and the optional evaluation set? During inference/prediction, do we also need to pass the source/target pair, pretokenized? Your demo uses the example:

src = 'awesome-align is awesome !'
tgt = '牛对齐 是 牛 ！'

where the ! is pretokenized, as there is a space between it and the previous word ("awesome" in this case). Also, does this requirement stem from the original mBERT or is this your implementation requirement? Thank you!

You need to provide tokenized sentences to the model because otherwise the model will treat "awesome!" and "牛！" as single words and you will get "awesome!-牛！" as an aligned word pair. This follows the previous fast-align work (https://github.com/clab/fast_align).


Can't configure 1btn over my1btn network

hi,
following these instructions: https://onedrive.live.com/embed?cid=1CCB31E5C4946157&resid=1CCB31E5C4946157!64753&authkey=ABqqwSvGLUfaemQ&em=2
i can't connect with MAC, Windows, IOS. I get the following error in termite. What is wrong?

Similiar to this issue: https://github.com/knewron-technologies/1btn/issues/3
Thanks.

hi, just coming back to this. would be great to get this board up and running. any help mcuh appreciated.

Can anyone provide some information on how to configure a 1btn unit over my1btn network.   I have also followed these instructions : https://onedrive.live.com/embed?cid=1CCB31E5C4946157&resid=1CCB31E5C4946157!64753&authkey=ABqqwSvGLUfaemQ&em=2
and it allows me to put in the password but when I go to a browser and put in <IP_ADDRESS>, it never connects.  I am trying to use my android phone to make the connection at this point.

As you'll notice in error log "panic". A file seems to be missing. Can you compare it with the default files and see what's missing. Having that file on the device should help.

I'm not a developer and I don't know how to get "files onto device" can you please elaborate. I think the default install procedure is broken.

Ok.  I'm still not getting any where with these 1btn devices.  Can you tell me the exact cable that needs to be used between the laptop and the 1btn.  I have tried a micro-USB cable which fit the connection on the 1btn unit.  I have 1btn unit that the battery appears to have died on while testing and when using this micro-USB cable for charging it does not appear to be doing anything.  This cable works fine on my Justin Power stick so I know the cable is good but it might not be the correct cable for the 1btn unit.
I also noticed when I connect initially to the 1btn unit via WiFi, you unit gets an IP address of <IP_ADDRESS> and within a short period of time it switches to <IP_ADDRESS>.  I tried to connect to the unit via a IE, Google Chrome, & FireFox browsers using both IP addresses and I get the message the site can not be reached message regardless of which IP address I try.

I never received  a response to my question that I submitted last month.


temporary copy paste approach to obtain mk kafka, agent models  for i…

models from fleetshard repo in order to use them to manipulate with managedkafka , managedkafkaagent in data plane cluster.
The solution is temporary to complete and test tasks
https://issues.redhat.com/browse/MGDSTRM-9281
https://issues.redhat.com/browse/MGDSTRM-8992
and will be switched to either more automated manner either with usage of git submodule or other approach (depending on https://issues.redhat.com/browse/MGDSTRM-10349 )
additionally extension of role of account used in e2e test allso to have permission to list machine sets (in order to verify node scaling for future for   https://issues.redhat.com/browse/MGDSTRM-9281
regarding models: in this case only managedkafkaagent part  is added (as managedkafka and  classes it consitutes of are already present)

✅ (suset of tests where it is actually used)  https://main-jenkins-csb-mas.apps.ocp-c1.prod.psi.redhat.com/job/e2e-test-suite/job/e2e-test-suite/405/


Update GCP env vars to have MGC_GCP prefix

Discovered during testing of #515
The env vars GOOGLE, PROJECT_ID, ZONE_NAME, ZONE_DNS_NAME should have an MGC_GCP prefix, simliar to AWS env vars.
See https://kubernetes.slack.com/archives/C05J0D0V525/p1695649229339789 for discussion on this.
The env vars are used in the quickstart, and referenced in the docs at https://docs.kuadrant.io/getting-started/#gcp

This issue is stale because it has been open for 60 days with no activity.

This issue was closed because it has been inactive for 30 days since being marked as stale.


iOS NativeMessageHandler has Memory Leak

I created a sample project to demo this. The code for the view controller is below. I will email you the sample code and the instruments log to (paul@paulbetts.org). This may also be apparent in the NativeCookieHandler.

using System;
using System.Drawing;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

using Foundation;
using UIKit;

namespace Demo
{
    public partial class ModernHttpClientMemoryLeakViewController : UIViewController
    {
        static bool UserInterfaceIdiomIsPhone
        {
            get { return UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone; }
        }

        public ModernHttpClientMemoryLeakViewController(IntPtr handle)
            : base(handle)
        {
        }

        public override void DidReceiveMemoryWarning()
        {
            // Releases the view if it doesn't have a superview.
            base.DidReceiveMemoryWarning();

            // Release any cached data, images, etc that aren't in use.
        }

        #region View lifecycle

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
            this.MyButton.TouchUpInside += async (object sender, EventArgs e) =>
            {
                var contents = await this.GetFeedPage(new Uri("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_day.geojson"));
                System.Diagnostics.Debug.WriteLine(contents);
                contents = null;
            };
        }

        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
        }

        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);
        }

        public override void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);
        }

        public override void ViewDidDisappear(bool animated)
        {
            base.ViewDidDisappear(animated);
        }

        private async Task<HttpResponseMessage> GetAsync(HttpClient client, Uri uri)
        {
            return await client.GetAsync(uri, HttpCompletionOption.ResponseHeadersRead);
        }

        private async Task<string> GetFeedPage(Uri uri)
        {
            using (var client = new HttpClient(new ModernHttpClient.NativeMessageHandler()))
            using (var response = await this.GetAsync(client, uri))
            {
                if (response.StatusCode == HttpStatusCode.NotFound)
                {
                    return null;
                }
                else
                {
                    response.EnsureSuccessStatusCode();

                    return await response.Content.ReadAsStringAsync();
                }
            }
        }

        #endregion
    }
}

Execute this code and profile with Instruments using the Leaks functionality. You will see the memory leak occur upon pressing the button.


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixed typos leading to missing examples

Summary
Added :: that was missing in documentation, which led to code examples and plots to be missing
Fixes #12683
Details and comments

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

LGTM. Thanks!


any and all do not support level=-1 on non-multi index

The following is not supported on Modin (but is supported in pandas):
import modin.pandas as pd

df = pd.read_csv("some.csv", index_col=0)
df.any(level=-1)
df.all(level=-1)

Discovered as a part of #2847


examples: Use clamp

This satisfies a clippy lint that is newly enabled in 1.79.

Aha, the return of clippy::manual_clamp. Looks like it's much more conservative this time around and works on const values only.
Last time it was enabled (in 1.66) it suggested code changes that were not equivalent and even caused panics, e.g. the following code in Druid:
#[allow(clippy::manual_clamp)] // Usable space could be below the minimum bar size.
let length = length.max(bar_min_size).min(usable_space);
// e.g. length.max(6.0).min(3.0) would be .clamp(6.0, 3.0) which panics


[WIP] Integrating libp2p into Lodestar

This is currently a work in progress and breaks tests.
I have started integrating libp2p into Lodestar. A simple libp2p bundle has been created and is subject to change as more components get built out.
Here's a current TODO list:

[ ] Have a working basic server for managing peers

[ ] (Optional) Change part of the service API

[ ] Add RPC over libp2p to start integrating the ETH2.0 Wire Protocol

[ ] Add BDD tests to make sure networking is fine.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Just quickly glanced, we should be probably importing a libp2p library rather than a bunch of individual ones?

@GregTheGreek The way it works is that if you don't need any specialized transports, multiplexers, etc and you can use the ones provided by libp2p, you need to add them to the project individually. The one that might be optional is FloodSub but I still imported so that when GossipSub is done, I can just replace the import.

@GregTheGreek I think this is as it should be re: importing libraries for now. libp2p takes a veeery modular approach, and we need all of these libraries to weave everything together properly. In fact, we probably will be adding even more libp2p libraries in the future!
Its probably easier to start here, monorepo style, and once we've got things more solid, pull out into a separate repo/ repos, if it makes sense.

@wemeetagain Fair enough, I iguess we have a lot to trimfrom the package.json anyways.

@Mikerah would you be willing to do minor cleanup and plan on merging as is?
It would probably be better to just have the code in master and iterate from there.
I think your TODOs could be reintroduced as issues for further PRs.

@wemeetagain I can do minor cleanups and separate the TODO as separate PRs. My main bottleneck right now is that all the tests break due to odd compilation issues. Before merging, I would like to confirm that this is just an issue on my end and not everybody else's.

I think what you're seeing is a result of our check-types script.
Before running tests, we run the typescript compiler (without output) just for it to do some checks and catch any type errors.
It's very picky and will catch many small issues.
You'd probably want to just go through them, one by one.
If you're using an IDE (or vim w/ plugins like typescript-vim and YouCompleteMe), it may be much easier, because the errors will be called out in the editor and potentially can be auto-fixed.

The basics are in here and I will be opening subsequent PRs. @mpetrunic got the types working.

I have pushed some new changes. I turned the libp2p bundle into a singleton and some other stuff.

LGTM :+1:
github says there are some file conflicts, will add approval after that

The CI is failing on the linter, can you try running yarn run lint-fix

you'll need to fix the linter and typescript errors before we can merge, but they're all really minor things.
linter errors
/home/travis/build/ChainSafe/lodestar/src/p2p/index.ts
  146:1   error    Expected indentation of 8 spaces but found 1 tab  @typescript-eslint/indent
  148:1   error    Expected indentation of 8 spaces but found 1 tab  @typescript-eslint/indent

/home/travis/build/ChainSafe/lodestar/src/p2p/node.ts
  41:1  error  Expected indentation of 2 spaces but found 4    @typescript-eslint/indent
  47:1  error  Expected indentation of 8 spaces but found 9    @typescript-eslint/indent
  48:1  error  Expected indentation of 8 spaces but found 9    @typescript-eslint/indent
  49:1  error  Expected indentation of 10 spaces but found 11  @typescript-eslint/indent
  50:1  error  Expected indentation of 8 spaces but found 9    @typescript-eslint/indent
  51:1  error  Expected indentation of 8 spaces but found 9    @typescript-eslint/indent
  52:1  error  Expected indentation of 6 spaces but found 8    @typescript-eslint/indent

typescript errors
src/cli/commands/beacon.ts(30,33): error TS2345: Argument of type '{ db: { name: any; }; eth1: { depositContract: { address: any; }; provider: BaseProvider; }; }' is not assignable to parameter of type 'BeaconNodeCtx'.
  Type '{ db: { name: any; }; eth1: { depositContract: { address: any; }; provider: BaseProvider; }; }' is missing the following properties from type 'BeaconNodeCtx': chain, network, rpc, sync, opPool
src/node/index.ts(54,40): error TS2345: Argument of type 'object' is not assignable to parameter of type 'EthersEth1Options'.
  Type '{}' is missing the following properties from type 'EthersEth1Options': provider, depositContract
src/p2p/index.ts(4,9): error TS2305: Module '"../logger"' has no exported member 'logger'.
src/p2p/index.ts(45,11): error TS2554: Expected 0 arguments, but got 1.
src/p2p/node.ts(41,47): error TS1064: The return type of an async function or method must be the global Promise<T> type.

Re BeaconNodeCtx, you will probably need to let the interface properties be optional for now and also change the eth1 property back to an any. We can address the typing in a later PR, but that should fix that problem for now.
Re logger, you'll need to import the default object, eg: import logger from "../logger";
Re expected 0 arguments, you should remove the super since there's not a superclass we're interested in.
Re return type of async, createNode shouldn't be declared as an async function since its using callback style

The build is now passing. Awaiting approval...

@GregTheGreek I think leaving the waterfall in createNode is fine. This function won't be changing much in the future. I also think that waterfall is more readable than promisify in the way it's currently coded.  However, I found this issue that seems like it's a compromise between both ways.

@GregTheGreek I think leaving the waterfall in createNode is fine. This function won't be changing much in the future. I also think that waterfall is more readable than promisify in the way it's currently coded. However, I found this issue that seems like it's a compromise between both ways.

I think the point is we don't wan't both async an promisify librarys since they both do same job

It looks like createNode was pulled from floodsub.
In gossipsub, I recently promisifyed it, you can see it here: https://github.com/ChainSafe/gossipsub-js/blob/gossip_implementation/test/utils.js#L18

@wemeetagain createNode was pulled from one of the libp2p examples. They use that pretty much everywhere. I don't mind promisifying.

You can remove the async dependency


Submission

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

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

View a preview at https://prompt.ws/r/Azure/azure-cli/5923
This is an experimental preview for @microsoft users.


vulnerabiliy id

how to get the vulnerabiliy id in prometheus.
- name: OPERATOR_METRICS_VULN_ID_ENABLED
value: "true"
still cant get it on prometheus

Not a problem with trivy-operator.
Check my comment in https://github.com/dotdc/grafana-dashboards-kubernetes/issues/40

@mohang6770 the metric name is trivy_vulnerability_id

@mohang6770 any additional input required on this issue ?

@mohang6770 I think we can close this issue wdyt ?

Closing following to confirmation from @mohang6770


Fix launching gz sim in a partition different from the one of the conda environment (v8)

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


 This was due to some of the implicit decls generated for lazy vars having source ranges that don't enclose the source ranges of their non-implicit children. We wouldn’t walk into the the child nodes of these decls when looking for a name start location because the parent's source range didn’t contain it. For now, just always walk into implicit decls, regardless of their source range.

Radar: Resolves rdar://problem/35255644

Scope of issue: Breaks rename of any local symbol in a lazy var block

Risk: Low. Only affects the rename refactorings in sourcekitd.

Reviewed by: Xi Ge

Testing: Added regression tests to local and global rename covering symbols in lazy var blocks

@swift-ci Please test


Fix slice copy of VersionedSpecs in FeatureGate.

What type of PR is this?
/kind bug

What this PR does / why we need it:
Address the comments in https://github.com/kubernetes/kubernetes/pull/125941
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

@siyuanfoundation @sttts
Thanks for the code/review. Let's rebase-merge this so we can trigger presubmit tests from my PR. We can further discuss  from there.


version.txt mismatches v2022.0.1 tag name

https://github.com/oneapi-src/oneVPL/blob/301d5736f86c433e68dbe24b649e2798ecd13a0c/version.txt#L1
Tag v2022.0.1 and version.txt mismatch.

Will be fixed in next release by removing version.txt at root of repository. This is used for internal packaging only

Fixed in v2022.0.2


Defining tables with plain unchanged names

I'm trying to define tables for an already existing C* schema. If you give the name as first parameter to Keyspace.Table all queries are going to fail because the name is extended by partition and clustering columns.
The reason is this:
n := name + "__" + strings.Join(keys.PartitionKeys, "_") + "__" + strings.Join(keys.ClusteringColumns, "_")
How to I create a Table with a given name?

Hi, @wienczny! Check out https://godoc.org/github.com/hailocab/gocassa#Options
If I remember right it is something like:
mytable := keyspace.MapTable("name").WithOptions(gocassa.Options{TableName: "name"})

The reason names are a bit funky is to support different indexes with same tablename.
Cheers


Added option to modify map_complete auto-insertion

Fix #124
This allows to change the auto-insertion character after a function/method is auto-completed, based on filetypes:
require("nvim-autopairs.completion.compe").setup({
  map_cr = true, --  map <CR> on insert mode
  map_complete = true, -- it will auto insert `(` (map_char) after select function or method item
  map_char = {
      tex = "{",
      js = "[", -- This is incorrect, but you can change it
  },
})

thanks


crash on health ping

Last night in Arachni's I pinged her health and the game immediately crashed. I've been using this feature a lot (including a minute earlier on the exact same target, but before I'd damage her) and this is the only time it's caused any problem.

not sure about this, I took a look and the code seems ok. The possible failure point might be GW::Agents:AsyncGetAgentName(..) which we also use in a bunch of other places.

Was fix in a previous version, so closing the issue.


Changed project structure to import easier

The actual project layout has some redundant files and is missing things like global .gitignore files. In addition it is difficult to import the whole projekt at once into IntelliJ or Android Studio.
At the moment you need to import the library and the example as separate projects which is somewhat incovenient.
Therefore I changed the structure so that you can import it easily.
Also I updated the gradle wrapper to the newest version.
The second commit is for the missing method in AppIntro2. Because of the missing method the project could not compile.

Great work, thank you!


Interface AdminStatus missing in ygot log output failing verification

In aggregate_test.go, during verifyInterfaceDUT call, the AdminStatus verification fails.
The LogYgot output does not show any data for admin-status or the oper-status, however the manual gnmic query shows proper output ("UP" for interface admin-status) from SRL device.
AdminStatus reported by the script is 0 -
  aggregate_test.go:360: dut:port2(MVSRLHW15-DUT2:ethernet-1/2) admin-status got out-of-range E_Interface_AdminStatus enum value: 0, want UP
It seems based on below Ygot log output, where admin-status is missing, the above GetAdminStatus call is returning it as unset (value 0, based on enum.go) -
         Interface_AdminStatus_UNSET E_Interface_AdminStatus = 0
Ygot output have state which is missing admin-status -
          "openconfig-interfaces:name": "ethernet-1/2",           "openconfig-interfaces:state": {             "counters": {               "carrier-transitions": "0",               "in-broadcast-pkts": "1",               "in-errors": "0",               "in-fcs-errors": "0",               "in-multicast-pkts": "8",               "in-octets": "850",               "in-unicast-pkts": "1",               "out-broadcast-pkts": "5",               "out-discards": "0",               "out-errors": "0",               "out-multicast-pkts": "18",               "out-octets": "3568",               "out-unicast-pkts": "3"             },             "description": "dut:port2(MVSRLHW15-DUT2:ethernet-1/2)",
gnmic manual query output which shows the proper admin-status -
            "state": {               "admin-status": "UP",               "counters": {                 "carrier-transitions": "0",                 "in-broadcast-pkts": "1",                 "in-errors": "0",                 "in-fcs-errors": "0",                 "in-multicast-pkts": "8",                 "in-octets": "850",                 "in-unicast-pkts": "1",                 "out-broadcast-pkts": "5",                 "out-discards": "0",                 "out-errors": "0",                 "out-multicast-pkts": "18",                 "out-octets": "3568",                 "out-unicast-pkts": "3"               },               "description": "dut:port2(MVSRLHW15-DUT2:ethernet-1/2)",
Can you please help investigate, what could be going wrong here or if I am missing something ?

This would be strange if gnmic is seeing the admin-status while ondatra is not. I would first see whether ondatra is receiving these messages at all. You can put some log markers around the particular telemetry call that's receiving the interface stats, and then run the test with go test -args -alsologtostderr -v=2 and look for log messages that begin with Received gNMI Update value. These log messages are defined in ondatra/internal/gnmigen/genutil/genutil.go

I executed the test with the mentioned options, and I collect following Type Noncompliance errors during unmarshalling for admin-status and oper-status -

Type Noncompliance Errors:
Unmarshal bool_val:true into elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value:"ethernet-1/2"}}: rpc error: code = Unknown desc = path  points to a node with non-leaf schema &{0xc000891e00  interface  []  [] Directory unset 0xc000882d70 unset map[aggregation:0xc0008c6180 config:0xc0008ca300 ethernet:0xc0008cb680 hold-time:0xc00090b200 name:0xc00090bc80 routed-vlan:0xc00090be00 state:0xc000960f00 subinterfaces:0xc00099c000] name  [] 0xc000a03980  [] [] [0xc000a26480 0xc000a26780 0xc000a26a80] [] map[] {false false} [] map[] map[schemapath:/openconfig-interfaces/interfaces/interface structname:Interface] }
Unmarshal int_val:0 into elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value:"ethernet-1/2"}}  elem:{name:"state"}  elem:{name:"admin-status"}: rpc error: code = Unknown desc = failed to update struct field AdminStatus in *telemetry.Interface with value int_val:0; failed to unmarshal &{0} into enumeration
Unmarshal int_val:1 into elem:{name:"interfaces"}  elem:{name:"interface"  key:{key:"name"  value:"ethernet-1/2"}}  elem:{name:"state"}  elem:{name:"oper-status"}: rpc error: code = Unknown desc = failed to update struct field OperStatus in *telemetry.Interface with value int_val:1; failed to unmarshal &{1} into enumeration
Value Restriction Noncompliance Errors: None

The log response for admin-status and oper-status query are like -

`I0818 13:35:51.600862   24979 genutil.go:976] Received gNMI Update value int_val:  0
at path: elem:  {
name:  "interfaces"
}
elem:  {
name:  "interface"
key:  {
key:  "name"
value:  "ethernet-1/2"
}
}
elem:  {
name:  "state"
}
elem:  {
name:  "admin-status"
}
I0818 13:35:51.600874   24979 genutil.go:981] Constructed datapoint for update: Value: int_val:  0
Timestamp: 2022-08-18 13:35:39.007718348 -0700 PDT
RecvTimestamp: 2022-08-18 13:35:51.600443257 -0700 PDT m=+349.641492924
Path: elem:  {
name:  "interfaces"
}
elem:  {
name:  "interface"
key:  {
key:  "name"
value:  "ethernet-1/2"
}
}
elem:  {
name:  "state"
}
elem:  {
name:  "admin-status"
}
I0818 13:35:51.600907   24979 genutil.go:976] Received gNMI Update value int_val:  1
at path: elem:  {
name:  "interfaces"
}
elem:  {
name:  "interface"
key:  {
key:  "name"
value:  "ethernet-1/2"
}
}
elem:  {
name:  "state"
}
elem:  {
name:  "oper-status"
}
I0818 13:35:51.600918   24979 genutil.go:981] Constructed datapoint for update: Value: int_val:  1
Timestamp: 2022-08-18 13:35:39.007718348 -0700 PDT
RecvTimestamp: 2022-08-18 13:35:51.600443257 -0700 PDT m=+349.641492924
Path: elem:  {
name:  "interfaces"
}
elem:  {
name:  "interface"
key:  {
key:  "name"
value:  "ethernet-1/2"
}
}
elem:  {
name:  "state"
}
elem:  {
name:  "oper-status"
}`

Thanks, it looks like there is a vendor compliance issue, per the gNMI spec enumerations should be represented as a string: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#223-node-values, this is consistent with the RFC7951 JSON representation of enumerations.
My guess is gnmic tolerates integer values for enums during unmarshalling, so that's why you're seeing the difference.

Thanks with the investigation, this is very helpful to narrow it down.  I will take it up with the vendor.


MFA screens

Some issues with MFA screens. Currently if a user selects to verify identity with backup code it doesn't offer a way to change it to use Authenticator app instead. Also some error message text issues.
Ideally the flow should be like this:

Or in screens:

User signs in

Both Authenticator app and Backup code is set up

If a user click I want to use a backup code, we take them to this page, which shows the ability to go back to using authenticator app.

[Future cases] In a case where we support more methods for MFA than backup codes and TOTP, we should say "Use another method" and give users a selection like this

I don't think we should treat lookup secrets as a an alternative to the authenticator app. They are a fallback and should be used only if needed. Creation of lookup secrets usually requires aal2 or higher (see https://pages.nist.gov/800-63-3-Implementation-Resources/63B/Authenticators/, https://www.ory.sh/docs/kratos/mfa/lookup-secrets). So you shouldn't be able to create backup codes without a registered authenticator (unless you use your email?).

I don't think we should treat lookup secrets as a an alternative to the authenticator app. They are a fallback and should be used only if needed. Creation of lookup secrets usually requires aal2 or higher (see https://pages.nist.gov/800-63-3-Implementation-Resources/63B/Authenticators/, https://www.ory.sh/docs/kratos/mfa/lookup-secrets). So you shouldn't be able to create backup codes without a registered authenticator (unless you use your email?).
Good shout, I'll upgrade the flow diagram to not have the case of using Backup codes as an alternative to authenticator app, will just be a fallback!