SnipInfo Command  Error and Unable to receive user input.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Open a file containing '...'
Run the command '....'
See error '...'

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:

Neovim version [e.g. v0.6.1]
OS/distribution

Additional context
Add any other context about the problem here.

Hey, please fill correctly your bug report.
SnipInfo works on my end (I would be tempted to say 'obviously'), so unless you provide me with enough info, I won't be able to fix your issue

~/.cache/sniprun/infofile.txt， I don't have this document

But my main problem is that I still can't pop up to receive user input, causing my cin function to be a random value.

But my main problem is that I still can't pop up to receive user input, causing my cin function to be a random value.

That's a limitation of sniprun. It won't be fixed in the near future

~/.cache/sniprun/infofile.txt， I don't have this document

It's supposed to be generated, and I hardly see where it can fail. Could you copy here the content of ~/.cache/sniprun/sniprun.log after trying to run SnipInfo ?

I can't find the sniprun folder in the .cache folder.

I can't find the sniprun folder in the .cache folder.

Wut. Does sniprun even work ? (Run it on a very simple line such as "print(1)" in a python file)
Or do you have an $XDG_CACHE_DIR environment variable that's set to somewhere strange ?

I didn't set this $XDG_CACHE_DIR environment variable, and my sniprun can output printf("hello world");

I'm using macOS.

So what should I do? Specify the path XDG_CACHE_HOME in the zshrc file, or should I make other settings?

I think you should specify the XDG_CACHE_DIR in your shell's rc configuration file, but preferably make it point to the value of the default cache directory on macos (google says it's ~/Library/Caches, and if you find a sniprun subdir there it's confirmed).
I'll fix the search path for the infofile, but the above should fix the issue in the meantime

It isn't useful.

XDG_CACHE_HOME 😉

The last release also search for the temporary SnipInfo file in ~/Library/cache now, so it should be automatically fixed


Code Editor setting for Python IntelliSense in Jupyter notebooks

When using Code Editor in SageMaker Studio (where the latest available distribution is currently 1.5), I've found that Python cells in Jupyter notebooks have no IntelliSense unless I configure this setting, then reload the page:
"python.languageServer": "Jedi"

Would it be acceptable to add that to template/v1/dirs/etc/code-editor/code_editor_machine_settings.json?
The problem might be resolved in a newer version of the Jupyter extension, judging by https://github.com/microsoft/vscode-jupyter/issues/12494, but unfortunately the latest version on open-vsx.org is 6+ months out of date. 😕

Thanks Seiji for reporting this. We will track this request and evaluate this default languageServer configuration internal.

@edwardps are there any updates we can share here?

With notebooks, IntelliSense defaults to Jedi. Set it to Pylance instead, as it is much more feature-rich than Jedi. You can add "python.languageServer": "Pylance" to your startup lifecycle policy.

@j0bekt01 Does that require Pylance to be installed? As far as I know, the Pylance extension isn't available in Code Editor because Microsoft restricts it to their proprietary VS Code distribution.

There's a Python extension that's already installed in our SM so I either go to the extension settings and pick Pylance over Jedi or append the line above to the settings file.

I think @SeijiSuenaga is correct. When you select pylance code editor prompts to install the extension ms-python.vscode-pylance,  but is unable to do so. I tried manually downloading the vsix, but this also fails installing, with an error about vscode version. Also noticed that extension is not on OpenVSX :S

Jedi does enable some limited intellisense for python stdlibs, but nothing for e.g. spark :S

I think @SeijiSuenaga is correct. When you select pylance code editor prompts to install the extension ms-python.vscode-pylance, but is unable to do so. I tried manually downloading the vsix, but this also fails installing, with an error about vscode version. Also noticed that extension is not on OpenVSX :S

This extension is on openVSX
https://open-vsx.org/extension/ms-python/python
it should already be baked into the distribution image see here: https://github.com/aws/sagemaker-distribution/blob/main/build_artifacts/v2/v2.0/v2.0.0/dirs/etc/code-editor/extensions.txt

@j0bekt01 this is not the same extension, we are talking about the pylance extension, NOT the python extension, see here:
https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
vs.
https://marketplace.visualstudio.com/items?itemName=ms-python.python
note the different IDs ms-python.python vs. ms-python.vscode-pylance

@j0bekt01 this is not the same extension, we are talking about the pylance extension, NOT the python extension, see here:
https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
vs.
https://marketplace.visualstudio.com/items?itemName=ms-python.python
note the different IDs ms-python.python vs. ms-python.vscode-pylance

oh, I see. The openvsx one should have support for pylance

It's not quite like that.
ms-python.python has support for automatically installing ms-python.vscode-pylance. However installing the pylance extension is what fails

pylance does not exist on openvsx and we were not successful activating Pylance in any sort of configuration.
The OpenVSX python extension can not install Pylance, as it does not exist. It fails in installing Pylance, but does so silently. Setting LanguageServer to Pylance then leads to no Python support at all. Jedi is, of course, vastly inferior.
As such:

Is there any way to remediate this issue?
Are there any plans to provide better Python support?

If there really isn't any way to do this, or if the AWS team really is not aware of the issue, I also have the following question:

Has anyone at AWS actually ever tried productive coding in Python using Sagemaker?

@imarquart FWIW, for plain .py files you can install the Pyright extension, which Pylance is built upon.  It includes some basic language server features like renaming variables, but it doesn't work in notebook cells. ☹
Since Microsoft made Pylance proprietary, I feel like the Python ecosystem needs an open-source alternative that works in notebooks, but I haven't found one (and I doubt I could build one myself).  There is a Pyright fork called basedpyright that re-implements some Pylance features, but it currently doesn't support notebooks either.  It'd be awesome if AWS used some of their vast resources to make their own fork for SageMaker... 😉


Why do you ignore this?

As I wrote. Inverters run well. All data on solaredge website are ok.  So there is no problem with setup. The only problem is that your module sees only 2 out of three.
This is not a bug for you? This is normal?
Is there something wrong with such questions? Why are you so rude and automatically close any mention about it?

STOP OPENING ISSUES for setup problems. Open a discussion and maybe someone will help. I don't answer help questions in issues becasue I spent a lot of time working on docs and taking screenshots of exactly what needs to be set so I know your question is answered, but for some reason you refuse to read the docs. Go back and READ the readme and READ the wiki. All of it. Even the parts you don't think mean anything. If you don't understand a specific step in the instructions you can ask that in the HA forums or in a discussion.
You have a setup problem. It's clear you did not read the docs. This is not a "bug".
DO NOT OPEN ISSUES ASKING FOR SETUP HELP. I get alerts for issues and I don't want alerts for people who can't be bothered to follow instructions. If you insist on opening issues over and over for without good reason I will be forced to block you.


fix table formatting in uni.d

follow-up to #4354 - this document is hard to read with all the unnecessary whitespace.
http://dlang.org/phobos/std_uni.html

As with #4358, dmd's handling of empty lines should be fixed instead of working around it here.

Ehm I don't understand something... Why indenting the text will fix unnecessary whitespace?

Ehm I don't understand something... Why indenting the text will fix unnecessary whitespace?

Indendation was done to make it easier for the eye to grasp the context. The important part is that the lines between the paragraph have been removed.
$(P
 ...
)
<this line was removed>
$(P

See yourself:
http://dtest.thecybershadow.net/artifact/website-fc52239a89c0f31ce8fab3844f156b775682a9e6-c2b018c0699f83c6d7e130c5be336046/web/phobos-prerelease/std_uni.html
http://dlang.org/phobos/std_uni.html

Auto-merge toggled on


I have a proposal

The serialization part of this library should be dependent on boost:: serialization. I'm using boost and your JSON library at the same time. Are there any interests to be compatible?
Because if my custom type needs to be serialized to JSON and others at the same time. I need to write three additional functions, to_json from_json, serialize., to_json and from_json, which should be similar to serialize's load and save. They belong to the custom type attribute registration.
So I mean, this library depends on boost:: serialization, why don't do a compatible property registration method
Or to do a serialize wrapper, just write this wrapper function to realize the serialization on the boost
thank you

I'm sorry, it doesn't seem to be using serializtion

Right, the library is independent of Boost.


Add a two boxed Pulumi logos for Github

@cobraz would you mind adding a few details about what you are fixing here?

Or, sorry, @susanev! I forgot to add a description here, see the updated one now!

ah i see @cobraz lets got with the no-shadow version, wish we could use our logo-on-dark for these, but understand why we cant.
thanks for fixing this!!

ah i see @cobraz lets go with the no-shadow version, wish we could use our logo-on-dark for these, but understand why we cant.
thanks for fixing this!!

Yeah, it's sad. I'll be sure to pay attention to see if something comes up that can make it possible, like the feature request for a theme context. We could use media queries and prefers-color-scheme, but it doesn't work good enough, since users can activate dark mode on Github, but keep browser/OS in light mode; stuck with the same issue as right now.
I'll update the PR to remove the shadow version :)

Done :)


call merge if the flake is used as a function

Allows for using the input as a function, e.g.:
{
  inputs.merge.url = "github:divnix/data-merge";

  outputs = {merge, ...}: merge {/* someOutputs */} {/* someOtherOutputs */};

}

Thx!


App crashes after enabling Background Applying

iPhone 14 Pro, iOS 16.6b1, Picasso v3.1
I have been able to confirm a consistent issue when enabling Background Applying in the settings. The app shows the explanation pop up for the Location and Notification permissions, but crashes after pressing Continue.
Despite switching to User registration in TrollStore to grant the necessary permissions and switching back to System, the setting still remains disabled in the app.
If any further information is required, please leave a comment.

Need a crash log.

Picasso-2023-12-09-171009.txt
Here's the latest crash log from the test I just did.

Can replicate the crash. I will now start debugging it


APT whitelist request for libslang2-dev in trusty

libslang2-dev is used by neomutt and mutt (email clients)
This package used to be approved (my builds succeeded yesterday).

My build works again today.  Sorry for the noise.


[BUG] -short description of bug and milestone version

Describe the bug
A clear and concise description of what the bug is.
Area/Component:
Please mention area or component in Service Fabric where issue was found. Ex: security, monitoring, placement or resource governance Reliable services, Actors, programming models,SDK,.etc.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Observed  behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Service Fabric Runtime Version:
ex: 7.1., 7.2.
Environment:

Must be one of these values [Standalone OR Azure OR OneBox/Dev cluster]
OS: [e.g. Windows 2019, Ubuntu 18.04]
Version [e.g. 7.1, 7.2 ]

If this is a regression, which version did it regress from?
Additional context
Add any other context about the problem here.

Assignees: /cc @microsoft/service-fabric-triage

Testing issue template. Closing it


Automatically call + (void)clearCache on memory warning

it seems to be a good idea to subscribe clearCache to run automatically on memory warning event.
Do we need to add extra checking that no tess are in progress at the moment?

Check out this Stack Overflow for some code to register for the low memory warning notification with a callback method: http://stackoverflow.com/questions/740562/where-and-how-do-i-register-an-object-for-receiving-a-notification

If nobody minds I can start working on this.

So I did found that a refernce counter is used for any 'dawg' data inside tesseract.
That means we can safely call clearCache even if there is a recognition in progress.
I'm going to implement a test for this case.
I will also add a subcribtion to the memory warning notification and tests to check them.

So there is a PR #134 for this.


fix(md-range, md-file): add md-readonly

Here is a new PR of https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/pull/426 for adding md-readonly to md-range and md-file.

Thanks, @HIRANO-Satoshi! 👍


AoT build fail with ngx-perfect-scrollbar module

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?
I want to report a bug

What is the current behavior?
I'm trying to install module ngx-perfect-scrollbar and make AoT build. I got this error:

Error: Child compilation failed:
Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
    at Object.module.exports.pitch (...angular2-webpack-starter\node_modules\extract-text-webpack-plugin\loader.js:27:9):
Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via

Clone the repository
install ngx-perfect-scrollbar via npm npm install --save angular2-perfect-scrollbar
Add ngx-pefect-scrollbar to app.module.ts

...

import {PerfectScrollbarModule} from 'angular2-perfect-scrollbar';
import {PerfectScrollbarConfigInterface} from 'angular2-perfect-scrollbar';
const PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
  suppressScrollX: true
};

...

@NgModule({
  ...
  imports: [ // import Angular's modules
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot(ROUTES, { useHash: true, preloadingStrategy: PreloadAllModules }),
    PerfectScrollbarModule.forRoot(PERFECT_SCROLLBAR_CONFIG),
  ],
  ...
})

...

What is the expected behavior?
Build AoT without errors

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.4.6
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

i use perfect-scrollbar to, have no problems.

Yeah, Good to know. But I'm using ngx-perfect-scrollbar, it's angular 2 module

@daominhsangvn The extract text plugin is trying to load (and extract) the css from that package, which is defined at the component level.
My suggestion is to block the extract plugin from running when styles are coming from node_modules

@daominhsangvn you use angular2-perfect-scrollbar this is the same that i use.
When i check out the lastest starter and add this module it works without errors.

@derdiggn : I'm using that Plugin btw, did you try build AoT yet?

@shlomiassaf Thanks, that's a good point to start with.

ok Thanks @shlomiassaf for the point. I resolved this issue by exclude the angular2-perfect-scrollbar from ExtractTextPlugin and use css-loader combine with to-string-loader for angular2-perfect-scrollbar.
I'm not sure why the ExtractTextPlugin cannot find the css file of angular2-perfect-scrollbar but this is just work around.
Anyway, problem solved.


Pushing from rootNavCtrl

Hello!
I am trying to pushing a page inside SuperTabs and my desired behavior would be to hide SuperTabs  and show my tabs from below. From here I am doing well as show in the next images:

But then, when I pop back to the SuperTabs page the SuperTabs disappear.

I am doing it in the following way:
import {Component, Input} from '@angular/core';
import {App, NavParams} from 'ionic-angular';
import {StudentPage} from '../../../../pages/student/student';

@Component({
    selector: 'students-header',
    templateUrl: 'students-header.html'
})
export class StudentsHeaderComponent {

    onViewStudent(student) {
        this.navParams.get('rootNavCtrl').push(StudentPage, {student: student});
    }
}

I have tried to override the default back button action to pop back to the original SuperTabs page but it does not matter.
Is it a bug or am i doing something wrong?
Many thanks!

Hi @pablogarciamiranda,
Are Parada 1 and Parada 2 also SuperTabs or just a plain ion-segment?
For what I can see, there seems to be a problem with the container where you StudentsPage get loaded.
Try the following:
Replace this
   onViewStudent(student) {
        this.navParams.get('rootNavCtrl').push(StudentPage, {student: student});
    }

with this:
   onViewStudent(student){
      this.app.getRootNav().push(StudentPage, {student:student});
   }

Don't forget to add app reference in your constructor constructor(private app : App){}
Also, getRootNav() is going to be deprecated in the next major release of Ionic, but there's an alternative
What this does is that it gets the root navigation controller of your app and then pushes your page from there, after that, when you tap on "Back" the page will be popped from the root navigation controller and show the tab which you were.

@pablogarciamiranda
So, are you using two SuperTabs components? One at top and the other at bottom?

@eduardoRoth No, the ones from the bottom are the tabs provided for Ionic. That tabs provide a global navigation through the app.
And then, in one of that tabs I have a SuperTabs component.
Once I click on onViewStudent, which is inside SuperTabs, the tabs from the bottom must appear. But if I do what you are proposing me, they are not showing up and also when I come back to the page where the SuperTabs are placed, the tabs from top also disappeared (although they are swipeable)

@pablogarciamiranda
Ok, what happens when you just inject NavController in your Paradas page and push your StudenPage from there?

@eduardoRoth
Paradas page is where the SuperTabs is placed, so it won't have to much sense to push a page from there, am I right? I think you mean to push it from one page of SuperTabs.
This is how it looks.

And then, when coming back to SuperTabs page again they disappear.
And sure, here is part of my code:
stops.html. It contains the SuperTabs component.
<super-tabs scrollTabs="true" *ngIf="stops">
      <super-tab color="navbar" *ngFor="let stop of stops; let i = index" [root]="stopPage" [rootParams]="stop"
                 title="Parada {{i+1}}"></super-tab>
</super-tabs>

stops.ts
@Component({
    selector: 'page-stops',
    templateUrl: 'stops.html'
})
export class StopsPage {

    stops: any[];
    stopPage: any = StopPage;

    ionViewWillEnter() {
        this.storage.get('tripId').then(tripId => {
            if (!this.stops) {
                this.studentsService.getStudents(tripId).subscribe(students => {
                    this.tripId = tripId;
                    this.stops = this.studentsService.groupStudentsByStop(students);
                })
            }
        });
    }
}

tabs.html. It contains my tab2Root, which is the tab from below Paradas.
<ion-tabs>
    ...
    <ion-tab [root]="stopsPage" tabTitle="Paradas" tabIcon="information-circle"></ion-tab>
</ion-tabs>

import {Component} from '@angular/core';
import {StopsPage} from "../stops/stops";
import {StudentsPage} from '../students/students';

@Component({
    templateUrl: 'tabs.html'
})
export class TabsPage {

    studentsPage = StudentsPage;
    stopsPage = StopsPage;

    constructor() {

    }
}

students-header.ts: It's a component which belongs to stopPage referenced in stops.ts.
import {Component, Input} from '@angular/core';
import {App, NavController, NavParams} from 'ionic-angular';
import {StudentPage} from '../../../../pages/student/student';

@Component({
    selector: 'students-header',
    templateUrl: 'students-header.html'
})
export class StudentsHeaderComponent {

    @Input() student: any;

    constructor(private app: App, private navParams: NavParams, private navCtrl: NavController) {
    }

    onViewStudent(student) {
        //this.navParams.get('rootNavCtrl').push(StudentPage, {student: student});
        this.navCtrl.push(StudentPage, {student: student});
    }
}

@eduardoRoth
Thanks for your reply! The first approach also doesn't work. But I think I've found the error.
A hidden directive which apply a display none property is being applied when coming back. A quick fix would be to override that behavior with a display block, but I don't figure out how to override it.
I am doing it in the following way, but the display none is still over it:
super-tabs-toolbar {
      display: block !important;
}

I am thinking about modifying the super-tabs-toolbar behavior, but i would like to know if there is another approach.

@pablogarciamiranda Hi, Is your issue resolved ??

video link?

Hi, I have the same issue with ionic2-super-tabs: ^4.1.3
Did you find a way to make your super-tabs display when poping back form another page ?
Regards

As quick fix, set scrollTabs to false. It should work @egave @saihanuman73

Hi @pablogarciamiranda ,
thank you for your reply.
Unfortunately your quick fix didn't worked for me.
As a workaround, I overrode the default back button action to make a "setRoot" instead of a "pop". Doing so my "super-tabs" are displayed.
this.navBar.backButtonClick = (ev:UIEvent) =>
      this.navCtrl.setRoot(pageToGoBackTo);
    }

Hi @pablogarciamiranda, @saihanuman73
finally found a definitive solution. Upgrading to<EMAIL_ADDRESS>solved the issue as the problem seems to have been solved in 3.7.1-201710201922 as told in theses thread.
https://github.com/ionic-team/ionic/issues/13028
https://github.com/ionic-team/ionic/issues/13172


Detects pdf URLs that end with parameters (e.g. ?dl=1 on dropbox)

Hi Chris,
This is a small change to correctly identify pdf links if they have a set of parameters after the ".pdf".
cheers,
d

Thanks 👍


[Insight] Unused method, property, variable or parameter - in src/…/Repository/GithubRepository.php, line 115

This is an automatic bug report from sensio labs insight.
I am not making the PR yet because I don't know if it got here by accident or if you are working on something new.
Is it a mistake or should it stay ?
in src/Bowerphp/Repository/GithubRepository.php, line 115

This bestMatch local variable is declared but never used. You should remove it.

        // Yes, the php-semver lib does offer a maxSatisfying() method similar the code below.
        // We're not using it because it will throw an exception on what it considers to be an
        // "invalid" candidate version, and not continue checking the rest of the candidates.
        // So, even if it's faster than this code, it's not a complete solution..
        $bestMatch = false;

        $matches = array_filter(
            $sortedTags, function ($tag) use ($repoName, $criteria) {
            try {
                $candidate = $tag['parsed_version'];

Posted from SensioLabsInsight

fixed


Stop / Start BOSH Lite Director on GCP during CI build

Currently there is a single BOSH director on GCP that is used by CI to run acceptance tests.
We perform bosh start -d cf and   bosh stop -d cf  as part of the CI pipeline. This stops the processes but not the actual VM hosting all the services. In order to save IAAS costs we should also stop this VM. To do this we will need to install the gcloud CLI on the CI Docker image and ensure the GCP service account authentication files are base64 encoded into CircleCI environment variables.

Closing for now as this takes too long for BOSH Lite as need to recreate the BOSH env, then do a cloudcheck


assignment-2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

A2: Incomplete
Q3: It appears that you have only considered one variable in your linear fit. I would suggest reading the question once again to gain understanding of what to include in your model. The question mentions its interest in a multivariate lm (linear model)
Q4: Changes need to be made here as well in order to get the correct RMSE

A2: Complete


Updating VisIt threshold operator to use VTKm for structured meshes.

Description
Please include a summary of the change
Added the VTKm version of threshold that will currently work on structured meshes.
Type of change
New feature
How Has This Been Tested?
Please describe the tests you've added or any tests that already cover this change. Include relevant information, such as which operating system you tested on.
4 tests were added o the vtkm test file, showing functionality on 3d structured and curvilinear meshes. Tested on Linux mint 18.1.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have updated the release notes
[ ] I have made corresponding changes to the documentation
[ ] I have added debugging support to my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have added any new baselines to the repo
[x] I have assigned reviewers (see VisIt's PR procedures for more information).

@brugger1  can you see if this looks  like it is faithfully doing what it should?

@brugger1 Does this fix the issues you saw?

@brugger1 Thanks for the pointer to the notes, I wasn't sure where they were. I also fixed an issue with vtkm and the point mesh setting.

When you merge, you should do a "Squash and merge".

@brugger1 Can you do the merge? I don't have write access. I could also ask Dave, he would likely have it too.

@jameskress I just sent you an invite to join the team so you can do the merge yourself.

@brugger1 Thanks very much!


PrunedLiveness fix discoveredBlocks to be unique.

Avoid adding redundant discoveredBlocks. This will be used and tested
in upcoming OSSA utilities.

@swift-ci test

LGTM

@swift-ci smoke test and merge


How do I setup for ESP32-S3?

Recently I bought an esp32-s3 and tried the code but the connection between the module and the esp32s3 doesn't work. Do I need to change anything? If so, what?

你好，这个模块是没有对esp32s3进行兼容测试的，如果你需要使用，你可以尝试替换esp32s3能够成功的通信接口：

UART example worked perfectly with ESP32S3. I2C haven't tried it yet


Problem in Russian setup

When I switch to the Russian setup file, I get several replies from Sales and User.

There is an assumption that the answer is either history or sammorization

And when I do this in English there is only one answer

Hello! Up!


Implementation of one-vs-one approach

The 1-vs-1 approach creates several binary classification SVMs and utilizes a voting scheme. This is the one that Sci-kit Learn uses.
By using scitypes of the kind Multiclass, a one-vs-one approach should be easy to implement.

The use of scitypes is not really the issue here. This just means that one must type-coerce the correct target column.
The voting scheme is the difficult part. A tie-break scheme is still needed.

The use of scitypes is not really the issue here. This just means that one must type-coerce the correct target column.
The voting scheme is the difficult part. A tie-break scheme is still needed.


Remove obsolete note in _repeat_with_success_at_least

The issue in note is resolved by PR #179. So it does reflects the current implementation.

thanks!


V2.0 Redesign

This is a PR to redesign the site and use Tailwind to create the style.
TODO:

[x] Add tailwind packages
[x] Layout updates

[x] Base layout (for all other pages)
[x] Default layout (for non-post markdown pages)
[x] Post layout (for blog post pages)

[x] New homepage
[x] Theming

[x] Override base typography for markdown
[x] Configure some default styles (links, etc)
[x] Custom font
[x] Custom theme color
[x] Dark mode

[x] Allow dark-mode toggle? Examples: 1, 2

[x] Update npm scripts and build processes (including env vars and minification)
[x] General cleanup

[x] Refactor eleventy.config.js and other meta files
[x] Remove old src/static/css/style.css file (fixes #5)
[x] Remove unnecessary code (comments, etc)

[x] Logo (no background - handle with css)
[x] Update favicons
[x] Meta images - dynamically generated

Everything is good at this point, things are in place and ready to merge.
Will still look into issues once merged, and probably change some minor things, like the index image and other code refactoring.


15 allowed

[ci skip]

Could have changed to 14, but...
julia> factorial(15)  #  = 15!
1307674368000

FYI: There's https://sunoru.github.io/RandomNumbers.jl/stable/lib/xorshifts/#RandomNumbers.Xorshifts.Xoroshiro128Plus

Hi @PallHaraldsson , thanks for PR and the links! xorshift looks really cool, do you know what the consensus was regarding replacing Julia's default RNG with it?
You're right that LFSR's should probably not be used for any cryptographic applications and that there are many far superior PRNG's available. 😄
For my purposes, I basically just wanted to generate a lazy "random enough" permutation of the numbers 1 to N without much restriction on N. Please correct me if I'm wrong (I just glanced briefly , but it looks like xorshift based RNG's are most efficient generating sequences of size (2^n) - 1 where n is some machine compatible word size (otherwise, it looks like some fun bit masking is required).

Yes, if I recall for 64-bit (and/or 32-bit? if needed), and not sure if can be adjusted for shorter (or if needed).
hey want to change the RNG, and probably to my proposal, or one other mentioned (PCG?). There's a long thread/issue at Julialang I can dig up, but at least didn't happen for 1.5 or 1.6 yet.


CenPOS: Map InvoiceDetail field

@duff I misread the documentation before and thought that passing the
InvoiceDetail required a different TransactionType, making it
incompatible. Turns out to be untrue.

Closed by c9f579ab8cc903122cd274006705805f0a376637.


Login bug on Mobile

When I attempt to click “Login with Google to Enable Cloud Saving”, it will act as clicking “Import save from file” (or other lower y-axis with x-axis between the button “Import save from file”), resulting Cloud save is impossible to be enabled in mobile.
Both UI can happen but only on mobile.
Hovered Lime button: The button that is hovering/clicking.
Red dot: Where I am clicking for attempt to Cloud Save.
Yellow dot: Where I am clicking at y-axis on near bottom.

same prob here #281


[UI] GraphQL Control and Data Plane gives out undefined

Current Behavior

When loading the main dashboard, graphql subscription for control and dataplane states can be established. Data is transferred and it can confirmed by looking into the Network tab in Developer Tools in Chrome (or anything similar in other browsers) and even in GraphQL playground, data is successfully fetched. However, in the Relay graphql subscription, data is undefined.
Desired Behavior

Data is not undefined and able to update the states real time
Screenshots/Logs

Environment

Browser: Chrome
Host OS: Windows (WSL)
Meshery Server Version: edge-latest
Meshery Client Version: edge-latest
Platform: Docker

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery UI in Figma
🖥 Contributing to Meshery UI
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

Do you have any idea why this happens? @dhruv0000

You might take a look here @sudo-NithishKarthik

Will do @bariqhibat


Flutter should be able to interact with host clipboard for rich content

When a Flutter application is running on a Chromebook, it should be able to interact with the host clipboard to copy/paste text and other things (images, etc.).
This should support plain text, rich text, images, and application specific types.

@gspencergoog I'm guessing with the addition of the desktop labels, this is referring to Flutter apps running as linux apps inside Crostini on Chromebooks rather than via ARC++ ?

No, it is for all platforms that Flutter apps run on.  Flutter on the web, flutter in ARC++, etc.

+1

This is a very important feature on the desktop

+1

Fwiw, a while ago we released a plugin that supports reading and writing arbitrary data (including images) from/to clipboard on all supported platforms:
https://pub.dev/packages/super_clipboard

@knopp  this looks promising, but the apis are so make me confuse, can u help me on issue I raise in repo?

@knopp this looks promising, but the apis are so make me confuse, can u help me on issue I raise in repo?

Please do.

@flutter hello,
I recently found a pastboard lib gives paste image ability and works on all platform, it's API also very simple.
Consider add textfiled past image or event listen insert so that users can deal with the image pased from clipboard?

It's important feature on smartphone to copy/paste content with formatting (bold, link...), like from/to social network clients.


Update/Renew the default JSPI Origin Trial Token

The default JSPI origin trial token currently used by browZer expires on 10/29/2024.  Update the token to extend the trial until 2/18/2025.

shipped in 0.72.0


Restoring unsaved changes breaks mapping pane

Description
When I load rapid with unsaved changes and I request to restore them everything seems to do the right thing, but the mapping pane goes blank. And nothing I do seems to bring it back.
Version
2.0.3
What browser are you seeing the problem on? What version are you running?
Chrome v114.0
The OS you're using
mac
Steps to reproduce
I edited the kissimmee river relation.
I then closed my browser without saving the changes.
I then opened up rapid and the window to alert me that I have unsaved changes pops up.
I choose "restore my changes"
The map screen goes blank and I can't get it back.
https://github.com/facebook/Rapid/assets/5851115/f29125c5-3615-46cf-963e-6ae02818467b
The browser URL at the time you encountered the bug
https://rapideditor.org/rapid#background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries&id=r1240554&map=6.00/43.626/-86.407
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

I remember this was definitely broken, and I vaguely remember fixing it, but I don't remember specifically when I fixed it.

Works great now!


docs: fix small typos

Pull Request Checklist

[ ] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR
[ ] Pre-Commit Checks were ran and passed
[ ] Tests were ran and passed

Description

fixed tiny TYPOs I stumpled upon

Close Issue(s)

@all-contributors please add @ for


🧪 Automated accesibility testing

Is your feature request related to a problem? Please describe.
We should have some sort of automated accesibility testing through axe, or google lighthouse

Another option could maybe be pa11y?

Now that we have a monorepo structure, we can test it on test apps (for example the demo app HTML) with different stylesheets. This should make it much easier to implement the solution for this issue in a pipeline.


Facebook Clone

Issue Type:

[ ] Bug Report
[ ] Feature Request
[x] Documentaion

Describe the bug

A clear and concise description of what the bug is.

Possible solution

Describe the solution you thought of.

Screenshots

If applicable, add screenshots to help explain your problem.

Please Assign this issue to me


Pub Serve not noticing file changes from editors in 'safe write' mode (e.g., IntelliJ) on OSX

Pub serve does not appear to play nice with editors (specifically IntelliJ/IDEA) on OS X that use a  'safe write' mode (e.g., new file content is first saved to a temporary file, then the original file is deleted after which the temporary file is renamed to the original file name).
We were able to reproduce with InitelliJ on OSX using the Finance_Dart sample like so:
  * Open Finance_Dart/client/web/app.html in browser (Chrome or Dartium or ...). Wait for page load.
  * Modify Finance_Dart.client/web/app/view/item_list/day_purchases_list.html.  For example, change
       border-bottom: 1px dashed;

     to:
       border-bottom: 1px dashed red;
  * Refresh browser and you won't see dashed line color change. :(  Only restarting pub serve will do it.
NOTE: this issue does NOT affect Dart Editor as it triggers explicit reloads itself on text editor pane content changes.
It would be super awesome if we could get this looked at for 1.8. :)

This issue has been moved to dart-lang/pub#1177.


CORE-17013 Adding repartition handling to MessageBusConsumer

Context:
The MultiSourceEventMediatorImpl is calling poll() on the MessageBusConsumer, processing the polled records, and then calling syncCommitOffsets(). If a rebalance occurs while we're protesting the polled records, we'll see errors when trying to commit offsets to any partitions revoked in the rebalance.
Fix:
Added a CordaConsumerRebalanceListener to the MessageBusConsumer which tracks any partitions that have been revoked. In SyncCommitOffsets() we now only commit offsets for those partitions which have not previously been revoked.
To-do:
Update tests

I'm not sure this is necessary because the rebalance is only triggered when poll is called and the callback happens in the same thread as the one that called poll. See https://kafka.apache.org/24/javadoc/index.html?org/apache/kafka/clients/consumer/ConsumerRebalanceListener.html. That says that onPartitionsRevoked will only be called when poll is called and is guaranteed to be called before onPartitionsAssigned in the consumer the partition has been assigned to. That means our offsets are already correct when this is invoked and we won't attempt to commit the offset on the next loop anyway (consumer.assignment won't give us it). I think the same is true for onPartitionLost - by the time this is invoked, we'll have already committed our most up-to-date offset position for the lost partition.
I think this becomes relevant when we're not committing offset positions on every poll loop - then we'll want to ensure that we commit whatever offsets we have in the onPartitionsRevoked callback, and don't do it in the onPartitionsLost callback (as those partitions may be assigned to another consumer).

Chatted some more about this offline. If it is the case that partitions can't be revoked until we next call poll(), then there's no issue here and I can descope.


IE11 doesn't suggest to save password.

Using the LoginForm plugin, IE11 never seems to suggest to save the password, while it does do this for other websites. And using the LoginForm, other browser do suggest to save the password. Does anyone know why this is?

For IE10, I found this info.
Because the widget submit the form via JS and not a standard form submit, it looks like they recommend that you call this function to save form details

@tieniber Did you manage to get this to work at all?
In my case the submit event won't get triggered even though I'm sure it gets added to the right form.

Could you check if this possible fixed version will work? It's a bit of a long shot. I have looked into it and come up with a possible fix. Love to hear your feedback. This version does remember my password in Firefox, in Chrome it's less stable, but that might be the test-project I'm working in. IE I haven't tested yet

Tested in IE, it asks for the password as well

Fixed in 3.4.0, will be updated in the AppStore today


Adds first version of the enter-data-helper

Feedback welcome.
Instructions on how to run are given here:
https://github.com/cryptoeng/pqdb/tree/enter-data/tools/enter-data-helper

I've encountered some issues while using the enter-data-helper:

I can change the name of the scheme/flavor etc. after the creation of the form. Is this intentional?
I can't save the scheme form, the button is greyed-out.
Somehow the flavor->type property is not saved.
Can't save parameter sets (Getting "Error while saving file" pop-up). Same with implementations and benchmarks.
Tooltips are great, but a little too small.

I can change the name of the scheme/flavor etc. after the creation of the form. Is this intentional?

Yes, the name is initially set to filename but should be editable.

I can't save the scheme form, the button is greyed-out.

This should only happen, if the current form data does not satisfy the schema.

Somehow the flavor->type property is not saved.

Will look into it.

Can't save parameter sets (Getting "Error while saving file" pop-up). Same with implementations and benchmarks.

Will look into it.

Tooltips are great, but a little too small.

This is a material design issue. See https://github.com/angular/components/issues/3927.
I can try fiddling with the css.

No 3 and 4 should be fixed.

I can't save the scheme form, the button is greyed-out.

This should only happen, if the current form data does not satisfy the schema.

Statefulness
So, apparently this is because of the Stateful-box. I suppose the boolean value is unset if you create a new scheme. So in order to make the Save-button available, you have to check and uncheck it once, if you have a non-stateful scheme. Thereafter, everything works fine.
Maybe a drop-down menu for the statefulness is a better option? Because the box also needs a required property-messsage. And an empty checkbox with a star next to it seems kind of weird.

Year
Also, is it possible to add a required property-message to the year (maybe just the year of the paper?).

Authors
The Save-button becomes already available after clicking the + for the Authors, without entering an author name.

Empty Strings
I can delete once entered required properties that are strings and then save the form. So I can save for example a scheme without a name. The validation tool also doesn't complain.

No 3 and 4 should be fixed.

Thanks, are fixed. Also, tooltips look much better!

Statefulness

I will set the statefulness to false by default. This should fix it for now.

Year

This has to be changed in the schema.

Authors

This has to be changed in the schema. Right now empty strings are allowed and there is no min items restriction on the authors array.

Empty Strings

Also has to be changed in the schema. #14 is related.

Thanks for the clarifications.


[FLINK-31860] FlinkDeployments never finalize when namespace is deleted

What is the purpose of the change
This patch is to tackle the corner case where cleanup of CustomResource is constantly failing due to event publish failure, and therefore cause the cleanup hanging forever.
Operator attempts to publish events when reconcile changes or cleaning up for a CustomResource. This patch allows the reconcile & clean up logic to proceed, if and only if the event publishing fails as a result of 403 forbidden, which happens when the namespace is being deleted (in terminating state). k8s rejects events / resource creation in a terminating namespace.
In this way, at-least-once events delivery is still guaranteed in other cases. Event consumers need to account for the "namespace deleted" scenario, which all resources within are implicitly deleted.
Brief change log

Fix event publish blocking reconcile & cleanup upon 403

Verifying this change

This change added tests and can be verified as follows:

Added additional scenario in EventUtilsTest and expect it to succeed

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changes to the CustomResourceDescriptors: no
Core observer or reconciler logic that is regularly executed: yes

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

Thanks @gyfora for quick turnaround !
The commit has been updated with style fix. This patch is validated via minikube setup.


Diff Editors are not closed when running Git: Close All Diff Editors

Testing #143619

open some git diff editors
focus a regular editor
run Git: Close All Diff Editors
🐛  the diff editors do not close

https://user-images.githubusercontent.com/5047891/155348884-5cb01dae-4b03-4e42-8a07-63991918cca5.mp4

Proposed API changed, forgot to update the git extensions consumptions of this API

Thank you @lramos15!

I still see the diff editors remain open.

The first build that contains all the necessary fixes is:
Version: 1.65.0-insider
Commit: 8440b8f47231147823ba9696913d642e5f2d9d58
Date: 2022-02-25T05:18:40.990Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 21.3.0

This worked for me today.

I added a new ipynb file and opened it from the SCM viewlet. The diff isn't using the diff editor, but I'm wondering whether that tab should also close when running the command?

@rzhao271 That's a bug I pushed a fix. Thanks!


druid-lookups-cached-single extension not present in 0.9.2-rc1

Seems like the new  druid-lookups-cached-single extension is not bundled in the tarball found here.

Looks like its missing near https://github.com/druid-io/druid/blob/druid-0.9.2-rc1/distribution/pom.xml#L91

:+1:


chore(action): once a week

Applied mkpr on .github/workflows/update_readme_api.yml
sed s/cron:.*/cron: 31 14 * * 6/

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 96.319%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
131

Relevant Lines:
134

💛  - Coveralls


Add check self.limit , enhance to paginate control (Pagination determine...

... by scraping data properties)

Hey thanks for this, do you mind adding a test?

np. sure,

Now the project have testing integration using Travis. Can you merge master and update the PR? :smile:


[WIP] Update Getting started - Running locally

I have updated the title from The hard way to "Running locally". I think it's more appropriate here.
I will make more updates to this page.
Fixes #755

 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.

Thank you very much for your contribution!
You are welcome to join Wechaty Contributor Program
1. Join Wechaty Organization

You've invited Souvik Biswas to Wechaty! They'll be receiving an email shortly. They can also visit https://github.com/wechaty to accept the invitation.

I have invited you to join our Wechaty GitHub Organization, please accept it by following the above message.
2. Update Your Wechaty Contributor Profile

Please open Contributor Hall of Fame and add yourself to the end of the list, so that other contributors will know you better!
Please add yourself to our Website Contributors by creating a PR and refer to this PR link as well.

3. Join The Contributor Only WeChat Room
We also have a WeChat room for contributors only which can discuss Wechaty at a deeper level, you are welcome to join and if you are interested.
Please add @lijiarui wechat: ruirui_0914 and send her this pr link. She will invite you into Wechaty Contributor Room
Cheers!


Unable to open camera

Whenever I open the app, a toast message shows at the bottom that says: "Unable to open camera, provide permission to access the camera".
The pwa successfully accessed the camera before, but somehow its permissions got revoked.
How do you give permissions to a particular progressive web app?

@JaimeFerBec Can you pls post the which device and browser you are using??

Device: Google Nexus 4 Build/LMY48T
OS: Android 5.1.1
Web browser: Google Chrome 54.0.2840.85

This is weird: I just accessed the site's configuration on Chrome by clicking on the (i)nfo icon that appears if you first click the vertical three dots icon in the top-right corner of the browser, and it says the site has permission to access the camera.

@JaimeFerBec Weird issue. It is supposed to work. Since you are using latest chrome browser. I will take a look into it. Thanks for reporting 👍

I opened the progressive web app again this morning, and it prompted me for camera permission again. After I gave permission for it to use the camera, I have used it several times during this morning, an the failure has not come up again.
The reason why it asked me for permission again remains unknown, though. Yesterday I tried cleaning Chrome's cache and also deleting all the data related to qrscan.in the browser had stored. The only different thing I did was turning the phone off last night. I guess that cleaned something up, making it possible por the PWA to ask for camera permission again.

Cool!!. Thanks for letting us know.


Create $tmp dir if it doesn't exist

I was encountering an error with $tmp folder not existing when running the action using test_results_path
This makes sure the $tmp path exists.

Awesome, thanks!

Awesome, thanks!


Is this compatible with webpack 2?

I cant get { test: /\.js$/, loader: "babel-loader!lodash-loader" } to work,
Module not found: Error: Can't resolve 'babel-loader!lodash-loader' in ...

Hi @davidfurlong,
yes it is compatible with webpack 2. Is this a error at runtime or at compile time? How are your lodash imports look like?

@code-chris thanks for the quick response - its a compile time error. I've since shuffled around my config to get things to work without this library.. My lodash imports in my codebase? they looked like
import _ from 'lodash';
``
but I've since moved to manually importing `import _pick from 'lodash/pick';`

Do you create the resolve alias?
resolve: {
    alias: createLodashAliases()
}

Is there a alias for "lodash" as whole library too? Can you post your package.json?

I tried to do this, but it's unclear how this is supposed to work with
existing aliases. I destructured it in the alias object as so `alias: {
handlebars: ... , ...createLodashAliases()}
On 9 Jun 2017 10:12 am, "Christian Kotzbauer"<EMAIL_ADDRESS>wrote:
Do you create the resolve alias?
resolve: {
alias: createLodashAliases()
}
Is there a alias for "lodash" as whole library too? Can you post your
package.json?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/code-chris/lodash-loader/issues/6#issuecomment-307325552,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAlhcFlruhCohL6QL006Anzu8k2ZEUTnks5sCP50gaJpZM4Nz4LG
.

Extend the object with lodash or underscore:
alias: {
    _.extend({ ...existing... }, createLodashAliases())
}

Es6 destructing supports this without an external library using
destructured syntax or object.assign
On 9 Jun 2017 1:42 pm, "Christian Kotzbauer"<EMAIL_ADDRESS>wrote:

Extend the object with lodash or underscore:
alias: {
_.extend({ ...existing... }, createLodashAliases())
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/code-chris/lodash-loader/issues/6#issuecomment-307367110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAlhcEM4r6WBt6JkCwmCKZZaD9A7mWQEks5sCS-YgaJpZM4Nz4LG
.

Closing for now


Fix #2177: Move "OK" button to bottom right of various dialogs

Description
Fixes #2177
What changes did you make and why?
Changed "OK" button to the "positive" button so it is on the bottom right hand of the AlertDialog.
Tests performed
Tested 2.9.0-debug-pr-2206~fbbd025b0 on Galaxy Nexus (emulator) with API level 28.
Screenshots showing what changed

Nearby
Achievements
Upload title
Upload description

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@fb3136a). Click here to learn what that means.
The diff coverage is 0%.

@@           Coverage Diff            @@
##             master   #2206   +/-   ##
========================================
  Coverage          ?   5.87%
========================================
  Files             ?     231
  Lines             ?   11587
  Branches          ?    1078
========================================
  Hits              ?     681
  Misses            ?   10849
  Partials          ?      57

Impacted Files
Coverage Δ

...nrw/commons/achievements/AchievementsActivity.java
0% <0%> (ø)

...r/free/nrw/commons/contributions/MainActivity.java
0% <0%> (ø)

...ava/fr/free/nrw/commons/upload/UploadActivity.java
0% <0%> (ø)

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 fb3136a...fbbd025. Read the comment docs.

Thanks @domdomegg !


Update README.md

Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce
Put an x in the boxes that apply

[ ] Bug (non-breaking change which fixes an issue)
[ ] Feature (non-breaking change which adds functionality)
[ ] Breaking Change (fix or feature which changes existing functionality)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is a reminder of what we are going to look for before merging your code.

[ ] I have read the CONTRIBUTING guide
[ ] Lint and unit tests pass with my changes
[ ] I have added tests that prove my fix is effective/works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes are merged and published in downstream modules

Further comments
If this is a large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
Reviewers: @michael-ciniawsky, @ertrzyiks

:warning: Pull Request - Issues :warning:

Commit: b3cbf8f8cef0db46223e7bda031e20c1a3bb0935
Commits must be in the following format: %{type}(%{scope}): %{description}

This message was auto-generated by https://gitcop.com

Coverage remained the same at 100.0% when pulling b3cbf8f8cef0db46223e7bda031e20c1a3bb0935 on hyb628:patch-2 into b5795cc898f16ce630ac7209c78ce2cf247e5299 on michael-ciniawsky:master.


how can I use ollama?

how can I connect to ollama?
I try to use url as in documentaion http://localhost:11434/api/chat but this is not working

As the document states,

Use "http://localhost:11434/v1/chat/completions" as URL and leave auth empty

The URL should be http://localhost:11434/v1/chat/completions, not http://localhost:11434/api/chat


Docs.MS Release Updates for azure-core-xml

Update docs metadata and targeting for release of azure-core-xml

Docs Build status updates of commit 9f17bea:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/preview/core-xml-readme.md
:warning:Warning
View (azure-node-preview)
Details

ci-configs/packages-preview.json
:white_check_mark:Succeeded

docs-ref-services/preview/core-xml-readme.md

Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


How can I create a class with its own timer

I need a one class , have a timer. in class method can start, stop timer.
#include <DueTimer.h>

void RGBmatrixPanel::begin(void) {
   Timer3.attachInterrupt(updateDisplay);
   Timer3.start(250);
}
void RGBmatrixPanel::updateDisplay() {
    if(something doing){
          Timer3.stop();
    }
}

But i get error on arduinodue
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp: In member function 'void RGBmatrixPanel::begin()':
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:86:41: error: no matching function for call to 'DueTimer::attachInterrupt(<unresolved overloaded function type>)'
     Timer3.attachInterrupt(updateDisplay);
                                         ^
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:86:41: note: candidate is:
In file included from E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.h:26:0,
                 from E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:3:
E:\kutuphane\belgelerim\Arduino\libraries\DueTimer-master/DueTimer.h:84:12: note: DueTimer& DueTimer::attachInterrupt(void (*)())
  DueTimer& attachInterrupt(void (*isr)());

how to use in a class duetimer library?

Hi Sevtek,
Due to the lack of the C++ version used in Arduino Due, you can only attach
callbacks and pass as parameter functions that do not require the scope of
object instances, example: You can pass along a pointer to a static class
function, but cannot pass a method (a function bound to the instance).
That being said, your way out of this problem is to either convert your
"class" to static methods (and just be a better organization), or in case
you need multiple instances, create a global mapping table (an array of
mappings) that convert the instance ID (some value that starts with 0 in
the first instance of your class and gets stored inside it, and goes up
every time you instantiate it). Store itself in the mapping table in that
index position, and once the callback is fired, you try to redirect the
call to the proper class. This is not that easy to do, but is feasible if
needed.
Hope it helps!
Em sáb., 17 de out. de 2020 às 19:12, sevketk<EMAIL_ADDRESS>escreveu:

I need a one class , have a timer. in class method can start, stop timer.
#include <DueTimer.h>
void RGBmatrixPanel::begin(void) {
Timer3.attachInterrupt(updateDisplay);
Timer3.start(250);
}
void RGBmatrixPanel::updateDisplay() {
if(something doing){
Timer3.stop();
}
}
But i get error on arduinodue
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp: In member function 'void RGBmatrixPanel::begin()':
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:86:41: error: no matching function for call to 'DueTimer::attachInterrupt()'
Timer3.attachInterrupt(updateDisplay);
^
E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:86:41: note: candidate is:
In file included from E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.h:26:0,
from E:\kutuphane\belgelerim\Arduino\libraries\RGB-matrix-Panel-master\RGBmatrixPanel.cpp:3:
E:\kutuphane\belgelerim\Arduino\libraries\DueTimer-master/DueTimer.h:84:12: note: DueTimer& DueTimer::attachInterrupt(void (*)())
DueTimer& attachInterrupt(void (*isr)());
how to use in a class duetimer library?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ivanseidel/DueTimer/issues/76, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXVLLYZAREPHTLHHJUT52TSLIJF5ANCNFSM4SUUOFUQ
.


Jquery call & initialization order

I have jquery loaded just before </body>. This conflicts with jquery call which is caused by field in the middle of the page.
Is there a way of handling that? Perhaps it's Django issue?

Howdy, I know it is often recommended to load jQuery at the bottom of the page before </body>, but in my experience, this has frequently created problems. I always load it in <head> - can you give that a try?

I get the same error and would prefer not to change the order of query loading. I do load jquery at the end of the body with deferring to speed up page load.
Wouldn't it be helpful to just load Tempus Dominus once the document is ready and jquery is initialized?


Use crypto new API

The old API is deprecated in OTP 22 and going to be removed in OTP 24

Fixed in #154!


code archery_game #3286

Title and Issue number

archery_game
Close #3286

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

@TusharKesarwani pls check it


Unable to share folders under Parallels

Box is based on 10.11.5 (El Capitan) (I followed https://spin.atomicobject.com/2015/11/17/vagrant-osx/ to the letter)
Tried using nfs, as well as the default
Vagrant messages seem to indicate the folders were mounted successfully...

    ==> default: Mounting shared folders...
    default: /vagrant => /Users/darrenw/Projects/####/#####
    default: /var/cache/apt/archives => /Users/darrenw/Projects/###/####/cache/apt/archives

The following interesting log entries are in /var/log/system.log:
com.apple.xpc.launchd[1] (com.parallels.vm.prl_fsd): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

...however, the process did start up by the time I logged in...
local:~ vagrant$ ps -ef | grep prl
    0    79     1   0  9:04PM ??         0:00.07 /Library/Parallels Guest Tools/prltoolsd
    0   181     1   0  9:04PM ??         0:00.06 /Library/Parallels Guest Tools/prl_fsd /Volumes/SharedFolders --share

If I open the GUI and try sharing a folder, it appears to work but, again, nothing actually gets shared. This might mean it's a Parallels issue, so I'll try installing directly (without osx-vm-templates) to see if that makes a difference.

Sharing worked fine a regular Parallels/OSX guest. The problem is that when the VM is created, the 'Isolate Mac from virtual machine' option is turned on. Turning this off immediately exposes the shared folders.
Can this option be turned off when packer creates the image?

Closing as this was fixed in #66.


Join with dependent subquery?

Question:
Is it possible to do a dynamic join with a dependent sub-query?  I'm trying to do the equivalent of this MySQL SQL statement (would be outer cross apply on SQL Server) where I want to join only to a single value on another table where there may be multiple rows that match by certain filter and order criteria:
SELECT * FROM ABC `A`
LEFT OUTER JOIN CONSIGNMENT_TRACKING `AB`
ON `AB`.`SQL_RFA` = (SELECT `SQL_RFA` FROM CONSIGNMENT_TRACKING `ABA` FORCE INDEX(INDEX_01) WHERE( `ABA`.`TRKJOB$$`= `A`.`TRKJOB$$`) ORDER BY ABA.`MILESTONE$$` LIMIT 1)
GROUP BY A.`TRKREF$$`

I thought something like this might work (different tables to above):
a = a.Join(dyn1, "new ( JobID as f1, \"EVENT1\" as f2 )", "new ( JobID as f1, EventID as f2 )", $"new ( {outer}, Max(inner.SQL_RFA) as e{pass}rfa)");
a = a.Join(dyn1, $"e{pass}rfa", "SQL_RFA", $"new ( {outer}, inner as e{pass})");

But it doesn't like the Max(inner.SQL_RFA)

If possible, rebuild your question into a unit-test which can be included in the tests.

That would be difficult as I don't know how to do it.  I'll try again though, this is perhaps a simpler example linq query (that works) that I want to do, but can it be done using the join extension using the string parameters?
IQueryable a = from zz in dyn2
join yy in dyn on dyn.Where(xx => xx.JobID == zz.JobID && xx.EventID == "EVENT2").Max(xy => xy.SQL_RFA) equals yy.SQL_RFA
select new { zz, yy };

I've downloaded you source and managed to write an example in the code similar to your join test.  Here it is:
using System.Collections.Generic;
using System.Linq.Dynamic.Core.ConsoleTestApp.net452.Entities;
namespace System.Linq.Dynamic.Core.ConsoleTestApp.net452
{
class Program
{
static void Main(string[] args)
{
Person magnus = new Person() { id=1, name = "a" };
Person terry = new Person { id=2, name = "b" };
        Pet barley = new Pet { id = 1, name = "1p1", personid = 1 };
        Pet boots = new Pet { id = 2, name = "1p2", personid = 1  };
        Pet whiskers = new Pet { id = 3, name = "2p1", personid = 2 };

        var people = new List<Person> { magnus, terry };
        var pets = new List<Pet> { barley, boots, whiskers };

        //Act
        var realQuery = people.AsQueryable().Join(
            pets,
            person =>
            pets.Where(x => x.personid == person.id).Max(x => x.id),
            pet => pet.id,
            (person, pet) => new { OwnerName = person.name, Pet = pet.name });

        var realResult = realQuery.ToArray();

        var dynamicQuery = people.AsQueryable().Join(
           pets,
           "???",
           "id",
           "new(outer.name as OwnerName, inner.name as Pet)");

        var dynamicResult = dynamicQuery.ToDynamicArray<DynamicClass>();

    }
}

internal class Pet
{
    public int id { get; set; }
    public int personid { get; set; }
    public string name { get; set; }
}

internal class Person
{
    public int id { get; set; }
    public string name { get; set; }

}

}

It's not possible to use external sub-query in a dynamic query.


Added sample rust actix server

Hey @idagelic , I messed up trying to rebase to sign off all the commits. The PR got Closed Accidentally. I am really sorry for this. Please help.

@programmersoham It's okay, you can reopen it. You may also do a signoff on the last commit only (steps above), and I will squash them, no worries.

I am not able to reopen this.

Repening

@programmersoham Ah, I see, you force pushed the changes. You will need to create a separate PR identical to the way it was before, just call the two mentioned commands to complete the signoff


core-to-plc: big reorganization

This reorganizes core-to-plc so there are more, smaller files. I've
wanted to do this for a while, but unfortunately there are some big
recursive cycles. I've just bitten the bullet and added .hs-boot files
for these.
Github doesn't deal well with this kind of change, probably best to just review the final state.

Could we avoid them by combining just Type.hs and Expr.hs?

That's exactly what I'm trying to avoid, since those are the biggest files.

That's exactly what I'm trying to avoid, since those are the biggest files.

I do understand that, but the question is whether it is worth having boot files.

Seems to work fine so far :man_shrugging:

What problems do they cause?


doc: add faq

@weixuefeng please add the English version as well
This is the official repo, any accepted commits will be deployed, please do not use unfinished phrases like TBD.
We do not accept incomplete commits.

I have read the CLA Document and I hereby sign the CLA


feat(server): remove socket reconnect support

This feature has been trouble and there are cases it cannot work.
Any socket disconnect during a test can lose data. The server will disconnect
if the client does not reply. Combined it makes any long running or large
test error prone.  Better to bail and restart the test.
Fixes #3652

:white_check_mark: Build karma 2928 completed (commit https://github.com/karma-runner/karma/commit/801e167977 by @johnjbarton)

:white_check_mark: Build karma 2979 completed (commit https://github.com/karma-runner/karma/commit/3139506d62 by @johnjbarton)

:white_check_mark: Build karma 2980 completed (commit https://github.com/karma-runner/karma/commit/e9b1057bed by @johnjbarton)


Allow quick import of the Tokyo stage from Shadow Gens DLC

This has been added into the newest version of the add-on


The parallel download did not success.

Dear Author,
I followed your demo, then the error happened in the poster image parallel download process.
I found the images data indeed downloaded from IMDB to my laptop, but it seems didn't save into disk（destination path).
Thus, all cases in the filename were sent in to the error exception. the finally output Information as following:
-------output info------
Downloading...
Download in parallel mode took 5135 seconds.
Success: 0
Errors: 39254
all the operation was done in my MacPro notebook. I was sure that the download process was proceeding by watching the activity monitor for the network traffic flow.  However, those poster images just not saved in detination path.
No other process error information, just have the output error results.
I have detail read the download_parallel function in utils.py.  still have no idea how to fix the problem.
Thanks for your help and instruction.
-Raymond Lu

Hello,
Could you please try these two tests to help narrow down where the problem you are encountering may be?
1- Copy and paste any movie poster url in your browser. Do you see an image?
2- Try the download_sequential function instead of download_parallel. Do you see any images being downloaded in the destination folder?

Hello,
Answer the results of the two tests you mentioned, the result are as following:

Test 1 is successful. I can copy the url  in my browser and I can see the image showed on the screen.
Test 2 is fail. As I changed the download_parallel as download_sequential function call, I cannot see any images showed in the destination folder.

Dear Author,
Finally I fixed the issue that I met. The problem was on certificate issue.
When I run another python program, the result showed the info like "certificate verify failed: unable to get local issuer certificate". Then I found the solution on stackoverflow. The key step for fixing the certificate problem on Mac OS is  that open the search command box, then type "install Certificates.command" and it will properly install everything i need in system.

Thanks a lot.


Suggestion: --noImplicitBooleanConversion

Typescript forbids automatic conversion to boolean in function calls, which makes sense, since there's actually no coercion in the generated typescript code when passing a non-boolean argument to a function taking a boolean. The Javascript function would receive a non-boolean.
However, it allows coercion to boolean in 'if', 'while', 'for' and 'operator !'
This can lead to hard-to-find bugs, such as:

//Prints number and/or array, when given
function f(n?: number, a?: number[]) {
  if(n) console.log(n); //there is a bug here, should be if(n!==undefined)
  if(a) console.log(a); //this is okay
}

f(1); //prints 1
f(1, []); //prints 1 and []
f(undefined, [0]); //prints [0]
f(0, [0]); //only prints [0]!!!

Proposal
Reduce the likelihood of such bugs, by adding a flag --noImplicitBooleanConversion that will make the following expressions illegal:
if(a) {}
if(!a) {}

when a has the type 'number | undefined' or 'string | undefined' (and possibly more involving 'null' or combinations of 'number' and 'string')
I also suggest that in this case, the coercion can be forced with:
if!(a) {}
if!(!a) {}

which are then legal.
Coercion to boolean of variables where the type is just 'number' or 'string' would always remain legal.
Further discussion
The above only addresses one very common pattern, and doesn't address the expression !a outside of the if context. Finding a suitable "override" syntax might be challenging (the equivalent of if! for the above case).
It also doesn't address expressions like 'a && f(a)', 'a || 5' or '(a ? a : 5)', which might also produce unexpected results when a is of type 'number | undefined'. These could be explored.

I realized that the override syntax might not be necessary, since even if !a was forbidden when a is of type 'number|undefined', '!a!' would be legal, and a suitable override. 'if(a!)' would also be legal, and generate identical code to 'if(a)'.
The only case where it might produce an unexpected result is in expressions like 'a! && 5', which has type 'number', while 'a && 5' has type 'number | undefined'

This is too idiomatic to ban everywhere, even under a flag (flags are not free and need to justify their existence). The TSLint rule mentioned above is the right place to disallow idiomatic JS expressions.


Publish 04/08/2022, 10:30 AM

Docs Build status updates of commit ca72fd4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Revoke-SPOTenantServicePrincipalPermission.md
:white_check_mark:Succeeded
View (sharepoint-ps)

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


AI-Enhanced Azure ML Workspace Creation: Error Prediction, Region Suggestions, and Input Validation

In this update, the script for creating Azure Machine Learning (AML) workspaces has been significantly enhanced by integrating several AI-driven features to improve functionality, usability, and error management. Below are the key enhancements:

AI-Driven Error Prediction:

Introduced an AI-based error prediction mechanism using AIErrorPredictor. This feature anticipates potential issues during the execution of the workspace creation process, allowing the script to proceed with caution and log warnings when a possible error is detected. This proactive approach helps in preventing failures before they occur.

Dynamic Azure Region Suggestion:

Added a feature to dynamically suggest the optimal Azure region using AzureRegionRecommender. If the user does not provide a region, the script automatically recommends the best region based on factors such as latency, cost, and availability. This ensures that the user is always using the most efficient and cost-effective region for their Azure resources.

Automated Input Validation:

Implemented an AI-driven input validation system within the validate_input function. This system ensures that all critical parameters like subscription_id, resource_group, workspace_name, and workspace_region are correctly provided. If any inputs are missing or incorrect, the script provides intelligent suggestions or raises appropriate errors, guiding the user towards providing valid inputs.

Enhanced Logging Mechanism:

Integrated a comprehensive logging mechanism to record the script's execution process. Logs include informational messages, warnings, and errors, making it easier to trace the steps of the workspace creation and diagnose issues if they arise. The log file aml_creation.log serves as a valuable resource for understanding the execution flow and any potential problems encountered.

Improved User Guidance:

Updated the help and error messages to provide more detailed guidance on how to use the script, including the correct format for command-line arguments. This makes the script more user-friendly, especially for those who may not be familiar with all the required parameters.

These enhancements make the script more robust, user-friendly, and intelligent, providing users with a smoother experience when creating Azure Machine Learning workspaces. The AI-driven features not only prevent common errors but also optimize the selection of Azure resources, ensuring efficiency and cost-effectiveness.

In this pull request, I've introduced several AI-driven enhancements to the Azure ML Workspace creation script, making it more intelligent, user-friendly, and robust:

AI-Driven Error Prediction:

Implemented a mechanism to predict potential errors during workspace creation, allowing the script to log warnings and proceed cautiously to prevent execution failures.

Dynamic Azure Region Suggestions:

Added a feature to recommend the optimal Azure region based on factors like latency, cost, and availability, ensuring efficient resource allocation when the region is not provided by the user.

Automated Input Validation:

Integrated AI-powered validation to ensure all critical parameters (subscription ID, resource group, workspace name, and region) are correctly provided. The script offers suggestions or raises errors if inputs are missing or incorrect.

Enhanced Logging:

Introduced a comprehensive logging system to track the execution process, including informational messages, warnings, and errors, making it easier to diagnose and resolve issues.

These updates aim to streamline the workspace creation process, reduce the likelihood of errors, and optimize resource usage, ultimately improving the overall user experience.


Show all translations with translatePartialLoader

Hi, I have the following issue.
I would like to create a dynamic translatable navigation.
This navigation will be used in combination with NG-REPEAT.
For example:
"MENU": {
      "HOME": {
        "TITLE": "Home",
        "ICON": "assets/img/home-icon-en.png"
      },
      "ABOUT": {
        "TITLE": "About",
        "ICON": "assets/img/about-icon-en.png"
      },
      "CONTACT": {
        "TITLE": "Contact",
        "ICON": "assets/img/contact-icon-en.png"
      }
    }

How can I iterate this menu with NG-REPEAT?
PS: I have found some solutions, but they were not applicable for my case. ( nested structure )
Example:
$translatePartialLoader.addPart('menu');
$translate.refresh();

$translate('MENU.HOME.TITLE')
        .then(function (translation) {
            console.log(translation);
});

What I need is to log the "MENU" and be able to see the fully nested structure and be able to use this in my HTML ng-repeat.
What I would like to have, but this is not the right way.
$translate('MENU')
        .then(function (translation) {
            console.log(translation);
// See the full nested menu structure
});

Ideally I would like to have the following:
$translatePartialLoader.getPart('menu');
// This would show me the full nested structure of the menu

Alternatively if this is not possible, is it possible to show all translations loaded with the partial loader? ( in a controller )
I have been struggling with this for almost 4-5 days, any help would be much appreciated and sincere thanks!

Hi @onepunchagency  Sorry for the delay, we have missed this issue.
angular-translate is not made for providing configuration or structure logic. Said this, it will provide texts for texts (maybe interpolated, maybe in another language). It will not provide information like "how many texts should be displayed".
The focus of this library is translating only.


Add -Zrustdoc-scrape-examples to default Cargo args

This PR adds -Zrustdoc-scrape-examples to the set of default arguments passed to cargo doc. This (finally!) enables the scrape-examples feature to be enabled by default for all readers of docs.rs.
After extensive work within Cargo (rust-lang/cargo#10343, rust-lang/cargo#10533, rust-lang/cargo#10549, rust-lang/cargo#11430, rust-lang/cargo#11450), this option is now robust enough to avoid breaking any existing build. Any crate that documented before will still document with -Zrustdoc-scrape-examples. The core issue that was addressed is to not require dev-dependencies if they weren't already needed.
I have verified that -Zrustdoc-scrape-examples does not introduce breakage in a recent Crater run: https://crater-reports.s3.amazonaws.com/scrape-examples/index.html
(Note there are regressions, but they appear to be spurious and not related to the scrape-examples feature.)
This PR is currently a draft because I am waiting on rust-lang/cargo#11450 to reach nightly in a few days. But I wanted to put it up before then to provide room for discussion if someone is not comfortable enabling this flag.
cc @jyn514 @GuillaumeGomez @jsha

Now that https://github.com/rust-lang/rust/commit/fb0ca599cd9f2f1c972e38e1fb2a472d18aad629 has landed in nightly, this PR is ready for review.

@willcrichton can you clarify for me where we ended up with the defaults? Is this bit still true? https://github.com/rust-lang/cargo/pull/10343#issuecomment-1027311704

Packages have fine-grained control at the per-target level what's used as candidates for examples and what isn't (with the default being only the lib targets and examples)

If so, that seems good to me :) thank you for all your hard work pushing this feature through!

@jyn514 yes that's right. The longer explanation currently lives on the Unstable Features page in the Cargo book: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#scrape-examples
And thank you! Really excited to see this feature make it out in the world.

@jyn514 so this can be approved & merged?

Yup!


Expose ModuleExport to avoid repeated string lookups

From a Zulip discussion a few months ago (https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime/topic/Custom.20hashers) it was mentioned that custom hashers like rustc-hash should be ok for most usage of hashmaps/indexmaps because they don't need DoS protection.
exports showed up in a recent profile (e.g., when _get_export does instance.module().exports.get_full(name)?;) so I thought it might be good to start by adding rustc-hash here. Because this is used in get_export, this optimization should be useful generally.

Thanks for this! This is a bit of an interesting question to me though because Wasmtime is in a different position than rustc and is exposed to untrusted modules and this could in theory be an issue for embedders. That being said I think it'd still be good to solve this. One idea would be to expose the underlying indices that Wasmtime uses. For example instead of looking up via name on instances each time you could look up the name on a Module once, get an index, and then use that index with instantiations of all future modules. That should in theory be even faster than a rustc-hash based approach.
Would a scheme like that work for your use case? If so would you be interested in adapting this PR to such an approach?

Yeah that makes sense for embedders. In my case I'm both the producer and consumer of the module (e.g., I'm writing the export names during encoding, and then immediately looking them up from the instance) so DoS isn't important. It would be useful to override the hasher throughout most types in cases like this but I can appreciate not wanting to complicate type signatures too.
That scheme sounds ok, but I'm not sure how to expose the index we'd need without mapping bidirectionally between EntityIndex and usize somewhere. For example, exports is IndexMap<String, EntityIndex> so it doesn't seem like we have a great way to expose either EntityIndex or usize (the actual index for the map):

If we expose EntityIndex (the value for the index map) on the original wasmtime::Module, then we don't have a clear way to convert back from an EntityIndex to the usize needed to look it up on the instance later on. e.g., the EntityIndex to usize mapping isn't preserved during translate_payload so we can't recover it afterwards except by iterating all exports to find it.

If we expose usize, then we'd still have to do some kind of name to usize lookup after we have the instance, but that would have the same overhead as the original get_export name lookup.

Ideally I could get the EntityIndex from the original wasmtime::Module or query the usize by name from InstancePre somehow (so I could share it across all instances created from it).

Oh the raw value here that get_export is interested in is the ExportIndex. There's no need to recomputed the usize index of the name in the export map. For that either returning ExportIndex raw or perhaps a wrapper around it should be sufficient (along with a new method like get_export that takes this as an argument)

If we add a function like this to wasmtime::Module:
pub fn get_export_index(&self, name: &str) -> Option<EntityIndex> {
    let module = self.compiled_module().module();
    module.exports.get(name).copied()
}

Then on Instance we might want want something like:
pub fn get_export_by_index(&self, mut store: impl AsContextMut, index: EntityIndex) -> Option<Extern> {
    // ... same boilerplate as `get_export` ...
    let item = unsafe { Extern::from_wasmtime_export(instance.get_export_by_index(index), store) };
    let data = &mut store[self.0];
    data.exports[i] = Some(item.clone());
    Some(item)
}

The part I'm not sure about is setting the lazily populated data.exports[i] with the export before we return it. We don't seem to be able to determine the index (i) from ExportIndex without searching the exports by value, because the exports indexmap is keyed by the export name, not its EntityIndex.

Aha I apologize, I had forgotten about that. That was why the usize you were talking about is important!
How about this:
impl Module {
    fn get_export(&self, name: &str) -> Option<ModuleExport>;
}

#[derive(Copy, Clone)]
pub struct ModuleExport {
    module: CompiledModuleId, // make sure this isn't mixed up with different modules
    entity: EntityIndex, // raw index into the wasm module
    export_name_index: usize, // the index within the `IndexMap`
}

impl Instance {
    pub fn get_module_export(&self, ..., export: &ModuleExport) -> Option<Export>;
}

(please bikeshed the names)
Basically package everything up in a new struct in the wasmtime crate

I suppose stepping back a little bit for a moment, one thing I would say is that in Wasmtime we've tried to basically avoid hash maps wherever we can. Where possible we use indexes into lists rather than strings to entries. While hash maps are necessary in the API somewhere it's often possible to lift the hash lookups outside of loops. Or at least that's what's worked out for us so far, not that we can't make the hash maps faster here just that we'd prefer to explore other avenues first (and also because even a faster hash map is probably much slower than a simple bounds check)

Thanks for clarifying! I updated the PR to match the scheme you described.
Is the purpose of including CompiledModuleId on ModuleExport just out of convenience for user-code, or should we compare these somewhere during get_module_export?

Thank you for the feedback! I updated the PR. I moved the lookup into the shared _get_export function and pass the entity and index to that instead (checking the module ID is only necessary for the new function).


[BUG] Possible failure to push down pruned read schema to ORC reader

When reading an ORC file with numerous rows (N > 100M), one might expect to see failures in reading a STRING column via spark-rapids if the total number of characters across the column exceeds the range of cudf::size_type. This is a known defect, and expected:
SELECT * FROM my_large_table

Caused by: ai.rapids.cudf.CudfException: CUDF failure at: /home/jenkins/agent/workspace/jenkins-spark-rapids-jni_nightly-pre_release-164-cuda11/thirdparty/cudf/cpp/include/cudf/strings/detail/strings_children.cuh:82: Size of output exceeds the column size limit
  at ai.rapids.cudf.ColumnView.stringConcatenationListElementsSepCol(Native Method)
  at ai.rapids.cudf.ColumnView.stringConcatenateListElements(ColumnView.java:2900)
  at ai.rapids.cudf.ColumnView.stringConcatenateListElements(ColumnView.java:2867)
  at com.nvidia.spark.rapids.GpuCast$.$anonfun$concatenateStringArrayElements$11(GpuCast.scala:720)

However, it is unexpected that the operation would fail if the output projection excludes the STRINGS column, like:
SELECT my_array FROM my_large_table; -- my_strings column is not selected.

It would appear that the STRINGS column is being deserialized, even though it's not in the output projection.

cc @razajafri. Just FYI, since this is one of the items we're testing in #8666.

Sorry, no. This is not a problem. Or rather, not the problem I thought this was.
This is not the result of reading the STRINGS column, in hindsight. This is the result of calling .show, which converts the table into a LIST<STRING>, which then fails the size check.


Read options.default from anothe class?

Maybe that's a dumb question, but firs of all take a look at this minimal working example:
#!/usr/bin/env ruby

module Minimal
    require 'rubygems'
    require 'commander/import'
    class CLI
        include Commander::Methods
        def self.parse(args)
            program :name, 'MWE'
            program :version, '0.0.1'
            program :description, 'Minimal Working Example'

            command :hello do |c|
                c.syntax = 'mwe hello'
                c.description =  'Say hello to everyone'
                c.option '--spanish', 'Say Hello in Spanish'
                c.option '--french', 'Say Hello in French'
                c.action do |args, options|
                    say options.default
                    options.default
                end
            end
        end
    end
end

module Minimal
    class Working
        def self.example(args)
            option = CLI.parse args
            if option.name = 'hello'
                #=> How can I check if spanish of french option is true?
            end
        end
    end
end

Minimal::Working.example ARGV

Well actually I'm trying to acces to options.default value outside the Commander space object, but I failed. What am I missing?
Thanks in advance

That was easy:
module Minimal

    class Working
        def self.example(args)
            option = CLI.parse args
            if option.name = 'hello'
                if option.spanish
                    warn "Hola"
                end
                if option.french
                    warn "Bonjour"
                end
            end
            #puts "from CLI: #{options.name}"
        end
    end
end

Sorry, there was a mistake in the last post:
if option.name = 'hello' must be if option.name == 'hello'
I played a little bit with the code to find a workaround and I found this that works I expected (but sure there must be another fine way to do it!)
#!/usr/bin/env ruby
# https://github.com/commander-rb/commander/issues/60
module Minimal
    require 'rubygems'
    require 'commander/import'
    class CLI
        include Commander::Methods
        def self.parse(args)
            program :name, 'MWE'
            program :version, '0.0.1'
            program :description, 'Minimal Working Example'

            command :hello do |c|
                c.syntax = 'mwe hello'
                c.description =  'Say hello to everyone'
                c.option '--spanish', 'Say Hello in Spanish'
                c.option '--french', 'Say Hello in French'
                c.action do |args, options|
                    #say options.default
                    return c.name, options
                end
            end
            run!
        end
    end
end

module Minimal
    class Working
        def self.example(args)
            command, option = CLI.parse args
            if command == 'hello'
                if option.spanish
                    warn "Hola"
                end
                if option.french
                    warn "Bonjour"
                end
            end
        end
    end
end

Minimal::Working.example ARGV

Another question: If you comment the "run!" method the options are not processed (and they are not passed on the return). Uncommented it you get twice output if you asking for --version option
> ruby mwe.rb --version
MWE 0.0.1
MWE 0.0.1


Almost 6 months since the last commit in 3.0.0-pre1

Isn't time to release?

There are a number of bugs in that release, namely #681 and #755. I'd also like to resolve #753.


Address discrepancy in @Subscribe-ing to Events and to Rejections

At the moment there are two designated ways to subscribe to events:

mark a method of Projection with @Subscribe and register the repository of this projection in a respective bounded context.
extend an EventSubscriber, mark its method with @Subscribe and register the subscriber instance in the EventBus of a bounded context of interest.

However, as to Rejections only one option of subscribing is available, that is extending RejectionSubscriber with a following registration of its instance in the RejectionBus. And it is NOT possible to subscribe to a Rejection in Projections, so using the same @Subscribe on a projection method with a rejection message in its signature  will lead to a failure.
Such a behavior is definitely confusing and should be addressed. The options are:

Introduce a special annotation for rejections instead of using the same @Subscribe (such as @Catch — as rejections may be thought of as of domain "exceptions" of command handling).

Implement a mechanism that allows to subscribe to rejections in projections. This option looks a bit better as we keep things simpler. But from the development perspective it requires rethinking of the way Projection instances are fed with data.
Now we just play events that are conveniently stored in an EventStore, but with rejections such an easy option is not available. We'll need to save an order in which different events and rejections occur down the timeline. To satisfy such a requirement we'll have to store events and rejections together, effectively turning rejections into a special kind of Event.

There is definitely something to think about.

@alexander-yevsyukov FYI.

Rejections will become rejection events in scope of #733. The subscribers of any kind will be able to subscribe to them.


Simple tests and continuous integration

As promised, some tests and a basic Github actions workflow to run them.

Here's the Github action run on my fork of the repo: https://github.com/takluyver/clusterfutures/actions/runs/1059829726

Fantastic!! Thanks for whipping this up; it looks just perfect. :tada: :sparkles: :fish:


'Sync' button

I think it would be nice to add a 'Sync now' button - it's nice to be sure that it's synced
This button would dispatch the 'SYNC' action

In which view exactly "syncing" should take place?

DrivesView.vue. SYNC action is defined in src/store/actions.js:73

I meant where the button is supposed to be? :P

I started working on it - I assumed it should be somewhere in the driver's view, preferably around the header or status components so that the button is rendered both in a ride form and the rides list. At the same time I started to re-arrange the grid using bootstrap because right now it all holds on absolute values, which can make a mess, if you consider any other view than mobile.

I remember we decided to skip this


Reconfiguring apiserver with kubeadm

I wish to reconfigure apiserver by adding some extraArgs
The official doc says, I have to edit configMap kubeadm-config:
To change a particular option in the ClusterConfiguration you can edit the ConfigMap with this command:
kubectl edit cm -n kube-system kubeadm-config

https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure/#updating-the-clusterconfiguration
But then I have to apply these changes manually with
kubeadm init phase control-plane <component-name> --config <config-file>

Docs doesn't implicitly says that I have to fetch the configMap kubeadm-config manually. It confuses at first glance, because kubeadm cannot fetch this cm by itself in a away it does during kubeadm upgrade node phase kubelet-config.

/language en
/retitle “Reconfiguring a kubeadm cluster” unclear on need to rerun kubeadm
/sig cluster-lifecycle

i assume the problem is with this part of the doc:

The  contents must match the updated ClusterConfiguration

where to match the contents the user must update the cm, fetch the config key and construct a config file from it.
we could add an example cmd line for users to help them with that. prs welcome.
alternatively they could have just kept their original config on disk and modify it. this is a sane thing to do.


Issue: lang attribute is not work after 1.37 RC1

:lang: zh_tw  is work when generate PDF or docbook at 1.37 RC1
:lang: zh_tw  is not work when generate PDF or docbook at 1.37 RC2 ~ RC5
I think  src/main/resources/public/js/asciidoctor-docbook.js may be have something wrong
lang function or attribute is wrong

@simplelife201008 You need to change lang option in Settings page. But we will fix this problem.

@simplelife201008 Can you try RC6 ? https://github.com/asciidocfx/AsciidocFX#how-to-install-asciidocfx


Make ease intervals more intuitive

Right now they're set via how many total intervals you want or something. That might not be ideal and we should probably set them in terms that don't vary wildly per timer duration (e.g. number of ms/frames/s between each ease update).

Could make a separate interval unit enum and then add halvings or splits or something nicer sounding along with ms, s, etc.