Issue when re running Cosmos Mongo DB API Template

Bicep version
0.4.63
Describe the bug
I have a module to deploy a Cosmos DB Mongo API Database witt two containers.
param location string = resourceGroup().location

param cosmosAccountName string
param databaseName string = 'clients-api'

param dbTags object

resource cosmosAccount 'Microsoft.DocumentDB/databaseAccounts@2021-03-15' = {
  name: toLower(cosmosAccountName)
  location: location
  tags: union({
    defaultExperience: 'Azure Cosmos DB for MongoDB API'
  }, dbTags)
  kind: 'MongoDB'
  properties: {
    apiProperties: {
      serverVersion: '4.0'
    }
    consistencyPolicy: {
      defaultConsistencyLevel: 'Session'
    }
    backupPolicy: {
      type: 'Continuous'
    }
    databaseAccountOfferType: 'Standard'
    locations: [
      {
        locationName: location
        failoverPriority: 0
        isZoneRedundant: false
      }
    ]
    capabilities: [
      {
        name: 'DisableRateLimitingResponses'
      }
    ]
  }
}

resource mongoDatabase 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases@2021-03-15' = {
  parent: cosmosAccount
  name: databaseName
  properties: {
    resource: {
      id: databaseName
    }
    // options: {
    //   autoscaleSettings: {
    //     maxThroughput: 4000
    //   }
    // }
  }
}

resource mongoThroughput 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings@2021-04-15' = {
  name: '${mongoDatabase.name}/throughput'
  properties: {
    resource: {
      autoscaleSettings: {
        maxThroughput: 4000
      }
    }
  }
}

resource clientsCollection 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections@2021-03-15' = {
  parent: mongoDatabase
  name: 'clients'
  properties: {
    resource: {
      id: 'clients'
      shardKey: {
        userId: 'Hash'
      }
      indexes: [
        {
          key: {
            keys: [
              '_id'
            ]
          }
        }
        {
          key: {
            keys: [
              '$**'
            ]
          }
        }
        {
          key: {
            keys: [
              'userId'
            ]
          }
          options: {
            unique: true
          }
        }
      ]
    }
  }
}

resource ordersCollection 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections@2021-03-15' = {
  parent: mongoDatabase
  name: 'orders'
  properties: {
    resource: {
      id: 'orders'
      shardKey: {
        '_id': 'Hash'
      }
      indexes: [
        {
          key: {
            keys: [
              '_id'
            ]
          }
        }
        {
          key: {
            keys: [
              '$**'
            ]
          }
        }
      ]
    }
  }
}

output dbAppName string = cosmosAccount.name
output dbName string = databaseName
output dbEndpoint string = cosmosAccount.properties.mongoEndpoint
output dbKey string = listKeys(cosmosAccount.id, cosmosAccount.apiVersion).primaryMasterKey
output db object = cosmosAccount
output dbContainer object = mongoDatabase

When I run it the first time, everything is good, but I run it a second time I have this error:
{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": "Error=2, Details='Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: e8313333-ebda-41e9-9094-3e130acbc8c3; Reason: (Message: {\"Errors\":[\"One of the specified inputs is invalid\"]}\r\nActivityId: e8313333-ebda-41e9-9094-3e130acbc8c3, Request URI: /apps/cc5db1fd-06a0-496f-b655-78fac6497239/services/80445fbb-8e2b-4f95-9a0a-dfa09403bbf8/partitions/1a337d1f-0d21-483f-b485-d4a7a522c544/replicas/132660375024097188p, RequestStats: \r\nRequestStartTime: 2021-06-14T12:13:52.8700518Z, RequestEndTime: 2021-06-14T12:13:52.8800518Z,  Number of regions attempted:1\r\nResponseTime: 2021-06-14T12:13:52.8800518Z, StoreResult: StorePhysicalAddress: rntbd://<IP_ADDRESS>:11000/apps/cc5db1fd-06a0-496f-b655-78fac6497239/services/80445fbb-8e2b-4f95-9a0a-dfa09403bbf8/partitions/1a337d1f-0d21-483f-b485-d4a7a522c544/replicas/132660375024097188p, LSN: 13, GlobalCommittedLsn: 13, PartitionKeyRangeId: , IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#13, UsingLocalLSN: False, TransportException: null, BELatencyMs: 2.287, ActivityId: e8313333-ebda-41e9-9094-3e130acbc8c3, ResourceType: Collection, OperationType: Replace\r\n, SDK: Microsoft.Azure.Documents.Common/2.14.0, Please see CosmosDiagnostics, Windows/10.0.17763 cosmos-netstandard-sdk/3.18.0);, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0"
    },
    {
      "code": "BadRequest",
      "message": "Error=2, Details='Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: abea0a8e-e438-48c4-af91-291e4f730f66; Reason: (Message: {\"Errors\":[\"One of the specified inputs is invalid\"]}\r\nActivityId: abea0a8e-e438-48c4-af91-291e4f730f66, Request URI: /apps/cc5db1fd-06a0-496f-b655-78fac6497239/services/80445fbb-8e2b-4f95-9a0a-dfa09403bbf8/partitions/1a337d1f-0d21-483f-b485-d4a7a522c544/replicas/132660375024097188p, RequestStats: \r\nRequestStartTime: 2021-06-14T12:13:52.0871538Z, RequestEndTime: 2021-06-14T12:13:52.0971593Z,  Number of regions attempted:1\r\nResponseTime: 2021-06-14T12:13:52.0971593Z, StoreResult: StorePhysicalAddress: rntbd://<IP_ADDRESS>:11000/apps/cc5db1fd-06a0-496f-b655-78fac6497239/services/80445fbb-8e2b-4f95-9a0a-dfa09403bbf8/partitions/1a337d1f-0d21-483f-b485-d4a7a522c544/replicas/132660375024097188p, LSN: 13, GlobalCommittedLsn: 13, PartitionKeyRangeId: , IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 1.57, ItemLSN: -1, SessionToken: -1#13, UsingLocalLSN: False, TransportException: null, BELatencyMs: 3.479, ActivityId: abea0a8e-e438-48c4-af91-291e4f730f66, ResourceType: Collection, OperationType: Replace\r\n, SDK: Microsoft.Azure.Documents.Common/2.14.0, Please see CosmosDiagnostics, Windows/10.0.17763 cosmos-netstandard-sdk/3.18.0);, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0"
    }
  ]
}

If I remove the collections resources from the template everything goes well.
To Reproduce
Run the template twice

@markjbrown - can you take a look at this one? Seems like an idempotency issue. Also wondering if the error message can be more specific. The current error is buried in a larger response and only specifies "One of the specified inputs is invalid", but not which input is invalid and why.
@abourobi - if you are blocked on this, I'd recommend opening up a support ticket.

@alex-frankel it's not blocking right now, because I'm starting the architecture from scratch, but it will be when it needs to be updated

When you first deploy a Cosmos DB database or container resource the throughput has to be passed in the options property. Remove the throughput resource and uncomment the throughput in the options. You can redeploy the template with it in the options.

@abouroubi -- when you have a sec, can you try mark's suggestion and let us know if it works for you?

Hello @markjbrown, @alex-frankel
I tried both and had the same results, that's why it's commented.
The only way to make the template work is to remove the collections resources

I took a look at this bicep file. Looks ok and it's very similar to the samples I created. I tried deploying it and had to remove the tags since I don't know what to pass there. The first deploy was fine and the second returned this same error.
I created an internal IcM for this on our control plane team. They may respond here directly or I will.
Thanks.

@markjbrown thanks for the reply, anything new about it ?

Team is working on a fix for this. Have asked for an ETA. Will update once I get it.

This has now been deployed in West US 2 region as a hot fix.
@abouroubi can you confirm this resolves the issue for you?
Thanks.

Thanks @markjbrown the first test that I did is good, looks like the issue has been fixed.

Thanks @markjbrown to getting this resolved!


Images not loading fine in Mac

Hello,
I've been working for the past month to set up my website with bootstrap and everything was going fine. I've just switched to a Mac and I'm having issues with the images in all browsers (I've used Chrome, Firefox and Safari). The images seem to load fine only to disappear in a matter of seconds. Please see this page as an example.
This is happening in every page with images. I'm new to Mac, so I'm not sure if there's something that I may have to install for the images to work properly.
Any help will be much appreciated. Thanks in advance.

I managed to fix the problem. The issue was being caused by the retina.js script.


Reset changes

These are mostly ported over from the demo system:
https://github.com/lowRISC/ibex-demo-system/pull/96

Just tested and it works on my machine and board.
I feel like I want the FPGA system and Verilator system to be as similar as possible, so would like to put rst_ctrl into the sonata_system, but that's a future decision.

Great I'll create an issue to track this.


Fix layout on subscribers page

Good catch. That page looks much better. On a separate issue I noticed when you view the main repo site on a mobile you get a phone full of huge faces

@schneems can you put that in a separate issue?

:nail_care:


Unable to approve a SPFx app permission request with PnP Powershell

What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
SPFx version 1.18.2
Node 18.9.0
Powershell: 7.4.1
PnP.PowerShell 2.4.33
Issue description
We have some webApiPermissionRequests defined in spfx package-solution json file
"webApiPermissionRequests": [
      {
        "resource": "Azure AD app name",
        "scope": "user_impersonation"
      },
      {
        "resource": "Microsoft Graph",
        "scope": "User.Read, AllSites.FullControl"
      }
    ]

In PowerShell I am trying to approve these permission requests using

$permissionRequests = Get-PnPTenantServicePrincipalPermissionRequests
    foreach ($req in $permissionRequests)
        {
            if ($req.PackageName -eq "$muhimbiPackageName")
            {
                Write-Host "Granting permissions $($req.Name) $($req.Scope)"

                Approve-PnPTenantServicePrincipalPermissionRequest -RequestId $req.Id -Force -ErrorAction SilentlyContinue -ErrorVariable approveRequestError -OutVariable approveRequestResult | Out-Null

                if (![String]::IsNullOrWhiteSpace($approveRequestError) -And -Not($approveRequestError -imatch "already exists"))
                {
                    Write-Host "approveRequestError: $approveRequestError"
                    $grantedAllPermissions = $false;
                    Write-Host "Failed" -ForegroundColor Red
                }
                else
                {
                    Write-Host "Success" -ForegroundColor Green
                }

                Write-Host ""
            }
        }

But I am getting below error:
approveRequestError: The service principal for permssion request {SPFX_App_Name} could not be found.
Please note there is a typo in "permssion"
Script was working fine few days ago but started giving error recently
I tried the SP online powershell as well
Get-SPOTenantServicePrincipalPermissionRequests and Approve-SPOTenantServicePrincipalPermissionRequest
getting same error
Tried
Enable-SPOTenantServicePrincipal it gives us "Unknown Error"
I checked below service principal exists:

"SharePoint Online Client Extensibility Web Application Principal"
"GraphAggregatorService" or "Microsoft Graph"
Azure AD app created by us

Manually approving the permission works just fine

Any updates on this issue? We are having the same problem recently.

Just a +1 also having the same issue, which is a double pain as the web gui also doesn't work (with an MSAL iframe error)


When there is high contention for block space sometimes there will be delays.


Create micm-performance repo for performance testing

Maybe model it off of this

https://github.com/NCAR/MUSICA-Performance-Comparison


Fix incorrect endpoint in List.md

Fixes https://github.com/milvus-io/web-content/issues/870

@AnthonyTsu1984 would you be able to review this?


Load opdrive without fbx in UEeditor

Hi!
I'm now working on a project that needs to create a map in Carla which should contains buildings. The standalone mode doesn't meet the requirement and I do not have the license of Roadrunner. What I'm trying to do is load the xodr file inUEeditor as a bare map like in standalone mode and then add some buildings manually. But I found make import do not work for xodr file only. Is there anyway to store the bare map in standalone mode as umap so that I can edit it in UEeditor?
Thank you so much!

Hi,
I found this tool which could work in your favor.
https://github.com/ishaan95/blenderOpenDRIVEImporter

Hi, I found this tool which could work in your favor.
https://github.com/ishaan95/blenderOpenDRIVEImporter

Oh! Thank you so much! This problem is really troubling me for a long time. You provide a new perspective to solve the problem. I will try this. Thank you again!

In carla/LibCarla/source/carla/geom/Mesh.cpp, there is a function called Mesh::GenerateOBJ(). It can export the mesh in Obj file and then be used in blender. But I'm not sure how to use it. I didn't find much information about C++ API. How can I get the mesh information.

The function you found is probably for the Digital Twin tool, which should also be able to load opdenDRIVE files.
The documentation is incomplete, and many people (me included) don't know how to get it running.

The function you found is probably for the Digital Twin tool, which should also be able to load opdenDRIVE files. The documentation is incomplete, and many people (me included) don't know how to get it running.

Hi! Thank you for your reply! Actually I found this function in the issue #3478 https://github.com/carla-simulator/carla/issues/3478. The author said just call this function and it will get the OBJ string. But I'm not sure how to call this function in the code.


An error occurred while reading the key ring

We are running some integration tests in a docker container and it appears that we are encountering the following exception.  Everything is pretty standard we don't even directly reference the data protector and it all works outside the container.
.NET core 2.1
Exception
Microsoft (R) Test Execution Command Line Tool Version 15.7.0
Copyright (c) Microsoft Corporation.  All rights reserved.
Starting test execution, please wait...
Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
      No XML encryptor configured. Key {d53a4cf9-f22c-4723-833b-1c9d3d92de1c} may be persisted to storage in unencrypted form.
Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
      No XML encryptor configured. Key {c882fb25-423d-40b0-af65-175dc37bd26f} may be persisted to storage in unencrypted form.
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider[48]
      An error occurred while reading the key ring.
System.IO.IOException: The process cannot access the file '/root/.aspnet/DataProtection-Keys/key-c882fb25-423d-40b0-af65-175dc37bd26f.xml' because it is being used by another process.
   at System.IO.FileStream.Init(FileMode mode, FileShare share)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.OpenRead(String path)
   at Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository.ReadElementFromFile(String fullPath)
   at Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository.GetAllElementsCore()+MoveNext()
   at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository.GetAllElements()
   at Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager.GetAllKeys()
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.CreateCacheableKeyRingCore(DateTimeOffset now, IKey keyJustAdded)
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.CreateCacheableKeyRingCore(DateTimeOffset now, IKey keyJustAdded)
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.Microsoft.AspNetCore.DataProtection.KeyManagement.Internal.ICacheableKeyRingProvider.GetCacheableKeyRing(DateTimeOffset now)
   at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProvider.GetCurrentKeyRingCore(DateTime utcNow)

Dockerfile
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src

# Copy supporting projects
COPY Onboard.Api.sln ./
COPY docker-compose.dcproj ./
COPY Onboard.Core.Tests/Onboard.Core.Tests.csproj Onboard.Core.Tests/

# Copy Core
COPY Onboard.Core/Onboard.Core.csproj Onboard.Core/
COPY Onboard.Core/Nuget.config Onboard.Core/

# Copy main project
COPY Onboard.Api.People/Onboard.Api.People.csproj Onboard.Api.People/

# Copy test project
COPY Onboard.Api.People.Tests/Onboard.Api.People.Tests.csproj Onboard.Api.People.Tests/

# Restore packages
RUN dotnet restore Onboard.Core --configfile Onboard.Core/Nuget.config -nowarn:msb3202,nu1503
RUN dotnet restore Onboard.Core.Tests --configfile Onboard.Core/Nuget.config -nowarn:msb3202,nu1503
RUN dotnet restore Onboard.Api.People --configfile Onboard.Core/Nuget.config -nowarn:msb3202,nu1503
RUN dotnet restore Onboard.Api.People.Tests --configfile Onboard.Core/Nuget.config -nowarn:msb3202,nu1503

COPY . .

# Build project
WORKDIR /src/Onboard.Api.People.Tests
ENTRYPOINT ["dotnet", "test", "Onboard.Api.People.Tests.csproj", "-l", "trx;LogFileName=/artifacts/people-results.trx"]

You may not be using directly, but ASP.NET uses it internally for cookies and csrf values.
Does it only happen in tests? Are the tests running parallel? What are the tests doing? How is the test setup configured? (you must have a pipeline somewhere to encounter this)
If you're spinning up the asp.net pipeline you could just configure data protection to use the in memory provider.

Does it only happen in tests?
Yes, and only when running in docker

Are the tests running parallel?

They are and disabling parallelism appears to resolve the issue

What are the tests doing?

Basic CRUD operations.

How is the test setup configured?

Xunit & Microsoft.AspNetCore.Mvc.Testing

I'll try in the memory provider and see if that allows us to run on multiple threads.  It would be a shame to lose that perf.

Well in memory would increase perf in testing as well, so bonus :D

So I finally got a chance to look at this problem again.  Am I correct in saying I just need to do an implementation of IXmlRepository Interface in order to create an in-memory store.  Or is there a prebuilt provider.  I don't see any on Here

Sorry, I missed this. There's a prebuilt one for you, EphemeralXmlRepository, which you can get to via EphemeralDataProtectionProvider, and UseEphemeralDataProtectionProvider


Add --distribution flag

We need new --distribution flag  for apply, generate, create and delete commands.
This flag will control if Kubernetes or OpenShift artifacts should be used.
The flag will have two choices openshift or kubernetes . Default value if --distribution is not  set is kubernetes
this is part of the bigger goal #210

This is being worked on via https://github.com/kedgeproject/kedge/pull/250

Closing via https://github.com/kedgeproject/kedge/pull/250


Update summary of Playbook run via API

Hi.
How can i update summary of playbook run?
The method PATCH /plugins/playbooks/api/v0/runs/{run_id} with payload "summary": "Example summary" is getting the answer 200 OK, but do nothing.
I'm trying to update it in Postman
What am i doing wrong?

Hi, did you find a away to implement this?

What am i doing wrong?
For what I can see, there's nothing in the API reference regarding the possiblity to update the Summary or to define it when creating a new playbook run.

I think it would be very helpful.

Hi, did you find a away to implement this?

What am i doing wrong?

For what I can see, there's nothing in the API reference regarding the possiblity to update the Summary or to define it when creating a new playbook run.
I think it would be very helpful.

Hi
I can define it when creating f new playbook run? but can't do it? when try to update a playbook run


Is this being mantained?

Seems like issues are just accumulating

https://github.com/thomasdondorf/puppeteer-cluster/issues/428 It seems the author is only going to focus on dependancies

I would assume this is also being maintained by the community


[BUG]: Error while running locally

After setting up the project locally there are some errors occur

hey @suryapratap04
can you assign me this


Link hackmd running agenda for BOTH PE and CM from repo

Could we just have a link to the hackMD that way the we don't need to remember to update the contents in the repo each week?

 this way, however clunky, is what DIF has been trying to align on since... summer 2020.  will put in an explanation


Infinite loss for classifier

@ayush-1506 I wonder if you could investigate this?
I'm adding to the classifier tests and am encountering an infinite loss problem:
    seed!(1234)
    N = 100
    X = MLJBase.table(rand(Float32, N, 4));
    ycont = 2*X.x1 - X.x3 + 0.6*rand(N)
    m, M = minimum(ycont), maximum(ycont)
    _, a, b, _ = range(m, M, length=4) |> collect
    y = map(ycont) do η
        if η < 0.9*a
            :a
        elseif η < 1.1*b
            :b
        else
            :c
        end
    end |> categorical;

    builder = MLJFlux.Linear(σ=Flux.sigmoid)
    optimiser = Flux.Optimise.ADAM(0.00001)

    model = MLJFlux.NeuralNetworkClassifier()
    MLJBase.fit(model, 3, X, y)

ERROR: Loss is infinite
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] losscheck(::Tracker.TrackedReal{Float32}) at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:154
 [3] gradient_(::Flux.Optimise.var"#15#21"{MLJFlux.var"#loss_func#2"{Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}},typeof(Flux.crossentropy)},Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}}}, ::Tracker.Params) at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:98
 [4] #gradient#24(::Bool, ::typeof(Tracker.gradient), ::Function, ::Tracker.Params) at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:164
 [5] gradient at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:164 [inlined]
 [6] macro expansion at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:71 [inlined]
 [7] macro expansion at /Users/anthony/.julia/packages/Juno/f8hj2/src/progress.jl:134 [inlined]
 [8] #train!#12(::Flux.Optimise.var"#16#22", ::typeof(Flux.Optimise.train!), ::Function, ::Tracker.Params, ::Array{Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}},1}, ::ADAM) at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:69
 [9] train! at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:67 [inlined]
 [10] fit!(::Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}}, ::ADAM, ::typeof(Flux.crossentropy), ::Int64, ::Float64, ::Float64, ::Int64, ::Array{Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}},1}) at /Users/anthony/Dropbox/Julia7/MLJ/MLJFlux/src/core.jl:91
 [11] fit(::NeuralNetworkClassifier{MLJFlux.Linear,ADAM,typeof(Flux.crossentropy)}, ::Int64, ::Tables.MatrixTable{Array{Float32,2}}, ::CategoricalArray{Symbol,1,UInt32,Symbol,CategoricalValue{Symbol,UInt32},Union{}}) at /Users/anthony/Dropbox/Julia7/MLJ/MLJFlux/src/classifier.jl:45
 [12] top-level scope at REPL[256]:1
 [13] eval(::Module, ::Any) at ./boot.jl:330
 [14] eval_user_input(::Any, ::REPL.REPLBackend) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:86
 [15] run_backend(::REPL.REPLBackend) at /Users/anthony/.julia/packages/Revise/Pcs5V/src/Revise.jl:1073
 [16] top-level scope at none:0

Not even one epoch is trained, and I'm using a tiny eta=0.00001. I understand that crossentropy will be infinite if a predicted probability for an observed target value is zero, but I'm having trouble imagining how this could be happening within the first epoch.
The Flux code seems to suggest that Flux.crossentropy can be replaced with Flux.logitbinarycrossentropy for multi class problems, for better stability. But this just introduces a MethodError:
model = MLJFlux.NeuralNetworkClassifier(loss=Flux.logitbinarycrossentropy)
MLJBase.fit(model, 3, X, y)

julia> MLJBase.fit(model, 3, X, y)
ERROR: MethodError: no method matching -(::Int64, ::Flux.OneHotMatrix{Array{Flux.OneHotVector,1}})
Closest candidates are:
  -(::Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8}) at int.jl:51
  -(::T, ::T) where T<:Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8} at int.jl:52
  -(::Union{Int16, Int32, Int64, Int8}, ::BigInt) at gmp.jl:518
  ...
Stacktrace:
 [1] logitbinarycrossentropy(::TrackedArray{…,Array{Float32,2}}, ::Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}) at /Users/anthony/.julia/packages/Flux/qXNjB/src/layers/stateless.jl:40
 [2] (::MLJFlux.var"#loss_func#93"{Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}},typeof(Flux.logitbinarycrossentropy)})(::Array{Float32,2}, ::Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}) at /Users/anthony/Dropbox/Julia7/MLJ/MLJFlux/src/core.jl:86
 [3] (::Flux.Optimise.var"#15#21"{MLJFlux.var"#loss_func#93"{Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}},typeof(Flux.logitbinarycrossentropy)},Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}}})() at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:72
 [4] gradient_(::Flux.Optimise.var"#15#21"{MLJFlux.var"#loss_func#93"{Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}},typeof(Flux.logitbinarycrossentropy)},Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}}}, ::Tracker.Params) at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:97
 [5] #gradient#24(::Bool, ::typeof(Tracker.gradient), ::Function, ::Tracker.Params) at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:164
 [6] gradient at /Users/anthony/.julia/packages/Tracker/cpxco/src/back.jl:164 [inlined]
 [7] macro expansion at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:71 [inlined]
 [8] macro expansion at /Users/anthony/.julia/packages/Juno/f8hj2/src/progress.jl:134 [inlined]
 [9] #train!#12(::Flux.Optimise.var"#16#22", ::typeof(Flux.Optimise.train!), ::Function, ::Tracker.Params, ::Array{Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}},1}, ::ADAM) at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:69
 [10] train! at /Users/anthony/.julia/packages/Flux/qXNjB/src/optimise/train.jl:67 [inlined]
 [11] fit!(::Chain{Tuple{Dense{typeof(relu),TrackedArray{…,Array{Float32,2}},TrackedArray{…,Array{Float32,1}}}}}, ::ADAM, ::typeof(Flux.logitbinarycrossentropy), ::Int64, ::Float64, ::Float64, ::Int64, ::Array{Tuple{Array{Float32,2},Flux.OneHotMatrix{Array{Flux.OneHotVector,1}}},1}) at /Users/anthony/Dropbox/Julia7/MLJ/MLJFlux/src/core.jl:91
 [12] fit(::NeuralNetworkClassifier{MLJFlux.Linear,ADAM,typeof(Flux.logitbinarycrossentropy)}, ::Int64, ::Tables.MatrixTable{Array{Float32,2}}, ::CategoricalArray{Symbol,1,UInt32,Symbol,CategoricalValue{Symbol,UInt32},Union{}}) at /Users/anthony/Dropbox/Julia7/MLJ/MLJFlux/src/classifier.jl:45
 [13] top-level scope at REPL[266]:1
 [14] eval(::Module, ::Any) at ./boot.jl:330
 [15] eval_user_input(::Any, ::REPL.REPLBackend) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/REPL/src/REPL.jl:86
 [16] run_backend(::REPL.REPLBackend) at /Users/anthony/.julia/packages/Revise/Pcs5V/src/Revise.jl:1073
 [17] top-level scope at none:0

@ablaom : Why are you using model = MLJFlux.NeuralNetworkClassifier() ? Perhaps you forgot to define builder argument here. Using model = MLJFlux.NeuralNetworkClassifier(builder=builder) works for me.
julia> MLJBase.fit(model, 3, X, y)
[ Info: Loss is 0.4794
[ Info: Loss is 0.4205
[ Info: Loss is 0.3706
[ Info: Loss is 0.3282
[ Info: Loss is 0.2921
[ Info: Loss is 0.2614
[ Info: Loss is 0.235
[ Info: Loss is 0.2122
[ Info: Loss is 0.1924
[ Info: Loss is 0.1752```

Thanks for that!
However, I think default values for the parameters should Just Work™ on such simple data (linear + noise + thresholds to create the the classes)
The real issue, as I have discovered, is that is that there is no softmax forced at the end of the chain (it only appears in the predict method). So neither model is actually predicting probability vectors for a sensible comparison with the (one-hot encoded) target observations.
99.9% of the time regular users will want a  softmax "finaliser". I suggest that the chain for classifiers always be the chain generated by the builder with an added finaliser at the end, where finaliser is a new hyperparmeter defaulting to softmax that the ordinary user will never change. We can remove the softmax from predict, as it will then be redundant.
@ayush-1506 I will implement in  new PR for your review shortly, but let me know if you have a dissenting opinion.


Broken online tutorial

The  interpreter at https://www.eff-lang.org/try/ displays:
Runtime error: unknown external symbol infinity.

this makes it impossible to run  any of the code in the tutorial.

@fghibellini Thanks for letting us know!


Generate hangs with fetch from Firebase to store

// pages/index.vue

// ...SNIP...

fetch({ store }) {
  return firebase.database().ref('/').once('value')
    .then((snap) => {
      return store.dispatch('setDataAction');
    });
}

// store/index.js

import Vuex from 'vuex'

const store = () => new Vuex.Store({
  state: {
    data: null,
  },
  mutations: {
    setDataMutation(state, _data) {
      state.data = _data;
    }
  },
  actions: {
    setDataAction({commit}, _data) {
      return new Promise((resolve, reject) => {
        commit('setDataMutation', _data);
        resolve();
      });
    },
  },
})

export default store

Hangs after executing nuxt generate:
...
  nuxt:generate Generate file: /index.html +906ms
  nuxt:generate HTML Files generated in 12.6s +1ms
[nuxt] Generate done      # <----- Hangs here

Hi @anishkny
It will be fixed in 1.0, see https://github.com/nuxt/nuxt.js/blob/dev/bin/nuxt-generate#L60
In the meantime: Ctrl + C or maybe closing the firebase connection at the end of fetch?

Thanks for the reply @Atinux. Yup looks like when I patch nuxt-generate locally, it works! I will leave this issue open to communicate when the fix is released.
Btw, the Firebase connection is closed soon after data fetch because I am using once() which is effectively on() followed by off(). See doc.
Also, Ctrl + C does not work in CI but I am able to workaround.
For now, I am patching this change in npm postinstall. Shall wait for fix to be released!
--- node_modules/nuxt/bin/nuxt-generate	2017-07-09 11:04:44.000000000 -0400
+++ node_modules/nuxt/bin/nuxt-generate.patched	2017-07-09 11:05:47.000000000 -0400
@@ -24,6 +24,7 @@
   nuxt.generate()
     .then(() => {
       console.log('[nuxt] Generate done') // eslint-disable-line no-console
+      process.exit(0)
     })
     .catch((err) => {
       console.error(err) // eslint-disable-line no-console

PS: I am a huge fan of Nuxt which makes VueJS even more easier to use (didn't think such a thing was possible)!

Close it since rc3 is out


Develop to Main

Codecov Report

Merging #3 (eaf59ac) into main (a62b130) will decrease coverage by 0.90%.
The diff coverage is 16.76%.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   20.80%   19.89%   -0.91%
==========================================
  Files           1        4       +3
  Lines         125      196      +71
  Branches       21       25       +4
==========================================
+ Hits           26       39      +13
- Misses         97      156      +59
+ Partials        2        1       -1

Impacted Files
Coverage Δ

lib/messages.js
3.22% <3.22%> (ø)

lib/receipts.js
12.50% <12.50%> (ø)

lib/pushover.js
14.28% <14.28%> (ø)

pushover.js
38.15% <38.29%> (+17.35%)
:arrow_up:

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


Fhir engine search does not return correct data.

Describe the Issue
Fhir engine search does not return correct data when using include.
when try to replicate the query
%HOST_URL%/Encounter?type=%SYSTEM_URL%|%CODE%&status=%STATUS%&_include=Encounter:patient:Patient&_elements=_id,type,status&_total=accurate

with fhir engine search method :
      fhirEngine.search(ResourceType.Encounter) {
                filter(
                    Encounter.TYPE, {
                        value = of(Coding("%SYSTEM_URL%", "%CODE%", ""))
                    }
                )
                filter(
                    Encounter.STATUS, {
                        value = of("%STATUS%")
                    }
                )
                include(ResourceType.Patient, Encounter.SUBJECT)
            }

The fhir engine does not return any Patient resouce (patient resource should be returned, checked on our server)
Tried using Encounter.Patient in resource reference as well.
I could not find any documentation on how to use include with the search in fhir engine.
Is the code incorrect, or is it not returning the correct value?
@jingtang10 @fredhersch help would be appreciated.
Would you like to work on the issue?

@mansikalraa Could you please provide some test data ( encounters + associated patients) for us to test on our end?

@jingtang10 @aditya-07 Thank you for the response. While exploring the search feature, I was able to find how to retrieve the included resouce successfully.
fhirEngine.search(ResourceType.Encounter) {
                filter(
                    Encounter.TYPE, {
                        value = of(Coding("%SYSTEM_URL%", "%CODE%", ""))
                    }
                )
                filter(
                    Encounter.STATUS, {
                        value = of("%STATUS%")
                    }
                )
                include(ResourceType.Patient, Encounter.SUBJECT)
            }.forEach { searchResult ->
                  val includedResource = searchResult.included?.get(Encounter.SUBJECT.paramName)[0] as Patient
            }
        }


Feature/extend tutor dashboard with modeling exercises

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: the project builds without code style warnings.
[x] ~I updated the documentation and models.~
[ ] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[x] ~I added (end-to-end) test cases for the new functionality.~

Motivation and Context
With growing numbers of students that use ArTEMiS an increasing number of tutors is necessary to assess the students' submissions. All these tutors have different levels of experience and knowledge. In order to increase the assessment quality and to decrease the number of conflicting assessments for modeling exercises, we want to improve the training of tutors by a tutor dashboard including assessment tutorials.
Description
We extend the existing tutor dashboard to also support modeling exercises. In the dashboard tutors have to read the grading instructions and review or assess example submissions created by the instructor before being able to assess real student submission.
Steps for Testing

Log in to ArTEMiS
Navigate to Course Administration
Create an exercise with grading instructions
Add example submission(s) and assessment(s) to exercise
Navigate to "Tutor Course Dashboard" via Course Administration
Click on "Exercise Dashboard" for the previously created exercise
Confirm reading the grading instructions
Review Example Submissions not "used for tutorial"
Assess Example Submissions "used for tutorial"
See Students' Submissions appear
Assess Student Submission

changes are included in #267 so we close this one.
@SiggZ please delete the corresponding feature branch when you don't need it any more.


Spotify Module Not Available

Hello, I can't seem to find the Spotify module in the Companion instances list? Does it have to be installed separately? I believe I'm running the latest verision.

You need to be running one of the 2.2 beta builds to use this module


Monitor.getItem loses its state with NativeTypes.file

Describe the bug
Depending on where an item is dragged from, monitor.getItem loses the state of DataTransferItems. If a file is dragged directly to the ref element from the os then the state will be tracked properly until the drag leaves the bounds of the browser window. If the same drag is brought back then the DataTransferItems will be empty.
What's worse is if the drag enters the browser with the cursor not directly over the ref element then the DataTransferItems will never be populated.
Reproduction
Open the console in the sandbox, then start dragging a file, at first it will have the correct mime type but then it will go away
Live Reproduction
Steps to reproduce the behavior:

Open the console in the sandbox
Start dragging a file from your OS
At first mime type is correctly displayed but then it goes away

Expected behavior
DataTransferItems should not be cleared on the same drag
Desktop (please complete the following information):

OS: MacOS 11.5.1
Browser: Brave Browser (Chromium)
Version: Version 1.30.86 Chromium: 94.0.4606.61 (Official Build) (arm64)

I can confirm that this issues is partly fixed, but the state is still lost when the ref element is left, i.e. when you drag over the element and then leave it again -> item is empty again.
Additionally, the collect hook seems not to be called when the item changes, resulting in stale data returned from the useDrop hook.
Happens on Windows with standard Chrome and newest dependencies:
OS: Windows 10
Browser: Chrome 99.0.4844.51
Does not happen with Firefox.
See an updated Sandbox here: https://codesandbox.io/s/dark-haze-fxw4u3?file=/src/hooks/useFileDrop.ts


do not expose endpoint locks outside of pkg/endpoint

Having to have callers acquire / release the endpoint lock is a sign that we are leaking implementation details outside of the endpoint package. Track usages of the endpoint mutex es which are done outside of pkg/endpoint and see how we can refactor the code to not expose its implementation.

Fixed-by #9142


Warn users not to use multicodec with inputs that support multiple hosts

Another PR related to https://github.com/logstash-plugins/logstash-input-beats/issues/199
@ppf2 @acchen97  I think we should also mention this in the doc for the multiline codec.

++ good idea. LGTM.


BlitzWolf BW-IS3

Device description
Rechargeable Zigbee PIR motion sensor
Zigbee2mqtt page
https://www.zigbee2mqtt.io/devices/BW-IS3.html
MQTT message with device information
PUT here the device data you receive when publish message with topic
zigbee2mqtt/bridge/config/devices, as example
dateCode":"20180727","description":"Rechargeable Zigbee PIR motion sensor","friendly_name":"PIR","hardwareVersion":1,"ieeeAddr":"0xec1bbdfffe302e49","lastSeen":1605196074842,"manufacturerID":0,"manufacturerName":"_TYST11_i5j6ifxj","model":"BW-IS3","modelID":"5j6ifxj\u0000","networkAddress":24692,"powerSource":"Battery","type":"EndDevice","vendor":"BlitzWolf"

MQTT messages from device
Zigbee2MQTT:info  2020-11-12 16:46:38: MQTT publish: topic 'zigbee2mqtt/PIR', payload '{"linkquality":68,"occupancy":true}'
Zigbee2MQTT:debug 2020-11-12 16:46:46: Received Zigbee message from 'PIR', type 'commandGetData', cluster 'manuSpecificTuya', data '{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":3,"fn":0,"status":0,"transid":103}' from endpoint 1 with groupID null

The device is supported by the latest plugin and zigbee2mqtt version. Please reopen the ticket in case of any issues.

The device is supported by the latest plugin and zigbee2mqtt version. Please reopen the ticket in case of any issues.


Enhance audit log

Audit log's usability could be improved with

[x] audit log viewer for admins (#189 )
[x] add IP to logs (#188 )
~re-scoring of restored submissions (linked to #194 )~
~automatic restoring submissions from audit log.~

Reduced scope of this issue and created a new one:
See #211


feat: Alert component

What kind of change does this PR introduce?
Alert component. #108

With icons:

With close icon:

@MildTomato I'm not sure about icons and colors, but I tried my best 🙂 Please let me know if I should change something!

Great stuff @mrkldshv
It looks good to me, ill merge it in anyway and start adding it to the other examples.
These alerts will look good on the Auth component as well for error messages 👍

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Release Google.Api.CommonProtos version 2.13.0

Changes since 2.12.0:

Update protoc and Google.Protobuf to 3.25.0
Additional methods for Google.Rpc.Status to retrieve details

Created release for Google.Api.CommonProtos-2.13.0


It's posible add a secondary sorting field?

Hi!  in the server.js file a found :
 // If secondary sorting field is present then set secondary sort.       let secondarySortField = selectedConfig.fields.secondary_sort_field;       if (secondarySortField != undefined) {         if (secondarySortField.length > 0) {           searchRequest.body.sort[0][secondarySortField] = {'order':request.payload.order}         }       }
But can't find how define it.
Thank's a lot

I found it.
Thanks
https://www.programmersought.com/article/86486818960/


Suggestion - Show Journal entry

Allow a journal to be opened when Hey Wait! is triggered. This should be shown to any combination of the GM, the triggering player, all players.

Thanks for the feature request! Our next steps with any sort of "triggers" will be to trigger a macro which will allow a journal entry to be shown in your macro code. I'll loop back once that's a possibility.

I have just released version 0.4.0 of the module which allows you to attach macros to be executed when Hey, Wait! tiles are triggered. Try creating a new macro with the following code and attach it to a tile...
JournalEntry.collection.getName("your_journal_entrys_name").show();


Update info.plist to use mysterium.desktpo instead of nodegui and myapp

https://github.com/mysteriumnetwork/mysterium-vpn-desktop/blob/f3375ab82457d793d9e9f88cb322e28f7a5d51b3/deploy/darwin/MysteriumVPN.app/Contents/Info.plist#L10
In info.plist there are set nodegui values instead of Mysterium.

It would be better to create issues with an action type of naming, not a question. Changing description of tasks.

This is a valid issue, but this will have to wait until proper signing is implemented to see if it doesn't cause any issues with signing the qode executable within the app.

@tadaskay could you share info.plist you're using to build? It doesn't work for my app with current version in repo.

I do believe @tadaskay is using same info.plist you can find in repo.

It's different, because even in your build info.plist is different than in his build.

Fixed in e6bf74d26819d2c768544577a6c68b6d35f14e2f


musl build for cross-platform docker images

Musl images can be even lighter, as it includes used libraries we can skip a runtime like alpine. It should also eliminate some runtime issues I've had in the past (related to glibc mostly).
But I think we can't build musl for aarch64 because of a problem in ring. So I either have to remove multi-platform docker builds, or wait for an upstream fix.
What I tried
See musl-docker branch
Example of failed CI action
#18 1218.1   cc1: error: unrecognized command-line option '-m64'

Tried adding ENV RUSTFLAGS='-C linker=x86_64-linux-gnu-gcc'
Tried adding linux-musl-dev dependency
Tried clux/muslrust/
Tried even more envs, no luck

I think the problem is that Cargo is using the wrong linker while building on ARM64.
I also think this is wrong:  --target x86_64-unknown-linux-musl as I should probably have aarch64-unknown-linux-musl. But how do I differentiate the target between builds? I use this docker push action which deals with pushing various builds. But I can't pass opts here.
      - name: Build and push Docker image
        uses: docker/build-push-action@v4
        with:
          context: .
          push: true
          provenance: false
          platforms: linux/amd64,linux/arm64
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}

Should I get rid of this action and manually use matrix?
Or is there a way I can use a --target that is dynamic / conditional on the current architecture?

Musl docker file: https://github.com/applied-knowledge-systems/atomic-data-rust/blob/master/Dockerfile_musl
Also, this Earthfile can be adapted to multiplatform, see line. I can create PR if you are ok with it and set Earthly based github action. Test pipeline can be run locally with earthly -i test-pipeline.

I tried doing a musl build again, but it looks like I still need libgcc_s... It's weird.
/ # ./atomic-server-bin --wda
/bin/ash: ./atomic-server-bin: not found
/ # ldd /atomic-server-bin
	/lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /atomic-server-bin)
	librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
	libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7055836000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /atomic-server-bin)

We musl now!


DotNetCli task incorrectly identifies Razor class library projects as web projects when publishWebProjects is 'true'

The DotNetCli task defaults to publishing web projects (publishWebProjects is true) but the logic it uses to identity web projects incorrectly includes Razor class libraries if they contain a wwwroot directory. This is common in Razor class libraries to automatically bundle static assets for inclusion in projects that reference the class library.
Attempting to publish a Razor class library leads to an error which fails the task.
This logic should likely be updated to not only check the project directory structure but rather the SDK being used in the project file.

@DenisRumyantsev this looks like some of the scanning code is picking kind of "first winner" in looking at the csproj files https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/DotNetCoreCLIV2/dotnetcore.ts#L357 and thus the isWebSdk was resolved as isWebSdk true, but then didn't evaluate the other project as false (microsoft.net.sdk.razor)

@DamianEdwards Could you pls share the debug logs.

@ddivanshu not sure how helpful this is but it's below. As @timheuer says, the logic is pretty clear in the task source code, it's assuming any project with a "wwwroot" dir is a web project to be published but that's not correct.
2021-05-05T23:35:03.6212816Z ##[section]Starting: Publish
2021-05-05T23:35:03.6224642Z ==============================================================================
2021-05-05T23:35:03.6224928Z Task         : .NET Core
2021-05-05T23:35:03.6225232Z Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command
2021-05-05T23:35:03.6225512Z Version      : 2.181.0
2021-05-05T23:35:03.6225732Z Author       : Microsoft Corporation
2021-05-05T23:35:03.6226080Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
2021-05-05T23:35:03.6226422Z ==============================================================================
2021-05-05T23:35:03.9531195Z Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version.
2021-05-05T23:35:04.0863243Z [command]/opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/dotnet publish /home/vsts/work/1/s/src/MyProject/MyProject.csproj -r linux-x64 --configuration Release --no-build --output /home/vsts/work/1/a/MyProject
2021-05-05T23:35:04.1920739Z Microsoft (R) Build Engine version 16.11.0-preview-21254-21+e73d08c28 for .NET
2021-05-05T23:35:04.1921923Z Copyright (C) Microsoft Corporation. All rights reserved.
2021-05-05T23:35:04.1922322Z
2021-05-05T23:35:05.9660818Z   MyProject -> /home/vsts/work/1/a/MyProject /
2021-05-05T23:35:09.7773588Z [command]/opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/dotnet publish /home/vsts/work/1/s/src/HeadComponents/HeadComponents.csproj -r linux-x64 --configuration Release --no-build --output /home/vsts/work/1/a/HeadComponents
2021-05-05T23:35:09.9428593Z Microsoft (R) Build Engine version 16.11.0-preview-21254-21+e73d08c28 for .NET
2021-05-05T23:35:09.9429911Z Copyright (C) Microsoft Corporation. All rights reserved.
2021-05-05T23:35:09.9430423Z
2021-05-05T23:35:10.7879099Z /opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/sdk/6.0.100-preview.5.21255.7/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(260,5): error MSB3030: Could not copy the file "obj/Release/net6.0/linux-x64/HeadComponents.dll" because it was not found. [/home/vsts/work/1/s/src/HeadComponents/HeadComponents.csproj]
2021-05-05T23:35:10.7881893Z /opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/sdk/6.0.100-preview.5.21255.7/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(260,5): error MSB3030: Could not copy the file "obj/Release/net6.0/linux-x64/HeadComponents.pdb" because it was not found. [/home/vsts/work/1/s/src/HeadComponents/HeadComponents.csproj]
2021-05-05T23:35:10.7884763Z /opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/sdk/6.0.100-preview.5.21255.7/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(260,5): error MSB3030: Could not copy the file "/home/vsts/work/1/s/src/HeadComponents/bin/Release/net6.0/linux-x64/HeadComponents.deps.json" because it was not found. [/home/vsts/work/1/s/src/HeadComponents/HeadComponents.csproj]
2021-05-05T23:35:10.8123319Z ##[error]Error: The process '/opt/hostedtoolcache/dncs/6.0.100-preview.5.21255.7/x64/dotnet' failed with exit code 1
2021-05-05T23:35:10.8126670Z ##[warning].NET 5 has some compatibility issues with older Nuget versions(<=5.7), so if you are using an older Nuget version(and not dotnet cli) to restore, then the dotnet cli commands (e.g. dotnet build) which rely on such restored packages might fail. To mitigate such error, you can either: (1) - Use dotnet cli to restore, (2) - Use Nuget version 5.8 to restore, (3) - Use global.json using an older sdk version(<=3) to build
2021-05-05T23:35:10.8132935Z Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts. Unless you have locked down a SDK version for your project(s), 5.x SDK might be picked up which might have breaking behavior as compared to previous versions. You can learn more about the breaking changes here: https://docs.microsoft.com/en-us/dotnet/core/tools/ and https://docs.microsoft.com/en-us/dotnet/core/compatibility/ . To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting
2021-05-05T23:35:10.8137265Z ##[error]Dotnet command failed with non-zero exit code on the following projects : /home/vsts/work/1/s/src/HeadComponents/HeadComponents.csproj
2021-05-05T23:35:10.8165781Z ##[section]Finishing: Publish

hi @DamianEdwards ,
the web project selection behavior is also documented here. In dotnet convention, if wwwroot is present, it is for static assets only, whether it is for razor, blazor or webapp, so i don't get why you say only razor projects should be excempted.
I suspect the error you are getting is because of using the --no-build option. This this case, you would have built the project earlier. Did you use the same publish configuraton for build as well(i.e. -r linux-x64 --configuration Release)

@tejasd1990 thanks for pointing out the documentation. It seems to confirm what Tim and I are saying though. Razor Class Libraries will end up being included in the projects to be published by default based on them containing a wwwroot dir. This seems incorrect given the intent is to auto-discover web applications and publish those. Rather than "only razor projects should be exempted" I'm suggesting that only projects that use the web SDK should be included.
In my case the build and publish steps are indeed separate and the build step is configured to only build the web project directly (which depends on the Razor class library project). The build configuration and RID is set for each step to the same value via variables.

AFAIK, the logic to detect web projects based on wwwroot and web.config was created during early days of .Net Core. Later during .Net Core 3.x timeframe, a fallback check of web SDK was added but the original check was not removed so as to not break existing behavior.
We still should ensure that we do not introduce a breaking behavior by removing the check for wwwroot and web.config
@timheuer, with current active versions of .Net Core / .NET, would it be reliable approach to only check for Web SDK? We don't want to break some existing customers.


How to open vim-startify in command mode

How to open vim-startify in command mode

I think you just want :Startify. See :h startify-commands.


[pre-ll] Add emscripten build failure workaround

Fixes #2721.
PR checklist:

[x] tested examples with the following backends: macOS/GL
[x] rustfmt run on changed code

@grovesNL has asked for a minimal repro for this emscripten issue, which I'll try and get when I have more time.

bors r+


Address issue found in test/bookTests.js [Opened by bitHound]

bitHound discovered 5 DuplicateFunctions in test/bookTests.js. For details go to bitHound.

Improved from 5 to 2 DuplicateFunctions


"<<:" merge operator is not a key

fn test_yaml()
{
        let s =
"
%YAML 1.2
---

defaults: &super
  a:      valueA
  b:      valueB

sub:
  <<: *super
  b:      valueB_new
  c:      valueC
";
    // load:
    let docs = YamlLoader::load_from_str(s).unwrap();
    let doc = &docs[0];
    println!("doc: {:?}", doc);

    // dump & print:
    let mut out_str = String::new();
    {
        let mut emitter = YamlEmitter::new(&mut out_str);
        emitter.dump(doc).unwrap();
    }
    println!("rerender:\n{}", out_str);
}

Current unexpected output:
rerender:
---
defaults:
  a: valueA
  b: valueB
sub:
  "<<":
    a: valueA
    b: valueB
  b: valueB_new
  c: valueC

There "<<": is a key.

I agree that it would be nice to have the merge key at some point, because it is popular for defining default values.
Please note, however, that it is not part of the official YAML 1.2 specification, but an add-on to the YAML 1.1 specification defined at http://yaml.org/type/merge.html
Anyway I would not recommend using the yaml::Yaml data type at this point in time for production uses, as it is not secure.

See https://crates.io/crates/yaml-merge-keys for an implementation of the spec.

Also, this is a duplicate of #68.


Add test for CommitHash encoding and decoding

fixes https://github.com/postech-dao/simperby/issues/531

Close it as a duplicate PR.


Is possible flush the UI realtime ?

eg. I have an UIViewController who's title property is @"Title", then modify self.title = @"new title".  type control+=, the UI didn't changed, you must pop the ViewController and reopen it for works. Can I flush the ViewController real time ? like mechanism of lldb [CATransaction flush]

HI, this isn’t realy possible the way injection works at the moment. You could look at “Eval code” feature of XprobePlugin to do something more like this.


Added constructor for Settings called with_path

Part of the solution for #4988

Thank you for contributing!
The error is in fn import_encodings in vm/src/vm/mod.rs


Possible inconsistency in decoding response

So, I have been working on figuring our why xmlrpc call sometimes returns the variables to the success callback correctly and at other times they are inside an array ie. when I expect this: [22, ....] I get [[22], ...]
Here is the method response:
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <int>24</int>
      </value>
    </param>
  </params>
</methodResponse>

Don't know if it makes any difference but when I see the odd decoding, I use it like this:
$.when(rpc1(), rpc2()).then(function(r1, r2) { ... });
But things work as expected with just one rpc call in same setup.
This became a problem when I wanted to do some client side caching of a scalar value, because there can sometimes be nested arrays it is impossible to create a deferred object that would work with the callback in all cases.

This seems to be an issue with jQuery and how it handles multiple Deferred objects, not with this library. See this code pen for an example or the issue: http://codepen.io/anon/pen/RNLawM?editors=001
Sadly, the arguments sent to the .then() function differ depending upon both the number of Deferred objects used in .when(), and the number of arguments passed to Deferred.resolve(). If only one Deferred is passed to .when(), then .then() will receive each argument passed to resolve as a separate argument. If .when() is passed multiple Deferreds, then .then() will receive the arguments to each .resolve() as its own argument. If there is one argument to .resolve(), then that will be in the array as is. If there are multiple, an array of arguments is passed instead. Basically, it is all horrible.
A way of fixing this would be to use:
var justData = function(data) { return data; }
$.when(rpc1().then(justData), rpc2().then(justData)).then(function(data1, data2) { ... });

If you also need the jqxhr object and other arguments though, it becomes harder.

In case someone stumbles upon this, I might as well post my solution.
What I ended up doing, in order to guarantee that each callback gets returned the arguments in the same way, is to make sure there is always more than one deferred passed to them.
`$.when.apply($, $.map(rpcRequests, rpcMethodCall)).then(function(r1, r2) { ... });
Above rpcRequests is an array of objects passed to xmlrpc and rpcMethodCall is a function that converts any scalar values into appropriate pseudo responses and otherwise returns xmlrpc's promise. As it turns out this way I can also save some typing since the url for all my rpc requests is shared.


TrackingEventProcessor cannot be reset immediately after shutdown in very rare cases

Hi,
We noticed that resetting the TrackingEventProcessor after shutdown leads to an IllegalStateException in very rare cases. This might depend on the actual timeout setting, but I can reproduce the problem with almost the default settings.
Basic information

Axon Framework version: 4.5.14
JDK version:  11

Steps to reproduce
Please take a look at the following code which repeatedly resets a tracking event processor.
@SpringBootApplication
public class DemoApplication {

	public static void main( final String[] args ) {
		final var applicationContext = new SpringApplicationBuilder( DemoApplication.class )
				.properties( "axon.axonserver.enabled=false" )
				.run( args );

		final EventProcessingConfiguration eventProcessingConfiguration = applicationContext.getBean( EventProcessingConfiguration.class );
		final Optional<TrackingEventProcessor> optionalEventProcessor = eventProcessingConfiguration.eventProcessor( MyEventHandler.PROCESSING_GROUP, TrackingEventProcessor.class );
		final TrackingEventProcessor eventProcessor = optionalEventProcessor.get( );
		while ( true ) {
			eventProcessor.shutDown( );
			eventProcessor.resetTokens( );
			eventProcessor.start( );
		}
	}

	@Autowired
	private void configure( final EventProcessingConfigurer configurer ) {
		configurer.registerTrackingEventProcessorConfiguration( c -> TrackingEventProcessorConfiguration
				.forParallelProcessing( 4 ) );
	}

	@Component
	@ProcessingGroup( MyEventHandler.PROCESSING_GROUP )
	static class MyEventHandler {

		public static final String PROCESSING_GROUP = "MyEventHandler";

		@EventHandler
		public void on( final Integer i ) {
		}

	}

}

On my machine it takes only a few seconds until the application crashes with an exception:

Exception in thread "main" java.lang.IllegalStateException: TrackingProcessor must be shut down before triggering a reset
at org.axonframework.common.Assert.state(Assert.java:44)
at org.axonframework.eventhandling.TrackingEventProcessor.resetTokens(TrackingEventProcessor.java:616)
at org.axonframework.eventhandling.TrackingEventProcessor.resetTokens(TrackingEventProcessor.java:610)
at org.axonframework.eventhandling.TrackingEventProcessor.resetTokens(TrackingEventProcessor.java:597)
at org.axonframework.eventhandling.TrackingEventProcessor.resetTokens(TrackingEventProcessor.java:586)
at com.example.demo.DemoApplication.main(DemoApplication.java:32)

Here is what I know: By changing the assertions in the reset method slightly I am now pretty sure that the failing assertion is activeProcessorThreads( ) == 0. The segments seem to be modified by another thread (the TrackingSegmentWorker). The shutdownAsync method does not seem to wait for either the thread or the active segments being zero. Maybe this would be an approach to solve the issue at hand.
Expected behaviour
A reset is possible immediately after shutdown.
Actual behaviour
A reset leads somtimes to an exception after shutdown.

Thanks for filing (yet another) issue on the TEP here; albeit a small window for the opportunity I haven't heard others about just yet.
Regardless, I'm curious as to what you've "changed the assertions" to validate a possible solution.
Would you be able to specify in a bit more detail what you think the fix would be?
Although activeSegments refers to the TrackerStatus fields present in the TEP, any TrackingSegmentWorker in a finally block will clean up the active segment it owns.
I would hope that regardless of an interrupt, that's still invoked.
Note that shutdownAsync deals with the workerThreads, which are either the TrackingSegmentWorker threads or the starting WorkerLauncher thread, are also cleared out through a try-finally on both runs.

Hi @smcvb,
Sorry for not answering your other questions, but please consider to increase the priority or maybe even to drop the interrupt-feature completely in 4.5.X. Something seems to break when one stops or resets the event processor. Please take a look at the following code.
@SpringBootApplication
public class DemoApplication {

	public static void main( final String[] args ) throws InterruptedException {
		while ( true ) {
			MyEventHandler.counter.set( 0 );

			final var applicationContext = new SpringApplicationBuilder( DemoApplication.class )
					.properties( "axon.axonserver.enabled=false" )
					.run( args );
			final var eventGateway = applicationContext.getBean( EventGateway.class );
			eventGateway.publish( 0 );

			final var eventProcessingConfiguration = applicationContext.getBean( EventProcessingConfiguration.class );
			final var optionalEventProcessor = eventProcessingConfiguration.eventProcessor( MyEventHandler.PROCESSING_GROUP, TrackingEventProcessor.class );
			final var eventProcessor = optionalEventProcessor.get( );
			eventProcessor.shutDown( );
			eventProcessor.resetTokens( );
			eventProcessor.start( );

			eventGateway.publish( 1 );

			await( )
					.atMost( Duration.ofMinutes( 1 ) )
					.until( ( ) -> MyEventHandler.counter.get( ) == 2 );

			System.out.println( "Success" );
		}

	}

	@Autowired
	private void configure( final EventProcessingConfigurer configurer ) {
		configurer.registerTrackingEventProcessorConfiguration( c -> TrackingEventProcessorConfiguration
				.forParallelProcessing( 4 )
				.andWorkerTerminationTimeout( TimeUnit.MILLISECONDS.convert( 1, TimeUnit.MINUTES ) ) );
	}

	@Component
	@ProcessingGroup( MyEventHandler.PROCESSING_GROUP )
	static class MyEventHandler {

		public static final String PROCESSING_GROUP = "MyEventHandler";

		private static AtomicInteger counter = new AtomicInteger( );

		@ResetHandler
		public void onReset( ) {
			counter.set( 0 );
		}

		@EventHandler
		public void on( final Integer i ) {
			counter.incrementAndGet( );
		}

	}

	@Autowired
	private void configure( final Configurer configurer ) {
		configurer.configureLifecyclePhaseTimeout( 1, TimeUnit.HOURS );
	}
}

So, the code repeatedly creates a new Spring context. It sets the atomic variable to 0, publishes an event (integer 0), replays the event handler and then publishes another event (integer 1). One would expect the processor to catch up and receive both events, but it simply doesn't. The condition is not fulfilled even after one minute. Please notice the ridiculous high timeouts which don't change anything. Similar things happen in our integration tests as well.
The same code (apart from the WorkerTerminationTimeout and the LifecyclePhaseTimeout) seems to run on 4.5.12 infinitely.

Thanks for filing this concern with us, @nils-christian. We're looking into it as we speak.

@nils-christian, we've got a request for you.
Can you check out the code from this pull request and validate whether the predicament is solved on your end too?
I'd like to eliminate yet another patch release after 4.5.15, to be honest.

Alternatively the snapshot build is now also available.

Hi @smcvb,
I have run the code against my demo applications. The original issue (a reset is not always possible after a shutdown) is not solved, but the more critical one (lost events) is. I will try and run the code against our integration test which detected the issue in the first place, but I might need some days for this.
Best regards
Nils

Hi @gklijs,
Yes, but it is actually not during the reset but while starting the processor:

java.lang.IllegalStateException: Cannot start this processor. It is pending shutdown...
at org.axonframework.eventhandling.TrackingEventProcessor.start(TrackingEventProcessor.java:214)

Hi @gklijs,
Sorry for the double post. I checked and it seems that the new error is not related to the resetting at all. If I simply shut the processor down and restart it in a loop, the error is far more likely to occur.
I simplified it as much as possible so you can run the code as well:
final StreamingEventProcessor eventProcessor = TrackingEventProcessor
		.builder( )
		.name( "MyEventProcessor" )
		.eventHandlerInvoker( SimpleEventHandlerInvoker
				.builder( )
				.eventHandlers( ( EventMessageHandler ) event -> null )
				.build( ) )
		.messageSource( EmbeddedEventStore
				.builder( )
				.storageEngine( new InMemoryEventStorageEngine( ) )
				.build( ) )
		.tokenStore( new InMemoryTokenStore( ) )
		.transactionManager( NoTransactionManager.instance( ) )
		.build( );
while ( true ) {
	eventProcessor.shutDown( );
	eventProcessor.start( );
}

Thanks, I'll try tomorrow. To be clear I could run the first example, it just didn't gave an exception in my case. Not sure what is relevant, since it has to do with multiple threads. I'll certainly put in some effort to try to replicate the error.

Good news, I can replicate the issue, and I'm almost certain what the problem is. As the start will almost immediately return after spinning up the worker tread, it's possible at shutdown it's just not started running, but still runs after shutdown. Setting the state to running before returning should fix the remaining issue. I'll let you know when it's available.

Hi,
Sounds good. I will wait until the PR has been merged before I repeat my tests.

Notifying here as I've just reviewed and merged the pull request.

Hi,
Looks good so far. I cannot reproduce any of the issues with my demo applications. I will run the code against our tests next week.

Hi,
I have run the new Axon code against our test which found the issue in the first place. Everything checks out and I cannot reproduce the issue. So I think it is solved :-)

Thanks for the feedback there, @nils-christian!
Then I believe we're ready to release 4.5.15. :-)


FEE_SCHEDULE_FILE_PART_UPLOADED is marked as an error message, but it's not

Description
When the return message of a transaction is FEE_SCHEDULE_FILE_PART_UPLOADED, the transaction is flagged as a failure, but that is actually an OK message.
Steps to reproduce

browse https://hashscan.io/mainnet/transaction/1654796534.535093000
see transaction flagged as failure
browse https://hashscan.io/mainnet/account/0.0.56?app=false&pt=1&ph=1&p2=1&type=fileupdate
see all transactions flagged with the red signal

Additional context

Hedera network
mainnet, testnet, previewnet
Version
v23.8.0-3-g467fadc
Operating system
Other

From @xin-hedera :

the successful response codes include:

SUCCESS
FEE_SCHEDULE_FILE_PART_UPLOADED
SUCCESS_BUT_MISSING_EXPECTED_OPERATION


The script doesn't allow to have the container name different to the node name

While it may be useful to set both to the same value by default, the script should allow to set them to two different values, given that they have different purposes and formats.
Currently the script uses the same NAME variable for both, so the container name set via -n command line argument is actually replaced by what it's set into the env/* configuration file.

Alright, that makes sense. We actually had two different parameters for the node name and container name but I decided to simplify it.
However, with the next update of this repo I’ll keep the default value of the container name to be the same as the node name but re-introduce container name as a separate, optional argument.


not enough arguments for format string

iam having this error
not enough arguments for format string
python3 crowbar.py -b rdp -s <IP_ADDRESS>/32 -u localuser -C /user/share/nmap/nselib/data/passwords.list

why r u using this python3 format? u must run ./crowbar.py

hey y'all I found this issue
sudo ./crowbar.py -b openvpn -s <IP_ADDRESS>/32 -p 1194  -m ~/Desktop/F2U-Firewall-TCP-1194-john_vpn-ios-config.ovpn -k ~/Desktop/F2U-Firewall-TCP-1194-john_vpn.p12 -U users.txt -C pass.txt
2022-05-16 00:17:08 START
2022-05-16 00:17:08 Crowbar v0.4.3-dev
not enough arguments for format string

got the same problem with ./crowbar.py

hi did you find any solution for this


feat: BC output option

There is now an option in the config file (default set to false) called BC_output. When set to true, it creates a file containing the barcode, associated oligo, and rna and dna count of each replicate in a separate column.

@pi-zz-a thank you! Looks good now


CDN timeouts with downloading CrateDB

Problem
When trying to download CrateDB, sometimes the process times out and on other occassions, it successfully completes. The timeouts are getting more frequent recently.
Users are reporting:

The issue manifests itself at random times but lately it started occurring more often, on Friday the 12th of January 2024 we had issues where we were unable to re-deploy crate on some of our internal environments due to the outages.

Observations
Download Script
curl -sS https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate | sudo apt-key add -
while [[ $(fuser /var/lib/dpkg/lock /var/lib/apt/lists/lock) ]]; do sleep 1; done
sudo add-apt-repository "deb [arch=amd64] https://cdn.crate.io/downloads/debian/stable/ default main"
apt-get -o DPkg::lock::Timeout=120 update -y
apt-get o Dpkg::Options::="force-confdef" -o Dpkg::Options::="-force-confold" install -y crate

Result
Err:1 https://cdn.crate.io/downloads/debian/stable default/main amd64 crate amd64 5.5.2
Connection failed
E: Failed to fetch [https://cdn.crate.io/downloads/debian/stable/pool/main/crate_5.5.2_amd64.deb]
Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Not sure if this is the right way to report this issue, please let me know.

Hi, and thanks for reporting. We talked about migrating off Fastly, and using Bunny CDN instead the other day. I think we agreed that we do not need to employ Fastly any longer.
/cc @WalBeh, @msbt

@amotl even though we talked about it, we're far from sunsetting Fastly. However, since the cdn is independent from the website and all other properties/redirects, we could start migrating that when bandwidth is available, since this will be one of the major blockers to actually move away from there (because of the build pipelines and everything that comes with it), wdyt?
Do we have any logs on the webserver to see why the d/l failed? @karynzv do you maybe have timestamps of failed events?

Hi Matthias,
We tried a couple of times, but the one that failed was on January 16th, around 17h15 CET, then, 15 minutes later, it worked again.
Thanks!

Thanks @karynzv! @WalBeh @amotl can you check the logs if anything happend around that time?

There is currently a file inconsistency in the Debian/Ubuntu repository. The issue is reproducible from EC2 instances in the eu-central-1 (Frankfurt) region:
ubuntu@ip-172-31-26-115:~$ sudo add-apt-repository "deb https://cdn.crate.io/downloads/debian/stable/ default main"
Repository: 'deb https://cdn.crate.io/downloads/debian/stable/ default main'
Description:
Archive for codename: default components: main
More info: https://cdn.crate.io/downloads/debian/stable/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_cdn_crate_io_downloads_debian_stable_-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_cdn_crate_io_downloads_debian_stable_-jammy.list
Hit:1 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://cdn.crate.io/downloads/debian/stable default InRelease [3289 B]
Get:6 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 http://eu-central-1.ec2.archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:8 https://cdn.crate.io/downloads/debian/stable default/main amd64 Packages [815 B]
Err:8 https://cdn.crate.io/downloads/debian/stable default/main amd64 Packages
  File has unexpected size (920 != 815). Mirror sync in progress?  Done
W: https://cdn.crate.io/downloads/debian/stable/dists/default/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Failed to fetch https://cdn.crate.io/downloads/debian/stable/dists/default/main/binary-amd64/Packages.gz  File has unexpected size (920 != 815). Mirror sync in progress? [IP: <IP_ADDRESS> 443]
   Hashes of expected file:
    - Filesize:815 [weak]
    - SHA512:971d7f2e53c95c1efb2880fcf59e60ab59e8d3e8ed75bd3bd9bec24fd8d8c8fe27cf9f294aaa372a0fa55c8ebd69eb08ee01084681b934819f55bac3a2c30459
    - SHA256:87c5a6df7201339d5314ca3c11053dfeb35d0016337fc29d82b1b4cbdacf83dd
    - SHA1:dd4273ca71f4b43efbaa71143f8484fb3d1ae2e5 [weak]
    - MD5Sum:abb3aed434e347d989252a7060547283 [weak]
   Release file created at: Fri, 22 Dec 2023 13:14:36 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

The issue was reported yesterday by a customer and is reproducible today, so it does not appear to be a temporary sync issue.

Closing this here - if it is still an issue this should be tracked elsewhere.


Adding multiple listeners to one event

Hi there,
I propose a PR which implements TODO #4 (multiple listeners on one event). This PR comes with unit tests.
Please let me know if you are interested in this PR. If this is the case I can invest more time to modify the documentation to make it compatible with the new version.
Cheers,
Florent

Hello @faide
Thank you for the PR. I will review it and get back to you. :)

@faide please check the comment i have made. otherwise the PR looks good to me. Let me know what you think.

I'll think about this a bit. At first I just imagined to enforce a unique signature on a "listener type" ie: registering would mean giving the event name, callback and interface.
This way we could on subsequent registering on the same event name check it the interface provided by the second listener is valid according to the first one...
I need to mule this over :)


Bugfix position broken.

needs a unit test

Codecov Report

Merging #1632 (da236f6) into main (449f595) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1632   +/-   ##
=======================================
  Coverage   93.94%   93.94%
=======================================
  Files         253      253
  Lines       47582    47582
=======================================
+ Hits        44700    44702    +2
+ Misses       2882     2880    -2

Impacted Files
Coverage Δ

src/postings/postings_writer.rs
98.24% <100.00%> (ø)

src/fastfield/multivalued/mod.rs
98.84% <0.00%> (+0.38%)
:arrow_up:

src/store/index/mod.rs
98.37% <0.00%> (+0.54%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Typo on UCM options

There are two X Position options, but one of them doesn't move the X position. The top "X Position" is right, but the bottom "X Position" actually moves the Y position. This should be a very simple fix, since it's very minor.

Reuploaded image due to me posting the incorrect image.

No idea how I didn't notice this, lol.
Fixed.


execute the basisu command, the content of the file generated by the same image is different on windows and macos

I cloned the 1.16.3 source code, I use cmake to build the binary on windows and macos, I did some tests, I found that the content of the file generated by executing basisu.exe xx.png on windows is different from that generated by executing ./basisu xx.png on macos, why ?

See #60 and #151.


Change Microsoft.AspNet.Hosting.ini to Microsoft.AspNet.Hosting.json

This might already be planned but I'm raising it here as there are many references to Microsoft.AspNet.Hosting.ini in examples on websites giving an insight into ASP.NET 5, which is likely to cause confusion if the file is changed from an ini to a json file, so if we are going to use json files it would be better if we switched sooner rather than later.

Pull request: #270

It does cause confusion and does not reflect well on the project structure or overall design.  A provider model to load the configuration would be ideal.  This would/should default to .json, but would enable .xml/.ini/.xaml/.yaml/.etc if desired.  Related issue: https://github.com/aspnet/Tooling/issues/140

Horray... very cool.  Some sanity restored. :)  Are there plans to make this more consistent with the rest of ASP.NET's configuration model and allow providers to dictate the configuration format?

Not at the moment. You can open a separate issue.

Cool.  Done.  Thank you!

That would require a plugin model for config format since hosting won't depend on every format possible

I think if you wanted that you'd be better off constructing the host in your own program main

Exactly.  The plugin model is already in use elsewhere and can be used here as well.  It obviously already has two different formats that users favor, so why not open it up to all formats if it's the same amount of work to do?

There is also the issue of providing proper guidance here in case someone else gets a crazy idea somewhere down the line to also use .ini or (god forbid) .xml :)


[Bug] Can't publish

Context / Scenario
If you try and publish your dotnet project you get an error about llamasharp, which is a known issue with llamasharp.
I'm not using llamasharp, but it's included anyhow even in the .Core library.
dotnet publish -c Debug -r linux-x64
What happened?
Should build fine for publish.
Importance
I cannot use Kernel Memory
Platform, Language, Versions
all dotnet publish
Relevant log output
Found multiple publish output file
s with the same relative path: C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\runtimes\linux-x64\native\avx\libllama.so, C:\Users\k\.nuget\packages\llam
asharp.backend.cpu\0.11.2\runtimes\linux-x64\native\avx2\libllama.so, C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\runtimes\linux-x64\native\avx512\libll
ama.so, C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\runtimes\linux-x64\native\libllama.so, C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\r
untimes\linux-x64\native\avx\libllava_shared.so, C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\runtimes\linux-x64\native\avx2\libllava_shared.so, C:\Users
\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\runtimes\linux-x64\native\avx512\libllava_shared.so, C:\Users\k\.nuget\packages\llamasharp.backend.cpu\0.11.2\run
times\linux-x64\native\libllava_shared.so.

This bug is made even worse by the fact that there is no base package plus opt in packages for just what you need. The second you use .Core which isn't .Core at all, you get LLamaSharp whether you wanted it or not and everything else too.
I just need a root package with KernalMemoryBuilder and qdrant and I do the rest myself interfacing against LLama.cpp server with my own implementation.
If someone was using AzureAI, why would they need any of the other noise?  .Core should be .Core, and if you want to have a .All, then great.

Fixed in 0.60.240517.1


DBZ-3074 PgOutputMessageDecoder - Fix unordered keys

Fix issue where PgOutputMessageDecoder does not define primary key metadata in key-order.
PgOutputMessageDecoder.getTablePrimaryKeyColumnNamesFromDatabase() returns a Set, leading to unordered
primary keys in the metadata. Switch the logic to call JdbcConnection.readPrimaryKeyNames() which
does correctly return an ordered primary key list.

I added a test case, verified that it does fail with the prior code, and now passes with this fix.

Could you modify the message of the second commit so it begins with "DBZ-3074"? Thx!


Google Gemini Java and Spring Support

Gemini comes to Java frameworks. Want to use LangChain4j with the Gemini model? You’re in luck. We contributed support, which you can see an example of here. And the Spring Framework’s Spring AI project just added Gemini support too.

https://github.com/ObrienlabsDev/machine-learning/issues/8


(bug) (types) Workaround for mas account failing on macOS >= 12... now also include macOS 13

Addition to https://github.com/borksh/bork/pull/43
Very obviously super hacky... but it's a quick and dirty GOOD ENOUGH for now...
We experimented with Greater Than Or Equal To stuff in the original PR, but never got it working.
May experiment further at some point... especially as https://github.com/mas-cli/mas/issues/417 appears to be going nowhere fast

Hah. I'll take it. Let me fix the Ubuntu test workflow and then I'll approve now that Danger is happy.

@lucymhdavies could I get you to merge main into this and push again please? just to force it to re-run the tests.

Sure thing
Edit: neat
Edit 2: 2 fast 4 u ;)


Outcome Message should not be generated for CDISC rules

At least for this iteration, we should not be generating outcome message from the cdisc sdtm spreadsheet. In many cases, they are incorrect.
Example
UID: 279315bb-36af-4c3f-a809-d2aa9adb8463
Outcome:
  Message: ' and Variables are ordered with Identifiers first, followed by the Topic,
    Qualifier, and Timing variables. Within each role, variables are ordered as shown
    in SDTM tables in sections 3.1.1, 3.1.2, 3.1.3, <IP_ADDRESS>, 3.1.4, and 3.1.5'

Do you have Rule ID of this document? I have fixed the issue and would like to run a test.

Could not find this UID in the rule editor. I set it to empty string when there is no Outcome.

Strange, I guess the rule was deleted recently.
However, there is still an issue because now Outcome is getting overwritten with empty string. Here is a new example:
id: 0588b8b5-d903-4357-9b7d-c07df40e0cce
Rule id: CG0112

This has been fixed in v0.4.1


#2808 Preloaded state is now selectively partial (instead of deeply partial).

Fixes #2808 by using a specialized (but effectively NO-OP) type CombinedState to indicate that the Reducer returned by combineReducers() has a generic state type which should be considered shallowly partial.
NOTE: Requires Typescript >= 3.5 to work correctly.

It looks like we can get rid of DeepPartial as well. Since that would be a breaking change, can we at least remove it from the imports on the tests?

Unsure why prettier doesn't like docs/recipes/UsingObjectSpreadOperator.md... I didn't change it and prettier doesn't complain when I run it locally.

Ah, this branch was behind master, which had prettier formatting flaws in the UsingObjectSpreadOperator.md. Fixed the formatting and re-pushed.

@ChrisAckerman Do you want to resolve the conflicts here?

@timdorr Done.

Awesome, thanks!


Any plans to have this great repo for ROS2?

If not, do you know of any work done already to have an RG2 driver for ROS2?

I have some progress, but I don't have easy access to a gripper.
I'd love to know what I broke so I can make a working pull request
https://github.com/BrettRD/onrobot_grippers

https://github.com/Osaka-University-Harada-Laboratory/onrobot/issues/4#issuecomment-1379871928

G'day @BrettRD, my uni group and I have access to a UR5e with a RG2 gripper for our capstone project.
We'd also like to get the gripper working with ROS2 as well.
Is there anything step wise you'd like us to try with your repository to test if anything broke?

Yes please!
I only have access to the RG6 and that seems to work ok, I'd love to hear results for the RG2.
I used the onrobot "compute box" (as did seemingly everyone else on the internet)
The UR5e internal RS485-TCP passthrough doesn't seem to work at all.

@BrettRD
Same issue here, workaround:
Bind it to a local serial device via socat. Make sure the robot is at least in active mode, breaks could still be engaged.
See Using serial connection, e.g. UR Robot with RS-485 daemon forwarded to local machine


develop and master branches are out-of-sync

This repo is set up to use develop as the default branch. However, there is also a master branch which contains commits for newer releases that are no in the develop branch.

Fixed on master.


Cordova plugins do not work in worker

One of the big problem with Tabris Js worker  right now is:
it's not possible to use a cordova plugin inside him
TabrisJs 3.2.1

what platform do you see this on?

Android for now

In general it should work. Do you experience that with any particular plugin?

All the plugins that i used
https://github.com/brodysoft/cordova-sqlite-evcore-extbuild-free.git
https://github.com/apache/cordova-plugin-contacts.git
For example

there is no ui in a worker so several apis might not work. how about headless plugins like the device plugin?

there is no ui in the above mentioned plugins
the first one is a database plugin
i will check for device plugin ASAP


pydantic validators

Kind of request
None
Enhancement Description
not used yet. We could perhaps validate the optional input parameters for the different event definitions of rainfall, discharge etc
Task list

[ ] explore using pydantic discriminated unions

Use case
No response
Additional Context
No response

connect to Issue #170


Remove MapBox key

Exactly as the fleetman-webapp project, we need to remove mapbox.

And rebuild the image and push to fleetman-production:no-netflix


Destructure and use shorthand object literal syntax

Seems consistent to destructure and use object literal for this function

I actually prefer the long form in this case, as it's consistent with the docs and shows that you're getting state as an argument to that function.

Ah good point @timdorr


API Crud'r framework creates poor change log message on delete

I'm submitting a ...

improvement request (usability, performance, tech debt, etc.)

Traffic Control components affected ...

Traffic Ops

Current behavior:
Deleting a resource via the API that uses the CRUDr framework produces a poor change log message:

New behavior:
Instead of showing ID three times, include name at a minimum in the change log message and if name doesn't exist on the resource, then i guess show id 3 times. :)
Minimal reproduction of the problem with instructions:
Delete something via the API that uses the CRUDr framework (i.e. delete a cdn) and observe the poor and redundant change log message created.

Indeed. In the CRUDer I think we could try to type-assert the Deleter into a Reader and reuse the object's Read() method if so.

Indeed. In the CRUDer I think we could try to type-assert the Deleter into a Reader and reuse the object's Read() method if so.


Do not include jakarta.activation-api in jakarta.activation

This issue will probably be closed, because this would be a breaking change, but I still want to discuss it:
Currently, the artifact com.sun.activation:jakarta.activation:jar includes the entirety of jakarta.activation:jakarta.activation-api, instead of just depending on it.
This leads to the unfortunate situation that the dependency graph of our application (after updating to jakarta.mail) contains both com.sun.activation:jakarta.activation:1.2.1 (new dependency of jakarta mail) and javax.activation:javax.activation-api:1.2.0 (dependency of several other libraries).
If jakarta.activation would instead depend on jakarta.activation-api, the build system (Gradle) could automatically upgrade the old dependencies of the other libraries to jakarta.activation-api:1.2.1. (Of course, Gradle needs to know that the module jakarta.activation:jakarta.activation-api is a replacement for javax.activation:javax.activation-api, but this is easily done with Gradle). But unfortunately, "activation" doesn't declare any relationship to "activation-api", so this is a messy thing to resolve manually.
Most (all?) other javax/jakarta projects do it better: For example, jaxb-runtime declares a dependency to jaxb-api instead of including it.

The activation-api artifact should only be a compile time dependency; it's not intended to be used at runtime.  Any artifacts that are used at runtime should not depend on activation-api.
The javax.activation API classes depend on the com.sun.activation implementation classes, and vice versa.  There isn't the same API/implementation split that you find in some other projects.

As described above, Jakarta Activation can't easily be split into separate API and implementation artifacts.  Jakarta Activation was designed in the same style as most of the JDK classes where the implementation is part of the API classes and if you want a different implementation you use a different jar file that includes equivalent API definitions.

The activation-api artifact should only be a compile time dependency; it's not intended to be used at runtime.

With maven a compile time dependency is a runtime dependency.

@dwhitla with maven, a "compile time but not runtime dependency" means provided scope, not compile scope.

Yes but the problem is with transitive dependencies where the actual dependency should be the api not the impl.

@dwhitla in light of bshannon's reluctance to do the kind of refactor you're hoping for, I propose an even more basic fix: simply rename the artifact jakarta.activation-api to jakarta.activation-with-classdefnotfounderrors and then nobody will be tempted to use it. No api, no problem! Or rather, just delete it from maven central. I fail to see the point of that particular artifact.  The word "api" is really a misnomer in the first place, because BOTH artifacts contain the implementation! The only difference between the two is activation-api removed 10 small utility classes such as LogSupport on which the implementation depends.

No. Because the impl contains clases I can't force on my downstream dependents.


NERDTree in vim issue

I use the NERDTree plugin for vim, but when I try to use it in hyperterm, it doesn't function, and gives me a weird display. I've tried changing my fonts, but that doesn't fix it.

Here's a screenshot of it in terminal

I had a similar problem with tmux in HyperTerm. The fix for me was to run tmux with the -u flag (tmux -u). This tells tmux to explicitly use UTF-8 and solved the problem. Maybe something wonky is happening with UTF-8 in your shell or vim configuration?

Ah! Interesting. Ok, so I added set encoding=utf-8 to my ~/.vimrc, and that fixed it! Thanks for the suggestion.

set encoding=utf-8 corrects that problem with NERDTree but what about vim airline and its icons?, does anybody have the same problem?

@LagartoSeb, after setting encoding=utf-8 in my .vimrc  file, vim airline start working again.  Are you using the patched fonts for that plugin? (In my case, never worked with std fonts..).


No viewer for application/pdf error

Getting error in iOS "Error in SitewaertsDocumentViewer.viewDocument(): No viewer for application/pdf" while opening a pdf file.
Here is my code:
SitewaertsDocumentViewer.viewDocument(cordova.file.applicationDirectory + "assets/images/sample.pdf",'application/pdf');

the error message is some kind of miss leading. I guess your file uri cannot be resolved to a valid pdf file.
Felix Schauerte
sitewaerts GmbH
www.sitewaerts.dehttp://www.sitewaerts.de
Am 22.01.2016 um 05:20 schrieb efanurag <notifications<EMAIL_ADDRESS>Getting error "Error in SitewaertsDocumentViewerviewDocument(): No viewer for application/pdf" while opening a pdf file
Here is my code:
SitewaertsDocumentViewerviewDocument(cordovafileapplicationDirectory + "assets/images/samplepdf",'application/pdf');

Reply to this email directly or view it on GitHubhttps://github.com/sitewaerts/cordova-plugin-document-viewer/issues/16.

Thanks. Right the problem was with file uri only and the message was misleading.
I was earlier using "assets/images/sample.pdf" and the right path is "www/assets/images/sample.pdf"

anything new? I have the same issue on iOS. Either www/assets/ or assets/ does not work.

This is not an issue with the plugin. Use absolute urls as stated in the docs.
Have a look at the cordova docs to find out how to build absolute file urls for your platform and file path.

it fails with absolute urls too


Default color if unspecified

If we are loading a JSON and the color is not specified it should set a default color. Same effect as if we would drag / drop many spectra.
Currently if the color is not specified here

The spectra will be black.
We are using nmr-displayer in another project and we would like only to define a JSON containing the jcampURL and that it is displayed correctly.
I added a 'light' example that should work

@targos It is now allowed to send a JSON that contains only the URL to the JDX like in this example: https://github.com/cheminfo/nmr-displayer/blob/master/public/data/xtc/XTClight.json

Please use the color blind palette for the colors and not random. Random should only be used if all the color blind palette is used. You can add a method that ask for a new color and this method accepts an array of the already existing colors to select the next color blind color available and not used.


KAFKA-12613: Inconsistencies between Kafka Config and Log Config

Here is how I fixed the inconsistencies:

log.index.size.max.bytes (segment.index.bytes): KafkaConfig seems right. (atLeast(4))
log.flush.interval.messages (flush.messages): KafkaConfig seems right. (atLeast(0))
log.cleaner.delete.retention.ms, log.cleaner.min.compaction.lag.ms, log.cleaner.max.compaction.lag.ms, log.cleaner.min.cleanable.ratio, log.message.timestamp.difference.max.ms:  LogConfig seems right. (i.e., Validation is omitted in KafkaConfig)

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Here is some reproduction:
Before: the user can dynamically set log.cleaner.min.cleanable.ratio to -1.0, which is disallowed in Log configuration:

After: if the user tries to set log.cleaner.min.cleanable.ratio to -1.0, an error occurs:

Here is a reproduction:
Before: the user can dynamically set log.cleaner.min.cleanable.ratio to -1.0, which is disallowed in Log configuration:

After: if the user tries to set log.cleaner.min.cleanable.ratio to -1.0, an error occurs:

@hachikuji @ijuma It seems like this one is already a little bit late for 2.7.1, 2.8.0. Isnt't it?

@guozhangwang @kkonstantine Could you have a look? I think this issue should be addressed in 3.0.0.

Rebased onto the latest trunk.

@kowshik @rajinisivaram Could you kindly have a look? :bowing_man: