ImportError: cannot import name 'FaissRM' from 'dspy.retrieve'

Hello!
I'm trying to replicate an example from the documentation in Google Colab.
https://dspy-docs.vercel.app/api/retrieval_model_clients/FaissRM
I'm encountering a problem.
=================
import sys
import os
import google.colab
repo_path = 'dspy'
!git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path
if repo_path not in sys.path:
sys.path.append(repo_path)
os.environ["DSP_NOTEBOOK_CACHEDIR"] = os.path.join(repo_path, 'cache')
import pkg_resources # Install the package if it's not installed
if not "dspy-ai" in {pkg.key for pkg in pkg_resources.working_set}:
!pip install -U pip
# !pip install dspy-ai
!pip install -e $repo_path
!pip install transformers
!pip install accelerate
=================
import dspy
from dspy.retrieve import FaissRM
document_chunks = [
"The superbowl this year was played between the San Francisco 49ers and the Kanasas City Chiefs",
"Pop corn is often served in a bowl",
]
frm = FaissRM(document_chunks)
turbo = dspy.OpenAI(model="gpt-3.5-turbo")
dspy.settings.configure(lm=turbo, rm=frm)
print(frm(["I am in the mood for Chinese food"]))

ImportError                               Traceback (most recent call last)
 in <cell line: 2>()
1 import dspy
----> 2 from dspy.retrieve import FaissRM
3
4 document_chunks = [
5     "The superbowl this year was played between the San Francisco 49ers and the Kanasas City Chiefs",
ImportError: cannot import name 'FaissRM' from 'dspy.retrieve' (/content/dspy/dspy/retrieve/init.py)

Have the same problem locally too.

Could you please advise what I might be doing wrong? Or is this an error?
Thank you very much in advance!

ah thanks for raising this @levnikolaevich . the proper import line should be from dspy.retrieve.faiss_rm import FaissRM. Will update this in the documentation (but lmk if that doesn't work either!)

Thank you very much! Everything works! Will you close this topic yourself?

How to save this vectorstore locally?


Pre-training the embedding models

I want to first continue pre-training of bge-en-icl model before fine-tuning it. Could you please refer me to an example of how to do that? I think the examples are no longer in your repo.

You can refer to bge-en-icl finetune

I looked at the examples but it's still unclear to me how to set up the fine-tuning to do MLM or Contrastive Learning?

The bge-en-icl model does not require pre-training; it can be directly fine-tuned.


[Bug]: (v4) Deploying private repo with Github App

Description
Trying to deploy a private repository with a GitHub App. Installed a Github App through the "Deploy: Private Repository (with GitHub Apps)". The app looks like this:

And has access to all repositories:

In the application, this app is also selected:

But i am getting the following error on deployment:

Version
v4.0.0-beta.21

Seemed to be fixed in v4.0.0-beta.22 😄

@andrasbacsai  facing the issue:
Error: Failed to get access token for smiels-server-github-dev with error: 'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires


docs(README): intended link proto file

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for fixing this!


Update devtest-lab-guidance-prescriptive-adoption.md

@David Stanford I am justing adding the ms.custom: fasttrack meta tag for telemetry

@nomitapaul : Thanks for your contribution! The author, @spelluru, has been notified to review your proposed change.

@nomitapaul Microsoft authors and contributors need to make content contributions through the private repo so the content can be staged and validated by the current validation rules. Read about authors working in the public repo for more information.
If you need help getting set up to work in the private repo, see Set up Git repository locally for documentation.
We'll close this PR. Thank you.


Build on forked repo is failing due to go module updates

Build in forked repo from openebs/maya repo is failing due to go module updates.

fixed in https://github.com/openebs/maya/pull/1722


Escape hatches seem to not be working as expected

Description of the bug:

The following code:
    var test = new KubeNamespace(this, "test", {
      metadata: {
        name: "test"
      }
    })

    test.addJsonPatch(JsonPatch.add("/spec", { 'test': 1 }))

Generates this:
apiVersion: v1
kind: Namespace
metadata:
  name: test
spec: {}

While AFAIK it should generate:
apiVersion: v1
kind: Namespace
metadata:
  name: test
spec:
  test: 1

Reproduction Steps:

insert code section into a new Cdk8s TS project
run npm run synth

Environment:

Ubuntu 23
Node  v18.20.0
Cdk8s 2.198.65

This is :bug: Bug Report

Wow this is rather frustrating.  The purpose of this escape hatch as stated in the docs is to break through the abstraction and override the output, but its actually validated by the abstraction and allows no actual override of the output.  I just spent a ton of time trying to use this with absolutely zero errors or hint that it is just going to eat the calls.  Maybe the docs should be changed to reflect the lack of this functionality.


Empty space at the bottom of the grid.

When a grid height is not specified it grows to accommodate all rows plus some empty space at the bottom about 8 pixels or so. For example if the table has 3 rows the size is 83 pixels despite only 75 is needed.  If I go dig out the html element of the grid and set style height to 75 pixels the grid has the exact size to show all information but unfortunately displays a scrollbar even though it is not needed.
This is problematic if you have several small grids above each other.

the grid is not designed to be 'auto height'. you set the height via css.
there is another issue already opened for auto-height.


[enhancement]: Web UI: Gallery navigation hotkeys (or "top"/"bottom") buttons

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
No response
What should this feature add?
After a while (anecdotal, at least for me), the gallery can fill up quite a lot after refreshing and loading in more thumbnails, and on more than one occasion I would have liked to be able to  jump quickly to the top or the bottom of the gallery grid. Currently there don't appear to be any hotkeys (PgDn, PgUp, Pos1, End) set up for scrolling through the gallery. Alternatively/supplementary, a small set of "to the top"/to the bottom" icons for mouse operation at the top of the gallery could prove helpful.
Edit: Splitting the "Load more" button into "Load more" and "Load all" would also be great.
Alternatives
No response
Aditional Content
No response

We now have full directional gallery navigation, and you can use normal hotkeys to scroll to the top or bottom of the gallery.
I don't think we can really do a load all. That would kill the browser if you have a lot of images.
I'm closing this as I think we've addressed the core need to the scope we can reasonably address it


Deployment Failing

Hello,
I am running into this error when following one of Microsoft Learn's exercises:
Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
 issuer - https://token.actions.githubusercontent.com
 subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production
Attempting Azure CLI login by using OIDC...
Error: AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production'. Please check your federated identity credential Subject, Audience and Issuer against the presented assertion. https://docs.microsoft.com/en-us/azure/active-directory/develop/workload-identity-federation Trace ID: 9[15](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:16)d52ba-4181-49ad-b614-c8321c3a4400 Correlation ID: e42f5e57-bac2-4c33-86e3-c330510e0d18 Timestamp: 2024-06-20 00:[16](https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/actions/runs/9589306601/job/26443564754#step:5:17):43Z

Error: Interactive authentication is needed. Please run:
az login

Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.

I am following this exercise:
https://learn.microsoft.com/en-us/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr
I am able to successfully build but deployment fails.

Hi @sirajahmadzai , please refer to the guide: Login With OpenID Connect (OIDC) [Recommended].
And your workflow failes because of this step Configure a federated identity credential on an service principal.
Please double confirm you have configured the correct federated credential for "repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production".

Hi I also faced the same issue with CD from Azure Function
I want to follow up is there any way to actually solve this problem? I can't seem to follow up the tutorial on Configure a federated identity credential on an service principal.
To add a federated identity for a GitHub action, follow these steps:

Find your app registration in the Microsoft Entra admin center app registration experience. Select Certificates & secrets in the left navigation pane, select the Federation credentials tab, and select Add credentials.

I can enter https://entra.microsoft.com/ but there's nothing about App Registration of my Azure Function, No Certificate & Secrets in the left navigation tab, and no Add Federation credentials
additional information:
I can deploy my code manually via the web and using Visual Studio code
It's just the Azure/login in Github action that seems to have problem with deployment
I checked my Github Repo Secret and I can see that Azure Function add the secret there

Hi @SatriaPriambada , please check the guide. First, you have to create a SP and add the right role assignment.  Second, you can add a federation credential. Third, you can use it in your Azure Login Action. Please kinldy click the 2 links and you will see the configuration pages for reference.

Hi @YanaXu thanks for the quick reply,
Unfortunately I still didn't get your instruction since it's basically just a repeat of what you've said before...
I have a CD pipeline from Azure Function -> Deployment -> Distribution Center auto generated github action

However on azure/login steps it failed with this same error in this thread
I have added the federation credential that you mentioned but still get the error
Federated token details:
 issuer - https://token.actions.githubusercontent.com/
 subject claim - repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production
Attempting Azure CLI login by using OIDC...
Error: AADSTS700[21](https://github.com/EndeavourEnergy/GigaGrid_Cert_Generator/actions/runs/9685718530/job/26764556663#step:5:22)3: No matching federated identity record found for presented assertion subject 'repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production'. Please check your federated identity credential Subject, Audience and Issuer against the presented assertion

This is my Entra view that said that subject claim - repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production
has existed

Is there a missing step? Like having to link my Azure Function to Entra or something not said in the tutorial?
Thanks and have a great day!

It also doesn't work for me, I am not sure why they haven't put clear instructions in the Microsoft Learn activity for this exercise, now I am getting this error:
`Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
issuer - https://token.actions.githubusercontent.com/
subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production
Attempting Azure CLI login by using OIDC...
Error: No subscriptions found for ***.
Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.`
The exercise I am trying to complete is: https://www.coursera.org/learn/create-serverless-applications/supplement/yBhoa/exercise-enable-automatic-updates-in-a-web-application-using-signalr-service

Hi @YanaXu thanks for the quick reply,
Unfortunately I still didn't get your instruction since it's basically just a repeat of what you've said before... I have a CD pipeline from Azure Function -> Deployment -> Distribution Center auto generated github action
However on azure/login steps it failed with this same error in this thread
I have added the federation credential that you mentioned but still get the error
Federated token details:
 issuer - https://token.actions.githubusercontent.com/
 subject claim - repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production
Attempting Azure CLI login by using OIDC...
Error: AADSTS700[21](https://github.com/EndeavourEnergy/GigaGrid_Cert_Generator/actions/runs/9685718530/job/26764556663#step:5:22)3: No matching federated identity record found for presented assertion subject 'repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production'. Please check your federated identity credential Subject, Audience and Issuer against the presented assertion

This is my Entra view that said that subject claim - repo:EndeavourEnergy/GigaGrid_Cert_Generator:environment:Production has existed
Is there a missing step? Like having to link my Azure Function to Entra or something not said in the tutorial?
Thanks and have a great day!

Hi @SatriaPriambada,
Could you share the workflow file and Service Principal page? The error means the SP you used in the GitHub Action do not have the federated credential. But the page of the federated credential you shared in your comment seems correct. Could you double check if you're using it for Azure Login Action?
And please do use the latest Azure Login Action, which is v2.

It also doesn't work for me, I am not sure why they haven't put clear instructions in the Microsoft Learn activity for this exercise, now I am getting this error:
`Run azure/login@v1 Running Azure CLI Login. /usr/bin/az cloud set -n azurecloud Done setting cloud: "azurecloud" Federated token details: issuer - https://token.actions.githubusercontent.com/ subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production Attempting Azure CLI login by using OIDC... Error: No subscriptions found for ***.
Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.`
The exercise I am trying to complete is: https://www.coursera.org/learn/create-serverless-applications/supplement/yBhoa/exercise-enable-automatic-updates-in-a-web-application-using-signalr-service

Hi @sirajahmadzai,
Could you please also share your workflow file, the SP Federated credential configuration page? Let's see where is not well configured.

same issue after generating a workflow for azure function apps from the azure portal. There seems to be a bug on the azure function app generation layer which doesn't setup all the requirements automatically. Very annoying.

same issue after generating a workflow for azure function apps from the azure portal. There seems to be a bug on the azure function app generation layer which doesn't setup all the requirements automatically. Very annoying.

Hi @Goldziher , could you help me to check the SP used in your workflow and the SP Federated credential configuration. If it's related to the Azure Function, I can reach out to them for further analysis on this.

There was no service principal. The function app deployment wizard now creates a managed identity. It also populates the service, client and tenant id correctly in github.
I cannot help further since I already deleted this and created a service principal manually instead. I would suspect though that the github action v2 does not work correctly with managed identities.

Hi @Goldziher, you meam a user managed identity, right? It's similar as SP in OIDC login. If you can reproduce it, please help me collect the user managed identity information & the workflow & the user managed identity federated credential configuration. Thanks a lot!

@YanaXu here is my workflow file:
https://github.com/sirajahmadzai/mslearn-advocates.azure-functions-and-signalr/blob/main/.github/workflows/main_api-siraj.yml
Here is my SP Federated Credential page:

Mind you that the original exercise does not mention any SP Federated Credential needing to be setup. Could you please have a look at the exercise I am trying to complete:
https://learn.microsoft.com/en-us/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr

Thanks @sirajahmadzai. Could you take the following steps and see if it works:

In your workflow file, replace "uses: azure/login@v1" to "uses: azure/login@v2".
Open your github repo environment configuration page and see if there is a "Production" environment and it contains all necessary secrets: AZUREAPPSERVICE_CLIENTID_EBEF9E463BB8449BA5F1BD752A408B69， AZUREAPPSERVICE_TENANTID_19176ABCFC7E4E47BDB3FD6E9CF43944， AZUREAPPSERVICE_SUBSCRIPTIONID_3A761AB7C5C449DEAAE12F54EC84CDD3.

If the secrets are there, please edit them, copy the values from your SP page to the secrets. (the tenant id, subscription id, sp client id)
If the secrets are not there, please create 3 new secrets with the name and the correct values.

Run the workflow again.

Please reply me with your findings. Thanks!

@YanaXu I am still getting the same error after making the changes you requested, I re-built the project and re-deployed, the build succeeds but the deployment is failing. Also I still see azure/login@v1 being referenced even though I changed it to v2:
`Run azure/login@v1
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Federated token details:
issuer - https://token.actions.githubusercontent.com/
subject claim - repo:sirajahmadzai/mslearn-advocates.azure-functions-and-signalr:environment:Production
Attempting Azure CLI login by using OIDC...
Error: No subscriptions found for ***.
Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.`

Hi @sirajahmadzai , it seems it's not an issue of Azure Login Action. Could you raise a issue to the guide: https://learn.microsoft.com/en-us/training/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr ?

Could you share the workflow file and Service Principal page? The error means the SP you used in the GitHub Action do not have the federated credential. But the page of the federated credential you shared in your comment seems correct. Could you double check if you're using it for Azure Login Action?

Hi @YanaXu ,
Thanks for your reply and your help
The workflow file:
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js project to Azure Function App - provisionmanufacture

on:
  push:
    branches:
      - main
  workflow_dispatch:

env:
  AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
  NODE_VERSION: '20.x' # set this to the node version to use (supports 8.x, 10.x, 12.x)

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout GitHub Action'
        uses: actions/checkout@v4

      - name: Setup Node ${{ env.NODE_VERSION }} Environment
        uses: actions/setup-node@v3
        with:
          node-version: ${{ env.NODE_VERSION }}

      - name: 'Resolve Project Dependencies Using Npm'
        shell: bash
        run: |
          pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
          npm install
          npm run build --if-present
          npm run test --if-present
          popd

      - name: Zip artifact for deployment
        run: zip release.zip ./* -r

      - name: Upload artifact for deployment job
        uses: actions/upload-artifact@v3
        with:
          name: node-app
          path: release.zip

  deploy:
    runs-on: ubuntu-latest
    needs: build
    environment:
      name: 'Production'
      url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
    permissions:
      id-token: write #This is required for requesting the JWT

    steps:
      - name: Download artifact from build job
        uses: actions/download-artifact@v3
        with:
          name: node-app

      - name: Unzip artifact for deployment
        run: unzip release.zip

      - name: Login to Azure
        uses: azure/login@v2
        with:
          client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_0E7D9513B6144F44A1298EC33518C78A }}
          tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E7A9F92BD90648C195CF8C2F6F50CA42 }}
          subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_5C8AA0BFC20B4527BA6F36B219868C56 }}

      - name: 'Run Azure Functions Action'
        uses: Azure/functions-action@v1
        id: fa
        with:
          app-name: 'provisionmanufacture'
          slot-name: 'Production'
          package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}

I've checked and have the credentials as shown here:

My Service Principal Page:

All of this is autogenerated by Azure Function click.
I've followed your instructions and added Federated Credentials and upgrade from azure/login/v1 to v2 and I still have to manually deploy my function from VS Code
It's been more than a week now, if it still doesn't work would you mind escalating the ticket from question to an actual misconfiguration issues from Azure Function or bug in Azure Login?
Thanks and have a great day!

I'll investigate.

url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

Hi @

Hi @sirajahmadzai, please double check you have the same mismatch in configuration. If not, could you provide the same screenshots as @SatriaPriambada? Thanks.

This issue is stemming from a change in where the Azure action is looking for credentials. This isn't specific to this training module.

@sirajahmadzai You need to manual change the workflow to use either a service principal or a publishing profile to successfully deploy from GitHub to Azure Functions. Once I have information for the service team, I will update the training module.

@diberry following the link you shared worked. Thank you for looking into this.

@sirajahmadzai The training module has now been updated with the correct information for the managed identity.


allow passing in as many open orders as needed

Withdraw instruction size was too large for governance.
This change removes the requirement to pass default pks for spot open orders on withdraw, when the user doesn't have any.

Updated with a custom error code, although this one hides a bit of information (array index of access failure).

based on feedback from daffy deprecated in favor of a solution using another instruction, as we anyways want to add more withdraw features: https://github.com/blockworks-foundation/mango-v3/pull/195


polsedit: Add version <IP_ADDRESS>

[x] I have read the Contributing Guide.

This is a GUI application, right? Does it support CLI arguments?

This is a GUI application, right? Does it support CLI arguments?

As far as I tried, no.

In that case the bin fields can be removed

/verify


Unavailable should be prioritized over Hidden

If an item is "Unavailable" and "Hidden" then currently it'll appear in the "Hidden" tab.  I'd suggest it makes more sense to put them into the "Unavailable" tab.
Use case:  I like scanning through the "Hidden" items but "Unavailable" items keep catching my eye.  Since I can't order "Unavailable" items I'd rather not see them in the "Hidden" tab.
Thanks for reviewing and considering my suggestion.

Reading your 2 suggestions I feel you are not using hidden as intended.
Hidden are things you are absolutely sure you don't want. Not things you review as part of a routine.
A lot of people test unavailable items to see if the item was changed (which happens sometimes - rarely), but if it's hidden they don't want to see it.

I see.  Yes, perhaps I'm not using hidden as intended, but I wonder if there are many others who use it like I do.
The Keywords feature to auto-hide items is very handy (who want's to page through dozens and dozens of keychains), but sometimes something good is auto-hidden (Bluetooth earbuds with handy keychain).  No worries if there's little support for my use case, it's still a very helpful tool and I'll continue to use it every day.

Closed as the highlight list already superseed the hidden keywords and most people would not be favourable to reversing the priority order.


Add mixed-effects tests

Naturally comes after #26
can be mostly copy-pasted from nipy.

Any idea if/when this will be implemented? We're getting close to a release of pybids that adds a new "analysis" module that makes it easy to generate arbitrary design matrices from BIDS structures. One of the things I'm planning to support is a non-summary statistics approach closer to traditional mixed-effects models. I.e., ideally, I'd like to return separate fixed-effects and mixed-effects matrices (i.e., X and Z matrices in the traditional matrix formulation of mixed models) that could be passed onto some estimation tool. It would be great if nistats could accommodate such inputs and fit a mixed model (via maximum likelihood or REML or whatever). Thoughts?

Hi Tal,
Thx for the suggestion.
To be honest, my project was to rely on the sumary statistics approach, i.e. assume first level variances known --they are not re-estimated-- to compute second-level effects and variance. See e.g.
https://hal.inria.fr/hal-01419347
The point is that this approach is the only one that scales to mass-univariate analyses (10^5 voxels).
Of course, I know that you are considering a different approach, and that  you've relied so far on PyMC3. There is certinly room for EM-type algorithms that would make it more efficient, but I do not have code yet that deals with that.
PRs welcome ...

Hi Bertrand, thanks for the feedback. No worries--I figured you probably weren't itching to implement something completely new, but figured I'd ask. :)
I think approximating a full multilevel model with a summary statistics approach might be feasible even for crossed random effects. It might require some behind-the-scenes hacking; e.g., if you have random stimulus effects that are perfectly collinear with a fixed effect of experimental condition, the first level model for each subject would probably have to exclude the condition effect and include only the stimulus-level regressors (so at least the 1st-level model could be fit classically), and then the group model would add condition regressors. The stimulus variances would still be passed up to the group level from the single-subject level rather than being computed again. It seems like the challenge will mainly be getting the model to converge, which is not a problem in the Bayesian context, but I don't know enough about EM to know if it would be an issue. Do you think this would work, in principle? (Recognizing that there isn't any code implemented yet.)

An EM approach would work almost certainly. I should probably work on a Sandbox version first.
Best, B


Update where-setup-searches-for-drivers.md

Intel had questions about Critical vs Optional updates and it makes sense to "Document" how this works.

Thanks for the PR @SillyKeith


Install libkfdwrapper64.so

libkfdwrapper64.so is loaded by roctracer at run time. Currently, it is not installed to CMAKE_INSTALL_PREFIX.

LGTM


Titanfall 2 transparent shaders, lighting, AO, etc

The transparent shader variants are very primitive, and need a lot of work done to match the game's visuals. Currently materials using the TF|2 Standard Transparent shader are prone to rendering issues with lighting/shadows, where they may appear unlit, or too dark in their environments.
They also do not behave well with post processing effects like Ambient Occlusion, where they will shade an outline around the mesh rather than the edges of the visible surface, meaning you can easily see the shape of meshes which should instead be invisible.
These and many other rendering inconsistencies need to be investigated

Shader ASE remakes pushed back to 2.7, these should fix the issues while providing slightly improved visuals as well.

fixed in v.2.7


Different Journal Instances

It is currently possible to define multiple WriteJournals in the Config
but the settings of the default config location are getting loaded.
https://github.com/AkkaNetContrib/Akka.Persistence.EventStore/blob/96f58bd8cdc4dac945ded1ef246300c3fb5e10ea/src/Akka.Persistence.EventStore/Journal/EventStoreJournal.cs#L29
The Query/ReadJournal is using the correct owned config,
https://github.com/AkkaNetContrib/Akka.Persistence.EventStore/blob/96f58bd8cdc4dac945ded1ef246300c3fb5e10ea/src/Akka.Persistence.EventStore.Query/EventStoreReadJournal.cs#L32-L37
How to let the EventStoreJournal  use it's own config section like on the ReadJournal ?

Hi Zetanova,
You need to set in persistent actor which journal id it should use. Then Actor System will bring it up for you once persistent actor is started

@mjaric  I  load the  second EvenStoreReadJournal  and it does load the second and correct EvenStoreWriteJournal  to take the eventstore connection from it. But as linked above the EventStoreJournal always  takes the config from the default hacon-section.
Here is the config and akka.persistence.journal.remote-eventstore takes the config from akka.persistence.ournal.eventstore and not it's one section.
akka.persistence {
	#journal.auto-start-journals = ["akka.persistence.journal.remote-eventstore"]
	journal.remote-eventstore {
		class = "Akka.Persistence.EventStore.Journal.EventStoreJournal, Akka.Persistence.EventStore"
		connection-string = "ConnectTo=tcp://admin:changeit@host.docker.internal:1114;HeartBeatTimeout=500; MaxReconnections=-1; ReconnectionDelay=5000"
		connection-name = "debug"
		adapter = "PNet.Actor.PNetEventStoreEventAdapter, PNet.Core"

		event-adapters {
			tagging = "PNet.Actor.PNetTaggingEventAdapter, PNet.Core"
		}
		event-adapter-bindings {
			"PNet.IPNetEvent, PNet" = tagging
		}
	}
	query.journal.remote-eventstore {
		class = "Akka.Persistence.EventStore.Query.EventStoreReadJournalProvider, Akka.Persistence.EventStore.Query"
		write-plugin = "akka.persistence.journal.remote-eventstore"
		max-buffer-size = 500
		auto-ack = false
	}
}


fix opaevfiotest Segmentation fault

Could you provide a description of the root cause? ie what was responsible for the seg fault (I believe hardware configuration was involved).

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 14 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 65.516%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/libopaevfio/opaevfiotest.c
0
14
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
13138

Relevant Lines:
20053

💛  - Coveralls


[server-chart] cacerts.pem volume has the wrong path.

@kinolaev discovered deploying with private CA certificates is broken in 2.2.0-alpha/rc releases.
#18474 updates the path for the cacerts.pem so its not mounting over the /etc/rancher/ssl directory.
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Install Rancher
helm install rancher-latest/rancher --version 2.2.0-rc2 --name rancher --namespace cattle-system --set hostname=rancher.localhost --set ingress.tls.source=secret --set privateCA=true

Add Self-Signed Cert and CA
kubectl -n cattle-system create secret tls tls-rancher-ingress \
  --cert=tls.crt \
  --key=tls.key

kubectl -n cattle-system create secret generic tls-ca \
  --from-file=cacerts.pem

Result:
Rancher pods fail to start.
➜ kubectl -n cattle-system logs  rancher-5598f67959-5hqf9
2019/03/01 20:25:37 [INFO] Rancher version v2.2.0-rc2 is starting
2019/03/01 20:25:37 [INFO] Rancher arguments {ACMEDomains:[] AddLocal:auto Embedded:false KubeConfig: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false NoCACerts:false ListenConfig:<nil> AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0}
2019/03/01 20:25:37 [INFO] Listening on /tmp/log.sock
I0301 20:25:37.792188       6 http.go:110] HTTP2 has been explicitly disabled
2019/03/01 20:25:37 [FATAL] open /etc/rancher/ssl/cert.pem: not a directory

Other details that may be helpful:
Environment information

Rancher version 2.2.0-rc2 HA install

Verified in load testing.

still does not work in version 2.4.8
helm install rancher rancher-stable/rancher  --namespace cattle-system  --set hostname=rancher.xxx.com  --set ingress.tls.source=secret  --set privateCA=true --version v2.4.8
then get pod logs:
kubectl logs rancher-767cc66f9d-kc697 -n cattle-system -f
get:
2020/09/28 06:19:32 [INFO] Watching metadata for management.cattle.io/v3, Kind=Feature
2020/09/28 06:19:32 [INFO] Watching metadata for management.cattle.io/v3, Kind=NodeDriver
2020/09/28 06:19:32 [INFO] Refreshing all schemas
2020/09/28 06:19:32 [FATAL] read /etc/rancher/ssl/cacerts.pem: is a directory


Generator: Make the script download the images and audio in API response

If an API endpoint is given, it will have audio and speaker image urls in the json response.
Make the generator.js download and save them locally to assets/audio and assets/img folders.
FUTURE: Make this optional with a checkbox in the generator.
option1 : Download and save images and audio with the webapp (makes huge zip)
option2: Always live-load audio and images from remote URLs. (may not work with CORS etc)
Organiser weighs pros and cons of both options and choses accordingly.

@mariobehling Take a look. Does this make sense. Anything to add or improve in this feature ?

Good idea. Yes, make this optional.

completed all features via this https://github.com/fossasia/open-event-webapp/pull/370


Split shplonk in prep for work queue

Description
TLDR: Split Shplonk (just like we did for Gemini) to facilitate computation of commitments in work_queue.
The Shplonk prover has two main operations: 1) compute batched quotient polynomial Q, and 2) compute polynomial Q - Q_z. The challenge z at which Q is partially evaluated depends on the commitment [Q]. In order to compute this commitment in the work_queue, operations (2) must be separated from task (1). As part of this separation, all transcript operations have been moved to the Prover itself.
Checklist:

[x] I have reviewed my diff in github, line by line.
[x] Every change is related to the PR description.
[x] I have linked this pull request to the issue(s) that it resolves.
[x] There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
[x] There are no circuit changes, OR specifications in /markdown/specs have been updated.
[x] There are no circuit changes, OR a cryptographer has been assigned for review.
[x] I've updated any terraform that needs updating (e.g. environment variables) for deployment.
[x] The branch has been rebased against the head of its merge target.
[x] I'm happy for the PR to be merged at the reviewer's next convenience.
[x] New functions, classes, etc. have been documented according to the doxygen comment format. Classes and structs must have @brief describing the intended functionality.
[x] If existing code has been modified, such documentation has been added or updated.

LGTM


Email Workers When A Task is Available.

Coverage decreased (-0.4%) to 92.068% when pulling dc5946793ee77ffe519904743f53447eebdbd8a6 on email_staffbot into fc1c3a5495cd4e7182b1bc3f8c67cf320c241c06 on master.

Coverage decreased (-0.5%) to 91.98% when pulling c125348acddf87ef321f899910e227b69da5edef on email_staffbot into fc1c3a5495cd4e7182b1bc3f8c67cf320c241c06 on master.

Coverage decreased (-0.5%) to 91.974% when pulling c125348acddf87ef321f899910e227b69da5edef on email_staffbot into fc1c3a5495cd4e7182b1bc3f8c67cf320c241c06 on master.

Coverage decreased (-0.5%) to 91.971% when pulling f68b44d20dd8297ebc8d66b169d6eb34d5bc96e8 on email_staffbot into fc1c3a5495cd4e7182b1bc3f8c67cf320c241c06 on master.

Coverage decreased (-0.5%) to 91.97% when pulling 80a5b3573c6abc9b04dafcffcf8e819af68393fa on email_staffbot into fc1c3a5495cd4e7182b1bc3f8c67cf320c241c06 on master.


[liburing] Fails with an incorrectly installed symlink (absolute path)

Describe the bug
The liburing port creates a dev symlink for the liburing.so.2.2 symlink as follows, within the "lib/" directory:
liburing.so -> /tmp/vcpkg-installed/vcpkg_installed/x64-linux-dynamic/lib/liburing.so.2.2

This is incorrect, as such a package's cached binary content will be invalid when relocated. In my case, it causes linking errors since liburing cannot be resolved at link time. In the portfile, I don't see that the symlink is explicitly created. Maybe the bug is in the upstreams Makefile. As long as the bug persists in upstream, the port should probably have a workaround.
Environment

OS: Linux

This would indicate a nice feature request for the absolute-paths checker warning: Check not only file contents, but also where symlinks point to. I can't think of any valid usecase offhand that warrants absolute-path symlinks. Symlinks that absolutely point to vcpkg-installed-dir are most definitely always wrong.

I think this absolute path is the result of parsing.
/tmp/vcpkg-installed/vcpkg_installed/x64-linux-dynamic/lib/liburing.so.2.2

https://github.com/axboe/liburing/blob/298c083d75ecde5a8833366167b3b6abff0c8d39/liburing.pc.in#L11
Make sure that vcpkg can find the lib provided by liburing.
May I ask if you have used the more usage we provide in your project.
https://github.com/microsoft/vcpkg/blob/master/ports/liburing/usage
And could you please provide the error log? :)

I have difficulties to understand the response.
The root of the problem seems to be here:
https://github.com/axboe/liburing/blob/298c083d75ecde5a8833366167b3b6abff0c8d39/src/Makefile#L98-L101
... relativelibdir isn't relative when called as part of the vcpkg build process.

I created a port overlay and added the following to the if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") if-statement
# JS: Fix .so dev symlink. See https://github.com/microsoft/vcpkg/issues/32102
execute_process(
  COMMAND ln -sf liburing.so.2 ${CURRENT_PACKAGES_DIR}/lib/liburing.so
  COMMAND ln -sf liburing.so.2 ${CURRENT_PACKAGES_DIR}/debug/lib/liburing.so
)

And it works for me. Probably it should use one of the logged execute_process variants of vcpkg though. I don't know where to fix it in the Makefiles or Configure files, so I forced my way through there.

I think this absolute path is the result of parsing.
/tmp/vcpkg-installed/vcpkg_installed/x64-linux-dynamic/lib/liburing.so.2.2

https://github.com/axboe/liburing/blob/298c083d75ecde5a8833366167b3b6abff0c8d39/liburing.pc.in#L11 Make sure that vcpkg can find the lib provided by liburing.
May I ask if you have used the more usage we provide in your project. https://github.com/microsoft/vcpkg/blob/master/ports/liburing/usage
And could you please provide the error log? :)

There is no error when building within vcpkg, because nothing depends on liburing within vcpkg itself in my case.
The error happens when I build my software. It is something like "can't find liburing" from the linker, because while pkg-config specifies "-luring", there is no suitable "liburing.so" that satisfies the linker, because it's a symlink that points to a non-existing file.  See my above "hotfix" for how it might be fixed.
Apparently the convention is that it points to the final .so file, not to the potential soname symlink, so the correct way is to point to "liburing.so.2.2" here instead of just to "liburing.2" as I did above. Beware while the .so file has ".2.2" suffix, the port version is "2.3".

It is enough to add
    OPTIONS
        [[--libdevdir=\${prefix}/lib]]

to vcpkg_configure_make.


adds handling of output_dir

The --output_dir flag was ignored. A default case is now added as well as handling of the flag if provided.

Thanks Vincent! Just need to update the README as well.


unable to upload database

i am unable to upload any dataset error which i am getting is that it shows pending upload for sometime and after that this code 8063ae73-3bb8-4cf5-9b7f-99338ba6c871
anyway it worked it worked for the first time but now its always getting stuck what can be the reason.

Unfortunately I am experiencing this issue as well, the first upload after installing seems to work but after that datasets won't load anymore.

I just uploaded a new version to Docker Hub. Could you try again?

Thank you for the new version, I appreciate your effort. However, although I deployed the new container on a new instance, uploading data still doesn't seem to work. I've tried to upload a package of only 20mbs, which does work completely on the hosted version of carto on carto.com so the package is not broken, but this installation keeps importing forever. It does not return any import errors, but it leads to the webserver breaking in some way. After the attempted data import the whole carto server times out with a 504, and none of the pages load anymore. Even SSHing into the server is not possible anymore. I wish I could provide you with more information, but since the server breaks I can't retrieve any logs as well.

After rebooting the server and trying again, the first time connecting a dataset worked, the second time resulted in an error:

I am still getting the same errors but now at least the server does not crash anymore, which possibly means I could trace some error logs. The only problem is I don't know where I could find them. If you have any idea how I could trace this error, please let me know!

out of topic question : Can we use this image in production ?
if not can you suggest any changes that can help me make this image production ready.

Yes you can, by following the exact instructions in the readme. Did scaling up the server resolve the data upload for you as well? If it did, this issue can be closed.

You can, make sure to change the password of the dev and admin4example accounts.
Also the internals are configured for the least amount of setup hassle, for example the Postgresql database requires no password to login and the services are running in development mode to allow for unencrypted connections.
See https://github.com/NLeSC/eEcology-CartoDB/blob/master/setup.md where I do some fortifying.

I recieved error while uploading database but the database was uploaded successfully. i dont know why error is still there. anyway its working so you can close the issue.


[BEAM-5101][SQL] Improve tests of Floor and Ceil functions

Improve  tests of Floor and Ceil functions.
There is a bug for Floor and Ceil where Floor and Ceil convert some primitive types (e.g. int) to Double but the code BeamCalcRel still generates a ROW with initial schema (e.g. int32), so Row verification will fail because of mismatch between INT32 type and Double value. Add a @Ingore with created JIRA link to the unit test.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
 You might wan to split testFloorAndCeil into two so we can run the tests that pass now.

run java precommit

That is good cleanup too, but not quite what I was getting at. Does .addExpr("CEIL(c_double)", 2.0) pass now? If so, you can increase test coverage by separating the date and float tests.

run java precommit

Ping

LGTM

LGTM.


Evaluate diff-hl over TRAMP

Performance may be acceptable, but likely is not.

Conclusion was: it's fine.


Memory Leak in Python 3.6.9

Hi,
fist of all, just wanted to thank you for this amazing library, its awesome!!!
just noticed significant memory leak when using pyStag in a python 3.6.9, its easy to notice in the piece of code below, just wondering if this has been reported before?
thanks again, its an aboslute amazing library
import pyStag as stag
...
while True:
stag_det = stag.Detector(15, 7, False)
stag_det.detect(img)
...

Hello hello
in local repo, just added a contrusctor to EDInterface to delete some stuff, and it worked fine :) , most of the memory lead is gone
EDInterface::~EDInterface()
{
delete edgeMap;
delete edLines;
}
not sure if that's the recommemded approach though :)
thanks


User test

I closed the previous PR by mistake.
Why do I get 301 in both

@Yarboa  You mean that I get into the site without a user name and see that I get Blocked?

@Yarboa  You mean that I get into the site without a user name and see that I get Blocked?

@Yarboa You mean that I get into the site without a user name and see that I get Blocked?

@BarBenNaim Yes, asser error resp code

@Yarboa You mean that I get into the site without a user name and see that I get Blocked?

@BarBenNaim Yes, asser error resp code

After our conversation, I decided to do a test only for the personal area then I will do a test if it is possible to enter without a password

After our conversation, I decided to do a test only for the personal area then I will do a test if it is possible to enter without a password

After our conversation, I decided to do a test only for the personal area then I will do a test if it is possible to enter without a password

@BarBenNaim  as i told you in office hours you should go here to see the Client doc
https://docs.djangoproject.com/en/3.1/topics/testing/tools/#django.test.SimpleTestCase.assertRedirects
If you use this, the client will follow the next page and will return 200
respons = client.get('/personal_area',follow=True)
So with the following command the previous test with assert 200 will work
You can check the client response code with following:
ALLOWED_HOSTS = ['testserver']
pipenv run python manage.py shell
response = c.post('/sign_in/', {'username': 'john', 'password': 'smith'})
you can see reponse content, also on wrong login

from django.test import Client
c = Client()
response = c.post('/sign_in/', {'username': 'john', 'password': 'smith'})
Response code is 200, but you can search in the content, response.content you receive the whole page content, you can assert the content which is binary

If -1 it means that there is 200, no user sign in request
assert response.content.find(b"Please enter a correct username and password.") == -1
You can also assert in the body unique string from personal area.
I hop it helps, i will wait for your next reply to see what you have decided :+1:

After our conversation, I decided to do a test only for the personal area then I will do a test if it is possible to enter without a password

@BarBenNaim  as i told you in office hours you should go here to see the Client doc
https://docs.djangoproject.com/en/3.1/topics/testing/tools/#django.test.SimpleTestCase.assertRedirects
If you use this, the client will follow the next page and will return 200
respons = client.get('/personal_area',follow=True)
So with the following command the previous test with assert 200 will work
You can check the client response code with following:
ALLOWED_HOSTS = ['testserver']
pipenv run python manage.py shell
response = c.post('/sign_in/', {'username': 'john', 'password': 'smith'})
you can see reponse content, also on wrong login

from django.test import Client
c = Client()
response = c.post('/sign_in/', {'username': 'john', 'password': 'smith'})
Response code is 200, but you can search in the content, response.content you receive the whole page content, you can assert the content which is binary

If -1 it means that there is 200, no user sign in request
assert response.content.find(b"Please enter a correct username and password.") == -1
You can also assert in the body unique string from personal area.
I hop it helps, i will wait for your next reply to see what you have decided :+1:


vagrant: Update Centos8 Vagrant file for Centos8 Repo Changes

Fixes issue 2583, updates repositories for sshpass and libselinux-python following epel changes.

Checklist

[X] commit message has one of the standard prefixes
[ ] faq.md updated if appropriate
[ ] other documentation is changed or added (if applicable)
[ ] playbook changes run through VPC or QPC (if you have access)
[ ] for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

Queued up for testing at https://ci.adoptopenjdk.net/view/Tooling/job/VagrantPlaybookCheck/1438/


The build command calculates insufficient Plutus script cost in Conway

Description
In Conway era, Plutus script cost increased in a situation where two certificate scripts are used in single tx. I'm not sure if that is an issue or not. The build command however computes lower cost than is needed, and tx submit fails.
The build command:

cardano-cli conway transaction build --certificate-file "test_delegate_deregister[script_file-build-plutus_v2]_ci0_wld_addr0_stake_reg.cert" --certificate-script-file cardano_node_tests/tests/data/plutus/v2/stake-script.plutus --certificate-redeemer-file cardano_node_tests/tests/data/plutus/42.redeemer --certificate-file "test_delegate_deregister[script_file-build-plutus_v2]_ci0_wld_addr0_stake_deleg.cert" --certificate-script-file cardano_node_tests/tests/data/plutus/v2/stake-script.plutus --certificate-redeemer-file cardano_node_tests/tests/data/plutus/42.redeemer --tx-in-collateral "bf5e9f38e6c967984ff911c502d4601bd4a4129cfc1a0b8a02483ddb4e522d06#0" --tx-in "bf5e9f38e6c967984ff911c502d4601bd4a4129cfc1a0b8a02483ddb4e522d06#3" --change-address addr_test1yr52d4pz2jjz6f5ephlglr627ljrrq99hua8jmllme7tn0yu36w607q78j5sfp0n96l0exqn0j9vyc9qw2sqcj40zsksgwdtn2 --witness-override 1 --out-file "test_delegate_deregister[script_file-build-plutus_v2]_ci0_wld_reg_deleg_tx.body" --testnet-magic 42

Tx submit fails with (shortened error):

The plutus evaluation error is: CekError An error has occurred:  User error:\nThe machine terminated part way through evaluation due to overspending the budget.\nThe budget when the machine terminated was:\n({cpu: -570964\n| mem: 28})\nNegative numbers indicate the overspent budget; note that this only indicates the budget that was needed for the next step, not to run the program to completion

When increasing the execution units, I'm able to build the tx using transaction build-raw and submit it successfully.

cardano-cli conway transaction build-raw --fee 500000 --out-file "test_delegate_deregister[script_file-build_raw-plutus_v2]_ci0_ahh_reg_deleg_tx.body" --certificate-file "test_delegate_deregister[script_file-build_raw-plutus_v2]_ci0_ahh_addr0_stake_reg.cert" --certificate-script-file cardano_node_tests/tests/data/plutus/v2/stake-script.plutus --certificate-execution-units "(240000000,790000)" --certificate-redeemer-file cardano_node_tests/tests/data/plutus/42.redeemer --certificate-file "test_delegate_deregister[script_file-build_raw-plutus_v2]_ci0_ahh_addr0_stake_deleg.cert" --certificate-script-file cardano_node_tests/tests/data/plutus/v2/stake-script.plutus --certificate-execution-units "(240000000,790000)" --certificate-redeemer-file cardano_node_tests/tests/data/plutus/42.redeemer --tx-in-collateral "c7ae98f5711ee9cee74d0f603e09ce1baa5e6d0fef9786be48558e70b6558e8f#0" --protocol-params-file pparams-eret.json --tx-in "c7ae98f5711ee9cee74d0f603e09ce1baa5e6d0fef9786be48558e70b6558e8f#3" --tx-out "addr_test1yp9dc3vuht93r28v0fz3q2clpn7s998ck9ekcpweefc7pxvu36w607q78j5sfp0n96l0exqn0j9vyc9qw2sqcj40zsksdwm4xm+1499100000"

The scripts cost reported by transaction build:
[{'executionUnits': {'memory': 613680, 'steps': 196655766},
  'lovelaceCost': 49589,
  'scriptHash': '9c8e9da7f81e3ca90485f32ebefc98137c8ac260a072a00c4aaf142d'},
 {'executionUnits': {'memory': 616152, 'steps': 197801730},
  'lovelaceCost': 49814,
  'scriptHash': '9c8e9da7f81e3ca90485f32ebefc98137c8ac260a072a00c4aaf142d'}]

In previous node releases, we were able to submit the tx in Conway with execution units (218855869, 686154). We still are able to use these execution units in Babbage.
Steps to Reproduce

build the tx using transaction build
submit the tx
see the error

Additional Context
Files used to build the tx and full error message: issue_delegation_plutus.tar.gz
Tested on Linux with cardano-node / cardano-cli from node 8.9.0 release.

The issue is still present.
The script hash is:ScriptHash \"edcd84c10e36ae810dc50847477083069db796219b39ccde790484e0\"
The plutus evaluation error is: CekError An error has occurred:
The machine terminated part way through evaluation due to overspending the budget.
The budget when the machine terminated was:
({cpu: -100
| mem: -100})
Negative numbers indicate the overspent budget; note that this only indicates the budget that was needed for the next step, not to run the program to completion.
The protocol version is: Version 10

Resolved by:

https://github.com/IntersectMBO/cardano-api/pull/595
https://github.com/IntersectMBO/cardano-cli/pull/848

@CarlosLopezDeLara> can you check if the issue is still there? I believe not.


Wrap non-JSX children by jSXContainer

So now we wrap all non-jsx statements by React.Fragment. Now the following code works well.
pug`
  - console.log('Hello')
  p I'm sibling
`

Codecov Report

Merging #74 into next will increase coverage by 0.2%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             next      #74     +/-   ##
=========================================
+ Coverage   82.98%   83.19%   +0.2%
=========================================
  Files          21       21
  Lines         482      488      +6
  Branches      116      117      +1
=========================================
+ Hits          400      406      +6
  Misses         73       73
  Partials        9        9

Impacted Files
Coverage Δ

src/utils/jsx.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Little issue!

I am bad at english, so sorry!... but some issue in css alignment i think!

As you can see!...
If i press it to see details then side get bigger and it looks like this!...

Are you seeing this on mobile? I agree, this is a little issue haha. Still, thank you for flagging!
By the way, we have an integration with Slack that sends you Slack notifications whenever an incident occurs or any of our systems go down. If you are interested, you can set this up in Console -> Project Settings -> Integrations -> Slack.

Are you seeing this on mobile? I agree, this is a little issue haha. Still, thank you for flagging!

Yeah in mobile!... hope this get fixed soon!

By the way, we have an integration with Slack that sends you Slack notifications whenever an incident occurs or any of our systems go down. If you are interested, you can set this up in Console -> Project Settings -> Integrations -> Slack.

Thanks for the info!


Related data in ActiveFixture

Is there any posibility to make related fixtures.
When we make main fixture data and can use it primeryKey values in relateted data
example;
Users Data
'user1' => [
    'name' => 'random_name'
]

Posts Data
'post1' => [
   'user_id' => UsersFixture->user1->id
   'post' => 'random_text'
]

why don't you define primary key explicitly in this case?

I'm closing the issue unless further information provided.


Allow for disabling of inheritance

For complex web apps, it is not uncommon to have a large number of roles, which might be broken down into levels as allowed by this plugin for ease of access. However, in this case it might not be desirable that a user assigned a particular role at a higher level is granted all of the permissions of every role contained at a lower level. To facilitate this, this pull request implements an 'inheritance' flag in the config file, which allows for the enabling or disabling of this functionality (as provided by the rolePermissions method of the HasRoleAndPermission trait). It also includes slight language cleanup in the README section pertaining to this functionality.

You can ignore the nitpick items. Style Ci will take care of them.

I’m going to try and get this released today

I’m going to try and get this released today


How to generate  of all categories

Using the provided template tags, is it possible to generate a <ul> containing all categories, including all nested categories?

Yes, here is some documentation. http://django-mptt.github.io/django-mptt/templates.html

Thanks, that's helpful.


👨💻☎ WinUI Community Call: January 19, 2022

Please join us for the January 2022 edition of the WinUI Community Call. This event will be live-streamed to YouTube at the following link:
https://www.youtube.com/watch?v=k6WJmymqNKE
Details
Date: January 19th, 2022
Time: 16:00-17:00 UTC (9:00-10:00am Pacific)
Anyone and everyone is welcome - no pre-registration is required.
This will be an informal interactive live stream directly with members of our engineering team.
Format
The community call is a call among the WinUI team that is live-streamed onto YouTube. We present on new updates, share information, welcome guests, and answer your questions. In this month's call, we'll be sharing WinUI roadmap updates, the latest info about the WinUI 3 Controls Gallery, and an overview of the recent Axe (automated accessibility) testing integration in the WinUI 2 project and how you can add it to your applications.
Agenda

Intro
WinUI 2 & 3 roadmap updates and upcoming releases
WinUI 3 Controls Gallery latest updates
Axe Testing for WinUI 2
Q&A

Questions and topic requests can be pre-submitted by commenting them on this GitHub issue
Questions can be asked live in the YouTube livestream's comment section

Q&A Code of Conduct

To help ensure Q&A remains beneficial for the majority of the call's developer audience, please consider whether your question could be framed so that it might be more broadly relevant to our larger developer audience by ensuring it is reasonably concise, broadly beneficial, well-suited for the fast-paced live Q&A format, or able to spark open ended discussion.
Please understand some questions are not well-suited for the fast-paced live Q&A format and should be filed as standalone Discussion or Question issues where they can be most appropriately handled. Excluding presentation topic requests, this generally includes requests for dedicated follow-ups or technically complex questions that require investigative time or expertise not included in this month's guest list.

Leave us your questions in the comments on this issue or live in the YouTube chat during the stream!

It is noticed that lot of issues are not triaged since middle of November. I am afraid leaving it for too long means if clarification is required from authors, they may not be able to provide the details (they might have moved on, found a work around etc) when the team tries to resolve them. This may lead to closing the issues, leading to missed opportunity to improve WinUI.
Also, it would be a great to hear what plans the team have to look at the ever-increasing number of issues raised in the repo.

Please could you let us know if application window title bar customization will be implemented on Win10 and if it is, the release that it is intended to be included in? The road map is too high level for that detail, but it's quite an important differentiator between WPF (via chrome) and WinUI3.

Hello -
Are there plans to address the lack of Xaml tools support in WinUI3 for C++/WinRT?  Currently, using Windows App SDK 1.0 for C++/WinRT, there is no support for Xaml element properties, no Xaml designer, and no Toolbox support.  This problem is severely impacting the ability of my team to make effective use of WinUI3 in an on-going project.  I note that WinUI3 C#/WinRT has the same Xaml tools support problem. I have verified these problems on both VS 2019 and VS 2022.
Without this support, Xaml development is effectively reduced to simple Xaml text editing, making it very difficult to easily provide stub event handlers, drop in elements, and adjust element properties at design time.  Difficulty in finding good code examples with this framework makes this problem even more challenging.
If there are no plans to address this lack of Xaml tool support in the near future, then what options would you suggest as workarounds?
Thank you very much.

Hello,
What about WinUI performance (see issue: https://github.com/microsoft/microsoft-ui-xaml/issues/1633#issuecomment-968612478) which is open for two years?

@rcohn  They killed C++/CX in 2015 with the excuse that they would wait for ISO C++ to support reflection (who knows when it will ever happen) before doing anything to replace C++/CX tooling, in all these years they hardly improved the MIDL experience beyond what Visual C++ 6.0 was already capable of in 2000, so I wouldn't have great hopes in that area.

If you need .NET>5 in UWP please give a vote on this: https://developercommunity.visualstudio.com/t/Add-NET-678-support-to-UWP/1596483

When will desktop programs made with WinUI 3 have support for Mica and Background acrylic, and proper titlebar customization? Titlebar customization as of now is very broken; button styles are completely different from the DWM and ApplicationFrame windows that Windows 10/11 use.
Also when will we have a smooth resizing experience? Resizing a WinUI 3 window is jittery and laggy, it should be like UWP ApplicationFrame windows, where it is smooth with no jumps/jitters.

Has the fix for the OS bug related to TabViewItem memory use shipped yet? If not, is there a timeframe for when this will ship?
Context: https://github.com/microsoft/microsoft-ui-xaml/issues/3597#issuecomment-941793722

If the XAML designer is still not on the roadmap, please provide a convenient way for customizing the style of the build-in controls, this is very vital during my development, as far as I know, the only way to overwrite the style for built-in controls is to find and modify their source code in this repo or in the windows SDK directory which is both inconvenient(it's a hard job to find the correct source) and error-prone (This repo is actually the code base for WinUI 2, not 3, and there are a lot of differences between them, sometimes just copy codes directly from this repo won't work).

Any update on when we can expect MediaPlayerElement support? This is required for any video playback and camera preview viewing to be implemented using WinUI.

Almost all of the above questions point to the same: What resources do Microsoft allocate for WinUI 3?
It seemed like WinUI 3 was to be the new leading UI framework after Forms/WPF but as the other question mentions even basic functionality is not in place now in release 1 or on the roadmap. The list of bugs is huge and Microsoft does not even allocate resources to go through the issues that are filled.
Using WinUI 3 for a business level application is not possible atm, unless it is a very small limited one.
At this speed WinUI 3 either seems to die out due to lack of features/broken stuff, so what is the plan? Is WinUI 3 only intended for small hobby apps or?

Could you give us an update on Drag and Drop support? Does this work for some people? For us, we experience a crashing bug at unpredictable but frequent times (#4574).

What is the recommended way WinUI applications should do to report crashes to it's developer?
We have a C# application that is installed outside of the Microsoft Store.
Tools like AppCenter only see a small minority of crashes. Maybe because they only catch managed exceptions and not native C++ exceptions? Native C++ crash reporting tools (like Crashpad) are very complicated and assume that we are building the native code ourselves.
For a sideloaded application (even with public code-signing certificate) Microsoft does not seem to collect and/or provide crash reports. (Maybe I am missing how?)

It seems that WinAppSDK updates are only released when they previously have been added to a colorfully designed roadmap. This was the case for all previous releases of Project Reunion / WinAppSDK. Keeping that in mind, I am quite concerned that the next release (1.1) is in "Q2" 2022, meaning that we have to wait some 3 more months to get trivial fixes to simple issues like #6194 (only as an example, there are hundreds of other probably simple to solve bugs filed as issues). That is just unacceptable because version "1.0" is far from stable but advertised as best practice tool instead of UWP development. So:
-> Why don't you "discipline" your routine and implement a fixed monthly update schedule? What I want to see is at least 2 production ready (not pre-) releases (e.g. 1.01, 1.02) before 1.1 is released. This way easy, important and urgent (Eisenhover Matrix) bug fixes can be quickly resolved and you would do everybody a huge huge favor and we would'nt be that "disgruntled", to put it mildly.
-> Would it help you to decouple WinUI 3 releases from WinAppSDK releases? If yes, why aren't you doing that? I wouldn't be mad at you if two dependencies have to be referenced instead of one :)

With your current behaviour and communication, I see that you build up a crowd of "haters" and in general bad publicity (see e.g. this article and its comments: https://www.theregister.com/2021/11/29/windows_app_sdk_10_is/).
-> Do you fear that as a result of the way too early published Win11 and the way too early published WinAppSDK 1.0, the WinUI 3 development (and .NET desktop development as a whole) experiences a significant loss of trust? If yes, what is your short-term and long-term strategy to work against it?

Are there any plans to support compiling C++ WinUI 3.0 apps with Clang in the future? I've submitted a proposal (#1156) for this last August but no one from Microsoft responded to this proposal so far.

I know it's been a topic multiple times: open-source
Is it in the cards for 2022?
I feel like a simple 'drop' for each release would already be pretty useful. If I could build my own version from source that would be great.
For me accepting pull-requests, automated-testing and code-quality are topics that can be addressed separately.
I would accept pretty large closed source binaries that get downloaded during build. For me this is not about philosophical openness, but simply about developing workarounds for the bugs I care about and getting them fixed asap.

When can we have better support for exception diagnosis? For now, we can check the exception message at the Output window, however, it is much less efficient than directly looking at the exceptions' popup window, not to say that the Windows App SDK 1.0 is so-called "production-ready", finding some lines of exception log in a huge amount of texts in output window is a tedious job. We need better diagnosis support

@dylech30th
Hitting an exception and trying to debug where it came from is often a nightmare. Just hit
WinRT originate error - 0x80070057 : 'The parameter is incorrect.'.
From this friendly catch-all:

Solong hours of my life as I try to figure out what line of code it came from.

@dylech30th For the same reason they call production ready a C++ development experience akin to using COM before .NET was released into the wild, 20 years ago.
That is what we need to mess with every single time we need to use "modern" APIs not exposed to .NET.

Hello -
I have been seeing a NavigationViewItem behavior in Windows App SDK 1.0 that was not present in Project Reunion 0.8.5. Namely, when an item is underlined (normally a blue line), the line is being truncated.  The expected behavior (I thought) is that, for a horizontal NavigationView, the line beneath a NavigationViewItem should be as long as the displayed text.
Here is an example of what I'm talking about:

When can we expect a fix for this?
Thank you.

@rcohn Your screenshot does not show anything broken. The selected item in a navigation view has an indicator marking it as active. It is in the users accent color by default. You see this for example in the Windows 11 settings.

@gabbybilka @MikeHillberg Is there any update on #6076, the TabViewItem header visual issue? Would it make it into the service release? This is the one issue that is preventing us to release the application to wider audience.

@harvinders I'm pretty sure the original attempt to solve that problem caused the issue with unexpected gradients while setting rounded corners. #6194

Would be great to have some updates on:

Multi-window support
Elevated (admin) support
Estimated turn-around time on the many un-triaged issues :).

I understand that WinUI 3 is decoupled from the operating system. But W10 uses Reveal Style as the default and W11 uses the [Iactuallydontknowhowitscalled] Style as the default. If I target W10 and W11, why is'nt the DefaultStyle falling back to the corresponding RevealStyle in W10? An app in W11 looks exactly the same in W10 and W11. Is that actually intended by Microsoft? Or is it up to the developer to implement their own Reveal Style in the W10 version and the whatever Style in the W11 version?

@rcohn Your screenshot does not show anything broken. The selected item in a navigation view has an indicator marking it as active. It is in the users accent color by default. You see this for example in the Windows 11 settings.

@Marv51 - the length of the underline is definitely too short.  My comment was not on its color or whether it indicated the active tab.  I am amazed that you did not actually address my concern.

@harvinders I agree the lack of issue triage is concerning.
@rcohn The lack of XAML layout is why I can't really consider this framework a valid replacement for WPF. The team I work on considers this to be a large issue.
@MEK3DK I think the feature set is largely okay for business applications, but the number of issues in a triage state and reported bugs is concerning.
@gabbybilka I appreciate the work that you and your team are putting in WinUI3. I'm looking forward to the next roadmap update. Unfortunately, my team is having a meeting tomorrow to determine if we switch from WinUI3 back to WPF.
I think there are many good things in WinUI3, and it has good promise, but ultimately in its current state I question its viability for production level applications.

@rcohn Recently stated that this is by design:
https://github.com/microsoft/microsoft-ui-xaml/issues/4873#issuecomment-1015836500

Hey guys, is the next call due on Feburary 16th? Curious about your progress in 1.1!

Hey guys, is the next call due on Feburary 16th? Curious about your progress in 1.1!

Not happening in Feb, March is next one
https://github.com/microsoft/microsoft-ui-xaml/issues/6726

@gabbybilka would it be possible to have the Q&A portions of the calls transcribed and added as a summary to the end of each of these issues? Would help folks who can't make the calls to find out what was discussed at a glance and make it searchable here with the rest of the issues on GitHub.


Scene Runner hangs the test if the scene loads a new scene

The used GdUnit4 version:
4.2.1
The used Godot version:
4.2 stable
OS including version:
Mac M1
Describe the bug
Using a SceneRunner to load a scene whose code loads a new scene, causes the test to hang and never complete until aborted. It would be useful if a runner could support this, so you can write integration tests that span multiple scenes. In my case for example I want to test that a bootstrap scene successfully loads a second scene when it is done bootstrapping.
Steps to Reproduce
# define a test like this
func test_loads_main_scene() -> void:
    var runner := scene_runner("res://bootstrap.tscn")

# bootstrap should have a node whose script performs the following:
get_tree().change_scene_to_file("res://some_other_scene.tscn")

When you run the test it will spin forever and never complete.

Hi @dreed-sd
This test scenario is not actually possible.
The GdUnit4 Test Runner is itself a scene and is executed as a user-defined scene with play_custom_scene() or as the main scene in debug mode.
When you're changing the actual running scene, you will break the running TestRunner scene.
Godot can only run one active main scene and makes this scenario impossible.
Therefore, test whether your bootstrapping is working properly by mocking it and using verify to check whether the desired scene has been changed.
Your bootstrap should provide a function you can mock to not call the real implementation.
At least, you only want to test that your bootstrap is switching the scenes to a scene named xyz.
func change_scene_to_file(scene :String) -> bool:
	get_tree().change_scene_to_file(scene)
	return true

And your test should look like this.
func test_bootstarp_scene() -> void:
	var mock_bootstrap = mock("res://bootstrap.gd", CALL_REAL_FUNC)

	# do overwrite the `change_scene_to_file` to not call the real implementation
	do_return(true).on(mock_bootstrap).change_scene_to_file(any_string())
	add_child(mock_bootstrap)

	# is initial called
	verify(mock_bootstrap, 1)._ready()

	# await a bit more as 2s to verify its switched the scene
	await await_millis(2500)
	verify(mock_bootstrap, 1).change_scene_to_file("res://some_other_scene.tscn")


CeNDR: Update data download page to have easy to identify strain-level data for isotype reference strains and for all other strains (DEC)

98c86a1efe90fb04708f6766eeff17c9333603d6


Allow bulk_update on failed jobs with ActiveRecord backend

This patch enables some bulk_update operations on Delayed::Job::Failed
objects (e.g. it only works with the ActiveRecord backend).
Specifically, the following are now enabled:

destroy failed jobs by IDs
destroy failed jobs by flavor

Hold and un-hold are not supported on failed jobs, since it doesn't make
sense to try those operations on failed jobs. Doing so will raise a
RuntimeException.
A signed Instructure Contributor License Agreement is on file under my employer, Simon Fraser University.

@ccutrer I've reworked this (as well as instructure/canvas-lms#704); it now requires that flavor=failed be passed to operate on failed jobs. That should eliminate the potential for ID collision. Let me know what you think.

:+1:


[BUG] BlockBlobClient OpenWriteAsync creates empty blob whilst upload is in flight

Library name and version
Azure.Storage.Blobs 12.12.0
Describe the bug
When calling OpenWriteAsync on a new block blob a 0 byte empty blob is created in the blob container.
The producer then writes to the stream and the data is uploaded into new blocks as required, when the writer is finished the stream is disposed, the block list is committed and the new blob now contains data.
There is no way for a blob reader to know that a blob is still in the process of being uploaded.
This is also a change in behavior from Microsoft.Azure.Storage.Blob  11.2.3 where it is possible to upload a blob in it's entirety atomically.  This issue has been discussed previously https://github.com/Azure/azure-sdk-for-net/issues/18797 but the suggestion to use UploadAsync is not suitable when the producer writes more data than can be held in memory.
The empty blob appears to be created here https://github.com/Azure/azure-sdk-for-net/blob/fdd82bfc752d856ac868e251350a2f0b8737df85/sdk/storage/Azure.Storage.Blobs/src/BlockBlobClient.cs#L2792
Could this behavior be fixed to match v11 (or at the very least made configurable) as we have a large codebase that is not expecting to encounter partially written blobs in storage?
Expected behavior
After calling OpenWriteAsync the new blob should not be visible to blob readers until the writer has finished writing and the stream is disposed.
Actual behavior
Blob readers can see an empty blob and can read from it whilst the writer is still writing.
If a blob reader calls OpenReadAsync and obtains a read stream:
If the read completes before the writer completes the read of an empty blob is successful.
If the writer completes before the reader reads from the stream the reader received a 412 Precondition Failed
Reproduction Steps
Setup:
const string storageAccountName = "[storage-account-name]";
const string azureStorageScope = "https://storage.azure.com//.default";
const string blobContainerName = "[container-name]";

var serviceUri = new Uri($"https://{storageAccountName}.blob.core.windows.net");
var tokenCredential = new DefaultAzureCredential();

Example using Azure.Storage.Blobs 12.12.0:
var blobServiceClient = new BlobServiceClient(serviceUri, tokenCredential);
var blobContainerClient = blobServiceClient.GetBlobContainerClient(blobContainerName);
var blockBlobClient = blobContainerClient.GetBlockBlobClient("v12");
await using var stream = await blockBlobClient.OpenWriteAsync(true);

Console.WriteLine("v12 stream created, press enter to write data");
Console.ReadLine();
// There's an empty blob visible to readers in the blob container at this point

var buffer = System.Text.Encoding.UTF8.GetBytes("Hello world!");
await stream.WriteAsync(buffer);

Whilst waiting for the writer the blob is visible to readers:

Example using Microsoft.Azure.Storage.Blob 11.2.3:
var accessToken = await tokenCredential.GetTokenAsync(new TokenRequestContext(new[] { azureStorageScope }));

var storageAccount = new CloudStorageAccount(new StorageCredentials(new TokenCredential(accessToken.Token)), storageAccountName, null, true);
var blobClient = storageAccount.CreateCloudBlobClient();
var container = blobClient.GetContainerReference(blobContainerName);
var blob = container.GetBlockBlobReference("v11");
await using var stream = await blob.OpenWriteAsync();

Console.WriteLine("v11 stream created, press enter to write data");
Console.ReadLine();
// The blob is not visible to readers in storage at this point

var buffer = System.Text.Encoding.UTF8.GetBytes("Hello world!");
await stream.WriteAsync(buffer);

Whilst waiting for input no blob is visible to readers:

Environment
No response

Adding Service team to look into this.
@xgithubtriage could you please look into this issue ?

I think as explained here in the github issue referenced, that OpenWrite is supposed to mimic the System.IO File.OpenWrite. Even though this is different than the v11 behavior, it's the behavior that it should have been in the first place.
However I do empathize with the difference with the behavior change, and looks like we may need to create another API or options bag to cover the scenario. Though we may have to look into if there's another reason why we create the blob then start performing the stage blocks (in the case this is preventing a different problem from occurring).
Marking as a feature request.
@seanmcc-msft Feel free to chime in.
The only mitigation I can see around this is that there has to be a lot of code written around a Stream and doing manual stage blocks, loading each chunk data into the stream and doing a commit block.


Isolate.kill() doesn't kill inifinite loop in dart:ffi code

There is a blocking infinite loop (CFRunLoopRun()) running in the C code. In order to keep main isolate from blocking, loop code is called from the second isolate. Instead of implementing a stop() in the native code and calling it through the ffi, I wanted to kill the second isolate directly but it doesn't work.
Is it a bug that calling kill() on the second isolate doesn't stop the loop and isolate keeps living?

Isolate.kill is not expected to work if the target isolate is blocked in foreign code. It can only interrupt Dart code.
Nesting another event loop such as a CFRunLoop on a Dart thread is a bad idea. If you want to run another event loop, either

it should run on its own thread and communicate with Dart via message passing (Dart_PostCObject), or
the Dart isolate should be set up to run under the foreign event loop (Dart_SetMessageNotifyCallback) instead of the VM's default event loop.

What are the differences between communicating with Dart_PostCObject and callbacks (function pointers)?


[✨] Nested named layout

Is your feature request related to a problem?
Qwik supports named layout with the following folder structure:
- src/
 |- routes/
 |   |- layout.tsx # Default parent layout
 |   |- layout-narrow.tsx # Default parent named layout
 |   |- index.tsx # Layout: layout.tsx
 |   `- contact/
 |       `-<EMAIL_ADDRESS># Child named layout (Layout: /routes/layout-narrow.tsx)

However, it seems like it does not support nested named layout with the following folder structure:
- src/
 |- routes/
 |   |- layout.tsx # Default parent layout
 |   |- layout-narrow.tsx # Default parent named layout
 |   |- layout-narrow2.tsx # Default parent named layout 2
 |   |- index.tsx # Layout: /routes/layout.tsx
 |   `- contact/
 |        |-<EMAIL_ADDRESS># Layout: /routes/layout-narrow.tsx
 |        |- layout.tsx # Default child layout (Layout: /routes/layout.tsx)
 |        |-<EMAIL_ADDRESS># This is not supported (Expected layout: /routes/layout-narrow2.tsx)
 |        |- layout-narrow2.tsx # Default child named layout (Layout: /routes/layout.tsx)
 |        `- contact-1/
 |             `-<EMAIL_ADDRESS># Layout: /routes/contact/layout-narrow2.tsx

In the above example, there are two layouts that apply themselves around the /contact-1 page component:

src/routes/layout-narrow2.tsx
<EMAIL_ADDRESS>
We should be able to define the parent layout of a child layout in Qwik City like<EMAIL_ADDRESS>However, as of<EMAIL_ADDRESS><EMAIL_ADDRESS>does not work and /routes/contact/layout-narrow2.tsx is forced to always render with /routes/layout.tsx.
Describe the solution you'd like
To be able to define a named layout for another named layout as Qwik currently supports only defining a named layout to index.{tsx,mdx} instead of a layout.tsx, for instance,
Expected behavior
We should be able to define named layout for layouts.
# Example 1: Expected rendering flow:
/routes/layout-narrow.tsx
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
# Example 2: Expected rendering flow:
/routes/layout-narrow.tsx
<EMAIL_ADDRESS>/routes/contact/contact-1/layout-narrow.tsx
<EMAIL_ADDRESS>
# Example 3: Expected rendering flow:
/routes/layout.tsx
/routes/contact/layout.tsx
/routes/contact/contact-1/layout-narrow.tsx
<EMAIL_ADDRESS>
# Example 4: Expected rendering flow:
/routes/layout.tsx
/routes/contact/layout-narrow.tsx
<EMAIL_ADDRESS>/routes/contact/contact-1/index.tsx

Actual behavior
We can only specify named layout in an index.{tsx,mdx} file like<EMAIL_ADDRESS>and layout-narrow.tsx is always defaulting to a layout.tsx at upper level.
# Actual rendering flow:
/routes/layout.tsx
/routes/contact/layout.tsx
/routes/contact/contact-1/layout-narrow.tsx
<EMAIL_ADDRESS>
Describe alternatives you've considered
Avoid using nested named layout
Additional context
No response

@motss I don't understand, what is the use case? How should it detect what name to use?

We moved this issue to qwik-evolution repo to create a RFC discussion for this.
Here is our Qwik RFC process thanks.


Bug 456

Description
Steps to Reproduce
Expected Behavior
Relevant Logs / Console output
Your Environment

ex: Browser name and version:
ex: Operating System and version:

Additional context

https://issues.newrelic.com/browse/TP-6746


Modify the social media icons on Home Page [ Dark mode] so that they blend with the design more effectively

Hello, I would like to work on this issue. Can you please assign it to me?

Can you assign it to me?

Hello @smaranjitghose , since no-one has done the task yet, can you please re-assign it to me? I would like to work on this issue.

Hai @smaranjitghose, I've made these icon changes in dark mode, Is this okay or if you need any further modifications, please convey.


Downloading of pretrained models

Guys, could you please explain me how to download the pretrained model of pruned_transducer_stateless8 system. I was not able to do it according to links.

Please have a look at
https://k2-fsa.github.io/sherpa/cpp/pretrained_models/offline_transducer.html#icefall-asr-librispeech-pruned-transducer-stateless8-2022-12-02

Great. Thank you @csukuangfj .
I see following decoding example.
for m in greedy_search modified_beam_search fast_beam_search; do
sherpa-offline
--decoding-method=$m
--nn-model=./exp/cpu_jit.pt
--tokens=./data/lang_bpe_500/tokens.txt
./test_wavs/1089-134686-0001.wav
./test_wavs/1221-135766-0001.wav
./test_wavs/1221-135766-0002.wav
done
I have 2 additional questions:

How can I compile sherpa-offline ?
What is the fastest way to evaluate stateless8 model using tedlium3 benchmark?

How can I compile sherpa-offline ?

Please follow
https://k2-fsa.github.io/sherpa/cpp/installation/index.html#installation-for-advanced-users-developers

What is the fastest way to evaluate stateless8 model using tedlium3 benchmark?

I suggest that you use decode.py from icefall to compute WER.

During sherpa compilation I got following error. Any help is appreaciated
(base) root@ca3678a00d7e:/fsx_new/Alex/projects/sherpa/build# cmake ..
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No CMAKE_BUILD_TYPE given, default to Release
-- CMAKE_BUILD_TYPE: Release
-- SHERPA_ENABLE_TESTS: OFF
-- SHERPA_ENABLE_PORTAUDIO: ON
-- SHERPA_ENABLE_WEBSOCKET: ON
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- SHERPA_OS:
-- CMake version: 3.25.0
-- Found Git: /usr/bin/git (found version "2.30.2")
-- SHERPA_GIT_SHA1: 21a5b943dffb3f222010fcc5f2b52f25b889c905
-- SHERPA_GIT_DATE: Sun Jan 15 04:26:25 2023
-- SHERPA_GIT_BRANCH: master
CMake Warning (dev) at /opt/conda/lib/python3.8/site-packages/cmake/data/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set.  The policy's OLD behavior will be used.  When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes.  The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want.  Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
cmake/pybind11.cmake:13 (FetchContent_Declare)
cmake/pybind11.cmake:27 (download_pybind11)
CMakeLists.txt:134 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Downloading pybind11
-- pybind11 is downloaded to /fsx_new/Alex/projects/sherpa/build/_deps/pybind11-src
-- pybind11 v2.10.2
-- Found PythonInterp: /opt/conda/bin/python (found suitable version "3.8.15", minimum required is "3.6")
-- Found PythonLibs: /opt/conda/lib/libpython3.8.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
CMake Warning (dev) at /opt/conda/lib/python3.8/site-packages/cmake/data/share/cmake-3.25/Modules/FetchContent.cmake:1279 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set.  The policy's OLD behavior will be used.  When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes.  The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want.  Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
cmake/json.cmake:16 (FetchContent_Declare)
cmake/json.cmake:31 (download_json)
CMakeLists.txt:135 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Downloading json https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz
-- json is downloaded to /fsx_new/Alex/projects/sherpa/build/_deps/json-src
-- Python executable: /opt/conda/bin/python
-- PYTHON_EXECUTABLE: /opt/conda/bin/python
-- TORCH_DIR: /opt/conda/lib/python3.8/site-packages/torch
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Warning at /opt/conda/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/opt/conda/lib/python3.8/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
cmake/torch.cmake:14 (find_package)
CMakeLists.txt:140 (include)
-- Found Torch: /opt/conda/lib/python3.8/site-packages/torch/lib/libtorch.so
-- TORCH_LIBRARIES: torch;torch_library;/opt/conda/lib/python3.8/site-packages/torch/lib/libc10.so
-- PyTorch version: 1.13.0
CMake Warning (dev) at cmake/k2.cmake:38:
Syntax Warning in cmake code at column 52
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
CMakeLists.txt:141 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Python executable: /opt/conda/bin/python
-- K2_CMAKE_PREFIX_PATH: /opt/conda/lib/python3.8/site-packages/k2/share/cmake
-- Found k2: /opt/conda/lib/python3.8/site-packages/k2/lib/libk2_torch_api.so (Required is at least version "1.23.2")
-- K2_FOUND: TRUE
-- K2_INCLUDE_DIRS: /opt/conda/lib/python3.8/site-packages/k2/include
-- K2_LIBRARIES: k2_torch_api;k2_torch;k2_log;k2context;k2fsa
-- K2_CXX_FLAGS:  -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable  -Wno-strict-overflow
-- K2_CUDA_FLAGS:
-- K2_TORCH_VERSION_MAJOR: 1
-- K2_TORCH_VERSION_MINOR: 13
-- K2_WITH_CUDA: OFF
-- K2_CUDA_VERSION:
-- K2_VERSION: 1.23.3
-- K2_GIT_SHA1: fd609c0ecd074a2414cbfe7cc827427e6b04c8fc
-- K2_GIT_DATE: Thu Jan 5 04:50:13 2023
-- CMAKE_CXX_FLAGS:    -Wall  -g  -D_GLIBCXX_USE_CXX11_ABI=0   -D_GLIBCXX_USE_CXX11_ABI=0 -Wno-unused-variable  -Wno-strict-overflow
CMake Warning (dev) at cmake/kaldifeat.cmake:32:
Syntax Warning in cmake code at column 52
Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
CMakeLists.txt:142 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Python executable: /opt/conda/bin/python
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'kaldifeat'
-- KALDIFEAT_CMAKE_PREFIX_PATH:
CMake Error at cmake/kaldifeat.cmake:18 (find_package):
By not providing "Findkaldifeat.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"kaldifeat", but CMake did not find one.
Could not find a package configuration file provided by "kaldifeat" with
any of the following names:
kaldifeatConfig.cmake
kaldifeat-config.cmake

Add the installation prefix of "kaldifeat" to CMAKE_PREFIX_PATH or set
"kaldifeat_DIR" to a directory containing one of the above files.  If
"kaldifeat" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:142 (include)
-- Configuring incomplete, errors occurred!
See also "/fsx_new/Alex/projects/sherpa/build/CMakeFiles/CMakeOutput.log".
See also "/fsx_new/Alex/projects/sherpa/build/CMakeFiles/CMakeError.log".

Please first install kaldifeat
pip install kaldifeat

or use any methods listed in
https://csukuangfj.github.io/kaldifeat/installation.html


Led Glitch

Hey, I've got a problem with my LED, it's glitching with the new update, here is a video of what it does:
https://youtu.be/HBP3mC13J1U
I needed to add this
#define FASTLED_ESP8266_RAW_PIN_ORDER
before
#include "FastLED.h"
I still have somes errors when uploading the firmware:
In file included from C:[LED]-Controler\arduino\ws2812_controller\ws2812_controller.ino:8:0:
F:\Users\gaetan\Documents\Arduino\libraries\FastLED-3.1.6/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.006
pragma message "FastLED version 3.001.006"
^
In file included from F:\Users\gaetan\Documents\Arduino\libraries\FastLED-3.1.6/FastLED.h:68:0,
from C:[LED]-Controler\arduino\ws2812_controller\ws2812_controller.ino:8:
F:\Users\gaetan\Documents\Arduino\libraries\FastLED-3.1.6/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output
pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"
^
I've got an ESP8266 and a LED Strip of 300 LEDs and my FPS is at 60, i've tried 90 but no change, help please :)
By the way, thanks for updating this awesome project 👍

Have you tried this fork for fast LED which adds DMA support (hopefully integrated into the mainline soon): https://github.com/coryking/FastLED

Yes, thanks you fixed my problem :)
https://www.youtube.com/watch?v=0laTGXqIKF8

Great! We should update the README to start having our own instructions :)

yes, thanks for response 😃


Fix Gtk open file dialog returns folder

What does the pull request do?
Gtk open file dialog shows folders in recent list. User can select folder and Gtk will return its path. Avalonia open file dialog should return only files. Fix is checking if Gtk path is real file.
What is the current behavior?
Gtk open file dialog returns folder path. Avalonia creates FileInfo from this path and returns IStorageFile to user. Then user can call IStorageFile.Open* methods or manually call any .NET file API and will get exception because path is folder.
What is the updated/expected behavior with this PR?
Avalonia checks if path is file and returns only files.
How was the solution implemented (if it's not obvious)?
Fix is checking if Gtk path is real file by File.Exists().
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation

Breaking changes
Obsoletions / Deprecations
Fixed issues

According to their documentation, GTK_FILE_CHOOSER_ACTION_OPEN should only allow picking files.
While I don't see issues with current File.Exist approach, are we sure something else is not broken?

I don't see other problems with Gtk dialog. With select folder recent list contains only folders. With save file there is no recent list.

GTK_FILE_CHOOSER_ACTION_OPEN should only allow picking files

I think it's bug in Gtk. To reproduce user must select folder from recent list but not double click it. Then click "open" button. Double click will go to folder in dialog but not accept it.