NJsonSchema.CodeGeneration.TypeScript 10.1.15 and empty classes

We are using the NJsonSchema code generation for TypeScript since quite a long time and it works fine.
Now we updated the NJsonSchema.CodeGeneration.TypeScript library from 9.14.1 to 10.1.15.
After this update, we observed a changed behaviour in the very special case of empty classes.
With 9.14.1 is was posssible to generate empty classes.
With 10.1.15 they are not generated anymore.
Is there any way to generate empty classes with version 10.1.15?
It would be very helpful for us to bring this feature back.
Otherwise we have to implement a special handling on our side for these cases.
Thanks in advance for the help.
With this small test app, it can be reproduced:
App.csproj
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="NJsonSchema" Version="10.1.15" />
    <PackageReference Include="NJsonSchema.CodeGeneration.TypeScript" Version="10.1.15" />
  </ItemGroup>
</Project>

Program.cs
namespace MyNamespace
{
    internal class MyProgram
    {
        private static void Main(string[] args)
        {
            foreach (var type in new[] {
                typeof(MyAbstractClass),
                typeof(MyClass)})
            {
                var schema = NJsonSchema.JsonSchema.FromType(
                    type,
                    new NJsonSchema.Generation.JsonSchemaGeneratorSettings
                    {
                        SerializerSettings = new Newtonsoft.Json.JsonSerializerSettings
                        {
                            ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
                        },
                        GenerateAbstractProperties = true
                    });

                var generator = new NJsonSchema.CodeGeneration.TypeScript.TypeScriptGenerator(
                    schema);
                generator.Settings.GenerateConstructorInterface = false;
                generator.Settings.MarkOptionalProperties = true;
                generator.Settings.TypeStyle = NJsonSchema.CodeGeneration.TypeScript.TypeScriptTypeStyle.Class;

                System.Console.WriteLine(generator.GenerateFile());
            }
        }
    }

    public abstract class MyAbstractClass
    {
    }

    public class MyClass
    {
    }
}

I solved this problem with this hack for now:
                TypeScriptGenerator generator = new(schema);
                string typescriptClass = generator.GenerateFile();

                // Hack: Insert empty typescript class if it was not generated because the c# class is empty.
                if (!typescriptClass.Contains("export class"))
                {
                    typescriptClass += "\n\n\n\n\n\n\n\nexport class " + type.Name + " {}";
                }


VirtualKubelet: replicated code fix

Description
This PR fix an issue due to a replication of code.
How Has This Been Tested?

[x] Locally with KinD

/rebase test=true

/rebase test=true

/rebase test=true

/merge


[vm/ffi] Implement NativeArray on sdk

Having a struct definition, a pointer and an item count, it felt convenient to work with an iterator instead of elementAt and ref calls. I started with:
class NativeArray<T extends Struct> implements UnmodifiableListView<T> {
  Pointer<T> pointer;

  NativeArray(this.pointer, this.length);

  @override
  T get first {
    return pointer.elementAt(0);
  }
  ...
}

However, for the elementAt call, the compiler says T must be a compile-time constant.
Can this be made possible on userland? If not, would you consider implementing it on the sdk?
@dcharkes

Can this be made possible on userland? If not, would you consider implementing it on the sdk?

No, we disallow unbound type arguments (see the documentation of .ref) for performance reasons.
On Pointers to integers one can use asTypedList to get an iterator. But on Pointer<T extends Struct> we have nothing yet.
(Cross reference other missing iterator in the API: https://github.com/dart-lang/sdk/issues/45508)

Thanks @dcharkes , #45508 looks good.

Well, we still need to implement this.


testing

see https://github.com/afterglowtech/angular-couchPotato/issues/2 ... need to establish tests for couch-potato as well as guide for testing apps that use couch-potoato.

I think I've found a way to make unit tests work: by making your RequireJS modules (e.g. the services/controllers you create) return arrays and getting instances of the required services/components via $injector.invoke(...):
In path/to/myService.js:
define(['app'], function(app){
    "use strict";

    var serviceDefinition = ['$q', function($q) {
        var mValue = "Some value for this example service";

        return {
            setValue: function(val) {
                mValue = val;
            },
            getValue: function() {
                return mValue;
            },
            getValueAsPromise: function() {
                var deferred = $q.defer();
                deferred.resolve(mValue);
                return deferred.promise;
            }
        };

    }];

    app.registerService('myService', serviceDefinition); // works also with app.service('myService', serviceDefinition)
    return serviceDefinition;
})

In test.js:
define(['angular', 'app', ..., 'path/to/myService'], function(angular, app, ..., myServiceDefinition) {
    describe('myService', function() {
      var myService;
      beforeEach(angular.mock.module({'app': app}));
      beforeEach(angular.mock.inject(function ($injector) {
        myService = $injector.invoke(myServiceDefinition);
      }));
      it ('should do something', function() {
        //Test myService here
      });
    });
});

Haven't had enough time yet to figure out if this covers all cases and works properly in all situations, but at least I seem to be able to create some tests using this mechanism, rather than having no luck at all as was the case earlier.

@jorisvddonk thank you for posting that. It looks reasonable.
Is there a reason you used $injector.invoke instead of angular mocks' inject function? I should hope that either way would work.

Using angular.mock.inject doesn't work, since that function uses the name of the arguments passed onto it to resolve dependencies, and once it tries to resolve these by name you get the dreaded Unknown Provider error because Angular hasn't actually been able to load the service/controller yet. What we want to do is pass an array describing a service/controller so that we can then instantiate it and run our tests on it, essentially defining it manually. That's why $injector.invoke needs to be used.
One thing: I'm currently trying to get dynamically loaded dependencies working, so that it's possible to test services depending on other dynamically loaded services, or so that it's possible to test directives. So far I haven't had much luck, but I only just started trying to get tests working for directives after having succesfully written a few tests for simple services and controllers.
One alternative to all of this would be to disable lazy loading altogether during testing, e.g. by compiling everything into a single JavaScript file bundle via something like r.js. That may be easier, but I don't think that's ideal as you probably get awful stacktraces that way (assuming the optimizer minifies as well; I don't really know) and you'll find that you might actually be testing different code altogether if you do something wrong.

My last comment isn't what I meant to say at all. But I'm awake (or closer to awake now). :)
I'd definitely not be satisfied with disabling lazy loading -- couch potato's functionality itself needs to be testable, as well as apps written using it for me to even claim this to be a ready-for-use utility....
Your test above doesn't really make use of Couch Potato or exercise its code much.
Keep in mind that couch-potato's real purpose in life is to set you up with components you can load via its resolve, resolveDependencies and resolveDependenciesProperty functions. If you app is really using couch potato, you'll want to know that you can define components using couch-potato's register functions, and then load them via its three resolve functions.
In the typical use case, couch-potato's resolve functions are invoked during a routing transition so that the dependencies are injectable end wind up being injected to a view controller constructor. In a unit test, you'll want to inject them more manually using one of those resolve functions explicitly.
The resolve functions do two things -- (1) they cause the component to be loaded into angular's injector table as a side-effect and (2) they return a list of injectable component names so that the injector, while calling the controller constructor, injects them to that constructor.
In a unit test scenario, you would probably set up some sort of spy which acts as the controller (though it need not be an actual), then you'd use one of the resolve functions to put the couch-potato dependency(ies) into the injector definitions, and you'd grab the result of that function and append it to the array of injected parameters for your pseudo-controller's constructor, then you'd proceed "as normal" with your unit test of the components from within that pseudo-controller (which can really just be any old factory).

Hmm, you're absolutely right. My code above essentially bypasses couch-potato and makes RequireJS as well as the writer of the test do all the hard work to get things working. This is trivial for simple services and controllers, but it quickly becomes cumbersome when trying to write tests for lazy loaded components which themselves depend on other lazy loaded components, as the test author would have to write code to load and inject all of the dependencies. Ideally, couch-potato would make it easier for test authors to do their jobs, rather than making it more difficult.
I'll have to look at the various resolve functions; perhaps using those is indeed the proper solution here.

Ideally, couch-potato would make it easier for test authors to do their jobs, rather than making it more difficult.

This is a good point. I'm pretty sure that, such as it is, my above description of the testing methodology is accurate, but it's possible that there may be room for a test helper function (or perhaps a custom harness component) being written in order to reduces the lines-of-code required to exercise couch potato -- essentially, a generic factory that one could inject into tests which is configured to easily load couch potato components. Its odd but true that while their sugar is very useful in routing scenarios, in testing scenarios it gets "wordy".

perhaps using those [resolve functions] is indeed the proper solution here

Yes, those functions are the "meat" of couch-potato at runtime, while the "registerXYZ" function comprise  its fundamental config-time.

I've tried using the resolveDependencies function, but it doesn't seem to work, though I'm not exactly sure I'm calling it correctly, and I'm sure that what I'm writing here isn't what one would eventually like to see in a unit test:
    beforeEach(function(done){angular.mock.inject(function ($injector, $couchPotato) {
      var delayed = $couchPotato.resolveDependencies(['some/angularjs/service']);
      var promis = $injector.invoke(delayed);
      promis.then(function(resolv){
        console.log("Resolved: ", resolv)
        done();
      });
    })});

This errors out with the dreaded $digest already in progress error.

Did you figure this out? I'm in the same situation with the aforementioned angular/requirejs/couchpotato theme.

Nope. I decided to rip out CouchPotato and RequireJS because I felt that the added functionality (though amazingly cool) did not warrant the added complexity. We were bringing in a Junior engineer at the time whom would mostly work on the project making use of that theme, but she had relatively little experience with Angular and RequireJS, and I didn't feel like putting the burden of said complexity on her as well.
The theme in question has some other problems as well (awful folder/file structure, weird build process output, out of date package.json/bower.json, dependency issues), and I must say that getting rid of the cruft was (in retrospect) the best decision I could make. If you're good with macros of your editor of choice, refactoring and fixing the entire thing may take about a day.

Thanks for responding. I came to the same conclusion - the complexity doesn't seem worth the benefits in this case. I've almost finished removing CouchPotato from the theme, but am hoping to leave RequireJS. As you say, that theme definitely has some strange quirks, today is dedicated to refactoring it into something more sane :)


Prefer MTA-STS

Not everyone implements MTA-STS, but it's better when available.

@SecurityCRob - this is the other PR - I'd love it if the Vulnerability Disclosures WG would agree to this tweak!


[BEAM-9030] Bump grpc to 1.26.0

When submitting a Python word count job to a Flink session/standalone cluster repeatedly, the meta space usage of the task manager of the Flink cluster will continuously increase (about 40MB each time). The reason is that the Beam classes are loaded with the user class loader in Flink and There are problems with the implementation of ProcessManager(from Beam) and ThreadPoolCache(from netty) which may cause the user class loader could not be garbage collected even after the job finished which causes the meta space memory leak eventually. You can refer to FLINK-15338[1] for more information.
Regarding to ProcessManager, I have created a JIRA BEAM-9006[2] to track it. Regarding to ThreadPoolCache, it is a Netty problem and has been fixed in NETTY#8955[3]. Netty 4.1.35 Final has already included this fix and GRPC 1.22.0 has already dependents on Netty 4.1.35 Final. So this PR is bump the version of GRPC to 1.26.0+ (currently 1.21.0).

I would like to split this PR into upgrade GRPC vendor PR and migrate beam later. :)

R: @kennknowles
I would like to make a release of beam gRPC vendor after merge this PR changes :)

Run Python PreCommit

Worth to add that info on how to validate the vendored version using the dependency linkage tool for the vendored dependencies part of the release guide.

Run Portable_Python PreCommit

Run CommunityMetrics PreCommit

@lukecwik  Thanks for the suggestions. I have updated the PR which passed the dependency linkage check for the vendored gRPC.
BTW: You could verify the check if you want with the commit: https://github.com/sunjincheng121/beam/commit/5b97f604ec4a067e327279c61343476a876ceaa3

Hi @lukecwik, Regarding to the linkage check, could you share the command you use? I can not reproduce the result with the command ./gradlew -Ppublishing -PjavaLinkageArtifactIds=beam-sdks-java-core,beam-sdks-java-io-jdbc :checkJavaLinkage.

The gradle linkage checker command assumes that your checking org.apache.beam:$artifactId:2.19.0 as shown here.
You can edit the line to be:
args '-a', project.javaLinkageArtifactIds.split(',').collect({"${project.ext.mavenGroupId}:${it}:0.1"}).join(',')

Then the command below should match the version that your publishing:
./gradlew -Ppublishing -PjavaLinkageArtifactIds=beam-vendor-grpc-1_26_0 :checkJavaLinkage

I agree with Ismaël but also these other linkage tips could live in the wiki developer guide: https://cwiki.apache.org/confluence/display/BEAM/Developer+Guides

@lukecwik @kennknowles @suztomo @iemejia Thanks for your comments. Have addressed your comments in the latest PR. Would be great if you have a look at the update :)

I have updated the PR accordingly, would be great if you have another look :)

comment just to trigger tests

retest this please

Linkage checker reported no errors.

Thank you for all of your review and merging!
I have bring up the discussion about gRPC Vendor Release, the detail can be found in [1]. We can open the second half of the upgrade  PR once the release is out.
[1] https://lists.apache.org/thread.html/7e4de745a224efc24fd5c82737160ef050cbd18a99b45c4e3434fd56%40<dev.beam.apache.org>


better SSN regex

Enhances SSN Validation.

does not allow 00 group number
does not allow 0000 serial number

More Info:
https://www.ssa.gov/employer/randomization.html

Previously unassigned area numbers were introduced for assignment excluding area numbers 000, 666 and 900-999.

https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s12.html
Make sure that you've checked the boxes below before you submit PR:

[x] Tests exist or have been written that cover this particular change.

Change Details:

@go-playground/admins

Coverage remained the same at 100.0% when pulling dbd65cccbc6d38f6daa51ac39d8f97430d405988 on rucas:v9 into b199fa0642d29caca62b6a99d65cc981ba5edc3b on go-playground:v9.

Tanks @rucas for the PR, will try to get it merged this week


may be you can mention this in "readme.md" about No name 'python' in module 'tensorflow'

I just copy some code from here ,than I got this problem:

I spend a few hours to find the solution, than I found this:
https://github.com/Unity-Technologies/ml-agents/issues/1411
they said IT'S NOT A BIG DEAL I can ignore it ,just keep edit the code!
so maybe join this  to your "readme.md" to help readers solve it.

Hi @codeoflin ,
Does it only show some messages in your IDE? If there is no problem when you run your program, you can just ignore that. Sometimes the information from IDE is helpful, but sometimes it is not.
Best,
Lei

sure, i mean you can join this notice to this file :"readme.md"
that can make this document more helpful

this project is good! it's helped me!


Larastan reads records in DB tables?

Larastan Version: 2.5.1
--level used: 1
Pull request with failing test:

Description
Hello!
I noticed that Larastan started failing when a particular database table was empty...I was under the impression that the DB was not queried. Furthermore, it apparently doesn't just check for a non-empty DB table but the exact record must be in the table or I get an Attempt to read property "price_per_pound" on null error.
Note that the DB is seemingly only queried on the first run when the cache is built, subsequent runs with the proper record in the database does not change the failure to passing.
Laravel code where the issue was found
        $pricePerPound  = PlateSettings::active()
            ->where('gauge', 20)
            ->where('grade', 60)
            ->where('galvanization', 60)
            ->first()
            ->price_per_pound;

Further testing reveals that:

Larastan passes when using firstOrFail() and the record is not in the DB table.
Larastan passes when using first() and the DB table does not exist.
Larastan fails when using first(), the DB table exists, and the record is not in the DB table.

Although Larastan boots up the framework but does not execute controllers.
If you find the root of database connection you will solve this problem.

@szepeviktor, thanks for the info!
Larastan may not execute controllers, but does it construct them?

I'm just a janitor here 🧹 I'm sure you can find the root where database connection originates from with a few well-directed dd calls.

I believe laravel itself constructs controllers when booting as it needs to check for calls to middleware() etc.

So this has nothing to do with controllers (in this case).
Apparently Larastan resolves objects from the service container as it comes across them, and will execute any queries that are in any constructors...
resolve(<class>)->property // fails
(new <class>())->property // does not fail

So this has nothing to do with controllers (in this case).
Apparently Larastan resolves objects from the service container as it comes across them, and will execute any queries that are in any constructors...
resolve(<class>)->property // fails
(new <class>())->property // does not fail


[BUG] Function [XYZ]: cannot find value named 'ServiceBusConnection' in local.settings.json that matches 'connection' property set on 'serviceBusTrigger'

Library name and version
microsoft.azure.webjobs.extensions.servicebus 5.8.1
Describe the bug
I have enabled Managed Identity together with ServiceBusTrigger in my Azure Function according to the official guide here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-identity-based-connections-tutorial-2.
Expected behavior
There is no MSBuild warning regarding missing setting in local.settings.json when using Managed Identity for Azure Functions.
Actual behavior
I get a warning: Function [X]: cannot find value named 'ServiceBusConnection' in local.settings.json that matches 'connection' property set on 'serviceBusTrigger'
C:....nuget\packages\microsoft.net.sdk.functions\4.1.3\build\Microsoft.NET.Sdk.Functions.Build.targets	32
I get this error both locally and on the build server.
Reproduction Steps
Prepare an Azure Function based on the official page here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-identity-based-connections-tutorial-2.
Content in local.settings.json:
"Values": { ...,     "ServiceBusConnection:ConnectionStringWithoutSecret": "Endpoint=sb://namespace.servicebus.windows.net/;Authentication=ManagedIdentity",     "ServiceBusConnection:fullyQualifiedNamespace": "namespace.servicebus.windows.net",     "ServiceBusConnection:HostAddress": "sb://namespace.servicebus.windows.net" }
Environment
.NET 6
Windows 10
IDE: Visual Studio 17.4.4
Microsoft.NET.Sdk.Functions 4.1.3
Build agent running WS19

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hi @kristinannabel,
If you are attempting to use managed identity, you should not be specifying a connection string. Instead, you should have something like this in your "Values":
"MyConnection__fullyQualifiedNamespace": "namespace.servicebus.windows.net",
"MyConnection__credential": "managedidentity"

More details can be found here.

/unresolve
The warning is that there are no setting in local.settings.json that is named ServiceBusConnection, since my settings are ServiceBusConnection:Something...
Also, I need the connectionsStringWithoutSecret for this purpose:
.AddMassTransitForAzureFunctions(cfg =>
{
      cfg.AddServiceBusMessageScheduler();
     cfg.AddConsumer<MyConsumer>(typeof(MyConsumerDefinition));
}, ServicebusSettingsConst.ConnectionStringWithoutSecretName, ConfigureBus);

Please be aware that the connection string that you're specifying is invalid.    The token Authentication=ManagedIdentity is not valid and will be ignored.   As a result, that connection string will be rejected as malformed since there is no shared key name/value or SAS associated with it.

The warning is that there are no setting in local.settings.json that is named ServiceBusConnection, since my settings are ServiceBusConnection:Something...

The syntax you are using is not right - you need to use double underscore rather than colon as I showed in the snippet above. Also, as @jsquire mentions, the connection string you are using will not work because the Authentication token is not supported in the connection string.

@JoshLove-msft  Ok, but how should my code-snippet look like?
My code is actually working, so it cant be that far off. I just wanted to get ridd of the warning. I will try double underscore.

With these values, I still get the same error;
"ServiceBusConnection__fullyQualifiedNamespace": "namespace.servicebus.windows.net",     "ServiceBusConnection__credential": "managedidentity",

Can you make sure you are using the latest Core Tools version?

@JoshLove-msft  Yes, I am using the latest Core Tools version.

The connection name you use in your settings needs to match the connection name used in your function. Can you confirm that they match?

Yes.
From Function: Connection = "ServiceBusConnection"
In local.settings.json:
"ServiceBusConnection__ConnectionStringWithoutSecret": "Endpoint=sb://namespace.servicebus.windows.net",
    "ServiceBusConnection__HostAddress": "sb://namespace.servicebus.windows.net",
"ServiceBusConnection__fullyQualifiedNamespace": "namespace.servicebus.windows.net",
"ServiceBusConnection__credential": "managedidentity",

ServiceBusConnection__ConnectionStringWithoutSecret

You can't include both a connection string and the managed identity config. The extension has no knowledge of this settings "ConnectionStringWithoutSecret" and "HostAddress".

/unresolve
Ok, even with
"ServiceBusConnection__fullyQualifiedNamespace": "namespace.servicebus.windows.net",     "ServiceBusConnection__credential": "managedidentity",
in local.settings.json, I still get the same error
Function [MyFunction]: cannot find value named 'ServiceBusConnection' in local.settings.json that matches 'connection' property set on 'serviceBusTrigger'
C:\Users\kristintf\.nuget\packages\microsoft.net.sdk.functions\4.1.3\build\Microsoft.NET.Sdk.Functions.Build.targets	32

Can you please share your function app project so that I can repro locally?

@JoshLove-msft  I'm not allowed to share any of our code.
But can give you some bits, if thats helpful.
`public class MyFunction
{
private readonly string _queueName;
private readonly IMessageReceiver _receiver;
    public MyFunction(IMessageReceiver receiver, ConnectionSettings settings)
    {
        _receiver = receiver ?? throw new ArgumentNullException(nameof(receiver));
        _queueName = settings.QueueName;
    }

    [Disable("DisableServiceBusTriggerFunctions")]
    [FunctionName("MyFunction")]
    public async Task MyFunction([ServiceBusTrigger("%ConnectionSettings:QueueName%", Connection = "ServiceBusConnection")] ServiceBusReceivedMessage message, CancellationToken cancellationToken)
    {
      await _receiver.HandleConsumer<MyConsumer>(_queueName, message, cancellationToken);
    }
}`

`public class MyConsumer : IConsumer
{
private readonly IMyAdapter _myAdapter;
private readonly ITelemetryLogger _telemetryLogger;
    public MyConsumer(IMyAdapter myAdapter,
       ITelemetryLogger telemetryLogger)
    {
        _myAdapter = myAdapter
            ?? throw new ArgumentNullException(nameof(myAdapter));
        _telemetryLogger = telemetryLogger ?? throw new ArgumentNullException(nameof(telemetryLogger));
    }

    public async Task Consume(ConsumeContext<IMyEvent> context)
    {
        var message = context.Message;

        _telemetryLogger.LoggId(message.Id);
        await _myAdapter.Arkiver(message.Id);
    }
}`

Startup.cs:
`services.AddMassTransitForAzureFunctions(cfg =>
{
cfg.AddServiceBusMessageScheduler();
cfg.AddConsumer();
}, "Endpoint=sb://namespace.servicebus.windows.net/;Authentication=ManagedIdentity", ConfigureBus);
private void ConfigureBus(IBusRegistrationContext busRegistrationContext, IServiceBusBusFactoryConfigurator serviceBusBusFactory)
{
serviceBusBusFactory.ConfigureJsonSerializerOptions(settings =>
{
settings.NumberHandling = JsonNumberHandling.AllowReadingFromString;
return settings;
});
        var config = busRegistrationContext.GetRequiredService<IConfiguration>();
        serviceBusBusFactory.Host(new Uri(config["sb://namespace.servicebus.windows.net"]), conf =>
        {
            if (EnvironmentIsDevelopment())
            {
                conf.TransportType = Azure.Messaging.ServiceBus.ServiceBusTransportType.AmqpWebSockets;
            }
            conf.TokenCredential = new DefaultAzureCredential();
        });
    }

`

@JoshLove-msft  I'm not allowed to share any of our code.
But can give you some bits, if thats helpful.
`
    public class MyFunction {
    private readonly string _queueName;
    private readonly IMessageReceiver _receiver;

    public MyFunction(IMessageReceiver receiver, ConnectionSettings settings)
    {
        _receiver = receiver ?? throw new ArgumentNullException(nameof(receiver));
        _queueName = settings.QueueName;
    }

    [Disable("DisableServiceBusTriggerFunctions")]
    [FunctionName("MyFunction")]
    public async Task MyFunction([ServiceBusTrigger("%ConnectionSettings:QueueName%", Connection = "ServiceBusConnection")] ServiceBusReceivedMessage message, CancellationToken cancellationToken)
    {
      await _receiver.HandleConsumer<MyConsumer>(_queueName, message, cancellationToken);
    }
}`

public class MyConsumer : IConsumer<IMyEvent> {
        private readonly IMyAdapter _myAdapter;
        private readonly ITelemetryLogger _telemetryLogger;
        public MyConsumer(IMyAdapter myAdapter,
           ITelemetryLogger telemetryLogger)
        {
            _myAdapter = myAdapter
                ?? throw new ArgumentNullException(nameof(myAdapter));
            _telemetryLogger = telemetryLogger ?? throw new ArgumentNullException(nameof(telemetryLogger));
        }

        public async Task Consume(ConsumeContext<IMyEvent> context)
        {
            var message = context.Message;

            _telemetryLogger.LoggId(message.Id);
            await _myAdapter.Arkiver(message.Id);
        }
    }

Startup.cs:
services.AddMassTransitForAzureFunctions(cfg =>
{
   cfg.AddServiceBusMessageScheduler();
   cfg.AddConsumer<MyConsumer>();
 }, "Endpoint=sb://namespace.servicebus.windows.net/;Authentication=ManagedIdentity", ConfigureBus);

private void ConfigureBus(IBusRegistrationContext busRegistrationContext, IServiceBusBusFactoryConfigurator serviceBusBusFactory)
        {
            serviceBusBusFactory.ConfigureJsonSerializerOptions(settings =>
            {
                settings.NumberHandling = JsonNumberHandling.AllowReadingFromString;
                return settings;
            });

            var config = busRegistrationContext.GetRequiredService<IConfiguration>();
            serviceBusBusFactory.Host(new Uri(config["sb://namespace.servicebus.windows.net"]), conf =>
            {
                if (EnvironmentIsDevelopment())
                {
                    conf.TransportType = Azure.Messaging.ServiceBus.ServiceBusTransportType.AmqpWebSockets;
                }
                conf.TokenCredential = new DefaultAzureCredential();
            });
        }

Can you please also include your complete local.settings.json file (redacting any secrets) as well as your csproj?

Having the same issue - here's my local.settings.json (redacted):
{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    ...
    "ServiceBusConnection:fullyQualifiedNamespace": "xxx.servicebus.windows.net",
    ...


Exclude certain modules

With multi-module projects, I'd like the ability to exclude certain ones, as I may not want to obtain any information from certain modules that are, for example, only used during development (thus assessing the risk behind these dependencies are unnecessary.)

This is addressed in 1.3.0 (just released). You can now use 'excludedModules' as a comma-separated list of your project names (artifactIds) and they should be excluded from the output. Please keep these suggestions coming!


Unclear fieldsmapping for 'on your data' Rest calls

The expected fieldsMapping when using REST is unclear and somehow not documented (How do you map the fields "content data", "title", "file name", and "url" to specific index columns?)

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

ID: fadd6778-b11c-d9af-1bd9-e3ed394e0fcb
Version Independent ID: 45436c53-4aae-284b-a6c5-3f47c9342537
Content: Azure OpenAI Service REST API reference - Azure OpenAI
Content Source: articles/ai-services/openai/reference.md
Service: azure-ai-openai
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@jhchein
Thanks for your feedback! We will investigate and update as appropriate.

@aahill
could you please review this and update as appropriate.

@jhchein
I've delegated this to @aahill, a content author, to review and share their valuable insights.

Hi, sorry for the delay here, and thanks for raising this issue. I've added new documentation for this parameter (and fields for it) that should be live shortly:

#please-close


support for amp?

Hi, thanks for your work!
I'm wondering whether this repository supports amp? or how can I do it?

I have forked and implemented the idea here:
https://github.com/anzeyimana/Pytorch-PCGrad-GradVac-AMP-GradAccum

Nice work! Really appreciate it!
---Original---
From: "Antoine @.>
Date: Sun, Jun 19, 2022 16:37 PM
To: @.>;
Cc: "Han<EMAIL_ADDRESS>Subject: Re: [WeiChengTseng/Pytorch-PCGrad] support for amp? (Issue #15)
I have forked and implemented the idea here:
https://github.com/anzeyimana/Pytorch-PCGrad-GradVac-AMP-GradAccum
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Migrate to Angular 8 and NGRX 8

hey @mehdirajani5 could you please help me updating the unit tests, I already updated all unit tests for ngrx 8 except the effects, just need to fix effects unit tests


Fix #4331

selection_text is a property that stores the value of selected text. Although everything else was cleared, this one remained the same, therefore issues like 4331 happened.

Looks good :+1: Thanks!

Just a minor thing, it's nice to use more descriptive commit names, like clear selection_text when TextInput selection is canceled or something similar, it helps a lot while browsing the commit log, and also when compiling the changelog before releases.

Yeah, I should have named it better. But at least the pr title can be renamed.


Enable TravisCI

(coveralls.io I've already setup)
Somebody with admin rights in react-bootstrap organization,
enable please TravisCI for this project here https://travis-ci.org/profile/react-bootstrap
:cherries:
That's what I see

I just enabled it on travis so it should be good to go now.


cs - implement zip code controller with test

In this PR, we add an endpoint "/api/zipcode/get" that's used to get information about the location of a zipcode.

Closes #3


user-id is None during email verification process

When clicking on the "Verify Email" link sent via email, the user-id parameter in the URL is missing or set to None. This causes the email verification endpoint to fail, as it cannot identify the user.
Steps to Reproduce:

Register a new user and trigger the verification email.
Open the email and click on the "Verify Email" link.
Observe that the user-id in the URL is missing (None).
The endpoint fails to verify the email.

Fix:
Ensured the user-id is correctly assigned before generating and sending the verification email. Moved the email sending logic after the user object is saved in the database to guarantee the user-id is available.


fixing existing issues with DbtTestLocalOperator on_warning_callback

…method
Description
Due to changes in https://github.com/astronomer/astronomer-cosmos/commit/c7a203a0f2125c784d55db87843d7958496242b4 DbtTestLocalOperator _handle_warnings was never triggered.
Related Issue(s)
Closes https://github.com/astronomer/astronomer-cosmos/issues/549
Breaking Change?
I had made a minor change to the DbtLocalBaseOperator - result.output is logged in the execute() method instead of build_and_run_cmd(), shouldn't be a breaking change though.
Checklist

[x ] I have made corresponding changes to the documentation (if required)
[x ] I have added tests that prove my fix is effective or that my feature works

We decided to merge the work and join the efforts in #558


cmd/cgo: use external c files

What version of Go are you using (go version)?

$ go version
go version go1.16.7 linux/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tux/.cache/go-build"
GOENV="/home/tux/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/tux/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tux/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.16"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.16/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.7"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/tux/Documenti/sviluppo/zakutils_go/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2332827378=/tmp/go-build -gno-record-gcc-switches"

What did you do?
in cgo documentation i found "When the Go tool sees that one or more Go files use the special import "C", it will look for other non-Go files in the directory and compile them as part of the Go package. Any .c, .s, or .S files will be compiled with the C compiler. ...."
so i moved my c code from preamble to an external c file
What did you expect to see?
i expected that go build the program without problems, as happens when the code is in the preamble
What did you see instead?
but when i build it doesn't find (link) the functions in the external file
what am I doing wrong? or what I did not understand?
thanks in advance

Please see https://github.com/golang/go/wiki/Questions.


PrepareAccessTokenResponse must be of the type array error

I trying authenticate with oauth2-client, and give this error
 Catchable fatal error: Argument 1 passed to League\OAuth2\Client\Provider\AbstractProvider::prepareAccessTokenResponse() must be of the type array, string given, called in C:\wamp\www\stackexchange\vendor\league\oauth2-client\src\Provider\AbstractProvider.php on line 540 and defined in C:\wamp\www\stackexchange\vendor\league\oauth2-client\src\Provider\AbstractProvider.php on line 711

The code that i used is same of first example in this repository.
Is a bug ? how i can to solve this ?

This is because parseResponse can return a string or array (even though the return typehint is array), but prepareAccessTokenResponse requires an array.
This is something that I addressed in #408, because it should be fine for parseResponse to return a string, and for prepareAccessTokenResponse to receive it. It's possible (even if not according to the spec), for the response to be neither of urlencoded or json, in which case the best we can do is return the string and delegate the parsing to the extending provider.
It's not this library's responsibility to enforce the OAuth2 spec. If we can't parse the result, then forwarding the body string should be okay. The provider can decide what it does with it.
So to fix this, it would require a typehint update, which breaks BC, right?

First things first, @mandado what provider are you using? It's unexpected (but possible) for the parsed access token response to be a string.

@rtheunissen  i use GenericProvider.

@mandado and the service? StackOverflow (guess based on your project dir)?
If you var_dump the value of $response here, what do you see?
Would need to edit the file in /vendor.

yes, i'm trying authenticate with stackoverflow.
var_dump the value  $response this return access_token=mytokenhere&expires=86199

Could you also check the value of $type here? As a bonus, would be good to see all the headers returned. I think you can use $response->getHeaders().

value $type is 'text/plain; charset=utf-8'
value  $response->getHeaders() is array of headers from request.

Looks like SE is not setting the correct response headers.

what is SE ? @rtheunissen

Stack Exchange. :)
If they set the correct headers, the provider would parse the string and use the array as expected.
I sent them a tweet as it should be fixed anyway. The question is how we should handle cases where an access token response body can't be parsed (either due to bad headers or an unexpected encoding).

@rtheunissen i saw in documentation about authentication and says nothing about headers :/

@mandado it's something that they are not doing right; nothing you are doing wrong.

@rtheunissen  ahh yes hehehe. how should I proceed ? wait for an answer about this error in this issue ?

Yeah would need to wait for @ramsey and @shadowhand to decide how we handle cases like these.
For now I'd recommend either forking temporarily or using a temporary edited AbstractProvider.php in your /vendor.
This conditional should pass if their headers were set correctly, so adjust that. You could also just drop the conditional entirely (as well as all the JSON stuff that follows).
Keep in mind that this is not a good solution. It's just temporary so you can get on with developing.

@rtheunissen understand, thanks very much for support :) :+1:

This is still an issue.
This is an intermittent issue, but usually happens after a session timeout.
In this case, I left my browser open overnight, reloaded the page in the morning, and then received this exception.
If I reload the page again after the exception, everything works as expected.
I'm using Silex, running on PHP 5.6.15, Ubuntu 14.04, Nginx, PHP-FPM.
Stack trace
Catchable fatal error: Argument 1 passed to League\OAuth2\Client\Provider\GenericProvider::createResourceOwner() must be of the type array, string given,
called in /vagrant/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 763 and defined in
/vagrant/vendor/league/oauth2-client/src/Provider/GenericProvider.php on line 223
Call Stack
#	Time	Memory	Function	Location
1	0.0001	235784	{main}( )	.../index.php:0
2	0.0250	705536	Silex\Application->run( )	.../index.php:17
3	0.0266	789264	Silex\Application->handle( )	.../Application.php:477
4	0.0383	1002728	Symfony\Component\HttpKernel\HttpKernel->handle( )	.../Application.php:496
5	0.0383	1003584	Symfony\Component\HttpKernel\HttpKernel->handleRaw( )	.../HttpKernel.php:62
6	0.0508	1212728	call_user_func_array:{/vagrant/vendor/symfony/http-kernel/HttpKernel.php:139} ( )	.../HttpKernel.php:139
7	0.0508	1212928	Workshop\Controller\DefaultController->indexAction( )	.../HttpKernel.php:139
8	0.0508	1213056	Workshop\Controller\DefaultController->render( )	.../DefaultController.php:41
9	0.0548	1227072	Pimple\Container->offsetGet( )	.../DefaultController.php:125
10	0.0548	1227152	Workshop\Application->Workshop\{closure}( )	.../Container.php:113
11	0.0648	1405024	League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner( )	.../Application.php:197
12	1.5436	1678688	League\OAuth2\Client\Provider\GenericProvider->createResourceOwner( )	.../AbstractProvider.php:763

Stack trace screenshot: https://www.dropbox.com/s/4hocj5m21tsxuut/Screenshot 2016-01-14 10.18.32.png?dl=0&preview=Screenshot+2016-01-14+10.18.32.png
I'm thinking if we cast the response to an array, it should fix this exception.
I need to investigate more to confirm.
\League\OAuth2\Client\Provider\AbstractProvider::getResourceOwner:761
$response = (array) $this->fetchResourceOwnerDetails($token);

Sorry, just now reading through this thread…
The GenericProvider only works for providers that don't deviate from the OAuth2 specification. If a provider deviates, you'll need to extend AbstractProvider and create your own provider. Take a look at the provider guide for how to do this.
Additionally, maybe a fatal error isn't the best approach for this. Maybe instead of type-hinting the array, we should accept anything and then do the check inside the method and throw a more friendly exception?
Thoughts, @shadowhand?

There's really nothing we can do about SE not providing the correct headers. We might want to throw an exception if no acceptable parsing method is found, instead of just returning the response directly. This would avoid that fatal and place the burden on the server and developer. At least a try/catch can be used to trap the problem.

I think the correct solution here is to create your own provider extending from AbstractProvider, since our GenericProvider can't handle Stack Exchange's non-conforming behavior. You might consider providing your custom Stack Exchange provider as an open source library, and we can link to it from our README.PROVIDERS.md when it is ready.

I am getting this error at $response = $this->getResponse($request), Please help me on this.
\n
\n
    \n
        \n
        An Error Occurred: Not Acceptable\n
    \n
    \n
        Oops! An Error Occurred\n
        The server returned a "406 Not Acceptable".\n
\n
        \n
            Something is broken. Please let us know what you were doing when this error occurred.\n
            We will fix it as soon as possible. Sorry for any inconvenience caused.\n
        \n
    \n
\n

@imranmunawar, please open a new issue and provide some of the code you are using, in addition to the service you are attempting to get a response for. Thanks!


Backport 13689 and 12466

as mentioned https://github.com/dashpay/dash/pull/3486

rebased on develop

rebased on develop and redid the cherry-pick of 12466


Better community communication

You might winkle your nose about this issue because it's non-technical and perhaps not easy to solve. I've been a huge fan of Padrino for a year now and I totally enjoy using it for my web projects. Besides I've posted several articles about Padrino on my web site (workaround.org). But the way that the "community" (Padrino users) is communicating frustrates me a lot.
Many questions are just risen as Github issues (like this one). I don't think that Github is a good idea for discussions. And I have seen no other projects use the issue tracker like that.
Very few questions make it to the Google Groups mailing list. I don't use a GMail account and it has been an adventure for me to even subscribe to the list because Google makes it artificially hard to subscribe for non-Google users. I'm actually subscribed but my last two posts are just gone. Just two posts made it to the list after two days of moderation delay. That's unbearable. If someone  forces me to have a Google email address for that purpose I'd probably not even care for the project at all.
And hardly any questions ever get answered on the IRC channel on Freenode. I myself am joined to the channel and once in a while there a questions coming up but nobody answers. I have essentially given up sending questions myself because all of the 50 channel visitors there seem to be dead. It's like a digital mortuary with just a bot sending out CI messages to zombies who don't read it.
I know that marketing is a hard issue for open-source projects. And I'm hard to convince of a tool or framework but Padrino is so great in my opinion that it deserves to be endorsed and supported properly. And does not only mean frequent patches and updates but helping users get the best of it. If Padrino had been first in the Ruby ecosystem and Rails came next then nobody would seriously use Rails - that's my honest belief. Padrino surely has a smaller community. But then let's help it communicate better, invent things, propose ideas, help each other.
So please let us find a place to support newcomers, discuss ideas, post snippets etc. I'm not sure what the best way is. (I've heard good things of "Discourse".) But a broken Google group and an alienated Github issue tracker is just wrong in my opinion. And I'm starting to become pretty frustrated of these ways of non-communication.
Please don't get this wrong as a plain rant. I'm really willing to help and provide resources if necessary. I just refuse to spend more time fighting against the means of inter-human communication than spending time with the framework I love.
…Christoph

I just got this idea from #neovim IRC channel which has a dedicated bot to releat the messages between Gitter and IRC. They use finnp/gitter-irc-bot. Perhaps it would be good idea to get something similar.

@Quintasan I did it and it's working great. At the others, is it okay to create a padrinobot account on github and gitter for it?

Absolutely OK to create whatever Padrino community channels you can! Thanks.

Closing as discussed enough and non-technical issue.

That's fine, I think gitter is working fine (nearly a mailing-list replacement).


Morning session: peer-to-peer code reviews

[ ] You have done wonderfully well, kindly change the color of the error message to red and also reposition it to be immediately after email input box.

Thank you error resolved


winthing.ini \ whitelist.ini not being applied

Both files are in the same directory as the exe\jar and contain
asdrufale = "c:\windows\system32\calc.exe"
a payload to winthing/system/commands/run with [asdrufale] yields:
23:44:46 ERROR [MQTT Call: WinThing/com.fatico.winthing.messaging.Engine] Error while processing system/commands/run(["asdrufale"]): Could not run command: asdrufale
What's worse is that whatever i put into that file seems to get ignored, leaving full execution control upon the windows machine (as default behavior)

Hi - even if it's late after your question. I had the same issue.
The .ini file is working fine. You need to transport the argument in another way (as JSON object with "[value]"):
e.g. (my openhab config)
mqttActions.publishMQTT("winthing/system/commands/run", "[steam]")


Datatables does not work with Infyom in laravel 8

Datatables does not work with Infyom. I use laravel 8, and I followed these links to install datatables with laravel and infyom
https://www.infyom.com/open-source/laravelgenerator/docs/8.0/generator-options
https://www.infyom.com/blog/how-to-use-datatables-in-infyom-laravel-generator
https://github.com/yajra/laravel-datatables
https://github.com/yajra/laravel-datatables-buttons
https://github.com/yajra/laravel-datatables-html

What is the exact problem or error that you are facing?

I found the solution
It was in the table.blade.php
use
@section('third_party_scripts')
    @include('layouts.datatables_js')
    {!! $dataTable->scripts() !!}
@endsection

instead of
@push('third_party_scripts')
    @include('layouts.datatables_js')
    {!! $dataTable->scripts() !!}
@endpush

Create the new database from the scratch 👍🏻
On Wed, 17 Mar 2021, 1:14 pm aymen mohammed, @.***>
wrote:

Closed #949 https://github.com/InfyOmLabs/laravel-generator/issues/949.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/InfyOmLabs/laravel-generator/issues/949#event-4468588709,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFOMVUWZ4YO623XBUX6N3IDTEBMWZANCNFSM4ZIUHI5A
.


[Removal]: Jolly Fern Beaver

Hotspot Name
Jolly Fern Beaver
Hotspot b58 Address
11JBdtGBx2UMnosCwm6XqmA8aXrdLhuJdjXTDM9CELeYftCZLUa
Discord Handle
ukfab#3739
Hotspot Manufacturer
senseCAP
Removal Reason
I purchased 21 Sensecap miners from a secondhand seller thru Fbook. Seller was migrating to US and those miners were not fit for USA region hence he wanted to sell it quick and at reasonable price. He was very convincing and there was no obvious reason for me to doubt.  Ofcourse there was some delays but he delivered all miners. At the time of purchase I thought it was plug and play thing. All looked legit and right.  so I brought them and paid in full ( see bank Transaction). Seller assured me that he will help me set up and it is easy to understand.  After the setup provess and installing, I started looking to how to use helium and went to exploere and it was a shock to see that  all HS are on denylist. I when thru the set up and installed antennas too but as there was no earning happening so I looked further into it and realised that I am fooled and now seller is not responding at all.  would request you to removed these HS from denylist. I am happy to give evidence that each of the HS is physically insta
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
Physical image of miner and Antenna

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


Log in button should read "Log in"

"Submit" reads kind of odd to me. From what I've seen "Log in" seems more common on web apps I've seen.

Similarly I think this button should read "add" rather than submit.

(this is the modal when editing the tags of a draft submission)


cherrypick cherrypick to Reserve some memory for use by other par…

cp #27800  to fix schema change failure

run buildall


treewide: use nativeBuildInputs with runCommand instead of inlining

Description of changes
This makes cross-compilation not only easier, but possible, as most of these derivations didn't reference the packages correctly to allow the binaries to run on the build systwm.
This is based off 26f704b545838084e334f37d434a648c0c564ffd (#206775).
After this was merged, we noticed the install tests weren't pulling in all the necessary dependencies for a system build. This has happened in the past, but nothing obvious stands out when examining this change.
To summarize: this is because nativeBuildInputs always picks the dev output of a given derivation. This never ocurred for the other packages, as they either had a bin output that was specified, or had no dev output at all.
The exception to this is Nix, which has an out output with its binaries, and a dev output. So, when using nativeBuildInputs, nix.dev was referenced instead of nix.out, which the test VM's store doesn't contain.
In addition to this fix, I've cleaned up the original commit a bit. Specifically, I:

Removed usages of with pkgs if it wasn't already in use in the derivation.
Removed unrelated formatting changes.
Removed an unrelated move from runCommand to runCommandLocal in nixos/modules/installer/tools/nixos-build-vms/build-vms.nix.

Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux, tests.installer.simpleUefiSystemdBoot + tests.step-ca
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

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

[x] Fits CONTRIBUTING.md.

Happy to discuss any of the changes to the original change that aren't the nix -> nix.out fix.

@ofborg test installer.simple


fix string env vars without quotes

Pull Request Test Coverage Report for Build 415773227

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 58.164%

Files with Coverage Reduction
New Missed Lines
%

pkg/integrations/v4/logs/cfg_watcher.go
4
67.5%

Totals

Change from base Build 415655853:
-0.003%

Covered Lines:
11388

Relevant Lines:
19579

💛  - Coveralls


Add symbol kind or symbol tag to express that some is local to a function

Issue Type: Feature Request
It's great to see filtering of the outline by type - outline.showVariables in particular makes it much more useful for navigation by removing the clutter of listing every individual variable.  So thanks!  However, I'd still like the ability to hide function locals (while still showing class or module level functions), specifically callbacks.
For example, I have this function in my project:
function categoryCompletions(concreteCompletions: string[]): string[] {
    return concreteCompletions.map((c) => c.split('.'))
                              .filter((bits) => bits.length >= 2)
                              .map((bits) => bits[1])
                              .distinct()
                              .map((c) => `bundle.${c}`);
}

As I've configured the Outline view to hide variables, I'd like this to appear as a single entry with no children.  Instead, what I see is this:

It doesn't take many functions like this before the Outline view becomes so busy that I can't easily find my top-level items.  And to me, those callbacks aren't really functions - they're arguments to the map, filter etc. calls which happen to be of function type.  It would make sense if they were large named functions that were part of the overall structure of the function... but in this case at least they are not...
VS Code version: Code 1.40.0 (86405ea23e3937316009fc27c9361deee66ffbf5, 2019-11-06T17:02:13.381Z)
OS version: Windows_NT x64 10.0.18912

requires new API and extensions to adopt it

@itowlson Renaming this issue might make it more noticeable. Something along the lines "Filter out callbacks from Outline" would be good.


Dynamic hiding of Cameras

Is your feature request related to a problem? Please describe.
My use case is a baby monitor, but also a doorbell camera from time to time.
Situation 1: When only one child is asleep, I would like to only show that camera (camera1).  Any triggers associated to camera2 are ignored.
Situation 2: Two kids are asleep, two cameras (camera1 and camera2) in carousel with associated triggers.
Situation 3: we are expecting someone so we just want to show the doorbell.
Describe the solution you'd like
Refer situations above for context. If the card supported “template” hide, then I can link each camera to a binary sensor (and do everything else to in automations controlling said binary sensors).
Describe alternatives you've considered
Current “solution” is having 4 almost identical frigate cards:

camera1
Camera2
Camera1&2
Doorbell

Set up to match the 3 scenarios, with conditional formatting for the binary sensor states. The issue is that when scenarios change on lower performances devices the streams need to be re-established (as far as I can tell) which causes some delay but also crashing of cast devices (nest hub for example).
Additional context
Add any other context or screenshots about the feature request here.
if anything is unclear I can add more :)

Update. I found and worked out how to achieve this with the overrides function and “delete” in version 6. I did note a minor mistake in the new docs (link below). It states “cameras[2]” will delete the second camera, however, this should read third camera, or should be “cameras[1]” due to indexing from zero.
https://card.camera/#/configuration/overrides
For anyone else trying to achieve this, here is a simple example:

‘’’yaml
type: custom:frigate-card
cameras:
- camera_entiry: camera.c1
- camera_entiry: camera.c1
overrides:
- conditions:
- condition: state
state: ‘on’
entity: input_boolean.test_entity
delete:
- cameras[0]
‘’’


evy: Add splash of trig sample

@fcostin kindly donated this sample to the project using "a splash of
trig". I've user acceptance tested it with my daughter and she loved
it.

Do new samples need to be added into frontend/courses/courses.json before they show up in the frontend?

@fcostin - yes, forgot to commit it 🙈 - fixed, thanks.
Here it is: https://evy-lang--110-kz6wxu5z.web.app/#splashtrig - so cool to look at.
FWIW, you can also refer to any code via URL hash: #source=URL, e.g. this Barnsley fern:
https://evy.dev/#source=https://gist.githubusercontent.com/juliaogris/5b8119d0584e3e5c234b2de2e8af37bd/raw/2fb1c8509ca87229e13fc1cfe2f07963ab678dca/bansleyfern.evy


Fixed CURL header escaping

There's another problem with the shell escaping (Also see #372) inside buildCurlCommand().
Curl headers are being escaped as [-H 'key:' 'value'] instead of [-H 'key: value'].

Good catch, thanks!
I'm going to try to get some tests added for this is if I get some free cycles, so we at least assert on the expected output here.


A more compact format

This PR implemented following changes:

allow dict to be formatted like multiline-compact list. Need multiline_compact_dict = True to enable. #18
allow multiline-compact list to have non-inline items in it, there will be a new line before and after such items. I made it a default behaviour, but maybe it's better to add an option to enable it (this does not break any existing testcase anyway) #19
let format_list_multiline_compact return False if all elements starts from a new line. This allow such list to be recognized by format_table_list_dict #20

Much appreciated. Thanks for all the work on this. I am also wondering whether the inline test in format_list_inline (that can trigger a warning) is redundant. I've not been able to trigger it with any example JSON.

Just recognized that there exists another same warning in format_list_inline. That warning message should also be removed.


🍒[5.9][Executors] Make move to ExecutorJob binary compatible; deprecate Job

Description: In https://github.com/apple/swift/pull/65038 we renamed Job to ExecutorJob and introduced a typealias. We knew this would be binary breaking however we hoped the change would not cause problems since noone had adopted this new API yet -- we were wrong.
This change introduces a binary compatible way to introduce ExecutorJob while keeping Job as deprecated and hopefully we'd be able to remove it still.
Diagnostics were adjusted to handle the new type and push developers towards the right implementation method.
Risk: Medium, this de-risks the binary compat break; The logic in diagnosing methods had to be carefully adjusted.
Review by: @DougGregor @airspeedswift @hborla
Testing: CI Testing, tests covering all three co-existing enqueue methods are added
Original PR: https://github.com/apple/swift/pull/65455
Radar: rdar://108772378

@swift-ci please test

rdar://108772378

@swift-ci please test

@swift-ci please test

I don't get why this is crashing like this in a test where the crash is EXPECTED.
Linux CI:
[ RUN      ] AssumeDistributedActorExecutor.remote actor reference should have crash-on-enqueue executor
stdout>>> | assign id: ActorAddress(address: "<unique-id>") for NormalWorker
stdout>>> | actor ready: main.NormalWorker
stdout>>> | resolve ActorAddress(address: "<unique-id>") as remote // this system always resolves as remote
stderr>>> Distributed/DistributedDefaultExecutor.swift:29: Fatal error: Attempted to enqueue Job (ExecutorJob(id: 1)) on executor of remote distributed actor reference!
stderr>>> Current stack trace:
stderr>>> 0    libswiftCore.so                    0x00007ff0e07a6f40 _swift_stdlib_reportFatalErrorInFile + 113
stderr>>> 1    libswiftCore.so                    0x00007ff0e047e592 <unavailable> + 1451410
stderr>>> 2    libswiftCore.so                    0x00007ff0e047e3ac <unavailable> + 1450924
stderr>>> 3    libswiftCore.so                    0x00007ff0e047d2e0 _assertionFailure(_:_:file:line:flags:) + 372
stderr>>> 4    libswiftDistributed.so             0x00007ff0e0a5f16e <unavailable> + 69998
stderr>>> 5    libswift_Concurrency.so            0x00007ff0e02ce45e <unavailable> + 123998
stderr>>> 6    libswift_Concurrency.so            0x00007ff0e02f6d57 <unavailable> + 290135
stderr>>> 7    libswift_Concurrency.so            0x00007ff0e02f62b6 <unavailable> + 287414
stderr>>> 8    libswift_Concurrency.so
--
Command Output (stderr):
--
/home/build-user/build/buildbot_linux/swift-linux-x86_64/test-linux-x86_64/Distributed/Runtime/Output/distributed_actor_executor_asserts.swift.script: line 5: 31259 Aborted                 (core dumped) /usr/bin/env LD_LIBRARY_PATH='/home/build-user/build/buildbot_linux/swift-linux-x86_64/lib/swift/linux' /home/build-user/build/buildbot_linux/swift-linux-x86_64/test-linux-x86_64/Distributed/Runtime/Output/distributed_actor_executor_asserts.swift.tmp/a.out

Which is the expected failure, from local dev:
[ RUN      ] AssumeDistributedActorExecutor.remote actor reference should have crash-on-enqueue executor
stdout>>> | assign id: ActorAddress(address: "<unique-id>") for NormalWorker
stdout>>> | actor ready: main.NormalWorker
stdout>>> | resolve ActorAddress(address: "<unique-id>") as remote // this system always resolves as remote
stderr>>> OK: saw expected pre-crash message in "Distributed/DistributedDefaultExecutor.swift:29: Fatal error: Attempted to enqueue ExecutorJob (ExecutorJob(id: 1)) on executor of remote distributed actor reference!"
stderr>>> Current stack trace:
stderr>>> 0    libswiftCore.dylib                 0x00000001049740d0 swift_reportError + 112
stderr>>> 1    libswiftCore.dylib                 0x0000000104a0f4a8 _swift_stdlib_reportFatalErrorInFile + 116
stderr>>> 2    libswiftCore.dylib                 0x0000000104628e5c closure #1 in closure #1 in _assertionFailure(_:_:file:line:flags:) + 124
stderr>>> 3    libswiftCore.dylib                 0x00000001046292b0 specialized String.withUTF8<A>(_:) + 164
stderr>>> 4    libswiftCore.dylib                 0x0000000104628030 _assertionFailure(_:_:file:line:flags:) + 224
stderr>>> 5    libswiftDistributed.dylib          0x0000000102b82028 specialized DistributedRemoteActorReferenceExecutor.enqueue(_:) + 380
stderr>>> 6    libswift_Concurrency.dylib         0x00000001030acd00 _swift_task_enqueueOnExecutor + 84
stderr>>> 7    libswift_Concurrency.dylib         0x00000001030de868 swift::AsyncTask::flagAsAndEnqueueOnExecutor(swift::ExecutorRef) + 356
stderr>>> 8    libswift_Concurrency.dylib         0x00000001030dcf30 swift_task_switchImpl(swift::AsyncContext*, void (swift::AsyncContext* swift_async_context) swiftasynccall*, swift::ExecutorRef) + 372
stderr>>> 9    libswift_Concurrency.dylib         0x00000001030dbd48 swift::runJobInEstablishedExecutorContext(swift::Job*) + 132
stderr>>> 10   libswift_Concurrency.dylib         0x00000001030dcbe0 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 80
stderr>>> 11   libdispatch.dylib                  0x000000019c5de880 _dispatch_main_queue_drain + 756
stderr>>> 12   libdispatch.dylib                  0x000000019c5de844 _dispatch_main_queue_callback_4CF + 44
stderr>>> 13   CoreFoundation                     0x000000019c89fc78 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
stderr>>> 14   CoreFoundation                     0x000000019c85cce0 __CFRunLoopRun + 1992
stderr>>> 15   CoreFoundation                     0x000000019c85c328 CFRunLoopRunSpecific + 612
stderr>>> 16   CoreFoundation                     0x000000019c8e1580 CFRunLoopRun + 64
stderr>>> 17   libswift_Concurrency.dylib         0x00000001030e1cdc swift_task_asyncMainDrainQueueImpl() + 36
stderr>>> 18   libswift_Concurrency.dylib         0x00000001030e1c84 swift_task_asyncMainDrainQueue + 72
stderr>>> 19   a.out                              0x0000000102adebd0 main + 140
stderr>>> 20   dyld                               0x000000019c42766c start + 2236
stderr>>> OK: saw expected "crashed: sigtrap"
[       OK ] AssumeDistributedActorExecutor.remote actor reference should have crash-on-enqueue executor
AssumeDistributedActorExecutor: All tests passed

--

Maybe it's just in one of the configurations we test here hmmm

@swift-ci please test Linux

@swift-ci please test and merge


Use of undeclared type 'SQLConnectable'

It looks like the update to use 'SQLConnectable' has broken many of the DB providers. This affects SQLite, Postgres, Mysql, and their Fluent Packages as well.
.build/checkouts/sqlite.git-4860272343164727196/Sources/SQLite/SQL/SQLiteDropIndex.swift:38:11: error: use of undeclared type 'SQLConnectable'
extension SQLConnectable where Connection.Query == SQLiteQuery {

.build/checkouts/postgresql.git-4716102030978972592/Sources/PostgreSQL/SQL/PostgreSQLDropIndex.swift:38:11: error: use of undeclared type 'SQLConnectable'
extension SQLConnectable where Connection.Query == PostgreSQLQuery {

@JamesCoonce make sure you have the latest versions of the providers by running swift package update - they should all work


add option to specify css className

The only downside is that overriding the width or height via css will not work correctly (mention in documentation?)
Default is currently that it doesn't add any class when not specified.

Apologies for not responding to this forever. I didn't have notifications turned on for this repository.
If you're still interested in this, could you change the property name to just class and mention the feature in the readme?

@marijnh No problem, had forgotten about it myself ^^
I made the requested changes.


Trying to get the user chosen from a list

Describe the bug
trying to get the user selected from a list
To Reproduce
Steps to reproduce the behavior:
`#!/bin/bash
IBM_NOTIFIER="/usr/local/bin/IBM Notifier.app/Contents/MacOS/IBM Notifier"
USER_LIST=($( dscl . -list /Users | grep -v "^_" | grep -iwv "^daemon" | grep -iwv "^nobody" | grep -wv "^root" | grep -wv "^it" | grep -wv "^userbackup" | grep -wv "^temp_jssroot" ))
USER_SELECTION=($("$IBM_NOTIFIER" -type popup -bar_title "$TITLE" -icon_path "$SN_IMAGE" -always_on_top -silent -subtitle "Choose the account you wish to create a new login keychain:" -accessory_view_type dropdown -accessory_view_payload "/list "${USER_LIST[@]}" /selected 0"))
echo $?
exit 0`
Expected behavior
I thought it would echo the user chosen but it returns 0
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: [e.g. macOS 14.2.1]
Project version [e.g. 3.0.3]

Additional context
Add any other context about the problem here.

Hi @mrmte. Yes the accessory view return the index of the selected item in the source array. Just using echo "${USER_LIST[$?]}" should work for you.

brilliant thanks very much :)


[WIP] Add lateral join for Postgres adapter.

The current code supports lateral joins like:
query =
  Game
  |> join(:inner_lateral, [g], gs in fragment("SELECT * FROM games_sold AS gs WHERE gs.game_id = ? ORDER BY gs.sold_ON LIMIT 2", g.id))
  |> select([g, gs], {g.name, gs.sold_on})

[debug] QUERY OK db=61.6ms
SELECT g0."name", f1."sold_on"
FROM "games" AS g0
INNER JOIN LATERAL (SELECT * FROM games_sold AS gs WHERE gs.game_id = g0."id" ORDER BY gs.sold_ON LIMIT 2) AS f1 ON TRUE []

I created a small app with the instructions required to test these changes locally.

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

For reference: this fixes #1425

Are lateral joins supported using keywords? Or only with expressions?

Are lateral joins supported using keywords? Or only with expressions?

Both.

Hi, lateral join can be executed only using fragment? Can I use subquery?

@ivanovaleksey I don't think so since subquery doesn't let you use alias from the main query IIRC


Support for Tizen 4.0

The Samsung Galaxy watch, from only two years ago, still uses Tizen 4.0. Could this also be supported?

The ecore_wl2 APIs that are currently being used by the embedder are not supported by Tizen 4.0 which only supports ecore_wl. Porting with ecore_wl APIs didn't go very successfully when we tried two months ago. We'll continue to find the way to run Flutter on Tizen 4.0 devices.
cc @xuelian-bai @xiaowei-guan

Thanks for the quick reply! I hope you can find a way, because that would be really nice to have.

I'm glad to hear that you were actually trying to port it by yourself! I'll let you know if anything is found soon.

Sorry for the delay!
#29 has landed and flutter-tizen is now compatible with Tizen 4.0. You may try out by updating flutter-tizen to the latest (git pull) although the new engine is not very stable yet.

That's great! I've tried it out and it seems to work well. Thanks for prioritising this - I've been hoping for Flutter on Tizen since I started using it!


[Feature Reqest] Add Google+ integration

Hi Team ,
I just want to know in Bot Framework Google+ integration is possible like Facebook, Slack etc.
Once Google+ interrogation possible.could you provide some documentation for the same.
Please help me asap.

@RaoVenka For reference, are you using .NET or Node SDK?

using .NET

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.
From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here:
https://github.com/microsoft/botbuilder-v3/issues
For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here:
https://github.com/microsoft/botframework-services/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


DL4J: Unexpectedly large GC-managed memory for EMNIST iter + model

https://gist.github.com/AlexDBlack/d85b54e0fbfdf2d45e95cd40d8f076d4
No OOM or anything, it runs fine, it's just that the memory use is far from flat (which it should be, for this config).
Here's task manager on 32GB system:

Note that's about 10GB between peak and minimum
Note it's not primarily heap memory that is being deallocated here:

Blocked by: https://github.com/eclipse/deeplearning4j/issues/8062

https://github.com/SkymindIO/deeplearning4j/pull/200


enable receive messages

What are you trying to accomplish?
The RSpec rule for ReceiveMessages is disabled on some files.  This pull request enables that rubocop rule for all files
Anything you want to highlight for special attention from reviewers?
Be aware of bad autocorrect fixes that I missed in reviewing the changes.
How will you know you've accomplished your goal?
The rubocop rule will work properly across the ecosystem.
Checklist

[x] I have run the complete test suite to ensure all tests and linters pass.
[x] I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
[x] I have written clear and descriptive commit messages.
[x] I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
[x] I have ensured that the code is well-documented and easy to understand.

Do we know after enabling it based on the comment at line no:191 if there is any issue?

I did in fact run al of the rspec tests and they did work.


fix: Drawer open()

fix: focus cycles through Drawer
test: added a focus test
test: checking last focusable, this might not make sense
fix: move focus back to trigger on close()
fix: check if closer isn't in drawer
test: added tests but removed 1
test: all tests fail
fix: another done added to outside func

nice working fraggle in there.

I should find a way to add "rock" to it

ok I can't fix these. I went back to the old tests (which also still fail). If the only way I can get my fixes through is to delete all tests then I will. There is NO way to make a random Javascript call to Drawer.open() do the right thing on a web page. I can't fix that. The documentation should state either "never call open()" or "if you call open(), add in all the a11y stuff manually yourself"

Our unit tests should not be testing stuff that is going on with the DOM nor should they be testing things which rely on browser events.  Our unit test apparatus isn't intended to support that kind of thing.  Our tests should be testing instantiation and data flow (e.g. getters and setters) within a component, not DOM interactions within a component.  If these methods cannot be executed directly via JavaScript, then they should not be exposed.  If they must be exposed, then we have to perform some sanity checks to alert developers (e.g. window.alert) when the functions are invoked incorrectly.  We can then test those sanity checks using our unit tests.  If these tests cannot be refactored, then go ahead and get rid of them.  We can alert QA to write Selenium tests to handle your new functionality.

These are just the old original tests.
On my branch, something calls oDrawer.close() 3 times.
On the master branch, something calls it over 30 times. Doing it 30+ times passes. Doing it 3 times fails.

Coverage increased (+1.5%) to 70.659% when pulling c489fcfa542252e2b47d78faf6fec07ae5bbd640 on DES-367 into 5d562456104dc1490e82224ed18303d1d67fd2eb on master.

sounds good @StommePoes , we will add selenium tests for these.

Coverage increased (+1.5%) to 70.659% when pulling f76f45c2b6f7be67e645dbc00d31da5cafac94f8 on DES-367 into 5d562456104dc1490e82224ed18303d1d67fd2eb on master.

Coverage increased (+1.2%) to 70.414% when pulling eca04faf88ae78d8b15d1196ec75339ee755fc9d on DES-367 into 5d562456104dc1490e82224ed18303d1d67fd2eb on master.

Coverage increased (+0.2%) to 69.364% when pulling 5de0b7546f327d33dac0d181c9a0503f4dc3facf on DES-367 into 5d562456104dc1490e82224ed18303d1d67fd2eb on master.

Code looks good. Tests are written and reviewed. Good to merge, unless others don't have any comments.

LGTM

Coverage increased (+0.2%) to 69.364% when pulling 06f9ac3c993616339ccab16fca59678d264e3d52 on DES-367 into 5d562456104dc1490e82224ed18303d1d67fd2eb on master.


Entity/Hologram Ownership

Things such as 'holograms' aren't having their ownership set correctly. This can lead to some permissions issues for non-superadmin players in certain domains where the prop-protect goes a bit odd.
INP server allows things such as setColour on a N/A entity, SF doesn't complain, the PP ( Nadmod ) then informs the person executing said code that they now own that 'prop'.
It's been reported that on other servers SF will just give a permissions error when trying to set the colour of a hologram whose owner is N/A.
I've hunted through most of the spawnmenu, SENT spawning stuff from Garrysmod GitHub.
Here's some code:
local ent = ents.Create( "prop_physics" )
-- Change Player index to whatever yours is
ent:SetPos( Player(4).PlayerTrace.HitPos )
ent:SetAngles( Angle( 0, 0, 0 ) )
ent:SetModel( "models/props_c17/FurnitureWashingmachine001a.mdl" )

ent:Spawn()

if IsValid( ent ) then
    -- https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/commands.lua#L613
    ent:SetCreator( Player( 4 ) )

    -- https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/includes/extensions/entity.lua#L53
    ent:SetVar( "Player", Player( 4 ) )

    -- This was a guess based on the above, similar to the .Owner deprecation.
    ent:SetVar( "Owner", Player( 4 ) )
end

-- This is deprecated, but still supported. Even mentioned within official source
-- https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/includes/extensions/entity.lua#L30
ent.Owner = Player( 4 )

-- Some undo stuff
undo.Create( "SomeProp" )
    undo.AddEntity( ent )
    undo.SetPlayer( Player( 4 ) )
undo.Finish()

-- THIS
-- This is the single line which turns owner from N/A -> PlayerName ( eg Radon )
-- This alone, none of the above things, even though I'm sure they 'help'
-- Tested in NADMOD singleplayer.
Player( 4 ):AddCleanup( "props", ent )

With the above code a prop_physics will spawn with the correct owner set, according to NADMOD mouseover HUD.
Using GCompute, Entity( 624 ) outputs thus:
Entity (624)
{
    OnDieFunctions = { --[[ table: MEMORY ]] },
    Owner = player.GetByID (1) -- [[ STEAM_0:0:0, INP | Radon    ]],
    Player = player.GetByID (1) -- [[ STEAM_0:0:0, INP | Radon    ]],
    SPPOwner = player.GetByID (1) -- [[ STEAM_0:0:0, INP | Radon    ]],
    m_PlayerCreator = player.GetByID (1) -- [[ STEAM_0:0:0, INP | Radon    ]],
}
-- 5 total entries

Here:

Owner comes from the ent.Owner = Player( 4 ) command
Player comes from the ent:SetVar( "Player", Player( 4 ) ) command
m_PlayerCreator comes from the ent:SetCreator( Player( 4 ) ) command
SPPOwner I presume comes from the ent:AddCleanup( "props", ent ) command, which I again presume is caught by the PP system NADMOD.

Even when spawning props 'normally' through the spawn menu, the PP HUD overlay for Owner displays N/A briefly, before selecting the correct owner INP | Radon.
PS - Apologies for any typing mistakes, copy/paste crashes me at the moment, all code output is hand-written from reference.

http://ulyssesmod.net/archive/CPPI_v1-3.pdf

Thanks @Divran :)

The problem is, not all prop protection addons are CPPI compliant. It is a good idea to use the CPPI mechanisms if available, but maybe we should have a fallback for non-compliant addons.
(On the other hand... maybe they should just get a proper PP...)

Fixed by #360


Update "Welcome to LBRY" splash screen

Drop the second paragraph about syncing with blockchain.
Add a graphic or animation of some kind (maybe @NetOperatorWibby @robvsmith or @jsigwart can help with this)

@NetOperatorWibby @jsigwart  What do you think we could do here?

@akinwale are you actively working on this? If not, can you unassign and return to groomed?


Cookie Warning

Sipa will need a cookie warning.
Feel free to work on this issue.

This might be helpful: https://github.com/cfenollosa/eu-cookie-law

I’m not really interested in fixing this by myself (not much spare time currently). Seems like @sgeisler is willing to look into this. The issue is also a low hanging fruit and an easy entry point into the development of Sipa.

Possibly we do not need such a cookie warning at all. See #292 for more details.
Someone really should read the legal documents to give a concrete answer ;-P

I don't think we actually need a cookie warning at all. See here (German).

Closing as no longer relevant.


MTL-1654 Add NCN Documentation

Summary and Scope
Summarize what has changed. Explain why this PR is necessary. What is impacted? Is this a new feature, critical bug fix, etc?
This adds NCN specific documentation to the LiveCD and NCN themselves.
This is not installer documentation.
Is this change backwards incompatible, backwards compatible, or a backwards compatible bugfix?
In general, yes. This provides documentation that would suffice for CSM 1.2 aside from page 010.
Issues and Related PRs
List and characterize relationship to Jira/Github issues and other pull requests. Be sure to list dependencies.

Resolves [MTL-1654](issue link)
Merge after https://github.com/Cray-HPE/dracut-metal-mdsquash/pull/28

Pull Request Checklist

[ ] Version number(s) incremented, if applicable
[ ] Copyrights updated
[ ] License file intact
[ ] Target branch correct
[ ] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[ ] HPC Product Announcement prepared, if applicable

I'd like to also add dracut-mdsquash=1.11.0 once it's ready, that PR is in the description of this PR.


egui_plots: simplifying (complex) lines with Ramer–Douglas–Peucker might save a lot of triangulation/overdraw time

A HN commenter suggested looking at the Ramer–Douglas–Peucker polyline simplification algorithm. For very big lines that generate lots of triangulation/overdraw load, that might be a very neat optimisation. We'd need to run it with e.g. 0.1px tolerance, and cache the result against the zoom level.

I still think all you need is journal.pone.0094694.pdf
Ramer–Douglas–Peucker is very expensive algorithm. it is good for random cartography geometry.
if you have sorted time series data you can just downsample chunks each frame, even without caching. its ok even with 1-to-100 point.
I even tesselate lines in my own - by adding min-max trapezoids to mesh


Fix GPUSpringTransition

For #3574
Broken due to default callbacks removed from normalizeTransitionSettings in #3621
Change List

Generalize Transition class, remove duration and easing references
Store transition settings in dedicated object in Transition instance
Add end method to Transition
Use Transition class to handle callbacks in GPUSpringTransition
Align code style in GPUSpringTransition and GPUInterpolationTransition

Coverage increased (+0.02%) to 79.922% when pulling a3a972da0a0ac63c8c135f06cd49353566ada8ac on x/gpu-spring-transition-fix into d7d413276047af3a4ccd642ae665100950b0aa82 on master.

On an abstract level, I think the GPU*Transition classes should be subclassed from Transition. Their current structure already closely follow that of Transition. As discussed offline, the ownership of these instances is not streamlined, and we will need to address the issue as a whole after the current milestone.


[BEAM-7755] adding support for nested rows and arrays in BigQuery to Beam row conversion

Example implementation of repeated record conversion from BigQuery to beam row through avro. Sorry this is my first contribution so I am a bit new to this. I wanted to put this up as this worked on a test table with a REPEATED RECORD that I tried on and maybe just put it on the radar?
R: @lukecwik
R: @chamikaramj

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Could you add a test, which will better illustrate what this change is about?
I think you are trying to handle the case of ROW<ROW<ROW<..>>>

@amaliujia hey I added a test. I will clean it up later but I wanted to have it done to show you the problem. It is the case you are talking about and that test fails without the change I made. I also want to point out that all the tests in that file there use a certain toBeamRow method and the one I found this issue on did not have tests for. Is the toBeamRow method that goes through Avro not recommended?

Thanks to both of you for the feedback! I updated my branch with some changes and I added one more test as well.

thanks!! @kennknowles


refactor: use metal-go for the BGP neighbors data source

This updates the device BGP neighbors data source to use metal-go instead of packngo.  There were no tests for the BGP neighbors data source, so those are added here as well.

Codecov Report
Patch coverage: 50.00% and project coverage change: +0.07% :tada:

Comparison is base (c79e84c) 59.75% compared to head (9311470) 59.83%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #368      +/-   ##
==========================================
+ Coverage   59.75%   59.83%   +0.07%
==========================================
  Files          98       98
  Lines       19750    19750
==========================================
+ Hits        11802    11817      +15
+ Misses       7654     7633      -21
- Partials      294      300       +6

Files Changed
Coverage Δ

equinix/data_source_metal_device_bgp_neighbors.go
79.68% <50.00%> (-17.97%)
:arrow_down:

... and 8 files with indirect coverage changes

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

Codecov Report
Patch coverage has no change and project coverage change: +45.78% :tada:

Comparison is base (973fdaa) 13.73% compared to head (b913082) 59.52%.
Report is 2 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #368       +/-   ##
===========================================
+ Coverage   13.73%   59.52%   +45.78%
===========================================
  Files           8       98       +90
  Lines         910    19750    +18840
===========================================
+ Hits          125    11756    +11631
- Misses        770     7696     +6926
- Partials       15      298      +283

Files Changed
Coverage Δ

equinix/data_source_metal_device_bgp_neighbors.go
71.09% <0.00%> (ø)

... and 89 files with indirect coverage changes

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

New test passing in CI: https://github.com/equinix/terraform-provider-equinix/actions/runs/6226632182/job/16899555410#step:5:2583

New test passes: https://github.com/equinix/terraform-provider-equinix/actions/runs/6264160822/job/17012391758#step:5:3636


Installing the package fails

Running:
go get -u -v github.com/obsidiandynamics/goharvest

produces:
[No write since last change]
go: trying upgrade to<EMAIL_ADDRESS>go: trying upgrade to<EMAIL_ADDRESS>go: trying upgrade to<EMAIL_ADDRESS>go: trying upgrade to<EMAIL_ADDRESS>go: github.com/obsidiandynamics/goharvest imports
        gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka: cannot find module providing package gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka

I encounter the same error.


V-79061 - Export-DbsDbAuthorizedUser

Export DB users that are valid

Just need this instead:
Get-DbaDbUser -SqlInstance sql2016 | Select SqlInstance, Database, Name, Login, LoginType, AuthenticationType, HasDbAccess, DefaultSchema | Export-Csv -Path C:\temp\authorized.csv -NoTypeInformation
Is that worth a command? Not so sure.


the dein not work, after :call dein#check_clear.

Warning:  I will close the bug issue without the minimal init.vim and the reproduce ways.
Problems summary
I want to use    "fatih/vim-go" instead of "Blackrush/vim-gocode",
so I change my vimrc from
    call dein#add("Blackrush/vim-gocode")

to
    "call dein#add("Blackrush/vim-gocode")
    call dein#add("fatih/vim-go")

I then :call dein#check_clear()(I was thought this is the way to clean unused plugin).
after that, the nvim seems not load any plugin at all.
I do not know what to do now.
Environment Information (Required!)

dein.vim version(SHA1):  5bbff63c09126580ed1ef0df8ed2496d4c0fee82 Shougo/dein.vim (1.0-23-g5bbff63)

OS:  mac os 10.11.6 (15G1217)

Vim/neovim version: NVIM v0.2.2

I make it work by :call dein#recache_runtimepath(), the doc save me.

OK


series automatically download

Hello,
I wonder if there is a possibility to load the other series automatically?
Because when we play a series of images in the viewer, it does not automatically load the following series.
Load all the series automatically

Sounds like you're talking about prefetching. I don't think we have a setting for that. You can try the Prefetch settings:
https://github.com/OHIF/Viewers/blob/33755f7b8b92e33dd45974315fb6c7fe779df8f8/Packages/ohif-servers/both/schema/servers.js#L212
https://github.com/OHIF/Viewers/blob/e55e2ad05ad784ce3899378d438fbc198e6cf2da/StandaloneViewer/SampleClientOnlyBuild/index.html#L23


How to deploy SL in a bare-metal way rather than docker?

In many use cases, the non-root user has no access to docker. So is there any bare-metal way to deploy APLS server, spire-server, swarm learning, and swarm network node?
Thank you!

Hello,
Swarm Learning in Bare metal way is not supported.
Non root user can access Docker by having user ID added to Docker group. Refer FAQ Do you need sudo/root privileges to run Swarm Learning?.
Resources - 16. Manage Docker as a non-root user
Please try this approach.

Hello @RadhakrishnaJ,
Thanks for your advice! I want to know the docker deployed by non-root users takes advantage of the NVIDIA GPU? It seems that installing the docker with GPU support needs root privilege.

Hello,
Swarm container provides capabilities to enable GPU use. With your user ID, you should have permissions to use GPU devices as well.  Please check with your local administrator to get device access.

As there is no issue to address here, closing this issue. Requesting user to work with local administrator for any permissions.


打包后，页面报Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

具体报错信息：
Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index.html?_ijt=6is8mpcu5r7aoeulkfq4d3qbv:1 Refused to apply style from 'http://localhost:63342/static/css/chunk-elementUI.8441406c.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

随手一查就有相关问题。

对不起，打扰了，是我基础不够扎实，没有深入研究过webnpack，使用了默认的打包路径


utilize the  mobilenet  as backbone?

The input_size of mobilenet is (224,224,3), but the input_size of YOLOV2 is (416,416,3)。Does the model work well?

The bigger the better.

But it exist a problem，I use the mobilenet in keras，and  set the input_shape as （512，512，3），keras throw me a error that the input_shape should be （224，224，3）and some smaller input_shape. How can I solve the issue？thank you

I use the mobilenet code from Keras. It may have this limitation but I think it's no problem at all.

aha，when you load the imagenet weights of Mobilenet from keras, and set the input_shape to (512,512,3),  Keras don't throw a error?


Remove thoughtbot specific legal copy

We're releasing this to the community, so this language isn't really
applicable anymore.
Also, we haven't offered coaching for literally years why was this
still in there?

:+1:


How to change background (bg_480x320)

Changing the background (online image converter, with colour format of CF-TRUE-COLOR and naming the file bg_480x320 - https://lvgl.io/tools/imageconverter) produces the following error upon compile:
/src/esphome/components/hd_device_sc01_plus/hd_device_sc01_plus.cpp.o:(.literal._ZN7esphome9hd_device12HaDeckDevice5setupEv+0x2c): undefined reference to `bg_480x320'
If the modified file is replaced with the original file, the error persists. Only deleting the fork and forking the project again works.
You can see the fork at: https://github.com/genasoft/ha_deck/tree/main

I've no problems building and using your fork

Have you tried Clean Build Files option?

Yes, I have. Clean build and it fails at the same place.
What is weirder is that if I build from your repo, all goes well. If I fork your repo, the build is OK. But, if I replace the background file, even with the original (the one from your repo), it fails.

I got it going. I had to go into the docker container and clean up the previous builds. For some reason, from the GUI, the clean is not done complete.

Ahh, I had similar cases during the development, but only after massive changes.

On another note, are there any plans on rotation of the display (from horizontal to vertical)?

Yes. I plan to add a software rotation to the configuration in the next version. For now, you can try suggestions from here.