Add support for TRUNCATE as DDL statement

Description
The following PR adds support to execute TRUNCATE statements as DDL statement.
I'm not 100% sure these are all the changes required, but seems to work 😄
Tests

Tested in local cluster and it's working as expected.
Also, modified parse_test.go but failing locally. Want to check what happens in CI.

One final nit: I think it will be a good idea to add TruncateStr to this list: https://github.com/youtube/vitess/blob/master/go/vt/schemamanager/tablet_executor.go#L156.
I found this by reviewing all uses of DDL.Action.

LGTM
Can you resolve the merge conflicts?


Rename JSDivResult

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (001cf7a) to head (eff0e3d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #452   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          107       107
  Lines         2724      2724
  Branches       163       163
=========================================
  Hits          2724      2724

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


page 2 play video on  landscape, back to page 1  layout problem!

info
when page 2  play video on  landscape，page 2 orientation  was landscape but page 1 orientation was portrait。
and page 2 paly video change to portrait，page 2 log  orientation ====> portrait but page 1 no any log。
page1
Widget build(BuildContext context) {
    TWLog("_DetailPageState build...");
    return OrientationBuilder(
      builder: (BuildContext context, Orientation orientation) {
        final txt =
            orientation == Orientation.portrait ? 'portrait' : 'landscape';
        TWLog('page 1 orientation ====> $txt');
        return ConstrainedBox(
          constraints: const BoxConstraints.expand(),
          child: Stack(
            children: [
              _buildBody(context),
              Overlay(
                initialEntries: [
                  OverlayEntry(
                    builder: (context) {
                      _logic.detailState.overlayContext = context;
                      return const SizedBox();
                    },
                  ),
                ],
              ),
            ],
          ),
        );
      },
    );
  }

...

page 2
Widget _buildContent() {
    return OrientationBuilder(
        builder: (BuildContext context, Orientation orientation) {
      final txt =
          orientation == Orientation.portrait ? 'portrait' : 'landscape';
      TWLog('page 2 orientation ====> $txt');
      return Scaffold(
        appBar: AppBar(
          backgroundColor: TWColors.tw000000,
          centerTitle: true,
          elevation: 0,
          title: GetBuilder<DetailPhotoLogic>(
            id: DetailPhotoLogicActionId.updatePageSelectedIndex,
            builder: (controller) {
              return Text(
                controller.fetchTitle(),
                style: TextStyle(
                  fontSize: 18.sp,
                  fontWeight: FontWeight.normal,
                  color: TWColors.twFFFFFF,
                ),
              );
            },
          ),
          actions: [
            TWTextButton(
              padding: EdgeInsets.only(right: 10.w),
              title: "全部圖片",
              fontSize: 14.w,
              textColor: TWColors.twFFFFFF,
              onTap: () {
                logic.jumpAllPhotoPage();
              },
            ),
          ],
          leading: const TWBackButton(),
        ),
        body: DetailPhotoContentView(),
      );
    });
  }

debug log
when when page 2 to play video on  `landscape log:
flutter: 💚 DEBUG page2.dart(37) - page 2 orientation ====> landscape
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> portrait
flutter: 💚 DEBUG page2.dart(37) - page 2 orientation ====> portrait

gif pic

debug log
gif all operation
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> landscape
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> portrait
flutter: 💚 DEBUG page2.dart(37) - page 2 orientation ====> portrait
flutter: 💚 DEBUG page2.dart(37) - page 2 orientation ====> landscape
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> portrait
flutter: 💚 DEBUG page2.dart(37) - page 2 orientation ====> portrait
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> landscape
flutter: 💚 DEBUG page1.dart(97) - page 1 orientation ====> portrait

other
version
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale
zh-Hans-CN)
• Flutter version 3.0.5 at /Users/zhengzeqin/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (5 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
📢  application mixed native

i try hand to rebuild page 1，  it was effective when page2 play video from landscape to  portrait，but this is not a good solution。

Hi @zeqinjie, Thanks for filing the issue. Your code sample uses a lot of unknown variables, Please share a minimal and complete reproducible code sample which we can directly run with minimal or no code changes.


Typo "Teams Room device"→"Teams Rooms device"

https://docs.microsoft.com/en-us/microsoftteams/rooms/managed-meeting-rooms-portal
https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/blob/live/Teams/rooms/managed-meeting-rooms-portal.md
#PingMSFTDocs

Docs Build status updates of commit 6d62883:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/rooms/managed-meeting-rooms-portal.md
:white_check_mark:Succeeded

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

@donnah007 PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Hi,
Although I still have an email account, I’m no longer allowed to do any work per email below. Sorry!
From: Serdar Soysal<EMAIL_ADDRESS>Sent: Friday, August 5, 2022 3:05 PM
To: Donna Hill (Steyer Associates Inc<EMAIL_ADDRESS>End of contract
Importance: High
Hi Donna,
Unfortunately, due to another reorg the MTRP group have lost all of their funding, and they have to cancel the PO for your contract. This is most unfortunate, but it is what it is. Please kindly stop all work.
It's been great working with you Donna, and hopefully our paths will cross again.
Serdar Soysal
He, him, his
Principal Content Publishing Manager
E+D Magic
@.***
understaNDing @ Microsofthttps://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Faka.ms%2Funderstanding&data=05|01|v-donnahill%40microsoft.com|16e994c6190646bd70a908da772e8029|72f988bf86f141af91ab2d7cd011db47|1|0|637953338919001037|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=kd46tvJsjNf813FxFlTzdhVHsqdWYD6%2B6y6ZpREJn%2Bs%3D&reserved=0
Empowering neurodiverse people and their allies
From: Manuela Scanu @.>
Sent: Monday, August 15, 2022 12:07 PM
To: MicrosoftDocs/OfficeDocs-SkypeForBusiness @.>
Cc: Donna Hill (Steyer Associates Inc) @.>; Assign @.>
Subject: Re: [MicrosoftDocs/OfficeDocs-SkypeForBusiness] Typo "Teams Room device"→"Teams Rooms device" (PR #9199)
Assigned #9199https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-SkypeForBusiness%2Fpull%2F9199&data=05|01|v-donnahill%40microsoft.com|3934f287752443ab02fb08da7ef15e0e|72f988bf86f141af91ab2d7cd011db47|1|0|637961872374139008|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=kaYO5Q7m%2Fh4plN3PCXoOJMuIrusmH4tlZWyT1n3RCy8%3D&reserved=0 to @donnah007https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdonnah007&data=05|01|v-donnahill%40microsoft.com|3934f287752443ab02fb08da7ef15e0e|72f988bf86f141af91ab2d7cd011db47|1|0|637961872374139008|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=auvftIIpt86VLKe1paKT8tQw5%2Fh03EznBkNW7dSiDlc%3D&reserved=0.

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-SkypeForBusiness%2Fpull%2F9199%23event-7190886056&data=05|01|v-donnahill%40microsoft.com|3934f287752443ab02fb08da7ef15e0e|72f988bf86f141af91ab2d7cd011db47|1|0|637961872374139008|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=yLMftdfq92P4jCP88LgJFEn3zONgtjKFenijx2HnyQs%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWCD432YAZUJXWMXJOVXSGLVZKIOFANCNFSM56NJN5PA&data=05|01|v-donnahill%40microsoft.com|3934f287752443ab02fb08da7ef15e0e|72f988bf86f141af91ab2d7cd011db47|1|0|637961872374139008|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=TDws7Dn7YXJb%2FVWpLMM27RDpuZffruwvUWBM%2BZOIe8I%3D&reserved=0.
You are receiving this because you were assigned.Message ID<EMAIL_ADDRESS>

@dstrome
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Learn Build status updates of commit 094c4da:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/rooms/managed-meeting-rooms-portal.md
:white_check_mark:Succeeded

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 learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit a984f9f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Teams/rooms/managed-meeting-rooms-portal.md
:white_check_mark:Succeeded

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 learn.microsoft.com contributor guidesPost your question in the Learn support channel


Option to add a delay before drag begins

Awesome job. Really love it. Thanx.  Once you begin dragging each of those items, droppable blocks will appear at the bottom. The problems is, since the moment you tap a block, the dragging begins, and it prevents scrolling. Would be cool if we could delay the event handlers just long enough for touch scroll to work. What do you think?

Related to #118

Thank you for this feature request. +1 this issue if you would like to see this feature added to Draggabilly.

+1

+1

+1
It's a pretty standard interaction on touch devices for 'long-touch' or 'touch & hold' to allow interaction on objects without interfering with scroll. I'd really like to have this capability. Any update on it being included? Thanks!

+1
I know it is an old post but did you add this new feature?

Any update? It would be amazing to have the delay feature. Thanks :)


Improve Documentation + Examples

Unless I am missing something it looks like setting up the project as described in the docs does not warrant a working function. By working I mean that there's now way of invoking the function without specifying the routes in the now.json file. If that is the case it could be helpful to others to provide details to setup a complete and working lambda function.
In addition, most rust repos have example folder. Maybe adding one here could be helpful as well. It would include everything needed for a working rust lambda function.
Just an idea!

Hello and thanks for the issue! These docs were mostly copied 1:1 from the old official @now/rust docs on ZEIT's builder pages. I'd be more than happy to have PRs submitted if you'd like to add examples or clean up the docs. I can't promise that I'll have time soon to do them myself :)

Cool I'd love to help. Although would you be willing to point me to a working example? I am actually having some trouble setting this up. Specifically with routing. If I use the Cargo.toml as an entrypoint is this how routing would look:
{
	"version": 2,
	"routes": [{ "src": "/test", "dest": "/src/main.rs" }],
	"builds": [{ "src": "Cargo.toml", "use": "now-rust" }]
}

Ah, I see now. now-rust depends on the name key in your Cargo.toml file for creating the lambdas. So if your crate's name was test, you shouldn't need a route at all since now would automatically create the lambda at /test.
That being said, here are two examples for my now-rust projects:
now-importer
now.json
You can see here that one Cargo.toml file is being targeted as a src. The name of that crate is now_importer_lambda, which is what is targeted in the routes definition. It follows the same directory structure as the Cargo.toml file.
GistCard
now.json
You can see here again that there are two Cargo.toml sources, and those crates are named gistcard_img and gistcard_html.
Hope that makes sense!

Ohh I see! So if I didn't have any sub folder crates would this be correct for the routing? If I wanted a route to be named different than the crate?
[package]
name = "test-api"
version = "0.1.0"
edition = "2018"

[dependencies]
http = "0.1"
now_lambda = "*"

[[bin]]
name = "test-api"
path = "src/main.rs"

{
	"version": 2,
	"routes": [{ "src": "/api", "dest": "test-api" }],
	"builds": [{ "src": "Cargo.toml", "use": "now-rust" }]
}

Thanks for your help!

I believe that's correct! There's also the alternative *.rs entrypoint, which doesn't require as many work-arounds, but requires you to omit main and some other things. I'm also not sure you need the [[bin]] entry there

Mmm right although if I don't go the Cargo.toml route then I get the issues described in #3 but I think that's still being worked on I believe.
The above config yields a 404 unfortunately.

@taylorjdawson do you have a repo for the whole project? What does the source tab output look like on the now deployment page?

@mike-engel  yeah! Here's the test repo I created. I haven't actually tried outside of now dev could that be the issue?

Ahhh yes! That is probably the issue here. It will 404 until you hit the Cargo.toml route, at which point it will compile and should be available. Another thing #1 needs to support.

Did it work for you locally using now dev?  Once I do curl -X GET http://localhost:3000/Cargo.toml it builds but the 2nd time I still get a 404.

Closing as stale, I updated the README to make things more clear - and there's examples in the fixtures test folder, too!


WIP. Testing. Orbit LakeFormation Tag based access control feature

Description:
Orbit LakeFormation Tag based access control feature
Issue Reference URL
https://github.com/awslabs/aws-eks-data-maker/issues/

Do not change content below. Mark applicable check boxes only.
Thank you for submitting a contribution to AWS Orbit Workbench.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a ISSUE associated with this PR?
[ ] Does your PR title start with ISSUE-XXXX where XXXX is the issue number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[ ] Has your PR been rebased against the latest commit within the target branch (typically 'main')?
[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] Have you ensured that the full suite of tests is executed?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under Apache License 2.0?

After merging with main and deploying to local account, while deploying env, build failed with "Timeout whlle waiting for ingress istio-ingress.istio-system.
Pulling latest changes and retrying.


Issue when downlading Stuck at 2-3%

Expected Behavior
Modual should downaload
Current Behavior
Modual will get stuck when downlaoding
Steps to Reproduce
Be Running F-VTT Version 10 - Build 290
Download current modual from install on Foundry
Watch as it dosnt downlad
Context
No response
Version
1.1.14
Foundry VTT Version
Version 10 - Build 290
Operating System
Access computer = Win 11 / Server = Lynix
Browser / App
Chrome, Other
Game System
D&D 5e
Relevant Modules
No response

Probably some temporary network problem. I just checked and it installs for me without issue. Is there an error message in the console (F12 -> Console tab) when you try to install it?


[REFACTOR] Bumped various dependencies versions

1) Description
Various dependencies have been updated by Dependabot.
A missing utility have been re-added :
Lint-staged is used to run linting actions as pre-commits hooks without needing much configuration, it surely had been removed by accident.
2) Checks

[X] My code follows the contributing guidelines
[X] I have read the code of conduct
[X] I have performed a self-review of my code
[X] My changes generate no new warnings
[X] New and existing unit tests pass locally with my changes

Yes, the low coverage is expected, do not worry.


Reuse cursor(sample) for all agents per trial

Since there is no need to use a different precalculated sample for each agent the cursor can be updated in the environment after each trial.

Hi @sroecker. I think what you're addressing is the fact that when we do choose to pre-cache random samples in the bandit, we should draw from the same iteration sample pool for every agent instead of each agent getting a unique set of samples per iteration. That's a valid point, though introducing coupling between the environment and the bandit, especially to an ostensibly private property, isn't the best solution.
Thanks for the input!


Fix genEntropy function from Pos.Util.Mnemonic

Description
Adding along the way a few golden tests that would have identified the issue :|
Linked issue
-
Type of change

[x] 🐞 Bug fix (non-breaking change which fixes an issue)
[ ] 🛠 New feature (non-breaking change which adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
[x] 🔨 New or improved tests for existing code
[ ] ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

[x] I have read the style guide document, and my code follows the code style of this project.
[x] If my code deals with exceptions, it follows the guidelines.
[x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.

Testing checklist

[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

QA Steps

Screenshots (if available)

@rvl @boothead This fixes the runtime issue with Mnemonic generation, my bad :|
I don't get the issue with stylish-haskell did we recently changed something there? I thought it was still under discussion...


feat/eslint

Please review before merging.

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


SSO implemented using identiyitserver4 doesn't work with asp.net core mvc client when deployed to IIS,But Locally works great

I am trying to achieve single sign_on functionality in .net core, i have an identityserver4 app running on http://identity.colaraz.net/ and two .net core clients app running locally http://localhost:5001 and http://localhost:5003. If i tries to go on any client first user is redirect to identityserver4 login page and after successful login user is redirected back to client,now suppose i am loged into localhost:5001 and tries to go to http://localhost:5003 on same browser window then i should be able to go on http://localhost:5003 because i have already logged in on identityserver4 from http://localhost:5001 but i can't do that. But all this works if identityserver4 app is running locally.
asp.net

Hi,
Is it giving you any errors?

thanks maxswann ,  it does not gives any error , but as i have mentioned above when i am already loged in on one application and tries to go to other it should allow me to go to other , but it does not allow rather it redirects me to login page again

if i run identityserver4 app on localhost then it gives desired result

Just to check as to make sure I understand the issue.
When you login to the first app you are successfully logged in, but when you go the second app you are ask to sign in again.
Would you be able to check if the user is authenticated still, on the second attempt? this sounds like either a cookie issue but could be an authentication issue.

yes you  understood my issue, but what do you mean by second attempt

after the second attempt the user is still authenticated in firstapp

I mean do they get asked to give there username and password on the second attempt and if so Are they logged in? or does this just automatically redirect?

on the first app if i refresh the page the user is still logged in , but on second app if i refresh i am redirected to login

look maxtsw, consider i am logged in in app1 now i tries to go to app2 on same browser's second window and i am redirected to login page and asked to give credentials  if i fills in and after logging in successfully i am redireted to app2, but logged out from app1

Hi mwaleedr, I am asking on identity server itself are you still logged in?

no on identiy server no

http://identity.colaraz.net/Account/Login

user name<EMAIL_ADDRESS>  password: LG8P2n5v

When I goto coloraz.net and click sign in this redirects me to http://www.colaraz.net/Home/Login.aspx could this me why?

sorry there is no client app deployed except identity server, and the above url is of identityserver

you can go to this page http://identity.colaraz.net/Grants and  try to log in

This works and I can login, could i ask is there another app i can access, using this identity server?

there is no other app deployed
but i can send you code of those apps

i mean i have two local client apps that i can send you

by the way maxstw i am wondering that if i logs in from app1 and goes to identityserver app to insure that i am logged in there or not, then i see i am not logged in there

That would help yes

maxstw you can download project zip files from here https://github.com/mwaleedr/IdnetityClientApps

would be thankful to you if you can help me

I feel as though there is something on your identity server that is not properly authenticating the user, It may be as though they are not being saved properly. It may have worked locally as localhost may have been sharing the same claims

if the user is not authenticated then how it is redirected or successfully logging into any of the client app. i thing the issue is due to cookies but not sure what is the real issue

did  you run those apps?

I did yes, have you change how your cookies work anywhere in your app this is usually done within startup.cs?

no i have not changed cookies, i see when identity server is running on localhost then identity server share these two cookies  ("idsrv", "idsrv.session") with the client apps, but on deployment it does not share these cookies. Can you suggest me how two share these cookies when client apps and identity server are running on different domains

this is startup of my identity server
using System.Reflection;
using Autofac;
using Autofac.Extensions.DependencyInjection;
using Identity.API.Infrastructure.Extensions;
using Identity.API.Infrastructure.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Identity.API
{
public class Startup
{
public Startup(IWebHostEnvironment environment, IConfiguration configuration)
{
Environment = environment;
Configuration = configuration;
}
    public IWebHostEnvironment Environment { get; }
    public IConfiguration Configuration { get; }

    public ILifetimeScope AutofacContainer { get; private set; }

    public void ConfigureServices(IServiceCollection services)
    {
        services.AddControllersWithViews();

        // configures IIS out-of-proc settings (see https://github.com/aspnet/AspNetCore/issues/14882)
        services.Configure<IISOptions>(iis =>
        {
            iis.AuthenticationDisplayName = "Windows";
            iis.AutomaticAuthentication = false;
        });

        // configures IIS in-proc settings
        services.Configure<IISServerOptions>(iis =>
        {
            iis.AuthenticationDisplayName = "Windows";
            iis.AutomaticAuthentication = false;
        });

        services.AddCustomOptions(Configuration);

        var connectionString = Configuration.GetConnectionString("DefaultConnection");
        var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name;

        var builder = services.AddIdentityServer(options =>
            {
                options.Events.RaiseErrorEvents = true;
                options.Events.RaiseInformationEvents = true;
                options.Events.RaiseFailureEvents = true;
                options.Events.RaiseSuccessEvents = true;
            })
            .AddRedirectUriValidator<RedirectUriValidator>()
            .AddCorsPolicyService<ColarazCorsPolicy>()
            .AddSigningCertificate(Configuration, Environment)
            .AddIdentityUserStore(Configuration)
            // this adds the config data from DB (clients, resources, CORS)
            .AddConfigurationStore(options =>
            {
                options.ConfigureDbContext = dbContextOptionsBuilder =>
                    dbContextOptionsBuilder.UseSqlite(connectionString,
                        sql => sql.MigrationsAssembly(migrationsAssembly));
            })
            // this adds the operational data from DB (codes, tokens, consents)
            .AddOperationalStore(options =>
            {
                options.ConfigureDbContext = dbContextOptionsBuilder =>
                    dbContextOptionsBuilder.UseSqlite(connectionString,
                        sql => sql.MigrationsAssembly(migrationsAssembly));

                // this enables automatic token cleanup. this is optional.
                options.EnableTokenCleanup = true;
            });
        services.AddLocalApiAuthentication();

    }

    public void ConfigureContainer(ContainerBuilder builder)
    {
        // Register your own things directly with Autofac, like:
        //builder.RegisterModule(new MyApplicationModule());
    }

    public void Configure(IApplicationBuilder app)
    {
        AutofacContainer = app.ApplicationServices.GetAutofacRoot();

        if (Environment.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
            app.UseDatabaseErrorPage();
        }

        app.UseStaticFiles();

        app.UseRouting();
        app.UseIdentityServer();
        app.UseAuthorization();
        app.UseEndpoints(endpoints => { endpoints.MapDefaultControllerRoute(); });
    }
}

}

hey max there is a good news and also some wonder i was using code flow before this,now  i used  implicit flow and try to do what i was doing already and get the desired result , mean logging in from one app also getting me logs into the second app but still i am not able to get those two cookies in my client apps.

Hi,
I am glad this was sorted, I was going to say that as a next step as everything else did appear in order. I am glad its working now.
I presume this can now be closed?


VulkanSDK directory will be created if it doesn't exist

Describe the issue
When running Setup.bat file for the first time, it will throw the following error -
FileNotFoundError: [Errno 2] No such file or directory

That's because since there's no directory named 'VulkanSDK' which exists in the 'vendor' folder, as well as there's no provision in the current Python scripts to handle this scenario.
PR impact
List of related issues/PRs this will solve:

Impact
Issue/PR

Issues this solves
None

Other PRs this solves
None

Proposed fix
Using os.makedirs() function, we check whether the file directory exists, and then create the directory if it is not present.
Additional context
Any changes or suggestions are welcome.

As of now your commit will create this directory in a directory named "Ghost."
It should be creating the VulkanSDK directory in the Hazel's vendor directory.

I am currently reworking the script a bit... I cannot get the download links to work as cherno defined them... The SDK seems to be an empty exe file. Even more, the links he uses are not even mentioned on the lunarg website their API.
For now I am using
VULKAN_SDK_INSTALLER_URL =f"https://sdk.lunarg.com/sdk/download/{HAZEL_VULKAN_VERSION}/windows/VulkanSDK-{HAZEL_VULKAN_VERSION}-Installer.exe"

and
VulkanSDKDebugLibsURL =f"https://sdk.lunarg.com/sdk/download/{HAZEL_VULKAN_VERSION}/windows/VulkanSDK-{HAZEL_VULKAN_VERSION}-DebugLibs.zip"

I am currently reworking the script a bit... I cannot get the download links to work as cherno defined them... The SDK seems to be an empty exe file. Even more, the links he uses are not even mentioned on the lunarg website their API.
For now I am using
VULKAN_SDK_INSTALLER_URL =f"https://sdk.lunarg.com/sdk/download/{HAZEL_VULKAN_VERSION}/windows/VulkanSDK-{HAZEL_VULKAN_VERSION}-Installer.exe"

and
VulkanSDKDebugLibsURL =f"https://sdk.lunarg.com/sdk/download/{HAZEL_VULKAN_VERSION}/windows/VulkanSDK-{HAZEL_VULKAN_VERSION}-DebugLibs.zip"

So should I replace with this?


Mismatched naming of COM property getters for consumption and implementation

When consuming a COM interface, the name of a property getter method is get_Foo. But when implementing a COM interface using the implement macro, the implementation of that same method has to be called simply Foo. Is this intentional?

Do you have an example? The renaming is intentional, but the discrepancy is not. I'll get that fixed up.
https://github.com/microsoft/windows-rs/blob/83e7d68b970db73918072fd2ac369b96dfb9316c/crates/reader/src/tables/method_def.rs#L37-L44

Yes. See IRawElementProviderSimple::get_ProviderOptions in UI Automation. The consumer-side projection is called get_ProviderOptions, but when I implement the interface, i have to call the function simply ProviderOptions.


chore: flatter exports, docs fixes and README header

What changes are proposed in this pull request?
Some small docs fixes. E.g. while docs.rs seems to render links fine when the reference is also wrapped backticks - [something]: ... - rust analyzer does not recognize this, and requires a "plain" name.
The architecture and roadmap document in the doc/ folder seemed grossly outdated and of little value, so I removed them.
Also wanted to propose some flair for the Readme :).
This PR affects the following public APIs
While there are no actual API changes, some structs can now be imported (IMO) more conveniently. Building out the datafusion integration, I found myself frequently having to write deep imports - e.g.
// before
use delta_kernel::engine::default::executor::tokio::TokioBackgroundExecutor;

// after
use delta_kernel::engine::default::TokioBackgroundExecutor;

How was this change tested?
current tests + rendering and inspecting docs with
cargo doc -p delta_kernel --all-features

interesting, docs build seems to fail now, while it did work locally... I'll see whats going on.


MixedRealityEditorSettings triggers AssetDatabase.Refresh() on play

Describe the bug
My project uses .dlls that live outside the unity project. When I update my code, copy it into unity and hit play, I have to wait 30 seconds for the Import dialogue to complete. This is because MixedRealityEditorSettings subscribes to playModeStateChanged event and triggers AssetDatabase.Refresh() when getting MixedRealityProjectPreferences.
To reproduce
Have a project with managed plugins like this unity doc explains and MRTK
Turn off 'auto refresh' in unity preferences
Make an update to the plugin code and copy it into the project.
Enter play mode
See 'Importing' dialogue popup and see automatically stop playmode
Expected behavior
Running unity with auto refresh off should not refresh unless I tell it to. Entering playmode should run my code without calling AssetDatabase.Refresh()
Screenshots

Your setup (please complete the following information)

Unity Version 2019.4.17
MRTK Version 2.5.3

Target platform (please complete the following information)

Oculus
WMR immersive
OpenVR

Additional context

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


Support Headless Services for Deployments as well

Please describe the Improvement and/or Feature Request

Support for K8s Headless services has been introduced with https://github.com/openservicemesh/osm/issues/3477
However the same kind of support would be helpful for K8s Deployments as well.
To avoid overloading the generated Envoy config and increase resource consumption (most likely it needs to be a Listener per backend Pod?), the feature should be made opt-in per K8s Service, probably leveraging an annotation.
Scope (please mark with X where applicable)

New Functionality          [x]
Install                    [ ]
SMI Traffic Access Policy  [ ]
SMI Traffic Specs Policy   [ ]
SMI Traffic Split Policy   [ ]
Permissive Traffic Policy  [ ]
Ingress                    [ ]
Egress                     [ ]
Envoy Control Plane        [ ]
CLI Tool                   [ ]
Metrics                    [ ]
Certificate Management     [ ]
Sidecar Injection          [ ]
Logging                    [ ]
Debugging                  [ ]
Tests                      [ ]
CI System                  [ ]
Demo                       [ ]
Project Release            [ ]

Possible use cases

There are some scenarios where an application requires custom routing of requests to downstream Pods, without relying on the load balancing offered by the Mesh (e.g. when using extra contextual information, and only leveraging the Mesh for mTLS and observability features).

@keithmattix FYI

Looks like it's been implemented by https://github.com/openservicemesh/osm/pull/5250

marking this closed by the above comment


Crash from bad super call in DiskCache

I'm evaluating BigGraphite (0.11.0 from pip) and have this repeating crash:
Traceback (most recent call last):
  File "biggraphite/venv/lib/python2.7/site-packages/twisted/internet/base.py", line 1261, in run
    self.mainLoop()
  File "biggraphite/venv/lib/python2.7/site-packages/twisted/internet/base.py", line 1270, in mainLoop
    self.runUntilCurrent()
  File "biggraphite/venv/lib/python2.7/site-packages/twisted/internet/base.py", line 896, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "biggraphite/venv/lib/python2.7/site-packages/twisted/internet/task.py", line 239, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "biggraphite/venv/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred
    result = f(*args, **kw)
  File "biggraphite/venv/lib/python2.7/site-packages/biggraphite/plugins/carbon.py", line 244, in _background
    for metric in prometheus_client.REGISTRY.collect():
  File "biggraphite/venv/lib/python2.7/site-packages/prometheus_client/core.py", line 97, in collect
    for metric in collector.collect():
  File "biggraphite/venv/lib/python2.7/site-packages/prometheus_client/core.py", line 599, in collect
    for suffix, labels, value in collector._samples():
  File "biggraphite/venv/lib/python2.7/site-packages/prometheus_client/core.py", line 563, in _samples
    for suffix, sample_labels, value in metric._samples():
  File "biggraphite/venv/lib/python2.7/site-packages/prometheus_client/core.py", line 758, in samples
    return (('', {}, float(f())), )
  File "biggraphite/venv/lib/python2.7/site-packages/biggraphite/metadata_cache.py", line 95, in <lambda>
    self._size.set_function(lambda: self.stats()['size'])
  File "biggraphite/venv/lib/python2.7/site-packages/biggraphite/metadata_cache.py", line 526, in stats
    ret = super(MemoryCache, self).stat()
exceptions.TypeError: super(type, obj): obj must be an instance or subtype of type

This occurs in both Python 2.7 and Python 3.6 with both Carbon 1.0.2 and Carbon master.
Looking at the source, I'm pretty sure that the word MemoryCache on line 526 should read DiskCache

Just fixed that in https://github.com/criteo/biggraphite/pull/334/commits/d082af99ac1dd9ff426ac6855632ea3ed9406d14
Current workaround would be to use the memory cache (to be honest, that's what we use in production)


Does FormViewController really need to extend UITableViewController?

This seems like a great library but it's currently pretty restrictive because FormViewController extends UITableViewController.
For example, I'd really like to add a 'Submit' button to my forms that's anchored to the bottom on the screen. I could do this if FormViewController was a normal UIViewController that just contained a tableView and implemented UITableViewDelegate etc. As it is, I don't think there's anyway to achieve this.
Please let me know if you know of a work around or would be interested in a pull requests that removes the dependence on UITableViewController.

@col You could maybe create a custom cell which contains your submit button and add it to the form? Just an idea.

It would be very good if could be just a protocol stub and that's it.


AttributeError: 'DataFrame' object has no attribute 'sketch'

Just pip install sketch, and import sketch fails with
File "/home/plagchk/.local/lib/python3.10/site-packages/pandas/core/generic.py", line 5902, in __getattr__
  return object.__getattribute__(self, name)

AttributeError: 'DataFrame' object has no attribute 'sketch'

I just tried this and it is still working for me.
This looks like the error is related to a failed install or import of sketch.
It might be the case that you have a local folder or package named sketch that is interfering and when you import sketch, you're getting the wrong thing?
Can you try
import sketch
print(dir(sketch))

I get from this
['Portfolio', 'SketchHelper', 'SketchPad', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'core', 'metrics', 'pandas_extension', 'references', 'sketches']

If you see something else, it may be due to the conflict of packages.

Thanks.
Just tried it on another machine and it works fine.
There must be something about my laptop that is causing this problem.


How to distinguish save and reset events?

Hello,
I'm a bit confused about this behavior. Save event is triggered by both "save" and "clear" buttons.
How to trigger the action only by clear button?

I also noticed that init event triggers save and change events too. Is this a bug?

To your first point, yeah that's by purpose. clear is kinda a save event and triggers save with null as color. It's easier to use it IMO. See #68 and #5 :)
To the second one, would be yeah. But at least in 73.0.3683.103 init get's only called during ahem, init 😅  Or what do you mean exactly with "init event triggers save and change events too"?

I'll close it of inactivity. Feel free to re-open a new one if the issue persists :)


Execute Shell doesn't work on Chrome or Firefox

using firefox 57.0.2 or Chrome Version 63.0.3239.84 (Build officiel) (64 bits)
the remote shell isn't showing up properly for any container. Please see the following screenshots :
On Firefox :

On Chrome :

I test it on Microsoft Edge 41.16299.15.0 it works.

Useful
Info

Versions
Rancher v1.6.12 Cattle: v0.183.30 UI: v1.6.30

Access
ldap admin

Orchestration
Cattle

Route
container.ports

Hi @hdep , thanks for your reporting.
I can not reproduce this issue on Mac and Windows 10.
What OS are you using? Is there any useful info in Chrome console log?

Hello,
I'm on windows 10 too.
it seems that my Chrome wasn't up-to-date so I updated to  Version 63.0.3239.108 (Build officiel) (64 bits) and now it works.
I still have the same issue with firefox.
In the console logs I only have :
Subscribe ping (projectId=1a29405, sockId=1)
ui-bbbfef6b68d1d7b48e4f9f261d4dfe49.js:97:14999
You did not pass the `focus` argument in `Terminal.prototype.open()`.
The `focus` argument now defaults to `true` but starting with xterm.js 3.0 it will default to `false`.
vendor-77489dadbb0709acf44882f0dde4b110.js:22:16391
Subscribe ping (projectId=1a29405, sockId=1)
ui-bbbfef6b68d1d7b48e4f9f261d4dfe49.js:97:14999

I'm not sure this help.

Thanks @hdep . PR has been submitted. This issue will be fixed in next release.

I'm having this same issue. But in all browsers. The installation is from scratch. It was working in version v1.6.12, but I decided to switch to Latest (1.6.13) and it was like this. No way to see logs or get into the shell.

Hi @MichelDiz ,  this issue happens in shell only. I guess it shows Disconnected in your case.  Can you provide the rancher/agent log when it happens, please?

No, I usually use Traefik, but this time I'm not using anything.
Actually, I do not even know what's going on anymore. After this behave I deleted the machine (VM) to engage new tests, the system started to behave (new one) strangely.
I deleted all and install a new Docker (Docker Tools) then install a version of Rancher (tried a few different) and he simply does not want to install the agent anymore. And the agent get stuck. I can't stop it. Just if I run these commands below.
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
I think I will have to format my computer because I have already done everything I can and what I understand about Computing and it does not solve. Not even the old "reboot".

Also before i was doing a schema where I put Rancher: Server on a virtual machine from my PC and the agent on a Google Cloud machine. But it did the same behave confirmed as below (this data below is from the test from now on a local machine VM) and simply did not appear the Host in the list.
I found it to be some problem with NoIP or even my router. However, I did all route, curl, and ping tests. Everything was handy.
In order for my machine to be visible to the Google cloud I simply made a "NoIP" scheme and used an address of them. I opened the ports (forwarding), everything as I always did and worked before. But it did not turn positive this time :/

docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher ranche
r/agent:v1.2.7 http://<IP_ADDRESS>:8080/v1/scripts/04AA20C7095A67787344:1483142400000:5a0rffbHSMJfEPS36hVOGnMNek
Unable to find image 'rancher/agent:v1.2.7' locally
v1.2.7: Pulling from rancher/agent
b3e1c725a85f: Already exists
6a710864a9fc: Already exists
d0ac3b234321: Already exists
87f567b5cf58: Already exists
063e24b217c4: Already exists
d0a3f58caef0: Already exists
16914729cfd3: Already exists
fb770dddb34d: Pull complete
0d8557fbdb4c: Pull complete
Digest: sha256:fcd7075d1aee2b532319846f70dc7ed0acfb0d12045cfc82ff995f282ef14631
Status: Downloaded newer image for rancher/agent:v1.2.7

INFO: Running Agent Registration Process, CATTLE_URL=http://<IP_ADDRESS>:8080/v1
INFO: Attempting to connect to: http://<IP_ADDRESS>:8080/v1
INFO: http://<IP_ADDRESS>:8080/v1 is accessible
INFO: Inspecting host capabilities
INFO: Boot2Docker: true
INFO: Host writable: false
INFO: Token: xxxxxxxx
INFO: Running registration
INFO: Printing Environment
INFO: ENV: CATTLE_ACCESS_KEY=7A628BBB687D3FDB7E35
INFO: ENV: CATTLE_HOME=/var/lib/cattle
INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken
INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_URL=http://<IP_ADDRESS>:8080/v1
INFO: ENV: DETECTED_CATTLE_AGENT_IP=<IP_ADDRESS>
INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.7
INFO: Launched Rancher Agent: 059df38e61c07d45f0d45cc345bc85947a4c9cad1ddfd38815aa37c9fce91a08


color.cpp issue

Hi, I have OpenCV 2.4.9 installed and I am able to compile the program but when I ran it
./bin/oic
I get the following error:
OpenCV Error: Assertion failed (sin == 3 || sun == 4) in cvtColor, file /home/deeplearning/opencv-2.4.9/modules/imgproc/src/color.cpp
Do you know what the problem could be?
Thanks in advice!

did u get the issue solved?

Check if your wecam is connected properly.


btf: kprobe btf id warnings on recent kernels

Been seeing a lot of warnings like this on 5.17:
time="2022-05-13T15:54:56Z" level=warning msg="invalid or old kprobe spec: failed to dump paramemter type by id: failed to dump btf id 1276"

I've attached the BTF file for my kernel here.
vmlinux.tar.gz

@willfindlay thanks! Can you also add your config?


yarn version is checked in the wrong way

Analyzer checks yarn's version using yarn --version while yarn expects yarn version.

Thanks @CsatariGergely for the report. However, are you sure? I'm getting:
$ yarn --version
1.3.2

$ yarn version
yarn version v1.3.2
warning You are using Node "7.10.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semve
r range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
error Couldn't find a package.json file in "C:\\Dev\\oss-review-toolkit"
info Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.

Interesting. Here are my outputs:
$ yarn --version Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
and
$ yarn version Hadoop 2.4.1 Subversion Unknown -r Unknown Compiled by mockbuild on 2016-10-28T04:46Z Compiled with protoc 2.6.1 From source with checksum e270dfd4b5d1fafed8b434caa19eb8 This command was run using /usr/lib/java/hadoop/hadoop-common.jar

Looks like you have the wrong yarn command in your PATH, namely https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/YARN.html instead of https://yarnpkg.com/.


*** URGENT *** Not working after update WhatsApp.

Hi,
Recently I updated WhatsApp.
When using "Export Chat" the export is a "zip" file format.
so this plugin not working.
*** Note: Previously ( before update WhatsApp ) export is a "txt" file format.***
version: 0.1.4
Any idea?
Thanks.
update:
FlutterShareReceiverActivity.java
if ("text/plain".equals(type))
in this section only allowed text files.
can possible, when receive file type is zip, extract and use the text file?

Hi!
Thanks for the issue report!
There is a new version that supports the new way for exporting chats in Android:
receive_whatsapp_chat: ^0.1.5


Adding migration support for Postgresql

I was trying your component in postgres, in order to alter columns you have to do it in separated commands and Yii2 doesn't offer support for this (it will be in 2.1) so I detect if it's postgres and do the right commands.
Also, there are no unsigned fields in postgres, that's why I had to remove it in the DB creation.

Thank you! Sorry for too long time standby, I missed that.


Add lightwave components for switches and lights

lightwaverf-home-assistant-platform
Integration of LightwaveRF switches and lights with Home Assistant (HASS) as a platfrom
It's very crude, but does work. It's been working for me for several years with the 1st generation of LightWave kit. I have not tested this with the newer (2nd gen) Lightwave products.
Caveat
This code may show your devices in the Home Assistant UI, but it may not be able to control the lights for you. The code speaks directly to your Lightwave WiFi Link. Obviously, if you don't have a WiFi Link, then this isn't going to work for you.
Installation
Adding the Lightwave Component to Home Assistant
The lightwave files needs to be placed in the installation directory of Home Assistant. For me the final directory looks like
/custom_components/light/lightwave.py
/custom_components/switch/lightwave.py
/custom_components/lightwave.py

There are instructions to follow on the instructions on the home-assistant website. If you need help, let me know.
Adding LightwaveRF to your configuration file
Now that the component is installed you will need to add the setup to you configuration file.
lightwave:
    host: ip_address

Where ip_address is the ip address of your LightwaveRF hub
To add Lightwave lights in the light section add:
light:
  - platform: lightwave
    devices:
      R1D1:
        name: Room one Device one
      R1D2:
        name: Room one Device two
      R8D3:
        name: Room eight Device three

To add Lightwave switches in the switch section add:
switch:
  - platform: lightwave
    no_registration: true
    devices:
      R1D1:
        name: Room one Device one
      R1D2:
        name: Room one Device two
      R8D3:
        name: Room eight Device three

Each device requires an id and a name. The id takes the form R#D# where R# is the room number
and D# is the device number.
The first use of a switch or light will try to register with the WiFi Link hub. If the hub has not been registered a message on your WiFi Link asking you to pair the device. You have 12 seconds to push the button on the WiFi Link to accept this. Once done, you should be able to control your lights via Home Asssistant.
This only needs to be done once only if the hub has not been registered.
Acknowledgement
Thanks to Chirag Desai for paving the way to getting this component done.

Hello @GeoffAtHome,
When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es).
The commits that are missing a linked GitHub account are the following:

381082041ce3d1ec6d8b61eac59b28c8376a8ed1 - This commit has something that looks like an email address (geoff-soord@softwareimaging.local). Maybe try linking that to GitHub?.

Unfortunately, we are unable to accept this pull request until this situation is corrected.
Here are your options:

If you had an email address set for the commit that simply wasn't linked to your GitHub account you can link that email now and it will retroactively apply to your commits. The simplest way to do this is to click the link to one of the above commits and look for a blue question mark in a blue circle in the top left. Hovering over that bubble will show you what email address you used. Clicking on that button will take you to your email address settings on GitHub. Just add the email address on that page and you're all set. GitHub has more information about this option in their help center.

If you didn't use an email address at all, it was an invalid email, or it's one you can't link to your GitHub, you will need to change the authorship information of the commit and your global Git settings so this doesn't happen again going forward. GitHub provides some great instructions on how to change your authorship information in their help center.

If you only made a single commit you should be able to rungit commit --amend --author="Author Name<EMAIL_ADDRESS>
(substituting Author Name and<EMAIL_ADDRESS>for your actual information) to set the authorship information.
If you made more than one commit and the commit with the missing authorship information is not the most recent one you have two options:

You can re-create all commits missing authorship information. This is going to be the easiest solution for developers that aren't extremely confident in their Git and command line skills.
You can use this script that GitHub provides to rewrite history. Please note: this should be used only if you are very confident in your abilities and understand its impacts.

Whichever method you choose, I will come by to re-check the pull request once you push the fixes to this branch.

We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community.
Thanks, I look forward to checking this PR again soon! :heart:

Hello @GeoffAtHome,
When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es).
The commits that are missing a linked GitHub account are the following:

381082041ce3d1ec6d8b61eac59b28c8376a8ed1 - This commit has something that looks like an email address (geoff-soord@softwareimaging.local). Maybe try linking that to GitHub?.

Unfortunately, we are unable to accept this pull request until this situation is corrected.
Here are your options:

If you had an email address set for the commit that simply wasn't linked to your GitHub account you can link that email now and it will retroactively apply to your commits. The simplest way to do this is to click the link to one of the above commits and look for a blue question mark in a blue circle in the top left. Hovering over that bubble will show you what email address you used. Clicking on that button will take you to your email address settings on GitHub. Just add the email address on that page and you're all set. GitHub has more information about this option in their help center.

If you didn't use an email address at all, it was an invalid email, or it's one you can't link to your GitHub, you will need to change the authorship information of the commit and your global Git settings so this doesn't happen again going forward. GitHub provides some great instructions on how to change your authorship information in their help center.

If you only made a single commit you should be able to rungit commit --amend --author="Author Name<EMAIL_ADDRESS>
(substituting Author Name and<EMAIL_ADDRESS>for your actual information) to set the authorship information.
If you made more than one commit and the commit with the missing authorship information is not the most recent one you have two options:

You can re-create all commits missing authorship information. This is going to be the easiest solution for developers that aren't extremely confident in their Git and command line skills.
You can use this script that GitHub provides to rewrite history. Please note: this should be used only if you are very confident in your abilities and understand its impacts.

Whichever method you choose, I will come by to re-check the pull request once you push the fixes to this branch.

We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community.
Thanks, I look forward to checking this PR again soon! :heart:

Hello @GeoffAtHome,
When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es).
The commits that are missing a linked GitHub account are the following:

381082041ce3d1ec6d8b61eac59b28c8376a8ed1 - This commit has something that looks like an email address (geoff-soord@softwareimaging.local). Maybe try linking that to GitHub?.

Unfortunately, we are unable to accept this pull request until this situation is corrected.
Here are your options:

If you had an email address set for the commit that simply wasn't linked to your GitHub account you can link that email now and it will retroactively apply to your commits. The simplest way to do this is to click the link to one of the above commits and look for a blue question mark in a blue circle in the top left. Hovering over that bubble will show you what email address you used. Clicking on that button will take you to your email address settings on GitHub. Just add the email address on that page and you're all set. GitHub has more information about this option in their help center.

If you didn't use an email address at all, it was an invalid email, or it's one you can't link to your GitHub, you will need to change the authorship information of the commit and your global Git settings so this doesn't happen again going forward. GitHub provides some great instructions on how to change your authorship information in their help center.

If you only made a single commit you should be able to rungit commit --amend --author="Author Name<EMAIL_ADDRESS>
(substituting Author Name and<EMAIL_ADDRESS>for your actual information) to set the authorship information.
If you made more than one commit and the commit with the missing authorship information is not the most recent one you have two options:

You can re-create all commits missing authorship information. This is going to be the easiest solution for developers that aren't extremely confident in their Git and command line skills.
You can use this script that GitHub provides to rewrite history. Please note: this should be used only if you are very confident in your abilities and understand its impacts.

Whichever method you choose, I will come by to re-check the pull request once you push the fixes to this branch.

We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community.
Thanks, I look forward to checking this PR again soon! :heart:

Also, you need to address the points from the PR template (which you removed).

@fabaff @Danielhiversen Is there anything I need to do to move this on? Please advise.

@frenck so where do I add the documentation.  I looked here https://developers.home-assistant.io/docs/en/documentation_index.html and found this https://github.com/home-assistant/home-assistant.io. The documentation here does match my expectations. Am I looking in the wrong place?

@GeoffAtHome

You need to create component documentation and open a PR for it on our documentation project. Which indeed this is the repository: https://github.com/home-assistant/home-assistant.io

@frenck thanks for confirming. Hope to add the documentation by the weekend.

@frenck documentation added with this PR https://github.com/home-assistant/home-assistant.io/pull/7600. Is this correct?

@MartinHjelmare Moved device specific code to pypi as requested.

@MartinHjelmare thank you for the extensive code review. One point still outstanding and I am failing to see what is required. Please help me understand. Also, point me in the direction of where I can add some tests and in particular a similar component to help me understand what is required.

Update requirements_all.txt by running script/gen_requirements.py. Don't update the file manually.

Either add tests and reach 95% coverage or exclude the added modules from coverage by adding the modules to .coveragerc.

@MartinHjelmare attempting to run (on Windows 10) script/gen_requirement.py. I get this error:

PS D:\demos\home-assistant-1> py .\script\gen_requirements_all.py
******* ERROR
Errors while importing:  homeassistant.components.climate.econet, homeassistant.components.google_assistant.auth
Make sure you import 3rd party libraries inside methods.

Any suggestions on how to move forward?

Did you follow the steps here?
https://developers.home-assistant.io/docs/en/development_environment.html#setting-up-virtual-environment

@MartinHjelmare no I did not follow the steps. I didn't see the Windows notes. Will follow these steps, hopefully this will provide a good and consistent environment to help me proceed. Thanks for you guidance and time.

@MartinHjelmare installed virtual env and updated requirements_all.txt.

The test failure is just a flaky test.

@MartinHjelmare What else needs to be done?

Please also update the PR description with the new config schema.

@MartinHjelmare PR for description updated. Thank you for your help, support and perseverance.

Did you update the description in this PR? It still looks like we want users to set up platforms in the config. Only the component should be necessary.

I did update platform, switch and light. Looking at the hive components as a pattern. Should I remove switch and light?

We will no longer use the platform config sections since we set up the platforms via discovery.

Should I remove "light" and "switch" documentation or to be like hive simplify the light and switch document by removing details about configuration?

This is all we need to set up this integration:
lightwave:
  host: <IP_ADDRESS>
  lights:
    R1D3:
      name: Wall lights
    R1D4:
      name: Ceiling lights
  switches:
    R1D2:
      name: Tree socket
    R2D1:
      name: Radio socket
    R2D2:
      name: Light socket
    R2D3:
      name: Phone socket
    R2D4:
      name: Torch socket

Remove the examples that have platform:
light:
  - platform: ...

@MartinHjelmare Updated documentation. Reference to the configuration have now been removed from light.lightwave.markdown and switch.lightwave.markdown

I have only been talking about the description in this PR at the top. It's still not updated.


Set up public quay.io repository for github runner image

Success Criteria:

There is a quay.io repository for the runner image - quay.io/ploigos/ploigos-github-runner
Credentials to push to it are accessible to actions in the github.com/ploigos/ploigos-runner git repo

I have admin access now. I just need to create the repo and credentials.

Repo created:
quay.io/ploigos/ploigos-github-runner
Credentials added as GitHubActions repository secrets:
QUAY_GITHUB_RUNNERS_USERNAME
QUAY_GITHUB_RUNNERS_TOKEN


test for contracts controller up to create

Current coverage is 86.15% (diff: 100%)

Merging #37 into master will increase coverage by 6.08%

@@             master        #37   diff @@
==========================================
  Files            17         17
  Lines           261        289    +28
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            209        249    +40
+ Misses           52         40    -12
  Partials          0          0

Powered by Codecov. Last update 1ce29e2...72b665d


[Pick2.0](inverted index) fix compound directory flush buffer error (#28191)

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

#28191


[Code review: Contract Bugs]: (Question) Information stored in 'tokenURL' page

Describe the bug
Description

If tokenURL is an IPFS address as described in the description, what information is shown in this tokenURL data on IPFS?
In general, data uploaded to IPFS cannot be edited, so I am curious about what information IPFS contains when the token specification has not been released yet.
https://github.com/tokamak-network/gem-nft-contract/blob/b31e833a38901bee6287b869d34c523bfe13dea2/src/L2/GemFactory.sol#L347-L352
https://github.com/tokamak-network/gem-nft-contract/blob/b31e833a38901bee6287b869d34c523bfe13dea2/src/L2/GemFactory.sol#L473-L478
Impact
No response
Exploit Scenario
No response
Recommendation
No response

The token URI is used to store the token URI metadata (usually stored on IPFS), which includes NFT metadata such as attributes (traits and values) or the image URL of the NFT.
For example:
{
  "image": "ipfs://.....",
  "attributes": [
    {
      "trait_type": "Background",
      "value": "Black"
    }

@0x6e616d Thank you. Indeed, I was thinking about storing the token URI within a second transaction after creating the NFT when the IPFS url is created.

So as far as i understand, if we decided to save the metadata on ipfs, then first of all we should upload the metadata file with the corresponding metadata details (in our case, quadrants, color, etc) before we mint the NFT and we get the URI of that metadata file. (this would be done on FE side)
Then we will set that URI in the contract within the same transaction of creating GEM (like we've currently done).
Actually I don't think we need second transaction to store the URI specifically.

When requesting token generation, the token information is already embedded in the URL.
I understand. Thank you for your reply.


let schedd-for-testing override downtime checks, etc.

I wish github would allow for fast-forward merges, because then what you did with config would be totally OK...


How to fetch Ensto thermostat key

Hi, I'm trying to add Ensto thermostat to ble2mqtt, but having challenges due to limited knowledge..
In the instructions it's advised to first pair the thermostat, which I've done. After that's done, instructions adviseto check the log files for the thermostat key.
My issue is that I'm not sure from where these logs are / how can I check the key info from a log file? I've tried various things, searched hours, but nothing..
I am running home assistant 2022.8.5 in RPI4 (Home Assistant Operating System 8.5).

I'm not aware of how HAOS handles logs, probably you can run ble2mqtt in the terminal and search for the key there.
The idea is to add the device to the config without the key for the first time. It connects to it, extracts the key, and prints it to logs. If the key is present in the config, it operates normally.

I can see the device when scanning it from home assistant, and I can also pair it. But when I run ble2mqtt, it just gives an error message "error: [Ensto_macaddress] connection problem, attempts =1 (and counting onwards).
However, I just realized (stupid me) that my thermostat is not one which is listed in the models for ble2mqtt. My thermostat model is ECO10BTW, and that most likely explains why this is not working. I know people have been able to connect this model as well, but most likely not with ble2mqtt.
Apologies for the hassle.

I believe they are quite similar, and probably I can add support for your thermostat with your help.
According to https://github.com/tuomassalo/ensto-bt-thermostat-reader readme, they are similar.
Probably., I need to adjust the initial code for retrieving RESET CODE.
You can run with "log_level": "DEBUG", to start with.

Thanks for the offer, and obviously happy to help!
The log file does contain quite lot of content (inclusive details of other bluetooth devices which are found by my raspberry). I hope I did not clean the logs too much, as I did focus on removing only the info linked to the other devices. Also I just took the first two "sets" of the repatative activity; basically this keeps on counting up (Attempt 1, attempt 2...).
ble2mqtt.log

@timutta Do you run the program right after you put the thermostat to pairing mode? (Probably something blinks or other visual information)

Yes, I'm enabling pairing mode from the thermostat (blue led flashing), then with bluetoothctl scan on, once device is found pairing with it's mac address. Once that's done, I'm exiting bluetoothctl and running  ble2mqtt.
Should I enable pairing mode also before running ble2mqtt? I recall trying that as well, but not 100% sure anymore.

Yes, the code is readable only in pairing mode. Pairing in bluetoothctl is required only once.

I finally got the key, however what I had to do is to disable bluetooth integration from Home Assistant GUI.
I also realized that if I do a host reboot, ble2mqtt is removed, inclusive of removal of the /etc/ble2mqtt.json -configuration file. I've seen HA doing this in the past with other manual pip installations and if I recall correctly, the guidance has been that there should be a custom component created, where as part of the startup sequence HA will install required files from pypi.
Anyways, as it seems that the bluetooth integration is making things a bit more complex (and my skills with this kind of stuff are limited and mainly based on searching information from different discussion forums / github), I'm giving up on trying to use raspb4 with HA installation to connect and read data from the thermostat and instead of this I will at some point try to use my old raspberry 1 (with external BT adapter) as the host running ble2mqtt and then sending data via MQTT to HA host.
Thanks for the prompt responses and troubleshooting help!

So, did you manage to add thermostat to Home Assistant?
I've never used HAOS and am using plain venv installation. Probably, there is a way to bind config files inside a container.
Yes, probably there is a battle for bluetooth device while both HA bluetooth component and ble2mqtt use the same library.

Nope, it did not work. Even after adding the key to the configuration file, I just got timeout/error messages from the python script itself.
I can share the logs later on today, but basis of my previous experience it's most likely caused due to the fact that the image I'm using for HA is home assistant operating system, which is built by using buildroot. And this has caused challenges in the past as well as certain dependencies are missing or certain packages are not avail etc..
Thus I believe that best option as of now is for me to   install a basic Linux distribution to one of my spare laptops, and see if I can get the thermostat working over there. That way we at least get to know if this thermostat works with ble2mqtt, and that the underlying challenge is under the hood of home assistant operating system.

Run it, please, with log_level DEBUG and can you please share config file, to check it is written correctly

I can confirm that it works perfectly with Linux Mint. I was able to broadcast data via mqtt to HA as well as adjust the thermostat settings from HA.
If running ble2mqtt from home assistant (when running home assistant OS) it fails and here's the findings by so far:

Bluetooth integration from home assistant needs to be disabled. Otherwise one will not get the key.

Once bluetooth integration is disabled, key is received and put to to ble2mqtt.json and ble2mqtt is ran, following error is given:

2022-09-15 16:43:16 INFO: Connected to localhost
2022-09-15 16:43:18 INFO: Connected to MAC ADDRESS
/usr/lib/python3.10/site-packages/ble2mqtt/devices/base.py:142: RuntimeWarning: coroutine 'BleakClientBlueZDBus.read_gatt_char' was never awaited
  result = await aio.wait_for(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2022-09-15 16:43:21 ERROR: Connection lost. Will retry in 10 seconds.
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 984, in _connect_forever
    await self._run_device_tasks(mqtt_connection.disconnect_reason)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 956, in _run_device_tasks
    await handle_returned_tasks(*finished)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 113, in handle_returned_tasks
    await task_for_raise
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 576, in manage_device
    await device.get_device_data()
  File "/usr/lib/python3.10/site-packages/ble2mqtt/devices/thermostat_ensto.py", line 61, in get_device_data
    name = await self._read_with_timeout(DEVICE_NAME)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/devices/base.py", line 142, in _read_with_timeout
    result = await aio.wait_for(
TypeError: wait_for() got an unexpected keyword argument 'loop'

This is without debug information, but in case you want to have full debug file as well, let me know.
 Will retry in 10 seconds.
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 984, in _connect_forever
    await self._run_device_tasks(mqtt_connection.disconnect_reason)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 956, in _run_device_tasks
    await handle_returned_tasks(*finished)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 113, in handle_returned_tasks
    await task_for_raise
  File "/usr/lib/python3.10/site-packages/ble2mqtt/ble2mqtt.py", line 576, in manage_device
    await device.get_device_data()
  File "/usr/lib/python3.10/site-packages/ble2mqtt/devices/thermostat_ensto.py", line 61, in get_device_data
    name = await self._read_with_timeout(DEVICE_NAME)
  File "/usr/lib/python3.10/site-packages/ble2mqtt/devices/base.py", line 142, in _read_with_timeout
    result = await aio.wait_for(
TypeError: wait_for() got an unexpected keyword argument 'loop'

Thank you for the detailed log! I figured out a problem with python 3.10 support and fixed it.
Can you please update ble2mqtt to 0.1.4 and try out once again?
pip install -U ble2mqtt

Amazing, I can confirm that it works now with home assistant OS (in Raspberry PI4) ! Kudos to you!
Only thing to take in to consideration is that apparently it requires HA bluetooth integration to be disabled, but this is also mentioned in home assistant manuals (some devices might need to use exclusive use of the adapter and in such situations it's recommended to get another bluetooth adapter.

Could you please help me add information about running the app on HAOS and disabling the Bluetooth component? Your PR to readme would be great, but at least some notes on how one can run it on HAOS would be very helpful.

It actually does not differentiate that much from the existing instructions you've already shared. Basically only additional step in case using Home Assistant wiht Home Assistant OS is to disable the integrated bluetooth integration:

Browse to your Home Assistant instance.
In the sidebar click on  Settings.
From the configuration menu select: Devices & Services.
If multiple instances of Bluetooth are configured, choose the instance you want to configure.
Click on the three dots at the bottom right of the instance and select "disable"
Note! In case bluetooth is disabled, BLE device integrations which are automatically discovered by Home Assistant (e.g. Xiaomi BLE, Switchbot etc..) will no longer work

BTW, I am not sure what's going on now, but for some reason neither my home assistant OS, nor the Linux Mint machine can read the current temperature. It's displayed as 6553,5C and when I check the logs, I can see that MQTT is receiving this from the thermostat (parsed measurements: Measurements (target_temperature=24.4, temperature=6553,5). I did try to switch back to 0.1.3 but same thing, for some reason it seems that it can not get the actual temperature as in the initial charasteristic readout I can see following:
"Read Characteristic 53b7bf87-6cf0-4790-839a-e72d3afbec44  /org/bluez/hci0/device MAC address/service001e/char0034: bytearray (b'\xdf\x00')"
Response which I see is following: target temp: EnstoState (mode=ClimateMode.Off: 'off', temperature=none, target_temperature=22.3, relay is on=false, target _temperature_with_offset=none).
I am absolutely sure that this was not the case previously, but am clueless of what could cause this (I've also booted the thermostat to be on safe side). Any ideas what might lead to this? I can share more detailed logs as well, but do not want to consume your time too much on this.
Another thing which I tried to understand (but because I do not have the right knowledge nor skills) was if it would be possible to send the relay is on = false / true information via MQTT? I can see that it is mentioned in the python scripts (boolean switch), but it seems that MQTT is not broadcasting this information? That would be very useful as it allows then to build power consumption calculation..

Sorry for the delayed reply. Yes, it's a floorheater with floor temperature sensor (does not contain air temperature sensor).  But...I got couple of ESP32 boards for other purposes, andfound out that there's an integration via ESP32 for Ensto floorheaters, which I took in to use. Thus I'm not using ble2mqtt solution at the moment.
However I definitely can support and help you with fetching the requested information in case you are still interested on looking to this. It though needs to wait until November as then I have more time to play with this (debugging requires me to set up MQTT broker as I've removed it after switching to ESP32,  and I need to jump around with the pairing/repairing actions with both ble2mqtt and ESP32 board).


License header verification.

It would be nice to have the plugin verify license headers. The configuration for this could be inferred on a per target basis.

Bazel already does license verification on build, doesn't it?
We could add in-plugin verification, along with an error/warning annotation and quick fix. I don't think that's something that will realistically reach the top of our priority list, so closing for bug hygiene reasons.


Patch for including help text, and dimension list.

Was frustrated that it was so hard to find all the dimensions, so quickly added a few things. Don't know if this patchfile itself will work but it's really simple to just put it in by hand. Wasn't remotely a big enough change to fork and do a pull request for.
--- CommandTPP.java	2018-05-16 18:21:16.213810700 -0400
+++ CommandTPP.java	2018-05-16 18:21:11.426496200 -0400
@@ -10,6 +10,7 @@
 import net.minecraft.util.text.TextComponentString;
 import net.minecraft.util.text.TextFormatting;
 import net.minecraft.world.WorldServer;
+import net.minecraftforge.common.DimensionManager;

 import javax.annotation.Nullable;
 import java.util.ArrayList;
@@ -24,7 +25,20 @@
     }

     public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException{
-        if(args.length < 1){return;}
+
+        if(args.length == 0) {
+            ITextComponent component = new TextComponentString("/tpp [<player>] <dimension> <x> <y> <z> | /tpp list");
+            sender.sendMessage(component);
+            return;
+        }
+        if(args[0].equals("list")) {
+            for(int i: DimensionManager.getIDs()) {
+                String name = DimensionManager.getProviderType(i).getName();
+                ITextComponent component = new TextComponentString(Integer.toString(i)+": "+name);
+                sender.sendMessage(component);
+            }
+            return;
+        }

         int dimensionid;
         EntityPlayer target;

W o o p s, that DimensionManager.getIDs should be a DimensionManager.getStaticDimensionIDs, otherwise it'll only show currently-loaded dimensions.

merged. feel free to open a new issue if something went wrong i guess

<3


nbdev_clean_nbs converts LaTeX \right to \night

Hello,
When running nbdev_clean_nbs all my \right LaTeX commands in Markdown cells are getting converted to \night which breaks the LaTeX syntax and doesn't render in the docs.
Steps to reproduce:

Run nbdev_new to create a new project
Edit the index.ipynb notebook to include a Markdown cell with the following LaTeX equation

$$\left(a + \frac{b}{c} \right)$$

Run nbdev_clean_nbs
Inspect git diff index.ipynb

Expected behaviour
nbdev_clean_nbs preserves LaTeX parentheses
Actual behaviour
From the git diff:
diff --git a/index.ipynb b/index.ipynb
index 31356b0..dd008d1 100644
--- a/index.ipynb
+++ b/index.ipynb
@@ -74,6 +74,13 @@
     "1+1"
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "$$\\left(a + \\frac{b}{c} \\night)$$"
+   ]
+  },
   {
    "cell_type": "code",
    "execution_count": null,
@@ -90,5 +97,5 @@
   }
  },
  "nbformat": 4,
- "nbformat_minor": 2
+ "nbformat_minor": 4
 }

System info

nbdev version: 1.1.12
Platform: Darwin-20.2.0-x86_64-i386-64bit
Python version: 3.7.7

@muellerzr mind taking a look at this issue re: my comment in #355 about your CRLF cleaning PR?

@muellerzr fastcore has an in_colab perhaps  that may be helpful here?
.... although I suppose someone could also try  do LaTex on Colab

@hamelsmu I think the solution may be to minimally replace CRLF. IE have the regex match:
[\r\n]+ and replace it with \n rather than just all \r.


Handle client generation return type when openAPI response has multiple responses with content type

Description:
Handle response type with multiple response
...
responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        # These two error responses have the same schema
        '400':
          description: Bad request
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/Pet'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'

Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

Close this issue since we can use our current implementation will able to handle the above openAPI scenarios.
remote isolated function listPets() returns Pet|error {
        string  path = string `/pets`;
        Pet response = check self.clientEp->get(path, targetType = Pet);
        return response;
    }

we can give specifically what we required as our 2xx status response to the data binding in targetType, it will automatically bind to the required record type or data type we request through adding targetType option in client call.
Pet response = check self.clientEp->get(path, targetType = Pet);
Other rest of the 4xx,5xx responses are directed to the error part and it will give the expected status details with an error message.


No date format was found on your conf file

Fatal error has occurred Error occured at: src/parser.c - parse_log - 2705 No date format was found on your conf file.
Version 1.2
FreeBSD 11.1
In /usr/local/etc/goaccess.conf:
time-format %H:%M:%S
in ~/.goaccessrc:
time-format %T
date-format %d/%b/%Y
log_format %h - %^ [%d:%t %^] "%r" %s %b "%R" "%u"
So two time-formats provided, yet I'm getting this error.

Can you try specifying these command line options in-line? e.g.,
goaccess access.log --log-format='%h - %^ [%d:%t %^] "%r" %s %b "%R" "%u"' --date-format=%d/%b/%Y --time-format=%T

or can you please try:
goaccess access.log -p /usr/local/etc/goaccess.conf  --no-global-config

OK the first one worked.  Reworked my script, and this is what comes back:
testy.sh: line 12: unexpected EOF while looking for matching ''
testy.sh: line 16: syntax error: unexpected end of file

Can you please post your whole script?

Please check your src variable, there's some extra quotes in there... e.g.,
clear
echo "RF_scripts/admin/goaccess/testy.sh"

today=$(date -v -1d +%Y-%m-%B)
src=/var/log/nginx/access_pass1.log
fname=/home/adminuser/goaccess/$today_access_pass1.html
echo $src
echo $fname

goaccess $src --log-format='%h - %^ [%d:%t %^] "%r" %s %b "%R" "%u"' --date-format=%d/%b/%Y --time-format=%T --no-query-string --real-os --output=$fname

Everything is fine now.  Not sure what happened.  The log is fine, but my syntax was different than what I posted here.


ChatChisel

You need to move your notebook to accepted_notebooks folder.

Thanks for the reminder, we have resubmitted it.
------------------ 原始邮件 ------------------
发件人:                                                                                "sscs-ose/sscs-ose-code-a-chip.github.io"                                                                                @.>;
发送时间: 2024年5月12日(星期天) 晚上6:09
@.>;
<EMAIL_ADDRESS>主题: Re: [sscs-ose/sscs-ose-code-a-chip.github.io] ChatChisel (PR #94)
You need to move your notebook to accepted_notebooks folder.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Non-minimal diff returned for some inputs

If you compute diff_main("dbabcddb", "babcbabc"), the library will pick the wrong half match in diff_halfMatch and come up with a non-minimal diff (del d, ins babc, keep babc, del ddb). If you flip the arguments it doesn't have the problem. It looks like the library does intend to return minimal diffs.

@marijnh diff-match-patch intentionally does not intend to return minimal diffs. the modified diffing algorithm trades that goal for efficiency/speed, and the cleanup passes after finding an edit script directly modify that script to be more human-readable. the line-level diffing mode similarly prevents any practical way to find the shortest edit script because it doesn't analyze intra-line diffs.
if you see something suggesting that it intends to return shortest edit script diffs then we might need to clarify that language; can you share a link to where you saw it?
if you need minimal diffs you will likely need another library, but be aware that can be a quadratic process or worse and only gets more problematic with long documents, something any general-purpose library is going to struggle with.

All right, I'll close this then.


run php artisan nvd:crud

When I try to run this bellow:
run php artisan nvd:crud concursos
returns:

[Illuminate\Database\QueryException]
SQLSTATE[HY000]: General error: 1 near "show": syntax error (SQL: show fields from concursos)

This is my environment
Laravel Framework version 5.2.14
Database: sqlite
Mac OS X
How to fix this?

Hi @rodolfolsilva, unfortunately sqlite is not currently supported by NVD CRUD generator. Table fields are fetched by a function which can be edited to support sqlite or any other database system supported by Laravel. Please feel free to contribute. :)


parseKey appended comments in parsed public key output

Changed RE_HEADER_OPENSSH_PUB regexp to avoid that parseKey appended comments in parsed public key output.

This fix is available as of 749e9723969.

Thanks!


One expanded row at a time

Hi,
I looked into the doc and existing issues but, I haven't found a way to implement the Expanded Rows where only one row will be in expanded state. If we select any other row, the previous row collapse automatically.
I checked the rowsExpanded option but, I do not see any event callback like onRowExpand OR a way to change the state of the other row's expanded state.
If this is possible with current options, please guide me to respective reference/sample.
Thanks
Requested Behavior
One expanded row at a time. If you select any other row to expand, the previous expanded row collapse automatically.
Current Behavior
The expanded rows remain in expanded state when we select any other rows to expand.

There's an onTableChange function that will recieve an "expandRow" action when a row is opened or closed.
var options = {
    rowsExpanded: [0, 2],
    expandableRows: true,
    renderExpandableRow: () => {
      return
hi
;
    },
    onTableChange: (action, tableState) => {
        switch (action) {
            case 'expandRow':
                console.log(action);
                console.dir(tableState);
            break;
        }
    }
}

However, you have to be careful, because the table re-applies your options when it's re-rendered. So if you're going to control the rowsExpanded array, you have to update your options object.
I put together a short example here:
https://codesandbox.io/s/muidatatables-custom-toolbar-75b2f

@patorjk Thanks a lot.

I think there's a good use case here to add some of the same functionality to expanded rows that we have for selected rows, so I'll re-open this and work on that as a feature.

Related to https://github.com/gregnb/mui-datatables/pull/861 and https://github.com/gregnb/mui-datatables/pull/862.

The ability to do this should be available as of 2.12.0 via the isRowExpandable option.

The ability to do this should be available as of 2.12.0 via the isRowExpandable option.

This doesn't relate to expanding only one row at a time.
Mui-datatables still can't do this, have to use @patorjk's workaround like this:
  const [rowsExpanded, setRowsExpanded] = useState<number[]>([])

  const options = useMemo<MUIDataTableOptions>(() => ({
    expandableRows: true,
    expandableRowsHeader: false,
    rowsExpanded: rowsExpanded,
    onRowExpansionChange: (_, allRowsExpanded) => {
      setRowsExpanded(allRowsExpanded.slice(-1).map(item => item.index))
    }
  }), [rowsExpanded])


5 Animated Sprites

Add support for sprite animation, sub-rects, and loading in filmstrips.

filmstrips for everythingggggggg.


Get a JWT with APIKEY and Username/Password in DoTAuth

Child of #104
Create a getJWT(apikey, username, password) method that obtains a jwt from the auth endpoint.
This does not include caching of the JWT or any automatic handling of expired JWTs.
See private SLACK for username/password/apikey/URL information.

TESTS:

should get JWT with a successful apikey + username + password
should return null for bad username / password


Problem with Margo CPU usage when live-tracking

Previously, we had been using Margo without any issues.
Recently however, when we try to do live tracking in Margo, our total processor utilisation across all cores hits 100% and the software fails to work properly. We don't believe it is a hardware issue.
We have noticed that the issue does not happen when we are tracking from a pre-recorded video, only when live tracking.

I think the likely culprits here are either 1) the camera failing to initialize in MATLAB, or 2) the camera getting stuck in an infinite loop during when Margo tries to estimate the framerate of the camera. That being said, it would help to have more information to solve your issue. At exactly what step does Margo get stuck (e.g. when you first boot it up, when you start tracking, when you initialize the camera etc)? If you have Git configured on your machine, could you tell me what commit you are using (use git show to display the current commit).

Run MATLAB's built-in camera configuration tool: imaqtool . Verify that you can see the camera in there, initialize it, and preview video from the device. If you can connect to the camera and preview video from there, then this is a Margo issue and not an issue with the camera or the device drivers that MATLAB is using.

Older versions of Margo had a bug where the camera could sometimes get stuck in an infinite loop if the camera initialized properly but that frames sent to MATLAB contained no data. The easiest way to fix this would be to ensure you are using the most up-to-date version of the master branch. If you have Git configured on your computer, just re-pull the master branch. If not, backup your current version of Margo and re-download it as a zip file from Github. Extract it to a new location (if you go this route, you have to make sure to remove the old version of Margo from MATLAB's path to avoid conflicts).