Update airflow to 2.0.0-beta7

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for the contribution. It was merged directly as 5accf93cea997a455fd81a49cb82a06a54cffcf1. Your contribution is still credited to you.


Load a native module if running a remote JavaScript program on Electron.

The current directory is electron.asar/renderer instead of app.asar when running a remote JavaScript program in a packaged Electron app.
e.g. "C:\Users\XXXX\AppData\Local\Programs\XXXX\resources\electron.asar\renderer"
So, this PR proposes a change to try loading a native module from app.asar when the current directory is electron.asar/renderer.

@smt116
Before re-implementing this PR, I'd like to confirm what I should implement.
I'm now thinking of subDirsOnDirname option as follows. How do you think?
module: {
  rules: [
    {
      test: /\.node$/,
      loader: "native-ext-loader",
      options: {
        subDirsOnDirname: ['..', '..', 'app.asar']
      }
    }
  ];
}

@smt116 Thank you for your comment! I've re-implement this PR. Could you review it again? Thanks!

@exKAZUu I've refactored the option name and default behavior. Could you test this branch: https://github.com/smt116/node-native-ext-loader/tree/5/refactoring and let me know if it works as expected for you?

@smt116 Thank you for refactoring my code! It seems better and I confirmed it also worked well on our project 🎉

Merged manually and released under 2.2.0. @exKAZUu thanks for the pull request!


[security vulnerability]: encoding/gob: golang: Calling Decoder.Decode on a message which contains deeply nested structures

Issue
encoding/gob: golang: Calling Decoder.Decode on a message which contains deeply nested structures...
Fixed version 1.22.7, 1.23.1
Affected binaries

retina/captureworkload (gobinary) - stdlib v1.22.4
retina/controller (gobinary) -stdlib v1.22.4
usr/bin/hubble (gobinary) - stdlib v1.21.12

References

CVE-2024-34156
https://avd.aquasec.com/nvd/cve-2024-34156

We are already using the following versions in mod.go:
go 1.22.7

toolchain go1.23.1

No vulnerabilities detected on the most recent commit:
@kamilp ~/src/repos/retina  vuln-fix $  trivy image ghcr.io/kamilprz/retina/retina-agent:v0.0.16-150-gca0b168-linux-amd64
2024-11-12T10:56:11Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T10:56:11Z    INFO    [secret] Secret scanning is enabled
2024-11-12T10:56:11Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T10:56:11Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T10:56:50Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T10:56:50Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T10:56:50Z    INFO    Number of language-specific files       num=3
2024-11-12T10:56:50Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/kamilprz/retina/retina-agent:v0.0.16-150-gca0b168-linux-amd64 (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)

Trivy scan results - running on images with tag 4f3dcb5
RETINA AGENT - https://github.com/microsoft/retina/pkgs/container/retina%2Fretina-agent/304246198?tag=4f3dcb5
LINUX/AMD64
~/src/repos/retina $  trivy image ghcr.io/microsoft/retina/retina-agent:4f3dcb5@sha256:4847b61c4efaacaaa3ee3b328d5699f020b4d7d358db24dd99c6dad1b34d794b
2024-11-12T12:30:15Z    INFO    [vulndb] Need to update DB
2024-11-12T12:30:15Z    INFO    [vulndb] Downloading vulnerability DB...
2024-11-12T12:30:15Z    INFO    [vulndb] Downloading artifact...        repo="ghcr.io/aquasecurity/trivy-db:2"
55.39 MiB / 55.39 MiB [-----------------------------------------------------------------------------------------------------------] 100.00% 5.27 MiB p/s 11s
2024-11-12T12:30:27Z    INFO    [vulndb] Artifact successfully downloaded       repo="ghcr.io/aquasecurity/trivy-db:2"
2024-11-12T12:30:27Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T12:30:27Z    INFO    [secret] Secret scanning is enabled
2024-11-12T12:30:27Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T12:30:27Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T12:30:33Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T12:30:33Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T12:30:33Z    INFO    Number of language-specific files       num=3
2024-11-12T12:30:33Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/microsoft/retina/retina-agent:4f3dcb5@sha256:4847b61c4efaacaaa3ee3b328d5699f020b4d7d358db24dd99c6dad1b34d794b (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
LINUX/ARM64
~/src/repos/retina $  trivy image ghcr.io/microsoft/retina/retina-agent:4f3dcb5@sha256:d1d7328b1275c6e0bcd27ac93a8c9034237bf7c66274a787ab
b3537ce5d25a0b
2024-11-12T12:33:03Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T12:33:03Z    INFO    [secret] Secret scanning is enabled
2024-11-12T12:33:03Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T12:33:03Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T12:33:09Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T12:33:09Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T12:33:09Z    INFO    Number of language-specific files       num=3
2024-11-12T12:33:09Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/microsoft/retina/retina-agent:4f3dcb5@sha256:d1d7328b1275c6e0bcd27ac93a8c9034237bf7c66274a787abb3537ce5d25a0b (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
WINDOWS/AMD64
PS C:\Users\kamilp> trivy image --debug ghcr.io/microsoft/retina/retina-agent:4f3dcb5@sha256:482f6e5b841ef17da742c2c06fd048b888cc97a5b5b52e22275f9d93620ba726
2024-11-12T13:25:47Z    DEBUG   No plugins loaded
2024-11-12T13:25:47Z    DEBUG   Default config file "file_path=trivy.yaml" not found, using built in values
2024-11-12T13:25:47Z    DEBUG   Cache dir       dir="C:\Users\kamilp\AppData\Local\trivy"
2024-11-12T13:25:47Z    DEBUG   Cache dir       dir="C:\Users\kamilp\AppData\Local\trivy"
2024-11-12T13:25:47Z    DEBUG   Parsed severities       severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL]
2024-11-12T13:25:47Z    DEBUG   Ignore statuses statuses=[]
2024-11-12T13:25:47Z    DEBUG   DB update was skipped because the local DB is the latest
2024-11-12T13:25:47Z    DEBUG   DB info schema=2 updated_at=2024-11-12T12:17:49.02979874Z next_update=2024-11-13T12:17:49.029798369Z downloaded_at=2024-11-12T13:22:51.4222335Z
2024-11-12T13:25:47Z    DEBUG   [pkg] Package types     types=[os library]
2024-11-12T13:25:47Z    DEBUG   [pkg] Package relationships     relationships=[unknown root direct indirect]
2024-11-12T13:25:47Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T13:25:47Z    INFO    [secret] Secret scanning is enabled
2024-11-12T13:25:47Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T13:25:47Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T13:25:47Z    DEBUG   Enabling misconfiguration scanners      scanners=[azure-arm cloudformation dockerfile helm kubernetes terraform terraformplan-json terraformplan-snapshot]
2024-11-12T13:25:47Z    DEBUG   Initializing scan cache...      type="fs"
2024-11-12T13:25:47Z    DEBUG   [secret] No secret config detected      config_path="trivy-secret.yaml"
2024-11-12T13:25:47Z    DEBUG   [secret] No secret config detected      config_path="trivy-secret.yaml"
2024-11-12T13:25:47Z    DEBUG   [image] Detected image ID       image_id="sha256:329fa344188b136af1c4c9ddc83dfc79cca581ae1e23201e65829b14cf30d37e"
2024-11-12T13:25:47Z    DEBUG   [image] Detected diff ID        diff_ids=[sha256:da2d874340bd0ca5f710fcb2bb9abc7423e71287e9f2b87694767375272e797d sha256:b95bb9177b7bd79ff392ee56ab21e602343779e68882b471e0550cdabc7344e0 sha256:d3b453ef623c1d451c919c7c6cdb9e31f802d6a29d77239cb7de894055545865 sha256:d7d2f166d6b226e46f764ff09321a3f5aa543906820c97e3c60da018abd194d7 sha256:2a4cd292eaa65567b4ef7bdef92865719e5209cc2416b3aa60f97169d7c1c11e sha256:e997e073e23a0e67d566fc8e7976d7dba2c4330979b70cce27baf7c7a3e557b2 sha256:4549d0bd635bfd3b68215eb7f411b3fe6633fec120a6433345f25ea88d94bc43]
2024-11-12T13:25:47Z    DEBUG   [image] Detected base layers    diff_ids=[]
2024-11-12T13:25:47Z    DEBUG   OS is not detected.
2024-11-12T13:25:47Z    DEBUG   Detected OS: unknown
2024-11-12T13:25:47Z    INFO    Number of language-specific files       num=2
2024-11-12T13:25:47Z    INFO    [gobinary] Detecting vulnerabilities...
2024-11-12T13:25:47Z    DEBUG   [gobinary] Scanning packages for vulnerabilities        file_path="Files/controller.exe"
2024-11-12T13:25:47Z    DEBUG   [gobinary] Skipping vulnerability scan as no version is detected for the package        name="github.com/microsoft/retina"
2024-11-12T13:25:47Z    DEBUG   [gobinary] Scanning packages for vulnerabilities        file_path="Files/captureworkload.exe"
2024-11-12T13:25:47Z    DEBUG   [gobinary] Skipping vulnerability scan as no version is detected for the package        name="github.com/microsoft/retina"
2024-11-12T13:25:47Z    DEBUG   [vex] VEX filtering is disabled
RETINA INIT - https://github.com/microsoft/retina/pkgs/container/retina%2Fretina-init/304246209?tag=4f3dcb5
LINUX/AMD64
~/src/repos/retina $  trivy image ghcr.io/microsoft/retina/retina-init:4f3dcb5@sha256:d91f7a64fd0562afcedb29b0c056bec88a83b8d253656b606b09ad61b640e9ad
2024-11-12T12:40:37Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T12:40:37Z    INFO    [secret] Secret scanning is enabled
2024-11-12T12:40:37Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T12:40:37Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T12:40:38Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T12:40:38Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T12:40:38Z    INFO    Number of language-specific files       num=1
2024-11-12T12:40:38Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/microsoft/retina/retina-init:4f3dcb5@sha256:d91f7a64fd0562afcedb29b0c056bec88a83b8d253656b606b09ad61b640e9ad (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
LINUX/ARM64
~/src/repos/retina $  trivy image ghcr.io/microsoft/retina/retina-init:4f3dcb5@sha256:79f851e498909042a8b9abb133f096423e842cf840d19595851
4a946f1b496b5
2024-11-12T12:41:35Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T12:41:35Z    INFO    [secret] Secret scanning is enabled
2024-11-12T12:41:35Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T12:41:35Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T12:41:36Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T12:41:36Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T12:41:36Z    INFO    Number of language-specific files       num=1
2024-11-12T12:41:36Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/microsoft/retina/retina-init:4f3dcb5@sha256:79f851e498909042a8b9abb133f096423e842cf840d195958514a946f1b496b5 (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
RETINA OPERATOR - https://github.com/microsoft/retina/pkgs/container/retina%2Fretina-operator/304243743?tag=4f3dcb5
LINUX/AMD64
~/src/repos/retina $  trivy image ghcr.io/microsoft/retina/retina-operator:4f3dcb5@sha256:5d186723f2fd5b455fd1ec587f3949bc387d88098f1d980d8dfe1b341d249204
2024-11-12T12:42:23Z    INFO    [vuln] Vulnerability scanning is enabled
2024-11-12T12:42:23Z    INFO    [secret] Secret scanning is enabled
2024-11-12T12:42:23Z    INFO    [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-11-12T12:42:23Z    INFO    [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2024-11-12T12:42:24Z    INFO    Detected OS     family="cbl-mariner" version="2.0"
2024-11-12T12:42:24Z    INFO    [cbl-mariner] Detecting vulnerabilities...      os_version="2.0" pkg_num=5
2024-11-12T12:42:24Z    INFO    Number of language-specific files       num=1
2024-11-12T12:42:24Z    INFO    [gobinary] Detecting vulnerabilities...
ghcr.io/microsoft/retina/retina-operator:4f3dcb5@sha256:5d186723f2fd5b455fd1ec587f3949bc387d88098f1d980d8dfe1b341d249204 (cbl-mariner 2.0)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)


Delete custom keyframe

Is it possible to delete custom keyframe?
Something like:

$.keyframe.delete([{
            name: 'spin'
}]);

You can achieve that with $('style#spin').remove();

That did the trick.
Thanks heaps!

No probs!


Using an object type as entity ID

Hi,
I wonder if is possible to use value objects (complex types) as entity ID in EF Core.
Something like this:
public class Book
{
    private BookId bookId;

    public Book(BookId bookId)
    {

    }
}

public class BookId
{
    private readonly int id;

    public BookId(int id)
    {
        this.id = id;
    }
}

Regards!

@AndriySvyryd Can you comment on this?

@lurumad No, currently any constraints defined on an entity type (keys, foreign keys, indexes) can only use the properties defined on the type (or inherited).
Does this limitation block your scenario? If so, could you elaborate on why the ID needs to be on a separate type?

Hi @AndriySvyryd
One of the main DDD principles when modeling a domain is SoC (Separation of Concerns). We should isolate our domain from infrastructure, This kind of Id's are related with persistence logic, in this case is related with EF Core. Imagine that I decided to change my single key of book to a composite key. In my example the meaning of the code would remain the same.
Regards!

@lurumad, based on the SoC principle, EF entities should not be part of the domain model. They are part of  a data access and part of a repository at best.

You are totally right @popcatalin81 but I would like to avoid the mapping between the domain model and persistence model, yes I know it's not the right way, but sometimes the cost is expensive and sometimes I would to avoid separate models, but anyway, you are rigth ;)
Regards!

@lurumad You can still get most of the benefits if you just keep the Id field private.
public class Book
{
    private int _id;

    private BookId BookId
    {
        get => new BookId(_id);
        set => _id = value.Id;
    }

    private Book()
    {
    }

    public Book(BookId bookId)
    {
        BookId = bookId;
    }
}

public class BookId
{
    public BookId(int id)
    {
        Id = id;
    }

    public int Id { get; set; }
}

@AndriySvyryd that makes certain queries allot harder to write. It's not ideal.

@popcatalin81. With code first approach we could use POCO types as domain model classes and EF Core is a step in the right direction but not ideal either.

@lurumad As of EF Core 2.1, this is now supported using value converters. However, in this case there is currently a limitation that this will not also work out-of-the-box with store generated keys. See #11597

@lurumad may be it help you to use all of power of ddd.
` public static class PropertyBuilderExtensions
{
public static PropertyBuilder UseSqlServerObjectIdGenerator<TProperty,TProvider>(this PropertyBuilder propertyBuilder,
Expression<Func<TProperty,TProvider>> toProvider,
Expression<Func<TProvider,TProperty>> toModel,
IServiceProvider serviceProvider,
string sequenceName,
string sequenceSchema = null)
{
var valueConverter =
new ObjectIdValueConverter<TProperty, TProvider>(toProvider, toModel, serviceProvider);
        propertyBuilder
            .HasConversion(valueConverter)
            .ValueGeneratedOnAdd()
            .HasColumnName("Id")
            .IsRequired();

        propertyBuilder.Metadata.SqlServer().HiLoSequenceName = sequenceName;
        propertyBuilder.Metadata.SqlServer().HiLoSequenceSchema = sequenceSchema;
        return propertyBuilder;
    }
}

public class ObjectIdValueConverter<TModel, TProvider> : ValueConverter<TModel, TProvider>
{
private readonly ISqlServerValueGeneratorCache _sqlServerValueGeneratorCache;
private readonly ISqlServerConnection _sqlServerConnection;
private readonly IRawSqlCommandBuilder _rawSqlCommandBuilder;
private readonly ISqlServerUpdateSqlGenerator _sqlServerUpdateSqlGenerator;
    public ObjectIdValueConverter(Expression<Func<TModel, TProvider>> convertToProviderExpression, Expression<Func<TProvider, TModel>> convertFromProviderExpression, IServiceProvider serviceProvider) : base(convertToProviderExpression, convertFromProviderExpression)
    {

        _sqlServerValueGeneratorCache = serviceProvider.GetService<ISqlServerValueGeneratorCache>();
        _sqlServerConnection = serviceProvider.GetService<ISqlServerConnection>();
        _rawSqlCommandBuilder = serviceProvider.GetService<IRawSqlCommandBuilder>();
        _sqlServerUpdateSqlGenerator = serviceProvider.GetService<ISqlServerUpdateSqlGenerator>();
    }

    public override ConverterMappingHints MappingHints => new ConverterMappingHints(
        valueGeneratorFactory: (property, type) =>
        {
            property
                .AsProperty()
                .SetAnnotation("SqlServer:ValueGenerationStrategy",
                    SqlServerValueGenerationStrategy.SequenceHiLo);

            var factory = new SqlServerSequenceHiLoObjectIdValueGenerator<TModel>(
                () => property.GetValueConverter().ConvertFromProvider,
                _rawSqlCommandBuilder
                , _sqlServerUpdateSqlGenerator
                , _sqlServerValueGeneratorCache.GetOrAddSequenceState(property)
                , _sqlServerConnection);

            return factory;
        });
}

public class SqlServerSequenceHiLoObjectIdValueGenerator<TEntity> : SqlServerSequenceHiLoValueGenerator<TEntity>
{
    private readonly Func<object, object> _convertFromProvider;
    private readonly HiLoValueGeneratorState _generatorState;
    public SqlServerSequenceHiLoObjectIdValueGenerator(Func<Func<object, object>> convertFromProvider,
        IRawSqlCommandBuilder rawSqlCommandBuilder, ISqlServerUpdateSqlGenerator sqlGenerator,
        SqlServerSequenceValueGeneratorState generatorState, ISqlServerConnection connection)
        : base(rawSqlCommandBuilder, sqlGenerator, generatorState,connection)
    {
        _convertFromProvider = convertFromProvider();
        _generatorState = generatorState;
    }

    public override TEntity Next(EntityEntry entry)
    {
        var value = _generatorState.Next<long>(base.GetNewLowValue);
        var converted = _convertFromProvider(value);
        return (TEntity) converted;
    }

    public override async Task<TEntity> NextAsync(EntityEntry entry, CancellationToken cancellationToken = default)
    {
        var value = await _generatorState.NextAsync<long>(base.GetNewLowValueAsync,cancellationToken);
        var converted = _convertFromProvider(value);
        return (TEntity) converted;
    }
}

`
and how use it
`
public class User
{
public User()
{
    }
    public UserId Id { get; set; }

    public Credentials Credentials { get; set; }
}

public class UserId
{
    public UserId()
    {

    }

    public UserId(long id)
    {
        Id = id;
    }

    public long Id { get; private set; }

    public static implicit operator long(UserId beaconId)
    {
        return beaconId.Id;
    }

    public static implicit operator UserId(Int64 id)
    {
        return new UserId(id);
    }

    public override bool Equals(object obj)
    {
        if (obj == null)
        {
            return false;
        }

        var userId = (UserId) obj;
        return this.Id == userId.Id;
    }

    public override int GetHashCode()
    {
        return Id.GetHashCode();
    }

}

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
        modelBuilder.HasSequence("Default", builder => { builder.IncrementsBy(1); });
        var userModelBuilder = modelBuilder.Entity<User>();

        userModelBuilder.Property(x => x.Id)
            .UseSqlServerObjectIdGenerator(x => x.Id, l => l, this.GetInfrastructure(), "Default");

        userModelBuilder.OwnsOne(x => x.Credentials, c =>
        {
            c.Property(x => x.Email);
            c.Property(x => x.Password);
        });

}
`


ReImplement Betting

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Not going to happen.


[Bug]: AzureKMS keys with hsm=true in the URI don't work

Steps to Reproduce

Try to initialize a CA using ca init using below settings (use STEPDEBUG=1 for more logs):

--kms-root 'azurekms:name=test-foo333;vault=redacted?hsm=true' \
--kms-intermediate 'azurekms:name=test-bar333;vault=redacted?hsm=true'

Observe error in CreateKey

Your Environment
N/A
Expected Behavior
The CA to be initialized with root and intermediate keys stored in AzureKMS with HSM protection level.
Actual Behavior
The following error logs (reported by a user on Discord):
error unmarshaling key
go.step.sm/crypto/kms/azurekms.convertKey
    /Users/jordan/go/pkg/mod/go.step.sm/crypto@v0.23.1/kms/azurekms/utils.go:95
go.step.sm/crypto/kms/azurekms.(*KeyVault).CreateKey
    /Users/jordan/go/pkg/mod/go.step.sm/crypto@v0.23.1/kms/azurekms/key_vault.go:310
github.com/smallstep/certificates/cas/softcas.(*SoftCAS).createKey
    /Users/jordan/go/pkg/mod/github.com/smallstep/certificates@v0.23.0/cas/softcas/softcas.go:245
github.com/smallstep/certificates/cas/softcas.(*SoftCAS).CreateCertificateAuthority
    /Users/jordan/go/pkg/mod/github.com/smallstep/certificates@v0.23.0/cas/softcas/softcas.go:165
github.com/smallstep/certificates/pki.(*PKI).GenerateRootCertificate
    /Users/jordan/go/pkg/mod/github.com/smallstep/certificates@v0.23.0/pki/pki.go:515
github.com/smallstep/cli/command/ca.initAction
    /Users/jordan/Desktop/step_ca_cgo/step/command/ca/init.go:670
github.com/urfave/cli.HandleAction
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:522
github.com/urfave/cli.Command.Run
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:173
github.com/urfave/cli.(*App).RunAsSubcommand
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:405
github.com/urfave/cli.Command.startApp
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:378
github.com/urfave/cli.Command.Run
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/command.go:102
github.com/urfave/cli.(*App).Run
    /Users/jordan/go/pkg/mod/github.com/urfave/cli@v1.22.10/app.go:277
main.main
    /Users/jordan/Desktop/step_ca_cgo/step/cmd/step/main.go:118
runtime.main
    /opt/homebrew/Cellar/go/1.19.4/libexec/src/runtime/proc.go:250
runtime.goexit
    /opt/homebrew/Cellar/go/1.19.4/libexec/src/runtime/asm_arm64.s:1172

Additional Context
Answer on Discord:
The code breaks at https://github.com/smallstep/crypto/blob/b126dcff6d81464f1d02dfa6e9fada1a3edabf84/kms/azurekms/utils.go#L93-L96
This is because Azure sends back a JWK with kty set to EC-HSM. The JSON is then unmarshaled into a jose.JSONWebKey (via our wrapped jose package), which doesn't know the EC-HSM type. It might be possible to detect the EC-HSM in convertKey before unmarshaling, and changing it to plain EC. I don't think that affects the rest of its operation, but it's a bit of a hack; worth a quick try though. The proper way would be to explicitly check for EC-HSM and handling that transparently in the calls that involve creating of the key and signer, most probably involving the Go JOSE cryptosigner.
More context can be found on Discord.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Added a PR to go-jose@v3 https://github.com/go-jose/go-jose/pull/17

Fixed by https://github.com/smallstep/crypto/pull/197/commits/5b794ccdc03b33a8338acbdbbb814385a678c7f6

Closing this now as it has been fixed in the library, and will be supported with the new CLI release


SharePoint Solution Generator hangs at 'use current folder'

Hello,
Category

[x] Question
[ ] Typo
[ ] Additional article idea

Question
After typing: yo @microsoft/sharepoint
What is you solution name: helloworld-webpart-3 (default)
Which baseline..:    SharePoint Online Only (latest)   (default)
Where do you want to place the files?  Use the current folder (default)
At which point it hangs. I have to close the window to get response.
Environment details (if applicable)
I use windows 10
npm list -g --depth=0
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>node -v
10.20.1
I have tried uninstalling and re-installing node, yo, gulp and the generator.
•	npm uninstall -g @microsoft/generator-sharepoint
•	npm uninstall -g yo
•	npm uninstall -g gulp
•	npm install -g yo gulp
•	npm install -g @microsoft/generator-sharepoint
Please advise what I can do to return to a working environment.

If you didn't install the generator after re-installing Node, then it didn't delete the globally installed packages... I'd suggest following the instructions here to completely uninstall everything:
https://stackoverflow.com/a/20711410/306347

Hi Andrew,
That worked. I uninstalled npm as per the link you recommended. I also uninstalled NVM.
After re-installing npm, yo, gulp and the generator I was able to complete the wizard.
Thank you!


Use copy-on-write for graph configs

Rather than deep-copying graph configs for each instance, we should be able to use the reactive properties to deep-copy the config the first time it's edited.

(shallow copy, rather--and we'll have to consider how this works with subgraphs)


VQA: ClickableBanner

Implemented request from Tori:
Please remove the icon on the Clickable Banner (the whole banner should be clickable)

In addition to clickable banner, made the following changes (see doc here: https://docs.google.com/document/d/1wqvvI7FAe-CGcZeNTOo5_NbBYlIlCRu7JHFoSoVPi6Y/edit?tab=t.0)
Button Components
CTA Button
We updated the left/right padding from 16px to 20px
Action Button
We updated the radius on this button to 32px
Please remove the following variants:
This variant of “Respond”:
Production:
This variant of “Respond”:
Production:
“Wide button”:
Production:
Text Button
You can remove all of the variants besides the “Cancel” one:
On the remaining variant (“Cancel”): on hover, the background should fill (even though this requires extra padding around the default state, it still works in the designs)
Desired:
Upvote Button
Arrow icon on the unclicked state is still black but should be secondary grey #65676B (it is correctly black on the clicked state)
Production:
Reaction Types Button
I changed the selected state (because I’m trying to use purple less in the design system) – Please change the outline and text color to black
Designs:
Production:
Filter Button
I changed the selected state (because I’m trying to use purple less in the design system) – Please change the outline and text color to black
Text Field CTA
We updated the radius on this button to 32px


[Bug]: Please enter a valid datasource parameter id error when we try to save and re-authorize a selected gsheets ds in an existing app on upgraded environment

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When I try to save and re-authorzie a selected gsheets datasource on an upgraded environment, I see an error to the effect: Please enter a valid datasource parameter id. And authorization fails
Steps To Reproduce

Uploading Screen Recording 2024-07-31 at 6.47.02 PM.mov…
Public Sample App
No response
Environment
Production
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Cloud

This is happening on release-ee-https on the workspace named - QAUpgradeTestingWorkspace. Have provided admin access to Sneha.

Folks - @sneha122  / @NilanshBansal - did you get a chance to look into this? Was able to reproduce this today as well on a local pull of nightly, when I tried to edit gsheets datasource, and change it from All to Selected.

@ayushpahwa can you please check this out?


implement a boot log to register reboot reason and debug info

This implements a basic boot log to aid future debugging. It is based on a Espressif document called "ESP8266 Reset Causes and Common Fatal Exception Causes" and is chip specific.

This is my first ever pull request so bear with me. It seems I have managed to pull an slightly older version of the change than I had intended. I'll check why this happend.

Considering for inclusion in future release.


Ursache3 es ist etwas schiefgelaufen

Hallo zusammen,
Die Corona App aktualisiert nicht mehr.
App Version 1.3.0 kein Update verfügbar
Android 10, Samsung Galaxy A40
Neustart Smartphone erfolglos, Hintergrund Aktualisierungen aktiv, kein Sparmodus.
Gruß Daniela.

Avoid duplicates

[ ] Bug is not mentioned in the FAQ
[ ] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[ ] Bug is not already reported in another issue

Describe the bug

Expected behaviour

Steps to reproduce the issue

Technical details

Mobile device:
Android version:

Possible Fix

Additional context

Hey @DK1979 ,
Thanks for your submission. Your bug was already reported in #1021 . The issue is currently being addressed by the development team. More information about that can be found here: https://github.com/corona-warn-app/cwa-app-android/issues/1021#issuecomment-683748329
Regards,
CH
Corona-Warn-App Open Source Team

Duplicate of #1021 .


call for imported data's key

call for data's key in gmail workflow fix from yesterday. (using older requirements in this one)

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

nvm, got bugs in gmailWorkflow.js


Minimap: Render more than characters inside the minimap

Some ideas:

[ ] editor cursor
[ ] editor selection
[ ] change annotations (i.e. git status)
[ ] find matches

Here is a good mock-up from @jfcartier here:

And one from @octref here:

Git status could also be helpful.

Visual Studio also displays function scope, which I use a lot.

Since the minimap is character based I'm not sure how this would be implemented though. Perhaps just alternating background colors.

-- Sorry for the English, I used Google Translator --
@alexandrudima Sorry if it's repetitive. Would any of the options below be related to the options it showed above? If not, these options could enter as a feature request or even as an extension (sorry for the English):
1- Find and replace
2- Highlight selected
3- Cursor line
4- Selection
5- git-diff - I think it's your fourth choice, right? :smile:
6- Bookmarks - I do not know if extension that exists is able to use the resources for the minimap. #54

Based on @Tekbr request on my Bookmarks extension, I think the decorator API should be expanded to support minimap. Something similar to  OverviewRulerLane and overviewRulerColor in DecorationRenderOptions. Doing so, any extension that supports the decorator API would work automatically.
By the way, after turning on Minimap I keep thinking if the Ruler is still necessary. I would say no if the Minimap supported mouse scroll and the decorator API was merged 😄

I agree with @alefragnani that I think the ruler is no longer required once many/most of the suggestions in this issue are implemented.
My feeling is that the ruler is essentially just a minimalist version of the mini-map and that both are actually the same thing, just displaying differing amounts of information.

We can make property in settings [ minimap.characters ] to choose from font or blocks.

At a minimum it would be nice to get all the features that currently exist in the skinny "git" sidebar integrated into the minimap, and to add a setting to hide the skinny "git" sidebar if you use the minimap. Right now its kind of like there are 2 mini-maps. The original one that is functional, and the new minimap that only shows a high-level view of your code.

I actually think it would be cool those show both next to each other (as they are now) but just sync their scrolls (currently the minimap shows the whole viewport while the scroll bard has a tinly little "grip") and they do not seem to scroll at the same rate (scrollbar and it's decorators show the whole file in the whole length while the minimap scrolls if a file is long enough)
I like the way the Visual Studio minimap works where the decorators are separate from the code - since it's much easier to spot a coloured block on the side (for example when doing a find) then it is to see a highlight in already-syntax-highlighted code)

@mika76 This has already been proposed in #21849
I summarised the discussions regarding minimap geometry we had within the team in https://github.com/Microsoft/vscode/issues/21849#issuecomment-284703898

@alexandrudima Ah I see - thanks for the notification. Could I propose something then? If there are decorators for the code in the minimap (find for example) could the minimap go into grayscale more or something? I find in Atom and Sublime, when I want to quickly see a highlight in the minimap it always get's lost in the syntax coloring. This is the reason I like the points being on the side of the actual code in VS2015...

Would also like to see linter errors/warnings:

By the way, great job on the minimap. Love this feature. Thanks for the work you put into it!

To be useful, minimap has to always show current cursor line and current viewport. Looks like current viewport showing is already implemented in insiders channel, but cursor line is not.
You can use Visual Studio minimap as a reference:

(VS 2013)
It replaces plain slider (there is no other slider when minimap is enabled), and always contains whole document without inner scrolling. It also shows errors/warnings/find results/etc.

+1

I only have a 1366x768 screen on my laptop so horizontal space is tight and I'd like to see the ability to combine / replace the scrollbar with the minimap since they both effectively solve the same navigation problem.

Oh please add this in! I would like to second adding in Highlight selected on the minimap and cursor line

You know what I want - I only ever want the minimap when my file has errors.
It's useless to me otherwise.

I wish it had more options to show / hide. eg.

Show only when file has errors
Show only when Ctrl key held down for 1 second
Show only when mouse hovers over the area it would be shown in

Adding a note here.  I think my issue ( https://github.com/Microsoft/vscode/issues/73140 ) may have been incorrectly duped to this one.  It is a request for the minimap to reflect text decorators that were applied in the editor, just as the textmate colors are reflected.  We would like to do our own colorization, but currently the result are not reflected in the minimap.

As of the latest release (1.39), selection and find matches are shown in the minimap. I'd like to scope this issue down to something specific for easier tracking, so I'm going to repurpose this for git status annotation decorations.
There are some other good ideas in this thread, I think most of them have been covered by other issues:
https://github.com/microsoft/vscode/issues/28653
https://github.com/microsoft/vscode/issues/28310
There didn't seem to be an existing issue tracking error/warning decorations specifically, so I created a new issue for that: https://github.com/microsoft/vscode/issues/82291

It looks like a recent insider build enabled linter warnings/errors in the minimap.  That's great for those that want it, but ideally a way to hide them would be nice (at least for linter warnings).  Some files have a lot of warnings and they clutter up the minimap.  Is that possible?

@dlong500 Currently there isn't a setting for this, but you can change the color of the decorations to match the editor background so that they're not visable:
"workbench.colorCustomizations": {
	"minimap.errorHighlight": "#1e1e1e",
        "minimap.warningHighlight": "#1e1e1e",
}

You can check your current color theme colors by running the Developer: Generate Color Theme from Current Settings command

I was about to say this didn't seem to work, but I searched the repo and it looks like you just added these options about 20 minutes ago?  I'll have to wait until the next insider release.  Thanks!


semantic-ui: login box footer should not have bottom border

The grey line highlighted in the screenshot should be same color as above

Closing in favour of https://github.com/inveniosoftware/invenio-accounts/issues/327


Question about searching against multiple attributes with highlight

I have the following pg_search_scope on my model:
pg_search_scope :search_full_text,
                against: { title: 'A',
                           description: 'B' },
                using: { tsearch: { dictionary: 'english',
                                    prefix: true,
                                    any_word: true,
                                    tsvector_column: 'tsv',
                                    highlight: { start_sel: '',
                                                 stop_sel: '' } } }

I would like to return the full title and description, with both of them including the highlights, is this possible?

I would also like to see there to be pg_search_#{field}_highlight equivalent for each field as opposed to highlighting them all after concatenation.
Is there a way to do this right now ?

This is still an issue :(

Still and issue

This would be very helpful. Is there a recommended workaround for searching multiple columns and then displaying results as individual highlighted fields?

Any updates on this?

I think this is due to the fact that it's using a tsvector column, so the highlight is constructed on such column, as pg_search is not actually marking highlights on the other two columns, they're not present in the query at all.
If you examine the SQL query, you'll see something akin to:
SELECT ((ts_headline('simple', (coalesce("articles"."tsv"::text, '')), (to_tsquery('simple', ''' ' || unaccent('test') || ' ''' || ':*')), 'StartSel = "", StopSel = "", MaxFragments = 2'))) AS pg_search_highlight,
       articles.*
FROM "articles"
INNER JOIN
    (SELECT "articles"."id" AS pg_search_id,
            (ts_rank(("articles"."tsv"), (to_tsquery('simple', ''' ' || unaccent('test') || ' ''' || ':*')), 0)) AS rank
     FROM "articles"
     WHERE (("articles"."tsv") @@ (to_tsquery('simple', ''' ' || unaccent('test') || ' ''' || ':*')))) AS pg_search_906c7ff47cd7c682246c27 ON "articles"."id" = pg_search_906c7ff47cd7c682246c27.pg_search_id
ORDER BY pg_search_906c7ff47cd7c682246c27.rank DESC,
         "articles"."id" ASC
LIMIT 10

Seeing that this is still an issue in 2023, I have made a pg_search_multiple_highlight gem that is supposed to solve the issue of multiple highlighting. Please give it a try


Treat paths in submodule relative to directory of root .justfile

It'd be great to have an option to treat all paths in a submodule relative to the directory containing the root .justfile. I think I'd prefer a per-module flag for this instead of a global one.
This would allow me to let my submodules reside in other file locations (e.g. in a folder .config/commands/), while not having to issue a cd {{justfile_directory()}} or cd ../../ at the beginning of every recipe.

I think this would be great. I can imagine a few options that might be useful:

Use the working directory of the root justfile
Use the working directory of the parent module, even if it isn't the root.
Use a specific working directory

The syntax could be:
# default value
set working-dir := default
set working-dir := self

# use the working directory of the parent module
set working-dir := parent

# use the working directory of the root justfile
set working-dir := root

# use some other working directory
set working-dir := "some/other/directory"

This is probably related to #2273 and the respective PR #2283.

#2283 added support for the form that takes a string:
set working-dir := "some/other/directory"

So we're still lacking the ability to use the working directory of a parent justfile.
I think the best syntax for using the working directory of the parent is:
set working-dir := super

However, I'd like to keep the door open for eventually allowing the use of a variable. I.e.:
set working-dir := foo

just currently doesn't allow the use of variables in settings, since settings may affect how backticks and the shell(…) function run, including their working directory and exported variables.
So, this syntax:
set working-dir := super

Would change meaning if the RHS of a setting became an expression:
super := "hello"
set working-dir := super

One option is to use some kind of syntax which isn't a valid expression:
set working-dir := @super
set working-dir := super.working_dir
set working-dir := super::working_dir
set working-dir := super->working_dir
set working-dir := super#working_dir

This is a bit wonky, but the fact that expressions can't be used in setting values has been an issue many times, so I wouldn't want to preclude fixing it.

This is all horrifically complicated by the fact that variables, recipes, and settings can all have  the same name.


Add type definition for TypeScript

Thank you for developing nextra! I love it because i18n is fully supported.
I added type definition for TypeScript.
We can overwrite Locale, Config, Meta and FrontMatter type in theme developer side or user side as needed:
next-env.d.ts
declare module "nextra" {
  export type FrontMatter = { title?: string };
}

I will change branch so close this PR


dotnet test/run have inconsistent CWD

From @yoshiya8 on Monday, 27 August 2018 15:10:42
Steps to reproduce
Create a .NET core app that simply prints out the current directory from the environment and a .NET core XUNIT test case that does the same:
using System;
namespace DotnetRun
{
    class Program
    {
        static void Main(string[] args) => Console.WriteLine($"CWD: [{Environment.CurrentDirectory}]");
    }
}

and
using System;
using Xunit;
using Xunit.Abstractions;
namespace DotnetTest
{
    public class UnitTest1
    {
        private readonly ITestOutputHelper output;
        public UnitTest1(ITestOutputHelper output) => this.output = output;
        [Fact]
        public void Test1() => output.WriteLine($"CWD: [{Environment.CurrentDirectory}]");
    }
}

Run the app: dotnet run
Note the output of the app.
Run the unit test with logging to capture the output: dotnet test --logger "trx;LogFileName=C:\some\path\Results.trx"
Get the output from the unit test: Select-String -Path C:\some\path\Results.trx -Pattern "<StdOut>"

Expected  behavior
The current directory for each run would be the current directory of the shell that launched the dotnet command.
Actual behavior
The current directory of the dotnet run is as expected. However, the current directory of the dotnet test is the directory of the .dll file ("$pwd\bin\Debug\netcorapp2.0")
Copied from original issue: dotnet/cli#9896

From @yoshiya8 on Monday, 27 August 2018 15:11:48
I believe this relates to: https://github.com/dotnet/cli/issues/4473

From @peterhuene on Friday, 03 May 2019 21:28:53
I finally got around to tracking down the source of the discrepancy between dotnet run and dotnet test.  Neither commands in the CLI set the current working directory.
The culprit is the test host manager that is spawning the console host and explicitly setting the working directory to the directory containing the test assembly.
I'll move this issue there.

dotnet test users are expecting the CWD of their test code to be where dotnet test is running.  However, the test host manager (see link in my previous comment) is explicitly changing the CWD to the directory containing the test dll.
As this isn't a dotnet test CLI command issue, but an issue with the test tools, I've moved the CLI issue here for you to decide on the correct behavior.

@yoshiya8 This is my design.
This is the code responsible for this behavior https://github.com/Microsoft/vstest/blob/f33bb21b47b027016959d8385e0f69a7e3ff8027/src/Microsoft.TestPlatform.TestHostProvider/Hosting/DotnetTestHostManager.cs#L234
Note that dotnet run and dotnet test are independent verbs.
dotnet test invokes the test platform, and test platform runs the tests in isolation, making sure all the dependencies are loaded correctly. The test platform sets the source directory as the working directory for the test host where the actual execution happens. Hence the behavior you observed.
Can you please explain your scenario, so we can suggest something. Thanks.

It's a shame this has been closed. I still think this issue is valid.
When users call System.IO.Directory.GetCurrentDirectory() they expect to get the current directory. In other words the one that was current when executing the command, dotnet test. This is neither the output directory nor the source directory. It tends to be the solution directory. It's inconsistent with run and inconsistent with expected behaviour of GetCurrentDirectory().
Also, regarding the code, sourceDirectory is not correct either as I believe it's actually the proj directory which, by default is copied to the output dir anyway which is why CWD ends up being the output dir.
If you want a specific scenario, mine is that I have 2 ways to run my tests. dotnet test for CI and dotnet run tests which gives prettier output for local dev work. The tests rely on some data in the project but I can't rely on GetCurrentDirectory() if I want the CI dotnet test to work.
Please consider reopening this. Thanks.

@nohwnd FYI. We might want to reconsider this one.

@pavelhorak should we add this to 16.8?

IMHO, for unit tests it is preferred to reduce the impact of the environment, including the current working directory of the build scripts. If a unit test needs to tests some code that is dependent on the CWD, the test should explicitly set CWD, not depend on the external scripts to use specific directories. I think the current behavior causes less issues then suggested modification.

+1 to operate like run.
Here's my current workflow: Run dotnet test in a test project directory using XUnit to run tests. I need to execute the tests from the test project directory (or a fixed known place) so that relative paths I need match up. The tests are end to end tests, so need to hit various files and executables.
My current workaround is to get the Test DLL path and change working dir based on it.
var dllPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
Console.WriteLine($"DLL Path: {dllPath}");
var newPath = Path.Combine(dllPath, "../../../..");
System.IO.Directory.SetCurrentDirectory(newPath);
Console.WriteLine($"Current Dir: {Directory.GetCurrentDirectory()}");

I just got bitten by this, I expected it to operate like dotnet run, All my code is set to copy the things I need to the output directory, but when you do dotnet test, it doesn't use the output directory so nothing works.

I just came across this too. While the argument that the test environment shouldn't impact the tests is completely valid for unit tests, for integration tests and bechmarking it is just the opposite. We often want to run the same set of tests with different environment configurations.

This is a new feature and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform


Incorrect colour output with zsh

I installed catimg using brew and added the plugin to oh-my-zsh. It works for the most part but the colours are wrong. I tested it using the test images in the repo and mewtwo looks like this:

Is there some configuration change I need to make or is this an issue with the oh-my-zsh plugin?

catimg is an executable, it shouldn't collide with hmz plugins.
You can take a look at your env variables for colors like $TERM (I set it to xterm-256color) and $COLORTERM (I have truecolor)
If you have tmux I think there are some settings you may need to update if you never changed your configuration


Conditional Validations

I am wondering if you have any thoughts or plans about having conditional validations in Astronomy. This is something that is possible in other frameworks such as Ruby on Rails.
For example, my use case is to have a field that is only required if the value of another field (in this case, level) is equal to a specific value (in this case, 2).
At the moment, my solution was to implement a custom validator:
Astro.createValidator({
  name: 'requiredIf',
  validate: function(fieldValue, fieldName, options) {
    var parentValue = this.get(options[0]);
    var compareValue = options[1];

    if (parentValue === compareValue) {
      return !_.isNull(fieldValue) && fieldValue !== '';
    } else {
      return true;
    }
  },
  events: {
    validationerror: function(e) {
      var fieldName = e.data.field;

      e.data.message = 'The "' + fieldName +
        '" field\'s value is required';
    }
  }
});

And to use it like this:
occupation: {
  type: 'string',
  validators: [
    Validators.requiredIf(['level', 2])
  ]
}

But maybe that's not the best way. I'm thinking that there could be "Conditional validators" in Astronomy; it would be very useful! We could use this issue for brainstorming :smile:
And thank you for the great package, I love it! I'm also very much looking forward to the new features you are developing, as well as an eventual forms package :smiley: I am starting a project on Monday and we decided to use Astronomy for the model layer.
Cheers.

I've asked the same question a few days ago with this issue https://github.com/jagi/meteor-astronomy-validators/issues/21

@shadowRR it's a little bit different issue then yours. You wanted to validate nested object only if it's present. And if it goes about @frabrunelle issue, he wants to validates fields on the same level but only if some other field has certain value.
I see that's it's very common use case, so maybe it's a time to implement it. I would see it more like IF statement from the spreadsheets:
occupation: {
  type: 'string',
  validators: Validators.if({
    condition: function() {
      return this.get('level') === 2;
    },
    true: Validators.minLength(10)
    false: /* optional */
  })
}

Maybe it's not easily readable but it gives a lot of flexibility.
What do you think guys?

@jagi yeah but the idea remain the same, validation depending on the state of another field by some sort of an if validation. And from your proposal, i could use it for my own issue.
As about your proposal, what if someone would want to have multiple of those ? Like in @frabrunelle example:
if(level === 3){
    // use those validators...
}
if(level === 4){
    // use those validators and so on...
}

You would have to use multiple if validators.
occupation: {
  type: 'string',
  validators: [
    Validators.if({
      condition: function() {
        return this.get('level') === 2;
      },
      true: Validators.minLength(10)
    }),
    Validators.if({
      condition: function() {
        return this.get('level') === 4;
      },
      true: Validators.minLength(20)
    })
  ]
}

If the condition form the first if validator is not meet then the validator would return true and move forward to the next one, etc. etc.
However, it maybe also a good idea to implement the switch validator:
occupation: {
  type: 'string',
  validators: [
    Validators.switch({
      value: function() {
        return this.get('level');
      },
      case: {
        2: Validators.minLength(10),
        4: Validators.and([
          Validators.minLength(20),
          Validators.maxLength(40)
        ])
      }
    })
  ]
}

Possibilities are endless :)

The switch validator would be awesome :D ! Both of them would be really useful, and i can see quite a few case where to use them to ease up my schemas...

Ok, I will add both if and switch validators. They will probably appear with the next release, because they are not so hard to implement. We will see

Ok, thanks ;) Any idea when this new version will be ready ? (not pushing you, just wondering)

Yesterday I've just finished the last big feature. Now I have to do some code fixes, cleaning and implement few minor features. It will take about 2 weeks and after that I will start testing 1.0 pre release version. I will invite anyone to test it. Of course there are so many changes that it will need good documentation. I hope that the 1.0 final release will be available in 4-6 weeks from now. Time will tell, how many bugs are there and if I missed something :)

Ok, nice to hear. For sure, the new documentation is gonna need quite a lot work to get up to speed. I can't really help for this one (since you're the only one who knows clearly what has changed), but as far as testing goes, i'll definitely be there :D. Thanks again for you're amazing work.

occupation: {
  type: 'string',
  validators: Validators.if({
    condition: function() {
      return this.get('level') === 2;
    },
    true: Validators.minLength(10)
    false: /* optional */
  })
}

I like that a lot! And it's very readable I find :smile:
:+1: for the switch validator. It seems like it could be useful in some situations.
And I'm super interested to test 1.0 pre release!

Also, since I might have for example 10 fields that are only required if the value of level equals 2, I will likely take advantage of the ability to reuse validators :smiley:

Stay tuned :)

if and switch validators implemented. They will appear in Astronomy 1.0

@jagi: The if validators works well, but I am not able to use the switch validator.
After studying the code, I find out that this line is causing the issue:
https://github.com/jagi/meteor-astronomy-validators/blob/1.0.0-rc.1/lib/validators/logical/switch.js#L25
if (_.contains(_.keys(options.cases), expression)) {

The problem is that if the expression is a number, it won't match with the keys since they are converted to strings.
So doing the following doesn't work:
validator: Validators.switch({
  expression: function() {
    return this.level;
  },
  cases: {
    1: Validators.minLength(8),
    2: Validators.required()
  }
})

So my solution is to add toString():
return this.level.toString();

Maybe this could be done automatically?
if (_.contains(_.keys(options.cases), expression.toString())) {

Or let me know if you have a better solution :smile:
Thank you!

Oh, thank you for letting me know. I will change it to use the _.has method. Thanks to that it won't be converted to the string.


Arrays can not be resetted in the inspector, will not work if you create them with 'export' in gdscript, but not assign them manually in the inspector

wow, do i have the honor of being the 1000th issue?
I just noticed that Array type variables can not be resetted, like other types of variables in godot:

Whats worse is that if you make an array in gdscript like this:
export var myArray = [1,2,8,4]
for test in myArray:print('whyy',test)

and forget to give it any values in the inspector, the array will simply be empty. The for loop will not print at all!
In essence array type variables have no default value that they can be resetted to. They do not work at all if you have not assigned anything to them in the inspector, while they have the export tagged in gdscript.
This is inconsistent with strings, ints, floats and what have you. :)
So this is a problem with them in both gdscript and the inspector.

This is not a bug, arrays and dictionaries are shared, while other datatypes are not.
Maybe what should be added is a popup menu on an array property so you can:
a) make a new, empty array
b) make the array unique? (do a copy)
otherwise I'm not sure if anything else can be done

I'm having trouble with exported arrays too, right now they aren't useful at all since they aren't unique.
I think they should be unique by default or at least have a "make unique" button since the only reason why I would want an exported array is to have different values per instance.

I think this is behaving as op wants now. Arrays can now be reset.

Indeed, this works fine in 3.2 at least.


Android Support Library version must be updated to the latest support version

Lint Error:: GradleCompatible: Incompatible Gradle Versions
Description::
" All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.0.2, 26.0.2"
The library support versions conflicts with my project support versions I'm using 27.0.2 version while your library uses 26.0.2

exclude the support library, so it will use yours.
In my case i had to also exclude support-v3 for this error: android.support.v13.view.DragAndDropPermissionsCompat
implementation ('com.github.omadahealth:lollipin:2.1.0@aar') {
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v13'
transitive = true
}


Ayon GUI published workfiles - fix arrow to timezone typo

fix parenthesis typo with arrow local timezone function

fix,
allows published workfiles to display in Ayon workfiles GUI.
no published workfiles will display without fix.


Are you considering submitting a pull request?

I'd love to see this merged into upstream.

Whoops, it seems I missed this issue...
It's a bit complicated - the Godot maintainers have previously said they won't take console ports in tree due to NDA/SDK licensing reasons(https://docs.godotengine.org/en/3.2/tutorials/platform/consoles.html).
That would mean a homebrew port is completely fine by those standards.
Another potential issue is if this port would conflict with the official Switch port at all, or even if Nintendo dislikes it.
I haven't talked to the developers about this and also haven't really been putting much time into this port as of late.

I see. I was aware of the NDA/SDK licensing reasons, but I wasn't aware that the maintainers wouldn't take homebrew ports.
But yeah, if Nintendo dislikes it, I'm sure they would pull their attorney's weight on the matter given that Nintendo has shutdown many fan-made games.
Thanks for the clarification.


I have tried some times to build qt4.8.7,but there is always a mistake and I don't know how to do .I need your help jcfr!

Thank you . I build qt using win7(64)+vs2013(update5). The screenshot was not uploaded successfully.
The problem is as following:
download 7zip commandline tool
download http....
raw=true
when using '2' parameter calls 'downloadfile' ,an error occurs:'the underlying connection was closed':An error occurred while sending

Here is the code causing trouble:
$downloader = new-object System.Net.WebClient
$url = 'https://github.com/chocolatey/chocolatey/blob/master/src/tools/7za.exe?raw=true'
$file = '7za.exe'
$downloader.DownloadFile($url, $file)

I just tried on a windows machine and I was able to reproduce.
Look like it is related to use of powershell to download from url accepting only newer TLS. See https://github.com/chocolatey/choco/wiki/Installation#installing-with-restricted-tls

Also here is an useful script to find out which version of .NET are installed in your environment: https://stackoverflow.com/a/3495491/1539918

I suggest to install the latest version of .NET. See https://www.microsoft.com/net/download/dotnet-framework-runtime/net471

I am trying your advice,thank you very much!

To follow up on this, installing a newer .NET was not enough, you need to install the Windows Management Framework 4.0. See https://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
The version install is now 4.x instead of 2.x:
PS C:\Users\dashboard> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1

Them, trying to download report an error message but this time is more specific, it clearly indicate that it Could not create SSL/TLS secure channel:
PS C:\Users\dashboard> $downloader = new-object System.Net.WebClient
PS C:\Users\dashboard> $url = 'https://github.com/chocolatey/chocolatey/blob/master/src/tools/7za.exe?raw=true'
PS C:\Users\dashboard> $file = '7za.exe'
PS C:\Users\dashboard> $downloader.DownloadFile($url, $file)
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At line:1 char:1
+ $downloader.DownloadFile($url, $file)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Finally, after setting the security protocol first, the download succeed:
$securityProtocolSettingsOriginal = [System.Net.ServicePointManager]::SecurityProtocol

try {
  # Set TLS 1.2 (3072), then TLS 1.1 (768), then TLS 1.0 (192), finally SSL 3.0 (48)
  # Use integers because the enumeration values for TLS 1.2 and TLS 1.1 won't
  # exist in .NET 4.0, even though they are addressable if .NET 4.5+ is
  # installed (.NET 4.5 is an in-place upgrade).
  [System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192 -bor 48
} catch {
  Write-Warning 'Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust errors, you may need to do one or more of the following: (1) upgrade to .NET Framework 4.5 and PowerShell v3, (2) specify internal Chocolatey package location (set $env:chocolateyDownloadUrl prior to install or host the package internally), (3) use the Download + PowerShell method of install. See https://chocolatey.org/install for all install options.'
}

$downloader = new-object System.Net.WebClient
$url = 'https://github.com/chocolatey/chocolatey/blob/master/src/tools/7za.exe?raw=true'
$file = '7za.exe'
$downloader.DownloadFile($url, $file)

[System.Net.ServicePointManager]::SecurityProtocol = $securityProtocolSettingsOriginal

I will update the FAQ accordingly and also update the powershell download function to update the securityProtocolSettings.

thank you very much. I have successfully compiled the source code.


Create irrigation_datparser Transformer

Task to do
Create a irrigation_datparser Transformer for the AgPipeline at UA based on extractor
Reason
Fleshing out pipeline
Result
A working transformer

GitHub repository: https://github.com/AgPipeline/transformer-irrigation_datparser


Low layer

@tuexen
One more commit to make it compile with THREAD_SUPPORT enabled.

@tuexen
Indentation fixed


Reserve Excess Cluster Capacity

Issue by vlerenc
Tuesday Aug 08, 2017 at 05:59 GMT
Originally opened as https://git.removed/kubernetes-attic/garden-operator/issues/71

Story

As user I want to be able to schedule my workload (if of reasonable size) in my shoot cluster in seconds, even if all nodes of the shoot cluster are busy, so that I am more productive.
As operator I want to be able to create new shoot cluster control planes in the seed clusters in seconds, even if all nodes of the seed cluster are busy, so that I am more productive.

Motivation
The cluster autoscaler seems to react only when pods can't be scheduled on any of the current nodes due to insufficient resources. That means, it takes minutes after the event until the pod can be scheduled.
Acceptance Criteria

[ ] We run the cluster with excess capacity, a configurable combination of an absolute excess capacity minimum and a percentage, e.g. (calculation here in "nodes", but may be CPU/Memory, too, if that's easier/better): max(1, 5% of the current number of nodes)

Implementation Proposal
None, but if this can't be done with the current cluster autoscaler and nobody works on it, consider whether a contribution would be possible.
Definition of Done

[ ] Knowledge is distributed: Have you spread your knowledge in pair programming/code review?
[ ] Unit Tests are provided: Have you written automated unit tests or added manual NGPTT tickets?
[ ] Integration Tests are provided: Have you written automated integration tests?
[ ] Minimum API exposure: If you have added public API, was it really necessary/is it minimal?

Moved to https://github.com/gardener/machine-controller-manager/issues/26.


Fix Set-DbaNetworkCertificate not granting permissions to private key

Type of Change

[x] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose

On a Windows Server 2016 (version 1607, Build 1439.2848) server, Set-DbaNetworkCertificate does not grant permissions to the private key.
Approach

This appears to be because the PrivateKey property of the certificate is $null, and the PrivateKey is used to populate the path to the underlying certificate file.
Added a check to see if PrivateKey is null, and if it is use a different method to determine the underlying file. Also added a check to be sure that $KeyFullPath is a valid path to a file and abort if it isn't.
Commands to test

# On a Windows 2016 box (I'm using a newly provisioned Azure IaaS server built from the SQL Server 2017 marketplace image)
Set-DbaNetworkCertificate -Certificate $cert

Screenshots

Learning

Stack Overflow answer to this problem

awesome solution, thank you! will merge when tests pass :bowtie:

🎉 🎉 🎉


Update script to retrieve data from NXNs database

Description of the task:
Once the re-ordering of the dataset tracking sheet is definite, update the script to compare tracking sheet with nxn's database
Acceptance criteria for the task:

[ ] The script is updated so it can compare nxn's database with the dataset tracking sheet again
[ ] (optional) add feature to avoid that re-ordering of the columns will break it again

I have noticed sometimes the script might introduce weird encoding in the text for symbols it doesn't recognise, e.g. Single‚Äêcell transcriptomes reveal characteristic features of human pancreatic islet cell types
Not sure if this is something easy to address

Weird,  I'll look into that! I do include a utf-8 decoding for valentine's database, as sometimes some symbols would break reading the database, but I always assumed after that all the symbols would be alright

The PR has already been merged.
I will keep an eye on the encoding issue but, for now, I'll close this issue!


fix: rename rpc

Which docs this PR relation:
Ref #
Which toolchain this PR adaption:
No Breaking Change
Special notes for your reviewer:

Codecov Report

Merging #165 (b165490) into main (554fd9c) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #165   +/-   ##
=======================================
  Coverage   37.15%   37.15%
=======================================
  Files          78       78
  Lines        5351     5351
=======================================
  Hits         1988     1988
  Misses       3363     3363

Impacted Files
Coverage Δ

common/apm/src/metrics/api.rs
0.00% <0.00%> (ø)

core/api/src/jsonrpc/impl.rs
0.00% <ø> (ø)

core/api/src/jsonrpc/mod.rs
0.00% <ø> (ø)


feat: add test script for running distributed testing

Why this PR breaks all the CI tests?

@tianyin My fault. My previous commit makes one option mandatory which breaks the CI test script. I will fix it.


merge: dev to stage

merge: dev to stage

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


error: Uncaught SyntaxError: The requested module './constants.ts' does not provide an export named 'MIME'

import {Application}from<EMAIL_ADDRESS>
const app = new Application();

app
  .get("/hello", (c) => {
    return "Hello, Abc!";
  })
  .start({ port: 8080 });

Running errors:
error: Uncaught SyntaxError: The requested module './constants.ts' does not provide an export named 'MIME'
deno version: v1.5.2
abc version: v1.2.1

I can't reproduce.

This error will only appear after deno is enabled with the "--no-check" option

I just ran into this, and strangely enough, like @xyb851 said, it only happens when passing in --no-check. :shrug:

This error is caused by deno. It is recommended not to carry the nocheck flag before waiting for deno to be fixed.
For more details see: https://github.com/denoland/deno/issues/8478

I removed namespace in v1.2.3, and now we can use nocheck and bundle freely.
cc @michailVestnik


[move-vm] module republish

Motivation
The Move CLI does not use the VM's API for module publishing as of now. Instead, it directly writes to the on-disk data store. There are two reasons behind: 1) convenience, and 2) module-republishing is not supported in the VM side.
This PR adds module-republishing logic to the VM side, and the current criteria is: module publishing is allowed if the new module is backward compatible with the old module. (Compatibility is defined by the Compatibility::check() function). If the new module is not backward compatible, the VM errors out with StatusCode::BACKWARD_INCOMPATIBLE_MODULE_UPDATE.
Within this PR, the module re-publishing flow is (if module-republishing is allowed)

Build a transaction with publishing module mode together with the module bytecode
the VM session execute the transaction and, if all checks are passing, finishes with a transaction effect that contains the bytes of modules to be republished.
The storage can then call whatever the procedure is to save modules to storage. In the case of the Move CLI, it is OnDiskStateView::save_modules() to save these bytes to storage, regardless whether the same module id already exists or not.

And since the Move CLI also supports publishing modules that break backward compatibility, we cannot re-use the VM's publish_module API for that flow, so we force the Move CLI to the on-disk storage override directly.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo xtest
Both the ir-testsuite and e2e-testsuite are updated with test cases to cover module republishing scenarios.

/land

/land

:lock: Merge Conflict

:lock: Merge Conflict

Resolved merge conflict

Resolved merge conflict

/land

/land


hover-tooltip-error

Here's the error I got without the check included in PR.
Regards,
Maxim Matyunin

Thank you for the PR, sorry for the delay


Add scroll to top button

Current Behavior
No scroll to top button
Desired Behavior
A scroll to top button
Screenshots / Mockups

I dont think we need it as there is already mapping of items in right side , Please close this issue

Okay 👍


Drop fully applied condition in UPLC inliner

This and PR #5426 finishes PLT-6152: Drop the fully-applied condition in the callsite inliners.

[x] remove splitParams
[x] remove fully applied condition
[x] add tests

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Commit sequence broadly makes sense
[ ] Key commits have useful messages
[ ] Changelog fragments have been written (if appropriate)
[ ] Relevant tickets are mentioned in commit messages
[ ] Formatting, PNG optimization, etc. are updated

PR

[ ] (For external contributions) Corresponding issue exists and is linked in the description
[ ] Targeting master unless this is a cherry-pick backport
[ ] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

I checked all 200 Marlowe budget tests. All improvements. No regression. A few other regressions in script context tests, nofib, and plutus-tx-plugin - mostly not significant. Notable regressions are pointed out in comments.


Heroku HTTPS is not using valid SSL

I'm blocked from adding Github repos to ADR-Manager:
adr-manager-auth.herokuapp.com normally uses encryption to protect your information. When Chrome tried to connect to adr-manager-auth.herokuapp.com this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be adr-manager-auth.herokuapp.com, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Chrome stopped the connection before any data was exchanged.
You cannot visit adr-manager-auth.herokuapp.com right now because the website sent scrambled credentials that Chrome cannot process. Network errors and attacks are usually temporary, so this page will probably work later.

Is this still an issue? I can't seem to reproduce this, neither in Chrome nor in Firefox (both on Windows 10).


OkHttp3Downloader if final

I wanted to extend OkHttp3Downloader by forcing to use the disk cache first and then go to fetch images from network, but I cannot as OkHttp3Downloader has been made final. Can it be made not final?

You can use an OkHttp interceptor for that.
On Wed, Oct 5, 2016, 7:19 PM Marcin Pękalski<EMAIL_ADDRESS>wrote:

I wanted to extend OkHttp3Downloader by forcing to use the disk cache
first and then go to fetch images from network, but I cannot as
OkHttp3Downloader has been made final. Can it be made not final?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/picasso2-okhttp3-downloader/issues/15,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEdvFJ0FjUXwYxai9xB3soL7lYPNmks5qxDB9gaJpZM4KPY9z
.


ALE: error when linting vue files with ESLint

I'm getting this error when trying to lint a vue file with eslint: Parsing error: Unexpected token <
Line that causes this contains: <template>

Sorry, forgot to enable eslint-plugin-vue plugin.


added option to skip provisioning of a host

For Puppet beaker testing I want to reuse a puppetmaster host in vsphere. I do not want it to reset to a specific point in time, because it would require updating all puppet modules again which costs time.
From beaker-rspec I need to copy resources to the puppetmaster like hieradata, so having the host available through the nodeset config is really helpful.
I have added a parameter provision to skip vsphere provisioning, but still be able to reach the host from rspec.

Can one of the admins verify this patch?

Hi @hdoedens!  Thanks for contributing these changes to beaker, we're looking forward to talking about these with you.
In order for these to be merged into beaker, the changes will have to meet our contributor standards, which can be seen in the top level CONTRIBUTING.md doc.  The only changes required for your PR to meet our standards are as follows:

The git commit message will need to be prefixed by either a (MAINT) or Beaker ticket ref (ie (BKR-999)).  You can create a beaker ticket at our Jira project here.
Please include a spec test, so that we can be sure we don't break your functionality in the future.

Once these are done, we can look at getting your changes through our pipline and merged!  Let me know if you have any questions about this.

@kevpl Thank you for your response.
I have created an issue (BKR-709) and amended the commit message. I have also added a spec test although I am not what the value of those tests are as I was unable to let mine or existing tests fail by modifying the expectations.
Anyhow, please let me know if I need to undertake more action.

You weren't able to get your test to fail?  I would imagine in this test case you'd set up your hosts to have host[:provision] be false, and then verify that the name, vsphere_vms, and whatever other consequences you're setting are behaving appropriately.
I usually comment out my changes after making a test, just to run one last verification that it does fail without my code, & then succeed with my code just before submitting.
Let me know when you feel better about your testing code, and we'll take a look at it.

PR for BKR-709.

What worries me most is that other tests also succeed when I change the expectation. For example when I change the expectation of the test on line 47 of spec/beaker/hypervisor/vsphere_spec.rb (provisions hosts if no snapshot is provided) from:
expect( MockVsphereHelper.find_vm( host.name ).powerState ) == "poweredOn"
to
expect( MockVsphereHelper.find_vm( host.name ).powerState ) == "foobar"
the test still succeeds. It seems as these tests are userless but I can't figure out what is wrong.


SerializationContext always empty in ConfluentSerializerWrapper

KafkaFlow.SchemaRegistry.ConfluentSerializerWrapper is always providing an Empty instance of Confluent.Kafka.SerializationContext to the IAsyncySerializer instance.
Not providing the Topic name, always results in an unknown generated subject name "-value".

Hi @schepersk, an empty SerializationContext doesn't use to be a problem with Schema Registry serializers.
Can you please share your consumer configuration in order to try to reproduce this problem?

Hi @dougolima, the problem is not on the consumer side, but on the producer side.
In the class KafkaFlow.SchemaRegistry.ConfluentSerializerWrapper, method SerializeAsync, a Confluent.Kafka.SerializationContext.Empty instance is always provided to the underlying IAsyncSerializer. For that reason, a valid subject name cannot be generated.

Hi @schepersk, when I said consumer configuration I meant producer configuration, sorry.
This error uses to happens when you try to publish different message types to the same topic using SubjectNameStrategy.Topic.
Empty SerializationContext has never given us any problem, so far.
Can you please share your producer configuration and more details like:

AvroSerializerConfig
KafkaFlow version
Kafka version
?


Auth Attempt returns false

Hey,
the Package works fine, if i search for users like that:
$users = Adldap::getDefaultProvider()->search()->users()->find('Daniel Julius');
But if i cant authorise a user.. I use following code to do that:
dd(Adldap::getDefaultProvider()->auth()->attempt('USERNAME', 'PASSWORD'));
This returns a FALSE. But Username and Password are 100% correct.
Username attribute is the following:
'username_attribute' => ['username' => 'samaccountname'],
Can anyone help me?

My problem was the "account_prefix" config parameter.
I thought it will be automatically added a backslash, because escaping the backslash in the config is crap..


OLM pods are down

describe one:

Suddenly this occurred, some of the pods are missing, as I deleted them for recreation but they did not yet

It looks like the package server (which is a kube aggregated API service) is panicking on startup because the kube apiserver is returning some errors. Can you get the logs of the package server pod before it shuts down?
Also, the package server is bootstrapped as an OLM CSV in the olm namespace. I'm wondering if there is some auth issue. You could try to delete the packageserver CSV and then manually reapply it with the install manifests you used to install OLM.

The packageserver CSV exists as a UX api. It lets you kubectl get packagemanifests so you can see which operators are available on the cluster. It's not necessary to actually lifecycle operators that are already installed, or even install new ones if you know ahead of time which operators are available in the catalogs on your cluster. I doubt this is node related, and most likely there is something about scale or instability with the api server that is making it difficult for the packageserver (which is an aggregated api server) to succesfully start.

Do you have any idea how to workaround it?
these pods are on complete status

However, when I describe it, it tells me The node was low on resource: memory. Container packageserver was using 143704Ki, which exceeds its request of 50Mi.


README: Prerequisites are Linux (unless i'm missing windows and macOS Install instructions somewhere?)

Is there cross-platform support? If not then it should be stated in the README and Install documentation.

The server will be written in Linux (because I also use Linux). The client will be written in Go as well. Please have a look here https://github.com/grd/FreePDM/discussions/77. This will be a multi-platform client because it is written in Go.

Nice! Thanks for the link.
Indeed, consider adding a mention to this in the README to help orient users when they arrive to the page that this PDM client will be cross-platform (written in GO).

@luzpaz One more thing. In the past I also wanted to write a website. It has it's pros and cons. What is your opinion of a website, like the one of taack-plm? To me, I prefer an ordinary GUI. Maybe I can ask that question in the conference. But I still need to have quite a lot of information coming from FreeCAD files. I need to have a workbench. Dan Miel created one that filled in some parameters. I don't know if today there are some standard parameters inside FreeCAD.

I think a website is instructive. It can point to the docs. It can be used to post changelogs.
You can create a rudimentary site via github: https://pages.github.com/

But I still need to have quite a lot of information coming from FreeCAD files. I need to have a workbench. Dan Miel created one that filled in some parameters. I don't know if today there are some standard parameters inside FreeCAD. There are probably no standard parameters that anyone can import / export.

Open a forum thread ?


Inference is stuck

I tried to run the "inference" notebook, but it is stuck on the inference stage (seems like it). After 9 hours, I stopped the execution. Is this normal behavior? There is no progress bar to figure out if it is actually running or not.

Thanks for taking your time to help improve tile2net. Two questions:

Are you able to run example.sh?
Would you please try running this again, and giving us the logger output?
Thanks.

The python files are working, the problem happens with the jupyter notebook. Could be an issue regarding the conda environment, I will get back to you after checking it out.

@rafiibnsultan
Thank you. Did you do a git pull? Could you report the logs after pulling the most recent version?
Also, did you create a new virtual environment to install?


AutoForm component factory function

In most of my use case, most of the props props AutoForm shares common values (e.g., namespace).
It'd better create factory function that takes these common props, and return the component with defaultized props.

closed since now we use useAutoForm hook to retrieve AutoForm component


incorrect device model detected

Describe the bug
the device model displayed for the inverter is incorrect.
If HMS-2000-4T is used, HMS-1600-4T is displayed
To Reproduce

install the integration
Einstellungen -> Geräte und Dienste -> Hoymiles -> Geräte
the model shown is HMS-1600-4T

Expected behavior
display HMS-2000-4T
Screenshots

** DTU used **

DTU-WLite-S

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Thanks.
Can you post the first 4 digits of your serial number?

The serial number starts with : 1164xxxxxxxx

Thanks, it seems like they both use the same prefix. I will fix this in the next version.

Thanks for you fix to the detect the correct type.
It looks like that the HMS-1800-4T has the same serialnumber code.
I am using the HMS-1800-4T.
May serialnumber starts also with 1164xxxxxxxx.

Thanks for letting me know. Will push a fix in the next version.

Fixed with v0.3.0.


How to use your own dataset to train and fine-tune the VQA task of BLIP2-flant5xl

Hi, thank you very much for open source. I want to use my own Image and caption, and QA data to fine-tune the BLIP2 data. Should my process be to prepare the same data set for okvaq, and then run the /run_scripts/blip2/eval/eval_okvqa_zeroshot_flant5xl.sh file? Then should I copy evaluate.py into the run_scripts/blip2/eval/ path? Or is my approach wrong?

Hi, eval_okvqa_zeroshot_flant5xl.sh provides the script for evaluation. You can refer to train_caption_coco.sh for fine-tuning on image captioning. We are still working on providing support for VQA fine-tuning.
Thanks.

Thank you very much for your comments. However, it appears that the codes are designed for fine-tuning on the COCO dataset rather than a custom dataset. I was wondering if it would be possible to make modifications to the code in order to fine-tune the model on our custom dataset by registering it in the 'builders' directory?

@chenyd0763, can you take a look at our tutorial on how to add new datasets? https://opensource.salesforce.com/LAVIS//latest/tutorial.datasets.html

Hi, eval_okvqa_zeroshot_flant5xl.sh provides the script for evaluation. You can refer to train_caption_coco.sh for fine-tuning on image captioning. We are still working on providing support for VQA fine-tuning.
Thanks.

looking forward to the training and finetuning code

Thank to your response, I will try it later.
魇
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "salesforce/LAVIS"                                                                                @.>;
发送时间: 2023年3月14日(星期二) 下午2:16
@.>;
<EMAIL_ADDRESS>主题: Re: [salesforce/LAVIS] How to use your own dataset to train and fine-tune the VQA task of BLIP2-flant5xl (Issue #152)
Hi, eval_okvqa_zeroshot_flant5xl.sh provides the script for evaluation. You can refer to train_caption_coco.sh for fine-tuning on image captioning. We are still working on providing support for VQA fine-tuning.
Thanks.
looking forward to the training and finetuning code
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Also looking forward to the training and fine-tuning code.

Is fine-tuning code available?

looking forward to the training and finetuning code

looking forward to the training and finetuning code

Looking forward to the finetuning code :)

looking forward to the fine-tuning code for VQA as well.

looking forward to the fine-tuning code for VQA +1

Also looking forward to the fine-tuning support. Is it here yet? :)

Also looking forward for the fine-tuning support!

Also looking forward to the fine-tuning code on VQA!

VQA的finetune还没出来吗

Also looking forward to the fine-tuning code for VQA!

Looking forward to fine-tuning for VQA!

looking forward to fine tuning for vqa. at this point just captioning and running llm of choice, but obviously will be awesome if vqa can be fine tuned directly

Also looking forward to the fine-tuning code for VQA :)

does anybody know if code for BLIP2 VQA finetuning is available? /thanks

I know, no, obviously.

does anybody know if code for BLIP2 VQA finetuning is available? /thanks

hi, have you implemented fine-tune blip2 on the vqa task?


Add BeaconBlocksByRange v3

BeaconBlocksByRange v2 allows to sync blocks exclusively from the peer's canonical chain.
Consider an unstable network with a competing forks. One can group peers by their head with status Req Resp messages. However, there's asynchrony between receiving that status message and requesting blocks by range, as the head of the remote peer can change at any time.
Consider a case where you syncing a head chain with BeaconBlocksByRange v2 and peer changes its head before you issue a by range request. It changes into a fork that has all missed slots in the requested range. You should downscore the peer since its giving incorrect blocks for the segment you are intending to sync. However, the root of the issue is the risk of mixing ranges of blocks from different forks without being aware of it.
BeaconBlocksByRange v3 allows requesters to specify which fork they intend to sync. An exemplary consumer would:

Status all its peers
Group them by head_root
Issue BeaconBlocksByRange v3 requests to each group where block_root = head_root

If other clients believe this protocol to be unnecessary I'm keen to know how you handle these situations with the existing protocols.

I'm a bit surprised that this didn't exist in the beginning. Do we have any reason why we didn't do it in phase0? or we just didn't do it.

Should we do the same with BlobSidecarsByRange as well?

On Nimbus, there is branch feat/splitview which pulls in blocks via BeaconBlocksByRoot in a backward motion, from peers specifically advertising unknown branches.
One issue on Goerli was that when there is heavy branching, that there are also longer gaps, so range requests are very inefficient due to sometimes long gaps between blocks.

On Nimbus, there is branch feat/splitview which pulls in blocks via BeaconBlocksByRoot in a backward motion, from peers specifically advertising unknown branches.

If the branch is long you can easily get DOS-ed, you can't validate any block until you root the branch on a known block


Whether redisson has a deadlock detection mechanism

What kind of deadlock?

such as
---thread1    lock-a    try lock-b but waitting
---thread2    lock-b    try lock-a but waitting

How to find out these cases?

No, it doesn't trace deadlocks


[TF2.0] Syntax highlighting in PyCharm

Has anyone here had any success using tensorflow==2.0.0-alpha in pycharm? The new module organization is making it hard for PyCharm to infer namespaces correctly.
For example, if I import as tf.python.keras syntax highlighting is fine and run time fails but if I import as tf.keras syntax highlight fails and run time works.

Works fine, have you checked your PyCharm Python Interpreter settings.
https://youtrack.jetbrains.com/issues/PY is probably a better place to report this.

Thx!! Closing this since it looks like the issue has already been reported there.
https://youtrack.jetbrains.com/issue/PY-34174
https://youtrack.jetbrains.com/issue/PY-33034


WIP: 4-ci-srv-04: [no-test] Check for NPM dependency updates

Check for any outstanding update of point version of any outstanding NPM package dependency

[ ] npm-update

npm-update in progress on 3-ci-srv-02.
Log: https://<IP_ADDRESS>:8493/logs/npm-update-783-20190915-044545/

npm-update in progress on 4-ci-srv-04.
Log: https://<IP_ADDRESS>:8493/logs/npm-update-783-20190915-044545/

npm-update @babel/polyfill done: https://github.com/cockpituous/welder-web/commits/npm-update-@babel/polyfill-20190915-044646

npm-update @babel/polyfill done: https://github.com/cockpituous/welder-web/commits/npm-update-@babel/polyfill-20190915-044646

Please manually check features related to these files:
package.json:    "@babel/polyfill": "7.6.0",
webpack.config.js:  // redux-saga uses generators, babel compiles using regenerator runtime included in @babel/polyfill
webpack.config.js:  entry: ["@babel/polyfill", "./main.js"],

Codecov Report

Merging #783 into master will decrease coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #783      +/-   ##
==========================================
- Coverage   78.66%   78.51%   -0.15%
==========================================
  Files          67       67
  Lines        3379     3379
  Branches      707      707
==========================================
- Hits         2658     2653       -5
- Misses        721      726       +5

Impacted Files
Coverage Δ

core/sagas/inputs.js
70.4% <0%> (-2.05%)
:arrow_down:

components/Modal/CreateBlueprint.js
94.68% <0%> (-1.07%)
:arrow_down:

core/sagas/blueprints.js
73.05% <0%> (-1.04%)
:arrow_down:

Continue to review full report at Codecov.

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

Duplicate of #780


use of  pdb.set_trace() inside LightningModule

So being new to lightning, I have rather a basic question that I couldn't quite find the answer to in the docs.  So in regular pytorch I can use python's pdb module to pause the execution at any point and like check tensor dimensions/values, etc :
from pdb import set_trace
set_trace()
However I seem not be able to do so with lightning, whether in forward() or training_step() or any other method in the lightning module I can pause the execution at any point (obviously without having to go into lightning's internal modules). Is this supposed to be not possible or what am i missing?

@Moadab-AI Could I ask in what case you want to pause executions outside LightningModule? If you put from pdb import set_trace; set_trace() in LightningModule's methods, training_step() for example, you can still check tensor sizes/values when building models, right?

I have the same issue; I am debugging a complicated GAN and want to halt execution inside of LightningModule.forward() . Is there a way to do this?

Yes, you can stop execution by placing set_trace() in LightningModule.forward() just like when you debug normal Python scripts.
class YourGAN(LightningModule):
    ...
    def forward(self, batch):
        ...
        from pdb import set_trace; set_trace()
        ...
    ...

Thanks for the response!

@adam-mehdi Note that forward() is optional and the method isn't executed unless you manually call it in training_step (or wherever).
Please also see https://pytorch-lightning.readthedocs.io/en/latest/starter/new-project.html.

FORWARD vs TRAINING_STEP
In Lightning we separate training from inference. The training_step defines the full training loop. We encourage users to use the forward to define inference actions. Of course, nothing is stopping you from using forward from within the training_step. It really comes down to your application. We do, however, recommend that you keep both intents separate.

Use forward for inference (predicting).
Use training_step for training.

@akihironitta if one wants to check the values in the validation step imoprt pdb; pdb.set_trace() though stops the execution but one cannot type commands to see what the value of the variable or check what would happen in a pythonic way.. is there a way to go about it

Ahh no I realized its the wandb logger that was creating the problem... yes I could see the console at the breakpoint it's just did not let me write things to debug

I set the new breakpoint() in training_step and it stops after 2-3 c(ontinuations).


Faster connected_components

At the cost of using potentially twice as much memory for images with few connected components.
Huge speed up on the benchmarks, but these are fairly small images. I think it's a net win. Even if we decide this isn't the best approach, it's definitely better than using hash maps like the code currently does.
Before:

test regionlabelling::test::bench_connected_components_eight_chessboard ... bench:   2,194,672 ns/iter (+/- 249,447)
test regionlabelling::test::bench_connected_components_four_chessboard  ... bench:   6,433,376 ns/iter (+/- 1,290,848)

After:

test regionlabelling::test::bench_connected_components_eight_chessboard ... bench:   1,270,101 ns/iter (+/- 119,050)
test regionlabelling::test::bench_connected_components_four_chessboard  ... bench:     772,213 ns/iter (+/- 110,943)

Nice!


Added TravisCI configuration and badge

In this PR I've added TravisCI configuration. I've chosen to run tests on linux & macOS against the Node.js LTS, but not the current Node.js Stable because it breaks. The tasks ran are npm run dist and npm run test, preceded by npm i.
I've also added a readme badge which points to the build/test results page at Travis:
https://travis-ci.org/mirabeau-nl/frontend-boilerplate

Some background to make sure it's clear what's happening with the Github-Travis integration and build results.
The build that happened for the commit in this PR is passing:
https://travis-ci.org/mirabeau-nl/frontend-boilerplate/builds/383201863
The build that ran against the current (before this merge) master branch is failing, because the current master doesn't have a .travis.yml file. This is expected behaviour:
https://travis-ci.org/mirabeau-nl/frontend-boilerplate
So this PR can be merged, because the only real thing to review are the contents of the .travis.yml file, and this build will start passing after merge.

All good :thumbsup: Had a little trouble testing this, in the end I recreated your PR and pushed it to my own fork (not sure if there's a better way), build can be found here.
In addition, I would like to suggest the following:

Add Travis to the README features section together with a link pointing back to the official docs.
Add npm run lint to the test script.
Travis doesn't currently provide Windows support. Is it perhaps worth integrating both Travis (Linux & OSX) and AppVeyor (Linux & Windows)?

I'll approve the PR after we address the issues above.

+1 For adding npm run lint
I don't think adding Travis to the README really has added value though. AppVeyor sounds like a good idea, but we should implement it in a separate PR.

@peeke @wolfpilot Done, build is passing!

@wolfpilot I don't believe we should add Travis documentation or a link to the README, since it's not relevant to users of the frontend-boilerplate. Travis is only relevant to the developers of the boilerplate.


Try to retry decryption events

If we get an event we can't decrypt, store it and try to decrypt it later if we get the right key.
Ported from https://github.com/elokapina/bubo/pull/13

This is pretty stable and works, though it looks like the keys are rarely received. Possibly they need to be requested when storing the event? Merging, adding that as follow-up.


bug: fix blank page and base URL in prod

Resolves #37

Description
Issue: #37

[x] Added check for environment to dynamically select base URL

Screenshots

Click here for screenshots
N/A

Notes
On localhost, the routing is based at /, but on GH pages the routing is based at /learnjs/. To allow the app to run both locally and in prod, I added a check for an environment variable automatically set by node at buildtime called NODE_ENV. When building in dev mode for local testing, the variable will be automatically set to development. When building the project for deployment, it'll automatically populate as production.

Thanks to @drewpate for finding the issue that caused the blank page! This is based on his fix.

:joy: That still didn't work... Troubleshooting now